/* ============================================================
   le-collagene.fr — Redesign Claude Design "Champagne"
   Warm-neutral · DM Sans + Cormorant Garamond italic + IBM Plex Mono
   Axe : féminin-premium-scientifique (chaleureux, sobre, savant)
   Adapté du handoff Claude Design (design_handoff_lecollagene)
   ============================================================ */

* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --maxw: 1280px;
  --gutter: 28px;
  --radius-sm: 12px;
  --radius: 16px;
  --radius-lg: 20px;
  --radius-xl: 22px;
  --radius-pill: 999px;

  /* Base — warm-neutral champagne (aucun bleu, aucun ton froid) */
  --bg:            #FBF7F0;   /* warm off-white */
  --bg-2:          #F5ECDD;   /* section tint — champagne doux */
  --bg-3:          #F9F0E2;   /* nude très doux */
  --surface:       #FFFDF8;   /* carte (légèrement plus clair que bg) */
  --surface-2:     #F5ECDD;
  --border:        #E4D8C8;   /* taupe chaud */
  --border-strong: #C9B89E;

  --text:          #1B1812;   /* warm dark, presque noir */
  --text-2:        #5B5044;   /* secondaire chaud */
  --text-mute:     #9B8E7C;   /* muted chaud */

  --accent:        #1B1812;   /* ink éditorial (CTA) */
  --accent-ink:    #FBF7F0;

  /* cognac profond — italiques accent, liens, scores, "·" du logo */
  --accent-gold:   #5B4029;
  --accent-deep:   #5B4029;
  --bronze:        #8B6B3E;   /* bronze chaud — filets, traits d'icônes */
  --nude:          #D9B895;   /* champagne — filets eyebrow, nombres décoratifs */
  --nude-soft:     #EFDDC4;   /* nude doux — fond badge, traits boutons */
  --nude-ultra:    #F9F0E2;   /* nude ultra-doux — fond callout */

  --action:        #5B4029;   /* cognac — scores + rang */
  --action-2:      #4A341F;

  --good:          #5B7A52;
  --warn:          #9C7A3A;
  --bad:           #A65541;

  --font-sans:    "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Cormorant Garamond", "Cormorant", Georgia, serif;
  --font-mono:    "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --font-serif:   "Cormorant Garamond", Georgia, serif;

  --display-tracking: -0.02em;

  --shadow-sm: 0 1px 0 rgba(27,24,18,.04);
  --shadow:    0 14px 44px -18px rgba(27,24,18,.16);
}

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }

/* ---------- Typography ---------- */
/* Titres : DM Sans gras (PAS de serif). Italiques serif réservés aux accents via .ital */
h1, h2, h3, h4 {
  font-family: var(--font-sans);
  letter-spacing: var(--display-tracking);
  font-weight: 600;
  line-height: 1.1;
  color: var(--text);
  text-wrap: balance;
}
h1 { font-size: clamp(38px, 5vw, 64px); line-height: 1.05; }
h2 { font-size: clamp(28px, 3.4vw, 44px); line-height: 1.1; }
h3 { font-size: clamp(20px, 1.7vw, 24px); line-height: 1.2; letter-spacing: -0.01em; }
h4 { font-size: 16px; font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; }

/* accent serif italique cognac (mots évocateurs : collagène, vraiment, votre…) */
.ital { font-family: var(--font-display); font-style: italic; font-weight: 500; color: var(--accent-deep); letter-spacing: 0; }
.ital-nude { font-family: var(--font-display); font-style: italic; font-weight: 500; color: var(--nude); letter-spacing: 0; }

p { color: var(--text-2); }
.lede { font-size: 19px; color: var(--text-2); max-width: 60ch; line-height: 1.65; }
.mono { font-family: var(--font-mono); font-size: 0.9em; letter-spacing: -0.01em; }

/* ---------- Layout ---------- */
.page { min-height: 100vh; display: flex; flex-direction: column; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-narrow { width: 100%; max-width: 840px; margin: 0 auto; padding: 0 var(--gutter); }
.wrap-wide { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(56px, 7vw, 112px) 0; }
.section-sm { padding: clamp(36px, 4vw, 56px) 0; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* ---------- Buttons (pilules) ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 22px;
  border-radius: var(--radius-pill);
  font-weight: 500; font-size: 14px; letter-spacing: 0;
  transition: transform .12s ease, background .15s ease, border-color .15s ease;
  border: 1px solid transparent; white-space: nowrap; cursor: pointer;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn-primary:hover { background: #0D0B07; border-color: #0D0B07; color: var(--accent-ink); }
.btn-secondary { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-secondary:hover { background: var(--bg-2); border-color: var(--border-strong); }
.btn-ghost { color: var(--text); padding: 12px 14px; }
.btn-ghost:hover { background: var(--surface); }
.btn-lg { padding: 16px 26px; font-size: 15px; }
/* boutons dans un bloc sombre (comparatif teaser) */
.invert .btn-primary { background: var(--bg); color: var(--text); border-color: var(--bg); }
.invert .btn-primary:hover { background: #fff; border-color: #fff; }

/* ---------- Cards & surfaces ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.card-hover { transition: border-color .18s, transform .18s, box-shadow .18s; }
.card-hover:hover { border-color: var(--border-strong); transform: translateY(-2px); box-shadow: var(--shadow); }
.surface-2 { background: var(--surface-2); }
.hairline { border: 1px solid var(--border); }
.divider { height: 1px; background: var(--border); width: 100%; }

/* ---------- Pills / badges ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: var(--radius-pill);
  font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  background: var(--bg-2); border: 1px solid var(--border);
  color: var(--text-2); font-family: var(--font-sans);
}
.pill-mono { font-family: var(--font-mono); font-weight: 500; letter-spacing: 0.04em; text-transform: none; }
.pill-accent { background: var(--nude-soft); color: var(--accent-deep); border-color: var(--nude); }
.pill-good { background: var(--nude-soft); color: var(--accent-deep); border-color: var(--nude); }
.pill-warn { background: #F2E7CC; color: var(--warn); border-color: #E4D2A6; }
.pill-bad  { background: #F2DED7; color: var(--bad); border-color: #E4C2B6; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; gap: 28px; height: 70px; }
.nav-logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-size: 24px; font-weight: 500; font-style: italic;
  letter-spacing: 0.01em; color: var(--text);
}
.nav-logo .mono-c {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--nude-soft); border: 1px solid var(--nude);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--accent-deep); font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: 18px;
  flex-shrink: 0;
}
.nav-links { display: flex; gap: 2px; flex: 1; }
.nav-links a {
  padding: 8px 12px; border-radius: var(--radius-sm);
  font-size: 14px; color: var(--text-2); cursor: pointer; font-weight: 500;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); background: var(--bg-2); }
.nav-burger { display: none; }

/* ---------- Footer ---------- */
.footer { margin-top: auto; border-top: 1px solid var(--border); background: var(--bg-2); padding: 72px 0 36px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 48px; }
.footer h5 { font-size: 11px; font-family: var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text-mute); margin-bottom: 16px; font-weight: 500; }
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.footer ul a { color: var(--text-2); font-size: 14px; }
.footer ul a:hover { color: var(--text); }
.footer-base { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--text-mute); font-family: var(--font-mono); gap: 16px; flex-wrap: wrap; }
.footer-disclaimer { margin-top: 18px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 11.5px; color: var(--text-mute); line-height: 1.55; }
.footer-disclaimer strong { color: var(--text-2); font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .06em; font-size: 10.5px; }

/* ---------- Eyebrow ---------- */
.eyebrow {
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-deep);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--nude); }

/* ---------- Breadcrumb ---------- */
.breadcrumb { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 12px; color: var(--text-mute); padding: 18px 0 0; flex-wrap: wrap; }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb span.sep { opacity: .5; }

/* ---------- Score / bars ---------- */
.score { display: inline-flex; align-items: baseline; gap: 4px; font-weight: 600; }
.score-big { font-size: 44px; line-height: 1; color: var(--accent-deep); font-family: var(--font-display); font-style: italic; font-weight: 500; }
.score-med { font-size: 26px; color: var(--accent-deep); font-family: var(--font-display); font-style: italic; }
.score-denom { color: var(--text-mute); font-size: .42em; font-weight: 400; font-family: var(--font-mono); }
.rank { font-family: var(--font-display); font-style: italic; font-size: 26px; font-weight: 500; color: var(--nude); }
.bar { position: relative; height: 6px; background: var(--bg-2); border-radius: 999px; overflow: hidden; border: 1px solid var(--border); }
.bar-fill { position: absolute; inset: 0 auto 0 0; background: var(--accent-deep); border-radius: 999px; }

/* ---------- Placeholder image ---------- */
.placeholder {
  position: relative;
  background: repeating-linear-gradient(135deg, #EAD8BD 0 14px, #F2E4CC 14px 28px);
  border: 1px solid var(--border); border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-mute); font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.08em; overflow: hidden;
}

/* ---------- Stat block ---------- */
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat-num { font-family: var(--font-display); font-style: italic; font-size: clamp(30px, 3vw, 36px); font-weight: 500; color: var(--accent-deep); line-height: 1; }
.stat-num .unit { font-size: .5em; color: var(--text-mute); margin-left: 4px; font-style: normal; font-family: var(--font-mono); }
.stat-lbl { font-family: var(--font-mono); font-size: 11px; letter-spacing: .04em; color: var(--text-mute); }

/* ---------- helpers ---------- */
.accent { color: var(--accent-deep); }
.text-mute { color: var(--text-mute); }
.text-2 { color: var(--text-2); }
.mono-num { font-family: var(--font-mono); font-feature-settings: "tnum"; }

.section-head { display: flex; align-items: end; justify-content: space-between; margin-bottom: 56px; gap: 24px; flex-wrap: wrap; }
.section-head .left { max-width: 64ch; }
.section-head h2 { margin-top: 24px; }

.banner { background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-lg); padding: 32px; }

/* ============================================================
   Easy TOC injecté dans le contenu WP (#ez-toc-container)
   Restyle propre (DA Champagne). Masqué sur les articles via le
   gabarit article.php (la sidebar .toc le remplace).
   ============================================================ */
.lcol-redesign #ez-toc-container { background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); padding:20px 24px; margin:0 0 32px; max-width:760px; width:auto; float:none; box-shadow:none; }
.lcol-redesign .ez-toc-title-container { margin:0 0 12px; }
.lcol-redesign .ez-toc-title { font-family:var(--font-mono); font-size:11px; text-transform:uppercase; letter-spacing:.1em; color:var(--text-mute); font-weight:500; }
.lcol-redesign #ez-toc-container nav > ul, .lcol-redesign .ez-toc-list { list-style:none; margin:0; padding:0; }
.lcol-redesign .ez-toc-list ul { list-style:none; margin:4px 0 0 16px; padding:0; }
.lcol-redesign .ez-toc-list li { margin:0 0 7px; }
.lcol-redesign .ez-toc-link { color:var(--text-2); text-decoration:none; border:0; font-size:14.5px; line-height:1.5; }
.lcol-redesign .ez-toc-link:hover { color:var(--accent-deep); }
.lcol-redesign .ez-toc-toggle, .lcol-redesign .ez-toc-js-icon-con, .lcol-redesign .ez-toc-title-toggle .ez-toc-pull-right { display:none !important; }

/* ============================================================
   OVERLAY pages WP rendues par Astra (passthrough)
   Scopé sous body.lcol-redesign — applique la peau Champagne
   ============================================================ */
body.lcol-redesign .prose { color: var(--text-2); font-size: 17px; line-height: 1.75; }
body.lcol-redesign .prose p { margin-bottom: 18px; }
body.lcol-redesign .prose h2 { margin: 40px 0 16px; font-size: clamp(26px, 2.4vw, 34px); }
body.lcol-redesign .prose h3 { margin: 32px 0 12px; }
body.lcol-redesign .prose ul, body.lcol-redesign .prose ol { margin: 0 0 18px 24px; color: var(--text-2); }
body.lcol-redesign .prose li { margin-bottom: 8px; }
body.lcol-redesign .prose blockquote { margin: 24px 0; padding: 18px 22px; border-left: 3px solid var(--nude); background: var(--surface); border-radius: 0 var(--radius) var(--radius) 0; font-style: italic; color: var(--text); }
body.lcol-redesign .prose strong { color: var(--text); }
body.lcol-redesign .prose a { color: var(--text); text-decoration: underline; text-decoration-color: var(--nude); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }

/* ---------- Mobile ---------- */
@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav-links { display: none; position: absolute; top: 70px; left: 0; right: 0; flex-direction: column; background: var(--bg); border-bottom: 1px solid var(--border); padding: 8px var(--gutter) 16px; gap: 2px; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px; border-radius: var(--radius-sm); }
  .nav-burger { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid var(--border); border-radius: var(--radius-sm); }
}
