/* =========================================================
   Cabinet Augmenté — feuille de style globale
   Charte : bleu marine + or, fond légèrement teinté.
   Tout est piloté par les variables ci-dessous : changez-les
   ici et tout le site se met à jour.
   ========================================================= */

:root {
  --bg:        hsl(221 30% 98%);   /* fond de page (teinté, pas blanc pur) */
  --surface:   hsl(0 0% 100%);     /* cartes claires */
  --secondary: hsl(221 48% 92%);   /* bandes & cartes bleutées */
  --primary:   hsl(221 60% 33%);   /* bleu marine — boutons, titres */
  --primary-d: hsl(221 64% 26%);   /* bleu plus foncé (dégradé) */
  --gold:      hsl(41 92% 58%);    /* or — accents / surlignage */
  --text:      hsl(221 35% 16%);   /* texte principal */
  --muted:     hsl(221 14% 42%);   /* texte secondaire */
  --border:    hsl(221 30% 88%);
  --shadow:    0 10px 30px -12px hsl(221 50% 25% / 0.18);
  --radius:    16px;
  --maxw:      1080px;
  --maxw-text: 760px;
  --font-body: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-head: "Inter Tight", var(--font-body);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

img { max-width: 100%; height: auto; display: block; }

a { color: var(--primary); }

h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; color: var(--text); letter-spacing: -0.02em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); font-weight: 800; margin: 0 0 .5em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 700; margin: 0 0 .5em; }
h3 { font-size: 1.2rem; font-weight: 700; margin: 0 0 .35em; }
p  { margin: 0 0 1em; }

mark { background: var(--gold); color: hsl(221 45% 18%); padding: 0 .18em; border-radius: 4px; font-weight: 600; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.center { text-align: center; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.narrow { max-width: var(--maxw-text); }

/* ---------- Header / navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: hsl(221 30% 98% / 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-head); font-weight: 800; font-size: 1.15rem; color: var(--primary); text-decoration: none; letter-spacing: -0.02em; }
.brand::before { content: ""; width: 26px; height: 26px; flex: 0 0 auto; background: url("favicon.svg") center / contain no-repeat; }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a { color: var(--text); text-decoration: none; font-weight: 500; font-size: .97rem; }
.nav-links a:hover { color: var(--primary); }
.nav-links a.btn { background: var(--gold); color: hsl(221 55% 20%); }
.nav-links a.btn:hover { color: hsl(221 55% 20%); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-block; cursor: pointer; border: none; text-decoration: none;
  background: linear-gradient(180deg, var(--primary), var(--primary-d));
  color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 1rem;
  padding: 12px 22px; border-radius: 999px; transition: transform .08s ease, box-shadow .2s ease;
  box-shadow: var(--shadow);
}
.btn:hover { transform: translateY(-1px); }
.btn-lg { padding: 15px 30px; font-size: 1.08rem; }
.btn-sm { padding: 9px 16px; font-size: .9rem; }
.btn-ghost { background: transparent; color: var(--primary); box-shadow: none; border: 1.5px solid var(--primary); }

/* ---------- Sections & bandes ---------- */
section { padding: 56px 0; }
.banner { background: var(--secondary); }
.banner-primary {
  background: linear-gradient(160deg, var(--primary), var(--primary-d));
  color: #fff;
}
.banner-primary h1, .banner-primary h2 { color: #fff; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: var(--primary); margin: 0 0 .6em; }
.banner-primary .eyebrow { color: var(--gold); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 640px; margin-left: auto; margin-right: auto; }
.banner-primary .lead { color: hsl(221 40% 92%); }

/* ---------- Cartes ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}
.card.featured { border: 2px solid var(--gold); }
.badge { display: inline-block; background: var(--gold); color: hsl(221 45% 18%); font-weight: 700; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; margin-bottom: 10px; }
.price { font-family: var(--font-head); font-weight: 800; font-size: 1.4rem; color: var(--primary); }

/* ---------- Grilles ---------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: 1fr 1fr; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid img { border-radius: var(--radius); box-shadow: var(--shadow); }
.stack > * + * { margin-top: 18px; }

/* listes à puces "check" */
ul.checks { list-style: none; padding: 0; margin: 0; }
ul.checks li { position: relative; padding-left: 30px; margin-bottom: 12px; }
ul.checks li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--primary); font-weight: 800; }
ul.crosses { list-style: none; padding: 0; margin: 0; }
ul.crosses li { position: relative; padding-left: 30px; margin-bottom: 12px; }
ul.crosses li::before { content: "✕"; position: absolute; left: 0; top: 0; color: hsl(0 55% 55%); font-weight: 800; }

/* ---------- Formulaire de capture ---------- */
.capture { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; max-width: 540px; margin: 18px auto 8px; }
.capture input {
  flex: 1 1 200px; min-width: 0; padding: 13px 16px; font-size: 1rem; font-family: var(--font-body);
  border: 1.5px solid var(--border); border-radius: 12px; background: #fff; color: var(--text);
}
.capture input:focus { outline: none; border-color: var(--primary); }
.capture button { flex: 1 1 100%; }

/* ---------- FAQ (accordéon) ---------- */
details { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 4px 18px; margin-bottom: 12px; }
details summary { cursor: pointer; font-family: var(--font-head); font-weight: 700; padding: 14px 0; list-style: none; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; float: right; color: var(--primary); font-weight: 800; }
details[open] summary::after { content: "–"; }
details p { padding-bottom: 14px; margin: 0; color: var(--muted); }

/* ---------- Pages de texte (légal / à propos) ---------- */
.prose h2 { margin-top: 1.6em; }
.prose { padding: 48px 0; }

/* ---------- Footer ---------- */
.site-footer { background: hsl(221 35% 14%); color: hsl(221 25% 80%); padding: 40px 0; margin-top: 20px; }
.footer-brand { font-family: var(--font-head); font-weight: 800; color: #fff; font-size: 1.1rem; margin: 0 0 10px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; margin-bottom: 14px; }
.footer-links a { color: hsl(221 25% 82%); text-decoration: none; font-size: .92rem; }
.footer-links a:hover { color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 780px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .nav-links { gap: 14px; }
  .nav-links a:not(.btn) { display: none; }   /* sur mobile, on garde le logo + le bouton */
  section { padding: 44px 0; }
}
