/* ============================================================
   CIC-RADE — feuille de style partagée
   ============================================================ */

:root {
  --green-deep: #0b3d2e;
  --green: #12513c;
  --green-soft: #e7efe9;
  --ivory: #faf7f0;
  --white: #ffffff;
  --gold: #c99a3c;
  --gold-soft: #f6ecd4;
  --terracotta: #b5623a;
  --ink: #1c2420;
  --muted: #5b665f;
  --line: #e3ded1;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --container: 1140px;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(11, 61, 46, 0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--ivory);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--green-deep);
}

h1 { font-size: clamp(2.1rem, 4.6vw, 3.2rem); font-weight: 500; }
h2 { font-size: clamp(1.55rem, 2.9vw, 2.1rem); }
h3 { font-size: 1.18rem; }
h4 { font-size: 1rem; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.prose { max-width: 70ch; }
.prose p { color: var(--ink); }

.eyebrow {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.9em;
}

.lead {
  font-size: 1.13rem;
  color: var(--muted);
  max-width: 62ch;
}

.section { padding: 88px 0; }
.section--tight { padding: 60px 0; }
.section--alt { background: var(--green-soft); }
.section--dark { background: var(--green-deep); color: var(--white); }
.section--dark h2, .section--dark h3, .section--dark h4 { color: var(--white); }
.section--dark p { color: rgba(255,255,255,0.82); }
.section--dark .eyebrow { color: var(--gold); }

.section-head { max-width: 720px; margin-bottom: 46px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head--center .lead { margin-left: auto; margin-right: auto; }

/* ---------- Boutons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.93rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--gold); color: var(--green-deep); }
.btn--primary:hover { background: #d9ad55; }
.btn--outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.5); }
.btn--outline:hover { background: rgba(255,255,255,0.12); border-color: var(--white); }
.btn--outline-dark { background: transparent; color: var(--green-deep); border-color: var(--green-deep); }
.btn--outline-dark:hover { background: var(--green-deep); color: var(--white); }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; }
.cta-row--center { justify-content: center; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 247, 240, 0.92);
  backdrop-filter: saturate(150%) blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 20px rgba(11,61,46,0.06); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 76px; }

.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; color: var(--green-deep); }
.brand-mark { width: 34px; height: 34px; flex-shrink: 0; }
.brand small { display: block; font-family: var(--font-body); font-weight: 500; font-size: 0.6rem; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); }

.main-nav { display: flex; align-items: center; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.main-nav a:not(.btn) { font-size: 0.92rem; font-weight: 500; color: var(--ink); position: relative; padding: 4px 0; }
.main-nav a:not(.btn)::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px; background: var(--gold); transition: width 0.2s ease; }
.main-nav a:not(.btn):hover::after, .main-nav a.is-active::after { width: 100%; }
.main-nav a.is-active { color: var(--green-deep); font-weight: 600; }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; color: var(--green-deep); }
.nav-toggle svg { width: 26px; height: 26px; }

/* ---------- Hero ---------- */

.hero { position: relative; overflow: hidden; padding: 86px 0 96px; background: linear-gradient(180deg, #ffffff 0%, var(--ivory) 100%); }
.hero .container { position: relative; z-index: 2; display: grid; grid-template-columns: 1.15fr 0.85fr; align-items: center; gap: 48px; }
.hero-copy h1 { margin-bottom: 0.4em; }
.hero-copy .lead { margin-bottom: 2em; }
.hero-motif { display: flex; align-items: center; justify-content: center; }
.hero-motif img { width: 100%; max-width: 340px; }

.hero-badges { display: flex; gap: 30px; margin-top: 52px; flex-wrap: wrap; }
.hero-badge { border-left: 2px solid var(--gold); padding-left: 14px; }
.hero-badge strong { display: block; font-family: var(--font-display); font-size: 1.45rem; color: var(--green-deep); line-height: 1.2; }
.hero-badge span { font-size: 0.83rem; color: var(--muted); }

/* ---------- Page header ---------- */

.page-header { padding: 60px 0 54px; background: var(--green-deep); color: var(--white); }
.page-header h1 { color: var(--white); margin-bottom: 0.3em; }
.page-header .lead { color: rgba(255,255,255,0.82); }
.breadcrumb { font-size: 0.83rem; color: rgba(255,255,255,0.6); margin-bottom: 16px; }
.breadcrumb a:hover { text-decoration: underline; }

/* ---------- Grilles et cartes ---------- */

.grid { display: grid; gap: 24px; }
/* autorise les colonnes à se réduire sous la largeur intrinsèque de leur
   contenu (champs de formulaire, tableaux, longues adresses e-mail) */
.grid > * { min-width: 0; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card h3 { margin-bottom: 0.45em; }
.card p { color: var(--muted); font-size: 0.94rem; }
.card--flat:hover { transform: none; box-shadow: none; }

.card-icon { width: 42px; height: 42px; border-radius: 10px; background: var(--green-soft); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.card-icon svg { width: 21px; height: 21px; }
.card-num { font-family: var(--font-display); font-size: 0.85rem; color: var(--gold); letter-spacing: 0.06em; text-transform: uppercase; display: block; margin-bottom: 10px; }

/* ---------- Personnes ---------- */

.person { display: grid; grid-template-columns: 220px 1fr; gap: 40px; align-items: center; }
.person-photo { width: 100%; aspect-ratio: 1 / 1; border-radius: var(--radius); overflow: hidden; background: var(--green-soft); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; }
.person-photo svg { width: 55%; height: 55%; color: var(--green); opacity: 0.5; }
.person-photo img.person-photo-real { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.person-placeholder-note { display: block; font-size: 0.7rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); margin-top: 10px; text-align: center; }
.person-name { font-family: var(--font-display); font-size: 1.4rem; color: var(--green-deep); margin: 0 0 0.15em; line-height: 1.2; }
.person-role { display: block; font-size: 0.86rem; font-weight: 600; color: var(--gold); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 1em; }

/* ---------- Gouvernance ---------- */

.gov-block { margin-bottom: 34px; }
.gov-block h4 { font-family: var(--font-body); font-size: 0.78rem; letter-spacing: 0.11em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.gov-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.gov-list--2 { grid-template-columns: repeat(2, 1fr); gap: 14px 30px; }
.gov-list li { border-left: 2px solid var(--line); padding-left: 14px; }
.gov-list strong { display: block; color: var(--green-deep); font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; }
.gov-list span { font-size: 0.88rem; color: var(--muted); }

/* ---------- Thèmes ---------- */

.theme-group { break-inside: avoid; margin-bottom: 26px; }
.theme-group h3 { font-size: 1.02rem; font-family: var(--font-body); font-weight: 700; color: var(--green-deep); margin-bottom: 8px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.theme-group ul { list-style: none; margin: 0; padding: 0; }
.theme-group li { font-size: 0.9rem; color: var(--muted); padding: 4px 0 4px 16px; position: relative; }
.theme-group li::before { content: ""; position: absolute; left: 0; top: 13px; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); opacity: 0.7; }
.theme-columns { columns: 3; column-gap: 34px; }

/* ---------- Bandeau chiffres ---------- */

.stat-strip { display: flex; flex-wrap: wrap; gap: 46px; justify-content: center; text-align: center; }
.stat strong { display: block; font-family: var(--font-display); font-size: 2.4rem; color: var(--white); line-height: 1.1; }
.stat span { font-size: 0.85rem; color: rgba(255,255,255,0.75); }

/* ---------- Tableaux ---------- */

table { width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
th, td { text-align: left; padding: 13px 18px; border-bottom: 1px solid var(--line); font-size: 0.94rem; }
th { background: var(--green-soft); color: var(--green-deep); font-weight: 600; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; }
tr:last-child td { border-bottom: none; }
td strong { color: var(--green-deep); }
.table-wrap { overflow-x: auto; }

.note-box { border-left: 3px solid var(--gold); background: var(--gold-soft); padding: 16px 20px; border-radius: 0 10px 10px 0; font-size: 0.9rem; margin-top: 22px; }
.note-box a { text-decoration: underline; }

.placeholder-flag { display: inline-block; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--terracotta); border: 1px dashed var(--terracotta); border-radius: 999px; padding: 3px 10px; margin-left: 6px; vertical-align: middle; }

/* ---------- Partenaires ---------- */

.partner-card { display: flex; gap: 20px; align-items: flex-start; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; }
.partner-badge { flex-shrink: 0; min-width: 58px; height: 58px; padding: 0 10px; border-radius: 12px; background: var(--green-deep); color: var(--gold); display: flex; align-items: center; justify-content: center; font-family: var(--font-body); font-weight: 700; font-size: 0.72rem; letter-spacing: 0.04em; white-space: nowrap; }
.partner-card h3 { margin-bottom: 0.35em; font-size: 1.1rem; }
.partner-card p { font-size: 0.93rem; color: var(--muted); }

/* ---------- Formulaire ---------- */

.form { display: grid; gap: 16px; max-width: 560px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 0.82rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--green-deep); }
.field input, .field textarea, .field select {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  width: 100%;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: transparent; }
.field textarea { min-height: 130px; resize: vertical; }

/* ---------- CTA final ---------- */

.final-cta { text-align: center; }
.final-cta h2 { max-width: 620px; margin-left: auto; margin-right: auto; }

/* ---------- Footer ---------- */

.site-footer { background: var(--green-deep); color: rgba(255,255,255,0.8); padding: 62px 0 26px; }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 42px; border-bottom: 1px solid rgba(255,255,255,0.14); }
.footer-brand .brand { color: var(--white); }
.footer-brand p { color: rgba(255,255,255,0.68); font-size: 0.9rem; margin-top: 14px; max-width: 34ch; }
.footer-col h4 { color: var(--white); font-family: var(--font-body); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 15px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 9px; }
.footer-col a, .footer-col span { color: rgba(255,255,255,0.75); font-size: 0.9rem; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; padding-top: 24px; font-size: 0.8rem; color: rgba(255,255,255,0.55); }

/* ---------- Reveal ---------- */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .btn:hover, .card:hover { transform: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 1000px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .theme-columns { columns: 2; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-motif { order: -1; max-width: 220px; margin: 0 auto; }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .person { grid-template-columns: 170px 1fr; gap: 26px; }
  .gov-list--2 { grid-template-columns: 1fr; }
  /* clip (et non hidden) : évite le débordement horizontal dû au panneau
     de navigation hors écran sans casser le position: sticky du header */
  body { overflow-x: clip; }
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: fixed;
    inset: 76px 0 0 0;
    background: var(--ivory);
    flex-direction: column;
    align-items: flex-start;
    padding: 30px 24px;
    gap: 20px;
    /* le panneau reste dans le viewport (jamais translaté hors écran) :
       cela évite d'élargir la page horizontalement sur mobile */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s linear 0.25s;
    overflow-y: auto;
  }
  .nav-links.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s linear 0s;
  }
  .main-nav a:not(.btn) { font-size: 1.08rem; }
}

@media (max-width: 680px) {
  .section { padding: 60px 0; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .theme-columns { columns: 1; }
  .footer-top { grid-template-columns: 1fr; }
  .person { grid-template-columns: 1fr; text-align: center; }
  .person-photo { max-width: 200px; margin: 0 auto; }
  .person-role { margin-left: auto; margin-right: auto; }
  .stat-strip { gap: 26px; }
  .hero-badges { gap: 20px; margin-top: 40px; }
  .partner-card { flex-direction: column; }
}

/* ---------- Événements ---------- */

.event-card {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  align-items: start;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.event-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.event-date {
  background: var(--green-deep);
  color: var(--white);
  border-radius: 10px;
  padding: 12px 8px;
  text-align: center;
  font-family: var(--font-display);
  line-height: 1.05;
}
.event-date strong { display: block; font-size: 1.55rem; }
.event-date span {
  display: block;
  font-family: var(--font-body);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 5px;
}
.event-card h3 { margin-bottom: 0.35em; }
.event-card p { color: var(--muted); font-size: 0.95rem; }
.event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 14px 0 16px;
  font-size: 0.86rem;
  color: var(--green-deep);
  font-weight: 500;
}
.event-meta span { display: inline-flex; align-items: center; gap: 6px; }

.badge-open {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #14603f;
  background: #d8ecdf;
  border-radius: 999px;
  padding: 4px 12px;
}
.badge-closed {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  background: #ece8dc;
  border-radius: 999px;
  padding: 4px 12px;
}

/* ---------- Affiche ---------- */

.poster {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow);
}
.poster img { width: 100%; }

/* ---------- Presse ---------- */

.press-quote {
  border-left: 3px solid var(--gold);
  padding: 4px 0 4px 22px;
  margin: 0 0 20px;
}
.press-quote blockquote {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 1.22rem;
  line-height: 1.4;
  color: var(--green-deep);
}
.press-quote cite {
  font-style: normal;
  font-size: 0.85rem;
  color: var(--muted);
}
.press-quote cite a { text-decoration: underline; }

@media (max-width: 680px) {
  .event-card { grid-template-columns: 1fr; }
  .event-date { max-width: 92px; }
}

/* ---------- Monogramme (personne présentée sans photo) ---------- */

.person-monogram {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  background: var(--green-deep);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 2.4rem;
  letter-spacing: 0.04em;
}
.person-monogram--round { border-radius: 50%; font-size: 1.5rem; }

/* ---------- Direction ---------- */

.direction-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.direction-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 22px;
  text-align: center;
}
.direction-card .person-photo,
.direction-card .person-monogram {
  width: 108px;
  height: 108px;
  aspect-ratio: auto;
  border-radius: 50%;
  margin: 0 auto 18px;
}
.direction-card .person-monogram { font-size: 1.6rem; }
.direction-card h3 { font-size: 1.05rem; margin-bottom: 0.3em; }
.direction-card .person-role { margin-bottom: 0.8em; font-size: 0.78rem; }
.direction-card p { font-size: 0.88rem; color: var(--muted); }
.direction-card .person-placeholder-note { margin-top: -10px; margin-bottom: 14px; }

/* ---------- Sections pays ---------- */

.country-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 10px 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.country-list li {
  font-size: 0.93rem;
  padding: 9px 0 9px 16px;
  border-left: 2px solid var(--line);
  color: var(--ink);
}

@media (max-width: 1000px) { .direction-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .direction-grid { grid-template-columns: 1fr; } }
.direction-card .person-placeholder-note { min-height: 1.1em; }


/* ---------- Programmes (accordéon) ---------- */

.programme {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 14px;
  overflow: hidden;
}
.programme > summary {
  cursor: pointer;
  padding: 20px 24px;
  font-family: var(--font-display);
  font-size: 1.08rem;
  color: var(--green-deep);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.programme > summary::-webkit-details-marker { display: none; }
.programme > summary::after {
  content: "+";
  font-family: var(--font-body);
  font-size: 1.3rem;
  color: var(--gold);
  flex-shrink: 0;
  line-height: 1;
}
.programme[open] > summary::after { content: "\2212"; }
.programme > summary:hover { background: var(--green-soft); }
.programme-corps { padding: 0 24px 26px; }
.programme-corps h4 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.programme-corps td { font-size: 0.89rem; vertical-align: top; }
.programme-corps th { font-size: 0.72rem; }

@media (max-width: 680px) {
  .programme > summary { padding: 16px 18px; font-size: 1rem; }
  .programme-corps { padding: 0 18px 20px; }
}

@media (min-width: 901px) {
  .poster--sticky { position: sticky; top: 100px; }
}
