:root {
    --leaf: #5a7a3a;
    --leaf-dark: #3f5728;
    --bark: #5a4a2a;
    --stone: #d6cfc1;
    --cream: #faf7f0;
    --text: #2b2b2b;
    --muted: #6b6b6b;
    --border: #e3ddd0;
    --max-width: 1200px;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    color: var(--text);
    background: var(--cream);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    font-size: 17px;
}

h1, h2, h3, h4 {
    font-family: 'Fraunces', Georgia, serif;
    color: var(--leaf-dark);
    line-height: 1.2;
    margin: 0 0 0.5em;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.4rem; }

a { color: var(--leaf-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

p { margin: 0 0 1em; }

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

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

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }

/* Header */
.site-header { background: white; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding-top: 1rem; padding-bottom: 1rem; flex-wrap: wrap; gap: 1rem; }
.brand { display: flex; flex-direction: column; line-height: 1.1; }
.brand-title { font-family: 'Fraunces', serif; font-weight: 700; font-size: 1.35rem; color: var(--leaf-dark); }
.brand-subtitle { font-size: 0.8rem; color: var(--muted); margin-top: 2px; }
.site-nav { display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap; }
.site-nav a { color: var(--text); font-weight: 500; padding: 0.5rem 0; border-bottom: 2px solid transparent; text-decoration: none; }
.site-nav a:hover { border-bottom-color: var(--leaf); }

/* Hero */
.hero { position: relative; min-height: 420px; display: flex; align-items: center; background: linear-gradient(135deg, var(--leaf) 0%, var(--leaf-dark) 100%); color: white; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.35; }
.hero-inner { position: relative; z-index: 1; padding: 3rem 1.5rem; }
.hero h1 { color: white; font-size: 3rem; margin-bottom: 0.5rem; }
.hero-subtitle { font-size: 1.25rem; color: var(--cream); max-width: 700px; }

/* Section */
.section { padding: 3.5rem 0; }
.section-intro { background: white; }
.section-header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 2rem; flex-wrap: wrap; gap: 1rem; }
.section-header h2 { margin: 0; }
.link-more { color: var(--leaf); font-weight: 500; }

/* Grids */
.grid { display: grid; gap: 1.5rem; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

/* Card */
.card { background: white; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; transition: transform 0.2s ease, box-shadow 0.2s ease; position: relative; }
.card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.08); }
.card-link { color: inherit; text-decoration: none; }
.card-link::after { content: ""; position: absolute; inset: 0; }
.card-link:hover { color: var(--leaf-dark); }
.card-img { aspect-ratio: 3/2; object-fit: cover; width: 100%; }
.card-body { padding: 1.25rem; flex: 1; }
.card-date { color: var(--muted); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; }
.card h2, .card h3 { font-size: 1.2rem; margin: 0.5rem 0 0.5rem; }
.card h2 a, .card h3 a { color: var(--text); }
.card h2 a:hover, .card h3 a:hover { color: var(--leaf-dark); }

/* Events */
.event-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 1rem; }
.event-list-past .event-item { opacity: 0.65; }
.event-item { display: flex; gap: 1.5rem; background: white; padding: 1.25rem; border-radius: 8px; border: 1px solid var(--border); align-items: center; }
.event-date { background: var(--leaf); color: white; border-radius: 8px; padding: 0.75rem 1rem; text-align: center; min-width: 70px; flex-shrink: 0; }
.event-day { font-family: 'Fraunces', serif; font-size: 1.75rem; display: block; line-height: 1; }
.event-month { text-transform: uppercase; font-size: 0.75rem; letter-spacing: 0.1em; display: block; margin-top: 0.25rem; }
.event-body h3 { margin: 0 0 0.25rem; font-size: 1.2rem; }
.event-meta { color: var(--muted); font-size: 0.9rem; margin: 0; }

/* Article */
.page-header { background: white; padding: 3rem 0 2rem; border-bottom: 1px solid var(--border); }
.page-header h1 { margin-bottom: 0.5rem; }
.article-hero { width: 100%; aspect-ratio: 16/6; object-fit: cover; }
.article-inner { max-width: 800px; padding: 2.5rem 1.5rem; }
.article-header { margin-bottom: 2rem; }
.article-date { color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.85rem; }
.article-intro { font-size: 1.2rem; color: var(--muted); line-height: 1.6; margin-top: 1rem; }
.prose { max-width: 70ch; line-height: 1.75; }
.prose h2 { margin-top: 2rem; }
.prose h3 { margin-top: 1.5rem; }
.prose img { border-radius: 6px; margin: 1.5rem 0; }
.prose a { color: var(--leaf-dark); text-decoration: underline; }
.back-link { margin-top: 3rem; }
.empty { color: var(--muted); font-style: italic; padding: 2rem 0; }

/* Mairie / Élus */
.page-intro { font-size: 1.2rem; color: var(--muted); max-width: 70ch; margin: 0; }

.elu-highlight { display: flex; gap: 2rem; align-items: center; background: white; border: 1px solid var(--border); padding: 1.5rem; border-radius: 8px; margin: 1rem 0 2.5rem; }
.elu-highlight h3 { margin: 0; }
.elu-role { color: var(--leaf); font-weight: 600; text-transform: uppercase; font-size: 0.85rem; letter-spacing: 0.05em; margin: 0.25rem 0 0.5rem; }
.elu-photo-large, .elu-photo { background: var(--stone); border-radius: 50%; overflow: hidden; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.elu-photo-large { width: 120px; height: 120px; }
.elu-photo { width: 90px; height: 90px; margin-bottom: 0.75rem; }
.elu-photo img, .elu-photo-large img { width: 100%; height: 100%; object-fit: cover; }
.elu-initials { font-family: 'Fraunces', serif; font-size: 2rem; color: var(--leaf-dark); }
.elu-photo .elu-initials { font-size: 1.5rem; }

.elus-grid { margin: 1rem 0 2rem; }
.elu-card { background: white; border: 1px solid var(--border); padding: 1.25rem; border-radius: 8px; text-align: center; }
.elu-card strong { display: block; margin-top: 0.25rem; }
.elu-meta { color: var(--muted); font-size: 0.9rem; margin: 0.25rem 0 0; }

.elus-list { list-style: none; padding: 0; columns: 2; column-gap: 2rem; }
@media (max-width: 600px) { .elus-list { columns: 1; } }
.elus-list li { padding: 0.4rem 0; border-bottom: 1px solid var(--border); break-inside: avoid; }

.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.info-card { background: white; border: 1px solid var(--border); border-radius: 8px; padding: 1.5rem; }
.info-card h2 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.info-card p { margin-bottom: 0.5rem; }

/* Footer */
.site-footer { background: var(--leaf-dark); color: var(--cream); margin-top: 4rem; }
.footer-inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem; padding: 3rem 1.5rem; }
.site-footer h2 { color: white; font-size: 1.05rem; margin-bottom: 0.75rem; font-family: 'Inter', system-ui, sans-serif; }
.site-footer a { color: var(--cream); text-decoration: underline; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.4rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.15); padding: 1rem 1.5rem; text-align: center; font-size: 0.85rem; color: rgba(255,255,255,0.7); }

/* Responsive */
@media (max-width: 640px) {
    h1 { font-size: 2rem; }
    .hero h1 { font-size: 2.25rem; }
    .hero { min-height: 320px; }
    .header-inner { flex-direction: column; align-items: flex-start; }
}
