/* Authentika — feuille de style du site vitrine.
   Polices auto-hébergées (pas d'appel à Google Fonts : RGPD). Syne réservée aux
   titres (peu lisible en petit corps), IBM Plex Sans pour tout le texte courant. */

@font-face {
  font-family: 'Syne';
  src: url('../fonts/syne-var.woff2') format('woff2');
  font-weight: 600 800;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Sans';
  src: url('../fonts/ibm-plex-sans-var.woff2') format('woff2');
  font-weight: 400 600;
  font-display: swap;
}

:root {
  /* Fond sombre (repris de l'ébauche) */
  --ink: #0E0F12;
  --ink-2: #16181D;
  --ink-3: #1E2127;
  --line: rgba(255, 255, 255, 0.10);
  --text: #F3F1EC;        /* contraste ≈ 17:1 sur --ink */
  --muted: #B9B4A9;       /* ≈ 9:1 */
  /* Or */
  --gold: #D9B86C;        /* ≈ 10:1 sur --ink */
  --gold-2: #F0D79A;
  --gold-deep: #8A6A22;   /* or lisible sur fond clair (≈ 5:1) */
  /* Fond clair */
  --paper: #FAF8F3;
  --paper-2: #F1EDE3;
  --paper-line: #E2DCCD;
  --text-dark: #16171B;   /* ≈ 17:1 sur --paper */
  --muted-dark: #55524B;  /* ≈ 7:1 */

  --radius: 14px;
  --wrap: 1160px;
  --font-title: 'Syne', 'Segoe UI', system-ui, sans-serif;
  --font-text: 'IBM Plex Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-text);
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { margin: 0; line-height: 1.15; }
h1, h2 { font-family: var(--font-title); font-weight: 700; letter-spacing: -0.01em; }
/* Syne s'élargit fortement aux grosses graisses : 700 max et taille plancher
   réduite pour tenir sur un écran de téléphone (390 px) sans déborder. */
h1 { font-size: clamp(2rem, 5vw, 4rem); font-weight: 700; overflow-wrap: anywhere; hyphens: manual; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); max-width: 22ch; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0; }
a { color: inherit; }

.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.gold { color: var(--gold); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--ink); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 12px; }
:focus-visible { outline: 3px solid var(--gold-2); outline-offset: 3px; border-radius: 4px; }

/* ── Boutons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 26px; border-radius: 999px; border: 0;
  background: var(--gold); color: var(--ink);
  font: 600 1rem/1.2 var(--font-text); text-decoration: none; cursor: pointer;
  transition: background .2s, transform .2s;
}
.btn:hover { background: var(--gold-2); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1.5px rgba(243, 241, 236, .45); }
.btn--ghost:hover { background: rgba(255, 255, 255, .08); }
.btn--dark { background: var(--ink); color: var(--text); }
.btn--dark:hover { background: var(--ink-3); }
.btn--small { padding: 9px 18px; font-size: .95rem; }
.btn[disabled] { opacity: .6; cursor: wait; transform: none; }

/* ── En-tête ────────────────────────────────────────────────── */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(14, 15, 18, .88);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: var(--text); }
.brand__icon { width: 34px; height: 34px; flex: none; }
.brand__name { font-family: var(--font-title); font-weight: 700; font-size: 1.55rem; letter-spacing: .01em; line-height: 1; }
.brand--small .brand__icon { width: 26px; height: 26px; }
.brand--small .brand__name { font-size: 1.2rem; }

.nav { display: flex; align-items: center; gap: 30px; }
.nav a:not(.btn) { text-decoration: none; color: var(--muted); font-weight: 500; font-size: 1rem; }
.nav a:not(.btn):hover { color: var(--text); }

.menu-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; position: relative; }
.menu-toggle__bar, .menu-toggle__bar::before, .menu-toggle__bar::after {
  position: absolute; left: 11px; width: 22px; height: 2px; background: var(--text); content: ''; transition: transform .2s;
}
.menu-toggle__bar { top: 21px; }
.menu-toggle__bar::before { left: 0; top: -7px; }
.menu-toggle__bar::after { left: 0; top: 7px; }

@media (max-width: 820px) {
  .menu-toggle { display: block; }
  .nav {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ink-2); border-bottom: 1px solid var(--line);
    padding: 8px 20px 20px; display: none;
  }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--text); }
  .nav .btn { margin-top: 16px; }
  /* Page sans menu déroulant (mentions légales) : le bouton reste visible */
  .nav--simple { display: flex; position: static; padding: 0; background: none; border: 0; }
  .nav--simple .btn { margin-top: 0; }
}

/* ── Accroche ───────────────────────────────────────────────── */
.hero { position: relative; overflow: hidden; padding: clamp(90px, 14vw, 170px) 0 clamp(80px, 11vw, 140px); }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero::after { /* voile pour garantir la lisibilité du texte au-dessus du motif */
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(14,15,18,.95) 0%, rgba(14,15,18,.80) 45%, rgba(14,15,18,.10) 100%);
}
@media (max-width: 820px) { /* texte pleine largeur : voile uniforme */
  .hero::after { background: rgba(14, 15, 18, .78); }
}
.hero__inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.2fr .8fr; gap: 64px; align-items: center;
}
@media (max-width: 980px) { .hero__inner { grid-template-columns: 1fr; gap: 56px; } }
.hero h1 { max-width: 15ch; }

/* Étiquette illustrée (QR + éclats) : évoque la preuve, sans expliquer le procédé */
.hero__visual { margin: 0; justify-self: center; width: min(100%, 360px); }
@media (max-width: 980px) { .hero__visual { width: min(80%, 300px); } }
.tag {
  position: relative; padding: 16px; border-radius: 24px;
  background: linear-gradient(160deg, #1D2026, #121419);
  border: 1px solid rgba(217, 184, 108, .28);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55), 0 0 60px rgba(217, 184, 108, .08);
  transform: rotate(-3deg);
}
.tag__qr { position: relative; border-radius: 14px; overflow: hidden; background: #F5F0E4; aspect-ratio: 1; }
.tag__qr svg { display: block; width: 100%; height: 100%; }
.tag__glints { position: absolute; inset: 0; width: 100%; height: 100%; }
.tag__badge {
  position: absolute; right: -16px; bottom: -16px;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 16px 9px 13px; border-radius: 999px;
  background: var(--gold); color: var(--ink);
  font-weight: 600; font-size: .95rem; box-shadow: 0 10px 30px rgba(0, 0, 0, .45);
  transform: rotate(3deg);
}
.hero__visual figcaption { margin-top: 30px; text-align: center; font-size: .9rem; color: var(--muted); }
.lead { margin-top: 26px; max-width: 54ch; font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: var(--muted); }
.hero__actions { margin-top: 38px; display: flex; flex-wrap: wrap; gap: 14px; }

.eyebrow {
  display: inline-block; margin-bottom: 18px;
  font-size: .85rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold);
}
.eyebrow--dark { color: var(--gold-deep); }

/* ── Sections ───────────────────────────────────────────────── */
.section { padding: clamp(72px, 10vw, 120px) 0; }
.section--light { background: var(--paper); color: var(--text-dark); }
.intro { margin-top: 20px; max-width: 60ch; font-size: 1.12rem; color: var(--muted); }
.section--light .intro { color: var(--muted-dark); }

.grid { display: grid; gap: 22px; margin-top: 48px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.card {
  background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; transition: border-color .2s, transform .2s;
}
.card:hover { border-color: rgba(217, 184, 108, .45); transform: translateY(-2px); }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 1rem; }
.card--light { background: #fff; border-color: var(--paper-line); }
.card--light p { color: var(--muted-dark); }
.card--light:hover { border-color: var(--gold-deep); }

/* Étapes de l'approche */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 52px; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }
.step { padding: 30px 28px; border-top: 2px solid var(--gold); background: linear-gradient(180deg, var(--ink-2), transparent); border-radius: 0 0 var(--radius) var(--radius); }
/* Chiffres en Plex : ceux de Syne ressemblent à des lettres (« o1 ») */
.step__num { display: block; font-family: var(--font-text); font-weight: 600; font-size: 1rem; letter-spacing: .12em; color: var(--gold); margin-bottom: 14px; }
.step h3 { font-size: 1.35rem; margin-bottom: 12px; }
.step p { color: var(--muted); }

.callout {
  margin-top: 56px; display: flex; gap: 26px; align-items: flex-start;
  padding: 34px; border-radius: var(--radius);
  background: var(--ink-3); border: 1px solid rgba(217, 184, 108, .30);
}
.callout__icon { width: 48px; height: 48px; flex: none; }
.callout h3 { font-size: 1.35rem; margin-bottom: 10px; color: var(--gold-2); }
.callout p { color: var(--muted); max-width: 70ch; }
@media (max-width: 620px) { .callout { flex-direction: column; padding: 26px; } }

/* Principes */
.principle { padding-top: 22px; border-top: 2px solid var(--gold-deep); }
.principle h3 { font-size: 1.3rem; margin-bottom: 10px; }
.principle p { color: var(--muted-dark); font-size: 1rem; }

/* Bandeau pilote */
.band { background: linear-gradient(120deg, var(--gold-2), var(--gold)); color: var(--ink); padding: 64px 0; }
.band__inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.band h2 { max-width: none; }
.band p { margin-top: 12px; max-width: 62ch; font-size: 1.1rem; color: #2A261C; }
@media (max-width: 820px) { .band__inner { flex-direction: column; align-items: flex-start; } }

/* ── Contact ────────────────────────────────────────────────── */
.contact { display: grid; grid-template-columns: 1fr 1.35fr; gap: 64px; align-items: start; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; gap: 40px; } }
.contact__intro p { margin-top: 18px; color: var(--muted-dark); max-width: 42ch; }
.contact__points { margin: 28px 0 0; padding: 0; list-style: none; }
.contact__points li { padding: 10px 0 10px 28px; position: relative; border-bottom: 1px solid var(--paper-line); font-weight: 500; }
.contact__points li::before {
  content: ''; position: absolute; left: 2px; top: 50%; width: 12px; height: 13px; margin-top: -6px;
  background: var(--gold-deep); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}

.form { background: #fff; border: 1px solid var(--paper-line); border-radius: var(--radius); padding: clamp(24px, 4vw, 40px); display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 620px) { .form__row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 7px; }
.field span { font-size: .95rem; font-weight: 600; color: var(--text-dark); }
.field em { color: #A3341F; font-style: normal; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 14px; border-radius: 10px;
  border: 1.5px solid #CFC8B8; background: var(--paper);
  font: 400 1rem/1.5 var(--font-text); color: var(--text-dark);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold-deep); box-shadow: 0 0 0 3px rgba(217, 184, 108, .35); background: #fff;
}
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #A3341F; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: .95rem; color: var(--muted-dark); }
.consent input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--gold-deep); flex: none; }
.consent a { color: var(--text-dark); }
.form .btn { justify-self: start; }
.form__status { min-height: 1.6em; font-weight: 500; }
.form__status.is-ok { color: #1F6B3A; }
.form__status.is-error { color: #A3341F; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ── Pied de page ───────────────────────────────────────────── */
.footer { border-top: 1px solid var(--line); padding: 34px 0; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer p { color: var(--muted); font-size: .95rem; }
.footer p a { color: var(--muted); }
.footer p a:hover { color: var(--text); }

/* ── Page de texte (mentions légales) ───────────────────────── */
.page { background: var(--paper); color: var(--text-dark); padding: clamp(60px, 8vw, 100px) 0; }
.page .wrap { max-width: 780px; }
.page h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 32px; }
.page h2 { font-size: 1.45rem; margin: 40px 0 12px; max-width: none; }
.page p, .page li { color: var(--muted-dark); }
.page p + p { margin-top: 12px; }
.page a { color: var(--text-dark); }
.page .todo { background: #FFF3CF; padding: 0 4px; border-radius: 4px; color: #6B4E00; }
