/* ============================================================
   SILLAGE — Design system du site corporate
   Charte de référence : sillage/go-to-market/03-branding/identite-marque.md
   Règle 60/30/10 · Cormorant Garamond + Jost · ligne de sillage
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  /* Palette (jamais de blanc/noir purs) */
  --encre: #1b2a41;        /* couleur de la maison : texte, blocs d'autorité */
  --encre-700: #243753;    /* fonds encre légèrement plus clairs */
  --ivoire: #f7f3ec;       /* fond, papier, respiration */
  --ivoire-pur: #fbf9f4;   /* surfaces légèrement surélevées sur ivoire */
  --cuivre: #b0773a;       /* accent rare : filets, mots-clés, soulignés */
  --cuivre-clair: #c08f56;
  --gris-encre: #5b6472;   /* secondaire : appuis, légendes, métadonnées */
  --gris-trait: #ddd5c7;   /* filets discrets sur ivoire */
  --gris-trait-encre: #34445f; /* filets sur fond encre */

  /* Typographie */
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Jost", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Mesures */
  --maxw: 1160px;
  --maxw-text: 65ch;
  --gutter: clamp(20px, 5vw, 56px);
  --section-y: clamp(64px, 11vw, 144px);

  /* Transitions (ease-out exponentiel, 150-320ms) */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --t: 0.32s var(--ease);

  /* Relief — ombres teintées encre (pas de noir pur), douces et directionnelles */
  --shadow-sm: 0 1px 2px rgba(27,42,65,.05), 0 4px 10px -4px rgba(27,42,65,.08);
  --shadow-md: 0 2px 4px rgba(27,42,65,.06), 0 16px 36px -12px rgba(27,42,65,.16);
  --shadow-lg: 0 4px 8px rgba(27,42,65,.07), 0 40px 70px -24px rgba(27,42,65,.28);
  --shadow-cuivre: 0 18px 50px -18px rgba(176,119,58,.45);
}

/* ---------- Reset léger ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  /* Profondeur : léger dégradé + halo, plutôt qu'un ivoire plat */
  background:
    radial-gradient(1200px 700px at 75% -5%, #fdfcf8 0%, rgba(253,252,248,0) 60%),
    radial-gradient(1000px 800px at 0% 100%, #f1ece1 0%, rgba(241,236,225,0) 55%),
    var(--ivoire);
  background-attachment: fixed;
  color: var(--encre);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--cuivre); color: var(--ivoire); }

/* ---------- Typographie ---------- */
h1, h2, h3, h4, .display {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.15;
  margin: 0;
  letter-spacing: 0;
}
h1, .h1 { font-size: clamp(2.6rem, 6.4vw, 4.1rem); line-height: 1.08; }
h2, .h2 { font-size: clamp(2rem, 4.4vw, 2.7rem); line-height: 1.16; }
h3, .h3 { font-size: clamp(1.35rem, 2.4vw, 1.6rem); font-weight: 600; line-height: 1.3; }
p { margin: 0 0 1.1em; max-width: var(--maxw-text); }

.kicker {
  font-family: var(--sans);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 0.78rem;
  color: var(--cuivre);
  margin: 0 0 1.4em;
}
.kicker--encre { color: var(--cuivre-clair); }

.lead {
  font-size: clamp(1.15rem, 1.8vw, 1.32rem);
  color: var(--gris-encre);
  line-height: 1.6;
  max-width: 58ch;
}

.mention { font-size: 0.85rem; color: var(--gris-encre); line-height: 1.5; }

/* Chiffres-clés en Cormorant (do/don't : chiffres sobres en serif) */
.chiffre { font-family: var(--serif); font-weight: 600; font-variant-numeric: lining-nums; }

em, .italic { font-style: italic; }
strong { font-weight: 500; }

/* ---------- Layout ---------- */
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: 820px; }
.section { padding-block: var(--section-y); }
.section--encre { background: var(--encre); color: var(--ivoire); }
.section--encre .lead { color: #bcc4d2; }
.section--encre .kicker { color: var(--cuivre-clair); }
.section--ivoire-pur { background: var(--ivoire-pur); }

.stack > * + * { margin-top: 1.1em; }
.measure { max-width: var(--maxw-text); }
.center { text-align: center; margin-inline: auto; }
.center p, .center .lead { margin-inline: auto; }

/* ---------- La ligne de sillage (séparateur signature) ---------- */
.sillage-line { width: 220px; height: 24px; color: var(--cuivre); margin: 0; }
.sillage-line--center { margin-inline: auto; }
.sillage-line svg { width: 100%; height: 100%; overflow: visible; }

/* ---------- Boutons (encre marine ou cuivre, sobres, jamais orange) ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.6em;
  font-family: var(--sans); font-weight: 500; font-size: 1rem;
  letter-spacing: 0.01em;
  padding: 0.95em 1.7em;
  border: 1px solid var(--encre);
  background: var(--encre); color: var(--ivoire);
  text-decoration: none; cursor: pointer;
  transition: background var(--t), color var(--t), border-color var(--t), transform 0.15s var(--ease);
}
.btn:hover { background: transparent; color: var(--encre); transform: translateY(-1px); }
.btn:focus-visible { outline: 2px solid var(--cuivre); outline-offset: 3px; }

.btn--ghost { background: transparent; color: var(--encre); }
.btn--ghost:hover { background: var(--encre); color: var(--ivoire); }

.btn--on-encre { background: var(--ivoire); color: var(--encre); border-color: var(--ivoire); }
.btn--on-encre:hover { background: transparent; color: var(--ivoire); }

.btn--cuivre { background: transparent; color: var(--encre); border-color: var(--cuivre); }
.btn--cuivre:hover { background: var(--cuivre); color: var(--ivoire); border-color: var(--cuivre); }

/* Lien souligné cuivre (accent rare) */
.link-cuivre {
  color: inherit; text-decoration: none;
  border-bottom: 1px solid var(--cuivre); padding-bottom: 1px;
  transition: color var(--t);
}
.link-cuivre:hover { color: var(--cuivre); }

/* ---------- Header / navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--ivoire) 88%, transparent);
  backdrop-filter: saturate(1.1) blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t), background var(--t);
}
.site-header.is-scrolled { border-bottom-color: var(--gris-trait); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding-block: 1.1rem; }
.nav__links { display: flex; align-items: center; gap: 2rem; list-style: none; margin: 0; padding: 0; }
.nav__links a {
  font-family: var(--sans); font-size: 0.95rem; text-decoration: none;
  color: var(--encre); position: relative; padding-bottom: 2px;
  transition: color var(--t);
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 1px; width: 0;
  background: var(--cuivre); transition: width var(--t);
}
.nav__links a:hover::after, .nav__links a[aria-current="page"]::after { width: 100%; }
.nav__links a[aria-current="page"] { color: var(--cuivre); }
.nav__cta { display: flex; align-items: center; gap: 1.2rem; }

/* Wordmark */
.wordmark { display: inline-flex; flex-direction: column; align-items: center; text-decoration: none; line-height: 1; }
.wordmark__word {
  font-family: var(--serif); font-weight: 500; letter-spacing: 0.35em;
  font-size: 1.35rem; color: var(--encre); text-indent: 0.35em;
}
.wordmark__line { width: 70%; height: 9px; color: var(--cuivre); margin-top: 3px; }
.wordmark--lg .wordmark__word { font-size: clamp(2.2rem, 6vw, 3.4rem); }
.wordmark--lg .wordmark__baseline {
  font-family: var(--sans); font-weight: 400; text-transform: uppercase;
  letter-spacing: 0.3em; font-size: 0.62rem; color: var(--gris-encre); margin-top: 8px;
}
.section--encre .wordmark__word, .site-footer .wordmark__word { color: var(--ivoire); }
.section--encre .wordmark__baseline, .site-footer .wordmark__baseline { color: #97a1b2; }

/* Menu mobile */
.nav__toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; color: var(--encre); }
.nav__toggle svg { width: 26px; height: 26px; }

@media (max-width: 860px) {
  .nav__links, .nav__cta .btn { display: none; }
  .nav__toggle { display: inline-flex; }
  .nav.is-open .nav__links {
    display: flex; flex-direction: column; align-items: flex-start; gap: 1.4rem;
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--ivoire); border-bottom: 1px solid var(--gris-trait);
    padding: 1.8rem var(--gutter) 2.2rem;
  }
  .nav.is-open .nav__cta .btn { display: inline-flex; }
}

/* ---------- Hero ---------- */
.hero { padding-block: clamp(56px, 9vw, 110px) var(--section-y); }

/* Hero animé : fond WebGL « sillage » + voile de lisibilité */
.hero--fx { position: relative; overflow: hidden; }
.hero--fx #sillage-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; }
.hero--fx::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgba(247,243,236,.84) 0%, rgba(247,243,236,.52) 44%, rgba(247,243,236,0) 82%);
}
.hero--fx .wrap { position: relative; z-index: 2; }

/* Hero 2 colonnes : accroche + vidéo VSL (corrige le hero « ratatiné à gauche ») */
.hero--split { padding-block: clamp(48px, 7vw, 92px) var(--section-y); }
.hero--split .hero__grid {
  display: grid; grid-template-columns: 1.04fr 0.96fr;
  gap: clamp(32px, 5vw, 72px); align-items: center;
}
.hero--split .hero__text { max-width: none; }
.hero--split .hero__text h1 { font-size: clamp(2.4rem, 4.4vw, 3.7rem); }
.hero--split .hero__text .lead { max-width: 46ch; }
@media (max-width: 920px) {
  .hero--split .hero__grid { grid-template-columns: 1fr; gap: clamp(28px, 6vw, 44px); }
}

/* Cadre vidéo VSL — relief assumé */
.vsl {
  position: relative; aspect-ratio: 16 / 10; border-radius: 8px; overflow: hidden;
  border: 1px solid var(--gris-trait);
  background: radial-gradient(120% 120% at 30% 20%, #2a3e5c 0%, var(--encre) 70%);
  box-shadow: var(--shadow-lg);
}
.vsl video, .vsl iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; display: block; }
.vsl__poster {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 1.1rem; cursor: pointer;
  background: radial-gradient(130% 100% at 50% 18%, rgba(176,119,58,.16) 0%, rgba(176,119,58,0) 55%);
}
.vsl__sillage { width: 58%; max-width: 240px; color: var(--cuivre); opacity: .8; }
.vsl__play {
  width: 78px; height: 78px; border-radius: 50%;
  background: rgba(247,243,236,.96); color: var(--encre);
  display: grid; place-items: center; box-shadow: 0 12px 30px -8px rgba(0,0,0,.5);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.vsl__poster:hover .vsl__play { transform: scale(1.07); box-shadow: 0 18px 40px -8px rgba(0,0,0,.6); }
.vsl__play svg { width: 30px; height: 30px; margin-left: 4px; }
.vsl__label {
  font-family: var(--sans); text-transform: uppercase; letter-spacing: 0.22em;
  font-size: 0.72rem; color: #d9cdb8;
}
.vsl__cap { margin-top: 0.9rem; font-size: 0.85rem; color: var(--gris-encre); }

/* Boutons : un peu de relief */
.btn { box-shadow: var(--shadow-sm); }
.btn:hover { box-shadow: var(--shadow-md); }

/* Fil de sillage : glow (effet de sillage persistant) */
.sillage-thread { filter: drop-shadow(0 0 5px rgba(176,119,58,.55)) drop-shadow(0 0 13px rgba(176,119,58,.22)); }
.hero__inner { max-width: 22ch; }
.hero h1 { margin-bottom: 0.5em; }
.hero .lead { margin-bottom: 2em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }

/* ---------- Grilles ---------- */
.grid { display: grid; gap: clamp(24px, 3vw, 40px); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid--3 { grid-template-columns: 1fr; } }
@media (max-width: 720px) { .grid--2 { grid-template-columns: 1fr; } }

/* ---------- Cartes (droites, mates, pas de gros radius ni ombre lourde) ---------- */
.card {
  background: linear-gradient(180deg, #fdfbf6 0%, var(--ivoire-pur) 100%);
  border: 1px solid var(--gris-trait);
  border-radius: 4px;
  padding: clamp(28px, 3vw, 40px);
  box-shadow: var(--shadow-md);
  transition: border-color var(--t), transform 0.22s var(--ease), box-shadow 0.22s var(--ease);
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.card--encre {
  background: linear-gradient(180deg, #2a3e5c 0%, var(--encre-700) 100%);
  border-color: var(--gris-trait-encre);
  box-shadow: 0 30px 60px -22px rgba(0,0,0,.5);
}
.card__num {
  font-family: var(--serif); font-weight: 600; font-size: 1.05rem;
  color: var(--cuivre); display: inline-block; margin-bottom: 1.1rem;
  letter-spacing: 0.04em;
}
.card h3 { margin-bottom: 0.5em; }
.card p:last-child { margin-bottom: 0; }
.card .price { font-family: var(--serif); font-weight: 600; font-size: 1.7rem; color: var(--encre); }
.card--encre .price { color: var(--ivoire); }

/* Carte offre mise en avant (élévation réelle + halo cuivre) */
.card--featured { border-color: var(--cuivre); transform: translateY(-8px); box-shadow: var(--shadow-lg), var(--shadow-cuivre); }
.card--featured:hover { transform: translateY(-13px); }
.card--featured .card__badge {
  display: inline-block; font-family: var(--sans); text-transform: uppercase;
  letter-spacing: 0.2em; font-size: 0.68rem; color: var(--cuivre);
  border: 1px solid var(--cuivre); padding: 4px 10px; margin-bottom: 1.2rem;
}

/* ---------- Liste à coches (filet cuivre discret) ---------- */
.check-list { list-style: none; margin: 0; padding: 0; }
.check-list li { position: relative; padding-left: 1.7em; margin-bottom: 0.7em; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 0.62em;
  width: 0.85em; height: 1px; background: var(--cuivre);
}

/* ---------- Méthode : étapes S.I.L.L.A.G.E. ---------- */
.steps { counter-reset: step; border-top: 1px solid var(--gris-trait); }
.steps__item {
  display: grid; grid-template-columns: auto 1fr; gap: clamp(20px, 4vw, 56px);
  padding-block: clamp(28px, 4vw, 44px); border-bottom: 1px solid var(--gris-trait);
  align-items: baseline;
}
.steps__letter {
  font-family: var(--serif); font-weight: 500; font-size: clamp(2.4rem, 6vw, 3.6rem);
  color: var(--cuivre); line-height: 1; min-width: 1.4ch;
}
.steps__item h3 span { color: var(--gris-encre); font-family: var(--sans); font-weight: 400; font-size: 0.95rem; }

/* ---------- Bandeau citation / récit ---------- */
.quote {
  font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: clamp(1.5rem, 3.4vw, 2.3rem); line-height: 1.35;
  max-width: 24ch;
}
.quote--wide { max-width: 30ch; }

/* ---------- Stats sobres ---------- */
.statline { display: flex; flex-wrap: wrap; gap: clamp(32px, 6vw, 80px); }
.statline__num { font-family: var(--serif); font-weight: 600; font-size: clamp(2.4rem, 5vw, 3.4rem); line-height: 1; color: var(--encre); }
.section--encre .statline__num { color: var(--ivoire); }
.statline__label { font-size: 0.92rem; color: var(--gris-encre); margin-top: 0.5em; max-width: 22ch; }
.section--encre .statline__label { color: #aab2c0; }

/* ---------- Formulaire ---------- */
.field { margin-bottom: 1.3rem; }
.field label { display: block; font-size: 0.9rem; margin-bottom: 0.45rem; color: var(--encre); }
.field .req { color: var(--cuivre); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--encre);
  background: var(--ivoire-pur); border: 1px solid var(--gris-trait);
  padding: 0.8em 0.9em; transition: border-color var(--t), box-shadow var(--t);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--cuivre); box-shadow: 0 0 0 3px color-mix(in srgb, var(--cuivre) 18%, transparent);
}
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #9e3b2f; }
.field__error { color: #9e3b2f; font-size: 0.85rem; margin-top: 0.35rem; min-height: 1em; }
.form-status { margin-top: 1rem; font-size: 0.95rem; }
.form-status.ok { color: var(--cuivre); }
.form-status.err { color: #9e3b2f; }

/* ---------- Footer ---------- */
.site-footer { background: var(--encre); color: #c4ccd9; padding-block: clamp(56px, 8vw, 88px) 2.4rem; }
.site-footer a { color: #c4ccd9; text-decoration: none; transition: color var(--t); }
.site-footer a:hover { color: var(--ivoire); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: clamp(32px, 5vw, 64px); }
.footer__col h4 { font-family: var(--sans); font-weight: 500; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.2em; color: #8c95a6; margin-bottom: 1.2rem; }
.footer__col ul { list-style: none; margin: 0; padding: 0; }
.footer__col li { margin-bottom: 0.7rem; }
.footer__legal { margin-top: clamp(40px, 6vw, 64px); padding-top: 1.8rem; border-top: 1px solid var(--gris-trait-encre); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: 0.82rem; color: #8c95a6; }
@media (max-width: 720px) { .footer__grid { grid-template-columns: 1fr; gap: 36px; } }

/* ---------- Reveal (Motion vanilla) ----------
   Le contenu est visible par défaut. On ne le masque QUE si JS est actif
   (classe .reveal-on posée par motion.js) : aucune page blanche sans JS. */
.reveal-on [data-reveal] { opacity: 0; transform: translateY(18px); will-change: opacity, transform; }

/* ---------- Reduced motion : tout statique, rien ne bouge ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}

/* ---------- Skip link a11y ---------- */
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--encre); color: var(--ivoire); padding: 10px 16px; text-decoration: none;
  transition: top var(--t);
}
.skip-link:focus { top: 12px; }
