/* CODEX par Murphy Conseil : feuille commune des pages secondaires
   (souscription, confirmation, mentions légales, guides, auteur).
   Mêmes jetons que la page d'accueil. */
:root {
  --encre: #0F1B3D; --encre-2: #1A2A57; --corail: #FF4B3E; --jaune: #FFD84D;
  --creme: #F6F3EC; --gris: #5A6380; --vert: #127A50; --rayon: 12px;
  /* Alias utilisés par les styles en ligne de la page de souscription */
  --ink: var(--encre); --ink-soft: var(--gris); --accent: #D9362A;
  --bg: #fff; --bg-soft: var(--creme); --rule: rgba(15,27,61,.14);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: 'Inter', system-ui, -apple-system, sans-serif; font-size: 17px; line-height: 1.65; color: var(--encre); background: var(--creme); overflow-wrap: break-word; }
a { color: inherit; }
img { max-width: 100%; height: auto; }
h1, h2, h3 { font-family: 'IBM Plex Sans', 'Inter', sans-serif; font-weight: 600; letter-spacing: -0.015em; line-height: 1.15; text-wrap: balance; }
h1 { font-size: clamp(1.9rem, 5vw, 2.7rem); margin: 0 0 16px; }
h2 { font-size: clamp(1.35rem, 3.4vw, 1.75rem); margin: 44px 0 12px; }
h3 { font-size: 1.12rem; margin: 28px 0 8px; }
.container, .cadre { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.etroit { max-width: 760px; margin: 0 auto; padding: 0 20px; }
.nobr { white-space: nowrap; }

/* En-tête */
.entete { background: var(--encre); color: #fff; }
.entete .barre { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.marque, .brand { font-family: 'IBM Plex Sans', sans-serif; font-weight: 600; font-size: 1.08rem; text-decoration: none; color: inherit; line-height: 1.2; }
.marque span, .brand span { color: var(--corail); }
.marque small { font-family: 'Inter', sans-serif; font-weight: 500; font-size: 0.78rem; opacity: .75; display: block; letter-spacing: 0; }
.entete nav { display: flex; gap: 6px 18px; align-items: center; flex-wrap: wrap; font-size: 0.92rem; }
.entete nav a { color: rgba(255,255,255,.78); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.entete nav a:hover { color: #fff; }
.entete nav a.abo { background: var(--corail); color: #fff; font-weight: 600; padding: 0 14px; border-radius: var(--rayon); }
@media (max-width: 620px) { .entete nav a.option { display: none; } }

/* Boutons */
.bouton, .btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 24px; border-radius: var(--rayon); background: var(--corail); color: #fff; font-weight: 600; text-decoration: none; border: 0; font-family: inherit; font-size: 1rem; cursor: pointer; text-align: center; }
.eyebrow, .sur { display: block; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #C42A1F; margin-bottom: 10px; }

/* Fil d'Ariane */
.ariane { font-size: 0.86rem; color: var(--gris); padding: 18px 0 0; }
.ariane ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.ariane li + li::before { content: "›"; margin: 0 6px 0 2px; }
.ariane a { color: var(--gris); }

/* Article (guides, auteur, mentions) */
.article { padding: 28px 0 64px; }
.article p, .article li { max-width: 68ch; }
.article ul, .article ol { padding-left: 22px; }
.article li { margin-bottom: 8px; }
.article a { color: var(--vert); font-weight: 500; }
.meta { font-size: 0.88rem; color: var(--gris); margin: 0 0 22px; }
.meta a { color: var(--gris); }
.reponse-directe { background: #fff; border-left: 4px solid var(--corail); border-radius: 10px; padding: 16px 18px; margin: 0 0 8px; font-size: 1.02rem; }
.encadre { background: #fff; border-radius: 14px; padding: 18px 20px; margin: 22px 0; }
.encadre p:first-child { margin-top: 0; }
.encadre p:last-child { margin-bottom: 0; }
.citation { border-left: 3px solid rgba(15,27,61,.2); margin: 14px 0; padding: 4px 0 4px 16px; color: var(--gris); font-style: italic; }
.tableau { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 18px 0; }
table { border-collapse: collapse; width: 100%; min-width: 520px; background: #fff; border-radius: 10px; font-size: 0.92rem; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid rgba(15,27,61,.08); }
th { font-weight: 600; background: rgba(15,27,61,.04); }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.9em; background: rgba(15,27,61,.06); padding: 1px 5px; border-radius: 4px; overflow-wrap: anywhere; }
pre { background: #fff; border-radius: 10px; padding: 14px 16px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 0.9rem; line-height: 1.55; }
.sources-liste { font-size: 0.92rem; }
.sources-liste a { overflow-wrap: anywhere; }
.cta-discret { margin-top: 44px; background: #fff; border: 1px solid rgba(15,27,61,.1); border-radius: 14px; padding: 18px 20px; font-size: 0.96rem; color: var(--gris); }
.cta-discret strong { color: var(--encre); }
.cta-discret a { color: #C42A1F; font-weight: 600; }
.cartes { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin: 18px 0; padding: 0; list-style: none; }
.cartes li { background: #fff; border-radius: 14px; padding: 18px 20px; margin: 0; max-width: none; }
.cartes a { text-decoration: none; color: var(--encre); font-weight: 600; font-family: 'IBM Plex Sans', sans-serif; font-size: 1.05rem; }
.cartes p { margin: 6px 0 0; color: var(--gris); font-size: 0.94rem; }

/* Mentions légales */
.legal-dl { display: grid; grid-template-columns: minmax(120px, 200px) 1fr; gap: 6px 16px; margin: 12px 0; }
.legal-dl dt { color: var(--gris); }
.legal-dl dd { margin: 0; }
@media (max-width: 520px) { .legal-dl { grid-template-columns: 1fr; gap: 2px; } .legal-dl dd { margin-bottom: 8px; } }
.ancres { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 10px 0 0; }
.ancres a { color: #C42A1F; font-weight: 600; display: inline-flex; min-height: 44px; align-items: center; }
section.bloc { padding: 8px 0 24px; scroll-margin-top: 12px; }
.maj { font-size: 0.85rem; color: var(--gris); margin-top: 32px; }

/* Pied de page */
.pied { border-top: 1px solid rgba(15,27,61,.1); padding: 24px 0 32px; font-size: 0.86rem; color: var(--gris); }
.pied .cadre { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 18px; }
.pied a { text-decoration: none; display: inline-block; padding: 10px 0; }
.pied .liens { display: flex; flex-wrap: wrap; gap: 0 18px; }
.pied-marques { font-size: 0.75rem; opacity: .8; margin: 8px auto 0; }

/* Page de souscription : grille et carte récapitulative */
.checkout-main { padding: 2.5rem 0 4rem; }
.checkout-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 2.5rem; align-items: start; max-width: 1000px; margin: 0 auto; }
@media (max-width: 820px) { .checkout-grid { grid-template-columns: 1fr; gap: 2rem; } .summary-card { position: static !important; } }
.summary-card { padding: 1.5rem; border-radius: 16px; background: #fff; position: sticky; top: 1.5rem; }
.summary-card h3 { margin: 0 0 0.75rem; font-size: 1.2rem; }
.summary-card .price-grid { display: grid; grid-template-columns: 1fr auto; gap: 0.5rem 1rem; margin: 1rem 0; font-size: 0.95rem; }
.summary-card .price-grid .label { color: var(--gris); }
.summary-card .price-grid .total-label, .summary-card .price-grid .total-val { padding-top: 0.75rem; border-top: 1px solid var(--rule); font-weight: 600; font-size: 1.05rem; }
.summary-card .badge { display: block; margin-top: 0.75rem; padding: 0.6rem 0.85rem; border-radius: 10px; background: var(--creme); font-size: 0.86rem; }
.summary-card .badge strong { color: var(--encre); }
.summary-card .what-included { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--rule); }
.summary-card .what-included ul { list-style: none; padding: 0; margin: 0.5rem 0 0; font-size: 0.9rem; color: var(--gris); line-height: 1.8; }
.summary-card .what-included li::before { content: "✓"; margin-right: 0.5rem; color: var(--corail); font-weight: 700; }
.checkout-form-wrap h1 { margin: 0 0 0.5rem; }
.checkout-form-wrap > .lead { color: var(--gris); margin: 0 0 1.75rem; }
.checkout-form-wrap input[type=text], .checkout-form-wrap input[type=email], .checkout-form-wrap input[type=number] { border-radius: 10px !important; font-size: 16px !important; min-height: 48px; width: 100%; }
.checkout-form-wrap fieldset { border-radius: 12px; }
.checkout-form-wrap button[id^=count] { width: 44px !important; height: 44px !important; border-radius: 10px; }
.checkout-form-wrap #count-input { width: 4.5rem !important; }

/* Confirmation */
.merci { padding: 48px 0 64px; }
.etapes-liste { list-style: none; padding: 0; margin: 24px 0; counter-reset: e; }
.etapes-liste li { counter-increment: e; position: relative; padding: 14px 16px 14px 56px; background: #fff; border-radius: 12px; margin-bottom: 10px; color: var(--gris); }
.etapes-liste li::before { content: counter(e); position: absolute; left: 14px; top: 14px; width: 30px; height: 30px; border-radius: 50%; background: var(--encre); color: #fff; display: grid; place-items: center; font-weight: 600; font-size: 0.9rem; }

/* Tableaux en cartes sur téléphone */
@media (max-width: 600px) {
  .tableau { overflow: visible; }
  .tableau table { min-width: 0; background: transparent; }
  .tableau thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .tableau tr { display: block; background: #fff; border-radius: 12px; padding: 6px 14px; margin-bottom: 12px; }
  .tableau td { display: block; border: 0; padding: 6px 0; }
  .tableau td[data-label]:not([data-label=""])::before { content: attr(data-label); display: block; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--gris); margin-bottom: 2px; }
  .tableau td:first-child { font-weight: 600; }
}
