/* FIECE-AFRIQUE — feuille de style principale */
:root {
  --navy-900: #071634;
  --navy-800: #0b2050;
  --navy-700: #12306f;
  --blue-600: #1d3fb0;
  --blue-100: #e6ecfb;
  --gold-500: #c39a3b;
  --gold-300: #e3c988;
  --sand-100: #f7f3ea;
  --sand-200: #efe8d8;
  --ink-900: #111827;
  --ink-600: #475069;
  --ink-400: #7c8499;
  --line: #e3e0d6;
  --white: #fff;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1180px;
  --radius: 6px;
  --shadow: 0 18px 40px -22px rgba(7, 22, 52, .35);
}

/* Polices hébergées sur le site (aucun appel à un service tiers) */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("../fonts/inter.woff2") format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 500 700; font-display: swap; src: url("../fonts/source-serif-4.woff2") format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-style: italic; font-weight: 500; font-display: swap; src: url("../fonts/source-serif-4-italic.woff2") format("woff2"); }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-900);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--blue-600); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.18; margin: 0 0 .5em; color: var(--navy-900); letter-spacing: -.01em; }
h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1.1em; }
:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 3px; }

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section--sand { background: var(--sand-100); }
.section--navy { background: var(--navy-900); color: #cfd6e8; }
.section--navy h2, .section--navy h3 { color: var(--white); }
.skip { position: absolute; left: -999px; top: 0; background: var(--white); padding: 10px 16px; z-index: 100; }
.skip:focus { left: 12px; top: 12px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold-500); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 34px; height: 2px; background: currentColor; }
.lead { font-size: 1.15rem; color: var(--ink-600); max-width: 62ch; }
.section--navy .lead { color: #b9c3dc; }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .lead { margin-inline: auto; }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: var(--radius); border: 1.5px solid transparent;
  font: 600 .95rem/1 var(--sans); letter-spacing: .01em; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn--gold { background: var(--gold-500); color: var(--navy-900); }
.btn--gold:hover { background: var(--gold-300); }
.btn--navy { background: var(--navy-800); color: var(--white); }
.btn--navy:hover { background: var(--blue-600); }
.btn--outline { border-color: var(--navy-800); color: var(--navy-800); background: var(--white); }
.btn--outline:hover { background: var(--blue-100); }
.btn--ghost { border-color: rgba(255, 255, 255, .45); color: var(--white); }
.btn--ghost:hover { background: var(--white); color: var(--navy-900); }
.link-arrow { font-weight: 600; font-size: .95rem; display: inline-flex; gap: 8px; align-items: center; }
.link-arrow::after { content: "→"; transition: transform .2s; }
.link-arrow:hover { text-decoration: none; }
.link-arrow:hover::after { transform: translateX(4px); }

/* En-tête */
.topbar { background: var(--navy-900); color: #b9c3dc; font-size: .82rem; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; }
.topbar a { color: inherit; }
.topbar em { font-family: var(--serif); color: var(--gold-300); }
.header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 78px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--navy-900); }
.brand:hover { text-decoration: none; }
.brand img { width: 50px; height: 54px; object-fit: contain; }
.brand strong { display: block; font: 700 1.2rem/1.1 var(--serif); letter-spacing: .02em; }
.brand span { display: block; font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-400); margin-top: 3px; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav .btn { white-space: nowrap; }
.nav ul { display: flex; gap: 20px; list-style: none; margin: 0; padding: 0; }
.nav li a { color: var(--ink-900); font-weight: 500; font-size: .95rem; padding: 8px 0; white-space: nowrap; border-bottom: 2px solid transparent; }
.nav li a:hover, .nav li a[aria-current="page"] { text-decoration: none; color: var(--blue-600); border-color: var(--gold-500); }
.nav .btn { padding: 12px 20px; }
.burger { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); cursor: pointer; }
.burger span, .burger span::before, .burger span::after { content: ""; display: block; width: 20px; height: 2px; background: var(--navy-900); margin: auto; position: relative; }
.burger span::before { position: absolute; top: -6px; }
.burger span::after { position: absolute; top: 6px; }

/* Hero */
.hero { position: relative; color: var(--white); background: var(--navy-900); overflow: hidden; }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; opacity: .5; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(95deg, rgba(7, 22, 52, .96) 0%, rgba(7, 22, 52, .82) 45%, rgba(7, 22, 52, .35) 100%); }
.hero .wrap { position: relative; z-index: 1; padding: clamp(90px, 13vw, 170px) 0 clamp(80px, 11vw, 150px); }
.hero h1 { color: var(--white); max-width: 15ch; }
.hero h1 em { font-style: italic; color: var(--gold-300); }
.hero p { font-size: 1.15rem; max-width: 56ch; color: #d5dbeb; margin: 22px 0 34px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero--page .wrap { padding: clamp(64px, 8vw, 104px) 0; }
.hero--page h1 { font-size: clamp(2.1rem, 4.4vw, 3.3rem); max-width: 20ch; }
.hero--page p { margin-bottom: 0; }
.crumbs { font-size: .85rem; color: #b9c3dc; margin-bottom: 20px; }
.crumbs a { color: inherit; }

/* Piliers */
.pillars { background: var(--white); border-bottom: 1px solid var(--line); }
.pillars .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.pillar { padding: 34px 28px; border-left: 1px solid var(--line); }
.pillar:first-child { border-left: 0; padding-left: 0; }
.pillar svg { width: 30px; height: 30px; color: var(--gold-500); margin-bottom: 14px; }
.pillar h3 { font-size: 1.08rem; margin-bottom: 6px; }
.pillar p { font-size: .92rem; color: var(--ink-600); margin: 0; line-height: 1.55; }

/* Grilles */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(36px, 6vw, 84px); align-items: center; }
.split--rev > :first-child { order: 2; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* Portrait */
.portrait { position: relative; margin: 0 22px 22px 0; z-index: 0; }
.portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; border-radius: var(--radius); background: var(--sand-200); }
.portrait::before { content: ""; position: absolute; inset: 22px -22px -22px 22px; border: 2px solid var(--gold-500); border-radius: var(--radius); z-index: -1; }
.portrait figcaption { position: absolute; left: -18px; bottom: 28px; background: var(--navy-900); color: var(--white); padding: 16px 22px; border-left: 4px solid var(--gold-500); box-shadow: var(--shadow); }
.portrait figcaption strong { display: block; font: 600 1.08rem/1.3 var(--serif); }
.portrait figcaption span { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-300); }
.photo { width: 100%; border-radius: var(--radius); object-fit: cover; aspect-ratio: 4 / 3; box-shadow: var(--shadow); background: var(--sand-200); }

/* Cartes */
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card__img { aspect-ratio: 16 / 10; width: 100%; object-fit: cover; background: var(--sand-200); }
.card__body { padding: 28px; display: flex; flex-direction: column; flex: 1; }
.card__num { font: 600 .85rem var(--sans); letter-spacing: .14em; color: var(--gold-500); margin-bottom: 10px; }
.card__body p { color: var(--ink-600); font-size: .97rem; }
.card__body .link-arrow { margin-top: auto; }

.tile { background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--gold-500); border-radius: var(--radius); padding: 30px 28px; }
.tile svg { width: 32px; height: 32px; color: var(--blue-600); margin-bottom: 16px; }
.tile p { color: var(--ink-600); font-size: .97rem; margin: 0; }
.section--navy .tile { background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .12); border-top-color: var(--gold-500); }
.section--navy .tile svg { color: var(--gold-300); }
.section--navy .tile p { color: #b9c3dc; }

/* Listes numérotées */
.numlist { list-style: none; margin: 0; padding: 0; counter-reset: n; display: grid; gap: 0; }
.numlist li { counter-increment: n; display: grid; grid-template-columns: 64px 1fr; gap: 8px; padding: 22px 0; border-top: 1px solid var(--line); }
.numlist li:last-child { border-bottom: 1px solid var(--line); }
.numlist li::before { content: counter(n, decimal-leading-zero); font: 600 1.5rem/1.2 var(--serif); color: var(--gold-500); }
.numlist strong { display: block; font: 600 1.12rem/1.35 var(--serif); color: var(--navy-900); margin-bottom: 4px; }
.numlist span { color: var(--ink-600); font-size: .97rem; }
.section--navy .numlist li { border-color: rgba(255, 255, 255, .14); }
.section--navy .numlist strong { color: var(--white); }
.section--navy .numlist span { color: #b9c3dc; }

/* Étapes */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: s; }
.step { counter-increment: s; padding: 0 26px 0 0; position: relative; }
.step::before { content: counter(s); display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--navy-800); color: var(--white); font: 600 1.1rem var(--serif); margin-bottom: 22px; position: relative; z-index: 1; }
.step::after { content: ""; position: absolute; top: 23px; left: 46px; right: 0; height: 1px; background: var(--gold-500); }
.step:last-child::after { display: none; }
.step h3 { font-size: 1.12rem; }
.step p { font-size: .95rem; color: var(--ink-600); margin: 0; }

/* Citation */
.quote { text-align: center; max-width: 880px; margin-inline: auto; }
.quote blockquote { margin: 0; font: italic 500 clamp(1.6rem, 3.4vw, 2.5rem)/1.3 var(--serif); color: var(--white); }
.quote cite { display: block; margin-top: 22px; font: 600 .8rem var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--gold-300); font-style: normal; }

/* Galerie */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gallery img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius); background: var(--sand-200); transition: transform .3s; }
.gallery a { overflow: hidden; border-radius: var(--radius); display: block; }
.gallery a:hover img { transform: scale(1.04); }

/* Témoignages */
.testi { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; margin: 0; }
.testi blockquote { margin: 0 0 26px; font: 500 1.22rem/1.55 var(--serif); color: var(--navy-900); }
.testi blockquote::before { content: "“"; display: block; font-size: 3.4rem; line-height: .6; color: var(--gold-500); margin-bottom: 12px; }
.testi figcaption { display: flex; align-items: center; gap: 14px; font-weight: 600; }
.testi img { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; object-position: top; background: var(--sand-200); }

.testi-single { max-width: 760px; }

/* Bandeau d'appel */
.cta { background: linear-gradient(120deg, var(--navy-800), var(--blue-600)); color: var(--white); }
.cta .wrap { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: clamp(48px, 6vw, 72px) 0; flex-wrap: wrap; }
.cta h2 { color: var(--white); margin-bottom: 8px; }
.cta p { margin: 0; color: #d5dbeb; max-width: 56ch; }

/* Texte long */
.prose { max-width: 70ch; }
.prose p { color: var(--ink-600); }
.legal { max-width: 74ch; }
.legal h2 { font-size: 1.45rem; margin: 2.2em 0 .6em; }
.legal ul { padding-left: 1.2em; color: var(--ink-600); }
.legal li { margin-bottom: .6em; }
.legal strong { color: var(--navy-900); }
.todo { background: #fff3bf; color: #5c4400; padding: 1px 4px; border-radius: 3px; }
.footer__legal a { text-decoration: underline; }
.notice { background: var(--blue-100); border-left: 4px solid var(--blue-600); border-radius: var(--radius); padding: 22px 26px; color: var(--navy-800); }
.notice p:last-child { margin: 0; }
.notice--ok { background: #e8f5ec; border-color: #2f8f55; color: #174a2b; }
.notice--err { background: #fdecea; border-color: #c0392b; color: #6d1f16; }
.hp { position: absolute; left: -9999px; }
.entry { margin-bottom: 40px; }
.admin-bar .header { top: 32px; }
@media (max-width: 782px) { .admin-bar .header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .header { top: 0; } }

/* Pays membres */
.stats { display: flex; gap: 48px; margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--line); }
.stats strong { display: block; font: 600 3rem/1 var(--serif); color: var(--navy-800); }
.stats span { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-400); }
.country-block + .country-block { margin-top: 56px; }
.country-head { display: flex; align-items: center; gap: 16px; padding-bottom: 14px; margin-bottom: 26px; border-bottom: 2px solid var(--gold-500); }
.country-head h3 { margin: 0; font-size: 1.6rem; }
.country-head span { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-500); font-weight: 600; }
.members { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.member { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .25s, box-shadow .25s; }
.member:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.member__photo { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; background: var(--sand-200); }
.member__body { display: flex; align-items: center; gap: 14px; padding: 16px 18px 18px; }
.member__logo { width: 52px; height: 52px; flex-shrink: 0; border-radius: 50%; object-fit: contain; background: var(--white); border: 1px solid var(--line); }
.member h4 { font: 600 1rem/1.35 var(--serif); margin: 0 0 3px; color: var(--navy-900); }
.member p { margin: 0; font-size: .85rem; color: var(--ink-400); }
@media (max-width: 1020px) { .members { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .members { grid-template-columns: 1fr; } }

.flag { width: 36px; height: 24px; border-radius: 3px; flex-shrink: 0; display: inline-block; vertical-align: middle; }
.flag-nav { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 0; padding: 0; }
.flag-nav a { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-900); font-size: .9rem; font-weight: 500; }
.flag-nav a:hover { text-decoration: none; border-color: var(--gold-500); background: var(--sand-100); }
.flag-nav .flag { width: 30px; height: 20px; }
.member { position: relative; display: flex; flex-direction: column; }
.member__body { flex: 1; }
.member__link { display: block; padding: 12px 18px; border-top: 1px solid var(--line); font-size: .85rem; font-weight: 600; }
.member__link::before { content: ""; position: absolute; inset: 0; }
.member__link::after { content: " →"; }
.member__link:hover { text-decoration: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Page d'une Église membre */
.profile { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.profile__id { display: flex; align-items: center; gap: 20px; margin: 32px 0 8px; }
.profile__id h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 6px; }
.profile__id .eyebrow { margin-bottom: 8px; }
.profile__logo { width: 92px; height: 92px; flex-shrink: 0; border-radius: 50%; object-fit: contain; background: var(--white); border: 1px solid var(--line); }
.profile__place { display: flex; align-items: center; gap: 10px; margin: 0; color: var(--ink-600); }
.profile__place .flag { width: 27px; height: 18px; }
.profile__church h3 { margin-top: 30px; }
.profile__vision { margin: 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--gold-500); font: italic 500 1.12rem/1.6 var(--serif); color: var(--navy-800); }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 28px; margin: 34px 0 0; }
.facts div { padding: 14px 0; border-top: 1px solid var(--line); }
.facts dt { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-400); }
.facts dd { margin: 4px 0 0; font-weight: 500; }
.leader { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); position: sticky; top: 100px; }
.leader__photo { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; background: var(--sand-200); }
.leader__body { padding: 26px 28px 28px; }
.leader__body .eyebrow { margin-bottom: 10px; }
.leader h3 { font-size: 1.4rem; margin-bottom: 4px; }
.leader__church { color: var(--ink-600); font-size: .92rem; margin-bottom: 20px; }
.leader__role { background: var(--sand-100); border-left: 3px solid var(--gold-500); border-radius: var(--radius); padding: 16px 18px; }
.leader__role strong { display: block; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-400); margin-bottom: 6px; }
.leader__role p { margin: 0; font: 600 1.05rem/1.4 var(--serif); color: var(--navy-900); }
.leader__role p + p { margin-top: 6px; font: 400 .92rem/1.5 var(--sans); color: var(--ink-600); }
.profile__back { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); }
.link-arrow--back::after { display: none; }
.link-arrow--back::before { content: "←"; }
@media (max-width: 860px) { .profile { grid-template-columns: 1fr; } .leader { position: static; max-width: 420px; } .facts { grid-template-columns: 1fr; } }

/* Évènements */
.section-head--row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.section-head--row > div { max-width: 760px; }
.events-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.event-card { position: relative; display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: var(--ink-900); transition: transform .25s, box-shadow .25s; }
.event-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.event-card__media { position: relative; aspect-ratio: 16 / 10; background: var(--sand-200); overflow: hidden; }
.event-card__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; display: block; }
.event-card__media--empty { background: linear-gradient(135deg, var(--navy-800), var(--blue-600)); }
.event-card__media--empty::after { content: ""; position: absolute; inset: 0; background: linear-gradient(#fff, #fff) 50% 44% / 3px 72px no-repeat, linear-gradient(#fff, #fff) 50% 36% / 40px 3px no-repeat; opacity: .2; }
.event-card__date { position: absolute; left: 16px; bottom: 16px; z-index: 1; background: var(--white); color: var(--navy-900); border-radius: var(--radius); padding: 8px 12px 9px; font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; line-height: 1.2; text-align: center; box-shadow: 0 6px 18px -8px rgba(7, 22, 52, .5); }
.event-card__date strong { display: block; font: 600 1.55rem/1 var(--serif); letter-spacing: 0; color: var(--blue-600); }
.event-card__body { display: flex; flex-direction: column; flex: 1; padding: 24px 26px 26px; }
.event-card__meta { font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--gold-500); margin: 0 0 10px; }
.event-card h3 { font-size: 1.25rem; margin-bottom: 8px; color: var(--navy-900); }
.event-card__theme { font: italic 500 1rem/1.45 var(--serif); color: var(--navy-700); margin: 0 0 10px; }
.event-card__body > p:not([class]) { color: var(--ink-600); font-size: .95rem; margin-bottom: 18px; }
.event-card__link { margin-top: auto; font-weight: 600; font-size: .92rem; }
.event-card__link::before { content: ""; position: absolute; inset: 0; }
.event-card__link::after { content: " →"; }
.event-card__link:hover { text-decoration: none; }
.events-empty { border: 1px dashed rgba(255, 255, 255, .3); border-radius: var(--radius); padding: clamp(28px, 5vw, 48px); max-width: 760px; }
.events-empty h3 { color: var(--white); font-size: 1.4rem; }
.events-empty p { color: #b9c3dc; max-width: 56ch; margin-bottom: 24px; }

/* Page d'un évènement */
.hero--page .eyebrow { margin-bottom: 14px; }
.event { display: grid; grid-template-columns: 300px 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.event__facts { position: sticky; top: 104px; background: var(--sand-100); border-top: 3px solid var(--gold-500); border-radius: var(--radius); padding: 10px 26px 26px; }
.facts--stack { grid-template-columns: 1fr; margin: 0 0 22px; }
.facts--stack div:first-child { border-top: 0; }
.event__facts .btn { width: 100%; justify-content: center; }
.entry-content { max-width: 820px; }
.entry-content > p { color: var(--ink-600); font-size: 1.05rem; }
.entry-content > p:first-child { font-size: 1.2rem; color: var(--ink-900); }
.entry-content h2 { font-size: 1.6rem; margin: 1.8em 0 .6em; }
.entry-content ul { padding-left: 1.2em; color: var(--ink-600); }
.entry-content li { margin-bottom: .5em; }
.entry-content .wp-block-gallery { columns: 3; column-gap: 14px; margin: 26px 0 0; padding: 0; display: block; }
.entry-content .wp-block-gallery figure { break-inside: avoid; margin: 0 0 14px; overflow: hidden; border-radius: var(--radius); background: var(--sand-200); }
.entry-content .wp-block-gallery a { display: block; cursor: zoom-in; }
.entry-content .wp-block-gallery img { width: 100%; height: auto; display: block; transition: transform .35s; }
.entry-content .wp-block-gallery a:hover img { transform: scale(1.04); }
.entry-content figcaption { display: none; }

/* Visionneuse */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(4, 12, 30, .94); display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; }
.lightbox[hidden] { display: none; }
.lightbox__img { grid-column: 2; justify-self: center; max-width: 100%; max-height: 86vh; border-radius: 4px; box-shadow: 0 30px 80px -20px #000; }
.lightbox button { background: none; border: 0; color: var(--white); font-size: 2rem; line-height: 1; cursor: pointer; width: 52px; height: 52px; border-radius: 50%; justify-self: center; }
.lightbox button:hover { background: rgba(255, 255, 255, .12); }
.lightbox__close { position: absolute; top: 16px; right: 16px; }
.lightbox__count { position: absolute; left: 0; right: 0; bottom: 18px; text-align: center; color: #b9c3dc; font-size: .85rem; letter-spacing: .08em; }
@media (max-width: 1020px) { .events-grid { grid-template-columns: repeat(2, 1fr); } .entry-content .wp-block-gallery { columns: 2; } }
@media (max-width: 860px) { .event { grid-template-columns: 1fr; } .event__facts { position: static; } }
@media (max-width: 640px) { .events-grid { grid-template-columns: 1fr; } .lightbox { grid-template-columns: 44px 1fr 44px; } .lightbox button { width: 40px; height: 40px; font-size: 1.6rem; } }

/* Contact */
.contact-list { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 22px; }
.contact-list li { display: grid; grid-template-columns: 46px 1fr; gap: 16px; align-items: start; }
.contact-list svg { width: 46px; height: 46px; padding: 11px; border-radius: 50%; background: var(--blue-100); color: var(--blue-600); }
.contact-list strong { display: block; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-400); }
.form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(26px, 4vw, 42px); box-shadow: var(--shadow); display: grid; gap: 18px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form label { display: grid; gap: 7px; font-size: .88rem; font-weight: 600; color: var(--navy-900); }
.form input, .form select, .form textarea { font: inherit; font-weight: 400; padding: 13px 14px; border: 1px solid #cfcbbf; border-radius: var(--radius); background: var(--white); color: var(--ink-900); width: 100%; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--blue-600); outline-offset: 0; border-color: var(--blue-600); }
.form small { color: var(--ink-400); font-weight: 400; }

/* Pied de page */
.footer { background: var(--navy-900); color: #aab4cf; font-size: .93rem; }
.footer .wrap { padding: 68px 0 0; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 44px; padding-bottom: 52px; }
.footer .brand { color: var(--white); margin-bottom: 18px; }
.footer .brand span { color: #8f9bbb; }
.footer .brand img { background: var(--white); border-radius: 50%; padding: 5px; width: 56px; height: 56px; }
.footer h4 { font: 600 .78rem var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-300); margin-bottom: 18px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer a { color: #cfd6e8; }
.footer a:hover { color: var(--white); }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding: 22px 0; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .84rem; }
.footer__bottom em { font-family: var(--serif); color: var(--gold-300); }

/* Consentement à la mesure d'audience */
.consent { position: fixed; z-index: 60; left: 20px; right: 20px; bottom: 20px; max-width: 760px; margin-inline: auto; background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--gold-500); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 24px; display: flex; align-items: center; gap: 24px; font-size: .92rem; line-height: 1.55; }
.consent[hidden] { display: none; }
.consent p { margin: 0; color: var(--ink-600); }
.consent strong { color: var(--navy-900); }
.consent__actions { display: flex; gap: 10px; flex-shrink: 0; }
.consent .btn { padding: 12px 20px; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: #cfd6e8; text-decoration: underline; cursor: pointer; }
.linklike:hover { color: var(--white); }
@media (max-width: 640px) {
  .consent { flex-direction: column; align-items: stretch; left: 12px; right: 12px; bottom: 12px; }
  .consent__actions .btn { flex: 1; justify-content: center; }
}

/* Apparition */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* Responsive */
@media (max-width: 1020px) {
  .grid-4, .pillars .wrap { grid-template-columns: repeat(2, 1fr); }
  .pillar:nth-child(odd) { border-left: 0; padding-left: 0; }
  .pillar:nth-child(n+3) { border-top: 1px solid var(--line); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .step:nth-child(2)::after { display: none; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1140px) {
  .burger { display: block; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 22px; display: none; box-shadow: var(--shadow); }
  .nav.is-open { display: flex; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav li a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 18px; justify-content: center; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .split, .grid-2, .grid-3, .form .row { grid-template-columns: 1fr; }
  .split--rev > :first-child { order: 0; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .portrait { margin-right: 22px; }
  .portrait figcaption { left: 0; }
  .topbar span:first-child { display: none; }
  .topbar .wrap { justify-content: center; }
  .brand span { display: none; }
}
@media (max-width: 520px) {
  .grid-4, .pillars .wrap, .steps, .footer__grid { grid-template-columns: 1fr; }
  .pillar { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); }
  .pillar:first-child { border-top: 0; }
  .step::after { display: none; }
  .numlist li { grid-template-columns: 48px 1fr; }
}

/* Ajustements pour téléphone */
.link-arrow { padding: 9px 0; }
.facts--stack:last-child { margin-bottom: 0; }
@media (max-width: 760px) {
  /* En dessous de 16 px, iOS zoome sur le champ dès qu'on le touche. */
  .form input, .form select, .form textarea { font-size: 16px; }
  .consent { padding: 16px 18px; gap: 14px; font-size: .86rem; line-height: 1.5; }
  .consent .btn { padding: 11px 16px; }
}
@media (max-width: 520px) {
  .hero--page h1 { font-size: 1.8rem; }
}

/* Ajustements pour tablette : quand trois cartes passent sur deux colonnes, la dernière
   occupe toute la largeur (image à gauche, texte à droite) au lieu de rester seule. */
@media (min-width: 761px) and (max-width: 1020px) {
  .form .row { grid-template-columns: 1fr; }
  .grid-3 > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  .grid-3 > .card:last-child:nth-child(odd) { flex-direction: row; }
  .grid-3 > .card:last-child:nth-child(odd) .card__img { width: 50%; aspect-ratio: auto; min-height: 240px; }
  .grid-3 > .card:last-child:nth-child(odd) .card__body { justify-content: center; }
}
@media (min-width: 641px) and (max-width: 1020px) {
  .events-grid > .event-card:last-child:nth-child(odd) { grid-column: 1 / -1; flex-direction: row; }
  .events-grid > .event-card:last-child:nth-child(odd) .event-card__media { width: 50%; aspect-ratio: auto; min-height: 260px; }
  .events-grid > .event-card:last-child:nth-child(odd) .event-card__body { justify-content: center; }
  .events-grid > .event-card:last-child:nth-child(odd) .event-card__link { margin-top: 0; }
}
