/* =========================================================================
   Oudalaye — compléments thème WordPress (au-dessus de la maquette)
   Réutilise les variables de charte définies dans style.css
   ========================================================================= */

.container--narrow { max-width: 820px; }

/* --- Contenu riche (pages, articles) ----------------------------------- */
.rich-text { color: var(--ink-soft); line-height: 1.75; font-size: 1.02rem; }
.rich-text h2 { font-size: 1.6rem; color: var(--ink); margin: 1.8em 0 .6em; }
.rich-text h3 { font-size: 1.25rem; color: var(--ink); margin: 1.4em 0 .5em; }
.rich-text p { margin: 0 0 1.1em; }
.rich-text a { color: var(--vert-700); text-decoration: underline; }
.rich-text img { max-width: 100%; height: auto; border-radius: var(--radius); }
.rich-text ul, .rich-text ol { margin: 0 0 1.1em 1.2em; }
.rich-text li { margin: .3em 0; }
.rich-text blockquote { border-left: 4px solid var(--vert-300); margin: 1.4em 0; padding: .4em 0 .4em 1.2em; color: var(--muted); font-style: italic; }
.rich-text table { width: 100%; border-collapse: collapse; margin: 1.2em 0; }
.rich-text th, .rich-text td { border: 1px solid var(--line); padding: .6em .8em; text-align: left; }
.rich-text th { background: var(--beige-100); }

/* --- En-têtes de page / archive ---------------------------------------- */
.page-head, .archive-head { margin-bottom: 2rem; }
.archive-desc { color: var(--muted); max-width: 640px; margin-top: .8rem; }
.subheading { font-size: 1.3rem; color: var(--ink); margin: 2rem 0 1rem; }
.empty { color: var(--muted); padding: 1.2rem 0; }

/* --- Fil d'Ariane ------------------------------------------------------- */
.breadcrumb { font-size: .85rem; color: var(--muted); margin-bottom: 1.2rem; }
.breadcrumb a { color: var(--vert-700); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* --- Grille réalisations ----------------------------------------------- */
.realisation-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.6rem; }
.realisation-item { display: contents; }

.realisation-card { display: flex; flex-direction: column; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); text-decoration: none; color: inherit; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.realisation-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.realisation-card__media { position: relative; display: block; aspect-ratio: 4/3; overflow: hidden; }
.realisation-card__media img { width: 100%; height: 100%; object-fit: cover; }
.realisation-card__statut { position: absolute; top: .8rem; left: .8rem; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; padding: .28em .7em; border-radius: var(--radius-pill); background: var(--ink); color: #fff; }
.realisation-card__body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; gap: .4rem; }
.realisation-card__secteur { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--vert-700); }
.realisation-card__title { font-weight: 700; color: var(--ink); font-size: 1.08rem; line-height: 1.3; }
.realisation-card__excerpt { color: var(--muted); font-size: .92rem; line-height: 1.5; }

/* Pastilles de statut pleines (cartes/frise, sur photo) */
.statut--realise, .statut--réalisé { background: #2e7d46; }   /* vert */
.statut--en-cours { background: #e28413; }                    /* orange */
.statut--planifie, .statut--planifié { background: #c0392b; } /* rouge */

/* Statut en texte coloré (sans fond) — fiche projet */
.statut-text { display: inline-flex; align-items: center; gap: .45em; font-weight: 700; }
.statut-text::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: currentColor; flex: 0 0 auto; }
.statut-text.statut-text--realise, .statut-text.statut-text--réalisé { color: #2e7d46; }   /* vert */
.statut-text.statut-text--en-cours { color: #e28413; }                         /* orange */
.statut-text.statut-text--planifie, .statut-text.statut-text--planifié { color: #c0392b; } /* rouge */

/* --- Filtres réalisations ---------------------------------------------- */
.realisation-filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.8rem; }
.realisation-filters .filter-pill.is-active { background: var(--vert-700); color: #fff; border-color: var(--vert-700); }
.realisation-item.is-hidden { display: none; }

/* --- Fiche projet (single réalisation) --------------------------------- */
.single-realisation__grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 900px) { .single-realisation__grid { grid-template-columns: 1.7fr 1fr; } }
.single-realisation__head h1 { font-size: 2rem; color: var(--ink); margin: .4rem 0 0; }
.single-realisation__media img { width: 100%; border-radius: var(--radius); margin-bottom: 1.4rem; }
.fiche { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.5rem 1.6rem; position: sticky; top: 1.5rem; box-shadow: var(--shadow-sm); }
.fiche__title { font-size: 1.05rem; color: var(--ink); margin: 0 0 1.1rem; padding-bottom: .7rem; border-bottom: 2px solid var(--vert-200); }
.fiche__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.fiche__list li { display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-size: .93rem; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.fiche__list li:last-child { border-bottom: 0; padding-bottom: 0; }
.fiche__list span { color: var(--muted); }
.fiche__list strong { color: var(--ink); text-align: right; }
.fiche .btn { margin-top: 1.3rem; width: 100%; justify-content: center; }

/* --- Single article / événement ---------------------------------------- */
.single-actu__title, .single-evenement__head h1 { font-size: 2rem; color: var(--ink); margin: .3rem 0 1rem; line-height: 1.2; }
.single-actu__date { color: var(--muted); font-size: .9rem; }
.single-actu__media img, .single-evenement__media img { width: 100%; border-radius: var(--radius); margin: 1rem 0 1.6rem; }
.single-evenement__meta { display: flex; flex-wrap: wrap; gap: 1.2rem; color: var(--ink-soft); font-size: .95rem; margin-bottom: 1rem; }
.single-evenement__meta svg { width: 18px; height: 18px; vertical-align: -3px; color: var(--vert-700); }
.single-actu__foot { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; }

/* --- Pagination -------------------------------------------------------- */
.pagination { margin-top: 2.5rem; display: flex; justify-content: center; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: .4rem; }
.pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 42px; padding: 0 .6rem; border-radius: var(--radius-sm); background: var(--white); box-shadow: var(--shadow-sm); color: var(--ink); text-decoration: none; font-weight: 600; }
.pagination .page-numbers.current { background: var(--vert-700); color: #fff; }
.pagination .page-numbers:hover:not(.current) { background: var(--beige-200); }

/* --- Bouton WhatsApp flottant ------------------------------------------ */
.wa-float { position: fixed; right: 18px; bottom: 84px; z-index: 60; width: 54px; height: 54px; border-radius: 50%; background: #25d366; color: #fff; display: inline-flex; align-items: center; justify-content: center; box-shadow: var(--shadow); transition: transform .25s var(--ease); }
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; }

/* --- Réalisations : barre d'outils / vues ------------------------------ */
.realisation-toolbar { display: flex; justify-content: flex-end; margin-bottom: 1rem; }
.view-switch { display: inline-flex; background: var(--beige-100); border-radius: var(--radius-pill); padding: 4px; gap: 2px; }
.view-switch button { border: 0; background: transparent; padding: .5em 1.1em; border-radius: var(--radius-pill); font: inherit; font-weight: 600; color: var(--ink-soft); cursor: pointer; transition: background .2s var(--ease), color .2s var(--ease); }
.view-switch button.is-active { background: var(--vert-700); color: #fff; }

.realisation-map { width: 100%; height: 520px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.leaflet-container a { color: var(--vert-700); }

/* --- Frise chronologique ---------------------------------------------- */
.timeline { list-style: none; margin: 0; padding: 0 0 0 1.4rem; border-left: 3px solid var(--vert-200); }
.timeline__year { position: relative; margin: 0 0 2rem; }
.timeline__year::before { content: ""; position: absolute; left: calc(-1.4rem - 8px); top: 4px; width: 15px; height: 15px; border-radius: 50%; background: var(--vert-700); box-shadow: 0 0 0 4px var(--vert-100); }
.timeline__label { display: inline-block; font-weight: 700; color: var(--vert-800); font-size: 1.15rem; margin-bottom: .7rem; }
.timeline__items { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .6rem; }
.timeline__items a { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem; background: var(--white); border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); padding: .7rem 1rem; text-decoration: none; color: var(--ink); transition: transform .2s var(--ease); }
.timeline__items a:hover { transform: translateX(3px); }
.timeline__statut { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: #fff; padding: .2em .6em; border-radius: var(--radius-pill); background: var(--ink); }
.timeline__secteur { color: var(--muted); font-size: .85rem; }

/* --- Contrainte des logos (custom_logo WordPress) ---------------------- */
.site-header .logo img,
.site-header .custom-logo,
.site-header .custom-logo-link img { height: 56px !important; width: auto !important; }
.footer__logo img,
.footer__logo .custom-logo,
.footer__logo .custom-logo-link img { height: 92px !important; width: auto !important; }

/* --- Ancre : compense l'en-tête collant lors des sauts d'ancre --------- */
:target { scroll-margin-top: 110px; }

/* --- Formulaires (démarches, signalement, contact) --------------------- */
.form { display: flex; flex-direction: column; gap: 1rem; }
.form .field { display: flex; flex-direction: column; gap: .35rem; }
.form label { font-weight: 600; color: var(--ink); font-size: .93rem; }
.form input[type="text"], .form input[type="email"], .form input[type="tel"],
.form input[type="date"], .form input[type="file"], .form select, .form textarea {
  width: 100%; padding: .7em .9em; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font: inherit; color: var(--ink); background: var(--white); transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--vert-400); box-shadow: 0 0 0 3px var(--vert-100); }
.form textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.field--consent label { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; color: var(--ink-soft); font-size: .88rem; }
.field--consent input { margin-top: .2rem; }
.field--btn { justify-content: flex-end; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Accordéon (démarches) */
.demarches-list { display: flex; flex-direction: column; gap: .8rem; margin: 1.6rem 0 2.5rem; }
.accordion { border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); overflow: hidden; }
.accordion > summary { cursor: pointer; padding: 1rem 1.2rem; font-weight: 700; color: var(--ink); list-style: none; position: relative; }
.accordion > summary::-webkit-details-marker { display: none; }
.accordion > summary::after { content: "+"; position: absolute; right: 1.2rem; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--vert-700); }
.accordion[open] > summary::after { content: "–"; }
.accordion[open] > summary { background: var(--beige-100); }
.accordion__body { padding: 1.2rem; border-top: 1px solid var(--line); }

/* Notices */
.notice { padding: 1rem 1.2rem; border-radius: var(--radius-sm); margin: 1.2rem 0; font-size: .95rem; }
.notice--ok { background: var(--vert-100); color: var(--vert-900); border: 1px solid var(--vert-300); }
.notice--err { background: #fdeaea; color: #8a1f1f; border: 1px solid #f0b4b4; }

/* Carte de signalement / suivi */
.sig-map { width: 100%; height: 320px; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line); }
.suivi-box { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.intro { color: var(--ink-soft); margin-bottom: 1.6rem; }

/* --- En-tête de page (hero interne) ------------------------------------ */
.page-hero { background: var(--vert-700); color: #fff; padding: 2.6rem 0 3.4rem; background-image: var(--scales-light); }
.page-hero h1 { color: #fff; font-size: clamp(1.7rem, 4vw, 2.6rem); margin: .4rem 0 0; line-height: 1.15; }
.page-hero__lead { color: rgba(255,255,255,.9); margin-top: .8rem; max-width: 640px; }
.breadcrumb--light { color: rgba(255,255,255,.85); }
.breadcrumb--light a { color: #fff; }
.breadcrumb--light span { color: rgba(255,255,255,.75); }
.page-content__media img { width: 100%; border-radius: var(--radius); margin-bottom: 1.8rem; }

/* --- Article moderne --------------------------------------------------- */
.single-actu__hero { padding: 2.2rem 0 1.4rem; }
.pill-cat { display: inline-block; background: var(--vert-100); color: var(--vert-800); font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; padding: .3em .9em; border-radius: var(--radius-pill); text-decoration: none; margin-bottom: .8rem; }
.single-actu__title { font-size: clamp(1.7rem, 3.6vw, 2.5rem); color: var(--ink); line-height: 1.18; margin: 0 0 1rem; }
.single-actu__meta { display: flex; flex-wrap: wrap; gap: 1.3rem; color: var(--muted); font-size: .92rem; }
.single-actu__meta svg { width: 17px; height: 17px; vertical-align: -3px; color: var(--vert-700); }
.single-actu__media { margin: 0 0 2rem; }
.single-actu__media img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.single-actu__body { font-size: 1.06rem; }
.single-actu__foot { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; margin: 2.2rem 0 0; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.share { display: inline-flex; align-items: center; gap: .5rem; color: var(--muted); font-size: .9rem; }
.related { margin-top: 3rem; padding: 3rem 0 3.5rem; background-image: var(--scales-dark); }

/* --- Galerie vidéo (médiathèque) --------------------------------------- */
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.4rem; margin: 1.5rem 0 3rem; }
.yt-facade { position: relative; display: block; width: 100%; padding: 0; border: 0; background: #000; border-radius: var(--radius); overflow: hidden; cursor: pointer; aspect-ratio: 16/9; box-shadow: var(--shadow-sm); }
.yt-facade img { width: 100%; height: 100%; object-fit: cover; opacity: .9; transition: opacity .25s var(--ease), transform .4s var(--ease); }
.yt-facade:hover img { opacity: 1; transform: scale(1.04); }
.yt-facade__play { position: absolute; inset: 0; margin: auto; width: 68px; height: 48px; }
.yt-facade__play svg { width: 100%; height: 100%; filter: drop-shadow(0 2px 6px rgba(0,0,0,.4)); }
.video-embed { position: relative; aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.mediatheque-cta { margin-top: 2rem; }

/* --- Portail vidéo : à la une ------------------------------------------ */
.video-featured { display: grid; grid-template-columns: 1fr; gap: 1.6rem; margin-bottom: 2.8rem; }
@media (min-width: 860px) { .video-featured { grid-template-columns: 1.6fr 1fr; align-items: center; } }
.video-featured__player .yt-facade { aspect-ratio: 16/9; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.video-featured__info h2 { font-size: clamp(1.3rem, 2.6vw, 1.9rem); color: var(--ink); margin: .5rem 0 .3rem; line-height: 1.2; }
.video-featured__date { color: var(--muted); font-size: .9rem; margin-bottom: 1.1rem; }
.mediatheque-head { margin-top: 1rem; }
.video-filters { margin-bottom: 1.8rem; }

/* --- Cartes vidéo ------------------------------------------------------- */
.video-card { display: flex; flex-direction: column; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); text-decoration: none; color: inherit; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.video-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.video-card__media { position: relative; aspect-ratio: 16/9; overflow: hidden; background: #000; }
.video-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease), opacity .25s var(--ease); opacity: .95; }
.video-card:hover .video-card__media img { transform: scale(1.05); opacity: 1; }
.video-card__play { position: absolute; inset: 0; margin: auto; width: 54px; height: 38px; }
.video-card__play svg { width: 100%; height: 100%; filter: drop-shadow(0 2px 5px rgba(0,0,0,.4)); }
.video-card__body { padding: .9rem 1.1rem 1.1rem; display: flex; flex-direction: column; gap: .3rem; }
.video-card__theme { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--vert-700); }
.video-card__title { font-weight: 700; color: var(--ink); line-height: 1.3; font-size: 1rem; }
.video-card__date { color: var(--muted); font-size: .82rem; }

/* --- Page vidéo -------------------------------------------------------- */
.video-embed--lead { margin-bottom: 1.6rem; box-shadow: var(--shadow); border-radius: var(--radius-lg); }
.single-video__head h1 { font-size: clamp(1.5rem, 3.2vw, 2.2rem); color: var(--ink); line-height: 1.2; margin: .3rem 0 .6rem; }
.single-video__meta { color: var(--muted); font-size: .92rem; }
.single-video__meta svg { width: 17px; height: 17px; vertical-align: -3px; color: var(--vert-700); }

/* --- Page Contact ------------------------------------------------------ */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 2.4rem; }
@media (min-width: 880px) { .contact-grid { grid-template-columns: 1fr 1.1fr; } }
.contact-cards { list-style: none; margin: 0 0 1.4rem; padding: 0; display: flex; flex-direction: column; gap: .9rem; }
.contact-card { display: flex; gap: 1rem; align-items: flex-start; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; }
.contact-card__ico { flex: 0 0 auto; width: 42px; height: 42px; border-radius: 50%; background: var(--vert-100); color: var(--vert-700); display: inline-flex; align-items: center; justify-content: center; }
.contact-card__ico svg { width: 20px; height: 20px; }
.contact-card__ico--wa { background: #d8f5e0; color: #128c4a; }
.contact-card strong { display: block; color: var(--ink); font-size: .82rem; text-transform: uppercase; letter-spacing: .03em; }
.contact-card p { margin: .2rem 0 0; color: var(--ink-soft); }
.contact-card a { color: var(--vert-700); text-decoration: none; }
.contact-map { width: 100%; height: 300px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.contact-form-wrap { background: var(--beige-100); border-radius: var(--radius-lg); padding: 1.8rem; }

/* --- Lecteur PDC ------------------------------------------------------- */
.pdc-toolbar { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; margin-bottom: 1.6rem; }
.pdc-search { position: relative; flex: 1 1 320px; max-width: 520px; }
.pdc-search input { width: 100%; padding: .75em 1em .75em 2.6em; border: 1px solid var(--line); border-radius: var(--radius-pill); font: inherit; background: var(--white); }
.pdc-search input:focus { outline: none; border-color: var(--vert-400); box-shadow: 0 0 0 3px var(--vert-100); }
.pdc-search__ico { position: absolute; left: .95em; top: 50%; transform: translateY(-50%); color: var(--muted); }
.pdc-search__ico svg { width: 18px; height: 18px; }
.pdc-search__count { position: absolute; right: 1em; top: 50%; transform: translateY(-50%); font-size: .8rem; color: var(--muted); }

.pdc-layout { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 900px) { .pdc-layout { grid-template-columns: 280px 1fr; align-items: start; } }

.pdc-toc { background: var(--beige-100); border-radius: var(--radius); padding: 1.2rem 1rem; }
@media (min-width: 900px) { .pdc-toc { position: sticky; top: 1.2rem; max-height: calc(100vh - 2rem); overflow-y: auto; } }
.pdc-toc__title { font-size: 1rem; color: var(--ink); margin: 0 0 .8rem; text-transform: uppercase; letter-spacing: .04em; }
/* Bouton "Sommaire" (titre en desktop, bascule repliable en mobile) */
.pdc-toc__toggle { display: flex; align-items: center; justify-content: space-between; gap: .5rem; width: 100%; background: none; border: 0; font: inherit; font-weight: 700; font-size: 1rem; color: var(--ink); text-transform: uppercase; letter-spacing: .04em; padding: 0 0 .8rem; cursor: default; }
.pdc-toc__chevron { display: none; width: 22px; height: 22px; color: var(--vert-700); transition: transform .25s var(--ease); flex: 0 0 auto; }
.pdc-toc__list { list-style: none; margin: 0; padding: 0; counter-reset: chap; }
.pdc-toc__chap { display: block; font-weight: 700; color: var(--ink); text-decoration: none; padding: .5em .6em; border-radius: var(--radius-sm); font-size: .92rem; line-height: 1.3; }
.pdc-toc__chap:hover { background: var(--beige-200); }
.pdc-toc__chap.is-active { background: var(--vert-700); color: #fff; }
.pdc-toc__subs { list-style: none; margin: .2rem 0 .8rem; padding: 0 0 0 .8rem; border-left: 2px solid var(--vert-200); }
.pdc-toc__subs a { display: block; color: var(--ink-soft); text-decoration: none; font-size: .82rem; padding: .28em .5em; line-height: 1.3; }
.pdc-toc__subs a:hover { color: var(--vert-700); }

.pdc-content { min-width: 0; }
.pdc-chapter h2 { font-size: clamp(1.4rem, 3vw, 2rem); color: var(--vert-800); margin: 0 0 1.2rem; padding-bottom: .6rem; border-bottom: 3px solid var(--vert-200); }
.pdc-chapter h3 { font-size: 1.12rem; color: var(--ink); margin: 1.8em 0 .5em; }
.pdc-chapter p { color: var(--ink-soft); line-height: 1.75; margin: 0 0 1em; }
mark.pdc-hit { background: #ffe08a; color: inherit; padding: 0 .1em; border-radius: 3px; }
.pdc-nav { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.pdc-nav button[disabled] { opacity: .4; cursor: not-allowed; }

/* --- Barre de recherche d'accueil (intuitive) -------------------------- */
.searchbar--hero { max-width: 720px; margin: 0 auto 2rem; text-align: center; }
.searchbar--hero .searchbar__title { font-weight: 700; color: var(--ink); font-size: 1.15rem; margin: 0 0 .8rem; }
.searchbar--hero .searchbar__form { position: relative; display: flex; align-items: center; background: var(--white); border-radius: var(--radius-pill); box-shadow: var(--shadow); padding: 6px 6px 6px 3.2em; }
.searchbar--hero .searchbar__ico { position: absolute; left: 1.15em; top: 50%; transform: translateY(-50%); color: var(--vert-700); }
.searchbar--hero .searchbar__ico svg { width: 22px; height: 22px; }
.searchbar--hero .searchbar__input { flex: 1; border: 0; background: transparent; font: inherit; font-size: 1.02rem; padding: .7em .4em; color: var(--ink); }
.searchbar--hero .searchbar__input:focus { outline: none; }
.searchbar--hero .searchbar__submit { flex: 0 0 auto; border-radius: var(--radius-pill); padding: .7em 1.4em; }
.searchbar__suggests { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; align-items: center; margin-top: .9rem; font-size: .88rem; }
.searchbar__suggests > span { color: var(--muted); }
.searchbar__suggests a { background: var(--white); color: var(--vert-800); text-decoration: none; padding: .32em .9em; border-radius: var(--radius-pill); box-shadow: var(--shadow-sm); transition: background .2s var(--ease), color .2s var(--ease); }
.searchbar__suggests a:hover { background: var(--vert-700); color: #fff; }
@media (max-width: 560px) {
  .searchbar--hero .searchbar__submit span { display: none; }
  .searchbar--hero .searchbar__submit::after { content: "OK"; }
}

/* --- Colonne latérale des Infos municipales ---------------------------- */
.infos__side { display: flex; flex-direction: column; gap: 1.6rem; }
.side-block { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 1.2rem 1.3rem; }
.side-block__title { display: flex; align-items: center; gap: .5rem; font-size: 1.05rem; color: var(--ink); margin: 0 0 1rem; }
.side-block__title svg { width: 20px; height: 20px; color: var(--vert-700); }
.side-videos { list-style: none; margin: 0 0 1rem; padding: 0; display: flex; flex-direction: column; gap: .8rem; }
.side-videos a { display: flex; gap: .8rem; align-items: center; text-decoration: none; color: var(--ink); }
.side-videos__thumb { position: relative; flex: 0 0 auto; width: 120px; aspect-ratio: 16/9; border-radius: var(--radius-sm); overflow: hidden; background: #000; }
.side-videos__thumb img { width: 100%; height: 100%; object-fit: cover; }
.side-videos__play { position: absolute; inset: 0; margin: auto; width: 34px; height: 24px; }
.side-videos__play svg { width: 100%; height: 100%; }
.side-videos__title { font-size: .9rem; font-weight: 600; line-height: 1.3; }
.side-videos a:hover .side-videos__title { color: var(--vert-700); }
.side-docs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .7rem; }
.side-docs a { display: flex; gap: .8rem; align-items: center; text-decoration: none; color: var(--ink); padding: .5rem; border-radius: var(--radius-sm); transition: background .2s var(--ease); }
.side-docs a:hover { background: var(--beige-100); }
.side-docs__ico { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 10px; background: var(--vert-100); color: var(--vert-700); display: inline-flex; align-items: center; justify-content: center; }
.side-docs__ico svg { width: 20px; height: 20px; }
.side-docs strong { display: block; font-size: .92rem; }
.side-docs small { color: var(--muted); font-size: .8rem; }

/* --- Conseil municipal ------------------------------------------------- */
.mot-maire { display: grid; grid-template-columns: 1fr; gap: 1.8rem; margin-bottom: 3rem; align-items: start; }
@media (min-width: 780px) { .mot-maire { grid-template-columns: 300px 1fr; } }
.mot-maire__photo { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); background: var(--vert-100); aspect-ratio: 3/4; }
.mot-maire__photo img { width: 100%; height: 100%; object-fit: cover; }
.mot-maire__sign { margin-top: 1rem; color: var(--ink); }
.conseil-block { margin-bottom: 3rem; }

.elu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.4rem; }
.elu-grid--small { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.elu-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; text-align: center; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.elu-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.elu-card__photo { aspect-ratio: 1/1; background: var(--vert-100); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.elu-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.elu-card__initials { font-size: 3rem; font-weight: 700; color: var(--vert-400); font-family: var(--font-script); }
.elu-card__body { padding: 1rem .9rem 1.2rem; }
.elu-card__name { font-size: 1.05rem; color: var(--ink); margin: 0 0 .2rem; }
.elu-card__role { color: var(--vert-700); font-weight: 600; font-size: .9rem; margin: 0; }
.elu-card__comm { color: var(--muted); font-size: .82rem; margin: .3rem 0 0; }

/* --- Démarches : mise en page réorganisée ------------------------------ */
.demarches-layout { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 920px) { .demarches-layout { grid-template-columns: 1fr 330px; align-items: start; } }

/* Étapes */
.steps { list-style: none; margin: 0 0 1.6rem; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; }
.steps li { display: flex; align-items: center; gap: .5rem; color: var(--ink-soft); font-weight: 600; font-size: .9rem; }
.steps__num { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: var(--vert-700); color: #fff; font-size: .82rem; }

/* Onglets de démarche */
.demarche-tabs { display: grid; grid-template-columns: repeat(2, 1fr); gap: .6rem; margin-bottom: 1.6rem; }
@media (min-width: 620px) { .demarche-tabs { grid-template-columns: repeat(4, 1fr); } }
.demarche-tab { display: flex; flex-direction: column; align-items: center; gap: .5rem; padding: 1rem .6rem; border: 2px solid var(--line); background: var(--white); border-radius: var(--radius); cursor: pointer; font: inherit; font-weight: 600; font-size: .85rem; color: var(--ink-soft); text-align: center; transition: border-color .2s var(--ease), background .2s var(--ease), color .2s var(--ease); }
.demarche-tab svg { width: 26px; height: 26px; color: var(--vert-700); }
.demarche-tab:hover { border-color: var(--vert-300); }
.demarche-tab.is-active { border-color: var(--vert-700); background: var(--vert-700); color: #fff; }
.demarche-tab.is-active svg { color: #fff; }

/* Formulaire */
.demarche-form { background: var(--beige-100); border-radius: var(--radius-lg); padding: 1.8rem; }
.demarche-form__title { font-size: 1.3rem; color: var(--ink); margin: 0 0 1.2rem; }
.form-sep { border: 0; border-top: 1px solid var(--line); margin: 1.4rem 0; }
.form-legend { font-weight: 700; color: var(--vert-800); text-transform: uppercase; letter-spacing: .03em; font-size: .8rem; margin: 0 0 .3rem; }
.btn--lg { padding: .9em 1.8em; font-size: 1rem; }

/* Colonne d'aide */
.demarche-aside { display: flex; flex-direction: column; gap: 1.2rem; }
.aide-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.3rem; }
.suivi-card { background: var(--beige-100); border-color: transparent; }
.aide-card__title { display: flex; align-items: center; gap: .5rem; font-size: 1.02rem; color: var(--ink); margin: 0 0 .8rem; }
.aide-card__title svg { width: 19px; height: 19px; color: var(--vert-700); }
.aide-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .6rem; }
.aide-list li { position: relative; padding-left: 1.3rem; color: var(--ink-soft); font-size: .9rem; line-height: 1.5; }
.aide-list li::before { content: "✓"; position: absolute; left: 0; color: var(--vert-700); font-weight: 700; }
.aide-list strong { color: var(--ink); }
.contact-mini p { color: var(--ink-soft); font-size: .9rem; margin: 0 0 .9rem; }

/* --- Réseaux sociaux : en-tête ----------------------------------------- */
.header__social { display: inline-flex; align-items: center; gap: 2px; }
@media (max-width: 900px) { .header__social { display: none; } } /* évite d'encombrer le mobile (présents dans le footer) */

/* --- Réseaux sociaux : pied de page ------------------------------------ */
.footer__social-row { background: var(--vert-800); }
.footer__social-inner { display: flex; align-items: center; justify-content: center; gap: 1rem; flex-wrap: wrap; padding: 1rem 0; }
.footer__social-label { color: #fff; font-weight: 700; letter-spacing: .02em; }
.footer__social { display: inline-flex; gap: .6rem; }
.footer__social-btn { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; transition: transform .2s var(--ease), background .2s var(--ease); }
.footer__social-btn svg { width: 20px; height: 20px; }
.footer__social-btn:hover { transform: translateY(-3px); }
.footer__social-btn[title="Facebook"]:hover { background: #1877f2; }
.footer__social-btn[title="YouTube"]:hover { background: #ff0000; }
.footer__social-btn[title="TikTok"]:hover { background: #000; }
.footer__social-btn[title="LinkedIn"]:hover { background: #0a66c2; }

/* --- Menu mobile retravaillé ------------------------------------------- */
.main-nav__mhead, .main-nav__mfoot { display: none; }

@media (max-width: 900px) {
  /* Aligner le bloc d'outils / burger tout à droite de l'en-tête */
  .header__inner .header__tools { margin-left: auto; }

  /* Hero mobile : hauteur, titre et positionnement du texte */
  .hero__viewport { height: 380px; }
  .hero__caption { bottom: 104px; padding-inline: 24px; }
  .hero__caption h1 { font-size: 1.7rem; line-height: 1.15; }
  .hero__caption p { font-size: .82rem; margin-top: 6px; }
  .hero__dots { bottom: 78px; }
  .hero__nav { --size: 36px; }
  .hero__nav--prev { left: 8px; }
  .hero__nav--next { right: 8px; }

  .main-nav { padding: 0 18px 26px !important; }
  .main-nav__mhead {
    display: flex; align-items: center; justify-content: space-between;
    position: sticky; top: 0; z-index: 2; background: var(--white);
    padding: 16px 2px 14px; margin-bottom: 6px; border-bottom: 2px solid var(--vert-200);
  }
  .main-nav__mtitle { font-family: var(--font-script); color: var(--vert-700); font-size: 1.5rem; line-height: 1; }
  .main-nav__close {
    width: 44px; height: 44px; border: 0; cursor: pointer; border-radius: 50%;
    background: var(--beige-100); color: var(--ink);
    display: inline-flex; align-items: center; justify-content: center;
    transition: background .2s var(--ease);
  }
  .main-nav__close:hover { background: var(--vert-100); color: var(--vert-700); }
  .main-nav__close svg { width: 22px; height: 22px; }

  .main-nav__list { gap: 0 !important; }
  .main-nav__item { border-bottom: 1px solid var(--line); }
  .main-nav__link {
    display: block; padding: 15px 6px !important; font-size: .98rem !important;
    font-weight: 600; color: var(--ink);
  }
  .main-nav__item--has-sub > .main-nav__link { position: relative; }
  .main-nav__item--has-sub > .main-nav__link::after {
    content: ""; position: absolute; right: 10px; top: 50%; width: 9px; height: 9px;
    border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
    transform: translateY(-70%) rotate(45deg); transition: transform .2s var(--ease);
  }
  .main-nav__item--has-sub.is-open > .main-nav__link::after { transform: translateY(-30%) rotate(-135deg); }
  .submenu a { padding: 11px 6px !important; font-size: .9rem; color: var(--ink-soft); }

  .main-nav__mfoot { display: block; margin-top: 1.6rem; }
  .main-nav__contact { width: 100%; justify-content: center; gap: .5rem; margin-bottom: 1.1rem; }
  .main-nav__contact svg { width: 18px; height: 18px; }
  .main-nav__social { display: flex; gap: .6rem; justify-content: center; }
  .main-nav__social a {
    width: 46px; height: 46px; border-radius: 50%; background: var(--vert-100); color: var(--vert-700);
    display: inline-flex; align-items: center; justify-content: center; transition: transform .2s var(--ease), background .2s var(--ease), color .2s var(--ease);
  }
  .main-nav__social a:hover { transform: translateY(-2px); }
  .main-nav__social a[title="Facebook"]:hover { background: #1877f2; color: #fff; }
  .main-nav__social a[title="YouTube"]:hover { background: #ff0000; color: #fff; }
  .main-nav__social a[title="TikTok"]:hover { background: #000; color: #fff; }
  .main-nav__social a[title="LinkedIn"]:hover { background: #0a66c2; color: #fff; }
  .main-nav__social a svg { width: 20px; height: 20px; }
}

/* --- Cartes cliquables : pas de soulignement au survol ----------------- */
.realisation-card, .realisation-card:hover, .realisation-card:hover *,
.video-card, .video-card:hover, .video-card:hover *,
.event-card, .event-card:hover, .event-card:hover *,
.news-card:hover *, .side-videos a:hover, .side-videos a:hover *,
.timeline__items a:hover, .timeline__items a:hover * { text-decoration: none; }
/* Retour visuel propre au survol : titre en vert (au lieu du soulignement) */
.realisation-card:hover .realisation-card__title,
.video-card:hover .video-card__title,
.event-card:hover .event-card__title,
.news-card:hover .news-card__title { color: var(--vert-700); }

/* --- Hero : lisibilité (dégradé) + titre maîtrisé ---------------------- */
.hero__viewport::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(to top, rgba(0,0,0,.62) 0%, rgba(0,0,0,.22) 42%, rgba(0,0,0,0) 68%);
}
.hero__caption { z-index: 3; }
.hero__caption h1 {
  font-family: var(--font-sans); font-weight: 700;
  font-size: clamp(1.7rem, 4.5vw, 3.1rem); line-height: 1.12; margin: 0;
}

/* =========================================================================
   Ajustements UX/UI mobile (≤ 900px)
   ========================================================================= */
@media (max-width: 900px) {
  /* En-têtes de page : titres plus compacts */
  .page-hero { padding: 2rem 0 2.6rem; }
  .page-hero h1 { font-size: clamp(1.5rem, 7vw, 2rem); }

  /* Lecteur PDC : sommaire repliable */
  .pdc-toc { position: static !important; max-height: none; padding: 0; overflow: visible; }
  .pdc-toc__toggle { cursor: pointer; padding: 1rem 1.2rem; }
  .pdc-toc__chevron { display: block; }
  .pdc-toc.is-open .pdc-toc__chevron { transform: rotate(180deg); }
  .pdc-toc #pdc-toc { display: none; padding: 0 1.2rem 1.1rem; }
  .pdc-toc.is-open #pdc-toc { display: block; max-height: 60vh; overflow-y: auto; }
  .pdc-toolbar { flex-direction: column; align-items: stretch; }
  .pdc-search { flex: 0 0 auto; max-width: none; }
  .pdc-toolbar .btn { justify-content: center; }
  .pdc-nav { flex-direction: column; }
  .pdc-nav .btn { width: 100%; justify-content: center; }

  /* Conseil municipal : trombinoscope sur 2 colonnes */
  .elu-grid, .elu-grid--small { grid-template-columns: repeat(2, 1fr); gap: .9rem; }
  .elu-card__name { font-size: .95rem; }
  .elu-card__initials { font-size: 2.2rem; }

  /* Fiche réalisation : non collante quand empilée */
  .fiche { position: static !important; }
  .single-realisation__foot, .single-actu__foot { flex-direction: column; align-items: flex-start; }

  /* Vidéo à la une : titre plus compact */
  .video-featured__info h2 { font-size: 1.25rem; }

  /* Frise : items plus lisibles */
  .timeline__items a { flex-direction: column; align-items: flex-start; gap: .3rem; }

  /* Réduire les grands titres de section */
  .section-title { font-size: 1.9rem; }
}

/* --- Divers ------------------------------------------------------------ */
.section--center { text-align: center; }
