@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');
/* =========================================================================
   Ortodoxia pe înțelesul tuturor — feuille de style principale
   Conçue à la main : sobre, digne, lisible. Aucune dépendance obligatoire.
   (Tailwind est chargé en complément via CDN, mais le site reste entièrement
   stylé sans lui.)
   ========================================================================= */

/* ---- 1. Jetons de design (couleurs, typographies, mesures) ------------- */
:root {
  /* Palette « premium » — refonte (juin 2026) : albâtre + anthracite + or saturé.
     Minimal, intemporel ; cartes portées par l'ombre, navigation en verre,
     bascule clair/sombre fluide. Mode clair par défaut. */
  --paper:        #f6f5f2;   /* fond général — albâtre doux, presque neutre */
  --surface:      #ffffff;   /* cartes / surfaces surélevées */
  --band:         #efede8;   /* bandes de section alternées */
  --ink:          #1c1c1e;   /* texte principal — anthracite profond */
  --ink-soft:     #55534d;   /* texte secondaire */
  --muted:        #6f6c63;   /* mentions discrètes (AA sur --paper) */
  --line:         #e7e4dd;   /* filet hairline — usage rare (l'ombre prime) */
  --gold:         #946712;   /* accent principal — or riche et saturé (AA clair) */
  --gold-soft:    #c69a45;   /* or clair — survols, dégradés, filets d'accent */
  --burgundy:     #883535;   /* accent liturgique, parcimonieux */

  /* Surfaces volontairement sombres (renvoi prêtre, pied de page, bulle de
     verset…) : restent sombres dans les deux thèmes → fond stable. */
  --panel:        #1c1c1e;   /* bloc accent anthracite */
  --panel-ink:    #ece9e2;   /* texte clair sur ce fond */

  --font-display: "Cormorant Garamond", "Georgia", "Times New Roman", serif;
  --font-body:    "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-reading: "Spectral", "Georgia", "Times New Roman", serif;  /* dispo si besoin de serif long */

  --wrap:         72rem;
  --reading:      42rem;
  --radius:       14px;      /* cartes / encadrés */
  --radius-sm:    9px;       /* champs, puces, sélecteurs */

  /* Élévation : ombres douces et diffuses (esprit Stripe/Linear). En clair, les
     cartes flottent sur l'ombre (bordure transparente) ; en sombre, l'élévation
     passe par une surface plus claire + un filet discret (--card-border). */
  --card-border:  transparent;
  --shadow-sm:    0 1px 2px rgba(20, 18, 16, .04), 0 3px 10px -3px rgba(20, 18, 16, .06);
  --shadow:       0 2px 6px -1px rgba(20, 18, 16, .06), 0 14px 32px -10px rgba(20, 18, 16, .12);
  --shadow-lg:    0 10px 24px -8px rgba(20, 18, 16, .12), 0 28px 56px -16px rgba(20, 18, 16, .18);

  /* Anneau de focus (remplace les rgba(163,126,61,.15) codés en dur) */
  --ring:         rgba(148, 103, 18, 0.18);
}

/* ---- 2. Réinitialisation minimale (préflight Tailwind désactivé) -------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--ink);
  background-color: var(--paper);
  /* Refonte « Sérénité claire » : fond uni, beaucoup d'air (esprit galerie).
     Le motif de croix répété a été retiré — calme et espace priment. */
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
img, svg { display: block; max-width: 100%; }
/* Leaflet place ses tuiles en position absolue : leur imposer max-width:100% les
   rétrécit et laisse des traits/carrés blancs entre elles. On les exempte. */
.leaflet-container img { max-width: none !important; }
/* Sur écrans Windows à l'échelle (125 %/150 %), des traits blancs sous-pixels
   peuvent rester entre tuiles : on les chevauche de 0,5 px pour les masquer. */
.leaflet-container img.leaflet-tile { width: 256.5px !important; height: 256.5px !important; }
a { color: inherit; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
::selection { background: var(--gold-soft); color: #fff; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ---- 3. Typographie ----------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0;
  color: var(--ink);
}
h1 { font-size: 3.25rem; font-weight: 700; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.4rem; }
p  { max-width: 65ch; }

.eyebrow {
  font-family: var(--font-body);
  font-size: .82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--gold);
}

/* Lien de saut pour l'accessibilité clavier */
.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--ink); color: var(--paper);
  padding: .6rem 1rem; z-index: 100; border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }

/* ---- 4. Mise en page ---------------------------------------------------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 1.4rem; }
.wrap--reading { max-width: var(--reading); }
main { flex: 1 0 auto; }

/* Ornement de séparation (filet + losange central) */
.ornament {
  display: flex; align-items: center; gap: 1rem;
  color: var(--gold); margin: 0 auto;
}
.ornament::before, .ornament::after {
  content: ""; height: 1px; flex: 1; background: var(--line);
}
.ornament span { font-size: .8rem; transform: rotate(45deg); }

/* ---- 5. En-tête + navigation ------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  /* Verre dépoli : fond translucide + flou ; repli opaque si non supporté */
  background: var(--paper);
  background: color-mix(in srgb, var(--paper) 72%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 8%, transparent);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: .35rem 1.2rem; min-height: 4.4rem; max-width: 84rem;
  /* Filet de sécurité (audit A1) : si l'en-tête dépasse un jour (langue plus
     longue, future rubrique), on coupe plutôt que de laisser un menu
     déborder hors champ sans scrollbar visible. */
  overflow-x: hidden;
}
.brand {
  display: inline-flex; align-items: center; gap: .6rem;
  text-decoration: none; color: var(--ink);
}
.brand__mark { width: 1.5rem; height: 2rem; color: var(--gold); flex: none; }
.brand__text { font-family: var(--font-display); font-size: 1.45rem; font-weight: 700; line-height: 1.1; }
.brand__text em { font-style: italic; color: var(--ink-soft); font-weight: 600; }

.mainnav { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; }
.mainnav__list { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem; }
.mainnav__list a {
  position: relative; text-decoration: none; color: var(--ink-soft);
  font-family: var(--font-body); font-size: .92rem; font-weight: 600; letter-spacing: .005em;
  padding: .4rem .62rem; border-radius: 999px;
  transition: color .18s ease, background-color .18s ease;
}
/* fin trait doré qui se déploie sous le lien */
.mainnav__list a::after {
  content: ""; position: absolute; left: 50%; bottom: .2rem;
  width: 0; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-soft));
  transform: translateX(-50%); transition: width .22s ease;
}
.mainnav__list a:hover,
.mainnav__list a:focus-visible {
  color: var(--ink);
  background-color: color-mix(in srgb, var(--gold) 13%, transparent);
}
.mainnav__list a:hover::after,
.mainnav__list a:focus-visible::after { width: 1.1rem; }

/* Sélecteur de langue */
.lang-switch {
  display: inline-flex; align-items: center;
  border: 1px solid var(--line); border-radius: 999px; overflow: hidden;
  background: var(--surface);
}
.lang-switch a {
  text-decoration: none; color: var(--muted);
  font-size: .8rem; font-weight: 600; letter-spacing: .06em;
  padding: .35rem .7rem; transition: background .15s, color .15s;
}
.lang-switch a + a { border-left: 1px solid var(--line); }
.lang-switch a:hover { color: var(--ink); }
.lang-switch a.is-active { background: var(--ink); color: var(--paper); }

/* Bouton menu (mobile) */
.nav-toggle { display: none; width: 2.6rem; height: 2.6rem; flex-direction: column; justify-content: center; gap: 5px; padding: .55rem; }
.nav-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s; }

/* ---- 6. Boutons --------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  text-decoration: none; font-family: var(--font-body); font-weight: 600;
  font-size: 1rem; padding: .72rem 1.4rem; border-radius: var(--radius-sm);
  transition: transform .12s, background .15s, color .15s, border-color .15s, box-shadow .2s;
}
.btn--primary { background: var(--ink); color: var(--paper); box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: color-mix(in srgb, var(--ink) 86%, var(--paper)); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn--ghost { border: 1px solid var(--line); color: var(--ink); background: var(--surface); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-1px); box-shadow: var(--shadow-sm); }

/* ---- 7. Hero — clair, éditorial, beaucoup d'air ------------------------- */
.hero {
  position: relative; overflow: hidden;
  color: var(--ink);
  background-color: var(--paper);
  /* Grande croix orthodoxe gravée en filigrane à droite (or très discret) +
     dégradé doux : lumière qui descend, esprit serein. Tout est piloté par les
     jetons → en thème sombre, le hero devient naturellement un bloc sombre. */
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='340' viewBox='0 0 24 32' fill='none' stroke='%23946712' stroke-opacity='0.09' stroke-width='1' stroke-linecap='round'%3E%3Cline x1='12' y1='3' x2='12' y2='29'/%3E%3Cline x1='8.5' y1='7.5' x2='15.5' y2='7.5'/%3E%3Cline x1='5' y1='12.5' x2='19' y2='12.5'/%3E%3Cline x1='8' y1='24' x2='16' y2='19.5'/%3E%3C/svg%3E"),
    linear-gradient(180deg, color-mix(in srgb, var(--gold) 7%, var(--paper)) 0%, var(--paper) 62%);
  background-repeat: no-repeat, no-repeat;
  background-position: right clamp(-60px, -2vw, -20px) center, center;
  padding: clamp(4rem, 10vw, 8rem) 0 clamp(3.5rem, 8vw, 6rem);
  border-bottom: 1px solid var(--line);
}
.hero .eyebrow { display: inline-flex; align-items: center; gap: .9rem; margin-bottom: 1.3rem; color: var(--gold); }
.hero .eyebrow::after { content: ""; width: 4rem; height: 1px; background: linear-gradient(90deg, var(--gold-soft), transparent); }
.hero h1 { max-width: 16ch; color: var(--ink); font-size: 4.6rem; }
.hero__lead {
  font-family: var(--font-display); font-style: italic; font-weight: 500;
  font-size: 1.35rem; color: var(--ink-soft); margin-top: 1.5rem; max-width: 44ch;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.6rem; }

/* ---- 8. Encadré « panneau indicateur » --------------------------------- */
.signpost {
  position: relative; background: var(--surface);
  border: 1px solid var(--card-border); border-left: 4px solid var(--gold);
  border-radius: var(--radius); padding: 1.6rem 1.7rem;
  display: flex; gap: 1.1rem; align-items: flex-start;
  box-shadow: var(--shadow-sm);
}
.signpost__icon { color: var(--gold); width: 1.6rem; height: 2.1rem; flex: none; margin-top: .15rem; }
.signpost__label { font-size: .75rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.signpost p { margin-top: .35rem; color: var(--ink-soft); }

/* ---- 9. Sections + cartes de catégorie --------------------------------- */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section--band { background: var(--band); border-block: 1px solid color-mix(in srgb, var(--ink) 6%, transparent); }
.section__head { max-width: 42rem; margin: 0 auto 2.6rem; text-align: center; }
.section__head h2 { margin-top: .5rem; }
.section__head .eyebrow { display: inline-block; }
/* ornement : petite croix dorée au-dessus du titre de section */
.section__head::before {
  content: ""; display: block; width: 24px; height: 30px; margin: 0 auto 1rem;
  background: center/contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='32' fill='none' stroke='%23946712' stroke-width='1.5' stroke-linecap='round'%3E%3Cline x1='12' y1='3' x2='12' y2='29'/%3E%3Cline x1='8.5' y1='7.5' x2='15.5' y2='7.5'/%3E%3Cline x1='5.5' y1='12.5' x2='18.5' y2='12.5'/%3E%3Cline x1='8' y1='24' x2='16' y2='19.5'/%3E%3C/svg%3E");
}

.cards { display: grid; gap: 1.4rem; grid-template-columns: 1fr; }
@media (min-width: 760px) { .cards { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--surface); border: 1px solid var(--card-border);
  border-radius: var(--radius); padding: 2.1rem 1.8rem;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm);
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.card__num { font-family: var(--font-display); font-size: 2.1rem; line-height: 1; color: var(--gold); letter-spacing: .04em; }
.card h3 { margin: .55rem 0 .6rem; font-size: 1.6rem; }
.card__desc { color: var(--ink-soft); font-size: 1.02rem; }

.q-list { margin-top: 1.2rem; border-top: 1px solid var(--line); }
.q-item { border-bottom: 1px solid var(--line); }
.q-link, .q-soon {
  display: flex; align-items: baseline; justify-content: space-between; gap: .8rem;
  padding: .8rem 0; text-decoration: none; color: var(--ink); font-size: 1.02rem;
}
.q-link { transition: color .15s; }
.q-link:hover { color: var(--burgundy); }
.q-link::after { content: "→"; color: var(--gold); transition: transform .15s; }
.q-link:hover::after { transform: translateX(3px); }
.q-soon { color: var(--muted); }
.badge-soon {
  font-family: var(--font-body); font-size: .68rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
  border: 1px solid var(--line); border-radius: 999px; padding: .12rem .55rem; white-space: nowrap;
}

/* ---- 10. Bloc d'appel final (accueil) ---------------------------------- */
.closing { text-align: center; padding: clamp(3rem, 7vw, 5rem) 0; }
.closing h2 { max-width: 22ch; margin: 1rem auto 0; }
.closing p { color: var(--ink-soft); font-size: 1.2rem; max-width: 50ch; margin: 1rem auto 0; }

/* ---- 11. Article (page question / réponse) ----------------------------- */
.breadcrumb { font-size: .9rem; color: var(--muted); padding-top: 1.6rem; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--gold); }
.breadcrumb span[aria-current] { color: var(--ink-soft); }

.article { padding: 1.5rem 0 3rem; }
.article .eyebrow { display: block; margin-bottom: .8rem; }
.article h1 { max-width: 24ch; }

.answer-lead {
  font-size: 1.3rem; line-height: 1.6; color: var(--ink);
  border-left: 3px solid var(--gold); padding: .2rem 0 .2rem 1.3rem;
  margin: 1.8rem 0 2.4rem; max-width: 60ch;
}
.answer-lead strong { font-weight: 600; }

.prose h2 { margin: 2.6rem 0 1rem; }
.prose p { margin-bottom: 1.2rem; color: var(--ink-soft); line-height: 1.78; }
.prose p strong { color: var(--ink); font-weight: 600; }

/* Sources */
.sources { margin: 2.6rem 0; padding: 1.6rem 1.7rem; background: var(--band); border-radius: var(--radius); border: 1px solid var(--card-border); }
.sources h2 { font-size: 1.2rem; margin-bottom: .9rem; }
.sources li { padding: .55rem 0; border-bottom: 1px dotted var(--line); color: var(--ink-soft); font-size: 1rem; }
.sources li:last-child { border-bottom: none; }
.sources cite { font-style: italic; color: var(--ink); }

/* « prêtre / paroisse » cliquables vers la carte (lien discret) */
.map-ref {
  color: inherit; text-decoration: none; cursor: pointer;
  border-bottom: 1px dotted var(--burgundy);
}
.map-ref:hover, .map-ref:focus-visible { color: var(--burgundy); outline: none; }

/* Renvoi vers le réel */
.pointer {
  margin: 2.6rem 0 1rem; background: var(--panel); color: var(--panel-ink);
  border-radius: var(--radius); padding: 1.7rem 1.8rem;
}
.pointer__label { font-size: .75rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-soft); }
.pointer p { margin-top: .5rem; font-size: 1.2rem; line-height: 1.55; color: var(--panel-ink); max-width: 56ch; }

.back-link { display: inline-flex; align-items: center; gap: .4rem; margin-top: 1.4rem; text-decoration: none; color: var(--ink-soft); }
.back-link:hover { color: var(--burgundy); }

/* ---- 12. Pied de page --------------------------------------------------- */
.site-footer { margin-top: 3rem; background: var(--panel); color: #cabfa8; }
.site-footer__inner { display: grid; gap: 1.6rem; padding-block: 2.6rem; }
@media (min-width: 760px) { .site-footer__inner { grid-template-columns: 1.4fr 1fr; align-items: start; } }
.site-footer__brand { display: flex; align-items: center; gap: .7rem; color: var(--panel-ink); }
.site-footer__brand .brand__mark { color: var(--gold-soft); }
.site-footer__brand b { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; }
.site-footer__tag { color: #9a8e75; font-size: .95rem; margin-top: .2rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.site-footer nav a { color: #cabfa8; text-decoration: none; }
.site-footer nav a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--gold-soft); }
.site-footer nav .soon { color: #897d65; cursor: default; }
.site-footer__note { grid-column: 1 / -1; border-top: 1px solid #3a3126; padding-top: 1.3rem; color: #897d65; font-size: .85rem; }

/* ---- 13. Navigation responsive ----------------------------------------- */
/* Nav « épurée » : libellés courts + liens compacts (sans-serif) → le menu tient
   en ligne dès ~1180px. En dessous (tablette / mobile), tiroir hamburger soigné. */
@media (max-width: 1180px) {
  .nav-toggle { display: flex; }
  .mainnav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--surface); border-bottom: 1px solid var(--line);
    padding: .5rem 1.4rem 1.4rem; box-shadow: var(--shadow);
    display: none;
  }
  .mainnav.is-open {
    display: flex;
    /* Le menu peut être plus haut que l'écran (9 rubriques + langues + thème) :
       il défile sur lui-même, et `overscroll-behavior: contain` empêche le
       défilement de « passer » à la page derrière une fois en haut/en bas. */
    max-height: calc(100vh - 100%);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
  .mainnav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .mainnav__list li { border-bottom: 1px solid var(--line); }
  .mainnav__list a { display: block; padding: .9rem 0; }
  .lang-switch { align-self: flex-start; margin-top: 1rem; }
}

/* Décalage de défilement pour les ancres (compense l'en-tête collant) */
section[id], article[id] { scroll-margin-top: 5.5rem; }

/* ---- 14. Carte (paroisses & monastères) ------------------------------- */
.map {
  width: 100%; height: 520px;
  border: 1px solid var(--card-border); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); z-index: 0;
}
.search-field {
  width: 100%; max-width: 30rem;
  font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 999px; padding: .7rem 1.1rem;
}
.search-field::placeholder { color: var(--muted); }
.map-toolbar { margin-bottom: 1rem; }

/* Pastilles des marqueurs */
.map-pin { display: block; width: 16px; height: 16px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 4px rgba(0,0,0,.5); }
.map-pin--you { width: 18px; height: 18px; background: var(--gold); box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold) 28%, transparent), 0 0 4px rgba(0,0,0,.5); }

/* Bouton « Me localiser » (contrôle Leaflet) */
.map-locate-btn {
  display: inline-flex; align-items: center; gap: .4rem;
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: .45rem .7rem; font-family: var(--font-body); font-size: .85rem; font-weight: 600;
  box-shadow: 0 1px 5px rgba(0,0,0,.15); cursor: pointer;
}
.map-locate-btn:hover { border-color: var(--gold); color: var(--burgundy); }
.map-locate-btn.is-busy { opacity: .55; pointer-events: none; }

/* ---- Gesture overlay (mobile 1 doigt → message 2 doigts) ---- */
.map-gesture-overlay {
  position: absolute;
  inset: 0;
  z-index: 1000;
  background: rgba(34, 28, 20, .55);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  pointer-events: none;
  opacity: 0;
  transition: opacity .2s ease;
}
.map-gesture-overlay.is-visible { opacity: 1; }
.map-gesture-overlay__text {
  color: #fff;
  font-size: 1.05rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.5;
  padding: 0 1.5rem;
  font-family: var(--font-body);
  white-space: pre-line;
}

/* Légende rouge/bleu sous la carte */
.map-legend { display: flex; flex-wrap: wrap; gap: 1.4rem; margin-top: 1rem; font-size: .95rem; color: var(--ink-soft); }
.map-legend__item { display: inline-flex; align-items: center; gap: .5rem; }
.map-legend__dot { width: 14px; height: 14px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 3px rgba(0,0,0,.4); }
.map-legend__pin { display: inline-flex; }
.map-legend__pin svg { width: 15px; height: auto; display: block; filter: drop-shadow(0 1px 1px rgba(34,28,20,.3)); }

/* Liste consultable sous la carte */
.map-list { margin-top: 1.2rem; background: var(--surface); border: 1px solid var(--card-border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.map-list > summary { padding: .85rem 1.2rem; cursor: pointer; list-style: none; font-family: var(--font-display); font-weight: 600; color: var(--burgundy); }
.map-list > summary::-webkit-details-marker { display: none; }
.map-list__body { padding: .4rem 1.2rem 1.2rem; border-top: 1px solid var(--line); max-height: 460px; overflow-y: auto; }
/* Barre recherche + filtres de catégorie, collante en haut de la liste */
.map-list__toolbar { position: sticky; top: 0; z-index: 1; background: var(--surface); padding: .8rem 0 .6rem; }
.map-list__search { width: 100%; padding: .55rem .8rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); color: var(--ink); font-family: var(--font-body); font-size: .95rem; }
.map-list__search::placeholder { color: var(--muted); }
.map-list__chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .6rem; }
.map-list__chip { display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .75rem; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--ink-soft); cursor: pointer; font-family: var(--font-body); font-size: .85rem; transition: border-color .15s, background-color .15s, color .15s; }
.map-list__chip:hover { border-color: var(--gold-soft); }
.map-list__chip.is-active { background: var(--burgundy); color: #fff; border-color: var(--burgundy); }
.map-list__chip em { font-style: normal; opacity: .75; font-size: .8rem; }
.map-list__cat { display: flex; align-items: center; gap: .5rem; font-family: var(--font-display); font-size: 1.05rem; color: var(--ink); margin: 1.1rem 0 .5rem; }
.map-list__cat em { color: var(--muted); font-style: normal; font-size: .85rem; }
.map-list__dot { width: 11px; height: 11px; border-radius: 50%; flex: none; }
.map-list__ul { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 1.6rem; }
@media (max-width: 640px) { .map-list__ul { columns: 1; } }
.map-list__item { display: block; width: 100%; text-align: left; background: none; border: none; border-bottom: 1px solid var(--line); cursor: pointer; padding: .4rem 0; font-family: var(--font-body); break-inside: avoid; }
.map-list__item strong { color: var(--burgundy); font-weight: 500; font-size: .96rem; }
.map-list__item span { display: block; color: var(--muted); font-size: .82rem; }
.map-list__item:hover strong { text-decoration: underline; text-decoration-color: var(--gold); }

/* Bulles d'info — Réalignées et harmonisées */
.map-popup { font-family: var(--font-body); padding: 0.2rem; }
.map-popup h4 { 
  font-family: var(--font-display); 
  font-size: 1.2rem; 
  margin: 0 0 0.5rem 0; 
  line-height: 1.2;
  color: var(--ink);
}
.map-popup p { 
  margin: 0 0 0.4rem 0; 
  font-size: 0.95rem; 
  color: var(--ink-soft); 
  max-width: none; 
}
.map-popup__type { 
  display: block;
  font-weight: 700 !important; 
  text-transform: uppercase; 
  letter-spacing: 0.1em; 
  font-size: 0.65rem !important; 
  margin-bottom: 0.6rem !important;
  color: var(--gold) !important;
}
.map-popup__contact { color: var(--burgundy); font-size: 0.85rem; }
/* ---- 15. Ressources ---------------------------------------------------- */
.tools-bar { margin: 0 0 2.2rem; }
.resource-grid { display: grid; gap: 1.4rem; grid-template-columns: 1fr; }
@media (min-width: 760px) { .resource-grid { grid-template-columns: repeat(2, 1fr); } }
.resource-card {
  background: var(--surface); border: 1px solid var(--card-border);
  border-radius: var(--radius); padding: 1.6rem;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm);
}
.resource-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.resource-card__cat { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.resource-card h3 { margin: .4rem 0 .1rem; font-size: 1.3rem; }
.resource-card__author { color: var(--ink-soft); font-style: italic; margin-bottom: .7rem; }
.resource-card__desc { color: var(--ink-soft); font-size: 1rem; flex: 1; }
.resource-card__tags { display: flex; flex-wrap: wrap; gap: .4rem; margin: 1rem 0; }
.resource-tag { font-size: .72rem; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: .1rem .55rem; }
.resource-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .4rem; }
.btn--sm { padding: .5rem .9rem; font-size: .9rem; }
.btn.is-disabled { opacity: .5; pointer-events: none; cursor: default; }
.no-results { color: var(--muted); padding: 2rem 0; }

/* ---- 16. Viețile Sfinților --------------------------------------------- */
/* Fiches (page liste) — alignées sur la palette et les jetons du site */
.saint-card {
  display: flex; flex-direction: column;
  padding: 1.6rem;
  background: var(--surface);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.saint-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }

/* Vignette en haut de fiche (pleine largeur : déborde le padding de la carte) */
.saint-card--has-img { padding-top: 0; overflow: hidden; }
.saint-card__imglink { display: block; margin: 0 -1.6rem 1.1rem; }
.saint-card__img {
  display: block; width: 100%; height: 190px; object-fit: cover;
  border-bottom: 2px solid var(--gold-soft); background: var(--band);
}
/* Image sur la page d'un saint (icône/photo, sans recadrage agressif) */
.saint-figure { margin: .4rem auto 2rem; max-width: 340px; }
.saint-figure img {
  display: block; width: 100%; height: auto;
  border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow);
}
/* Image en tête d'une recette */
.recipe-figure { margin: 0 0 1.6rem; }
.recipe-figure img {
  display: block; width: 100%; max-height: 380px; object-fit: cover;
  border-radius: var(--radius); border: 1px solid var(--line);
}

/* Radio de prières (radio.js) */
.radio-grid { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.radio-card { background: var(--surface); border: 1px solid var(--card-border); border-left: 4px solid var(--gold); border-radius: var(--radius); padding: 1.3rem 1.4rem; box-shadow: var(--shadow-sm); }
.radio-card__head { display: flex; align-items: baseline; justify-content: space-between; gap: .6rem; }
.radio-card__name { font-size: 1.2rem; margin: 0; }
.radio-card__lang { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); flex: none; }
.radio-card__desc { color: var(--ink-soft); font-size: .98rem; margin: .5rem 0 .9rem; }
.radio-card__player { width: 100%; }
.radio-soon { color: var(--muted); font-style: italic; }

.saint-card__meta {
  font-size: .82rem; letter-spacing: .04em;
  color: var(--muted); margin-bottom: .55rem;
}
.saint-card h3 { margin: 0 0 .55rem; font-size: 1.35rem; }
.saint-card__title-link { text-decoration: none; color: var(--ink); transition: color .15s; }
.saint-card__title-link:hover { color: var(--burgundy); }
.saint-card__lead { margin: 0 0 1.3rem; color: var(--ink-soft); font-size: 1rem; flex: 1; }
.saint-card__more {
  text-decoration: none; font-weight: 600; color: var(--burgundy);
  display: inline-flex; align-items: baseline; gap: .35rem; align-self: flex-start;
  transition: color .15s;
}
.saint-card__more .arrow { color: var(--gold); transition: transform .15s; }
.saint-card__more:hover { color: var(--gold); }
.saint-card__more:hover .arrow { transform: translateX(4px); }

/* Page d'un saint — bandeau de méta (fête, décès, canonisation) */
.saint-meta {
  display: flex; flex-wrap: wrap; gap: .5rem .9rem;
  margin: 1.4rem 0 0; padding: 0; max-width: none;
  font-size: .95rem; color: var(--ink-soft);
}
.saint-meta__item { display: inline-flex; align-items: baseline; gap: .3rem; }
.saint-meta__item + .saint-meta__item { padding-left: .9rem; border-left: 1px solid var(--line); }
.saint-meta__item b { font-weight: 600; color: var(--ink); }
.saint-meta__canon {
  font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold); border: 1px solid var(--line); border-radius: 999px; padding: .12rem .6rem;
}

/* Résumé (chapeau) — même esprit que .answer-lead des articles */
.saint-resume {
  font-size: 1.25rem; line-height: 1.6; color: var(--ink);
  border-left: 3px solid var(--gold); padding: .2rem 0 .2rem 1.3rem;
  margin: 1.8rem 0 2.2rem; max-width: 60ch; font-style: italic;
}

/* Blocs (la vie, prières, acathiste) */
.saint-block { margin: 2.4rem 0; }
.saint-block__title {
  font-size: 1.35rem; margin-bottom: 1rem;
  padding-bottom: .4rem; border-bottom: 1px solid var(--line);
}
.saint-block--life p { margin-bottom: 1.1rem; color: var(--ink-soft); }
.saint-ro-note {
  font-size: .85rem; font-style: italic; color: var(--muted);
  margin-bottom: 1rem; padding: .4rem .8rem; background: var(--band);
  border-radius: var(--radius); display: inline-block;
}

/* Liens croisés entre saints, dans le corps d'une vie */
.saint-link {
  color: var(--burgundy); text-decoration: none;
  border-bottom: 1px solid var(--gold-soft); transition: color .15s, border-color .15s;
}
.saint-link:hover { color: var(--gold); border-color: var(--gold); }
.saint-link--extern::after { content: " ↗"; font-size: .8em; color: var(--gold); }

/* Prières */
.prayer {
  font-style: italic; font-size: 1.15rem; line-height: 1.65; color: var(--ink);
  background: var(--band); border: 1px solid var(--line); border-left: 4px solid var(--gold);
  border-radius: var(--radius); padding: 1.3rem 1.5rem; max-width: 60ch;
}
.prayer--short { color: var(--ink-soft); }

/* Film à voir */
.saint-film {
  display: flex; flex-direction: column; gap: .4rem;
  background: var(--surface); border: 1px solid var(--card-border); border-left: 4px solid var(--burgundy);
  border-radius: var(--radius); padding: 1.3rem 1.5rem; margin: 2.4rem 0;
  box-shadow: var(--shadow-sm);
}
.saint-film__label {
  font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--burgundy);
}
.saint-film p { margin: 0; color: var(--ink-soft); font-size: 1rem; }

/* Emplacement vide (acathiste pas encore disponible) */
.saint-block--empty .saint-empty {
  color: var(--muted); font-style: italic;
  border: 1px dashed var(--line); border-radius: var(--radius);
  padding: 1.2rem 1.4rem; background: color-mix(in srgb, var(--band) 50%, transparent);
}

/* ---- 17. Drapeaux du sélecteur de langue (SVG, injectés par i18n.js) ---- */
.lang-switch a { display: inline-flex; align-items: center; gap: .42rem; }
.lang-switch .flag {
  width: 1.15rem; height: .82rem; border-radius: 2px; flex: none;
  box-shadow: 0 0 0 1px rgba(34, 28, 20, .12);
}
.lang-switch .lang-code { font-size: .8rem; font-weight: 600; letter-spacing: .04em; }

/* ---- 18. En-tête (Adaptation pour 9 rubriques sur desktop) --------- */
@media (min-width: 1181px) {
  .site-header__inner { flex-wrap: wrap; max-width: 100rem; gap: 1rem; }
  .brand__text { white-space: nowrap; }

  /* flex-wrap reste "wrap" (et non "nowrap") : si jamais le contenu est encore
     trop large (langue plus longue, fenêtre redimensionnée), le menu repasse
     proprement à la ligne au lieu de déborder hors champ sans prévenir. */
  .mainnav { flex-wrap: wrap; flex: 1 1 auto; justify-content: flex-end; gap: 1rem; }
  .mainnav__list { flex-wrap: wrap; justify-content: flex-end; gap: 0; }
  
  /* Correction : on supprime la taille forcée, on ne garde que l'espacement réduit */
  .mainnav__list a { 
    white-space: nowrap; 
    padding: 0.35rem 0.5rem; 
  }
  
  .lang-switch { flex-shrink: 0; white-space: nowrap; }
}

/* ---- 19. Chaînes YouTube ----------------------------------------------- */
/* Filtres par langue (puces) */
.lang-filter { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.8rem; }
.lang-filter__btn {
  display: inline-flex; align-items: center; gap: .4rem;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
  color: var(--ink-soft); font-family: var(--font-body); font-size: .9rem; font-weight: 600;
  padding: .4rem .9rem; transition: border-color .15s, color .15s, background .15s;
}
.lang-filter__btn:hover { border-color: var(--gold); color: var(--ink); }
.lang-filter__btn.is-active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.lang-filter__btn .flag { width: 1.1rem; height: .78rem; border-radius: 2px; box-shadow: 0 0 0 1px rgba(34,28,20,.12); }

/* Fiches de chaîne */
.channel-card {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--card-border);
  border-radius: var(--radius); padding: 1.6rem;
  box-shadow: var(--shadow-sm);
}
.channel-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.channel-card__top { display: flex; align-items: center; gap: .6rem; margin-bottom: .5rem; }
.channel-card__lang {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}
.channel-card__lang .flag { width: 1rem; height: .72rem; border-radius: 2px; box-shadow: 0 0 0 1px rgba(34,28,20,.12); }
.channel-card h3 { margin: 0; font-size: 1.3rem; }
.channel-card__handle { color: var(--muted); font-size: .9rem; margin: 0 0 .6rem; }
.channel-card__desc { color: var(--ink-soft); font-size: 1rem; flex: 1; margin: 0 0 1.2rem; }
.channel-card__actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.channel-ro-note { font-size: .85rem; font-style: italic; color: var(--muted); margin: .2rem 0 1rem; }

/* Note « disponible dans une autre langue » sur la page Ressources */
.resource-otherlang {
  display: inline-block;
  font-size: .82rem; font-style: italic; color: var(--muted); padding: .5rem 0;
}
.resource-otherlang a { color: var(--burgundy); text-decoration: underline; text-decoration-color: var(--gold-soft); text-transform: capitalize; }
.resource-otherlang a:hover { color: var(--ink); }

/* ---- 21. Versets bibliques : info-bulle au survol ---------------------- */
.vers {
  cursor: help; white-space: nowrap; color: inherit;
  border-bottom: 1px dotted var(--gold);
}
.vers:hover, .vers:focus-visible { color: var(--burgundy); outline: none; }
.vers-pop {
  position: absolute; z-index: 1000; max-width: min(92vw, 30rem);
  background: var(--panel); color: var(--panel-ink);
  border: 1px solid var(--gold-soft); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: .85rem 1.05rem;
  font-family: var(--font-body); font-size: .98rem; line-height: 1.5;
}
.vers-pop[hidden] { display: none; }
.vers-pop__ref {
  display: block; font-family: var(--font-display); color: var(--gold-soft);
  font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: .35rem;
}
.vers-pop__text { display: block; color: #f3ecdd; font-style: italic; }
.vers-pop__nota {
  display: block; margin-top: .55rem; padding-top: .55rem;
  border-top: 1px solid #3a3126; color: #cabfa8; font-size: .9rem;
}

/* ---- Termes du lexique orthodoxe ---------------------------------------- */
abbr.ortho-term {
  position: relative; /* ancre le ::after de la bulle */
  text-decoration: underline dotted var(--gold-soft);
  text-underline-offset: 3px;
  cursor: help;
  color: inherit;
}

/* Bulle riche sur hover/focus (desktop) */
abbr.ortho-term[title]:hover::after,
abbr.ortho-term[title]:focus-visible::after {
  content: attr(title);
  position: absolute;
  z-index: 200;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--paper);
  font-size: .82rem;
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.5;
  padding: .55rem .85rem;
  border-radius: 6px;
  width: max-content;
  max-width: min(340px, 90vw);
  white-space: normal;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0,0,0,.25);
  pointer-events: none;
}

abbr.ortho-term[title]:hover::before,
abbr.ortho-term[title]:focus-visible::before {
  content: '';
  position: absolute;
  bottom: calc(100% + 2px);
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--ink);
  pointer-events: none;
  z-index: 201;
}

/* ---- 22. Lien « carte » dans le renvoi (pointer) ----------------------- */
.pointer__map {
  display: inline-flex; align-items: center; gap: .35rem; margin-top: 1.1rem;
  color: var(--gold-soft); text-decoration: none; font-weight: 600;
  border-bottom: 1px solid transparent; transition: border-color .15s;
}
.pointer__map:hover { border-color: var(--gold-soft); }

/* ---- 23. Mise en valeur de l'ancre ciblée (clic dans le menu) ---------- */
@keyframes anchor-flash {
  0%   { box-shadow: 0 0 0 0 transparent; }
  12%  { box-shadow: 0 0 0 4px var(--gold); }
  100% { box-shadow: 0 0 0 0 transparent; }
}
.anchor-flash { animation: anchor-flash 1.7s ease-out; border-radius: var(--radius); }
@media (prefers-reduced-motion: reduce) { .anchor-flash { animation: none; } }

/* ---- 20. Encadré (popup) de la carte — accordé au parchemin ------------- */
.leaflet-popup-content-wrapper {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 6px 24px rgba(34, 28, 20, .18);
}
.leaflet-popup-tip { background: var(--surface); border: 1px solid var(--line); box-shadow: none; }
.leaflet-popup-content { margin: .95rem 1.1rem; font-family: var(--font-body); line-height: 1.5; }
.leaflet-popup-content p { margin: 0; max-width: none; }
.leaflet-container a.leaflet-popup-close-button { color: var(--muted); padding: .35rem .45rem 0 0; }
.leaflet-container a.leaflet-popup-close-button:hover { color: var(--burgundy); }

.map-popup h4 {
  font-family: var(--font-display); font-size: 1.2rem; font-weight: 600;
  margin: 0 0 .25rem; color: var(--ink); line-height: 1.15;
}
.map-popup__type {
  font-weight: 700 !important; text-transform: uppercase; letter-spacing: .09em;
  font-size: .68rem !important; margin: 0 0 .45rem !important;
}
.map-popup p { font-size: .9rem; color: var(--ink-soft); }

/* Repère en goutte : ombre douce */
/* Supprime l'encadré blanc/bordure que Leaflet met par défaut derrière les
   marqueurs personnalisés (.leaflet-div-icon) — c'était les « traits blancs ». */
.map-pin-wrap, .leaflet-div-icon.map-pin-wrap { background: transparent; border: 0; }
.map-pin-wrap svg { display: block; filter: drop-shadow(0 2px 3px rgba(34, 28, 20, .35)); }

/* Lignes d'info (adresse, prêtre) avec petite icône dorée */
.map-popup__row { display: flex; align-items: flex-start; gap: .5rem; margin: .4rem 0 0 !important; font-size: .9rem; color: var(--ink-soft); }
.map-popup__row svg { flex: none; margin-top: .15rem; color: var(--gold); }
.map-popup__row span { max-width: 17rem; }

/* Boutons d'action (pilules) */
.map-popup__actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.map-btn {
  display: inline-flex; align-items: center; gap: .4rem;
  font-family: var(--font-body); font-size: .85rem; font-weight: 600;
  text-decoration: none; padding: .45rem .85rem; border-radius: 999px;
  border: 1px solid var(--line); color: var(--ink); background: var(--surface);
  transition: border-color .15s, background .15s, color .15s;
}
.map-btn svg { flex: none; }
.map-btn:hover { border-color: var(--gold); color: var(--burgundy); }
.map-btn--primary { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.map-btn--primary:hover { background: #2c2c2e; color: var(--paper); }

/* Liens discrets (copier l'adresse, Métropole) */
.map-popup__links {
  display: flex; flex-wrap: wrap; align-items: center; gap: .3rem 1.1rem;
  margin-top: .8rem; padding-top: .65rem; border-top: 1px solid var(--line);
}
.map-link {
  display: inline-flex; align-items: center; gap: .35rem;
  background: none; border: none; padding: 0; cursor: pointer;
  font-family: var(--font-body); font-size: .8rem; color: var(--muted); text-decoration: none;
}
.map-link svg { flex: none; }
.map-link:hover { color: var(--burgundy); }

/* ---- 21. Acatist / canon (texte liturgique) ---------------------------- */
.ak-prose .ak-title {
  font-family: var(--font-display); color: var(--gold);
  font-size: 1.2rem; font-weight: 600; letter-spacing: .01em;
  margin: 1.9rem 0 .55rem;
}
.ak-prose .ak-note { color: var(--muted); font-style: italic; font-size: .92rem; margin: .8rem 0; }
.ak-prose > p { margin-bottom: 1rem; color: var(--ink-soft); }
.ak-refrains {
  list-style: none; margin: .35rem 0 1.2rem; padding-left: 1.1rem;
  border-left: 2px solid var(--gold-soft);
}
.ak-refrains li { color: var(--ink-soft); font-style: italic; padding: .14rem 0; }
.ak-refrains li:last-child { font-style: normal; font-weight: 600; color: var(--ink); }
.ak-source {
  font-size: .8rem; font-style: italic; color: var(--muted);
  margin-top: 1.4rem; padding-top: .7rem; border-top: 1px solid var(--line);
}

/* ---- 22. Recettes : recherche, frigo, tri ------------------------------ */
.search-grid { display: grid; grid-template-columns: 1fr; gap: 1.4rem; margin-bottom: 2.4rem; }
@media (min-width: 760px) { .search-grid { grid-template-columns: 1fr 1fr; } }
.search-container {
  background: var(--surface); border: 1px solid var(--card-border); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: 1.5rem 1.6rem;
}
.search-container--frigo { background: var(--band); border-color: var(--gold-soft); }
.search-label { display: flex; align-items: center; gap: .5rem; font-family: var(--font-display); font-weight: 600; color: var(--ink); font-size: 1.05rem; margin-bottom: .35rem; }
.search-ico { width: 1.3rem; height: 1.3rem; color: var(--burgundy); flex: none; }
.search-container--frigo .search-ico { color: #4c7a3f; }
.search-hint { font-size: .85rem; color: var(--ink-soft); margin: 0 0 .9rem; }
.search-box {
  width: 100%; font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: .75rem 1rem; transition: border-color .15s, box-shadow .15s;
}
.search-box:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--ring); }

/* Cases « frigo » (cochables / décochables / supprimables) */
.tags-container { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.frigo-chip {
  display: inline-flex; align-items: center; gap: .45rem;
  background: var(--burgundy); color: #fff; border-radius: 999px;
  padding: .25rem .35rem .25rem .7rem; font-size: .85rem; font-weight: 500;
  cursor: pointer; user-select: none; transition: opacity .15s, background .15s;
}
.frigo-chip input { accent-color: #fff; width: .95rem; height: .95rem; cursor: pointer; }
.frigo-chip__name { text-transform: capitalize; }
.frigo-chip.is-off { background: var(--muted); opacity: .6; text-decoration: line-through; }
.frigo-chip__x {
  background: rgba(255,255,255,.18); border: none; color: #fff; cursor: pointer;
  width: 1.2rem; height: 1.2rem; border-radius: 50%; line-height: 1; font-size: .95rem;
  display: inline-flex; align-items: center; justify-content: center;
}
.frigo-chip__x:hover { background: rgba(255,255,255,.35); }
.frigo-chip__emoji { font-size: 1.05rem; line-height: 1; }

.fridge__meta {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .65rem;
  color: var(--ink-soft);
  font-size: .8rem;
  font-weight: 600;
  margin-bottom: .15rem;
}
.fridge__clear {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--burgundy);
  padding: .15rem .6rem;
  font-size: .78rem;
  line-height: 1.4;
}
.fridge__clear:hover { border-color: var(--burgundy); background: #f7ece8; }

/* ---- Frigo visuel + animation ------------------------------------------- */
.fridge { margin-top: 1rem; perspective: 1100px; }
.fridge__body {
  position: relative; min-height: 170px; border-radius: 14px;
  background: linear-gradient(155deg, #fbf8f2, #ece3d2);
  border: 1px solid var(--gold-soft);
  box-shadow: inset 0 2px 6px rgba(255,255,255,.6), 0 6px 18px rgba(60,40,20,.12);
  overflow: hidden;
}
/* Intérieur : étagères qui portent les ingrédients */
.fridge__shelves {
  display: flex; flex-wrap: wrap; align-content: flex-start; gap: .5rem;
  padding: .9rem; min-height: 170px;
  background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 46px, rgba(120,90,50,.12) 46px, rgba(120,90,50,.12) 48px);
}
.fridge__shelves:empty::before {
  content: attr(data-empty); color: var(--muted); font-size: .9rem; font-style: italic;
  align-self: center; margin: auto;
}
/* Porte : recouvre l'intérieur, s'ouvre en pivotant */
.fridge__door {
  position: absolute; inset: 0; border-radius: 14px;
  background:
    linear-gradient(90deg, rgba(255,255,255,.3), transparent 18%, transparent 82%, rgba(70,45,25,.08)),
    linear-gradient(150deg, #efe7d7, #d9c9aa);
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
  border: 1px solid var(--gold-soft);
  transform-origin: left center; transition: transform .55s cubic-bezier(.45,.05,.25,1);
  backface-visibility: hidden;
}
.fridge__door::after {
  content: "Frigo"; position: absolute; top: 12px; left: 14px;
  font-size: .76rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold); opacity: .9;
}
.fridge__door::before {
  content: attr(data-count);
  position: absolute; left: 14px; bottom: 12px;
  min-width: 1.55rem; height: 1.55rem; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--burgundy); color: #fff; font-size: .78rem; font-weight: 700;
  box-shadow: 0 2px 6px rgba(60,40,20,.22);
}
.fridge__handle {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  width: 7px; height: 64px; border-radius: 6px;
  background: linear-gradient(var(--gold), var(--burgundy)); box-shadow: 0 1px 3px rgba(0,0,0,.25);
}
.fridge.is-open .fridge__door { transform: rotateY(-118deg); box-shadow: 12px 7px 16px rgba(60,40,20,.16); }
/* Ingrédient qui « vole » vers le frigo */
.frigo-fly {
  position: fixed; z-index: 3000; pointer-events: none;
  display: inline-flex; align-items: center; gap: .35rem;
  background: var(--burgundy); color: #fff; border-radius: 999px;
  padding: .25rem .7rem; font-size: .85rem; font-weight: 600; white-space: nowrap;
  box-shadow: 0 6px 16px rgba(60,40,20,.3);
  transition: transform .7s cubic-bezier(.4,-0.25,.3,1.25), opacity .7s ease-in;
}
.frigo-chip { animation: chip-land .35s ease both; }
@keyframes chip-land { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .fridge__door { transition: none; }
  .frigo-fly { transition: opacity .2s; }
  .frigo-chip { animation: none; }
}

/* Barre d'outils : tri + compteur */
.recipe-toolbar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: .8rem; margin: 0 0 1.8rem; padding-bottom: .8rem; border-bottom: 1px solid var(--line);
}
.recipe-toolbar label { font-size: .9rem; color: var(--ink-soft); display: inline-flex; align-items: center; gap: .5rem; }
.recipe-toolbar select {
  font-family: var(--font-body); font-size: .9rem; color: var(--ink);
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23946712' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right .75rem center;
  border: 1px solid var(--line); border-radius: 999px; padding: .45rem 2rem .45rem .9rem;
  -webkit-appearance: none; appearance: none; cursor: pointer; transition: border-color .15s, box-shadow .15s;
}
.recipe-toolbar select:hover { border-color: var(--gold-soft); }
.recipe-toolbar select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--ring); }
.recipe-sort__lbl { font-family: var(--font-display); font-weight: 600; color: var(--ink); }
.recipe-count { font-size: .9rem; color: var(--muted); }
.recipe-count strong { color: var(--burgundy); font-weight: 600; }

.recipe-compat {
  align-self: flex-start;
  margin: .45rem 0 .15rem;
  display: inline-flex;
  align-items: center;
  border: 1px solid #d7c6a4;
  border-radius: 999px;
  background: #f5eedf;
  color: var(--ink-soft);
  padding: .12rem .55rem;
  font-size: .78rem;
  font-weight: 700;
}
.recipe-compat.is-full {
  background: #e8f5e9;
  border-color: #c8e6c9;
  color: #2e7d32;
}

/* Aperçu des ingrédients clés */
.ing-preview-list { list-style: none; padding-left: 0; margin-top: .35rem; font-size: .85rem; color: var(--ink-soft); line-height: 1.7; }
.ing-match {
  display: inline-block; background: #e8f5e9; border: 1px solid #c8e6c9; color: #2e7d32;
  padding: .1rem .5rem; border-radius: 4px; font-weight: 600; margin: .1rem 0;
}
.ing-match::before { content: "✓ "; }
.ing-more { color: var(--muted); font-style: italic; margin-top: .2rem; }

/* Masquage robuste (les cartes héritent de display:flex, donc !important) */
.recipe-item[hidden], .recipe-category[hidden] { display: none !important; }

/* Volets dépliables (guides) */
.recipe-guide { background: var(--surface); border: 1px solid var(--card-border); border-radius: var(--radius); margin-bottom: 1rem; overflow: hidden; box-shadow: var(--shadow-sm); }
.recipe-guide > summary {
  padding: 1rem 1.5rem; cursor: pointer; list-style: none;
  font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; color: var(--burgundy);
}
.recipe-guide > summary::-webkit-details-marker { display: none; }
.recipe-guide__body { padding: 1rem 1.5rem; border-top: 1px solid var(--line); background: var(--paper); font-size: .95rem; }
.recipe-guide__body ul { margin: .6rem 0 .2rem 1.1rem; }
.recipe-guide__body li { margin-bottom: .4rem; color: var(--ink-soft); }

/* Page d'une recette */
.recipe-time { display: inline-block; background: var(--surface); border: 1px solid var(--card-border); border-left: 4px solid var(--gold); padding: .6rem 1.2rem; border-radius: var(--radius); margin: .3rem 0 1.6rem; font-size: .95rem; color: var(--ink); box-shadow: var(--shadow-sm); }
.recipe-ings { list-style: none; padding-left: .2rem; margin-bottom: 2rem; }
.recipe-ings li { padding: .3rem 0; color: var(--ink-soft); }
.recipe-ings .ing-dot { color: var(--burgundy); font-weight: 700; margin-right: .4rem; }
.recipe-steps { padding-left: 1.3rem; }
.recipe-steps li { margin-bottom: 1rem; color: var(--ink-soft); line-height: 1.6; }
.recipe-source { margin-top: 2.5rem; padding-top: 1.2rem; border-top: 1px solid var(--line); font-size: .85rem; font-style: italic; color: var(--muted); }

/* ---- 23. Calendrier orthodoxe ------------------------------------------ */
.cal-search-wrap { position: relative; margin: 1.6rem 0 .6rem; }
#cal-search {
  width: 100%; font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: .8rem 1rem .8rem 2.6rem; transition: border-color .15s, box-shadow .15s;
}
#cal-search:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--ring); }
.cal-search-wrap::before {
  content: ""; position: absolute; left: .95rem; top: 50%; width: 1rem; height: 1rem; transform: translateY(-50%);
  background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23946712' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E");
}

/* Légende des règles de jeûne */
.cal-legend { display: flex; flex-wrap: wrap; gap: .5rem .9rem; margin: 0 0 2rem; font-size: .82rem; }
.cal-legend__item { display: inline-flex; align-items: center; gap: .4rem; padding: .25rem .65rem; border-radius: 999px; }

/* En-tête de mois */
.cal-month {
  font-family: var(--font-display); font-size: 1.5rem; color: var(--ink);
  text-transform: capitalize; margin: 2.4rem 0 1.1rem; padding-bottom: .4rem;
  border-bottom: 1px solid var(--gold-soft);
}
.cal-month:first-child { margin-top: .5rem; }

.calendar-list { display: flex; flex-direction: column; gap: 1rem; }
.cal-day {
  display: flex; flex-direction: column; gap: .8rem;
  background: var(--surface); border: 1px solid var(--card-border); border-left: 4px solid var(--gold);
  border-radius: var(--radius); padding: 1.2rem 1.4rem; box-shadow: var(--shadow-sm);
}
.cal-day:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
@media (min-width: 600px) { .cal-day { flex-direction: row; align-items: flex-start; gap: 1.4rem; } }
.cal-day--post    { border-left-color: var(--burgundy); }
.cal-day--vinulei { border-left-color: #cdaa5a; }
.cal-day--peste   { border-left-color: #4a6b78; }
.cal-day--liber   { border-left-color: #4c9a52; }
.cal-day.is-today { border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold-soft), var(--shadow); }

.cal-date {
  flex: 0 0 4.5rem; font-family: var(--font-display); font-size: 2rem; font-weight: 700;
  color: var(--ink); line-height: 1; text-align: center;
}
.cal-date span { display: block; font-family: var(--font-body); font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em; color: var(--gold); margin-bottom: .25rem; }
.cal-today { display: block; margin-top: .4rem; font-family: var(--font-body); font-style: normal;
  font-size: .62rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  color: var(--burgundy); }
.cal-details { flex: 1; min-width: 0; }

.cal-fasting {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em;
  padding: .2rem .7rem; border-radius: 999px; margin-bottom: .6rem;
}
.cal-fasting--post,    .cal-legend .cal-fasting--post    { color: #fff; background: var(--burgundy); }
.cal-fasting--vinulei, .cal-legend .cal-fasting--vinulei { color: #7a5a1e; background: #f3e7cf; border: 1px solid #e3d2ad; }
.cal-fasting--peste,   .cal-legend .cal-fasting--peste   { color: #1e4250; background: #dce9ee; border: 1px solid #b9d2db; }
.cal-fasting--liber,   .cal-legend .cal-fasting--liber   { color: #2e7d32; background: #e8f5e9; border: 1px solid #c8e6c9; }

.cal-feast { font-family: var(--font-display); font-size: 1.2rem; color: var(--burgundy); margin: 0 0 .4rem; }
.cal-saints { list-style: none; padding: 0; margin: 0; }
.cal-saints li { color: var(--ink-soft); font-size: 1.02rem; padding: .15rem 0; }
.cal-saints a { color: var(--burgundy); text-decoration: none; font-weight: 500; border-bottom: 1px solid var(--gold-soft); transition: color .15s, border-color .15s; }
.cal-saints a:hover { color: var(--gold); border-color: var(--gold); }
.cal-canon { font-size: .8rem; font-style: italic; color: var(--muted); }
.cal-note { color: var(--muted); font-style: italic; font-size: .92rem; margin: .5rem 0 0; }
.cal-empty { color: var(--muted); font-style: italic; padding: 2rem 0; text-align: center; }
.cal-text { color: var(--ink-soft); font-size: 1.02rem; line-height: 1.55; margin: 0; }
.cal-links { display: flex; flex-wrap: wrap; align-items: center; gap: .2rem .6rem; margin: .7rem 0 0; padding-top: .6rem; border-top: 1px dashed var(--line); font-size: .92rem; }
.cal-links a { color: var(--burgundy); text-decoration: none; font-weight: 500; border-bottom: 1px solid var(--gold-soft); }
.cal-links a:hover { color: var(--gold); border-color: var(--gold); }

/* À propos (repliable) */
.cal-about { background: var(--surface); border: 1px solid var(--card-border); border-radius: var(--radius); margin: 1.4rem 0; overflow: hidden; box-shadow: var(--shadow-sm); }
.cal-about > summary { padding: .85rem 1.2rem; cursor: pointer; list-style: none; font-family: var(--font-display); font-weight: 600; color: var(--burgundy); display: flex; align-items: center; gap: .5rem; }
.cal-about > summary::-webkit-details-marker { display: none; }
.cal-about__body { padding: 0 1.2rem 1.1rem; border-top: 1px solid var(--line); }
.cal-about__body p { color: var(--ink-soft); margin: .8rem 0 0; font-size: .98rem; line-height: 1.6; }

/* Barre de contrôles : mois / année / style */
.cal-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem; margin: 0 0 1.3rem; }
.cal-monthbar { display: flex; flex-wrap: wrap; gap: .35rem; }
.cal-chip { font-family: var(--font-body); font-size: .82rem; color: var(--ink-soft); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: .25rem .7rem; cursor: pointer; text-transform: capitalize; transition: background .12s, color .12s, border-color .12s; }
.cal-chip:hover { border-color: var(--gold-soft); color: var(--ink); }
.cal-chip.is-active { background: var(--burgundy); border-color: var(--burgundy); color: #fff; }
.cal-controls__right { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; }
.cal-year { font-size: .85rem; color: var(--ink-soft); display: inline-flex; align-items: center; gap: .4rem; }
.cal-year select { font-family: var(--font-body); font-size: .85rem; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: .3rem .5rem; }
.cal-segment { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.cal-segment button { font-family: var(--font-body); font-size: .82rem; color: var(--ink-soft); background: var(--surface); border: none; padding: .3rem .85rem; cursor: pointer; }
.cal-segment button.is-active { background: var(--gold); color: #fff; }

/* Jour de la semaine sous le numéro */
.cal-wday { display: block; font-family: var(--font-body); font-style: normal; font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-soft); margin-top: .15rem; }

/* ---- 23.5 Calendrier : grille mensuelle moderne --------------------------- */
.cal-grid { max-width: var(--wrap); margin: 0 auto; }

.cal-grid__month { font-family: var(--font-display); font-size: 1.8rem; font-weight: 600; color: var(--ink); text-align: center; margin-bottom: 1.5rem; letter-spacing: 0; }

/* En-tête jours de la semaine */
.cal-grid__row { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.cal-grid__header { margin-bottom: 3px; }
.cal-grid__dow { text-align: center; font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); padding: .6rem 0 .4rem; }

/* Corps de la grille */
.cal-grid__body { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }

/* Cellules */
.cal-grid__cell {
  min-height: 6rem; background: var(--surface); border-radius: 8px; padding: .5rem .4rem;
  cursor: default; display: flex; flex-direction: column; position: relative;
  border: 1.5px solid var(--line); transition: border-color .2s, box-shadow .2s;
}
.cal-grid__cell--empty { background: transparent; border-color: transparent; cursor: default; }
.cal-grid__cell.has-entries { cursor: pointer; border-color: transparent; }
.cal-grid__cell.has-entries:hover { border-color: var(--gold-soft); box-shadow: 0 0 0 1px var(--gold-soft); z-index: 2; }

/* Aujourd'hui */
.cal-grid__cell.is-today { border-color: var(--gold); box-shadow: 0 0 0 1.5px var(--gold); }
.cal-grid__cell.is-today .cal-grid__num { color: var(--burgundy); font-weight: 700; }

/* Teintures de jeûne */
.cal-grid__cell--post    { background: #f8eeee; }
.cal-grid__cell--vinulei { background: #f8f3e8; }
.cal-grid__cell--peste   { background: #eef3f5; }

/* Numéro du jour */
.cal-grid__num { font-size: .9rem; font-weight: 600; color: var(--ink-soft); margin-bottom: .15rem; line-height: 1; }

/* Nom du saint */
.cal-grid__saint { font-size: .7rem; color: var(--ink); line-height: 1.3; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; margin-top: .1rem; }

/* Badge de jeûne (icône dans le coin) */
.cal-grid__fast { position: absolute; top: .35rem; right: .35rem; opacity: .55; }
.cal-grid__fast svg { width: 14px; height: 14px; }

/* Détail déroulant au clic */
.cal-grid__detail { display: none; margin-top: .4rem; padding-top: .4rem; border-top: 1px solid var(--line); }
.cal-grid__cell.is-expanded .cal-grid__detail { display: block; }
.cal-grid__cell.is-expanded { z-index: 5; box-shadow: var(--shadow-lg); border-color: var(--gold-soft); }
.cal-grid__entry { margin-bottom: .5rem; }
.cal-grid__entry .cal-fasting { font-size: .72rem; margin-bottom: .2rem; }
.cal-grid__entry .cal-text { font-size: .82rem; color: var(--ink-soft); margin: 0 0 .25rem; line-height: 1.4; }
.cal-grid__entry .cal-links { font-size: .8rem; margin: 0; }
.cal-grid__entry .cal-links a { color: var(--burgundy); text-decoration: none; font-weight: 500; }

/* Mode sombre */
[data-theme="dark"] .cal-grid__cell { background: #252525; border-color: #333; }
[data-theme="dark"] .cal-grid__cell--empty { background: transparent; border-color: transparent; }
[data-theme="dark"] .cal-grid__cell--post    { background: #2a1e1e; }
[data-theme="dark"] .cal-grid__cell--vinulei { background: #2a2518; }
[data-theme="dark"] .cal-grid__cell--peste   { background: #1e2228; }

/* Responsive */
@media (max-width: 700px) {
  .cal-grid__cell { min-height: 4.5rem; padding: .35rem .25rem; }
  .cal-grid__num { font-size: .8rem; }
  .cal-grid__saint { font-size: .63rem; -webkit-line-clamp: 1; }
  .cal-grid__dow { font-size: .65rem; padding: .4rem 0 .25rem; }
  .cal-grid__month { font-size: 1.4rem; }
}
@media (max-width: 450px) {
  .cal-grid__cell { min-height: 3.8rem; padding: .25rem .2rem; gap: 2px; }
  .cal-grid__num { font-size: .72rem; }
  .cal-grid__saint { font-size: .55rem; }
  .cal-grid__body, .cal-grid__row { gap: 2px; }
}

/* ---- 24. Formulaire de demandes de prière ------------------------------ */
.prayer-form { max-width: 42rem; background: var(--surface); border: 1px solid var(--card-border); border-radius: var(--radius); padding: clamp(1.4rem,4vw,2.2rem); box-shadow: var(--shadow); margin-top: 1.5rem; }
.form-group { margin-bottom: 1.4rem; }
.form-group label { display: block; font-weight: 600; color: var(--ink); margin-bottom: .4rem; font-size: .95rem; }
.form-group input[type="text"], .form-group input[type="email"], .form-group input[type="number"], .form-group textarea {
  width: 100%; font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: .7rem 1rem; transition: border-color .15s, box-shadow .15s;
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--ring); }
.form-group textarea { resize: vertical; }
.prayer-cap { font-weight: 700; color: var(--burgundy); }
.form-check { display: flex; align-items: flex-start; gap: .6rem; margin-bottom: 1.4rem; }
.form-check input[type="checkbox"] { margin-top: .3rem; accent-color: var(--gold); width: 1.05rem; height: 1.05rem; flex: none; }
.form-check label { font-size: .9rem; color: var(--ink-soft); }
.form-check a { color: var(--burgundy); }
.prayer-disclaimer { font-size: .85rem; color: var(--muted); font-style: italic; border-top: 1px solid var(--line); padding-top: 1.1rem; margin: 0 0 1.4rem; }
/* Filet de secours mailto: (audit A4) — rangée bouton principal + copie */
.prayer-form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; }
.prayer-form__hint { font-size: .85rem; color: var(--muted); margin-top: .6rem; max-width: 48ch; }
.prayer-msg { margin-top: 1rem; padding: .8rem 1rem; border-radius: var(--radius); font-size: .95rem; }
.prayer-msg.is-ok { background: #e8f5e9; border: 1px solid #c8e6c9; color: #2e7d32; }
.prayer-msg.is-err { background: #fbeaea; border: 1px solid #e8c9c9; color: var(--burgundy); }

/* ---- 25. Finitions : navigation, défilement, apparitions --------------- */
/* Page courante marquée dans le menu */
.mainnav__list a[aria-current="page"] {
  color: var(--ink);
  background-color: color-mix(in srgb, var(--gold) 16%, transparent);
}
.mainnav__list a[aria-current="page"]::after { width: 1.35rem; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  /* Tiroir mobile : léger fondu-glissé à l'ouverture */
  .mainnav.is-open { animation: nav-drop .22s ease; }
  @keyframes nav-drop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
  /* Apparition au défilement (activée seulement si .js sur <html>) */
  .js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
  .js .reveal.is-in { opacity: 1; transform: none; }
}

.centered-content {
    display: flex;
    flex-direction: column;
    align-items: center; /* Centre horizontalement */
    text-align: justify; /* Justifie le texte pour un rendu propre */
    max-width: 700px;    /* Limite la largeur pour que la lecture soit confortable */
    margin: 0 auto;      /* Centre le bloc dans la page */
}

.centered-content h1, 
.centered-content h2 {
    text-align: center;  /* Tes titres seront parfaitement centrés */
    width: 100%;
}

.centered-content p {
    margin-bottom: 1.5em; /* Aère bien tes paragraphes pour l'apprentissage */
}

/* =========================================================================
   Bloc à coller À LA FIN de assets/css/styles.css
   Contient : animations révélation, mode sombre, barre de lecture,
              widget quotidien.
   ========================================================================= */

/* ===== A. ANIMATIONS D'ENTRÉE AU SCROLL (reveal.js) ==================== */

.reveal {
  opacity: 0;
  transform: translateY(1.4rem);
  transition: opacity .55s ease, transform .55s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
.reveal[data-delay="1"] { transition-delay: .10s; }
.reveal[data-delay="2"] { transition-delay: .20s; }
.reveal[data-delay="3"] { transition-delay: .28s; }

@keyframes hero-enter {
  from { opacity: 0; transform: translateY(.9rem); }
  to   { opacity: 1; transform: none; }
}
.hero > .wrap > * { animation: hero-enter .6s ease both; }
.hero > .wrap > .eyebrow        { animation-delay: .05s; }
.hero > .wrap > h1              { animation-delay: .18s; }
.hero > .wrap > .hero__lead     { animation-delay: .30s; }
.hero > .wrap > .hero__actions  { animation-delay: .44s; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.is-visible { opacity: 1; transform: none; transition: none; }
  .hero > .wrap > * { animation: none; opacity: 1; }
}

/* ===== B. BARRE DE PROGRESSION DE LECTURE (reading-progress.js) ======== */

#reading-progress {
  position: fixed;
  top: 0; left: 0;
  z-index: 200;          /* au-dessus du header (z-index: 40) */
  width: 100%;
  height: 2px;
  pointer-events: none;
}
#reading-progress::after {
  content: "";
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-soft));
  transform: scaleX(var(--progress, 0));
  transform-origin: left center;
  transition: transform .08s linear;
}
@media (prefers-reduced-motion: reduce) {
  #reading-progress::after { transition: none; }
}

/* ===== C. BOUTON MODE SOMBRE (darkmode.js) ============================== */

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem; height: 2rem;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
  transition: color .15s, border-color .15s, background .15s;
}
.theme-toggle:hover,
.theme-toggle:focus-visible {
  color: var(--gold);
  border-color: var(--gold-soft);
  background: color-mix(in srgb, var(--gold) 8%, transparent);
}
.theme-toggle svg { width: 1rem; height: 1rem; pointer-events: none; }
/* Soleil visible en clair → lune visible en sombre */
.theme-toggle .icon-moon { display: none; }
.theme-toggle .icon-sun  { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: block; }
[data-theme="dark"] .theme-toggle .icon-sun  { display: none; }

/* ===== D. WIDGET QUOTIDIEN (daily-widget.js) ============================ */

.daily-widget {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.1rem 1.5rem;
  margin-top: 1.2rem;
  box-shadow: var(--shadow-sm);
}
.daily-widget__block { flex: 1 1 11rem; min-width: 0; }
.daily-widget__label {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--gold);
  margin-bottom: .25rem;
}
.daily-widget__fast {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.3;
}
.daily-widget__quote {
  font-family: var(--font-body);
  font-size: .98rem;
  font-style: italic;
  color: var(--ink-soft);
  line-height: 1.5;
}
.daily-widget__author {
  font-size: .82rem;
  color: var(--muted);
  margin-top: .2rem;
}
/* Couleurs sémantiques du jeûne */
.fast--strict { color: var(--burgundy); }
.fast--oil    { color: var(--gold); }
.fast--fish   { color: #3a7a6a; }
.fast--free   { color: var(--muted); }

/* ===== D bis. Invitation à la pause (mindful-pause.js) ================== */
.mindful-pause {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem;
  max-width: 30rem; margin-inline: auto; z-index: 1200;
  background: var(--panel); color: var(--panel-ink);
  border: 1px solid var(--gold-soft); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 1.1rem 1.3rem 1.2rem;
  /* état de départ (avant .is-in) : légèrement plus bas + transparent */
  opacity: 0; transform: translateY(12px); transition: opacity .35s ease, transform .35s ease;
}
.mindful-pause.is-in { opacity: 1; transform: none; }
.mindful-pause__label {
  font-family: var(--font-display); color: var(--gold-soft);
  font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: .4rem;
}
.mindful-pause__body { color: var(--panel-ink); line-height: 1.55; }
.mindful-pause__prayer { margin-top: .7rem; font-style: italic; color: var(--gold-soft); }
.mindful-pause__close {
  margin-top: 1rem; background: transparent; color: var(--panel-ink);
  border: 1px solid var(--gold-soft); border-radius: var(--radius);
  padding: .5rem 1.1rem; cursor: pointer; font-family: var(--font-body); font-size: 1rem;
  transition: background-color .15s, color .15s;
}
.mindful-pause__close:hover { background: var(--gold-soft); color: var(--panel); }
@media (prefers-reduced-motion: reduce) {
  .mindful-pause { transition: none; opacity: 1; transform: none; }
}
@media print { .mindful-pause { display: none !important; } }

/* ===== E. THÈME SOMBRE ================================================== */

/* Anti-flash : appliqué en JS dès le <head> avant tout rendu.
   Ces variables surchargent les valeurs claires de :root. */
[data-theme="dark"] {
  --paper:      #0c0c0e;   /* abyssal, presque noir */
  --surface:    #161618;   /* carte surélevée */
  --band:       #111113;
  --ink:        #e9e6df;   /* gris os clair */
  --ink-soft:   #a4a19a;
  --muted:      #7d7a72;
  --line:       #262629;
  --gold:       #d8ad52;   /* or vif et saturé — contraste fort dans l'obscurité */
  --gold-soft:  #e7c67e;
  --burgundy:   #c66b6b;
  --panel:      #1a1a1c;
  --panel-ink:  #ece9e2;
  /* En sombre, l'élévation passe par la surface + un filet (les ombres ne se
     voient pas sur fond noir) : ombres atténuées, bordure de carte visible. */
  --card-border: var(--line);
  --shadow-sm:  0 1px 2px rgba(0,0,0,.30), 0 2px 8px -2px rgba(0,0,0,.40);
  --shadow:     0 2px 8px -1px rgba(0,0,0,.40), 0 16px 36px -12px rgba(0,0,0,.55);
  --shadow-lg:  0 12px 28px -8px rgba(0,0,0,.50), 0 32px 60px -16px rgba(0,0,0,.65);
  --ring:       color-mix(in srgb, var(--gold) 32%, transparent);
}
/* Transition douce — bascule de thème ET survols (source unique pour ces blocs) */
body,
.site-header,
.card, .resource-card, .saint-card, .channel-card, .radio-card,
.signpost, .daily-widget, .sources, .prayer-form, .search-container,
.cal-day, .recipe-guide, .cal-about, .map-list, .pointer, .saint-film, .recipe-time,
.btn, .map-btn, .lang-filter__btn, .cal-chip, .map-list__chip, .theme-toggle,
input, textarea, select {
  transition:
    background-color .25s ease,
    border-color .25s ease,
    box-shadow .25s ease,
    color .25s ease,
    transform .2s ease;
}
/* Tuiles Leaflet : moins éblouissantes en mode sombre */
[data-theme="dark"] .leaflet-tile {
  filter: brightness(.82) saturate(.88);
}
/* Préférence système (si aucun choix manuel) */
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) {
    --paper:      #0c0c0e;
    --surface:    #161618;
    --band:       #111113;
    --ink:        #e9e6df;
    --ink-soft:   #a4a19a;
    --muted:      #7d7a72;
    --line:       #262629;
    --gold:       #d8ad52;
    --gold-soft:  #e7c67e;
    --burgundy:   #c66b6b;
    --panel:      #1a1a1c;
    --panel-ink:  #ece9e2;
    --card-border: var(--line);
    --shadow-sm:  0 1px 2px rgba(0,0,0,.30), 0 2px 8px -2px rgba(0,0,0,.40);
    --shadow:     0 2px 8px -1px rgba(0,0,0,.40), 0 16px 36px -12px rgba(0,0,0,.55);
    --shadow-lg:  0 12px 28px -8px rgba(0,0,0,.50), 0 32px 60px -16px rgba(0,0,0,.65);
    --ring:       color-mix(in srgb, var(--gold) 32%, transparent);
  }
  html:not([data-theme="light"]) .leaflet-tile {
    filter: brightness(.82) saturate(.88);
  }
}

/* ---- 25. Page recette : checkboxes en cuisine + impression propre ------- */

/* Chaque ingrédient devient une ligne cliquable */
.recipe-ings .ing-label {
  display: flex;
  align-items: baseline;
  gap: .55rem;
  cursor: pointer;
  user-select: none;
  transition: color .15s;
}
.recipe-ings .ing-check {
  flex-shrink: 0;
  align-self: center;
  accent-color: var(--burgundy);
  width: 1.05em;
  height: 1.05em;
  cursor: pointer;
}
/* Ingredient coché : grisé + barré */
.recipe-ings li:has(.ing-check:checked) {
  color: var(--muted);
}
.recipe-ings li:has(.ing-check:checked) .ing-dot {
  color: var(--muted);
}
.recipe-ings li:has(.ing-check:checked) .ing-label {
  text-decoration: line-through;
  text-decoration-color: var(--muted);
  opacity: .7;
}

/* Impression : recette épurée, sans chrome de navigation */
@media print {
  .site-header,
  .site-footer,
  .skip-link,
  #daily-widget,
  .daily-widget,
  .breadcrumb,
  .back-link,
  .nav-toggle { display: none !important; }

  body { background: #fff !important; color: #000 !important; }
  .article { box-shadow: none !important; border: none !important; }

  /* Cacher les checkboxes à l'impression, retrouver le look original */
  .recipe-ings .ing-check { display: none !important; }
  .recipe-ings .ing-label {
    text-decoration: none !important;
    opacity: 1 !important;
    color: inherit !important;
  }
  .recipe-ings li { color: #000 !important; }
  a { color: inherit; text-decoration: none; }
}

/* =========================================================================
   ---- 26. Finitions visuelles (juin 2026) -------------------------------
   Raffinements esthétiques cohérents avec l'esprit « manuscrit enluminé » :
   lettrine, lueur de cierge respirante, survols plus vivants, halo du jour.
   TOUT est neutralisé sous prefers-reduced-motion (bloc en fin de section).
   ========================================================================= */

/* ---- 26.1 Lettrine enluminée (1re lettre du 1er paragraphe d'article) --- */
/* Touche « manuscrit » discrète : grande capitale dorée en serif, en début
   de prose. On évite les pages liturgiques (acathiste) où ça jurerait. */
.prose > p:first-of-type::first-letter {
  float: left;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 3.4em;
  line-height: .82;
  padding: .06em .12em 0 0;
  margin-right: .02em;
  color: var(--gold);
  background: linear-gradient(160deg, var(--gold), var(--burgundy));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---- 26.2 Hero : lueur de cierge qui « respire » ----------------------- */
/* Halo radial chaud, animé très lentement, derrière le titre. Sous le texte
   (z-index), n'intercepte aucun clic. */
.hero::after {
  content: "";
  position: absolute;
  z-index: 0;
  top: 28%; left: 18%;
  width: 42vw; height: 42vw;
  max-width: 620px; max-height: 620px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle,
    rgba(203,162,76,.20) 0%,
    rgba(203,162,76,.08) 38%,
    transparent 68%);
  pointer-events: none;
  animation: candle-breathe 7s ease-in-out infinite;
}
.hero > .wrap { position: relative; z-index: 1; }
@keyframes candle-breathe {
  0%, 100% { opacity: .75; transform: translate(-50%, -50%) scale(1); }
  50%      { opacity: 1;   transform: translate(-50%, -50%) scale(1.07); }
}

/* ---- 26.3 Survols de cartes plus vivants -------------------------------- */
/* Lueur dorée chaude au survol, en plus de l'élévation déjà présente. */
.card:hover,
.resource-card:hover,
.saint-card:hover,
.channel-card:hover {
  box-shadow:
    0 10px 30px rgba(34, 28, 20, .10),
    0 0 0 1px var(--gold-soft);
}

/* Zoom doux des vignettes (saints / recettes) au survol de la carte */
.saint-card__imglink { overflow: hidden; }
.saint-card__img,
.recipe-figure img {
  transition: transform .5s cubic-bezier(.2,.6,.2,1);
}
.saint-card:hover .saint-card__img { transform: scale(1.045); }

/* ---- 26.4 Titres de section : filet doré qui se dessine au survol ------- */
.section__head h2 {
  position: relative;
  display: inline-block;
}
.section__head h2::after {
  content: "";
  position: absolute;
  left: 50%; bottom: -.35rem;
  width: 0; height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transform: translateX(-50%);
  transition: width .5s ease;
}
.section:hover .section__head h2::after,
.section__head:hover h2::after { width: 70%; }

/* ---- 26.5 Calendrier : halo doux et pulsé sur le jour « aujourd'hui » --- */
.cal-day.is-today {
  animation: today-halo 3.2s ease-in-out infinite;
}
@keyframes today-halo {
  0%, 100% { box-shadow: 0 0 0 2px var(--gold-soft), var(--shadow); }
  50%      { box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold) 45%, transparent), var(--shadow); }
}

/* ---- 26.6 Bouton primaire : léger reflet qui passe au survol ----------- */
.btn--primary { position: relative; overflow: hidden; }
.btn--primary::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 35%, rgba(255,255,255,.22) 50%, transparent 65%);
  transform: translateX(-120%);
  transition: transform .6s ease;
}
.btn--primary:hover::before { transform: translateX(120%); }

/* ---- 26.7 Liens du menu : pastille active légèrement « respirante » ----- */
.mainnav__list a[aria-current="page"] { transition: background-color .3s ease; }

/* ---- 26.8 Neutralisation mouvement réduit ------------------------------ */
@media (prefers-reduced-motion: reduce) {
  .hero::after,
  .cal-day.is-today { animation: none; }
  .saint-card__img,
  .recipe-figure img,
  .section__head h2::after,
  .btn--primary::before { transition: none; }
}

/* =========================================================================
   ---- 27. Maillage interne « À lire aussi » (related.js) ----------------
   Bloc de suggestions ajouté en bas des articles / vies de saints pour
   inviter le lecteur (et les robots) à rebondir vers d'autres pages.
   ========================================================================= */
.related { padding: clamp(2.2rem, 5vw, 3.4rem) 0; margin-top: 2.5rem; }
.related__eyebrow { display: block; text-align: center; }
.related__title {
  text-align: center; margin: .4rem 0 1.8rem;
  font-size: 2rem;
}
.related__grid {
  display: grid; gap: 1.1rem; grid-template-columns: 1fr;
  max-width: 60rem; margin-inline: auto;
}
@media (min-width: 760px) { .related__grid { grid-template-columns: repeat(3, 1fr); } }

.related__item { display: flex; }
.related__link {
  position: relative; display: flex; flex-direction: column;
  width: 100%; padding: 1.2rem 1.3rem 2.4rem;
  background: var(--surface); border: 1px solid var(--line);
  border-top: 3px solid var(--gold-soft);
  border-radius: 0 0 var(--radius) var(--radius);
  text-decoration: none; color: var(--ink);
  transition: border-color .15s, box-shadow .2s, transform .15s;
}
.related__link:hover,
.related__link:focus-visible {
  border-color: var(--gold-soft); border-top-color: var(--gold);
  box-shadow: var(--shadow); transform: translateY(-3px);
  outline: none;
}
.related__cat {
  font-size: .68rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--gold); margin-bottom: .4rem;
}
.related__t {
  font-family: var(--font-display); font-size: 1.2rem; font-weight: 600;
  line-height: 1.25; color: var(--ink); margin-bottom: .45rem;
}
.related__link:hover .related__t { color: var(--burgundy); }
.related__d {
  font-size: .92rem; line-height: 1.5; color: var(--ink-soft);
  /* limite à ~3 lignes pour garder des cartes régulières */
  display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden;
}
.related__arrow {
  position: absolute; right: 1.2rem; bottom: 1rem;
  color: var(--gold); font-size: 1.1rem; transition: transform .15s;
}
.related__link:hover .related__arrow { transform: translateX(4px); }

@media print { .related { display: none !important; } }

/* =========================================================================
   ---- 28. REFONTE STRUCTURELLE (juin 2026) — nouveaux composants ---------
   Composition éditoriale premium : accès rapide du hero, cartes « chemin »
   à grand chiffre, tuiles « Découvrir » (bento), en-têtes de page riches,
   fiches saint/recette, expérience de lecture (sommaire, prev/next, citations).
   ========================================================================= */

/* ---- 28.1 Hero : barre d'accès rapide --------------------------------- */
.hero__quick { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 2.4rem; }
.hero__quick a {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .5rem .95rem; border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(28, 28, 30, 0.12);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  font-size: .9rem; font-weight: 600; color: var(--ink-soft); text-decoration: none;
  transition: color .15s, border-color .15s, background .15s, transform .15s;
}
.hero__quick a:hover { color: var(--ink); border-color: var(--gold); background: var(--surface); transform: translateY(-2px); }
.hero__quick svg { width: 1rem; height: 1rem; color: var(--gold); flex: none; }

/* ---- 28.2 Cartes « chemin » (3 grandes voies, accueil) ----------------- */
.path-grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 900px) { .path-grid { grid-template-columns: repeat(3, 1fr); } }
.path-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--card-border);
  border-radius: var(--radius); padding: 2rem 1.8rem 1.7rem; overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .25s ease, transform .2s ease;
}
.path-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-soft));
  transform: scaleX(0); transform-origin: left; transition: transform .3s ease;
}
.path-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.path-card:hover::before { transform: scaleX(1); }
.path-card__top { display: flex; align-items: baseline; gap: .85rem; margin-bottom: .55rem; }
.path-card__idx { font-family: var(--font-display); font-size: 2.5rem; font-weight: 700; line-height: 1; color: var(--gold); flex: none; }
.path-card__title { font-size: 1.4rem; line-height: 1.15; margin: 0; }
.path-card__desc { color: var(--ink-soft); font-size: 1rem; margin: 0 0 1.1rem; }
.path-card__links { margin: 0; border-top: 1px solid var(--line); }
.path-card__links li { border-bottom: 1px solid var(--line); }
.path-card__links a {
  display: flex; align-items: baseline; justify-content: space-between; gap: .8rem;
  padding: .62rem 0; text-decoration: none; color: var(--ink); font-size: .97rem;
  transition: color .15s, padding-left .15s;
}
.path-card__links a::after { content: "→"; color: var(--gold-soft); transition: transform .15s; }
.path-card__links a:hover { color: var(--burgundy); padding-left: .3rem; }
.path-card__links a:hover::after { transform: translateX(3px); }

/* ---- 28.3 Tuiles « Découvrir » (bento des sections) -------------------- */
.tile-grid { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 760px) { .tile-grid { grid-template-columns: repeat(3, 1fr); } }
.tile {
  position: relative; display: flex; flex-direction: column; gap: .55rem;
  padding: 1.5rem 1.5rem 1.6rem; border-radius: var(--radius); min-height: 9.5rem;
  background: var(--surface); border: 1px solid var(--card-border);
  box-shadow: var(--shadow-sm); text-decoration: none; color: var(--ink);
  transition: box-shadow .25s ease, transform .2s ease;
}
.tile:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.tile__icon {
  display: inline-flex; width: 2.7rem; height: 2.7rem; border-radius: 13px;
  align-items: center; justify-content: center;
  background: rgba(148, 103, 18, 0.15); color: var(--gold);
}
.tile__icon svg { width: 1.45rem; height: 1.45rem; }
.tile__title { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; }
.tile__desc { color: var(--ink-soft); font-size: .92rem; line-height: 1.5; flex: 1; }
.tile__arrow { position: absolute; top: 1.35rem; right: 1.45rem; color: var(--gold-soft); font-size: 1.15rem; transition: transform .2s ease; }
.tile:hover .tile__arrow { transform: translate(3px,-3px); }

/* ---- 28.4 Page SAINT : héros portrait + identité ----------------------- */
.saint { display: block; }
.saint-hero {
  display: grid; gap: clamp(1.5rem, 4vw, 2.8rem); align-items: center;
  grid-template-columns: 1fr; margin: 1.2rem 0 2.6rem;
}
@media (min-width: 760px) { .saint-hero { grid-template-columns: minmax(220px, 300px) 1fr; } }
.saint-hero__media picture, .saint-hero__media img { display: block; width: 100%; }
.saint-hero__media img {
  aspect-ratio: 4 / 5; object-fit: cover; background: var(--band);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
}
.saint-hero__id .eyebrow { display: block; margin-bottom: .65rem; }
.saint-hero__name { font-size: 3.1rem; line-height: 1.06; margin: 0; }
.saint-hero__resume {
  font-family: var(--font-display); font-style: italic; font-weight: 500;
  font-size: 1.35rem; color: var(--ink-soft);
  line-height: 1.5; margin: .9rem 0 0; max-width: 48ch;
}
.saint-facts { display: flex; flex-wrap: wrap; gap: .7rem; margin: 1.5rem 0 0; max-width: none; }
.saint-fact {
  background: var(--surface); border: 1px solid var(--card-border); box-shadow: var(--shadow-sm);
  border-radius: var(--radius-sm); padding: .55rem .95rem; min-width: 6.5rem;
}
.saint-fact dt { font-size: .66rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.saint-fact dd { margin: .12rem 0 0; font-family: var(--font-display); font-size: 1.1rem; color: var(--ink); }

/* corps de lecture : mesure confortable */
.saint-body { max-width: 44rem; }
.saint-body > .saint-block:first-child { margin-top: .5rem; }

/* prière courte mise en valeur (citation) */
.saint-quote { margin: 2.6rem 0; padding-left: 1.6rem; border-left: 3px solid var(--gold); max-width: 44rem; }
.saint-quote blockquote {
  font-family: var(--font-display); font-style: italic; font-weight: 500;
  font-size: 1.45rem; line-height: 1.45; color: var(--ink); margin: 0; max-width: none;
}
.saint-quote figcaption {
  margin-top: .75rem; font-size: .74rem; font-weight: 700; letter-spacing: .15em;
  text-transform: uppercase; color: var(--gold);
}

/* navigation : autres saints */
.saint-related { margin: 3.2rem 0 1rem; padding-top: 2.2rem; border-top: 1px solid var(--line); }
.saint-related__head { margin-bottom: 1.4rem; }
.saint-related__head .eyebrow { display: block; }
.saint-related__head h2 { font-size: 1.9rem; margin: .35rem 0 0; }
.saint-related__grid { display: grid; gap: 1.1rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 680px) { .saint-related__grid { grid-template-columns: repeat(3, 1fr); } }
.saint-related__card {
  display: flex; flex-direction: column; text-decoration: none; color: var(--ink);
  background: var(--surface); border: 1px solid var(--card-border); box-shadow: var(--shadow-sm);
  border-radius: var(--radius); overflow: hidden;
  transition: box-shadow .25s ease, transform .2s ease;
}
.saint-related__card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.saint-related__card picture, .saint-related__card img { display: block; width: 100%; }
.saint-related__card img { aspect-ratio: 1 / 1; object-fit: cover; background: var(--band); }
.saint-related__mono {
  display: flex; align-items: center; justify-content: center; aspect-ratio: 1 / 1;
  font-family: var(--font-display); font-size: 2.6rem; color: var(--gold); background: var(--band);
}
.saint-related__name { padding: .85rem 1rem; font-family: var(--font-display); font-size: 1.08rem; line-height: 1.2; transition: color .15s; }
.saint-related__card:hover .saint-related__name { color: var(--burgundy); }

/* ---- 28.5 Widget du jour : lectures liturgiques (Apôtre + Évangile) ----- */
.daily-widget__block--readings { order: -1; }   /* en tête du widget */
.daily-readings { list-style: none; margin: .1rem 0 0; padding: 0; }
.daily-readings li { font-family: var(--font-display); font-size: 1.08rem; color: var(--ink); padding: .12rem 0; line-height: 1.3; }
.daily-readings__k { font-family: var(--font-body); font-size: .68rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--gold); margin-right: .45rem; }
.daily-readings__tone { margin-top: .3rem; font-size: .8rem; color: var(--muted); text-transform: capitalize; }

/* ---- 29. YouTube cards (refonte moderne) --------------------------------- */
.yt-grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 680px) { .yt-grid { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); } }
.yt-card {
  background: var(--surface); border: 1px solid var(--card-border);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
  overflow: hidden; transition: box-shadow .25s ease, transform .2s ease;
  display: flex; flex-direction: column;
}
.yt-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.yt-card__media { position: relative; overflow: hidden; aspect-ratio: 16 / 9; background: var(--band); }
.yt-card__media a { display: block; width: 100%; height: 100%; }
.yt-thumb { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.yt-card:hover .yt-thumb { transform: scale(1.05); }
.yt-thumb--placeholder {
  display: flex; align-items: center; justify-content: center;
  background: var(--band) !important;
}
.yt-thumb__letter {
  font-family: var(--font-display); font-size: 4rem;
  font-weight: 700; color: var(--gold); opacity: .5; user-select: none;
}
.yt-card__body { padding: 1.3rem 1.4rem 1.4rem; flex: 1; display: flex; flex-direction: column; }
.yt-card__header { display: flex; align-items: center; flex-wrap: wrap; gap: .55rem; margin-bottom: .3rem; }
.yt-badge {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .72rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; padding: .18rem .6rem; border-radius: 999px;
  border: 1.5px solid var(--line); color: var(--ink-soft);
}
.yt-badge .flag { width: .9rem; height: auto; border-radius: 2px; flex: none; }
.yt-card__handle { font-size: .78rem; color: var(--muted); font-family: monospace; }
.yt-card__title { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; line-height: 1.25; margin: 0 0 .35rem; }
.yt-card__title a { color: var(--ink); text-decoration: none; transition: color .15s; }
.yt-card__title a:hover { color: var(--burgundy); }
.yt-ro-note { font-size: .78rem; font-style: italic; color: var(--muted); margin: 0 0 .4rem; }
.yt-card__desc { font-size: .9rem; color: var(--ink-soft); line-height: 1.55; margin: 0 0 1rem; flex: 1; }
.yt-card__link {
  display: inline-flex; align-items: center; gap: .35rem; align-self: flex-start;
  font-size: .88rem; font-weight: 600; color: var(--gold);
  text-decoration: none; border-bottom: 1.5px solid transparent;
  transition: border-color .15s, gap .2s;
}
.yt-card__link:hover { border-color: var(--gold); gap: .55rem; }
.yt-card__link span { transition: transform .2s; }
.yt-card__link:hover span { transform: translateX(3px); }

/* Anciennes classes (gardées pour ne pas casser si référencées ailleurs) */
.channel-card { display: none; }

/* =========================================================================
   ---- 30. Refonte premium sobre (juillet 2026) --------------------------
   Objectif : perception immédiate de sérieux, calme et qualité. Cette couche
   stabilise l'ensemble du site sans changer le contenu, les URLs ni la logique.
   ========================================================================= */

:root {
  --paper: #fbfaf7;
  --surface: #fffefb;
  --band: #f4efe6;
  --ink: #171512;
  --ink-soft: #514a40;
  --muted: #746d60;
  --line: #e6dccb;
  --gold: #9a6a16;
  --gold-soft: #d2ad62;
  --burgundy: #8a3c40;
  --cypress: #536b58;
  --blue: #345c70;
  --panel: #171512;
  --panel-ink: #f6efe3;
  --radius: 8px;
  --radius-sm: 8px;
  --card-border: color-mix(in srgb, var(--ink) 10%, transparent);
  --shadow-sm: 0 1px 2px rgba(31, 24, 15, .035), 0 8px 22px -18px rgba(31, 24, 15, .22);
  --shadow: 0 1px 2px rgba(31, 24, 15, .05), 0 18px 42px -28px rgba(31, 24, 15, .26);
  --shadow-lg: 0 2px 4px rgba(31, 24, 15, .05), 0 24px 58px -34px rgba(31, 24, 15, .34);
  --ring: color-mix(in srgb, var(--gold) 22%, transparent);
}

[data-theme="dark"] {
  --paper: #11100e;
  --surface: #191713;
  --band: #15130f;
  --ink: #f0eadf;
  --ink-soft: #c0b7a8;
  --muted: #908777;
  --line: #2e281f;
  --gold: #d7b067;
  --gold-soft: #ecd08f;
  --burgundy: #cf777d;
  --cypress: #91aa8e;
  --blue: #8fb4c2;
  --panel: #0d0c0a;
  --panel-ink: #f7efe2;
  --card-border: color-mix(in srgb, var(--panel-ink) 10%, transparent);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .24), 0 10px 26px -20px rgba(0, 0, 0, .5);
  --shadow: 0 2px 4px rgba(0, 0, 0, .25), 0 22px 46px -30px rgba(0, 0, 0, .68);
  --shadow-lg: 0 4px 8px rgba(0, 0, 0, .26), 0 28px 64px -34px rgba(0, 0, 0, .76);
  --ring: color-mix(in srgb, var(--gold) 34%, transparent);
}

/* Le site doit paraître lumineux par défaut. Le mode sombre reste disponible
   uniquement après un choix explicite, au lieu de s'imposer via le système. */
@media (prefers-color-scheme: dark) {
  html:not([data-theme="dark"]) {
    --paper: #fbfaf7;
    --surface: #fffefb;
    --band: #f4efe6;
    --ink: #171512;
    --ink-soft: #514a40;
    --muted: #746d60;
    --line: #e6dccb;
    --gold: #9a6a16;
    --gold-soft: #d2ad62;
    --burgundy: #8a3c40;
    --panel: #171512;
    --panel-ink: #f6efe3;
    --card-border: color-mix(in srgb, var(--ink) 10%, transparent);
    --shadow-sm: 0 1px 2px rgba(31, 24, 15, .035), 0 8px 22px -18px rgba(31, 24, 15, .22);
    --shadow: 0 1px 2px rgba(31, 24, 15, .05), 0 18px 42px -28px rgba(31, 24, 15, .26);
    --shadow-lg: 0 2px 4px rgba(31, 24, 15, .05), 0 24px 58px -34px rgba(31, 24, 15, .34);
    --ring: color-mix(in srgb, var(--gold) 22%, transparent);
  }
  html:not([data-theme="dark"]) .leaflet-tile { filter: none; }
}

html { background: var(--paper); }
body {
  font-size: 1.0625rem;
  line-height: 1.68;
  background:
    radial-gradient(circle at 22% 0%, color-mix(in srgb, var(--gold) 7%, transparent), transparent 28rem),
    linear-gradient(180deg, var(--paper) 0%, color-mix(in srgb, var(--paper) 82%, var(--band)) 100%);
}

h1, h2, h3, h4,
.brand__text,
.section__head h2,
.path-card__title,
.tile__title,
.related__t,
.saint-card h3,
.resource-card h3,
.yt-card__title {
  letter-spacing: 0;
}

h1 { font-size: 3.25rem; line-height: 1.03; }
h2 { font-size: 2.25rem; line-height: 1.12; }
h3 { font-size: 1.35rem; line-height: 1.18; }
@media (min-width: 1180px) {
  .hero h1 { font-size: 4.05rem; }
  .article h1 { font-size: 3.35rem; }
}
@media (max-width: 760px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 1.85rem; }
  .hero h1 { font-size: 3rem; }
}

.eyebrow,
.resource-card__cat,
.related__cat,
.pointer__label,
.signpost__label,
.daily-widget__label,
.saint-fact dt,
.yt-badge,
.cal-wday,
.cal-grid__dow {
  letter-spacing: 0;
}

.wrap {
  max-width: 76rem;
  padding-inline: 1.5rem;
}
.wrap--reading {
  max-width: 48rem;
}

/* Header : une seule ligne premium sur desktop, vraie ligne compacte sur mobile. */
.site-header {
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 9%, transparent);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .45) inset;
}
.site-header__inner {
  max-width: 86rem;
  min-height: 4.6rem;
  flex-wrap: nowrap;
  gap: 1rem;
  padding-inline: 1.5rem;
  overflow: visible;
}
.brand {
  min-width: 0;
  flex: 0 0 auto;
}
.brand__mark {
  width: 1.25rem;
  height: 1.7rem;
}
.brand__text {
  font-size: 1.22rem;
  white-space: nowrap;
}
.mainnav {
  flex: 1 1 auto;
  min-width: 0;
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: .48rem;
}
.mainnav__list {
  flex-wrap: nowrap;
  gap: .04rem;
}
.mainnav__list a {
  font-size: .82rem;
  padding: .36rem .48rem;
  letter-spacing: 0;
  white-space: nowrap;
}
.mainnav__list a::after {
  bottom: .08rem;
  height: 1px;
}
.lang-switch {
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  box-shadow: var(--shadow-sm);
}
.lang-switch a {
  padding: .32rem .52rem;
  letter-spacing: 0;
}
.theme-toggle,
body .site-header .search-toggle {
  width: 2.24rem;
  height: 2.24rem;
  border-radius: 999px;
  box-shadow: none;
  transition: background-color .16s ease, border-color .16s ease, color .16s ease;
}
body .site-header .search-toggle:hover {
  transform: none;
}
@media (max-width: 1320px) and (min-width: 1121px) {
  .brand__text em { display: none; }
  .mainnav__list a { font-size: .78rem; padding-inline: .38rem; }
}
@media (max-width: 1120px) {
  .site-header__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 2.45rem;
    align-items: center;
    min-height: 4.25rem;
    padding-inline: 1rem;
    gap: .75rem;
    justify-content: initial;
  }
  .brand {
    width: 100%;
    max-width: 100%;
  }
  .brand__text {
    font-size: 1.13rem;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .nav-toggle {
    display: flex !important;
    grid-column: 2;
    justify-self: end;
    width: 2.45rem;
    height: 2.45rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
  }
  .mainnav {
    grid-column: 1 / -1;
    top: 100%;
    left: .75rem;
    right: .75rem;
    padding: .65rem .95rem 1rem;
    border: 1px solid var(--line);
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: var(--shadow-lg);
    max-height: calc(100vh - 4.5rem);
    overflow-y: auto;
  }
  .mainnav.is-open { max-height: calc(100vh - 4.5rem); }
  .mainnav__list a {
    font-size: .98rem;
    padding: .82rem .1rem;
  }
  .mainnav__list a::after { display: none; }
  .lang-switch { margin-top: .85rem; }
}
@media (max-width: 420px) {
  .brand__text { font-size: 1.04rem; }
  .brand__text em { display: none; }
}

/* Hero : plus éditorial, moins plein écran, première section perceptible. */
.hero {
  padding: 3.7rem 0 2.6rem;
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 7%, transparent);
  background-image:
    linear-gradient(90deg, color-mix(in srgb, var(--paper) 96%, transparent), color-mix(in srgb, var(--paper) 74%, transparent)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='340' viewBox='0 0 24 32' fill='none' stroke='%239a6a16' stroke-opacity='0.075' stroke-width='1' stroke-linecap='round'%3E%3Cline x1='12' y1='3' x2='12' y2='29'/%3E%3Cline x1='8.5' y1='7.5' x2='15.5' y2='7.5'/%3E%3Cline x1='5' y1='12.5' x2='19' y2='12.5'/%3E%3Cline x1='8' y1='24' x2='16' y2='19.5'/%3E%3C/svg%3E"),
    radial-gradient(circle at 16% 16%, color-mix(in srgb, var(--gold) 12%, transparent), transparent 24rem),
    linear-gradient(180deg, color-mix(in srgb, var(--surface) 70%, var(--paper)) 0%, var(--paper) 100%);
  background-position: center, right 3vw center, center, center;
  background-repeat: no-repeat;
}
.hero::after {
  display: none;
}
.hero .eyebrow {
  margin-bottom: 1.1rem;
  color: var(--gold);
}
.hero h1 {
  max-width: 17ch;
}
.hero__lead {
  font-size: 1.35rem;
  line-height: 1.55;
  max-width: 43rem;
  margin-top: 1.25rem;
}
.hero__actions {
  margin-top: 2rem;
}
.hero__quick {
  margin-top: 1.9rem;
}
.hero__quick a {
  background: color-mix(in srgb, var(--surface) 84%, transparent);
  border-color: color-mix(in srgb, var(--ink) 10%, transparent);
  color: var(--ink-soft);
  box-shadow: var(--shadow-sm);
}
@media (max-width: 760px) {
  html,
  body {
    overflow-x: hidden;
  }
  .hero {
    padding: 2.75rem 0 2rem;
    background-position: center, right -5.8rem center, center, center;
  }
  .hero h1 {
    font-size: 2.72rem;
  }
  .hero .eyebrow::after { width: 2.8rem; }
  .hero__lead {
    font-size: 1.08rem;
    line-height: 1.62;
  }
  .hero__actions {
    gap: .7rem;
    margin-top: 1.55rem;
  }
  .hero__actions .btn {
    padding-inline: 1rem;
  }
  .hero__quick {
    display: grid;
    grid-template-columns: 1fr;
    gap: .5rem;
    margin-top: 1.5rem;
  }
  .hero__quick a {
    justify-content: center;
    font-size: .82rem;
    padding: .43rem .72rem;
    min-width: 0;
  }
}

/* Surfaces : moins d'ombre, plus de discipline. */
.signpost,
.card,
.path-card,
.tile,
.resource-card,
.saint-card,
.related__link,
.yt-card,
.daily-widget,
.sources,
.prayer-form,
.search-container,
.recipe-guide,
.map-list,
.cal-about,
.cal-day {
  border-color: var(--card-border);
  box-shadow: var(--shadow-sm);
}
.card:hover,
.path-card:hover,
.tile:hover,
.resource-card:hover,
.saint-card:hover,
.related__link:hover,
.yt-card:hover,
.saint-related__card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.card:hover,
.resource-card:hover,
.saint-card:hover,
.channel-card:hover {
  box-shadow: var(--shadow);
}
.section {
  padding: 4.6rem 0;
}
.section--band {
  background: linear-gradient(180deg, var(--band), color-mix(in srgb, var(--band) 72%, var(--paper)));
}
.section__head {
  margin-bottom: 2.25rem;
}
.section__head::before {
  opacity: .75;
}
.section__head h2::after {
  display: none;
}

.path-grid {
  gap: 1rem;
}
.path-card {
  padding: 1.45rem 1.35rem 1.25rem;
}
.path-card__idx {
  font-size: 2rem;
}
.path-card__title {
  font-size: 1.25rem;
}
.path-card__desc {
  font-size: .94rem;
  line-height: 1.48;
}
.path-card__links a {
  font-size: .89rem;
  line-height: 1.32;
  padding: .48rem 0;
}
.path-card__links a:hover {
  padding-left: .12rem;
}
@media (min-width: 900px) {
  .path-card__links a {
    min-height: 2.45rem;
    align-items: center;
  }
}

.tile-grid {
  gap: .9rem;
}
.tile {
  min-height: 8.4rem;
  padding: 1.25rem;
}
.tile__icon {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--gold) 14%, var(--surface));
}
.tile__title {
  font-size: 1.18rem;
}
.tile__desc {
  font-size: .88rem;
}
@media (max-width: 560px) {
  .tile-grid { grid-template-columns: 1fr; }
}

/* Articles : lecture plus calme, largeur plus généreuse, titre moins écrasant. */
.breadcrumb {
  padding-top: 1.35rem;
  font-size: .86rem;
}
.article {
  padding: 1.25rem 0 3.4rem;
}
.article h1 {
  max-width: 20ch;
}
.answer-lead {
  margin: 1.55rem 0 2.2rem;
  padding: .85rem 0 .85rem 1.25rem;
  font-size: 1.16rem;
  line-height: 1.62;
  color: var(--ink);
}
.prose > p:first-of-type::first-letter {
  float: none;
  font: inherit;
  padding: 0;
  margin: 0;
  color: inherit;
  background: none;
  -webkit-text-fill-color: currentColor;
}
.prose p,
.recipe-steps li,
.recipe-ings li {
  font-family: var(--font-reading);
  font-size: 1.12rem;
  line-height: 1.76;
}
.prose p {
  color: color-mix(in srgb, var(--ink) 78%, var(--ink-soft));
}
.sources {
  background: color-mix(in srgb, var(--band) 74%, var(--surface));
  padding: 1.35rem 1.45rem;
}
.pointer {
  box-shadow: var(--shadow);
}
.pointer p {
  font-size: 1.1rem;
}

.related__grid {
  gap: .9rem;
}
.related__link {
  border-top-width: 2px;
  border-radius: var(--radius);
  padding: 1.05rem 1.1rem 2.15rem;
}

/* Formulaires, recherche et contrôles : plus nets, moins décoratifs. */
.search-field,
.search-box,
#cal-search,
.map-list__search,
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="number"],
.form-group textarea,
.recipe-toolbar select,
.cal-year select {
  border-color: var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4);
}
.btn {
  border-radius: var(--radius-sm);
  box-shadow: none;
}
.btn--primary {
  background: var(--ink);
  color: var(--paper);
}
.btn--primary::before {
  display: none;
}
.btn--primary:hover,
.btn--ghost:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

/* Le mouvement devient un accent, pas un spectacle. */
.hero::after,
.cal-day.is-today {
  animation: none;
}
.saint-card__img,
.recipe-figure img,
.yt-thumb {
  transition-duration: .28s;
}
.reveal {
  transform: translateY(.55rem);
  transition-duration: .42s;
}

@media (max-width: 760px) {
  .wrap { padding-inline: 1.15rem; }
  .section { padding: 3.35rem 0; }
  .path-grid { gap: .9rem; }
  .path-card { padding: 1.25rem 1.15rem; }
  .path-card__links a { font-size: .93rem; }
  .answer-lead { font-size: 1.05rem; }
  .prose p,
  .recipe-steps li,
  .recipe-ings li {
    font-size: 1.06rem;
    line-height: 1.72;
  }
  .site-footer { margin-top: 2.2rem; }
}
