/* style.css — Conseil constitutionnel (microsite Open Investigation)
   Charte : fond blanc, Montserrat, boutons carrés, accent bleu #1e3a8a. */

:root {
  --bg: #ffffff;
  --bg-soft: #f7f7f8;
  --line: #e6e8ec;
  --ink: #14161a;
  --body: #2a2e35;
  --muted: #6b7280;
  --accent: #1e3a8a;
  --accent-soft: #eef1f8;
  --radius: 0; /* boutons carrés */
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: 'Playfair Display', serif; color: var(--ink); line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 800; margin: 0 0 1rem; }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.3rem); font-weight: 700; margin: 0 0 1.2rem; }
h3 { font-size: 1.15rem; font-weight: 600; margin: 0 0 .5rem; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

p { margin: 0 0 1rem; }
strong { font-weight: 600; color: var(--ink); }

/* ── Bannière cookies ── */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 60;
  background: var(--ink); color: #fff; padding: 14px 20px;
}
.cookie-inner { max-width: 1080px; margin: 0 auto; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.cookie-inner p { margin: 0; flex: 1; font-size: .95rem; }
.cookie-banner strong { color: #fff; }

/* ── Boutons ── */
.btn {
  font-family: inherit; font-size: .95rem; font-weight: 600;
  background: var(--accent); color: #fff; border: 0;
  padding: 10px 18px; cursor: pointer; border-radius: var(--radius);
  display: inline-block; max-width: 100%; white-space: normal;
  text-decoration: none; box-sizing: border-box;
}
.btn:hover { background: #16306e; }
.btn-ghost { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
.btn-ghost:hover { background: var(--accent-soft); }

/* ── Header ── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #fff; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 24px; gap: 16px;
}
.brand { display: flex; flex-direction: column; line-height: 1.15; }
.brand-title { font-family: 'Playfair Display', serif; font-weight: 800; font-size: 1.15rem; color: var(--ink); }
.brand-sub { font-size: .72rem; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }
.site-nav { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.site-nav a { color: var(--body); font-size: .92rem; font-weight: 500; }
.site-nav a:hover { color: var(--accent); text-decoration: none; }
.burger { display: none; background: none; border: 0; font-size: 1.6rem; cursor: pointer; color: var(--ink); }

/* ── Hero ── */
.hero { padding: 72px 24px 56px; max-width: 1080px; margin: 0 auto; }
.kicker { color: var(--accent); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; font-size: .85rem; margin-bottom: 12px; }
.lead { font-size: 1.15rem; color: var(--body); max-width: 780px; }
.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 32px; }
.stat { border: 1px solid var(--line); padding: 18px; background: var(--bg-soft); }
.stat-num { display: block; font-family: 'Playfair Display', serif; font-size: 1.9rem; font-weight: 800; color: var(--accent); }
.stat-label { font-size: .82rem; color: var(--muted); }

/* ── Sections ── */
.section { padding: 48px 24px; max-width: 1080px; margin: 0 auto; }
.section-sub { color: var(--muted); max-width: 720px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.card { border: 1px solid var(--line); padding: 22px; background: #fff; }
.card-good { border-top: 4px solid #2e7d32; }
.card-bad { border-top: 4px solid #b3261e; }
.fact-list { margin: 0; padding-left: 1.1rem; }
.fact-list li { margin-bottom: .6rem; }

/* ── Présidents ── */
.presidents { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.president-card { border: 1px solid var(--line); padding: 18px; background: #fff; }
.president-card img { width: 100%; aspect-ratio: 4/5; object-fit: cover; background: var(--bg-soft); }
.president-years { color: var(--accent); font-weight: 600; font-size: .9rem; }

/* ── Membres (fiches) ── */
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin: 16px 0 22px; }
.chip { font-family: inherit; font-size: .88rem; font-weight: 600; background: #fff; border: 1px solid var(--line); padding: 8px 14px; cursor: pointer; border-radius: var(--radius); color: var(--body); }
.chip.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.membres-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.membre-card { border: 1px solid var(--line); padding: 16px; background: #fff; display: flex; flex-direction: column; }
.membre-card img { width: 100%; aspect-ratio: 4/5; object-fit: cover; background: var(--bg-soft); margin-bottom: 12px; }
.membre-card .noimg { width: 100%; aspect-ratio: 4/5; background: var(--bg-soft); display: flex; align-items: center; justify-content: center; color: var(--muted); font-family: 'Playfair Display', serif; font-size: 2.4rem; margin-bottom: 12px; }
.membre-name { font-family: 'Playfair Display', serif; font-weight: 700; font-size: 1.05rem; color: var(--ink); margin: 0 0 4px; }
.membre-role { font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.membre-meta { font-size: .85rem; color: var(--muted); margin-bottom: 6px; }
.membre-bio { font-size: .86rem; color: var(--body); }
.tag { display: inline-block; font-size: .72rem; font-weight: 600; color: #fff; padding: 2px 8px; margin-right: 4px; border-radius: var(--radius); }
.badge-president { background: var(--accent); }
.badge-droit { background: #555; }

/* ── Par année ── */
.year-selector { display: flex; align-items: center; gap: 16px; margin: 20px 0 24px; max-width: 560px; }
.year-selector label { font-weight: 600; }
.year-selector input[type=range] { flex: 1; accent-color: var(--accent); }
.year-value { font-family: 'Playfair Display', serif; font-size: 2rem; font-weight: 800; color: var(--accent); min-width: 84px; text-align: right; }

/* ── Couleurs ── */
.couleurs-bars { display: flex; flex-direction: column; gap: 14px; margin-top: 8px; }
.cbar-row { display: grid; grid-template-columns: 120px 1fr 52px; align-items: center; gap: 12px; }
.cbar-label { font-size: .88rem; font-weight: 600; }
.cbar-track { background: var(--bg-soft); height: 22px; overflow: hidden; }
.cbar-fill { height: 100%; display: block; }
.cbar-num { font-size: .88rem; color: var(--muted); text-align: right; }

/* ── Affaires ── */
.affaires { display: flex; flex-direction: column; gap: 16px; }
.affaire { border-left: 4px solid var(--accent); background: var(--bg-soft); padding: 18px 20px; }
.affaire h3 { margin-top: 0; }
.affaire .affaire-date { color: var(--accent); font-weight: 600; font-size: .85rem; }

/* ── Chronologie ── */
.timeline { border-left: 3px solid var(--line); padding-left: 24px; display: flex; flex-direction: column; gap: 18px; }
.tl-item { position: relative; }
.tl-item::before { content: ''; position: absolute; left: -31px; top: 6px; width: 11px; height: 11px; background: var(--accent); border-radius: 50%; }
.tl-year { font-family: 'Playfair Display', serif; font-weight: 800; color: var(--accent); }

/* ── Footer ── */
.site-footer { border-top: 1px solid var(--line); padding: 32px 24px; background: var(--bg-soft); margin-top: 32px; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 12px; max-width: 1080px; margin-left: auto; margin-right: auto; }
.footer-links a { font-size: .9rem; }
.footer-note { font-size: .82rem; color: var(--muted); max-width: 1080px; margin: 0 auto; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .presidents { grid-template-columns: 1fr; }
  .membres-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .burger { display: block; }
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 12px 20px; gap: 4px; }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 8px 0; border-bottom: 1px solid var(--bg-soft); }
  .membres-grid { grid-template-columns: 1fr; }
}

/* ═══════════════ V1 multi-pages (2026-09-04) ═══════════════ */
.president-card{ display:block; color:inherit; text-decoration:none; transition:border-color .15s, box-shadow .15s, transform .1s; }
.president-card:hover{ border-color:var(--accent); box-shadow:0 6px 18px rgba(20,30,60,.10); transform:translateY(-2px); }
.card-more{ display:inline-block; margin-top:10px; color:var(--accent); font-weight:600; font-size:.9rem; }
.section-cta{ margin-top:22px; }
a.affaire{ display:block; color:inherit; text-decoration:none; transition:box-shadow .15s, transform .1s; }
a.affaire:hover{ box-shadow:0 6px 18px rgba(20,30,60,.10); transform:translateY(-2px); }

.page-title{ font-family:'Playfair Display',serif; font-size:clamp(2rem,4vw,2.8rem); margin:0 0 6px; }

.groupe{ margin:0 0 36px; }
.groupe-title{ font-family:'Playfair Display',serif; font-size:1.5rem; border-bottom:2px solid var(--line); padding-bottom:8px; margin:0 0 18px; display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.groupe-count{ font-family:'Montserrat',sans-serif; font-size:.78rem; font-weight:700; color:#fff; background:var(--accent); padding:2px 9px; border-radius:999px; }

.detail{ max-width:820px; }
.back-link{ display:inline-block; color:var(--accent); font-weight:600; margin-bottom:18px; text-decoration:none; }
.back-link:hover{ text-decoration:underline; }
.detail-hero{ display:flex; gap:24px; align-items:flex-start; border-bottom:2px solid var(--line); padding-bottom:22px; margin-bottom:22px; flex-wrap:wrap; }
.detail-portrait{ width:150px; aspect-ratio:4/5; object-fit:cover; background:var(--bg-soft); border:1px solid var(--line); flex:none; }
.detail-hero h1{ font-family:'Playfair Display',serif; font-size:clamp(1.8rem,4vw,2.6rem); margin:6px 0 8px; }
.detail-meta{ color:var(--muted); font-size:.95rem; margin-bottom:8px; }
.detail-meta a{ color:var(--accent); }
.detail-body{ font-size:1.06rem; line-height:1.75; }
.detail-body p{ margin:0 0 16px; }
.detail-lead{ font-size:1.18rem; font-weight:600; color:var(--ink); }
.callout{ border-left:4px solid var(--accent); background:var(--accent-soft); padding:16px 20px; margin:22px 0; }
.callout-lbl{ display:block; text-transform:uppercase; letter-spacing:.08em; font-size:.72rem; font-weight:700; color:var(--accent); margin-bottom:6px; }
.detail-nav{ display:flex; justify-content:space-between; gap:12px; margin-top:34px; border-top:1px solid var(--line); padding-top:18px; }
.detail-nav a{ color:var(--accent); font-weight:600; text-decoration:none; }
.detail-nav a:hover{ text-decoration:underline; }
.detail .membres-grid, .detail .affaires{ margin-top:12px; }
@media(max-width:900px){ .detail-portrait{ width:110px; } }
.fact-link{ display:block; color:inherit; text-decoration:none; }
.fact-link:hover{ color:var(--accent); }
.fact-link .fact-more{ color:var(--accent); font-weight:600; white-space:nowrap; }
.fact-list li{ margin-bottom:12px; }

/* ═══════════════ Hero stats enrichies (2026-09-04) ═══════════════ */
.hero-stats{ grid-template-columns:repeat(3,1fr); gap:14px; }
.stat{ position:relative; background:var(--bg); border:1px solid var(--line); border-top:3px solid var(--accent);
  padding:18px 18px 16px; transition:box-shadow .15s, transform .1s; }
.stat:hover{ box-shadow:0 8px 22px rgba(20,30,60,.09); transform:translateY(-2px); }
.stat-num{ display:block; font-family:'Playfair Display',serif; font-size:2.2rem; font-weight:800; line-height:1; color:var(--accent); }
.stat-label{ display:block; font-weight:700; color:var(--ink); margin-top:6px; font-size:.95rem; }
.stat-detail{ display:block; color:var(--muted); font-size:.82rem; line-height:1.5; margin-top:6px; }
.stat-detail em{ font-style:italic; color:var(--body); }
@media(max-width:760px){ .hero-stats{ grid-template-columns:1fr 1fr; } }
@media(max-width:460px){ .hero-stats{ grid-template-columns:1fr; } }

/* --- Schéma composition (fonctionnement.html) --- */
.schema{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin:22px 0 8px}
.schema-col{background:var(--bg-soft);border:1px solid var(--line);border-top:3px solid var(--accent);border-radius:10px;padding:18px 14px;text-align:center}
.schema-h{display:block;font-weight:600;font-size:.82rem;color:var(--accent);letter-spacing:.02em}
.schema-dots{display:block;font-size:1.5rem;color:var(--accent);letter-spacing:.35em;margin:10px 0 4px}
.schema-n{display:block;font-size:.8rem;color:var(--muted)}
.flag{color:var(--muted);font-style:italic;font-size:.86em}
@media(max-width:640px){.schema{grid-template-columns:1fr}}

/* --- Icônes de section --- */
.sec-ico{width:26px;height:26px;flex:0 0 auto;margin-right:10px;vertical-align:-5px;fill:none;stroke:var(--accent);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.mini-ico{width:18px;height:18px;margin-right:7px;vertical-align:-3px;fill:none;stroke:var(--accent);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.groupe-title{display:flex;align-items:center;flex-wrap:wrap}

/* --- Argent : chiffres --- */
.money-figures{display:grid;grid-template-columns:repeat(2,1fr);gap:16px;margin:20px 0}
.money-fig{background:var(--bg-soft);border:1px solid var(--line);border-radius:12px;padding:20px;text-align:center}
.money-fig.accent{border-top:3px solid var(--accent)}
.money-lbl{display:block;font-size:.82rem;color:var(--muted);text-transform:uppercase;letter-spacing:.04em}
.money-num{display:block;font-family:"Playfair Display",serif;font-size:2.4rem;font-weight:800;color:var(--ink);line-height:1.1;margin:6px 0}
.money-sub{display:block;font-size:.85rem;color:var(--muted)}

/* --- Barre de comparaison --- */
.bar-compare{background:var(--bg-soft);border:1px solid var(--line);border-radius:12px;padding:18px 20px;margin:8px 0 20px}
.bar-title{font-weight:600;margin:0 0 14px}
.bar-row{display:grid;grid-template-columns:200px 1fr auto;align-items:center;gap:12px;margin:8px 0}
.bar-lbl{font-size:.85rem;color:var(--body)}
.bar-track{background:#e7e9ef;border-radius:6px;height:16px;overflow:hidden}
.bar-fill{display:block;height:100%;background:var(--accent);border-radius:6px}
.bar-fill.hot{background:#c94f4f}
.bar-val{font-weight:700;font-size:.9rem;white-space:nowrap}
.bar-note{font-size:.85rem;color:var(--muted);margin:12px 0 0}
@media(max-width:640px){.bar-row{grid-template-columns:1fr auto;gap:6px}.bar-lbl{grid-column:1/-1}}

/* --- Callout "chaud" --- */
.callout-hot{border-left-color:#c94f4f;background:#fdf3f2}
.callout-hot .callout-lbl{color:#c94f4f}

/* --- Sous-titres & listes 2 colonnes --- */
.sub-h{font-family:"Playfair Display",serif;font-size:1.25rem;margin:28px 0 8px}
.fact-list.two-col{columns:2;column-gap:32px}
@media(max-width:640px){.fact-list.two-col{columns:1}}

/* --- Conflits d'intérêts : cartes avec portrait --- */
.conflit-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin:14px 0 8px}
.conflit-card{background:var(--bg-soft);border:1px solid var(--line);border-radius:12px;overflow:hidden;display:flex;flex-direction:column}
.conflit-card img{width:100%;height:180px;object-fit:cover;object-position:center top;filter:grayscale(.15)}
.conflit-card>div{padding:14px 16px}
.conflit-card h4{margin:0 0 6px;font-size:1.02rem}
.conflit-card p{margin:0;font-size:.88rem;color:var(--body);line-height:1.5}
@media(max-width:820px){.conflit-grid{grid-template-columns:1fr}.conflit-card{flex-direction:row}.conflit-card img{width:120px;height:auto;flex:0 0 auto}}

/* --- Explorer (navigation) --- */
.explorer-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}
.explorer-card{display:block;background:var(--bg-soft);border:1px solid var(--line);border-top:3px solid var(--accent);border-radius:12px;padding:18px;text-decoration:none;transition:transform .12s,box-shadow .12s}
.explorer-card:hover{transform:translateY(-3px);box-shadow:0 8px 22px rgba(30,58,138,.12)}
.explorer-k{display:block;font-weight:700;color:var(--ink);margin-bottom:4px}
.explorer-d{display:block;font-size:.85rem;color:var(--muted);line-height:1.4}
@media(max-width:820px){.explorer-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:480px){.explorer-grid{grid-template-columns:1fr}}

/* --- Hero de page (avec image) --- */
.page-hero{position:relative;margin:0 0 10px;padding:64px 28px 30px;border-radius:0 0 16px 16px;background-size:cover;background-position:center 30%;color:#fff;overflow:hidden}
.page-hero-inner{max-width:820px}
.kicker.light{color:#dbe4ff}
.page-hero-title{font-family:"Playfair Display",serif;font-size:2.8rem;font-weight:800;margin:6px 0 10px;color:#fff;line-height:1.05}
.page-hero-sub{font-size:1.05rem;color:#eef2ff;max-width:640px;margin:0}
.page-hero-credit{position:absolute;right:12px;bottom:8px;font-size:.68rem;color:rgba(255,255,255,.7)}
@media(max-width:640px){.page-hero{padding:40px 18px 24px}.page-hero-title{font-size:2rem}}
