/* ==========================================================================
   GCAF — styles du thème
   1. Base          2. Gabarit        3. En-tête      4. Boutons
   5. Hero          6. Chiffres clés  7. Piliers      8. Cartes
   9. Partenaires  10. Bandeau CTA   11. Éditorial   12. Pied de page
   ========================================================================== */

/* 1. Base ---------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body,
h1,
h2,
h3,
h4,
p,
figure,
blockquote,
ul,
ol,
dl,
dd {
  margin: 0;
  padding: 0;
}

ul[class],
ol[class] {
  list-style: none;
}

img,
svg,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

body {
  font-family: var(--f-body);
  font-size: var(--t-md);
  line-height: 1.7;
  color: var(--c-ink);
  background: #ffe7f0;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  font-family: var(--f-display);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.015em;
}

h1 {
  font-size: var(--t-3xl);
}

h2 {
  font-size: var(--t-2xl);
}

h3 {
  font-size: var(--t-xl);
}

a {
  color: var(--c-link);
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}

a:hover,
a:focus-visible {
  color: var(--c-burg);
}

:focus-visible {
  outline: 2px solid var(--c-mag);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  background: var(--c-mag);
  color: var(--c-white);
  padding: 0.75rem 1.25rem;
  border-radius: var(--r-sm);
  z-index: 999;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* 2. Gabarit ------------------------------------------------------------- */
.wrap {
  width: min(100% - 2 * var(--px), var(--wrap));
  margin-inline: auto;
}

.section {
  padding-block: var(--py);
}

.section--soft {
  background: var(--c-bg-soft);
}

.section--dark {
  background: var(--c-ink-bg);
  color: var(--c-on-dark);
}

.section--dark h2,
.section--dark h3 {
  color: var(--c-on-dark);
}

.section__head {
  margin-bottom: 3.5rem;
}

.section__head--center {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  font-family: var(--f-mono);
  font-size: var(--t-xs);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-mag);
  margin-bottom: 0.85rem;
}

.section--dark .eyebrow {
  color: var(--c-gold-pale);
}

.lead {
  font-size: var(--t-lg);
  color: var(--c-ink-soft);
  line-height: 1.6;
}

.section--dark .lead {
  color: var(--c-on-dark-sf);
}

.section__link {
  display: inline-block;
  margin-top: 2.5rem;
  font-family: var(--f-mono);
  font-size: var(--t-sm);
}

.section__link::after {
  content: ' \2192';
}

/* 3. En-tête ------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgb(255 255 255 / 95%);
  border-bottom: 1px solid var(--c-line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-right: auto;
}

/* Le logo est un ovale sur fond blanc : on le laisse entier plutôt que de le
   recadrer en cercle, ce qui en rognerait les bords gauche et droit. */
.site-brand--header .site-brand__mark {
  display: grid;
  place-items: center;
  height: 56px;
  flex-shrink: 0;
}

.site-brand--header .site-brand__mark img {
  height: 56px;
  width: auto;
  max-width: none;
  object-fit: contain;
}

.site-brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.site-brand__name {
  font-family: var(--f-display);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--c-ink);
}

.site-brand__tag {
  font-family: var(--f-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-ink-soft);
}

.nav-toggle {
  display: none;
  place-items: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  padding: 0;
  background: none;
  border: 1px solid var(--c-line);
  border-radius: var(--r-sm);
  color: var(--c-ink);
  cursor: pointer;
}

/* Trois traits dessines en CSS : le trait du milieu est l'element lui-meme,
   les deux autres ses pseudo-elements. Ils se croisent quand le menu s'ouvre. */
.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: '';
  position: absolute;
  left: 0;
}
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }

.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }


.main-nav ul {
  display: flex;
  gap: 0.35rem;
  align-items: center;
}

.main-nav a {
  position: relative;
  display: block;
  padding: 0.6rem 0.9rem;
  color: var(--c-ink);
  font-size: var(--t-sm);
  font-weight: 500;
  transition: color var(--dur) var(--ease);
}

/* Filet doré sous l'item : il pousse depuis le centre au survol, et reste
   affiché sur la page courante. Plus sobre qu'une pastille pleine. */
.main-nav a::after {
  content: '';
  position: absolute;
  left: 0.9rem;
  right: 0.9rem;
  bottom: 0.2rem;
  height: 2px;
  border-radius: 2px;
  background: var(--c-gold);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--dur) var(--ease);
}

.main-nav a:hover { color: var(--c-burg); }
.main-nav a:hover::after { transform: scaleX(1); }

.main-nav .current-menu-item>a,
.main-nav .current_page_item>a,
.main-nav .current-menu-ancestor>a {
  color: var(--c-mag);
  font-weight: 600;
}

.main-nav .current-menu-item>a::after,
.main-nav .current_page_item>a::after,
.main-nav .current-menu-ancestor>a::after {
  transform: scaleX(1);
}

@media (max-width: 1023px) {
  /* Empilé en colonne, un filet sous le texte se lit mal : on repasse à un
     fond plein, plus confortable au doigt. */
  .main-nav a::after { display: none; }
  .main-nav a { border-radius: var(--r-sm); }
  .main-nav a:hover,
  .main-nav .current-menu-item>a,
  .main-nav .current_page_item>a { background: var(--c-blush); }
}

.header-cta {
  flex-shrink: 0;
}

@media (max-width: 1024px) {
  .nav-toggle { display: grid; }

  .header-cta { display: none; }

  /* La barre reste sur une seule ligne : marque a gauche, bouton a droite.
     Sans cela, le bouton passait sous le nom du site. */
  .site-header .wrap { flex-wrap: nowrap; gap: 1rem; }
  .site-brand { min-width: 0; }
  .site-brand__name { font-size: 1.125rem; }
  .site-brand__tag { font-size: 0.625rem; }
  .site-brand--header .site-brand__mark,
  .site-brand--header .site-brand__mark img { height: 44px; }

  /* Le menu se deploie par-dessus la page au lieu d'agrandir l'en-tete. */
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    padding: 0.75rem var(--px) 1.25rem;
    background: var(--c-white);
    border-bottom: 1px solid var(--c-line);
    box-shadow: 0 12px 24px rgba(58, 0, 32, 0.08);
  }

  .main-nav.is-open { display: block; }

  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
  }

  .main-nav a { padding: 0.8rem 1rem; }
}

/* 4. Boutons ------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.75rem;
  border-radius: var(--r-full);
  font-family: var(--f-body);
  font-size: var(--t-sm);
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  text-align: center;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
    background var(--dur) var(--ease), color var(--dur) var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--primary {
  background: var(--g-accent);
  color: var(--c-white);
  box-shadow: var(--sh-md);
}

.btn--primary:hover {
  color: var(--c-white);
  box-shadow: var(--sh-lg);
}

.btn--ghost {
  border-color: var(--c-line);
  color: var(--c-ink);
  background: var(--c-white);
}

.btn--ghost:hover {
  border-color: var(--c-mag);
  color: var(--c-mag);
}

.btn--on-dark {
  border-color: var(--c-on-dark-ln);
  color: var(--c-on-dark);
  background: rgba(255, 255, 255, 0.08);
}

.btn--on-dark:hover {
  border-color: var(--c-white);
  color: var(--c-white);
  background: rgba(255, 255, 255, 0.16);
}

.btn--outline {
  border-color: var(--c-mag);
  color: var(--c-mag);
  background: transparent;
}

.btn--outline:hover {
  background: var(--c-mag);
  color: var(--c-white);
}

.btn--gold {
  background: var(--c-gold);
  color: var(--c-deep);
}

.btn--gold:hover {
  background: var(--c-gold-lt);
  color: var(--c-deep);
}

/* 5. Hero ---------------------------------------------------------------- */
.hero {
  /* position + isolation : indispensables pour que le ::before du fond reste
     derriere le contenu sans remonter au-dessus du reste de la page. */
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(90% 70% at 0% 0%, #fbeef5 0%, rgba(251, 238, 245, 0) 60%),
    linear-gradient(120deg, #fdf7fa 0%, #fffdfa 48%, #fdf6f1 100%);
  padding-block: clamp(3rem, 7vw, 5.5rem);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: url('../img/blur.svg');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  /* Plus attenue qu'ailleurs : le titre et le chapeau se lisent par-dessus. */
  opacity: 0.32;
  pointer-events: none;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

/* Colonne de gauche */
.hero__title {
  font-size: clamp(2.75rem, 6.2vw, 4.75rem);
  line-height: 1.05;
  color: var(--c-ink);
  margin-bottom: 1.75rem;
}

.hero__title-accent {
  color: var(--c-mag);
  font-style: italic;
  font-weight: 600;
}

.hero__lead {
  max-width: 44ch;
  color: var(--c-ink-soft);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.5rem;
}

.hero__partner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.75rem;
  margin-top: 2.75rem;
  font-size: var(--t-sm);
}

.hero__partner strong {
  color: var(--c-mag);
  font-weight: 700;
}

.hero__partner span {
  color: var(--c-ink-soft);
}

/* Surtitre avec filet doré */
.eyebrow--dash {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.eyebrow--dash::before {
  content: '';
  width: 34px;
  height: 2px;
  flex-shrink: 0;
  background: var(--c-gold);
}

/* Colonne de droite : photo, cadre décoratif, encart */
.hero__figure {
  position: relative;
}

.hero__frame {
  position: absolute;
  inset: -1.75rem -2.25rem 4.5rem 3.5rem;
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg) 3.5rem var(--r-lg) 3.5rem;
  pointer-events: none;
}

.hero__media {
  position: relative;
  border-radius: 2.5rem var(--r-lg) 2.5rem var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-lg);
}

.hero__media img {
  width: 100%;
  aspect-ratio: 4 / 3.2;
  object-fit: cover;
}

.hero__badge {
  position: absolute;
  left: -1.5rem;
  bottom: 1.5rem;
  max-width: 19rem;
  padding: 1.75rem;
  background: var(--c-mag);
  color: var(--c-white);
  border-radius: var(--r-md);
  box-shadow: var(--sh-lg);
}

.hero__badge-title {
  font-family: var(--f-display);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.15;
}

.hero__badge-text {
  margin-top: 0.75rem;
  font-size: var(--t-sm);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
}

@media (max-width: 960px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }

  .hero__frame {
    display: none;
  }

  .hero__badge {
    left: 1rem;
    right: 1rem;
  bottom: -2.5rem;
    max-width: none;
  }
}

/* 6. Chiffres clés ------------------------------------------------------- */
.stats {
  display: grid;
  gap: 2.5rem 1.5rem;
  /* Cinq chiffres : un minimum plus bas leur laisse tenir sur une ligne en
     grand écran, et évite un dernier rang orphelin sur les tailles moyennes. */
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.stat {
  text-align: center;
}

.stat__value {
  font-family: var(--f-display);
  font-size: clamp(2.75rem, 6vw, 4rem);
  font-weight: 700;
  line-height: 1;
  color: var(--c-mag);
}

.stat__label {
  font-family: var(--f-mono);
  font-size: var(--t-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-ink-soft);
  margin-top: 0.75rem;
}

.section--dark .stat__value {
  color: var(--c-gold-lt);
}

.section--dark .stat__label {
  color: var(--c-on-dark-sf);
}

/* 7. Piliers ------------------------------------------------------------- */
.pillars {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.pillar {
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  padding: 2rem 1.75rem;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.pillar:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-md);
}

.pillar__title {
  font-size: 1.1875rem;
  margin-block: 0.85rem 0.6rem;
}

/* 8. Cartes -------------------------------------------------------------- */
.grid {
  display: grid;
  gap: 2rem;
}

.grid--3 {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.grid--4 {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-md);
}

.card__media {
  display: block;
  overflow: hidden;
  background: var(--c-blush);
}

.card__media img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  width: 100%;
  transition: transform 0.5s var(--ease);
}

.card:hover .card__media img {
  transform: scale(1.04);
}

.card__body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card__title {
  font-size: 1.25rem;
  margin-block: 0.65rem 0.75rem;
}

.card__title a {
  color: var(--c-ink);
}

.card__title a:hover {
  color: var(--c-mag);
}

.card__excerpt {
  font-size: var(--t-sm);
  color: var(--c-ink-soft);
  line-height: 1.65;
}

/* 8b. Membres du bureau -------------------------------------------------- */
.membre__photo img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  width: 100%;
}

.membre__designation {
  font-size: var(--t-sm);
  color: var(--c-ink-soft);
  margin-bottom: 0.5rem;
}

.membre .card__title {
  margin-bottom: 0.35rem;
}

.membre__link {
  font-family: var(--f-mono);
  font-size: var(--t-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* 9. Partenaires --------------------------------------------------------- */
.partners {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  align-items: center;
}

.partner {
  display: grid;
  place-items: center;
  padding: 1.5rem;
  min-height: 110px;
}

.partner img {
  max-height: 62px;
  width: auto;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.65;
  transition: filter var(--dur) var(--ease), opacity var(--dur) var(--ease);
}

.partner:hover img {
  filter: none;
  opacity: 1;
}

.partner__name {
  font-size: var(--t-xs);
  color: var(--c-ink-soft);
  text-align: center;
}

/* 9c. Filtres ------------------------------------------------------------ */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 3rem;
}

.filter {
  padding: 0.5rem 1.1rem;
  border-radius: var(--r-full);
  border: 1px solid var(--c-line);
  color: var(--c-ink-soft);
  font-size: var(--t-sm);
  font-weight: 500;
  transition: all var(--dur) var(--ease);
}

.filter:hover {
  border-color: var(--c-mag);
  color: var(--c-mag);
}

.filter.is-active {
  background: var(--c-mag);
  border-color: var(--c-mag);
  color: var(--c-white);
}

.filter.is-active:hover {
  color: var(--c-white);
}

/* 9e. Présence géographique ---------------------------------------------- */
.places {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.place {
  padding: 0.6rem 1.4rem;
  border-radius: var(--r-full);
  background: var(--c-white);
  border: 1px solid var(--c-line);
  font-family: var(--f-mono);
  font-size: var(--t-sm);
  color: var(--c-burg);
}

/* 9f. Frise des dates clés ----------------------------------------------- */
.entry-content ul.timeline {
  list-style: none;
  padding-left: 0;
  border-left: 2px solid var(--c-line);
}

.entry-content ul.timeline li {
  position: relative;
  padding: 0 0 1.75rem 2rem;
}

.entry-content ul.timeline li::before {
  content: '';
  position: absolute;
  left: -7px;
  top: 0.6rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--c-gold);
  border: 2px solid var(--c-white);
}

/* 9g. Contact ------------------------------------------------------------ */
.contact-split {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: start;
}

/* Carte magenta des coordonnees */
.contact-card {
  background: var(--c-mag);
  color: var(--c-white);
  border-radius: var(--r-lg);
  padding: clamp(2rem, 4vw, 3rem);
}

.contact-card .eyebrow--on-dark {
  color: var(--c-gold-lt);
}

.contact-card__title {
  color: var(--c-white);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
}

.contact-card__text {
  margin-top: 1.25rem;
  color: rgba(255, 255, 255, 0.84);
  font-size: var(--t-sm);
  line-height: 1.7;
}

.contact-items {
  margin-top: 2.5rem;
}

.contact-items li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contact-items li+li {
  margin-top: 1.5rem;
}

.contact-items__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.16);
  border-radius: var(--r-sm);
  color: var(--c-white);
}

.contact-items__body {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.contact-items__body strong {
  font-weight: 700;
  font-size: var(--t-sm);
}

.contact-items__body a,
.contact-items__body span {
  color: rgba(255, 255, 255, 0.84);
  font-size: var(--t-sm);
}

.contact-items__body a:hover {
  color: var(--c-white);
  text-decoration: underline;
}

.contact-items__networks a {
  color: rgba(255, 255, 255, 0.84);
}

/* Carte du formulaire */
.contact-form-card {
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: clamp(2rem, 4vw, 3rem);
  box-shadow: var(--sh-sm);
}

.contact-form-card__title {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
}

.contact-form-card__text {
  margin-top: 0.65rem;
  color: var(--c-ink-soft);
  font-size: var(--t-sm);
}

.contact-form {
  margin-top: 2rem;
}

.contact-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}


.contact-form .field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.contact-form label {
  font-size: var(--t-sm);
  font-weight: 600;
  color: var(--c-ink);
}

.contact-form input,
.contact-form textarea {
  font: inherit;
  font-size: var(--t-sm);
  color: var(--c-ink);
  background: var(--c-bg-soft);
  border: 1px solid var(--c-line);
  border-radius: var(--r-sm);
  padding: 0.85rem 1rem;
  width: 100%;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}

.contact-form textarea {
  resize: vertical;
  max-height: 9.5rem;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--c-ink-soft);
  opacity: 0.7;
}

.contact-form input:focus,
.contact-form textarea:focus {
  background: var(--c-white);
  border-color: var(--c-mag);
  outline: none;
}

.contact-form__submit {
  margin-top: 1.75rem;
}

/* Pot de miel : masque a l'ecran comme aux lecteurs d'ecran, mais rempli par
   les robots qui remplissent tous les champs. */
.contact-form__honey {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-notice {
  margin-top: 1.5rem;
  padding: 0.9rem 1.15rem;
  border-radius: var(--r-sm);
  font-size: var(--t-sm);
}

.form-notice--succes {
  background: #eef7f0;
  border: 1px solid #cfe6d6;
  color: #1d5c33;
}

.form-notice--erreur {
  background: var(--c-blush);
  border: 1px solid #edc9da;
  color: var(--c-burg);
}

@media (max-width: 900px) {
  .contact-split {
    grid-template-columns: 1fr;
  }

  .contact-form__row {
    grid-template-columns: 1fr;
  }

  .contact-form__row+.field {
    margin-top: 1.25rem;
  }
}

/* 10. Bandeau d'appel ---------------------------------------------------- */
.cta-banner {
  background: var(--g-accent);
  color: var(--c-white);
  border-radius: var(--r-lg);
  padding: clamp(2.5rem, 6vw, 4.5rem);
  text-align: center;
}

.cta-banner h2 {
  color: var(--c-white);
}

.cta-banner .lead {
  color: rgba(255, 255, 255, 0.82);
  margin-inline: auto;
  max-width: 52ch;
}

.cta-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 2.5rem;
}

/* 11. Contenu éditorial -------------------------------------------------- */
/* Bandeau de titre des pages intérieures : fond rosé, contenu centré, filet
   de séparation en bas. L'accueil utilise .hero et n'est pas concerné. */
.page-hero {
  background: var(--c-blush);
  border-bottom: 1px solid var(--c-line);
  padding-block: clamp(3.5rem, 8vw, 6rem);
  text-align: center;
}

.page-hero .wrap {
  max-width: 60rem;
}

.page-hero__title {
  margin-block: 0.5rem 1.25rem;
  color: var(--c-mid);
}

.page-hero .lead {
  margin-inline: auto;
  max-width: 56ch;
}

.page-hero .entry-content {
  margin-inline: auto;
  text-align: center;
}

.page-hero .eyebrow {
  margin-bottom: 1rem;
}

.entry-content {
  max-width: 100ch;
}

.entry-content>*+* {
  margin-top: 1.35rem;
}

.entry-content h2,
.entry-content h3 {
  margin-top: 2.75rem;
}

.entry-content ul,
.entry-content ol {
  padding-left: 1.5rem;
}

.entry-content blockquote {
  border-left: 3px solid var(--c-gold);
  padding-left: 1.5rem;
  font-family: var(--f-display);
  font-size: var(--t-lg);
  color: var(--c-burg);
}

.entry-content img {
  border-radius: var(--r-md);
}

/* 12. Pied de page ------------------------------------------------------ */
.site-footer {
  position: relative;
  isolation: isolate;
  background: var(--c-mid);
  color: var(--c-white);
  margin-top: var(--py);
  overflow: hidden;
}

.site-footer::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: url('../img/footer-waves.svg');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center bottom;
  /* Le SVG monte jusqu'a #e70390, trop clair pour du texte blanc en pleine
     opacite. A moitie fondu sur le magenta du pied de page, les vagues se
     lisent et le contraste du texte reste tenu. */
  opacity: 0.5;
  pointer-events: none;
}

.site-footer>.wrap {
  padding-block: clamp(3.5rem, 7vw, 5.5rem);
}

.site-footer a {
  color: rgba(255, 255, 255, 0.86);
  font-size: var(--t-md);
}

.site-footer a:hover {
  color: var(--c-white);
}

.footer-grid {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  grid-template-columns: 1.5fr 1fr 1fr;
  align-items: start;
}

/* Colonne de marque */
.footer-brand .site-brand {
  gap: 1.15rem;
}

.footer-brand .site-brand__mark {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  flex-shrink: 0;
  background: var(--c-white);
  border-radius: 50%;
  overflow: hidden;
}

.footer-brand .site-brand__mark img {
  width: 92%;
  height: 92%;
  max-width: none;
  object-fit: contain;
}

.footer-brand .site-brand__name {
  color: var(--c-white);
  font-size: 1.75rem;
}

.footer-brand__text {
  margin-top: 1.75rem;
  max-width: 34ch;
  color: rgba(255, 255, 255, 0.78);
  font-size: var(--t-md);
  line-height: 1.65;
}

/* Colonnes de liens */
.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col li+li {
  margin-top: 0.1rem;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  color: rgba(255, 255, 255, 0.86);
  font-size: var(--t-md);
}

.footer-contact .icon {
  flex-shrink: 0;
  margin-top: 0.32em;
  opacity: 0.85;
}

/* Réseaux sociaux */
.social {
  display: flex;
  gap: 0.85rem;
  margin-top: 2rem;
}

.social a {
  display: grid;
  place-items: center;
  color: var(--c-white);
}



/* Barre de bas de page */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding-block: 1rem;
}

.footer-bottom .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: var(--t-sm);
  color: rgba(255, 255, 255, 0.68);
}

.footer-bottom ul {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
}

.footer-bottom a {
  font-size: var(--t-sm);
}

@media (max-width: 860px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.75rem;
  }

  .footer-brand__text {
    max-width: none;
  }
}

/* Pagination ------------------------------------------------------------- */
.pagination {
  margin-top: 3.5rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.pagination .page-numbers {
  padding: 0.55rem 0.95rem;
  border-radius: var(--r-sm);
  border: 1px solid var(--c-line);
  color: var(--c-ink-soft);
  font-size: var(--t-sm);
}

/* Le chargeur prend le relais et masque la pagination : sans cette regle, le
   display: flex ci-dessus l'emporterait sur le display: none de [hidden]. */
.pagination[hidden] {
  display: none;
}
.pagination .current {
  background: var(--c-mag);
  color: var(--c-white);
  border-color: var(--c-mag);
}

/* Page Événements -------------------------------------------------------- */
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.events-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.events-bar__left {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.events-bar .filters {
  margin: 0;
  gap: 0.5rem;
}

.events-bar__cat {
  display: flex;
  gap: 0.5rem;
}

.select {
  appearance: none;
  font: inherit;
  font-size: var(--t-sm);
  font-weight: 500;
  color: var(--c-ink);
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: var(--r-full);
  padding: 0.5rem 2.4rem 0.5rem 1.1rem;
  cursor: pointer;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236f5763' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9.5 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
}

.select:hover {
  border-color: var(--c-mag);
}

/* Le bouton n'est utile que sans JavaScript : main.js le masque et soumet
   le formulaire au changement de valeur. */
.events-bar__go {
  font: inherit;
  font-size: var(--t-sm);
  padding: 0.5rem 1.1rem;
  cursor: pointer;
  color: var(--c-ink);
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: var(--r-full);
}

.search-field {
  position: relative;
  display: flex;
  align-items: center;
}

.search-field .icon {
  position: absolute;
  left: 1rem;
  color: var(--c-ink-soft);
  pointer-events: none;
}

.search-field input {
  font: inherit;
  font-size: var(--t-sm);
  color: var(--c-ink);
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: var(--r-full);
  padding: 0.6rem 1.1rem 0.6rem 2.75rem;
  min-width: 17rem;
  transition: border-color var(--dur) var(--ease);
}

.search-field input:focus {
  border-color: var(--c-mag);
  outline: none;
}

.search-field input::placeholder {
  color: var(--c-ink-soft);
}

/* Carte d'événement */
.card--event .card__media-empty {
  display: block;
  aspect-ratio: 16 / 10;
  background: var(--c-blush);
}

.card__topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.9rem;
}

.tag {
  display: inline-block;
  padding: 0.3rem 0.7rem;
  border-radius: var(--r-sm);
  background: var(--c-bg-soft);
  border: 1px solid var(--c-line);
  font-size: var(--t-xs);
  font-weight: 500;
  color: var(--c-ink-soft);
}

.card__date {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: var(--t-xs);
  color: var(--c-ink-soft);
  white-space: nowrap;
}

.card--event .card__title {
  font-size: 1.3rem;
  margin-block: 0 0.6rem;
}

.card--event .card__excerpt {
  margin-bottom: 1.5rem;
}

.card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: auto;
  padding-top: 1.1rem;
  border-top: 1px solid var(--c-line);
}

.card__place {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: var(--t-xs);
  color: var(--c-ink-soft);
}

.card__go {
  color: var(--c-ink);
  transition: transform var(--dur) var(--ease);
}

.card__go:hover {
  color: var(--c-mag);
  transform: translateX(3px);
}

.events-more {
  margin-top: 3.5rem;
  text-align: center;
}

@media (max-width: 720px) {
  .events-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .search-field input {
    min-width: 0;
    width: 100%;
  }
}

/* Galerie — albums ------------------------------------------------------- */
.albums-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.album-card {
  display: flex;
  flex-direction: column;
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.album-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-md);
}

.album-card__cover {
  position: relative;
  display: block;
  padding: 0;
  border: 0;
  width: 100%;
  background: var(--c-blush);
  cursor: pointer;
  overflow: hidden;
}

.album-card__cover[disabled] {
  cursor: default;
}

.album-card__cover img,
.album-card__cover video,
.album-card__empty {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.album-card__cover:not([disabled]):hover img,
.album-card__cover:not([disabled]):hover video {
  transform: scale(1.04);
}

.album-card__counts {
  position: absolute;
  right: 0.85rem;
  bottom: 0.85rem;
  display: flex;
  gap: 0.5rem;
}

.album-card__counts span {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.6rem;
  border-radius: var(--r-full);
  background: rgba(42, 0, 24, 0.72);
  color: var(--c-white);
  font-size: var(--t-xs);
  line-height: 1.5;
}

.album-card__body {
  padding: 1.5rem;
}

.album-card__title {
  font-size: 1.25rem;
}

.album-card__text {
  margin-top: 0.6rem;
  font-size: var(--t-sm);
  color: var(--c-ink-soft);
}

.album-card__date {
  margin-top: 0.85rem;
  font-family: var(--f-mono);
  font-size: var(--t-xs);
  letter-spacing: 0.08em;
  color: var(--c-mag);
}

/* Visionneuse ------------------------------------------------------------ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-rows: 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(26, 0, 15, 0.94);
}

.lightbox[hidden] {
  display: none;
}

.lightbox__stage {
  grid-column: 2;
  grid-row: 1;
  display: grid;
  place-items: center;
  min-height: 0;
  min-width: 0;
}

.lightbox__stage img,
.lightbox__stage video {
  max-width: 100%;
  max-height: 78vh;
  width: auto;
  border-radius: var(--r-sm);
}

.lightbox__close,
.lightbox__nav {
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.08);
  color: var(--c-white);
  border-radius: 50%;
  cursor: pointer;
  transition: background var(--dur) var(--ease);
}

.lightbox__close:hover,
.lightbox__nav:hover {
  background: rgba(255, 255, 255, 0.22);
}

.lightbox__close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 44px;
  height: 44px;
  font-size: 1.75rem;
  line-height: 1;
}

.lightbox__nav {
  width: 48px;
  height: 48px;
  font-size: 2rem;
  line-height: 1;
}

.lightbox__nav--prev {
  grid-column: 1;
  grid-row: 1;
}

.lightbox__nav--next {
  grid-column: 3;
  grid-row: 1;
}

.lightbox__caption {
  grid-column: 1 / -1;
  grid-row: 2;
  text-align: center;
  color: rgba(255, 255, 255, 0.75);
  font-size: var(--t-sm);
}

.lightbox__caption:empty {
  display: none;
}

@media (max-width: 600px) {
  .lightbox__nav {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }
}

/* Actualités — vedette, cartes, surtitres --------------------------------- */
.kicker {
  font-family: var(--f-mono);
  font-size: var(--t-xs);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-mag);
}

.featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-bottom: 3rem;
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  overflow: hidden;
  max-height: 10cm;
}

.featured__media {
  display: block;
  overflow: hidden;
  background: var(--c-blush);
}

.featured__media img {
  width: 100%;
  height: 100%;
  min-height: 20rem;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.featured:hover .featured__media img {
  transform: scale(1.03);
}

.featured__body {
  display: flex;
  flex-direction: column;
  padding: clamp(1.75rem, 3.5vw, 2.75rem);
}

.featured__topline {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  font-size: var(--t-xs);
  color: var(--c-ink-soft);
}

.featured__topline .dot {
  color: var(--c-line);
}

.featured__title {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  margin-block: 0.85rem 1rem;
}

.featured__title a {
  color: var(--c-ink);
}

.featured__title a:hover {
  color: var(--c-mag);
}

.featured__excerpt {
  color: var(--c-ink-soft);
  font-size: var(--t-sm);
  line-height: 1.7;
}

.featured__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 1.75rem;
}

.byline {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.byline__avatar {
  border-radius: 50%;
}

.byline__name {
  font-size: var(--t-sm);
  font-weight: 600;
  color: var(--c-mag);
}

.readmore {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: var(--t-sm);
  font-weight: 600;
  color: var(--c-mag);
}

.readmore:hover {
  color: var(--c-burg);
}

.card--post .kicker {
  margin-bottom: 0.5rem;
}

.card--post .card__title {
  font-size: 1.2rem;
  margin-block: 0 0.65rem;
}

.card--post .card__excerpt {
  margin-bottom: 0.5rem;
}

.posts-grid+.pagination {
  justify-content: center;
}

.pagination {
  justify-content: center;
}

@media (max-width: 820px) {
  .featured {
    grid-template-columns: 1fr;
  }

  .featured__media img {
    min-height: 14rem;
  }
}

/* Accueil — section Mission ---------------------------------------------- */
.split,
.mission__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

.split__media img,
/* Bloc de présentation */
.intro__title {
  font-size: clamp(1.6rem, 3.2vw, 2.25rem);
  color: var(--c-burg);
  max-width: 20ch;
}

.intro__text {
  margin-top: 1.5rem;
  color: var(--c-ink-soft);
  line-height: 1.8;
  max-width: 52ch;
}

.mission__title {
  font-size: clamp(1.75rem, 3.4vw, 2.5rem);
  color: var(--c-burg);
}

.mission__intro {
  margin-top: 1.25rem;
  color: var(--c-ink-soft);
  font-size: var(--t-md);
  line-height: 1.7;
  max-width: 48ch;
}

.pillars-list {
  margin-top: 2.25rem;
}

.pillar-row {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
}

.pillar-row+.pillar-row {
  margin-top: 1.75rem;
}

.pillar-row__icon {
  flex-shrink: 0;
  color: var(--c-gold);
  margin-top: 0.1rem;
}

.pillar-row__body {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.pillar-row__title {
  font-weight: 700;
  font-size: var(--t-sm);
  color: var(--c-ink);
}

.pillar-row__text {
  font-size: var(--t-sm);
  color: var(--c-ink-soft);
  line-height: 1.6;
}

@media (max-width: 900px) {

  .split,
  .mission__grid {
    grid-template-columns: 1fr;
  }

  .split__media,
  .mission__media {
    order: -1;
  }
}

/* Axes en cases — page « Notre mission » --------------------------------- */
.pillar {
  display: flex;
  flex-direction: column;
}

.pillar__icon {
  color: var(--c-gold);
  margin-top: 0.85rem;
}

.pillar .pillar__title {
  font-size: 1.25rem;
  margin-block: 0.75rem 0.5rem;
}

.pillar__content {
  max-width: none;
  font-size: var(--t-sm);
  color: var(--c-ink-soft);
}

.pillar__content>*+* {
  margin-top: 0.85rem;
}

/* Nous soutenir ---------------------------------------------------------- */
.soutien__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: start;
}

.soutien__title {
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  color: var(--c-burg);
}

.soutien__text {
  margin-top: 1rem;
  max-width: 46ch;
  color: var(--c-ink-soft);
  font-size: var(--t-sm);
  line-height: 1.7;
}

/* Encadré de don */
.don-box fieldset {
  border: 0;
  padding: 0;
  margin: 0;
}

.don-box__amounts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.amount {
  cursor: pointer;
}

.amount input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.amount span {
  display: block;
  padding: 0.65rem 1.1rem;
  border: 1px solid var(--c-line);
  border-radius: var(--r-sm);
  font-size: var(--t-sm);
  font-weight: 600;
  color: var(--c-ink);
  transition: all var(--dur) var(--ease);
}

.amount input:checked+span {
  background: var(--c-burg);
  border-color: var(--c-burg);
  color: var(--c-white);
}

.amount input:focus-visible+span {
  outline: 2px solid var(--c-mag);
  outline-offset: 2px;
}

.amount:hover span {
  border-color: var(--c-mag);
}

.don-box__other {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.don-box__other label {
  font-size: var(--t-xs);
  color: var(--c-ink-soft);
}

.don-box__other input {
  font: inherit;
  font-size: var(--t-sm);
  padding: 0.6rem 0.9rem;
  border: 1px solid var(--c-line);
  border-radius: var(--r-sm);
  background: var(--c-bg-soft);
  color: var(--c-ink);
}

.don-box__other input:focus {
  background: var(--c-white);
  border-color: var(--c-mag);
  outline: none;
}

.radio {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  font-size: var(--t-sm);
}

.radio input {
  accent-color: var(--c-mag);
  width: 1.05rem;
  height: 1.05rem;
}

.don-box__submit {
  width: 100%;
  justify-content: center;
  margin-top: 1.75rem;
}

/* Autres formes d'implication */
.soutien__list {
  margin-top: 2rem;
}

.soutien-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.5rem;
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
}

.soutien-item+.soutien-item {
  margin-top: 1rem;
}

.soutien-item__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  background: var(--c-blush);
  border-radius: var(--r-sm);
  color: var(--c-mag);
}

.soutien-item__body {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.soutien-item__title {
  font-family: var(--f-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--c-ink);
}

.soutien-item__text {
  font-size: var(--t-sm);
  color: var(--c-ink-soft);
  line-height: 1.65;
}

.soutien__cta {
  margin-top: 1.75rem;
}

@media (max-width: 900px) {
  .soutien__grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Fonds de section
   ========================================================================== */

/* Dégradé rosé très doux, pour alléger sans rompre. */
.section--tint {
  background: var(--g-tint);
}

/* Section sombre : renverse tout le contraste de la page. */
.section--dark {
  background: var(--g-deep);
  color: var(--c-on-dark);
}

.section--dark h2,
.section--dark h3,
.section--dark .card__title a {
  color: var(--c-on-dark);
}

.section--dark .eyebrow {
  color: var(--c-gold-lt);
}

.section--dark .lead,
.section--dark p {
  color: var(--c-on-dark-sf);
}

.section--dark .section__link {
  color: var(--c-gold-lt);
}

.section--dark .card {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--c-on-dark-ln);
}

.section--dark .card__excerpt {
  color: var(--c-on-dark-sf);
}

/* Trame de plan technique : un clin d'œil au génie civil, assez discret pour
   rester un fond. Le masque l'estompe sur les bords. */
.section--grid {
  position: relative;
  isolation: isolate;
}

.section--grid::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: var(--grid-step) var(--grid-step);
  -webkit-mask-image: radial-gradient(120% 90% at 50% 0%, #000 20%, transparent 78%);
  mask-image: radial-gradient(120% 90% at 50% 0%, #000 20%, transparent 78%);
  pointer-events: none;
}

.section--dark.section--grid::before {
  background-image:
    linear-gradient(var(--grid-line-dark) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line-dark) 1px, transparent 1px);
}

/* Filet doré en haut d'une section sombre, pour marquer la rupture. */
.section--rule {
  border-top: 3px solid var(--c-gold);
}

/* ==========================================================================
   Apparition au défilement
   ========================================================================== */

/* L'état masqué n'est posé que par le JavaScript : sans lui, rien ne
   disparaît. Le contenu reste donc toujours lisible. */
.reveal-ready {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease);
  transition-delay: calc(var(--reveal-i, 0) * 80ms);
  will-change: opacity, transform;
}

.reveal-ready.is-visible {
  opacity: 1;
  transform: none;
}

/* L'en-tête gagne une ombre dès qu'on quitte le haut de page. */
.site-header {
  transition: box-shadow var(--dur) var(--ease);
}

.site-header.is-stuck {
  box-shadow: 0 2px 20px rgba(58, 0, 32, 0.08);
}

@media (prefers-reduced-motion: reduce) {

  .reveal-ready,
  .reveal-ready.is-visible {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Témoignages ------------------------------------------------------------ */
.temoignage {
  overflow: hidden;
}

/* Le conteneur impose le 16/9 : la vidéo ne fait jamais sauter la mise en page
   au chargement, qu'elle vienne d'une iframe ou d'un fichier. */
.temoignage__video {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--c-deep);
}

.temoignage__video iframe,
.temoignage__video video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  object-fit: cover;
}

.temoignage__portrait img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
}

.temoignage__fallback {
  padding: 1.5rem 1.75rem 0;
  font-size: var(--t-sm);
}

.temoignage__body {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.temoignage__quote {
  margin: 0;
  flex: 1;
  font-size: var(--t-md);
  line-height: 1.7;
  color: var(--c-ink-soft);
}

.temoignage__quote>*+* {
  margin-top: 0.85rem;
}

.temoignage__quote p::before {
  content: '\201C';
}

.temoignage__quote p:last-of-type::after {
  content: '\201D';
}

.temoignage__author {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--c-line);
}

.temoignage__avatar img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.temoignage__name {
  font-family: var(--f-display);
  font-style: normal;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--c-ink);
}

.section--dark .temoignage__quote {
  color: var(--c-on-dark-sf);
}

.section--dark .temoignage__name {
  color: var(--c-on-dark);
}

.section--dark .temoignage__author {
  border-top-color: var(--c-on-dark-ln);
}
/* ==========================================================================
   Ruban de logos partenaires
   ========================================================================== */
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: gcaf-marquee 42s linear infinite;
}
.marquee__group {
  display: flex;
  gap: 1.5rem;
  padding-right: 1.5rem;
  flex-shrink: 0;
}
.marquee__group .partner {
  width: 190px;
  flex-shrink: 0;
}
.marquee:hover .marquee__track,
.marquee:focus-within .marquee__track { animation-play-state: paused; }

@keyframes gcaf-marquee {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

/* Sans animation : on retombe sur une grille centrée, sans le doublon. */
@media (prefers-reduced-motion: reduce) {
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee__track { animation: none; width: 100%; justify-content: center; flex-wrap: wrap; }
  .marquee__group[aria-hidden="true"] { display: none; }
  .marquee__group { flex-wrap: wrap; justify-content: center; }
}

/* ==========================================================================
   Titre du hero, mot à mot
   ========================================================================== */
.hero__title.has-words .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.5em);
  transition:
    opacity 0.65s var(--ease),
    transform 0.65s var(--ease);
  transition-delay: calc(var(--word-i, 0) * 65ms);
}
.hero__title.words-in .word {
  opacity: 1;
  transform: none;
}

/* L'italique de l'accent déborde légèrement : on lui rend sa place. */
.hero__title .hero__title-accent .word { padding-right: 0.06em; }

@media (prefers-reduced-motion: reduce) {
  .hero__title.has-words .word {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Le compteur ne doit pas faire sauter la mise en page pendant qu'il tourne. */
.stat__value { font-variant-numeric: tabular-nums; }

/* ==========================================================================
   Fond à polygones (SVG Haikei, recoloré en magenta de marque)
   ========================================================================== */
.section--polygons {
  position: relative;
  background: #ffe7f0;
}
.section--polygons::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: url('../img/polygons.svg');
  /* Un seul exemplaire, recadre pour couvrir : jamais de mosaique. */
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  opacity: 0.28;
  pointer-events: none;
}
.section--dark.section--polygons { background: var(--g-deep); }
.section--dark.section--polygons::before { opacity: 0.5; }


/* ==========================================================================
   Fond a blobs (SVG Haikei, contours magenta)
   ========================================================================== */
.section--blobs {
  position: relative;
  isolation: isolate;
  background: var(--c-bg-soft);
}
.section--blobs::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: url('../img/blobs.svg');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  /* Uniquement des contours fins : il supporte une opacite bien plus haute
     que les fonds en aplats. */
  opacity: 0.75;
  pointer-events: none;
}

/* ==========================================================================
   Carrousel — défilement par pas, sans boucle
   ========================================================================== */
.carousel__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.carousel__nav { display: flex; gap: 0.6rem; margin-bottom: 2.5rem; }
.carousel__nav[hidden] { display: none; }

.carousel__btn {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--c-line);
  border-radius: 50%;
  background: var(--c-white);
  color: var(--c-mag);
  cursor: pointer;
  transition: all var(--dur) var(--ease);
}
.carousel__btn:hover:not(:disabled) {
  background: var(--c-mag);
  border-color: var(--c-mag);
  color: var(--c-white);
}
/* Aux extrémités : le bouton reste visible mais clairement inactif. */
.carousel__btn:disabled { opacity: 0.35; cursor: default; }

.carousel { overflow: hidden; }
.carousel__track {
  display: flex;
  gap: 1.75rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scroll-padding-inline: var(--px);
  padding-inline: var(--px);
  padding-block: 0.5rem 1.5rem;
  /* La barre native est masquée : la navigation passe par les flèches, le
     doigt ou le pavé tactile. */
  scrollbar-width: none;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track:focus-visible { outline: 2px solid var(--c-mag); outline-offset: -2px; }

.carousel__item {
  flex: 0 0 clamp(280px, 32%, 400px);
  scroll-snap-align: start;
  display: flex;
}
.carousel__item > * { width: 100%; }

@media (prefers-reduced-motion: reduce) {
  .carousel__track { scroll-behavior: auto; }
}

/* Carte de témoignage --------------------------------------------------- */
.temoignage { height: 100%; }
.temoignage__video { aspect-ratio: 16 / 9; background: var(--c-blush); }
.temoignage__video iframe,
.temoignage__video video { width: 100%; height: 100%; border: 0; display: block; }
.temoignage__body { display: flex; flex-direction: column; flex: 1; }
.temoignage__quote {
  font-family: var(--f-display);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--c-ink);
}
.temoignage__quote p + p { margin-top: 0.75rem; }
.temoignage__author {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: auto;
  padding-top: 1.5rem;
}
.temoignage__avatar img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.temoignage__name { font-style: normal; font-weight: 700; color: var(--c-ink); font-size: var(--t-sm); }
.temoignage__fallback { padding: 1.5rem 1.5rem 0; }

/* ==========================================================================
   Fond à vague (SVG Haikei)
   Un seul exemplaire, jamais répété.
   ========================================================================== */
.section--wave {
  /* Indispensable : sans contexte de positionnement, le ::before se calerait
     sur le premier ancetre positionne, pas sur la section. */
  position: relative;
  isolation: isolate;
  background: var(--c-bg-soft);
}

.section--wave::before {
  /* Sans « content », le pseudo-element ne genere aucune boite : c'est ce qui
     manquait pour que le fond apparaisse. */
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: url('../img/wave.svg');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  opacity: 0.55;
  pointer-events: none;
}

/* ==========================================================================
   À propos — Pourquoi nous existons
   ========================================================================== */
.pourquoi__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
.pourquoi__title {
  font-size: clamp(1.75rem, 3.4vw, 2.5rem);
  margin-bottom: 2rem;
}
.pourquoi__quote {
  border-left: 3px solid var(--c-gold);
  padding-left: 1.5rem;
  font-family: var(--f-display);
  font-style: italic;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  line-height: 1.45;
  color: var(--c-gold-pale);
}
.pourquoi__text { font-size: var(--t-md); line-height: 1.8; }
.pourquoi__chute {
  margin-top: 1.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--c-on-dark-ln);
  font-size: var(--t-lg);
  line-height: 1.6;
  color: var(--c-white);
}
@media (max-width: 880px) { .pourquoi__grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   À propos — Comment nous agissons (étapes numérotées)
   ========================================================================== */
.agir__grid {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 1.6fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
.agir__head h2 { margin-bottom: 1rem; }

.steps { counter-reset: step; list-style: none; padding: 0; }
.step {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  padding-bottom: 2.25rem;
}
/* Le filet relie les étapes, mais s'arrête à la dernière. */
.step::before {
  content: '';
  position: absolute;
  left: 21px;
  top: 46px;
  bottom: 0;
  width: 1px;
  background: var(--c-line);
}
.step:last-child { padding-bottom: 0; }
.step:last-child::before { display: none; }

.step__num {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--c-mag);
  border-radius: 50%;
  background: var(--c-white);
  font-family: var(--f-mono);
  font-size: var(--t-sm);
  font-weight: 500;
  color: var(--c-mag);
}
.step__title { font-size: 1.2rem; margin-bottom: 0.4rem; }
.step__text { font-size: var(--t-sm); color: var(--c-ink-soft); line-height: 1.7; }

@media (max-width: 880px) { .agir__grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   À propos — Nous rejoindre
   ========================================================================== */
.rejoindre__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: start;
}

.perks { margin-top: 2rem; }
.perk {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  font-size: var(--t-sm);
  line-height: 1.65;
}
.perk + .perk { margin-top: 1rem; }
.perk__mark {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--c-blush);
  color: var(--c-mag);
}

/* Panneau façon carte de membre : la seule surface sombre de la section. */
.membercard {
  background: var(--g-deep);
  color: var(--c-on-dark);
  border-radius: var(--r-lg);
  padding: clamp(1.75rem, 3.5vw, 2.5rem);
  box-shadow: var(--sh-lg);
}
.membercard__label {
  font-family: var(--f-mono);
  font-size: var(--t-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-gold);
}
.membercard__fees { margin-top: 1.5rem; }
.fee + .fee { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--c-on-dark-ln); }
.fee__value {
  font-family: var(--f-display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 700;
  color: var(--c-white);
  line-height: 1.1;
}
.fee__label {
  margin: 0.3rem 0 0;
  font-size: var(--t-sm);
  color: var(--c-on-dark-sf);
}
.membercard__how {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--c-on-dark-ln);
  font-size: var(--t-sm);
  color: var(--c-on-dark-sf);
  line-height: 1.65;
}
.membercard__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }
.membercard__actions .btn { flex: 1 1 auto; justify-content: center; }

@media (max-width: 880px) { .rejoindre__grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   FAQ — accordéon natif
   ========================================================================== */
.faq__list { max-width: 52rem; margin-inline: auto; }
.qa {
  border-bottom: 1px solid var(--c-line);
}
.qa__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1.5rem;
  font-family: var(--f-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--c-ink);
  cursor: pointer;
  list-style: none;
}
.qa__q::-webkit-details-marker { display: none; }
.qa__q:hover { color: var(--c-mag); }

/* Signe + qui bascule en − à l'ouverture, dessiné en CSS. */
.qa__sign {
  position: relative;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.qa__sign::before,
.qa__sign::after {
  content: '';
  position: absolute;
  inset: 50% 0 auto 0;
  height: 2px;
  background: var(--c-mag);
  transition: transform var(--dur) var(--ease);
}
.qa__sign::after { transform: rotate(90deg); }
.qa[open] .qa__sign::after { transform: rotate(0deg); }

.qa__a {
  padding-bottom: 1.75rem;
  max-width: none;
  font-size: var(--t-sm);
  color: var(--c-ink-soft);
  line-height: 1.75;
}

/* ==========================================================================
   Bandeau de titre illustré
   Le fond rosé reste la valeur par défaut ; dès qu'il y a une image, le
   contraste s'inverse en texte clair sur voile bordeaux.
   ========================================================================== */
.page-hero--media {
  position: relative;
  isolation: isolate;
  background: var(--c-deep);
  border-bottom: 0;
  padding-block: clamp(5rem, 12vw, 9rem);
  color: var(--c-on-dark);
}
.page-hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Voile obligatoire : sans lui, la lisibilité dépend de la photo choisie. */
.page-hero--media::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(160deg,
      rgba(58, 0, 32, 0.88) 0%,
      rgba(92, 0, 53, 0.78) 45%,
      rgba(155, 0, 96, 0.62) 100%);
}
.page-hero--media .page-hero__title { color: var(--c-white); }
.page-hero--media .eyebrow { color: var(--c-gold-lt); }
.page-hero--media .lead,
.page-hero--media .entry-content { color: var(--c-on-dark-sf); }

.page-hero__meta {
  margin-top: 0.5rem;
  font-family: var(--f-mono);
  font-size: var(--t-sm);
  letter-spacing: 0.08em;
  color: var(--c-gold-pale);
}

/* ==========================================================================
   Fil d'Ariane
   ========================================================================== */
.breadcrumbs { margin-bottom: 1.25rem; }
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  font-family: var(--f-mono);
  font-size: var(--t-xs);
  letter-spacing: 0.06em;
  color: var(--c-ink-soft);
}
.breadcrumbs li + li::before {
  content: '/';
  margin-right: 0.5rem;
  opacity: 0.5;
}
.breadcrumbs a { color: inherit; }
.breadcrumbs a:hover { color: var(--c-mag); }
.breadcrumbs [aria-current] { color: var(--c-ink); }

/* Sur bandeau illustré, le contraste s'inverse. */
.page-hero--media .breadcrumbs ol { color: rgba(255, 255, 255, 0.75); }
.page-hero--media .breadcrumbs [aria-current] { color: var(--c-white); }
.page-hero--media .breadcrumbs a:hover { color: var(--c-gold-lt); }

/* ==========================================================================
   Barre d'action fixe (mobile)
   ========================================================================== */
.sticky-cta { display: none; }

@media (max-width: 1023px) {
  .sticky-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    display: flex;
    gap: 0.6rem;
    padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--c-white) 94%, transparent);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--c-line);
    box-shadow: 0 -4px 18px rgba(58, 0, 32, 0.08);
  }
  .sticky-cta .btn {
    flex: 1;
    justify-content: center;
    padding-inline: 1rem;
    font-size: var(--t-sm);
  }
  .sticky-cta .btn:hover { transform: none; }

  /* La barre recouvrirait la fin du pied de page : on lui rend la place. */
  .site-footer { padding-bottom: 6rem; }

}

/* ==========================================================================
   Promesse de délai de réponse
   ========================================================================== */
.promesse {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.25rem;
  padding: 0.6rem 1rem;
  border-radius: var(--r-full);
  background: var(--c-blush);
  color: var(--c-burg);
  font-size: var(--t-sm);
  font-weight: 600;
}
.promesse .icon { color: var(--c-mag); flex-shrink: 0; }

/* ==========================================================================
   Page de remerciement
   ========================================================================== */
.merci__inner {
  max-width: 44rem;
  margin-inline: auto;
  text-align: center;
  padding-block: clamp(2rem, 6vw, 4rem);
}
.merci__mark {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  margin: 0 auto 2rem;
  border-radius: 50%;
  background: var(--c-blush);
  color: var(--c-mag);
}
.merci__title { font-size: clamp(2rem, 5vw, 3rem); }
.merci__text { margin-top: 1.25rem; margin-inline: auto; }
.merci__delai {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 2rem;
  font-size: var(--t-sm);
  color: var(--c-ink-soft);
}
.merci__delai .icon { color: var(--c-gold); }
.merci__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 2.5rem;
}

/* ==========================================================================
   Pied de page — reprise typographique
   Le fond magenta était juste, mais tout y avait le même poids : titres de
   colonne délavés, liens plats, aucune hiérarchie. On redonne du relief.
   ========================================================================== */

/* Filet doré en haut : marque la coupure avec le corps de page. */
.site-footer { border-top: 3px solid var(--c-gold); }

/* Titres de colonne : or plein, précédés d'un tiret. Ils portaient un blanc
   à 72 % qui les rendait presque invisibles. */
.site-footer h2 {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--f-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--c-gold-lt);
  margin-bottom: 1.5rem;
}

/* Nom de marque en Fraunces, nettement plus grand. */
.footer-brand .site-brand__name {
  font-family: var(--f-display);
  font-size: clamp(1.75rem, 3vw, 2.15rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

/* Baseline en italique : elle se distingue du corps de texte. */
.footer-brand__text {
  font-size: var(--t-md);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.82);
}
.footer-brand__text::first-line { font-weight: 500; }

/* Liens : soulignement qui pousse au survol, plutôt qu'un simple éclaircissement. */
.site-footer .footer-col a,
.site-footer .footer-contact a {
  position: relative;
  font-size: 0.9375rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
}
.site-footer .footer-col a::after,
.site-footer .footer-contact a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 1px;
  background: var(--c-gold-lt);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
.site-footer .footer-col a:hover,
.site-footer .footer-contact a:hover { color: var(--c-white); }
.site-footer .footer-col a:hover::after,
.site-footer .footer-contact a:hover::after { transform: scaleX(1); }

.footer-col li + li { margin-top: 0.85rem; }
.footer-contact li { font-size: 0.9375rem; }

/* Réseaux : cercles un peu plus affirmés, dorés au survol. */
.site-footer .social a {
  color: rgba(255, 255, 255, 0.9);
}
.site-footer .social a:hover {
}

/* Barre du bas : plus petite, espacée, en capitales — elle doit se lire comme
   une mention légale, pas comme du contenu. */
.footer-bottom .wrap {
  font-family: var(--f-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.62);
}
.footer-bottom a { font-size: 0.75rem; letter-spacing: 0.08em; }

/* Carrousel du bureau ----------------------------------------------------- */
/* Les portraits sont plus étroits que les cartes de témoignage : on en montre
   quatre plutôt que trois, sans changer le composant. */
.carousel--membres .carousel__item { flex: 0 0 clamp(220px, 24%, 300px); }
.carousel--membres .membre { height: 100%; }

/* ==========================================================================
   Accueil — réclame du Guide du Mentorat
   Une publicité, pas une section éditoriale de plus : fond sombre qui coupe le
   fil de la page, couverture inclinée posée sur un halo doré, arguments courts
   et un bouton d'achat. Le reste de l'accueil informe ; ce bloc, lui, vend.
   ========================================================================== */
/* Fond propre à la réclame : ni la trame des chiffres clés en haut de page, ni
   les polygones des témoignages juste en dessous — elle ne doit ressembler à
   aucune autre bande de l'accueil. */
.mentorat {
  background:
    radial-gradient(78% 120% at 88% 10%, rgba(155, 0, 96, 0.5), transparent 60%),
    radial-gradient(60% 100% at 6% 92%, rgba(201, 168, 76, 0.14), transparent 62%),
    var(--g-deep);
}

.mentorat__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

/* Tant qu'aucune couverture n'est choisie, la deuxième colonne resterait vide :
   on repasse sur une seule colonne plutôt que de laisser un trou à droite. */
.mentorat__grid--solo {
  grid-template-columns: 1fr;
}

/* Le conteneur épouse la couverture (fit-content) : la pastille et le halo
   s'ancrent ainsi sur le livre, et non sur toute la largeur de la colonne. */
.mentorat__media {
  position: relative;
  width: fit-content;
  margin-inline: auto;
  perspective: 1400px;
}

/* Halo doré, pour décoller la couverture du fond sombre sans l'encadrer. */
.mentorat__media::before {
  content: '';
  position: absolute;
  inset: -18%;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(201, 168, 76, 0.32), transparent 72%);
  pointer-events: none;
}

.mentorat__cover {
  position: relative;
  max-width: 340px;
  border-radius: 4px 14px 14px 4px;
  overflow: hidden;
  transform: rotateY(-12deg) rotateZ(-2deg);
  transform-origin: left center;
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.08);
  transition: transform var(--dur) var(--ease);
}

.mentorat__cover:hover {
  transform: rotateY(-6deg) rotateZ(-1deg);
}

/* Reliure suggérée par un dégradé sur le bord gauche : suffisant pour donner
   l'épaisseur, et ça marche avec n'importe quel visuel de couverture. */
.mentorat__cover::after {
  content: '';
  position: absolute;
  inset-block: 0;
  left: 0;
  width: 16px;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.45), transparent);
  pointer-events: none;
}

.mentorat__book {
  width: 100%;
}

.mentorat__badge {
  position: absolute;
  top: -0.9rem;
  right: -1.25rem;
  z-index: 1;
  padding: 0.5rem 1.15rem;
  border-radius: var(--r-full);
  background: var(--c-gold);
  color: var(--c-deep);
  font-family: var(--f-mono);
  font-size: var(--t-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  box-shadow: var(--sh-md);
  transform: rotate(4deg);
}

.mentorat__title {
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  max-width: 20ch;
}

.mentorat__text {
  margin-top: 1.25rem;
  max-width: 54ch;
}

.mentorat__points {
  margin-top: 1.75rem;
  display: grid;
  gap: 0.85rem;
}

.mentorat__points li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: var(--t-sm);
  line-height: 1.6;
  color: var(--c-on-dark-sf);
}

.mentorat__check {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-top: 0.15rem;
  border-radius: var(--r-full);
  background: rgba(201, 168, 76, 0.18);
  color: var(--c-gold-lt);
}

/* Le préfacier est l'argument d'autorité de la réclame : il a droit à son
   propre encadré, marqué d'un filet doré. */
.mentorat__preface {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  padding: 1rem 1.25rem;
  border-left: 2px solid var(--c-gold);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  background: rgba(255, 255, 255, 0.05);
}

.mentorat__portrait {
  flex-shrink: 0;
  width: 100px;
  height: 90px;
  border-radius: var(--r-full);
  object-fit: cover;
  border: 2px solid rgba(201, 168, 76, 0.5);
}

.mentorat__preface figcaption {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.mentorat__preface-label {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-gold-lt);
}

.mentorat__preface-name {
  font-size: var(--t-sm);
  color: var(--c-white);
}

.mentorat__preface-role {
  font-size: var(--t-xs);
  line-height: 1.5;
  color: var(--c-on-dark-sf);
}

.mentorat__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.mentorat__note {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 1.25rem;
  font-family: var(--f-mono);
  font-size: var(--t-xs);
  letter-spacing: 0.04em;
}

.mentorat__note .icon {
  flex-shrink: 0;
  color: var(--c-gold);
}

@media (max-width: 900px) {
  .mentorat__grid {
    grid-template-columns: 1fr;
  }

  /* Sur une colonne, le livre à pleine taille repousserait l'argumentaire
     sous la ligne de flottaison. */
  .mentorat__cover {
    max-width: 240px;
  }

  .mentorat__preface {
    align-items: flex-start;
  }
}

/* ==========================================================================
   Cartes : hauteur maîtrisée
   Titre et extrait tenus à deux lignes chacun, pour que les cartes d'une
   grille restent alignées quelle que soit la longueur des contenus.
   ========================================================================== */
.card__title,
.card__excerpt {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}

/* Le clamp remplace le display:block du titre : on rétablit une hauteur de
   ligne stable pour que deux lignes fassent toujours la même hauteur. */
.card__title { line-height: 1.25; }
.card__excerpt { line-height: 1.6; }

/* Note sous le bouton de don ---------------------------------------------- */
.don-box__note {
  margin-top: 1rem;
  font-size: var(--t-xs);
  line-height: 1.5;
  color: var(--c-ink-soft);
}
.don-box__submit { justify-content: center; }

/* ==========================================================================
   Icônes Phosphor — contour au repos, plein au survol
   Les deux graisses sont dans le même SVG et se superposent : on croise leurs
   opacités plutôt que d'en masquer une, pour obtenir un fondu.
   ========================================================================== */
.icon {
  flex-shrink: 0;
  /* Le SVG hérite de la couleur du texte : rien à redéfinir par contexte. */
  color: inherit;
}

.icon__regular,
.icon__fill {
  transition: opacity var(--dur) var(--ease);
}
.icon__fill { opacity: 0; }

/* Le remplissage se déclenche depuis l'élément interactif qui porte l'icône,
   pas depuis l'icône elle-même : survoler le libellé suffit. */
a:hover .icon__fill,
button:hover .icon__fill,
a:focus-visible .icon__fill,
button:focus-visible .icon__fill,
.footer-contact li:hover .icon__fill,
.contact-items li:hover .icon__fill,
.soutien-item:hover .icon__fill,
.pillar-row:hover .icon__fill,
.card:hover .icon__fill,
.pillar:hover .icon__fill { opacity: 1; }

a:hover .icon__regular,
button:hover .icon__regular,
a:focus-visible .icon__regular,
button:focus-visible .icon__regular,
.footer-contact li:hover .icon__regular,
.contact-items li:hover .icon__regular,
.soutien-item:hover .icon__regular,
.pillar-row:hover .icon__regular,
.card:hover .icon__regular,
.pillar:hover .icon__regular { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  .icon__regular,
  .icon__fill { transition: none; }
}


/* ==========================================================================
   Publication seule — chapeau, bouton de retour, contenus proches
   ========================================================================== */
.entry-chapeau {
  margin-top: 3rem;
  max-width: 60ch;
}

/* Le bouton suit la lecture plutôt que de rester en haut de page : sur un
   article long, revenir en arrière ne doit pas demander de remonter d'abord.
   En bas à gauche, il croise peu le texte, qui est centré. */
.retour {
  left: clamp(0.75rem, 3vw, 2rem);
  bottom: clamp(0.75rem, 3vw, 2rem);
  z-index: 80;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.2rem 0.7rem 1rem;
  border: 1px solid var(--c-line);
  border-radius: var(--r-full);
  background: color-mix(in srgb, var(--c-white) 92%, transparent);
  backdrop-filter: blur(10px);
  box-shadow: var(--sh-md);
  color: var(--c-burg);
  font-family: var(--f-mono);
  font-size: var(--t-sm);
  letter-spacing: 0.06em;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
    border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.retour:hover,
.retour:focus-visible {
  background: var(--c-mag);
  border-color: var(--c-mag);
  color: var(--c-white);
}

.retour .icon {
  flex-shrink: 0;
  transition: transform var(--dur) var(--ease);
}

.retour:hover .icon {
  transform: translateX(-3px);
}

/* Sous 1024px, la barre d'action fixe occupe déjà le bas de l'écran : le
   bouton se pose juste au-dessus, et renonce à son libellé pour ne pas
   recouvrir le texte. */
@media (max-width: 1023px) {
  .retour {
    bottom: calc(4.5rem + env(safe-area-inset-bottom));
    padding: 0.75rem;
  }

  .retour__label {
    position: relative;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

/* La section des contenus proches ferme la page : elle ne doit pas peser
   autant qu'une section d'accueil. */
.similaires .section__head {
  margin-bottom: 2.5rem;
}

/* ==========================================================================
   Chargement progressif des listes
   ========================================================================== */
.chargeur {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  margin-top: 3.5rem;
}

.chargeur__bouton[disabled] {
  opacity: 0.55;
  cursor: progress;
  transform: none;
}

/* La hauteur est réservée d'avance : le message apparaît et disparaît sans
   faire sauter la fin de liste sous le curseur. */
.chargeur__etat {
  min-height: 1.4em;
  margin: 0;
  font-family: var(--f-mono);
  font-size: var(--t-xs);
  letter-spacing: 0.08em;
  color: var(--c-ink-soft);
  text-align: center;
}

