:root {
  --orange: #F39433;
  --orange-dark: #D57B36;
  --orange-light: #F9C18F;
  --orange-pale: #FBCEA7;
  --cream: #F7F1E5;
  --brown: #5F524B;
  --black: #1a1410;
  --white: #ffffff;
  --text-dark: #1a1410;
  --text-mid: #4a3f37;
  --text-muted: #8a7a6e;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Work Sans', sans-serif;
  background: var(--cream);
  color: var(--text-dark);
  overflow-x: hidden;
}

/* ─── NAVBAR ─────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(247, 241, 229, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--orange);
  padding: 0 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-brand {
  display: flex; align-items: center; gap: 12px; text-decoration: none;
}
.nav-logo-badge {
  height: 40px;
  background: var(--orange);
  border-radius: 20px;
  display: inline-flex; align-items: center; justify-content: center;
  gap: 6px;
  font-weight: 900; font-size: 12px; color: var(--black);
  letter-spacing: 0.5px; flex-shrink: 0;
  padding: 0 14px;
}
.nav-logo-wrap { width: 120px; height: 40px; flex-shrink: 0; overflow: hidden; display: flex; align-items: center; }
.nav-logo-img { width: 100%; height: 100%; object-fit: contain; object-position: left center; display: block; }
.nav-brand-text { font-weight: 700; font-size: 15px; color: var(--black); line-height: 1.2; }
.nav-brand-text span {
  font-weight: 300; font-size: 11px; color: var(--text-muted);
  display: block; letter-spacing: 0.05em; text-transform: uppercase;
}
.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav-links a {
  font-size: 13px; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--text-mid); text-decoration: none; transition: color 0.2s;
}
.nav-links a:hover { color: var(--orange-dark); }
.nav-cta { background: var(--orange) !important; color: var(--black) !important; padding: 8px 18px; border-radius: 4px; }

/* ─── HERO ─────────────────────────────────────────── */
.hero {
  min-height: 100vh; background: var(--black);
  display: grid; grid-template-columns: 1fr 1fr;
  position: relative; overflow: hidden;
}
.hero-left {
  padding: 120px 6% 80px 8%;
  display: flex; flex-direction: column; justify-content: center;
  position: relative; z-index: 2;
}
.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--orange); color: var(--black);
  font-weight: 700; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 2px; margin-bottom: 32px; width: fit-content;
}
.hero-title {
  font-size: clamp(42px, 5.5vw, 74px); font-weight: 900; line-height: 0.95;
  color: var(--white); margin-bottom: 8px; letter-spacing: -2px;
}
.hero-title .accent { color: var(--orange); }
.hero-subtitle-name {
  font-size: clamp(18px, 2.5vw, 28px); font-weight: 300;
  color: var(--orange-light); margin-bottom: 36px; letter-spacing: 0.03em;
}
.hero-desc {
  font-size: 15px; font-weight: 400; line-height: 1.75;
  color: #a89887; max-width: 440px; margin-bottom: 48px;
}
.hero-desc strong { color: var(--orange-light); font-weight: 600; }
.hero-actions { display: flex; gap: 16px; align-items: center; }

.btn-primary {
  background: var(--orange); color: var(--black);
  font-family: 'Work Sans', sans-serif; font-weight: 700; font-size: 13px;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 14px 28px; border: none; border-radius: 3px;
  cursor: pointer; text-decoration: none; transition: background 0.2s, transform 0.15s;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-primary:hover { background: var(--orange-dark); transform: translateY(-1px); }

.btn-outline {
  background: transparent; color: var(--orange-light);
  font-family: 'Work Sans', sans-serif; font-weight: 600; font-size: 13px;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 13px 24px; border: 1.5px solid rgba(249, 193, 143, 0.4);
  border-radius: 3px; cursor: pointer; text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-outline:hover { border-color: var(--orange-light); color: var(--white); }

.hero-right { position: relative; overflow: hidden; }
.hero-photo-frame {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #2a1f18 0%, #1a1410 100%);
}
.hero-photo-frame::before {
  content: ''; position: absolute; top: 0; right: 0;
  width: 70%; height: 100%; background: var(--orange);
  clip-path: polygon(20% 0%, 100% 0%, 100% 100%, 0% 100%); opacity: 0.12;
}
.hero-candidate-photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: top center;
  display: block;
}

/* ─── Carousel candidature ────────────────────────────── */
.hero-slideshow { position: absolute; inset: 0; }
.hero-slide { opacity: 0; transition: opacity 0.9s ease; }
.hero-slide.active { opacity: 1; }
.hero-photo-placeholder {
  position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 85%; max-width: 420px; height: 90%;
  display: flex; align-items: flex-end; justify-content: center;
}
.hero-candidate-silhouette {
  width: 100%; height: 100%;
  background: linear-gradient(to top, rgba(243,148,51,0.15) 0%, transparent 60%);
  border-radius: 8px 8px 0 0;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 12px; padding-bottom: 60px;
}
.photo-circle {
  width: 200px; height: 200px; border-radius: 50%;
  border: 4px solid var(--orange); overflow: hidden; background: #2e2218;
  display: flex; align-items: center; justify-content: center;
  font-size: 72px; font-weight: 900; color: var(--orange);
  letter-spacing: -3px; margin-bottom: 16px;
}
.hero-photo-name { font-size: 22px; font-weight: 700; color: var(--white); text-align: center; letter-spacing: -0.5px; }
.hero-photo-role { font-size: 13px; font-weight: 400; color: var(--orange-light); text-align: center; letter-spacing: 0.05em; }

.hero-date-banner {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: var(--orange); padding: 16px 8%;
  display: flex; align-items: center; justify-content: center; gap: 24px;
}
.hero-date-label { font-size: 11px; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: rgba(0,0,0,0.55); }
.hero-date-value { font-size: 20px; font-weight: 900; color: var(--black); letter-spacing: -0.5px; }
.hero-date-divider { width: 1px; height: 28px; background: rgba(0,0,0,0.2); }

/* ─── SECTION GÉNÉRIQUE ──────────────────────────── */
section { padding: 100px 8%; }
.section-eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--orange-dark); margin-bottom: 16px; display: flex; align-items: center; gap: 10px;
}
.section-eyebrow i { font-size: 13px; color: var(--orange); }
.section-title {
  font-size: clamp(32px, 4vw, 52px); font-weight: 900; line-height: 1.05;
  letter-spacing: -1.5px; color: var(--text-dark); margin-bottom: 24px;
}
.section-title .accent { color: var(--orange); }

/* ─── ABOUT / HISTOIRE ────────────────────────────── */
.about {
  background: var(--white);
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start;
}
.about-lead { font-size: 17px; font-weight: 400; line-height: 1.8; color: var(--text-mid); margin-bottom: 24px; }
.about-quote {
  border-left: 4px solid var(--orange); padding: 16px 20px; margin: 32px 0;
  background: var(--cream); border-radius: 0 6px 6px 0;
}
.about-quote p { font-size: 16px; font-style: italic; font-weight: 600; color: var(--brown); line-height: 1.6; }

.timeline { position: relative; padding-left: 0; }
.timeline::before {
  content: ''; position: absolute; left: 15px; top: 16px; bottom: 8px;
  width: 2px; background: linear-gradient(to bottom, var(--orange), var(--orange-pale));
  z-index: 0;
}
.timeline-item { position: relative; margin-bottom: 24px; display: flex; gap: 16px; align-items: flex-start; }
.timeline-icon {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--orange); color: var(--black);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; flex-shrink: 0; position: relative; z-index: 1;
}
.timeline-content-wrapper { flex: 1; padding-top: 4px; }
.timeline-year { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--orange-dark); margin-bottom: 4px; }
.timeline-content { font-size: 14px; font-weight: 600; color: var(--text-dark); margin-bottom: 2px; }
.timeline-detail { font-size: 13px; font-weight: 400; color: var(--text-muted); line-height: 1.5; }

/* ─── VALUES ────────────────────────────────────────── */
.values { background: var(--brown); color: var(--cream); }
.values .section-title { color: var(--cream); }
.values .section-eyebrow { color: var(--orange-light); }
.values .section-eyebrow i { color: var(--orange-light); }
.values-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; margin-top: 48px;
  background: rgba(255,255,255,0.08); border-radius: 6px; overflow: hidden;
}
.value-card { background: rgba(247, 241, 229, 0.05); padding: 36px 28px; transition: background 0.2s; }
.value-card:hover { background: rgba(247, 241, 229, 0.1); }
.value-icon {
  width: 52px; height: 52px;
  background: rgba(243,148,51,0.15); border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: var(--orange); margin-bottom: 16px;
}
.value-title { font-size: 18px; font-weight: 700; color: var(--orange-light); margin-bottom: 10px; }
.value-text { font-size: 14px; font-weight: 300; line-height: 1.7; color: rgba(247, 241, 229, 0.7); }

/* ─── PROGRAMME ─────────────────────────────────────── */
.programme { background: var(--cream); }
.programme-intro { max-width: 640px; margin-bottom: 64px; }
.programme-lead { font-size: 16px; font-weight: 400; line-height: 1.75; color: var(--text-mid); }
.axes-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3px;
  background: var(--brown); border-radius: 6px; overflow: hidden;
}
.axe-card {
  background: var(--white); padding: 40px 36px; position: relative;
  overflow: hidden; cursor: default; transition: transform 0.2s;
}
.axe-card.featured { grid-column: span 2; background: var(--orange); }
.axe-card:hover { transform: scale(1.005); z-index: 1; }
.axe-number {
  font-size: 72px; font-weight: 900; line-height: 0.9; color: rgba(0,0,0,0.06);
  position: absolute; right: 24px; top: 16px; letter-spacing: -4px;
}
.axe-card.featured .axe-number { color: rgba(0,0,0,0.12); }
.axe-tag {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 10px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  background: rgba(243,148,51,0.12); color: var(--orange-dark); padding: 4px 10px; border-radius: 2px; margin-bottom: 16px;
}
.axe-tag i { font-size: 10px; }
.axe-card.featured .axe-tag { background: rgba(0,0,0,0.12); color: var(--black); }
.axe-title { font-size: 22px; font-weight: 700; color: var(--text-dark); margin-bottom: 12px; line-height: 1.2; letter-spacing: -0.5px; }
.axe-card.featured .axe-title { color: var(--black); font-size: 26px; }
.axe-desc { font-size: 14px; font-weight: 400; line-height: 1.65; color: var(--text-muted); }
.axe-card.featured .axe-desc { color: rgba(0,0,0,0.65); }
.axe-points { list-style: none; margin-top: 16px; }
.axe-points li {
  font-size: 13px; font-weight: 400; color: var(--text-mid);
  padding: 6px 0; border-bottom: 1px solid rgba(0,0,0,0.05); line-height: 1.5;
  display: flex; gap: 10px; align-items: flex-start;
}
.axe-card.featured .axe-points li { color: rgba(0,0,0,0.7); border-bottom-color: rgba(0,0,0,0.1); }
.axe-points li i { color: var(--orange); font-size: 11px; margin-top: 4px; flex-shrink: 0; }
.axe-card.featured .axe-points li i { color: var(--black); }

/* ─── STATS BAND ────────────────────────────────────── */
.stats-band {
  background: var(--orange); padding: 48px 8%;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px;
}
.stat-item { text-align: center; padding: 24px; background: rgba(0,0,0,0.04); border-radius: 4px; }
.stat-icon { font-size: 28px; color: rgba(0,0,0,0.35); margin-bottom: 8px; display: block; }
.stat-number { font-size: 48px; font-weight: 900; color: var(--black); line-height: 1; letter-spacing: -2px; margin-bottom: 8px; }
.stat-label { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(0,0,0,0.55); }

/* ─── VISION ────────────────────────────────────────── */
.vision { background: var(--black); color: var(--cream); text-align: center; padding: 100px 15%; }
.vision .section-eyebrow { justify-content: center; }
.vision .section-eyebrow i { color: var(--orange-light); }
.vision .section-title { color: var(--cream); text-align: center; }
.vision .section-title .accent { color: var(--orange); }
.vision-quote {
  font-size: clamp(20px, 3vw, 32px); font-style: italic; font-weight: 600;
  color: var(--orange-light); line-height: 1.5; margin: 32px 0; position: relative;
}
.vision-quote::before {
  content: '"'; font-size: 120px; font-weight: 900; color: rgba(243,148,51,0.1);
  position: absolute; top: -40px; left: -20px; line-height: 1;
}
.vision-sub { font-size: 16px; font-weight: 400; line-height: 1.75; color: #8a7a6e; max-width: 600px; margin: 0 auto; }

/* ─── ENGAGEMENT ──────────────────────────────────── */
.engagements { background: var(--cream); }
.engagements-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 48px; }
.engagement-item {
  display: flex; gap: 20px; align-items: flex-start;
  background: var(--white); padding: 24px; border-radius: 4px; border-left: 4px solid var(--orange);
}
.engagement-check {
  width: 36px; height: 36px; background: var(--orange); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; color: var(--black);
}
.engagement-check i { font-size: 16px; }
.engagement-text { font-size: 15px; font-weight: 600; line-height: 1.5; color: var(--text-dark); }

/* ─── FOOTER ──────────────────────────────────────── */
footer { background: var(--black); padding: 64px 8% 32px; }
.footer-top {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 48px;
  margin-bottom: 48px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-logo-img { width: 140px; height: 48px; object-fit: contain; object-position: left center; display: block; margin-bottom: 10px; }
.footer-logo { font-size: 28px; font-weight: 900; color: var(--orange); letter-spacing: -1px; margin-bottom: 8px; }
.footer-logo-sub { font-size: 12px; font-weight: 400; letter-spacing: 0.08em; color: rgba(255,255,255,0.35); text-transform: uppercase; margin-bottom: 16px; }
.footer-desc { font-size: 13px; font-weight: 300; line-height: 1.7; color: rgba(255,255,255,0.45); }
.footer-col-title { font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--orange-light); margin-bottom: 20px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 14px; font-weight: 400; color: rgba(255,255,255,0.45); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--orange-light); }
.footer-contact-item { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; }
.footer-contact-icon { font-size: 14px; color: var(--orange); width: 18px; flex-shrink: 0; margin-top: 2px; }
.footer-contact-value { font-size: 13px; font-weight: 400; color: rgba(255,255,255,0.55); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; }
.footer-copy { font-size: 12px; font-weight: 400; color: rgba(255,255,255,0.25); }
.footer-election-tag { background: var(--orange); color: var(--black); font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 6px 14px; border-radius: 2px; }

/* ─── SCROLL ANIMATIONS ─────────────────────────────── */
.fade-in { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }

/* ─── MOBILE HAMBURGER ─────────────────────────────── */
.hamburger {
  display: none; cursor: pointer; padding: 8px;
  background: none; border: none; font-size: 20px;
  color: var(--brown); line-height: 1; transition: color 0.2s;
}
.hamburger:hover { color: var(--orange-dark); }

/* ─── RESPONSIVE ──────────────────────────────────── */

/* Tablette paysage / petit desktop (≤ 1024px) */
@media (max-width: 1024px) {
  /* Nav */
  .nav-links { display: none; }
  .hamburger { display: flex; }

  /* Hero */
  .hero { grid-template-columns: 1fr; }
  .hero-right { display: block; height: 60vh; min-height: 340px; }
  .hero-photo-placeholder { display: none; }
  .hero-left {
    padding: 108px 10% 48px;
    align-items: center; text-align: center;
  }
  .hero-tag { margin-left: auto; margin-right: auto; }
  .hero-desc { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-date-banner { gap: 16px; padding: 14px 6%; }

  /* Stats */
  .stats-band { grid-template-columns: repeat(2, 1fr); }

  /* About */
  .about { grid-template-columns: 1fr; gap: 48px; padding: 80px 6%; }

  /* Values : 2 colonnes sur tablette */
  .values-grid { grid-template-columns: repeat(2, 1fr); }

  /* Vision */
  .vision { padding: 80px 8%; }

  /* Programme */
  .axes-grid { grid-template-columns: 1fr; }
  .axe-card.featured { grid-column: span 1; }

  /* Engagements */
  .engagements-grid { grid-template-columns: 1fr; }

  /* Publications */
  .pub-grid { grid-template-columns: repeat(2, 1fr); }

  /* Footer */
  .footer-top { grid-template-columns: 1fr; gap: 36px; }
}

/* Tablette portrait (≤ 768px) */
@media (max-width: 768px) {
  section { padding: 80px 6%; }

  /* Hero */
  .hero-right { height: 55vh; min-height: 300px; }
  .hero-left { padding: 96px 8% 40px; }
  .hero-date-banner { flex-wrap: wrap; gap: 8px 20px; padding: 12px 6%; }
  .hero-date-divider { display: none; }

  /* Stats */
  .stats-band { grid-template-columns: repeat(2, 1fr); gap: 2px; }

  /* Values : 1 colonne */
  .values-grid { grid-template-columns: 1fr; }

  /* Publications */
  .pub-grid { grid-template-columns: 1fr; }
  .pub-search { max-width: 100%; flex: 1 1 100%; }

  /* CTA */
  .cta-bloc { padding: 36px 28px; }
  .cta-bloc-actions { flex-direction: column; align-items: stretch; }
  .cta-bloc-actions .btn-primary,
  .cta-bloc-actions .btn-outline { justify-content: center; }

  /* Footer */
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}

/* Mobile (≤ 640px) */
@media (max-width: 640px) {
  section { padding: 64px 5%; }

  /* Hero */
  .hero-right { height: 52vh; min-height: 260px; }
  .hero-left { padding: 88px 6% 36px; }
  .hero-title { letter-spacing: -1px; }
  .hero-actions { flex-direction: column; gap: 12px; width: 100%; }
  .hero-actions .btn-primary,
  .hero-actions .btn-outline { justify-content: center; }
  .hero-date-label { font-size: 10px; letter-spacing: 0.1em; }
  .hero-date-value { font-size: 16px; }

  /* Stats */
  .stats-band { grid-template-columns: 1fr 1fr; padding: 32px 5%; gap: 2px; }
  .stat-number { font-size: 36px; }
  .stat-item { padding: 20px 12px; }

  /* Vision */
  .vision { padding: 64px 6%; }
  .vision-quote::before { display: none; }

  /* About */
  .about { padding: 64px 5%; }
  .about-quote { padding: 12px 16px; }

  /* Programme */
  .axe-card { padding: 32px 24px; }
  .axe-number { font-size: 56px; }

  /* Engagements */
  .engagement-item { gap: 14px; padding: 20px; }

  /* CTA */
  .cta-bloc { padding: 32px 20px; margin-top: 48px; }

  /* Publications */
  .filter-bar { gap: 6px; }
  .filter-btn { padding: 7px 12px; font-size: 11px; }

  /* Modal */
  .pub-modal-overlay { padding: 0; align-items: flex-end; }
  .pub-modal-box {
    border-radius: 16px 16px 0 0; border-top: 4px solid var(--orange);
    max-height: 92vh;
  }
  .pub-modal-header { padding: 16px 18px 0; }
  .pub-modal-body { padding: 12px 18px 28px; }
  .pub-modal-cover { max-height: 220px; }
  .pub-modal-gallery { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .gallery-item img { height: 120px; }

  /* Footer */
  footer { padding: 48px 5% 28px; }
  .footer-top { gap: 28px; }
}

/* Très petits mobiles (≤ 480px) */
@media (max-width: 480px) {
  /* Nav */
  .nav-logo-wrap { width: 90px; height: 32px; }
  .nav-brand-text { font-size: 13px; }
  .nav-brand-text span { display: none; }

  /* Hero */
  .hero-right { height: 48vh; min-height: 220px; }
  .hero-left { padding: 80px 5% 32px; }
  .hero-date-banner { gap: 6px 12px; }
  .hero-date-label:nth-child(5),
  .hero-date-label:nth-child(7) { display: none; }

  /* Stats */
  .stats-band { padding: 24px 4%; }
  .stat-number { font-size: 30px; letter-spacing: -1px; }
  .stat-label { font-size: 10px; }
  .stat-icon { font-size: 22px; }

  /* Section padding */
  section { padding: 56px 5%; }
  .vision { padding: 56px 5%; }

  /* Timeline */
  .timeline-content { font-size: 13px; }
  .timeline-year { font-size: 10px; }

  /* Values */
  .value-card { padding: 28px 18px; }

  /* Axes */
  .axe-card { padding: 24px 20px; }

  /* Publications */
  .pub-modal-gallery { grid-template-columns: 1fr; }
  .gallery-item img { height: 180px; }

  /* Footer */
  .footer-logo { font-size: 22px; }
}

/* Desktop ≥ 1025px — 3 colonnes (doit venir après les max-width pour éviter la cascade) */
@media (min-width: 1025px) {
  .pub-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ─── MOBILE MENU ─────────────────────────────────── */
.mobile-menu {
  display: flex; flex-direction: column; gap: 20px;
  position: fixed; top: 64px; left: 0; right: 0;
  background: var(--cream); border-top: 2px solid var(--orange);
  padding: 24px 8%; z-index: 99;
  border-bottom: 1px solid rgba(0,0,0,0.1);
  max-height: 0; overflow: hidden; opacity: 0; pointer-events: none;
  transition: max-height 0.35s ease, opacity 0.3s ease;
}
.mobile-menu.open { max-height: 520px; opacity: 1; pointer-events: auto; }
.mobile-menu a {
  font-size: 15px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text-mid); text-decoration: none; padding: 8px 0; border-bottom: 1px solid rgba(0,0,0,0.07);
}

/* ─── CTA BLOC ──────────────────────────────────────── */
.cta-bloc {
  background: var(--black); padding: 48px; border-radius: 6px; text-align: center; margin-top: 64px;
}
.cta-bloc-title {
  font-size: clamp(20px, 2.5vw, 28px); font-weight: 900; color: var(--orange);
  margin-bottom: 8px; letter-spacing: -0.5px;
}
.cta-bloc-sub { font-size: 14px; font-weight: 400; color: rgba(255,255,255,0.45); margin-bottom: 32px; }
.cta-bloc-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ─── PUBLICATIONS / ACTUALITÉS ──────────────────────── */
.publications { background: var(--white); }

.pub-header { margin-bottom: 40px; }
.pub-intro-sub { font-size: 16px; font-weight: 400; color: var(--text-muted); margin-top: 8px; max-width: 560px; }

/* Barre de filtre */
.filter-bar {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  margin-bottom: 40px;
}
.filter-btn {
  font-family: 'Work Sans', sans-serif;
  font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 8px 16px; border-radius: 3px; cursor: pointer;
  border: 1.5px solid rgba(95, 82, 75, 0.25); background: transparent; color: var(--text-mid);
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  display: inline-flex; align-items: center; gap: 7px;
}
.filter-btn i { font-size: 12px; }
.filter-btn:hover { border-color: var(--orange); color: var(--orange-dark); }
.filter-btn.active { background: var(--orange); color: var(--black); border-color: var(--orange); }

.pub-search {
  font-family: 'Work Sans', sans-serif;
  font-size: 13px; font-weight: 400;
  height: 40px; padding: 0 14px;
  border: 1.5px solid rgba(95, 82, 75, 0.25); border-radius: 3px;
  background: var(--cream); color: var(--text-dark);
  outline: none; min-width: 200px; flex: 1; max-width: 280px;
  transition: border-color 0.2s;
}
.pub-search:focus { border-color: var(--orange); }
.pub-search::placeholder { color: var(--text-muted); }

/* Grille — les colonnes sont définies dans les media queries pour éviter
   qu'une déclaration sans breakpoint n'écrase les règles responsive. */
.pub-grid {
  display: grid; gap: 24px;
}
.pub-card {
  background: var(--white); border: 1px solid rgba(0,0,0,0.07);
  border-radius: 4px; overflow: hidden;
  display: flex; flex-direction: column;
  transition: box-shadow 0.2s, transform 0.2s;
}
.pub-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,0.09); transform: translateY(-2px); }
.pub-card-img { width: 100%; height: 180px; object-fit: cover; display: block; }
.pub-card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }

/* Badge catégorie */
.pub-badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 2px; margin-bottom: 12px; width: fit-content;
}
.pub-badge i { font-size: 10px; }
.pub-badge--communique { background: #1a1410; color: #F9C18F; }
.pub-badge--agenda     { background: #F39433; color: #1a1410; }
.pub-badge--resultats  { background: #5F524B; color: #F7F1E5; }
.pub-badge--presse     { background: #D57B36; color: #ffffff; }
.pub-badge--general    { background: #F7F1E5; color: #5F524B; border: 1px solid #D8CEBB; }

.pub-card-title {
  font-size: 16px; font-weight: 700; color: var(--text-dark); line-height: 1.35;
  margin-bottom: 10px; letter-spacing: -0.3px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.pub-card-resume {
  font-size: 13px; font-weight: 400; color: var(--text-muted); line-height: 1.6;
  flex: 1; margin-bottom: 16px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.pub-card-footer {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; font-weight: 400; color: var(--text-muted);
  border-top: 1px solid rgba(0,0,0,0.06); padding-top: 12px; margin-bottom: 12px;
  gap: 8px;
}
.pub-card-author { text-align: right; font-style: italic; }

.pub-lire-suite {
  font-family: 'Work Sans', sans-serif;
  font-size: 13px; font-weight: 600; color: var(--orange-dark);
  background: none; border: none; cursor: pointer; padding: 0;
  text-align: left; transition: color 0.15s;
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 7px;
}
.pub-lire-suite:hover { color: var(--orange); text-decoration: underline; }

/* Messages état vide */
.pub-empty, .pub-no-result {
  text-align: center; font-size: 16px; font-weight: 400; color: var(--text-muted);
  padding: 48px 0; font-style: italic;
}

/* ─── MODALE ─────────────────────────────────────────── */
.pub-modal-overlay {
  display: flex; position: fixed; inset: 0;
  background: rgba(26, 20, 16, 0.88); z-index: 200;
  align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s ease;
}
.pub-modal-overlay.open { opacity: 1; pointer-events: auto; }

.pub-modal-box {
  background: var(--white); border-radius: 4px; border-top: 4px solid var(--orange);
  width: 100%; max-width: 700px; max-height: 85vh;
  overflow-y: auto; box-shadow: 0 24px 64px rgba(0,0,0,0.35);
  transform: translateY(20px) scale(0.98);
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1);
}
.pub-modal-overlay.open .pub-modal-box { transform: translateY(0) scale(1); }
.pub-modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 28px 0;
}
.pub-modal-close {
  font-family: 'Work Sans', sans-serif;
  background: none; border: none; cursor: pointer;
  font-size: 18px; color: var(--text-muted); padding: 4px 8px;
  border-radius: 3px; line-height: 1; transition: background 0.15s, color 0.15s;
}
.pub-modal-close:hover { background: var(--cream); color: var(--text-dark); }
.pub-modal-body { padding: 16px 28px 32px; }
.pub-modal-title {
  font-size: 24px; font-weight: 700; color: var(--text-dark);
  line-height: 1.25; letter-spacing: -0.5px; margin-bottom: 12px;
}
.pub-modal-meta {
  font-size: 13px; font-weight: 400; color: var(--text-muted);
  margin-bottom: 24px; display: flex; gap: 16px; flex-wrap: wrap;
  padding-bottom: 16px; border-bottom: 1px solid rgba(0,0,0,0.08);
}
.pub-modal-cover {
  width: 100%; max-height: 340px;
  object-fit: cover; object-position: center top;
  border-radius: 4px; display: block; margin-bottom: 20px;
}
.pub-modal-content {
  font-size: 15px; font-weight: 400; color: var(--text-mid);
  line-height: 1.8; white-space: pre-line;
}
.pub-modal-gallery {
  margin-top: 28px; padding-top: 24px;
  border-top: 1px solid rgba(0,0,0,0.08);
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px;
}
.gallery-item { border-radius: 4px; overflow: hidden; background: var(--cream); }
.gallery-item img { width: 100%; height: 160px; object-fit: cover; display: block; }
.gallery-item figcaption {
  font-size: 12px; font-weight: 400; color: var(--text-muted);
  padding: 8px 10px; line-height: 1.4;
}

/* ═══════════════════════════════════════════════════════════════════
   ANIMATIONS & ENRICHISSEMENTS UI
   ═══════════════════════════════════════════════════════════════════ */

/* ─── BARRE DE LECTURE ──────────────────────────────────────────── */
#read-progress {
  position: fixed; top: 0; left: 0; z-index: 300;
  height: 3px; width: 0%; background: var(--orange);
  pointer-events: none;
  transition: width 0.1s linear;
}

/* ─── NAVBAR — scroll ───────────────────────────────────────────── */
nav { transition: height 0.25s ease, box-shadow 0.25s ease; }
nav.nav--scrolled {
  height: 50px;
  background: rgba(247,241,229,0.98);
  box-shadow: 0 1px 0 rgba(0,0,0,0.08);
}
@media (prefers-reduced-motion: no-preference) {
  nav { transition: height 0.25s ease, box-shadow 0.25s ease, transform 0.3s ease; }
  nav.nav--hidden { transform: translateY(-100%); }
}
.nav-links a { position: relative; }
.nav-links a::after {
  content: '';
  position: absolute; bottom: -4px; left: 0;
  width: 100%; height: 2px;
  background: var(--orange);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.2s ease;
}
.nav-links a.nav--active { color: var(--orange); }
.nav-links a.nav--active::after { transform: scaleX(1); }
.mobile-menu a.nav--active { color: var(--orange); }

/* ─── HERO — animations d'entrée ───────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  @keyframes heroFadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  @keyframes heroFadeLeft {
    from { opacity: 0; transform: translateX(-24px); }
    to   { opacity: 1; transform: translateX(0); }
  }
  @keyframes heroSlideUp {
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
  }
  @keyframes heroPhotoReveal {
    from { opacity: 0; transform: scale(0.92); }
    to   { opacity: 1; transform: scale(1); }
  }
  .ha-fade-up   { animation: heroFadeUp  0.5s ease both; }
  .ha-fade-left { animation: heroFadeLeft 0.6s ease both; }
  .ha-slide-up  { animation: heroSlideUp 0.5s ease both; }
  .ha-photo-reveal { animation: heroPhotoReveal 0.7s cubic-bezier(0.34,1.56,0.64,1) 300ms both; }
}

/* ─── SCROLL REVEAL ─────────────────────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  [class*="reveal-"] {
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.25,0.46,0.45,0.94);
  }
  .reveal-up    { transform: translateY(36px); }
  .reveal-left  { transform: translateX(-36px); }
  .reveal-right { transform: translateX(36px); }
  .reveal-scale { transform: translateY(20px) scale(0.97); }
}
[class*="reveal-"].is-visible { opacity: 1; transform: none; }

.stagger-1 { transition-delay: 0.05s; }
.stagger-2 { transition-delay: 0.10s; }
.stagger-3 { transition-delay: 0.15s; }
.stagger-4 { transition-delay: 0.20s; }
.stagger-5 { transition-delay: 0.25s; }
.stagger-6 { transition-delay: 0.30s; }

/* ─── TIMELINE — tracé progressif + dots ───────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  .timeline::before {
    transform: scaleY(0); transform-origin: top;
    transition: transform 1.8s cubic-bezier(0.25,0.46,0.45,0.94);
  }
  .timeline.is-visible::before { transform: scaleY(1); }

  @keyframes dotPop {
    0%   { transform: scale(0) rotate(-180deg); opacity: 0; }
    70%  { transform: scale(1.2) rotate(10deg);  opacity: 1; }
    100% { transform: scale(1)   rotate(0deg);   opacity: 1; }
  }
  .timeline-item {
    opacity: 0; transform: translateX(-12px);
    transition: opacity 0.4s ease, transform 0.4s ease;
  }
  .timeline-item.is-visible .timeline-icon {
    animation: dotPop 0.45s cubic-bezier(0.34,1.56,0.64,1) forwards;
  }
}
.timeline-item.is-visible { opacity: 1; transform: none; }

/* ─── VALEURS — fond + hover ────────────────────────────────────── */
.values { position: relative; overflow: hidden; }
.values::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(243,148,51,0.06) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none; z-index: 0;
}
.values-grid { position: relative; z-index: 1; }
@media (prefers-reduced-motion: no-preference) {
  @keyframes patternDrift {
    from { background-position: 0 0; }
    to   { background-position: 32px 32px; }
  }
  .values::before { animation: patternDrift 12s linear infinite; }
}
.value-icon { transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1); }
.value-card:hover .value-icon { transform: rotate(6deg) scale(1.12); }
.value-title { position: relative; display: inline-block; }
.value-title::after {
  content: '';
  position: absolute; bottom: -2px; left: 0;
  width: 0; height: 2px; background: var(--orange);
  transition: width 0.3s ease;
}
.value-card:hover .value-title::after { width: 100%; }

/* ─── PROGRAMME — hover + brillance ────────────────────────────── */
.axe-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.08); z-index: 1; }
.axe-card.featured:hover { transform: none; box-shadow: none; }
.axe-number { transition: opacity 0.3s ease, transform 0.3s ease; }
.axe-card:hover .axe-number { opacity: 0.08; transform: scale(1.05); }
.axe-card.featured::after {
  content: '';
  position: absolute; top: 0; left: -75%;
  width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transform: skewX(-15deg); pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  @keyframes cardShine { to { left: 150%; } }
  .axe-card.featured:hover::after { animation: cardShine 0.6s ease forwards; }
  .axe-points li {
    opacity: 0; transform: translateY(8px);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }
}
.axe-points li.is-visible { opacity: 1; transform: none; }

/* ─── PUBLICATIONS — hover zoom + skeleton ──────────────────────── */
.pub-card-img { transition: transform 0.4s ease; }
.pub-card:hover .pub-card-img { transform: scale(1.04); }
@media (prefers-reduced-motion: no-preference) {
  @keyframes shimmer {
    from { background-position: 200% 0; }
    to   { background-position: -200% 0; }
  }
  .pub-card-img-wrap.loading {
    background: linear-gradient(90deg, var(--cream) 25%, rgba(243,148,51,0.08) 50%, var(--cream) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.4s ease infinite;
  }
}

/* ─── CTA — mot par mot ─────────────────────────────────────────── */
.vision-quote .word { display: inline-block; }

/* ─── BOUTONS — ripple ──────────────────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  @keyframes rippleAnim { to { transform: scale(1); opacity: 0; } }
  .btn-ripple {
    position: absolute; border-radius: 50%;
    background: rgba(255,255,255,0.25);
    transform: scale(0); pointer-events: none;
    animation: rippleAnim 0.55s ease-out forwards;
  }
}

/* ─── MENU MOBILE — stagger liens ──────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  .mobile-menu a { opacity: 0; transform: translateX(-12px); transition: opacity 0.25s ease, transform 0.25s ease; }
  .mobile-menu.open a { opacity: 1; transform: translateX(0); }
  .mobile-menu.open a:nth-child(1) { transition-delay: 0.05s; }
  .mobile-menu.open a:nth-child(2) { transition-delay: 0.10s; }
  .mobile-menu.open a:nth-child(3) { transition-delay: 0.15s; }
  .mobile-menu.open a:nth-child(4) { transition-delay: 0.20s; }
  .mobile-menu.open a:nth-child(5) { transition-delay: 0.25s; }
}

