/* =====================================================================
 * Vaayu — jetons de la direction artistique « Souffle »
 * Bleu Vaayu pour agir, encre nuit pour lire, lagon pour ce qui est
 * synchronisé et réussi. Clair par défaut ; sombre au choix du visiteur.
 * ===================================================================== */

:root {
  color-scheme: light;

  --encre:       #0a1230;
  --encre-2:     #414a66;
  --encre-3:     #626a85;
  --sol:         #f6f8fc;
  --surface:     #ffffff;
  --surface-2:   #eef2fb;
  --trait:       #dfe5f3;
  --trait-2:     #c2cbe3;
  --accent:      #2150f5;
  --accent-vif:  #2150f5;
  --accent-sol:  #e9eeff;
  --accent-texte:#1d44d8;
  --sur-accent:  #ffffff;
  --lagon:       #12b3a4;
  --nuit:        #0a1230;
  --nuit-2:      #16204a;
  --sur-nuit:    #eef2ff;
  --sur-nuit-2:  #a9b3dd;
  --bulle-emis:  #2150f5;
  --bulle-recu:  #eef2fb;
  --succes:      #087269;
  --succes-sol:  #e0f6f3;
  --alerte:      #8f5a00;
  --alerte-sol:  #fcf0d8;

  --font-display: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
  --font-sans:    "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, Menlo, monospace;

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 999px;

  --ombre-1: 0 1px 2px rgb(10 18 48 / 6%), 0 8px 24px -12px rgb(33 80 245 / 22%);
  --ombre-2: 0 2px 6px rgb(10 18 48 / 6%), 0 30px 60px -24px rgb(33 80 245 / 34%);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --encre:      #eef1fb;
  --encre-2:    #b3bbd4;
  --encre-3:    #8a93ae;
  --sol:        #070b1c;
  --surface:    #0e1428;
  --surface-2:  #151c36;
  --trait:      #222a48;
  --trait-2:    #36406a;
  --accent:     #7d9dff;
  --accent-vif: #4d7bff;
  --accent-sol: #141d42;
  --accent-texte:#9bb3ff;
  --sur-accent: #06102c;
  --lagon:      #3fd6c6;
  --nuit:       #101a44;
  --nuit-2:     #1d2758;
  --sur-nuit:   #eef2ff;
  --sur-nuit-2: #b0badf;
  --bulle-emis: #2f5ff0;
  --bulle-recu: #1b2242;
  --succes:     #3fd6c6;
  --succes-sol: #0c2a28;
  --alerte:     #e5b163;
  --alerte-sol: #2a2110;
  --ombre-1: none;
  --ombre-2: 0 30px 60px -24px rgb(0 0 0 / 60%);
}
/* =====================================================================
 * vaayu.re — composants (DA « Souffle », v4)
 * Mouvements : --vite 160ms · --moyen 320ms · --lent 700ms, courbe unique.
 * Tout s'arrête sous prefers-reduced-motion.
 * ===================================================================== */

:root {
  --vite: 160ms;
  --moyen: 320ms;
  --lent: 700ms;
  --courbe: cubic-bezier(.2, .7, .2, 1);
  --colonne: 76rem;
  --gouttiere: clamp(16px, 5vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /*
   * Exactement la hauteur du bandeau.
   *
   * A 84 px il s'ajoutait au « scroll-margin-top » des sections : l'ancre
   * s'arretait 83 px trop bas, et l'on voyait le bas de la section
   * precedente sous l'en-tete.
   */
  scroll-padding-top: 72px;
  /*
   * En « proximity », pas en « mandatory ».
   *
   * Il reste des sections plus hautes qu'un ecran. En mandatory, le
   * defilement les ramene de force a leur debut des qu'on relache : on ne
   * peut plus en lire le bas. En proximity, l'accrochage n'agit que si l'on
   * s'arrete deja pres d'un bord.
   */
  scroll-snap-type: y proximity;
}
body {
  margin: 0; background: var(--sol); color: var(--encre);
  font: 400 16.5px/1.6 var(--font-sans); word-spacing: .03em; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent-texte); }
button { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--font-display); color: var(--encre); margin: 0; }
p { margin: 0; }
strong { font-weight: 700; }
.visually-hidden:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.visually-hidden:focus { position: fixed; top: 12px; left: 12px; z-index: 100; padding: 10px 16px; background: var(--accent); color: var(--sur-accent); border-radius: var(--r-sm); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(var(--colonne), 100% - 2 * var(--gouttiere)); margin-inline: auto; }
.mono { font-family: var(--font-mono); }

/* Images claires / sombres */
.si-sombre { display: none; }
:root[data-theme="dark"] .si-clair { display: none; }
:root[data-theme="dark"] .si-sombre { display: block; }

/* ============================ Typographie =========================== */
.surtitre { display: inline-flex; align-items: center; gap: 10px; font: 700 13px/1 var(--font-sans); letter-spacing: .08em; text-transform: uppercase; color: var(--accent-texte); }
.surtitre::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: currentColor; }
.titre-1 { font-size: clamp(2.3rem, 5vw, 4.1rem); line-height: 1; font-weight: 800; letter-spacing: -0.045em; word-spacing: .02em; }
.titre-1 .doux { color: var(--encre-3); }
.titre-2 { font-size: clamp(1.55rem, 3.1vw, 2.5rem); line-height: 1.06; font-weight: 800; letter-spacing: -0.04em; text-wrap: balance; }
.titre-3 { font-size: 1.3rem; line-height: 1.25; font-weight: 800; letter-spacing: -0.02em; }
.chapeau { font-size: clamp(1.08rem, 1.6vw, 1.28rem); line-height: 1.6; color: var(--encre-2); }
.bleu { color: var(--accent); }
.virgule { margin-left: -.1em; }

/* ============================ Boutons =============================== */
.bouton {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 26px; border-radius: var(--r-pill); border: 1.5px solid var(--accent);
  font: 700 16px/1 var(--font-sans); text-decoration: none; white-space: nowrap; cursor: pointer;
  color: var(--sur-accent); background: var(--accent); box-shadow: var(--ombre-1);
  transition: transform var(--vite) var(--courbe), box-shadow var(--vite) var(--courbe), border-color var(--vite), background var(--vite);
}
.bouton::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 30%, rgb(255 255 255 / 25%) 50%, transparent 70%); transform: translateX(-120%); }
.bouton:hover { transform: translateY(-2px); box-shadow: var(--ombre-2); }
.bouton:hover::before { transform: translateX(120%); transition: transform .7s var(--courbe); }
.bouton:active { transform: translateY(0) scale(.97); }
.bouton svg { width: 18px; height: 18px; transition: transform var(--vite) var(--courbe); }
.bouton:hover svg { transform: translateX(4px); }
.bouton.creux { background: transparent; color: var(--encre); border-color: var(--trait-2); box-shadow: none; }
.bouton.creux::before { display: none; }
.bouton.creux:hover { border-color: var(--encre); }
.bouton.petit { min-height: 42px; padding: 0 18px; font-size: 15px; }
.bouton.clair { background: #fff; color: #0a1230; border-color: #fff; }
.bouton.large { width: 100%; }

/* ============================ En-tête =============================== */
.progression { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 70; background: linear-gradient(90deg, var(--accent), var(--lagon)); transform-origin: left; transform: scaleX(var(--p, 0)); pointer-events: none; }
header.site {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--sol) 78%, transparent);
  -webkit-backdrop-filter: saturate(1.5) blur(16px); backdrop-filter: saturate(1.5) blur(16px);
  border-bottom: 1px solid transparent; transition: border-color var(--moyen);
}
header.site.defile { border-bottom-color: var(--trait); }
.bandeau { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 72px; }
.marque { display: inline-flex; align-items: center; gap: 8px; color: var(--encre); text-decoration: none; font: 800 24px/1 var(--font-display); letter-spacing: -0.05em; }
.marque .sigle { color: var(--accent); }
.marque span { transform: translateY(-1px); }
.marque .sigle.trace path { stroke-dasharray: 90; stroke-dashoffset: 90; animation: trace 1.1s var(--courbe) .1s forwards; }
@keyframes trace { to { stroke-dashoffset: 0; } }
.nav { display: flex; align-items: center; gap: 2px; }
.nav a:not(.bouton) { position: relative; color: var(--encre-2); text-decoration: none; font-weight: 600; font-size: 15px; padding: 10px 13px; border-radius: var(--r-sm); transition: color var(--vite); }
.nav a:not(.bouton)::after { content: ""; position: absolute; left: 13px; right: 13px; bottom: 4px; height: 2px; border-radius: 2px; background: var(--accent); transform: scaleX(0); transition: transform var(--moyen) var(--courbe); }
.nav a:not(.bouton):hover { color: var(--encre); }
.nav a:not(.bouton):hover::after, .nav a.actif::after { transform: scaleX(1); }
.nav a.actif { color: var(--encre); }
.nav .bouton { margin-left: 8px; }
.theme-bascule { position: relative; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--trait-2); background: var(--surface); color: var(--encre-2); cursor: pointer; display: grid; place-items: center; padding: 0; margin-left: 6px; transition: border-color var(--vite), color var(--vite), transform var(--moyen) var(--courbe); }
.theme-bascule:hover { color: var(--encre); border-color: var(--encre-3); }
.theme-bascule:active { transform: rotate(-20deg) scale(.94); }
.theme-bascule svg { position: absolute; width: 18px; height: 18px; transition: transform var(--moyen) var(--courbe), opacity var(--moyen); }
.theme-bascule .lune { opacity: 0; transform: rotate(-90deg) scale(.5); }
:root[data-theme="dark"] .theme-bascule .soleil { opacity: 0; transform: rotate(90deg) scale(.5); }
:root[data-theme="dark"] .theme-bascule .lune { opacity: 1; transform: none; }
html.transition-theme, html.transition-theme * { transition: background-color .35s ease, border-color .35s ease, color .35s ease, fill .35s ease !important; }
.burger { display: none; width: 44px; height: 44px; border: 1px solid var(--trait-2); border-radius: 50%; background: var(--surface); cursor: pointer; place-content: center; padding: 0; margin-left: 6px; }
.burger span { display: block; width: 18px; height: 2px; background: var(--encre); border-radius: 2px; transition: transform var(--moyen) var(--courbe), opacity var(--vite); }
.burger span + span { margin-top: 4px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.menu-mobile { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); border-bottom: 1px solid var(--trait); box-shadow: var(--ombre-2); padding: 8px var(--gouttiere) 20px; animation: deroule var(--moyen) var(--courbe); }
.menu-mobile a:not(.bouton) { display: block; padding: 14px 4px; color: var(--encre); text-decoration: none; font-weight: 700; font-size: 18px; border-bottom: 1px solid var(--trait); }
.menu-mobile .bouton { margin-top: 16px; }
@keyframes deroule { from { opacity: 0; transform: translateY(-8px); } }
@media (max-width: 1080px) {
  .nav .masque-mobile { display: none; }
  .burger { display: grid; }
  .menu-mobile.ouvert { display: block; }
}
@media (max-width: 420px) { .nav .bouton { display: none; } }

/* ============================ Apparitions =========================== */
.js .revele { opacity: 0; transform: translateY(24px); transition: opacity var(--lent) var(--courbe), transform var(--lent) var(--courbe); transition-delay: calc(var(--i, 0) * 90ms); }
.js .revele.vu { opacity: 1; transform: none; }

/* ============================ Ouverture ============================= */
.ouverture { position: relative; padding: clamp(48px, 8vw, 104px) 0 0; text-align: center; overflow: clip; }
/* Trame de points qui s'estompe, et un halo bleu. */
.ouverture::before {
  content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background-image: radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--encre) 13%, transparent) 1px, transparent 0);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
}
.ouverture::after {
  content: ""; position: absolute; left: 50%; top: 42%; width: min(1100px, 120vw); aspect-ratio: 2; translate: -50% 0; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 18%, transparent), transparent);
  filter: blur(10px);
}
.ouverture-texte { display: grid; justify-items: center; gap: clamp(14px, 1.6vw, 22px); max-width: 58rem; margin-inline: auto; }
.ouverture-texte > * { animation: monte var(--lent) var(--courbe) both; }
.ouverture-texte > :nth-child(2) { animation-delay: 90ms; }
.ouverture-texte > :nth-child(3) { animation-delay: 180ms; }
.ouverture-texte > :nth-child(4) { animation-delay: 270ms; }
.ouverture-texte > :nth-child(5) { animation-delay: 360ms; }
@keyframes monte { from { opacity: 0; transform: translateY(18px); } }
.pastille-ouverture {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: var(--r-pill);
  background: var(--surface); border: 1px solid var(--trait); box-shadow: var(--ombre-1); font-size: 14px; font-weight: 600; color: var(--encre-2); text-decoration: none;
}
.pastille-ouverture b { font-size: 12px; font-weight: 800; color: #0a1230; background: var(--lagon); padding: 4px 9px; border-radius: var(--r-pill); }
.pastille-ouverture svg { width: 16px; height: 16px; transition: transform var(--vite) var(--courbe); }
.pastille-ouverture:hover svg { transform: translateX(3px); }
.ouverture .chapeau { max-width: 40rem; }
.actes { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.garanties-ligne { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; font-size: 14.5px; font-weight: 600; color: var(--encre-2); }
.garanties-ligne span { display: inline-flex; align-items: center; gap: 7px; }
.garanties-ligne svg { width: 18px; height: 18px; color: var(--succes); }

/* Scène produit : fenêtre + téléphone. */
.scene { position: relative; margin: clamp(22px, 3vw, 40px) auto 0; width: min(1120px, 100%); padding-bottom: 0; }
.scene-plan { position: relative; animation: leve 1.1s var(--courbe) .35s both; }
@keyframes leve { from { opacity: 0; translate: 0 50px; } }
.fenetre { border-radius: 16px; overflow: hidden; background: var(--surface); border: 1px solid var(--trait); box-shadow: 0 2px 4px rgb(10 18 48 / 5%), 0 40px 80px -30px rgb(10 18 48 / 30%), 0 0 0 8px color-mix(in srgb, var(--surface) 55%, transparent); }
:root[data-theme="dark"] .fenetre { box-shadow: 0 40px 90px -30px rgb(0 0 0 / 70%), 0 0 0 8px rgb(255 255 255 / 4%); }
.fenetre-barre { display: flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; background: var(--surface-2); border-bottom: 1px solid var(--trait); }
.fenetre-barre i { width: 11px; height: 11px; border-radius: 50%; background: var(--trait-2); }
.fenetre-barre b { margin: 0 auto; display: inline-flex; align-items: center; gap: 6px; font: 500 12.5px/1 var(--font-mono); color: var(--encre-3); background: var(--surface); border: 1px solid var(--trait); padding: 6px 14px; border-radius: var(--r-pill); }
.fenetre-barre b svg { width: 12px; height: 12px; color: var(--succes); }
.fenetre img { width: 100%; height: auto; aspect-ratio: 1280 / 780; }

.telephone {
  position: absolute; right: 1%; bottom: 0; width: clamp(150px, 21%, 230px);
  background: #0a1230; border-radius: 34px; padding: 8px; box-shadow: 0 40px 70px -24px rgb(10 18 48 / 55%); border: 1px solid #1d2758;
  animation: flotte 7s ease-in-out infinite;
}
@keyframes flotte { 50% { transform: translateY(-10px); } }
.telephone-ecran { background: var(--surface); border-radius: 27px; overflow: hidden; display: flex; flex-direction: column; height: clamp(250px, 32vw, 380px); }
.tel-statut { display: flex; justify-content: space-between; padding: 9px 16px 4px; font: 700 10px/1 var(--font-sans); color: var(--encre); }
.tel-tete { display: flex; align-items: center; gap: 8px; padding: 8px 12px 10px; border-bottom: 1px solid var(--trait); font-size: 11.5px; line-height: 1.2; }
.tel-tete .av { width: 26px; height: 26px; border-radius: 50%; background: var(--accent-sol); color: var(--accent-texte); font: 800 10px/26px var(--font-sans); text-align: center; flex: none; }
.tel-tete strong { display: block; color: var(--encre); }
.tel-tete span { color: var(--succes); font-size: 10px; font-weight: 600; }
.tel-tete span.synchro { animation: clignote .45s ease 3; }
@keyframes clignote { 50% { opacity: .25; } }
.tel-jour { align-self: center; font-size: 9.5px; font-weight: 700; color: var(--encre-3); background: var(--surface-2); padding: 2px 8px; border-radius: 99px; flex: none; }
.tel-fil { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; padding: 10px; overflow: hidden; }
.bulle { max-width: 86%; padding: 7px 10px; border-radius: 13px; font-size: 11.5px; line-height: 1.35; flex: none; }
.bulle.recu { align-self: flex-start; background: var(--bulle-recu); color: var(--encre); border-bottom-left-radius: 4px; }
.bulle.emis { align-self: flex-end; background: var(--bulle-emis); color: #fff; border-bottom-right-radius: 4px; }
.bulle.entre { animation: bulle .45s var(--courbe) both; }
@keyframes bulle { from { opacity: 0; transform: translateY(10px) scale(.92); } }
.frappe { align-self: flex-start; display: inline-flex; gap: 3px; padding: 9px 11px; border-radius: 13px; border-bottom-left-radius: 4px; background: var(--bulle-recu); animation: bulle .3s var(--courbe) both; }
.frappe i { width: 5px; height: 5px; border-radius: 50%; background: var(--encre-3); animation: saute 1.1s infinite; }
.frappe i:nth-child(2) { animation-delay: .15s; } .frappe i:nth-child(3) { animation-delay: .3s; }
@keyframes saute { 0%, 60%, 100% { transform: none; opacity: .5; } 30% { transform: translateY(-3px); opacity: 1; } }

/* Notification qui glisse sur la fenêtre */
.notif-demo {
  position: absolute; left: -2%; top: 12%; display: flex; align-items: center; gap: 12px; width: min(330px, 60%);
  padding: 12px 14px; border-radius: 16px; background: var(--surface);
  border: 1px solid var(--trait); box-shadow: var(--ombre-2); text-align: left;
  opacity: 0; transform: translateX(-24px) scale(.96); transition: opacity .5s var(--courbe), transform .5s var(--courbe);
}
.notif-demo.visible { opacity: 1; transform: none; }
.notif-demo .ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--accent); color: #fff; flex: none; }
.notif-demo .ic svg { width: 20px; height: 20px; }
.notif-demo strong { display: block; font-size: 14px; }
.notif-demo span { font-size: 13px; color: var(--encre-2); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 230px; }
.notif-demo small { margin-left: auto; align-self: flex-start; font-size: 11.5px; color: var(--encre-3); }
.puce-chiffre {
  position: absolute; left: -2%; bottom: 12%; display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px 10px 10px;
  border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--trait); box-shadow: var(--ombre-2); font-size: 14px; font-weight: 700; text-align: left;
  animation: flotte 8s ease-in-out 1s infinite;
}
.puce-chiffre .ic { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--succes-sol); color: var(--succes); }
.puce-chiffre .ic svg { width: 18px; height: 18px; }
.puce-chiffre small { display: block; font-size: 12px; font-weight: 500; color: var(--encre-3); }


@media (max-width: 560px) {
  .scene .fenetre img { aspect-ratio: 3 / 4; object-fit: cover; object-position: 100% 0; }
}
@media (max-width: 760px) {
  .telephone { width: 40%; right: -1%; bottom: -4%; }
  .telephone-ecran { height: 250px; }
  .notif-demo { left: 2%; top: 30%; width: 68%; }
  .notif-demo span { max-width: 150px; }
  .puce-chiffre { display: none; }
  .scene { padding-bottom: 60px; }
}

/* ============================ Métiers (défilement) ================== */
.metiers { padding: clamp(40px, 6vw, 64px) 0; border-block: 1px solid var(--trait); background: var(--surface); overflow: hidden; }
.metiers p { text-align: center; font-size: 14px; font-weight: 600; color: var(--encre-3); margin-bottom: 22px; }
.defilant { display: flex; width: max-content; animation: defile 38s linear infinite; }
.metiers:hover .defilant { animation-play-state: paused; }
.defilant ul { display: flex; gap: 14px; list-style: none; margin: 0; padding: 0 7px; }
.defilant li { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; padding: 12px 20px; border-radius: var(--r-pill); background: var(--sol); border: 1px solid var(--trait); font-weight: 700; font-size: 16px; }
.defilant li svg { width: 20px; height: 20px; color: var(--accent); }
.defilant li span { font-weight: 500; color: var(--encre-3); font-size: 14px; }
@keyframes defile { to { transform: translateX(-50%); } }
.metiers .bord { -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }

/* ============================ Sections ============================== */
/* =====================================================================
 * Une section par ecran
 *
 * Chaque section fait au moins la hauteur de la fenetre, en dessous de
 * l'en-tete, et son contenu y est centre verticalement. Une section courte
 * remplit donc l'ecran au lieu de laisser depasser la suivante — c'est la
 * seule facon de ne jamais en voir deux a la fois.
 *
 * `svh` et non `vh` : sur un telephone, `vh` compte la barre d'adresse
 * comme si elle n'existait pas, et chaque section deborde d'une soixantaine
 * de pixels qu'on ne voit qu'a l'usage.
 *
 * L'air a ete resserre au passage. A 140 px en haut et en bas, chaque
 * section portait 280 px de vide : pres de deux mille pixels sur la page,
 * qui ne servaient qu'a faire defiler.
 * ===================================================================== */
.section {
  padding: clamp(24px, 2.6vw, 40px) 0;
  position: relative;
  min-height: calc(100svh - 72px);
  display: flex;
  align-items: center;
  scroll-snap-align: start;
}
/*
 * Le conteneur garde sa propre largeur.
 *
 * Lui imposer 100 % ecrasait « min(76rem, 100% - 2 gouttieres) » : le
 * contenu partait coller les deux bords de la fenetre, sans marge et sans
 * limite de largeur. Dans un conteneur en flex, ses marges automatiques
 * suffisent a le centrer.
 */
.section > .wrap { flex: 0 1 auto; }
.section.teinte { background: var(--surface); border-block: 1px solid var(--trait); }
.tete { display: grid; gap: 18px; max-width: 46rem; margin-bottom: clamp(40px, 6vw, 64px); }
.tete.centre { margin-inline: auto; text-align: center; justify-items: center; }
.deux-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: end; margin-bottom: clamp(40px, 6vw, 64px); }
.deux-col .chapeau { padding-bottom: 6px; }
@media (max-width: 860px) { .deux-col { grid-template-columns: 1fr; gap: 18px; } }

/* ============================ Le chemin le plus court ================ */
.chemins { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.chemin { position: relative; border-radius: var(--r-xl); padding: clamp(24px, 3.5vw, 36px); background: var(--sol); border: 1px solid var(--trait); display: grid; gap: 22px; overflow: hidden; }
.chemin.vaayu { background: #0a1230; border-color: #0a1230; color: #eef2ff; }
:root[data-theme="dark"] .chemin.vaayu { background: #101a44; border-color: #1d2758; }
.chemin h3 { font-size: 1.35rem; letter-spacing: -0.02em; font-weight: 800; }
.chemin.vaayu h3 { color: #fff; }
.chemin .etiq { justify-self: start; font-size: 12.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: 6px 11px; border-radius: var(--r-pill); background: var(--surface-2); color: var(--encre-2); }
.chemin.vaayu .etiq { background: var(--lagon); color: #0a1230; }
.chemin svg.trajet { width: 100%; height: auto; overflow: visible; }
.trajet .noeud { fill: var(--surface); stroke: var(--trait-2); stroke-width: 1.5; }
.chemin.vaayu .trajet .noeud { fill: #16204a; stroke: #2b376b; }
.trajet .ico { fill: none; stroke: var(--encre-2); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.chemin.vaayu .trajet .ico { stroke: #eef2ff; }
.trajet .serveur-noeud { fill: var(--alerte-sol); stroke: color-mix(in srgb, var(--alerte) 45%, transparent); }
.trajet .serveur-ico { stroke: var(--alerte); }
.trajet .ligne { fill: none; stroke: var(--trait-2); stroke-width: 2; stroke-dasharray: 4 6; }
.chemin.vaayu .trajet .ligne { stroke: var(--lagon); stroke-dasharray: none; opacity: .8; }
.trajet .msg { fill: var(--encre-3); }
.chemin.vaayu .trajet .msg { fill: var(--lagon); }
.trajet .msg-copie { fill: var(--alerte); }
.trajet text { font: 600 12px var(--font-sans); fill: var(--encre-3); }
.chemin.vaayu .trajet text { fill: #b0badf; }
.trajet .cadenas { fill: var(--lagon); }
.chemin ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 15px; }
.chemin li { display: flex; gap: 10px; align-items: flex-start; color: var(--encre-2); }
.chemin li svg { flex: none; width: 20px; height: 20px; margin-top: 2px; }
.chemin.autres li svg { color: var(--alerte); }
.chemin.vaayu li { color: #d6ddf5; }
.chemin.vaayu li svg { color: var(--lagon); }
@media (max-width: 860px) { .chemins { grid-template-columns: 1fr; } }

/* ============================ Visite du produit ===================== */
.visite-onglets { display: flex; justify-content: center; margin-bottom: 28px; }
.segment { display: inline-flex; gap: 4px; padding: 5px; border-radius: var(--r-pill); background: var(--surface-2); border: 1px solid var(--trait); position: relative; }
.segment button { white-space: nowrap; }
@media (max-width: 520px) { .visite-onglets { justify-content: flex-start; overflow-x: auto; margin-inline: calc(-1 * var(--gouttiere)); padding-inline: var(--gouttiere); scrollbar-width: none; } .visite-onglets::-webkit-scrollbar { display: none; } }
.segment button { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px; border: 0; background: transparent; padding: 11px 20px; border-radius: var(--r-pill); font-weight: 700; font-size: 15px; color: var(--encre-2); cursor: pointer; transition: color var(--moyen); }
.segment button svg { width: 18px; height: 18px; }
.segment button[aria-selected="true"] { color: var(--encre); }
.segment .curseur { position: absolute; z-index: 0; top: 5px; bottom: 5px; left: 0; width: 0; border-radius: var(--r-pill); background: var(--surface); box-shadow: 0 1px 2px rgb(10 18 48 / 10%), 0 4px 14px -4px rgb(10 18 48 / 18%); transition: transform var(--moyen) var(--courbe), width var(--moyen) var(--courbe); }
.visite { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: center; }
.visite .fenetre img { transition: opacity .35s var(--courbe); }
.visite-panneau { display: grid; gap: 18px; }
.visite-panneau h3 { font-size: 1.5rem; }
.visite-panneau p { color: var(--encre-2); }
.visite-panneau ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: pt; }
.visite-panneau li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; font-size: 15px; color: var(--encre-2); }
.visite-panneau li::before { counter-increment: pt; content: counter(pt); width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font: 800 13px/1 var(--font-sans); background: var(--accent-sol); color: var(--accent-texte); }
.visite-panneau li strong { color: var(--encre); display: block; }
.visite-panneau:not([hidden]) > * { animation: monte .5s var(--courbe) both; }
.visite-panneau:not([hidden]) > :nth-child(2) { animation-delay: 60ms; }
.visite-panneau:not([hidden]) > :nth-child(3) { animation-delay: 120ms; }
@media (max-width: 980px) { .visite { grid-template-columns: 1fr; } .segment button { padding: 10px 14px; font-size: 14px; } .segment button svg { display: none; } }

/* ============================ Bento ================================= */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.tuile { position: relative; overflow: hidden; border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--trait); padding: clamp(22px, 3vw, 30px); display: flex; flex-direction: column; gap: 14px; transition: border-color var(--moyen), box-shadow var(--moyen), transform var(--moyen) var(--courbe); }
.section.teinte .tuile { background: var(--sol); }
.tuile:hover { border-color: var(--trait-2); box-shadow: var(--ombre-1); }
.tuile h3 { font-size: 1.2rem; letter-spacing: -0.02em; font-weight: 800; }
.tuile > p { color: var(--encre-2); font-size: 15px; }
.tuile .demo { margin-top: auto; }
.t-4 { grid-column: span 4; } .t-3 { grid-column: span 3; } .t-2 { grid-column: span 2; }
@media (max-width: 980px) { .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } .t-4, .t-3, .t-2 { grid-column: span 2; } }
@media (min-width: 981px) and (max-width: 1100px) { .t-2 { grid-column: span 3; } }

/* Compteur SMS interactif */
.essai-sms { display: grid; gap: 12px; }
.essai-sms textarea { width: 100%; min-height: 96px; resize: vertical; padding: 14px 16px; border-radius: var(--r-md); border: 1.5px solid var(--trait-2); background: var(--surface); color: var(--encre); font: 500 16px/1.5 var(--font-sans); transition: border-color var(--vite), box-shadow var(--vite); }
.section.teinte .essai-sms textarea { background: var(--surface); }
.essai-sms textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-sol); }
.jauges-sms { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.encodage { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 700; padding: 7px 12px; border-radius: var(--r-pill); background: var(--succes-sol); color: var(--succes); transition: background var(--moyen), color var(--moyen); }
.encodage.unicode { background: var(--alerte-sol); color: var(--alerte); }
.encodage::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.compte-sms { font-size: 14px; color: var(--encre-2); }
.compte-sms b { color: var(--encre); font-variant-numeric: tabular-nums; }
.barre-sms { flex-basis: 100%; height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.barre-sms i { display: block; height: 100%; width: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); transition: transform .25s var(--courbe), background var(--moyen); border-radius: inherit; }
.encodage.unicode ~ .barre-sms i { background: var(--alerte); }
.essais { display: flex; flex-wrap: wrap; gap: 6px; }
.essais button { border: 1px dashed var(--trait-2); background: transparent; border-radius: var(--r-pill); padding: 6px 12px; font-size: 13px; font-weight: 600; color: var(--encre-2); cursor: pointer; }
.essais button:hover { border-style: solid; color: var(--encre); }

/* Mini-interfaces des tuiles */
.mini { border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--trait); padding: 14px; display: grid; gap: 8px; font-size: 13px; }
.section.teinte .mini { background: var(--surface); }
.mini .ligne { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 9px 11px; border-radius: 10px; background: var(--sol); color: var(--encre-2); }
.mini .ligne strong { color: var(--encre); font-weight: 700; }
.pastille { display: inline-flex; align-items: center; gap: 6px; font: 700 11.5px/1 var(--font-sans); padding: 6px 9px; border-radius: var(--r-pill); white-space: nowrap; }
.pastille::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pastille.ok { color: var(--succes); background: var(--succes-sol); }
.pastille.info { color: var(--accent-texte); background: var(--accent-sol); }
.pastille.attente { color: var(--alerte); background: var(--alerte-sol); }
.jauge { height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.jauge i { display: block; height: 100%; width: 100%; background: var(--accent); border-radius: inherit; transform-origin: left; transform: scaleX(.32); transition: transform 2s var(--courbe) .3s; }
.vu .jauge i { transform: scaleX(.68); }
.appel { display: grid; gap: 8px; }
.appel .etape-appel { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--sol); font-size: 13.5px; color: var(--encre-2); }
.appel .etape-appel .ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; flex: none; }
.appel .etape-appel .ic svg { width: 16px; height: 16px; }
.appel .manque .ic { background: var(--alerte-sol); color: var(--alerte); }
.appel .reponse .ic { background: var(--succes-sol); color: var(--succes); }
.appel .temps { margin-left: auto; font: 500 12px var(--font-mono); color: var(--encre-3); }
.notif { display: grid; grid-template-columns: 32px 1fr auto; gap: 1px 10px; align-items: center; padding: 10px; border-radius: 12px; background: var(--surface); border: 1px solid var(--trait); }
.notif + .notif { margin-top: 8px; }
.notif .app { grid-row: span 2; width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; font: 800 12px/1 var(--font-sans); color: #fff; }
.notif .a { background: #128c4a; } .notif .b { background: #3a5bd9; } .notif .c { background: #b0337a; }
.notif strong { font-size: 13px; }
.notif span { font-size: 12.5px; color: var(--encre-3); }
.notif em { grid-row: span 2; font-style: normal; font-size: 12px; font-weight: 700; color: var(--accent-texte); }
.depot { border: 2px dashed var(--trait-2); border-radius: var(--r-md); padding: 18px; text-align: center; color: var(--encre-2); display: grid; gap: 6px; justify-items: center; font-size: 13.5px; transition: border-color var(--moyen), background var(--moyen); }
.tuile:hover .depot { border-color: var(--accent); background: var(--accent-sol); }
.depot svg { width: 26px; height: 26px; color: var(--accent); transition: transform var(--moyen) var(--courbe); }
.tuile:hover .depot svg { transform: translateY(-4px); }
.ordis { display: flex; flex-wrap: wrap; gap: 8px; }
.ordis span { width: 42px; height: 30px; border-radius: 6px; border: 2px solid var(--trait-2); position: relative; transition: border-color .3s, background .3s; }
.ordis span::after { content: ""; position: absolute; left: 50%; bottom: -6px; width: 16px; height: 3px; translate: -50% 0; border-radius: 2px; background: var(--trait-2); }
.vu .ordis span { border-color: var(--accent); background: var(--accent-sol); transition-delay: calc(var(--n) * 90ms + 200ms); }
.code-app { display: flex; gap: 5px; }
.code-app b { width: 30px; height: 40px; border-radius: 8px; display: grid; place-items: center; background: var(--surface-2); font: 600 19px/1 var(--font-mono); color: var(--encre); }
.code-app b:nth-child(3) { margin-right: 8px; }
.code-app b.tourne { animation: tourne .45s var(--courbe); }
@keyframes tourne { from { transform: translateY(-30%); opacity: 0; } }

/* ============================ Faits ================================= */
.faits { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--trait); }
.fait { padding: 30px 24px 0 0; display: grid; gap: 8px; align-content: start; }
.fait + .fait { padding-left: 24px; border-left: 1px solid var(--trait); }
.fait .n { font: 800 clamp(3rem, 6vw, 4.6rem)/1 var(--font-display); letter-spacing: -0.05em; color: var(--encre); font-variant-numeric: tabular-nums; }
.fait .n small { font-size: .45em; letter-spacing: -0.02em; margin-left: 4px; color: var(--accent); }
.fait p { color: var(--encre-2); font-size: 15px; max-width: 24ch; }
@media (max-width: 860px) { .faits { grid-template-columns: 1fr 1fr; } .fait:nth-child(3) { padding-left: 0; border-left: 0; } .fait:nth-child(n+3) { border-top: 1px solid var(--trait); margin-top: 24px; } }

/* ============================ Étapes ================================ */
.etapes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: etape; position: relative; }
.etape { border-radius: var(--r-xl); border: 1px solid var(--trait); background: var(--surface); padding: 30px; display: grid; gap: 12px; align-content: start; }
.etape::before { counter-increment: etape; content: "0" counter(etape); font: 800 15px/1 var(--font-mono); color: var(--accent-texte); }
.etape p { color: var(--encre-2); font-size: 15.5px; }
@media (max-width: 860px) { .etapes { grid-template-columns: 1fr; } }

/* ============================ Tarif + demande ======================= */
.tarif-grille { display: grid; grid-template-columns: 1fr 1.05fr; gap: 20px; align-items: stretch; }
.carte-prix { position: relative; background: #0a1230; color: #eef2ff; border-radius: var(--r-xl); padding: clamp(28px, 4vw, 44px); display: flex; flex-direction: column; gap: 22px; overflow: hidden; }
:root[data-theme="dark"] .carte-prix { background: #101a44; }
.carte-prix::after { content: ""; position: absolute; right: -120px; top: -120px; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(closest-side, rgb(33 80 245 / 55%), transparent); pointer-events: none; }
.carte-prix > * { position: relative; z-index: 1; }
.carte-prix h3 { color: #fff; font-size: 1.4rem; display: flex; align-items: center; gap: 12px; }
.carte-prix h3 span { font: 800 11.5px/1 var(--font-sans); letter-spacing: .05em; text-transform: uppercase; padding: 6px 10px; border-radius: var(--r-pill); background: var(--lagon); color: #0a1230; }
.prix-a-partir { font-size: 14px; color: #a9b3dd; }
.prix-montant { font: 800 clamp(3.4rem, 8vw, 5rem)/1 var(--font-display); letter-spacing: -0.05em; color: #fff; }
.prix-montant small { font: 600 16px/1 var(--font-sans); letter-spacing: 0; color: #a9b3dd; margin-left: 8px; }
.carte-prix ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.carte-prix li { display: flex; gap: 11px; font-size: 15px; }
.carte-prix li svg { flex: none; width: 20px; height: 20px; color: var(--lagon); margin-top: 2px; }
.garanties { margin-top: auto; padding-top: 22px; border-top: 1px solid rgb(255 255 255 / 12%); display: grid; gap: 14px; }
.garanties div { display: flex; gap: 12px; align-items: center; font-size: 14.5px; }
.garanties .ic { width: 36px; height: 36px; flex: none; border-radius: 50%; display: grid; place-items: center; background: rgb(255 255 255 / 8%); color: #b9c8ff; }
.garanties svg { width: 18px; height: 18px; }
.demande { background: var(--surface); border: 1px solid var(--trait); border-radius: var(--r-xl); padding: clamp(24px, 4vw, 40px); display: grid; gap: 18px; align-content: start; }
.demande h3 { font-size: 1.4rem; }
.demande .aide { color: var(--encre-2); margin-top: 4px; }
.champ { display: grid; gap: 8px; }
.champ > span, .champ legend { font-size: 14px; font-weight: 700; color: var(--encre); padding: 0; }
.champ legend { margin-bottom: 8px; }
fieldset.champ { border: 0; margin: 0; padding: 0; min-width: 0; }
.champ input { width: 100%; font: 500 16px/1.4 var(--font-sans); color: var(--encre); background: var(--sol); border: 1.5px solid var(--trait-2); border-radius: var(--r-md); padding: 13px 15px; transition: border-color var(--vite), box-shadow var(--vite), background var(--vite); }
.champ input::placeholder { color: var(--encre-3); font-weight: 400; }
.champ input:focus { outline: none; border-color: var(--accent); background: var(--surface); box-shadow: 0 0 0 4px var(--accent-sol); }
.champ input[aria-invalid="true"] { border-color: var(--alerte); }
.deux-champs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 520px) { .deux-champs { grid-template-columns: 1fr; } }
.compteur { justify-self: start; display: inline-flex; align-items: center; gap: 4px; background: var(--sol); border: 1.5px solid var(--trait-2); border-radius: var(--r-pill); padding: 4px; }
.compteur button { width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--surface); cursor: pointer; font-size: 20px; line-height: 1; box-shadow: var(--ombre-1); transition: transform var(--vite) var(--courbe), background var(--vite); }
:root[data-theme="dark"] .compteur button { background: var(--surface-2); }
.compteur button:hover { background: var(--accent-sol); }
.compteur button:active { transform: scale(.9); }
.compteur button:disabled { opacity: .35; cursor: not-allowed; }
.compteur output { min-width: 58px; text-align: center; font: 800 21px/1 var(--font-display); display: inline-block; }
.compteur output.bond { animation: bond .3s var(--courbe); }
@keyframes bond { 50% { transform: scale(1.3); color: var(--accent); } }
.choix { display: flex; flex-wrap: wrap; gap: 8px; }
.choix label { position: relative; cursor: pointer; }
.choix input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choix span { display: inline-flex; align-items: center; padding: 10px 16px; border-radius: var(--r-pill); border: 1.5px solid var(--trait-2); font-size: 15px; font-weight: 600; color: var(--encre-2); transition: border-color var(--vite), background var(--vite), color var(--vite), gap var(--vite); gap: 0; }
.choix input:checked + span { border-color: var(--accent); background: var(--accent-sol); color: var(--accent-texte); gap: 8px; }
.choix input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.choix span svg { width: 0; height: 16px; transform: scale(0); transition: transform var(--vite) var(--courbe), width var(--vite); }
.choix input:checked + span svg { transform: scale(1); width: 16px; }
.resume { font-size: 14px; color: var(--encre-2); background: var(--surface-2); border-radius: var(--r-md); padding: 12px 14px; }
.resume strong { color: var(--encre); }
@media (max-width: 880px) { .tarif-grille { grid-template-columns: 1fr; } }

/* ============================ FAQ =================================== */
.faq-grille { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.faq-grille .tete { position: sticky; top: 110px; margin-bottom: 0; }
.faq { display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--trait); border-radius: var(--r-md); transition: border-color var(--moyen), box-shadow var(--moyen); }
.faq details[open] { border-color: var(--trait-2); box-shadow: var(--ombre-1); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; font: 700 17px/1.35 var(--font-sans); color: var(--encre); border-radius: var(--r-md); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus { position: relative; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--surface-2); transition: background var(--moyen), transform var(--moyen) var(--courbe); }
.faq summary .plus::before, .faq summary .plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; border-radius: 2px; background: var(--encre); transition: transform var(--moyen) var(--courbe), background var(--moyen); }
.faq summary .plus::after { transform: rotate(90deg); }
.faq summary:hover .plus { background: var(--accent-sol); }
.faq details[open] summary .plus { background: var(--accent); transform: rotate(180deg); }
.faq details[open] summary .plus::before, .faq details[open] summary .plus::after { background: var(--sur-accent); }
.faq details[open] summary .plus::after { transform: rotate(0); }
.faq .corps { overflow: hidden; }
.faq .reponse { padding: 0 22px 22px; color: var(--encre-2); display: grid; gap: 10px; }
.faq .cause { justify-self: start; }
@media (max-width: 880px) { .faq-grille { grid-template-columns: 1fr; } .faq-grille .tete { position: static; } }

/* ============================ Appel final =========================== */
.appel-final { padding: clamp(64px, 9vw, 112px) 0; }
.appel-boite { position: relative; overflow: hidden; background: var(--accent); color: #fff; border-radius: 36px; padding: clamp(36px, 6vw, 80px); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(28px, 4vw, 56px); align-items: center; }
.appel-boite::before { content: ""; position: absolute; right: -10%; top: -60%; width: 60%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgb(255 255 255 / 18%), transparent); pointer-events: none; }
:root[data-theme="dark"] .appel-boite { background: #1a3fd0; }
.appel-boite h2 { color: #fff; font-size: clamp(1.8rem, 3.6vw, 3rem); line-height: 1.05; letter-spacing: -0.04em; font-weight: 800; text-wrap: balance; }
.appel-boite p { color: #dfe6ff; margin-top: 16px; font-size: 18px; }
.appel-boite > div { position: relative; z-index: 1; }
.appel-boite .actes { display: grid; gap: 12px; justify-content: stretch; }
.appel-boite .bouton.creux { color: #fff; border-color: rgb(255 255 255 / 40%); }
.appel-boite .bouton.creux:hover { border-color: #fff; }
@media (max-width: 960px) { .appel-boite { grid-template-columns: 1fr; } .appel-boite .actes { justify-content: start; grid-template-columns: repeat(2, max-content); } }
@media (max-width: 520px) { .appel-boite .actes { grid-template-columns: 1fr; } }

/* ============================ Pied ================================== */
footer.site { border-top: 1px solid var(--trait); padding: 56px 0 44px; font-size: 14.5px; }
.pied { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.pied p { color: var(--encre-3); max-width: 34ch; margin-top: 14px; }
.pied h4 { margin: 0 0 12px; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--encre-3); }
.pied ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pied a { color: var(--encre-2); text-decoration: none; }
.pied a:hover { color: var(--encre); text-decoration: underline; }
.sous-pied { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--trait); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; color: var(--encre-3); font-size: 13.5px; }
@media (max-width: 760px) { .pied { grid-template-columns: 1fr 1fr; } .pied > :first-child { grid-column: 1 / -1; } }

/* ============================ Barre mobile + toast ================== */
.barre-mobile { display: none; }
@media (max-width: 720px) {
  .barre-mobile { display: flex; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60; align-items: center; justify-content: space-between; gap: 12px; background: var(--surface); border: 1px solid var(--trait); border-radius: var(--r-pill); padding: 8px 8px 8px 18px; box-shadow: var(--ombre-2); transform: translateY(140%); transition: transform var(--moyen) var(--courbe); }
  .barre-mobile.visible { transform: none; }
  .barre-mobile span { font-size: 14px; color: var(--encre-2); line-height: 1.2; }
  .barre-mobile strong { color: var(--encre); display: block; }
  body { padding-bottom: 84px; }
}
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 80; display: flex; align-items: center; gap: 12px; width: max-content; max-width: calc(100% - 32px); background: #0a1230; color: #eef2ff; border-radius: var(--r-lg); padding: 12px 20px 12px 12px; box-shadow: var(--ombre-2); font-size: 15px; line-height: 1.4; opacity: 0; transform: translate(-50%, 20px) scale(.96); pointer-events: none; transition: opacity var(--moyen) var(--courbe), transform var(--moyen) var(--courbe); }
.toast.visible { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast .rond { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--lagon); color: #0a1230; flex: none; }
.toast .rond svg { width: 18px; height: 18px; }
.toast a { color: #b9c8ff; }
@media (max-width: 720px) { .toast { bottom: 92px; } }

/* ============================ Mouvement réduit ====================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js .revele { opacity: 1; transform: none; }
}


/* L'ouverture et l'appel final suivent la meme regle que les sections. */
.ouverture, .appel-final { scroll-snap-align: start; }

/*
 * La bande des metiers ne s'accroche pas.
 *
 * Elle ne fait que deux cents pixels et defile toute seule : s'y arreter
 * n'aurait aucun sens, et l'accrochage la ferait passer pour une section.
 */
.metiers { scroll-snap-align: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-snap-type: none; }
}


/* =====================================================================
 * Faire tenir une section dans un ecran
 *
 * Les visuels sont plafonnes sur la hauteur de la fenetre, pas sur une
 * valeur fixe. Une capture qui deborde de cent pixels sur un portable en
 * deborderait de trois cents sur un ecran plus court : seule une mesure
 * relative a la fenetre s'adapte a la machine du visiteur.
 *
 * On plafonne la hauteur et on laisse la largeur suivre : l'image garde
 * ses proportions et se recadre jamais. Ce qu'on perd, c'est de la taille,
 * pas du contenu.
 * ===================================================================== */

/* Ce que le titre, le chapeau, les boutons et les preuves occupent
   au-dessus de la maquette : c'est ce qu'on retranche a la fenetre. */
/*
 * La maquette, en grand.
 *
 * Seule sur son ecran, elle n'a plus a partager la hauteur avec le titre :
 * on ne lui retranche que l'air de la section. C'est ce qui fait la
 * difference entre une capture qu'on lit et une vignette.
 */
.apercu .fenetre img { max-height: calc(100svh - 190px); width: auto; margin-inline: auto; }
.apercu .scene { margin-top: 0; }
/* Le telephone et le sceau sont poses en absolu sur la fenetre : la scene
   doit rester leur repere, et ne rien rogner. */
.apercu { overflow: clip; }
.visite-ecran img,
.visite img { max-height: calc(100svh - 530px); width: auto; margin-inline: auto; }

/* --- Les deux grilles de vignettes ---------------------------------- */
/*
 * Une seule rangee chacune. En six colonnes, sept vignettes en font trois,
 * et la troisieme n'est jamais visible en meme temps que la premiere.
 */
.bento-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bento-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.bento-3 > .tuile, .bento-4 > .tuile { grid-column: auto; }

@media (max-width: 1080px) {
  .bento-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .bento-3, .bento-4 { grid-template-columns: minmax(0, 1fr); }
}


/* Le dernier centimetre.
   Trois sections depassaient encore d'une dizaine a une centaine de pixels :
   c'est le rembourrage des cartes et l'interligne des listes qui le portent,
   jamais le texte lui-meme. */
.tuile { padding: clamp(18px, 2.2vw, 24px); gap: 10px; }
.tuile > p { font-size: 14.5px; }
.carte-prix, .demande { padding: clamp(20px, 2.4vw, 28px); }
.carte-prix ul { gap: 7px; }
.carte-prix li { font-size: 14.5px; }
.compare { gap: 14px; }
.compare-carte { padding: clamp(18px, 2.2vw, 26px); }
.deux-col { gap: clamp(20px, 3vw, 44px); }


/* Les deux dernieres, qui n'ont pas de visuel a retrecir. */
.tarif-grille { gap: clamp(14px, 1.8vw, 22px); }
.compare { gap: 12px; }

/* =====================================================================
 * Les ecrans courts
 *
 * Un portable de 1366x768 n'offre que 696 px sous le bandeau — cent
 * trente de moins qu'un ecran de bureau. Les sections sans visuel n'ont
 * rien a retrecir proportionnellement : c'est la seule reponse possible.
 *
 * Le reglage se fait sur la HAUTEUR de la fenetre, jamais sur sa largeur.
 * Un ecran large et court existe — un portable branche sur un projecteur,
 * une fenetre a demi repliee — et c'est justement celui qui souffre le
 * plus. Le regler sur la largeur ne l'aurait jamais atteint.
 * ===================================================================== */
@media (max-height: 900px) {
  .section { padding: clamp(24px, 2.4vw, 36px) 0; }
  .titre-2 { font-size: clamp(1.4rem, 2.6vw, 2rem); }
  .chapeau { font-size: 1rem; line-height: 1.5; }
  .tuile { padding: 16px; gap: 8px; }
  .tuile h3 { font-size: 1.05rem; }
  .tuile > p { font-size: 13.5px; line-height: 1.45; }
  .compare-carte { padding: 16px; }
  .carte-prix, .demande { padding: 18px; }
  .deux-col { gap: clamp(16px, 2vw, 28px); }
}


/* --- Les deux dernieres sections trop hautes ------------------------ */
/*
 * Le prix a 80 px de haut et la carte 44 px de rembourrage : a eux deux,
 * ils portaient l'essentiel des cinquante pixels qui depassaient. Le
 * nombre reste le plus gros element de la section — il n'a pas besoin
 * d'etre le plus gros de la page.
 */
.carte-prix { gap: 16px; }
.prix-montant { font-size: clamp(2.8rem, 5.6vw, 3.8rem); }
.tarif-grille .champ { margin-bottom: 0; }
.compare { gap: 10px; }

@media (max-height: 900px) {
  .carte-prix { gap: 12px; }
  .prix-montant { font-size: clamp(2.4rem, 4.4vw, 3rem); }
  .carte-prix ul { gap: 8px; }
  .carte-prix li { font-size: 14px; }
  .surtitre { font-size: 12px; }
}


/* =====================================================================
 * Les ecrans vraiment courts
 *
 * Sous 820 px, il ne reste plus de rembourrage a prendre : c'est la taille
 * du texte et celle des schemas qu'il faut reduire. On descend d'un cran,
 * pas de deux — une page qu'on ne lit plus ne gagne rien a tenir dans un
 * ecran.
 * ===================================================================== */
@media (max-height: 820px) {
  .section { padding: clamp(18px, 1.8vw, 26px) 0; }
  .titre-2 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); }
  .chapeau { font-size: 15px; line-height: 1.45; }
  .tuile { padding: 13px; }
  .tuile h3 { font-size: 1rem; }
  .tuile > p { font-size: 13px; }
  .compare-carte { padding: 13px; }
  .compare-carte svg { max-height: 120px; }
  .carte-prix, .demande { padding: 14px; }
  .carte-prix li, .garanties { font-size: 13px; }
  .deux-col { gap: 16px; }
  .tarif-grille { gap: 12px; }
  /* Les deux dernieres, mesurees : le schema de comparaison et le prix. */
  .compare-carte svg { max-height: 96px; }
  .compare-carte li, .compare-carte p { font-size: 13px; }
  .prix-montant { font-size: 2.2rem; }
  .demande input, .demande .champ { min-height: 0; }
}


/* L'ouverture n'a plus de maquette : elle respire. */
.ouverture { display: flex; align-items: center; min-height: calc(100svh - 72px); }
.ouverture > .wrap { width: 100%; }


/* =====================================================================
 * L'ouverture, seule sur son ecran
 *
 * Le titre avait ete reduit pour laisser de la place a la maquette. Elle a
 * maintenant son propre ecran : il peut reprendre sa taille, et c'est lui
 * qui porte la page.
 * ===================================================================== */
.ouverture .titre-1 { font-size: clamp(2.6rem, 6vw, 5.2rem); }
.ouverture .chapeau { font-size: clamp(1.1rem, 1.5vw, 1.35rem); }
.ouverture-texte { gap: clamp(18px, 2vw, 30px); }

/*
 * Le sceau se pose sur le bord de la fenetre, pas dessus.
 *
 * A pleine taille, la maquette occupe toute la largeur : le sceau tombait
 * sur le rail et masquait deux entrees du menu. Il debordera desormais vers
 * l'exterieur, ce qui etait l'intention.
 */
.apercu .puce-chiffre { left: -3.5%; bottom: 8%; }

@media (max-height: 820px) {
  .ouverture .titre-1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
  .ouverture .chapeau { font-size: 1.05rem; }
}


/* Le chapeau sur trois lignes, pas quatre : « nous. » tout seul sur la
   derniere ligne est une veuve, et l'oeil s'y arrete pour rien. */
.ouverture .chapeau { max-width: 47rem; }
