/* Zenga · page de présentation. Système « Le Pagne » (DESIGN.md). Mobile d'abord : 390 × 844 est la référence. */

@font-face { font-family: "Unbounded"; font-weight: 700; font-display: swap; src: url("../fonts/unbounded-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Unbounded"; font-weight: 800; font-display: swap; src: url("../fonts/unbounded-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Onest"; font-weight: 400; font-display: swap; src: url("../fonts/onest-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Onest"; font-weight: 500; font-display: swap; src: url("../fonts/onest-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Onest"; font-weight: 600; font-display: swap; src: url("../fonts/onest-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Onest"; font-weight: 700; font-display: swap; src: url("../fonts/onest-latin-700-normal.woff2") format("woff2"); }

:root {
  --indigo: #1E2A78;
  --indigo-profond: #161F5C;
  --safran: #F4A300;
  --safran-profond: #D98F00;
  --hibiscus: #C8364E;
  --hibiscus-profond: #B02E44;
  --emeraude: #0B7A66;
  --emeraude-profond: #096A58;
  --nuit: #14183D;
  --nuit-releve: #262B57;
  --fond: #F4F3FA;
  --blanc: #FFFFFF;
  --filet: #E3E1F0;
  --filet-fort: #C9C6DE;
  --attenue: #565B82;
  --sur-indigo: #C9CEF2;
  --sur-nuit: #B4B9DC;
  --sur-safran: #4A2F00;
  --sur-hibiscus: #FFF0F2;
  --sur-emeraude: #E4F7F2;

  --titre: "Unbounded", "Onest", system-ui, sans-serif;
  --texte: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --marge: clamp(20px, 5vw, 64px);
  --largeur: 1280px;
  --section: clamp(80px, 12vw, 152px);
  --coupe: clamp(48px, 9vw, 128px);
  --sortie: cubic-bezier(0.16, 1, 0.3, 1);
  --ombre-tel: 0 28px 48px -24px rgb(20 24 61 / 0.5), 0 10px 18px -10px rgb(20 24 61 / 0.3);
  --ombre-douce: 0 8px 16px -8px rgb(20 24 61 / 0.22);

  color-scheme: light;
  accent-color: var(--safran);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 64px; }
body {
  margin: 0; background: var(--fond); color: var(--nuit);
  font: 400 1rem/1.6 var(--texte);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip; caret-color: var(--indigo);
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; text-underline-offset: 0.22em; text-decoration-thickness: 1.5px; }
::selection { background: var(--safran); color: var(--nuit); }
:focus-visible { outline: 3px solid var(--safran); outline-offset: 3px; border-radius: 8px; }
[hidden] { display: none !important; }

h1, h2, h3 { font-family: var(--titre); font-weight: 800; text-wrap: balance; }
h2 { font-size: clamp(2.1rem, 1.3rem + 3.6vw, 3.9rem); line-height: 1.05; letter-spacing: -0.03em; }
h3 { font-weight: 700; font-size: 1.125rem; line-height: 1.3; letter-spacing: -0.01em; }
p { text-wrap: pretty; }

.wrap { width: 100%; max-width: calc(var(--largeur) + 2 * var(--marge)); margin-inline: auto; padding-inline: var(--marge); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip { position: absolute; left: 16px; top: -72px; z-index: 60; background: var(--safran); color: var(--nuit); padding: 14px 20px; border-radius: 999px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
.ico { width: 20px; height: 20px; fill: currentColor; flex: none; }

/* Boutons : pilules de 56, un seul safran par écran. */
.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 28px; border-radius: 999px;
  font: 600 1rem/1.2 var(--texte); letter-spacing: 0.01em; text-decoration: none;
  border: 1.5px solid transparent; cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: background-color 0.14s, transform 0.22s var(--sortie);
}
.bouton:active { transform: scale(0.97); }
.bouton--action { background: var(--safran); color: var(--nuit); }
.bouton--action:hover { background: var(--safran-profond); }
.bouton--sombre { background: var(--blanc); color: var(--indigo); }
.bouton--sombre:hover { background: #E6E8F7; }
.bouton--nuit { background: var(--nuit); color: var(--blanc); }
.bouton--nuit:hover { background: var(--nuit-releve); }
.bouton--petit { min-height: 48px; padding: 0 22px; font-size: 0.9375rem; }

/* Découpes à 45° : un coin de pagne coupé, la section suivante passe dessous. */
.coupe { position: relative; z-index: 2; }
.coupe--droite { clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--coupe)), calc(100% - var(--coupe)) 100%, 0 100%); }
.coupe--gauche { clip-path: polygon(0 0, 100% 0, 100% 100%, var(--coupe) 100%, 0 calc(100% - var(--coupe))); }
.coupe + * { margin-top: calc(-1 * var(--coupe)); padding-top: calc(var(--section) + var(--coupe)); }

/* En-tête. */
.entete { background: var(--indigo); color: var(--blanc); position: relative; z-index: 5; }
.entete-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 24px; min-height: 68px; }
.marque { display: inline-flex; align-items: center; min-height: 48px; }
.marque img { width: 116px; }
.menu-bouton { display: none; }
.js .menu-bouton {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 20px; border-radius: 999px;
  border: 1.5px solid rgb(255 255 255 / 0.6); background: transparent; color: var(--blanc); font: 600 0.9375rem var(--texte); cursor: pointer;
}
.menu { width: 100%; display: flex; flex-direction: column; gap: 12px; padding-bottom: 20px; }
.js .menu { display: none; }
.js .menu.ouvert { display: flex; }
.menu ul a { display: flex; align-items: center; min-height: 52px; font-size: 1.125rem; font-weight: 500; color: var(--blanc); text-decoration: none; border-bottom: 1px solid rgb(255 255 255 / 0.14); }
.menu .bouton { align-self: flex-start; }

/* Héros. */
.heros { background: var(--indigo); color: var(--blanc); overflow: hidden; }
.heros-zm { position: absolute; width: 150vw; max-width: 1100px; aspect-ratio: 1; right: -60vw; top: 18%; color: var(--blanc); opacity: 0.05; pointer-events: none; }
.heros-grille { position: relative; display: grid; gap: 28px; padding-top: 20px; }
h1 { font-size: clamp(2.5rem, 0.6rem + 8.6vw, 6rem); line-height: 1.02; letter-spacing: -0.04em; max-width: 11ch; }
.chapeau { margin-top: 18px; font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.3125rem); line-height: 1.55; color: var(--sur-indigo); max-width: 34em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.heros-scene { position: relative; height: calc(min(64vw, 380px) * 2.17 * 0.62); margin-inline: calc(-1 * var(--marge)); perspective: 1400px; overflow: hidden; }
.heros-tel { position: absolute; left: 50%; top: 16px; width: min(64vw, 380px); transform: translateX(-38%); }
.heros-perso { position: absolute; left: max(4px, calc(50% - min(64vw, 380px) * 0.92)); bottom: 0; width: min(36vw, 200px); z-index: 2; }

/* Téléphone : coque nuit, écran arrondi, inclinaison 2,5D. */
.tel { container-type: inline-size; width: 100%; }
.tel-coque { background: var(--nuit); padding: 3cqw; border-radius: 15cqw; box-shadow: var(--ombre-tel); }
.tel-coque img { border-radius: 12cqw; width: 100%; background: var(--fond); }
.tel--incline { transform: rotateY(-16deg) rotateX(5deg) rotateZ(2deg); transform-style: preserve-3d; }
.js .heros-tel .tel { animation: entre 1.2s var(--sortie) both; }

/* La lisière. */
.lisiere { position: relative; z-index: 3; background: var(--safran); color: var(--nuit); overflow: hidden; }
.lisiere-piste { display: flex; width: max-content; animation: defile 44s linear infinite; }
.lisiere-lot { display: flex; align-items: center; gap: 14px; padding: 14px 14px; font: 700 0.75rem/1 var(--texte); letter-spacing: 0.14em; text-transform: uppercase; white-space: nowrap; }
.lisiere-lot svg { width: 12px; height: 12px; fill: var(--nuit); flex: none; }
.pt { width: 8px; height: 8px; border-radius: 50%; background: var(--nuit); flex: none; animation: pouls 1.3s ease-in-out infinite alternate; }

.lisiere-page {
  position: fixed; inset: 0 0 auto 0; z-index: 40; display: flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 8px var(--marge); padding-top: max(8px, env(safe-area-inset-top));
  background: var(--safran); color: var(--nuit);
  font: 700 0.6875rem/1.25 var(--texte); letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none;
  box-shadow: var(--ombre-douce); transform: translateY(-110%); transition: transform 0.36s var(--sortie), background-color 0.3s;
}
.lisiere-page[hidden] { display: flex !important; visibility: hidden; }
.lisiere-page.visible { transform: none; visibility: visible; }
.lisiere-page.termine { background: var(--emeraude); color: var(--blanc); }
.lisiere-page[data-fond="safran"] { background: var(--nuit); color: var(--safran); }
.lisiere-page[data-fond="safran"] .lp-dot { background: var(--safran); }
.lisiere-page.termine .lp-dot { background: var(--blanc); animation: none; }
.lisiere-page:focus-visible { outline-offset: -4px; outline-color: var(--nuit); }
.lp-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--nuit); flex: none; animation: pouls 1.3s ease-in-out infinite alternate; }
.lp-ici { min-width: 0; white-space: nowrap; }
.lp-suite { margin-left: auto; white-space: nowrap; }
.lp-verbe { display: inline; }
.lisiere-page.en-direct .lp-suite { display: none; }
.lisiere-page.en-direct .lp-ici { flex: 1; }
.lp-chev { width: 16px; height: 16px; fill: currentColor; flex: none; }

/* Une journée avec Zenga : quatre plans francs, joués dans le temps, choisis par le défilement.
   Repli (sans JS, « réduire les animations », paysage bas) : chaque plan est un bloc à lire, scène comprise. */
:root { --scene: cubic-bezier(0.22, 1, 0.36, 1); --pousse: cubic-bezier(0.32, 0.72, 0, 1); --doux: cubic-bezier(0.45, 0, 0.55, 1); }
.journee-tete { padding-block: var(--section) 32px; }
.journee-tete p { margin-top: 14px; color: var(--attenue); font-size: 1.0625rem; }
.plan { position: relative; overflow: hidden; display: grid; gap: 20px; padding: 40px var(--marge) 48px; }
.plan--hibiscus { background: var(--hibiscus); color: var(--blanc); --heure: var(--nuit); }
.plan--indigo { background: var(--indigo); color: var(--blanc); --heure: var(--safran); }
.plan--emeraude { background: var(--emeraude); color: var(--blanc); --heure: var(--nuit); }
.plan--nuit { background: var(--nuit); color: var(--blanc); --heure: var(--safran); }
.plan-scene { order: 2; display: block; width: calc(100% + 2 * var(--marge)); height: min(92vw, 520px); margin-inline: calc(-1 * var(--marge)); }
.plan-texte { order: 1; position: relative; z-index: 3; }
.plan-texte p:last-child { margin-top: 10px; max-width: 30em; opacity: 0.94; }
.plan-heure { font: 800 clamp(3rem, 2rem + 6vw, 7rem)/1 var(--titre); letter-spacing: -0.04em; color: var(--heure); font-variant-numeric: tabular-nums; }
.plan h3 { margin-top: 10px; font-size: clamp(1.5rem, 1.1rem + 1.8vw, 2.6rem); line-height: 1.1; letter-spacing: -0.025em; max-width: 15ch; }
.plan-tel { order: 3; width: min(58vw, 300px); justify-self: end; margin-top: -42%; position: relative; z-index: 3; }
.tel-partage, .progression { display: none; }
.plan-clip { display: none; }
.journee.scene .plan-clip { display: block; position: absolute; inset: auto 0 0 0; width: 100%; height: 60%; object-fit: cover; object-position: left bottom; opacity: 0; transition: opacity 0.6s var(--doux); }
.journee.scene .plan-clip.pret { opacity: 1; }
.palier-bas .plan-clip { display: none !important; }
@media (min-width: 1024px) { .plan-clip { display: none !important; } }

.journee.scene .recit { position: sticky; top: 0; height: 100vh; height: 100lvh; overflow: hidden; background: var(--nuit); }
.journee.scene .plan { position: absolute; inset: 0; display: block; padding: 0; visibility: hidden; z-index: 0; clip-path: polygon(140% 0, 140% 0, 100% 100%, 100% 100%); transition: clip-path 0s linear 0.8s, visibility 0s linear 0.8s; }
.journee.scene .plan.sortant { visibility: visible; z-index: 1; clip-path: polygon(0 0, 140% 0, 140% 100%, -40% 100%); }
.journee.scene .plan.actif { visibility: visible; z-index: 2; clip-path: polygon(0 0, 140% 0, 140% 100%, -40% 100%); transition: clip-path 0.75s var(--scene), visibility 0s; }
.journee.scene .plan.actif.arriere { clip-path: polygon(0 0, 140% 0, 140% 100%, -40% 100%); }
.journee.scene .plan-scene { position: absolute; inset: auto 0 0 0; width: 100%; height: 60%; margin: 0; transform: translate3d(var(--sens, 5%), 0, 0) scale(1.04); transition: transform 1.2s var(--scene); }
.journee.scene .plan.actif .plan-scene { transform: none; }
.journee.scene .plan-texte { position: absolute; top: 68px; left: var(--marge); right: var(--marge); }
.journee.scene .plan-texte > * { opacity: 0; transform: translate3d(0, 22px, 0); transition: opacity 0.3s var(--doux), transform 0.3s var(--doux); }
.journee.scene .plan.actif .plan-texte > * { opacity: 1; transform: none; transition: opacity 0.7s var(--scene), transform 0.8s var(--scene); }
.journee.scene .plan.actif .plan-texte > :nth-child(1) { transition-delay: 0.12s; }
.journee.scene .plan.actif .plan-texte > :nth-child(2) { transition-delay: 0.2s; }
.journee.scene .plan.actif .plan-texte > :nth-child(3) { transition-delay: 0.28s; }
.journee.scene .plan-tel { display: none; }

/* Le téléphone d'Awa, unique : il pivote, se rapproche, et pousse ses écrans comme l'app. */
.journee.scene .tel-partage { display: block; position: absolute; z-index: 3; right: 4vw; top: max(310px, 40vh); width: min(44vw, 230px, calc((60lvh - 40px) / 2.2)); }
.tel-partage .tel { transition: transform 0.95s var(--scene); transform-origin: 50% 42%; }
.recit[data-plan="0"] .tel-partage .tel { transform: perspective(1400px) rotateY(-16deg) rotateX(5deg) rotateZ(3deg); }
.recit[data-plan="1"] .tel-partage .tel { transform: perspective(1400px) translate3d(-6%, 4%, 0) scale(1.15); }
.recit[data-plan="2"] .tel-partage .tel { transform: perspective(1400px) rotateY(-8deg) rotateX(4deg) rotateZ(-2deg) translate3d(0, -8%, 0); }
.recit[data-plan="3"] .tel-partage .tel { transform: perspective(1400px) rotateY(-20deg) rotateX(6deg) rotateZ(2deg); }
.ecran-pile { position: relative; overflow: hidden; border-radius: 12cqw; aspect-ratio: 720 / 1566; background: var(--fond); }
.ecran-pile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 0; transform: translate3d(100%, 0, 0); transition: transform 0.56s var(--pousse), opacity 0.56s var(--pousse); }
.ecran-pile img.passe { transform: translate3d(-28%, 0, 0); opacity: 0.6; }
.ecran-pile img.actif { transform: none; opacity: 1; z-index: 1; }
.billet { position: absolute; z-index: -1; left: 10%; right: 10%; bottom: 8%; display: grid; overflow: hidden; border-radius: 16px; background: var(--blanc); color: var(--nuit); box-shadow: var(--ombre-tel); opacity: 0; visibility: hidden; transform: translate3d(0, -10%, 0); transition: transform 0.5s var(--doux), opacity 0.3s, visibility 0s 0.5s; }
.recit[data-plan="2"] .billet { opacity: 1; visibility: visible; transform: translate3d(-6%, 64%, 0) rotate(-5deg); transition: transform 0.9s var(--scene) 0.55s, opacity 0.2s 0.55s, visibility 0s 0.55s; }
.billet-tete { display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: var(--emeraude); color: var(--blanc); font: 700 0.625rem/1.2 var(--texte); letter-spacing: 0.14em; text-transform: uppercase; }
.billet-tete .pt { background: var(--blanc); }
.billet-corps { display: grid; padding: 10px 12px 12px; font-size: 0.75rem; color: var(--attenue); }
.billet-corps b { font: 800 1rem/1.2 var(--titre); color: var(--nuit); }

/* Indicateur de progression des séquences. */
.scene .progression { display: flex; position: absolute; z-index: 4; left: var(--marge); bottom: max(22px, env(safe-area-inset-bottom)); gap: 6px; color: var(--blanc); }
.progression li { width: 18px; height: 4px; border-radius: 2px; background: currentColor; opacity: 0.35; transition: width 0.5s var(--scene), opacity 0.5s; }
.progression li.actif { width: 36px; opacity: 1; }
.univers .progression { color: var(--blanc); }
.univers-scene[data-index="1"] .progression { color: var(--nuit); }

/* Gestuelle et détails vivants, joués seulement sur le plan actif (et jamais au palier bas). */
.plan-scene .p-tete { transform-box: view-box; transform-origin: 96px 90px; }
.plan-scene .s-awa .p-geste { transform-box: view-box; transform-origin: 127px 151px; }
.plan-scene .s-coiffeuse .p-geste { transform-box: view-box; transform-origin: 127px 108px; }
.plan-scene .p-vapeur path { transform-box: fill-box; opacity: 0; }
.plan-scene .s-traine rect { transform-box: fill-box; transform-origin: right center; opacity: 0; }
.plan.actif .s-awa .p-geste { animation: tape 1.9s var(--doux) infinite; }
.plan.actif .p-tete { animation: hoche 3.4s var(--doux) infinite; }
.plan.actif .s-coiffeuse .p-geste { animation: peigne 1.5s var(--doux) infinite; }
.plan.actif .p-vapeur path { animation: vapeur 2.6s var(--doux) infinite; }
.plan.actif .p-vapeur path + path { animation-delay: 1.1s; }
.plan.actif .s-moto { animation: arrive 1.3s var(--scene) 0.15s both; }
.plan.actif .s-zem { animation: file 1.5s var(--scene) 0.1s both; }
.plan.actif .s-zem > svg { animation: cahot 0.42s var(--doux) 1.6s infinite; }
.plan.actif .s-traine rect { animation: traine 0.9s var(--doux) 0.1s 3; }
.plan.actif .s-traine rect:nth-child(2) { animation-delay: 0.22s; }
.plan.actif .s-traine rect:nth-child(3) { animation-delay: 0.34s; }
.plan.actif .s-cone { animation: lueur 4s var(--doux) infinite; }
@keyframes tape { 0%, 100% { transform: rotate(0); } 38% { transform: rotate(-8deg); } 52% { transform: rotate(-3deg); } }
@keyframes hoche { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-4deg); } }
@keyframes peigne { 0%, 100% { transform: rotate(0); } 45% { transform: rotate(-16deg); } }
@keyframes vapeur { 0% { opacity: 0; transform: translate3d(0, 6px, 0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translate3d(0, -16px, 0); } }
@keyframes arrive { from { transform: translate3d(560px, 0, 0); } }
@keyframes file { from { transform: translate3d(-620px, 0, 0); } }
@keyframes cahot { 0%, 100% { transform: translate3d(0, 0, 0); } 50% { transform: translate3d(0, -3px, 0); } }
@keyframes traine { 0% { opacity: 0; transform: scaleX(0.2); } 40% { opacity: 0.9; } 100% { opacity: 0; transform: scaleX(1); } }
@keyframes lueur { 0%, 100% { opacity: 0.16; } 50% { opacity: 0.24; } }
.palier-bas .plan.actif .plan-scene *, .palier-bas .plan.actif .plan-scene { animation: none !important; }

/* Accrochage de proximité sur chaque plan et chaque univers : on ne s'arrête jamais entre deux (jamais de piège). */
.accroche { scroll-snap-type: y proximity; }
.accroche.glisse { scroll-snap-type: none; }
:focus:not(:focus-visible) { outline: none; }
.espace-scene { position: relative; }
.repere-accroche { position: absolute; left: 0; width: 1px; height: 1px; scroll-snap-align: start; pointer-events: none; }

/* Les quatre univers : défilement latéral piloté par le défilement vertical. */
.volet { position: relative; overflow: hidden; display: grid; gap: 24px; padding: 72px var(--marge) 0; min-height: 100svh; align-content: start; }
.volet--manger { background: var(--hibiscus); color: var(--blanc); --mot: var(--hibiscus-profond); }
.volet--courses { background: var(--safran); color: var(--nuit); --mot: var(--safran-profond); }
.volet--rdv { background: var(--emeraude); color: var(--blanc); --mot: var(--emeraude-profond); }
.volet--trajet { background: var(--indigo); color: var(--blanc); --mot: var(--indigo-profond); }
.volet--manger p { color: var(--sur-hibiscus); }
.volet--courses p { color: var(--sur-safran); }
.volet--rdv p { color: var(--sur-emeraude); }
.volet--trajet p { color: var(--sur-indigo); }
.volet .volet-mot { color: var(--mot); }
.volet-mot { position: absolute; left: -0.06em; bottom: 0.02em; font: 800 26vw/0.8 var(--titre); letter-spacing: -0.05em; color: var(--mot); white-space: nowrap; pointer-events: none; }
.volet-texte { position: relative; z-index: 1; max-width: 30rem; }
.volet-picto { width: 64px; height: 64px; color: var(--blanc); --acc: var(--nuit); margin-bottom: 16px; }
.volet--courses .volet-picto { color: var(--nuit); --acc: var(--blanc); }
.volet--rdv .volet-picto, .volet--trajet .volet-picto { --acc: var(--safran); }
.volet h3 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.4rem); line-height: 1.05; letter-spacing: -0.03em; }
.volet-texte p { margin-top: 12px; font-size: 1.0625rem; }
.volet .tel { position: relative; z-index: 1; width: min(52vw, 300px); justify-self: end; margin-bottom: -40%; }

.univers.scene .univers-scene { position: sticky; z-index: 0; top: 0; height: 100vh; height: 100lvh; overflow: hidden; }
.univers.scene .univers-piste { display: flex; width: 400vw; height: 100%; will-change: transform; transition: transform 0.95s var(--scene); }
.univers.scene .volet-mot { transition: transform 1.25s var(--scene); }
.univers.scene .volet .tel { transition: transform 1.05s var(--scene); }
.univers.scene .volet { width: 100vw; height: 100%; min-height: 0; flex: none; }

/* Régions de couleur entière. */
.region { padding-block: var(--section); overflow: hidden; }
.region--rdv { background: var(--emeraude); color: var(--blanc); }
.region--rdv p { color: var(--sur-emeraude); }
.region--trajet, .region--indigo { background: var(--indigo); color: var(--blanc); }
.region--trajet p, .region--indigo p { color: var(--sur-indigo); }
.region--nuit { background: var(--nuit); color: var(--blanc); }
.region--nuit p { color: var(--sur-nuit); }
.region--safran { background: var(--safran); color: var(--nuit); }
.region--safran p { color: var(--sur-safran); }

.tete-deux { display: grid; gap: 18px; }
.tete-deux p { font-size: 1.0625rem; max-width: 32em; }

/* Rendez-vous : cinq étapes. Mobile : rangées téléphone + texte, en alternance. */
.parcours { display: grid; gap: 40px; max-width: calc(var(--largeur) + 2 * var(--marge)); margin: 48px auto 0; padding-inline: var(--marge); }
.parcours li { display: grid; grid-template-columns: 58% 1fr; gap: 18px; align-items: end; }
.parcours li:nth-child(even) { grid-template-columns: 1fr 58%; }
.parcours li:nth-child(even) figure { order: 2; }
.parcours h3 { flex-direction: column; align-items: flex-start; gap: 10px; }
.parcours h3 { display: flex; align-items: center; gap: 12px; font-size: 1.25rem; }
.parcours .num { display: inline-grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 50%; background: var(--safran); color: var(--nuit); font: 800 1rem/1 var(--titre); }
.etape-texte { min-width: 0; }
.parcours p { margin-top: 8px; font-size: 0.9375rem; line-height: 1.5; }
.parcours:focus-visible { outline-offset: 8px; }

/* Trajets : la flotte sur une bande claire. */
.flotte { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 14px; margin-top: 40px; padding: 24px 18px; background: var(--fond); color: var(--nuit); border-radius: 24px; }
.flotte li { display: grid; justify-items: start; align-content: start; gap: 2px; }
.flotte li:last-child { grid-column: 1 / -1; justify-self: center; justify-items: center; text-align: center; }
.flotte img { width: 100%; max-width: 168px; aspect-ratio: 160 / 96; margin-bottom: 8px; }
.flotte b { font: 800 1.0625rem/1.2 var(--titre); letter-spacing: -0.01em; }
.flotte span { font-size: 0.875rem; line-height: 1.4; color: var(--attenue); }
.flotte span + span { color: var(--nuit); font-weight: 600; }

/* Trios (trajets, pros). Mobile : rangées téléphone + légende, jamais de contenu caché. */
.trio { display: grid; gap: 32px; margin-top: 48px; }
.trio > figure { display: grid; grid-template-columns: 46% 1fr; gap: 20px; align-items: center; }
.trio > figure:nth-child(even) { grid-template-columns: 1fr 46%; }
.trio > figure:nth-child(even) > :first-child { order: 2; }
.trio figcaption { font-size: 1rem; line-height: 1.5; color: var(--sur-indigo); }

/* Portefeuille. */
.portefeuille { padding-block: var(--section); }
.portefeuille-grille { display: grid; gap: 40px; }
.portefeuille-chapeau { margin-top: 18px; color: var(--attenue); font-size: 1.0625rem; max-width: 32em; }
.tel--seul { width: min(68vw, 320px); justify-self: center; }
.faits { display: grid; margin-top: 28px; }
.faits li { display: flex; gap: 16px; align-items: center; padding: 16px 0; border-top: 1px solid var(--filet-fort); }
.faits li:last-child { border-bottom: 1px solid var(--filet-fort); }
.faits svg { width: 44px; height: 44px; flex: none; color: var(--indigo); --acc: var(--safran); }

/* Rendez-vous : trois étapes en texte, un seul écran (les créneaux). */
.rdv-corps { display: grid; gap: 40px; margin-top: 40px; }
.etapes-rdv { display: grid; gap: 22px; }
.etapes-rdv li { display: flex; gap: 16px; align-items: flex-start; }
.etapes-rdv .num { display: inline-grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 50%; background: var(--safran); color: var(--nuit); font: 800 1.0625rem/1 var(--titre); }
.etapes-rdv b { display: block; font: 700 1.25rem/1.25 var(--titre); color: var(--blanc); margin-bottom: 4px; }
.etapes-rdv li > span:last-child { color: var(--sur-emeraude); font-size: 1rem; line-height: 1.5; }
.rdv-corps .tel--seul { width: min(62vw, 320px); }

/* Trajets : deux moments. */
.trio--deux > figure { grid-template-columns: 46% 1fr; }

/* Rejoindre : deux bandes pleine largeur, coupées à 45°, un appel chacune. */
.rejoindre { position: relative; }
.appel { position: relative; display: block; text-decoration: none; color: var(--blanc); transition: background-color 0.2s; }
.appel--commerce { background: var(--hibiscus); clip-path: polygon(0 0, 100% 0, 100% calc(100% - 48px), calc(100% - 48px) 100%, 0 100%); z-index: 1; }
.appel--route { background: var(--indigo); margin-top: -48px; }
.appel--commerce:hover { background: var(--hibiscus-profond); }
.appel--route:hover { background: var(--indigo-profond); }
.appel-in { display: grid; grid-template-columns: 30% 1fr; gap: 18px; align-items: end; padding-top: 32px; }
.appel--route .appel-in { padding-top: 80px; }
.appel img { width: 100%; max-width: 200px; }
.appel--route img { max-width: 220px; align-self: center; margin-bottom: 40px; }
.appel-texte { display: grid; gap: 8px; align-self: center; padding-block: 8px 48px; }
.appel b { font: 800 1.4rem/1.12 var(--titre); letter-spacing: -0.02em; text-wrap: balance; }
.appel-texte > span:not(.appel-lien) { font-size: 0.9375rem; line-height: 1.5; opacity: 0.94; max-width: 34em; }
.appel-lien { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; font-weight: 700; color: var(--safran); }
.appel--commerce .appel-lien { color: var(--blanc); text-decoration: underline; text-underline-offset: 0.25em; }
.appel:hover .appel-lien { text-decoration: underline; }

/* Vidéo. */
.video h2 { text-align: center; }
.lecteur { position: relative; max-width: 1040px; margin: 36px auto 0; aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden; background: var(--nuit); }
.lecteur video { width: 100%; height: 100%; object-fit: cover; background: var(--nuit); }
.video-desc { margin: 18px auto 0; max-width: 40em; text-align: center; font-size: 0.9375rem; }

/* Fin : le casting du quartier. */
.fin { position: relative; padding-bottom: 0; }
.fin-zm { position: absolute; width: 120vw; max-width: 980px; aspect-ratio: 1; right: -48vw; top: -10%; color: var(--nuit); opacity: 0.07; pointer-events: none; }
.fin-grille { position: relative; display: grid; gap: 24px; }
.fin h2 { font-size: clamp(2.5rem, 1.2rem + 6vw, 5.2rem); line-height: 1.02; letter-spacing: -0.04em; }
.fin-texte p { font-size: 1.0625rem; margin-bottom: 26px; max-width: 32em; }
.fin-mail { margin-top: 14px; margin-bottom: 0 !important; font-weight: 600; font-size: 0.9375rem !important; }

.pied { background: var(--nuit); color: var(--sur-nuit); padding-block: 40px; font-size: 0.9375rem; border-top: 10px solid var(--safran); }
.pied-grille { display: grid; gap: 28px; align-items: start; }
.pied-logo { width: 122px; margin-bottom: 16px; }
.pied p + p { margin-top: 8px; }
.pied-note { font-size: 0.875rem; }
.mentions summary { cursor: pointer; color: var(--blanc); font-weight: 600; min-height: 48px; display: flex; align-items: center; }
.mentions p { margin-top: 8px; font-size: 0.875rem; }
.mentions a { color: var(--blanc); }

/* Apparitions : visibles par défaut, décalées seulement si elles sont sous l'écran au chargement. */
@media (prefers-reduced-motion: no-preference) {
  [data-reveal] { transition: transform 0.9s var(--sortie), opacity 0.9s var(--sortie); }
  [data-reveal].avant { transform: translateY(28px); }
  [data-reveal="rouler"].avant { transform: translateX(-40px); }
}
@keyframes defile { to { transform: translateX(-50%); } }
@keyframes pouls { from { opacity: 1; } to { opacity: 0.25; } }
@keyframes entre { from { transform: rotateY(-34deg) rotateX(10deg) rotateZ(4deg) translateY(80px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
  .lisiere { overflow-x: auto; scrollbar-width: none; }
  .lisiere-piste { animation: none; }
  .lisiere-lot + .lisiere-lot { display: none; }
  .pt, .lp-dot { animation: none; }
}

/* Héros sur téléphone : titre, action, téléphone coupé par la lisière, tout dans le premier écran. */
@media (max-width: 767px) {
  .heros { min-height: calc(100svh - 68px); display: grid; grid-template-rows: 1fr auto; }
  .heros-grille { grid-template-rows: auto 1fr; gap: 16px; }
  .heros-scene { height: auto; min-height: 210px; }
  .chapeau { font-size: 1rem; line-height: 1.5; margin-top: 14px; }
  .actions { margin-top: 20px; }
}

/* Mots géants des univers sur téléphone : en entier, dans le vide en bas à gauche. */
@media (max-width: 767px) {
  .volet-mot { font-size: 30vw; bottom: auto; top: 64%; }
  .univers .progression { top: auto; bottom: max(18px, env(safe-area-inset-bottom)); }
}
@media (max-width: 420px) {
  .lisiere-page .lp-suite { display: none; }
  .lp-ici { flex: 1; }
}

/* Petits téléphones. */
@media (max-width: 374px) {
  .lisiere-page .lp-suite span:last-child { display: none; }
  .parcours li { grid-template-columns: 54% 1fr; }
  .parcours li:nth-child(even) { grid-template-columns: 1fr 54%; }
}

/* Ordinateur : texte à gauche sur l'aplat, scène à droite, téléphone au bord droit. */
@media (min-width: 1024px) {
  .plan { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; padding: 72px max(var(--marge), calc((100vw - var(--largeur)) / 2)); }
  .plan-scene { order: 2; grid-row: 1 / 3; grid-column: 2; width: 100%; height: 560px; margin: 0; }
  .plan-tel { grid-column: 2; grid-row: 1 / 3; align-self: center; justify-self: end; width: 280px; margin: 0; }
  .journee.scene .plan-scene, .journee.scene .plan-clip { inset: 0 0 0 34%; width: 66%; height: 100%; }
  .journee.scene .plan-texte { top: 50%; left: max(var(--marge), calc((100vw - var(--largeur)) / 2)); right: auto; width: 32%; transform: translateY(-50%); }
  .journee.scene .tel-partage { right: max(var(--marge), calc((100vw - var(--largeur)) / 2)); top: calc(50% + 22px); width: min(320px, calc((100lvh - 150px) / 2.2)); transform: translateY(-50%); margin: 0; }
  .recit[data-plan="1"] .tel-partage .tel { transform: perspective(1400px) translate3d(-10%, 4%, 0) scale(1.1); }
  .appel-in { grid-template-columns: 220px 1fr; gap: 56px; padding-top: 48px; }
  .appel--route .appel-in { padding-top: 96px; }
  .appel b { font-size: 2.2rem; }
  .appel-texte { padding-block: 16px 72px; }
}

/* Grands téléphones et tablettes. */
@media (min-width: 600px) {
  .lp-verbe { display: inline; }
  .lisiere-page.en-direct .lp-suite { display: inline; }
  .lisiere-page.en-direct .lp-ici { flex: 0 1 auto; }
        .flotte { grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 28px; }
  .flotte li:last-child { grid-column: auto; justify-self: stretch; justify-items: start; text-align: start; }
}

@media (min-width: 768px) {
  .pied-grille { grid-template-columns: 2fr 1fr; }
  .volet-mot { font-size: 20vw; }
}

/* Ordinateur. */
@media (min-width: 1024px) {
  html { scroll-padding-top: 56px; }
  .entete-in { flex-wrap: nowrap; min-height: 80px; }
  .marque img { width: 134px; }
  .js .menu-bouton { display: none; }
  .menu, .js .menu { display: flex; width: auto; flex-direction: row; align-items: center; gap: 32px; padding: 0; }
  .menu ul { display: flex; gap: 28px; }
  .menu ul a { min-height: 48px; font-size: 1rem; color: var(--sur-indigo); border: 0; }
  .menu ul a:hover { color: var(--blanc); text-decoration: underline; }

  .heros-grille { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; gap: 48px; padding-top: 40px; }
  h1 { max-width: 12.5ch; font-size: clamp(3.4rem, 0.8rem + 4.6vw, 6rem); }
  .heros-texte { align-self: center; padding-bottom: 64px; }
  .heros-scene { height: 660px; margin: 0; overflow: visible; }
  .heros-tel { width: 380px; top: 24px; transform: translateX(-42%); }
  .heros-perso { width: 200px; left: -40px; }
  .heros-zm { width: 900px; right: -300px; top: -120px; }
  .lisiere-lot { font-size: 0.8125rem; padding-block: 15px; }
  .lisiere-page { font-size: 0.75rem; min-height: 44px; }


  .volet { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); align-items: center; align-content: center; padding: 56px max(var(--marge), calc((100vw - var(--largeur)) / 2)) 0; min-height: 760px; }
  .volet-mot { font-size: 15vw; }
  .volet .tel { width: 300px; justify-self: center; margin-bottom: 0; }
  .volet-picto { width: 80px; height: 80px; }
  .volet-texte p { font-size: 1.1875rem; }

  .tete-deux { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; gap: 64px; }
  .rdv-corps { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); align-items: center; gap: 80px; margin-top: 64px; }
  .tete-deux p { font-size: 1.1875rem; }
  .parcours { grid-template-columns: repeat(3, minmax(0, 260px)); justify-content: center; gap: 56px; margin-top: 72px; }
  .parcours li:nth-child(2) figure { transform: translateY(-48px); }
  .parcours li, .parcours li:nth-child(even) { display: block; }
  .parcours h3 { margin-top: 24px; font-size: 1.125rem; flex-direction: row; align-items: center; }


  .flotte { grid-template-columns: repeat(5, minmax(0, 1fr)); margin-top: 56px; padding: 36px 32px; }
  .trio--deux { grid-template-columns: repeat(2, minmax(0, 300px)); justify-content: center; gap: 72px; }
  .trio { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 80px; max-width: 1000px; margin-inline: auto; align-items: start; }
  .trio > figure, .trio > figure:nth-child(even) { display: block; }
  .trio > :nth-child(2) { margin-top: 64px; }
  .trio figcaption { margin-top: 20px; font-size: 0.9375rem; }

  .portefeuille-grille { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; gap: 80px; }
  .tel--seul { width: 330px; }


  .fin-grille { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; gap: 72px; }
  .fin-zm { width: 900px; right: -260px; top: -200px; }
    }

@media (min-width: 1600px) {
  :root { --largeur: 1400px; }
}

/* Paysage sur téléphone : pas de scène épinglée (le JS la retire aussi), blocs lisibles. */
@media (max-height: 520px) and (orientation: landscape) {
  .heros-scene { height: 320px; }
  .heros-tel { width: 220px; }
  .heros-perso { width: 130px; }
}

/* Page introuvable. */
.introuvable { min-height: 100vh; display: grid; place-items: center; background: var(--indigo); color: var(--blanc); padding: 24px; }
.introuvable-boite { display: grid; justify-items: start; gap: 20px; max-width: 34rem; }
.introuvable h1 { font-size: clamp(2rem, 1.2rem + 3vw, 3.2rem); line-height: 1.05; max-width: none; }
.introuvable p { color: var(--sur-indigo); }

/* Qualité adaptative (assets/js/site.js) : même scène partout, rendue plus simplement sur les appareils modestes. */
.palier-moyen .tel-coque, .palier-bas .tel-coque { box-shadow: 0 16px 28px -18px rgb(20 24 61 / 0.5); }
.palier-bas .tel--incline, .palier-bas .heros-tel .tel { transform: none; animation: none; }
.palier-bas .region--nuit .tel-coque, .palier-bas .plan-visuel .tel-coque { box-shadow: none; }
.palier-bas .lisiere-piste { animation-duration: 70s; }

/* La lisière s'imprime : le nouvel état apparaît de gauche à droite. */
.lp-ici.imprime { animation: imprime 0.6s steps(18, end) both; }
@keyframes imprime { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }

/* Bas de page : chaque section joue sa propre entrée quand elle arrive à l'écran (classe .vu, posée une fois).
   Contenu visible sans JS, sous « réduire les animations » et au palier bas. */
@media (prefers-reduced-motion: no-preference) {
  .js:not(.palier-bas) [data-anime]:not(.vu) h2,
  .js:not(.palier-bas) [data-anime]:not(.vu) .tete-deux p,
  .js:not(.palier-bas) [data-anime]:not(.vu) .etapes-rdv li,
  .js:not(.palier-bas) [data-anime]:not(.vu) .faits li,
  .js:not(.palier-bas) [data-anime]:not(.vu) .portefeuille-chapeau,
  .js:not(.palier-bas) [data-anime]:not(.vu) .fin-texte > * { opacity: 0; transform: translate3d(0, 36px, 0); }
  [data-anime] h2, [data-anime] .tete-deux p, .etapes-rdv li, .faits li, .portefeuille-chapeau, .fin-texte > * {
    transition: opacity 0.7s var(--scene), transform 0.9s var(--scene);
  }
  [data-anime] .tete-deux p, .portefeuille-chapeau { transition-delay: 0.12s; }
  .etapes-rdv li:nth-child(1) { transition-delay: 0.25s; }
  .etapes-rdv li:nth-child(2) { transition-delay: 0.45s; }
  .etapes-rdv li:nth-child(3) { transition-delay: 0.65s; }
  .vu .etapes-rdv .num { animation: pastille 0.6s var(--scene) both; }
  .vu .etapes-rdv li:nth-child(2) .num { animation-delay: 0.2s; }
  .vu .etapes-rdv li:nth-child(3) .num { animation-delay: 0.4s; }
  .faits li:nth-child(1) { transition-delay: 0.2s; }
  .faits li:nth-child(2) { transition-delay: 0.35s; }
  .faits li:nth-child(3) { transition-delay: 0.5s; }
  .fin-texte > :nth-child(2) { transition-delay: 0.15s; }
  .fin-texte > :nth-child(3) { transition-delay: 0.25s; }

  /* Le téléphone arrive incliné, se redresse, puis respire. */
  .js:not(.palier-bas) [data-anime]:not(.vu) .tel--seul { opacity: 0; transform: perspective(1400px) translate3d(0, 120px, 0) rotateX(18deg) rotateZ(-6deg); }
  [data-anime] .tel--seul { transition: opacity 0.6s var(--doux) 0.2s, transform 1.2s var(--scene) 0.2s; }
  .vu .tel--seul .tel-coque { animation: flotte 5s var(--doux) 1.6s infinite; }

  /* Les pictos s'impriment : l'aplat safran glisse sous le trait, comme un décalage d'impression. */
  .vu .faits svg { animation: imprime-picto 0.8s var(--scene) both; }
  .vu .faits li:nth-child(2) svg { animation-delay: 0.15s; }
  .vu .faits li:nth-child(3) svg { animation-delay: 0.3s; }

  /* Trajets : la flotte arrive sur sa route, chaque véhicule freine à sa place puis tourne au ralenti. */
  .js:not(.palier-bas) [data-anime]:not(.vu) .flotte li:not(.route) img { transform: translate3d(-110vw, 0, 0); }
  .flotte li:not(.route) img { transition: transform 1.3s var(--scene); }
  .flotte li:nth-child(3) img { transition-delay: 0.12s; }
  .flotte li:nth-child(4) img { transition-delay: 0.24s; }
  .flotte li:nth-child(5) img { transition-delay: 0.36s; }
  .flotte li:nth-child(6) img { transition-delay: 0.48s; }
  .vu .flotte li:not(.route) img { animation: ralenti 0.5s var(--doux) 1.9s infinite; }
  .vu .flotte li:nth-child(odd) img { animation-delay: 2.1s; }

  /* Rejoindre : la commerçante salue, la moto entre et freine. */
  .js:not(.palier-bas) [data-anime]:not(.vu) .appel img { opacity: 0; }
  .appel img { transition: opacity 0.5s var(--doux); }
  .vu .appel--commerce img { animation: salue 2.6s var(--doux) 0.4s infinite; transform-origin: 50% 100%; }
  .vu .appel--route img { animation: entre-moto 1.2s var(--scene) 0.3s both, ralenti 0.5s var(--doux) 1.6s infinite; }
  .appel-lien svg { transition: transform 0.3s var(--scene); }
  .appel:hover .appel-lien svg { transform: translateX(6px); }

  /* Fin : le grand médaillon tourne lentement, le titre monte mot par mot. */
  .vu .fin-zm { animation: tourne 60s linear infinite; }
  .fin h2 .mot { display: inline-block; }
  .js:not(.palier-bas) .fin:not(.vu) h2 .mot { opacity: 0; transform: translate3d(0, 0.6em, 0) rotate(4deg); }
  .fin h2 .mot { transition: opacity 0.6s var(--scene), transform 0.9s var(--scene); }
  .fin h2 { opacity: 1 !important; transform: none !important; }
}
@keyframes pastille { 0% { transform: scale(0.2); } 60% { transform: scale(1.18); } 100% { transform: scale(1); } }
@keyframes flotte { 0%, 100% { transform: translate3d(0, 0, 0) rotate(0); } 50% { transform: translate3d(0, -10px, 0) rotate(-0.6deg); } }
@keyframes imprime-picto { from { --acc: transparent; transform: translate3d(-6px, -6px, 0); opacity: 0.2; } to { transform: none; opacity: 1; } }
@keyframes ralenti { 0%, 100% { transform: translate3d(0, 0, 0); } 50% { transform: translate3d(0, -2px, 0); } }
@keyframes salue { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(-3deg); } 40% { transform: rotate(2deg); } 60% { transform: rotate(0); } }
@keyframes entre-moto { from { transform: translate3d(70vw, 0, 0); } 80% { transform: translate3d(-12px, 0, 0); } to { transform: none; } }
@keyframes tourne { to { transform: rotate(360deg); } }

/* La route de la flotte : une bande nuit pointillée sous les véhicules. */
.flotte { position: relative; }
.flotte .route { position: absolute; left: 0; right: 0; bottom: 0; height: 0; padding: 0; border: 0; }
.appel { overflow: hidden; }
.appel-texte { position: relative; z-index: 1; }
