/* ==========================================================================
   Yapdoc — page d'accueil (refonte du 7 novembre 2026)
   Une idée par écran : ce que fait l'app, l'app qui le fait, puis les preuves.
   Les écrans du téléphone sont rendus depuis le projet vidéo (../video, tools/site-ecrans.mjs).
   ========================================================================== */

.home {
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --screen-ratio: 618 / 1376;
}


/* ------------------------------------------------------------- téléphone */
/* Un Android sobre : cadre noir, liseré clair, poinçon de caméra. */
.phone {
  --pw: 300px;
  position: relative;
  width: var(--pw);
  padding: calc(var(--pw) * 0.03);
  border-radius: calc(var(--pw) * 0.16);
  background: #050508;
  box-shadow:
    inset 0 0 0 1.5px #3a3a4c,
    inset 0 0 0 4px #0d0d14,
    0 2px 0 0 #1b1b2a,
    0 40px 80px -20px rgb(0 0 0 / 70%),
    0 18px 36px -18px rgb(0 0 0 / 60%);
}
.phone::before {
  /* boutons de volume et de veille */
  content: "";
  position: absolute;
  right: -3px;
  top: 22%;
  width: 3px;
  height: 16%;
  border-radius: 0 3px 3px 0;
  background: #2a2a3c;
  box-shadow: 0 calc(var(--pw) * 0.42) 0 -0.5px #2a2a3c;
}
.phone__screen {
  position: relative;
  aspect-ratio: var(--screen-ratio);
  border-radius: calc(var(--pw) * 0.13);
  overflow: hidden;
  background: #000;
  isolation: isolate;
}
.phone__screen::after {
  /* poinçon de la caméra */
  content: "";
  position: absolute;
  top: 1.6%;
  left: 50%;
  width: calc(var(--pw) * 0.035);
  aspect-ratio: 1;
  border-radius: 50%;
  background: #000;
  transform: translateX(-50%);
  box-shadow: 0 0 0 1px #15151c;
  z-index: 5;
}
.phone__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* -------------------------------------------------------------- hero */
.h-app {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
  font-size: 0.95rem;
  color: var(--text-soft);
}
.h-app img { width: 2.5rem; height: 2.5rem; border-radius: 0.65rem; box-shadow: 0 0 0 1px var(--line); }
.h-app strong { color: var(--text); font-weight: 600; }

.h-title {
  font-size: clamp(2.9rem, 1.2rem + 5.4vw, 5.9rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
  font-weight: 600;
  max-width: 11ch;
  text-wrap: balance;
}
.h-dot { color: var(--violet); }
.h-lead {
  margin-top: 1.6rem;
  max-width: 30rem;
  font-size: clamp(1.1rem, 1rem + 0.45vw, 1.3rem);
  line-height: 1.55;
  color: var(--text-soft);
  text-wrap: pretty;
}
.h-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.6rem; margin-top: 2.2rem; }
.h-play {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
}
.h-play__icon {
  display: inline-grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  transition: border-color 0.18s var(--ease), background 0.18s var(--ease);
}
.h-play__icon svg { width: 1rem; height: 1rem; margin-left: 2px; }
.h-play:hover .h-play__icon { border-color: var(--text-faint); background: var(--surface); }
.h-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.4rem;
  margin: 2.4rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.9rem;
  color: var(--text-faint);
}
.h-proof li { display: inline-flex; align-items: center; gap: 0.5rem; }
.h-proof li::before {
  content: "";
  width: 0.9rem;
  height: 0.9rem;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5 6.5 12 13 4.5' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5 6.5 12 13 4.5' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  color: var(--violet-text);
}

/* -------------------------------------------------------------- papiers */
/* Un papier A4 en HTML : tout est en em, la taille suit --paper-w. */
.paper {
  --paper-w: 11rem;
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--paper-w);
  aspect-ratio: 210 / 297;
  margin: calc(var(--paper-w) * -0.707) 0 0 calc(var(--paper-w) / -2);
  display: flex;
  flex-direction: column;
  padding: 1.6em 1.6em 1.4em;
  font-family: var(--font-body);
  font-size: calc(var(--paper-w) * 0.048);
  line-height: 1.35;
  color: #1e1e24;
  background: linear-gradient(170deg, #fbfaf7, #ecebe6);
  border-radius: 3px;
  box-shadow: 0 1.6em 3.2em -1em rgb(0 0 0 / 60%), 0 0.15em 0.4em rgb(0 0 0 / 30%);
  overflow: hidden;
}
.paper--img { padding: 0; height: auto; object-fit: cover; }
.paper p, .paper ul { margin: 0; padding: 0; list-style: none; }
.paper__head { display: flex; align-items: center; gap: 0.6em; }
.paper__head i {
  display: grid;
  place-items: center;
  width: 2.3em;
  height: 2.3em;
  border-radius: 50%;
  color: #fff;
  font-style: normal;
  font-weight: 700;
  font-size: 0.85em;
}
.paper__head b { display: block; font-weight: 700; }
.paper__head small { display: block; font-size: 0.72em; color: #6e6e78; }
.paper__title { margin-top: 2.2em !important; font-family: var(--font-display); font-size: 1.45em; font-weight: 600; letter-spacing: -0.02em; }
.paper__meta { margin-top: 0.3em !important; font-size: 0.75em; color: #6e6e78; }
.paper__rows { margin-top: 1.6em !important; font-size: 0.8em; }
.paper__rows li { display: flex; justify-content: space-between; gap: 1em; padding: 0.45em 0; border-bottom: 1px solid #d9d8d2; }
.paper__total { display: flex; justify-content: space-between; margin-top: 0.9em !important; font-weight: 700; }
.paper__foot { margin-top: auto !important; font-size: 0.7em; color: #6e6e78; }

.hero-hint {
  position: absolute;
  left: 50%;
  bottom: 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--text-faint);
  transform: translateX(-50%);
  transition: opacity 0.3s var(--ease);
  pointer-events: none;
}
.hero-hint svg { width: 1rem; height: 1rem; }
@media (prefers-reduced-motion: no-preference) {
  .hero-hint svg { animation: h-hint 1.6s var(--ease) 3; }
}
@keyframes h-hint { 50% { transform: translateY(4px); } }

/* ------------------------------------------- version A : le tiroir se vide */
/* Le haut de page démarre sous l'en-tête collant : rien ne saute au premier défilement. */
.hero-a { margin-top: -4.5rem; }
.hero-a { position: relative; height: 320vh; }
.hero-a__sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-a__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 4vw, 4rem);
  padding-top: 3rem;
}
.hero-a__stage {
  --k: 1;
  position: relative;
  height: min(42rem, calc(100svh - 9rem));
}
/* Les papiers se placent par rapport à toute la scène (l'animation d'entrée transforme ce calque). */
/* Pas de z-index ni de transformation ici : chaque papier se range seul derrière ou devant le téléphone. */
.hero-a__papers { position: absolute; inset: 0; }
.hero-a__phone {
  --pw: min(16rem, calc((100svh - 13rem) / 2.3));
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  translate: -50% -52%;
  transition: scale 0.25s var(--ease);
}
.hero-a__phone.is-bump { scale: 1.025; }
.hero-a__phone .phone__media { opacity: 0; transition: opacity 0.3s var(--ease); }
.hero-a__phone .phone__media.is-active { opacity: 1; }

/* Position de départ de chaque papier (en rem, multipliée par --k), puis vol vers l'écran.
   Le script donne --e (0 → 1, avancement du vol), --o (opacité) et --lift (petite courbe). */
.hero-a .paper {
  --e: 0;
  --o: 1;
  --lift: 0;
  --paper-w: calc(10.5rem * var(--k));
  z-index: 1;
  opacity: var(--o);
  transform:
    translate(calc(var(--px) * (1 - var(--e)) * var(--k) * 1rem), calc((var(--py) * (1 - var(--e)) - var(--lift)) * var(--k) * 1rem - 2% * var(--e)))
    rotate(calc(var(--pr) * (1 - var(--e)) * 1deg))
    scale(calc(1 - 0.82 * var(--e)));
  will-change: transform, opacity;
}
.hero-a .paper.is-flying { z-index: 4; }
.hero-a [data-paper="0"] { --px: -13; --py: -8; --pr: -10; }
.hero-a [data-paper="1"] { --px: 13; --py: -9.5; --pr: 8; }
.hero-a [data-paper="2"] { --px: -13.5; --py: 8; --pr: 6; }
.hero-a [data-paper="3"] { --px: 13.5; --py: 7; --pr: -7; }
.hero-a [data-paper="4"] { --px: 19; --py: -1; --pr: 9; }

.hero-a__count {
  position: absolute;
  left: 50%;
  bottom: -0.2rem;
  margin: 0;
  translate: -50% 0;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-faint);
  white-space: nowrap;
}
.hero-a__count b { color: var(--text); font-weight: 500; }

@media (prefers-reduced-motion: no-preference) {
  .hero-a .paper { animation: h-fade 0.8s var(--ease) backwards; }
  .hero-a .paper:nth-child(2n) { animation-delay: 0.12s; }
  .hero-a .paper:nth-child(3n) { animation-delay: 0.22s; }
  .hero-a__phone { animation: h-rise 0.8s var(--ease) 0.1s both; }
  .h-hero__copy > * { animation: h-rise 0.7s var(--ease) both; }
  .h-hero__copy > :nth-child(2) { animation-delay: 0.06s; }
  .h-hero__copy > :nth-child(3) { animation-delay: 0.12s; }
  .h-hero__copy > :nth-child(4) { animation-delay: 0.18s; }
  .h-hero__copy > :nth-child(5) { animation-delay: 0.24s; }
}
@keyframes h-rise { from { opacity: 0; transform: translateY(12px); } }
@keyframes h-fade { from { opacity: 0; } }

@media (max-width: 900px) {
  .hero-a { height: 260vh; }
  .hero-a__grid { grid-template-columns: 1fr; gap: 0.5rem; padding-top: 4.5rem; align-content: start; height: 100%; }
  .hero-a .h-app, .hero-a .h-proof, .hero-a .h-play { display: none; }
  .hero-a .h-title { font-size: clamp(2.3rem, 9vw, 3rem); }
  .hero-a .h-lead { margin-top: 0.8rem; font-size: 1rem; }
  .hero-a .h-actions { margin-top: 1.1rem; gap: 0.8rem 1.2rem; }
  .hero-a__stage { --k: 0.58; height: calc(100svh - 21rem); min-height: 17rem; }
  .hero-a__phone { --pw: calc((100svh - 24rem) / 2.3); }
  .hero-a__count { bottom: -1.4rem; font-size: 0.75rem; }
  .hero-a .hero-hint { display: none; }
}

/* Mouvement réduit : pas d'animation au défilement, le haut de page reste fixe. */
@media (prefers-reduced-motion: reduce) {
  .hero-a { height: auto; }
  .hero-a__sticky { position: relative; height: auto; min-height: 100svh; }
  .hero-hint { display: none; }
}

/* --------------------------------------------------------- titres de section */
.h-section-title {
  font-size: clamp(2.2rem, 1.3rem + 3.2vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-weight: 600;
  text-wrap: balance;
}
.h-more { margin-top: 2.5rem; color: var(--text-soft); }
.h-more:hover { color: var(--text); }

/* ----------------------------------------------------------- les gestes */
.h-story { padding: clamp(5rem, 10vw, 8rem) 0 clamp(3rem, 6vw, 5rem); border-top: 1px solid var(--line); }
.h-story__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 6rem);
  margin-top: clamp(1rem, 3vw, 2rem);
}
.h-story__device {
  position: sticky;
  top: calc(50svh - (var(--story-h) / 2) + 2rem);
  --story-h: min(40rem, 78svh);
  align-self: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.4rem;
  order: 2;
}
.h-story__phone { --pw: calc((var(--story-h) - 3rem) * 0.449); }
.h-story__phone .phone__media {
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.45s var(--ease), transform 0.6s var(--ease);
}
.h-story__phone .phone__media.is-active { opacity: 1; transform: none; }
.h-story__progress { display: flex; gap: 0.4rem; padding: 0; margin: 0; list-style: none; }
.h-story__progress li {
  width: 1.6rem;
  height: 3px;
  border-radius: 3px;
  background: var(--line-strong);
  transition: background 0.3s var(--ease), width 0.3s var(--ease);
}
.h-story__progress li.is-active { width: 2.6rem; background: var(--violet); }

.h-steps { list-style: none; margin: 0; padding: 0; order: 1; }
.h-step {
  min-height: 78svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* Estompé mais lisible : le texte des gestes inactifs garde 4,5:1. */
  opacity: 0.7;
  transition: opacity 0.45s var(--ease);
}
.h-step.is-active { opacity: 1; }
.h-step__num { font-family: var(--font-mono); font-size: 0.9rem; color: var(--violet-text); }
.h-step h3 {
  margin-top: 0.8rem;
  font-size: clamp(2.6rem, 1.4rem + 3.6vw, 4.6rem);
  line-height: 1;
  letter-spacing: -0.045em;
}
.h-step p {
  margin-top: 1.2rem;
  max-width: 24rem;
  font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem);
  line-height: 1.5;
  color: var(--text-soft);
}
.h-step { position: relative; isolation: isolate; }
.h-step::before {
  /* grand numéro du geste, en contour, derrière le titre */
  content: attr(data-num);
  position: absolute;
  z-index: -1;
  left: -0.04em;
  top: 50%;
  translate: 0 -62%;
  font-family: var(--font-display);
  font-size: clamp(9rem, 4rem + 11vw, 17rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.06em;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--line-strong);
  transition: -webkit-text-stroke-color 0.45s var(--ease);
  pointer-events: none;
}
.h-step.is-active::before { -webkit-text-stroke-color: rgb(124 92 255 / 45%); }
.h-step h3 { max-width: 13ch; text-wrap: balance; }
/* La donnée lue par Yapdoc, au milieu du titre (avec sa ponctuation, sans retour à la ligne) */
.nw { white-space: nowrap; }
.h-chip {
  display: inline-block;
  padding: 0.02em 0.22em 0.06em;
  border-radius: 0.16em;
  font-family: var(--font-mono);
  font-size: 0.8em;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.1;
  white-space: nowrap;
  color: var(--cyan-300);
  background: rgb(34 211 238 / 12%);
  box-shadow: inset 0 0 0 1px rgb(34 211 238 / 45%);
}
[data-theme="light"] .h-chip { color: #0e7490; background: rgb(14 116 144 / 9%); box-shadow: inset 0 0 0 1px rgb(14 116 144 / 40%); }
.h-chip.is-typing::after {
  content: "";
  display: inline-block;
  width: 0.08em;
  height: 0.9em;
  margin-left: 0.04em;
  vertical-align: -0.1em;
  background: currentColor;
  animation: h-caret 0.7s steps(1) infinite;
}
@keyframes h-caret { 50% { opacity: 0; } }
/* Les mots arrivent un par un, nets depuis un léger flou (classe ajoutée par le script) */
.js-words .h-step h3 .w {
  display: inline-block;
  opacity: 0;
  filter: blur(8px);
  transform: translateY(0.25em);
  transition: opacity 0.5s var(--ease), filter 0.5s var(--ease), transform 0.6s var(--ease);
  transition-delay: calc(var(--i) * 70ms);
}
.js-words .h-step.is-seen h3 .w { opacity: 1; filter: none; transform: none; }
.h-step__shot { display: none; }

/* Sur petit écran : le téléphone et le texte du geste restent tous deux fixes ; le défilement
   fait seulement passer d'un geste au suivant (js/home.js). Chaque geste colle sous le
   téléphone, seul le geste actif est visible : aucun texte ne passe sous le téléphone. */
@media (max-width: 900px) {
  .h-story__grid { --device-h: min(27rem, 52svh); grid-template-columns: 1fr; gap: 0; }
  .h-story__device {
    --story-h: calc(var(--device-h) - 2.4rem);
    order: 0;
    top: 4rem;
    z-index: 2;
    height: var(--device-h);
    gap: 0.8rem;
    padding: 0.6rem 0 0;
    background: var(--bg);
  }
  /* Un vrai bloc vide en fin de liste : ni la marge du dernier geste ni un padding ne
     comptent pour le collage. Il doit dépasser la marge des gestes (45svh), sinon un geste
     se décolle avant l'arrivée du suivant. */
  .h-steps { order: 1; position: relative; }
  .h-steps::after { content: ""; display: block; height: 60svh; }
  .h-step {
    position: sticky;
    top: calc(4rem + var(--device-h));
    min-height: 0;
    justify-content: flex-start;
    margin-bottom: 45svh;
    padding: 1rem 0 0;
    opacity: 0;
    background: var(--bg);
  }
  .h-step.is-active { opacity: 1; }
  .h-step:last-child { margin-bottom: 0; }
  .h-step::before { font-size: 7rem; top: 0.6rem; translate: 0 0; }
  .h-step h3 { margin-top: 0.4rem; font-size: clamp(2rem, 8.2vw, 2.7rem); }
  .h-step p { font-size: 1.02rem; margin-top: 0.7rem; }
}

/* ---------------------------------------------------------- garanties */
.h-trust { padding: clamp(5rem, 10vw, 8rem) 0; border-top: 1px solid var(--line); }
.h-trust__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: clamp(2.5rem, 5vw, 4rem);
}
.h-trust__item {
  padding: clamp(1.6rem, 3vw, 2.4rem);
  border-radius: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
}
.h-trust__figure {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(3.4rem, 2rem + 4vw, 5.6rem);
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--text);
}
.h-trust__figure small {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--violet-text);
}
.h-trust__item h3 { margin-top: 2.2rem; font-size: 1.3rem; }
.h-trust__item > p:last-child { margin-top: 0.4rem; color: var(--text-soft); }
@media (max-width: 860px) { .h-trust__grid { grid-template-columns: 1fr; } }

/* ------------------------------------------------------ papiers suisses */
.h-swiss { padding: clamp(5rem, 10vw, 8rem) 0; border-top: 1px solid var(--line); overflow: hidden; }
.h-swiss__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}
.h-swiss__paper {
  position: relative;
  margin: 0;
  width: min(100%, 30rem);
  justify-self: center;
}
.h-swiss__paper img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
  transform: rotate(-2.5deg);
  box-shadow: 0 40px 80px -24px rgb(0 0 0 / 70%), 0 2px 6px rgb(0 0 0 / 30%);
}
/* Étiquettes : ce que Yapdoc lit sur la facture. Le cyan signale une lecture. */
.h-tag {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--night);
  white-space: nowrap;
}
.h-tag span {
  padding: 0.45rem 0.8rem;
  border-radius: 0.6rem;
  background: var(--cyan-400);
  box-shadow: 0 10px 24px -10px rgb(0 0 0 / 60%);
}
.h-tag::before {
  content: "";
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--cyan-400);
  box-shadow: 0 0 0 4px rgb(34 211 238 / 25%);
}
.h-tag { transform: translateY(-50%); }
/* Positions mesurées sur la facture (595 × 842) : total à 44 %, échéance juste sous sa ligne (47,5 %), code QR à 79 %. */
.h-tag--total { top: 44%; left: calc(100% - 1.6rem); }
.h-tag--date { top: 54%; left: 7%; }
.h-tag--qr { top: 79%; right: calc(67% - 0.4rem); flex-direction: row-reverse; }
@media (max-width: 1100px) {
  /* Pas assez de marge autour du papier : les étiquettes rentrent sur la feuille. */
  .h-tag { font-size: 0.74rem; }
  .h-tag--total { left: auto; right: 0.4rem; flex-direction: row-reverse; }
  .h-tag--qr { right: auto; left: 41%; flex-direction: row; }
}

.h-swiss__lead { margin-top: 1.4rem; font-size: 1.2rem; color: var(--text-soft); max-width: 26rem; }
.h-docs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}
.h-docs li {
  padding: 0.6rem 1rem;
  border-radius: 0.75rem;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 1rem;
}
.h-swiss__note { margin-top: 1.6rem; color: var(--text-faint); }
@media (max-width: 900px) {
  .h-swiss__grid { grid-template-columns: 1fr; }
  .h-swiss__paper { order: 2; width: min(100%, 24rem); margin-top: 1rem; }
}

/* -------------------------------------------------------------- vidéo */
.h-video { padding: clamp(5rem, 10vw, 8rem) 0; border-top: 1px solid var(--line); }
.h-video__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
}
.h-video__lead { margin-top: 1.2rem; font-size: 1.2rem; color: var(--text-soft); }
.h-video__frame {
  width: min(22rem, 80vw);
  border-radius: 1.75rem;
  overflow: hidden;
  background: #000;
  box-shadow: 0 0 0 1px var(--line), 0 40px 80px -30px rgb(0 0 0 / 70%);
}
.h-video__frame video { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; }
@media (max-width: 760px) {
  .h-video__grid { grid-template-columns: 1fr; }
  .h-video__frame { justify-self: center; }
}

/* ----------------------------------------------------------- questions */
.h-faq { padding: clamp(5rem, 10vw, 8rem) 0; border-top: 1px solid var(--line); }
.h-faq__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}
.h-faq__list details { border-bottom: 1px solid var(--line); }
.h-faq__list details:first-child { border-top: 1px solid var(--line); }
.h-faq__list summary {
  position: relative;
  padding: 1.5rem 3rem 1.5rem 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1rem + 0.5vw, 1.45rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.h-faq__list summary::-webkit-details-marker { display: none; }
.h-faq__list summary::after {
  content: "";
  position: absolute;
  right: 0.3rem;
  top: 50%;
  width: 0.75rem;
  height: 0.75rem;
  border-right: 1.5px solid var(--text-faint);
  border-bottom: 1.5px solid var(--text-faint);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s var(--ease);
}
.h-faq__list details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.h-faq__list details p { padding: 0 3rem 1.5rem 0; color: var(--text-soft); font-size: 1.05rem; max-width: 34rem; }
@media (max-width: 860px) { .h-faq__grid { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------- appel */
.h-cta { border-top: 1px solid var(--line); background: var(--bg-deep); }
.h-cta__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: clamp(5rem, 11vw, 9rem) 0;
}
.h-cta__icon { width: 6rem; height: 6rem; border-radius: 1.5rem; box-shadow: 0 0 0 1px var(--line), 0 24px 48px -20px rgb(0 0 0 / 70%); }
.h-cta__title {
  margin-top: 2rem;
  font-size: clamp(2.6rem, 1.4rem + 4.4vw, 5.2rem);
  line-height: 1;
  letter-spacing: -0.045em;
  text-wrap: balance;
}
.h-cta__inner > p { margin: 1.4rem 0 2.2rem; max-width: 30rem; font-size: 1.15rem; color: var(--text-soft); }

/* ------------------------------------------------------- thème clair */
[data-theme="light"] .h-swiss__paper img { filter: none; box-shadow: 0 30px 60px -24px rgb(10 10 18 / 30%), 0 1px 3px rgb(10 10 18 / 15%); }
[data-theme="light"] .phone { box-shadow: inset 0 0 0 1.5px #3a3a4c, inset 0 0 0 4px #0d0d14, 0 40px 80px -24px rgb(10 10 18 / 35%); }
[data-theme="light"] .h-tag span, [data-theme="light"] .h-tag::before { background: var(--cyan-300); }
/* Le fond clair laisse moins de marge : les gestes inactifs y sont moins estompés. */
[data-theme="light"] .h-step { opacity: 0.82; }
