/* ==========================================================================
   Saint Bernard d'Adiapodoumé — design system partagé (thème CLAIR)
   Fond blanc/crème, texte brun très sombre, bleu du logo en couleur
   principale, orange en accent. Arc-en-ciel RARE : fine barre en haut de page
   et dans le pied de page, + cadre dégradé uniquement sur la carte
   « Programme des messes » (la signature des affiches).
   Les sections sombres (vitrail) restent possibles avec .section--dark.
   ========================================================================== */

@font-face {
  font-family: "Clash Display";
  src: url("../assets/fonts/ClashDisplay-Variable.woff2") format("woff2"),
       url("../assets/fonts/ClashDisplay-Variable.woff") format("woff");
  font-weight: 200 700;
  font-display: swap;
}
@font-face { font-family: "Poppins"; src: url("../assets/fonts/Poppins-Light.ttf") format("truetype"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../assets/fonts/Poppins-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../assets/fonts/Poppins-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../assets/fonts/Poppins-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../assets/fonts/Poppins-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
  /* Palette de marque (fixe) */
  --rouge: #ee2f23;
  --orange: #ef6400;
  --jaune: #ffdf00;
  --lime: #b2d000;
  --vert: #065c18;
  --bleu: #0061b4;
  --violet: #632282;
  --bleu-logo: #003d72;
  --turquoise: #2ec4b6;
  --noir: #0c0706;
  --noir-2: #150e0b;
  --noir-3: #1f1511;
  --creme: #f1efcd;
  --blanc: #ffffff;

  /* Jetons SÉMANTIQUES (thème clair) — à utiliser dans les pages */
  --bg: #ffffff;              /* fond blanc */
  --bg-alt: #f5f6f8;          /* sections alternées gris clair neutre */
  --surface: #ffffff;         /* cartes */
  --texte: #1b120d;           /* texte courant */
  --texte-doux: rgba(27, 18, 13, .68);
  --titre: var(--bleu-logo);  /* titres */
  --ligne: rgba(27, 18, 13, .12);
  --accent: var(--orange);
  --accent-texte: #c24e00;    /* orange lisible sur fond clair (texte) */
  --focus: var(--bleu);

  --cadre: linear-gradient(135deg, var(--turquoise) 0%, #e0a100 28%, var(--orange) 50%, var(--rouge) 70%, #12407f 100%);

  --font-titre: "Clash Display", "Poppins", "Helvetica Neue", Arial, sans-serif;
  --font-corps: "Poppins", "Helvetica Neue", Arial, sans-serif;
  --font-accent: "Clash Display", "Poppins", "Helvetica Neue", Arial, sans-serif;

  --rayon: 4px;
  --rayon-s: 2px;
  --gutter: clamp(16px, 4vw, 40px);
  --max: clamp(1200px, 88vw, 1900px);
  --header-h: 76px;
  --ombre: 0 14px 40px rgba(27, 18, 13, .10);
  --ombre-s: 0 4px 18px rgba(27, 18, 13, .07);
}

/* Section sombre (vitrail) : redéfinit les jetons localement */
.section--dark, .on-dark {
  --bg: var(--noir); --bg-alt: var(--noir-2); --surface: var(--noir-3);
  --texte: var(--creme); --texte-doux: rgba(241, 239, 205, .72); --titre: var(--creme);
  --ligne: rgba(241, 239, 205, .18); --accent-texte: #ff8a3d; --focus: var(--jaune);
  color: var(--texte);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--texte);
  font-family: var(--font-corps); font-size: clamp(1rem, .96rem + .2vw, 1.125rem);
  line-height: 1.65; font-weight: 400; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg, video { max-width: 100%; display: block; }
a { color: var(--bleu); text-decoration-color: var(--orange); text-underline-offset: 3px; }
a:hover { color: var(--accent-texte); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: var(--rayon-s); }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--bleu-logo); color: #fff; padding: 10px 16px; border-radius: var(--rayon-s); z-index: 200; }
.skip-link:focus { left: 8px; }

h1, h2, h3, h4 { font-family: var(--font-titre); line-height: 1.08; margin: 0 0 .5em; letter-spacing: -.01em; text-wrap: balance; color: var(--titre); }
h1 { font-size: clamp(2.3rem, 1.5rem + 4vw, 4.6rem); font-weight: 700; text-transform: uppercase; }
h2 { font-size: clamp(1.8rem, 1.25rem + 2.3vw, 3.1rem); font-weight: 700; text-transform: uppercase; }
h3 { font-size: clamp(1.2rem, 1.05rem + .9vw, 1.65rem); font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }
p { margin: 0 0 1em; text-wrap: pretty; }
.lead { font-size: clamp(1.1rem, 1rem + .6vw, 1.35rem); color: var(--texte-doux); max-width: 62ch; }

/* ---------- Mise en page ---------- */
.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(56px, 8vw, 104px); position: relative; background: var(--bg); color: var(--texte); }
.section--alt { background: var(--bg-alt); }
.section--light { background: var(--bg); }                         /* alias historique */
.section--dark { background: var(--bg); }
.section--vitrail { background: var(--bleu-logo); }
.section--vitrail { --texte: var(--creme); --texte-doux: rgba(241,239,205,.72); --titre: var(--creme); --ligne: rgba(241,239,205,.18); --surface: var(--noir-3); --accent-texte: #ff8a3d; --focus: var(--jaune); color: var(--texte); }
.section-head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 52px); }
.section-head.center { margin-inline: auto; text-align: center; }
.muted { color: var(--texte-doux); }
.center { text-align: center; }
.stack > * + * { margin-top: 1rem; }

.grid { display: grid; gap: clamp(16px, 2.4vw, 28px); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.split { display: grid; gap: clamp(28px, 5vw, 72px); align-items: center; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }

/* ---------- Éléments de marque ---------- */
/* Barre des 7 couleurs : à n'utiliser que très peu (haut de page, pied de page) */
.rainbow-bar {
  height: 3px; width: 100%;
  background: linear-gradient(90deg,
    var(--rouge) 0 12.5%, transparent 12.5% 14.583%,
    var(--orange) 14.583% 27.083%, transparent 27.083% 29.167%,
    var(--jaune) 29.167% 41.667%, transparent 41.667% 43.75%,
    var(--lime) 43.75% 56.25%, transparent 56.25% 58.333%,
    var(--vert) 58.333% 70.833%, transparent 70.833% 72.917%,
    var(--bleu) 72.917% 85.417%, transparent 85.417% 87.5%,
    var(--violet) 87.5% 100%);
}
.rainbow-bar--sm { height: 3px; max-width: 120px; }

.accent { font-family: var(--font-accent); font-weight: 600; text-transform: none; letter-spacing: 0; color: var(--accent-texte); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-accent); font-weight: 600; font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-texte); margin-bottom: .6rem; }

/* Cadres & cartes : sobres (fine bordure, ombre douce) */
.frame, .card--frame, .frame--glass {
  background: var(--surface); border: 1px solid var(--ligne); border-radius: var(--rayon);
  padding: clamp(22px, 3vw, 38px); box-shadow: var(--ombre-s);
}
/* Étiquette posée sur la bordure (ex. « PÂQUES DES RÉGIONS ») */
.frame-tag { display: inline-block; background: var(--bleu-logo); color: #fff; font-weight: 700; text-transform: uppercase; padding: .35em 1.2em; border-radius: var(--rayon-s); transform: translateY(-50%); margin: 0 auto; }

/* Cadre à bordure dégradée — RÉSERVÉ à la carte « Programme des messes » */
.frame--arc { position: relative; border: 0; }
.frame--arc::before {
  content: ""; position: absolute; inset: 0; padding: 2px; border-radius: inherit; background: var(--cadre); pointer-events: none;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}

.card {
  background: var(--surface); border: 1px solid var(--ligne); border-radius: var(--rayon);
  padding: clamp(20px, 2.6vw, 30px); box-shadow: var(--ombre-s); transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
a.card, .card--hover { text-decoration: none; display: block; color: inherit; }
a.card:hover, .card--hover:hover { transform: translateY(-4px); border-color: rgba(0, 61, 114, .35); box-shadow: var(--ombre); color: inherit; }

.badge { display: inline-block; padding: .2em .8em; border-radius: var(--rayon-s); font-size: .8rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; background: rgba(239,100,0,.12); color: var(--accent-texte); border: 1px solid rgba(239,100,0,.35); }
.badge--creme { background: var(--bg-alt); color: var(--texte); border-color: var(--ligne); }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  font: 600 1rem/1 var(--font-titre); text-decoration: none; cursor: pointer;
  padding: 1.05em 1.7em; border-radius: var(--rayon-s); border: 2px solid transparent;
  background: var(--bleu-logo); color: #fff; transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { background: var(--orange); color: #190d06; transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--bleu-logo); border-color: var(--bleu-logo); }
.btn--ghost:hover { background: var(--bleu-logo); color: #fff; }
.btn--accent { background: var(--orange); color: #190d06; }
.btn--accent:hover { background: var(--bleu-logo); color: #fff; }
.on-dark .btn, .section--dark .btn, .section--vitrail .btn { background: var(--orange); color: #190d06; }
.on-dark .btn:hover, .section--dark .btn:hover, .section--vitrail .btn:hover { background: var(--jaune); }
.on-dark .btn--ghost, .section--dark .btn--ghost, .section--vitrail .btn--ghost { background: transparent; color: var(--creme); border-color: var(--creme); }
.on-dark .btn--ghost:hover, .section--dark .btn--ghost:hover, .section--vitrail .btn--ghost:hover { background: var(--creme); color: var(--noir); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* Placeholder « photo à fournir » */
.ph {
  position: relative; border-radius: var(--rayon); overflow: hidden; min-height: 220px; display: grid; place-items: center; text-align: center;
  background: var(--bg-alt);
  color: var(--texte-doux); font-size: .9rem; padding: 20px; border: 1.5px dashed rgba(0, 61, 114, .3);
}
.ph > * { position: relative; }
.ph--portrait { aspect-ratio: 3 / 4; } .ph--wide { aspect-ratio: 16 / 9; } .ph--square { aspect-ratio: 1; }

/* ---------- En-tête de page intérieure (clair, vitrail en filigrane à droite) ---------- */
.page-hero {
  position: relative; overflow: hidden; background: var(--bg-alt);
  padding: calc(var(--header-h) + clamp(40px, 7vw, 92px)) 0 clamp(40px, 6vw, 72px);
}
.page-hero::before {
  content: ""; position: absolute; inset: 0 0 0 auto; width: min(52%, 640px);
  background: url("../assets/img/vitrail.jpg") center/cover; opacity: .9;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 65%); mask-image: linear-gradient(90deg, transparent, #000 65%);
}
.page-hero > .container { position: relative; }
.page-hero h1 { margin-bottom: .3em; }
.page-hero .lead { margin-bottom: 0; max-width: 52ch; }
@media (max-width: 760px) { .page-hero::before { width: 100%; opacity: .16; -webkit-mask-image: none; mask-image: none; } }
.breadcrumb { font-size: .9rem; color: var(--texte-doux); margin-bottom: 1.2rem; }
.breadcrumb a { text-decoration: none; color: inherit; } .breadcrumb a:hover { text-decoration: underline; }

/* ---------- Formulaires ---------- */
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: .95rem; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--texte); background: #fff; border: 1px solid rgba(27,18,13,.22);
  border-radius: var(--rayon-s); padding: .9em 1.1em; transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--bleu); box-shadow: 0 0 0 3px rgba(0, 97, 180, .18); }
.form-note { font-size: .88rem; color: var(--texte-doux); }
.form-status { padding: 14px 18px; border-radius: var(--rayon-s); background: rgba(6,92,24,.1); border: 1px solid var(--vert); color: #0b3d16; display: none; }
.form-status.is-visible { display: block; }

/* ---------- Programme des messes (composant réutilisable) ----------
   Carte SOMBRE façon affiche (fond vitrail) avec le seul cadre dégradé du site.
   Rendu par js/messes-widget.js dans <div data-messes-widget>. */
.messes {
  position: relative; border-radius: 12px; padding: clamp(24px, 3.4vw, 44px); border: 0; box-shadow: var(--ombre);
  --texte: var(--creme); --texte-doux: rgba(241,239,205,.72); --titre: var(--creme); --ligne: rgba(241,239,205,.18);
  color: var(--creme); font-family: var(--font-titre);
  background: linear-gradient(rgba(10,6,5,.8), rgba(10,6,5,.88)), url("../assets/img/vitrail.jpg") center/cover;
}
.messes::before {
  content: ""; position: absolute; inset: 0; padding: 2px; border-radius: inherit; background: var(--cadre); pointer-events: none;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.messes__titre { text-align: center; margin-bottom: .1em; text-transform: uppercase; font-weight: 700; color: var(--creme); }
.messes__periode { text-align: center; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; margin-bottom: 1rem; font-size: clamp(1rem, .9rem + .6vw, 1.4rem); }
.messes__dots { border: 0; border-top: 3px dotted rgba(241,239,205,.5); margin: 1rem 0; }
.messes__semaine { text-align: center; font-size: 1.05rem; margin: 0; }
.messes__jour { margin-top: 1.4rem; }
.messes__jour h3 { font-size: clamp(1.3rem, 1rem + 1.6vw, 2.2rem); font-weight: 700; margin-bottom: .2em; color: var(--creme); }
.messes__heures { list-style: none; margin: 0; padding: 0; display: grid; gap: .1rem; font-weight: 300; font-size: clamp(1.1rem, .95rem + 1vw, 1.75rem); }
.messes__heures b { font-weight: 500; }
.messes__special { margin-top: 2rem; border: 3px solid var(--creme); border-radius: var(--rayon); padding: 1.4rem clamp(16px, 3vw, 32px) 1rem; position: relative; }
.messes__special .frame-tag { position: absolute; top: 0; left: 50%; transform: translate(-50%, -50%); white-space: nowrap; font-size: clamp(.95rem, .8rem + 1vw, 1.6rem); background: var(--creme); color: var(--noir); }
.messes__devise { margin: 1.6rem 0 0; font-size: .95rem; color: var(--texte-doux); }
.messes .form-note { color: var(--texte-doux); }

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

/* ==========================================================================
   En-tête & pied de page (injectés par js/main.js)
   ========================================================================== */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  display: flex; align-items: center; background: rgba(255, 255, 255, .72); backdrop-filter: blur(10px);
  transition: background .3s ease, box-shadow .3s ease;
}
.site-header.is-solid { background: rgba(255, 255, 255, .94); box-shadow: 0 1px 0 var(--ligne); }
.site-footer > .rainbow-bar { height: 5px; position: relative; top: -3px; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; width: 100%; }
.brand { display: block; flex: none; } .brand img { height: 46px; width: auto; }
.nav { display: flex; align-items: center; gap: clamp(10px, 1vw, 16px); }
.nav a:not(.btn) { text-decoration: none; color: var(--texte); font-weight: 500; font-size: .98rem; position: relative; padding: 6px 0; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, var(--rouge) 0% 14.285%, var(--orange) 14.285% 28.57%, var(--jaune) 28.57% 42.855%, var(--lime) 42.855% 57.14%, var(--vert) 57.14% 71.425%, var(--bleu) 71.425% 85.71%, var(--violet) 85.71% 100%); transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
.nav a:not(.btn):hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a:not(.btn):hover { color: var(--bleu-logo); }
.nav .btn { padding: .85em 1.4em; font-size: .92rem; }
.nav-toggle { display: none; background: none; border: 0; color: var(--bleu-logo); width: 46px; height: 46px; cursor: pointer; padding: 0; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 26px; height: 2.5px; background: currentColor; border-radius: 2px; position: relative; margin: auto; transition: transform .25s ease, background .25s ease; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -8px; } .nav-toggle span::after { top: 8px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(8px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; padding: 12px var(--gutter) 28px;
    background: rgba(255, 255, 255, .98); backdrop-filter: blur(14px); border-bottom: 1px solid var(--ligne);
    transform: translateY(-12px); opacity: 0; visibility: hidden; transition: opacity .25s ease, transform .25s ease, visibility .25s;
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
  }
  .nav-open .nav { opacity: 1; transform: none; visibility: visible; }
  .nav a:not(.btn) { padding: 16px 4px; border-bottom: 1px solid var(--ligne); font-size: 1.1rem; }
  .nav a:not(.btn)::after { display: none; }
  .nav .btn { margin-top: 18px; padding: 1.1em; }
  .site-header { background: rgba(255, 255, 255, .94); }
}

.site-footer { --texte: #ffffff; --texte-doux: #d7e4ef; --ligne: rgba(255,255,255,.2); --focus: #ffffff; background: var(--bleu-logo); color: var(--texte); font-family: var(--font-corps); }
.site-footer > .container { padding-top: clamp(36px, 5vw, 64px); }
.site-footer__grid { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(0,.85fr) minmax(0,1fr) minmax(0,1.3fr); gap: 32px; padding-bottom: 40px; }
.site-footer__grid > * { min-width: 0; }
.site-footer img { display: block; width: 190px; height: auto; max-width: 100%; margin-bottom: 18px; }
.site-footer h2 { font-family: var(--font-corps); font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #ffffff; margin-bottom: 18px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.site-footer a { color: var(--texte-doux); text-decoration: none; }
.site-footer a:hover { color: #ffffff; text-decoration: underline; text-underline-offset: 4px; }
.site-footer__nav a { display: inline-block; padding-block: 5px; font-size: .85rem; line-height: 1.5; }
.site-footer__devise { font-family: var(--font-titre); font-weight: 500; font-size: 1.05rem; color: #ffffff; max-width: 24ch; line-height: 1.35; margin-bottom: 10px; }
.site-footer__diocese { font-size: .72rem; color: var(--texte-doux); margin: 0; }
.site-footer__contact dl { margin: 0 0 16px; display: grid; gap: 14px; font-size: .82rem; line-height: 1.6; }
.site-footer__contact dl > div { display: grid; gap: 2px; }
.site-footer__contact dt { font-size: .68rem; color: #bed3e5; }
.site-footer__contact dd { margin: 0; color: #ffffff; overflow-wrap: anywhere; }
.site-footer__contact-link { display: inline-block; font-size: .8rem; padding-block: 6px; border-bottom: 1px solid rgba(255,255,255,.4); }
.site-footer__bottom { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 24px; border-top: 1px solid var(--ligne); padding: 20px 0 24px; font-size: .72rem; line-height: 1.6; color: var(--texte-doux); }
.site-footer__credit { font-size: .7rem; }
@media (max-width: 960px) {
  .site-footer__grid { grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 32px; }
}
@media (max-width: 560px) {
  .site-footer__grid { gap: 26px 22px; padding-bottom: 28px; }
  .site-footer__brand, .site-footer__contact { grid-column: 1 / -1; }
  .site-footer__brand { padding-bottom: 24px; border-bottom: 1px solid var(--ligne); }
  .site-footer img { width: 180px; margin-bottom: 14px; }
  .site-footer__devise { max-width: 28ch; margin-bottom: 8px; }
  .site-footer h2 { margin-bottom: 12px; font-size: .72rem; }
  .site-footer__nav a { font-size: .82rem; }
  .site-footer__contact { padding-top: 24px; border-top: 1px solid var(--ligne); }
  .site-footer__contact dl { gap: 10px; margin-bottom: 10px; }
  .site-footer__contact dl > div { grid-template-columns: 75px minmax(0,1fr); gap: 12px; align-items: baseline; }
  .site-footer__contact dt { font-size: .7rem; }
}

/* Bouton WhatsApp flottant */
.fab-whatsapp {
  position: fixed; right: 18px; bottom: 18px; z-index: 90; width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; color: #06361a; display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0,0,0,.25); transition: transform .2s ease;
}
.fab-whatsapp:hover { transform: scale(1.08); color: #06361a; }
.fab-whatsapp svg { width: 30px; height: 30px; fill: currentColor; }

/* Mention de démonstration : visible sur chaque page sans gêner la navigation. */
.demo-portrait { background: #edf3f8; display: grid; align-content: center; justify-items: center; padding: 32px; gap: 20px; }
.demo-portrait img { width: 140px; height: auto; }
.demo-portrait span { color: var(--bleu-logo); font-size: .8rem; text-align: center; }
.pr-membres__list strong, .pr-membres__list small { display: block; }
.demo-plan { width: 100%; padding: 36px 24px; background: #edf3f8; border: 1px solid var(--ligne); }
.demo-plan__route { margin: 24px 0; padding: 18px; background: white; border-block: 2px dashed #a0b5c8; color: var(--bleu-logo); }

/* Les en-têtes intérieurs restent neutres, sans vitrail doré en fond. */
.page-hero::before { display: none; }

/* Téléchargement accessible directement depuis chaque carte de programme. */
.messes__telecharger { display: grid; justify-items: start; gap: 10px; margin-top: 24px; padding-top: 20px; border-top: 1px solid rgba(241,239,205,.25); }
.messes__telecharger .btn { background: #ffffff; color: var(--bleu-logo); padding: .95em 1.15em; font-size: .9rem; max-width: 100%; }
.messes__telecharger .btn:hover { background: #dceaf5; color: var(--bleu-logo); }
.messes__telecharger small { color: var(--texte-doux); font: 400 .75rem/1.5 var(--font-corps); }

/* Affiche partagée : même aperçu, période et actions sur toutes les pages. */
.affiche-programme { margin: 0; width: 100%; min-width: 0; }
.affiche-programme__apercu { display: block; background: #08111b; }
.affiche-programme__apercu img { width: 100%; height: auto; display: block; }
.affiche-programme figcaption { display: grid; gap: 4px; margin-top: 16px; font-family: var(--font-corps); }
.affiche-programme figcaption strong { color: var(--bleu-logo); font-size: 1rem; }
.affiche-programme figcaption span { color: var(--texte-doux); font-size: .8rem; }
.affiche-programme__actions { display: grid; justify-items: start; gap: 12px; margin-top: 18px; }
.affiche-programme__actions .btn { max-width: 100%; font-size: .9rem; line-height: 1.3; }
.affiche-programme__partage { font: 500 .8rem/1.5 var(--font-corps); text-underline-offset: 4px; }

.site-footer .site-footer__social { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-top: 16px; border: 1px solid rgba(255,255,255,.35); border-radius: 2px; color: #ffffff; transition: background .2s, border-color .2s; }
.site-footer .site-footer__social:hover { background: rgba(255,255,255,.12); border-color: #ffffff; }

/* L’affiche publiée apparaît à la première ouverture de la session. */
body.programme-popup-open { overflow: hidden; }
.programme-popup { box-sizing: border-box; width: min(560px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); margin: auto; padding: 18px; border: 0; border-radius: 4px; background: #ffffff; color: var(--texte); box-shadow: 0 20px 80px rgba(0,0,0,.3); overflow-y: auto; }
.programme-popup::backdrop { background: rgba(2,18,32,.78); }
.programme-popup__heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.programme-popup__heading h2 { margin: 0; font-size: 1rem; text-transform: none; }
.programme-popup__close { flex: none; min-height: 40px; padding: 8px 12px; border: 1px solid var(--ligne); border-radius: 2px; background: #ffffff; color: var(--bleu-logo); font: 500 .8rem var(--font-corps); cursor: pointer; }
.programme-popup__image { display: block; width: 100%; height: auto; max-height: max(180px, calc(100dvh - 215px)); object-fit: contain; }
.programme-popup__period { margin: 12px 0; font-size: .75rem; color: var(--texte-doux); }
.programme-popup > .btn { width: 100%; font-size: .9rem; line-height: 1.3; }

/* Le menu inclut désormais la boutique. */
@media (min-width: 961px) and (max-width: 1180px) { .site-header__inner { gap: 16px; } .brand img { height: 38px; } .nav { gap: 14px; } .nav a:not(.btn) { font-size: .85rem; } .nav .btn { font-size: .8rem; padding: .9em 1em; } }

.programme-popup__texte { margin: 0 0 12px; font-size: .95rem; line-height: 1.55; }
.programme-popup__heading + .programme-popup__texte { margin-top: 4px; }

/* ---------- Bandeau de page avec photo en fond (dégradé bleu foncé, texte blanc) ---------- */
.page-hero--photo { background: var(--bleu-fonce, #052844); color: #fff; }
.page-hero--photo > .container { position: static; }
.page-hero--photo > .container > :not(.page-hero__photo) { position: relative; z-index: 2; }
.page-hero--photo .page-hero__photo { position: absolute; inset: 0; z-index: 0; margin: 0; }
.page-hero--photo .page-hero__photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.page-hero--photo .page-hero__photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(5, 40, 68, .97) 0%, rgba(5, 40, 68, .9) 34%, rgba(5, 40, 68, .55) 66%, rgba(5, 40, 68, .3) 100%);
}
.page-hero--photo .page-hero__photo--contain { background: #e3f1fb; }
.page-hero--photo .page-hero__photo--contain img { object-fit: contain; object-position: right center; }
.page-hero--photo h1 { color: #fff; }
.page-hero--photo .lead { color: rgba(255, 255, 255, .88); }
.page-hero--photo .breadcrumb, .page-hero--photo .breadcrumb a { color: rgba(255, 255, 255, .75); }
.page-hero--photo .eyebrow { color: #ff9a4d; }
.page-hero--photo .btn:not(.btn--ghost) { background: #fff; color: var(--bleu-logo); border-color: #fff; }
.page-hero--photo .btn:not(.btn--ghost):hover { background: var(--orange); border-color: var(--orange); color: #190d06; }
.page-hero--photo .btn--ghost { color: #fff; border-color: rgba(255, 255, 255, .7); background: transparent; }
.page-hero--photo .btn--ghost:hover { background: #fff; color: var(--bleu-logo); }
@media (max-width: 760px) {
  .page-hero--photo .page-hero__photo::after { background: rgba(5, 40, 68, .82); }
}

/* Barre d'accès rapide (téléphone) : Horaires · Itinéraire · WhatsApp ou Contact */
.barre-mobile { display: none; }
@media (max-width: 760px) {
  .barre-mobile { position: fixed; z-index: 45; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(3, 1fr); background: #fff; border-top: 1px solid var(--ligne); box-shadow: 0 -4px 18px rgba(0, 0, 0, .06); padding-bottom: env(safe-area-inset-bottom); }
  .barre-mobile a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 9px 4px 8px; font: 600 .72rem/1.1 var(--font-corps); color: var(--bleu-logo); text-decoration: none; }
  .barre-mobile svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  body.has-barre-mobile { padding-bottom: calc(58px + env(safe-area-inset-bottom)); }
  body.has-barre-mobile .fab-whatsapp { display: none; }
  body.shop-checkout-open .barre-mobile { display: none; }
}
