/* ==========================================================================
   Refonte « plateau, la nuit » (maquette)
   Noir et blanc cassé, lueur bleu-gris, et le bleu Groov'It #62D5FB en accent
   rare : la charte des carrousels et des stories Instagram. Titres en Red Hat Display léger ; Archivo Black
   réservé aux grands chiffres. Appliqué par la classe .theme-nuit sur <body>.
   ========================================================================== */

.theme-nuit {
  --noir: #0E0E0E;
  --noir-2: #121314;
  --ivoire: #F4F3EF;
  --ivoire-2: #A3ABB0;          /* texte secondaire : 8,3 sur le noir */
  /* Charte Instagram Groov'It (design system, skills carrousel et stories), en r g b pour les transparences.
     Le bleu reste rare : mots clés, grands numéros, pastilles, boutons au survol. */
  --gel: 98 213 251;            /* accent #62D5FB : 11,6 sur le noir */
  --tungstene: 77 109 123;      /* lueur bleu-gris #4D6D7B, vers #364C55 : décor uniquement */
  --glow-deep: 54 76 85;

  --bg: var(--noir);
  --fg: var(--ivoire);
  --fg-muted: var(--ivoire-2);
  --line: rgb(244 243 239 / 0.12);
  --line-strong: rgb(244 243 239 / 0.42);
  --surface: #181818;           /* cartes : la surface des stories Groov'It */
  --tape: var(--ivoire);
  --accent-text: rgb(var(--gel));
  --bleu-texte: var(--ivoire);
  --error: #FF9A8F;              /* alertes et erreurs : 8,3 sur le noir */

  --n-display: clamp(3rem, 0.6rem + 8.6vw, 10.5rem);
  --n-h2: clamp(2.25rem, 1rem + 4.4vw, 5.5rem);
  --n-statement: clamp(1.75rem, 0.9rem + 3.3vw, 4.25rem);

  background: var(--noir);
  color: var(--ivoire);
}
.theme-nuit .scene--plateau { --bg: var(--noir-2); }
.theme-nuit .scene { background: transparent; }    /* le fond noir et son grain viennent de la page */
.theme-nuit .scene--plateau {
  background: url("../img/nuit/grain.webp") repeat, radial-gradient(70% 90% at 85% 0%, rgb(var(--tungstene) / 0.32), rgb(var(--glow-deep) / 0.12) 45%, transparent 75%), var(--noir-2);
  background-blend-mode: overlay, normal, normal;
}

/* Grain de pellicule, très léger, sur le fond seulement (charte Instagram) */
.theme-nuit::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;   /* sous le contenu : le grain reste sur le fond, cartes et textes nets */
  background: url("../img/nuit/grain.webp") repeat;
  opacity: 0.7;
  mix-blend-mode: overlay;
}

/* Typographie : fine, en minuscules, très serrée en grand */
.theme-nuit .n-display, .theme-nuit .n-h2, .theme-nuit .n-statement p, .theme-nuit .n-services__name, .theme-nuit .n-who__statement {
  font-family: var(--font-text);
  font-weight: 300;
  text-transform: none;
  letter-spacing: -0.045em;
  text-wrap: balance;
}
.theme-nuit .n-display { font-size: var(--n-display); line-height: 0.92; max-width: 11ch; }
.theme-nuit .n-h2 { font-size: var(--n-h2); line-height: 0.98; max-width: 14ch; }
.theme-nuit .n-label { font-family: var(--font-text); font-size: var(--fs-small); font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--fg-muted); margin-bottom: var(--s-4); }
.theme-nuit .n-muted { color: var(--fg-muted); margin-top: var(--s-3); max-width: 40ch; font-size: var(--fs-lead); }
.theme-nuit .n-kicker { font-weight: 600; color: var(--fg-muted); }
.theme-nuit .n-link { color: var(--ivoire); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.3em; text-decoration-color: rgb(237 232 223 / 0.45); transition: text-decoration-color var(--t-demi) var(--e-pose); }
.theme-nuit .n-link:hover { text-decoration-color: var(--ivoire); }

/* Bouton : une pastille ivoire, nette */
.n-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  min-height: 3.25rem; padding: 0.95em 1.6em;
  border-radius: 999px;
  background: var(--ivoire); color: var(--noir);
  font-weight: 700; text-decoration: none; line-height: 1.1;
  transition: background-color var(--t-demi) var(--e-pose), box-shadow var(--t-temps) var(--e-pose);
}
.n-btn:hover, .n-btn:focus-visible { background: #fff; box-shadow: 0 0 0 6px rgb(237 232 223 / 0.12), 0 0 60px rgb(var(--tungstene) / 0.35); }
.n-btn--large { min-height: 4rem; padding: 1.15em 2.1em; font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.3rem); }
.n-btn--small { min-height: 2.75rem; padding: 0.7em 1.2em; font-size: 0.9375rem; }

/* En-tête et pied de page dans la nuit */
.theme-nuit .site-header { background: rgb(10 10 11 / 0.72); color: var(--ivoire); border-bottom-color: var(--line); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.theme-nuit .site-header .btn { --btn-bg: var(--ivoire); --btn-fg: var(--noir); clip-path: none; border-radius: 999px; }
.theme-nuit .site-nav__link { background-image: none; opacity: 0.72; transition: opacity var(--t-demi) var(--e-pose); }
.theme-nuit .site-nav__link:hover, .theme-nuit .site-nav__link[aria-current] { opacity: 1; }
.theme-nuit .lang-switch [aria-current] { background: none; text-decoration: underline; text-underline-offset: 0.3em; }
.theme-nuit .lang-switch a:not([aria-current]) { color: var(--ivoire-2); }
.theme-nuit .site-footer { background: var(--noir); border-top: 1px solid var(--line); }
.theme-nuit .site-footer .btn { --btn-bg: var(--ivoire); --btn-fg: var(--noir); clip-path: none; border-radius: 999px; }
.theme-nuit .site-footer__baseline { font-family: var(--font-text); font-weight: 300; text-transform: none; letter-spacing: -0.045em; }
.theme-nuit .site-footer__links a { background-image: linear-gradient(var(--ivoire), var(--ivoire)); }
.theme-nuit .audit-dock .btn { --btn-bg: var(--ivoire); --btn-fg: var(--noir); clip-path: none; border-radius: 999px; }
.theme-nuit .cursor__disc { background: var(--ivoire); color: var(--noir); }
.theme-nuit ::selection { background: var(--ivoire); color: var(--noir); }

/* Si la page se termine déjà par un appel à l'audit, le pied de page ne le répète pas. */
body:has(.n-final, .cta-audit) .site-footer__lead { display: none; }
body:has(.n-final, .cta-audit) .site-footer__cols { margin-top: 0; border-top: 0; padding-top: 0; }

/* Téléphone : les écrans en rangée, défilement horizontal au pouce, un écran par geste */

/* ==========================================================================
   Composants communs dans la nuit : toutes les pages
   ========================================================================== */

.theme-nuit { font-weight: 400; }
.theme-nuit .t-lead { font-weight: 400; color: var(--ivoire-2); }
.theme-nuit .prose--large, .theme-nuit .sig__step-text { color: var(--ivoire); }

/* Titres : fins et serrés ; Archivo Black reste pour les grands chiffres (.t-monument) */
.theme-nuit h1, .theme-nuit .t-h1, .theme-nuit h2, .theme-nuit .t-h2 {
  font-family: var(--font-text);
  font-weight: 300;
  text-transform: none;
  letter-spacing: -0.045em;
}
.theme-nuit h1, .theme-nuit .t-h1 { font-size: clamp(2.75rem, 1rem + 6vw, 7.5rem); line-height: 0.95; }
.theme-nuit h2, .theme-nuit .t-h2 { font-size: clamp(2rem, 1rem + 3.4vw, 4.5rem); line-height: 1; }
.theme-nuit h3, .theme-nuit .t-h3 { font-weight: 600; letter-spacing: -0.02em; }
.theme-nuit .block__title, .theme-nuit .block > h2:first-child, .theme-nuit .block__head > h2:first-child { border-top-color: var(--line); }
.theme-nuit .t-monument { color: var(--ivoire); }
.theme-nuit .page-hero__title { max-width: 16ch; }
.theme-nuit .page-hero__price small { color: var(--ivoire-2); }

/* Plus de bandes de tape ni de marquage au sol : la lumière les remplace */
.theme-nuit .tape:not(.ag-poster__tape), .theme-nuit .floor { display: none; }
.theme-nuit .page-hero { position: relative; overflow: hidden; }

/* Boutons : pastilles */
.theme-nuit .btn {
  --btn-bg: var(--ivoire); --btn-fg: var(--noir);
  clip-path: none; border-radius: 999px; font-weight: 700;
  transition: background-color var(--t-demi) var(--e-pose), box-shadow var(--t-temps) var(--e-pose);
}
.theme-nuit .btn:hover, .theme-nuit .btn:focus-visible { --btn-bg: #fff; --btn-fg: var(--noir); box-shadow: 0 0 0 6px rgb(237 232 223 / 0.12), 0 0 60px rgb(var(--tungstene) / 0.35); }
.theme-nuit .btn--ghost, .theme-nuit .scene--plateau .btn--ghost { --btn-bg: transparent; --btn-fg: var(--ivoire); box-shadow: inset 0 0 0 1px var(--line-strong); }
.theme-nuit .btn--ghost:hover, .theme-nuit .btn--ghost:focus-visible { --btn-bg: var(--ivoire); --btn-fg: var(--noir); }
.theme-nuit .link, .theme-nuit .prose a { color: var(--ivoire); font-weight: 600; text-decoration-thickness: 1px; text-underline-offset: 0.3em; text-decoration-color: rgb(237 232 223 / 0.45); }
.theme-nuit .link:hover, .theme-nuit .prose a:hover { text-decoration-thickness: 1px; text-decoration-color: var(--ivoire); }

/* Repères : fins */
.theme-nuit .mark-x::before, .theme-nuit .mark-x::after { height: 2px; margin-top: -1px; background: var(--ivoire); clip-path: none; }
.theme-nuit .checklist li::before { width: 0.42rem; height: 0.42rem; top: 1.45em; left: 0.3rem; border-radius: 50%; background: var(--ivoire); transform: none; }
.theme-nuit .checklist li::after { display: none; }
.theme-nuit .checklist--muted li::before { background: var(--ivoire-2); height: 1px; width: 0.9rem; border-radius: 0; top: 1.55rem; left: 0; }
.theme-nuit .checklist { border-top-color: var(--line-strong); }

/* Table programme et formules : noms fins, prix en Archivo */
.theme-nuit .programme__name, .theme-nuit .plans__name { font-family: var(--font-text); font-weight: 300; text-transform: none; letter-spacing: -0.04em; }
.theme-nuit .programme__name a { background-image: none; text-decoration: none; }
.theme-nuit .programme__name a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.15em; }
.theme-nuit .programme__lead { opacity: 0.3; }
.theme-nuit .programme, .theme-nuit .faq, .theme-nuit .deflist { border-top-width: 1px; border-top-color: var(--line-strong); }

/* Formulaires */
.theme-nuit .field__input { background: var(--surface); border-bottom-color: var(--line-strong); color: var(--ivoire); }
.theme-nuit .field__input:focus-visible { box-shadow: 0 2px 0 0 var(--ivoire); }
.theme-nuit .choice input { border-color: var(--line-strong); background: var(--surface); }
.theme-nuit .choice input:checked { background: var(--ivoire); box-shadow: inset 0 0 0 4px var(--surface); }

/* Réalisations et études de cas : les captures sous la lumière */
.theme-nuit .work-list__media, .theme-nuit .case__shots img { border: 0; border-radius: 0.8rem; box-shadow: 0 30px 90px rgb(0 0 0 / 0.6), 0 0 0 1px rgb(237 232 223 / 0.08); }
.theme-nuit .work-list__name { background-image: none; }
.theme-nuit .work-list__item:hover .work-list__name { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.15em; }
.theme-nuit .case__number { color: var(--ivoire); text-shadow: 0 0 120px rgb(var(--tungstene) / 0.25); }
.theme-nuit .app-shots img { border-color: var(--line); }

/* Scènes signature : un filet au lieu du cadre épais, des ombres lumineuses */
.theme-nuit .poursuite { border: 1px solid var(--line-strong); border-radius: 1rem; }
.theme-nuit .kitfan__sheet--module { border-top-color: var(--noir); }

/* Agenda et ressources */
.theme-nuit .ag-poster { background: radial-gradient(circle at 70% 20%, rgb(var(--tungstene) / 0.18), transparent 60%), #121214; }
.theme-nuit .ag-pitch { border: 1px solid var(--line); border-radius: 1rem; }
.theme-nuit .ag-notice { background: var(--surface); border-left-color: var(--ivoire); }
.theme-nuit .ag-filters__list a { border-color: var(--line-strong); border-radius: 999px; }
.theme-nuit .res-list__title { font-family: var(--font-text); font-weight: 300; text-transform: none; letter-spacing: -0.04em; }
.theme-nuit .res-body blockquote { border-left-color: var(--ivoire); }
.theme-nuit .to-confirm { background: #FFD84D; color: #0E0F11; }

/* Écrans et feuilles claires posés dans la nuit (téléphone du parcours, cartes du kit, visuel d'agenda) :
   ils gardent une encre sombre pour leur texte. */
.theme-nuit .kitfan__sheet { --bleu-texte: #3D3A35; --accent-text: #3D3A35; }

/* En-têtes : le contenu passe devant la lumière du projecteur (.lumiere, plus bas) */
.theme-nuit .page-hero > .wrap { position: relative; z-index: 1; }

/* Titres de bloc qui restent à l'écran pendant qu'on lit la colonne d'à côté */
@media (min-width: 64rem) {
  .theme-nuit .block > .lg-1-5 { position: sticky; top: calc(var(--header-h) + var(--s-5)); align-self: start; }
}

/* Prix, délai, paiement : en grand, comme les offres de l'accueil */
.theme-nuit .programme__row--fact .programme__name { font-size: clamp(2.25rem, 1rem + 4vw, 5.5rem); line-height: 1; letter-spacing: -0.045em; }
.theme-nuit .programme__row--fact { align-items: baseline; padding-block: clamp(1.25rem, 0.8rem + 1.4vw, 2.25rem); }

/* Transition de page « lumière » : la page quitte la scène dans le noir,
   la suivante s'allume depuis le projecteur (en haut à droite). */
.theme-nuit .tape-wipe { view-transition-name: none; width: 100vw; transform: none; background: var(--noir); opacity: 0; transition: opacity 0.15s ease-out; }
.theme-nuit .tape-wipe.is-covering, .wipe-in .theme-nuit .tape-wipe { width: 100vw; transform: none; opacity: 1; transition: opacity 0.15s ease-out; }
.theme-nuit .tape-wipe.is-leaving { width: 100vw; transform: none; opacity: 0; transition: opacity 0.3s ease-out; }
::view-transition-group(root) { animation-duration: 0.42s; }
::view-transition-old(root) { animation: n-lights-out 0.18s ease-out both; }
::view-transition-new(root) { animation: n-lights-up 0.42s cubic-bezier(0.22, 1, 0.36, 1) both; }
@keyframes n-lights-out { to { opacity: 0; transform: scale(0.985); filter: brightness(0.4); } }
@keyframes n-lights-up {
  from { clip-path: circle(0% at 78% 0%); filter: brightness(0.5); }
  to   { clip-path: circle(150% at 78% 0%); filter: brightness(1); }
}

/* Le bleu Groov'It : là où il se voit (rarement) -------------------------- */
.theme-nuit .page-hero .t-monument { color: rgb(var(--gel)); text-shadow: 0 0 80px rgb(var(--gel) / 0.35); }
.theme-nuit .deflist__n, .theme-nuit .n-steps__n, .theme-nuit .case__number, .theme-nuit .sig__count { color: rgb(var(--gel)); text-shadow: 0 0 70px rgb(var(--gel) / 0.3); }
.theme-nuit .checklist li::before { background: rgb(var(--gel)); box-shadow: 0 0 10px rgb(var(--gel) / 0.6); }
.theme-nuit .link, .theme-nuit .prose a, .theme-nuit .n-link { text-decoration-color: rgb(var(--gel)); }
.theme-nuit .btn:hover, .theme-nuit .btn:focus-visible, .theme-nuit .n-btn:hover, .theme-nuit .n-btn:focus-visible { box-shadow: 0 0 0 6px rgb(var(--gel) / 0.18), 0 0 60px rgb(var(--gel) / 0.5); }
.theme-nuit .site-nav a[aria-current="page"] { text-decoration-color: rgb(var(--gel)); }
.theme-nuit .site-nav a[aria-current="page"]::before { content: ""; display: inline-block; width: 0.4rem; height: 0.4rem; margin-right: 0.45rem; vertical-align: 0.15em; border-radius: 50%; background: rgb(var(--gel)); box-shadow: 0 0 10px rgb(var(--gel)); }
.theme-nuit .n-dot { background: rgb(var(--gel)); box-shadow: 0 0 12px rgb(var(--gel) / 0.9); }

/* Reels : un téléphone, une boucle muette, le son au clic -------------------- */
.reel { margin: 0; }
.reel__phone {
  position: relative; aspect-ratio: 9 / 16; border-radius: 1.6rem; overflow: hidden;
  background: #111113;
  box-shadow: 0 40px 100px rgb(0 0 0 / 0.6), 0 0 0 1px rgb(237 232 223 / 0.12), inset 0 0 0 5px #050506, 0 0 90px rgb(var(--gel) / 0.16);
  transition: transform var(--t-temps) var(--e-hit), box-shadow var(--t-temps) var(--e-pose);
}
.reel:hover .reel__phone { transform: translateY(-6px); box-shadow: 0 50px 110px rgb(0 0 0 / 0.65), 0 0 0 1px rgb(237 232 223 / 0.2), inset 0 0 0 5px #050506, 0 0 110px rgb(var(--gel) / 0.32); }
.reel__video, .reel__poster { position: absolute; inset: 5px; width: calc(100% - 10px); height: calc(100% - 10px); border-radius: 1.3rem; object-fit: cover; }
.reel__video { background: transparent; }
.reel.is-playing .reel__video { background: #000; }
.reel__play {
  position: absolute; left: 50%; bottom: 1rem; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 0.55rem; white-space: nowrap;
  padding: 0.6rem 1rem 0.6rem 0.7rem; border-radius: 999px;
  background: rgb(10 10 11 / 0.72); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  color: var(--ivoire); font-size: var(--fs-small); font-weight: 700; text-decoration: none;
  box-shadow: inset 0 0 0 1px rgb(237 232 223 / 0.25);
  transition: background-color var(--t-demi) var(--e-pose), box-shadow var(--t-demi) var(--e-pose);
}
.reel__play:hover, .reel__play:focus-visible { background: var(--ivoire); color: var(--noir); box-shadow: 0 0 40px rgb(var(--gel) / 0.6); }
.reel__icon { width: 1.5rem; height: 1.5rem; border-radius: 50%; background: rgb(var(--gel)); position: relative; flex: none; }
.reel__icon::after { content: ""; position: absolute; left: 55%; top: 50%; transform: translate(-50%, -50%); border-left: 7px solid var(--noir); border-block: 5px solid transparent; }
.reel.is-playing .reel__play { display: none; }
.reel__caption { display: grid; gap: 0.3rem; margin-top: var(--s-3); }
.reel__label { font-size: var(--fs-small); font-weight: 700; color: rgb(var(--gel)); }
.reel__title { color: var(--ivoire-2); line-height: 1.35; max-width: 30ch; }

.reels-row { display: grid; gap: var(--s-5) var(--gutter); grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 64rem) { .reels-row { grid-template-columns: repeat(4, minmax(0, 1fr)); } .reels-row--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 62rem; } }
@media (max-width: 47.99rem) {
  .reels-row { grid-auto-flow: column; grid-auto-columns: 64%; grid-template-columns: none; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: var(--s-3); margin-inline: calc(var(--margin) * -1); padding-inline: var(--margin); scroll-padding-inline: var(--margin); }
  .reels-row > .reel { scroll-snap-align: start; }
}
.reels-row:focus-visible { outline: 1px solid var(--ivoire); outline-offset: 0.5rem; border-radius: 0.5rem; }
.reels-row--spaced { margin-top: var(--s-6); }
.reel-block__phones { display: grid; grid-template-columns: repeat(2, minmax(0, 17rem)); gap: var(--gutter); }
.reel-block__phones:has(> .reel:only-child) { grid-template-columns: minmax(0, 19rem); }
@media (max-width: 47.99rem) { .reel-block__phones { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: var(--s-5); } }

/* Audit : l'extrait vidéo, dans un écran */
.audit-video__screen { border-radius: 1rem; overflow: hidden; padding: 0.6rem; background: linear-gradient(160deg, #26262a, #0f0f11); box-shadow: 0 40px 120px rgb(0 0 0 / 0.6), 0 0 0 1px rgb(237 232 223 / 0.1), 0 0 100px rgb(var(--gel) / 0.18); }
.audit-video__video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 0.55rem; background: #000; }
.audit-video__figure { margin: var(--s-5) 0 0; display: grid; gap: var(--s-3); }
@media (min-width: 64rem) { .audit-video__figure { margin-top: 0; } }

/* Animations (assets/js/modules/anim.js) ------------------------------------------
   .anim-on n'est posée qu'en mouvement normal, JS actif : sinon tout reste visible et immobile. */
.anim-on .an-rise { opacity: 0; translate: 0 2rem; transition: opacity 0.8s var(--e-pose), translate 0.9s var(--e-hit); transition-delay: calc(var(--k, 0) * 90ms); }
.anim-on .an-rise.is-in { opacity: 1; translate: 0 0; }

/* Titres : chaque mot monte derrière son cache */
.an-words .wm { display: inline-block; overflow: clip; padding-bottom: 0.14em; margin-bottom: -0.14em; vertical-align: top; }
.an-words .wi { display: inline-block; }
.anim-on .an-words .wi { translate: 0 108%; transition: translate 0.95s cubic-bezier(0.2, 0.8, 0.2, 1); transition-delay: calc(var(--w, 0) * 55ms); }
.anim-on .an-words.is-in .wi { translate: 0 0; }
.anim-on .an-words[data-reveal] { opacity: 1; transform: none; }

/* Le « 4 » se pose */
.anim-on .an-pop { opacity: 0; scale: 0.7; filter: blur(12px); transition: opacity 0.7s var(--e-pose), scale 1.1s var(--e-rebond), filter 0.9s var(--e-pose); }
.anim-on .an-pop.is-in { opacity: 1; scale: 1; filter: none; }

/* 5, 6, 7, 8 : les étapes s'allument l'une après l'autre */
.anim-on .an-step { opacity: 0; translate: 0 1.5rem; transition: opacity 0.6s var(--e-pose), translate 0.8s var(--e-hit); transition-delay: calc(var(--k, 0) * 220ms); }
.anim-on .an-step .n-steps__n { color: rgb(var(--gel) / 0.15); text-shadow: none; transition: color 0.5s var(--e-pose), text-shadow 0.8s var(--e-pose); transition-delay: calc(var(--k, 0) * 220ms + 250ms); }
.anim-on .an-step.is-in { opacity: 1; translate: 0 0; }
.anim-on .an-step.is-in .n-steps__n { color: rgb(var(--gel)); text-shadow: 0 0 70px rgb(var(--gel) / 0.3); }

/* iPhone et tickets : distribués comme des cartes, puis ils flottent au scroll */
.anim-on .an-deal { opacity: 0; scale: 0.88; rotate: -9deg; transition: opacity 0.6s var(--e-pose), scale 1s var(--e-rebond), rotate 1.1s var(--e-rebond); transition-delay: calc(var(--k, 0) * 110ms); }
.anim-on .an-deal.is-in { opacity: 1; scale: 1; rotate: 0deg; translate: 0 var(--float, 0px); }

/* Grille Instagram : les cases arrivent une à une ; les stories s'allument */
.anim-on .plans__phone .ig__grid > i, .anim-on .plans__phone .ig__stories > span { opacity: 0; scale: 0.5; transition: opacity 0.35s var(--e-pose), scale 0.5s var(--e-rebond); transition-delay: calc(500ms + var(--t, 0) * 60ms); }
.anim-on .plans__phone .iphone.is-in .ig__grid > i, .anim-on .plans__phone .iphone.is-in .ig__stories > span { opacity: 1; scale: 1; }

/* Audit : le cercle du projecteur se pose sur le problème */
.anim-on .findings__item .fs-ring::after { opacity: 0; scale: 1.6; transition: opacity 0.5s var(--e-pose), scale 0.8s var(--e-rebond); transition-delay: calc(var(--k, 0) * 110ms + 700ms); }
.anim-on .findings__item .iphone.is-in .fs-ring::after { opacity: 1; scale: 1; }

/* Kit : la frise de la saison se dessine de juin à mai */
.anim-on .an-draw .season__range { scale: 0 1; transform-origin: left center; transition: scale 0.9s var(--e-glisse); }
.anim-on .an-draw .season__range:nth-last-of-type(2) { transition-delay: 0.35s; }
.anim-on .an-draw .season__range:nth-last-of-type(1) { transition-delay: 0.7s; }
.anim-on .an-draw.is-in .season__range { scale: 1 1; }

/* Bloc final des pages : de l'air entre le titre et la phrase (la bande de tape n'est plus là) */
.theme-nuit .cta-audit__grid { margin-top: var(--s-5); }

/* À propos : Adrien face caméra, sous « En bref », qui reste à l'écran pendant la lecture */
.about__reel { max-width: 14rem; margin-top: var(--s-5); }
@media (min-width: 64rem) {
  .theme-nuit .about__facts { position: sticky; top: calc(var(--header-h) + var(--s-4)); align-self: start; }
}
@media (max-width: 63.99rem) { .about__reel { max-width: 15rem; margin-inline: auto; } }

/* Logos clients : sur le noir, les silhouettes passent en blanc cassé (elles étaient noires sur noir) */
.theme-nuit .clients__logo--silhouette img { filter: brightness(0) invert(0.93); opacity: 0.8; }
.theme-nuit .clients__logo--gris img { filter: grayscale(1) brightness(1.6) contrast(1.1); opacity: 0.8; }
.theme-nuit .clients__logo img { transition: opacity var(--t-demi) var(--e-pose); }
.theme-nuit .clients__logo:hover img { opacity: 1; }

/* Avis : les cartes des stories Groov'It (surface #181818, gros guillemet bleu, passage fort en bleu) */
.avis__list { display: grid; gap: var(--gutter); margin-top: var(--s-5); align-items: start; }
@media (min-width: 64rem) {
  .avis__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .avis__list--audit { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .avis__list--one { grid-template-columns: minmax(0, 46rem); }
}
@media (min-width: 48rem) and (max-width: 63.99rem) { .avis__list--audit { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.avis__card {
  position: relative; margin: 0; padding: clamp(1.75rem, 1.2rem + 1.6vw, 2.75rem);
  border-radius: 1.5rem; background: var(--surface);
  box-shadow: inset 0 0 0 1px rgb(42 58 64 / 0.9), 0 40px 80px -40px rgb(0 0 0 / 0.8);
}
.avis__list:not(.avis__list--audit) .avis__card { margin-top: 2rem; }
.avis__badge {
  position: absolute; left: 50%; top: 0; translate: -50% -50%;
  display: grid; place-items: center; width: 4.25rem; height: 4.25rem; border-radius: 50%;
  background: var(--noir); box-shadow: 0 0 0 2px var(--ivoire), 0 0 40px rgb(var(--gel) / 0.25);
  font-family: var(--font-display); font-size: 1.1rem; color: var(--ivoire); letter-spacing: 0.02em;
}
.avis__badge img { width: 70%; height: 70%; object-fit: contain; filter: brightness(0) invert(0.93); }
.avis__mark { display: block; height: 2.2rem; font-family: var(--font-display); font-size: 4.5rem; line-height: 1; color: rgb(var(--gel)); }
.avis__quote { margin: var(--s-3) 0 0; }
.avis__quote p { font-size: clamp(1.05rem, 0.95rem + 0.35vw, 1.25rem); line-height: 1.55; color: var(--ivoire); }
.avis__list--audit .avis__quote p { font-size: var(--fs-body); }
.avis__quote strong { color: rgb(var(--gel)); font-weight: 700; }
.avis__who { margin-top: var(--s-4); font-size: var(--fs-small); color: var(--ivoire-2); font-weight: 600; }
.avis__note { margin-top: var(--s-4); }
.avis__google { margin-top: var(--s-5); font-weight: 700; }
.avis--tight { padding-top: 0; }

/* Projecteur qui suit le pointeur (ordinateur) : une lueur bleu-gris sur le fond, sous le contenu et le grain */
.spot {
  position: fixed; left: 0; top: 0; z-index: -1; pointer-events: none;
  width: 70vmax; height: 70vmax; margin: -35vmax 0 0 -35vmax;
  background: radial-gradient(closest-side, rgb(var(--tungstene) / 0.38), rgb(var(--glow-deep) / 0.12) 55%, transparent 72%);
  opacity: 0; transition: opacity 0.8s var(--e-pose);
  will-change: transform;
}
.spot.is-on { opacity: 1; }

/* Le projecteur en haut de chaque page ---------------------------------------------------
   Une source juste au-dessus de l'écran, un faisceau en deux couches (diffusion large, cœur
   plus dense) qui s'atténue avec la distance, des poussières qui flottent dans la lumière,
   un scintillement à peine perceptible. Tout est derrière le contenu. */
.theme-nuit main { position: relative; }
.lumiere {
  --lx: 76%;            /* position horizontale de la source */
  --tilt: 17deg;        /* inclinaison du faisceau */
  position: absolute; left: 0; right: 0; top: 0; z-index: 0;
  height: min(125vh, 1150px); overflow: hidden; pointer-events: none;
  -webkit-mask: linear-gradient(#000 55%, transparent); mask: linear-gradient(#000 55%, transparent);
}
.page-home .lumiere { --lx: 72%; --tilt: 20deg; }
.lumiere i { position: absolute; display: block; }
.lumiere__wash {   /* l'air éclairé autour du faisceau */
  left: calc(var(--lx) - 45vw); top: -35vh; width: 90vw; height: 110vh;
  background: radial-gradient(closest-side, rgb(var(--tungstene) / 0.55), rgb(var(--glow-deep) / 0.22) 55%, transparent 80%);
}
.lumiere__cone, .lumiere__core, .lumiere__dust {
  left: var(--lx); top: -2vh; height: 115%;
  transform-origin: 50% 0; rotate: var(--tilt); translate: -50% 0;
}
.lumiere__cone {   /* diffusion : large, douce, qui s'éteint en descendant (flou appliqué après la découpe : bords doux) */
  width: 62vw; filter: blur(30px);
}
.lumiere__cone::before, .lumiere__core::before { content: ""; position: absolute; inset: 0; }
.lumiere__cone::before {
  clip-path: polygon(46% 0, 54% 0, 100% 100%, 0 100%);
  background: linear-gradient(to bottom, rgb(215 238 250 / 0.22), rgb(160 205 225 / 0.1) 35%, rgb(120 170 190 / 0.04) 70%, transparent 92%);
}
.lumiere__core {   /* cœur : plus étroit et plus dense près de la source */
  width: 34vw; filter: blur(16px);
}
.lumiere__core::before {
  clip-path: polygon(48.2% 0, 51.8% 0, 78% 100%, 22% 100%);
  background: linear-gradient(to bottom, rgb(235 248 255 / 0.3), rgb(200 232 248 / 0.12) 30%, rgb(160 205 225 / 0.03) 65%, transparent 85%);
}
.lumiere__dust {   /* poussières en suspension, visibles seulement dans la lumière */
  width: 50vw;
  clip-path: polygon(47% 0, 53% 0, 95% 100%, 5% 100%);
  background-image:
    radial-gradient(1.3px 1.3px at 12% 18%, rgb(255 255 255 / 0.9), transparent 100%),
    radial-gradient(1px 1px at 38% 62%, rgb(255 255 255 / 0.7), transparent 100%),
    radial-gradient(1.6px 1.6px at 71% 33%, rgb(255 255 255 / 0.75), transparent 100%),
    radial-gradient(1px 1px at 86% 78%, rgb(255 255 255 / 0.6), transparent 100%),
    radial-gradient(1.2px 1.2px at 55% 8%, rgb(255 255 255 / 0.8), transparent 100%),
    radial-gradient(0.9px 0.9px at 24% 88%, rgb(255 255 255 / 0.55), transparent 100%);
  background-size: 210px 260px;
  opacity: 0.5;
  -webkit-mask: linear-gradient(#000 10%, transparent 75%); mask: linear-gradient(#000 10%, transparent 75%);
}
.lumiere__source {   /* la lampe, juste au-dessus du bord de l'écran */
  left: var(--lx); top: -3.2rem; width: 15rem; height: 5.5rem; translate: -50% 0; border-radius: 50%;
  background: radial-gradient(closest-side, rgb(250 253 255 / 0.95), rgb(200 235 252 / 0.45) 45%, rgb(98 213 251 / 0.12) 70%, transparent);
  filter: blur(6px);
}
.anim-on .lumiere__dust { animation: lumiere-dust 40s linear infinite; }
.anim-on .lumiere__cone, .anim-on .lumiere__core { animation: lumiere-flicker 7s ease-in-out infinite; }
.anim-on .lumiere__core { animation-duration: 5.3s; animation-delay: -2s; }
@keyframes lumiere-dust { to { background-position: 60px -520px; } }
@keyframes lumiere-flicker { 0%, 100% { opacity: 1; } 22% { opacity: 0.93; } 26% { opacity: 1; } 61% { opacity: 0.96; } }
@media (max-width: 47.99rem) {
  .lumiere { --lx: 80%; --tilt: 14deg; height: 105vh; }
  .lumiere__cone { width: 120vw; }
  .lumiere__core { width: 70vw; }
  .lumiere__dust { width: 100vw; }
  .lumiere__wash { left: calc(var(--lx) - 80vw); width: 160vw; }
}

/* Réalisations : cartes qui s'empilent au scroll (templates/partials/work-stack.php) ------- */
.stack-section__head { margin-bottom: var(--s-5); }
.stack { list-style: none; margin: 0; padding: 0 0 4vh; display: grid; gap: 6vh; }
.stack__card {
  --recul: 0;
  position: sticky; top: calc(var(--header-h) + 1.5rem + var(--n) * 1.1rem);
  display: grid; gap: var(--s-5) var(--gutter); align-items: center;
  min-height: min(76vh, 40rem); padding: clamp(1.5rem, 1rem + 2.5vw, 3.5rem);
  border-radius: 1.8rem; overflow: hidden;
  background:
    radial-gradient(70% 90% at 85% 15%, color-mix(in srgb, var(--client) 22%, transparent), transparent 70%),
    linear-gradient(160deg, #1b1d1e, #121314);
  box-shadow: inset 0 0 0 1px rgb(244 243 239 / 0.1), 0 -20px 60px rgb(0 0 0 / 0.55), 0 40px 90px -40px rgb(0 0 0 / 0.9);
  transform-origin: 50% 0;
  scale: calc(1 - var(--recul) * 0.06);
  filter: brightness(calc(1 - var(--recul) * 0.45));
}
@media (min-width: 64rem) { .stack__card { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.stack__type { font-size: var(--fs-small); font-weight: 700; color: var(--client); }
.stack__card--next .stack__type { color: rgb(var(--gel)); }
.theme-nuit .stack__name { margin-top: var(--s-2); font-size: clamp(2.25rem, 1.2rem + 3.6vw, 4.75rem); font-weight: 300; letter-spacing: -0.045em; line-height: 0.95; }
.stack__result { display: flex; align-items: baseline; gap: 0.8rem; margin-top: var(--s-4); }
.stack__result b { font-family: var(--font-display); font-weight: 400; font-size: clamp(3rem, 2rem + 3vw, 5rem); line-height: 0.8; color: rgb(var(--gel)); text-shadow: 0 0 50px rgb(var(--gel) / 0.35); }
.stack__result span { max-width: 22ch; color: var(--ivoire-2); line-height: 1.35; }
.stack__resume { margin-top: var(--s-4); max-width: 38ch; font-size: var(--fs-lead); line-height: 1.45; color: var(--ivoire-2); }
.stack__quote { margin: var(--s-4) 0 0; padding-left: 1rem; border-left: 2px solid rgb(var(--gel)); }
.stack__quote p { font-size: var(--fs-lead); line-height: 1.4; color: var(--ivoire); max-width: 32ch; }
.stack__links { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-4); margin-top: var(--s-5); }
.stack__visual { position: relative; padding: 0 6% 8% 0; }
.laptop__screen { position: relative; aspect-ratio: 16 / 10; padding: 0.55rem; border-radius: 0.9rem 0.9rem 0 0; background: linear-gradient(160deg, #2a2c2f, #0c0c0d); box-shadow: 0 30px 60px -20px rgb(0 0 0 / 0.8), inset 0 0 0 1px rgb(255 255 255 / 0.08); }
.laptop__screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 0.35rem; }
.laptop__base { height: 0.9rem; margin: 0 -7%; border-radius: 0 0 1.2rem 1.2rem; background: linear-gradient(#4a4d50, #1b1c1e); box-shadow: 0 18px 30px rgb(0 0 0 / 0.55); }
.stack__visual .stack__phone { position: absolute; right: 0; bottom: 0; width: 26%; --tilt: 4deg; }
.stack__phone .iphone__screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.stack__visual--next { display: grid; place-items: center; min-height: 18rem; }
.stack__ghost { display: grid; place-items: center; width: min(60%, 16rem); aspect-ratio: 1; border-radius: 50%; border: 1.5px dashed rgb(var(--gel) / 0.6); box-shadow: 0 0 80px rgb(var(--gel) / 0.15) inset; }
.stack__ghost .ticket__g { width: 35%; height: 45%; background: rgb(var(--gel)); opacity: 0.8; }
@media (max-width: 63.99rem) {
  .stack__card { min-height: auto; top: calc(var(--header-h) + 0.75rem + var(--n) * 0.8rem); }
  .stack__visual { order: -1; }
}
@media (prefers-reduced-motion: reduce) { .stack__card { position: relative; top: auto; } }
/* L'iPhone posé devant l'ordinateur : chrome proportionné à sa petite taille */
.stack__phone .iphone__island { height: 0.6rem; top: 0.4rem; width: 30%; }
.stack__phone .iphone__status { display: none; }
@media (max-width: 47.99rem) {
  .stack__visual .stack__phone { width: 30%; border-radius: 1.2rem; }
  .stack__phone .iphone__screen { inset: 0.3rem; border-radius: 0.95rem; }
  .stack__phone .iphone__island { height: 0.4rem; top: 0.3rem; }
}

/* Site web : « Le chemin d'un futur élève », dans la DA Groov'It (iPhone sombre, accents bleus) */
.theme-nuit .parcours__phone {
  border: 0; border-radius: 2.4rem; padding: 0.5rem; color: var(--ivoire);
  background: linear-gradient(145deg, #45494d, #141516 32%, #0c0c0d 68%, #2a2c2f);
  box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / 0.14), inset 0 0 0 4px #050505, 0 50px 80px -30px rgb(0 0 0 / 0.85), 0 0 100px rgb(var(--tungstene) / 0.3);
  rotate: -3deg;
}
.theme-nuit .parcours__phone::before { display: none; }
.theme-nuit .parcours__phone .iphone__island { top: 1rem; z-index: 3; }
.theme-nuit .parcours__phone .iphone__status { top: 1.15rem; left: 1.6rem; right: 1.5rem; z-index: 3; }
.theme-nuit .parcours__track { border-radius: 1.95rem; overflow: hidden; background: linear-gradient(180deg, #181a1b, #121313); }
.theme-nuit .parcours__phone { overflow: hidden; }
.theme-nuit .pc-screen { padding-top: 2.9rem; gap: 0.6rem; }
.theme-nuit .pc-screen b { background: rgb(244 243 239 / 0.16); opacity: 1; }
.pc-g { display: flex; align-items: center; gap: 0.6em; padding: 0.6em 0.9em; border-radius: 999px; background: #232527; box-shadow: inset 0 0 0 1px rgb(244 243 239 / 0.1); font-weight: 600; }
.pc-g > b { width: auto !important; height: auto !important; background: none !important; font-weight: 900; color: rgb(var(--gel)); }
.pc-tabs { display: flex; gap: 0.9em; padding-bottom: 0.4em; border-bottom: 1px solid rgb(244 243 239 / 0.1); font-size: 0.9em; color: var(--ivoire-2); }
.pc-tabs i { font-style: normal; }
.pc-tabs i.is-on { color: rgb(var(--gel)); font-weight: 700; box-shadow: 0 0.55em 0 -0.4em rgb(var(--gel)); }
.pc-map { position: relative; height: 5.5em; border-radius: 0.6rem; background: repeating-linear-gradient(35deg, rgb(244 243 239 / 0.05) 0 2px, transparent 2px 14px), repeating-linear-gradient(-55deg, rgb(244 243 239 / 0.05) 0 2px, transparent 2px 18px), #17181a; }
.pc-map i { position: absolute; left: 46%; top: 30%; width: 1.3em; height: 1.3em; border-radius: 50% 50% 50% 0; rotate: -45deg; background: rgb(var(--gel)); box-shadow: 0 0 1em rgb(var(--gel) / 0.6); }
.theme-nuit .pc-result { position: relative; padding: 0.8em 0.8em 0.8em 2.6em; border: 0; border-radius: 0.7rem; background: rgb(244 243 239 / 0.05); }
.theme-nuit .pc-result.is-main { background: rgb(244 243 239 / 0.07); box-shadow: inset 0 0 0 1.5px rgb(var(--gel)), 0 0 2em rgb(var(--gel) / 0.18); }
.theme-nuit .pc-result strong { color: rgb(var(--gel)); }
.theme-nuit .pc-result small { color: var(--ivoire-2); }
.pc-fav { position: absolute; left: 0.8em; top: 0.85em; width: 1.3em; height: 1.3em; border-radius: 50%; background: radial-gradient(circle at 35% 35%, rgb(var(--gel)), rgb(var(--glow-deep))); }
.theme-nuit .pc-open { color: #5fd08a; }
.theme-nuit .pc-hero { display: flex; flex-direction: column; gap: 0.5em; justify-content: flex-end; min-height: 13em; padding: 1em 0.9em; border-radius: 0.8rem; font-family: var(--font-text); font-size: 1em; letter-spacing: 0;
  background: linear-gradient(transparent 30%, rgb(10 10 11 / 0.85)), radial-gradient(circle at 70% 25%, rgb(var(--tungstene) / 0.9), rgb(var(--glow-deep) / 0.5) 45%, #1a1c1d 80%); }
.theme-nuit .pc-hero small { color: rgb(var(--gel)); font-weight: 700; }
.theme-nuit .pc-hero > span:first-of-type { font-size: 2em; font-weight: 800; line-height: 1; letter-spacing: -0.03em; }
.theme-nuit .pc-btn { clip-path: none; border-radius: 999px; background: rgb(var(--gel)); color: var(--noir); box-shadow: 0 0 1.6em rgb(var(--gel) / 0.45); }
.theme-nuit .pc-screen .mk-chips, .theme-nuit .pc-screen .mk-nav { font-size: 0.9em; }
.theme-nuit .pc-h { font-family: var(--font-text); font-weight: 800; font-size: 1.7em; letter-spacing: -0.03em; }
.theme-nuit .pc-class { border-bottom-color: rgb(244 243 239 / 0.08); padding: 0.65em 0.4em; }
.theme-nuit .pc-class.is-hl { border-radius: 0.5rem; background: rgb(var(--gel) / 0.12); box-shadow: inset 0 0 0 1px rgb(var(--gel) / 0.5); }
.theme-nuit .pc-class small { color: var(--ivoire-2); }
.theme-nuit .pc-class em { padding: 0.1em 0.55em; border-radius: 999px; background: rgb(var(--gel)); color: var(--noir); }
.theme-nuit .pc-field { padding: 0.7em 0.8em; border: 0; border-radius: 0.55rem; box-shadow: inset 0 0 0 1px rgb(244 243 239 / 0.2); color: var(--ivoire-2); }
.theme-nuit .pc-field.is-filled { color: var(--ivoire); box-shadow: inset 0 0 0 1.5px rgb(var(--gel)); }
.theme-nuit .pc-sent { border-radius: 0.7rem; background: rgb(var(--gel) / 0.15); color: var(--ivoire); box-shadow: inset 0 0 0 1px rgb(var(--gel) / 0.6); }
.theme-nuit .pc-check { border-color: rgb(var(--gel)); }
.theme-nuit .pc-screen .mk-logo { width: 1.6em; height: 1.6em; border-radius: 50%; background: radial-gradient(circle at 35% 35%, rgb(var(--gel)), rgb(var(--glow-deep))); }
.theme-nuit .pc-screen .mk-card { display: grid; gap: 0.15em; padding: 0.75em; border-radius: 0.7em; background: rgb(244 243 239 / 0.06); box-shadow: inset 0 0 0 1px rgb(var(--gel) / 0.35); }
.theme-nuit .pc-screen .mk-card--soft { box-shadow: inset 0 0 0 1px rgb(244 243 239 / 0.1); }
.theme-nuit .pc-screen .mk-card small { color: var(--ivoire-2); }
.theme-nuit .pc-screen .mk-chips i { font-style: normal; }
.pc-note { font-size: 0.9em; color: var(--ivoire-2); }
.pc-map--tall { flex: 1; min-height: 6em; }

/* Agenda : l'affiche typographique d'un événement sans flyer, dans la charte (plus de tape, mois longs lisibles) */
.theme-nuit .ag-poster { background: radial-gradient(circle at 75% 15%, rgb(var(--tungstene) / 0.55), rgb(var(--glow-deep) / 0.2) 45%, transparent 75%), #141516; border-radius: 1.2rem; box-shadow: inset 0 0 0 1px rgb(244 243 239 / 0.1); }
.theme-nuit .ag-poster__type { color: rgb(var(--gel)); }
.theme-nuit .ag-poster__tape { display: block; width: 3.5rem; height: 4px; border-radius: 99px; background: rgb(var(--gel)); box-shadow: 0 0 18px rgb(var(--gel) / 0.6); clip-path: none; transform: none; }
.theme-nuit .ag-poster__date { font-size: clamp(1.9rem, 1rem + 2.4vw, 3.6rem); overflow-wrap: anywhere; color: var(--ivoire); }
