:root {
  --bg:       #ffffff;
  --bg-soft:  #f6f8f9;
  --line:     #e6e8ec;
  --ink:      #14161a;
  --body:     #2a2e35;
  --muted:    #6b7280;
  --accent:   #0e7490;   /* bleu caraïbe */
  --accent-ink: #ffffff;
  --accent-soft: #e6f2f5;
}

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

html { scroll-behavior: smooth; }

body {
  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, h4 {
  font-family: 'Playfair Display', serif;
  color: var(--ink);
  line-height: 1.2;
  font-weight: 700;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; margin-bottom: 1rem; }
h3 { font-size: 1.15rem; font-weight: 600; }

p { margin-bottom: 1rem; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
strong { font-weight: 600; color: #14161a; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* ---------- Header ---------- */
header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: #fff; border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: 1080px; margin: 0 auto; padding: 12px 20px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
}
.brand { display: flex; align-items: baseline; gap: 10px; }
.brand a { text-decoration: none; color: var(--ink); }
.brand .site-title { font-family: 'Playfair Display', serif; font-weight: 800; font-size: 1.25rem; color: var(--ink); }
.brand .site-org { font-size: 0.78rem; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; }

nav.main { display: flex; align-items: center; gap: 20px; }
nav.main a { color: var(--body); font-size: 0.92rem; font-weight: 500; }
nav.main a:hover { color: var(--accent); text-decoration: none; }
.nav-cta {
  display: inline-block; padding: 8px 14px; background: var(--accent); color: #fff;
  font-weight: 600; font-size: 0.88rem; border-radius: 0; text-decoration: none;
}
.nav-cta:hover { background: #0a5e73; text-decoration: none; }

.burger { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.burger span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 4px 0; }

/* ---------- Hero ---------- */
.hero { padding: 130px 0 60px; }
.kicker {
  display: inline-block; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 14px;
}
.hero h1 { max-width: 20ch; margin-bottom: 18px; }
.lead { font-size: 1.18rem; color: var(--ink); max-width: 62ch; margin-bottom: 26px; }
.hero-figure { margin: 26px 0; }
.hero-figure img, .hero-figure svg { width: 100%; height: auto; display: block; }
.figcaption { font-size: 0.82rem; color: var(--muted); margin-top: 8px; }

/* ---------- Chiffres clés ---------- */
.keyfacts { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 44px 0; }
.keyfacts h2 { font-size: 1.3rem; margin-bottom: 1.2rem; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.fact { padding: 18px; background: #fff; border: 1px solid var(--line); }
.fact .num { font-family: 'Playfair Display', serif; font-size: 2rem; font-weight: 800; color: var(--accent); }
.fact .lbl { font-size: 0.9rem; color: var(--body); margin-top: 4px; }
.fact .src { font-size: 0.75rem; color: var(--muted); margin-top: 8px; }

/* ---------- Sommaire / cartes ---------- */
.sommaire { padding: 60px 0; }
.sommaire h2 { margin-bottom: 1.4rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.card {
  display: block; background: #fff; border: 1px solid var(--line); padding: 22px;
  text-decoration: none; color: var(--body); transition: border-color .15s, box-shadow .15s;
}
.card:hover { border-color: var(--accent); box-shadow: 0 4px 16px rgba(0,0,0,0.06); text-decoration: none; }
.card .num { font-family: 'Playfair Display', serif; font-weight: 800; color: var(--accent); font-size: 1.1rem; }
.card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.card h3 { margin: 0; color: var(--ink); }
.card p { font-size: 0.94rem; margin: 0; color: var(--body); }

/* ---------- Sections ---------- */
section.sec { padding: 60px 0; border-top: 1px solid var(--line); }
section.sec:nth-of-type(even) { background: var(--bg-soft); }
.sec-head { margin-bottom: 26px; }
.sec-head .kicker { margin-bottom: 8px; }
.sec-body { max-width: 72ch; }
.sec-body p { margin-bottom: 1.1rem; }
.sec-body ul, .sec-body ol { margin: 0 0 1.1rem 1.4rem; }
.sec-body li { margin-bottom: 0.5rem; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
@media (max-width: 720px) { .two-col { grid-template-columns: 1fr; } }

/* Timeline */
.timeline { border-left: 3px solid var(--accent); padding-left: 22px; margin: 18px 0; }
.tl-item { position: relative; padding: 10px 0 14px; }
.tl-item::before {
  content: ''; position: absolute; left: -30px; top: 18px; width: 11px; height: 11px;
  background: var(--accent); border-radius: 50%;
}
.tl-date { font-weight: 700; color: var(--accent); font-size: 0.9rem; }
.tl-item p { margin: 4px 0 0; }

/* ---------- Encadré "à retenir" ---------- */
.callout {
  background: var(--accent-soft); border-left: 4px solid var(--accent);
  padding: 18px 20px; margin: 22px 0;
}
.callout p { margin: 0; color: #0a3d4a; }

/* ---------- Sources ---------- */
.sources { font-size: 0.82rem; color: var(--muted); }
.sources ul { list-style: none; margin: 0; }
.sources li { margin-bottom: 4px; }
.sources a { color: var(--accent); }

/* ---------- Footer ---------- */
footer { background: #14161a; color: #cbd0d6; padding: 44px 0; margin-top: 40px; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 30px; justify-content: space-between; }
.footer-col h4 { color: #fff; font-family: 'Montserrat', sans-serif; font-size: 0.9rem; margin-bottom: 10px; }
.footer-col a { color: #cbd0d6; display: block; font-size: 0.85rem; margin-bottom: 6px; }
.footer-col a:hover { color: #fff; }
.footer-note { font-size: 0.78rem; color: #8a919c; margin-top: 26px; }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 200;
  background: #fff; border-top: 1px solid var(--line); padding: 14px 20px;
  display: none; align-items: center; justify-content: space-between; gap: 16px;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
}
.cookie-banner p { margin: 0; font-size: 0.88rem; }
.cookie-btn {
  background: var(--accent); color: #fff; border: none; padding: 10px 18px;
  font-weight: 600; font-size: 0.88rem; cursor: pointer; border-radius: 0; white-space: nowrap;
}
.cookie-btn:hover { background: #0a5e73; }

/* ---------- Mobile ---------- */
@media (max-width: 800px) {
  nav.main { display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; flex-direction: column; align-items: flex-start; padding: 16px 20px;
    border-bottom: 1px solid var(--line); gap: 14px; }
  nav.main.open { display: flex; }
  .burger { display: block; }
  .hero { padding-top: 100px; }
}

/* ---------- Photos & figures ---------- */
.hero-photo img { border-radius: 10px; max-height: 460px; object-fit: cover; box-shadow: 0 10px 30px rgba(0,0,0,.12); }
.section-figure { margin: 0 0 26px; }
.section-figure img { width: 100%; height: auto; display: block; border-radius: 10px; border: 1px solid var(--line); }
.section-figure figcaption { font-size: 0.82rem; color: var(--muted); margin-top: 8px; }

/* ---------- Mini-tendances (cartes chiffres) ---------- */
.spark { display: block; width: 120px; height: 34px; margin: 10px 0 4px; }
.trend { font-size: 0.78rem; font-weight: 600; }
.trend.down { color: #c0392b; }
.trend.up { color: #c0392b; }

/* ---------- Data-viz économie ---------- */
.ecoviz { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 20px; margin: 8px 0 20px; max-width: 640px; }
.ecoviz-title { font-weight: 700; color: var(--ink); margin-bottom: 14px; }
.bar-row { display: grid; grid-template-columns: 190px 1fr auto; align-items: center; gap: 12px; margin: 8px 0; }
.bar { background: #eef1f4; border-radius: 6px; height: 18px; overflow: hidden; }
.bar-fill { display: block; height: 100%; background: var(--accent); border-radius: 6px; }
.bar-fill.hot { background: #c0392b; }
.bar-lbl { font-size: 0.86rem; color: var(--body); }
.bar-val { font-weight: 800; font-size: 0.95rem; color: var(--ink); white-space: nowrap; }
.ecoviz-note { font-size: 0.86rem; color: var(--muted); margin: 12px 0 16px; }
.eco-chips { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px,1fr)); gap: 10px; }
.eco-chip { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 8px; padding: 10px; text-align: center; }
.eco-chip .ec-n { display: block; font-family: 'Playfair Display', serif; font-weight: 800; font-size: 1.4rem; color: var(--ink); }
.eco-chip.down .ec-n { color: #c0392b; }
.eco-chip .ec-l { display: block; font-size: 0.78rem; color: var(--muted); margin-top: 2px; }
@media (max-width: 560px) { .bar-row { grid-template-columns: 1fr auto; } .bar-lbl { grid-column: 1 / -1; } }

/* ---------- Icônes cartes sommaire ---------- */
.card-ico { font-size: 1.7rem; line-height: 1; flex: 0 0 auto; }
/* ---------- Section dépendance ---------- */
.dep-facts { margin-top: 8px; margin-bottom: 20px; }
.dep-facts .fact .num { font-size: 1.5rem; }
/* ---------- Pull-quote ---------- */
.pullquote { font-family: 'Playfair Display', serif; font-size: 1.5rem; font-style: italic; color: var(--accent); border: 0; border-left: 4px solid var(--accent); margin: 20px 0; padding: 6px 0 6px 20px; max-width: 40ch; line-height: 1.3; }

/* ---------- Les deux monnaies (CUP / CUC) ---------- */
.money-figs { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 10px 0 22px; }
.money-figs figure { margin: 0; }
.money-figs img { width: 100%; height: auto; display: block; border-radius: 8px; border: 1px solid var(--line); }
.money-figs figcaption { font-size: 0.84rem; color: var(--body); margin-top: 8px; }
.money-figs .credit { color: var(--muted); font-size: 0.76rem; }
@media (max-width: 640px) { .money-figs { grid-template-columns: 1fr; } }

/* ---------- Montage dirigeants ---------- */
.leaders { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; margin: 8px 0 26px; max-width: 620px; }
.leaders figure { margin: 0; text-align: center; }
.leaders img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 50%; border: 3px solid var(--accent-soft); }
.leaders figcaption { margin-top: 8px; }
.leaders figcaption strong { display: block; color: var(--ink); font-size: 0.95rem; }
.leaders figcaption span { font-size: 0.8rem; color: var(--muted); }
@media (max-width: 560px) { .leaders { gap: 10px; } .leaders figcaption strong { font-size: 0.8rem; } }

/* ---------- Portrait historique (float) ---------- */
.portrait-fig { float: right; width: 240px; max-width: 42%; margin: 4px 0 16px 24px; }
.portrait-fig img { width: 100%; display: block; border: 1px solid var(--line); background: #f7f3ea; }
.portrait-fig figcaption { font-size: 0.82rem; color: var(--body); margin-top: 8px; line-height: 1.4; }
.portrait-fig figcaption strong { color: var(--ink); }
.portrait-fig figcaption span { display: block; margin-top: 2px; }
@media (max-width: 640px) { .portrait-fig { float: none; width: 100%; max-width: 320px; margin: 8px auto 20px; } }

/* ---------- Graphiques (bilan) ---------- */
.charts { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin: 8px 0 22px; }
.chart { margin: 0; background: #fff; border: 1px solid var(--line); padding: 16px 16px 12px; }
.chart h4 { margin: 0 0 8px; font-size: 0.98rem; color: var(--ink); }
.chart svg { width: 100%; height: auto; display: block; }
.chart figcaption { font-size: 0.82rem; color: var(--body); margin-top: 6px; line-height: 1.4; }
.chart figcaption span { display: block; color: #8a8f98; font-size: 0.76rem; margin-top: 2px; }
