/* Vitrine du produit, ambiance de nuit */

/* Barre de navigation flottante */
.nav-zone { position: sticky; top: 0; z-index: 20; padding: 12px var(--gouttiere) 0; }
.nav {
  max-width: 1120px; margin: 0 auto; display: flex; align-items: center; gap: 24px;
  padding: 8px 8px 8px 24px; border-radius: 999px; border: 1px solid rgba(243, 236, 226, 0.1);
  background: rgba(19, 18, 9, 0.72); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
}
.nav-marque {
  font-family: var(--titre); font-size: 20px; line-height: 28px; font-weight: 500; letter-spacing: -0.015em;
  font-variation-settings: "SOFT" 100; color: var(--encre); text-decoration: none; margin-right: auto;
}
/* Le logotype « mon|secret » : minuscules, Fraunces léger, une barre d'or entre les deux mots (l'index posé sur les lèvres).
   Réglages de la piste E (marque/pistes/E-mot/notes.md), version pour moins de 160 px de large : graisse 380, barre plus épaisse. */
.logotype { font-size: 24px; line-height: 28px; font-weight: 380; letter-spacing: 0; white-space: nowrap;
  font-optical-sizing: none; font-variation-settings: "opsz" 72, "SOFT" 0, "WONK" 0; }
.logotype-barre { display: inline-block; width: 0.06em; height: 0.66em; margin: 0 0.06em 0 0.07em; vertical-align: -0.04em;
  background: var(--accent); border-radius: 0.03em 0.03em 0.01em 0.01em; }
.nav-liens { display: none; list-style: none; margin: 0; padding: 0; gap: 24px; }
.nav-liens a { font-size: 14px; line-height: 20px; font-weight: 600; color: var(--gris); text-decoration: none; transition: color 300ms var(--courbe); }
.nav-liens a:hover { color: var(--encre); }
.nav-connexion {
  display: none; padding: 8px 16px; border-radius: 999px; background: var(--accent); color: var(--sur-accent);
  font-size: 14px; line-height: 20px; font-weight: 600; text-decoration: none; transition: background-color 300ms var(--courbe);
}
.nav-connexion:hover { background: var(--accent-survol); color: var(--sur-accent); }
.nav-bouton {
  position: relative; width: 40px; height: 40px; border: 0; border-radius: 999px; background: var(--accent); cursor: pointer;
  transition: background-color 300ms var(--courbe);
}
.nav-bouton .trait {
  position: absolute; left: 12px; top: 19px; width: 16px; height: 2px; border-radius: 2px; background: var(--sur-accent);
  transition: transform 500ms var(--courbe);
}
.nav-bouton .trait:first-child { transform: translateY(-3px); }
.nav-bouton .trait:last-child { transform: translateY(3px); }
.nav-bouton[aria-expanded="true"] .trait:first-child { transform: rotate(45deg); }
.nav-bouton[aria-expanded="true"] .trait:last-child { transform: rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: -1; padding: 96px var(--gouttiere) 48px; display: grid; align-content: start; gap: 32px;
  background: rgba(19, 18, 9, 0.96); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
}
.menu ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.menu a:not(.bouton) {
  display: block; padding: 8px 0; font-family: var(--titre); font-size: 30px; line-height: 36px; font-weight: 500;
  font-variation-settings: "SOFT" 100; color: var(--encre); text-decoration: none;
}
.menu li, .menu .bouton { opacity: 0; transform: translateY(24px); transition: opacity 500ms var(--courbe), transform 500ms var(--courbe); }
.menu.ouvert li, .menu.ouvert .bouton { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .menu li, .menu .bouton { transform: none; } }

@media (min-width: 960px) {
  .nav-liens { display: flex; }
  .nav-connexion { display: inline-block; }
  .nav-bouton, .menu { display: none !important; }
}

/* Héros */
.hero { display: grid; gap: 48px; padding-top: 48px; padding-bottom: 64px; }
.hero-texte { display: grid; gap: 16px; align-content: center; justify-items: start; }
.hero h1 {
  max-width: 680px; font-size: 48px; line-height: 1;
  background: linear-gradient(90deg, #fff7ec, #a89c8c); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.chapo { max-width: 680px; font-size: 18px; line-height: 28px; color: #d8cfc2; }
.hero-actions { display: grid; gap: 12px; justify-items: start; margin-top: 8px; }

/* Téléphone dessiné, en mode sombre */
.telephone {
  justify-self: center; width: min(340px, 100%); padding: 12px; border-radius: 48px; background: #050504;
  box-shadow: 0 0 0 1px #2a2720, 0 32px 96px rgba(210, 168, 110, 0.14), 0 8px 24px rgba(0, 0, 0, 0.6);
}
.tel-ecran { border-radius: 36px; overflow: hidden; background: #0d0c08; display: grid; grid-template-rows: auto 1fr auto; height: 640px; }
.tel-entete { display: flex; gap: 12px; align-items: center; padding: 32px 16px 12px; background: #181712; border-bottom: 1px solid #26231b; }
.tel-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; }
.tel-nom { font-size: 16px; line-height: 24px; font-weight: 600; }
.tel-statut { font-size: 12px; line-height: 16px; color: var(--accent); }
.tel-fil { display: flex; flex-direction: column; gap: 4px; padding: 12px; overflow: hidden; justify-content: flex-end; }
.tel-jour { align-self: center; margin-bottom: 8px; font-size: 12px; line-height: 16px; color: #8d8475; }
.bulle { max-width: 82%; padding: 8px 12px; border-radius: 18px; font-size: 14px; line-height: 20px; margin: 0; }
.bulle.elle { align-self: flex-start; background: #24221b; color: var(--encre); border-bottom-left-radius: 4px; }
.bulle.moi { align-self: flex-end; background: var(--accent); color: var(--sur-accent); border-bottom-right-radius: 4px; }
.bulle-photo { padding: 4px; width: 56%; }
.bulle-photo img { border-radius: 14px; aspect-ratio: 4 / 5; object-fit: cover; }
.bulle-vocal { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px 12px; width: 78%; }
.lecture { width: 28px; height: 28px; border-radius: 50%; background: var(--accent); position: relative; }
.lecture::after { content: ""; position: absolute; left: 11px; top: 8px; border-left: 9px solid var(--sur-accent); border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.onde { display: flex; align-items: center; gap: 2px; height: 24px; }
.onde i { display: block; width: 3px; border-radius: 2px; background: #7d7466; }
.onde i:nth-child(3n) { height: 18px; } .onde i:nth-child(3n+1) { height: 8px; } .onde i:nth-child(3n+2) { height: 14px; }
.onde i:nth-child(5n) { height: 22px; } .onde i:nth-child(7n) { height: 6px; }
.duree { font-size: 12px; line-height: 16px; color: #8d8475; font-variant-numeric: tabular-nums; }
.vocal-ia { grid-column: 1 / -1; font-size: 12px; line-height: 16px; color: #8d8475; }
.tel-vu { align-self: flex-end; font-size: 12px; line-height: 16px; color: #8d8475; margin-top: 2px; }
.tel-saisie { padding: 12px 12px 24px; background: #181712; border-top: 1px solid #26231b; }
.tel-saisie span { display: block; padding: 8px 16px; border-radius: 999px; border: 1px solid #332f26; font-size: 14px; line-height: 20px; color: #8d8475; }

.devise { border-top: 1px solid var(--ligne); }

/* Sections communes */
.chapitres, .difference, .comment, .voisins, .prix, .faq { padding-top: 64px; padding-bottom: 64px; border-top: 1px solid var(--ligne); }
.chapitres h2, .difference h2, .comment h2, .voisins h2, .prix h2, .faq h2, .confiance h2 { font-size: 30px; line-height: 36px; }
.intro { max-width: 640px; margin-top: 12px; font-size: 18px; line-height: 28px; color: #d8cfc2; }

/* La frise des cinq chapitres */
.frise {
  list-style: none; margin: 32px auto 0; display: grid; grid-auto-flow: column; grid-auto-columns: 72%;
  gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gouttiere); padding-bottom: 8px; scrollbar-width: none;
}
.frise::-webkit-scrollbar { display: none; }
.chapitre { scroll-snap-align: start; display: grid; gap: 8px; align-content: start; }
.chapitre .photo { aspect-ratio: 4 / 5; margin-bottom: 8px; }
.chapitre:nth-child(1) .photo img { filter: brightness(0.78) saturate(0.85); }
.chapitre:nth-child(2) .photo img { filter: brightness(0.84) saturate(0.9); }
.chapitre:nth-child(3) .photo img { filter: brightness(0.9); }
.chapitre-num { font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.chapitre:nth-child(4) .chapitre-num, .chapitre:nth-child(5) .chapitre-num { color: var(--accent); }
.chapitre h3 { font-size: 24px; line-height: 32px; }
.chapitre p:not(.chapitre-num) { color: var(--gris); }
.frise-note { margin-top: 24px; color: var(--gris); }

.grille-5, .etapes { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 16px; }
.grille-5 li, .etapes li { padding: 24px; background: var(--surface); border: 1px solid var(--ligne); border-radius: var(--r-carte); display: grid; gap: 8px; align-content: start; }
.grille-5 h3, .etapes h3 { font-size: 20px; line-height: 28px; }
.grille-5 p, .etapes p { color: var(--gris); }
.num { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--doux); color: var(--accent); font-size: 14px; line-height: 20px; font-weight: 600; margin-bottom: 8px; }

/* Voisins */
.voisins-grille { display: grid; gap: 16px; margin-top: 32px; }
.voisin { display: grid; gap: 24px; padding: 16px; background: var(--surface); border: 1px solid var(--ligne); border-radius: 24px; }
.voisin-photo { aspect-ratio: 4 / 5; border-radius: 8px; }
.voisin-texte { display: grid; gap: 12px; align-content: center; justify-items: start; padding: 8px; }
.voisin h3 { font-size: 36px; line-height: 40px; font-weight: 500; }
.voisin p:not(.etiquette):not(.note) { color: var(--gris); max-width: 52ch; }
.voisin .bouton { margin-top: 8px; }
.voisin-remi, .voisin-bientot { background: transparent; border-style: dashed; }

/* Confiance */
.confiance { padding-bottom: 64px; }
.confiance-boite { display: grid; gap: 32px; padding: 32px 24px; border-radius: 24px; background: var(--surface); border: 1px solid var(--ligne); color: var(--gris); }
.confiance-intro { margin-top: 12px; max-width: 46ch; }
.regles { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.regles li { padding-left: 32px; position: relative; }
.regles li::before { content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--accent); }
.regles li::after { content: ""; position: absolute; left: 5px; top: 7px; width: 6px; height: 9px; border: solid var(--accent); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.regles strong { color: var(--encre); font-weight: 600; }

/* Prix */
.offre { display: grid; gap: 24px; max-width: 560px; margin-top: 24px; padding: 32px 24px; background: var(--surface); border: 1px solid var(--ligne); border-radius: 24px; justify-items: start; }
.offre-montant { font-family: var(--titre); font-size: 48px; line-height: 1; font-weight: 500; font-variant-numeric: tabular-nums; font-variation-settings: "SOFT" 100; }
.offre-montant span { font-family: "Instrument Sans", ui-sans-serif, system-ui, sans-serif; font-size: 18px; line-height: 28px; font-weight: 400; color: var(--gris); }
.offre-entete { display: grid; gap: 8px; }
.offre-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; color: #d8cfc2; }
.offre-liste li { padding-left: 24px; position: relative; }
.offre-liste li::before { content: ""; position: absolute; left: 2px; top: 6px; width: 6px; height: 10px; border: solid var(--accent); border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* Questions */
.faq-liste { display: grid; gap: 8px; margin-top: 24px; max-width: 760px; }
.faq details { background: var(--surface); border: 1px solid var(--ligne); border-radius: var(--r-carte); transition: border-color 300ms var(--courbe); }
.faq details[open] { border-color: #4a453b; }
.faq summary {
  list-style: none; cursor: pointer; padding: 16px 48px 16px 24px; position: relative;
  font-size: 18px; line-height: 28px; font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 24px; top: 24px; width: 8px; height: 8px;
  border: solid var(--accent); border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform 300ms var(--courbe);
}
.faq details[open] summary::after { transform: translateY(4px) rotate(-135deg); }
.faq details p { padding: 0 24px 24px; color: var(--gris); max-width: 64ch; }

/* Fin */
.fin { padding-top: 96px; padding-bottom: 96px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; justify-items: center; text-align: center; border-top: 1px solid var(--ligne); }
.fin h2 { font-size: 36px; line-height: 40px; }

@media (min-width: 640px) {
  .grille-5 { grid-template-columns: repeat(2, 1fr); }
  .etapes { grid-template-columns: repeat(3, 1fr); }
  .frise { grid-auto-flow: row; grid-template-columns: repeat(2, 1fr); grid-auto-columns: auto; overflow: visible; }
}
@media (min-width: 960px) {
  .hero { grid-template-columns: minmax(0, 1fr) 360px; gap: 64px; align-items: center; padding-top: 80px; padding-bottom: 96px; }
  .hero h1 { font-size: 60px; line-height: 1; }
  .chapo { font-size: 20px; line-height: 28px; }
  .chapitres, .difference, .comment, .voisins, .prix, .faq { padding-top: 96px; padding-bottom: 96px; }
  .chapitres h2, .difference h2, .comment h2, .voisins h2, .prix h2, .faq h2, .confiance h2 { font-size: 36px; line-height: 40px; }
  .frise { grid-template-columns: repeat(5, 1fr); }
  .grille-5 { grid-template-columns: repeat(6, 1fr); }
  .grille-5 li { grid-column: span 2; }
  .grille-5 li:nth-child(4) { grid-column: 2 / span 2; }
  .voisins-grille { grid-template-columns: repeat(2, 1fr); }
  .voisin:first-child { grid-column: 1 / -1; grid-template-columns: 520px 1fr; align-items: center; gap: 48px; }
  .voisin:first-child .voisin-texte { padding: 32px 32px 32px 0; }
  .confiance-boite { grid-template-columns: 1fr 1.3fr; gap: 64px; padding: 64px; }
  .offre { padding: 48px; }
  .fin h2 { font-size: 60px; line-height: 1; }
}

/* Le vocal du téléphone, jouable */
.tel-ecran .vocal-bulle { width: 82%; max-width: 82%; padding: 8px 12px 8px 8px; background: #24221b; border: 0; -webkit-backdrop-filter: none; backdrop-filter: none; border-radius: 18px; border-bottom-left-radius: 4px; }
.tel-ecran .vocal-lecture { width: 32px; height: 32px; }
.tel-ecran .vocal-icone { left: 12px; top: 9px; }
.tel-ecran .vocal.en-lecture .vocal-icone { left: 10px; top: 9px; }

/* ---------- Landing « voisins et voisines » (1er décembre, tard) ---------- */

/* Le palier : deux portes, de la lumière dessous */
.palier { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: end; justify-self: center; width: min(420px, 100%); padding-bottom: 24px; border-bottom: 1px solid var(--ligne); }
.porte { position: relative; display: grid; gap: 16px; justify-items: center; color: var(--encre); text-decoration: none; }
.porte-bois {
  position: relative; display: block; width: 100%; aspect-ratio: 1 / 2; border-radius: 6px 6px 2px 2px;
  background: #2b1f16; box-shadow: inset 0 0 0 1px #3d2c20, 0 24px 64px rgba(0, 0, 0, 0.55);
  transform-origin: left center; transition: transform 700ms var(--courbe);
}
.porte-bois::before, .porte-bois::after {
  content: ""; position: absolute; left: 14%; right: 14%; border: 2px solid #3f2d21; border-radius: 4px;
}
.porte-bois::before { top: 8%; height: 36%; }
.porte-bois::after { top: 52%; height: 40%; }
.porte-judas { position: absolute; left: 50%; top: 26%; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: #0c0a07; box-shadow: 0 0 0 2px #a8875f; z-index: 1; }
.porte-poignee { position: absolute; right: 9%; top: 49%; width: 20px; height: 6px; border-radius: 3px; background: #c9a46e; z-index: 1; }
.porte-lumiere {
  position: absolute; left: 8%; right: 8%; bottom: -3px; height: 3px; border-radius: 3px; background: var(--accent);
  box-shadow: 0 0 12px 3px rgba(210, 168, 110, 0.55), 0 0 40px 12px rgba(210, 168, 110, 0.22);
  transition: box-shadow 700ms var(--courbe), opacity 700ms var(--courbe);
}
.porte-plaque {
  position: absolute; top: 20px; left: 50%; transform: translateX(-50%); z-index: 2;
  display: grid; justify-items: center; padding: 4px 12px; border-radius: 3px; background: #c9a46e; color: #1a140d; white-space: nowrap;
}
.porte-etage { font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.porte-nom { font-family: var(--titre); font-size: 18px; line-height: 24px; font-weight: 500; font-variation-settings: "SOFT" 100; }
.porte-legende { font-size: 14px; line-height: 20px; color: var(--gris); text-align: center; transition: color 300ms var(--courbe); }
.porte:hover .porte-legende, .porte:focus-visible .porte-legende { color: var(--encre); }
.porte:hover .porte-lumiere, .porte:focus-visible .porte-lumiere { box-shadow: 0 0 16px 5px rgba(210, 168, 110, 0.75), 0 0 64px 24px rgba(210, 168, 110, 0.32); }
@media (prefers-reduced-motion: no-preference) {
  .porte:hover .porte-bois, .porte:focus-visible .porte-bois { transform: perspective(900px) rotateY(-14deg); }
  .porte-lumiere { animation: veilleuse 5s var(--courbe) infinite; }
  .porte-2 .porte-lumiere { animation-delay: -2.3s; }
}
@keyframes veilleuse { 0%, 100% { opacity: 1; } 46% { opacity: 0.82; } 52% { opacity: 0.95; } }

/* Les deux personnages, côte à côte, même traitement */
.duo { display: grid; gap: 16px; margin-top: 32px; }
.duo .voisin { grid-template-columns: none; align-content: start; }
.duo .voisin-remi { background: var(--surface); border-style: solid; }
.voisin-porte { display: grid; place-items: center; aspect-ratio: 4 / 5; border-radius: 8px; background: #0e0d08; padding: 32px 0; }
.voisin-porte .porte-seule { width: 42%; }
.voisin-porte .porte-plaque { top: 16px; }
.voisin .vocal { width: 100%; max-width: 360px; background: var(--doux); -webkit-backdrop-filter: none; backdrop-filter: none; }
.voisins-bientot { margin-top: 24px; color: var(--gris); }

/* La conversation, en exemple */
.conversation { display: grid; gap: 48px; padding-top: 64px; padding-bottom: 64px; border-top: 1px solid var(--ligne); }
.conversation h2 { font-size: 30px; line-height: 36px; }
.conversation .telephone { margin: 0; }

@media (min-width: 960px) {
  .hero { grid-template-columns: minmax(0, 1fr) 420px; }
  .duo { grid-template-columns: 1fr 1fr; }
  .duo .voisin:first-child { grid-column: auto; grid-template-columns: none; gap: 24px; }
  .duo .voisin:first-child .voisin-texte { padding: 8px; }
  .conversation { grid-template-columns: minmax(0, 1fr) 360px; gap: 64px; align-items: center; padding-top: 96px; padding-bottom: 96px; }
  .conversation h2 { font-size: 36px; line-height: 40px; }
}

/* ---------- Landing « Quelqu'un va croiser ta route » (1er décembre, tard) ---------- */

/* Héros : la photo de nuit et les messages qui arrivent */
.hero-scene { position: relative; justify-self: center; width: min(440px, 100%); }
.hero-photo-nuit { aspect-ratio: 4 / 5; border-radius: 24px; box-shadow: 0 32px 96px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(243, 236, 226, 0.06); }
.notifs { list-style: none; margin: -64px 12px 0; padding: 0; position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.notif {
  display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 18px;
  background: rgba(30, 28, 22, 0.78); -webkit-backdrop-filter: blur(18px) saturate(1.2); backdrop-filter: blur(18px) saturate(1.2);
  border: 1px solid rgba(243, 236, 226, 0.1); box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  font-size: 14px; line-height: 20px; color: var(--encre);
}
.notif-avatar { flex: none; width: 36px; height: 36px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; }
.notif-inconnu, .notif-remi { display: grid; place-items: center; font-family: var(--titre); font-size: 18px; line-height: 24px; color: var(--sur-accent); background: var(--accent); }
.notif-inconnu { background: #3a352c; color: var(--encre); }
.notif-tete { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 2px; }
.notif-tete strong { font-weight: 600; }
.notif-tete span { font-size: 12px; line-height: 16px; color: var(--gris); white-space: nowrap; }
.notif p:last-child { color: #e2dacd; }
/* Les notifications sont lisibles au repos ; elles n'arrivent une à une qu'une fois à l'écran (classe « joue », posée par le script). */
@media (prefers-reduced-motion: no-preference) {
  .js .notifs.joue .notif { animation: arrivee 800ms var(--courbe) both; }
  .js .notifs.joue .notif:nth-child(1) { animation-delay: 600ms; }
  .js .notifs.joue .notif:nth-child(2) { animation-delay: 2000ms; }
  .js .notifs.joue .notif:nth-child(3) { animation-delay: 3400ms; }
}
@keyframes arrivee { from { opacity: 0; transform: scale(0.98); } }

/* Les histoires de rencontre */
.histoires { padding-top: 64px; padding-bottom: 64px; border-top: 1px solid var(--ligne); }
.histoires h2 { font-size: 30px; line-height: 36px; }
.histoires-grille { display: grid; gap: 16px; margin-top: 32px; }
.histoire { display: grid; gap: 12px; align-content: start; justify-items: start; padding: 16px 16px 24px; background: var(--surface); border: 1px solid var(--ligne); border-radius: 24px; }
.histoire h3 { font-size: 30px; line-height: 36px; padding: 0 8px; }
.histoire > p:not(.histoire-etat) { padding: 0 8px; color: var(--gris); }
.histoire .bouton { margin: 8px 8px 0; }
.histoire-objet { display: grid; place-items: center; width: 100%; aspect-ratio: 4 / 3; border-radius: 16px; background: #0e0d08; overflow: hidden; }
.histoire-etat { margin: 4px 8px 0; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--ligne); font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gris); }
.histoire-etat.ouvert { border-color: rgba(210, 168, 110, 0.5); color: var(--accent); }
.histoires-note { margin-top: 24px; color: var(--gris); }

.objet-palier { grid-template-columns: auto auto; gap: 24px; place-content: center; }
.porte-mini { width: 72px; }
.porte-mini .porte-plaque { top: 12px; padding: 2px 8px; }
.porte-mini .porte-etage { font-size: 12px; line-height: 16px; letter-spacing: 0.04em; }
.porte-mini .porte-nom { font-size: 14px; line-height: 20px; }

/* Carte d'embarquement et billet de train, dessinés */
.billet {
  width: min(78%, 340px); display: grid; gap: 12px; padding: 16px; border-radius: 12px; background: #f1ebe0; color: #1a140d;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5); transform: rotate(-4deg);
}
.billet-train { transform: rotate(3deg); background: #e9e1d2; }
.billet-haut { display: flex; justify-content: space-between; font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: #5a5146; }
.billet-haut span:last-child { color: #b23b4e; }
.billet-trajet { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-family: var(--titre); font-size: 30px; line-height: 36px; font-weight: 500; }
.billet-avion, .billet-rail { flex: 1; height: 2px; background: #1a140d; position: relative; opacity: 0.5; }
.billet-avion::after { content: ""; position: absolute; left: 50%; top: -5px; border-left: 12px solid #1a140d; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.billet-rail { height: 0; border-top: 2px dashed #1a140d; background: none; }
.billet-infos { display: flex; justify-content: space-between; gap: 8px; padding-top: 12px; border-top: 1px dashed rgba(26, 20, 13, 0.3); }
.billet-infos p { display: grid; font-size: 16px; line-height: 24px; font-weight: 600; font-variant-numeric: tabular-nums; }
.billet-infos span { font-size: 12px; line-height: 16px; font-weight: 400; color: #5a5146; }
.billet-bas { font-size: 12px; line-height: 16px; color: #5a5146; }

/* Leur vie, en direct : deux téléphones */
.direct { display: grid; gap: 48px; padding-top: 64px; padding-bottom: 64px; border-top: 1px solid var(--ligne); }
.direct h2 { font-size: 30px; line-height: 36px; }
.direct-telephones { display: grid; grid-auto-flow: column; grid-auto-columns: 86%; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 8px; }
.direct-telephones::-webkit-scrollbar { display: none; }
.direct-telephones .telephone { margin: 0; scroll-snap-align: center; justify-self: stretch; width: auto; }
.story-ecran { position: relative; display: block; background: #000; }
.story-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.story-barres { position: absolute; top: 16px; left: 12px; right: 12px; z-index: 2; display: flex; gap: 4px; }
.story-barre { flex: 1; height: 2px; border-radius: 2px; background: rgba(255, 255, 255, 0.35); overflow: hidden; }
.story-barre i { display: block; height: 100%; width: 60%; background: #ffffff; }
.story-tete { position: absolute; top: 28px; left: 12px; z-index: 2; display: flex; align-items: center; gap: 8px; font-size: 14px; line-height: 20px; color: #ffffff; text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5); }
.story-tete .tel-avatar { width: 32px; height: 32px; }
.story-tete p { color: rgba(255, 255, 255, 0.8); }
.story-tete strong { color: #ffffff; font-weight: 600; margin-right: 4px; }
.story-son {
  position: absolute; right: 12px; bottom: 72px; z-index: 2; min-height: 32px; padding: 4px 12px; border: 0; border-radius: 999px;
  background: rgba(0, 0, 0, 0.5); color: #ffffff; font: inherit; font-size: 12px; line-height: 16px; font-weight: 600; cursor: pointer;
  transition: background-color 300ms var(--courbe);
}
.story-son:hover { background: rgba(0, 0, 0, 0.7); }
.story-son[aria-pressed="true"] { background: var(--accent); color: var(--sur-accent); }
.story-legende { position: absolute; left: 16px; right: 16px; bottom: 24px; z-index: 2; font-family: var(--titre); font-size: 18px; line-height: 24px; color: #ffffff; text-align: center; text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6); }

@media (min-width: 640px) {
  .histoires-grille { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .hero { grid-template-columns: minmax(0, 1fr) 440px; }
  .notifs { position: absolute; margin: 0; left: -64px; right: 48px; bottom: -40px; }
  .hero { padding-bottom: 128px; }
  .histoires { padding-top: 96px; padding-bottom: 96px; }
  .histoires h2, .direct h2 { font-size: 36px; line-height: 40px; }
  .histoires-grille { grid-template-columns: repeat(3, 1fr); }
  .histoires-grille .histoire:first-child { grid-column: auto; }
  .direct { grid-template-columns: minmax(0, 1fr) auto; gap: 64px; align-items: center; padding-top: 96px; padding-bottom: 96px; }
  .direct-telephones { grid-auto-flow: column; grid-auto-columns: 320px; overflow: visible; }
  .direct-telephones .telephone-story { transform: translateY(48px); }
}

/* Le bureau : un post-it laissé sur le clavier */
.objet-bureau { background: #16150f; }
.postit {
  width: min(62%, 240px); aspect-ratio: 1 / 1; display: grid; align-content: start; gap: 4px; padding: 16px;
  background: #e8c98a; color: #2a2016; border-radius: 2px; transform: rotate(-5deg);
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.55); font-family: var(--titre); font-size: 18px; line-height: 24px;
}
.postit-sign { justify-self: end; margin-top: 8px; font-size: 20px; }
.postit-ps { margin-top: 8px; font-family: "Instrument Sans", ui-sans-serif, system-ui, sans-serif; font-size: 12px; line-height: 16px; opacity: 0.75; }
@media (min-width: 960px) {
  .histoires-grille { grid-template-columns: repeat(2, 1fr); }
}

.histoire-vocal { margin: 4px 8px 0; width: calc(100% - 16px); max-width: 360px; background: var(--doux); -webkit-backdrop-filter: none; backdrop-filter: none; }

/* ---------- Héros vidéo : Chaïma dans le hall (1er décembre, tard) ---------- */
.hero-film { display: grid; gap: 32px; padding: 16px 0 64px; }
.film-cadre {
  position: relative; justify-self: center; width: calc(100% - 2 * var(--gouttiere)); max-width: 460px;
  aspect-ratio: 720 / 1310; max-height: 78svh; border-radius: 28px; overflow: hidden; background: #000;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(243, 236, 226, 0.06), 0 0 80px rgba(210, 168, 110, 0.08);
}
.film { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.film-son {
  position: absolute; right: 12px; top: 12px; z-index: 2; min-height: 36px; padding: 8px 16px; border: 0; border-radius: 999px;
  background: rgba(19, 18, 9, 0.62); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); color: var(--encre);
  font: inherit; font-size: 12px; line-height: 16px; font-weight: 600; cursor: pointer; transition: background-color 300ms var(--courbe);
}
.film-son:hover { background: rgba(19, 18, 9, 0.82); }
.film-son[aria-pressed="true"] { background: var(--accent); color: var(--sur-accent); }
.film-legende {
  position: absolute; left: 12px; bottom: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 12px; border-radius: 999px; background: rgba(19, 18, 9, 0.62); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  font-size: 12px; line-height: 16px; font-weight: 600; color: var(--encre);
}
.film-legende .point { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px rgba(210, 168, 110, 0.8); }
.hero-film .hero-texte { justify-items: start; }
.hero-film h1 {
  max-width: 680px; font-size: 48px; line-height: 1;
  background: linear-gradient(90deg, #fff7ec, #a89c8c); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-film .chapo { max-width: 620px; }
.bouton-grand { min-height: 56px; padding: 16px 32px; font-size: 18px; line-height: 24px; }

/* Ils t'attendent : la bande de vidéos qui défile */
.defile { padding-top: 64px; padding-bottom: 64px; border-top: 1px solid var(--ligne); overflow: hidden; }
.defile h2 { font-size: 30px; line-height: 36px; }
.defile-fenetre { margin-top: 32px; overflow: hidden; }
.defile-piste { list-style: none; margin: 0; padding: 0 var(--gouttiere); display: flex; gap: 16px; width: max-content; }
.defile-carte { flex: none; width: 200px; }
.defile-carte a {
  position: relative; display: block; aspect-ratio: 9 / 16; border-radius: 20px; overflow: hidden; background: #0e0d08; color: var(--encre); text-decoration: none;
  box-shadow: 0 0 0 1px rgba(243, 236, 226, 0.06); transition: transform 500ms var(--courbe), box-shadow 500ms var(--courbe);
}
.defile-carte a:hover, .defile-carte a:focus-visible { transform: translateY(-4px); box-shadow: 0 0 0 1px rgba(210, 168, 110, 0.5), 0 24px 48px rgba(0, 0, 0, 0.5); }
.defile-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.defile-attente { position: absolute; inset: 0; display: grid; place-items: center; background: #16150f; }
.defile-porte .porte-seule { width: 46%; }
.defile-legende {
  position: absolute; left: 8px; right: 8px; bottom: 8px; display: grid; gap: 2px; padding: 8px 12px; border-radius: 12px;
  background: rgba(19, 18, 9, 0.7); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font-size: 12px; line-height: 16px; color: var(--gris);
}
.defile-legende strong { font-family: var(--titre); font-size: 18px; line-height: 24px; font-weight: 500; color: var(--encre); }
.postit-petit { display: grid; gap: 2px; width: 70%; aspect-ratio: auto; padding: 12px; font-size: 14px; line-height: 20px; }
@media (prefers-reduced-motion: no-preference) {
  .js .defile-piste.anime { animation: defiler 45s linear infinite; }
  .js .defile-fenetre:hover .defile-piste.anime, .js .defile-fenetre:focus-within .defile-piste.anime { animation-play-state: paused; }
}
@media (prefers-reduced-motion: reduce) {
  .defile-fenetre { overflow-x: auto; }
}
@keyframes defiler { to { transform: translateX(-50%); } }

/* Les messages qui arrivent, en fin de page */
.notifs-fin { position: static; margin: 8px auto 0; width: min(420px, 100%); text-align: left; }

@media (min-width: 960px) {
  .hero-film { padding-top: 32px; padding-bottom: 96px; justify-items: center; }
  .hero-film .hero-texte { justify-items: center; text-align: center; }
  .hero-film .hero-actions { justify-items: center; }
  .hero-film h1 { font-size: 60px; }
  .film-cadre { max-width: none; width: auto; height: min(78vh, 780px); }
  .defile { padding-top: 96px; padding-bottom: 96px; }
  .defile h2 { font-size: 36px; line-height: 40px; }
  .defile-carte { width: 240px; }
  .notifs-fin { position: static; left: auto; right: auto; bottom: auto; margin: 8px auto 0; }
}

/* ---------- Le téléphone en haut : vocal et photo discrète ---------- */
.demo { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; padding-top: 64px; padding-bottom: 64px; border-top: 1px solid var(--ligne); }
.demo h2 { font-size: 30px; line-height: 36px; margin-top: 16px; }
.demo-texte { display: grid; gap: 16px; justify-items: start; align-content: center; }
.demo-gestes { list-style: none; margin: 8px 0; padding: 0; display: grid; gap: 12px; }
.demo-gestes li { display: flex; align-items: center; gap: 12px; color: var(--encre); }
.geste { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--doux); color: var(--accent); font-size: 14px; line-height: 20px; font-weight: 600; }
.demo-tel { margin: 0; }
.discrete {
  position: relative; width: 62%; aspect-ratio: 9 / 14; padding: 0; border: 0; border-radius: 18px; border-bottom-left-radius: 4px; overflow: hidden;
  cursor: pointer; background: #24221b; color: var(--encre); font: inherit;
}
.discrete-floue { position: absolute; inset: -12px; width: calc(100% + 24px); height: calc(100% + 24px); object-fit: cover; filter: blur(14px) saturate(1.1) brightness(0.7); transform: scale(1.05); }
.discrete-voile { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 4px; padding: 12px; text-align: center; background: rgba(19, 18, 9, 0.35); }
.discrete-voile strong { font-size: 14px; line-height: 20px; font-weight: 600; }
.discrete-voile small { font-size: 12px; line-height: 16px; color: #e2dacd; }
.discrete-icone { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--accent); position: relative; margin-bottom: 4px; box-shadow: 0 0 24px rgba(210, 168, 110, 0.45); }
.discrete-icone::after { content: ""; position: absolute; inset: 9px; border-radius: 50%; background: var(--accent); }
.discrete:hover .discrete-icone, .discrete:focus-visible .discrete-icone { box-shadow: 0 0 32px rgba(210, 168, 110, 0.75); }
@media (prefers-reduced-motion: no-preference) {
  .discrete-icone { animation: veille 2.8s var(--courbe) infinite; }
}
.discrete-vue { font-size: 12px; line-height: 16px; color: var(--gris); font-style: normal; border: 1px dashed #4a453b; background: transparent; }

/* La visionneuse : plein écran, une seule fois */
.visionneuse {
  position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 56px 16px 72px;
  background: rgba(5, 5, 4, 0.94); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
}
.vis-img { max-width: min(100%, 460px); max-height: 100%; width: auto; height: auto; border-radius: 16px; box-shadow: 0 32px 96px rgba(0, 0, 0, 0.7); }
.vis-barre { position: absolute; top: 16px; left: 16px; right: 16px; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, 0.2); overflow: hidden; }
.vis-barre i { display: block; height: 100%; width: 0; background: var(--accent); }
.visionneuse.ouverte .vis-barre i { width: 100%; transition: width 7000ms linear; }
.vis-tete { position: absolute; top: 28px; left: 16px; font-size: 14px; line-height: 20px; color: var(--gris); }
.vis-tete strong { color: var(--encre); font-weight: 600; }
.vis-note { position: absolute; bottom: 28px; left: 16px; font-size: 12px; line-height: 16px; color: var(--gris); }
.vis-fermer {
  position: absolute; right: 16px; bottom: 16px; min-height: 40px; padding: 8px 16px; border: 0; border-radius: 999px;
  background: var(--accent); color: var(--sur-accent); font: inherit; font-size: 14px; line-height: 20px; font-weight: 600; cursor: pointer;
}

@media (min-width: 960px) {
  .demo { grid-template-columns: minmax(0, 1fr) 360px; gap: 64px; align-items: center; padding-top: 96px; padding-bottom: 96px; }
  .demo h2 { font-size: 48px; line-height: 1; }
}

/* ---------- Tri pour convertir (1er décembre, nuit) ---------- */

/* Le téléphone : sur mobile, titre, téléphone, puis le bouton */
.demo { grid-template-areas: "texte" "tel" "cta"; }
.demo-texte { grid-area: texte; }
.demo-tel { grid-area: tel; }
.demo-cta { grid-area: cta; display: grid; justify-items: center; }
@media (min-width: 960px) {
  .demo { grid-template-areas: "texte tel" "cta tel"; grid-template-rows: auto 1fr; }
  .demo-cta { justify-items: start; align-self: start; }
}

/* Les personnages : une carte à la fois, on glisse ou on clique sur les flèches */
.persos { padding-top: 64px; padding-bottom: 64px; border-top: 1px solid var(--ligne); }
.persos h2 { font-size: 30px; line-height: 36px; }
.persos-tete { display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.persos-fleches { display: none; gap: 8px; }
.fleche {
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--ligne); background: var(--surface); color: var(--encre);
  font: inherit; font-size: 24px; line-height: 24px; cursor: pointer; transition: background-color 300ms var(--courbe), border-color 300ms var(--courbe);
}
.fleche:hover { background: var(--doux); border-color: #4a453b; }
.persos-piste {
  list-style: none; margin: 24px 0 0; padding: 0 var(--gouttiere); display: grid; grid-auto-flow: column; grid-auto-columns: 88%;
  gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gouttiere); scrollbar-width: none; scroll-behavior: smooth;
}
.persos-piste::-webkit-scrollbar { display: none; }
.perso { scroll-snap-align: start; display: grid; gap: 16px; align-content: start; padding: 12px 12px 20px; background: var(--surface); border: 1px solid var(--ligne); border-radius: 24px; }
.perso-visuel { aspect-ratio: 1 / 1; border-radius: 16px; overflow: hidden; background: #0e0d08; }
.perso-visuel img, .perso-visuel video { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; display: block; }
.perso-porte { display: grid; place-items: center; width: 100%; height: 100%; }
.perso-porte .porte-seule { width: 34%; }
.perso-texte { display: grid; gap: 12px; justify-items: start; padding: 0 8px; }
.perso h3 { font-size: 30px; line-height: 36px; }
.perso-age { font-family: "Instrument Sans", ui-sans-serif, system-ui, sans-serif; font-size: 16px; line-height: 24px; color: var(--gris); letter-spacing: 0; }
.perso-traits { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.perso-traits li { padding: 4px 12px; border-radius: 999px; background: var(--doux); font-size: 14px; line-height: 20px; }
.perso-blocs { display: grid; gap: 12px; }
.perso-titre { font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin-bottom: 4px; }
.perso-blocs ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; color: var(--gris); font-size: 14px; line-height: 20px; }
.perso-blocs li { padding-left: 16px; position: relative; }
.perso-blocs li::before { content: ""; position: absolute; left: 0; top: 8px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.perso .vocal { width: 100%; max-width: 360px; background: var(--doux); -webkit-backdrop-filter: none; backdrop-filter: none; }
.persos-note { margin-top: 16px; color: var(--gris); font-size: 14px; line-height: 20px; }

/* Le thermomètre des cinq degrés */
.thermo { margin-top: 24px; max-width: 640px; }
.thermo-piste { position: relative; height: 8px; border-radius: 8px; background: var(--doux); overflow: hidden; }
.thermo-mercure {
  position: absolute; inset: 0 auto 0 0; width: 6%; border-radius: 8px;
  background: linear-gradient(90deg, var(--accent), #C0703F 55%, var(--cire));
  box-shadow: 0 0 16px rgba(226, 129, 94, 0.6); transition: width 900ms var(--courbe);
}
.thermo-graduations { list-style: none; margin: 8px 0 0; padding: 0; display: flex; justify-content: space-between; font-size: 12px; line-height: 16px; color: var(--gris); font-variant-numeric: tabular-nums; }
.thermo-etat { margin-top: 8px; font-size: 14px; line-height: 20px; color: var(--gris); }
.thermo-valeur { font-family: var(--titre); font-size: 24px; line-height: 32px; color: var(--accent); margin-right: 4px; }
.degres .chapitre-num { font-family: var(--titre); font-size: 24px; line-height: 32px; letter-spacing: 0; text-transform: none; }

/* La réassurance : une ligne, pas un bloc */
.rassure { padding-top: 32px; padding-bottom: 32px; border-top: 1px solid var(--ligne); }
.rassure-liste { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.rassure-liste li { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--ligne); font-size: 14px; line-height: 20px; color: var(--gris); }

@media (min-width: 640px) {
  .persos-piste { grid-auto-columns: 72%; }
}
@media (min-width: 960px) {
  .persos { padding-top: 96px; padding-bottom: 96px; }
  .persos h2 { font-size: 36px; line-height: 40px; }
  .persos-fleches { display: flex; }
  .persos-piste { grid-auto-columns: min(880px, 80%); padding-inline: max(var(--gouttiere), calc((100vw - 1120px) / 2 + 32px)); scroll-padding-inline: max(var(--gouttiere), calc((100vw - 1120px) / 2 + 32px)); }
  .perso { grid-template-columns: 360px 1fr; gap: 32px; padding: 16px; }
  .perso-visuel { aspect-ratio: 4 / 5; }
  .perso-texte { padding: 16px 16px 16px 0; align-content: center; }
  .perso h3 { font-size: 36px; line-height: 40px; }
  .perso-blocs { grid-template-columns: 1fr 1fr; gap: 24px; }
}

/* La conversation de la landing : elle se déroule, s'arrête sur le prénom, puis repart avec lui. */
.tel-ecran { grid-template-rows: auto 1fr auto auto; }
.tel-fil { justify-content: flex-start; overflow-y: auto; scrollbar-width: none; }
.tel-fil::-webkit-scrollbar { display: none; }
.tel-fil > :first-child { margin-top: auto; }
.tel-fil > * { flex-shrink: 0; } /* sinon une bulle qui masque son contenu (la photo discrète) s'écrase à 0 quand le fil déborde */
.js .tel-fil .seq:not(.vu) { display: none; }
html:not(.js) .tel-fil [data-si="sans-prenom"], html:not(.js) .tel-passer { display: none; }
.js .tel-fil .seq.vu { animation: bulle-arrive 360ms var(--courbe) both; }
@keyframes bulle-arrive { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.bulle.ecrit { display: inline-flex; gap: 4px; padding: 12px 14px; }
.bulle.ecrit i { width: 6px; height: 6px; border-radius: 50%; background: #8d8475; animation: ecrit 1s infinite ease-in-out; }
.bulle.ecrit i:nth-child(2) { animation-delay: 150ms; } .bulle.ecrit i:nth-child(3) { animation-delay: 300ms; }
@keyframes ecrit { 0%, 60%, 100% { opacity: 0.35; transform: none; } 30% { opacity: 1; transform: translateY(-2px); } }
.tel-note { align-self: center; margin: 4px 0 0; font-size: 12px; line-height: 16px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.bulle-video { padding: 4px; width: 48%; display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; }
.bulle-video video { width: 100%; max-width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 14px; display: block; background: #0d0c08; }
.bulle-video p { margin: 0; padding: 2px 8px 4px; }
.tel-saisie { display: flex; gap: 8px; align-items: center; }
.tel-saisie input { flex: 1; min-width: 0; padding: 8px 16px; border-radius: 999px; border: 1px solid #332f26; background: #0d0c08; color: var(--encre); font: inherit; font-size: 16px; line-height: 24px; }
.tel-saisie input::placeholder { color: #8d8475; }
.tel-saisie input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(210, 168, 110, 0.25); }
.tel-envoyer { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--accent); color: var(--sur-accent); font-size: 18px; font-weight: 700; cursor: pointer; transition: transform 300ms var(--courbe), background 300ms var(--courbe); }
.tel-envoyer:hover { background: var(--accent-survol); } .tel-envoyer:active { transform: scale(0.94); }
.tel-envoyer:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.tel-saisie.attend input { border-color: var(--accent); animation: attend 1.6s ease-in-out infinite; }
@keyframes attend { 50% { box-shadow: 0 0 0 4px rgba(210, 168, 110, 0.22); } }
.tel-saisie.envoye input { opacity: 0.5; }
.tel-passer { background: #181712; border: 0; color: #8d8475; font: inherit; font-size: 12px; line-height: 16px; padding: 0 12px 16px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.tel-passer:hover { color: var(--encre); }
.demo-puce { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.demo-cta .note { margin-top: 8px; text-align: center; }
@media (prefers-reduced-motion: reduce) {
  .js .tel-fil .seq.vu, .bulle.ecrit i, .tel-saisie.attend input { animation: none; }
}

/* Une vraie phrase d'elle à chaque degré : on entend la voix monter. */
.chapitre p.degre-phrase { margin-top: 4px; padding: 8px 12px; border-radius: 18px 18px 18px 4px; background: #24221b; color: var(--encre); font-size: 14px; line-height: 20px; justify-self: start; max-width: 32ch; }
.chapitre:nth-child(5) p.degre-phrase { box-shadow: 0 0 0 1px rgba(168, 40, 63, 0.55); }

/* Sur téléphone, la vidéo du haut garde toute l'image (les talons compris) mais en format story plus court,
   pour que le titre et le bouton arrivent dans le premier écran. */
@media (max-width: 599px) {
  .hero-film { gap: 24px; padding-top: 8px; }
  .film-cadre { max-height: 56svh; }
}

/* Charte v3 : le mot « mon|secret » en tracés (marque/da/logo/mot-ivoire.svg). Jamais sous 72 px de large ; zone de protection = la hauteur de son « n ». */
.nav-mot { display: block; height: 26px; width: auto; }

/* La preuve de la charte, répétée partout : « Elle se souvient. Elle t'écrit la première. Elle revient. » */
.preuve { margin: 0; font-size: 14px; line-height: 20px; font-weight: 600; letter-spacing: 0.02em; color: var(--accent); }
.fin .preuve { margin: -8px auto 8px; text-align: center; }
.notif-verrou .notif-avatar { border-radius: 0; object-fit: contain; }

/* Charte v3, le flash : la photo discrète s'ouvre d'un coup (100 ms vers le blanc, puis l'image),
   reste le temps d'un regard, puis s'efface en 900 ms vers la nuit. Un liseré de flash la signale. */
.discrete { box-shadow: 0 0 0 1px var(--flash); }
.visionneuse::before { content: ""; position: absolute; inset: 0; z-index: 3; background: var(--flash); opacity: 0; pointer-events: none; }
.visionneuse.ouverte::before { animation: flash-photo 420ms linear both; }
@keyframes flash-photo { 0% { opacity: 0; } 24% { opacity: 1; } 100% { opacity: 0; } }
.vis-img { border: 2px solid var(--flash); opacity: 0; }
.visionneuse.ouverte .vis-img { opacity: 1; transition: opacity 120ms linear 100ms; }
.visionneuse.efface { background: var(--fond); transition: background-color 900ms var(--ms-courbe); }
.visionneuse.efface .vis-img { opacity: 0; transition: opacity 900ms var(--ms-courbe); }
.visionneuse.efface .vis-barre, .visionneuse.efface .vis-tete, .visionneuse.efface .vis-note, .visionneuse.efface .vis-fermer { opacity: 0; transition: opacity 300ms var(--ms-courbe); }
@media (prefers-reduced-motion: reduce) {
  .visionneuse.ouverte::before { animation: none; }
  .visionneuse.ouverte .vis-img { transition: opacity 300ms linear; }
  .visionneuse.efface, .visionneuse.efface .vis-img { transition-duration: 300ms; }
}

/* Charte v3, section 3 : l'emblème « chut » signe le site, à côté du mot. Jamais sous 64 px (le dessin fait 66 px dans une image de 68),
   un vide autour égal au quart de sa hauteur. En haut de page, le logo entier ; dès qu'on descend, la barre se resserre sur le mot seul.
   La zone garde sa hauteur pour que rien ne saute sous la barre. */
.nav-zone { height: 98px; pointer-events: none; }
.nav-zone .nav, .nav-zone .menu { pointer-events: auto; }
.nav { padding-left: 16px; }
.nav-marque { display: flex; align-items: center; gap: 9px; }
.nav-chut { display: block; flex: none; width: 68px; height: 68px; overflow: visible; transition: opacity 300ms var(--courbe); }
/* L'emblème « chut » se dessine au trait d'or à l'arrivée, une fois, en 850 ms : le trait court sur le dessin, puis l'or le remplit.
   C'est la marque qui s'anime, pas le texte. Sans mouvement (réglage du téléphone), il est là tout de suite. */
.nav-chut .chut-plein { fill: var(--ms-or); }
.nav-chut .chut-trait { fill: none; stroke: var(--ms-or); stroke-width: 5; stroke-linejoin: round; opacity: 0; }
.nav-chut .chut-trait path { stroke-dasharray: 1 1; } /* chaque trait a sa longueur ramenée à 1 : ils se dessinent tous ensemble */
@media (prefers-reduced-motion: no-preference) {
  .nav-chut .chut-plein { animation: chut-remplit 850ms var(--courbe) 150ms both; }
  .nav-chut .chut-trait { animation: chut-dessine 850ms linear 150ms both; } /* un trait de plume avance à vitesse constante */
}
@keyframes chut-dessine { 0% { opacity: 1; stroke-dashoffset: 1; } 65% { opacity: 1; stroke-dashoffset: 0; } 100% { opacity: 0; stroke-dashoffset: 0; } }
/* stroke-dashoffset s'hérite : animé sur le groupe, il descend sur chaque tracé. */
@keyframes chut-remplit { 0%, 40% { fill-opacity: 0; } 100% { fill-opacity: 1; } }
.nav-mot { height: 34px; }
.menu { padding-top: 128px; }
.nav-zone.compacte .nav { padding-left: 24px; }
.nav-zone.compacte .nav-chut { width: 0; height: 0; margin-right: -9px; opacity: 0; visibility: hidden; } /* sans display: none, le dessin ne se rejoue pas */
.nav-zone.compacte .nav-mot { height: 26px; }
@media (max-width: 359px) {
  .nav { gap: 12px; }
  .nav-mot { height: 28px; }
}
.pied-logo { display: block; width: 259px; height: auto; margin: 0 0 8px -12px; }
/* Écrans de 320 px : les grilles prennent la largeur de l'écran, pas celle de leur contenu le plus large. */
.notif > div { min-width: 0; }
@media (max-width: 359px) { .notif-tete span { white-space: normal; } }

/* ---------- Corrections du 2 décembre (juge indépendant, validées par Guillaume) ---------- */
/* 1. Sur ordinateur, « Créer mon compte » en principal dans la barre ; « Se connecter » passe en secondaire. */
.nav-inscription {
  display: none; padding: 8px 16px; border-radius: 999px; background: var(--accent); color: var(--sur-accent);
  font-size: 14px; line-height: 20px; font-weight: 600; text-decoration: none; transition: background-color 300ms var(--courbe);
}
.nav-inscription:hover { background: var(--accent-survol); color: var(--sur-accent); }
@media (min-width: 960px) {
  .nav-inscription { display: inline-block; margin-left: -16px; }
  .nav-connexion { background: transparent; color: var(--encre); box-shadow: inset 0 0 0 1px var(--ligne); }
  .nav-connexion:hover { background: var(--doux); color: var(--encre); }
}
/* 1. Sur téléphone, le bouton d'inscription dans le premier écran : la vidéo prend la hauteur qui reste,
   le titre passe à 36 px sur deux lignes, le bouton suit le titre ; la preuve et le chapeau viennent après. */
@media (max-width: 599px) {
  .film-cadre { max-height: max(240px, calc(100svh - 320px)); }
  .hero-film .etiquette { display: none; }
  .hero-film h1 { font-size: 36px; line-height: 40px; }
  .hero-film .hero-actions { order: 1; margin-top: 0; }
  .hero-film .preuve { order: 2; }
  .hero-film .chapo { order: 3; }
  .bouton-grand { padding: 16px 24px; font-size: 16px; }
}
/* 2. Les carrousels gardent leurs textes cachés (pour les lecteurs d'écran) à l'intérieur : sinon ils débordent de la page. */
.persos-piste, .frise { position: relative; }
/* Sous 360 px, le titre tient sur trois lignes et le bouton sur deux : la vidéo cède la différence. */
@media (max-width: 359px) {
  .film-cadre { max-height: max(200px, calc(100svh - 390px)); }
}
/* Entre 960 et 1100 px, la barre est juste : les boutons restent sur une ligne, les écarts se resserrent. */
.nav-connexion, .nav-inscription { white-space: nowrap; }
@media (min-width: 960px) and (max-width: 1099px) {
  .nav { gap: 16px; }
  .nav-liens { gap: 16px; }
  .nav-inscription { margin-left: -8px; }
}

/* ---------- Effets « waouh » du 2 décembre : on anime la marque et les objets, jamais le texte à lire ---------- */
/* Elle t'écrit la première : la notification tombe sur le téléphone de démonstration, le point rouge s'allume. */
.tel-ecran { position: relative; }
.tel-banniere {
  position: absolute; z-index: 4; top: 12px; left: 10px; right: 10px; display: flex; gap: 12px; align-items: center;
  padding: 12px; border-radius: 20px; background: rgba(42, 38, 29, 0.94); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(243, 236, 226, 0.06); pointer-events: none;
}
.tel-banniere[hidden] { display: none; }
.tel-banniere img { flex: none; width: 32px; height: 32px; }
.tel-banniere div { min-width: 0; flex: 1; }
.tel-banniere-tete { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; line-height: 16px; }
.tel-banniere-tete strong { font-weight: 600; color: var(--encre); }
.tel-banniere-tete span { color: var(--gris); }
.tel-banniere p:last-child { font-size: 14px; line-height: 20px; color: var(--encre); }
.tel-avatar-zone { position: relative; flex: none; display: block; }
.tel-avatar-zone .tel-avatar { display: block; }
.tel-point {
  position: absolute; right: -2px; top: -2px; width: 12px; height: 12px; border-radius: 50%; background: var(--ms-rouge);
  box-shadow: 0 0 0 2px #181712; opacity: 0; transform: scale(0.6); transition: opacity 300ms var(--courbe), transform 300ms var(--courbe);
}
.tel-point.allume { opacity: 1; transform: none; }

/* La photo discrète : nette au flash, elle se trouble pendant le regard, puis elle s'efface vers la nuit. */
@media (prefers-reduced-motion: no-preference) {
  .visionneuse.ouverte .vis-img { animation: se-trouble 7000ms linear both; }
  .visionneuse.efface .vis-img { animation: s-efface 900ms var(--courbe) both; }
}
@keyframes se-trouble { 0%, 55% { filter: blur(0); } 100% { filter: blur(6px); } }
@keyframes s-efface { from { filter: blur(6px); opacity: 1; } to { filter: blur(16px); opacity: 0; } }

/* Sur ordinateur : la lampe qui suit la souris. Le corps de page laisse voir la nuit de html, la lampe passe entre les deux. */
body[data-page^="vitrine"] { background: transparent; }
.lampe {
  position: fixed; left: 0; top: 0; z-index: -1; width: 900px; height: 900px; pointer-events: none; will-change: transform;
  background: radial-gradient(closest-side, rgba(210, 168, 110, 0.085), rgba(210, 168, 110, 0.035) 50%, rgba(210, 168, 110, 0) 100%);
}
@media (prefers-reduced-motion: reduce) { .tel-point { transform: none; } } /* sans mouvement : le point s'allume, il ne grossit pas */

/* ---------- Les cartes des personnages, habillées à la charte (2 décembre) ----------
   Le visuel porte la carte : une vidéo en grand, le nom, l'âge et une phrase d'elle posés dessus,
   le point rouge « t'a écrit » (le seul usage du rouge). Le texte de dessous est court : ses traits, ses habitudes, comment lui plaire. */
.perso { gap: 20px; padding: 10px 10px 24px; background: var(--surface); border-color: var(--ligne); transition: border-color 300ms var(--courbe); }
.perso-visuel { position: relative; aspect-ratio: 4 / 5; border-radius: 18px; }
.perso-visuel::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(210, 168, 110, 0.22); pointer-events: none; }
.perso-visuel img, .perso-visuel video { object-position: 50% 22%; }
.perso-signal {
  position: absolute; left: 12px; top: 12px; z-index: 1; display: inline-flex; align-items: center; gap: 8px; margin: 0;
  padding: 6px 12px; border-radius: 999px; background: rgba(19, 18, 9, 0.62); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  font-size: 12px; line-height: 16px; font-weight: 600; color: var(--encre);
}
.perso-signal-point { width: 8px; height: 8px; border-radius: 50%; background: var(--ms-rouge); box-shadow: 0 0 0 3px rgba(168, 40, 63, 0.25); }
.perso-legende {
  position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 1; display: grid; gap: 4px; padding: 14px 16px 16px;
  border-radius: 14px; background: rgba(19, 18, 9, 0.66); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.perso-lieu { margin: 0; font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.perso .perso-legende h3 { margin: 0; font-size: 36px; line-height: 40px; color: var(--encre); }
.perso-legende .perso-age { font-size: 16px; color: var(--ms-ivoire-doux); }
.perso-citation { margin: 4px 0 0; font-family: var(--titre); font-size: 18px; line-height: 24px; font-weight: 400; font-variation-settings: var(--ms-titre-reglages); color: #e8dfd2; text-wrap: balance; }
.perso-texte { gap: 16px; padding: 0 10px; }
.perso-traits { gap: 0; }
.perso-traits li { padding: 0; border-radius: 0; background: none; font-size: 16px; line-height: 24px; color: var(--encre); }
.perso-traits li:not(:last-child)::after { content: "·"; margin: 0 10px; color: var(--accent); } /* le point reste en fin de ligne quand ça passe à la ligne */
.perso-bouton { min-width: 220px; }
@media (hover: hover) and (pointer: fine) { .perso:hover { border-color: rgba(210, 168, 110, 0.4); } }
@media (min-width: 960px) {
  .perso { grid-template-columns: 340px 1fr; gap: 40px; padding: 12px; }
  .perso-visuel { aspect-ratio: 9 / 16; }
  .perso-texte { padding: 24px 24px 24px 0; gap: 20px; }
  .perso .perso-legende h3 { font-size: 36px; line-height: 40px; }
}

/* Le héros enchaîne deux scènes : Chaïma dans le hall, puis Margaux à la machine à café, en fondu enchaîné de 900 ms. */
.film-suite { opacity: 0; }
.film-cadre.suite .film { opacity: 0; transition: opacity 900ms var(--courbe); }
.film-cadre.suite .film.actif { opacity: 1; }
.film-legende-texte { transition: opacity 300ms var(--courbe); }
.film-legende-texte.change { opacity: 0; } /* une étiquette sur la vidéo, pas un texte à lire : elle change avec la scène */

/* Tablette, petite fenêtre et ordinateur (600 px et plus) : la vidéo à côté du texte, pour que le titre et le bouton
   tiennent dans le premier écran en portrait comme en paysage. La vidéo prend la hauteur qui reste sous la barre
   (98 px) et au plus 45 % de la largeur ; le texte se centre à côté. */
@media (min-width: 600px) {
  .hero-film {
    grid-template-columns: auto minmax(0, 1fr); align-items: center; justify-items: stretch; gap: 32px;
    max-width: 1120px; margin: 0 auto; padding: 16px var(--gouttiere) 48px;
  }
  .film-cadre {
    justify-self: end; width: auto; max-width: none; max-height: none; aspect-ratio: 720 / 1310;
    height: min(780px, max(200px, calc(100svh - 150px)), calc((100vw - 2 * var(--gouttiere) - 32px) * 0.82));
  }
  .hero-film .hero-texte { padding: 0; max-width: 560px; justify-items: start; text-align: left; }
  .hero-film .hero-actions { justify-items: start; }
}
@media (min-width: 960px) {
  .hero-film { gap: 64px; padding-top: 24px; padding-bottom: 96px; }
  .hero-film h1 { font-size: 60px; }
}
/* Paysage et écrans bas (600 px de haut ou moins) : comme sur téléphone, le bouton suit le titre, l'étiquette se tait. */
@media (min-width: 600px) and (max-height: 600px) {
  .hero-film { padding-bottom: 32px; }
  .hero-film .etiquette { display: none; }
  .hero-film h1 { font-size: 36px; line-height: 40px; }
  .hero-film .hero-actions { order: 1; margin-top: 0; }
  .hero-film .preuve { order: 2; }
  .hero-film .chapo { order: 3; }
  .bouton-grand { padding: 16px 24px; font-size: 16px; }
}
/* L'étiquette de la vidéo tient sur une ligne ; sur les écrans bas, où la vidéo est étroite, elle se tait. */
.film-legende { max-width: calc(100% - 24px); } /* deux lignes au plus sur une vidéo étroite ; masquée sur les écrans bas */
@media (min-width: 600px) and (max-height: 600px) { .film-legende { display: none; } }

/* Les sous-titres des vidéos où un personnage parle (le son ne part jamais tout seul). Un calque calé sur la piste WebVTT :
   Instrument Sans, ivoire, un voile nuit léger derrière chaque ligne, deux lignes au plus, au-dessus de l'étiquette de la vidéo.
   Ils restent affichés quand on active le son. Pas de fondu : la ligne est là ou n'est pas là. */
.film-soustitres {
  position: absolute; left: 12px; right: 12px; bottom: 68px; z-index: 2; margin: 0; text-align: center; pointer-events: none;
  font-family: var(--ms-texte); font-size: 16px; line-height: 24px; font-weight: 500; color: var(--ms-ivoire);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.film-soustitres span {
  padding: 2px 8px; border-radius: 6px; background: rgba(19, 18, 9, 0.55); -webkit-box-decoration-break: clone; box-decoration-break: clone;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}
.film-soustitres:empty { display: none; }
/* Sans script, le navigateur affiche la piste lui-même : même voile, même lettre. */
video::cue { background: rgba(19, 18, 9, 0.55); color: #f3ece2; font-family: "Instrument Sans", system-ui, sans-serif; }
@media (min-width: 600px) and (max-height: 600px) { .film-soustitres { bottom: 12px; font-size: 14px; line-height: 20px; } } /* l'étiquette y est masquée */
@media (min-width: 960px) { .film-soustitres { font-size: 18px; line-height: 26px; bottom: 60px; } }
