/* ==========================================================================
   Thème ASLDS – Domaine de Santeny
   Surcouche de Bootstrap 5 (CSS 3, variables personnalisées).
   Palette issue du logo : pétrole et crème, accent doré.
   ========================================================================== */

:root {
	--petrol: #15323D;
	--petrol-2: #1F4654;
	--petrol-3: #0E252E;
	--creme: #F1ECDF;
	--papier: #FBF9F3;
	--sable: #E4DFD2;
	--or: #C9A25C;
	--or-2: #B98F47;
	--or-txt: #8A6A2C;
	--soleil: #DDB86F;
	--texte: #1E2F36;
	--muted: #56666C;
	--vert: #4F7A5C;
	--ocre: #94702D;
	--brique: #A9524C;
	--bleu: #3F7196;
	--radius: 8px;
	--serif: "Source Serif 4", Georgia, "Times New Roman", serif;
	--sans: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
	--shadow: 0 1px 3px rgba(14, 37, 46, .14);
	--shadow-lg: 0 10px 24px rgba(14, 37, 46, .16);

	/* Bootstrap */
	--bs-body-font-family: var(--sans);
	--bs-body-font-size: 1.125rem;
	--bs-body-line-height: 1.55;
	--bs-body-color: var(--texte);
	--bs-body-bg: #fff;
	--bs-primary: #15323D;
	--bs-primary-rgb: 21, 50, 61;
	--bs-link-color: var(--petrol);
	--bs-link-color-rgb: 21, 50, 61;
	--bs-link-hover-color: var(--or-txt);
	--bs-link-hover-color-rgb: 138, 106, 44;
	--bs-border-color: var(--sable);
	--bs-border-radius: var(--radius);
	--bs-focus-ring-color: rgba(201, 162, 92, .5);
	--bs-secondary-color: var(--muted);
}

html { scroll-behavior: smooth; scroll-padding-top: 120px; }
body { -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { text-underline-offset: 3px; }
h1, h2, h3, h4, .h1, .h2, .h3, .h4, .h5 { font-family: var(--serif); font-weight: 600; color: var(--petrol); line-height: 1.18; }
:focus-visible { outline: 3px solid var(--or); outline-offset: 2px; }
.text-muted { color: var(--muted) !important; }

/* Pictogrammes du sprite */
.aslds-icon { width: 1.25em; height: 1.25em; flex: none; display: inline-block; vertical-align: -.2em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.aslds-icon.flip { transform: rotate(180deg); }

/* Lien d'évitement */
.skip-link { position: absolute; left: 1rem; top: 1rem; z-index: 2000; background: #fff; padding: .75rem 1rem; border-radius: var(--radius); box-shadow: var(--shadow-lg); }

/* Boutons */
.btn { --bs-btn-font-weight: 600; --bs-btn-border-radius: 999px; --bs-btn-padding-x: 1.25rem; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; }
.btn .aslds-icon { width: 1.1em; height: 1.1em; }
.btn-lg { --bs-btn-padding-x: 1.75rem; --bs-btn-font-size: 1.125rem; }
.btn-or { --bs-btn-bg: var(--or); --bs-btn-border-color: var(--or); --bs-btn-color: var(--petrol-3); --bs-btn-hover-bg: var(--or-2); --bs-btn-hover-border-color: var(--or-2); --bs-btn-hover-color: var(--petrol-3); --bs-btn-active-bg: var(--or-2); --bs-btn-active-color: var(--petrol-3); }
.btn-petrol { --bs-btn-bg: var(--petrol); --bs-btn-border-color: var(--petrol); --bs-btn-color: #fff; --bs-btn-hover-bg: var(--petrol-2); --bs-btn-hover-border-color: var(--petrol-2); --bs-btn-hover-color: #fff; --bs-btn-active-bg: var(--petrol-3); --bs-btn-active-color: #fff; }
.btn-outline-petrol { --bs-btn-color: var(--petrol); --bs-btn-border-color: var(--petrol); --bs-btn-hover-bg: var(--petrol); --bs-btn-hover-border-color: var(--petrol); --bs-btn-hover-color: #fff; --bs-btn-active-bg: var(--petrol-2); --bs-btn-active-color: #fff; }
.btn-sm { --bs-btn-padding-x: .85rem; }
.link-more { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; font-size: 1rem; text-decoration-color: var(--or); }
.link-more .aslds-icon { width: 1em; height: 1em; }

/* Petits éléments */
.eyebrow { font-size: .875rem; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; color: var(--or-txt); margin-bottom: .5rem; }
.rule { display: block; width: 62px; height: 3px; background: var(--or); margin: 1.1rem 0 1.25rem; }
.badge-aslds { display: inline-block; font-size: .8125rem; font-weight: 700; padding: .15rem .6rem; border-radius: 4px; background: var(--creme); color: var(--petrol); margin-bottom: .5rem; }
.narrow { max-width: 820px; }
.media-frame { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.media-frame img { width: 100%; display: block; }

/* ---------- Bandeau haut ---------- */
.topbar { background: var(--petrol); color: #fff; font-size: .95rem; }
.topbar-inner { display: flex; align-items: stretch; justify-content: space-between; gap: 1rem; min-height: 42px; }
.topbar-info { display: flex; align-items: center; gap: .5rem; margin: 0; padding: .4rem 0; }
.topbar-info .aslds-icon { color: var(--soleil); }
.topbar-info a { color: var(--soleil); font-weight: 600; margin-left: .5rem; }
.topbar-links { display: flex; align-items: stretch; gap: 1.5rem; }
.topbar-links > a, .topbar-search { display: flex; align-items: center; gap: .45rem; color: #fff; text-decoration: none; background: none; border: 0; padding: 0; font-size: .95rem; }
.topbar-links > a:hover, .topbar-search:hover { color: var(--soleil); }
.topbar-links > .btn-residents { background: var(--or); color: var(--petrol-3) !important; padding: 0 1.4rem !important; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; font-size: .85rem !important; }
.topbar-links > .btn-residents:hover { background: var(--or-2); }
#recherche { background: var(--petrol-2); }

/* ---------- En-tête ---------- */
.site-header { background: #fff; border-bottom: 1px solid var(--sable); }
.site-header .navbar { padding: .6rem 1rem; }
.brand { display: flex; align-items: center; gap: .8rem; text-decoration: none; color: var(--petrol); margin-right: 1.5rem; }
.brand-logo { width: 66px; height: 66px; object-fit: contain; }
.brand-name { display: block; font: 600 2rem/1 var(--serif); letter-spacing: .015em; }
.brand-sub { display: block; font: 400 1.15rem/1.2 var(--serif); }
.main-nav { gap: .1rem; }
.main-nav > li { display: flex; align-items: center; flex-wrap: wrap; position: relative; }
.main-nav .nav-link { font-size: .9rem; font-weight: 600; text-transform: uppercase; letter-spacing: .02em; color: var(--petrol); padding: .75rem .55rem; position: relative; }
.main-nav .nav-link:hover, .main-nav .nav-link:focus { color: var(--or-txt); }
.main-nav .nav-link.active::after { content: ""; position: absolute; left: .55rem; right: .55rem; bottom: .3rem; height: 2px; background: var(--or); }
.main-nav .dropdown-toggle { background: none; border: 0; padding: .5rem .3rem .5rem 0; color: var(--petrol); line-height: 1; }
.main-nav .dropdown-toggle::after { margin: 0; border-top-width: .32em; }
.main-nav .dropdown-menu { --bs-dropdown-border-color: var(--sable); --bs-dropdown-link-active-bg: var(--papier); --bs-dropdown-link-active-color: var(--petrol); border-top: 2px solid var(--or); border-radius: 0 0 var(--radius) var(--radius); box-shadow: var(--shadow-lg); padding: .5rem; min-width: 260px; }
.main-nav .dropdown-item { font-size: 1rem; padding: .55rem .8rem; border-radius: 4px; color: var(--petrol); }
.main-nav .dropdown-item:hover { background: var(--papier); }
.navbar-toggler { border: 1px solid var(--sable); border-radius: 999px; display: inline-flex; align-items: center; gap: .45rem; font-weight: 600; color: var(--petrol); padding: .45rem .9rem; }
/* Menu complet à partir de 1400 px (8 entrées en capitales), bouton « Menu » en dessous. */
@media (min-width: 1400px) {
	.main-nav .dropdown:hover > .dropdown-menu, .main-nav .dropdown:focus-within > .dropdown-menu { display: block; margin-top: 0; }
	.main-nav .dropdown > .dropdown-menu { top: 100%; }
}
@media (max-width: 1399.98px) {
	.navbar-collapse { border-top: 1px solid var(--sable); margin-top: .6rem; }
	.main-nav > li { justify-content: space-between; border-bottom: 1px solid var(--sable); }
	.main-nav .dropdown-menu { flex-basis: 100%; }
	.main-nav .nav-link { font-size: 1.05rem; padding: .85rem 0; }
	.main-nav .nav-link.active::after { display: none; }
	.main-nav .dropdown-toggle { padding: .85rem; }
	.main-nav .dropdown-menu { box-shadow: none; border: 0; border-left: 2px solid var(--or); border-radius: 0; margin: .25rem 0 .75rem; }
}

/* ---------- Accueil : bandeau principal ---------- */
.hero { position: relative; background: var(--petrol); color: #fff; overflow: hidden; min-height: clamp(400px, 31vw, 520px); display: flex; align-items: center; }
.hero-media { position: absolute; top: 0; right: 0; bottom: 0; width: 74%; }
.hero-media .carousel-inner, .hero-media .carousel-item { height: 100%; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--petrol) 26%, rgba(21, 50, 61, .86) 38%, rgba(21, 50, 61, 0) 62%); pointer-events: none; }
.hero-content { position: relative; z-index: 2; padding-top: 2.5rem; padding-bottom: 2.5rem; }
.hero .eyebrow { color: var(--soleil); }
.hero-title { color: #fff; font: 700 clamp(3.4rem, 6vw, 5.25rem)/1 var(--serif); margin: .5rem 0 0; }
.hero-title span { display: block; font-size: .57em; font-weight: 600; line-height: 1.15; margin-top: .25rem; }
.hero-text { font: 400 1.25rem/1.42 var(--serif); max-width: 30em; margin-bottom: 1.4rem; }
.hero-controls { display: flex; gap: .5rem; margin-top: 1.5rem; }
.hero-controls button { width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); color: var(--petrol); display: grid; place-items: center; font-size: .7rem; }
.hero-controls button:hover { background: var(--creme); }

/* ---------- Accueil : accès rapides ---------- */
.quick { background: #fff; border-bottom: 1px solid var(--sable); }
.quick-list { display: grid; grid-template-columns: repeat(6, 1fr); margin: 0; }
.quick-item { display: flex; align-items: center; gap: .95rem; padding: 1.25rem 1.1rem; text-decoration: none; color: var(--petrol); border-left: 1px solid var(--sable); height: 100%; }
.quick-list li:first-child .quick-item { border-left: 0; }
.quick-icon { width: 54px; height: 54px; border-radius: 50%; background: var(--petrol); color: #fff; display: grid; place-items: center; flex: none; transition: background .15s; font-size: 1.4rem; }
.quick-icon .aslds-icon { width: 27px; height: 27px; }
.quick-item:hover .quick-icon { background: var(--or-txt); }
.quick-item strong { display: block; font: 600 1.2rem/1.2 var(--serif); }
.quick-item small { display: block; font-size: .97rem; color: var(--muted); line-height: 1.2; }

/* ---------- Accueil : trois colonnes ---------- */
.trio { background: var(--papier); }
.trio-col { padding: 1.9rem 1.9rem 2.1rem; border-left: 1px solid var(--sable); min-width: 0; }
.trio-col:first-child { border-left: 0; padding-left: 0; }
.trio-col:last-child { padding-right: 0; }
.trio-head { margin-bottom: 1.1rem; }
.trio-head h2 { font-size: 1.75rem; margin: 0; }
.trio-head p { color: var(--muted); font: 400 1.06rem/1.3 var(--serif); margin: .15rem 0 0; width: 100%; }
.trio .link-more { font-size: .97rem; white-space: nowrap; }

.doc-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .7rem; }
.doc-card { border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .16s, box-shadow .16s; }
.doc-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.doc-card-head { color: #fff; padding: 1.1rem .6rem .9rem; text-align: center; display: flex; flex-direction: column; align-items: center; flex: 1; }
.doc-card-head .aslds-icon, .doc-card-head i { width: 32px; height: 32px; font-size: 1.75rem; margin-bottom: .6rem; }
.doc-card-head h3 { color: #fff; font-size: 1.15rem; line-height: 1.2; margin: 0; }
.doc-card-head p { font-size: .875rem; margin: auto 0 0; padding-top: .5rem; }
.doc-card.c0 .doc-card-head { background: var(--vert); }
.doc-card.c1 .doc-card-head { background: var(--ocre); }
.doc-card.c2 .doc-card-head { background: var(--brique); }
.doc-card.c3 .doc-card-head { background: var(--bleu); }
.doc-card-actions a { display: flex; align-items: center; justify-content: center; gap: .4rem; padding: .7rem .25rem; border-top: 1px solid var(--sable); font-size: .97rem; font-weight: 600; text-decoration: none; color: var(--petrol); }
.doc-card-actions a:hover { background: var(--papier); }
.doc-row-soon { font-size: .95rem; color: var(--muted); white-space: nowrap; }
.doc-card-soon { display: flex; align-items: center; justify-content: center; gap: .4rem; padding: .7rem .25rem; border-top: 1px solid var(--sable); font-size: .97rem; color: var(--muted); }

/* Barre d'administration WordPress : l'en-tête collant reste visible dessous. */
.admin-bar .site-header.sticky-top { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header.sticky-top { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header.sticky-top { top: 0; } }
.doc-card-actions .aslds-icon { width: 1em; height: 1em; }

.news-row { display: grid; grid-template-columns: 104px 1fr 14px; gap: 1.1rem; align-items: center; padding: .75rem 0; border-bottom: 1px solid var(--sable); text-decoration: none; color: inherit; }
.news-row:last-of-type { border-bottom: 0; }
.news-row img { width: 104px; height: 64px; object-fit: cover; border-radius: 5px; }
.news-row time { font-size: .94rem; color: var(--muted); display: block; }
.news-row strong { font: 600 1.16rem/1.25 var(--serif); color: var(--petrol); display: block; }
.news-row:hover strong { text-decoration: underline; text-decoration-color: var(--or); }
.news-row-arrow { width: 14px; height: 14px; color: var(--muted); }

.event-row { display: grid; grid-template-columns: 66px 1fr; gap: .95rem; align-items: center; padding: .55rem 0; border-bottom: 1px solid var(--sable); text-decoration: none; color: inherit; }
.event-row:last-of-type { border-bottom: 0; }
.event-row strong { font: 600 1.1rem/1.22 var(--serif); color: var(--petrol); display: block; }
.event-row small { font-size: .97rem; color: var(--muted); display: block; }
.event-row:hover strong { text-decoration: underline; }
.date-chip { background: var(--creme); border-radius: 6px; text-align: center; padding: .55rem .15rem; color: var(--petrol); display: block; }
.date-chip strong { display: block; font: 600 1.55rem/1 var(--serif); }
.date-chip small { display: block; font-size: .78rem; font-weight: 600; text-transform: uppercase; margin-top: .2rem; }
.date-chip-lg { width: 84px; padding: .8rem .2rem; }
.date-chip-lg strong { font-size: 2rem; }
.event-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 0 2.5rem; }

/* ---------- Accueil : citation et valeurs ---------- */
.values { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); background: #fff; border-top: 1px solid var(--sable); }
.values-quote { position: relative; overflow: hidden; min-height: 160px; display: flex; flex-direction: column; justify-content: center; padding: 1.75rem clamp(1.25rem, 5.5vw, 5.25rem); color: #fff; }
.values-bg { position: absolute; inset: -14px; width: calc(100% + 28px); height: calc(100% + 28px); max-width: none; object-fit: cover; filter: blur(5px); }
.values-quote::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(21, 50, 61, .64), rgba(21, 50, 61, .32)); }
.values-quote blockquote, .values-quote .rule { position: relative; z-index: 2; }
.values-quote blockquote { margin: 0; }
.values-quote p { font: italic 500 clamp(1.4rem, 2vw, 1.7rem)/1.28 var(--serif); margin: 0; }
.values-quote .rule { margin: .8rem 0 0; }
.values-list { display: grid; grid-template-columns: repeat(4, 1fr); align-items: center; margin: 0; }
.values-list li { display: flex; flex-direction: column; align-items: center; gap: .55rem; text-align: center; font: 400 1.16rem/1.22 var(--serif); padding: .75rem 1.1rem; border-left: 1px solid var(--sable); color: var(--petrol); }
.values-list li:first-child { border-left: 0; }
.values-list .aslds-icon, .values-list i { width: 34px; height: 34px; font-size: 1.8rem; stroke-width: 1.5; color: var(--vert); }

/* ---------- En-tête de page ---------- */
.page-header { position: relative; background: var(--petrol); color: #fff; overflow: hidden; min-height: 280px; display: flex; align-items: center; }
.page-header-media { position: absolute; top: 0; right: 0; bottom: 0; width: 66%; }
.page-header-media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 62%; }
.page-header::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--petrol) 34%, rgba(21, 50, 61, .82) 50%, rgba(21, 50, 61, .05) 82%); pointer-events: none; }
.page-header-content { position: relative; z-index: 2; padding-top: 1.8rem; padding-bottom: 2.2rem; }
.page-header .eyebrow { color: var(--soleil); margin: .6rem 0 0; }
.page-header h1 { color: #fff; font: 700 clamp(2.5rem, 4.4vw, 3.6rem)/1.05 var(--serif); margin: .4rem 0 0; max-width: 18em; }
.page-header .rule { margin: .9rem 0; }
.page-header-chapo { font: 400 1.2rem/1.4 var(--serif); max-width: 32em; margin: 0; }
.aslds-bc { font-size: .9rem; color: #D7DEDC; display: flex; flex-wrap: wrap; gap: .4rem; }
.aslds-bc a { color: #fff; }
.aslds-bc .sep { opacity: .7; }

/* Sommaire de page */
.page-toc { position: sticky; top: 92px; z-index: 900; background: #fff; border-bottom: 1px solid var(--sable); }
.admin-bar .page-toc { top: 124px; }
.page-toc ul { display: flex; gap: .25rem; overflow-x: auto; margin: 0; scrollbar-width: none; }
.page-toc a { display: block; white-space: nowrap; padding: .85rem .8rem; font-weight: 600; text-decoration: none; color: var(--petrol); border-bottom: 2px solid transparent; }
.page-toc a:hover, .page-toc a.active { border-bottom-color: var(--or); }

/* ---------- Sections ---------- */
.section { padding: 4rem 0; }
.section + .section.bg-section-blanc, .section.bg-section-blanc + .section.bg-section-blanc { padding-top: 1rem; }
.bg-section-papier { background: var(--papier); }
.bg-section-creme { background: var(--creme); }
.bg-section-petrol { background: var(--petrol); color: #fff; }
.bg-section-petrol h2, .bg-section-petrol h3, .bg-section-petrol .section-title { color: #fff; }
.bg-section-petrol .section-intro { color: #DCE3DF; }
.section-head { margin-bottom: 2rem; }
.section-title { font-size: clamp(1.9rem, 3vw, 2.5rem); margin-bottom: .4rem; }
.section-intro { color: var(--muted); max-width: 52em; font: 400 1.15rem/1.45 var(--serif); margin: 0; }
.text-center .section-intro { margin-inline: auto; }
.entry-content > :last-child { margin-bottom: 0; }
.entry-content h2 { font-size: 1.9rem; margin-top: 2rem; }
.entry-content h3 { font-size: 1.45rem; margin-top: 1.6rem; }
.entry-content a { text-decoration-color: var(--or); }

.info-card { background: #fff; border: 1px solid var(--sable); border-radius: var(--radius); overflow: hidden; position: relative; transition: box-shadow .16s, border-color .16s; }
.info-card:hover { border-color: var(--petrol); box-shadow: var(--shadow-lg); }
.info-card-media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.info-card-body { padding: 1.4rem; }
.info-card h3 { font-size: 1.3rem; margin: 0 0 .4rem; }
.info-card p { color: var(--muted); font-size: 1.03rem; margin-bottom: .6rem; }
.icon-badge { width: 52px; height: 52px; border-radius: 50%; background: var(--petrol); color: #fff; display: grid; place-items: center; margin-bottom: .9rem; font-size: 1.35rem; }
.icon-badge .aslds-icon { width: 26px; height: 26px; }

.steps { counter-reset: step; margin: 0; }
.step { background: #fff; border: 1px solid var(--sable); border-radius: var(--radius); padding: 1.3rem; counter-increment: step; }
.step::before { content: counter(step); display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--petrol); color: #fff; font: 600 1.3rem/1 var(--serif); margin-bottom: .75rem; }
.step strong { display: block; font: 600 1.2rem/1.25 var(--serif); color: var(--petrol); margin-bottom: .3rem; }
.step p { color: var(--muted); font-size: 1.03rem; margin: 0; }

.timeline { position: relative; padding-left: 2.6rem; margin: 0; }
.timeline::before { content: ""; position: absolute; left: .55rem; top: .4rem; bottom: .4rem; border-left: 2px solid var(--sable); }
.timeline li { position: relative; padding-bottom: 1.5rem; }
.timeline li::before { content: ""; position: absolute; left: -2.55rem; top: .3rem; width: 20px; height: 20px; border-radius: 50%; background: var(--or); border: 4px solid #fff; box-shadow: 0 0 0 1px var(--sable); }
.timeline strong { display: block; font: 600 1.45rem/1.2 var(--serif); color: var(--petrol); }
.timeline p { margin: .2rem 0 0; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1.5rem; margin: 0; text-align: center; }
.stats li { padding: 1.4rem 1rem; border-top: 3px solid var(--or); background: #fff; border-radius: 0 0 var(--radius) var(--radius); box-shadow: var(--shadow); }
.stats .aslds-icon, .stats i { width: 30px; height: 30px; font-size: 1.6rem; color: var(--vert); margin-bottom: .4rem; }
.stats strong { display: block; font: 700 2.8rem/1 var(--serif); color: var(--petrol); }
.stats span { color: var(--muted); }

.ticks { columns: var(--cols, 2) 260px; column-gap: 3rem; margin: 0; }
.ticks li { break-inside: avoid; position: relative; padding: .45rem 0 .45rem 1.6rem; border-bottom: 1px solid var(--sable); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 1.05em; width: 12px; border-top: 3px solid var(--or); border-radius: 2px; }

.doc-list { margin: 0; }
.doc-row { display: flex; align-items: center; gap: 1rem; padding: .85rem 0; border-bottom: 1px solid var(--sable); }
.doc-row:last-child { border-bottom: 0; }
.doc-row-icon { width: 44px; height: 44px; border-radius: 8px; background: var(--creme); color: var(--petrol); display: grid; place-items: center; flex: none; }
.doc-row-body { flex: 1; min-width: 0; }
.doc-row-body strong { display: block; font-weight: 600; color: var(--petrol); }
.doc-row-body small { color: var(--muted); }
.doc-row-actions { display: flex; gap: .4rem; flex: none; }

.faq { --bs-accordion-border-color: var(--sable); --bs-accordion-btn-focus-box-shadow: 0 0 0 .2rem rgba(201, 162, 92, .35); --bs-accordion-active-bg: var(--papier); --bs-accordion-active-color: var(--petrol); }
.faq .accordion-button { font: 600 1.15rem/1.3 var(--serif); color: var(--petrol); }

.member { text-align: center; }
.member-photo { width: 132px; height: 132px; margin: 0 auto .9rem; border-radius: 50%; overflow: hidden; background: var(--creme); display: grid; place-items: center; font: 600 2.2rem/1 var(--serif); color: var(--petrol); }
.member-photo img { width: 100%; height: 100%; object-fit: cover; }
.member strong { display: block; font: 600 1.15rem/1.25 var(--serif); color: var(--petrol); }
.member span, .member small { display: block; color: var(--muted); font-size: .97rem; }
.member a { font-size: .9rem; word-break: break-all; }

.commission { background: #fff; border: 1px solid var(--sable); border-top: 3px solid var(--or); border-radius: 0 0 var(--radius) var(--radius); padding: 1.3rem; }
.commission h3 { font-size: 1.25rem; }
.commission p { color: var(--muted); font-size: 1rem; }
.commission dl { display: grid; grid-template-columns: auto 1fr; gap: .2rem 1rem; font-size: 1rem; }
.commission dt { color: var(--muted); font-weight: 400; }
.commission dd { margin: 0; font-weight: 600; }
.commission-mail { display: inline-flex; align-items: center; gap: .4rem; font-size: .97rem; word-break: break-all; }

.info-table { --bs-table-bg: transparent; }
.info-table th { font-weight: 600; color: var(--petrol); width: 42%; }

.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .6rem; }
.gallery-grid-sm { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.gallery-grid a { display: block; border-radius: 6px; overflow: hidden; }
.gallery-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; transition: transform .3s; }
.gallery-grid a:hover img { transform: scale(1.04); }

.cta-band { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem 2rem; background: var(--petrol); color: #fff; border-radius: var(--radius); padding: 2rem 2.25rem; }
.cta-band h2 { color: #fff; font-size: 1.8rem; margin: 0 0 .25rem; }
.cta-band p { margin: 0; color: #DCE3DF; }
.cta-text { flex: 1 1 380px; }
.cta-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--or); color: var(--petrol-3); display: grid; place-items: center; font-size: 1.6rem; }
.cta-icon .aslds-icon { width: 30px; height: 30px; }

.callout { display: flex; gap: 1rem; align-items: flex-start; background: var(--creme); border-left: 4px solid var(--or); border-radius: var(--radius); padding: 1.1rem 1.3rem; }
.callout > .aslds-icon, .callout > i { width: 26px; height: 26px; color: var(--or-txt); margin-top: .15rem; }

.contact-card { background: var(--papier); border: 1px solid var(--sable); border-radius: var(--radius); padding: 1.6rem; }
.contact-card h3 { font-size: 1.35rem; }
.contact-card li { display: flex; gap: .7rem; margin-bottom: .7rem; }
.contact-card .aslds-icon { color: var(--or-txt); margin-top: .2rem; }

.locked-band { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 2rem; background: var(--petrol); color: #fff; border-radius: var(--radius); padding: 2rem; }
.locked-band > .aslds-icon { width: 48px; height: 48px; color: var(--soleil); }
.locked-band > div { flex: 1 1 360px; }
.locked-band h2 { color: #fff; font-size: 1.5rem; }
.locked-band p { margin: 0; color: #DCE3DF; }

/* Cartes de liste */
.card-aslds { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: box-shadow .16s, transform .16s; }
.card-aslds:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.card-aslds-media { position: relative; display: block; aspect-ratio: 16 / 10; background: var(--creme); }
.card-aslds-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-aslds-placeholder { position: absolute; inset: 0; display: grid; place-items: center; color: var(--petrol); }
.card-aslds-placeholder .aslds-icon { width: 54px; height: 54px; stroke-width: 1.4; }
.card-aslds-lock { position: absolute; left: .75rem; top: .75rem; display: inline-flex; gap: .35rem; align-items: center; background: var(--petrol); color: #fff; font-size: .85rem; font-weight: 600; padding: .25rem .65rem; border-radius: 999px; }
.card-aslds-body { padding: 1.2rem 1.3rem 1.3rem; flex: 1; }
.card-aslds-title { font-size: 1.3rem; margin: 0 0 .35rem; }
.card-aslds-title a { text-decoration: none; color: var(--petrol); }
.card-aslds-title a:hover { text-decoration: underline; text-decoration-color: var(--or); }
.card-aslds-body p { color: var(--muted); font-size: 1.03rem; margin-bottom: .5rem; }
.card-aslds-meta { display: flex; flex-wrap: wrap; gap: .2rem .9rem; font-size: .94rem; color: var(--muted); margin: 0; }

.filter-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.75rem; }
.chip { display: inline-block; padding: .4rem 1rem; border: 1px solid var(--muted); border-radius: 999px; font-weight: 600; font-size: .97rem; text-decoration: none; color: var(--petrol); }
.chip:hover { border-color: var(--petrol); }
.chip.active { background: var(--petrol); border-color: var(--petrol); color: #fff; }

.agenda-list { display: grid; gap: 1rem; }
.agenda-item { display: flex; gap: 1.4rem; align-items: flex-start; padding: 1.25rem; background: #fff; border: 1px solid var(--sable); border-radius: var(--radius); }
.agenda-item h2 { font-size: 1.45rem; margin: 0 0 .2rem; }
.agenda-item h2 a { text-decoration: none; color: var(--petrol); }
.agenda-meta { color: var(--muted); margin-bottom: .4rem; }
.event-box { background: var(--papier); border: 1px solid var(--sable); border-radius: var(--radius); padding: 1.5rem; }
.event-box ul { margin: 1rem 0 1.25rem; }
.event-box li { display: flex; gap: .6rem; align-items: center; margin-bottom: .5rem; }
.event-box .aslds-icon { color: var(--or-txt); }

.post-nav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; align-items: center; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--sable); }
.search-results li { padding: 1.25rem 0; border-bottom: 1px solid var(--sable); }
.search-results h2 { font-size: 1.4rem; margin: 0 0 .3rem; }
.pagination { --bs-pagination-color: var(--petrol); --bs-pagination-active-bg: var(--petrol); --bs-pagination-active-border-color: var(--petrol); --bs-pagination-border-color: var(--sable); }

/* ---------- Espace résidents ---------- */
.residents-top { background: var(--petrol-3); color: #DCE3DF; font-size: .95rem; padding: .55rem 0; }
.residents-top a { color: #fff; }
.residents-top .aslds-icon { color: var(--soleil); margin-right: .4rem; }
.residents { background: #F0F3F3; }
.residents-nav { background: var(--petrol); border-radius: var(--radius); padding: .6rem; position: sticky; top: 100px; }
.residents-nav a { display: flex; gap: .7rem; align-items: center; padding: .7rem .8rem; border-radius: 6px; color: #DCE3DF; text-decoration: none; font-weight: 600; }
.residents-nav a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.residents-nav a[aria-current="page"] { background: var(--creme); color: var(--petrol); }
.residents-head { margin-bottom: 1.5rem; }
.residents-head h1 { font-size: 2.1rem; margin: 0 0 .25rem; }
.residents-head p { color: var(--muted); margin: 0; }
.panel { display: block; background: #fff; border: 1px solid #D5DEDF; border-radius: var(--radius); padding: 1.4rem 1.5rem; }
.panel h2 { font-size: 1.35rem; margin-bottom: .9rem; }
.shortcut { text-decoration: none; color: var(--petrol); display: flex; flex-direction: column; gap: .35rem; }
.shortcut:hover { border-color: var(--petrol); }
.shortcut .aslds-icon { width: 30px; height: 30px; color: var(--or-txt); }
.shortcut strong { font: 600 1.15rem/1.2 var(--serif); }
.shortcut small { color: var(--muted); }
.panel-rows { margin: 0; }
.panel-rows > li { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .8rem 0; border-bottom: 1px solid #E2E8E8; }
.panel-rows > li:last-child { border-bottom: 0; }
.panel-rows small { display: block; color: var(--muted); font-size: .9rem; }
.status { font-size: .85rem; font-weight: 700; padding: .2rem .7rem; border-radius: 999px; background: #E3ECEC; white-space: nowrap; }
.status-autorisee, .status-cloturee { background: #DBEEE5; color: #165441; }
.status-instruction, .status-deposee { background: #F7E7D6; color: #7A3B14; }
.status-refusee { background: #F6DADA; color: #842029; }
.track { display: flex; margin: .9rem 0 .4rem; }
.track li { flex: 1; font-size: .85rem; text-align: center; padding-top: 1.3rem; position: relative; color: var(--muted); }
.track li::before { content: ""; position: absolute; top: .35rem; left: 0; right: 0; border-top: 3px solid #D5DEDF; }
.track li::after { content: ""; position: absolute; top: 0; left: calc(50% - 7px); width: 15px; height: 15px; border-radius: 50%; background: #D5DEDF; }
.track li.on { color: var(--petrol); font-weight: 700; }
.track li.on::after, .track li.on::before { background: var(--vert); border-color: var(--vert); }
.login-box { background: #fff; border: 1px solid var(--sable); border-top: 4px solid var(--or); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); }
.login-box label { display: block; font-weight: 600; margin-bottom: .3rem; }
.login-box input[type="text"], .login-box input[type="password"] { width: 100%; padding: .65rem .8rem; border: 1px solid #9AA9A6; border-radius: 6px; margin-bottom: 1rem; }
.login-box .login-remember label { display: inline-flex; gap: .4rem; font-weight: 400; }
.login-box #wp-submit { background: var(--petrol); color: #fff; border: 0; border-radius: 999px; padding: .65rem 1.6rem; font-weight: 600; }
.login-box #wp-submit:hover { background: var(--petrol-2); }

/* Formulaires ACF côté site */
.acf-front .acf-fields > .acf-field { border: 0 !important; padding: .6rem 0 !important; }
.acf-front .acf-field .acf-label label { font-weight: 600; color: var(--petrol); }
.acf-front input[type="text"], .acf-front input[type="email"], .acf-front input[type="number"], .acf-front textarea, .acf-front select { border: 1px solid #9AA9A6 !important; border-radius: 6px !important; padding: .55rem .75rem !important; font-size: 1rem !important; min-height: 44px; }
.acf-front .acf-form-submit { margin-top: 1rem; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--petrol); color: #E9EEEA; padding: 3.2rem 0 1.6rem; font-size: 1rem; }
.foot-title { font: 600 1.3rem/1.2 var(--serif); color: #fff; margin-bottom: 1rem; }
.foot-contact li { display: flex; gap: .75rem; margin-bottom: .7rem; }
.foot-contact .aslds-icon { color: var(--soleil); margin-top: .2rem; }
.site-footer a { color: #fff; text-decoration-color: rgba(255, 255, 255, .4); }
.site-footer a:hover { color: var(--soleil); }
.foot-links li { margin-bottom: .55rem; }
.foot-bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 2.5rem; padding-top: 1.1rem; border-top: 1px solid rgba(255, 255, 255, .2); font-size: .94rem; color: #C9D3CD; }

/* Visionneuse */
#lightbox .modal-content { background: transparent; border: 0; }
#lightbox .btn-close { position: absolute; right: 0; top: -2.5rem; }
.lightbox-caption { color: #fff; text-align: center; margin-top: .6rem; }

/* ---------- Adaptations ---------- */
@media (max-width: 1199.98px) {
	.quick-list { grid-template-columns: repeat(3, 1fr); }
	.quick-list li:nth-child(4) .quick-item { border-left: 0; }
	.quick-list li:nth-child(n+4) .quick-item { border-top: 1px solid var(--sable); }
	.trio-col { padding: 1.75rem 0; border-left: 0; }
	.trio-col:first-child { border-bottom: 1px solid var(--sable); }
	.trio-col + .trio-col + .trio-col { padding-left: 1.75rem; border-left: 1px solid var(--sable); }
	.values { grid-template-columns: 1fr; }
	html { scroll-padding-top: 90px; }
	.page-toc { top: 82px; }
}
@media (max-width: 767.98px) {
	body { --bs-body-font-size: 1.0625rem; }
	.topbar-info { font-size: .9rem; }
	.topbar-inner { flex-direction: column; gap: 0; }
	.topbar-links { justify-content: space-between; gap: 1rem; padding-bottom: .4rem; }
	.topbar-links > a:not(.btn-residents) span, .topbar-search span { display: none; }
	.topbar-links > .btn-residents { padding: .45rem 1rem !important; border-radius: 4px; }
	.brand-logo { width: 50px; height: 50px; }
	.brand-name { font-size: 1.4rem; }
	.brand-sub { font-size: .9rem; }
	.navbar-toggler { padding: .4rem .75rem; font-size: 1rem; }
}
@media (max-width: 379.98px) {
	.navbar-toggler span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
	.navbar-toggler { padding: .5rem .6rem; }
	.hero { display: block; min-height: 0; }
	.hero-media { position: relative; width: 100%; height: 230px; }
	.hero::after { display: none; }
	.hero-content { padding-top: 1.75rem; padding-bottom: 2rem; }
	.hero-title { font-size: 3.2rem; }
	.hero .btn { width: 100%; }
	.quick-list { grid-template-columns: 1fr 1fr; }
	.quick-item { padding: .9rem .5rem; gap: .6rem; border-left: 0 !important; border-top: 0 !important; }
	.quick-list li:nth-child(even) .quick-item { border-left: 1px solid var(--sable) !important; }
	.quick-list li:nth-child(n+3) .quick-item { border-top: 1px solid var(--sable) !important; }
	.quick-icon { width: 44px; height: 44px; }
	.quick-icon .aslds-icon { width: 22px; height: 22px; }
	.quick-item strong { font-size: 1.05rem; }
	.quick-item small { font-size: .9rem; }
	.trio-col + .trio-col + .trio-col { padding-left: 0; border-left: 0; }
	.trio-col { border-bottom: 1px solid var(--sable); }
	.doc-cards { grid-template-columns: 1fr 1fr; }
	.news-row { grid-template-columns: 84px 1fr; gap: .8rem; }
	.news-row img { width: 84px; height: 62px; }
	.news-row-arrow { display: none; }
	.values-list { grid-template-columns: 1fr 1fr; }
	.values-list li { border-left: 0; padding: 1rem .5rem; }
	.page-header { display: block; min-height: 0; }
	.page-header-media, .page-header::after { display: none; }
	.page-header-content { padding-top: 1.4rem; padding-bottom: 1.8rem; }
	.page-header h1 { font-size: 2.3rem; }
	.section { padding: 2.75rem 0; }
	.doc-row { flex-wrap: wrap; }
	.doc-row-actions { width: 100%; padding-left: 60px; }
	.visually-hidden-sm { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; }
	.agenda-item { flex-direction: column; gap: .8rem; }
	.residents-nav { position: static; display: flex; overflow-x: auto; gap: .25rem; }
	.residents-nav a { white-space: nowrap; }
	.cta-band { padding: 1.5rem; }
	.cta-band .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media print {
	.topbar, .site-header, .site-footer, .page-toc, .hero-controls { display: none !important; }
}
