@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,600;9..144,700&family=Public+Sans:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
    --stone: #EDE7D9;
    --stone-dark: #E1D8C4;
    --ink: #24261F;
    --slate: #33454C;
    --slate-dark: #232F34;
    --moss: #566B4F;
    --wheat: #C79A3D;
    --brick: #A24B34;
    --paper: #F7F4EC;

    --font-display: 'Fraunces', Georgia, serif;
    --font-body: 'Public Sans', -apple-system, sans-serif;
    --font-mono: 'IBM Plex Mono', monospace;

    --radius: 4px;
    --shadow-pin: 0 6px 16px rgba(36, 38, 31, 0.18);
}


* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-body);
    background: var(--paper);
    color: var(--ink);
    line-height: 1.55;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

h1, h2, h3 { font-family: var(--font-display); margin: 0 0 0.4em; line-height: 1.15; }

.eyebrow {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--slate);
}

:focus-visible {
    outline: 3px solid var(--brick);
    outline-offset: 2px;
}

.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

.section { padding: 72px 0; scroll-margin-top: 84px; }

.section-alt { background: var(--stone); }


header.site-header {
    background: var(--slate);
    color: var(--paper);
    position: sticky;
    top: 0;
    z-index: 40;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    max-width: 1080px;
    margin: 0 auto;
}

.brand {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.3rem;
    text-decoration: none;
    color: var(--paper);
}

.brand span { color: var(--wheat); }

nav.main-nav { display: flex; gap: 28px; }

nav.main-nav a {
    text-decoration: none;
    color: var(--paper);
    font-size: 0.95rem;
    font-weight: 500;
    opacity: 0.88;
}

nav.main-nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }

nav.main-nav > ul {
    display: flex;
    gap: 28px;
    list-style: none;
    margin: 0;
    padding: 0;
}

nav.main-nav > ul > li { position: relative; }

nav.main-nav > ul > li.current > a { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }

.has-submenu > a::after { content: ' ▾'; font-size: 0.7em; opacity: 0.8; }

.submenu {
    list-style: none;
    margin: 0;
    padding: 10px 0;
    position: absolute;
    top: 100%;
    left: -14px;
    min-width: 220px;
    background: var(--slate-dark);
    border-radius: var(--radius);
    box-shadow: 0 12px 28px rgba(0,0,0,0.3);
    display: none;
    z-index: 50;
}

.has-submenu:hover .submenu,
.has-submenu:focus-within .submenu { display: block; }

.submenu li a {
    display: block;
    padding: 9px 18px;
    font-size: 0.88rem;
    white-space: nowrap;
    opacity: 0.85;
}

.submenu li a:hover { opacity: 1; background: rgba(255,255,255,0.06); text-decoration: none; }

.nav-toggle {
    display: none;
    background: none;
    border: 1px solid var(--paper);
    color: var(--paper);
    padding: 8px 12px;
    border-radius: var(--radius);
}


.hero-board {
    background:
        radial-gradient(circle at 15% 20%, rgba(255,255,255,0.05), transparent 40%),
        var(--slate-dark);
    color: var(--paper);
    padding: 80px 0 96px;
    position: relative;
    overflow: hidden;
}

.hero-inner {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.hero-text .eyebrow { color: var(--wheat); }

.hero-text h1 {
    font-size: clamp(2.1rem, 4vw, 3rem);
    max-width: 12ch;
}

.hero-text p { font-size: 1.05rem; opacity: 0.85; max-width: 46ch; }

.hero-meta {
    display: flex;
    gap: 28px;
    margin-top: 28px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
}

.hero-meta div strong { display: block; font-size: 1.3rem; font-family: var(--font-display); color: var(--wheat); }


.board {
    position: relative;
    background: #6b5940;
    background-image:
        repeating-linear-gradient(0deg, rgba(0,0,0,0.06) 0 1px, transparent 1px 6px),
        repeating-linear-gradient(90deg, rgba(0,0,0,0.06) 0 1px, transparent 1px 6px);
    border-radius: 6px;
    padding: 28px 22px 34px;
    box-shadow: inset 0 0 0 8px #574836, 0 20px 40px rgba(0,0,0,0.35);
}

.board-title {
    font-family: var(--font-mono);
    color: var(--paper);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 14px;
    opacity: 0.8;
}

.notice-stack {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.notice {
    background: var(--paper);
    color: var(--ink);
    padding: 16px 18px;
    border-radius: 2px;
    box-shadow: var(--shadow-pin);
    position: relative;
    transform: rotate(var(--tilt, -1.2deg));
    display: block;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    cursor: pointer;
}

.notice:hover {
    transform: rotate(var(--tilt, -1.2deg)) translateY(-3px);
    box-shadow: 0 10px 22px rgba(36, 38, 31, 0.24);
}

.notice-read-more {
    display: inline-block;
    margin-top: 8px;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--brick);
}

.notice:nth-child(2) { --tilt: 1deg; }
.notice:nth-child(3) { --tilt: -0.6deg; }

.notice::before {
    content: '';
    position: absolute;
    top: -9px;
    left: 20px;
    width: 14px;
    height: 14px;
    background: var(--brick);
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.4);
}

.notice .notice-date {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--moss);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.notice h3 { font-size: 1.05rem; margin: 4px 0 6px; }

.notice p { margin: 0; font-size: 0.9rem; color: #4a4a40; }

.notice-empty {
    background: rgba(247,244,236,0.15);
    border: 1px dashed rgba(247,244,236,0.4);
    color: var(--paper);
    padding: 20px;
    text-align: center;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    border-radius: 2px;
}


.section-head { margin-bottom: 40px; max-width: 60ch; }

.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }


.actu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.card {
    background: var(--paper);
    border: 1px solid var(--stone-dark);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.card:target {
    box-shadow: 0 0 0 3px var(--brick);
    border-color: var(--brick);
}

.card img { aspect-ratio: 16/10; object-fit: cover; }

.card-body { padding: 18px 20px 22px; }

.card-body .notice-date { font-family: var(--font-mono); font-size: 0.75rem; color: var(--moss); text-transform: uppercase; }

.card-body h3 { font-size: 1.1rem; margin: 6px 0 8px; }

.card-body p { font-size: 0.92rem; color: #4a4a40; margin: 0; }


.mairie-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}

.plaque {
    background: var(--slate);
    color: var(--paper);
    padding: 28px 28px 22px;
    border-radius: var(--radius);
}

.plaque h3 {
    font-family: var(--font-mono);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    color: var(--wheat);
    margin-bottom: 16px;
}

.horaires-list { list-style: none; margin: 0; padding: 0; }

.horaires-list li {
    display: flex;
    justify-content: space-between;
    padding: 9px 0;
    border-bottom: 1px solid rgba(247,244,236,0.15);
    font-size: 0.92rem;
}

.horaires-list li:last-child { border-bottom: none; }

.horaires-list .jour { font-weight: 600; }

.horaires-list .creneau { font-family: var(--font-mono); font-size: 0.85rem; opacity: 0.85; text-align: right; }

.contact-line { margin-top: 18px; font-size: 0.92rem; }
.contact-line a { text-decoration: underline; text-underline-offset: 3px; }


.elus-list { display: flex; flex-direction: column; gap: 14px; margin-bottom: 32px; }

.orgchart {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.org-connector {
    width: 2px;
    height: 28px;
    background: var(--stone-dark);
}

.org-tier {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    position: relative;
    padding-top: 8px;
}

.org-tier-adjoints::before,
.org-tier-conseillers::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    height: 1px;
    background: var(--stone-dark);
}

.org-tier-adjoints::before { width: calc(100% - 40px); max-width: 620px; }
.org-tier-conseillers::before { width: calc(100% - 40px); max-width: 900px; }

.org-tier-adjoints > .org-card::after,
.org-tier-conseillers > .org-card::after {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    width: 1px;
    height: 8px;
    background: var(--stone-dark);
}

.org-card {
    background: var(--paper);
    border: 1px solid var(--stone-dark);
    border-radius: var(--radius);
    padding: 16px 18px;
    text-align: center;
    width: 160px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.org-card img, .org-photo-placeholder {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--stone);
    margin-bottom: 10px;
}

.org-card strong { font-size: 0.9rem; line-height: 1.25; }
.org-card span { font-family: var(--font-mono); font-size: 0.72rem; color: var(--moss); text-transform: uppercase; margin-top: 4px; }

.org-card-maire {
    width: 190px;
    border-color: var(--brick);
    border-width: 2px;
    box-shadow: var(--shadow-pin);
}
.org-card-maire img, .org-card-maire .org-photo-placeholder { width: 84px; height: 84px; }
.org-card-maire strong { font-size: 1rem; }

.org-card-small { width: 130px; padding: 12px 12px; }
.org-card-small img, .org-card-small .org-photo-placeholder { width: 48px; height: 48px; margin-bottom: 8px; }
.org-card-small strong { font-size: 0.82rem; }
.org-card-small span { font-size: 0.66rem; }

@media (max-width: 700px) {
    .org-tier { gap: 14px; }
    .org-card, .org-card-small { width: 42%; min-width: 120px; }
}

.elu-item {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--stone);
    padding: 12px 16px;
    border-radius: var(--radius);
}

.elu-photo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--slate);
    object-fit: cover;
    flex-shrink: 0;
}

.elu-item strong { display: block; font-size: 0.95rem; }
.elu-item span { font-size: 0.82rem; color: var(--slate); font-family: var(--font-mono); }

.demarches-list { display: grid; gap: 14px; }

.service-highlight {
    margin-top: 32px;
    background: var(--paper);
    border: 2px solid var(--wheat);
    border-radius: var(--radius);
    padding: 24px 26px;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 28px;
    scroll-margin-top: 84px;
}

.service-highlight .eyebrow { color: var(--brick); }

.service-title-row { display: flex; align-items: center; gap: 14px; margin: 4px 0 12px; }
.service-title-row h3 { margin: 0; font-size: 1.15rem; }
.service-logo { height: 40px; width: auto; max-width: 110px; object-fit: contain; }

.service-highlight .service-meta { font-size: 0.9rem; color: #4a4a40; line-height: 1.7; }
.service-highlight .service-meta strong { color: var(--ink); }

.service-highlight .service-list { list-style: none; margin: 0; padding: 0; }

.service-highlight .service-list li {
    font-size: 0.88rem;
    padding: 7px 0 7px 20px;
    position: relative;
    border-bottom: 1px solid var(--stone-dark);
}

.service-highlight .service-list li:last-child { border-bottom: none; }

.service-highlight .service-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 14px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--brick);
}

@media (max-width: 700px) {
    .service-highlight { grid-template-columns: 1fr; }
}

.demarche-item {
    border-left: 3px solid var(--brick);
    padding: 4px 0 4px 16px;
}

.demarche-item h4 { margin: 0 0 4px; font-size: 1rem; font-family: var(--font-body); font-weight: 700; }
.demarche-item p { margin: 0; font-size: 0.88rem; color: #4a4a40; }


.asso-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 48px;
}

.asso-card {
    background: var(--paper);
    border: 1px solid var(--stone-dark);
    border-radius: var(--radius);
    padding: 20px;
    border-top: 4px solid var(--moss);
}

.asso-card h4 { margin: 0 0 8px; font-family: var(--font-display); font-size: 1.1rem; }
.asso-card p { margin: 0; font-size: 0.9rem; color: #4a4a40; }
.asso-card .contact { margin-top: 10px; font-family: var(--font-mono); font-size: 0.8rem; color: var(--moss); }

.event-item {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 20px;
    align-items: start;
    padding: 20px 0;
    border-top: 1px solid var(--stone-dark);
}

.event-date-badge {
    background: var(--slate);
    color: var(--paper);
    text-align: center;
    padding: 10px 6px;
    border-radius: var(--radius);
    font-family: var(--font-mono);
}

.event-date-badge .day { font-size: 1.4rem; font-weight: 700; display: block; }
.event-date-badge .month { font-size: 0.7rem; text-transform: uppercase; }

.event-item h4 { margin: 0 0 4px; }
.event-item .lieu { font-family: var(--font-mono); font-size: 0.78rem; color: var(--moss); text-transform: uppercase; }
.event-item p { margin: 8px 0 0; font-size: 0.92rem; color: #4a4a40; }


.simple-table { width: 100%; border-collapse: collapse; margin: 16px 0 28px; }

.simple-table th, .simple-table td {
    text-align: left;
    padding: 10px 14px;
    border-bottom: 1px solid var(--stone-dark);
    font-size: 0.9rem;
}

.simple-table th {
    font-family: var(--font-mono);
    text-transform: uppercase;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    color: var(--slate);
}

.tag-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }

.tag-list li {
    padding: 10px 14px;
    background: var(--stone);
    border-radius: var(--radius);
    font-size: 0.9rem;
}

.info-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 20px 0 28px;
}

.civil-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 20px;
}

.civil-col h4 {
    font-family: var(--font-mono);
    text-transform: uppercase;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    color: var(--moss);
    margin: 0 0 10px;
}

.civil-col ul { list-style: none; margin: 0; padding: 0; }
.civil-col li { font-size: 0.9rem; padding: 6px 0; border-bottom: 1px solid var(--stone-dark); }
.civil-col li:last-child { border-bottom: none; }
.civil-col .civil-date { display: block; font-family: var(--font-mono); font-size: 0.75rem; color: var(--slate); }

.agents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.agent-card {
    background: var(--paper);
    border: 1px solid var(--stone-dark);
    border-radius: var(--radius);
    overflow: hidden;
    text-align: center;
}

.agent-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; background: var(--stone); }
.agent-card .agent-body { padding: 16px 18px 20px; }
.agent-card h4 { margin: 0 0 4px; font-family: var(--font-display); font-size: 1.05rem; }
.agent-card .agent-fonction { font-family: var(--font-mono); font-size: 0.75rem; text-transform: uppercase; color: var(--moss); display: block; margin-bottom: 8px; }
.agent-card p { font-size: 0.86rem; color: #4a4a40; margin: 0; }

.salle-block { margin-bottom: 40px; }
.salle-block h3 { font-size: 1.1rem; margin-bottom: 4px; }

.tarifs-note { font-size: 0.85rem; color: var(--slate); margin: 10px 0 0; }

.inscription-highlight {
    background: var(--moss);
    color: var(--paper);
    border-radius: var(--radius);
    padding: 26px 28px;
    margin-top: 32px;
}

.inscription-highlight .eyebrow { color: var(--wheat); }
.inscription-highlight h3 { margin: 4px 0 12px; font-size: 1.15rem; }
.inscription-highlight p { font-size: 0.92rem; opacity: 0.95; }

.inscription-steps { list-style: none; margin: 14px 0 20px; padding: 0; counter-reset: step; }
.inscription-steps li {
    counter-increment: step;
    padding: 8px 0 8px 34px;
    position: relative;
    font-size: 0.88rem;
    border-bottom: 1px solid rgba(247,244,236,0.18);
}
.inscription-steps li:last-child { border-bottom: none; }
.inscription-steps li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 6px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--wheat);
    color: var(--ink);
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.inscription-highlight .btn { background: var(--wheat); color: var(--ink); margin-top: 4px; }
.inscription-highlight .btn:hover { background: #b5872f; }

.infos-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }

.info-block {
    background: var(--paper);
    border: 1px solid var(--stone-dark);
    border-radius: var(--radius);
    padding: 18px 20px;
}

.info-block h4 { margin: 0 0 8px; font-family: var(--font-mono); text-transform: uppercase; font-size: 0.8rem; letter-spacing: 0.06em; color: var(--brick); }
.info-block p { margin: 0; font-size: 0.88rem; color: #4a4a40; }
.info-block a { color: var(--moss); text-decoration: underline; }

@media (max-width: 700px) {
    .civil-columns { grid-template-columns: 1fr; }
}

.info-pill {
    background: var(--slate);
    color: var(--paper);
    padding: 10px 16px;
    border-radius: 999px;
    font-family: var(--font-mono);
    font-size: 0.82rem;
}


.visiter-grid {
    display: grid;
    grid-template-columns: 1.7fr 1fr;
    gap: 40px;
    align-items: start;
}

.commerce-list { display: flex; flex-direction: column; gap: 16px; }

.commerce-item {
    background: var(--paper);
    border: 1px solid var(--stone-dark);
    border-radius: var(--radius);
    padding: 18px 20px;
    border-left: 4px solid var(--brick);
}

.commerce-item .commerce-photo {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: 2px;
    margin: -4px -6px 12px -6px;
    width: calc(100% + 12px);
}

.commerce-item h4 { margin: 0 0 6px; font-family: var(--font-display); font-size: 1.05rem; }
.commerce-item p { margin: 0 0 6px; font-size: 0.9rem; color: #4a4a40; }
.commerce-item .commerce-contact { font-family: var(--font-mono); font-size: 0.78rem; color: var(--moss); }

.jardin-card {
    background: var(--slate);
    color: var(--paper);
    border-radius: var(--radius);
    overflow: hidden;
    position: sticky;
    top: 96px;
}

.jardin-card img { aspect-ratio: 4/3; object-fit: cover; }

.jardin-card-body { padding: 22px 22px 26px; }

.jardin-card-body .eyebrow { color: var(--wheat); margin-bottom: 6px; }

.jardin-card-body h3 { font-size: 1.2rem; margin-bottom: 10px; }

.jardin-card-body p { font-size: 0.88rem; opacity: 0.88; margin: 0 0 14px; }

.jardin-card-body .jardin-meta {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    opacity: 0.85;
    line-height: 1.7;
    margin-bottom: 16px;
}

.jardin-card-body .btn { background: var(--wheat); color: var(--ink); }
.jardin-card-body .btn:hover { background: #b5872f; }

@media (max-width: 860px) {
    .visiter-grid { grid-template-columns: 1fr; }
    .jardin-card { position: static; }
}


.galerie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 18px;
}

.galerie-grid figure {
    margin: 0;
    background: var(--paper);
    padding: 8px 8px 12px;
    box-shadow: var(--shadow-pin);
    transform: rotate(var(--tilt, 0deg));
}

.galerie-grid figure:nth-child(odd) { --tilt: -1.5deg; }
.galerie-grid figure:nth-child(even) { --tilt: 1.2deg; }

.galerie-grid img { aspect-ratio: 4/3; object-fit: cover; }

.galerie-grid figcaption {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--slate);
    text-align: center;
    padding-top: 8px;
}

.galerie-empty {
    font-family: var(--font-mono);
    color: var(--slate);
    text-align: center;
    padding: 40px;
    border: 1px dashed var(--stone-dark);
    border-radius: var(--radius);
}


.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}

.contact-form { display: flex; flex-direction: column; gap: 14px; }

.contact-form label { font-size: 0.85rem; font-weight: 600; }

.contact-form input, .contact-form textarea {
    font-family: var(--font-body);
    padding: 11px 13px;
    border: 1px solid var(--stone-dark);
    border-radius: var(--radius);
    font-size: 0.95rem;
    background: var(--paper);
}

.contact-form textarea { resize: vertical; min-height: 120px; }

.btn {
    display: inline-block;
    background: var(--brick);
    color: var(--paper);
    border: none;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    text-decoration: none;
    align-self: flex-start;
}

.btn:hover { background: #8a3c29; }

.map-placeholder {
    background: var(--stone);
    border-radius: var(--radius);
    min-height: 280px;
}

.map-placeholder iframe { width: 100%; height: 100%; min-height: 280px; border: 0; border-radius: var(--radius); }

.notice-flash {
    padding: 14px 18px;
    border-radius: var(--radius);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.notice-flash.success { background: #e4ede1; color: var(--moss); border: 1px solid var(--moss); }
.notice-flash.error { background: #f3e3de; color: var(--brick); border: 1px solid var(--brick); }


footer.site-footer {
    background: var(--slate-dark);
    color: var(--paper);
    padding: 40px 0;
    font-size: 0.85rem;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
}

.footer-links { display: flex; gap: 18px; }
.footer-links a { text-decoration: none; opacity: 0.75; }
.footer-links a:hover { opacity: 1; text-decoration: underline; }

.footer-credit {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(247,244,236,0.12);
    font-size: 0.78rem;
    opacity: 0.6;
    text-align: center;
}

.footer-credit a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.footer-credit a:hover { opacity: 1; }


.rgpd-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    background: var(--slate-dark);
    color: var(--paper);
    padding: 18px 24px;
    box-shadow: 0 -8px 24px rgba(0,0,0,0.25);
    display: none;
}

.rgpd-banner.visible { display: block; }

.rgpd-inner {
    max-width: 1080px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.rgpd-text { font-size: 0.88rem; max-width: 68ch; opacity: 0.92; }
.rgpd-text a { color: var(--wheat); text-decoration: underline; }

.rgpd-actions { display: flex; gap: 10px; flex-shrink: 0; }

.rgpd-actions button {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.85rem;
    padding: 10px 18px;
    border-radius: var(--radius);
    cursor: pointer;
    border: none;
}

.rgpd-accept { background: var(--brick); color: var(--paper); }
.rgpd-accept:hover { background: #8a3c29; }

.rgpd-refuse { background: transparent; color: var(--paper); border: 1px solid rgba(247,244,236,0.4) !important; }
.rgpd-refuse:hover { border-color: var(--paper) !important; }


.map-consent-notice {
    height: 100%;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 12px;
    padding: 24px;
    font-size: 0.85rem;
    color: var(--slate);
}

.map-consent-notice .btn { font-size: 0.85rem; padding: 9px 18px; }

@media (max-width: 700px) {
    .rgpd-inner { flex-direction: column; align-items: stretch; }
    .rgpd-actions { justify-content: stretch; }
    .rgpd-actions button { flex: 1; }
}


@media (max-width: 860px) {
    .hero-inner, .mairie-grid, .contact-grid { grid-template-columns: 1fr; }

    nav.main-nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--slate);
        padding: 16px 24px 24px;
        gap: 16px;
        max-height: 80vh;
        overflow-y: auto;
    }

    nav.main-nav.open { display: flex; }

    nav.main-nav > ul { flex-direction: column; gap: 4px; }

    .submenu {
        display: block;
        position: static;
        box-shadow: none;
        background: rgba(0,0,0,0.15);
        margin-top: 4px;
        border-radius: var(--radius);
    }

    .nav-toggle { display: inline-block; }

    .section { padding: 52px 0; }
}
