/* felicula.app — UNE feuille pour toutes les pages (plan du site vitrine, lot V0).
 *
 * Servie par ce même serveur : la CSP (`entetes.conf`) dit `style-src 'self'`, donc AUCUN
 * `<style>` ni attribut `style=` dans les pages — `site.test.ts` les refuse.
 *
 * Couleurs du kit, comme les pages téléphone (`tools/activation-page`) : le CORAIL ne porte jamais
 * de texte blanc (2,99:1) — sous lui, l'ENCRE (6,55:1), c'est `--on-accent`. Texte d'accent : corail
 * foncé sur fond clair (5,06:1 sur blanc), corail pur sur fond sombre. Le mot-signe se pose sur
 * l'encre (`.tete`), jamais sur un aplat corail : ses « F » et « C » sont d'accent. */

:root {
  color-scheme: light dark;
  --accent: #FF604D; --on-accent: #090C12; --accent-text: #C73E2C;
  --ink: #090C12; --on-ink: #f3f4f6; --on-ink-muted: #b8bec9;
  --bg: #ffffff; --text: #111827; --muted: #4b5563; --line: #d1d5db; --note: #f3f4f6;
}
@media (prefers-color-scheme: dark) {
  :root {
    --accent-text: #FF604D; --bg: #0f1420; --text: #e5e7eb; --muted: #a1a8b3;
    --line: #2e3646; --note: #1a2130;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 17px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; }
a { color: var(--accent-text); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* ── Aller au contenu : invisible tant qu'on ne le focalise pas au clavier ─────────────────── */
.saut {
  position: absolute; left: 16px; top: -100px; z-index: 10; padding: 10px 14px; border-radius: 8px;
  background: var(--accent); color: var(--on-accent); font-weight: 600; text-decoration: none;
}
.saut:focus { top: 12px; }

/* ── En-tête : une bande d'encre, le mot-signe à gauche, la navigation à droite ───────────────── */
.tete { background: var(--ink); color: var(--on-ink); }
.tete .barre {
  max-width: 64rem; margin: 0 auto; padding: 12px 16px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px;
}
.tete .marque { display: block; line-height: 0; }
.tete .marque img { display: block; height: 36px; width: auto; }
.tete nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 6px; }
.tete nav a {
  display: block; padding: 8px 10px; border-radius: 8px; color: var(--on-ink); text-decoration: none;
  font-weight: 600; font-size: .95rem;
}
.tete nav a:hover { background: #1c2230; }
.tete nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--accent); border-radius: 8px 8px 0 0; }
.tete nav a.langue { color: var(--on-ink-muted); font-weight: 500; }

/* ── Le corps ─────────────────────────────────────────────────────────────────────────────── */
main { display: block; }
.colonne { max-width: 42rem; margin: 0 auto; padding: 28px 16px 8px; }
.large { max-width: 64rem; margin: 0 auto; padding: 28px 16px 8px; }
h1 { font-size: 1.7rem; line-height: 1.2; margin: 0 0 .6rem; }
h2 { font-size: 1.2rem; line-height: 1.3; margin: 2rem 0 .5rem; }
h3 { font-size: 1.02rem; margin: 1.25rem 0 .25rem; }
p, li { margin: .45rem 0; }
ol, ul { padding-inline-start: 1.3rem; }
.lead { font-size: 1.1rem; }
.muted { color: var(--muted); }
.note { background: var(--note); border-radius: 10px; padding: 10px 14px; margin: .75rem 0; }
.cadre { border: 2px solid var(--accent); border-radius: 12px; padding: 12px 14px; margin: 1rem 0; }
.encart { border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin: 1.5rem 0; }
.encart h2 { margin-top: 0; }
.chemin { font-weight: 600; }
kbd, code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .92em; }

/* Le bouton : corail sous ENCRE, jamais sous blanc. */
.bouton {
  display: inline-block; padding: 12px 18px; border-radius: 10px; margin: .5rem 0;
  background: var(--accent); color: var(--on-accent); font-weight: 650; text-decoration: none;
}
.bouton.second {
  background: transparent; color: var(--text); box-shadow: inset 0 0 0 2px var(--line);
}
.bouton.plein { display: block; text-align: center; }

/* ── Vitrine (accueil, lot V1) ──────────────────────────────────────────────────────────────── */
/* Le bandeau d'accueil est SOMBRE dans les deux thèmes, comme l'application : la capture s'y
   fond au lieu de trancher sur du blanc. Textes clairs sur l'encre, corail plus clair pour les
   liens (6,9:1 sur l'encre) — le corail foncé du thème clair n'y passerait pas. */
.bande {
  background: radial-gradient(110% 120% at 80% 0%, #2a1730 0%, #151022 38%, var(--ink) 75%);
  color: var(--on-ink);
}
.bande .heros { max-width: 64rem; margin: 0 auto; padding: 28px 16px 40px; }
.bande .lead { color: #dde2ea; }
.bande .muted { color: var(--on-ink-muted); }
.bande a:not(.bouton) { color: #ff8a7a; }
.bande .bouton.second { color: var(--on-ink); box-shadow: inset 0 0 0 2px #3b4356; }
.bande .ecran .dalle { border-color: #262d3d; box-shadow: 0 22px 50px rgba(0, 0, 0, .5); }
.bande .ecran .tele::after { background: #262d3d; }
.bande .ecran figcaption { color: var(--on-ink-muted); }
.surtitre {
  display: inline-block; margin: 0 0 .7rem; padding: 4px 10px; border-radius: 999px;
  background: rgba(255, 96, 77, .14); color: #ff8a7a; font-size: .85rem; font-weight: 650; letter-spacing: .02em;
}
.heros { display: grid; gap: 18px; align-items: center; grid-template-areas: "texte" "ecran" "note"; }
.heros-texte { grid-area: texte; }
.heros .ecran { grid-area: ecran; }
.heros-note { grid-area: note; margin: 0; }
.heros h1 { font-size: clamp(1.75rem, 4.6vw, 2.6rem); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 1rem 0 .4rem; }
.actions .bouton { margin: 0; }
@media (min-width: 900px) {
  .heros { grid-template-columns: 1fr 1.2fr; grid-template-areas: "texte ecran" "note ecran"; column-gap: 44px; row-gap: 0; align-items: end; padding-top: 12px; }
  .heros-note { align-self: start; }
}

/* Le cadre de téléviseur, DESSINÉ : une dalle, un pied — aucune image de téléviseur tierce. */
.ecran { margin: 0; }
.ecran .tele { line-height: 0; }
.ecran .dalle {
  display: block; overflow: hidden; border: 8px solid #1b2130; border-radius: 12px; background: #05070b;
  box-shadow: 0 16px 36px rgba(9, 12, 18, .28);
}
.ecran .dalle img { display: block; width: 100%; height: auto; }
.ecran .tele::after {
  content: ""; display: block; width: 30%; height: 9px; margin: 0 auto; border-radius: 0 0 8px 8px;
  background: #1b2130;
}
.ecran figcaption { margin-top: .55rem; color: var(--muted); font-size: .82rem; line-height: 1.45; text-align: center; }

.section { margin-top: 3rem; }
.section > h2 { font-size: clamp(1.3rem, 3vw, 1.65rem); margin: 0 0 1rem; }
.section > p, .encart { max-width: 46rem; }

ol.etapes { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; counter-reset: etape; }
ol.etapes li {
  counter-increment: etape; margin: 0; padding: 14px 16px 14px 60px; position: relative;
  border: 1px solid var(--line); border-radius: 12px;
}
ol.etapes li::before {
  content: counter(etape); position: absolute; left: 16px; top: 14px; width: 30px; height: 30px;
  border-radius: 50%; background: var(--accent); color: var(--on-accent); font-weight: 700;
  line-height: 30px; text-align: center;
}
ol.etapes h3 { margin: 0 0 .2rem; }
ol.etapes p { margin: 0; }
@media (min-width: 900px) { .large ol.etapes { grid-template-columns: repeat(3, 1fr); } }

.atout { display: grid; gap: 18px; align-items: center; margin: 0 0 2rem; }
.atout h3 { font-size: 1.15rem; margin: 0 0 .3rem; }
@media (min-width: 900px) {
  .atout { grid-template-columns: 1.25fr 1fr; gap: 36px; }
  .atout.inverse .ecran { order: 2; }
}
.cartes { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
@media (min-width: 900px) { .large .cartes { grid-template-columns: repeat(4, 1fr); } }
.carte { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; border-top: 3px solid var(--accent); }
.atout h3 { font-size: 1.25rem; }
ul.credits { padding-inline-start: 1.1rem; }
ul.credits li { margin: .5rem 0; }
.carte h3 { margin: 0 0 .25rem; font-size: 1.02rem; }
.carte p { margin: 0; }

/* Le téléphone de « Comment ça marche » : un combiné dessiné, l'écran est notre page d'appairage. */
.comment { display: grid; gap: 22px; align-items: center; }
.telephone { margin: 0 auto; max-width: 240px; text-align: center; }
.telephone .combine {
  line-height: 0; overflow: hidden; border: 9px solid #1b2130; border-top-width: 22px; border-bottom-width: 26px;
  border-radius: 34px; background: #fff; box-shadow: 0 16px 36px rgba(9, 12, 18, .25);
}
.telephone img { display: block; width: 100%; height: auto; }
.telephone figcaption { margin-top: .6rem; color: var(--muted); font-size: .82rem; line-height: 1.45; }
@media (min-width: 900px) {
  .comment { grid-template-columns: 1fr 260px; gap: 40px; }
  .comment ol.etapes { grid-template-columns: 1fr; }
}
.telephone-aide { float: right; max-width: 160px; margin: .3rem 0 .8rem 1rem; }
@media (max-width: 480px) { .telephone-aide { float: none; margin: .8rem auto; } }
.aide section::after { content: ""; display: table; clear: both; }
.picto { display: block; color: var(--accent-text); margin: 0 0 .45rem; }

/* ── Questions fréquentes : <details>, sans script ──────────────────────────────────────────── */
details { border: 1px solid var(--line); border-radius: 10px; padding: 0 14px; margin: .6rem 0; }
details summary { cursor: pointer; padding: 12px 0; font-weight: 600; }
details[open] summary { border-bottom: 1px solid var(--line); margin-bottom: .4rem; }
details p { margin: .4rem 0 .8rem; }

/* ── Pages d'aide ─────────────────────────────────────────────────────────────────────────── */
.aide h2 { padding-top: .75rem; border-top: 1px solid var(--line); }
nav.sommaire ul { list-style: none; padding: 0; margin: .5rem 0 0; columns: 2 12rem; column-gap: 1.5rem; }
nav.sommaire li { margin: .2rem 0; break-inside: avoid; }

/* ── Pied de page ─────────────────────────────────────────────────────────────────────────── */
.pied {
  max-width: 64rem; margin: 40px auto 0; padding: 20px 16px 32px; border-top: 1px solid var(--line);
  color: var(--muted); font-size: .88rem; text-align: center; line-height: 1.7;
}
.pied p { margin: .25rem 0; }
.pied a { color: var(--muted); }

/* ── Page introuvable ─────────────────────────────────────────────────────────────────────── */
.introuvable section + section { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }

@media print {
  .tete, .saut, nav.sommaire, .pied a.langue { display: none; }
  body { background: #fff; color: #000; font-size: 11pt; }
  a { color: #000; }
  .aide h2 { break-after: avoid; }
  .aide section { break-inside: avoid-page; }
}
