/* ==========================================================================
   Overta — « Trust & Authority ». Institutionnel, éditorial, sobre.
   Typo : Lexend (titres — conçue pour la vitesse de lecture, cohérent avec
   un produit d'accessibilité) + Source Sans 3 (texte). Auto-hébergées.
   Contrastes visés AAA (7:1) sur le texte courant. Le site est la démo du produit.
   ========================================================================== */
@import url('/css/fonts.css');

:root {
  /* Couleurs — palette « Trust & Authority » */
  --navy:        #0F172A;   /* 17.4:1 sur --paper */
  --navy-soft:   #334155;   /* 9.4:1  sur --paper */
  --ink-muted:   #4A5567;   /* 7.1:1  sur --paper — AAA mini */
  --paper:       #F8FAFC;
  --surface:     #FFFFFF;
  --accent:      #0C4A6E;   /* 8.7:1 sur blanc — liens et CTA (AAA) */
  --accent-hover:#0A3A56;
  --accent-tint: #0369A1;   /* décoratif : filets, icônes, focus */
  --accent-wash: #EFF6FB;
  --border:      #DDE4EC;
  --border-strong:#C3CEDA;
  --ok:          #14683C;   /* 5.9:1 */
  --alert:       #B3261E;   /* 6.4:1 */
  --alert-wash:  #FDF2F1;

  /* Espacement (densité 4/10 : marketing, aéré) */
  --s-1: .5rem; --s-2: 1rem; --s-3: 1.5rem; --s-4: 2rem;
  --s-5: 3rem;  --s-6: 4rem; --s-7: 6rem;

  --max: 1120px;
  --max-narrow: 720px;
  --radius: 10px;
  --shadow-sm: 0 1px 2px rgba(15,23,42,.06), 0 1px 3px rgba(15,23,42,.05);
  --shadow-md: 0 4px 12px rgba(15,23,42,.07), 0 2px 4px rgba(15,23,42,.04);
  --shadow-lg: 0 12px 32px rgba(15,23,42,.10), 0 4px 8px rgba(15,23,42,.05);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  font-family: 'Source Sans 3', system-ui, -apple-system, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--navy);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: 'Lexend', system-ui, sans-serif; font-weight: 600; line-height: 1.18; letter-spacing: -.015em; color: var(--navy); margin: 0 0 var(--s-2); text-wrap: balance; }
h1 { font-size: clamp(2rem, 4.6vw, 3.15rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); }
h3 { font-size: 1.22rem; }
p  { margin: 0 0 var(--s-2); }

a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-hover); text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible, details:focus-visible {
  outline: 3px solid var(--accent-tint);
  outline-offset: 2px;
  border-radius: 3px;
}

.skip-link { position: absolute; left: -9999px; top: 0; z-index: 200; background: var(--navy); color: #fff; padding: .85rem 1.4rem; font-weight: 600; border-radius: 0 0 var(--radius) 0; }
.skip-link:focus { left: 0; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--s-3); }
.wrap-narrow { max-width: var(--max-narrow); margin: 0 auto; padding: 0 var(--s-3); }

/* ---------- En-tête ---------- */
header.site { background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--s-2); min-height: 4.5rem; flex-wrap: wrap; }
.brand { font-family: 'Lexend', sans-serif; font-weight: 700; font-size: 1.4rem; letter-spacing: -.02em; color: var(--navy); text-decoration: none; display: inline-flex; align-items: center; gap: .1rem; }
.brand:hover { color: var(--navy); }
.brand .dot { color: var(--accent-tint); }
nav.main { display: flex; align-items: center; gap: var(--s-3); flex-wrap: wrap; }
nav.main a { color: var(--navy-soft); text-decoration: none; font-weight: 600; font-size: .97rem; padding: .35rem 0; border-bottom: 2px solid transparent; }
nav.main a:hover { color: var(--accent); border-bottom-color: var(--accent-tint); }
nav.main a.nav-cta { background: var(--accent); color: #fff; padding: .55rem 1.1rem; border-radius: var(--radius); border-bottom: none; box-shadow: var(--shadow-sm); }
nav.main a.nav-cta:hover { background: var(--accent-hover); color: #fff; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-block; font-family: 'Lexend', sans-serif; font-weight: 600; font-size: 1.02rem;
  padding: .85rem 1.6rem; border: 2px solid var(--accent); border-radius: var(--radius);
  background: var(--accent); color: #fff; text-decoration: none; cursor: pointer;
  box-shadow: var(--shadow-sm); transition: background .18s ease, box-shadow .18s ease, transform .18s ease;
}
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; box-shadow: var(--shadow-md); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn.secondary { background: transparent; color: var(--accent); }
.btn.secondary:hover { background: var(--accent-wash); color: var(--accent-hover); }

/* ---------- Bandeau légal ---------- */
.legal-flag {
  display: inline-flex; align-items: center; gap: .55rem;
  background: var(--alert-wash); color: var(--alert); border: 1px solid #EBC9C6;
  border-radius: 100px; padding: .4rem 1rem; font-weight: 600; font-size: .92rem; margin-bottom: var(--s-3);
}
.legal-flag::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: var(--alert); flex: none; }

/* ---------- Hero ---------- */
.hero { padding: var(--s-6) 0 var(--s-5); background: linear-gradient(180deg, var(--surface) 0%, var(--paper) 100%); border-bottom: 1px solid var(--border); }
.hero h1 { max-width: 20ch; }
.hero .lede { font-size: 1.22rem; color: var(--navy-soft); max-width: 60ch; margin-bottom: var(--s-3); }
.hero-actions { display: flex; gap: var(--s-2); flex-wrap: wrap; align-items: center; }
.hero-note { font-size: .93rem; color: var(--ink-muted); margin-top: var(--s-2); }

/* Bandeau de preuve chiffrée */
.proof-bar { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: var(--s-3); margin-top: var(--s-5); padding-top: var(--s-4); border-top: 1px solid var(--border); }
.proof-bar .stat { display: block; }
.proof-bar .stat b { display: block; font-family: 'Lexend', sans-serif; font-size: 2rem; font-weight: 700; color: var(--navy); line-height: 1.1; }
.proof-bar .stat span { font-size: .95rem; color: var(--ink-muted); }

/* ---------- Sections ---------- */
section { padding: var(--s-6) 0; }
section.alt { background: var(--surface); border-block: 1px solid var(--border); }
.section-head { max-width: 62ch; margin-bottom: var(--s-4); }
.section-head p { color: var(--navy-soft); font-size: 1.1rem; }
.eyebrow { display: block; font-family: 'Lexend', sans-serif; font-size: .82rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--accent-tint); margin-bottom: .6rem; }

.cols { display: grid; gap: var(--s-3); grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--s-3); box-shadow: var(--shadow-sm); }
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }
.card .step-num { display: inline-flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--accent-wash); color: var(--accent); font-family: 'Lexend', sans-serif; font-weight: 700; margin-bottom: var(--s-1); }

ul.checks { list-style: none; padding: 0; margin: 0 0 var(--s-2); }
ul.checks li { position: relative; padding-left: 1.8rem; margin-bottom: .6rem; }
ul.checks li::before {
  content: ""; position: absolute; left: 0; top: .45em; width: 1.1rem; height: .6rem;
  border-left: 2.5px solid var(--ok); border-bottom: 2.5px solid var(--ok); transform: rotate(-45deg);
}

/* ---------- Tarifs ---------- */
.pricing .card { display: flex; flex-direction: column; }
.pricing .card.featured { border: 2px solid var(--accent); box-shadow: var(--shadow-lg); position: relative; }
.pricing .badge { position: absolute; top: -.85rem; left: var(--s-3); background: var(--accent); color: #fff; font-family: 'Lexend', sans-serif; font-size: .8rem; font-weight: 600; padding: .2rem .8rem; border-radius: 100px; }
.price { font-family: 'Lexend', sans-serif; font-size: 2.1rem; font-weight: 700; margin: .3rem 0 .1rem; }
.price small { display: block; font-size: .95rem; font-weight: 400; color: var(--ink-muted); margin-top: .2rem; }
.pricing .card > :last-child { margin-top: auto; }

/* ---------- Formulaire lead ---------- */
form.lead { display: flex; gap: var(--s-1); flex-wrap: wrap; align-items: flex-end; margin-top: var(--s-3); }
form.lead label { flex-basis: 100%; font-weight: 600; margin-bottom: .3rem; }
form.lead input[type="email"] {
  flex: 1 1 300px; font-family: inherit; font-size: 1.05rem; padding: .8rem 1rem;
  border: 2px solid var(--border-strong); border-radius: var(--radius); background: var(--surface); color: var(--navy);
}
form.lead input[type="email"]::placeholder { color: #6B7686; }
.notice-ok { background: #EAF6EF; border: 1px solid #B7DCC6; color: var(--ok); padding: .9rem 1.2rem; border-radius: var(--radius); font-weight: 600; }
.error { background: var(--alert-wash); border: 1px solid #EBC9C6; color: var(--alert); padding: .8rem 1.1rem; border-radius: var(--radius); font-weight: 600; }

/* ---------- FAQ / details ---------- */
details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--s-2) var(--s-3); margin-bottom: var(--s-1); }
details[open] { box-shadow: var(--shadow-sm); }
details summary { font-family: 'Lexend', sans-serif; font-weight: 600; cursor: pointer; list-style-position: outside; }
details summary::marker { color: var(--accent-tint); }
details p { margin: var(--s-1) 0 0; color: var(--navy-soft); }

/* ---------- Articles / guides ---------- */
.article { padding: var(--s-4) 0 var(--s-6); }
.breadcrumb { font-size: .9rem; margin-bottom: var(--s-3); }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 0; color: var(--ink-muted); }
.breadcrumb li + li::before { content: "›"; margin-right: .5rem; color: var(--border-strong); }
.crumb-cluster { color: var(--ink-muted); }
.article-head { margin-bottom: var(--s-4); padding-bottom: var(--s-3); border-bottom: 1px solid var(--border); }
.article-meta { font-size: .93rem; color: var(--ink-muted); display: flex; gap: .6rem; flex-wrap: wrap; margin: 0; }

.prose { font-size: 1.09rem; line-height: 1.75; }
.prose h2 { margin-top: var(--s-5); padding-top: var(--s-1); }
.prose h3 { margin-top: var(--s-4); }
.prose ul, .prose ol { padding-left: 1.4rem; margin-bottom: var(--s-2); }
.prose li { margin-bottom: .5rem; }
.prose strong { font-weight: 700; }
.prose table { width: 100%; border-collapse: collapse; margin: var(--s-3) 0; font-size: .98rem; background: var(--surface); }
.prose caption { text-align: left; font-weight: 600; color: var(--ink-muted); padding-bottom: .6rem; font-size: .95rem; }
.prose th, .prose td { border: 1px solid var(--border); padding: .7rem .9rem; text-align: left; vertical-align: top; }
.prose thead th { background: var(--accent-wash); font-family: 'Lexend', sans-serif; }
.prose blockquote { margin: var(--s-3) 0; padding-left: var(--s-3); border-left: 4px solid var(--accent-tint); color: var(--navy-soft); font-style: italic; }

.answer-block {
  background: var(--accent-wash); border-left: 4px solid var(--accent-tint);
  padding: var(--s-3); border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 1.13rem; line-height: 1.6; color: var(--navy); margin-bottom: var(--s-4);
}
aside.note {
  background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--navy-soft);
  padding: var(--s-2) var(--s-3); border-radius: 0 var(--radius) var(--radius) 0; margin: var(--s-3) 0;
  box-shadow: var(--shadow-sm);
}
aside.note p:last-child { margin-bottom: 0; }
.stat { font-family: 'Lexend', sans-serif; font-weight: 700; color: var(--accent); }

.faq-block { margin-top: var(--s-5); }
.cta-inline { background: var(--navy); color: #fff; border-radius: var(--radius); padding: var(--s-4); margin: var(--s-5) 0; box-shadow: var(--shadow-md); }
.cta-inline h2 { color: #fff; margin-top: 0; }
.cta-inline p { color: #D6DEE9; }
.cta-inline .btn { background: #fff; color: var(--navy); border-color: #fff; }
.cta-inline .btn:hover { background: #E8EEF5; color: var(--navy); border-color: #E8EEF5; }
.cta-inline .btn.secondary { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.cta-inline .btn.secondary:hover { background: rgba(255,255,255,.12); color: #fff; }

.guide-nav { margin-top: var(--s-5); padding-top: var(--s-3); border-top: 1px solid var(--border); }
.guide-nav h2 { font-size: 1.1rem; }
.guide-nav ul { list-style: none; padding: 0; display: grid; gap: .6rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.guide-nav li a { display: block; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: .85rem 1rem; text-decoration: none; font-weight: 600; color: var(--navy); }
.guide-nav li a:hover { border-color: var(--accent-tint); background: var(--accent-wash); color: var(--accent); }

/* Liste des guides sur la landing */
.guide-grid { display: grid; gap: var(--s-2); grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.guide-grid a { display: block; background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--accent-tint); border-radius: var(--radius); padding: var(--s-2) var(--s-3); text-decoration: none; box-shadow: var(--shadow-sm); }
.guide-grid a:hover { box-shadow: var(--shadow-md); border-left-color: var(--accent); }
.guide-grid .g-cluster { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .07em; color: var(--accent-tint); font-weight: 600; margin-bottom: .3rem; }
.guide-grid .g-title { display: block; font-family: 'Lexend', sans-serif; font-weight: 600; color: var(--navy); line-height: 1.35; }

/* ---------- Pied de page ---------- */
footer.site { background: var(--navy); color: #C7D2E0; padding: var(--s-5) 0 var(--s-4); margin-top: var(--s-6); }
footer.site a { color: #fff; }
footer.site a:hover { color: #C7D2E0; }
footer.site .foot-cols { display: grid; gap: var(--s-3); grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); margin-bottom: var(--s-4); }
footer.site h2 { color: #fff; font-size: 1rem; margin-bottom: var(--s-1); }
footer.site ul { list-style: none; padding: 0; margin: 0; }
footer.site li { margin-bottom: .45rem; font-size: .96rem; }
footer.site .foot-legal { border-top: 1px solid rgba(255,255,255,.16); padding-top: var(--s-3); font-size: .9rem; }
footer.site .foot-legal p { margin-bottom: .4rem; }

/* ---------- Impression ---------- */
@media print {
  header.site, footer.site, .cta-inline, .guide-nav { display: none; }
  body { background: #fff; font-size: 11pt; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #555; }
}
