/* =====================================================================
   Sœurs de l'Ange Gardien Afrique – feuille de styles
   Direction : « auréole et arc de chapelle ». Nuit indigo, lumière dorée
   (le jaune de l'ancien site), rouge de la croix du logo.
   ===================================================================== */

/* ---------------------------------------------------------- Polices */
@font-face {
  font-family: "Lora";
  src: url("../fonts/lora.woff") format("woff");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Lora";
  src: url("../fonts/lora-italic.woff") format("woff");
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Adventor";
  src: url("../fonts/adventor.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Adventor";
  src: url("../fonts/adventor-bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ---------------------------------------------------------- Jetons */
:root {
  --night: #1b2142;
  --night-2: #2b3366;
  --cross: #a51c30;
  --cross-dark: #861426;
  --ochre: #b85c12;
  --halo: #f2eba2;
  --halo-soft: #fbf8dc;
  --mist: #eef0f7;
  --paper: #ffffff;
  --ink: #1b2142;
  --muted: #545a78;
  --line: #d9dcea;

  --font-text: "Lora", Georgia, "Times New Roman", serif;
  --font-ui: "Adventor", "Century Gothic", "Avenir Next", Futura, system-ui, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.45rem, 1.2rem + 0.9vw, 1.75rem);
  --step-3: clamp(1.8rem, 1.4rem + 1.6vw, 2.4rem);
  --step-4: clamp(2.3rem, 1.6rem + 3vw, 3.6rem);
  --step-5: clamp(2.8rem, 1.6rem + 5.4vw, 6rem);

  --space-s: 1rem;
  --space-m: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  --space-l: clamp(3rem, 2rem + 4vw, 6rem);
  --radius: 0.75rem;
  --arch: 50% 50% var(--radius) var(--radius) / 34% 34% var(--radius) var(--radius);
  --shadow: 0 1.5rem 3rem -1.5rem rgba(27, 33, 66, 0.35);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 5.25rem;
  color-scheme: light;
}

/* ---------------------------------------------------------- Base */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: var(--step-0);
  line-height: 1.7;
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; height: auto; }
img { background: var(--mist); }
a { color: var(--cross); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--cross-dark); text-decoration-thickness: 2px; }
p, ul, ol, figure, blockquote { margin: 0; }
h1, h2, h3, h4 {
  margin: 0;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
p { text-wrap: pretty; }
strong { font-weight: 650; }
abbr[title] { text-decoration: none; cursor: help; }
button { font: inherit; color: inherit; }
::selection { background: var(--halo); color: var(--night); }

:focus-visible {
  outline: 3px solid var(--cross);
  outline-offset: 3px;
  border-radius: 4px;
}
main:focus { outline: none; }
[hidden] { display: none !important; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  padding: 0.75rem 1.25rem;
  background: var(--night); color: #fff;
  font-family: var(--font-ui);
  border-radius: 0 0 var(--radius) var(--radius);
  transition: top 0.2s;
}
.skip-link:focus { top: 0; color: #fff; }

.container {
  width: min(100% - 2rem, 72rem);
  margin-inline: auto;
}
.icon { width: 1.4rem; height: 1.4rem; flex: none; }
.icon--sm { width: 1.05rem; height: 1.05rem; }
.muted { color: var(--muted); font-size: var(--step--1); }

/* ---------------------------------------------------------- Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 2.9rem;
  padding: 0.7rem 1.4rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font-family: var(--font-ui);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background-color 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.25s;
}
.btn:hover { transform: translateY(-2px); text-decoration: none; }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--cross); color: #fff; }
.btn--primary:hover { background: var(--cross-dark); color: #fff; box-shadow: 0 0.75rem 1.5rem -0.75rem rgba(165, 28, 48, 0.7); }
.btn--light { background: var(--halo); color: var(--night); }
.btn--light:hover { background: #fff; color: var(--night); }
.btn--outline-light { border-color: rgba(255, 255, 255, 0.75); color: #fff; }
.btn--outline-light:hover { background: rgba(255, 255, 255, 0.12); color: #fff; border-color: #fff; }
.btn--ghost { border-color: var(--line); color: var(--night); background: #fff; }
.btn--ghost:hover { border-color: var(--night); color: var(--night); }
.btn--sm { min-height: 2.4rem; padding: 0.45rem 1.1rem; font-size: 0.875rem; }
.btn--lg { min-height: 3.2rem; padding: 0.85rem 1.9rem; font-size: 1rem; }
.btn[disabled] { opacity: 0.65; cursor: progress; transform: none; }
.linklike {
  background: none; border: 0; padding: 0;
  color: inherit; text-decoration: underline; text-underline-offset: 0.18em;
  cursor: pointer; font: inherit;
}

/* ---------------------------------------------------------- En-tête */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  transition: box-shadow 0.3s, transform 0.35s var(--ease);
}
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--line), 0 0.5rem 1.5rem -1rem rgba(27, 33, 66, 0.3); }
.topbar {
  background: var(--night);
  color: #fff;
  font-family: var(--font-ui);
  font-size: 0.8125rem;
  overflow: hidden;
  max-height: 2.4rem;
  transition: max-height 0.35s var(--ease);
}
.site-header.is-scrolled .topbar { max-height: 0; }
.topbar__inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 2.4rem; gap: 1rem;
}
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { color: var(--halo); }
.lang-switch { display: flex; align-items: center; gap: 0.5rem; }
.lang-switch ul { display: flex; list-style: none; padding: 0; gap: 0.15rem; }
.lang-switch a {
  display: inline-block; padding: 0.2rem 0.55rem; border-radius: 999px;
  letter-spacing: 0.06em;
}
.lang-switch a[aria-current="true"] { background: var(--halo); color: var(--night); font-weight: 700; }
.lang-switch abbr { cursor: pointer; }
.topbar__links { display: flex; align-items: center; gap: 1rem; }
.topbar__contact { display: inline-flex; align-items: center; gap: 0.4rem; }
.topbar__social { display: inline-flex; padding: 0.2rem; }

.navbar__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem;
  min-height: 4.6rem;
  transition: min-height 0.3s var(--ease);
}
.site-header.is-scrolled .navbar__inner { min-height: 3.9rem; }
.brand { display: block; flex: none; }
.brand__logo {
  width: clamp(10.5rem, 9rem + 6vw, 13.5rem); height: auto;
  background: none;
  transition: width 0.3s var(--ease);
}
.site-header.is-scrolled .brand__logo { width: clamp(9.5rem, 8rem + 5vw, 11.5rem); }

.main-nav ul { display: flex; align-items: center; gap: 0.15rem; list-style: none; padding: 0; }
.main-nav a:not(.btn) {
  position: relative;
  display: block;
  padding: 0.55rem 0.7rem;
  color: var(--night);
  font-family: var(--font-ui);
  font-size: 0.9rem;
  text-decoration: none;
  white-space: nowrap;
}
.main-nav a:not(.btn)::after {
  content: "";
  position: absolute; left: 0.7rem; right: 0.7rem; bottom: 0.25rem;
  height: 2px; border-radius: 2px;
  background: var(--cross);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.main-nav a:not(.btn):hover::after,
.main-nav a[aria-current="page"]:not(.btn)::after { transform: scaleX(1); }
.main-nav a[aria-current="page"]:not(.btn) { font-weight: 700; }
.main-nav__contact { margin-left: 0.6rem; }

.nav-toggle {
  display: none;
  align-items: center; gap: 0.6rem;
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--line); border-radius: 999px;
  background: #fff;
  font-family: var(--font-ui); font-size: 0.875rem;
  cursor: pointer;
}
.nav-toggle__icon { display: grid; gap: 4px; width: 18px; }
.nav-toggle__icon span {
  display: block; height: 2px; border-radius: 2px; background: var(--night);
  transition: transform 0.3s var(--ease), opacity 0.2s;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__icon span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 68rem) {
  /* backdrop-filter créerait un bloc conteneur pour le panneau fixe : on l'enlève ici */
  .site-header { -webkit-backdrop-filter: none; backdrop-filter: none; background: #fff; }
  .nav-toggle { display: inline-flex; }
  .main-nav {
    position: fixed; inset: 0 0 0 auto;
    width: min(23rem, 88vw);
    padding: 6rem 2rem 2rem;
    background: var(--night);
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.45s var(--ease), visibility 0s linear 0.45s;
    overflow-y: auto;
    z-index: 1;
  }
  .main-nav.is-open {
    transform: none; visibility: visible;
    transition: transform 0.45s var(--ease), visibility 0s;
  }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav a:not(.btn) {
    color: #fff; font-size: 1.15rem; padding: 0.85rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }
  .main-nav a:not(.btn)::after { left: 0; right: auto; width: 2rem; bottom: -1px; background: var(--halo); }
  .main-nav__contact { margin: 1.5rem 0 0; }
  .main-nav__contact .btn { width: 100%; min-height: 3rem; }
  .main-nav.is-open li { animation: nav-item 0.5s var(--ease) both; }
  .main-nav.is-open li:nth-child(2) { animation-delay: 0.04s; }
  .main-nav.is-open li:nth-child(3) { animation-delay: 0.08s; }
  .main-nav.is-open li:nth-child(4) { animation-delay: 0.12s; }
  .main-nav.is-open li:nth-child(5) { animation-delay: 0.16s; }
  .main-nav.is-open li:nth-child(6) { animation-delay: 0.2s; }
  .main-nav.is-open li:nth-child(7) { animation-delay: 0.24s; }
  .main-nav.is-open li:nth-child(8) { animation-delay: 0.28s; }
  .nav-toggle { position: relative; z-index: 2; }
  .nav-open .nav-toggle { background: var(--halo); border-color: var(--halo); }
  .nav-open::after {
    content: ""; position: fixed; inset: 0; z-index: 40;
    background: rgba(27, 33, 66, 0.45);
    animation: fade 0.3s both;
  }
  .topbar__contact span { display: none; }
}
@keyframes nav-item { from { opacity: 0; transform: translateX(1.5rem); } }
@keyframes fade { from { opacity: 0; } }

/* ---------------------------------------------------------- Auréole (signature) */
.halo {
  position: absolute;
  pointer-events: none;
  overflow: visible;
}
.halo ellipse {
  fill: none;
  stroke: var(--halo);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  filter: drop-shadow(0 0 10px rgba(242, 235, 162, 0.85));
}
.js .halo ellipse { stroke-dashoffset: 1; animation: halo-draw 1.8s var(--ease) 0.25s forwards; }
.halo--hero { width: clamp(9rem, 20vw, 17rem); left: -1.2rem; top: clamp(-3.2rem, -3vw, -2rem); transform: rotate(-7deg); }
.halo--page { width: clamp(11rem, 22vw, 18rem); left: -1rem; top: -2.2rem; transform: rotate(-5deg); }
.halo--small { position: relative; width: 8rem; margin-bottom: 0.5rem; }
.halo--small ellipse { stroke: #e5d86a; filter: none; }
@keyframes halo-draw {
  to { stroke-dashoffset: 0; }
}

/* ---------------------------------------------------------- Arc de chapelle */
.arch {
  border-radius: var(--arch);
  overflow: hidden;
  isolation: isolate;
  box-shadow: var(--shadow);
}
.arch img { width: 100%; height: 100%; object-fit: cover; }
.rounded { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.rounded img { width: 100%; height: 100%; object-fit: cover; }

/* Dévoilement au défilement (activé seulement si JS).
   Le masque (clip-path) est posé sur le contenu, jamais sur l'élément observé :
   les navigateurs récents (Chrome 13x+) tiennent compte du clip-path de la cible
   dans IntersectionObserver, un élément entièrement masqué ne serait jamais « vu ». */
.js .reveal { transition: box-shadow 1.2s var(--ease); }
.js .reveal:not(.is-visible) { box-shadow: none; }
.js .reveal > * {
  clip-path: inset(100% 0 0 0 round 40% 40% 0 0);
  transition: clip-path 1.2s var(--ease);
}
.js .reveal img { transform: scale(1.12); transition: transform 1.6s var(--ease), clip-path 1.2s var(--ease); }
.js .reveal.is-visible > * { clip-path: inset(0 0 0 0 round 0); }
.js .reveal.is-visible img { transform: none; }

/* ---------------------------------------------------------- Héros d'accueil */
.hero {
  position: relative;
  display: grid;
  min-height: min(88svh, 52rem);
  min-height: min(88dvh, 52rem);
  color: #fff;
  overflow: hidden;
  background: var(--night);
}
.hero__media { position: absolute; inset: 0; }
.hero__img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%;
  background: var(--night);
}
.js .hero__img { animation: hero-zoom 2.6s var(--ease) both; }
.hero__media::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(27, 33, 66, 0.94) 0%, rgba(27, 33, 66, 0.78) 42%, rgba(27, 33, 66, 0.25) 75%, rgba(27, 33, 66, 0.1) 100%),
    linear-gradient(0deg, rgba(27, 33, 66, 0.6), transparent 40%);
}
.hero__inner {
  position: relative;
  align-self: center;
  padding-block: var(--space-l);
}
.hero__district {
  min-height: 1.7em;
  margin-bottom: 2.6rem;
  font-family: var(--font-ui);
  font-size: var(--step-1);
  color: var(--halo);
}
.typewriter::after {
  content: "";
  display: inline-block;
  width: 2px; height: 1.05em;
  margin-left: 3px;
  vertical-align: -0.12em;
  background: currentColor;
  animation: caret 1s steps(1) infinite;
}
@keyframes caret { 50% { opacity: 0; } }
.hero__title-wrap { position: relative; }
.hero__title {
  position: relative;
  font-size: var(--step-5);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.02em;
  max-width: 9em;
}
.hero__name {
  margin-top: 1.4rem;
  font-size: var(--step-2);
  font-style: italic;
  color: rgba(255, 255, 255, 0.88);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2.2rem; }
.js .hero__title { animation: rise 1.1s var(--ease) 0.35s both; }
.js .hero__name { animation: rise 1s var(--ease) 0.75s both; }
.js .hero__actions { animation: rise 1s var(--ease) 0.95s both; }
@keyframes rise { from { opacity: 0; transform: translateY(1.6rem); } }
@keyframes hero-zoom { from { transform: scale(1.08); } }

/* ---------------------------------------------------------- Repères historiques */
.milestones {
  background: linear-gradient(180deg, var(--halo) 0%, var(--halo-soft) 100%);
  padding-block: var(--space-m);
}
.milestones__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: var(--space-m);
}
.milestone { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 1rem; }
.milestone__num {
  font-size: var(--step-4);
  font-weight: 600;
  color: var(--cross);
  line-height: 1;
  font-variant-numeric: tabular-nums lining-nums;
}
.milestone__text { color: var(--night); line-height: 1.45; }
.milestone__text strong { color: var(--night); }

/* ---------------------------------------------------------- Sections */
.section { padding-block: var(--space-l); }
.section--tight { padding-block: var(--space-m); }
.section--mist { background: var(--mist); }
.section__title { font-size: var(--step-4); color: var(--night); }
.section__title--center { text-align: center; }
.section__head {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: 1rem; margin-bottom: var(--space-m);
}
.link-more {
  font-family: var(--font-ui); font-weight: 700; font-size: 0.95rem;
  text-decoration: none;
  border-bottom: 2px solid var(--halo);
  color: var(--night);
  transition: border-color 0.2s;
}
.link-more:hover { border-color: var(--cross); color: var(--night); }
.lead { font-size: var(--step-1); line-height: 1.6; }
.prose > * + * { margin-top: 1.1em; }
.prose { max-width: 40rem; }
.prose h2 { font-size: var(--step-3); margin-top: 1.8em; }
.prose h3 { font-size: var(--step-2); margin-top: 1.6em; color: var(--night); }

/* ---------------------------------------------------------- Fondateurs */
.founders .section__title { margin-bottom: var(--space-m); }
.founders__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-m);
  align-items: start;
}
.founders__portrait {
  position: sticky; top: calc(var(--header-h) + 1.5rem);
  padding: 1rem;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.founders__portrait img { width: 100%; background: #fff; }
.founder > * + * { margin-top: 0.9rem; }
.founder__name { font-size: var(--step-2); color: var(--night); }
.founder__dates {
  font-family: var(--font-ui); font-size: var(--step--1);
  color: var(--ochre);
  margin-top: 0.35rem;
}
.founder__dream {
  font-style: italic; font-size: var(--step-1);
  padding-left: 1rem; border-left: 3px solid var(--halo);
}

/* ---------------------------------------------------------- Bandeaux de citation */
.quote-band {
  position: relative;
  background: linear-gradient(180deg, var(--halo) 0%, var(--halo-soft) 100%);
  padding-block: var(--space-l);
  overflow: hidden;
}
.quote-band::before {
  content: "";
  position: absolute;
  width: 46rem; height: 13rem;
  left: 50%; top: 50%;
  border: 3px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(-5deg);
}
.quote-band__figure { position: relative; max-width: 50rem; margin-inline: auto; text-align: center; }
.quote-band blockquote p {
  font-size: var(--step-3);
  font-style: italic;
  line-height: 1.3;
  color: var(--night);
  text-wrap: balance;
}
.quote-band figcaption {
  margin-top: 1.2rem;
  font-family: var(--font-ui);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  color: var(--cross);
}
.quote-band--night { background: var(--night); }
.quote-band--night::before { border-color: rgba(242, 235, 162, 0.35); }
.quote-band--night blockquote p { color: #fff; }
.quote-band--night figcaption { color: var(--halo); }

.pull-quote { max-width: 46rem; margin-inline: auto; text-align: center; }
.pull-quote blockquote p {
  font-size: var(--step-3);
  font-style: italic;
  line-height: 1.3;
  color: var(--night);
}
.pull-quote blockquote p::before { content: "\201C"; display: block; font-size: 1.6em; line-height: 0.6; color: var(--cross); font-style: normal; }
.pull-quote figcaption { margin-top: 0.8rem; font-family: var(--font-ui); color: var(--cross); letter-spacing: 0.06em; }
.pull-quote--inline { text-align: left; margin-inline: 0; padding: 1.4rem 0 1.4rem 1.4rem; border-left: 3px solid var(--halo); }
.pull-quote--inline blockquote p { font-size: var(--step-1); line-height: 1.55; }
.pull-quote--inline blockquote p::before { display: none; }
.pull-quote--inline figcaption { font-size: var(--step--1); }

/* ---------------------------------------------------------- Actualités (aperçu) */
.teasers { display: grid; grid-template-columns: repeat(auto-fit, minmax(16.5rem, 1fr)); gap: var(--space-m); }
.teaser__link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.teaser__media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--mist); }
.teaser__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.teaser__link:hover .teaser__media img { transform: scale(1.05); }
.teaser__title { margin-top: 1.1rem; font-size: var(--step-2); color: var(--night); }
.teaser__text { margin-top: 0.6rem; color: var(--muted); font-size: 0.98rem; }
.teaser__more {
  margin-top: auto; padding-top: 0.9rem;
  font-family: var(--font-ui); font-weight: 700; font-size: 0.9rem; color: var(--cross);
}
.teaser__link:hover .teaser__title { text-decoration: underline; text-decoration-color: var(--halo); text-decoration-thickness: 3px; text-underline-offset: 0.2em; }

/* ---------------------------------------------------------- Présence / communautés */
.presence { background: var(--mist); }
.presence__grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr); gap: var(--space-l); align-items: start; }
.presence__img { margin-top: var(--space-m); width: min(100%, 22rem); background: none; }
.presence__list { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.community {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
  border-top: 4px solid var(--halo);
}
.community__name { font-size: var(--step-1); color: var(--night); font-weight: 600; margin-bottom: 0.7rem; }
.community address { font-style: normal; font-size: 0.95rem; line-height: 1.6; }
.community address > * + * { margin-top: 0.7rem; }
.community__phones { list-style: none; padding: 0; }
.community__phones li, .community__email { display: flex; gap: 0.5rem; align-items: baseline; }
.community__phones .icon, .community__email .icon { position: relative; top: 0.15em; color: var(--cross); }
.community__email a { overflow-wrap: anywhere; }

/* ---------------------------------------------------------- En-tête de page intérieure */
.page-hero {
  position: relative;
  background: var(--night);
  color: #fff;
  padding-top: var(--space-l);
  margin-bottom: var(--space-l);
}
.page-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.8fr);
  gap: var(--space-m);
  align-items: end;
}
.page-hero__text { position: relative; padding-bottom: var(--space-l); }
.page-hero__title { position: relative; font-size: var(--step-5); line-height: 1.02; letter-spacing: -0.02em; }
.page-hero__lead { margin-top: 1.4rem; max-width: 38rem; font-size: var(--step-1); color: rgba(255, 255, 255, 0.88); }
.page-hero__media {
  aspect-ratio: 4 / 5;
  margin-bottom: calc(-1 * var(--space-l));
  border: 6px solid #fff;
  box-shadow: 0 2rem 3rem -1.5rem rgba(27, 33, 66, 0.55);
}
/* Photo de groupe : garder les visages dans le cadre, quel que soit le format */
.page-hero__media--contact img { object-position: 50% 45%; }
.js .page-hero__title { animation: rise 1s var(--ease) 0.2s both; }
.js .page-hero__lead { animation: rise 1s var(--ease) 0.4s both; }
.js .page-hero__media { animation: arch-in 1.3s var(--ease) 0.1s both; }
@keyframes arch-in {
  from { clip-path: inset(100% 0 0 0 round 40% 40% 0 0); }
  to { clip-path: inset(0 0 0 0 round 0); }
}

/* ---------------------------------------------------------- Qui sommes-nous */
.prose-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.8fr); gap: var(--space-l); align-items: start; }
.prose-grid__aside { aspect-ratio: 3 / 4; }
.arch--small { max-width: 20rem; justify-self: end; width: 100%; }
.dream { max-width: 52rem; }
.dream__intro { font-size: var(--step-2); line-height: 1.4; color: var(--night); }
.dream__list { list-style: none; padding: 0; margin-top: var(--space-m); display: grid; gap: 0; }
.dream__list li {
  position: relative;
  padding: 1.15rem 0 1.15rem 2.6rem;
  border-top: 1px solid var(--line);
  font-size: var(--step-1);
}
.dream__list li:last-child { border-bottom: 1px solid var(--line); }
.dream__list li::before {
  content: "";
  position: absolute; left: 0; top: 1.55rem;
  width: 1.4rem; height: 0.55rem;
  border: 2px solid var(--ochre);
  border-radius: 50%;
}

/* ---------------------------------------------------------- Notre mission */
.angels .section__title { margin-bottom: var(--space-l); }
.verbs { list-style: none; padding: 0; display: grid; gap: var(--space-l); }
.verb { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: var(--space-l); align-items: center; }
.verb--alt .verb__media { order: 2; }
.verb__media--wide { aspect-ratio: 4 / 3; max-width: 34rem; }
.verb__media { aspect-ratio: 4 / 5; max-width: 26rem; width: 100%; justify-self: center; }
.verb__title {
  font-size: var(--step-4);
  color: var(--night);
  line-height: 1;
}
.verb__text p { margin-top: 1.1rem; font-size: var(--step-1); max-width: 34rem; }
.verb__verse { font-style: italic; color: var(--night); }
.verb__verse cite { font-style: normal; font-family: var(--font-ui); font-size: var(--step--1); color: var(--cross); }

/* ---------------------------------------------------------- Vie fraternelle */
.stack-rows { display: grid; gap: var(--space-l); }
.row-media { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr); gap: var(--space-l); align-items: center; }
.row-media--alt .row-media__img { order: -1; }
.row-media__img { aspect-ratio: 1 / 1; max-width: 22rem; width: 100%; justify-self: center; }

/* ---------------------------------------------------------- Carrousel */
.carousel { position: relative; }
.carousel__viewport {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(100%, 52rem);
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  border-radius: var(--radius);
  padding-inline: max(0px, calc((100% - 52rem) / 2));
}
.carousel__viewport::-webkit-scrollbar { display: none; }
.carousel__slide {
  scroll-snap-align: center;
  aspect-ratio: 3 / 2;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--night);
  opacity: 0.45;
  transform: scale(0.94);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.carousel__slide.is-active { opacity: 1; transform: none; }
.carousel__slide .zoomable, .carousel__slide img { width: 100%; height: 100%; }
.carousel__slide img { object-fit: contain; background: var(--night); }
.carousel__controls { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 1.2rem; }
.carousel__btn {
  display: grid; place-items: center;
  width: 2.9rem; height: 2.9rem;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--night);
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, transform 0.2s;
}
.carousel__btn:hover { background: var(--night); color: #fff; }
.carousel__dots { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem; }
.carousel__dot {
  width: 0.65rem; height: 0.65rem; padding: 0;
  border: 0; border-radius: 999px;
  background: var(--line);
  cursor: pointer;
  transition: width 0.4s var(--ease), background-color 0.3s;
}
.carousel__dot[aria-current="true"] { width: 1.8rem; background: var(--cross); }

.zoomable {
  display: block; position: relative;
  padding: 0; border: 0; background: none;
  cursor: zoom-in;
  width: 100%;
}

/* ---------------------------------------------------------- Pastorale */
.chips {
  display: flex; flex-wrap: wrap; gap: 0.6rem;
  justify-content: center;
  padding-block: 0.5rem var(--space-m);
}
.chips a {
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-family: var(--font-ui); font-size: 0.9rem;
  color: var(--night); text-decoration: none;
  transition: background-color 0.2s, border-color 0.2s;
}
.chips a:hover { background: var(--halo); border-color: var(--halo); color: var(--night); }
.ministry__head { display: flex; align-items: center; gap: 1.2rem; margin-bottom: var(--space-m); }
.ministry__icon { width: 4.5rem; height: 4.5rem; object-fit: contain; background: none; flex: none; }
.ministry__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.9fr); gap: var(--space-l); align-items: start; }
.ministry__media { display: grid; gap: 1rem; }
.ministry__media .arch { aspect-ratio: 4 / 5; }
.ministry__media .rounded { aspect-ratio: 16 / 10; }
.video-block__grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: var(--space-l); align-items: center; }
.video-block video, .article__video video {
  width: 100%; height: auto;
  border-radius: var(--radius);
  background: var(--night);
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

/* ---------------------------------------------------------- Où sommes-nous */
.country__grid { display: grid; grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.6fr); gap: var(--space-l); align-items: start; }
.country__map { position: sticky; top: calc(var(--header-h) + 1.5rem); }
.country__map img { background: none; width: min(100%, 22rem); margin-inline: auto; filter: drop-shadow(0 1.2rem 1.5rem rgba(27, 33, 66, 0.2)); }
.country__body.prose { max-width: 44rem; }
.country .section__title { font-size: var(--step-3); }
.arch--wide { aspect-ratio: 4 / 3; border-radius: 40% 40% var(--radius) var(--radius) / 22% 22% var(--radius) var(--radius); }
.ticks { list-style: none; padding: 0; }
.ticks li { position: relative; padding: 0.45rem 0 0.45rem 2rem; }
.ticks li::before {
  content: "";
  position: absolute; left: 0.1rem; top: 1.05rem;
  width: 1.1rem; height: 0.45rem;
  border: 2px solid var(--ochre);
  border-radius: 50%;
}

/* ---------------------------------------------------------- Actualités */
.news__container { max-width: 56rem; }
.news__tools {
  display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between;
  margin-bottom: var(--space-m);
}
.search {
  position: relative;
  flex: 1 1 18rem;
  max-width: 28rem;
}
.search__icon { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search input {
  width: 100%;
  padding: 0.8rem 1rem 0.8rem 3rem;
  border: 1px solid var(--line); border-radius: 999px;
  font-family: var(--font-ui); font-size: 1rem;
  background: #fff; color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.search input:focus { outline: none; border-color: var(--night); box-shadow: 0 0 0 4px var(--halo); }
.news__count { font-family: var(--font-ui); font-size: 0.9rem; color: var(--muted); }
.news__empty { padding: 2rem; text-align: center; background: var(--mist); border-radius: var(--radius); }
.news__list { display: grid; gap: 1rem; }

.article {
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  transition: border-color 0.3s, box-shadow 0.4s var(--ease);
}
.article:hover { border-color: #b9bfd6; }
.article[open] { border-color: transparent; box-shadow: 0 1.5rem 3rem -1.8rem rgba(27, 33, 66, 0.45), 0 0 0 1px var(--line); }
.article__summary {
  display: grid;
  grid-template-columns: 9rem minmax(0, 1fr) auto;
  gap: 1.2rem;
  align-items: center;
  padding: 0.75rem 1.2rem 0.75rem 0.75rem;
  cursor: pointer;
  list-style: none;
  border-radius: var(--radius);
}
.article__summary::-webkit-details-marker { display: none; }
.article__thumb { display: block; aspect-ratio: 4 / 3; border-radius: calc(var(--radius) - 0.25rem); overflow: hidden; }
.article__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.article__summary:hover .article__thumb img { transform: scale(1.06); }
.article__title { font-size: var(--step-1); font-weight: 550; line-height: 1.35; color: var(--night); }
.article__toggle {
  display: grid; place-items: center;
  width: 2.4rem; height: 2.4rem; border-radius: 50%;
  background: var(--mist); color: var(--night);
  transition: transform 0.45s var(--ease), background-color 0.2s;
}
.article[open] .article__toggle { transform: rotate(180deg); background: var(--halo); }
.article__body { padding: 0.5rem 1.5rem 2rem; }
.article__content { max-width: 44rem; margin-inline: auto; }
.article__content > figure:first-child { margin-top: 0.5rem; }
.article__kicker { font-size: var(--step-2); font-weight: 600; color: var(--cross); }
.article__gallery { display: grid; gap: 0.75rem; }
.article__gallery--2 { grid-template-columns: 1fr 1fr; }
.article__gallery--2 figcaption { grid-column: 1 / -1; }
.article__gallery img { width: 100%; border-radius: calc(var(--radius) - 0.25rem); }
.article__gallery--2 .zoomable { height: 100%; }
.article__gallery--2 img { height: 100%; object-fit: cover; }
.article__gallery figcaption { font-family: var(--font-ui); font-size: var(--step--1); color: var(--muted); }
.article.is-hidden { display: none; }
@supports (interpolate-size: allow-keywords) {
  .news__list { interpolate-size: allow-keywords; }
  .article::details-content {
    height: 0; overflow: clip;
    transition: height 0.55s var(--ease), content-visibility 0.55s allow-discrete;
  }
  .article[open]::details-content { height: auto; }
}
.js .article[open] .article__content { animation: rise 0.7s var(--ease) both; }
.article:target, .article.is-highlight { animation: flash 2.2s var(--ease); }
@keyframes flash { 0%, 40% { box-shadow: 0 0 0 4px var(--halo); } }

/* ---------------------------------------------------------- Contact */
.contact__grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: var(--space-l); align-items: start; }
.form { display: grid; gap: 1.3rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.3rem; }
.field { display: grid; gap: 0.4rem; }
.field label { font-family: var(--font-ui); font-size: 0.92rem; font-weight: 700; color: var(--night); }
.req { color: var(--cross); }
.field input:not([type="checkbox"]), .field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid #c3c8dc; border-radius: 0.6rem;
  background: #fff;
  font: inherit; font-size: 1rem; color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { resize: vertical; min-height: 10rem; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--night); box-shadow: 0 0 0 4px var(--halo); }
.field [aria-invalid="true"] { border-color: var(--cross) !important; }
.field__error { color: var(--cross); font-family: var(--font-ui); font-size: 0.875rem; }
.field--check { grid-template-columns: auto 1fr; align-items: start; column-gap: 0.75rem; }
.field--check input { width: 1.25rem; height: 1.25rem; margin-top: 0.25rem; accent-color: var(--cross); }
.field--check label { font-family: var(--font-text); font-weight: 400; font-size: 0.95rem; }
.field--check .field__error { grid-column: 2; }
.field--trap { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__note { font-family: var(--font-ui); font-size: 0.85rem; color: var(--muted); }
.form-status {
  display: flex; gap: 0.9rem; align-items: flex-start;
  padding: 1.1rem 1.3rem; margin-bottom: 1.3rem;
  border-radius: var(--radius);
}
.form-status--ok { background: var(--halo-soft); border: 1px solid #e3d77a; }
.form-status--ok:not([hidden]) { animation: rise 0.7s var(--ease) both; }
.form-status--error { background: #fbeaec; border: 1px solid #efb7bf; color: var(--cross-dark); }
.form-status__icon { color: #2f7a3c; width: 1.8rem; height: 1.8rem; }
.form-status__icon path { stroke-dasharray: 30; stroke-dashoffset: 30; animation: check 0.7s var(--ease) 0.2s forwards; }
@keyframes check { to { stroke-dashoffset: 0; } }
.contact__details .section__title { font-size: var(--step-3); margin-bottom: 1.2rem; }
.contact__details { display: grid; gap: 1rem; }
.contact__details .community { background: var(--mist); }
.contact__general { display: flex; gap: 0.8rem; align-items: flex-start; font-family: var(--font-ui); }
.contact__general .icon { color: var(--cross); margin-top: 0.15rem; }
.contact__general a { overflow-wrap: anywhere; font-family: var(--font-text); }

/* ---------------------------------------------------------- Pages simples */
.page-simple .prose { max-width: 44rem; }
.page-404 { min-height: 50vh; display: grid; align-items: center; }

/* ---------------------------------------------------------- Pied de page */
.site-footer {
  background: var(--night);
  color: rgba(255, 255, 255, 0.85);
  padding-top: var(--space-l);
  font-size: 0.95rem;
}
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--halo); text-decoration: underline; }
.site-footer__grid { display: grid; grid-template-columns: 1.2fr 1fr 1.2fr; gap: var(--space-m); }
.site-footer__name { font-size: var(--step-2); color: #fff; line-height: 1.2; }
.site-footer__district { margin-top: 0.4rem; font-style: italic; color: var(--halo); }
.site-footer__nav ul { list-style: none; padding: 0; display: grid; gap: 0.35rem; font-family: var(--font-ui); }
.site-footer__contact { display: grid; gap: 0.9rem; }
.social { display: flex; gap: 0.6rem; list-style: none; padding: 0; margin-top: 1.4rem; }
.social a {
  display: grid; place-items: center;
  width: 2.6rem; height: 2.6rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.social a:hover { background: var(--halo); color: var(--night); border-color: var(--halo); }
.site-footer__bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
  margin-top: var(--space-l);
  padding-block: 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-family: var(--font-ui); font-size: 0.82rem; color: rgba(255, 255, 255, 0.7);
}
.site-footer__legal { display: flex; gap: 1.2rem; }
.site-footer__legal .linklike { color: rgba(255, 255, 255, 0.85); }
.back-top {
  display: grid; place-items: center;
  width: 2.6rem; height: 2.6rem; border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}

/* ---------------------------------------------------------- Bandeau de consentement */
.consent {
  position: fixed; z-index: 60;
  left: 1rem; right: 1rem; bottom: 1rem;
  max-width: 40rem;
  margin-inline: auto;
  display: flex; flex-wrap: wrap; align-items: center; gap: 1rem;
  padding: 1.1rem 1.3rem;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 1.5rem 3rem -1rem rgba(27, 33, 66, 0.45), 0 0 0 1px var(--line);
  font-size: 0.95rem;
}
.consent:not([hidden]) { animation: rise 0.6s var(--ease) both; }
.consent p { flex: 1 1 18rem; }
.consent__actions { display: flex; gap: 0.6rem; }

/* ---------------------------------------------------------- Visionneuse */
.lightbox {
  width: 100vw; height: 100dvh;
  max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: rgba(15, 18, 38, 0.94);
  color: #fff;
}
.lightbox[open] { display: grid; place-items: center; animation: fade 0.3s both; }
.lightbox::backdrop { background: transparent; }
.lightbox__figure { display: grid; gap: 0.8rem; justify-items: center; padding: 4rem 4.5rem; }
.lightbox__figure img {
  max-width: min(92vw, 80rem);
  max-height: calc(100dvh - 9rem);
  width: auto; height: auto;
  border-radius: 0.5rem;
  background: none;
  animation: zoom-in 0.45s var(--ease) both;
}
.lightbox__figure figcaption { font-family: var(--font-ui); font-size: 0.9rem; color: rgba(255, 255, 255, 0.8); text-align: center; max-width: 50rem; }
.lightbox__close, .lightbox__nav {
  position: absolute;
  display: grid; place-items: center;
  width: 3rem; height: 3rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
}
.lightbox__close:hover, .lightbox__nav:hover { background: var(--halo); color: var(--night); }
.lightbox__close { top: 1rem; right: 1rem; }
.lightbox__nav--prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox__nav[hidden] { display: none; }
@keyframes zoom-in { from { opacity: 0; transform: scale(0.94); } }

/* ---------------------------------------------------------- Transitions entre pages */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: 0.25s ease both fade-out; }
::view-transition-new(root) { animation: 0.35s ease both fade; }
@keyframes fade-out { to { opacity: 0; } }

/* ---------------------------------------------------------- Responsive */
@media (max-width: 62rem) {
  .founders__grid { grid-template-columns: 1fr 1fr; }
  .founders__portrait { grid-column: 1 / -1; position: static; max-width: 30rem; justify-self: center; width: 100%; }
  .presence__grid, .contact__grid, .video-block__grid, .ministry__grid { grid-template-columns: 1fr; }
  .ministry__media { grid-template-columns: 1fr 1fr; }
  .ministry__media .arch { grid-row: span 2; aspect-ratio: auto; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .site-footer__brand { grid-column: 1 / -1; }
  .country__grid { grid-template-columns: 1fr; }
  .country__map { position: static; }
  .country__map img { width: min(60%, 16rem); }
}
@media (max-width: 48rem) {
  :root { --header-h: 4.5rem; }
  .founders__grid, .prose-grid, .row-media, .verb { grid-template-columns: 1fr; }
  .verb--alt .verb__media, .row-media--alt .row-media__img { order: 0; }
  .verb__media { max-width: 20rem; }
  .verb__media--wide { max-width: 100%; }
  .row-media__img { max-width: 16rem; }
  .arch--small { justify-self: center; max-width: 16rem; }
  .page-hero__inner { grid-template-columns: 1fr; }
  .page-hero__text { padding-bottom: 1rem; }
  .page-hero__media { aspect-ratio: 16 / 10; border-radius: 40% 40% var(--radius) var(--radius) / 30% 30% var(--radius) var(--radius); }
  .form__row { grid-template-columns: 1fr; }
  .article__summary { grid-template-columns: 5.5rem minmax(0, 1fr) auto; gap: 0.9rem; }
  .article__title { font-size: 1.05rem; }
  .article__body { padding: 0.25rem 1rem 1.5rem; }
  .article__gallery--2 { grid-template-columns: 1fr; }
  .ministry__media { grid-template-columns: 1fr; }
  .ministry__media .arch { grid-row: auto; aspect-ratio: 4 / 5; max-width: 20rem; }
  .site-footer__grid { grid-template-columns: 1fr; }
  .milestone { grid-template-columns: 1fr; gap: 0.3rem; }
  .hero__district { margin-bottom: 2rem; }
  .lightbox__figure { padding: 4rem 0.5rem; }
  .lightbox__nav { top: auto; bottom: 1rem; transform: none; }
  .quote-band::before { width: 30rem; }
}

/* ---------------------------------------------------------- Mouvement réduit */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .js .reveal > * { clip-path: none; }
  .js .reveal img { transform: none; }
  .js .halo ellipse { stroke-dashoffset: 0; animation: none; }
  .typewriter::after { display: none; }
  @view-transition { navigation: none; }
}

/* ---------------------------------------------------------- Impression */
@media print {
  .site-header, .site-footer, .consent, .carousel__controls, .hero__actions, .lightbox, .news__tools { display: none !important; }
  .hero, .page-hero, .quote-band--night { background: none; color: #000; }
  .hero__media { display: none; }
  .article__body { display: block !important; }
}
