/* Styles communs aux pages Guides (la page d'accueil garde ses styles intégrés) */
*, *::before, *::after { box-sizing: border-box; }

:root {
  /* Palette « MP025 » — pour changer de charte, il suffit de modifier ce bloc */
  --navy: #172B36;          /* Oceanic Noir : fonds sombres, texte */
  --navy-2: #114C5A;        /* Nocturnal Expedition : dégradés, cartes */
  --accent: #FFC801;        /* Forsythia : boutons, pastilles */
  --accent-2: #FF9932;      /* Deep Saffron : dégradés chauds */
  --on-accent: #172B36;     /* texte posé sur l'accent */
  --accent-ink: #114C5A;    /* accent lisible sur fond clair (liens, coches) */
  --accent-light: #FFC801;  /* accent lisible sur fond sombre */
  --tint: #D9E8E2;          /* Mystic Mint : encadrés, totaux */
  --soft: #F1F6F4;          /* Arctic Powder : sections alternées */
  --gray: #8A9AA0;
  --ink: #172B36;
  --muted: #4d5f68;
  --line: #dde7e3;
  /* Lueur chaude en bas des fonds sombres (motif des visuels de la palette) */
  --motif: radial-gradient(120% 75% at 85% 115%, rgba(255,153,50,.55), rgba(255,200,1,.18) 45%, transparent 72%);
}

html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 80px; }
body {
  margin: 0;
  font-family: "Geist", system-ui, -apple-system, sans-serif;
  background: #fff;
  color: var(--ink);
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px;
  font-weight: 600; font-size: 1.05rem;
  transition: transform .15s;
}
.btn:hover { transform: translateY(-2px); }
.btn-yellow { background: var(--accent); color: var(--on-accent); box-shadow: 0 6px 18px rgba(255,153,50,.35); }

/* ---------- Navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 16px 24px;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.logo { font-size: 1.8rem; font-weight: 700; letter-spacing: -0.5px; }
.logo-a { color: var(--accent-ink); }
.nav nav { display: flex; gap: 32px; font-size: 1.05rem; font-weight: 500; }
.nav nav a:hover, .nav nav a[aria-current] { color: var(--accent-ink); }
.nav .btn { padding: 11px 22px; }

/* ---------- En-tête d'article ---------- */
.page-head {
  color: #fff;
  background:
    var(--motif),
    linear-gradient(100deg, rgba(23, 43, 54, 0.93), rgba(23, 43, 54, 0.78)),
    url("https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&w=2000&q=70") center 40% / cover no-repeat,
    var(--navy);
}
.page-head .wrap { max-width: 860px; padding-top: 48px; padding-bottom: 56px; }
.crumbs { font-size: .92rem; color: rgba(255,255,255,.7); margin-bottom: 22px; }
.crumbs a:hover { color: var(--accent-light); }
.tag {
  display: inline-block; padding: 6px 14px; border-radius: 999px;
  background: rgba(255,200,1,.15); color: var(--accent-light);
  font-weight: 600; font-size: .9rem;
}
.page-head h1 { margin: 16px 0 16px; font-size: clamp(1.9rem, 3.6vw, 2.8rem); font-weight: 600; line-height: 1.18; }
.page-head .lead { margin: 0; font-size: 1.15rem; color: rgba(255,255,255,.85); }

/* ---------- Corps d'article ---------- */
.article { max-width: 860px; margin: 0 auto; padding: 56px 24px 40px; font-size: 1.08rem; }
.article h2 { margin: 48px 0 14px; font-size: 1.6rem; font-weight: 600; line-height: 1.25; }
.article h2:first-child { margin-top: 0; }
.article p { margin: 0 0 16px; color: #222; }
.article ul, .article ol { margin: 0 0 18px; padding-left: 24px; }
.article li { margin-bottom: 10px; color: #222; }
.article li::marker { color: var(--accent-ink); font-weight: 700; }
.article a.inline { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }
.checklist { list-style: none; padding-left: 0 !important; }
.checklist li { position: relative; padding-left: 32px; }
.checklist li::before {
  content: "✓"; position: absolute; left: 0; top: 1px;
  display: grid; place-items: center; width: 22px; height: 22px; border-radius: 6px;
  background: var(--accent); color: var(--on-accent); font-size: .8rem; font-weight: 700;
}

.table-wrap { overflow-x: auto; margin: 0 0 22px; border: 1px solid var(--line); border-radius: 10px; }
.article table { width: 100%; border-collapse: collapse; font-size: 1rem; font-variant-numeric: tabular-nums; }
.article th, .article td { padding: 11px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.article thead th { background: var(--soft); font-weight: 600; color: var(--muted); }
.article tbody tr:last-child td { border-bottom: 0; }
.article td.num, .article th.num { text-align: right; white-space: nowrap; }
.article tr.total td { font-weight: 700; background: var(--tint); }

.formula {
  margin: 0 0 22px; padding: 18px 22px; border-radius: 10px;
  background: var(--navy); color: #fff; font-weight: 600; text-align: center;
}
.callout {
  margin: 0 0 22px; padding: 18px 22px; border-radius: 10px;
  background: var(--tint); border-left: 4px solid var(--accent-ink);
}
.callout p:last-child { margin-bottom: 0; }

/* ---------- Encart cas gratuit ---------- */
.cta-box {
  margin: 48px 0 0; padding: 36px; border-radius: 16px;
  background: var(--navy); color: #fff;
}
.cta-box h2 { margin: 0 0 10px !important; color: #fff; }
.cta-box p { color: rgba(255,255,255,.82) !important; margin-bottom: 22px !important; }
.cta-box .btn { color: #fff; }

/* ---------- À lire ensuite ---------- */
.next { max-width: 860px; margin: 0 auto; padding: 0 24px 80px; }
.next h2 { font-size: 1.3rem; font-weight: 600; margin: 0 0 16px; }
.next-grid, .guide-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.guide-card {
  display: block; padding: 22px; border-radius: 12px;
  border: 1px solid var(--line); background: #fff;
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.guide-card:hover { border-color: var(--navy); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(23, 43, 54,.08); }
.guide-card .kicker { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; color: var(--accent-ink); }
.guide-card h3 { margin: 6px 0 6px; font-size: 1.2rem; font-weight: 600; line-height: 1.3; }
.guide-card p { margin: 0; color: var(--muted); font-size: .98rem; }
.guide-card .more { display: inline-block; margin-top: 12px; font-weight: 600; color: var(--navy); }

/* ---------- Page Guides ---------- */
.hub { max-width: 1000px; margin: 0 auto; padding: 56px 24px 80px; }

/* ---------- Fiches produit ---------- */
.product {
  max-width: 1180px; margin: 0 auto; padding: 56px 24px 40px;
  display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 48px; align-items: start;
}
.product .article { padding: 0; max-width: none; }
.pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.pill {
  display: inline-block; padding: 6px 14px; border-radius: 999px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25);
  font-weight: 600; font-size: .92rem;
}
.buy-card {
  position: sticky; top: 100px;
  border-radius: 14px; padding: 10px 10px 20px; color: #fff;
  box-shadow: 0 14px 34px rgba(23,43,54,.16);
}
.buy-card.red   { background: linear-gradient(160deg, #1a6577, var(--navy-2)); }
.buy-card.blue  { background: linear-gradient(160deg, var(--accent), var(--accent-2)); }
.buy-card.green { background: var(--motif), linear-gradient(160deg, var(--navy-2), var(--navy)); }
.buy-inner { background: #fff; color: var(--ink); border-radius: 9px; padding: 24px; }
.buy-inner .level { font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; color: var(--muted); }
.buy-inner h2 { margin: 6px 0 4px; font-size: 1.5rem; font-weight: 600; }
.buy-inner .price { font-size: 2.1rem; font-weight: 700; margin: 6px 0 14px; }
.buy-inner .price small { font-size: .95rem; font-weight: 500; color: var(--muted); }
.buy-inner ul { margin: 0 0 18px; padding: 0; list-style: none; }
.buy-inner li { padding: 7px 0 7px 26px; position: relative; border-top: 1px solid var(--line); font-size: .98rem; }
.buy-inner li::before { content: "✓"; position: absolute; left: 3px; font-weight: 700; color: var(--accent-ink); }
.buy-inner .btn { width: 100%; justify-content: center; }
.buy-note { margin: 12px 4px 0; font-size: .88rem; color: rgba(255,255,255,.8); text-align: center; }
.compare-link { display: block; margin-top: 14px; text-align: center; font-weight: 600; color: var(--accent-ink); }

/* Pack 2 sur fond jaune : textes et flèche en foncé */
.card.blue, .buy-card.blue { color: var(--on-accent); }
.card.blue .arrow { background: var(--navy); color: var(--accent); }
.buy-card.blue .buy-note { color: rgba(23,43,54,.8); }

/* Formulaire Pack Découverte */
.signup { display: grid; gap: 12px; }
.signup label { font-weight: 600; font-size: .95rem; }
.signup input[type="text"], .signup input[type="email"] {
  width: 100%; margin-top: 6px; padding: 12px 14px; border-radius: 10px;
  border: 1.5px solid var(--line); font: inherit; font-size: 1rem;
}
.signup input:focus { outline: none; border-color: var(--navy); }
.signup .consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: .9rem; color: var(--muted); }
.signup .consent input { margin-top: 3px; }
.signup .btn { border: 0; cursor: pointer; font-family: inherit; }
.signup-ok { display: none; padding: 14px; border-radius: 10px; background: var(--tint); color: var(--accent-ink); font-weight: 600; }

.teaser {
  margin: 0 0 22px; padding: 22px; border-radius: 12px;
  border: 1.5px dashed var(--accent-ink); background: var(--tint);
}
.teaser p:last-child { margin-bottom: 0; }

@media (max-width: 900px) {
  .product { grid-template-columns: 1fr; gap: 32px; }
  .buy-card { position: static; }
}

footer { padding: 30px 24px; text-align: center; color: var(--muted); font-size: .95rem; border-top: 1px solid var(--line); }
footer a:hover { color: var(--accent-ink); }

@media (max-width: 900px) {
  .nav nav { display: none; }
  .next-grid, .guide-grid { grid-template-columns: 1fr; }
  .cta-box { padding: 26px 22px; }
}

/* ---------- Finitions (audit « redesign ») ---------- */
:root {
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  /* le motif des fonds sombres reçoit un grain léger */
  --motif: var(--grain), radial-gradient(120% 75% at 85% 115%, rgba(255,153,50,.55), rgba(255,200,1,.18) 45%, transparent 72%);
}
body { font-family: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif; }
h1, h2, h3, h4 { text-wrap: balance; letter-spacing: -0.02em; }
h1 { letter-spacing: -0.035em; line-height: 1.08; }
p, li { text-wrap: pretty; }
/* chiffres en chasse fixe */
.price, .stat b, .sheet td:not(:first-child), .sheet th:not(:first-child), .formula, .article td.num { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
/* étiquettes sans majuscules */
.price small, .price-text { font-family: "Geist", system-ui, sans-serif; letter-spacing: -0.01em; }
.level, .kicker, .marquee-title { text-transform: none; letter-spacing: 0; font-size: .92rem; font-weight: 600; }
/* boutons : survol et appui */
.btn { transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease; }
.btn:active { transform: translateY(1px) scale(.98); }
.btn-yellow:hover { background: #ffd43b; }
.btn-ghost:hover { background: rgba(255,255,255,.08); }
/* contour visible à la navigation clavier (lisible sur fond clair et foncé) */
:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; box-shadow: 0 0 0 5px var(--accent); border-radius: 6px; }
/* lien « Aller au contenu », visible seulement au clavier */
.skip {
  position: absolute; left: 16px; top: -60px; z-index: 20;
  padding: 10px 16px; border-radius: 8px;
  background: var(--accent); color: var(--on-accent); font-weight: 600;
  transition: top .2s ease;
}
.skip:focus { top: 12px; }
/* menu : page en cours */
.nav nav a[aria-current] { color: var(--accent-ink); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 7px; text-decoration-color: var(--accent); }

/* formulaire : messages d'erreur */
.field-error { display: block; min-height: 0; margin-top: 6px; color: #b3261e; font-size: .88rem; font-weight: 500; }
.field-error:empty { display: none; }
.signup input[aria-invalid="true"] { border-color: #b3261e; }
/* bloc d'appel en bas de la page Guides */
.hub-cta { padding: 0; }
/* page 404 */
.notfound-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.notfound-links .btn-ghost { border-color: rgba(255,255,255,.6); color: #fff; }
.btn-ghost { border: 1.5px solid rgba(255,255,255,.6); color: #fff; }
/* lignes de texte à ~65 caractères dans les guides et fiches */
.article > p, .article > ul, .article > ol, .article .callout p { max-width: 66ch; }
/* pack pas encore disponible */
.btn-soon { width: 100%; justify-content: center; background: var(--tint); color: var(--muted); cursor: not-allowed; box-shadow: none; }
.btn-soon:hover, .btn-soon:active { transform: none; background: var(--tint); }
.pill-soon { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

/* ---------- Encadré d'achat / d'inscription : version épurée ---------- */
.buy-card, .buy-card.red, .buy-card.blue, .buy-card.green {
  padding: 0; overflow: hidden; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  box-shadow: 0 1px 2px rgba(23,43,54,.05), 0 18px 40px rgba(23,43,54,.08);
}
/* liseré de couleur du pack, à la place du cadre plein */
.buy-card::before { content: ""; display: block; height: 4px; background: var(--pack-color, var(--navy)); }
.buy-card.red   { --pack-color: #1a6577; }
.buy-card.blue  { --pack-color: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.buy-card.green { --pack-color: var(--navy); }
.buy-inner { background: none; border-radius: 0; padding: 26px 28px 8px; }
.buy-inner .level { text-transform: none; letter-spacing: 0; font-size: .9rem; font-weight: 600; color: var(--accent-ink); }
.buy-inner h2 { margin: 2px 0 0; font-size: 1.3rem; font-weight: 600; letter-spacing: -0.02em; }
.buy-inner .price { margin: 14px 0 22px; font-size: 2.5rem; letter-spacing: -0.04em; line-height: 1; }
.buy-inner li { font-size: .95rem; }
/* bouton sobre, bleu marine */
.buy-inner .btn:not(.btn-soon) {
  padding: 14px 18px; border-radius: 12px; font-size: 1rem;
  background: var(--navy); color: #fff; box-shadow: none;
}
.buy-inner .btn:not(.btn-soon):hover { background: var(--navy-2); }
.buy-inner .btn-soon { border-radius: 12px; }
/* formulaire */
.signup { gap: 14px; }
.signup label { font-size: .88rem; font-weight: 500; color: var(--muted); }
.signup input[type="text"], .signup input[type="email"] {
  margin-top: 6px; padding: 12px 14px; border-radius: 10px;
  background: var(--soft); border: 1px solid transparent; color: var(--ink);
  transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.signup input[type="text"]:focus, .signup input[type="email"]:focus {
  background: #fff; border-color: var(--navy-2); box-shadow: 0 0 0 3px rgba(17,76,90,.12);
}
.signup input[aria-invalid="true"] { border-color: #b3261e; background: #fff; }
.signup .consent { font-size: .82rem; line-height: 1.45; gap: 10px; }
.signup .consent input { margin-top: 2px; accent-color: var(--navy); }
.signup .btn { margin-top: 4px; }
/* note de confidentialité, discrète et dans la carte */
.buy-note, .buy-card.blue .buy-note {
  margin: 0; padding: 4px 28px 24px; text-align: left;
  font-size: .8rem; line-height: 1.5; color: var(--muted);
}
.compare-link { margin-top: 12px; font-size: .92rem; }

/* ---------- Carte de téléchargement du Pack Découverte (style « card » épuré) ---------- */
.dl-card {
  position: sticky; top: 100px;
  background: #fff; color: var(--ink);
  border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 1px 2px rgba(23,43,54,.06), 0 12px 32px rgba(23,43,54,.07);
}
.dl-header { padding: 26px 26px 0; }
.dl-badge {
  display: inline-block; padding: 4px 10px; border-radius: 999px;
  background: var(--tint); color: var(--accent-ink); font-size: .8rem; font-weight: 600;
}
.dl-header h2 { margin: 14px 0 6px; font-size: 1.45rem; font-weight: 600; letter-spacing: -0.025em; line-height: 1.15; }
.dl-header p { margin: 0; font-size: .9rem; line-height: 1.5; color: var(--muted); }
.dl-form { display: grid; gap: 18px; padding: 22px 26px 0; }
.dl-field { display: grid; gap: 7px; }
.dl-field label, .dl-label-row label { font-size: .88rem; font-weight: 500; color: var(--ink); }
.dl-label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.dl-link { font-size: .85rem; color: var(--accent-ink); text-underline-offset: 3px; }
.dl-link:hover { text-decoration: underline; }
.dl-field input {
  width: 100%; height: 42px; padding: 0 12px; border-radius: 8px;
  border: 1px solid #d5dfdb; background: #fff; color: var(--ink);
  font: inherit; font-size: .95rem;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.dl-field input::placeholder { color: #9aa7ad; }
.dl-field input:focus { outline: none; border-color: var(--navy-2); box-shadow: 0 0 0 3px rgba(17,76,90,.14); }
.dl-field input[aria-invalid="true"] { border-color: #b3261e; }
.dl-help { font-size: .8rem; color: var(--muted); }
.dl-field .field-error { margin-top: 0; }
.dl-consent { display: flex; gap: 10px; align-items: flex-start; font-size: .8rem; line-height: 1.45; color: var(--muted); }
.dl-consent input { margin-top: 2px; accent-color: var(--navy); }
.dl-actions { display: grid; gap: 8px; }
.dl-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  height: 44px; padding: 0 16px; border-radius: 8px;
  font: inherit; font-size: .95rem; font-weight: 600; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, transform .15s ease;
}
.dl-btn:active { transform: translateY(1px) scale(.99); }
.dl-btn-primary { border: 0; background: var(--navy); color: #fff; }
.dl-btn-primary:hover { background: var(--navy-2); }
.dl-btn-outline { border: 1px solid #d5dfdb; background: #fff; color: var(--ink); }
.dl-btn-outline:hover { background: var(--soft); }
.dl-form .signup-ok { font-size: .9rem; }
.dl-note { margin: 0; padding: 16px 26px 22px; font-size: .78rem; line-height: 1.5; color: var(--muted); }
@media (max-width: 900px) { .dl-card { position: static; } }
