/* InterVa · style partagé par les pages du dossier site/
   Mêmes couleurs, verre, halos et animations que le site principal (leatheen-site/css/style.css et welcome.css). */
@font-face {
  font-family: "Familjen Grotesk";
  src: url("fonts/familjen-grotesk.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #054B32;
  --jade: #0F7B53;
  --emeraude: #19A671;
  --sauge: #8BBB92;
  --menthe: #15D8B3;
  --texte: #F4F6FF;
  --texte-2: rgba(244, 246, 255, 0.78);
  --texte-3: rgba(244, 246, 255, 0.6);
  --verre: rgba(255, 255, 255, 0.065);
  --trait: rgba(255, 255, 255, 0.13);
  --champ: rgba(9, 35, 40, 0.55);
  --danger: #FF6B7A;
  --ombre: 0 18px 50px rgba(2, 20, 14, 0.45);
  --courbe: cubic-bezier(0.2, 0.8, 0.2, 1);
  --police: "Familjen Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --largeur: min(1180px, calc(100% - 32px));
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; overflow-x: clip;
  font: 400 1.0625rem/1.6 var(--police);
  color: var(--texte);
  background: var(--bg);
}
/* Fond immobile sur un calque à part : même raison que sur le site principal (Safari sur Mac) */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(1100px 700px at 0% 0%, rgba(25, 166, 113, 0.45), transparent 60%),
    radial-gradient(800px 600px at 95% 30%, rgba(9, 35, 40, 0.6), transparent 60%),
    radial-gradient(800px 600px at 10% 85%, rgba(15, 123, 83, 0.35), transparent 60%),
    radial-gradient(900px 700px at 100% 100%, rgba(9, 35, 40, 0.5), transparent 60%);
}
h1, h2 { margin: 0; line-height: 1.08; font-weight: 700; letter-spacing: -0.03em; }
p { margin: 0; }
a { color: var(--menthe); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--menthe); outline-offset: 2px; }

.evitement { position: absolute; left: -9999px; top: 8px; padding: 10px 16px; border-radius: 12px; background: #fff; color: var(--bg); z-index: 40; }
.evitement:focus { left: 8px; }

/* Halos qui dérivent lentement derrière la page */
.halos { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.halos span {
  position: absolute; width: 46vmax; height: 46vmax; border-radius: 50%;
  filter: blur(80px); opacity: 0.55; animation: derive 22s ease-in-out infinite alternate;
}
.halos span:nth-child(1) { background: var(--emeraude); top: -18vmax; left: -12vmax; }
.halos span:nth-child(2) { background: var(--jade); bottom: -20vmax; right: -14vmax; animation-delay: -8s; }
.halos span:nth-child(3) { background: var(--sauge); width: 26vmax; height: 26vmax; top: 40%; left: 55%; opacity: 0.22; animation-delay: -15s; }
@keyframes derive { to { transform: translate(8vmax, 6vmax) scale(1.15); } }

/* Verre */
.entete, .carte, .etiquette, .demo, .cookies {
  background: var(--verre);
  border: 1px solid var(--trait);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  backdrop-filter: blur(24px) saturate(150%);
  box-shadow: var(--ombre), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* Bouton */
.bouton {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 12px 26px;
  border: 1px solid transparent; border-radius: 999px;
  background: linear-gradient(135deg, var(--menthe), var(--sauge)); color: var(--bg);
  box-shadow: 0 8px 22px rgba(21, 216, 179, 0.3);
  font: 700 1rem/1.2 var(--police); text-decoration: none; cursor: pointer;
  transition: transform 0.12s, filter 0.15s, opacity 0.15s;
}
.bouton:hover { filter: brightness(1.08); }
.bouton:active { transform: scale(0.97); }
.bouton:disabled { opacity: 0.45; cursor: default; transform: none; }

/* Barre du haut */
.entete {
  position: sticky; top: 12px; z-index: 30;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  width: var(--largeur); margin: 12px auto 0; padding: 8px 8px 8px 16px; border-radius: 22px;
}
.marque { display: inline-flex; align-items: center; gap: 10px; min-height: 42px; color: var(--texte); font-weight: 700; font-size: 1.25rem; text-decoration: none; }
.marque img { display: block; }
.entete-lien {
  display: inline-flex; align-items: center; min-height: 42px; padding: 8px 16px; border-radius: 999px;
  border: 1px solid var(--trait); background: rgba(255, 255, 255, 0.1);
  color: var(--texte); font-weight: 600; font-size: 0.9375rem; text-decoration: none;
  transition: background 0.15s;
}
.entete-lien:hover { background: rgba(255, 255, 255, 0.15); }

/* Haut de page */
.hero {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 48px; align-items: center;
  width: var(--largeur); margin: 0 auto; padding: 56px 0 72px;
}
.surtitre { color: var(--sauge); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.8125rem; }
.hero h1 { font-size: clamp(2.125rem, 4.6vw, 3.5rem); margin: 14px 0 20px; animation: montee 0.8s 0.45s var(--courbe) both; }
.degrade {
  background: linear-gradient(100deg, #fff 0%, var(--sauge) 45%, var(--menthe) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-texte > p:not(.surtitre) { margin-bottom: 28px; max-width: 34em; font-size: 1.125rem; color: var(--texte-2); }
.hero-texte > p:not(.surtitre), .hero .bouton { animation: montee 0.8s 0.75s var(--courbe) both; }
@keyframes montee { from { transform: translateY(28px); } to { transform: none; } }
@keyframes panneau { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* Étiquette d'équipement qui flotte, comme la fiche du site principal */
.etiquette {
  margin: 0; justify-self: center; width: min(100%, 340px); padding: 22px; border-radius: 26px;
  animation: entree 1s 0.8s var(--courbe) both, flotte 7s 1.8s ease-in-out infinite;
}
@keyframes entree { from { opacity: 0; transform: perspective(900px) rotateY(-18deg) translateY(30px); } to { opacity: 1; transform: none; } }
@keyframes flotte { 50% { transform: translateY(-10px); } }
.plaque { position: relative; padding: 26px; overflow: hidden; background: #fff; border-radius: 16px; }
.qr { display: block; width: 100%; height: auto; fill: #06382A; }
.vis { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: #C9D1CB; box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.3); }
.vis-1 { top: 10px; left: 10px; }
.vis-2 { top: 10px; right: 10px; }
.vis-3 { bottom: 10px; left: 10px; }
.vis-4 { bottom: 10px; right: 10px; }
.balayage {
  position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: var(--jade); box-shadow: 0 0 14px 3px rgba(21, 216, 179, 0.6);
  opacity: 0; animation: balayage 1.5s ease-in-out 1.6s 1;
}
@keyframes balayage {
  0%   { top: 8%; opacity: 0; }
  12%  { opacity: 1; }
  88%  { opacity: 1; }
  100% { top: 92%; opacity: 0; }
}
.fiche { list-style: none; margin: 14px 0 0; padding: 0; }
.fiche li { padding: 9px 2px; border-top: 1px solid var(--trait); font-weight: 600; animation: apparition 0.4s ease-out both; }
.fiche li:nth-child(1) { animation-delay: 3s; }
.fiche li:nth-child(2) { animation-delay: 3.15s; }
.fiche li:nth-child(3) { animation-delay: 3.3s; }
@keyframes apparition { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Bénéfices */
.benefices { width: var(--largeur); margin: 0 auto; padding: 56px 0; }
.benefices h2 { font-size: clamp(1.625rem, 3.6vw, 2.5rem); margin-bottom: 28px; }
.benefices dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; }
.carte { padding: 24px; border-radius: 22px; }
.benefices dt { font-size: 1.1875rem; font-weight: 700; line-height: 1.3; margin-bottom: 8px; }
.benefices dd { margin: 0; color: var(--texte-2); }

/* Formulaire */
.demo {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start;
  width: var(--largeur); margin: 56px auto 40px; padding: clamp(28px, 4vw, 48px); border-radius: 30px;
  scroll-margin-top: 84px;
}
.demo h2 { font-size: clamp(1.625rem, 3.2vw, 2.25rem); margin-bottom: 16px; }
.demo-texte p { color: var(--texte-2); max-width: 30em; }
.demo-texte .note { margin-top: 14px; font-size: 0.9375rem; color: var(--texte-3); }
.formulaire { display: grid; gap: 18px; width: 100%; }
.champ { display: grid; gap: 6px; }
.champ label { font-size: 0.9375rem; font-weight: 600; color: var(--texte-2); }
.champ input, .champ select {
  width: 100%; min-height: 48px; padding: 10px 12px;
  border: 1px solid var(--trait); border-radius: 12px;
  background: var(--champ); color: var(--texte);
  font: 400 1rem/1.3 var(--police); /* 16 px : l'iPhone ne zoome pas sur le champ */
  transition: border-color 0.15s, box-shadow 0.15s;
}
.champ input:focus, .champ select:focus { outline: none; border-color: var(--sauge); box-shadow: 0 0 0 3px rgba(139, 187, 146, 0.25); }
.champ select option { color: #092328; background: #fff; }
.champ input[aria-invalid="true"], .champ select[aria-invalid="true"] { border-color: var(--danger); box-shadow: 0 0 0 2px rgba(255, 107, 122, 0.4); }
.accord { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 10px; align-items: start; font-size: 0.9375rem; color: var(--texte-2); }
.accord input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--menthe); }
.piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.erreur { padding: 12px 14px; border-radius: 12px; background: rgba(255, 107, 122, 0.16); border: 1px solid rgba(255, 107, 122, 0.5); color: #FFD3D8; font-weight: 600; }
.erreur a { color: #fff; }

/* Pages de texte */
.page { width: min(760px, calc(100% - 32px)); margin: 0 auto; padding: 56px 0 72px; animation: panneau 0.5s var(--courbe) both; }
.page h1 { font-size: clamp(1.875rem, 4vw, 2.5rem); margin-bottom: 18px; }
.page h2 { font-size: 1.25rem; letter-spacing: -0.015em; margin: 34px 0 8px; }
.page p { color: var(--texte-2); }
.page p + p { margin-top: 12px; }
.page .note { color: var(--texte-3); font-size: 0.9375rem; }
.page-merci { min-height: 62vh; }
.completer { padding: 1px 5px; border-radius: 4px; background: #FFE36E; color: #4A2F00; font-weight: 700; }

/* Pied de page */
.pied {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px;
  width: var(--largeur); margin: 0 auto;
  padding: 24px 0 max(32px, env(safe-area-inset-bottom));
  font-size: 0.875rem; color: var(--texte-3);
}
.pied ul { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0; padding: 0; list-style: none; }
.lien { padding: 0; border: 0; background: none; color: var(--menthe); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
[hidden] { display: none !important; }

/* Bandeau cookies */
.cookies {
  position: fixed; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 35;
  max-width: 640px; margin: 0 auto; padding: 16px; border-radius: 22px;
  background: rgba(5, 60, 42, 0.92);
  font-size: 0.9375rem; color: var(--texte-2);
}
.cookies-actions { display: flex; gap: 10px; margin-top: 12px; }
.cookies-actions button {
  flex: 1; min-height: 46px; padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--trait); background: rgba(255, 255, 255, 0.1); color: var(--texte);
  font: 700 1rem/1.2 var(--police); cursor: pointer;
}
.cookies-actions button:hover { background: rgba(255, 255, 255, 0.15); }

/* Apparition au défilement (classe .in posée par js/animations.js) */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity 0.7s, transform 0.7s var(--courbe); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
/* Carte déjà apparue : le survol réagit tout de suite */
.carte.fini { transition: transform 0.3s, border-color 0.3s; transition-delay: 0s; }
@media (hover: hover) { .carte.fini:hover { transform: translateY(-4px); border-color: rgba(139, 187, 146, 0.5); } }

/* Démarrage : le logo recule, puis grossit très vite ; la page apparaît à travers lui. */
.intro {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; pointer-events: none;
  background: var(--bg); animation: intro-fond 1.1s cubic-bezier(0.7, 0, 0.84, 0) forwards;
}
.intro img { width: 96px; height: auto; animation: intro-logo 1.1s forwards; }
@keyframes intro-logo {
  0% { transform: scale(1); animation-timing-function: ease-out; }
  35% { transform: scale(0.82); animation-timing-function: cubic-bezier(0.7, 0, 0.84, 0); }
  100% { transform: scale(40); opacity: 0; }
}
@keyframes intro-fond { 0%, 45% { opacity: 1; } 100% { opacity: 0; } }
/* Intro déjà vue dans cet onglet : pas d'attente. */
.intro-vue .intro { display: none; }
.intro-vue .hero h1, .intro-vue .hero-texte > p:not(.surtitre), .intro-vue .hero .bouton { animation-delay: 0s; }
.intro-vue .etiquette { animation-delay: 0.1s, 1.1s; }
.intro-vue .balayage { animation-delay: 0.8s; }
.intro-vue .fiche li:nth-child(1) { animation-delay: 2.2s; }
.intro-vue .fiche li:nth-child(2) { animation-delay: 2.35s; }
.intro-vue .fiche li:nth-child(3) { animation-delay: 2.5s; }

@media (max-width: 860px) {
  .hero, .demo { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .hero { padding: 40px 0 48px; }
  .etiquette { width: min(100%, 280px); }
  .benefices { padding: 32px 0; }
  .benefices dl { grid-template-columns: minmax(0, 1fr); }
  .demo { margin-top: 32px; }
}

/* Avec une souris : halos immobiles, comme sur le site principal (flou recalculé à chaque image par Safari) */
@media (hover: hover) and (pointer: fine) {
  .halos span { animation: none; }
}

@media (prefers-reduced-motion: reduce) {
  .intro, .balayage { display: none; }
  .halos span, .hero h1, .hero-texte > p:not(.surtitre), .hero .bouton, .etiquette, .fiche li, .page { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .carte.fini, .bouton, .entete-lien, .champ input, .champ select { transition: none; }
  .carte.fini:hover { transform: none; }
  .bouton:active { transform: none; }
}
