/* ==========================================================================
   SMCA — feuille de style du thème
   Palette stricte : vert, vert nuit, or, blanc, gris-vert. Angles 2 px.
   ========================================================================== */

:root {
	--vert: #0F3B29;
	--vert-nuit: #0A2A1D;
	--vert-survol: #1F6B4A;
	--vert-trait: #2B5A44;
	--or: #C9A24B;
	--or-texte: #8A6A22;
	--or-pale: #F4ECD8;
	--texte: #1C2A23;
	--texte-2: #3A4A42;
	--texte-3: #4A5A52;
	--clair-sur-vert: #E4ECE7;
	--doux-sur-vert: #C7D6CD;
	--filet: #D6DED8;
	--filet-2: #E1E7E2;
	--champ: #9DB0A4;
	--fond-doux: #F3F6F4;
	--vert-pale: #EEF3EF;
	--rayon: 2px;
	--titre: 'El Messiri', Georgia, serif;
	--corps: 'Readex Pro', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--largeur: 1200px;
	--marge: 24px;
	--espace-section: clamp(48px, 5vw, 80px);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
	margin: 0;
	background: #FFFFFF;
	color: var(--texte);
	font-family: var(--corps);
	font-size: 16px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; }
img { display: block; }
a { color: var(--vert); text-underline-offset: 3px; }
a:hover { color: var(--vert-survol); }
:focus-visible { outline: 3px solid var(--or); outline-offset: 3px; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
[lang="ar"] { font-family: var(--titre); }
.lecteur-seul {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.lien-evitement { position: absolute; left: 8px; top: -60px; z-index: 20; background: var(--or); color: var(--vert); padding: 10px 16px; font-weight: 600; border-radius: var(--rayon); }
.lien-evitement:focus { top: 8px; }

/* ---------- Mise en page ---------- */
.conteneur { max-width: var(--largeur); margin-inline: auto; padding-inline: var(--marge); }
.section { padding-block: var(--espace-section); }
.section--sans-haut { padding-top: 0; }
.section--sans-bas { padding-bottom: 0; }
.fond-doux { background: var(--fond-doux); }
.fond-vert { background: var(--vert); color: #FFFFFF; }
.pile { display: flex; flex-direction: column; gap: var(--pile, 16px); }
.duo { display: flex; flex-wrap: wrap; gap: var(--duo-gap, 40px 72px); align-items: var(--duo-align, start); }
.duo > * { min-width: 0; }
.duo__large { flex: 7 1 460px; }
.duo__moyen { flex: 6 1 420px; }
.duo__etroit { flex: 4 1 320px; }
.duo__bouton { flex: 3 1 240px; display: flex; justify-content: flex-end; }
.entete-section { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 12px 32px; }

/* ---------- Typographie ---------- */
.titre-1 { font-family: var(--titre); font-weight: 600; font-size: clamp(34px, 4.2vw, 54px); line-height: 1.08; text-wrap: balance; }
.titre-2 { font-family: var(--titre); font-weight: 600; font-size: clamp(28px, 2.8vw, 36px); line-height: 1.12; color: var(--vert); text-wrap: balance; }
.fond-vert .titre-2 { color: #FFFFFF; }
.titre-3 { font-family: var(--titre); font-weight: 600; font-size: clamp(22px, 2vw, 26px); line-height: 1.2; color: var(--vert); }
.surtitre { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--texte-3); }
.chapo { font-size: clamp(16px, 1.3vw, 18px); }
.accroche { font-family: var(--titre); font-weight: 500; font-size: clamp(20px, 1.9vw, 24px); line-height: 1.45; color: var(--vert); }
.discret { font-size: 15px; color: var(--texte-2); }
.note { font-size: 13px; color: var(--texte-3); }
.mesure { max-width: 36em; }
.lien-fort { font-weight: 500; }
.liens { display: flex; flex-wrap: wrap; gap: 8px 28px; }

/* ---------- Boutons ---------- */
.boutons { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.bouton {
	display: inline-block; font: inherit; font-weight: 500; line-height: 1.4; text-align: center; text-decoration: none;
	padding: 13px 22px; border: 0; border-radius: var(--rayon); cursor: pointer;
	background: var(--vert); color: #FFFFFF; transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.bouton:hover { background: var(--vert-survol); color: #FFFFFF; }
.bouton--or { background: var(--or); color: var(--vert); font-weight: 600; }
.bouton--or:hover { background: #D6B464; color: var(--vert); }
.bouton--contour { background: transparent; color: var(--vert); border: 1.5px solid var(--vert); padding: 11.5px 20.5px; }
.bouton--contour:hover { background: var(--vert); color: #FFFFFF; }
.bouton--contour-or { background: transparent; color: #FFFFFF; border: 1.5px solid var(--or); padding: 11.5px 20.5px; }
.bouton--contour-or:hover { background: rgba(201, 162, 75, .14); color: #FFFFFF; }
.bouton--petit { padding: 10px 18px; }

/* ---------- Barre des horaires ---------- */
.barre-horaires { background: var(--vert-nuit); color: #D9E3DC; font-size: 14px; }
.barre-horaires .conteneur { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding-block: 10px; }
.barre-horaires strong { color: #FFFFFF; font-weight: 600; }
.horaires-tous { display: flex; gap: 20px; font-variant-numeric: tabular-nums; }

/* ---------- En-tête ---------- */
.entete { background: var(--vert); border-bottom: 1px solid var(--vert-trait); position: relative; z-index: 10; }
.entete .conteneur { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 14px; }
.entete__logo img { height: 40px; width: auto; }
.nav-ordi { display: flex; align-items: center; gap: 30px; font-size: 15px; }
.nav-ordi a:not(.bouton) { color: #FFFFFF; text-decoration: none; padding-block: 4px; }
.nav-ordi a:not(.bouton):hover { box-shadow: inset 0 -1px 0 rgba(255, 255, 255, .6); }
.nav-ordi a[aria-current="page"]:not(.bouton) { box-shadow: inset 0 -2px 0 var(--or); }
.menu-mobile { display: none; }
.menu-mobile summary {
	display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px;
	border: 1.5px solid #FFFFFF; border-radius: var(--rayon); font-weight: 500; color: #FFFFFF;
	list-style: none; cursor: pointer;
}
.menu-mobile summary::-webkit-details-marker { display: none; }
.menu-mobile .icone-fermer { display: none; }
.menu-mobile[open] .icone-ouvrir { display: none; }
.menu-mobile[open] .icone-fermer { display: block; }
.menu-mobile nav {
	position: absolute; left: 0; right: 0; top: 100%; background: #FFFFFF; border-bottom: 1px solid var(--filet-2);
	padding: 8px var(--marge) 24px; display: flex; flex-direction: column; box-shadow: 0 16px 32px rgba(10, 42, 29, .12);
}
.menu-mobile nav a:not(.bouton) { text-decoration: none; padding: 14px 0; border-bottom: 1px solid var(--filet-2); }
.menu-mobile nav a[aria-current="page"]:not(.bouton) { font-weight: 600; }
.menu-mobile nav .bouton { margin-top: 16px; }

/* ---------- Bandeau titre ---------- */
.bandeau { position: relative; overflow: hidden; isolation: isolate; background: var(--vert); color: #FFFFFF; }
.bandeau .conteneur { padding-block: clamp(32px, 4.5vw, 56px) clamp(32px, 4vw, 52px); display: flex; flex-direction: column; gap: 14px; }
.bandeau--viaduc .conteneur { padding-bottom: 8px; }
.bandeau__arabe { font-size: clamp(18px, 1.8vw, 22px); line-height: 1.5; color: var(--or); align-self: flex-start; }
.bandeau__intro { max-width: 38em; color: var(--clair-sur-vert); font-size: clamp(16px, 1.3vw, 18px); }
.pastille-construction {
	align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; margin-top: 4px;
	font-size: 14px; font-weight: 500; border: 1.5px solid var(--or); padding: 6px 14px; border-radius: var(--rayon);
}
.pastille-construction::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--or); }

/* ---------- Ornements (un seul par écran) ---------- */
.rosace {
	position: absolute; z-index: -1; pointer-events: none; opacity: .32;
	width: 560px; height: 560px; right: -160px; top: -200px;
	background: url(../img/rosace-or.svg) center / contain no-repeat;
	-webkit-mask-image: radial-gradient(circle at center, #000 25%, transparent 68%);
	mask-image: radial-gradient(circle at center, #000 25%, transparent 68%);
}
.rosace--bas { top: auto; bottom: -330px; right: -200px; width: 600px; height: 600px; opacity: .3; }
.rosace--soutenir { top: auto; bottom: -240px; right: -220px; width: 640px; height: 640px; opacity: .3; }
.viaduc-cadre {
	-webkit-mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
	mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.viaduc {
	height: 160px; background: url(../img/viaduc.svg) repeat-x center top / auto 160px;
	-webkit-mask: linear-gradient(to bottom, #000 35%, transparent);
	mask: linear-gradient(to bottom, #000 35%, transparent);
}
.bandeau .viaduc-cadre { margin-top: -24px; }
.bandeau .viaduc { height: 120px; }

/* ---------- Accueil ---------- */
.accueil-haut { position: relative; background: var(--vert); color: #FFFFFF; }
.accueil-haut .conteneur { padding-block: clamp(24px, 3.2vw, 40px) 0; display: flex; flex-wrap: wrap; gap: 32px 56px; align-items: center; }
.accueil-haut__texte { flex: 7 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.accueil-haut__arabe { font-size: clamp(18px, 1.8vw, 22px); color: var(--or); text-align: left; }
.accueil-haut h1 { font-family: var(--titre); font-weight: 600; font-size: clamp(36px, 4.2vw, 58px); line-height: 1.04; text-wrap: balance; }
.accueil-haut__lieu { font-size: clamp(15px, 1.3vw, 17px); color: var(--doux-sur-vert); margin-top: -4px; }
.accueil-haut__intro { max-width: 32em; color: var(--clair-sur-vert); }
.accueil-haut .boutons { margin-top: 8px; }

.panneau-horaires { flex: 4 1 300px; min-width: 0; max-width: 340px; margin-left: auto; }
.panneau-horaires__arc {
	background: var(--vert-nuit); aspect-ratio: 100 / 34; display: flex; align-items: center; justify-content: center; padding-top: 8%;
	-webkit-mask: url(../img/arc-tete.svg) center / 100% 100% no-repeat; mask: url(../img/arc-tete.svg) center / 100% 100% no-repeat;
}
.panneau-horaires__arc svg { width: 15%; height: auto; }
.panneau-horaires__corps { background: var(--vert-nuit); margin: -1px 8% 0; padding: 0 20px 18px; display: flex; flex-direction: column; }
.panneau-horaires h2 { font-family: var(--titre); font-weight: 600; font-size: 22px; margin-bottom: 2px; }
.panneau-horaires__date { font-size: 13px; color: var(--doux-sur-vert); margin-bottom: 10px; }
.liste-horaires { display: flex; flex-direction: column; font-size: 15px; }
.liste-horaires > div { display: flex; justify-content: space-between; gap: 16px; padding: 6px 0; border-top: 1px solid var(--vert-trait); }
.liste-horaires > div:last-child { border-bottom: 1px solid var(--vert-trait); }
.liste-horaires dt span { color: var(--or); margin-left: 6px; }
.liste-horaires dd { font-variant-numeric: tabular-nums; }
.liste-horaires .prochaine { color: var(--or); font-weight: 600; }
.panneau-horaires__note { margin-top: 10px; font-size: 12px; line-height: 1.5; color: var(--doux-sur-vert); }
.panneau-horaires__note a { color: var(--doux-sur-vert); }

/* Le viaduc se pose sur la section suivante : les piles descendent jusqu'au blanc. */
.accueil-haut .viaduc-cadre { margin-top: 4px; }
.accueil-haut .viaduc {
	height: 84px; background: url(../img/viaduc-court.svg) repeat-x center bottom / auto 84px;
	-webkit-mask: linear-gradient(to top, #000 45%, rgba(0,0,0,.35) 80%, transparent); mask: linear-gradient(to top, #000 45%, rgba(0,0,0,.35) 80%, transparent);
}
.defiler {
	position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); z-index: 1;
	display: flex; flex-direction: column; align-items: center; gap: 4px;
	font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--doux-sur-vert); text-decoration: none;
	background: var(--vert); padding: 6px 12px 4px; border-radius: var(--rayon);
}
.defiler:hover { color: #FFFFFF; }
.defiler svg { animation: defiler 2.4s ease-in-out infinite; }
@keyframes defiler { 0%, 100% { transform: translateY(0); opacity: .7; } 50% { transform: translateY(4px); opacity: 1; } }

.liste-dates { list-style: none; padding: 0; display: flex; flex-direction: column; }
.liste-dates li { display: flex; flex-wrap: wrap; gap: 4px 28px; padding: 20px 0; border-top: 1px solid var(--filet); }
.liste-dates li > :first-child { flex: 0 0 140px; font-weight: 600; color: var(--or-texte); }
.liste-dates li > :last-child { flex: 1 1 240px; }
.liste-dates .aujourdhui { border-top: 2px solid var(--vert); border-bottom: 1px solid var(--filet); color: var(--vert); }
.liste-dates .aujourdhui > * { color: var(--vert) !important; font-weight: 500; }
.liste-dates .aujourdhui > :first-child { font-weight: 600; }

.galerie-trois { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: end; }
.galerie-trois img { width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; border-radius: var(--rayon); }

/* ---------- Bloc « Soutenir » vert ---------- */
.bloc-soutenir { position: relative; overflow: hidden; isolation: isolate; }
.verset { display: flex; flex-direction: column; gap: 14px; }
.verset blockquote { font-family: var(--titre); font-weight: 500; font-size: clamp(22px, 2.4vw, 30px); line-height: 1.8; color: var(--or); }
.verset figcaption { font-size: 16px; color: var(--clair-sur-vert); }
.fond-vert p { color: var(--clair-sur-vert); }
.fond-vert a:not(.bouton) { color: #FFFFFF; }
.fond-vert .note { color: var(--doux-sur-vert); }

/* ---------- Le chantier ---------- */
.suite { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.suite li { border-top: 3px solid var(--filet); padding-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.suite li.en-cours { border-top-color: var(--or); }
.suite__statut { align-self: start; font-size: 13px; font-weight: 600; padding: 3px 0; border-radius: var(--rayon); color: var(--texte-3); }
.en-cours .suite__statut { background: var(--or-pale); color: var(--vert); padding-inline: 10px; }
.suite__texte { font-family: var(--titre); font-weight: 600; font-size: 21px; line-height: 1.25; color: var(--vert); }
.chronologie { border-bottom: 1px solid var(--filet); }
.annee { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 8px 48px; padding: 36px 0; border-top: 1px solid var(--filet); }
.annee > h3 { position: sticky; top: 24px; align-self: start; font-family: var(--titre); font-weight: 600; font-size: clamp(32px, 3.4vw, 44px); line-height: 1; color: var(--vert); }
.annee ol { list-style: none; padding: 0; }
.etape { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 2px 28px; padding: 18px 0; }
.etape + .etape { border-top: 1px dashed var(--filet); }
.etape__periode { font-weight: 600; color: var(--or-texte); }
.etape__titre { font-weight: 600; color: var(--vert); }
.etape__texte { margin-top: 2px; color: var(--texte-2); }
.etape__texte p + p { margin-top: 8px; }
.galerie-chantier { margin-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.galerie-chantier__grille { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; aspect-ratio: 16 / 9; }
.galerie-chantier__grille img { width: 100%; height: 100%; min-height: 0; object-fit: cover; border-radius: var(--rayon); }
.galerie-chantier__grille img:first-child { grid-row: 1 / 3; }
.galerie-chantier__grille.une-seule { grid-template-columns: 1fr; grid-template-rows: 1fr; }

/* ---------- Soutenir ---------- */
.securise { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--texte-3); }
.affectation { border-left: 3px solid var(--or); padding: 4px 0 4px 18px; }
.affectation strong { display: block; color: var(--vert); }
.moyens { list-style: none; padding: 0; border-top: 1px solid var(--filet); border-bottom: 1px solid var(--filet); }
.moyens li { padding: 20px 0; display: flex; flex-direction: column; gap: 4px; }
.moyens li + li { border-top: 1px solid var(--filet); }
.moyens h4 { font-size: 17px; font-weight: 600; color: var(--vert); }
.moyens p { font-size: 16px; color: var(--texte-2); }
.moyens a { font-size: 15px; font-weight: 500; margin-top: 4px; align-self: start; }
.formules { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.formule { border: 1px solid var(--filet); border-radius: var(--rayon); padding: 24px; display: flex; flex-direction: column; gap: 8px; background: #FFFFFF; }
.formule h3 { font-size: 16px; font-weight: 600; color: var(--or-texte); }
.formule__prix { font-family: var(--titre); font-weight: 600; font-size: 30px; line-height: 1.1; color: var(--vert); }
.formule__prix span { font-family: var(--corps); font-size: 16px; font-weight: 400; color: var(--texte-2); }
.formule p:last-child { font-size: 15px; color: var(--texte-2); }

/* ---------- Apprendre ---------- */
.cours { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px 48px; }
.cours li { border-top: 3px solid var(--vert); padding-top: 22px; display: flex; flex-direction: column; gap: 14px; }
.cours dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 20px; font-size: 16px; }
.cours dt { font-weight: 600; color: var(--or-texte); }

/* ---------- L'association ---------- */
.photo-portrait { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--rayon); }
.reperes { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 24px; }
.reperes > div { border-top: 1px solid var(--filet); padding-top: 16px; display: flex; flex-direction: column; gap: 4px; }
.reperes dt { order: 2; font-size: 15px; color: var(--texte-2); }
.reperes dd { order: 1; font-family: var(--titre); font-weight: 600; font-size: clamp(30px, 3vw, 40px); line-height: 1.05; color: var(--vert); }
.fiche { border-bottom: 1px solid var(--filet); }
.fiche > div { display: grid; grid-template-columns: minmax(120px, 160px) 1fr; gap: 4px 20px; padding: 12px 0; border-top: 1px solid var(--filet); }
.fiche dt { font-size: 15px; font-weight: 600; color: var(--or-texte); }

/* ---------- Actualités ---------- */
.rubrique { font-size: 13px; font-weight: 500; color: var(--vert); background: var(--vert-pale); padding: 3px 10px; border-radius: var(--rayon); white-space: nowrap; }
.meta { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.meta time { font-size: 15px; font-weight: 600; color: var(--or-texte); }
.une { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px 56px; align-items: center; text-decoration: none; color: inherit; }
.une:hover { color: inherit; }
.une img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--rayon); }
.une__texte { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.une__texte p { color: var(--texte-2); }
.une__lire { font-weight: 500; color: var(--vert); text-decoration: underline; text-underline-offset: 4px; }
.titre-actu { font-family: var(--titre); font-weight: 600; color: var(--vert); }
.une .titre-actu { font-size: clamp(26px, 2.8vw, 36px); line-height: 1.12; }
.une:hover .titre-actu, .liste-actu a:hover .titre-actu { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.groupe-annee { display: flex; flex-direction: column; gap: 8px; }
.liste-actu { list-style: none; padding: 0; border-bottom: 1px solid var(--filet); }
.liste-actu a { display: grid; grid-template-columns: 170px minmax(0, 1fr) auto; gap: 6px 32px; padding: 24px 0; border-top: 1px solid var(--filet); text-decoration: none; color: inherit; align-items: baseline; }
.liste-actu time { font-size: 15px; font-weight: 600; color: var(--or-texte); }
.liste-actu .titre-actu { font-size: 21px; line-height: 1.3; }
.liste-actu p { margin-top: 4px; font-size: 16px; color: var(--texte-2); }
.encart { display: flex; flex-wrap: wrap; gap: 16px 40px; align-items: center; justify-content: space-between; padding: 28px 32px; background: var(--fond-doux); border-radius: var(--rayon); }
.encart p { flex: 1 1 320px; }
.pagination { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.pagination .page-numbers { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0 12px; border: 1.5px solid var(--champ); border-radius: var(--rayon); text-decoration: none; }
.pagination .current { background: var(--vert); border-color: var(--vert); color: #FFFFFF; }

/* ---------- Article ---------- */
.fil { font-size: 15px; font-weight: 500; }
.article-entete { max-width: 760px; margin: clamp(28px, 4vw, 48px) auto 0; display: flex; flex-direction: column; gap: 16px; }
.article-entete h1 { font-family: var(--titre); font-weight: 600; font-size: clamp(32px, 3.8vw, 50px); line-height: 1.1; color: var(--vert); text-wrap: balance; }
.article-entete .chapo { font-size: clamp(18px, 1.5vw, 20px); line-height: 1.55; color: var(--texte-2); }
.article-image { margin-top: clamp(32px, 4vw, 48px); display: flex; flex-direction: column; gap: 10px; }
.article-image img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; border-radius: var(--rayon); }
.partage { margin-top: 16px; padding-top: 24px; border-top: 1px solid var(--filet); display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.partage > span { font-size: 15px; color: var(--texte-3); margin-right: 6px; }
.partage a, .partage button { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1.5px solid var(--champ); border-radius: var(--rayon); background: transparent; color: var(--vert); text-decoration: none; font: inherit; font-size: 15px; font-weight: 500; cursor: pointer; }
.partage a:hover, .partage button:hover { border-color: var(--vert); }

/* Contenu rédigé dans l'éditeur (articles, pages simples) */
.prose { max-width: 680px; margin-inline: auto; display: flex; flex-direction: column; gap: 18px; font-size: 17px; line-height: 1.7; }
.prose > * { margin: 0; }
.prose h2 { margin-top: 20px; font-family: var(--titre); font-weight: 600; font-size: clamp(26px, 2.6vw, 32px); line-height: 1.2; color: var(--vert); }
.prose h3 { margin-top: 12px; font-size: 20px; font-weight: 600; color: var(--vert); }
.prose ul, .prose ol { padding-left: 1.3em; display: flex; flex-direction: column; gap: 6px; }
.prose blockquote, .prose .wp-block-quote, .prose .wp-block-pullquote { margin: 12px 0; padding: 4px 0 4px 24px; border-left: 3px solid var(--or); font-family: var(--titre); font-weight: 500; font-size: clamp(22px, 2.2vw, 27px); line-height: 1.45; color: var(--vert); }
.prose blockquote p { margin: 0; }
.prose blockquote cite { display: block; margin-top: 8px; font-family: var(--corps); font-size: 15px; font-style: normal; color: var(--texte-3); }
.prose figure img { width: 100%; height: auto; border-radius: var(--rayon); }
.prose figcaption, .prose .wp-element-caption { margin-top: 10px; font-size: 13px; color: var(--texte-3); }
.prose .alignwide, .prose .alignfull { width: min(100vw - 2 * var(--marge), var(--largeur) - 2 * var(--marge)); margin-inline: calc(50% - min(100vw - 2 * var(--marge), var(--largeur) - 2 * var(--marge)) / 2); }
.prose .wp-block-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.prose .wp-block-gallery img { aspect-ratio: 4 / 3; object-fit: cover; }
.prose .basmala { font-family: var(--titre); font-weight: 500; font-size: 22px; color: var(--or-texte); text-align: center; }
.prose a { text-decoration-thickness: 1px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.prose th { text-align: left; font-weight: 600; color: var(--or-texte); padding: 12px 16px 12px 0; border-bottom: 2px solid var(--vert); vertical-align: bottom; }
.prose td { padding: 14px 16px 14px 0; border-bottom: 1px solid var(--filet); vertical-align: top; }
.prose .wp-block-table { margin: 0; overflow-x: auto; }

/* ---------- Pages juridiques et pages avec sommaire ---------- */
.legal { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 40px 72px; align-items: start; }
.sommaire { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 10px; font-size: 15px; padding-top: 8px; }
.sommaire a { font-weight: 500; }
.sommaire a.niveau-3 { font-weight: 400; padding-left: 14px; }
.legal .prose { margin-inline: 0; max-width: 820px; gap: 14px; font-size: 16px; line-height: 1.65; }
.legal .prose h2 { margin-top: 48px; font-size: clamp(30px, 3.2vw, 40px); line-height: 1.1; scroll-margin-top: 24px; }
.legal .prose h2:first-child { margin-top: 0; }
.legal .prose h3 { margin-top: 12px; font-size: 18px; scroll-margin-top: 24px; }

/* ---------- Contact ---------- */
.coordonnees { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px 32px; }
.coordonnees > div { display: flex; flex-direction: column; gap: 4px; }
.coordonnees dt { font-size: 14px; font-weight: 600; color: var(--or-texte); }
.formulaire { display: flex; flex-direction: column; gap: 18px; padding-top: 32px; border-top: 1px solid var(--filet); }
.formulaire__grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px 24px; }
.champ { display: flex; flex-direction: column; gap: 6px; }
.champ label { font-size: 15px; font-weight: 500; }
.champ label span { font-weight: 400; color: var(--texte-3); }
.champ input, .champ select, .champ textarea { font: inherit; padding: 13px 14px; border: 1.5px solid var(--champ); border-radius: var(--rayon); background: #FFFFFF; color: var(--texte); width: 100%; }
.champ textarea { resize: vertical; min-height: 160px; }
.champ input:focus, .champ select:focus, .champ textarea:focus { outline: 3px solid var(--or); outline-offset: 1px; border-color: var(--vert); }
.piege { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.message-retour { padding: 16px 20px; border-radius: var(--rayon); border-left: 3px solid var(--vert); background: var(--vert-pale); }
.message-retour--erreur { border-left-color: #A3361F; background: #FBEDEA; }
.mawaqit { border: 1px solid var(--filet); border-radius: var(--rayon); min-height: 420px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 32px 28px; text-align: center; background: var(--fond-doux); color: var(--texte-2); }
.mawaqit.charge { padding: 0; background: #FFFFFF; min-height: 0; display: block; }
.mawaqit iframe { display: block; width: 100%; height: 560px; border: 0; }

/* ---------- Ils nous soutiennent ---------- */
.partenaire-une { border: 1px solid var(--filet); border-radius: var(--rayon); padding: clamp(24px, 3vw, 40px); display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: center; background: #FFFFFF; }
.partenaire-une img { width: 220px; max-width: 100%; height: auto; }
.partenaire-une > div { flex: 1 1 380px; display: flex; flex-direction: column; gap: 12px; }
.grille-rouen { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.tuile { border: 1px solid var(--filet-2); border-radius: var(--rayon); background: #FFFFFF; padding: 22px 22px 20px; display: flex; flex-direction: column; gap: 4px; }
.tuile__ville { font-family: var(--titre); font-weight: 600; font-size: 22px; line-height: 1.2; color: var(--vert); }
.tuile__lieu { font-size: 14px; color: var(--texte-2); }
.tuile__asso { font-size: 13px; color: #5E6E65; }
.regions { display: flex; flex-direction: column; border-bottom: 1px solid var(--filet-2); }
.region { display: flex; flex-wrap: wrap; gap: 12px 32px; padding: 22px 0; border-top: 1px solid var(--filet-2); }
.region h3 { flex: 0 0 200px; font-size: 15px; font-weight: 600; color: var(--or-texte); }
.region ul { flex: 1 1 480px; min-width: 0; list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px 24px; font-size: 15px; }
.region li { display: flex; flex-direction: column; gap: 1px; }
.region li > span:first-child { font-weight: 500; }
.region .tuile__lieu, .region .tuile__asso { font-size: 13px; }
.rangee-logos { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.rangee-logos li { border: 1px solid var(--filet-2); border-radius: var(--rayon); background: #FFFFFF; height: 104px; display: flex; align-items: center; justify-content: center; padding: 14px; }
.rangee-logos img { max-width: 100%; max-height: 72px; width: auto; height: auto; object-fit: contain; }

/* ---------- La salle de prières ---------- */
.tableau-horaires { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: 16px; }
.tableau-horaires th, .tableau-horaires td { padding: 12px 10px; text-align: center; border-bottom: 1px solid var(--filet); }
.tableau-horaires th:first-child, .tableau-horaires td:first-child { text-align: left; padding-left: 0; }
.tableau-horaires thead th { font-weight: 600; color: var(--or-texte); border-bottom: 2px solid var(--vert); font-size: 15px; }
.tableau-horaires thead th span { display: block; font-family: var(--titre); font-weight: 500; color: var(--texte-3); }
.tableau-horaires tr.aujourdhui td { font-weight: 600; color: var(--vert); background: var(--fond-doux); }
.defile { overflow-x: auto; }
.bloc-attente { border: 1px dashed var(--champ); border-radius: var(--rayon); padding: 24px; background: var(--fond-doux); color: var(--texte-2); }

/* ---------- Pied de page ---------- */
.pied { background: var(--vert-nuit); color: var(--doux-sur-vert); font-size: 14px; }
.pied .conteneur { padding-block: 48px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; align-items: start; }
.pied img { height: 44px; width: auto; }
.pied__col { display: flex; flex-direction: column; gap: 8px; }
.pied a { color: #FFFFFF; }
.pied a.discret-pied { color: var(--doux-sur-vert); }

/* ---------- Erreur 404 ---------- */
.introuvable { min-height: 40vh; }

@media (min-height: 900px) and (min-width: 861px) {
	.accueil-haut .conteneur { padding-top: clamp(40px, 4.5vw, 64px); }
	.panneau-horaires__arc { aspect-ratio: 100 / 40; }
	.liste-horaires > div { padding: 8px 0; }
	.accueil-haut .viaduc-cadre { margin-top: 24px; }
}

@media (max-height: 700px) and (min-width: 861px) {
	.accueil-haut .conteneur { padding-top: 16px; }
	.accueil-haut__texte { gap: 12px; }
	.accueil-haut h1 { font-size: clamp(34px, 3.6vw, 48px); }
	.panneau-horaires__arc { aspect-ratio: 100 / 26; padding-top: 6%; }
	.panneau-horaires__arc svg { width: 11%; }
	.liste-horaires > div { padding: 4px 0; }
	.panneau-horaires__date { margin-bottom: 6px; }
	.accueil-haut .viaduc { height: 64px; }
}

/* ---------- Apparition douce au défilement ---------- */
.js .apparait { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1); }
.js .apparait.visible { opacity: 1; transform: none; }
html { scroll-behavior: smooth; }

/* ==========================================================================
   Adaptation aux écrans
   ========================================================================== */
@media (max-width: 960px) {
	.legal { grid-template-columns: 1fr; }
	.sommaire { position: static; }
}
@media (max-width: 860px) {
	.defiler { display: none; }
	.panneau-horaires { max-width: 380px; margin-inline: auto; }
	.nav-ordi { display: none; }
	.menu-mobile { display: block; }
	.horaires-tous { display: none; }
	.boutons .bouton { flex: 1 1 100%; }
	.duo__bouton { justify-content: stretch; }
	.duo__bouton .bouton { flex: 1 1 100%; }
	.annee { grid-template-columns: 1fr; padding: 28px 0; }
	.annee > h3 { position: static; }
	.suite { grid-template-columns: 1fr; }
	.une { grid-template-columns: 1fr; }
	.galerie-trois { gap: 12px; }
}
@media (max-width: 760px) {
	.legal .prose table thead { display: none; }
	.legal .prose table tr { display: block; padding: 16px 0; border-bottom: 1px solid var(--filet); }
	.legal .prose table td { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 4px 0; border: 0; }
	.legal .prose table td::before { content: attr(data-label); font-weight: 600; color: var(--or-texte); font-size: 14px; }
	.legal .prose table td:first-child { display: block; font-size: 17px; font-weight: 600; color: var(--vert); padding-bottom: 8px; }
	.legal .prose table td:first-child::before { content: none; }
}
@media (max-width: 640px) {
	.liste-actu a { grid-template-columns: 1fr; }
	.liste-actu .rubrique { justify-self: start; }
	.galerie-trois { grid-template-columns: 1fr 1fr; }
	.galerie-trois img:first-child { grid-column: 1 / 3; aspect-ratio: 4 / 3; }
}
@media (max-width: 560px) {
	.etape { grid-template-columns: 1fr; }
	.encart { padding: 24px 20px; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
	.js .apparait { opacity: 1; transform: none; }
	html { scroll-behavior: auto; }
}
@media print {
	.barre-horaires, .entete, .pied, .partage, .bloc-soutenir { display: none; }
	.bandeau { background: none; color: #000; }
}
