/* GUADO — landing de GUADO App.
   Charpente : Fragment (sections numérotées, écran à cheval sur le bas du hero).
   Sections en panneaux arrondis et mascotte à la Woday (choix de Landry, 24 nov., S014). */

.landing { position: relative; --chevauchement: clamp(56px, 9vw, 140px); }

/* ---------- Lumière diffuse du hero ---------- */
.hero-app__lumiere {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 900px;
  overflow: hidden;
  pointer-events: none;
}
.hero-app__halo,
.hero-app__touche { position: absolute; }
.hero-app__halo {
  left: 50%;
  top: 40px;
  width: 1100px;
  height: 720px;
  transform: translateX(-50%);
  background: var(--halo-lilas);
}
.hero-app__touche {
  left: 64%;
  top: 0;
  width: 420px;
  height: 300px;
  background: var(--halo-or);
}
.nav-zone, main { position: relative; z-index: 1; }
main { overflow-x: clip; } /* la trajectoire court sur toute la largeur sans faire défiler la page */

/* ---------- Hero : le titre et l'écran visibles d'emblée (Landry, 26 nov. ; sources Sunsama, ClickUp) ---------- */
.hero-app { position: relative; --chevauchement-hero: var(--chevauchement); }
.hero-app__centre { position: relative; z-index: 1; padding-top: clamp(28px, 6vw, 80px); text-align: center; }
.hero-app__centre .titre-display { max-width: 980px; margin: 0 auto; }
.hero-app__lead { max-width: 620px; margin: var(--space-6) auto 0; }
.hero-app__devise { margin: var(--space-4) 0 0; font-weight: 600; color: var(--ink); }
.hero-app__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3);
  margin-top: var(--space-8);
}

.hero-app__scene {
  position: relative;
  z-index: 2;
  margin-top: clamp(28px, 6vw, 72px);
  margin-bottom: calc(-1 * var(--chevauchement-hero));
}
.hero-app__ecran { position: relative; z-index: 1; max-width: 880px; margin: 0 auto; }
/* Le cadre garde sa hauteur pendant la démo (la tâche saisie apparaît puis repart) : rien ne bouge autour.
   Le contenu se fond par le bas dans le cadre (ClickUp FX-04). */
.hero-app__ecran .ecran { display: flex; flex-direction: column; height: var(--hauteur-ecran, auto); }
.hero-app__ecran .ecran__corps {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(var(--ink) calc(100% - 72px), transparent);
  mask-image: linear-gradient(var(--ink) calc(100% - 72px), transparent);
}
.hero-app { --hauteur-ecran: 540px; }

/* Téléphone : un titre plus court en hauteur, pour que le haut de l'écran se voie dès l'arrivée ;
   l'écran est là d'emblée (il n'attend plus le défilement pour surgir) et la trajectoire passe sous les boutons. */
@media (max-width: 639.98px) {
  .hero-app__centre .titre-display { font-size: clamp(34px, 9.4vw, 42px); }
  .hero-app__lead { margin-top: var(--space-4); font-size: 16px; }
  .hero-app__devise { margin-top: var(--space-3); }
  .hero-app__actions { margin-top: var(--space-6); }
  /* un seul bouton sur téléphone (Landry, 26 nov.) : l'écran, juste en dessous, invite déjà à descendre */
  .hero-app__actions .bouton--discret { display: none; }
  /* « Découvrir ce que GUADO peut changer » (QS37, 27 nov.) passe sur deux lignes sur les plus petits écrans */
  .hero-app__actions .bouton { max-width: 100%; white-space: normal; text-align: center; }
  .hero-app { --hauteur-ecran: 380px; }
  .hero-app__scene { margin-top: var(--space-8); }
  .hero-app .trajectoire { top: -48px; }
}

/* Ordinateur : le texte à gauche, l'écran à droite qui déborde du cadre ; le tout tient dans la hauteur de la fenêtre */
@media (min-width: 1024px) {
  .hero-app {
    --chevauchement-hero: 0px;
    --debord: 24px;
    --hauteur-ecran: clamp(440px, calc(100svh - 200px), 600px);
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    align-items: center;
    column-gap: clamp(40px, 4.5vw, 72px);
    min-height: min(calc(100svh - 80px), 900px);
    padding-top: clamp(16px, 3vh, 40px);
    padding-bottom: clamp(32px, 6vh, 72px);
  }
  .hero-app__centre { padding-top: 0; text-align: left; }
  .hero-app__centre .titre-display { max-width: none; font-size: clamp(46px, 4.6vw, 68px); }
  .hero-app__lead { max-width: 520px; margin-left: 0; }
  .hero-app__actions { justify-content: flex-start; }
  .hero-app__scene { position: static; margin: 0; }
  .hero-app__ecran {
    width: min(calc(100% + (100vw - min(100vw, var(--largeur-max))) / 2 + var(--gouttiere) + var(--debord)), 980px);
    max-width: none;
    margin: 0;
  }
  /* la trajectoire traverse tout le hero, du bas du texte vers l'écran */
  .hero-app .trajectoire { top: auto; bottom: -150px; }
}

/* La trajectoire : faisceau + ligne maîtresse, dessinés une fois, puis figés */
.trajectoire {
  position: absolute;
  left: calc(50% - 50vw);
  top: -160px;
  width: 100vw;
  height: 440px;
  overflow: visible;
  pointer-events: none;
}
.arret-lilas { stop-color: var(--lilas); }
.arret-accent { stop-color: var(--accent); }
.arret-rose { stop-color: var(--or-rose); }
.arret-or { stop-color: var(--or); }
.trajectoire path {
  fill: none;
  stroke: url(#degrade-trajectoire);
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  vector-effect: non-scaling-stroke;
  animation: tracer 2.4s var(--ease-trace) 0.3s forwards;
}
.trajectoire__faisceau path { stroke-width: 1; opacity: 0.45; }
.trajectoire__maitresse { stroke-width: 2.25; }
.trajectoire__point { fill: var(--or); opacity: 0; animation: apparaitre 0.5s ease-out 2.6s forwards; }
@keyframes tracer { to { stroke-dashoffset: 0; } }
@keyframes apparaitre { to { opacity: 1; } }

/* ---------- Sections : des panneaux arrondis posés sur le fond (Woday) ---------- */
.landing { background: var(--ground-soft); }
.section { position: relative; padding: 6px 0; }
.section > .section__interieur {
  position: relative;
  width: min(1200px, calc(100% - 24px));
  max-width: none;
  margin: 0 auto;
  padding: clamp(48px, 6.5vw, 96px) clamp(24px, 5vw, 72px);
  border-radius: var(--radius-panneau);
  background: var(--surface);
}
/* l'écran du hero chevauche le haut du premier panneau */
#concentration > .section__interieur { padding-top: calc(var(--chevauchement) + clamp(48px, 6.5vw, 96px)); }
/* l'offre se détache sur un panneau mat, la carte blanche posée dessus */
#offre > .section__interieur { background: var(--ground); }
/* le bloc immersif de la page */
.section--immersive { color: var(--ink-inverse); }
.section--immersive > .section__interieur { background: var(--surface-inverse); }

.section__numero { color: var(--accent); }
.titre-section {
  margin: var(--space-3) 0 0;
  font-family: var(--font-display);
  font-variation-settings: "opsz" 72;
  font-weight: 400;
  font-size: clamp(34px, 4.2vw, 48px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.section__corps {
  max-width: 540px;
  margin: var(--space-5) 0 0;
  color: var(--ink-2);
  text-wrap: pretty;
}
.section__texte--centre { max-width: 760px; margin: 0 auto; text-align: center; }
.section__texte--centre .section__corps { margin-left: auto; margin-right: auto; }

.section--split .section__interieur {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-12);
  align-items: center;
}
@media (min-width: 900px) {
  .section--split .section__interieur { grid-template-columns: 1fr 1.1fr; gap: 72px; }
  .section--inverse .section__texte { order: 2; }
}

/* Puces des fonctionnalités secondaires ; « en développement » pour celles qui n'existent pas encore */
.puces { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: 28px 0 0; padding: 0; list-style: none; }
.puces--centre { justify-content: center; }
.puce {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--surface);
  font-size: var(--fs-body-sm);
  font-weight: 500;
}
.puce--dev { border-style: dashed; border-color: var(--line-strong); background: transparent; color: var(--ink-2); }
.puce__etat { font-size: 11px; font-weight: 600; letter-spacing: 0.02em; color: var(--ink-muted); }
@media (max-width: 639.98px) {
  /* sur téléphone, la mention passe sous le nom de la fonction */
  .puce--dev { flex-direction: column; align-items: flex-start; justify-content: center; gap: 0; padding: 6px 14px; border-radius: var(--radius-md); }
}

.lien-fleche {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 44px;
  margin-top: var(--space-5);
  color: var(--accent);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
}

/* ---------- Offre Fondateur ---------- */
.section--offre .section__interieur { display: flex; flex-direction: column; align-items: center; }
.offre { position: relative; width: 100%; max-width: 520px; }
.offre__carte {
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}
.offre__nom {
  margin: 0;
  font-family: var(--font-display);
  font-variation-settings: "opsz" 48;
  font-weight: 600;
  font-size: var(--fs-h3);
  letter-spacing: -0.01em;
}
.offre__prix { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: var(--space-4) 0 0; }
.offre__montant {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 96;
  font-weight: 600;
  font-size: clamp(44px, 5vw, 56px);
  line-height: 1;
  letter-spacing: -0.03em;
}
.offre__duree { font-size: 15px; color: var(--ink-2); }
.offre__public { margin: var(--space-2) 0 0; font-size: var(--fs-body-sm); color: var(--ink-muted); }
.offre__avantage {
  margin: var(--space-6) 0 0;
  padding: var(--space-4) 18px;
  border-radius: var(--radius-md);
  background: var(--accent-soft);
  font-size: 15px;
  line-height: 1.5;
}
.offre__avantage p { margin: 0; }
.offre__avantage-titre { font-weight: 600; margin-bottom: 4px !important; }
.offre__comprend { margin: var(--space-6) 0 var(--space-2); font-weight: 600; }
.offre__liste { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; font-size: 15px; line-height: 1.45; }
.offre__liste li { position: relative; padding-left: 28px; }
.offre__liste li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 0.3em;
  width: 11px;
  height: 6px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}
.offre__rarete { margin: var(--space-6) 0 0; font-weight: 600; }
.offre__mention { margin: var(--space-2) 0 0; font-size: 13px; line-height: 1.5; color: var(--ink-muted); }
.offre__bouton { width: 100%; justify-content: center; margin-top: var(--space-6); white-space: normal; text-align: center; }
.offre__liens { display: flex; flex-wrap: wrap; gap: 0 var(--space-5); margin: var(--space-3) 0 0; }
.offre__liens a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--accent);
  font-size: var(--fs-body-sm);
  font-weight: 600;
  text-decoration: none;
}

/* ---------- Fondements : le bloc immersif ---------- */
.section--immersive .section__numero { color: var(--lilas); }
.section--immersive .section__corps { color: var(--ink-inverse); }
.fondements__principes {
  margin: var(--space-6) auto 0;
  max-width: 680px;
  font-family: var(--font-display);
  font-variation-settings: "opsz" 48;
  font-weight: 600;
  font-size: clamp(21px, 2.3vw, 28px);
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.fondements__ligne { margin: var(--space-12) auto 0; }
.fondements__ligne path { stroke: var(--lilas); }
.fondements__ligne circle { fill: var(--or); }
.section--immersive :focus-visible { outline-color: var(--lilas); }

/* ---------- Questions ---------- */
.section--questions .section__interieur { display: grid; gap: var(--space-8); }
@media (min-width: 900px) {
  .section--questions .section__interieur { grid-template-columns: 1fr 1.7fr; align-items: start; }
}
.faq { display: grid; gap: var(--space-3); }
.faq__item { border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); }
.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: 56px;
  padding: var(--space-4) var(--space-5);
  font-family: var(--font-display);
  font-variation-settings: "opsz" 48;
  font-weight: 600;
  font-size: 18px;
  line-height: 1.3;
  cursor: pointer;
  list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "";
  flex: none;
  width: 9px;
  height: 9px;
  margin-right: 4px;
  border-right: 1.6px solid var(--ink);
  border-bottom: 1.6px solid var(--ink);
  transform: translateY(-3px) rotate(45deg);
  transition: transform 0.25s var(--ease-sortie);
}
.faq__item[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.faq__item summary:focus-visible { border-radius: var(--radius-md); }
.faq__reponse { padding: 0 var(--space-5) var(--space-4); color: var(--ink-2); font-size: 15px; }
.faq__reponse p { margin: 0 0 10px; }
.faq__reponse a { color: var(--accent); font-weight: 600; }

/* ---------- CTA final ---------- */
.section--final .bouton { margin-top: var(--space-8); }

/* ---------- Mascotte : discrète mais présente (Woday), jamais dans le hero ---------- */
/* 01 : petite, sous le texte, posée sur le bas du panneau */
.mascotte-coin { display: block; width: clamp(120px, 12vw, 160px); height: auto; margin: var(--space-8) 0 calc(-1 * clamp(48px, 6.5vw, 96px)); }
/* 03 : moyenne, en haut à droite, à côté du titre */
.mascotte-titre { position: absolute; top: clamp(20px, 3vw, 40px); right: clamp(20px, 3vw, 40px); width: clamp(110px, 11vw, 160px); height: auto; }
/* le texte centré laisse la place de la mascotte, de part et d'autre */
@media (min-width: 820px) {
  #amelioration .section__texte--centre { padding: 0 clamp(120px, 13vw, 180px); max-width: none; }
}
/* Offre : la tête qui dépasse du bord haut de la carte */
.offre { margin-top: clamp(120px, 10vw, 140px); }
.mascotte-regard {
  position: absolute;
  bottom: 100%;
  left: 50%;
  width: 200px;
  height: 92px;
  margin-left: -100px;
  overflow: hidden;
  pointer-events: none;
}
.mascotte-regard img { width: 240px; max-width: none; height: auto; }
/* Questions : petite, sous le titre */
.mascotte-faq { display: block; width: clamp(120px, 12vw, 160px); height: auto; margin-top: var(--space-8); }

@media (max-width: 819.98px) {
  .mascotte-titre { position: relative; top: auto; right: auto; display: block; margin: var(--space-8) auto 0; width: 130px; }
}

/* ---------- Apparitions (M-REVEAL du squelette Studio, simplifié) ---------- */
.apparitions [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition: opacity 0.9s var(--ease-sortie), transform 0.9s var(--ease-sortie);
}
.apparitions [data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .trajectoire path { stroke-dashoffset: 0 !important; }
  .trajectoire__point { opacity: 1 !important; }
}

/* ==========================================================================
   Conformité à la planche visuelle (S029) : lumière diffuse, trajectoire, icônes filaires, illustration,
   verre discret, immersif de nuit, un mot en couleur par titre. Limité à la page App (body.app) :
   la rubrique Conseil, qui charge aussi cette feuille, ne change pas.
   ========================================================================== */


/* ---------- Lumière diffuse sur toute la page ---------- */
.app {
  background:
    linear-gradient(180deg,
      var(--ground-soft) 0,
      var(--fond-lilas) 28%,
      var(--ground-soft) 52%,
      var(--fond-peche) 78%,
      var(--ground-soft) 100%);
}
/* le hero : lilas, avec la pêche qui répond à gauche */
.app .hero-app__peche {
  position: absolute;
  left: -12%;
  top: 220px;
  width: 760px;
  height: 560px;
  background: var(--halo-peche);
  opacity: 0.75;
}
@media (max-width: 639.98px) {
  .app .hero-app__peche { left: -60%; top: 320px; width: 520px; height: 420px; }
}

/* un halo derrière chaque écran stylisé */
.app .section > .section__interieur { overflow: hidden; }
.app .section__visuel { position: relative; }
.app .section__visuel > .ecran { position: relative; z-index: 1; }
.app .section__visuel::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: -22% -18%;
  background: var(--halo-lilas);
  pointer-events: none;
}
.app #planification .section__visuel::before { background: var(--halo-peche); }
.app #continuite .section__visuel::before { inset: -26% -22%; }

/* ---------- Le mot en couleur, un par titre ---------- */
.app .titre-section .mot-signature { color: var(--accent); }
.app .section--immersive .titre-section .mot-signature { color: var(--lilas); }

/* ---------- Icônes filaires (planche, § 4) ---------- */
.app .section__icone {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: var(--space-5);
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: var(--accent);
}
.app .section__icone svg { width: 26px; height: 26px; }
.app .section__icone .point { fill: var(--or); stroke: none; }
.app .section__texte--centre .section__icone { margin-left: auto; margin-right: auto; }

/* ---------- 03 : la composition aérienne ---------- */
.app #amelioration > .section__interieur {
  background: transparent;
  padding-top: clamp(64px, 8vw, 120px);
  padding-bottom: clamp(64px, 8vw, 120px);
}
.app .aerien__trajectoire {
  position: absolute;
  inset: auto 0 0 0;
  width: 100%;
  height: 70%;
  pointer-events: none;
  opacity: 0.55;
}
@media (max-width: 759.98px) {
  /* sur téléphone, la trajectoire se recadre (slice) au lieu de s'écraser, et reste sous l'illustration */
  .app .aerien__trajectoire { height: 300px; opacity: 0.45; }
}
.app .aerien__trajectoire path { fill: none; stroke: url(#degrade-aerien); stroke-width: 1; vector-effect: non-scaling-stroke; }
.app .aerien__trajectoire .maitresse { stroke-width: 2; }
.app .aerien__trajectoire circle { fill: var(--or); }
.app #amelioration .section__texte { position: relative; z-index: 1; }
.app .illustration {
  display: block;
  width: min(520px, 100%);
  height: auto;
  margin: var(--space-12) auto 0;
  color: var(--accent);
}
.app .illustration .trait { fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.app .illustration .trait--doux { stroke: var(--line-strong); }
.app .illustration .surface { fill: var(--surface); }
.app .illustration .lilas { fill: var(--accent-soft); }
.app .illustration .point { fill: var(--or); }

/* ---------- Jauge et badge de capacité : la barre de la planche ---------- */
.app .e-jauge span { background: var(--jauge-pleine); }
.app .e-jauge .e-jauge__trop { background: var(--jauge-trop); }
.app .e-badge { background: var(--peche); color: var(--or-encre); }

/* ---------- Verre discret ---------- */
/* la barre du haut : voir composants.css (.nav-zone--app), commune à toute la rubrique App */
/* l'offre : la carte posée dans la lumière, bord de verre */
.app .offre::before {
  content: "";
  position: absolute;
  inset: -10% -40% -14%;
  background: var(--halo-duo);
  pointer-events: none;
}
.app .offre__carte {
  position: relative;
  border-color: var(--line-glass);
  box-shadow: var(--shadow-glass-on);
}

/* ---------- 06 : l'immersif de la planche, la nuit et le ruban lumineux ---------- */
.app .section--immersive > .section__interieur { background: var(--nuit); padding-bottom: clamp(140px, 16vw, 220px); }
.app .immersif__ruban {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  width: 100%;
  height: var(--h-ruban);
  pointer-events: none;
}
.app .section--immersive { --h-ruban: clamp(180px, 22vw, 300px); }
/* le point mandarine au bout du ruban : hors du SVG étiré, pour rester rond */
.app .immersif__point {
  position: absolute;
  left: calc(95% - 7px);
  bottom: calc(var(--h-ruban) * 0.887 - 17px);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--or);
  box-shadow: 0 0 14px 2px var(--lueur-or);
}
.app .immersif__ruban path { fill: none; stroke: url(#degrade-immersif); vector-effect: non-scaling-stroke; }
.app .immersif__ruban .faisceau path { stroke-width: 1; opacity: 0.55; }
.app .immersif__ruban .maitresse { stroke-width: 2.5; filter: drop-shadow(0 0 6px var(--lueur-accent)); }
.app .section--immersive .section__texte { position: relative; z-index: 1; }

/* ---------- 08 : l'appel final dans la lumière ---------- */
.app #final > .section__interieur::before {
  content: "";
  position: absolute;
  inset: -30% 10%;
  background: var(--halo-duo);
  pointer-events: none;
}
.app #final .section__texte { position: relative; z-index: 1; }

/* un peu plus d'air entre les panneaux, pour que la lumière du fond se voie */
.app .section { padding: 10px 0; }

/* 03 posé sur le fond lilas : le surtitre passe à l'accent assombri (4,42:1 → plus de 6:1) */
.app #amelioration .section__numero { color: var(--accent-hover); }
