/* ================================================
   Commune de Poussay — Feuille de style principale
   Design System: "The Living Manuscript"
   Charte graphique Heritage Editorial
   ================================================ */

/* === VARIABLES CSS === */
:root {
    --primary: #006c0c;
    --primary-container: #1c871e;
    --on-primary: #ffffff;
    --surface: #fff8f7;
    --surface-container: #f5ebe8;
    --surface-container-low: #faf1ef;
    --surface-container-high: #efe3e0;
    --surface-container-highest: #e9dbd7;
    --surface-container-lowest: #ffffff;
    --on-surface: #360c19;
    --secondary: #705d00;
    --secondary-fixed: #ffe16d;
    --tertiary: #9b2798;
    --tertiary-container: #c44ec1;
    --tertiary-fixed: #ffd7f5;
    --on-tertiary-container: #ffeef9;
    --outline: #8a7570;
    --outline-variant: #d4bfb9;
    --error: #ba1a1a;
    --surface-dim: #ffcdd7;
    --background: #fff8f7;
    --ambient-shadow: rgba(54, 12, 25, 0.08);
}

/* === BASE === */
body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--background);
    color: var(--on-surface);
    scroll-behavior: smooth;
    margin: 0;
}

main {
    padding-top: 0;
}

.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.text-glass {
    backdrop-filter: blur(12px);
}

/* === HERO BRAND OVERLAY === */
.hero-brand-overlay {
    position: absolute;
    top: 50%;
    left: 3rem;
    transform: translateY(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 0.75rem;
}

.hero-brand-blason {
    width: 180px;
    height: auto;
    filter: drop-shadow(0 4px 24px rgba(0,0,0,0.7));
}

@media (min-width: 768px) {
    .hero-brand-blason {
        width: 240px;
    }
}

.hero-brand-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-brand-label {
    font-size: 1.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: rgba(255,255,255,0.85);
    text-shadow: 0 1px 8px rgba(0,0,0,0.8);
}

.hero-brand-city {
    font-family: 'Noto Serif', serif;
    font-size: 5.5rem;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: -0.02em;
    line-height: 1.05;
    text-shadow: 0 2px 16px rgba(0,0,0,0.9);
}

@media (min-width: 768px) {
    .hero-brand-city {
        font-size: 8rem;
    }
}

.hero-brand-sub {
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.8);
    text-shadow: 0 1px 8px rgba(0,0,0,0.8);
    margin-top: 0.25rem;
}

.hero-mobile-toggle {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 20;
    color: #ffffff !important;
    background-color: rgba(0,0,0,0.3) !important;
    border-radius: 50% !important;
}

/* === EN-TÊTE / BANDEAU HAUT === */
.site-header {
    position: relative;
    width: 100%;
    background-color: var(--surface-container-lowest);
    border-bottom: none;
    z-index: 100;
}

.header-container {
    max-width: 80rem;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    gap: 1.5rem;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-blason {
    height: 4rem;
    width: auto;
}

.header-brand-text {
    display: flex;
    flex-direction: column;
}

.header-label {
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--secondary);
    line-height: 1.2;
}

.header-city {
    font-family: 'Noto Serif', serif;
    font-size: 2rem;
    font-weight: 900;
    color: var(--primary);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.header-sub {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--secondary);
    letter-spacing: 0.05em;
    margin-top: 0.1rem;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-search {
    display: none;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--surface-container);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    border: 1px solid var(--surface-dim);
    transition: border-color 0.2s;
}

@media (min-width: 768px) {
    .header-search {
        display: flex;
    }
}

.header-search:focus-within {
    border-color: var(--primary);
}

.header-search .material-symbols-outlined {
    font-size: 1.25rem;
    color: var(--secondary);
}

.header-search input {
    border: none;
    background: transparent;
    font-family: 'Public Sans', sans-serif;
    font-size: 0.875rem;
    color: var(--on-surface);
    outline: none;
    width: 14rem;
}

.header-search input::placeholder {
    color: var(--secondary);
}

.header-social {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    color: var(--secondary);
    border-radius: 50%;
    transition: color 0.2s, background-color 0.2s;
}

.header-social:hover {
    color: var(--primary);
    background-color: rgba(0, 108, 12, 0.06);
}

/* === NAVIGATION SOUS-PAGES (style identique au hero) === */
.nav-sticky-wrapper {
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
}

.nav-bar {
    position: relative;
    width: 100%;
    background-color: rgba(0, 108, 12, 0.85);
    background-image: linear-gradient(135deg, var(--primary) 0%, var(--primary-container) 100%);
    backdrop-filter: blur(20px);
}

.nav-container {
    max-width: 80rem;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.75rem 2rem;
    gap: 2rem;
}

.nav-blason {
    height: 2.75rem;
    width: auto;
    flex-shrink: 0;
}

.nav-links {
    display: none;
    align-items: center;
    gap: 0.25rem;
    height: 100%;
}

@media (min-width: 768px) {
    .nav-links {
        display: flex;
    }
}

.nav-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    min-width: 48px;
    min-height: 48px;
    font-size: 1.0625rem;
    font-weight: 600;
    color: #ffffff;
    text-decoration: none;
    border-radius: 0.375rem;
    transition: all 0.25s ease;
    letter-spacing: 0.03em;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0.15rem;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: #ffffff;
    transition: width 0.25s ease;
    border-radius: 1px;
}

.nav-link:hover,
.nav-link:focus {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.12);
    outline: none;
}

.nav-link:hover::after {
    width: 60%;
}

.nav-link.active {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.1);
    font-weight: 700;
}

.nav-link.active::after {
    width: 60%;
}

.nav-link:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

.nav-search {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 3.5rem;
    width: 3.5rem;
    min-width: 48px;
    min-height: 48px;
    color: var(--on-primary);
    background: none;
    border: none;
    cursor: pointer;
    border-radius: 0.25rem;
    transition: all 0.2s;
}

.nav-search:hover,
.nav-search:focus {
    color: var(--on-primary);
    background-color: rgba(255, 255, 255, 0.12);
    outline: none;
}

.nav-search:focus-visible {
    outline: 2px solid var(--on-primary);
    outline-offset: -2px;
}

/* Mobile nav toggle */
.mobile-nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    min-width: 48px;
    min-height: 48px;
    background: rgba(255,255,255,0.1);
    border: none;
    cursor: pointer;
    color: #ffffff;
    border-radius: 50%;
    transition: all 0.2s;
}

.mobile-nav-toggle:hover,
.mobile-nav-toggle:focus {
    color: #ffffff;
    background-color: rgba(255,255,255,0.2);
    outline: none;
}

.mobile-nav-toggle:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

@media (min-width: 768px) {
    .mobile-nav-toggle {
        display: none;
    }
}

.mobile-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    background-color: var(--primary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    z-index: 99;
}

.mobile-nav.open {
    display: block;
}

.mobile-nav a {
    display: flex;
    align-items: center;
    padding: 1rem 2rem;
    min-height: 48px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--on-primary);
    text-decoration: none;
    border-left: 4px solid transparent;
    transition: all 0.2s;
}

.mobile-nav a:hover,
.mobile-nav a:focus {
    color: var(--on-primary);
    background-color: rgba(255, 255, 255, 0.12);
    border-left-color: var(--on-primary);
    outline: none;
}

.mobile-nav a.active {
    color: var(--on-primary);
    background-color: rgba(255, 255, 255, 0.15);
    border-left-color: var(--on-primary);
    font-weight: 700;
}

.mobile-nav a:focus-visible {
    outline: 2px solid var(--on-primary);
    outline-offset: -2px;
}

/* === SCROLL TO TOP === */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3rem;
    height: 3rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-container));
    color: var(--on-primary);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0px 12px 32px rgba(54, 12, 25, 0.08);
    z-index: 40;
    opacity: 0;
    transform: translateY(1rem);
    transition: opacity 0.3s, transform 0.3s, background-color 0.2s;
    pointer-events: none;
    border-radius: 0.375rem;
}

.scroll-to-top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.scroll-to-top:hover {
    background-color: var(--primary-container);
}

/* === HERO === */
.hero {
    position: relative;
    width: 100%;
    height: 520px;
    max-height: 65vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* === HERO NAV (incrustée dans le hero) === */
.hero-nav {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 20;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: center;
}

.hero-nav-inner {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

@media (min-width: 768px) {
    .hero-nav-inner {
        display: flex;
    }
}

.hero-nav-blason {
    height: 3.5rem;
    width: auto;
    filter: drop-shadow(0 1px 4px rgba(0,0,0,0.5));
}

.hero-nav-links {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.hero-nav-links a {
    color: #ffffff;
    text-decoration: none;
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 0.75rem 1.5rem;
    transition: all 0.25s ease;
    text-shadow: 0 2px 8px rgba(0,0,0,0.7);
    white-space: nowrap;
    border-radius: 0.375rem;
    position: relative;
    text-transform: uppercase;
    font-variant: small-caps;
}

.hero-nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0.2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2.5px;
    background-color: #ffffff;
    transition: width 0.25s ease;
    border-radius: 2px;
}

.hero-nav-links a:hover {
    background-color: rgba(255,255,255,0.18);
}

.hero-nav-links a:hover::after {
    width: 70%;
}

.hero-nav-links a.active {
    background-color: rgba(255,255,255,0.12);
}

.hero-nav-links a.active::after {
    width: 70%;
}

.hero-nav-links a:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

/* === HERO BOUTONS ACCÈS RAPIDE === */
.hero-quick-access {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 15;
    display: flex;
    gap: 0;
}

.hero-quick-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background-color: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(8px);
    color: #ffffff;
    text-decoration: none;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.3;
    border-right: 1px solid rgba(255,255,255,0.15);
    transition: background-color 0.2s;
    white-space: nowrap;
}

.hero-quick-btn:last-child {
    border-right: none;
}

.hero-quick-btn:hover {
    background-color: rgba(0, 108, 12, 0.7);
}

.hero-quick-btn .material-symbols-outlined {
    font-size: 1.75rem;
    color: #ffffff;
    opacity: 0.9;
}

@media (max-width: 767px) {
    .hero-quick-access {
        width: 100%;
        left: 0;
        transform: none;
    }
    .hero-quick-btn {
        flex: 1;
        padding: 0.75rem 0.75rem;
        font-size: 0.7rem;
        gap: 0.5rem;
        justify-content: center;
    }
    .hero-quick-btn .material-symbols-outlined {
        font-size: 1.25rem;
    }
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: transparent;
}

.hero-content {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 80rem;
    margin: 0 auto;
    padding: 3rem 2rem 0;
}

.hero-content .overline {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-size: 0.75rem;
    margin-bottom: 1rem;
    display: block;
}

.hero-content h1 {
    font-family: 'Noto Serif', serif;
    color: #ffffff;
    font-size: 3.75rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 1;
    margin: 0 0 2rem;
}

@media (min-width: 768px) {
    .hero-content h1 {
        font-size: 6rem;
    }
}

.hero-content h1 .accent {
    color: var(--primary-container);
}

.hero-actu {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    padding: 1.5rem;
    border-left: 4px solid var(--primary);
    max-width: 36rem;
}

.hero-actu .title {
    color: #ffffff;
    font-weight: 700;
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
}

.hero-actu .desc {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    line-height: 1.625;
}

/* === HERO CAROUSEL === */
.hero-carousel {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-carousel-inner {
    position: absolute;
    inset: 0;
}

.hero-carousel-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.hero-carousel-img.active {
    opacity: 1;
}

.hero-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 15;
    background-color: rgba(255, 255, 255, 0.3);
    border: none;
    color: white;
    font-size: 2rem;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.hero-carousel-btn:hover {
    background-color: rgba(255, 255, 255, 0.5);
}

.hero-carousel-prev {
    left: 1rem;
}

.hero-carousel-next {
    right: 1rem;
}

.hero-carousel-indicators {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 15;
    display: flex;
    gap: 0.5rem;
}

.hero-carousel-dot {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    border: 2px solid white;
    background-color: transparent;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.hero-carousel-dot.active {
    background-color: white;
}

/* === HERO HÉRALDIQUE === */
.hero-layout {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    width: 100%;
}

.hero-heraldic {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem 2rem;
    padding-left: 0.5rem;
}

.hero-blason-img {
    width: 150px;
    height: auto;
    margin-bottom: 1.25rem;
    filter: drop-shadow(0 4px 18px rgba(0, 0, 0, 0.85));
}

.hero-heraldic-ornament {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.875rem;
    letter-spacing: 0.25em;
    margin: 0 0 0.75rem;
    display: block;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.8);
}

.hero-heraldic-text {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    line-height: 1.6;
    margin: 0;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9);
}

/* === SECTIONS COMMUNES === */
.section {
    padding: 6rem 2rem;
    max-width: 80rem;
    margin: 0 auto;
}

.section-bg {
    padding: 6rem 2rem;
    background-color: var(--surface-container-low);
}

.section-bg .section-inner {
    max-width: 80rem;
    margin: 0 auto;
}

.section-header {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .section-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-end;
    }
}

.section-overline {
    color: var(--tertiary);
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-size: 0.75rem;
}

.section-title {
    font-family: 'Noto Serif', serif;
    font-size: 2.25rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    margin-top: 0.5rem;
}

.section-link {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 0.25rem;
    transition: gap 0.2s;
    white-space: nowrap;
}

.section-link:hover {
    gap: 1rem;
}

/* === DÉMARCHES — BULLES === */
.demarches-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

@media (min-width: 768px) {
    .demarches-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.demarche-bulle {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem 1rem 1.5rem;
    background-color: var(--surface-container-lowest);
    border-bottom: 3px solid transparent;
    transition: all 0.25s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    border-radius: 0.375rem;
}

.demarche-bulle:hover {
    background-color: var(--surface-container-high);
    border-bottom-color: var(--primary);
    transform: translateY(-3px);
}

.bulle-icon {
    width: 4.5rem;
    height: 4.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--surface-container);
    border-radius: 50%;
    margin-bottom: 1rem;
    transition: background-color 0.25s;
}

.demarche-bulle:hover .bulle-icon {
    background-color: rgba(0, 108, 12, 0.08);
}

.bulle-icon .material-symbols-outlined {
    font-size: 2rem;
    color: var(--primary);
}

.demarche-bulle h3 {
    font-size: 0.9375rem;
    font-weight: 700;
    margin: 0 0 0.25rem;
}

.demarche-bulle p {
    font-size: 0.75rem;
    color: var(--secondary);
    line-height: 1.4;
    margin: 0;
}

/* === VIE LOCALE / ACTUALITÉS === */
.actu-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .actu-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.actu-card {
    background-color: var(--surface-container-lowest);
    overflow: hidden;
    box-shadow: 0px 12px 32px rgba(54, 12, 25, 0.08);
    transition: transform 0.2s;
    display: flex;
    flex-direction: column;
    border-radius: 0.375rem;
}

.actu-card:hover {
    transform: translateY(-3px);
}

.actu-card img {
    width: 100%;
    height: 12rem;
    object-fit: cover;
}

.actu-card-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.actu-card-meta {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    align-items: center;
}

.actu-card-meta .tag {
    background-color: var(--secondary-fixed);
    padding: 0.25rem 0.75rem;
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 0.25rem;
}

.actu-card-meta .date {
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary);
}

.actu-card h4 {
    font-family: 'Noto Serif', serif;
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 0.5rem;
}

.actu-card p {
    font-size: 0.875rem;
    color: var(--secondary);
    line-height: 1.5;
    margin: 0;
    flex: 1;
}

.actu-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 1rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    transition: gap 0.2s, color 0.2s;
}

.actu-card-link:hover {
    gap: 0.75rem;
    text-decoration: underline;
}

.actu-card-link .material-symbols-outlined {
    font-size: 1.125rem;
}

.section-cta {
    text-align: center;
    margin-top: 2.5rem;
}

.section-cta a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-container));
    color: var(--on-primary);
    font-size: 0.9375rem;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-radius: 0.25rem;
    transition: background-color 0.2s, gap 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(0, 108, 12, 0.2);
}

.section-cta a:hover {
    background: linear-gradient(135deg, var(--primary-container), var(--primary));
    gap: 0.75rem;
    box-shadow: 0 4px 16px rgba(0, 108, 12, 0.3);
}

.section-cta a:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
}

.section-cta a .material-symbols-outlined {
    font-size: 1.25rem;
}

/* === AGENDA === */
.agenda-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .agenda-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .agenda-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.agenda-card {
    background-color: var(--surface-container-lowest);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    box-shadow: 0px 12px 32px rgba(54, 12, 25, 0.08);
    border-radius: 0.375rem;
}

.agenda-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(54, 12, 25, 0.12);
}

.agenda-card-img {
    position: relative;
    width: 100%;
    height: 10rem;
    overflow: hidden;
}

.agenda-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.agenda-card-img .agenda-card-date {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem;
    min-width: auto;
}

.agenda-card-date {
    background-color: var(--secondary-fixed);
    color: #360c19;
    padding: 1.25rem 1rem;
    text-align: center;
}

.agenda-card-date .day {
    font-size: 2.25rem;
    font-weight: 900;
    line-height: 1;
    display: block;
}

.agenda-card-date .month {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.9;
    display: block;
    margin-top: 0.25rem;
}

.agenda-card-body {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.agenda-card-body h4 {
    font-family: 'Noto Serif', serif;
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    line-height: 1.3;
}

.agenda-card-body p {
    font-size: 0.8125rem;
    color: var(--secondary);
    line-height: 1.5;
    margin: 0;
    flex: 1;
}

.agenda-card-body .lieu {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    color: var(--outline);
    margin-top: 0.75rem;
}

.agenda-card-body .lieu .material-symbols-outlined {
    font-size: 1rem;
}

.agenda-card-readmore {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: 0.75rem;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    transition: gap 0.2s;
}

.agenda-card-readmore:hover {
    gap: 0.6rem;
    text-decoration: underline;
}

.agenda-card-readmore .material-symbols-outlined {
    font-size: 1rem;
}

/* === BANDEAU INFO 3 COLONNES === */
.bandeau-info {
    display: grid;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .bandeau-info {
        grid-template-columns: repeat(3, 1fr);
    }
}

.bandeau-bloc {
    padding: 2.5rem 2rem;
}

.bandeau-bloc h3 {
    font-size: 1.125rem;
    font-weight: 800;
    margin: 0 0 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.bandeau-bloc h3 .material-symbols-outlined {
    color: var(--primary);
    font-size: 1.5rem;
}

.bandeau-bloc .info-line {
    font-size: 0.875rem;
    line-height: 1.8;
    color: var(--on-surface);
}

.bandeau-bloc .info-line a {
    color: var(--primary);
    text-decoration: none;
}

.bandeau-bloc .info-line a:hover {
    text-decoration: underline;
}

.bandeau-bloc .horaire-line {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    font-size: 0.875rem;
    border-bottom: 1px solid rgba(212, 191, 185, 0.15);
}

.bandeau-bloc .horaire-line .jour {
    font-weight: 600;
}

.bandeau-bloc .horaire-line .heures {
    color: var(--secondary);
}

.bandeau-carte {
    padding: 0;
    min-height: 300px;
}

.bandeau-carte iframe {
    width: 100%;
    height: 100%;
    min-height: 300px;
    border: 0;
    display: block;
}

/* === NEWSLETTER === */
.newsletter-section {
    background: linear-gradient(135deg, var(--primary), var(--primary-container));
    padding: 4rem 2rem;
    text-align: center;
    color: var(--on-primary);
}

.newsletter-section h2 {
    font-family: 'Noto Serif', serif;
    font-size: 1.875rem;
    font-weight: 900;
    margin: 0 0 1rem;
}

.newsletter-section p {
    opacity: 0.9;
    max-width: 36rem;
    margin: 0 auto 2rem;
    font-size: 1rem;
    line-height: 1.6;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 32rem;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .newsletter-form {
        flex-direction: row;
    }
}

.newsletter-form input {
    flex: 1;
    background-color: rgba(255, 255, 255, 0.15);
    border: none;
    color: white;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.newsletter-form input:focus {
    outline: 2px solid white;
    outline-offset: -2px;
}

.newsletter-form button {
    background-color: white;
    color: var(--primary);
    padding: 1rem 2rem;
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    font-family: 'Plus Jakarta Sans', sans-serif;
    transition: background-color 0.2s;
    border-radius: 0 0.25rem 0.25rem 0;
}

.newsletter-form button:hover {
    background-color: var(--surface);
}

/* === FOOTER === */
.site-footer {
    width: 100%;
    max-width: 80rem;
    margin: 3rem auto 0;
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    border-top: none;
    background-color: var(--surface-container-low);
}

@media (min-width: 768px) {
    .site-footer {
        flex-direction: row;
        align-items: flex-start;
    }
}

.footer-brand h3 {
    font-size: 1.125rem;
    font-weight: 900;
    text-transform: uppercase;
    margin: 0 0 0.5rem;
}

.footer-brand .copyright {
    font-size: 0.8125rem;
    color: var(--secondary);
    margin: 0;
}

.footer-brand .address {
    margin-top: 1rem;
    font-size: 0.75rem;
    color: rgba(26, 28, 28, 0.5);
    line-height: 1.7;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .footer-links {
        gap: 2rem;
    }
}

.footer-links a {
    font-size: 0.875rem;
    color: var(--secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    text-decoration: underline;
    color: var(--primary);
}

/* === PAGE HEADER (sous-pages) === */
.page-header {
    background-color: var(--surface-container-low);
    padding: 2.5rem 2rem 2.5rem;
}

.page-header-inner {
    max-width: 80rem;
    margin: 0 auto;
}

.breadcrumb {
    font-size: 0.8125rem;
    color: var(--secondary);
    margin-bottom: 1rem;
}

.breadcrumb a {
    color: var(--primary);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    margin: 0 0.5rem;
    color: var(--outline);
}

.page-header h1 {
    font-family: 'Noto Serif', serif;
    font-size: 2.5rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    margin: 0;
}

/* === PAGE LAYOUT (sidebar + content) === */
.page-layout {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 80rem;
    margin: 0 auto;
    padding: 3rem 2rem 4rem;
}

@media (min-width: 768px) {
    .page-layout {
        flex-direction: row;
        gap: 3rem;
    }
}

.sidebar {
    width: 100%;
}

@media (min-width: 768px) {
    .sidebar {
        width: 260px;
        flex-shrink: 0;
        position: sticky;
        top: 7rem;
        align-self: flex-start;
        max-height: calc(100vh - 8rem);
        overflow-y: auto;
    }
}

.sidebar-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary);
    margin: 0 0 0.75rem;
    padding: 0 1rem;
}

.sidebar-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-nav li a {
    display: block;
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--on-surface);
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: all 0.2s;
}

.sidebar-nav li a:hover {
    color: var(--primary);
    background-color: rgba(0, 108, 12, 0.04);
    border-left-color: var(--primary);
}

.sidebar-nav li a.active {
    color: var(--primary);
    font-weight: 700;
    border-left-color: var(--primary);
    background-color: rgba(0, 108, 12, 0.06);
}

/* === PAGE CONTENT === */
.page-content {
    flex: 1;
    min-width: 0;
}

.page-content section {
    margin-bottom: 3rem;
    scroll-margin-top: 7rem;
}

.page-content h2 {
    font-family: 'Noto Serif', serif;
    font-size: 1.75rem;
    font-weight: 800;
    margin: 0 0 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid var(--primary);
}

.page-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 1.5rem 0 0.75rem;
}

.page-content p {
    line-height: 1.7;
    color: var(--secondary);
    margin: 0 0 1rem;
}

.page-content ul {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
}

.page-content ul li {
    padding: 0.4rem 0 0.4rem 1.5rem;
    position: relative;
    color: var(--secondary);
    line-height: 1.6;
}

.page-content ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.85rem;
    width: 6px;
    height: 6px;
    background-color: var(--primary);
}

/* === CONSEIL MUNICIPAL TABLE === */
.conseil-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
}

.conseil-table th,
.conseil-table td {
    text-align: left;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
}

.conseil-table th {
    background-color: var(--surface-container);
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.conseil-table tbody tr {
    border-bottom: 1px solid rgba(232, 188, 183, 0.15);
}

.conseil-table tbody tr:hover {
    background-color: var(--surface-container-low);
}

/* === CONTACT FORM === */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    max-width: 80rem;
    margin: 0 auto;
    padding: 3rem 2rem 4rem;
}

@media (min-width: 768px) {
    .contact-wrapper {
        grid-template-columns: 1fr 1fr;
    }
}

.contact-info-card {
    background-color: var(--surface-container-low);
    padding: 2.5rem;
}

.contact-info-card h2 {
    font-family: 'Noto Serif', serif;
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 0 1.5rem;
}

.contact-info-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: flex-start;
}

.contact-info-item .material-symbols-outlined {
    color: var(--primary);
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 0.15rem;
}

.contact-info-item .info-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--secondary);
    margin-bottom: 0.25rem;
}

.contact-info-item .info-value {
    font-size: 0.9375rem;
    color: var(--on-surface);
    line-height: 1.5;
}

.contact-info-item a {
    color: var(--primary);
    text-decoration: none;
}

.contact-info-item a:hover {
    text-decoration: underline;
}

.contact-form {
    max-width: 640px;
}

.contact-form h2 {
    font-family: 'Noto Serif', serif;
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 0 0.5rem;
}

.contact-form .form-intro {
    font-size: 0.9375rem;
    color: var(--secondary);
    margin-bottom: 2rem;
    line-height: 1.5;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--on-surface);
}

.form-group label .required {
    color: var(--primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.9375rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
    border: none;
    border-bottom: 2px solid var(--outline-variant);
    background-color: var(--surface-container-highest);
    color: var(--on-surface);
    transition: border-color 0.2s;
    box-sizing: border-box;
    border-radius: 0;
    -webkit-appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-bottom-color: var(--primary);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .form-row {
        grid-template-columns: 1fr 1fr;
    }
}

.btn-primary {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary), var(--primary-container));
    color: var(--on-primary);
    padding: 0.875rem 2rem;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
    font-family: 'Plus Jakarta Sans', sans-serif;
    border-radius: 0.25rem;
}

.btn-primary:hover {
    background-color: var(--primary-container);
}

/* === FILTRE PAR DATE (Actualités / Agenda pages) === */
.filter-bar {
    background-color: var(--surface-container-lowest);
    border-bottom: 1px solid var(--surface-dim);
    padding: 1.5rem 2rem;
}
.filter-bar-inner {
    max-width: 80rem;
    margin: 0 auto;
    display: flex;
    align-items: flex-end;
    gap: 1.25rem;
    flex-wrap: wrap;
}
.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}
.filter-label {
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--secondary);
}
.filter-select {
    appearance: none;
    -webkit-appearance: none;
    padding: 0.625rem 2.5rem 0.625rem 1rem;
    font-size: 0.9375rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--on-surface);
    background-color: var(--surface-container-low);
    border: 1px solid var(--surface-dim);
    border-radius: 0.5rem;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='%235e5e5e'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1rem;
    min-width: 11rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.filter-select:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
    border-color: var(--primary);
}
.filter-select:hover {
    border-color: var(--secondary);
}
.filter-reset {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--secondary);
    background: none;
    border: 1px solid var(--surface-dim);
    border-radius: 0.5rem;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s, background-color 0.2s;
}
.filter-reset .material-symbols-outlined {
    font-size: 1.125rem;
}
.filter-reset:hover {
    color: var(--primary);
    border-color: var(--primary);
    background-color: rgba(0, 108, 12, 0.05);
}
.filter-reset:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
}
.filter-count {
    font-size: 0.875rem;
    color: var(--secondary);
    margin: 0;
    padding-bottom: 0.25rem;
    font-weight: 600;
}
.filter-no-result {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--secondary);
    font-size: 1.0625rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}
.filter-no-result .material-symbols-outlined {
    font-size: 2.5rem;
    color: var(--surface-dim);
}

/* === PAGE GRILLES (Actualités / Agenda pages complètes) === */
.actu-page-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}
.agenda-page-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

/* === DÉMARCHES PAGE — SOMMAIRE NAVIGATION === */
.demarches-sommaire {
    background-color: var(--surface-container-lowest);
    border-bottom: 1px solid var(--surface-dim);
    padding: 2rem 2rem 2.5rem;
}
.demarches-sommaire-inner {
    max-width: 80rem;
    margin: 0 auto;
}
.demarches-sommaire-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--on-surface);
    margin: 0 0 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.demarches-sommaire-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}
.demarches-sommaire-grid li a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem;
    background-color: var(--surface-container-low);
    border: 1px solid var(--surface-dim);
    border-radius: 0.5rem;
    color: var(--on-surface);
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s;
}
.demarches-sommaire-grid li a .material-symbols-outlined {
    font-size: 1.375rem;
    color: var(--primary);
    flex-shrink: 0;
}
.demarches-sommaire-grid li a:hover {
    background-color: var(--primary);
    color: var(--on-primary);
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(0, 108, 12, 0.25);
}
.demarches-sommaire-grid li a:hover .material-symbols-outlined {
    color: var(--on-primary);
}
.demarches-sommaire-grid li a:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
}

/* === DÉMARCHES PAGE — LISTE COMPLÈTE === */
.demarches-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.demarche-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem;
    background-color: var(--surface-container-lowest);
    transition: background-color 0.2s;
    border-radius: 0.375rem;
}

.demarche-item:hover {
    background-color: var(--surface-container-high);
}

.demarche-item-icon {
    width: 3rem;
    height: 3rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--surface-container);
    border-radius: 50%;
}

.demarche-item-icon .material-symbols-outlined {
    font-size: 1.5rem;
    color: var(--primary);
}

.demarche-item-content h3 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 0.25rem;
}

.demarche-item-content p {
    font-size: 0.875rem;
    color: var(--secondary);
    line-height: 1.5;
    margin: 0 0 0.5rem;
}

.demarche-item-content .demarche-link {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.demarche-item-content .demarche-link:hover {
    text-decoration: underline;
}

.demarche-item-content .demarche-link .material-symbols-outlined {
    font-size: 1rem;
}

/* === MOBILE NAV OVERLAY (RGAA) === */
.mobile-nav-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    background-color: var(--primary);
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    visibility: hidden;
}

.mobile-nav-overlay.open {
    transform: translateX(0);
    visibility: visible;
}

.mobile-nav-overlay-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.15);
}

.mobile-nav-overlay-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--on-primary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.mobile-nav-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    min-width: 48px;
    min-height: 48px;
    background: rgba(255,255,255,0.1);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    color: var(--on-primary);
    transition: background-color 0.2s;
}

.mobile-nav-close:hover,
.mobile-nav-close:focus {
    background: rgba(255,255,255,0.2);
}

.mobile-nav-close:focus-visible {
    outline: 2px solid var(--on-primary);
    outline-offset: 2px;
}

.mobile-nav-overlay-links {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1rem 0;
}

.mobile-nav-overlay-links a {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    min-height: 56px;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--on-primary);
    text-decoration: none;
    border-left: 4px solid transparent;
    transition: all 0.2s;
}

.mobile-nav-overlay-links a .material-symbols-outlined {
    font-size: 1.5rem;
    opacity: 0.8;
}

.mobile-nav-overlay-links a:hover,
.mobile-nav-overlay-links a:focus {
    background-color: rgba(255,255,255,0.12);
    border-left-color: var(--on-primary);
}

.mobile-nav-overlay-links a.active {
    background-color: rgba(255,255,255,0.15);
    border-left-color: var(--on-primary);
    font-weight: 700;
}

.mobile-nav-overlay-links a:focus-visible {
    outline: 2px solid var(--on-primary);
    outline-offset: -2px;
}

.mobile-nav-overlay-footer {
    padding: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.7);
    font-size: 0.8125rem;
    line-height: 1.6;
}

.mobile-nav-overlay-footer p {
    margin: 0 0 0.25rem;
}

.mobile-nav-overlay-footer a {
    color: var(--on-primary);
    text-decoration: none;
}

.mobile-nav-overlay-footer a:hover {
    text-decoration: underline;
}

.mobile-nav-backdrop {
    position: fixed;
    inset: 0;
    z-index: 999;
    background-color: rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.mobile-nav-backdrop.open {
    opacity: 1;
    visibility: visible;
}

/* === BANDEAU CONTACT LINK === */
.bandeau-contact-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    padding: 0.5rem 0;
    transition: gap 0.2s;
}

.bandeau-contact-link:hover {
    gap: 0.75rem;
    text-decoration: underline;
}

/* === NEW FOOTER === */
.site-footer-new {
    width: 100%;
    background-color: var(--on-surface);
    color: rgba(255,255,255,0.8);
}

.footer-top {
    max-width: 80rem;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 3.5rem 2rem;
}

@media (min-width: 768px) {
    .footer-top {
        grid-template-columns: 1.5fr 1fr 1fr 1fr;
        gap: 3rem;
    }
}

.footer-brand-block {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.footer-blason {
    width: 3rem;
    height: auto;
    filter: brightness(0) invert(1) opacity(0.8);
}

.footer-brand-name {
    font-size: 1.125rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.footer-brand-sub {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.5);
    margin: 0;
    letter-spacing: 0.05em;
}

.footer-address {
    font-style: normal;
    font-size: 0.8125rem;
    line-height: 1.8;
    color: rgba(255,255,255,0.6);
    margin-bottom: 1.25rem;
}

.footer-address a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-address a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.7);
    transition: all 0.2s;
}

.footer-social a:hover {
    background-color: var(--primary);
    color: #ffffff;
}

.footer-col-title {
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #ffffff;
    margin: 0 0 1rem;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 0.5rem;
}

.footer-col ul li a {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-col ul li a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.footer-horaires {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.footer-horaire-line {
    display: flex;
    justify-content: space-between;
    padding: 0.375rem 0;
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.6);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.footer-horaire-line span:first-child {
    font-weight: 600;
    color: rgba(255,255,255,0.75);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    background-color: rgba(0,0,0,0.2);
}

.footer-bottom-inner {
    max-width: 80rem;
    margin: 0 auto;
    padding: 1.25rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    text-align: center;
}

@media (min-width: 768px) {
    .footer-bottom-inner {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.footer-legal-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

@media (min-width: 768px) {
    .footer-legal-links {
        gap: 1.5rem;
    }
}

.footer-legal-links a {
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-legal-links a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.footer-copyright {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.4);
    margin: 0;
}

/* === PAGE LAYOUT SINGLE (legal pages) === */
.page-layout-single {
    max-width: 52rem;
    margin: 0 auto;
    padding: 3rem 2rem 4rem;
}

.legal-content section {
    margin-bottom: 2.5rem;
    scroll-margin-top: 5rem;
}

.legal-content h2 {
    font-family: 'Noto Serif', serif;
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 0 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid var(--primary);
}

.legal-content h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin: 1.5rem 0 0.75rem;
}

.legal-content p {
    line-height: 1.7;
    color: var(--secondary);
    margin: 0 0 1rem;
}

.legal-content ul {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
}

.legal-content ul li {
    padding: 0.4rem 0 0.4rem 1.5rem;
    position: relative;
    color: var(--secondary);
    line-height: 1.6;
}

.legal-content ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.85rem;
    width: 6px;
    height: 6px;
    background-color: var(--primary);
}

.legal-content a {
    color: var(--primary);
    text-decoration: none;
}

.legal-content a:hover {
    text-decoration: underline;
}

/* ================================================
   DASHBOARD — Espace de gestion
   ================================================ */

/* === TOPBAR === */
.dash-topbar {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-container) 100%);
    position: sticky;
    top: 0;
    z-index: 100;
}

.dash-topbar-inner {
    max-width: 80rem;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 2rem;
    gap: 1.5rem;
}

.dash-topbar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    flex-shrink: 0;
}

.dash-topbar-blason {
    height: 2.5rem;
    width: auto;
    filter: brightness(0) invert(1) opacity(0.8);
}

.dash-topbar-title {
    display: block;
    font-size: 1rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.02em;
}

.dash-topbar-sub {
    display: block;
    font-size: 0.6875rem;
    color: rgba(255,255,255,0.5);
    letter-spacing: 0.04em;
}

.dash-topbar-nav {
    display: none;
    align-items: center;
    gap: 0.25rem;
}

@media (min-width: 768px) {
    .dash-topbar-nav {
        display: flex;
    }
}

.dash-topbar-link {
    padding: 0.625rem 1.25rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    border-radius: 0.375rem;
    transition: all 0.2s;
}

.dash-topbar-link:hover {
    color: #ffffff;
    background-color: rgba(255,255,255,0.1);
}

.dash-topbar-link.active {
    color: #ffffff;
    background-color: rgba(255,255,255,0.12);
    font-weight: 700;
}

.dash-topbar-back {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    transition: all 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
}

.dash-topbar-back:hover {
    color: #ffffff;
    background-color: rgba(255,255,255,0.1);
}

.dash-topbar-back .material-symbols-outlined {
    font-size: 1.125rem;
}

/* === CONTAINER === */
.dash-container {
    max-width: 80rem;
    margin: 0 auto;
    padding: 2rem;
}

/* === PAGE D'ACCUEIL DASHBOARD === */
.dash-welcome {
    margin-bottom: 2.5rem;
}

.dash-welcome h1 {
    font-family: 'Noto Serif', serif;
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: -0.025em;
    margin: 0 0 0.5rem;
}

.dash-welcome p {
    font-size: 1rem;
    color: var(--secondary);
    margin: 0;
    line-height: 1.6;
}

.dash-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .dash-cards {
        grid-template-columns: repeat(3, 1fr);
    }
}

.dash-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem;
    background-color: var(--surface-container-lowest);
    border-bottom: 3px solid transparent;
    text-decoration: none;
    color: inherit;
    transition: all 0.25s;
    position: relative;
    border-radius: 0.375rem;
}

.dash-card:hover {
    border-bottom-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(54,12,25,0.1);
}

.dash-card-icon {
    width: 3.5rem;
    height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0,108,12,0.06);
    border-radius: 50%;
    margin-bottom: 1.25rem;
}

.dash-card-icon .material-symbols-outlined {
    font-size: 1.75rem;
    color: var(--primary);
}

.dash-card-content h2 {
    font-family: 'Noto Serif', serif;
    font-size: 1.25rem;
    font-weight: 800;
    margin: 0 0 0.35rem;
}

.dash-card-content p {
    font-size: 0.875rem;
    color: var(--secondary);
    line-height: 1.5;
    margin: 0;
}

.dash-card-arrow {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 1.25rem;
    color: var(--secondary);
    transition: color 0.2s, transform 0.2s;
}

.dash-card:hover .dash-card-arrow {
    color: var(--primary);
    transform: translateX(3px);
}

/* === PAGE HEADER DASHBOARD === */
.dash-page-header {
    background-color: var(--surface-container-low);
    padding: 2rem 2rem 2rem;
}

.dash-page-header-inner {
    max-width: 80rem;
    margin: 0 auto;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.dash-page-header h1 {
    font-family: 'Noto Serif', serif;
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: -0.025em;
    margin: 0;
}

/* === TABLE DASHBOARD === */
.dash-table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--surface-container-lowest);
}

.dash-table th,
.dash-table td {
    text-align: left;
    padding: 0.875rem 1rem;
    font-size: 0.875rem;
}

.dash-table th {
    background-color: var(--surface-container);
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--secondary);
}

.dash-table tbody tr {
    border-bottom: 1px solid var(--surface-dim);
    transition: background-color 0.15s;
}

.dash-table tbody tr:hover {
    background-color: var(--surface-container-low);
}

/* === TAGS & STATUS === */
.dash-tag {
    display: inline-block;
    background-color: var(--surface-container);
    padding: 0.2rem 0.75rem;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-radius: 2rem;
}

.dash-status {
    display: inline-block;
    padding: 0.2rem 0.75rem;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-radius: 2rem;
}

.dash-status--published {
    background-color: rgba(0,128,60,0.1);
    color: #00703c;
}

.dash-status--draft {
    background-color: rgba(94,94,94,0.1);
    color: var(--secondary);
}

.dash-status--unread {
    background-color: rgba(0,108,12,0.1);
    color: var(--primary);
}

.dash-status--read {
    background-color: rgba(0,128,60,0.1);
    color: #00703c;
}

/* === ACTIONS === */
.dash-actions {
    display: flex;
    gap: 0.35rem;
    align-items: center;
}

.dash-btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border: 1px solid var(--surface-dim);
    background: var(--surface-container-lowest);
    border-radius: 0.375rem;
    cursor: pointer;
    color: var(--secondary);
    transition: all 0.2s;
}

.dash-btn-icon:hover {
    color: var(--primary);
    border-color: var(--primary);
    background-color: rgba(0,108,12,0.04);
}

.dash-btn-icon .material-symbols-outlined {
    font-size: 1.125rem;
}

.dash-btn-icon--danger:hover {
    color: var(--error);
    border-color: var(--error);
    background-color: rgba(186,26,26,0.04);
}

/* === FORM PANEL === */
.dash-form-panel {
    background-color: var(--surface-container-lowest);
    padding: 2rem;
}

.dash-form-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--primary);
}

.dash-form-panel-header h2 {
    font-family: 'Noto Serif', serif;
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0;
}

.dash-form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--surface-dim);
}

.dash-btn-secondary {
    display: inline-block;
    padding: 0.875rem 2rem;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 2px solid var(--surface-dim);
    background: none;
    color: var(--secondary);
    cursor: pointer;
    font-family: 'Plus Jakarta Sans', sans-serif;
    transition: all 0.2s;
    border-radius: 0.375rem;
}

.dash-btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* === DETAIL VIEW === */
.dash-detail {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.dash-detail-row {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--surface-dim);
    align-items: baseline;
}

.dash-detail-row--full {
    flex-direction: column;
    gap: 0.5rem;
}

.dash-detail-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--secondary);
    min-width: 10rem;
    flex-shrink: 0;
}

.dash-detail-value {
    font-size: 0.9375rem;
    color: var(--on-surface);
    line-height: 1.6;
}

.dash-detail-value p {
    margin: 0 0 0.75rem;
    line-height: 1.7;
    color: var(--secondary);
}

.dash-detail-value p:last-child {
    margin-bottom: 0;
}
}

.legal-content a:hover {
    text-decoration: underline;
}

.legal-content code {
    background-color: var(--surface-container);
    padding: 0.125rem 0.375rem;
    font-size: 0.875rem;
    border-radius: 0.25rem;
}

/* === PLAN DU SITE === */
.plan-du-site .plan-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
}

.plan-du-site .plan-list > li {
    padding: 0;
    margin-bottom: 1rem;
}

.plan-du-site .plan-list > li::before {
    display: none;
}

.plan-du-site .plan-list > li > a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--on-surface);
    padding: 0.5rem 0;
}

.plan-du-site .plan-list > li > a .material-symbols-outlined {
    color: var(--primary);
    font-size: 1.25rem;
}

.plan-du-site .plan-list > li > a:hover {
    color: var(--primary);
}

.plan-du-site .plan-list > li > ul {
    margin: 0.25rem 0 0 2.25rem;
}

.plan-du-site .plan-list > li > ul li {
    padding: 0.25rem 0 0.25rem 1rem;
}

.plan-du-site .plan-list > li > ul li::before {
    top: 0.7rem;
    width: 5px;
    height: 5px;
    background-color: var(--outline);
}

.plan-du-site .plan-list > li > ul li a {
    font-size: 0.9375rem;
    font-weight: 500;
}

/* === RESPONSIVE IMPROVEMENTS === */

/* Hero responsive */
@media (max-width: 767px) {
    .hero {
        height: 420px;
        max-height: 60vh;
    }

    .hero-brand-overlay {
        left: 1.5rem;
    }

    .hero-brand-label {
        font-size: 1rem;
        letter-spacing: 0.15em;
    }

    .hero-brand-city {
        font-size: 3.25rem;
    }

    .hero-brand-sub {
        font-size: 0.875rem;
        letter-spacing: 0.15em;
    }

    .hero-mobile-toggle {
        top: 0.75rem;
        right: 0.75rem;
    }
}

/* Sections responsive */
@media (max-width: 767px) {
    .section,
    .section-bg {
        padding: 3rem 1.25rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .section-header {
        margin-bottom: 2rem;
    }

    .demarches-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .demarche-bulle {
        padding: 1.25rem 0.75rem 1rem;
    }

    .bulle-icon {
        width: 3.5rem;
        height: 3.5rem;
    }

    .bulle-icon .material-symbols-outlined {
        font-size: 1.5rem;
    }

    .demarche-bulle h3 {
        font-size: 0.8125rem;
    }

    .demarche-bulle p {
        font-size: 0.6875rem;
    }

    .actu-grid {
        gap: 1rem;
    }

    .agenda-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .agenda-card {
        flex-direction: row;
    }

    .agenda-card-date {
        min-width: 80px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 1rem 0.75rem;
    }

    .agenda-card-date .day {
        font-size: 1.75rem;
    }

    .agenda-card-date .month {
        font-size: 0.625rem;
    }
}

/* Bandeau info responsive */
@media (max-width: 767px) {
    .bandeau-info {
        grid-template-columns: 1fr;
    }

    .bandeau-bloc {
        padding: 2rem 1.25rem;
    }

    .bandeau-carte {
        min-height: 250px;
    }
}

/* Newsletter responsive */
@media (max-width: 767px) {
    .newsletter-section {
        padding: 3rem 1.25rem;
    }

    .newsletter-section h2 {
        font-size: 1.5rem;
    }
}

/* Footer responsive */
@media (max-width: 767px) {
    .footer-top {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2.5rem 1.25rem;
    }

    .footer-bottom-inner {
        padding: 1rem 1.25rem;
    }

    .footer-legal-links {
        gap: 0.75rem;
    }
}

/* Page header responsive */
@media (max-width: 767px) {
    .page-header {
        padding: 2rem 1.25rem;
    }

    .page-header h1 {
        font-size: 1.75rem;
    }
}

/* Contact page responsive */
@media (max-width: 767px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
        padding: 2rem 1.25rem 3rem;
    }

    .contact-info-card {
        padding: 1.5rem;
    }
}

/* Sidebar responsive */
@media (max-width: 767px) {
    .page-layout {
        padding: 2rem 1.25rem 3rem;
    }

    .sidebar {
        position: static;
        border-bottom: 1px solid var(--surface-dim);
        padding-bottom: 1rem;
        margin-bottom: 1rem;
    }
}

/* Legal pages responsive */
@media (max-width: 767px) {
    .page-layout-single {
        padding: 2rem 1.25rem 3rem;
    }

    .legal-content h2 {
        font-size: 1.25rem;
    }
}

/* Nav bar on subpages responsive */
@media (max-width: 767px) {
    .nav-container {
        padding: 0.5rem 1rem;
        justify-content: space-between;
    }

    .nav-blason {
        height: 2.25rem;
    }

    .nav-bar .nav-container {
        min-height: 3.5rem;
    }

    .agenda-card-img {
        height: 8rem;
    }
}

/* Pages Actualités / Agenda responsive tablette */
@media (min-width: 768px) and (max-width: 1023px) {
    .actu-page-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .agenda-page-grid {
        grid-template-columns: 1fr;
    }
}

/* Pages Actualités / Agenda responsive mobile */
@media (max-width: 767px) {
    .actu-page-grid {
        grid-template-columns: 1fr;
    }
    .agenda-page-grid {
        grid-template-columns: 1fr;
    }
    .filter-bar-inner {
        flex-direction: column;
        align-items: stretch;
    }
    .filter-select {
        min-width: 0;
        width: 100%;
    }
    .filter-reset {
        justify-content: center;
    }
    .filter-count {
        text-align: center;
    }
}

/* Démarches sommaire responsive tablette */
@media (min-width: 768px) and (max-width: 1023px) {
    .demarches-sommaire-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Démarches page responsive */
@media (max-width: 767px) {
    .demarches-sommaire-grid {
        grid-template-columns: 1fr;
    }
    .demarches-sommaire-grid li a {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }

    .demarche-item {
        flex-direction: column;
        gap: 1rem;
        padding: 1.25rem;
    }

    .conseil-table {
        font-size: 0.8125rem;
    }

    .conseil-table th,
    .conseil-table td {
        padding: 0.5rem 0.5rem;
    }
}

/* Print styles */
@media print {
    .hero-nav,
    .nav-sticky-wrapper,
    .mobile-nav-overlay,
    .mobile-nav-backdrop,
    .scroll-to-top,
    .newsletter-section,
    .hero-quick-access {
        display: none !important;
    }

    .hero {
        height: auto;
        max-height: none;
    }

    .site-footer-new {
        background-color: #ffffff;
        color: #1a1c1c;
    }
}
