/* ==========================================================================
   CGEMA — Feuille de style principale
   Charte dérivée du logo (orange / vert / bleu) et du dépliant (bleu marine + barre verte)
   ========================================================================== */

:root {
  /* — Couleurs institutionnelles — */
  --navy-900: #0F2257;   /* fonds profonds, pied de page */
  --navy:     #1F3B8C;   /* bleu marine du dépliant : couleur dominante */
  --blue:     #006BD6;   /* bleu du logo : liens, accents */
  --blue-300: #4FA3FF;   /* bleu sur fonds sombres */
  --green:    #5D9D00;   /* vert du logo : barres signature, puces */
  --green-700:#3F7500;   /* vert lisible sur fond blanc */
  --green-300:#9BD35F;   /* vert lisible sur bleu marine (slogan) */
  --orange:   #F56A00;   /* orange du logo : appels à l'action, puces */
  --orange-700:#C25300;

  /* — Neutres — */
  --ink:      #12193A;
  --ink-2:    #4A5373;
  --line:     #E2E6F0;
  --paper:    #FFFFFF;
  --paper-2:  #F4F6FB;

  /* — Typographie — */
  --font-display: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  --font-body: "Barlow", "Helvetica Neue", Arial, sans-serif;

  --radius: 6px;
  --shadow: 0 10px 30px -12px rgba(15, 34, 87, .25);
  --container: 1200px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; color: var(--navy); }
h1, h2 { font-family: var(--font-display); font-weight: 700; letter-spacing: .2px; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: min(100% - 40px, var(--container)); margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* --- Devise « Analyser • Comprendre • Anticiper • Décider » --- */
.motto {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.motto span + span::before { content: "•"; margin: 0 .6em; color: var(--green); }

/* --- Barre verte signature (reprise du dépliant) --- */
.green-bar { position: relative; }
.green-bar::before {
  content: ""; position: absolute; top: 0; left: 0;
  width: 72%; height: 8px; background: var(--green);
}

/* --- Titres de section --- */
.eyebrow {
  display: inline-block; margin-bottom: .6rem;
  font-weight: 700; font-size: .8rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--green-700);
}
.eyebrow::before { content: ""; display: inline-block; width: 28px; height: 3px; background: var(--orange); vertical-align: middle; margin-right: 10px; }
.section { padding: 96px 0; }
.section--alt { background: var(--paper-2); }
.section--navy { background: var(--navy); color: #fff; }
.section--navy h2, .section--navy h3 { color: #fff; }
.section--navy .eyebrow { color: var(--green-300); }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(2rem, 4vw, 2.9rem); }
.section-head p { color: var(--ink-2); font-size: 1.08rem; }
.section--navy .section-head p { color: #C9D3F0; }

/* --- Boutons --- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  padding: .85em 1.5em; border-radius: var(--radius); border: 2px solid transparent;
  font-family: var(--font-body); font-weight: 700; font-size: .98rem; cursor: pointer;
  transition: transform .15s ease, background .15s ease, color .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn--primary { background: var(--orange); color: #fff; }
.btn--primary:hover { background: var(--orange-700); }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-900); }
.btn--ghost { border-color: rgba(255,255,255,.6); color: #fff; }
.btn--ghost:hover { background: rgba(255,255,255,.1); }
.btn--outline { border-color: var(--navy); color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: #fff; }

/* ==========================================================================
   En-tête
   ========================================================================== */
.topbar { background: var(--navy-900); color: #C9D3F0; font-size: .85rem; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 40px; }
.topbar a { color: #fff; }
.topbar__contacts { display: flex; gap: 22px; flex-wrap: wrap; }
.topbar__links { display: flex; gap: 18px; align-items: center; }
.topbar__links .lang { color: var(--green-300); font-weight: 700; }

.header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); transition: box-shadow .2s; }
.header.is-scrolled { box-shadow: var(--shadow); }
.header .container { display: flex; align-items: center; justify-content: space-between; min-height: 84px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 14px; color: var(--navy); }
.brand:hover { text-decoration: none; }
.brand img { width: 58px; height: auto; }
.brand__name { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; line-height: 1.05; text-transform: uppercase; max-width: 220px; }
.brand__name small { display: block; font-family: var(--font-body); font-weight: 600; font-size: .68rem; letter-spacing: .14em; color: var(--green-700); margin-top: 3px; }

.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; align-items: center; }
.nav a { display: block; padding: 10px 12px; color: var(--ink); font-weight: 600; font-size: .95rem; border-radius: var(--radius); }
.nav a:hover { color: var(--navy); background: var(--paper-2); text-decoration: none; }
.nav .has-sub { position: relative; }
.nav .sub {
  position: absolute; top: 100%; left: 0; min-width: 240px; display: block !important;
  background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--green);
  box-shadow: var(--shadow); padding: 8px; opacity: 0; visibility: hidden; transform: translateY(6px); transition: .15s;
}
.nav .has-sub:hover .sub, .nav .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
.nav .sub a { font-weight: 500; }
.nav .btn { margin-left: 10px; color: #fff; padding: .7em 1.2em; }
.nav .btn:hover { background: var(--orange-700); color: #fff; }

.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 26px; height: 3px; background: var(--navy); margin: 5px 0; border-radius: 2px; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { position: relative; overflow: hidden; background: var(--navy); color: #fff; }
.hero__inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; padding: 88px 0 104px; }
.hero .motto { color: #C9D3F0; margin-bottom: 26px; }
.hero h1 {
  color: #fff; text-transform: uppercase;
  font-size: clamp(2.5rem, 5.4vw, 4.4rem); line-height: 1; margin-bottom: 22px;
}
.hero h1 .accent { color: var(--green-300); }
.hero__lead { font-size: 1.2rem; color: #DCE3F7; max-width: 560px; margin-bottom: 14px; }
.hero__slogan { font-style: italic; font-weight: 700; color: var(--green-300); font-size: 1.25rem; margin-bottom: 34px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__visual { position: relative; display: grid; place-items: center; }
.hero__visual img { width: min(100%, 340px); filter: drop-shadow(0 30px 40px rgba(0,0,0,.25)); }
.hero__ring {
  position: absolute; inset: 0; margin: auto; width: 110%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(79,163,255,.22), transparent 62%);
}
.hero__swoosh { position: absolute; z-index: 1; pointer-events: none; }
.hero__swoosh--a { right: -160px; top: -120px; width: 760px; opacity: .14; }
.hero__swoosh--b { left: -220px; bottom: -260px; width: 620px; opacity: .08; transform: rotate(180deg); }
.hero::after { content: ""; position: absolute; left: 0; bottom: 0; width: 38%; height: 10px; background: var(--green); z-index: 3; }

/* Bandeau devise / piliers */
.pillars { position: relative; z-index: 4; margin-top: -48px; }
.pillars__grid { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; box-shadow: var(--shadow); border-radius: var(--radius); overflow: hidden; }
.pillar { padding: 28px 26px; border-right: 1px solid var(--line); position: relative; }
.pillar:last-child { border-right: 0; }
.pillar__num { font-family: var(--font-display); font-weight: 700; font-size: 2.6rem; line-height: 1; color: var(--line); position: absolute; right: 20px; top: 18px; }
.pillar h3 { font-family: var(--font-display); font-size: 1.5rem; text-transform: uppercase; margin-bottom: 6px; }
.pillar p { color: var(--ink-2); font-size: .95rem; margin: 0; }
.pillar:nth-child(1) h3 { color: var(--orange-700); }
.pillar:nth-child(2) h3 { color: var(--green-700); }
.pillar:nth-child(3) h3 { color: var(--blue); }
.pillar:nth-child(4) h3 { color: var(--navy); }

/* ==========================================================================
   À propos
   ========================================================================== */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about__text p { color: var(--ink-2); }
.about__text .lead { font-size: 1.2rem; color: var(--ink); font-weight: 500; }
.about__media { position: relative; }
.photo {
  position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3;
  background:
    linear-gradient(135deg, rgba(31,59,140,.92), rgba(31,111,209,.75)),
    repeating-linear-gradient(45deg, rgba(255,255,255,.06) 0 12px, transparent 12px 24px);
  display: grid; place-items: center; color: rgba(255,255,255,.75); text-align: center; padding: 24px;
}
.photo__label { font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; }
.photo__label strong { display: block; font-family: var(--font-display); font-size: 1.5rem; letter-spacing: 0; text-transform: none; color: #fff; margin-top: 6px; }
.about__media .photo::before { content: ""; position: absolute; top: 0; left: 0; width: 60%; height: 8px; background: var(--green); }
.about__badge {
  position: absolute; left: -28px; bottom: -28px; background: var(--orange); color: #fff;
  padding: 22px 26px; border-radius: var(--radius); box-shadow: var(--shadow); max-width: 260px;
  font-weight: 600; line-height: 1.35;
}
.about__badge b { display: block; font-family: var(--font-display); font-size: 1.6rem; text-transform: uppercase; }
.about__facts { display: flex; gap: 28px; margin-top: 28px; flex-wrap: wrap; }
.about__facts div { border-left: 4px solid var(--green); padding-left: 14px; }
.about__facts b { display: block; color: var(--navy); font-size: 1.05rem; }
.about__facts span { color: var(--ink-2); font-size: .92rem; }

/* ==========================================================================
   Mission
   ========================================================================== */
.mission { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.mission__item {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius); padding: 26px 24px 24px 58px; position: relative;
  transition: background .2s, transform .2s;
}
.mission__item:hover { background: rgba(255,255,255,.1); transform: translateY(-2px); }
.mission__item::before {
  content: ""; position: absolute; left: 24px; top: 31px; width: 16px; height: 16px; border-radius: 50%; background: var(--orange);
  box-shadow: 0 0 0 5px rgba(242,140,30,.2);
}
.mission__item h3 { font-size: 1.12rem; margin-bottom: 6px; }
.mission__item p { color: #C9D3F0; margin: 0; font-size: .97rem; }

/* ==========================================================================
   Valeurs
   ========================================================================== */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.value { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px; position: relative; overflow: hidden; }
.value::after { content: ""; position: absolute; left: 0; top: 0; height: 5px; width: 64px; background: var(--c, var(--green)); transition: width .3s; }
.value:hover::after { width: 100%; }
.value__icon { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--c, var(--green)) 14%, white); color: var(--c, var(--green)); margin-bottom: 18px; }
.value__icon svg { width: 24px; height: 24px; }
.value h3 { font-family: var(--font-display); font-size: 1.5rem; text-transform: uppercase; margin-bottom: 8px; }
.value p { color: var(--ink-2); margin: 0; }

/* ==========================================================================
   Services
   ========================================================================== */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service {
  display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 2px 0 var(--line), 0 0 0 1px var(--line);
  transition: box-shadow .2s, transform .2s;
}
.service:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.service__head { background: var(--navy); color: #fff; padding: 30px 28px 26px; position: relative; }
.service__head::before { content: ""; position: absolute; top: 0; left: 0; width: 70%; height: 6px; background: var(--green); }
.service__head svg { width: 38px; height: 38px; color: var(--green-300); margin-bottom: 14px; }
.service__head h3 { color: #fff; font-size: 1.2rem; margin: 0; }
.service__body { padding: 24px 28px 28px; flex: 1; display: flex; flex-direction: column; }
.service__body p { color: var(--ink-2); flex: 1; }
.service__body a { font-weight: 700; color: var(--navy); }
.service--feature { grid-column: span 2; flex-direction: row; }
.service--feature .service__head { flex: 0 0 44%; display: flex; flex-direction: column; justify-content: center; }
.service--feature .service__head h3 { font-size: 1.35rem; }
.service--feature .tag { display: inline-block; align-self: flex-start; margin-top: 12px; background: var(--orange); color: #fff; font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 4px 10px; border-radius: 3px; }

/* ==========================================================================
   Pourquoi adhérer
   ========================================================================== */
.join { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; }
.join__aside { position: sticky; top: 120px; }
.join__aside .photo { aspect-ratio: 1; margin-top: 28px; }
.join__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.join__list li {
  display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px;
}
.join__list li::before {
  content: counter(join, decimal-leading-zero); counter-increment: join;
  font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; color: #fff; background: var(--green);
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
}
.join__list { counter-reset: join; }
.join__list b { display: block; color: var(--navy); font-size: 1.05rem; margin-bottom: 2px; }
.join__list span { color: var(--ink-2); }

/* ==========================================================================
   ODDHDM (partenaire)
   ========================================================================== */
.partner-band { background: linear-gradient(100deg, var(--navy-900), var(--navy)); color: #fff; border-radius: var(--radius); padding: 48px; display: grid; grid-template-columns: auto 1fr auto; gap: 36px; align-items: center; position: relative; overflow: hidden; }
.partner-band::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 8px; background: var(--green); }
.partner-band__mark { width: 96px; height: 96px; border-radius: 50%; border: 2px solid var(--green-300); display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; color: var(--green-300); font-size: 1.05rem; letter-spacing: .04em; }
.partner-band h3 { color: #fff; font-family: var(--font-display); font-size: 1.7rem; margin-bottom: 8px; }
.partner-band p { color: #C9D3F0; margin: 0; max-width: 640px; }

/* ==========================================================================
   Actualités & Agenda
   ========================================================================== */
.news-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; }
.news { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.card .photo { aspect-ratio: 16/9; border-radius: 0; }
.card__body { padding: 22px 24px 26px; }
.card__meta { font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--green-700); margin-bottom: 8px; }
.card h3 { font-size: 1.1rem; }
.card p { color: var(--ink-2); font-size: .95rem; margin: 0; }
.demo-flag { display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; background: #FFF2E3; color: var(--orange-700); border: 1px dashed var(--orange); padding: 2px 8px; border-radius: 3px; margin-bottom: 18px; }

.agenda { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 24px; }
.agenda h3 { font-family: var(--font-display); font-size: 1.5rem; text-transform: uppercase; padding: 18px 0 8px; margin: 0; }
.event { display: grid; grid-template-columns: 64px 1fr; gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); }
.event__date { background: var(--navy); color: #fff; border-radius: var(--radius); text-align: center; padding: 8px 0; line-height: 1.1; border-bottom: 4px solid var(--orange); }
.event__date b { display: block; font-family: var(--font-display); font-size: 1.6rem; }
.event__date span { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; }
.event h4 { margin: 0 0 4px; font-size: 1rem; color: var(--ink); }
.event p { margin: 0; color: var(--ink-2); font-size: .9rem; }

/* ==========================================================================
   Réseau & partenaires
   ========================================================================== */
.network { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.network__item { text-align: center; padding: 32px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.network__item svg { width: 44px; height: 44px; margin: 0 auto 14px; color: var(--blue); }
.network__item b { display: block; color: var(--navy); margin-bottom: 4px; }
.network__item span { color: var(--ink-2); font-size: .92rem; }

/* ==========================================================================
   Adhésion (CTA + formulaire)
   ========================================================================== */
.cta {
  position: relative; overflow: hidden; background: var(--navy); color: #fff;
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; padding: 64px; border-radius: var(--radius);
}
.cta::before { content: ""; position: absolute; top: 0; left: 0; width: 60%; height: 10px; background: var(--green); }
.cta h2 { color: #fff; font-size: clamp(2rem, 4vw, 2.8rem); text-transform: uppercase; }
.cta p { color: #C9D3F0; }
.cta__slogan { color: var(--green-300) !important; font-style: italic; font-weight: 700; font-size: 1.15rem; }
.form { background: #fff; color: var(--ink); border-radius: var(--radius); padding: 30px; display: grid; gap: 14px; grid-template-columns: 1fr 1fr; position: relative; z-index: 1; }
.form .full { grid-column: 1 / -1; }
.form label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: 5px; color: var(--navy); }
.form input, .form select, .form textarea {
  width: 100%; font: inherit; font-size: .98rem; padding: 11px 13px; border: 1px solid #CBD2E3; border-radius: var(--radius); background: #fff; color: var(--ink);
}
.form input:focus, .form select:focus, .form textarea:focus { outline: 3px solid rgba(31,111,209,.25); border-color: var(--blue); }
.form textarea { min-height: 96px; resize: vertical; }
.form .btn { justify-content: center; width: 100%; }
.form__note { font-size: .82rem; color: var(--ink-2); margin: 0; }
.form__ok { display: none; grid-column: 1 / -1; background: #EEF8E6; border-left: 4px solid var(--green); padding: 12px 14px; color: var(--green-700); font-weight: 600; }
.form.is-sent .form__ok { display: block; }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.contact__card { background: #fff; border: 1px solid var(--line); border-top: 5px solid var(--c, var(--green)); border-radius: var(--radius); padding: 28px; }
.contact__card h3 { font-family: var(--font-display); font-size: 1.4rem; text-transform: uppercase; }
.contact__card p { margin: 0 0 .4em; color: var(--ink-2); }
.contact__card a { font-weight: 600; }
.map {
  margin-top: 24px; border-radius: var(--radius); height: 260px; position: relative; overflow: hidden;
  background:
    linear-gradient(0deg, rgba(31,59,140,.06), rgba(31,59,140,.06)),
    repeating-linear-gradient(0deg, #E7ECF6 0 1px, transparent 1px 44px),
    repeating-linear-gradient(90deg, #E7ECF6 0 1px, transparent 1px 44px), #F7F9FD;
  display: grid; place-items: center; border: 1px solid var(--line);
}
.map__river { position: absolute; left: -5%; right: -5%; top: 58%; height: 46px; background: #CFE3F8; transform: rotate(-6deg); border-radius: 50%; }
.map__pin { position: relative; z-index: 1; text-align: center; color: var(--navy); font-weight: 700; }
.map__pin::before { content: ""; display: block; width: 26px; height: 26px; margin: 0 auto 8px; background: var(--orange); border-radius: 50% 50% 50% 0; transform: rotate(-45deg); box-shadow: 0 6px 14px rgba(242,140,30,.45); }
.map__pin small { display: block; font-weight: 500; color: var(--ink-2); }

/* ==========================================================================
   Pied de page
   ========================================================================== */
.footer { background: var(--navy-900); color: #AEB9DA; padding: 72px 0 0; font-size: .95rem; position: relative; }
.footer::before { content: ""; position: absolute; top: 0; left: 0; width: 38%; height: 8px; background: var(--green); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.footer h4 { color: #fff; font-family: var(--font-display); font-size: 1.2rem; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 16px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer a { color: #DCE3F7; }
.footer__brand img { width: 92px; margin-bottom: 16px; }
.footer__brand p { max-width: 320px; }
.footer__slogan { color: var(--green-300); font-style: italic; font-weight: 700; }
.footer__social { display: flex; gap: 10px; margin-top: 16px; }
.footer__social a { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); }
.footer__social a:hover { background: var(--orange); }
.footer__social svg { width: 18px; height: 18px; fill: #fff; }
.newsletter { display: flex; margin-top: 12px; }
.newsletter input { flex: 1; min-width: 0; padding: 11px 12px; border: 0; border-radius: var(--radius) 0 0 var(--radius); font: inherit; }
.newsletter button { border-radius: 0 var(--radius) var(--radius) 0; }
.footer__bottom { margin-top: 56px; border-top: 1px solid rgba(255,255,255,.1); padding: 22px 0; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .85rem; }
.footer__bottom .motto { color: #8F9CC4; }

/* ==========================================================================
   Animations d'apparition
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .nav-toggle { display: block; }
  .nav { position: fixed; inset: 124px 0 0 0; background: #fff; padding: 20px; transform: translateX(100%); transition: transform .25s; overflow-y: auto; }
  .nav.is-open { transform: none; }
  .nav ul { flex-direction: column; align-items: stretch; }
  .nav .sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 16px; }
  .nav .btn { margin: 12px 0 0; justify-content: center; }
  .topbar__contacts span:nth-child(n+2) { display: none; }
}
@media (max-width: 960px) {
  .hero__inner, .about, .join, .cta, .news-layout { grid-template-columns: 1fr; }
  .hero__visual { order: -1; }
  .hero__visual img { width: 200px; }
  .pillars__grid { grid-template-columns: 1fr 1fr; }
  .pillar:nth-child(2) { border-right: 0; }
  .pillar:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .values, .services, .contact { grid-template-columns: 1fr 1fr; }
  .service--feature { grid-column: 1 / -1; }
  .network { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .join__aside { position: static; }
  .partner-band { grid-template-columns: 1fr; padding: 36px; }
  .about__badge { left: 16px; bottom: -24px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .section { padding: 68px 0; }
  .topbar__links a:not(.lang) { display: none; }
  .brand__name { display: none; }
  .pillars__grid, .values, .services, .contact, .news, .network, .footer__grid, .form { grid-template-columns: 1fr; }
  .pillar { border-right: 0 !important; border-bottom: 1px solid var(--line); }
  .service--feature { flex-direction: column; }
  .cta { padding: 40px 24px; }
}

/* Correctif : sur-titre lisible sur le bloc bleu marine d'adhésion */
.cta .eyebrow { color: var(--green-300); }

/* Correctif mobile : empêcher le débordement des colonnes de grille */
.hero__inner > *, .about > *, .join > *, .cta > *, .news-layout > * { min-width: 0; }
.motto { overflow-wrap: anywhere; }
@media (max-width: 640px) {
  .hero__inner { padding: 48px 0 88px; gap: 24px; }
  .hero__visual img { width: 150px; }
  .hero h1 { font-size: 2.4rem; }
  .motto { letter-spacing: .12em; font-size: .7rem; }
}

/* ==========================================================================
   Spécifique WordPress
   ========================================================================== */
/* Menus générés par WordPress (sous-menus) */
.nav .menu-item-has-children { position: relative; }
.nav .sub-menu {
  position: absolute; top: 100%; left: 0; min-width: 240px; display: block !important; list-style: none; margin: 0;
  background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--green);
  box-shadow: var(--shadow); padding: 8px; opacity: 0; visibility: hidden; transform: translateY(6px); transition: .15s; z-index: 10;
}
.nav .menu-item-has-children:hover > .sub-menu, .nav .menu-item-has-children:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.nav .sub-menu a { font-weight: 500; }
.nav .current-menu-item > a { color: var(--navy); background: var(--paper-2); }
.nav__inner { display: flex; align-items: center; }
@media (max-width: 1080px) {
  .nav__inner { flex-direction: column; align-items: stretch; }
  .nav .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 16px; }
}

/* Barre d'administration WordPress */
.admin-bar .header { top: 32px; }
@media (max-width: 782px) { .admin-bar .header { top: 0; } }

/* Images réelles à la place des emplacements photo */
.photo--img { padding: 0; background: var(--paper-2); }
.photo--img img { width: 100%; height: 100%; object-fit: cover; }
.card .photo--img { aspect-ratio: 16/9; }
.card a.card__link { color: inherit; }
.card a.card__link:hover { text-decoration: none; }
.card a.card__link:hover h3 { color: var(--blue); }
.card__more { margin-top: 12px; font-weight: 700; color: var(--navy); display: inline-block; }

/* Messages (formulaires) */
.notice { padding: 14px 18px; border-radius: var(--radius); font-weight: 600; margin-bottom: 18px; }
.notice--ok { background: #EEF8E6; border-left: 4px solid var(--green); color: var(--green-700); }
.notice--err { background: #FDECEA; border-left: 4px solid #C62828; color: #8E1C1C; }
.hp-field { position: absolute !important; left: -9999px !important; }
.empty-state { background: #fff; border: 1px dashed #CBD2E3; border-radius: var(--radius); padding: 28px; color: var(--ink-2); text-align: center; }

/* En-tête de page intérieure */
.page-hero { background: var(--navy); color: #fff; padding: 64px 0 72px; position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; left: 0; bottom: 0; width: 38%; height: 8px; background: var(--green); }
.page-hero h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.6rem); margin: 0; }
.page-hero .crumbs { color: #C9D3F0; font-size: .9rem; margin-bottom: 14px; }
.page-hero .crumbs a { color: var(--green-300); }
.page-hero__meta { color: #C9D3F0; margin-top: 14px; font-weight: 600; }

/* Listes d'articles */
.news--grid { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 960px) { .news--grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .news--grid { grid-template-columns: 1fr; } }
.cat-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.cat-filter a { padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); font-weight: 600; font-size: .9rem; background: #fff; }
.cat-filter a.is-active, .cat-filter a:hover { background: var(--navy); color: #fff; border-color: var(--navy); text-decoration: none; }

.pagination { margin-top: 48px; display: flex; justify-content: center; }
.pagination .nav-links { display: flex; gap: 6px; flex-wrap: wrap; }
.pagination .page-numbers { min-width: 42px; height: 42px; padding: 0 12px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: var(--radius); color: var(--navy); font-weight: 700; background: #fff; }
.pagination .page-numbers.current, .pagination a.page-numbers:hover { background: var(--navy); color: #fff; text-decoration: none; }

/* Liste d'événements (page Agenda) */
.events-list { display: grid; gap: 16px; max-width: 880px; }
.events-list .event { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; grid-template-columns: 76px 1fr; }
.events-list .event h4 { font-size: 1.15rem; }
.events-list .event h4 a { color: var(--navy); }
.event--past { opacity: .7; }

/* Contenu d'article / page */
.entry { max-width: 780px; margin-inline: auto; }
.entry__thumb { margin: -40px auto 40px; max-width: 980px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); position: relative; z-index: 2; }
.entry__thumb img { width: 100%; height: auto; }
.entry-content { font-size: 1.08rem; }
.entry-content > * + * { margin-top: 1.1em; }
.entry-content h2 { font-size: 2rem; margin-top: 1.6em; }
.entry-content h3 { font-size: 1.35rem; margin-top: 1.4em; }
.entry-content a { text-decoration: underline; }
.entry-content img { height: auto; border-radius: var(--radius); }
.entry-content blockquote { margin: 1.6em 0; padding: 8px 0 8px 22px; border-left: 5px solid var(--green); font-size: 1.2rem; color: var(--navy); font-style: italic; }
.entry-content ul li::marker { color: var(--orange); }
.entry-content figcaption { font-size: .88rem; color: var(--ink-2); text-align: center; }
.entry-content .alignwide { max-width: 1000px; margin-inline: calc((780px - 1000px) / 2); }
.entry-content .alignfull { width: 100vw; max-width: 100vw; margin-inline: calc(50% - 50vw); }
.aligncenter { margin-inline: auto; }
.alignleft { float: left; margin: .3em 1.4em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.4em; }
.wp-block-button__link { background: var(--orange); color: #fff !important; border-radius: var(--radius); font-weight: 700; text-decoration: none !important; }
.entry__footer { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.share { display: flex; gap: 10px; align-items: center; color: var(--ink-2); font-weight: 600; }
.share a { padding: 6px 12px; border: 1px solid var(--line); border-radius: var(--radius); font-size: .88rem; }
.event-facts { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 28px; }
.event-facts div { background: var(--paper-2); border-left: 4px solid var(--orange); padding: 12px 16px; border-radius: var(--radius); }
.event-facts b { display: block; color: var(--navy); }
@media (max-width: 860px) { .entry-content .alignwide { margin-inline: 0; max-width: 100%; } }
.footer__bottom .motto { margin: 0; }
.footer__grid ul li { color: #AEB9DA; }
#lettre .notice { font-size: .9rem; }
.mobile-only { display: none; }
@media (max-width: 1080px) { .nav { inset: 124px 0 0 0; } .admin-bar .nav { inset: 170px 0 0 0; } }

/* Photos fournies avec le thème : point de cadrage réglable (--focus) */
.photo--img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--focus, center); }
.photo--img::before { z-index: 1; }
