/*
Theme Name: CEPP France – Communauté Catholique des Enfants de Padre Pio
Description: Thème du site de la Communauté Catholique des Enfants de Padre Pio et de la Fondation Notre Dame de Fatima de Villeneuve-Saint-Georges. Agenda, actualités, témoignages, pensée du jour et formulaire de contact intégrés, sans extension.
Version: 0.2.0
Requires at least: 6.4
Requires PHP: 8.1
Author: Équipe du site de la Communauté
License: GPL-2.0-or-later
Text Domain: cepp-france
*/

/* ---------- Polices (hébergées sur le site, pas d'appel à Google) ---------- */
@font-face { font-family: "Roboto Slab"; font-weight: 400; font-style: normal; font-display: swap; src: url("assets/fonts/roboto-slab-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Roboto Slab"; font-weight: 700; font-style: normal; font-display: swap; src: url("assets/fonts/roboto-slab-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Open Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("assets/fonts/open-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Open Sans"; font-weight: 400; font-style: italic; font-display: swap; src: url("assets/fonts/open-sans-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Open Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url("assets/fonts/open-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Open Sans"; font-weight: 700; font-style: normal; font-display: swap; src: url("assets/fonts/open-sans-latin-700-normal.woff2") format("woff2"); }

/*
 * Couleurs de l'ancien site, assombries là où le texte devait rester lisible
 * (contraste d'au moins 4,5:1 pour le texte courant).
 */
:root {
	--brown: #7E4D14;        /* titres, liens */
	--brown-dark: #5A360C;
	--gold: #A5651A;         /* filets, soulignés (décor seulement) */
	--gold-text: #93591A;    /* or lisible pour du texte : 5,4:1 sur le fond */
	--ink: #3A2410;          /* texte courant */
	--muted: #6B5440;
	--paper: #FBF8F5;        /* fond du contenu */
	--paper-2: #F4ECE2;
	--line: #E6D9C8;
	--sky: #2F6AA8;          /* boutons (bleu de l'ancien site, assombri) */
	--sky-dark: #24548A;
	--sky-soft: #D6E4F5;     /* bandeau */
	--side: #E2EAF4;         /* colonne de gauche */
	--red: #980D0E;
	--radius: 10px;
	--serif: "Roboto Slab", Georgia, serif;
	--sans: "Open Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
	--side-w: 300px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-size: 16px; line-height: 1.65; color: var(--ink); background: var(--paper) url("assets/img/texture-papier.png"); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brown); text-underline-offset: 3px; }
a:hover { color: var(--brown-dark); }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 700; color: var(--brown); line-height: 1.25; margin: 0 0 .6em; }
h1 { font-size: clamp(28px, 3.4vw, 40px); }
h2 { font-size: clamp(21px, 2.2vw, 26px); }
h3 { font-size: 19px; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.3em; }
blockquote { margin: 0; }
address { font-style: normal; }
[id] { scroll-margin-top: 16px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--brown); color: #fff; padding: 12px 16px; z-index: 200; }
.skip-link:focus { left: 8px; top: 8px; color: #fff; }
main:focus { outline: none; }
.muted { color: var(--muted); }
.empty { color: var(--muted); font-style: italic; }
.lead { font-size: 17px; color: var(--muted); max-width: 820px; }
.icon { display: block; flex: none; }

/* ---------- Bandeau ---------- */
.banner { background: var(--sky-soft) url("assets/img/texture-bleue.png"); border-bottom: 3px solid var(--gold); }
.banner__in { max-width: 1280px; margin: 0 auto; padding: 18px 24px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.banner__logo { flex: none; }
.banner__logo img, .banner__saint { width: 78px; height: auto; }
.banner__logo img { border-radius: 4px; box-shadow: 0 1px 4px rgba(58, 28, 5, .2); }
.banner__title { flex: 1; margin: 0; display: flex; justify-content: center; }
.banner__title img { width: 100%; max-width: 920px; }
@media (max-width: 640px) {
	.banner__in { padding: 10px 12px; gap: 10px; }
	.banner__logo img, .banner__saint { width: 46px; }
}

/* ---------- Carrousel (accueil) ---------- */
.carousel { position: relative; background: #3A1C05; }
.carousel__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; }
.carousel__track::-webkit-scrollbar { display: none; }
/* Diapositive : texte à gauche sur un panneau uni, affiche entière à droite sur un fond flouté tiré d'elle-même. */
.carousel__slide { flex: 0 0 100%; scroll-snap-align: start; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); height: clamp(320px, 32vw, 440px); }
.carousel__caption { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 4px; padding: 32px clamp(20px, 5vw, 72px) 64px; color: #F6EBDD; background: linear-gradient(135deg, #4A260A 0%, #3A1C05 100%); }
.carousel__caption h2 { color: #fff; font-size: clamp(24px, 3vw, 40px); margin: 10px 0 6px; line-height: 1.15; }
.carousel__when { font-size: 18px; font-weight: 600; margin: 0; }
.carousel__where { font-size: 15px; margin: 0 0 12px; opacity: .85; }
.carousel__caption .btn { margin-top: 10px; }
.carousel__media { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; padding: 18px; background: #2a1a0a; }
.carousel__media::before { content: ""; position: absolute; inset: -40px; background: var(--fond) center / cover no-repeat; filter: blur(28px) saturate(1.1) brightness(.62); transform: scale(1.1); }
.carousel__poster { position: relative; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 6px; box-shadow: 0 10px 30px rgba(0, 0, 0, .45); }
.chip--light { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .35); color: #fff; }
@media (max-width: 760px) {
	.carousel__slide { grid-template-columns: 1fr; grid-template-rows: 240px auto; height: auto; }
	.carousel__media { order: -1; padding: 14px; }
	.carousel__caption { padding: 20px 20px 64px; }
}
.carousel__nav { position: absolute; z-index: 2; left: 0; bottom: 16px; width: min(100%, calc(100% * 5 / 11)); display: flex; justify-content: center; align-items: center; gap: 10px; }
@media (max-width: 760px) { .carousel__nav { width: 100%; } }
.carousel__dot { width: 12px; height: 12px; padding: 0; border-radius: 99px; border: 2px solid #fff; background: transparent; cursor: pointer; }
.carousel__dot[aria-current="true"] { background: #fff; width: 30px; }
.carousel__arrow { width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .85); color: var(--ink); font-size: 20px; cursor: pointer; }
.carousel__arrow:hover { background: #fff; }
.carousel__pause { display: inline-flex; align-items: center; justify-content: center; }
.carousel__pause svg { width: 16px; height: 16px; }

/* ---------- Mise en page : colonne de gauche + contenu ---------- */
.layout { display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); align-items: start; max-width: 1440px; margin: 0 auto; }
.navtoggle { display: none; }
@media (max-width: 1079px) { .navtoggle { display: block; position: absolute; opacity: 0; pointer-events: none; } }
.sidebar { grid-column: 1; grid-row: 1; background: var(--side) url("assets/img/texture-bleue.png"); min-height: 100%; align-self: stretch; }
.sidebar__in { position: sticky; top: 0; padding: 22px 20px 40px; max-height: 100vh; overflow-y: auto; }
.sidebar__close, .navbtn, .navbackdrop { display: none; }
/* Ordinateur : le bouton « burger » replie ou déplie la colonne (comme sur l'ancien site). */
@media (min-width: 1080px) {
	.js .navbtn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; background: none; color: var(--brown); cursor: pointer; border-radius: 8px; flex: none; }
	.js .navbtn:hover { background: var(--paper-2); }
	.js .navbtn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
	.layout { transition: grid-template-columns .25s ease; }
	.sidebar-repliee .layout { grid-template-columns: 0 minmax(0, 1fr); }
	.sidebar-repliee .sidebar { visibility: hidden; overflow: hidden; }
}
button.navbtn, button.sidebar__close { font: inherit; }
button.sidebar__close { background: none; border: 0; padding: 4px 0; }
.content { grid-column: 2; grid-row: 1; padding: 0 clamp(16px, 4vw, 56px) 40px; min-width: 0; }

.search { display: flex; margin: 0 0 26px; background: #fff; border-radius: 6px; box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 11px 12px; font: inherit; font-size: 15px; color: var(--ink); }
.search button { border: 0; background: transparent; padding: 0 12px; color: var(--brown); cursor: pointer; }
.search:focus-within { outline: 3px solid var(--sky); outline-offset: 1px; }
.search input:focus { outline: none; }

.sidebox { margin-bottom: 30px; }
.sidebox > h2 { font-size: 19px; display: inline-block; padding-bottom: 6px; border-bottom: 3px solid var(--gold); margin-bottom: 14px; }
.mainmenu, .mainmenu ul { list-style: none; margin: 0; padding: 0; }
.mainmenu > li { border-bottom: 1px solid rgba(126, 77, 20, .15); }
.mainmenu a, .mainmenu summary { display: block; padding: 11px 2px; font-family: var(--serif); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--brown); text-decoration: none; cursor: pointer; }
.mainmenu summary { list-style: none; display: flex; justify-content: space-between; align-items: center; }
.mainmenu summary::-webkit-details-marker { display: none; }
.mainmenu summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin: -4px 4px 0 0; transition: transform .15s; }
.mainmenu details[open] > summary::after { transform: rotate(-135deg); margin-top: 4px; }
.mainmenu ul { padding: 0 0 8px 12px; }
.mainmenu ul a { font-family: var(--sans); font-size: 14px; letter-spacing: 0; text-transform: none; padding: 6px 2px; }
.mainmenu a:hover, .mainmenu summary:hover { color: var(--brown-dark); text-decoration: underline; }
.mainmenu a[aria-current] { font-weight: 700; color: var(--brown-dark); text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; }

.pensee__card { display: flex; align-items: stretch; gap: 14px; margin: 0 0 14px; }
.pensee__cal { flex: none; width: 84px; margin: 0; border-radius: 10px; overflow: hidden; background: #fff; box-shadow: 0 2px 8px rgba(58, 28, 5, .15); text-align: center; display: flex; flex-direction: column; }
.pensee__month { display: block; background: var(--brown); color: #fff; padding: 4px 2px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.pensee__day { display: block; font-family: var(--serif); font-weight: 700; font-size: 38px; line-height: 1; color: var(--brown); padding: 8px 0 2px; }
.pensee__dow { display: block; font-size: 12px; color: var(--muted); padding: 0 0 8px; }
.pensee__intro { display: flex; flex-direction: column; justify-content: center; font-size: 14px; color: var(--muted); }
.pensee__intro strong { color: var(--ink); font-family: var(--serif); font-size: 15px; }
.pensee__text { position: relative; margin: 0; padding: 12px 14px; background: rgba(255, 255, 255, .6); border-left: 3px solid var(--gold); border-radius: 0 8px 8px 0; }
.pensee__text p { font-size: 15px; font-style: italic; color: var(--ink); margin: 0; }
.pensee__more { display: inline-block; margin-top: 8px; font-size: 14px; font-weight: 600; background: none; border: 0; padding: 0; color: var(--brown); text-decoration: underline; cursor: pointer; font-family: inherit; }
.prose--small { font-size: 14px; }
.prose--small h3, .prose--small h4 { font-size: 15px; margin: 1em 0 .3em; }
.prose--small p { margin-bottom: .4em; }

/* Téléphone et tablette : la colonne devient un panneau qui s'ouvre avec « Menu ». */
@media (max-width: 1079px) {
	.layout { display: block; }
	.sidebar { position: fixed; z-index: 100; top: 0; bottom: 0; left: 0; width: min(88vw, 340px); transform: translateX(-102%); transition: transform .2s ease; box-shadow: 4px 0 18px rgba(0, 0, 0, .2); visibility: hidden; }
	.sidebar__in { max-height: 100%; height: 100%; }
	.navtoggle:checked ~ .sidebar { transform: none; visibility: visible; }
	.navtoggle:checked ~ .navbackdrop { display: block; position: fixed; inset: 0; z-index: 90; background: rgba(0, 0, 0, .35); }
	.sidebar__close { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 14px; color: var(--brown); font-weight: 600; cursor: pointer; }
	.navbtn { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 2px solid var(--brown); border-radius: 8px; color: var(--brown); font-weight: 700; cursor: pointer; background: #fff; }
	.navtoggle:focus-visible ~ .content .navbtn { outline: 3px solid var(--sky); outline-offset: 2px; }
	.content { padding: 0 16px 32px; }
}
@media (prefers-reduced-motion: reduce) {
	.sidebar, .carousel__track { transition: none; scroll-behavior: auto; }
}

/* ---------- Pensée du jour : panneau qui glisse depuis le bord droit ---------- */
.pensee-tab { position: fixed; z-index: 80; right: 0; top: 50%; transform: translateY(-50%); writing-mode: vertical-rl; padding: 16px 9px; border: 0; border-radius: 10px 0 0 10px; background: var(--brown); color: #fff; font: 600 14px/1 var(--sans); letter-spacing: .04em; cursor: pointer; box-shadow: -2px 2px 10px rgba(0, 0, 0, .2); }
.pensee-tab:hover { background: var(--brown-dark); }
.pensee-tab:focus-visible { outline-color: var(--sky); }
.pensee-panneau { position: fixed; z-index: 95; right: 0; top: 50%; width: min(400px, calc(100vw - 32px)); max-height: 80vh; overflow-y: auto; padding: 20px 22px 22px; background: var(--paper) url("assets/img/texture-papier.png"); border: 1px solid var(--line); border-right: 0; border-left: 4px solid var(--gold); border-radius: 12px 0 0 12px; box-shadow: -8px 8px 30px rgba(58, 28, 5, .25); transform: translate(105%, -50%); transition: transform .45s cubic-bezier(.2, .8, .2, 1); }
.pensee-panneau.est-ouvert { transform: translate(0, -50%); }
.pensee-panneau[hidden] { display: none; }
.pensee-panneau__head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.pensee-panneau__head > div { flex: 1; }
.pensee-panneau__kicker { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-text); }
.pensee-panneau h2 { margin: 2px 0 0; font-size: 20px; }
.pensee-panneau__close { align-self: flex-start; display: flex; padding: 6px; border: 0; background: none; color: var(--brown); cursor: pointer; border-radius: 6px; }
.pensee-panneau__close:hover { background: var(--paper-2); }
.pensee-panneau__text p { font-family: var(--serif); font-size: 18px; line-height: 1.55; color: var(--ink); margin: 0 0 10px; }
.pensee-panneau__text footer { text-align: right; font-weight: 700; color: var(--brown); }
@media (max-width: 767px) {
	.pensee-tab { top: auto; bottom: 96px; transform: none; padding: 12px 7px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) { .pensee-panneau { transition: none; } }
@media print { .pensee-tab, .pensee-panneau { display: none !important; } }

/* ---------- Barre au-dessus du contenu ---------- */
.topbar { display: flex; align-items: center; gap: 12px 16px; padding: 18px 0 14px; border-bottom: 4px solid var(--gold); min-height: 104px; }
.topbar__fatima { flex: none; width: auto; height: 80px; }
.topbar__title { flex: 1; margin: 0; font-family: var(--serif); font-size: clamp(18px, 2.2vw, 28px); color: var(--gold-text); text-align: center; line-height: 1.3; }
.socials { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; margin: 0; padding: 0; }
.socials a { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; color: var(--brown); }
.socials a:hover { background: var(--paper-2); color: var(--brown-dark); }
@media (max-width: 1079px) {
	.topbar { min-height: 0; flex-wrap: wrap; padding-top: 14px; }
	.topbar__fatima { display: none; }
	.topbar__title { order: 3; flex-basis: 100%; font-size: 17px; }
	.topbar .socials { margin-left: auto; }
}

/* ---------- Fil d'Ariane ---------- */
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; padding: 14px 0 0; margin: 0; font-size: 14px; color: var(--muted); }
.breadcrumb li + li::before { content: "›"; margin-right: 4px; }
.breadcrumb a { color: var(--muted); }

/* ---------- Sections ---------- */
.band { padding: 36px 0; }
.band--first { padding-top: 26px; }
.band + .band { border-top: 1px solid var(--line); }
.band--paper { background: var(--paper-2); border-radius: var(--radius); padding: 32px clamp(16px, 3vw, 36px); margin: 12px 0; }
.band--paper + .band, .band + .band--paper { border-top: 0; }
.pagehead { margin-bottom: 20px; }
.pagehead h1 { margin-bottom: .3em; }
.sectionhead { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; margin-bottom: 22px; }
.sectionhead h2 { margin: 0; padding-bottom: 8px; border-bottom: 3px solid var(--gold); }
.sectionhead a { font-weight: 600; }
.subhead { font-size: 21px; margin: 28px 0 16px; }
.backlink { margin-top: 32px; font-weight: 600; }
.postmeta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 10px; font-size: 15px; }

.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 40px; }
.grid--3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.twocol { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; margin-bottom: 32px; }
.twocol__main { flex: 2 1 460px; min-width: 0; }
.twocol__side { flex: 1 1 280px; min-width: 0; }

/* ---------- Boutons ---------- */
.btn, .wp-block-button__link { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 20px; border-radius: 6px; background: var(--sky); color: #fff; font: inherit; font-size: 15px; font-weight: 600; text-decoration: none; border: 2px solid var(--sky); cursor: pointer; }
.btn:hover, .wp-block-button__link:hover { background: var(--sky-dark); border-color: var(--sky-dark); color: #fff; }
.btn--ghost { background: transparent; color: var(--sky); }
.btn--ghost:hover { color: #fff; }
.btn--light { background: #fff; color: var(--brown); border-color: #fff; }
.btn--light:hover { background: var(--paper-2); border-color: var(--paper-2); color: var(--brown-dark); }
.btn--sky { box-shadow: 0 2px 10px rgba(0, 0, 0, .25); }
.chip { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--brown); background: var(--paper-2); border: 1px solid var(--line); padding: 3px 10px; border-radius: 4px; line-height: 1.5; text-decoration: none; }
.chip--red { background: var(--red); border-color: var(--red); color: #fff; }

/* ---------- Cartes ---------- */
.card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; position: relative; transition: box-shadow .15s, transform .15s; }
.card:hover { box-shadow: 0 6px 20px rgba(58, 28, 5, .12); transform: translateY(-2px); }
.card__media img, .card__media .ph { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.ph { display: flex; align-items: center; justify-content: center; background: var(--sky-soft) url("assets/img/texture-bleue.png"); }
.ph img { width: 60px; height: auto; opacity: .85; }
.card__body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card__title { font-size: 18px; margin: 0; line-height: 1.3; }
.card__title a { color: var(--brown); text-decoration: none; }
.card__title a::after { content: ""; position: absolute; inset: 0; } /* toute la carte est cliquable */
.card__title a:hover { text-decoration: underline; }
.card__text { font-size: 15px; color: var(--muted); margin: 0; }
.card__meta { font-size: 14px; color: var(--muted); margin: auto 0 0; }
.card__top { display: flex; gap: 12px; align-items: flex-start; }
.card__top .chip { margin-bottom: 6px; }
.card .chip { align-self: flex-start; }
.extlink::after { content: " ↗"; }

.datebadge { flex: none; width: 58px; min-height: 58px; border-radius: 8px; background: var(--brown); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 6px 0; text-align: center; line-height: 1.1; }
.datebadge__d { font-size: 24px; font-weight: 700; }
.datebadge__m { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.datebadge__y { font-size: 14px; font-weight: 700; }
.datebadge--none { background: var(--muted); }

.eventfacts { display: flex; gap: 16px; align-items: flex-start; padding: 18px; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: var(--radius); margin-bottom: 24px; max-width: 820px; }
.eventfacts p { margin: 0 0 4px; }
.eventfacts__when { font-size: 18px; font-weight: 700; color: var(--ink); }
.eventfacts .btn { margin-top: 10px; }

/* ---------- Images ---------- */
.figure { margin: 0 0 26px; border-radius: var(--radius); overflow: hidden; }
.figure--banner img { width: 100%; aspect-ratio: 16 / 6; object-fit: cover; }
.figure--poster { max-width: 820px; }
.figure--poster img { width: auto; max-width: 100%; max-height: 85vh; margin: 0 auto; border-radius: var(--radius); }

/* ---------- Texte des pages ---------- */
.prose { max-width: 900px; }
.prose p, .prose li { text-align: left; }
.prose h2 { margin-top: 1.4em; }
.prose h3 { margin-top: 1.2em; }
.prose img { border-radius: 6px; }
.prose figure { margin: 0 0 1.4em; }
.prose figcaption { font-size: 14px; color: var(--muted); }
.prose hr { border: 0; border-top: 2px solid var(--line); margin: 2em 0; }
.prose blockquote, .prayer { margin: 0 0 1.4em; padding: 16px 20px; background: #fff; border-left: 4px solid var(--gold); border-radius: 0 var(--radius) var(--radius) 0; font-style: italic; }
.prose blockquote p:last-child, .prayer p:last-child { margin: 0; }
.prose table { border-collapse: collapse; width: 100%; margin: 0 0 1.4em; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.prose .alignleft { float: left; margin: 4px 20px 12px 0; max-width: 45%; }
.prose .alignright { float: right; margin: 4px 0 12px 20px; max-width: 45%; }
.prose .aligncenter { margin-left: auto; margin-right: auto; }
.prose::after { content: ""; display: table; clear: both; }
@media (max-width: 640px) { .prose .alignleft, .prose .alignright { float: none; max-width: 100%; margin: 0 0 16px; } }
.prose .wp-block-gallery, .prose .gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.prose .wp-block-gallery figure, .prose .gallery figure { margin: 0; }
.prose .wp-block-gallery img, .prose .gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.prose .wp-block-file { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 12px 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.prose .wp-block-file__button { background: var(--sky); color: #fff; border-radius: 6px; padding: 6px 14px; text-decoration: none; }
.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; margin: 0 0 1.2em; max-width: 960px; }
.video iframe, .wp-block-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.wp-block-embed__wrapper { position: relative; aspect-ratio: 16 / 9; }
.video--file { aspect-ratio: auto; }
.video video, .prose .wp-block-video video { display: block; width: 100%; max-height: 80vh; background: #000; border-radius: var(--radius); }
.prose .wp-block-video { max-width: 960px; }

/* ---------- Accueil ---------- */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 28px; }
.quote { margin: 0; }
.quote blockquote::before { content: "“"; display: block; font-family: var(--serif); font-size: 60px; line-height: .8; color: var(--gold); }
.quote blockquote p { font-family: var(--serif); font-size: 17px; color: var(--ink); margin-bottom: 10px; }
.quote figcaption { font-weight: 700; color: var(--brown); }
.prayerlist { list-style: none; margin: 0; padding: 0; counter-reset: prayer; }
.prayerlist li { counter-increment: prayer; border-bottom: 1px solid var(--line); }
.prayerlist a { display: flex; align-items: center; gap: 14px; padding: 10px 0; text-decoration: none; color: var(--ink); }
.prayerlist a:hover strong { text-decoration: underline; }
.prayerlist img { width: 96px; height: 54px; object-fit: cover; border-radius: 6px; flex: none; }
.prayerlist strong { display: block; color: var(--brown); }
.prayerlist .muted { display: block; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; }
.prayerlist--text a::before { content: counter(prayer, decimal-leading-zero); font-family: var(--serif); font-size: 20px; color: var(--gold); width: 36px; flex: none; }
.testimony { margin: 0; padding: 22px; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); }
.testimony blockquote p { font-style: italic; }
.testimony figcaption { font-weight: 700; }
.testimonies { display: grid; gap: 24px; max-width: 900px; }
.testimony--full h3 { margin-top: 0; }
.testimony__sign { font-weight: 700; color: var(--brown); text-align: right; }

/* ---------- Listes, filtres, pagination ---------- */
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 26px; }
.toc a { display: inline-flex; align-items: center; min-height: 40px; padding: 6px 16px; border-radius: 999px; border: 2px solid var(--line); background: #fff; text-decoration: none; font-weight: 600; font-size: 15px; }
.toc a:hover { border-color: var(--brown); }
.toc a[aria-current] { background: var(--brown); border-color: var(--brown); color: #fff; }
.filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 16px; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 8px; }
.filters .field { margin: 0; flex: 1 1 220px; }
.pagination, .nav-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 30px; }
.page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 42px; min-height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: 6px; background: #fff; text-decoration: none; }
.page-numbers.current { background: var(--brown); color: #fff; border-color: var(--brown); }
.results { list-style: none; padding: 0; margin: 0; max-width: 900px; }
.results li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.results li > a { font-weight: 700; font-size: 18px; margin-left: 6px; }
.results p { margin: 4px 0 0; font-size: 15px; }
.sitemap li { padding: 3px 0; }
.infobox { padding: 20px; background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--gold); border-radius: var(--radius); }
.infobox h2 { font-size: 20px; }

/* ---------- Formulaires ---------- */
.field { margin: 0 0 16px; display: flex; flex-direction: column; gap: 6px; }
.field label, .field .label { font-weight: 600; }
.field-row { display: flex; flex-wrap: wrap; gap: 0 16px; }
.field-row > .field { flex: 1 1 220px; }
input[type="text"], input[type="email"], input[type="search"], input[type="tel"], select, textarea { width: 100%; font: inherit; padding: 10px 12px; border: 1px solid #8C7A66; border-radius: 6px; background: #fff; color: var(--ink); }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid var(--sky); outline-offset: 0; border-color: var(--sky); }
[aria-invalid="true"] { border-color: var(--red); }
.field__error, .error { color: var(--red); font-weight: 600; font-size: 15px; margin: 0; }
.field__note, .note { font-weight: 400; color: var(--muted); font-size: 14px; }
.field--check { flex-direction: row; flex-wrap: wrap; align-items: flex-start; gap: 10px; }
.field--check input { margin-top: 5px; width: 18px; height: 18px; flex: none; }
.field--check label { flex: 1; font-weight: 400; }
.field--check .field__error { flex-basis: 100%; }
.notice { padding: 14px 18px; border-radius: var(--radius); margin: 0 0 18px; }
.notice--ok { background: #E8F3E6; border: 1px solid #9CC795; }
.notice--err { background: #FBE9E7; border: 1px solid #E3A49B; }
.field--hp { position: absolute !important; left: -9999px !important; }

/* ---------- Pied de page ---------- */
.sitefooter { background: #3A1C05; color: #EADBC8; margin-top: 20px; }
.sitefooter a { color: #fff; }
.sitefooter :focus-visible { outline-color: #F2D48A; }
.sitefooter__in { max-width: 1280px; margin: 0 auto; padding: 44px 24px 28px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 32px; }
.sitefooter h2 { color: #F2D48A; font-size: 18px; padding-bottom: 8px; border-bottom: 2px solid rgba(242, 212, 138, .35); }
.sitefooter__sub { margin-top: 24px; }
.sitefooter ul { list-style: none; padding: 0; margin: 0; }
.sitefooter__col li { padding: 4px 0; }
.sitefooter address { margin-top: 14px; font-size: 15px; }
.sitefooter .socials a { color: #fff; }
.sitefooter .socials a:hover { background: rgba(255, 255, 255, .12); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { display: inline-block; padding: 4px 12px; border: 1px solid rgba(255, 255, 255, .35); border-radius: 4px; font-size: 14px; text-decoration: none; }
.tag:hover { background: rgba(255, 255, 255, .12); }
.sitefooter__bottom { max-width: 1280px; margin: 0 auto; padding: 16px 24px 24px; border-top: 1px solid rgba(255, 255, 255, .15); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; font-size: 14px; }
.sitefooter__bottom p { margin: 0; }
.sitefooter__bottom ul { display: flex; flex-wrap: wrap; gap: 6px 20px; }

/* ---------- Maintenance ---------- */
.maint { max-width: 760px; margin: 0 auto; padding: 48px 20px; }
.maint__brand { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.maint__logo { width: 60px; height: auto; }
.maint__name { font-family: var(--serif); font-size: 20px; color: var(--brown); margin: 0; }

/* ---------- Impression ---------- */
@media print {
	.banner, .sidebar, .topbar, .sitefooter, .carousel, .breadcrumb, .navbackdrop { display: none !important; }
	.layout { display: block; }
	body { background: #fff; }
}
