/* ==========================================================
   Roche la Molière · Ville + Positive
   Palette reprise du site actuel : jaune #FFE400, noir, blanc
   ========================================================== */
:root {
    --primary: #F0B323;
    --primary-dark: #C98F0F;
    --primary-soft: #FBEFD2;
    --ink: #141414;
    --ink-2: #2A2A2A;
    --text-color: #2B2B2B;
    --muted: #616161;
    --bg-color: #FBFAF5;
    --light-bg: #F3F1E8;
    --line: #E4E0D2;
    --pink: #FF6FA8;
    --cyan: #2EC4EE;
    --green: #61A229;
    --violet: #6B4FE0;
    --radius: 18px;
    --radius-lg: 28px;
    --shadow: 0 10px 30px -12px rgba(20, 20, 20, .18);
    --shadow-lg: 0 30px 60px -25px rgba(20, 20, 20, .35);
    --font-display: 'Outfit', system-ui, sans-serif;
    --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --gold-text: #6B4A00;
    --font-body: 'Source Sans 3', system-ui, sans-serif;
    --dock-h: 78px;
}

html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body {
    font-family: var(--font-body);
    font-size: 1.075rem;
    line-height: 1.65;
    color: var(--text-color);
    background: var(--bg-color);
    -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, .display, .btn, .navbar, .eyebrow { font-family: var(--font-display); }
h1, h2, h3, h4 { color: var(--ink); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
a { color: var(--ink); text-decoration-color: var(--primary-dark); text-underline-offset: 3px; }
a:hover { color: #000; }
img { max-width: 100%; }
::selection { background: var(--primary); color: var(--ink); }

.skip-links ul { list-style: none; margin: 0; padding: 0; }
.skip-link {
    position: absolute; left: -9999px; top: 8px; z-index: 2000;
    background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: 8px; font-weight: 700;
}
.skip-link:focus { left: 8px; color: #fff; }
main:focus { outline: none; }
/* Reflow 320 px : gouttières horizontales réduites sur petit écran */
@media (max-width: 575.98px) { .row.g-5, .row.g-4 { --bs-gutter-x: 1.5rem; } }
.site-header { position: sticky; top: -44px; z-index: 1030; }
.topbar { min-height: 44px; display: flex; align-items: center; }
@media (max-width: 575.98px) {
    .tool-label { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
}
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; box-shadow: 0 0 0 6px var(--primary); border-radius: 6px; }

/* ---------- Barre utilitaire ---------- */
.topbar { background: var(--ink); color: #eee; font-size: .9rem; padding: .45rem 0; }
.topbar a { color: #eee; text-decoration: none; }
.topbar a:hover { color: var(--primary); }
.topbar .bi { color: var(--primary); margin-right: .25rem; }
.tool-btn {
    background: transparent; border: 1px solid rgba(255,255,255,.22); color: #fff;
    border-radius: 999px; padding: .2rem .7rem; font-weight: 700; font-family: var(--font-display); font-size: .85rem;
    transition: .2s;
}
.tool-btn:hover, .tool-btn[aria-pressed="true"], .tool-btn.is-on { background: var(--primary); color: var(--ink); border-color: var(--primary); }

/* ---------- Bouton radio ---------- */
.btn-radio {
    display: inline-flex; align-items: center; gap: .5rem;
    background: var(--primary); color: var(--ink) !important; text-decoration: none;
    font-family: var(--font-display); font-weight: 800; border-radius: 999px;
    padding: .75rem 1.3rem; border: 2px solid var(--ink); transition: transform .2s, box-shadow .2s;
    box-shadow: 4px 4px 0 var(--ink); white-space: nowrap;
}
.btn-radio:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn-radio:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.radio-dot { width: 9px; height: 9px; border-radius: 50%; background: #E0242B; box-shadow: 0 0 0 0 rgba(224,36,43,.6); animation: live 1.6s 3; }
@keyframes live { 70% { box-shadow: 0 0 0 9px rgba(224,36,43,0); } 100% { box-shadow: 0 0 0 0 rgba(224,36,43,0); } }
.btn-radio-sm { padding: .3rem .9rem; font-size: .85rem; box-shadow: none; border-color: var(--primary); }
.btn-radio-sm { background: var(--ink); color: var(--primary) !important; border: 1.5px solid var(--primary); }
.btn-radio-sm .radio-dot { display: none; }
.btn-radio-sm:hover { box-shadow: none; transform: none; background: var(--primary); color: var(--ink) !important; }
.btn-radio-lg { padding: 1.1rem 1.9rem; font-size: 1.2rem; }
.btn-radio-dock { padding: .55rem 1rem; box-shadow: none; border-color: var(--primary); }
.btn-radio-dock:hover { transform: none; box-shadow: none; background: #fff; }

/* ---------- Navigation ---------- */
.main-nav { background: rgba(251, 250, 245, .92); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); padding: .55rem 0; }
.main-nav .nav-link { font-weight: 600; color: var(--ink); padding: .5rem .85rem !important; border-radius: 999px; position: relative; }
.main-nav .nav-link:hover { background: var(--light-bg); }
.main-nav .nav-link.active { background: var(--primary); }
.btn-ink { background: var(--ink); color: #fff; font-weight: 700; }
.btn-ink:hover, .btn-ink.active { background: #000; color: var(--primary); }
.btn-yellow { background: var(--primary); color: var(--ink); font-weight: 800; border: 2px solid var(--ink); }
.btn-yellow:hover { background: var(--ink); color: var(--primary); border-color: var(--ink); }
.btn-outline-ink { border: 2px solid var(--ink); color: var(--ink); font-weight: 700; }
.btn-outline-ink:hover { background: var(--ink); color: #fff; }
@media (max-width: 991.98px) {
    /* backdrop-filter créerait un bloc conteneur pour le menu fixe : on le retire en mobile */
    .main-nav { backdrop-filter: none; background: var(--bg-color); }
    .offcanvas-lg .offcanvas-header { background: var(--primary); }
    .offcanvas-lg .offcanvas-title { font-weight: 800; }
    .offcanvas-lg .nav-link { font-size: 1.2rem; padding: .8rem 1rem !important; }
    .main-nav .navbar-brand img { height: 46px; }
}

/* ---------- Sections communes ---------- */
.section { padding: 96px 0; position: relative; }
.section-sm { padding: 64px 0; }
.section-alt { background: var(--light-bg); }
.section-ink { background: var(--ink); color: #e9e9e9; }
.section-ink h2, .section-ink h3 { color: #fff; }
.eyebrow {
    display: inline-flex; align-items: center; gap: .5rem;
    font-weight: 800; text-transform: uppercase; letter-spacing: .14em; font-size: .78rem;
    color: var(--ink); margin-bottom: .9rem;
}
.eyebrow::before { content: '+'; display: inline-grid; place-items: center; width: 22px; height: 22px; background: var(--primary); border-radius: 6px; font-size: 1rem; letter-spacing: 0; }
.eyebrow-dark::before { background: var(--ink); color: var(--primary); }
.section-ink .eyebrow { color: var(--primary); }
.section-title { font-size: clamp(2rem, 4vw, 3.1rem); margin-bottom: 1rem; }
.lead-lg { font-size: 1.25rem; color: var(--muted); max-width: 680px; }
.mark { background: linear-gradient(transparent 58%, var(--primary) 58%, var(--primary) 92%, transparent 92%); padding: 0 .1em; }

/* ---------- Bouton Écouter (injecté par listen.js) ---------- */
.listen-btn {
    display: inline-flex; align-items: center; gap: .4rem;
    background: #fff; color: var(--ink); border: 1.5px solid var(--ink);
    border-radius: 999px; padding: .32rem .85rem .32rem .7rem; margin-bottom: 1rem;
    font-family: var(--font-display); font-weight: 700; font-size: .88rem; line-height: 1.2;
    transition: .2s; cursor: pointer; align-self: flex-start; width: auto;
}
.listen-btn { display: none; }
body.show-listen-btns .listen-btn { display: inline-flex; }
.listen-btn .bi { font-size: 1.05rem; }
.listen-btn .lb-time { font-weight: 500; color: var(--muted); font-size: .78rem; border-left: 1px solid var(--line); padding-left: .45rem; }
.listen-btn:hover { background: var(--primary); }
.listen-btn.is-active { background: var(--ink); color: var(--primary); }
.listen-btn.is-active .lb-time { color: #bbb; border-color: #444; }
.section-ink .listen-btn, .listen-btn.on-dark { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.section-ink .listen-btn:hover, .listen-btn.on-dark:hover { background: var(--primary); color: var(--ink); }
.section-ink .listen-btn .lb-time { color: #aaa; border-color: #444; }

[data-listen] { transition: box-shadow .3s, background-color .3s; border-radius: var(--radius); }
.is-reading { box-shadow: 0 0 0 4px var(--primary), 0 0 0 6px var(--ink); background-color: rgba(255, 228, 0, .07); }
.is-reading-single { background: var(--primary-soft) !important; box-shadow: 0 0 0 4px var(--primary-soft); border-radius: 6px; }
body.listen-mode main p, body.listen-mode main li, body.listen-mode main h1, body.listen-mode main h2, body.listen-mode main h3,
body.listen-mode main h4, body.listen-mode main dd, body.listen-mode footer p, body.listen-mode .radio-band p { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='8' fill='%23FFE400'/%3E%3Cpath d='M7.6 4.4 5.3 6.3H3.5v3.4h1.8l2.3 1.9z' fill='%23141414'/%3E%3Cpath d='M9.5 6a3 3 0 0 1 0 4M10.8 4.8a4.6 4.6 0 0 1 0 6.4' stroke='%23141414' stroke-width='1.1' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") 14 14, pointer; }
body.listen-mode main p:hover, body.listen-mode main li:hover, body.listen-mode main h2:hover, body.listen-mode main h3:hover, body.listen-mode main dd:hover { background: rgba(255, 228, 0, .25); border-radius: 6px; }
.listen-mode-hint { display: none; }
body.listen-mode .listen-mode-hint { display: block; }

/* ---------- Héros ---------- */
.hero { position: relative; padding: 70px 0 110px; overflow: hidden; }
.hero::before {
    content: ''; position: absolute; right: -8%; top: -30%; width: 55%; height: 160%;
    background: var(--primary); transform: skewX(-18deg); z-index: 0;
}
.hero .container { position: relative; z-index: 1; }
.hero-title { font-size: clamp(2.8rem, 7.2vw, 6.2rem); font-weight: 900; line-height: .92; letter-spacing: -.045em; margin-bottom: 1.4rem; }
.hero-title .plus { display: inline-block; color: var(--primary); -webkit-text-stroke: 3px var(--ink); transform: translateY(-.04em); margin: 0 .04em; }
.hero p.lead { font-size: 1.3rem; color: var(--ink-2); max-width: 560px; }
.hero-date { font-family: var(--font-display); font-weight: 600; color: var(--muted); text-transform: capitalize; }
.hero-collage { position: relative; height: 520px; }
.hero-collage .strip {
    position: absolute; top: 0; height: 100%; width: 42%; overflow: hidden;
    clip-path: polygon(30% 0, 100% 0, 70% 100%, 0 100%); box-shadow: var(--shadow-lg);
}
.hero-collage .strip img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.05); transition: transform 1.2s; }
.hero-collage .strip:hover img { transform: scale(1.12); }
.hero-collage .s1 { left: 0; }
.hero-collage .s2 { left: 29%; top: 40px; height: calc(100% - 40px); }
.hero-collage .s3 { left: 58%; }
.hero-collage .badge-plus {
    position: absolute; left: 44%; bottom: -26px; width: 110px; height: 110px; z-index: 3;
    background: var(--ink); color: var(--primary); border-radius: 28px; display: grid; place-items: center;
    font: 900 5rem/1 var(--font-display); transform: rotate(-8deg); box-shadow: var(--shadow-lg);
}
.hero-listen {
    display: inline-flex; align-items: center; gap: .9rem; background: var(--ink); color: #fff; border: 0;
    border-radius: 999px; padding: .55rem 1.4rem .55rem .55rem; font: 700 1.05rem var(--font-display); transition: .2s;
}
.hero-listen .ic { width: 46px; height: 46px; border-radius: 50%; background: var(--primary); color: var(--ink); display: grid; place-items: center; font-size: 1.5rem; }
.hero-listen small { display: block; font-weight: 500; color: #bdbdbd; font-size: .8rem; }
.hero-listen:hover { background: #000; transform: translateY(-2px); }
@media (max-width: 991.98px) {
    .hero { padding: 40px 0 70px; }
    .hero::before { right: -40%; width: 80%; opacity: .9; }
    .hero-collage { height: 300px; margin-top: 2.5rem; }
    .hero-collage .badge-plus { width: 76px; height: 76px; font-size: 3.4rem; border-radius: 20px; }
}

/* ---------- Bandeau infos ---------- */
.info-strip { background: var(--ink); color: #fff; border-radius: var(--radius-lg); margin-top: -60px; position: relative; z-index: 5; box-shadow: var(--shadow-lg); }
.info-strip .item { padding: 1.4rem 1.6rem; display: flex; gap: 1rem; align-items: flex-start; }
.info-strip .item + .item { border-left: 1px solid #333; }
.info-strip .ic { width: 46px; height: 46px; flex: 0 0 46px; border-radius: 14px; background: var(--primary); color: var(--ink); display: grid; place-items: center; font-size: 1.3rem; }
.info-strip h3 { color: #fff; font-size: 1rem; margin: 0 0 .2rem; }
.info-strip p { margin: 0; color: #c9c9c9; font-size: .95rem; }
.info-strip a { color: #fff; }
@media (max-width: 991.98px) { .info-strip .item + .item { border-left: 0; border-top: 1px solid #333; } }

/* ---------- Recherche + tuiles Vie pratique ---------- */
.search-box { position: relative; max-width: 560px; }
.search-box input {
    width: 100%; border: 2px solid var(--ink); border-radius: 999px; padding: 1rem 1.2rem 1rem 3.2rem;
    font-size: 1.1rem; background: #fff; box-shadow: 5px 5px 0 var(--ink);
}
.search-box input:focus { outline: none; box-shadow: 5px 5px 0 var(--primary-dark), 0 0 0 4px var(--primary); }
.search-box .bi { position: absolute; left: 1.2rem; top: 50%; transform: translateY(-50%); font-size: 1.3rem; }
.tile {
    display: flex; flex-direction: column; align-items: flex-start; gap: .8rem; height: 100%;
    background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius); padding: 1.3rem;
    text-decoration: none; color: var(--ink); transition: .25s; position: relative; overflow: hidden;
}
.tile::after { content: '\F138'; font-family: 'bootstrap-icons'; position: absolute; right: 1rem; top: 1rem; opacity: 0; transition: .25s; }
.tile:hover { border-color: var(--ink); transform: translateY(-4px); box-shadow: 6px 6px 0 var(--ink); color: var(--ink); }
.tile:hover::after { opacity: 1; }
.tile .picto { width: 58px; height: 58px; border-radius: 16px; background: var(--primary); display: grid; place-items: center; }
.tile .picto img { width: 42px; height: 42px; filter: brightness(0); }
.tile strong { font-family: var(--font-display); font-size: 1.05rem; line-height: 1.2; }
.tile span { color: var(--muted); font-size: .9rem; line-height: 1.35; }

/* ---------- Cartes ---------- */
.card-rlm { background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; height: 100%; transition: .3s; display: flex; flex-direction: column; }
.card-rlm:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.card-rlm .media { aspect-ratio: 16/10; overflow: hidden; position: relative; }
.card-rlm .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s; }
.card-rlm:hover .media img { transform: scale(1.06); }
.card-rlm .media .tag { position: absolute; left: 1rem; top: 1rem; background: var(--primary); color: var(--ink); font: 800 .75rem var(--font-display); text-transform: uppercase; letter-spacing: .08em; padding: .35rem .7rem; border-radius: 999px; }
.card-rlm .body { padding: 1.6rem; flex: 1; display: flex; flex-direction: column; }
.card-rlm h3 { font-size: 1.4rem; }
.card-rlm .more { margin-top: auto; font-weight: 700; font-family: var(--font-display); text-decoration: none; display: inline-flex; gap: .4rem; align-items: center; }
.card-rlm .more:hover { gap: .7rem; }

/* ---------- Blocs éditoriaux ---------- */
.feature-img { border-radius: var(--radius-lg); overflow: hidden; position: relative; box-shadow: var(--shadow-lg); }
.feature-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.feature-img.diag { clip-path: polygon(8% 0, 100% 0, 92% 100%, 0 100%); border-radius: 0; }
.quote-plus { font: 800 clamp(1.5rem, 2.6vw, 2.1rem)/1.25 var(--font-display); color: var(--ink); letter-spacing: -.02em; }
/* Cartes « pilier » : même padding partout (accueil, mairie, solidarité, culture…) */
.pillar { background: #fff; border-radius: var(--radius); padding: 1.6rem; border-left: 6px solid var(--primary); }
.pillars .pillar { height: 100%; }
.pillar .listen-btn { margin-bottom: .8rem; }
.pillar h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.pillar p { margin: 0; color: var(--muted); }
.pillar p + p { margin-top: .5rem; }
.pillar ul { margin: .5rem 0 0; padding-left: 1.1rem; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; }
.fact { background: var(--ink); color: #fff; border-radius: var(--radius); padding: 1.3rem; }
.fact b { display: block; font: 900 2.2rem/1 var(--font-display); color: var(--primary); margin-bottom: .3rem; }
.fact span { font-size: .92rem; color: #ccc; }
.info-card { background: var(--primary); border-radius: var(--radius); padding: 1.5rem; color: var(--ink); }
.info-card, .section-ink .info-card h3, .section-ink .info-card h2, .info-card .info-title { color: var(--ink); }
.section-ink .info-card .listen-btn, .section-ink .bg-white .listen-btn { background: #fff; color: var(--ink); border-color: var(--ink); }
.section-ink .info-card .listen-btn .lb-time, .section-ink .bg-white .listen-btn .lb-time { color: var(--muted); border-color: var(--line); }
.section-ink .info-card .listen-btn:hover, .section-ink .bg-white .listen-btn:hover { background: var(--primary); }
.info-card h4, .info-card .info-title { font-size: 1.05rem; text-transform: uppercase; letter-spacing: .06em; }
.info-card ul { margin: 0; padding-left: 1.1rem; }
.page-hero { background: var(--primary); padding: 70px 0 60px; position: relative; overflow: hidden; }
.page-hero::after { content: '+'; position: absolute; right: 4%; top: 50%; transform: translateY(-50%); font: 900 22rem/1 var(--font-display); color: rgba(20,20,20,.07); }
.page-hero h1 { font-size: clamp(2.4rem, 5.5vw, 4.4rem); font-weight: 900; margin-bottom: .8rem; }
.page-hero p { font-size: 1.2rem; max-width: 640px; margin: 0; }
.breadcrumb-rlm { font-size: .9rem; margin-bottom: 1.2rem; }
.breadcrumb-rlm a { color: var(--ink); }
.subnav { position: sticky; top: 76px; z-index: 10; background: rgba(251,250,245,.95); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.subnav .nav-link { color: var(--ink); font-weight: 600; font-family: var(--font-display); white-space: nowrap; }
.subnav .nav-link:hover { background: var(--primary); border-radius: 999px; }
.subnav .nav { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }

/* ---------- Publications ---------- */
.pub { display: flex; gap: 1.5rem; align-items: center; background: #fff; border-radius: var(--radius-lg); padding: 1.3rem; border: 1.5px solid var(--line); height: 100%; }
.pub img { width: 140px; border-radius: 12px; box-shadow: var(--shadow); transform: rotate(-3deg); transition: .3s; }
.pub .eyebrow { color: var(--ink); }
.pub:hover img { transform: rotate(0) scale(1.04); }

/* ---------- Radio ---------- */
.radio-band { background: var(--primary); padding: 70px 0; border-top: 3px solid var(--ink); position: relative; overflow: hidden; border-radius: 0; }
.radio-band::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(-60deg, transparent 0 40px, rgba(20,20,20,.04) 40px 80px); }
.radio-band .container { position: relative; }
.radio-band p { max-width: 620px; font-size: 1.12rem; }
.radio-band .listen-btn { background: transparent; }

/* ---------- Footer ---------- */
/* Le bas du pied de page (sombre) réserve la place du lecteur : plus de bande claire vide sous le site */
.site-footer { background: var(--ink); color: #d6d6d6; padding: 80px 0 calc(var(--dock-h) + 40px); }
.site-footer a { color: #fff; }
.footer-logo { height: 60px; filter: brightness(0) invert(1); }
.footer-title { color: var(--primary); font-size: .85rem; text-transform: uppercase; letter-spacing: .14em; margin-bottom: 1rem; }
.footer-links li { margin-bottom: .45rem; }
.footer-links a { text-decoration: none; color: #d6d6d6; }
.footer-links a:hover { color: var(--primary); }
.social { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: #2a2a2a; text-decoration: none; font-size: 1.2rem; transition: .2s; }
.social:hover { background: var(--primary); color: var(--ink); }
.footer-bottom { border-top: 1px solid #2f2f2f; margin-top: 50px; padding-top: 24px; font-size: .88rem; color: #9b9b9b; }
.site-footer .listen-btn { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.site-footer .listen-btn .lb-time { color: #999; border-color: #444; }

/* ---------- Dock lecteur vocal ---------- */
.listen-dock {
    position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 1040;
    width: min(880px, calc(100% - 20px));
    background: rgba(20, 20, 20, .94); backdrop-filter: blur(14px); color: #fff;
    border-radius: 999px; box-shadow: 0 20px 50px -15px rgba(0,0,0,.55); border: 1px solid #333;
}
.dock-inner { display: flex; align-items: center; gap: .9rem; padding: .5rem .6rem; min-height: var(--dock-h); }
.dock-play { width: 58px; height: 58px; flex: 0 0 58px; border-radius: 50%; border: 0; background: var(--primary); color: var(--ink); font-size: 1.9rem; display: grid; place-items: center; transition: .2s; }
.dock-play:hover { transform: scale(1.06); }
.dock-meta { flex: 1; min-width: 0; }
.dock-kicker { font: 700 .72rem var(--font-display); text-transform: uppercase; letter-spacing: .12em; color: var(--primary); display: flex; align-items: center; gap: .45rem; }
.dock-title { font: 600 1rem var(--font-display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dock-progress { height: 4px; background: #3a3a3a; border-radius: 4px; margin-top: .35rem; overflow: hidden; }
.dock-progress span { display: block; height: 100%; width: 0; background: var(--primary); transition: width .4s; }
.dock-controls { display: flex; gap: .2rem; }
.dock-btn { width: 42px; height: 42px; border-radius: 50%; border: 0; background: transparent; color: #fff; font-size: 1.25rem; display: grid; place-items: center; transition: .2s; }
.dock-btn:hover { background: #333; color: var(--primary); }
.dock-rate { font: 800 .85rem var(--font-display); width: auto; padding: 0 .7rem; border-radius: 999px; }
/* Au repos : simple pastille discrète en bas à droite */
.listen-dock[data-state="idle"] { left: auto; right: 16px; transform: none; width: auto; background: var(--ink); }
.listen-dock[data-state="idle"] .dock-inner { min-height: 0; padding: .35rem 1.1rem .35rem .35rem; gap: .6rem; }
.listen-dock[data-state="idle"] .dock-play { width: 44px; height: 44px; flex-basis: 44px; font-size: 1.4rem; }
.listen-dock[data-state="idle"] .dock-title,
.listen-dock[data-state="idle"] .dock-progress,
.listen-dock[data-state="idle"] .eq,
.listen-dock[data-state="idle"] .dock-controls,
.listen-dock[data-state="idle"] .btn-radio-dock { display: none; }
.listen-dock[data-state="idle"] .dock-kicker { font-size: .85rem; letter-spacing: .04em; text-transform: none; color: #fff; }
.listen-dock[data-state="idle"]:hover .dock-play { transform: scale(1.06); }
.eq { display: inline-flex; gap: 2px; align-items: flex-end; height: 12px; }
.eq i { width: 3px; height: 4px; background: var(--primary); border-radius: 2px; }
.listen-dock[data-state="playing"] .eq i { animation: eq .9s infinite ease-in-out; }
.listen-dock[data-state="playing"] .eq i:nth-child(2) { animation-delay: .2s; }
.listen-dock[data-state="playing"] .eq i:nth-child(3) { animation-delay: .4s; }
.listen-dock[data-state="playing"] .eq i:nth-child(4) { animation-delay: .1s; }
@keyframes eq { 0%, 100% { height: 3px; } 50% { height: 12px; } }
@media (max-width: 575.98px) {
    :root { --dock-h: 64px; }
    .listen-dock { border-radius: 22px; bottom: 8px; }
    .dock-play { width: 48px; height: 48px; flex-basis: 48px; font-size: 1.6rem; }
    .dock-inner { gap: .5rem; }
    .dock-btn { width: 36px; height: 36px; }
    .btn-radio-dock .radio-label { display: none; }
    .listen-dock:not([data-state="idle"]) #dockPrev { display: none; }
}

/* ---------- Formulaire ---------- */
.form-rlm .form-control, .form-rlm .form-select { border: 1.5px solid var(--line); border-radius: 14px; padding: .85rem 1rem; background: #fff; }
.form-rlm .form-control:focus, .form-rlm .form-select:focus { border-color: var(--ink); box-shadow: 0 0 0 4px var(--primary); }
.form-rlm label { font-weight: 600; font-family: var(--font-display); margin-bottom: .35rem; }
.form-rlm .hint { font-weight: 400; font-family: var(--font-body); color: var(--muted); font-size: .9rem; }
.form-rlm [aria-invalid="true"] { border-color: #B00020; border-width: 2px; }
.field-error { color: #B00020; font-weight: 600; margin: .4rem 0 0; font-size: .95rem; }

/* ---------- Animations ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Contraste renforcé ---------- */
body.high-contrast { --text-color: #000; --muted: #1a1a1a; --line: #000; --bg-color: #fff; --light-bg: #fff; }
body.high-contrast .tile, body.high-contrast .card-rlm, body.high-contrast .pub { border-width: 2px; }
body.high-contrast a { text-decoration: underline; }
body.high-contrast .hero-collage, body.high-contrast .reveal { opacity: 1 !important; transform: none !important; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ==========================================================
   Identité 2026 : inspirée du blason et du logo au château
   (jaune moutarde, titres serif, vagues jaune et noir)
   ========================================================== */
h1, h2, .section-title, .hero-title, .page-hero h1, .quote-plus { font-family: var(--font-serif); font-weight: 700; letter-spacing: -.01em; }
.card-rlm h3, .pillar h3, .info-title, .footer-title, .bo-title { font-family: var(--font-display); }

/* Marque dans l'en-tête */
.navbar-brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand-blason { height: 60px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font: 700 1.45rem/1.05 var(--font-serif); color: var(--ink); letter-spacing: -.01em; }
.brand-la { font-style: italic; font-weight: 600; }
.brand-tag { font: 700 .68rem var(--font-display); letter-spacing: .32em; text-transform: uppercase; color: var(--gold-text); margin-top: .3rem; display: flex; align-items: center; gap: .4rem; }
.brand-tag::before, .brand-tag::after { content: ''; height: 2px; width: 14px; background: var(--primary); }
@media (max-width: 991.98px) { .brand-blason { height: 48px; } .brand-name { font-size: 1.2rem; } }
@media (max-width: 380px) { .brand-tag { letter-spacing: .2em; } }

/* Sur-titres : filets jaunes comme « — VILLE POSITIVE — » */
.eyebrow { letter-spacing: .22em; color: var(--gold-text); }
.eyebrow::before { content: ''; width: 28px; height: 2px; border-radius: 2px; background: var(--primary); }
.eyebrow-dark::before { background: var(--ink); }
.eyebrow-dark, .radio-band .eyebrow { color: var(--ink); }
.section-ink .eyebrow { color: var(--primary); }
.pub .eyebrow { color: var(--gold-text); }

/* Vagues jaune et noir (motif du logo) */
.wave { height: 70px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'%3E%3Cpath d='M0 52 C 300 8, 620 10, 920 40 S 1300 74, 1440 28' fill='none' stroke='%23F0B323' stroke-width='5'/%3E%3Cpath d='M0 64 C 330 24, 650 28, 950 54 S 1320 80, 1440 44' fill='none' stroke='%23141414' stroke-width='3'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }

/* Héros : logo au château */
.hero { background: #fff; padding: 40px 0 0; }
.hero::before { display: none; }
.hero-logo { width: 100%; height: auto; display: block; }
.hero-title { font-size: clamp(2.4rem, 4.6vw, 3.9rem); line-height: 1.05; letter-spacing: -.02em; }
.hero-title em { font-style: italic; background: linear-gradient(transparent 62%, var(--primary) 62%, var(--primary) 90%, transparent 90%); padding: 0 .08em; }
.hero-date { text-transform: capitalize; letter-spacing: .04em; }
.hero .wave { margin-top: 1.5rem; }
.info-strip { margin-top: 30px; }

/* En-têtes de pages intérieures */
.page-hero { background: var(--primary-soft); padding-bottom: 90px; }
.page-hero::after { content: ''; right: 0; left: 0; top: auto; bottom: 0; transform: none; height: 70px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'%3E%3Cpath d='M0 52 C 300 8, 620 10, 920 40 S 1300 74, 1440 28' fill='none' stroke='%23F0B323' stroke-width='5'/%3E%3Cpath d='M0 64 C 330 24, 650 28, 950 54 S 1320 80, 1440 44' fill='none' stroke='%23141414' stroke-width='3'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }
.page-hero h1 { font-weight: 700; }

/* Pied de page */
.footer-brand { display: flex; align-items: center; gap: .8rem; }
.footer-brand img { background: #fff; border-radius: 12px; padding: 4px; }
.footer-brand > span { display: flex; flex-direction: column; }
.footer-brand .brand-name { color: #fff; font-size: 1.35rem; }
.footer-brand .brand-tag { color: var(--primary); }
.site-footer { border-top: 4px solid var(--primary); }

/* Bouton jaune : texte toujours noir */
.btn-yellow, .btn-radio { color: var(--ink) !important; }
.btn-radio-sm { color: var(--primary) !important; }
.btn-radio-sm:hover { color: var(--ink) !important; }
.main-nav { background: rgba(255, 255, 255, .96); }
@media (max-width: 991.98px) { .main-nav { background: #fff; } }

/* ---------- Mode édition (agents connectés) ---------- */
.admin-bar { background: #2B2118; color: #fff; padding: .45rem 0; font-size: .92rem; }
.admin-bar .bi { color: var(--primary); }
.admin-bar-btn { display: inline-flex; align-items: center; background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.45); border-radius: 999px; padding: .2rem .8rem; font: 600 .85rem var(--font-display); text-decoration: none; }
.admin-bar-btn:hover, .admin-bar-btn[aria-pressed="true"] { background: var(--primary); color: var(--ink); border-color: var(--primary); }
.edit-dialog { border: 0; border-radius: var(--radius); padding: 1.5rem; max-width: 520px; width: calc(100% - 2rem); box-shadow: var(--shadow-lg); color: var(--ink); }
.edit-dialog::backdrop { background: rgba(0,0,0,.45); }
.edit-dialog .admin-bar-btn { color: var(--ink); border-color: var(--ink); }
.is-editable { position: relative; outline: 2px dashed transparent; outline-offset: 6px; transition: outline-color .2s; }
.is-editable:hover, .is-editable:focus-within { outline-color: rgba(240, 179, 35, .9); }
.edit-tool { display: inline-flex; align-items: center; gap: .3rem; border: 1.5px solid var(--ink); background: #fff; color: var(--ink); border-radius: 999px; padding: .25rem .75rem; font: 700 .82rem var(--font-display); line-height: 1.3; cursor: pointer; }
.edit-tool:hover { background: var(--primary); }
.edit-open { position: absolute; top: -14px; right: -6px; z-index: 20; background: var(--ink); color: #fff; border-color: var(--ink); box-shadow: var(--shadow); }
.edit-open:hover { background: var(--primary); color: var(--ink); }
body.edit-buttons-off .edit-open { display: none; }
body.edit-buttons-off .is-editable:hover { outline-color: transparent; }
.is-editing { outline: 3px solid var(--primary) !important; outline-offset: 6px; background: #fff; color: var(--ink); border-radius: 8px; }
.is-editing:focus { outline: 3px solid var(--ink) !important; }
.edit-toolbar { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; padding: .5rem; margin: -.25rem 0 1rem; background: var(--primary-soft); border-radius: 12px; position: sticky; top: 90px; z-index: 30; }
.edit-toolbar .edit-sep { flex: 1; }
.edit-save { background: var(--ink); color: #fff; }
.edit-save:hover { background: var(--primary); color: var(--ink); }
.section-ink .is-editing, .site-footer .is-editing { color: var(--ink); }
.section-ink .is-editing h2, .section-ink .is-editing h3, .site-footer .is-editing a { color: var(--ink); }