/* =========================================================
   BertrandDupont.org · Refonte 2024
   Feuille de styles principale
   Palette : Bleu marine #14284B · Rouge #D9243C · Blanc
   ========================================================= */

:root {
  --rouge: #d9243c;
  --rouge-fonce: #b31d31;
  --bleu: #14284b;
  --bleu-clair: #23406e;
  --bleu-nuit: #0e1c36;
  --gris-fond: #f5f7fa;
  --gris-bord: #e4e8ef;
  --gris-texte: #46505f;
  --texte: #1e2733;
  --blanc: #ffffff;
  --ombre: 0 10px 30px rgba(20, 40, 75, .10);
  --ombre-forte: 0 18px 50px rgba(20, 40, 75, .18);
  --rayon: 16px;
  --rayon-sm: 10px;
  --max: 1200px;
  --transition: .25s ease;
  --police-titre: "Poppins", "Segoe UI", system-ui, -apple-system, sans-serif;
  --police-texte: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
}

/* ---------- Base ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--police-texte);
  color: var(--texte);
  background: var(--blanc);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img { max-width: 100%; display: block; }

a { color: var(--rouge); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--rouge-fonce); }

h1, h2, h3, h4 { font-family: var(--police-titre); color: var(--bleu); line-height: 1.2; font-weight: 700; }

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

.section { padding: 84px 0; }
.section--gris { background: var(--gris-fond); }
.section--bleu { background: var(--bleu); color: #dfe6f2; }
.section--bleu h2, .section--bleu h3 { color: #fff; }

.section-head { max-width: 1060px; margin: 0 auto 48px; text-align: center; }
.section-head .eyebrow {
  display: inline-block; font-family: var(--police-titre); font-weight: 700;
  text-transform: uppercase; letter-spacing: .14em; font-size: .95rem;
  color: var(--rouge); margin-bottom: 14px;
}
.section-head h2 { font-size: clamp(1.7rem, 2.9vw, 2rem); }
.section-head p { color: var(--gris-texte); margin: 14px auto 0; max-width: 780px; font-size: 1.05rem; }
.section--bleu .section-head p { color: #b9c6dd; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--police-titre); font-weight: 600; font-size: .98rem;
  padding: 14px 28px; border-radius: 40px; cursor: pointer; border: 2px solid transparent;
  transition: transform var(--transition), background var(--transition), box-shadow var(--transition), color var(--transition);
}
.btn:hover { transform: translateY(-2px); }
.btn--rouge { background: var(--rouge); color: #fff; box-shadow: 0 8px 22px rgba(217,36,60,.32); }
.btn--rouge:hover { background: var(--rouge-fonce); color: #fff; }
.btn--bleu { background: var(--bleu); color: #fff; }
.btn--bleu:hover { background: var(--bleu-clair); color: #fff; }
.btn--ligne { background: transparent; border-color: currentColor; color: var(--bleu); }
.btn--ligne:hover { background: var(--bleu); color: #fff; border-color: var(--bleu); }
.btn--blanc { background: #fff; color: var(--bleu); }
.btn--blanc:hover { background: #eef2f8; color: var(--bleu); }
.btn--ghost { background: transparent; border-color: rgba(255,255,255,.55); color: #fff; }
.btn--ghost:hover { background: rgba(255,255,255,.12); color: #fff; border-color: #fff; }

/* ---------- Bandeau cookies / mesure d'audience ---------- */
.cookie-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 9998;
  background: var(--bleu); color: #e8eef7;
  padding: 16px 22px; box-shadow: 0 -6px 24px rgba(14,28,54,.28);
  display: flex; align-items: center; justify-content: center; gap: 20px; flex-wrap: wrap;
}
.cookie-bar__txt { margin: 0; font-size: .92rem; line-height: 1.55; max-width: 760px; }
.cookie-bar__txt a { color: #ffd7dd; text-decoration: underline; }
.cookie-bar__actions { display: flex; gap: 10px; flex: none; }
.cookie-bar .btn { padding: 10px 24px; font-size: .9rem; }
@media (max-width: 680px) {
  .cookie-bar { flex-direction: column; gap: 12px; text-align: center; padding: 16px; }
  .cookie-bar__actions { width: 100%; justify-content: center; }
}

/* ---------- En-tête / navigation ---------- */
.header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--gris-bord);
}
/* Menu aligné sur la colonne de contenu (même conteneur que le corps de page) */
.header .container { max-width: var(--max); padding-left: 24px; padding-right: 24px; }
.nav { display: flex; flex-wrap: nowrap; align-items: center; justify-content: space-between; height: 76px; gap: 20px; }
.nav__logo img { height: 52px; width: auto; border-radius: 6px; }
.nav__menu { display: flex; flex-wrap: nowrap; align-items: center; gap: 14px; list-style: none; }
.nav__menu a {
  display: block; white-space: nowrap;
  font-family: var(--police-titre); font-weight: 500; font-size: .93rem; color: var(--bleu);
  padding: 9px 12px; border-radius: 8px; transition: background var(--transition), color var(--transition);
}
.nav__menu a:hover { background: var(--gris-fond); color: var(--rouge); }
.nav__menu a.actif { color: var(--rouge); }
.nav__menu a.actif::after {
  content: ""; display: block; height: 3px; width: 22px; margin: 3px auto 0;
  background: var(--rouge); border-radius: 3px;
}
.nav__right { display: flex; align-items: center; gap: 14px; }
.nav__lang { position: relative; }
.nav__lang__btn {
  display: inline-flex; align-items: center; gap: 6px; font: inherit; cursor: pointer;
  background: var(--gris-fond); border: 1px solid var(--gris-bord); color: var(--bleu);
  border-radius: 999px; padding: 5px 10px; transition: var(--transition);
}
.nav__lang__btn:hover { background: #fff; box-shadow: var(--ombre); }
.nav__lang__btn .flag { font-size: 1.1rem; line-height: 1; }
.nav__lang__btn svg { width: 12px; height: 12px; transition: transform var(--transition); }
.nav__lang.ouvert .nav__lang__btn svg { transform: rotate(180deg); }
.nav__lang__menu {
  position: absolute; top: calc(100% + 8px); right: 0; min-width: 156px; z-index: 60;
  background: #fff; border: 1px solid var(--gris-bord); border-radius: 12px; box-shadow: var(--ombre-forte);
  padding: 6px; display: none; flex-direction: column; gap: 2px;
}
.nav__lang.ouvert .nav__lang__menu { display: flex; }
.nav__lang__menu a {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 8px;
  text-decoration: none; color: var(--bleu); font-family: var(--police-titre); font-weight: 500;
  font-size: .92rem; white-space: nowrap;
}
.nav__lang__menu a:hover { background: var(--gris-fond); color: var(--rouge); }
.nav__lang__menu .flag { font-size: 1.15rem; line-height: 1; }
.nav__social { display: flex; gap: 10px; }
.nav__social a {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--gris-fond); color: var(--bleu); transition: var(--transition);
}
.nav__social a:hover { background: var(--rouge); color: #fff; transform: translateY(-2px); }
.nav__social svg { width: 16px; height: 16px; fill: currentColor; }
.nav__toggle {
  display: none; background: none; border: none; cursor: pointer; padding: 8px;
  color: var(--bleu);
}
.nav__toggle svg { width: 28px; height: 28px; }

/* ---------- Héros ---------- */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background: linear-gradient(135deg, var(--bleu-nuit), var(--bleu-clair));
}
.hero__inner {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center;
  padding-top: 84px; padding-bottom: 84px;
}
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 10px; font-family: var(--police-titre);
  font-weight: 600; letter-spacing: .14em; text-transform: uppercase; font-size: .8rem;
  color: #ffd7dd; background: rgba(217,36,60,.25); padding: 7px 16px; border-radius: 30px;
  margin-bottom: 22px;
}
.hero h1 { color: #fff; font-size: clamp(2.1rem, 4.6vw, 3.4rem); letter-spacing: -.5px; }
.hero__lead { font-size: 1.18rem; color: #c9d5ea; margin: 22px 0 30px; max-width: 44ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__hashtag { margin-top: 26px; font-family: var(--police-titre); font-weight: 600; color: #ffd7dd; }
.hero__media { position: relative; }
.hero__media img {
  border-radius: 20px; box-shadow: var(--ombre-forte); width: 100%; object-fit: cover;
  border: 5px solid rgba(255,255,255,.12);
}
.hero__badge {
  position: absolute; bottom: -18px; left: -18px; background: var(--rouge); color: #fff;
  font-family: var(--police-titre); font-weight: 700; padding: 14px 20px; border-radius: 14px;
  box-shadow: var(--ombre-forte); line-height: 1.15;
}
.hero__badge span { display: block; font-size: .72rem; font-weight: 500; opacity: .85; }
/* bande tricolore décorative */
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px;
  background: linear-gradient(90deg, var(--bleu-clair) 0 33%, #fff 33% 66%, var(--rouge) 66% 100%);
}

/* Bannière de page (pages intérieures) */
.pagehead {
  background: linear-gradient(135deg, var(--bleu-nuit), var(--bleu-clair));
  color: #fff; padding: 64px 0; position: relative;
}
.pagehead::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px;
  background: linear-gradient(90deg, var(--bleu-clair) 0 33%, #fff 33% 66%, var(--rouge) 66% 100%);
}
.pagehead .eyebrow {
  font-family: var(--police-titre); font-weight: 600; text-transform: uppercase;
  letter-spacing: .14em; font-size: .8rem; color: #ffd7dd;
}
.pagehead h1 { color: #fff; font-size: clamp(1.9rem, 4vw, 2.9rem); margin: 12px 0 8px; }
.pagehead p { color: #c9d5ea; max-width: none; font-size: 1.08rem; }
.breadcrumb { font-size: .85rem; color: #9fb0cd; margin-bottom: 18px; }
.breadcrumb a { color: #cdd8ec; }
.breadcrumb a:hover { color: #fff; }

/* ---------- Grilles & cartes ---------- */
.grid { display: grid; gap: 26px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border: 1px solid var(--gris-bord); border-radius: var(--rayon);
  padding: 30px; box-shadow: var(--ombre); transition: transform var(--transition), box-shadow var(--transition);
  height: 100%;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--ombre-forte); }
.card__icon {
  width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(217,36,60,.10); color: var(--rouge); margin-bottom: 18px; font-size: 1.4rem;
}
.card h3 { font-size: 1.18rem; margin-bottom: 10px; }
.card p { color: var(--gris-texte); font-size: .98rem; }

/* ---------- Cartes projet (photo cliquable) ---------- */
.projet-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.projet-card {
  position: relative; display: block; overflow: hidden; border-radius: var(--rayon);
  aspect-ratio: 16 / 10; box-shadow: var(--ombre); text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition);
}
.projet-card img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s ease;
}
.projet-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(14,28,54,.88) 0%, rgba(14,28,54,.35) 48%, rgba(14,28,54,0) 78%);
}
.projet-card h3 {
  position: absolute; left: 22px; right: 22px; bottom: 18px; z-index: 2; margin: 0;
  color: #fff; font-size: 1.22rem; line-height: 1.25; font-weight: 700;
  text-shadow: 0 2px 12px rgba(0,0,0,.35);
}
.projet-card:hover { transform: translateY(-6px); box-shadow: var(--ombre-forte); }
.projet-card:hover img { transform: scale(1.06); }
@media (max-width: 900px) { .projet-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
@media (max-width: 560px) { .projet-grid { grid-template-columns: 1fr; } }

/* ---------- Page détail d'un projet ---------- */
.projet-hero { position: relative; overflow: hidden; background: var(--bleu-nuit); }
.projet-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .34; }
.projet-hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(120deg, rgba(14,28,54,.92) 0%, rgba(20,40,75,.62) 60%, rgba(20,40,75,.30) 100%);
}
.projet-hero .container { position: relative; z-index: 2; padding: 82px 24px 68px; }
.projet-hero .breadcrumb, .projet-hero .breadcrumb a { color: #c9d5ea; }
.projet-hero .breadcrumb a:hover { color: #fff; }
.projet-hero .eyebrow { color: #ffd7dd; }
.projet-hero h1 { color: #fff; font-size: clamp(2rem, 4vw, 3rem); margin-top: 10px; max-width: 20ch; }
.projet-hero__lead { color: #d6e0f0; font-size: 1.12rem; max-width: none; margin-top: 18px; line-height: 1.7; }

.propositions { display: grid; gap: 20px; max-width: 920px; margin: 0 auto; }
.proposition {
  position: relative; background: #fff; border: 1px solid var(--gris-bord); border-radius: var(--rayon);
  padding: 26px 30px 26px 94px; box-shadow: var(--ombre);
  transition: transform var(--transition), box-shadow var(--transition);
}
.proposition:hover { transform: translateY(-3px); box-shadow: var(--ombre-forte); }
.proposition__num {
  position: absolute; left: 26px; top: 26px; width: 48px; height: 48px; border-radius: 13px;
  display: grid; place-items: center; font-family: var(--police-titre); font-weight: 700; font-size: 1.12rem;
  background: linear-gradient(135deg, var(--rouge), var(--rouge-fonce)); color: #fff;
  box-shadow: 0 8px 20px rgba(217,36,60,.28);
}
.proposition h3 {
  font-size: 1.02rem; color: var(--bleu); margin-bottom: 9px;
  text-transform: uppercase; letter-spacing: .4px;
}
.proposition p { color: var(--gris-texte); font-size: 1rem; line-height: 1.72; }
.proposition ul { list-style: disc; margin: 10px 0 0 20px; display: grid; gap: 9px; }
.proposition li { color: var(--gris-texte); font-size: 1rem; line-height: 1.6; }
.proposition ul + p, .proposition p + p { margin-top: 12px; }

/* Bloc « focus » thématique en bas d'une page projet */
.bloc-focus { max-width: 920px; margin: 60px auto 0; padding-top: 54px; border-top: 1px solid var(--gris-bord); }
.bloc-focus .section-head { margin-bottom: 34px; }
.bloc-focus .section-head h2 { font-size: clamp(1.5rem, 2.6vw, 1.9rem); }
.focus-photo { margin: 0 0 30px; border-radius: var(--rayon); overflow: hidden; box-shadow: var(--ombre); }
.focus-photo img { width: 100%; height: auto; display: block; }

/* Liste compacte de mesures (page « Notre projet pour la France ») */
.mesures-groupe { max-width: 920px; margin: 0 auto 44px; }
.mesures-groupe:last-child { margin-bottom: 0; }
.mesures-groupe > h2 { font-size: 1.5rem; margin-bottom: 6px; }
.mesures-groupe > p { color: var(--gris-texte); margin-bottom: 22px; font-size: 1.05rem; }
.mesures { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.mesure {
  display: flex; gap: 14px; align-items: center; background: #fff;
  border: 1px solid var(--gris-bord); border-radius: 12px; padding: 15px 18px; box-shadow: var(--ombre);
  transition: transform var(--transition), box-shadow var(--transition);
}
.mesure:hover { transform: translateY(-3px); box-shadow: var(--ombre-forte); }
.mesure span {
  flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center;
  background: rgba(217,36,60,.10); color: var(--rouge); font-family: var(--police-titre); font-weight: 700;
}
.mesure p { color: var(--texte); font-weight: 500; font-size: .98rem; line-height: 1.45; }

/* Partage réseaux sociaux */
.partage { max-width: 920px; margin: 46px auto 0; padding-top: 30px; border-top: 1px solid var(--gris-bord); text-align: center; }
.partage__label { display: block; font-family: var(--police-titre); font-weight: 600; color: var(--bleu); margin-bottom: 16px; }
.partage__boutons { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.partage-btn {
  display: inline-flex; align-items: center; gap: 9px; padding: 10px 18px; border-radius: 11px;
  border: 1.5px solid var(--gris-bord); background: #fff; text-decoration: none;
  font-family: var(--police-titre); font-weight: 600; font-size: .92rem; color: var(--bleu);
  transition: var(--transition);
}
.partage-btn svg { width: 18px; height: 18px; fill: currentColor; }
.partage-btn.fb { color: #1877f2; }
.partage-btn.tw { color: #000; }
.partage-btn.li { color: #0a66c2; }
.partage-btn.em { color: var(--rouge); }
.partage-btn:hover { color: #fff; border-color: transparent; transform: translateY(-2px); box-shadow: var(--ombre); }
.partage-btn.fb:hover { background: #1877f2; }
.partage-btn.tw:hover { background: #000; }
.partage-btn.li:hover { background: #0a66c2; }
.partage-btn.em:hover { background: var(--rouge); }

/* Pagination entre projets */
.projet-pager { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 56px; }
.projet-pager a {
  display: inline-flex; align-items: center; gap: 10px; max-width: 46%;
  font-family: var(--police-titre); font-weight: 600; color: var(--bleu);
  background: var(--gris-fond); border: 1px solid var(--gris-bord);
  padding: 13px 20px; border-radius: 12px; transition: var(--transition);
}
.projet-pager a:hover { background: var(--rouge); color: #fff; border-color: var(--rouge); }
.projet-pager a.next { margin-left: auto; text-align: right; }
.projet-pager .vide { visibility: hidden; }

@media (max-width: 700px) { .mesures { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .proposition { padding: 22px 20px 20px; }
  .proposition__num { position: static; margin-bottom: 14px; }
  .projet-pager a { max-width: 100%; flex: 1 1 100%; }
}

/* ---------- Formulaires (procuration / mandataire) ---------- */
.form-wrap { max-width: 780px; margin: 0 auto; }
.form-intro {
  background: var(--gris-fond); border: 1px solid var(--gris-bord); border-left: 4px solid var(--rouge);
  border-radius: var(--rayon-sm); padding: 16px 20px; margin-bottom: 28px; color: var(--texte);
  font-family: var(--police-titre); font-weight: 500;
}
.form-card { background: #fff; border: 1px solid var(--gris-bord); border-radius: var(--rayon); box-shadow: var(--ombre); padding: 32px; }
.form-section + .form-section { margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--gris-bord); }
.form-section > h2 { font-size: 1.18rem; margin-bottom: 18px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.col-2 { grid-column: 1 / -1; }
.field label { font-family: var(--police-titre); font-weight: 600; font-size: .88rem; color: var(--bleu); }
.field .req { color: var(--rouge); }
.field .hint { display: block; font-size: .8rem; color: var(--gris-texte); font-weight: 400; margin-top: 2px; }
.field input, .field select, .field textarea {
  font-family: var(--police-texte); font-size: .96rem; color: var(--texte); width: 100%;
  padding: 11px 13px; border: 1.5px solid var(--gris-bord); border-radius: 10px; background: #fff;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--rouge); box-shadow: 0 0 0 3px rgba(217,36,60,.12);
}
.choix { display: flex; flex-wrap: wrap; gap: 10px 24px; padding-top: 4px; }
.choix label { display: inline-flex; align-items: center; gap: 8px; font-family: var(--police-texte); font-weight: 500; color: var(--texte); }
.choix input { width: auto; accent-color: var(--rouge); }
.form-rgpd { font-size: .82rem; color: var(--gris-texte); margin-top: 20px; line-height: 1.6; }
.form-card .btn { margin-top: 24px; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } .form-card { padding: 22px; } }

/* ---------- Page contact ---------- */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 32px; align-items: start; }
.contact-infos { background: linear-gradient(135deg, var(--bleu-nuit), var(--bleu-clair)); color: #fff; border-radius: var(--rayon); padding: 32px; box-shadow: var(--ombre); }
.contact-infos h2 { color: #fff; font-size: 1.3rem; margin-bottom: 14px; }
.contact-infos p { color: #d6e0f0; margin-bottom: 16px; line-height: 1.6; }
.contact-infos a { color: #fff; }
.contact-infos .contact-ligne { display: flex; gap: 12px; align-items: flex-start; margin-top: 18px; font-family: var(--police-titre); }
.contact-infos .contact-ligne strong { display: block; color: #ffd7dd; font-weight: 600; font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 2px; }
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Partage social rond (pages bio) ---------- */
.rs-partage { display: flex; align-items: center; gap: 11px; flex-wrap: wrap; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--gris-bord); }
.rs-partage__label { font-family: var(--police-titre); font-weight: 600; color: var(--bleu); margin-right: 4px; }
.rs-btn { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--bleu); color: #fff; text-decoration: none; transition: transform var(--transition), background var(--transition); }
.rs-btn svg { width: 19px; height: 19px; fill: #fff; }
.rs-btn:hover { transform: translateY(-3px); background: var(--rouge); }

/* ---------- Flux Facebook (carte sociale) ---------- */
.fb-feed { display: flex; justify-content: center; }
.fb-card { width: 100%; max-width: 540px; background: #fff; border: 1px solid var(--gris-bord); border-radius: 20px; overflow: hidden; box-shadow: 0 20px 50px rgba(20,40,75,.16); }
.fb-card__head { display: flex; align-items: center; gap: 14px; padding: 16px 20px; background: linear-gradient(135deg, #1877f2, #0a56c6); color: #fff; }
.fb-card__icon { flex: none; width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.18); display: grid; place-items: center; }
.fb-card__icon svg { width: 22px; height: 22px; fill: #fff; }
.fb-card__txt { display: flex; flex-direction: column; line-height: 1.2; }
.fb-card__txt strong { font-family: var(--police-titre); font-weight: 600; font-size: 1.05rem; }
.fb-card__txt span { font-size: .82rem; opacity: .9; }
.fb-card__follow { margin-left: auto; background: #fff; color: #1877f2; font-family: var(--police-titre); font-weight: 600; font-size: .85rem; padding: 8px 16px; border-radius: 20px; text-decoration: none; transition: var(--transition); }
.fb-card__follow:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(0,0,0,.18); }
.fb-card__body { padding: 14px; background: #f0f2f5; }
.fb-card__body .fb-page, .fb-card__body .fb-page span, .fb-card__body iframe { width: 100% !important; }
.fb-feed iframe { display: block; width: 100%; border: 0; }

/* ---------- Grille de vidéos (témoignages) ---------- */
.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.video-embed {
  position: relative; padding-top: 56.25%; border-radius: var(--rayon); overflow: hidden;
  box-shadow: var(--ombre); background: #000; transition: transform var(--transition), box-shadow var(--transition);
}
.video-embed:hover { transform: translateY(-4px); box-shadow: var(--ombre-forte); }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (max-width: 900px) { .video-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; } }
@media (max-width: 600px) { .video-grid { grid-template-columns: 1fr; } }

/* ---------- Galerie ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gallery figure { overflow: hidden; border-radius: var(--rayon-sm); box-shadow: var(--ombre); }
.gallery img {
  width: 100%; height: 220px; object-fit: cover; transition: transform .5s ease;
}
.gallery figure:hover img { transform: scale(1.07); }
.gallery figure:first-child { grid-column: span 2; grid-row: span 2; }
.gallery figure:first-child img { height: 100%; min-height: 454px; }

/* ---------- Bloc lettre / profil ---------- */
.profil { display: grid; grid-template-columns: 340px 1fr; gap: 48px; align-items: start; }
.profil__aside { position: sticky; top: 100px; }
.profil__photo {
  border-radius: var(--rayon); box-shadow: var(--ombre-forte); width: 100%;
  border: 5px solid #fff; outline: 1px solid var(--gris-bord);
}
.profil__facts { list-style: none; margin-top: 24px; background: var(--gris-fond); border-radius: var(--rayon); padding: 22px 24px; }
.profil__facts li { position: relative; padding: 8px 0 8px 22px; font-size: .94rem; color: var(--gris-texte); border-bottom: 1px dashed var(--gris-bord); }
.profil__facts li:last-child { border-bottom: none; }
.profil__facts li::before { content: ""; position: absolute; left: 0; top: 16px; width: 8px; height: 8px; border-radius: 50%; background: var(--rouge); }
.prose p { margin-bottom: 20px; color: var(--gris-texte); font-size: 1.06rem; }
.prose p:first-of-type::first-letter,
.prose .lead { }
.prose .lead { font-size: 1.2rem; color: var(--texte); font-weight: 500; }
.prose .signature { font-family: var(--police-titre); font-weight: 700; color: var(--bleu); font-size: 1.15rem; margin-top: 8px; }
.prose blockquote {
  border-left: 4px solid var(--rouge); background: var(--gris-fond);
  padding: 16px 22px; border-radius: 0 var(--rayon-sm) var(--rayon-sm) 0; font-style: italic; color: var(--texte);
  margin: 4px 0 22px;
}
.prose h2 { font-size: 1.35rem; color: var(--bleu); margin: 36px 0 12px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.08rem; color: var(--bleu); margin: 24px 0 8px; }
.prose ul { margin: 0 0 20px 20px; }
.prose li { margin-bottom: 8px; color: var(--gris-texte); font-size: 1.06rem; line-height: 1.6; }
.prose a:not(.btn):not(.rs-btn) { color: var(--rouge); text-decoration: underline; }
.prose--legal { max-width: 820px; margin: 0 auto; }

/* ---------- Timeline agenda ---------- */
.timeline { position: relative; max-width: 900px; margin: 0 auto; }
.timeline::before {
  content: ""; position: absolute; left: 26px; top: 8px; bottom: 8px; width: 3px;
  background: linear-gradient(var(--rouge), var(--bleu)); border-radius: 3px;
}
.tl-item { position: relative; padding: 0 0 34px 76px; }
.tl-item__dot {
  position: absolute; left: 0; top: 0; width: 56px; height: 56px; border-radius: 50%;
  background: #fff; border: 3px solid var(--gris-bord); display: grid; place-items: center;
  box-shadow: var(--ombre); overflow: hidden;
}
.tl-item__dot img { width: 100%; height: 100%; object-fit: cover; }
.tl-card { background: #fff; border: 1px solid var(--gris-bord); border-radius: var(--rayon); box-shadow: var(--ombre); padding: 24px 26px; }
.tl-card__top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.tl-card h3 { font-size: 1.25rem; }
.tl-card .lieu { color: var(--rouge); font-weight: 600; font-family: var(--police-titre); font-size: .95rem; }
.tl-card .date { display: inline-block; margin-bottom: 12px; background: var(--bleu); color: #fff; font-size: .78rem; font-weight: 600; padding: 4px 12px; border-radius: 20px; font-family: var(--police-titre); }
.tl-card ul { list-style: none; margin-top: 12px; }
.tl-card ul li { position: relative; padding: 5px 0 5px 22px; color: var(--gris-texte); font-size: .96rem; }
.tl-card ul li::before { content: "→"; position: absolute; left: 0; color: var(--rouge); font-weight: 700; }

/* ---------- Bloc mise en avant / CTA ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--rouge), var(--rouge-fonce));
  color: #fff; border-radius: var(--rayon); padding: 48px; text-align: center;
  box-shadow: var(--ombre-forte);
}
.cta-band h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.cta-band p { max-width: 60ch; margin: 14px auto 26px; color: #ffe0e5; font-size: 1.08rem; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.btn--ligne-blanc { background: transparent; border-color: rgba(255,255,255,.7); color: #fff; }
.btn--ligne-blanc:hover { background: rgba(255,255,255,.14); color: #fff; border-color: #fff; }

/* ---------- Page Programme (PDF) ---------- */
.programme-cta { display: flex; flex-wrap: wrap; gap: 32px; align-items: center; justify-content: center; margin-bottom: 40px; }
.programme-cover { display: block; flex: 0 0 auto; width: 300px; max-width: 100%; transition: transform var(--transition); }
.programme-cover:hover { transform: translateY(-4px); }
.programme-cover img { width: 100%; height: auto; border-radius: 12px; box-shadow: var(--ombre-forte); border: 1px solid var(--gris-bord); }
.programme-actions { display: flex; flex-direction: column; gap: 14px; }
.pdf-viewer { border-radius: var(--rayon); overflow: hidden; box-shadow: var(--ombre); border: 1px solid var(--gris-bord); background: var(--gris-fond); }
.pdf-viewer iframe { width: 100%; height: 82vh; min-height: 520px; border: 0; display: block; }
@media (max-width: 680px) {
  .programme-actions { width: 100%; }
  .pdf-viewer iframe { height: 70vh; min-height: 420px; }
}

/* Duo candidats (accueil) */
.duo { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.duo__card { background: #fff; border-radius: var(--rayon); overflow: hidden; box-shadow: var(--ombre); border: 1px solid var(--gris-bord); transition: transform var(--transition), box-shadow var(--transition); }
.duo__card:hover { transform: translateY(-5px); box-shadow: var(--ombre-forte); }
.duo__img { height: 440px; overflow: hidden; background: linear-gradient(160deg, #34619f 0%, #223f6b 100%); }
.duo__img img { width: 100%; height: 100%; object-fit: contain; object-position: center bottom; }
.duo__body { padding: 26px 28px 30px; }
.duo__body span { color: var(--rouge); font-weight: 600; font-family: var(--police-titre); font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; }
.duo__body h3 { font-size: 1.5rem; margin: 6px 0 10px; }
.duo__body p { color: var(--gris-texte); margin-bottom: 18px; }

/* Procurations */
.proc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.proc-card { background: #fff; border: 1px solid var(--gris-bord); border-radius: var(--rayon); padding: 38px 34px; box-shadow: var(--ombre); text-align: center; display: flex; flex-direction: column; align-items: center; }
.proc-card .btn { margin-top: auto; }
.proc-card .num { width: 60px; height: 60px; margin: 0 auto 18px; border-radius: 50%; background: var(--bleu); color: #fff; display: grid; place-items: center; font-size: 1.6rem; }
.proc-card:nth-child(2) .num { background: var(--rouge); }
.proc-card h3 { font-size: 1.35rem; margin-bottom: 12px; }
.proc-card p { color: var(--gris-texte); margin-bottom: 22px; }
.contact-box { background: var(--gris-fond); border-radius: var(--rayon); padding: 28px 30px; text-align: center; margin-top: 34px; }
.contact-box a { font-weight: 600; }

/* Partenaires */
.partners { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 40px; }
.partners img { height: 64px; width: auto; filter: grayscale(1); opacity: .7; transition: var(--transition); }
.partners img:hover { filter: grayscale(0); opacity: 1; }

/* Témoignages */
.tem-hero { text-align: center; max-width: 720px; margin: 0 auto; }
.video-cta {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: 24px; margin-top: 20px;
}

/* ---------- Pied de page ---------- */
.footer { background: var(--bleu-nuit); color: #aebbd2; padding: 64px 0 26px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer h4 { color: #fff; font-size: 1.05rem; margin-bottom: 18px; }
.footer__logo { height: 64px; width: auto; border-radius: 10px; display: inline-block; margin-bottom: 18px; }
.footer p { font-size: .95rem; }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 10px; }
.footer ul a { color: #aebbd2; font-size: .95rem; }
.footer ul a:hover { color: #fff; }
.footer__social { display: flex; gap: 12px; margin-top: 8px; }
.footer__social a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.08); display: grid; place-items: center; color: #fff; transition: var(--transition); }
.footer__social a:hover { background: var(--rouge); transform: translateY(-2px); }
.footer__social svg { width: 17px; height: 17px; fill: currentColor; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.10); margin-top: 40px; padding-top: 22px; text-align: center; font-size: .85rem; color: #7d8dab; }
.footer__bottom a { color: #a9b6ce; text-decoration: none; }
.footer__bottom a:hover { color: #fff; text-decoration: underline; }

/* ---------- Animations d'apparition ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Effets de chargement discrets ---------- */
/* Fondu doux de la page à l'ouverture */
@keyframes fape-fade-in { from { opacity: 0; } to { opacity: 1; } }
body { animation: fape-fade-in .5s ease both; }

/* Cascade légère quand une grille de cartes apparaît au défilement */
.grid .reveal:nth-child(2), .propositions .reveal:nth-child(2) { transition-delay: .07s; }
.grid .reveal:nth-child(3), .propositions .reveal:nth-child(3) { transition-delay: .14s; }
.grid .reveal:nth-child(4), .propositions .reveal:nth-child(4) { transition-delay: .21s; }
.grid .reveal:nth-child(5), .propositions .reveal:nth-child(5) { transition-delay: .10s; }
.grid .reveal:nth-child(6), .propositions .reveal:nth-child(6) { transition-delay: .17s; }

/* Accessibilité : neutralise les animations si l'utilisateur le demande */
@media (prefers-reduced-motion: reduce) {
  body { animation: none; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .reveal, .grid .reveal, .propositions .reveal { transition: none !important; transition-delay: 0s !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
  .hero__inner { grid-template-columns: 1fr; gap: 40px; padding-top: 64px; padding-bottom: 64px; }
  .hero__media { max-width: 480px; }
  .profil { grid-template-columns: 1fr; }
  .profil__aside { position: static; max-width: 380px; }
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 30px; }

  /* --- Ajustements tablette --- */
  .section { padding: 68px 0; }
  .container { padding: 0 28px; }
  .pagehead { padding: 54px 0; }
  .projet-hero .container { padding: 62px 28px 52px; }
  .section-head { margin-bottom: 38px; }
  .duo { gap: 22px; }
  .duo__img { height: 400px; }
  .duo__body { padding: 22px 24px 26px; }
  .proc-grid { gap: 22px; }
  .proc-card { padding: 32px 26px; }
  .projet-grid { gap: 20px; }
  .propositions, .mesures-groupe { max-width: 100%; }
}

@media (max-width: 1024px) {
  /* En mobile, l'en-tête devient opaque et sans backdrop-filter : ce filtre
     "piégeait" le positionnement fixed du menu déroulant (bug de superposition). */
  .header { background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .nav__logo { order: 1; }
  .nav__right { order: 2; margin-left: auto; gap: 8px; }
  .nav__social { display: none; }
  .nav__toggle { display: block; order: 3; margin-left: 10px; }
  .nav__menu {
    position: fixed; inset: 76px 0 auto 0; flex-direction: column; align-items: stretch;
    background: #fff; padding: 12px 20px 24px; gap: 2px; border-bottom: 1px solid var(--gris-bord);
    box-shadow: var(--ombre); transform: translateY(-140%); transition: transform .35s ease; z-index: 40;
    max-height: calc(100vh - 76px); overflow-y: auto;
  }
  .nav__menu.ouvert { transform: translateY(0) !important; }
  .nav__menu a { padding: 13px 12px; border-radius: 8px; }
  .nav__menu a.actif::after { display: none; }
  .nav__social { display: none; }
}

@media (max-width: 680px) {
  .section { padding: 56px 0; }
  .container { padding: 0 22px; }
  .grid--3, .grid--2, .grid--4, .duo, .proc-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery figure:first-child { grid-column: auto; grid-row: auto; }
  .gallery figure:first-child img { min-height: 0; height: 220px; }
  .cta-band { padding: 34px 22px; }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .tl-item { padding-left: 64px; }
  .timeline::before { left: 20px; }
  .tl-item__dot { width: 44px; height: 44px; }
  /* héros : badge à l'intérieur du cadre + espacements */
  .hero__badge { left: 12px; bottom: 12px; padding: 11px 16px; }
  .hero__inner { padding-top: 52px; padding-bottom: 52px; gap: 32px; }
  .pagehead { padding: 44px 0; }
  .projet-hero .container { padding: 52px 22px 44px; }
  .section-head { margin-bottom: 32px; }
  .partage__boutons { gap: 10px; }
}

/* ---------- Héros centré (liste Français à part entière) ---------- */
.hero__inner--centre { grid-template-columns: 1fr; text-align: center; justify-items: center; }
.hero__inner--centre h1 { margin-bottom: 38px; }
.hero__inner--centre .hero__actions { justify-content: center; }
.hero__logo { width: 100%; max-width: 560px; height: auto; border-radius: 14px; margin: 0 auto 28px; box-shadow: var(--ombre-forte); }
@media (max-width: 680px) { .hero__logo { max-width: 100%; margin: 0 auto 22px; } }
/* Membres de la liste */
.membre { position: relative; text-align: center; }
.membre .card__icon { margin: 0 auto 16px; width: 60px; height: 60px; font-size: 1.15rem; }
.membre__rang {
  position: absolute; top: 16px; left: 16px; z-index: 2;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--rouge); color: #fff;
  font-family: var(--police-titre); font-weight: 600; font-size: .95rem;
  display: grid; place-items: center;
  box-shadow: 0 3px 8px rgba(217,36,60,.35);
}
.card__photo {
  width: 150px; height: 150px; border-radius: 50%;
  object-fit: cover; object-position: center top;
  margin: 0 auto 18px; display: block;
  border: 4px solid #fff;
  box-shadow: 0 8px 22px rgba(20,40,75,.18);
}
.card__photo--vide {
  display: grid; place-items: center;
  background: rgba(217,36,60,.10); color: var(--rouge);
  font-family: var(--police-titre); font-weight: 600; font-size: 2rem;
}
.membre h3 { margin-bottom: 4px; }
.membre__role { color: var(--gris-texte); font-size: .92rem; margin: 0; }
.membre__bio { color: var(--gris-texte); font-size: .82rem; line-height: 1.45; margin: 8px 0 0; }
.btn-video {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 14px;
  font-family: var(--police-titre); font-weight: 600; font-size: .9rem;
  padding: 9px 18px; border-radius: 40px; background: var(--rouge); color: #fff;
  box-shadow: 0 6px 16px rgba(217,36,60,.28);
  transition: background var(--transition), transform var(--transition);
}
.btn-video:hover { background: var(--rouge-fonce); color: #fff; transform: translateY(-2px); }
.btn-video svg { width: 15px; height: 15px; fill: currentColor; }
