/* Restopedia — landing Ads, mobile d'abord
   Charte reprise de restopedia.fr : vert-noir, crème, vert, Poppins, panneaux arrondis.
   Passes UI inspirées du skill unslop de Damir Sokolovsky (@heydamir), CC BY 4.0. */

/* Polices auto-hébergées (sous-ensemble latin) : aucun appel à Google, chargement rapide */
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/poppins-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/poppins-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Lexend"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/lexend-latin-500-normal.woff2") format("woff2"); }

:root {
  --dark: #142328;
  --dark-2: #1b2f35;
  --dark-3: #233a41;
  --ink: #19342b;
  --green: #48cd4d;
  --green-hover: #5cd660;
  --green-ink: #2f9a34;
  --cream: #f7f6e3;
  --cream-2: #efedd2;
  --white: #ffffff;

  --text-2: #3f5249;
  --text-3: #5d6b64;
  --line: rgba(25, 52, 43, 0.1);
  --on-dark: #f7f6e3;
  --on-dark-2: rgba(247, 246, 227, 0.76);
  --on-dark-3: rgba(247, 246, 227, 0.58);
  --line-dark: rgba(247, 246, 227, 0.12);

  --shadow: 0 1px 2px rgba(20, 35, 40, 0.06), 0 16px 40px rgba(20, 35, 40, 0.12);

  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: clamp(24px, 3vw, 32px);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --fast: 160ms;

  /* Fluide de 320 à 1440 px */
  --gutter: clamp(16px, 4.5vw, 48px);
  --section: clamp(56px, 8vw, 112px);
  --header-h: clamp(60px, 7vw, 76px);

  --font: "Poppins", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --font-figures: "Lexend", var(--font);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 8px); background: var(--dark); }
body {
  margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.6;
  color: var(--ink); background: var(--white);
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { font-weight: 500; text-wrap: balance; }
h2 { font-size: clamp(30px, 5.6vw, 56px); line-height: 1.06; letter-spacing: -0.03em; }
h3 { font-size: clamp(18px, 2vw, 21px); line-height: 1.25; }
p { text-wrap: pretty; }

:focus-visible { outline: 2px solid var(--green-ink); outline-offset: 3px; border-radius: 6px; }
.on-dark :focus-visible, .hero :focus-visible, .site-header :focus-visible { outline-color: var(--green); }
.container { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -64px; z-index: 1000; padding: 12px 16px; border-radius: var(--r-sm); background: var(--cream); color: var(--ink); text-decoration: none; }
.skip-link:focus { top: 16px; }
.icon { width: 20px; height: 20px; flex: none; }

/* Surlignage vert (titres) */
.hl { color: var(--green); }
.pains .hl { color: var(--green-ink); }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px;
  border: 0; border-radius: 7px; /* rectangle aux coins arrondis, comme le surligneur de « street food » */
  font-size: 16px; font-weight: 500; line-height: 1.2; text-align: center; text-decoration: none;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: background-color var(--fast) var(--ease), transform var(--fast) var(--ease);
}
.btn:active { transform: scale(0.97); }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 14px; }
.btn--lg { min-height: 56px; padding: 0 32px; font-size: 17px; }
.btn--primary { background: var(--green); color: var(--dark); }
.btn--primary:hover { background: var(--green-hover); }

/* Header sombre, lisible sur toutes les sections */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  padding-top: env(safe-area-inset-top, 0px);
  background: transparent; border-bottom: 1px solid transparent;
  transition: background-color 250ms var(--ease), border-color 250ms var(--ease);
}
.site-header.is-scrolled {
  background: rgba(20, 35, 40, 0.9);
  -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px);
  border-bottom-color: var(--line-dark);
}
/* Pages légales (fond clair, pas d'image derrière) : header sombre d'emblée */
body:not(:has(.hero)) .site-header { background: var(--dark); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: var(--header-h); }
.site-header__logo { display: inline-flex; min-height: 44px; align-items: center; flex: none; --logo-h: clamp(30px, 3.9vw, 44px); }
.site-header__logo img { height: var(--logo-h); width: auto; }
@media (max-width: 359px) { .site-header .btn--sm { padding: 0 12px; font-size: 13px; } }

/* 1. Hero : titre centré, « street food » qui pop, plats qui flottent, clients qui défilent */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-start;
  background:
    radial-gradient(120% 70% at 50% 38%, #1d3a3a 0%, rgba(29, 58, 58, 0) 70%),
    var(--dark);
  color: var(--on-dark);
  padding-top: var(--header-h);
}
.hero__food { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.food {
  position: absolute; height: auto; max-width: none;
  filter: drop-shadow(0 24px 32px rgba(0, 0, 0, 0.45));
  will-change: transform;
}
/* Plats : burger et tacos en haut, frites et pizza en bas, aux quatre coins */
.food--burger { width: clamp(118px, 33vw, 300px); left: -4%; top: calc(var(--header-h) + 4px); }
.food--tacos  { width: clamp(126px, 35vw, 320px); right: -6%; top: calc(var(--header-h) + 16px); }
.logos .food { bottom: calc(100% - 6px); z-index: 0; }
.food--fries  { width: clamp(56px, 15vw, 150px); left: 4%; }
.food--pizza  { width: clamp(80px, 21vw, 220px); right: 2%; }
@media (min-width: 1024px) {
  .food--burger { left: 5%; top: 13%; }
  .food--tacos  { right: 4%; top: 11%; }
  .food--fries  { left: 9%; }
  .food--pizza  { right: 8%; }
  .hero__content { padding-top: clamp(16px, 4svh, 48px); padding-bottom: clamp(40px, 6svh, 80px); }
}


.hero__content {
  position: relative; text-align: center;
  display: flex; flex-direction: column; align-items: center;
  padding-top: clamp(92px, 16svh, 150px); padding-bottom: clamp(96px, 22vw, 120px);
}
.hero__title { font-size: clamp(40px, 10.4vw, 76px); line-height: 1.02; letter-spacing: -0.035em; max-width: 14ch; }

/* « street food » : surligneur vert et lettres qui rebondissent */
.sf { position: relative; display: inline-block; white-space: nowrap; padding: 0 0.12em; color: var(--dark); }
.sf__bg { position: absolute; inset: 0.08em 0 0.02em; background: var(--green); border-radius: 0.14em; transform-origin: left center; z-index: -1; }
.sf__text { position: relative; display: inline-block; clip-path: inset(-60% -20% -4% -20%); }
.sf__l { display: inline-block; will-change: transform; }
.sf__sp { display: inline-block; width: 0.26em; }

/* Néon : « street food » lueur verte, « halal » étiquette blanche penchée ; la pulsation passe par l'opacité d'un calque (pas de box-shadow animé) */
.sf__bg { box-shadow: 0 0 14px rgba(72, 205, 77, 0.75), 0 0 40px rgba(72, 205, 77, 0.4); }
.halal {
  position: relative; display: inline-block; padding: 0 0.2em 0.04em; margin: 0 0.06em;
  border-radius: 0.16em; background: #fff; color: var(--dark); font-style: italic;
  transform: rotate(-4deg) translateY(-0.06em);
  box-shadow: 0.09em 0.09em 0 var(--green), 0 0 12px rgba(255, 255, 255, 0.9), 0 0 30px rgba(255, 255, 255, 0.45);
}
.sf__bg::after, .halal::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  opacity: 0; animation: neon-pulse 3.2s ease-in-out 1.2s 6; /* 6 pulsations (~20 s), puis lueur fixe */
}
.sf__bg::after { box-shadow: 0 0 22px rgba(72, 205, 77, 0.95), 0 0 60px rgba(72, 205, 77, 0.55); }
.halal::after { box-shadow: 0 0 18px rgba(255, 255, 255, 1), 0 0 44px rgba(255, 255, 255, 0.6); animation-delay: 0s; }
@keyframes neon-pulse { 50% { opacity: 1; } }

.hero__lead { margin-top: clamp(16px, 2vw, 24px); font-size: clamp(16px, 2.1vw, 20px); line-height: 1.5; color: var(--on-dark-2); max-width: 30rem; }
.hero__actions { margin-top: clamp(22px, 3vw, 32px); display: flex; flex-direction: column; align-items: center; gap: 12px; width: 100%; }
.hero__actions .btn { width: 100%; max-width: 360px; }
.hero__note { margin-top: clamp(18px, 2.4vw, 26px); font-size: 14px; color: var(--on-dark-3); }
.hero__facts {
  display: flex; justify-content: center; gap: clamp(24px, 7vw, 64px);
  margin-top: clamp(24px, 3vw, 36px); padding-top: 20px; border-top: 1px solid var(--line-dark);
  width: min(100%, 460px);
}
.hero__facts div { display: grid; gap: 2px; justify-items: center; }
.hero__facts dd { font-family: var(--font-figures); font-size: clamp(22px, 3vw, 32px); line-height: 1.1; font-variant-numeric: tabular-nums; color: var(--on-dark); }
.hero__facts dt { font-size: 13px; color: var(--on-dark-3); }

/* Bandeau clients : logos blancs, sans fond, qui glissent */
/* le bloc logos sert d'ancre aux frites et à la pizza posées juste au-dessus */
.logos { position: relative; padding-block: 8px 28px; }
.logos__title { text-align: center; font-size: 14px; color: var(--on-dark-2); }
.logos__viewport {
  margin-top: 16px; overflow-x: auto; overflow-y: hidden;
  scrollbar-width: none; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.logos__track { display: flex; align-items: center; gap: clamp(40px, 7vw, 88px); padding-inline: 24px; width: max-content; }
.logos__viewport::-webkit-scrollbar { display: none; }
@media (pointer: fine) { .logos__viewport { cursor: grab; } .logos__viewport.is-dragging { cursor: grabbing; } }
.logos__viewport.is-dragging img { pointer-events: none; }
.logos__track img {
  height: clamp(84px, 15vw, 128px); width: auto; max-width: 280px; object-fit: contain;
  filter: invert(1) grayscale(1) brightness(1.4); opacity: 0.85;
  -webkit-user-drag: none; user-select: none;
}

/* Sections */
.section { padding-block: var(--section); }
.section__head { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin-bottom: clamp(20px, 3vw, 44px); }
.section__head h2 { max-width: 18ch; }
.section__lead { margin-top: 14px; font-size: clamp(16px, 2vw, 19px); line-height: 1.55; color: var(--text-2); max-width: 34rem; }
.on-dark .section__lead { color: var(--on-dark-2); }
.swipe-hint { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--text-3); }
@media (min-width: 768px) { .section__head { flex-direction: row; align-items: flex-end; justify-content: space-between; } }
@media (min-width: 1024px) { .swipe-hint { display: none; } }

/* 2. Douleurs : section crème, cartes qui défilent à l'horizontale avec le scroll */
.pains { background: var(--cream); border-radius: var(--r-xl) var(--r-xl) 0 0; position: relative; z-index: 1; }
.pains__pin { padding-block: calc(var(--section) * 0.6); }
.hscroll { position: relative; }
.hscroll__track {
  display: flex; gap: clamp(12px, 1.6vw, 20px);
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
  padding: 8px var(--gutter) 24px; scrollbar-width: none; overscroll-behavior-x: contain;
}
.hscroll__track::-webkit-scrollbar { display: none; }
.hscroll__track > * { flex: none; scroll-snap-align: start; }
/* Épinglé par GSAP : la piste est déplacée par le scroll vertical */
.is-pinned .pains__pin, .pains__pin.is-pinned { min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-start; padding-block: calc(var(--header-h) + 20px) 24px; }
.is-pinned .hscroll { overflow: hidden; }
.is-pinned .card { min-height: 0; height: clamp(330px, calc(100svh - var(--header-h) - 290px), 500px); }
@media (min-width: 1024px) { .pains__pin .section__head h2 { max-width: 26ch; } }
.is-pinned .hscroll__track { overflow: visible; scroll-snap-type: none; width: max-content; will-change: transform; }
.is-pinned .card__img { will-change: transform; } /* calque dédié : l’ombre portée de l’illustration n’est plus recalculée à chaque image */
@media (min-width: 1280px) { .hscroll__track { padding-inline: calc((100vw - 1280px) / 2 + var(--gutter)); } }
.hscroll__progress { position: relative; height: 3px; margin-top: 4px; }
[data-hscroll]:not(.is-pinned) .hscroll__progress, [data-app-pin]:not(.is-animated) .app__progress { display: none; }
.hscroll__progress::before { content: ""; position: absolute; inset: 0 var(--gutter); background: rgba(25, 52, 43, 0.12); border-radius: 3px; }
.hscroll__progress span { position: absolute; inset: 0 var(--gutter); background: var(--ink); border-radius: 3px; transform-origin: left; transform: scaleX(0); }

/* Cartes douleur : grand chiffre, problème, solution */
.card {
  position: relative; overflow: hidden;
  width: clamp(272px, 80vw, 400px); min-height: clamp(456px, 126vw, 500px);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: clamp(20px, 2.4vw, 28px);
  border-radius: var(--r-lg); box-shadow: var(--shadow);
  background: var(--white); color: var(--ink);
  container-type: inline-size;
}
.card--green { background: var(--green); color: var(--dark); }
.card--dark { background: var(--dark); color: var(--on-dark); }
.card--cream { background: var(--white); }
.card__big {
  position: absolute; top: clamp(18px, 2.4vw, 26px); left: clamp(20px, 2.4vw, 28px);
  font-family: var(--font-figures); font-weight: 500;
  right: clamp(20px, 2.4vw, 28px);
  font-size: clamp(48px, 21cqi, 92px); line-height: 0.95; letter-spacing: -0.04em;
  color: var(--green-ink);
}
.card--green .card__big { color: var(--dark); }
.card--dark .card__big { color: var(--green); }
.card__body { position: relative; z-index: 1; }
/* Illustration 3D de la carte, entre le grand mot et le texte */
.card__img {
  position: absolute; right: 6%; top: 17%;
  width: 40%; max-width: 170px; height: auto; aspect-ratio: 1;
  object-fit: contain; pointer-events: none;
  filter: drop-shadow(0 18px 24px rgba(20, 35, 40, 0.28));
}
.tag {
  display: inline-flex; align-items: center; padding: 4px 12px; border-radius: 999px;
  font-size: 13px; font-weight: 500; line-height: 1.3;
  background: rgba(25, 52, 43, 0.08); color: inherit;
}
.tag--fix { margin-top: 18px; gap: 6px; padding: 5px 12px; background: rgba(25, 52, 43, 0.08); }
.tag--fix img { height: 18px; width: auto; }
.tag--on-color { color: var(--white); background: rgba(255, 255, 255, 0.16); }
.tag--on-color img { filter: brightness(0) invert(1); }
.card--green .tag--on-color { background: rgba(20, 35, 40, 0.14); }
.tag--on-light { color: var(--ink); background: rgba(25, 52, 43, 0.07); }
.card--dark .tag { background: rgba(247, 246, 227, 0.12); }
.card--dark .tag--fix { background: rgba(247, 246, 227, 0.12); }
.card__pain { margin-top: 10px; font-size: clamp(21px, 5.6vw, 25px); line-height: 1.15; letter-spacing: -0.015em; }
.card__fix { margin-top: 8px; font-size: 15px; line-height: 1.55; color: var(--text-2); }
.card--green .card__fix { color: var(--ink); }
.card--dark .card__fix { color: var(--on-dark-2); }

/* 3. Application : section épinglée, iPhone Duo en 3D */
.app { background: var(--dark); color: var(--on-dark); }
.app__pin { padding-block: calc(var(--section) * 0.6); overflow: hidden; }
.app__pin.is-animated { min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-start; padding-block: calc(var(--header-h) + 20px) 24px; }
.app__grid {
  display: grid; gap: 8px; align-items: center;
  color: var(--on-dark);
  padding-block: 0; position: relative;
}
.app__lead { margin-top: 8px; }
.features { display: grid; gap: 8px; margin-top: 20px; }
.feature {
  padding: 12px 14px 12px 16px; border-radius: var(--r-md);
  border-left: 3px solid var(--line-dark);
  transition: background-color 300ms var(--ease), border-color 300ms var(--ease), opacity 300ms var(--ease);
}
.app__pin.is-animated .feature { opacity: 0.5; }
.app__pin.is-animated .feature.is-active { opacity: 1; }
.feature h3 { font-size: 17px; }
.feature p { margin-top: 2px; font-size: 14px; line-height: 1.45; color: var(--on-dark-2); }
.app__pin.is-animated .feature.is-active { background: var(--dark-2); border-left-color: var(--green); }
/* Mobile épinglé : liste compacte, seule la fonction active garde sa description */
@media (max-width: 899px) {
  .app__pin.is-animated .features { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .app__pin.is-animated .caption { display: block; }
}
.stage { position: relative; }
.stage__glow { position: absolute; inset: 15% 10%; background: radial-gradient(closest-side, rgba(72, 205, 77, 0.22), rgba(72, 205, 77, 0)); }
/* Légende sous le Duo (mobile animé) */
.caption { display: none; text-align: center; padding: 4px 8px 4px; }
.caption__step { font-family: var(--font-figures); font-size: 13px; color: var(--green); letter-spacing: 0.02em; }
.caption__title { margin-top: 4px; font-size: clamp(22px, 6vw, 28px); font-weight: 500; line-height: 1.15; letter-spacing: -0.02em; color: var(--on-dark); }
.caption__text { margin: 6px auto 0; max-width: 30ch; font-size: 15px; line-height: 1.45; color: var(--on-dark-2); }
.app__progress { position: relative; height: 3px; margin-top: 16px; }
.app__progress span { position: absolute; inset: 0 var(--gutter); background: var(--green); border-radius: 3px; transform-origin: left; transform: scaleX(0); }
@media (min-width: 900px) { .app__grid { gap: 24px; } }
.app .section__lead { color: var(--on-dark-2); }

/* 4. Prestations : même mécanique que les douleurs, sur fond sombre */
.services { background: var(--dark); color: var(--on-dark); }
.services .hl { color: var(--green); }
.services .hscroll__progress::before { background: var(--line-dark); }
.services .hscroll__progress span { background: var(--green); }
.card--cream2 { background: var(--cream); color: var(--ink); }
.card--dark2 { background: var(--dark-2); color: var(--on-dark); border: 1px solid var(--line-dark); }
.card--dark2 .card__big { color: var(--green); }
.card--white .card__big, .card--cream2 .card__big { color: var(--green-ink); }
/* Prestations façon ticket de commande : lignes pointillées et pastille « inclus » */
.ticket__tag {
  display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px;
  font-family: var(--font-figures); font-size: 12px; letter-spacing: 0.02em;
  background: var(--dark); color: var(--green);
}
.card--dark2 .ticket__tag { background: var(--green); color: var(--dark); }
.svc .card__pain { margin-top: 10px; }
.ticket { margin-top: 12px; display: grid; gap: 0; border-top: 1.5px dashed rgba(20, 35, 40, 0.28); }
.card--dark2 .ticket { border-top-color: rgba(247, 246, 227, 0.22); }
.ticket li {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 0; font-size: 15px; font-weight: 500; line-height: 1.3;
  border-bottom: 1.5px dashed rgba(20, 35, 40, 0.28);
}
.card--dark2 .ticket li { border-bottom-color: rgba(247, 246, 227, 0.22); }
.ticket li::after {
  content: "inclus"; flex: none;
  padding: 3px 9px; border-radius: 999px;
  font-family: var(--font-figures); font-size: 12px; font-weight: 500;
  background: var(--dark); color: var(--green);
}
.card--white .ticket li::after, .card--cream2 .ticket li::after { background: var(--green); color: var(--dark); }
.card--dark2 .ticket li::after { background: var(--green); color: var(--dark); }

/* 5. Sélection : carte crème, comme le hero de restopedia.fr */
.selection { padding-top: 0; }
.selection__card {
  background: var(--cream); color: var(--ink);
  border-radius: var(--r-xl);
  padding: clamp(32px, 6vw, 72px) clamp(20px, 5vw, 64px) clamp(24px, 5vw, 56px);
}
.selection__card { text-align: left; }
.criteria { display: grid; gap: 10px; margin-top: 28px; }
@media (min-width: 768px) { .criteria { grid-template-columns: repeat(3, 1fr); gap: 12px; } }
.criteria li {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 16px; border-radius: var(--r-md);
  background: var(--white); font-size: 15px; font-weight: 500; line-height: 1.35;
}
.criteria li::before {
  content: ""; width: 18px; height: 18px; border-radius: 50%; flex: none;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23142328' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.steps { position: relative; display: grid; gap: 18px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.steps__line { position: absolute; left: 17px; top: 42px; bottom: 18px; width: 2px; background: rgba(25, 52, 43, 0.12); }
.steps__line span { position: absolute; inset: 0; background: var(--green-ink); transform-origin: top; transform: scaleY(var(--p, 0)); }
.steps:not(.is-animated) .steps__line { display: none; }
.steps li:not(.steps__line) { position: relative; z-index: 1; transition: color 300ms var(--ease); }
.steps.is-animated li:not(.steps__line) { color: var(--text-3); }
.steps.is-animated li.is-done { color: var(--ink); }
.steps__num { transition: background-color 300ms var(--ease), color 300ms var(--ease), transform 300ms var(--ease); }
.steps.is-animated li:not(.is-done) .steps__num { background: var(--cream-2); color: var(--text-3); }
.steps.is-animated li.is-done .steps__num { background: var(--green); color: var(--dark); transform: scale(1.08); }
.steps li { display: flex; gap: 14px; align-items: center; font-size: 15px; line-height: 1.4; color: var(--text-2); }
.steps__num {
  flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--dark); color: var(--cream); font-family: var(--font-figures); font-size: 15px;
}
.selection__cta { margin-top: 32px; width: 100%; }
@media (min-width: 768px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .steps__line { left: 18px; right: 18%; top: 41px; bottom: auto; width: auto; height: 2px; }
  .steps__line span { transform-origin: left; transform: scaleX(var(--p, 0)); }
  .steps li { flex-direction: column; align-items: flex-start; }
  .selection__cta { width: auto; }
}

/* Sélection : bloc vert avec illustration */
.selection { padding-top: clamp(40px, 6vw, 80px); }
.sel {
  position: relative; overflow: hidden;
  background: var(--green); color: var(--dark);
  border-radius: var(--r-xl); box-shadow: var(--shadow);
  padding: clamp(28px, 6vw, 72px) clamp(20px, 5vw, 64px);
}
.sel__img {
  position: absolute; top: clamp(8px, 2vw, 24px); right: clamp(-12px, -1vw, 0px);
  width: clamp(130px, 38vw, 320px); height: auto; pointer-events: none; will-change: transform;
  filter: drop-shadow(0 18px 24px rgba(20, 35, 40, 0.3));
}
.sel__title { position: relative; max-width: 9ch; font-size: clamp(34px, 7vw, 64px); line-height: 1.02; letter-spacing: -0.035em; }
.sel__lead { position: relative; margin-top: 14px; max-width: 32rem; font-size: clamp(16px, 2vw, 19px); line-height: 1.5; color: var(--ink); }
.sel .criteria li { background: rgba(255, 255, 255, 0.92); box-shadow: 0 6px 16px rgba(20, 35, 40, 0.08); }
.sel .criteria li::before { background-color: var(--dark); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2348cd4d' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); }
@media (min-width: 900px) { .sel__title { max-width: 12ch; } }

/* 6. FAQ : panneau sombre */
.faq { padding-top: 0; }
.faq__panel { background: var(--dark); color: var(--on-dark); border-radius: var(--r-xl); padding: clamp(32px, 6vw, 80px) clamp(16px, 5vw, 64px); }
.faq__inner { display: grid; gap: 24px; }
.faq__list { display: grid; gap: 8px; }
.faq__item { background: var(--dark-2); border-radius: var(--r-md); transition: background-color var(--fast) var(--ease); }
.faq__item[open] { background: var(--cream); color: var(--ink); }
.faq__item summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  min-height: 56px; padding: 14px 18px;
  font-size: 16px; font-weight: 500; line-height: 1.4;
  cursor: pointer; list-style: none; border-radius: var(--r-md);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: ""; flex: none; width: 20px; height: 20px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2348cd4d' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / 20px no-repeat;
  transition: transform var(--fast) var(--ease);
}
.faq__item[open] summary::after { transform: rotate(45deg); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2319342b' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E"); }
.faq__item p { padding: 0 18px 18px; color: var(--text-2); font-size: 15px; max-width: 62ch; }
@media (min-width: 1024px) {
  .faq__inner { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 64px; align-items: start; }
  .faq__item summary { padding: 18px 24px; font-size: 17px; }
  .faq__item p { padding: 0 24px 22px; }
}

/* 7. CTA final */
.final { padding-block: 0 clamp(40px, 6vw, 72px); }
.final__inner { display: grid; gap: 28px; justify-items: center; text-align: center; }
.final__inner h2 { max-width: 15ch; }

/* Footer */
.site-footer { background: var(--dark); color: var(--on-dark); padding-block: 28px calc(14px + var(--cta-space, 0px)); }
@media (min-width: 1024px) { .site-footer { padding-block: 32px 32px; } }
body:not(:has(.sticky-cta)) .site-footer { padding-bottom: calc(32px + env(safe-area-inset-bottom, 0px)); }
.site-footer__inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; }
.site-footer__inner img { height: 32px; width: auto; }
.site-footer__legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 24px; }
.site-footer__legal a { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; color: var(--on-dark-2); text-decoration: none; transition: color var(--fast) var(--ease); }
.site-footer__legal a:hover { color: var(--green); }
.site-footer__copy { font-size: 14px; color: var(--on-dark-3); }


/* Barre CTA toujours visible en bas */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  display: flex; justify-content: center;
  padding: 18px var(--gutter) calc(12px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(rgba(20, 35, 40, 0), rgba(20, 35, 40, 0.55) 60%);
  pointer-events: none;
}
.sticky-cta .btn { pointer-events: auto; min-height: 46px; padding: 0 26px; font-size: 15px; box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28); }

html { scroll-padding-bottom: 96px; }
@media (min-width: 1024px) {
  .sticky-cta { left: auto; right: 24px; bottom: 24px; padding: 0; background: none; }
  .sticky-cta .btn { width: auto; }
  .logos { padding-bottom: clamp(28px, 4vw, 44px); }
}

/* Marquees pilotés par GSAP */
.is-marquee { display: flex; width: max-content; will-change: transform; }

/* Mobile en paysage */
@media (orientation: landscape) and (max-height: 520px) {
  .hero__content { padding-top: 40px; }
  .hero__title { font-size: clamp(32px, 6vw, 52px); max-width: 22ch; }
  .food { opacity: 0.5; }
  .card { min-height: 340px; }
}

/* Mouvement réduit */
@media (prefers-reduced-motion: reduce) {
  .feature { transition: none; }
  .sf__bg::after, .halal::after { animation: none; }
}

/* Pages simples (mentions légales, confidentialité, 404) */
.page-simple { padding-block: calc(var(--header-h) + 48px) 96px; }
.page-simple__inner { max-width: 760px; }
.page-simple h1 { font-size: clamp(32px, 5vw, 52px); line-height: 1.08; letter-spacing: -0.025em; }
.page-simple .lead { margin-top: 16px; font-size: 18px; color: var(--text-2); }
.page-simple .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.prose { margin-top: 40px; }
.prose h2 { font-size: 22px; line-height: 1.3; letter-spacing: 0; margin-top: 40px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose ul { margin-top: 12px; color: var(--text-2); }
.prose ul { list-style: disc; padding-left: 20px; }
.prose li + li { margin-top: 4px; }
.prose a { color: var(--ink); text-underline-offset: 3px; }
.prose .todo { background: #fff3c4; color: #5a4300; padding: 0 4px; border-radius: 4px; }

/* ===== iPhone Duo déplié à l'horizontale : section app, 4 écrans en double page, données fictives ===== */
.stage { height: auto; padding: 58px 0 46px; display: grid; place-items: center; perspective: 1800px; transform-style: flat; }
@media (min-width: 900px) {
  .app__grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); }
  .stage { height: min(640px, 76svh); padding: 0; }
}
.duo {
  --ti: linear-gradient(160deg, #a7abb0 0%, #eceef0 16%, #73777c 38%, #45494d 58%, #8e9297 80%, #d4d6d9 100%);
  position: relative; display: flex;
  width: min(100%, 720px, calc((76svh - 70px) * 1.36)); aspect-ratio: 1.36;
  container: duo / inline-size;
  transform-style: preserve-3d; will-change: transform;
}
.duo__half { position: relative; width: 50%; height: 100%; transform-style: preserve-3d; }
.duo__half--l, .duo__face--in {
  background: var(--ti);
  box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.55);
}
.duo__half--l { padding: 0.75cqw 0 0.75cqw 0.75cqw; border-radius: 6.8cqw 0 0 6.8cqw; }
.duo__half--r { transform-origin: 0 50%; }
.duo__face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.duo__face--in { padding: 0.75cqw 0.75cqw 0.75cqw 0; border-radius: 0 6.8cqw 6.8cqw 0; }
.duo__face--out {
  transform: translateZ(calc(var(--duo-t, 0px) * -1 - 0.5px)) rotateY(180deg);
  padding: 0.75cqw; border-radius: 6.8cqw 2cqw 2cqw 6.8cqw; background: var(--ti);
  box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.55);
}
.duo__face--out .duo__outer { border-radius: 6cqw 1.4cqw 1.4cqw 6cqw; }
/* Épaisseur : tranches empilées derrière chaque moitié (créées par motion.js) */
.duo__slice { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, #b9bdc1 0%, #6c7075 45%, #3e4246 100%); }
.duo__half--l > .duo__slice { border-radius: 6.8cqw 0 0 6.8cqw; }
.duo__half--r > .duo__slice { border-radius: 0 6.8cqw 6.8cqw 0; }
.duo__slice--alt { background: linear-gradient(180deg, #a3a7ab 0%, #5f6367 45%, #36393d 100%); }
.duo__slice--last { box-shadow: 0 34px 60px -12px rgba(0, 0, 0, 0.65), 0 10px 20px rgba(0, 0, 0, 0.3); }
.duo:not(.is-3d) .duo__half--l, .duo:not(.is-3d) .duo__face--in { box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.55), 0 34px 60px -12px rgba(0, 0, 0, 0.6); }
.duo__btn { position: absolute; top: -0.45cqw; height: 0.7cqw; border-radius: 0.6cqw 0.6cqw 0 0; background: linear-gradient(#c3c6c9, #5b5f63); }
.duo__btn--a { left: 9%; width: 3cqw; }
.duo__btn--b { left: 14.5%; width: 5.5cqw; }
.duo__btn--c { left: 21.5%; width: 5.5cqw; }

/* Écrans intérieurs : bordure noire sur les bords extérieurs, pli au centre */
.duo__screen {
  position: relative; height: 100%; overflow: hidden; isolation: isolate;
  container: scr / size;
  background: linear-gradient(#e9f6ea 0, #f6f7f4 38%);
  color: #16181b; font-size: 11px; font-size: max(7px, 1.95cqw); line-height: 1.3;
  border: 1.3cqw solid #050607;
}
.duo__half--l .duo__screen { border-right: 0; border-radius: 6cqw 0 0 6cqw; }
.duo__face--in .duo__screen { border-left: 0; border-radius: 0 6cqw 6cqw 0; }
.duo__screen::after { content: ""; position: absolute; inset: 0; z-index: 6; pointer-events: none; }
.duo__half--l .duo__screen::after { background: linear-gradient(90deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0) 30%, rgba(0, 0, 0, 0) 94%, rgba(0, 0, 0, 0.07) 100%); }
.duo__face--in .duo__screen::after { background: linear-gradient(90deg, rgba(0, 0, 0, 0.07) 0%, rgba(0, 0, 0, 0) 6%, rgba(255, 255, 255, 0) 70%, rgba(255, 255, 255, 0.12) 100%); }
.duo__status { position: relative; height: 2.5em; display: flex; align-items: center; padding: 0 1.6em; font-size: 0.95em; font-weight: 600; }
.duo__status--r { justify-content: flex-end; }
.duo__cam { position: absolute; left: 50%; top: 0.55em; width: 1.25em; height: 1.25em; margin-left: -0.62em; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #2a3550 0, #05070a 55%); box-shadow: 0 0 0 0.18em #000; }
.duo__icons { display: flex; gap: 0.18em; align-items: flex-end; }
.duo__icons i { width: 0.28em; border-radius: 1px; background: #16181b; height: 0.35em; }
.duo__icons i:nth-child(2) { height: 0.5em; } .duo__icons i:nth-child(3) { height: 0.65em; } .duo__icons i:nth-child(4) { height: 0.8em; }
.duo__icons .bat { position: relative; width: 1.9em; height: 0.85em; margin-left: 0.4em; padding: 1px; border-radius: 0.25em; border: 1px solid rgba(22, 24, 27, 0.45); background: linear-gradient(90deg, #16181b 78%, transparent 78%); background-clip: content-box; }
.duo__icons .bat::after { content: ""; position: absolute; right: -0.28em; top: 30%; width: 0.18em; height: 40%; border-radius: 0 2px 2px 0; background: rgba(22, 24, 27, 0.45); }

/* Menu latéral de l'app */
.duo__screen { --rail: 5.2em; }
.duo__rail { position: absolute; left: 0; top: 2.6em; bottom: 1em; width: var(--rail); display: flex; flex-direction: column; align-items: center; gap: 0.55em; }
.duo__mark { width: 2.3em; height: auto; margin-bottom: 0.4em; }
.duo__rail span { display: grid; justify-items: center; gap: 0.25em; width: 6.2em; padding: 0.55em 0 0.45em; border-radius: 1em; font-size: 0.72em; font-weight: 500; color: #8a918d; transition: background-color 300ms var(--ease), color 300ms var(--ease); }
.duo__rail svg { width: 2.3em; height: 2.3em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.duo__rail .on { background: #dcf5dd; color: #2f9a34; }
.duo__pages { position: absolute; top: 2.6em; bottom: 1em; overflow: hidden; }
.duo__half--l .duo__pages { left: var(--rail); right: 1.2em; }
.duo__face--in .duo__pages { left: 1.2em; right: 1.6em; }
.pane { position: absolute; inset: 0; opacity: 0; transform: translateY(1.2em); transition: opacity 450ms var(--ease), transform 450ms var(--ease); }
.duo__face--in .pane { transition-delay: 90ms; }
.pane.is-active { opacity: 1; transform: none; }

/* Éléments d'interface */
.d-title { font-size: 1.75em; font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; margin: 0.1em 0 0.45em; }
.d-sub { font-size: 0.95em; font-weight: 600; color: #3f4743; margin: 0.35em 0 0.7em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.d-chips { display: flex; gap: 0.4em; margin-bottom: 0.8em; overflow: hidden; }
.d-chips span { padding: 0.35em 0.8em; border-radius: 99px; font-size: 0.8em; white-space: nowrap; color: #8a918d; box-shadow: inset 0 0 0 1px #d9ddd9; }
.d-chips .on { background: #48cd4d; color: #0d1416; font-weight: 600; box-shadow: none; }
.d-card { background: #fff; border-radius: 1.1em; padding: 0.85em 1em; margin-bottom: 0.7em; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05); }
.d-label { font-size: 0.8em; color: #59605c; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.d-big { font-family: var(--font-figures); font-size: 2.1em; font-weight: 500; line-height: 1.1; letter-spacing: -0.01em; margin-top: 0.1em; white-space: nowrap; }
.d-big--green { color: #2f9a34; }
.d-mid { font-size: 1.1em; font-weight: 600; margin-top: 0.1em; }
.d-delta { font-size: 0.8em; font-weight: 600; color: #2f9a34; }
.d-note { font-size: 0.75em; color: #8a918d; margin-top: 0.15em; }
.d-split { display: flex; height: 0.5em; margin-top: 0.7em; border-radius: 99px; background: #f5a03a; overflow: hidden; }
.d-split span { background: #48cd4d; border-radius: 99px; }
.d-legend { display: flex; justify-content: space-between; gap: 0.6em; margin-top: 0.45em; font-size: 0.7em; color: #59605c; white-space: nowrap; overflow: hidden; }
.d-legend i, .d-list i { display: inline-block; width: 0.65em; height: 0.65em; border-radius: 50%; margin-right: 0.35em; }
.d-legend .g, .d-list .g { background: #48cd4d; } .d-legend .o, .d-list .o { background: #f5a03a; }
.w-49 { width: 49%; } .w-63 { width: 63%; } .w-71 { width: 71%; } .w-76 { width: 76%; } .w-100 { width: 100%; }
.h-75 { height: 75%; } .h-80 { height: 80%; } .h-86 { height: 86%; } .h-85 { height: 85%; } .h-88 { height: 88%; } .h-92 { height: 92%; } .h-100 { height: 100%; }
.d-cols { display: flex; align-items: flex-end; gap: 0.5em; height: 4.2em; margin-top: 0.5em; }
.d-cols i { flex: 1; border-radius: 0.35em 0.35em 0.15em 0.15em; background: #cdeecf; }
.d-cols i.on { background: #48cd4d; }
.d-cols--lbl { height: auto; margin-top: 0.3em; font-size: 0.65em; color: #8a918d; }
.d-cols--lbl span { flex: 1; text-align: center; white-space: nowrap; }
.d-bar { height: 0.42em; border-radius: 99px; background: #eef0ee; overflow: hidden; }
.d-bar span { display: block; height: 100%; border-radius: 99px; background: #48cd4d; }
.d-bar--warn span { background: #f58a24; }
.d-bar--light { margin-top: 0.5em; background: #fff; }
.d-plats .d-bar { background: #fde3c2; }
.pr, .site { display: grid; align-items: center; gap: 0.25em 0.6em; padding: 0.5em 0; border-bottom: 1px solid #eef0ee; }
.pr { grid-template-columns: auto minmax(0, 1fr) auto; }
.site { grid-template-columns: minmax(0, 1fr) auto; }
.pr:last-child, .site:last-child { border-bottom: 0; }
.pr .d-bar, .site .d-bar { grid-column: 1 / -1; }
.pr p, .site p, .d-team p { display: grid; min-width: 0; }
.pr b, .site b, .d-team b { font-size: 0.9em; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pr small, .site small, .d-team small { font-size: 0.7em; color: #8a918d; white-space: nowrap; }
.pr em, .site em, .d-team em, .d-list em { font-style: normal; font-family: var(--font-figures); font-weight: 500; font-size: 0.92em; white-space: nowrap; }
.pr em { color: #2f9a34; }
.dot { width: 1.9em; height: 1.9em; border-radius: 50%; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12); }
.dot--ue { background: #1f9d55; } .dot--dr { background: #2bc6b8; } .dot--je { background: #f58a24; }
.d-team .row { display: flex; align-items: center; gap: 0.6em; padding: 0.42em 0; border-bottom: 1px solid #eef0ee; }
.d-team .row:last-child { border-bottom: 0; }
.d-team p { flex: 1; }
.av { flex: none; width: 3em; height: 3em; border-radius: 50%; display: grid; place-items: center; font-size: 0.72em; font-weight: 600; color: #fff; }
.av--a { background: #2f9a34; } .av--b { background: #1b2f35; } .av--c { background: #f58a24; }
.d-rings { display: flex; justify-content: space-around; text-align: center; padding-inline: 0.4em; }
.ring { position: relative; display: grid; justify-items: center; width: 31%; }
.ring svg, .donut svg { transform: rotate(-90deg); }
.ring svg { width: 4.2em; height: 4.2em; }
.ring circle { fill: none; stroke: #eef0ee; stroke-width: 3.4; }
.ring circle.v { stroke: #f5a03a; stroke-linecap: round; stroke-dasharray: 0 100; }
.ring[data-v="31"] circle.v { stroke-dasharray: 31 100; }
.ring[data-v="27"] circle.v { stroke-dasharray: 27 100; }
.ring[data-v="58"] circle.v { stroke-dasharray: 58 100; stroke: #48cd4d; }
.ring b { position: absolute; top: 0; left: 0; right: 0; font-size: 0.85em; line-height: 4.94em; font-weight: 600; }
.ring small { margin-top: 0.35em; font-size: 0.7em; font-weight: 600; white-space: nowrap; }
.ring em { font-style: normal; font-size: 0.62em; color: #8a918d; white-space: nowrap; }
.d-ok { background: #e5f6e6; }
.d-list > div { display: flex; justify-content: space-between; gap: 0.6em; padding: 0.38em 0; font-size: 0.82em; border-bottom: 1px solid #eef0ee; white-space: nowrap; }
.d-list > div:last-child { border-bottom: 0; }
.d-donut { display: flex; align-items: center; gap: 0.9em; }
.d-donut > div:last-child { min-width: 0; }
.donut { position: relative; flex: none; width: 5.2em; height: 5.2em; }
.donut svg { width: 100%; height: 100%; }
.donut circle { fill: none; stroke: #f5a03a; stroke-width: 5; }
.donut circle.v { stroke: #48cd4d; stroke-dasharray: 63 100; }
.donut b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 0.95em; font-weight: 600; }
.d-tip { background: #f2f8f2; font-size: 0.78em; line-height: 1.4; text-align: center; color: #3f4743; box-shadow: inset 0 0 0 1px #dfeadf; }
.d-gantt { font-size: 0.75em; }
.d-gantt > div { display: grid; grid-template-columns: 3em repeat(13, 1fr); align-items: center; column-gap: 0.15em; height: 1.95em; }
.d-gantt span { grid-column: 1; color: #8a918d; }
.d-gantt i { grid-row: 1; height: 1.05em; border-radius: 99px; background: #48cd4d; }
.d-gantt .s-1 { grid-column: 3 / 7; } .d-gantt .s-2 { grid-column: 2 / 7; }
.d-gantt .s-3 { grid-column: 10 / 14; background: #2f9a34; } .d-gantt .s-4 { grid-column: 10 / 15; background: #2f9a34; }
.d-gantt .off i { background: #cfd6d1; }
.d-cta { padding: 0.75em; border-radius: 99px; background: #1b2f35; color: #fff; text-align: center; font-size: 0.82em; font-weight: 500; white-space: nowrap; overflow: hidden; }
.d-vbars__plot { position: relative; display: flex; align-items: flex-end; justify-content: space-around; height: 7em; border-bottom: 1px solid #eef0ee; }
.d-vbars__plot i { width: 22%; border-radius: 0.4em 0.4em 0 0; background: #48cd4d; }
.d-vbars__plot i.warn { background: #f58a24; }
.d-vbars__line { position: absolute; left: 0; right: 0; bottom: 97%; border-top: 1.5px dashed #f58a24; }
.d-vbars .d-cols--lbl { justify-content: space-around; }

/* Écran extérieur, au dos : visible quand le Duo est fermé */
.duo__outer {
  position: relative; height: 100%; display: flex; flex-direction: column; align-items: center;
  border: 1.3cqw solid #050607; border-radius: 6cqw; overflow: hidden;
  background: radial-gradient(120% 80% at 30% 10%, #2f7a4b 0%, #13372b 45%, #08130f 100%);
  color: #fff; text-align: center;
}
.duo__cam--out { top: 1.1cqw; width: 1.9cqw; height: 1.9cqw; margin-left: -0.95cqw; }
.duo__date { margin-top: 7cqw; font-size: max(8px, 1.8cqw); font-weight: 500; opacity: 0.85; }
.duo__time { font-family: var(--font-figures); font-size: 10cqw; font-weight: 500; line-height: 1; letter-spacing: -0.02em; }
.duo__notif {
  margin: auto 2.2cqw 3cqw; display: flex; gap: 1.2cqw; align-items: center; text-align: left;
  padding: 1.4cqw 1.6cqw; border-radius: 2.4cqw;
  background: rgba(255, 255, 255, 0.16); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  font-size: max(7px, 1.45cqw); line-height: 1.35;
}
.duo__notif img { width: 3.6cqw; height: 3.6cqw; border-radius: 0.9cqw; background: #fff; padding: 0.4cqw; }
.duo__notif p { display: grid; }

/* Petit écran (mobile) : on garde l'essentiel, le reste se masque */
@container scr (max-width: 250px) {
  .duo .x-more { display: none; }
}
@container scr (max-width: 200px) {
  .duo__rail { width: 3.6em; }
  .duo__half--l .duo__pages { left: 3.6em; }
  .duo__rail span { width: 4.4em; font-size: 0.6em; }
  .duo__rail svg { width: 2.4em; height: 2.4em; }
  .d-title { font-size: 1.5em; }
}

/* Bulles flottantes : une par étape, autour du Duo */
.float {
  position: absolute; z-index: 3; display: grid; gap: 2px;
  padding: 10px 14px; border-radius: 16px;
  background: rgba(247, 246, 227, 0.96); color: var(--ink);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transition: opacity 400ms var(--ease);
  pointer-events: none; max-width: 150px;
}
.float.is-on { opacity: 1; }
.float b { font-family: var(--font-figures); font-weight: 500; font-size: 20px; line-height: 1.1; color: var(--green-ink); }
.float small { font-size: 12px; line-height: 1.3; color: var(--text-2); }
.float--a { left: 0; top: 2px; }
.float--b { right: 0; bottom: 0; }
@media (max-width: 899px) {
  .float { max-width: 118px; padding: 8px 11px; border-radius: 13px; }
  .float b { font-size: 17px; } .float small { font-size: 11px; }
}
@media (min-width: 900px) {
  .float--a { left: auto; right: 4%; top: 0; } .float--b { right: auto; left: 4%; bottom: 1%; }
  .float b { font-size: 26px; } .float small { font-size: 13px; }
}

/* Indication « Défiler vers le bas » : badge sombre, liseré vert, coins de 7 px comme le CTA */
.scroll-hint { display: none; }
.is-pinned .scroll-hint, .is-animated .scroll-hint {
  display: flex; align-items: center; gap: 10px; width: max-content; height: 32px;
  margin: 8px auto 0; padding: 0 14px 0 5px; border-radius: 7px;
  background: var(--dark); color: var(--on-dark);
  font-weight: 500; font-size: 14px; line-height: 1;
  box-shadow: inset 0 0 0 1px rgba(72, 205, 77, 0.55);
  transition: opacity 400ms var(--ease), translate 400ms var(--ease);
}
.scroll-hint.is-done { opacity: 0; translate: 0 8px; }
.scroll-hint__chev { position: relative; flex: none; width: 22px; height: 22px; border-radius: 4px; background: var(--green); }
.scroll-hint__chev i { position: absolute; left: 50%; top: 2px; width: 8px; height: 8px; margin-left: -4px; border-right: 2px solid var(--dark); border-bottom: 2px solid var(--dark); rotate: 45deg; opacity: 0; animation: hint-chev 1.6s var(--ease) infinite; }
.scroll-hint__chev i:last-child { top: 7px; animation-delay: 0.22s; }
@keyframes hint-chev { 0% { opacity: 0; translate: 0 -2px; } 40% { opacity: 1; } 100% { opacity: 0; translate: 0 3px; } }
@media (prefers-reduced-motion: reduce) {
  .scroll-hint__chev i { animation: none; opacity: 1; }
}

/* Mention sous la maquette du Duo : les chiffres sont des exemples */
.stage__note { position: absolute; left: 0; bottom: 8px; margin: 0; font-size: 11px; letter-spacing: 0.01em; color: var(--on-dark-2); opacity: 0.85; }
@media (min-width: 900px) { .stage__note { left: 50%; bottom: 2%; translate: -50% 0; white-space: nowrap; } }

@media (max-width: 899px) and (max-height: 780px) {
  .app__pin.is-animated .app__lead { display: none; }
  .app__pin.is-animated .caption__text { margin-top: 2px; font-size: 14px; }
}

/* ===== Sections épinglées : exactement la hauteur de l'écran, place réservée au bouton du bas.
   Le contenu (cartes, Duo) prend l'espace restant : rien ne passe sous le bouton, quel que soit le téléphone. ===== */
:root { --cta-space: calc(82px + env(safe-area-inset-bottom, 0px)); }
@media (min-width: 1024px) {
  :root { --cta-space: 20px; }
  /* Le bouton est dans le coin : la barre de progression s'arrête avant lui */
  .is-pinned .hscroll__progress::before, .is-pinned .hscroll__progress span, .is-animated .app__progress span { right: max(var(--gutter), calc(250px - (100vw - min(100vw, 1280px)) / 2)); }
}
.pains__pin.is-pinned, .app__pin.is-animated {
  height: 100vh; height: 100svh; min-height: 0; display: flex; flex-direction: column; justify-content: flex-start;
  padding-block: calc(var(--header-h) + 14px) var(--cta-space);
}
.pains__pin.is-pinned > *, .app__pin.is-animated > * { flex: none; }
.pains__pin.is-pinned .section__head { margin-bottom: clamp(12px, 2.2svh, 40px); }
.pains__pin.is-pinned .hscroll { flex: 1 1 0; min-height: 0; display: flex; flex-direction: column; }
.pains__pin.is-pinned .hscroll > * { flex: none; }
.pains__pin.is-pinned .hscroll__track { flex: 1 1 0; min-height: 0; height: auto; align-items: stretch; padding-block: 4px 12px; }
.pains__pin.is-pinned .card { height: auto; min-height: 0; max-height: 540px; }
.is-pinned .hscroll__progress, .is-animated .app__progress { margin-top: 2px; }

/* Carte : grand mot en haut, texte en bas, l'illustration occupe seulement l'espace libre entre les deux */
.card { justify-content: flex-start; }
.card__big { position: relative; top: auto; left: auto; right: auto; flex: none; }
.card__img {
  position: relative; top: auto; right: auto;
  flex: 1 1 0; min-height: 0; max-height: 190px;
  width: min(48%, 190px); max-width: none; height: auto; aspect-ratio: auto;
  align-self: flex-end; object-fit: contain; object-position: right center;
  margin: 10px 0 8px;
}
.card__body { flex: none; margin-top: auto; }

/* Téléphones peu hauts : typographie un peu plus compacte pour garder de la place aux visuels */
@media (max-width: 899px) and (max-height: 780px) {
  .pains__pin.is-pinned .section__head h2 { font-size: clamp(24px, 6.6vw, 28px); }
  .pains__pin.is-pinned .card__big { font-size: clamp(36px, 14.5cqi, 56px); }
  .pains__pin.is-pinned .card__body > .tag:first-child, .pains__pin.is-pinned .ticket__tag { display: none; }
  .pains__pin.is-pinned .card__pain { margin-top: 0; }
  .pains__pin.is-pinned .card { padding: 16px 18px 18px; }
  .pains__pin.is-pinned .ticket { margin-top: 8px; }
  .pains__pin.is-pinned .card__pain { font-size: 19px; margin-top: 6px; }
  .pains__pin.is-pinned .card__fix { font-size: 14px; line-height: 1.45; }
  .pains__pin.is-pinned .tag--fix { margin-top: 10px; }
  .pains__pin.is-pinned .ticket li { padding-block: 6px; font-size: 14px; }
}

/* Duo : la scène prend la hauteur restante et le Duo s'y ajuste */
.app__pin.is-animated .app__grid { flex: 1 1 0; min-height: 0; }
.app__pin.is-animated .stage { height: 100%; min-height: 0; container-type: size; align-self: stretch; }
.app__pin.is-animated .duo { width: min(100cqw, 720px, max(160px, calc(100cqh * 1.36))); }
@media (max-width: 899px) {
  .app__pin.is-animated .app__grid { grid-template-rows: auto minmax(0, 1fr) auto; gap: 0; align-items: stretch; }
  .app__pin.is-animated .stage { padding: 30px 0 26px; }
}
@media (min-width: 900px) {
  .app__pin.is-animated .app__grid { align-items: center; }
  .app__pin.is-animated .stage { padding: 40px 0; }
}
@media (min-width: 900px) and (max-height: 800px) {
  .pains__pin.is-pinned .card__big { font-size: clamp(44px, 16cqi, 72px); }
  .pains__pin.is-pinned .card__body > .tag:first-child, .pains__pin.is-pinned .ticket__tag { display: none; }
  .pains__pin.is-pinned .card__pain { margin-top: 0; }
  .pains__pin.is-pinned .ticket li { padding-block: 7px; }
}
@media (min-width: 900px) and (max-height: 720px) {
  .app__pin.is-animated .app__lead { display: none; }
  .app__pin.is-animated .feature:not(.is-active) p { display: none; }
}
/* Ordinateurs étroits et peu hauts : seule l'étape active garde son texte, pour que la liste tienne sous le bloc descendu */
@media (min-width: 900px) and (max-width: 1023px) and (max-height: 900px),
       (min-width: 1024px) and (max-width: 1279px) and (max-height: 820px) {
  .app__pin.is-animated .feature:not(.is-active) p { display: none; }
}
/* Mode statique (écran bas, paysage, animations réduites) : l'illustration garde une vraie taille, la carte s'allonge */
[data-hscroll]:not(.is-pinned) .card__img { flex: 0 0 auto; height: 120px; max-height: none; }
/* Très petits écrans épinglés : sans place pour une illustration lisible, on la retire */
@media (max-height: 620px) { .pains__pin.is-pinned .card__img { display: none; } }
@media (min-width: 900px) and (max-height: 760px) { .pains__pin.is-pinned .section__head h2 { font-size: clamp(34px, 3.4vw, 46px); } }
@media (min-width: 900px) and (max-height: 650px) { .pains__pin.is-pinned .card__img { display: none; } }

/* Section app épinglée : air sous le sous-titre (mobile), bloc rapproché du CTA, bulle à distance de l'en-tête (ordinateur) */
@media (max-width: 899px) {
  .app__pin.is-animated .app__text { margin-bottom: 28px; }
}
@media (max-width: 1023px) {
  .app__pin.is-animated { padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
}
@media (min-width: 900px) {
  .app__pin.is-animated { padding-top: calc(var(--header-h) + 38px); }
}
