@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,600;0,700;1,300&family=Barlow:wght@300;400;500;600&display=swap');

:root {
  --bg:      #03090f;
  --bg2:     #060e18;
  --card:    #0a1525;
  --border:  #122035;
  --navy:    #1e3a5f;
  --blue:    #2e6fad;
  --gold:    #c9a84c;
  --teal:    #2dd4bf;
  --red:     #ef4444;
  --amber:   #f59e0b;
  --green:   #22c55e;
  --text:    #e8eef8;
  --text2:   #6888a8;
  --muted:   #1a2f48;
}

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

body {
  font-family: 'Barlow', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

/* ── GLOBE BG ────────────────────── */
.ap-globe-bg {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse at 80% 20%, rgba(30,58,95,.5) 0%, transparent 50%),
    radial-gradient(ellipse at 20% 80%, rgba(14,36,64,.4) 0%, transparent 50%);
}
.ap-globe-bg::after {
  content: '';
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(
    0deg, transparent, transparent 60px, rgba(30,58,95,.07) 60px, rgba(30,58,95,.07) 61px
  ), repeating-linear-gradient(
    90deg, transparent, transparent 60px, rgba(30,58,95,.07) 60px, rgba(30,58,95,.07) 61px
  );
}

/* ── HEADER ──────────────────────── */
.ap-header {
  position: relative; z-index: 1;
  background: linear-gradient(180deg, rgba(6,14,24,.0) 0%, rgba(6,14,24,.7) 100%),
    url("data:image/svg+xml,%3Csvg width='600' height='400' viewBox='0 0 600 400' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='300' cy='200' r='180' fill='none' stroke='rgba(46,111,173,0.15)' stroke-width='1'/%3E%3Ccircle cx='300' cy='200' r='140' fill='none' stroke='rgba(46,111,173,0.1)' stroke-width='1'/%3E%3Ccircle cx='300' cy='200' r='100' fill='none' stroke='rgba(46,111,173,0.08)' stroke-width='1'/%3E%3C/svg%3E") center/cover;
  padding: 70px 32px 50px;
  border-bottom: 1px solid var(--border);
}

.ap-header-inner { max-width: 960px; margin: 0 auto; }

.ap-dept { font-size: 0.68rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; font-weight: 600; }

.ap-date-badge {
  display: inline-block; margin-bottom: 14px;
  font-size: 0.75rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase;
  border: 1px solid rgba(201,168,76,.3); color: var(--gold);
  padding: 4px 14px; border-radius: 20px; background: rgba(201,168,76,.07);
}

.ap-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3rem, 9vw, 6.5rem);
  font-weight: 600; line-height: 0.88;
  color: var(--text);
}
.ap-title em { font-style: italic; color: var(--gold); font-weight: 300; }

.ap-tagline { margin-top: 16px; color: var(--text2); font-size: 0.92rem; font-weight: 300; max-width: 520px; line-height: 1.6; }

.ap-stat-row {
  display: flex; gap: 0; margin-top: 32px;
  border: 1px solid var(--border); border-radius: 10px; overflow: hidden; width: fit-content;
  background: rgba(6,14,24,.5);
}
.ap-stat {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 16px 28px; border-right: 1px solid var(--border);
}
.ap-stat:last-child { border-right: none; }
.ap-stat-n { font-family: 'Cormorant Garamond', serif; font-size: 1.6rem; font-weight: 700; color: var(--gold); line-height: 1; }
.ap-stat span:last-child { font-size: 0.68rem; color: var(--text2); text-transform: uppercase; letter-spacing: 0.08em; }

/* ── NAV ─────────────────────────── */
.ap-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(3,9,15,.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  display: flex; flex-wrap: wrap; justify-content: center;
}
.ap-nav-a {
  padding: 11px 15px; font-size: 0.78rem; font-weight: 500;
  text-decoration: none; color: var(--text2);
  border-bottom: 2px solid transparent; transition: all .2s; white-space: nowrap;
}
.ap-nav-a:hover { color: var(--gold); border-color: var(--gold); }
.ap-nav-a.active { color: var(--gold); border-color: var(--gold); }

/* ── MAIN ────────────────────────── */
.ap-main {
  position: relative; z-index: 1;
  max-width: 980px; margin: 0 auto; padding: 48px 24px 80px;
  display: flex; flex-direction: column; gap: 52px;
}

/* ── SECTION ─────────────────────── */
.ap-section { opacity: 0; transform: translateY(24px); transition: opacity .55s, transform .55s; }
.ap-section.visible { opacity: 1; transform: translateY(0); }

.ap-sec-head {
  display: flex; align-items: center; gap: 16px;
  padding: 14px 22px; background: rgba(30,58,95,.25); border-left: 4px solid var(--gold);
  border-radius: 0 8px 8px 0; margin-bottom: 0;
}
.ap-sec-n { font-family: 'Cormorant Garamond', serif; font-size: 0.9rem; font-style: italic; color: var(--gold); }
.ap-sec-head h2 { font-family: 'Cormorant Garamond', serif; font-size: 1.5rem; font-weight: 600; color: var(--text); }

.ap-sec-body {
  background: var(--card); border: 1px solid var(--border);
  border-top: none; border-radius: 0 0 8px 8px; padding: 28px;
}
.ap-sec-body p { color: var(--text2); line-height: 1.85; font-size: 0.95rem; margin-bottom: 16px; }
.ap-sec-body p:last-child { margin-bottom: 0; }
.ap-sec-body strong { color: var(--text); }

/* ── TIMELINE ────────────────────── */
.ap-timeline { display: flex; flex-direction: column; gap: 10px; }
.ap-tl { display: flex; gap: 16px; align-items: flex-start; }
.ap-tl-y { font-family: 'Cormorant Garamond', serif; font-size: 1rem; font-weight: 700; color: var(--gold); width: 50px; flex-shrink: 0; padding-top: 2px; }
.ap-tl-c { flex: 1; background: var(--bg2); border: 1px solid var(--border); border-radius: 6px; padding: 10px 14px; font-size: 0.87rem; color: var(--text2); line-height: 1.7; }

/* ── PILLARS ─────────────────────── */
.ap-pillars { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin-bottom: 18px; }
.ap-pillar { border-radius: 10px; padding: 20px; border: 1px solid var(--border); }
.ap-pillar.attenuation { background: rgba(46,111,173,.1); border-color: rgba(46,111,173,.25); }
.ap-pillar.adaptation  { background: rgba(34,197,94,.07); border-color: rgba(34,197,94,.2); }
.ap-pillar.finance     { background: rgba(201,168,76,.07); border-color: rgba(201,168,76,.2); }
.ap-pillar-icon { font-size: 1.5rem; margin-bottom: 8px; }
.ap-pillar h4 { font-family: 'Cormorant Garamond', serif; font-size: 1.05rem; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.ap-pillar p  { font-size: 0.83rem; color: var(--text2); margin: 0; line-height: 1.7; }

.ap-article-box {
  background: rgba(201,168,76,.06); border: 1px solid rgba(201,168,76,.2);
  border-radius: 8px; padding: 18px 22px;
}
.ap-article-box h4 { font-family: 'Cormorant Garamond', serif; font-size: 1rem; color: var(--gold); margin-bottom: 10px; font-weight: 700; }
.ap-ul { list-style: none; display: flex; flex-direction: column; gap: 7px; }
.ap-ul li { font-size: 0.87rem; color: var(--text2); padding-left: 18px; position: relative; line-height: 1.7; }
.ap-ul li::before { content: '›'; position: absolute; left: 0; color: var(--gold); font-weight: 700; }

/* ── NDC GRID ────────────────────── */
.ap-ndc-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-bottom: 16px; }
.ap-ndc-card { background: var(--bg2); border: 1px solid var(--border); border-radius: 8px; padding: 14px; }
.ap-ndc-card h4 { font-size: 0.85rem; font-weight: 600; color: var(--text); margin-bottom: 7px; }
.ap-ndc-card p  { font-size: 0.81rem; color: var(--text2); margin: 0; line-height: 1.65; }

/* ── MECA GRID ───────────────────── */
.ap-meca-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.ap-meca-card { background: var(--bg2); border: 1px solid var(--border); border-left: 3px solid var(--blue); border-radius: 0 8px 8px 0; padding: 16px; }
.ap-meca-card h4 { font-size: 0.85rem; font-weight: 600; color: var(--teal); margin-bottom: 7px; }
.ap-meca-card p  { font-size: 0.81rem; color: var(--text2); margin: 0; line-height: 1.65; }

/* ── BILAN STRIP ─────────────────── */
.ap-bilan-strip { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; margin-bottom: 18px; }
.ap-bilan-item { border-radius: 10px; padding: 18px; text-align: center; border: 1px solid; }
.ap-bilan-item.danger  { background: rgba(239,68,68,.08); border-color: rgba(239,68,68,.25); }
.ap-bilan-item.warning { background: rgba(245,158,11,.08); border-color: rgba(245,158,11,.25); }
.ap-bilan-item.ok      { background: rgba(34,197,94,.07); border-color: rgba(34,197,94,.2); }
.ap-bi-val { font-family: 'Cormorant Garamond', serif; font-size: 1.5rem; font-weight: 700; margin-bottom: 6px; }
.ap-bilan-item.danger  .ap-bi-val { color: var(--red); }
.ap-bilan-item.warning .ap-bi-val { color: var(--amber); }
.ap-bilan-item.ok      .ap-bi-val { color: var(--green); }
.ap-bi-label { font-size: 0.75rem; color: var(--text2); line-height: 1.4; }

/* ── CRITIQUE GRID ───────────────── */
.ap-critique-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; }
.ap-crit { background: var(--bg2); border: 1px solid var(--border); border-radius: 8px; padding: 18px; }
.ap-crit.insufficient { border-top: 3px solid var(--amber); }
.ap-crit.inequity     { border-top: 3px solid var(--red); }
.ap-crit.finance      { border-top: 3px solid var(--blue); }
.ap-crit.fossil       { border-top: 3px solid #6b7280; }
.ap-crit h4 { font-size: 0.9rem; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.ap-crit p  { font-size: 0.83rem; color: var(--text2); margin: 0; line-height: 1.7; }

/* ── IMPL GRID ───────────────────── */
.ap-impl-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; }
.ap-impl-card { background: var(--bg2); border: 1px solid var(--border); border-radius: 8px; padding: 16px; }
.ap-impl-card h4 { font-size: 0.85rem; font-weight: 600; color: var(--teal); margin-bottom: 7px; }
.ap-impl-card p  { font-size: 0.82rem; color: var(--text2); margin: 0; line-height: 1.65; }
.ap-impl-card em { font-style: italic; color: var(--text); }

/* ── FUTURE ROW ──────────────────── */
.ap-future-row { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; }
.ap-future-card { background: var(--bg2); border: 1px solid var(--border); border-radius: 10px; padding: 18px; text-align: center; }
.ap-fc-icon { font-size: 1.6rem; margin-bottom: 8px; }
.ap-future-card h4 { font-family: 'Cormorant Garamond', serif; font-size: 0.95rem; font-weight: 700; color: var(--gold); margin-bottom: 8px; }
.ap-future-card p  { font-size: 0.81rem; color: var(--text2); margin: 0; line-height: 1.65; }

/* ── FOOTER ──────────────────────── */
.ap-footer { position: relative; z-index: 1; border-top: 1px solid var(--border); background: var(--bg2); padding: 20px 32px; }
.ap-footer-inner { max-width: 980px; margin: 0 auto; display: flex; align-items: center; gap: 14px; font-size: 0.8rem; color: var(--text2); }
.ap-footer-sym { font-size: 1.4rem; }

@media (max-width: 768px) {
  .ap-pillars, .ap-ndc-grid, .ap-meca-grid, .ap-bilan-strip, .ap-critique-grid, .ap-impl-grid, .ap-future-row { grid-template-columns: 1fr; }
  .ap-stat-row { flex-wrap: wrap; }
}
