/* Sauteyrargues — feuille de style du site public (d'après les maquettes) */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('/assets/fonts/inter-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('/assets/fonts/inter-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('/assets/fonts/outfit-latin.woff2') format('woff2'); }

:root {
  --ink: #1E2621;
  --ink-2: #3D4641;
  --muted: #59625C;
  --line: #E4E0D6;
  --line-2: #D5D0C4;
  --line-3: #EFECE5;
  --sand: #F5F3EE;
  --white: #FFFFFF;
  --green: #2F6B4F;
  --green-dark: #1F4C37;
  --green-soft: #E7F0EA;
  --green-pale: #A9D3B9;
  --brown: #8A4B0F;
  --brown-dark: #6E3B0B;
  --brown-soft: #F8EEE2;
  --flash: #FFF6E5;
  --flash-line: #F1DFC0;
  --grey-soft: #EEF0EF;
  --red: #A32D2D;
  --red-soft: #FBE9E7;
  --radius: 20px;
  --wrap: 1200px;
  --display: 'Outfit', 'Inter', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 24px; }
body { margin: 0; background: var(--white); color: var(--ink); font: 16px/1.5 'Inter', system-ui, sans-serif; }
img { max-width: 100%; display: block; }
a { color: var(--green); }
a:hover { color: var(--green-dark); }
h1, h2, h3, h4 { font-family: var(--display); margin: 0; letter-spacing: -0.01em; line-height: 1.15; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid #E0A458; outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 999px; z-index: 50; }
.skip:focus { top: 12px; color: #fff; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.ph { background: repeating-linear-gradient(135deg, #ECE8DF 0 12px, #E4DFD3 12px 24px); color: var(--muted); font-size: 13px; display: flex; align-items: center; justify-content: center; text-align: center; }
.cover { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Barre du haut ---------- */
.topbar { background: var(--sand); border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.topbar .wrap { padding-top: 8px; padding-bottom: 8px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; align-items: center; }
.topbar a { color: var(--muted); }
.topbar a.tel { text-decoration: none; }
.topbar .links { display: flex; gap: 20px; align-items: center; }
.topbar.closed { color: #7A1F1F; }
.topbar .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--red); margin-right: 8px; vertical-align: 1px; }

/* ---------- En-tête ---------- */
.site-header { border-bottom: 1px solid var(--line); background: var(--white); position: relative; z-index: 20; }
.site-header .wrap { padding-top: 18px; padding-bottom: 18px; display: flex; gap: 16px 32px; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.blason { width: 48px; height: 48px; border-radius: 12px; font-size: 10px; overflow: hidden; flex-shrink: 0; }
.blason img { width: 100%; height: 100%; object-fit: contain; }
.brand-name { display: flex; flex-direction: column; }
.brand-name b { font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: -0.01em; line-height: 1.2; }
.brand-name small { font-size: 12px; color: var(--muted); }
.main-nav { display: flex; flex-wrap: wrap; gap: 4px 28px; font-size: 15px; font-weight: 500; }
.main-nav a { color: var(--ink); text-decoration: none; padding: 10px 0; border-bottom: 2px solid transparent; }
.main-nav a:hover { color: var(--green); }
.main-nav a[aria-current="page"] { color: var(--green); border-bottom-color: var(--green); }
.header-actions { display: flex; gap: 10px; align-items: center; }
.icon-btn { width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; color: var(--ink); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 600; font-size: 15px; padding: 12px 20px; border-radius: 999px; text-decoration: none; border: 1px solid transparent; cursor: pointer; line-height: 1.2; }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-dark); color: #fff; }
.btn-dark { background: var(--ink); color: #fff; padding: 14px 22px; }
.btn-dark:hover { background: #000; color: #fff; }
.btn-light { background: var(--white); color: var(--ink); border-color: var(--line-2); }
.btn-light:hover { border-color: var(--ink); color: var(--ink); }
.btn-sm { font-size: 14px; padding: 10px 16px; }
.menu-btn { display: none; }
.search-panel { border-bottom: 1px solid var(--line); background: var(--white); }
.search-panel form { display: flex; gap: 10px; padding-top: 14px; padding-bottom: 14px; }
.search-panel input { flex: 1; }

/* ---------- Bandeaux ---------- */
.flash { background: var(--flash); border-bottom: 1px solid var(--flash-line); color: var(--brown-dark); }
.flash .wrap { padding-top: 12px; padding-bottom: 12px; display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; font-size: 14px; }
.flash .tag { font-weight: 600; background: var(--white); border: 1px solid var(--flash-line); padding: 4px 10px; border-radius: 999px; font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap; }
.flash a { color: var(--brown-dark); font-weight: 600; }
.flash .more { margin-left: auto; }
.flash-big .wrap { padding-top: 18px; padding-bottom: 18px; flex-wrap: nowrap; gap: 16px; align-items: center; }
.flash-ico { width: 44px; height: 44px; border-radius: 12px; background: var(--brown); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.flash-ico svg { stroke: #fff; }
.flash-big .txt { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.flash-big .kicker { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.flash-big .ttl { font-family: var(--display); font-size: 19px; font-weight: 600; }
.flash-big .msg { font-size: 14px; line-height: 1.5; }
.flash-big .btn { background: var(--white); border-color: var(--flash-line); color: var(--brown-dark); font-size: 14px; padding: 9px 16px; text-decoration: none; }
.flash-close { width: 36px; height: 36px; border-radius: 999px; border: 0; background: transparent; cursor: pointer; color: var(--brown-dark); font-size: 20px; line-height: 1; }
.flash-close:hover { background: var(--white); }
.flash.alerte { background: #FDECEA; border-color: #F3C9C4; color: #7A1F1F; }
.flash.alerte .flash-ico { background: var(--red); }
.flash.alerte a, .flash.alerte .flash-close { color: #7A1F1F; }
.flash.info { background: var(--green-soft); border-color: #CFE2D6; color: var(--green-dark); }
.flash.info .flash-ico { background: var(--green); }
.flash.info a, .flash.info .flash-close { color: var(--green-dark); }
.closure-banner .wrap { flex-direction: column; align-items: flex-start; gap: 10px; padding-top: 16px; padding-bottom: 16px; }
.closure-banner .ttl { font-weight: 600; font-size: 17px; }
.closure-banner .more { margin-left: auto; align-self: flex-end; }

/* ---------- Titres de section ---------- */
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--green); }
.eyebrow.brown { color: var(--brown); }
.eyebrow.pale { color: var(--green-pale); }
.sec { padding: 72px 0; }
.sec-sand { background: var(--sand); }
.sec-dark { background: var(--ink); color: #fff; }
.sec-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 32px; }
.sec-head .t { display: flex; flex-direction: column; gap: 8px; max-width: 640px; }
.sec-head h2 { font-size: 38px; }
.sec-head p { color: var(--muted); line-height: 1.6; }
.sec-dark .sec-head p { color: #C9D1CC; }
.sec-head .all { font-weight: 600; }
.sec-head .all.brown { color: var(--brown); }
.sec-dark .sec-head .all { color: #fff; }
.mairie-ico { width: 56px; height: 56px; border-radius: 16px; background: var(--green); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

/* ---------- Accueil : héros ---------- */
.hero { padding-top: 64px; padding-bottom: 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 48px; align-items: center; }
.hero .t { display: flex; flex-direction: column; gap: 20px; }
.hero h1 { font-weight: 700; font-size: 60px; line-height: 1.02; letter-spacing: -0.02em; }
.hero p { font-size: 18px; line-height: 1.6; color: var(--muted); max-width: 480px; }
.hero .short { display: none; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.hero .cta .btn-light { padding: 13px 22px; }
.hero-img { height: 420px; border-radius: 24px; overflow: hidden; }
.quick { padding-bottom: 64px; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.quick a { display: flex; flex-direction: column; gap: 14px; padding: 20px; border: 1px solid var(--line); border-radius: 16px; text-decoration: none; color: var(--ink); background: var(--white); font-weight: 600; transition: border-color .15s, transform .15s; }
.quick a:hover { border-color: var(--green); color: var(--ink); transform: translateY(-1px); }
.quick svg { stroke: var(--green); }
.today-card { display: none; }

/* ---------- Cartes actualités ---------- */
.split { display: flex; flex-wrap: wrap; gap: 24px; }
.split > .main { flex: 999 1 600px; min-width: 0; }
.split > .side { flex: 1 1 280px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.cards.three { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.card { background: var(--white); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; color: var(--ink); text-decoration: none; position: relative; }
.card.sand { background: var(--sand); }
.card:hover { color: var(--ink); }
.card:hover h3, .card:hover h2 { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.card .img { height: 190px; flex-shrink: 0; }
.card.sand .img { height: 180px; }
.card .body { padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.card .meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.card h3, .card h2 { font-size: 20px; line-height: 1.25; }
.card p { color: var(--muted); line-height: 1.55; font-size: 15px; }
.pill { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--grey-soft); color: var(--ink-2); white-space: nowrap; }
.pill.brown { background: var(--brown-soft); color: var(--brown); }
.pill.white { background: var(--white); color: var(--ink-2); }
.pill.green { background: var(--green-soft); color: var(--green-dark); }
.date { font-size: 13px; color: var(--muted); }
.empty { padding: 32px; border: 1px dashed var(--line-2); border-radius: var(--radius); color: var(--muted); text-align: center; background: var(--white); }

.agenda-box { background: var(--white); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 4px; }
.agenda-box h3 { font-size: 20px; margin-bottom: 8px; }
.ag-item { display: flex; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line-3); text-decoration: none; color: var(--ink); }
.ag-item:last-of-type { border-bottom: 0; }
.ag-item:hover { color: var(--green); }
.ag-date { width: 52px; height: 52px; border-radius: 12px; background: var(--brown-soft); color: var(--brown); display: flex; flex-direction: column; align-items: center; justify-content: center; flex-shrink: 0; }
.ag-date.mairie { background: var(--green-soft); color: var(--green-dark); }
.ag-date.alentours { background: var(--grey-soft); color: var(--ink-2); }
.ag-date b { font-family: var(--display); font-weight: 700; font-size: 18px; line-height: 1; }
.ag-date small { font-size: 10px; font-weight: 600; text-transform: uppercase; }
.ag-txt { display: flex; flex-direction: column; gap: 2px; }
.ag-txt b { font-weight: 600; }
.ag-txt small { font-size: 13px; color: var(--muted); }

/* ---------- La mairie vous informe ---------- */
.notices { border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden; background: var(--white); }
.notices-head { padding: 18px 24px; background: var(--green-soft); border-bottom: 1px solid var(--line-2); font-size: 14px; color: var(--green-dark); font-weight: 600; }
.notice { display: flex; gap: 18px; padding: 22px 24px; border-bottom: 1px solid var(--line-3); align-items: flex-start; flex-wrap: wrap; }
.notice:last-child { border-bottom: 0; }
.notice-ico { width: 44px; height: 44px; border-radius: 12px; background: var(--green-soft); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.notice-ico svg { stroke: var(--green); }
.notice-ico.warm { background: var(--flash); }
.notice-ico.warm svg { stroke: var(--brown); }
.notice .t { flex: 1 1 300px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.notice .k { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.notice .kind { font-size: 12px; font-weight: 700; color: var(--green); text-transform: uppercase; letter-spacing: 0.06em; }
.notice .kind.warm { color: var(--brown); }
.state { font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--grey-soft); color: var(--ink-2); }
.state.en-cours { background: var(--flash); color: var(--brown-dark); border: 1px solid var(--flash-line); }
.state.consultation { background: var(--green-soft); color: var(--green-dark); }
.state.termine { background: var(--grey-soft); color: var(--muted); }
.notice .ttl { font-weight: 600; font-size: 17px; color: var(--ink); text-decoration: none; }
.notice a.ttl:hover { color: var(--green); }
.notice .inf { font-size: 14px; color: var(--muted); }
.notice .act { font-weight: 600; font-size: 14px; align-self: center; }
.mayor { background: var(--green-soft); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.mayor blockquote { margin: 0; font-family: var(--display); font-size: 21px; line-height: 1.4; color: var(--green-dark); font-weight: 500; }
.mayor .who { display: flex; gap: 12px; align-items: center; }
.mayor .who .ph, .mayor .who img { width: 48px; height: 48px; border-radius: 50%; font-size: 10px; object-fit: cover; flex-shrink: 0; }
.mayor .who b { display: block; font-weight: 600; color: var(--green-dark); }
.mayor .who small { font-size: 13px; color: var(--green-dark); opacity: .85; }
.mayor a { font-weight: 600; color: var(--green-dark); }

/* ---------- Randonnées ---------- */
.rando-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.rando-mini { text-decoration: none; color: #fff; display: flex; flex-direction: column; gap: 10px; }
.rando-mini:hover { color: #fff; }
.rando-mini .img { height: 200px; border-radius: 16px; overflow: hidden; margin-bottom: 4px; }
.rando-mini small { font-size: 13px; color: var(--green-pale); }
.rando-mini b { font-family: var(--display); font-size: 20px; font-weight: 600; line-height: 1.25; }
.rando-mini:hover b { text-decoration: underline; text-underline-offset: 3px; }

.filters { background: var(--sand); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 12px; align-items: end; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span, .field > label { font-size: 13px; font-weight: 600; }
.input, .select, .textarea { width: 100%; border: 1px solid var(--line-2); border-radius: 12px; background: var(--white); padding: 12px 14px; font-size: 15px; }
.select { appearance: none; padding-right: 36px; background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%231E2621' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center; }
.input:focus, .select:focus, .textarea:focus { outline: 2px solid var(--green); outline-offset: 0; border-color: var(--green); }
.textarea { min-height: 140px; resize: vertical; }
.count { font-size: 14px; color: var(--muted); margin: 18px 0 18px; }
.rcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.rcard { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; background: var(--white); }
.rcard .img { height: 180px; }
.rcard .body { padding: 20px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.rcard .top { display: flex; justify-content: space-between; gap: 10px; align-items: center; font-size: 13px; color: var(--muted); }
.lvl { font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--grey-soft); color: var(--ink-2); }
.lvl.facile { background: var(--green-soft); color: var(--green-dark); }
.lvl.moyenne { background: var(--flash); color: var(--brown-dark); }
.lvl.difficile { background: var(--red-soft); color: var(--red); }
.rcard h2, .rcard h3 { font-size: 21px; }
.rcard h2 a { color: var(--ink); text-decoration: none; }
.rcard h2 a:hover { text-decoration: underline; }
.stats { display: flex; gap: 18px; font-size: 14px; color: var(--muted); flex-wrap: wrap; }
.rcard .acts { display: grid; grid-template-columns: 1.3fr 1fr; gap: 8px; margin-top: auto; padding-top: 4px; }
.rcard .acts .btn { font-size: 14px; padding: 10px 14px; }
.rcard .acts .btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.map { height: 100%; min-height: 300px; border-radius: 24px; overflow: hidden; background: var(--sand); position: relative; z-index: 0; }
.map.ph { min-height: 300px; }
.page-head-split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: stretch; padding-top: 48px; padding-bottom: 32px; }
.page-head-split .t { display: flex; flex-direction: column; justify-content: center; gap: 16px; }
.page-head-split .map { min-height: 340px; }

/* ---------- En-têtes de page ---------- */
.page-head { background: var(--sand); border-bottom: 1px solid var(--line); }
.page-head .wrap { padding-top: 48px; padding-bottom: 32px; display: flex; flex-direction: column; gap: 14px; }
.page-head.tabs .wrap { padding-bottom: 0; }
.crumbs { font-size: 13px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.page-title { font-size: 48px; letter-spacing: -0.02em; }
.lead { font-size: 18px; color: var(--muted); line-height: 1.6; max-width: 640px; }
.anchors { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.anchors a { font-weight: 600; font-size: 14px; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--white); color: var(--ink); text-decoration: none; }
.anchors a:hover { border-color: var(--ink); }

.tablist { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; margin-top: 16px; }
.tab { text-align: left; display: flex; flex-direction: column; gap: 6px; padding: 20px 22px; border-radius: 18px 18px 0 0; color: var(--ink); margin-bottom: -1px; border: 1px solid transparent; text-decoration: none; opacity: .75; }
.tab:hover { opacity: 1; color: var(--ink); }
.tab[aria-selected="true"] { background: var(--white); border-color: var(--line) var(--line) var(--white); box-shadow: inset 0 4px 0 #9A5418; opacity: 1; }
.tab.mairie[aria-selected="true"] { box-shadow: inset 0 4px 0 var(--green); }
.tab .k { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brown); }
.tab.mairie .k { color: var(--green); }
.tab b { font-family: var(--display); font-size: 22px; font-weight: 600; }
.tab small { font-size: 14px; color: var(--muted); }

.chipbar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.chipbar a { font-size: 14px; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--ink); text-decoration: none; }
.chipbar a:hover { border-color: var(--ink); }
.chipbar a[aria-current="true"] { background: var(--ink); color: #fff; border-color: var(--ink); font-weight: 600; }

.content-split { display: flex; flex-wrap: wrap; gap: 48px; padding-top: 32px; padding-bottom: 80px; }
.content-split > .main { flex: 999 1 560px; min-width: 0; }
.content-split > .side { flex: 1 1 300px; display: flex; flex-direction: column; gap: 20px; }

/* Calendrier */
.cal { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: var(--white); }
.cal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.cal-head h2 { font-size: 22px; }
.cal-nav { display: flex; gap: 8px; }
.cal-nav a { width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; color: var(--ink); text-decoration: none; }
.cal-nav a:hover { border-color: var(--ink); }
.cal-month { font-weight: 600; margin-bottom: 10px; text-transform: capitalize; }
.cal table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.cal th { font-size: 12px; font-weight: 600; color: var(--muted); padding: 6px 0; }
.cal td { text-align: center; padding: 3px 0; font-size: 14px; }
.cal td span, .cal td a { display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center; border-radius: 10px; color: var(--ink); text-decoration: none; }
.cal td a { font-weight: 700; color: #fff; background: var(--brown); border-radius: 50%; }
.cal td a.mairie { background: var(--green); border-radius: 10px; }
.cal td a.alentours { background: var(--ink-2); }
.cal td a[aria-current="date"] { outline: 3px solid #E0A458; outline-offset: 1px; }
.cal td .today { box-shadow: inset 0 0 0 1px var(--ink); }
.cal-legend { display: flex; gap: 16px; font-size: 12px; color: var(--muted); margin-top: 14px; flex-wrap: wrap; }
.cal-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--brown); margin-right: 6px; vertical-align: -1px; }
.cal-legend i.mairie { background: var(--green); border-radius: 3px; }
.cal-legend i.alentours { background: var(--ink-2); }
.day-list { margin-top: 18px; display: flex; flex-direction: column; }

/* ---------- Infos pratiques ---------- */
.pratique-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.42fr); gap: 32px; padding-top: 56px; padding-bottom: 56px; align-items: start; }
.col { display: flex; flex-direction: column; gap: 20px; }
.box { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; background: var(--white); }
.box h2 { font-size: 24px; }
.box-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.badge { font-size: 12px; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: var(--green-soft); color: var(--green-dark); }
.badge.off { background: var(--red-soft); color: var(--red); }
.hours { width: 100%; border-collapse: collapse; font-size: 15px; }
.hours td { padding: 11px 0; border-bottom: 1px solid var(--line-3); }
.hours tr:last-child td { border-bottom: 0; }
.hours td:last-child { text-align: right; }
.hours .closed-val { color: var(--muted); }
.hours tr.is-today td { font-weight: 600; }
.hours s { color: var(--muted); font-weight: 400; margin-right: 8px; }
.hours .off { color: var(--red); font-weight: 600; }
.notice-box { background: var(--flash); border: 1px solid var(--flash-line); border-radius: 14px; padding: 14px 16px; color: var(--brown-dark); font-size: 14px; margin-bottom: 18px; }
.notice-box b { display: block; margin-bottom: 4px; }
.small-k { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin: 6px 0 4px; }
.box .foot { border-top: 1px solid var(--line); margin-top: 14px; padding-top: 14px; font-size: 14px; display: flex; flex-direction: column; gap: 10px; }
.box .foot b { display: block; font-size: 13px; }
.box .foot span { color: var(--muted); }
.coords { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.coords .tel { font-weight: 600; }
.coords .muted { color: var(--muted); }
.coords a { font-weight: 600; word-break: break-all; }
.box .map { margin-top: 10px; border-radius: 16px; min-height: 200px; height: 200px; }
.form-intro { color: var(--muted); margin: 12px 0 18px; font-size: 15px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); }
.check input { width: 18px; height: 18px; margin-top: 1px; accent-color: var(--green); }
.hp { position: absolute; left: -9999px; }
.alert { padding: 14px 16px; border-radius: 14px; font-size: 15px; margin-bottom: 16px; }
.alert.ok { background: var(--green-soft); color: var(--green-dark); }
.alert.err { background: var(--red-soft); color: var(--red); }
.urgent { background: var(--green-soft); border-radius: var(--radius); padding: 24px; color: var(--green-dark); }
.urgent h2 { font-size: 20px; margin-bottom: 10px; }
.urgent p { font-size: 15px; line-height: 1.6; }
.urgent a { display: inline-block; margin-top: 10px; font-weight: 600; color: var(--green-dark); }

.waste { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.waste .box { border: 0; padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.waste .sw { width: 40px; height: 40px; border-radius: 10px; margin-bottom: 8px; }
.waste b { font-size: 17px; }
.waste p { color: var(--muted); font-size: 15px; white-space: pre-line; }
.doc-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.doc { display: flex; gap: 14px; align-items: center; padding: 18px 20px; border: 1px solid var(--line); border-radius: 16px; text-decoration: none; color: var(--ink); background: var(--white); }
.doc:hover { border-color: var(--green); color: var(--ink); }
.doc .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--green-soft); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.doc .ico svg { stroke: var(--green); }
.doc b { display: block; font-weight: 600; }
.doc small { color: var(--muted); font-size: 13px; }
.links-group { margin-bottom: 28px; }
.links-group h3 { font-size: 18px; margin-bottom: 12px; }

/* ---------- Le village au quotidien ---------- */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.tiles a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 22px; border: 1px solid var(--line); border-radius: 16px; color: var(--ink); text-decoration: none; font-weight: 600; min-height: 82px; }
.tiles a:hover { border-color: var(--green); color: var(--ink); }
.tiles svg { stroke: var(--green); flex-shrink: 0; }

/* ---------- Pages de contenu ---------- */
.article { max-width: 760px; }
.prose { font-size: 17px; line-height: 1.7; color: #2A332D; }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-size: 28px; margin-top: 1.6em; }
.prose h3 { font-size: 22px; margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose blockquote { margin-left: 0; padding-left: 18px; border-left: 3px solid var(--green); color: var(--muted); }
.article-img { border-radius: 24px; overflow: hidden; margin: 28px 0; max-height: 520px; }
.article-img img { width: 100%; max-height: 520px; object-fit: cover; }
.facts { display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--muted); font-size: 15px; }
.facts b { color: var(--ink); }
.attachments { margin-top: 32px; display: flex; flex-direction: column; gap: 10px; }
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.person { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; gap: 14px; align-items: center; background: var(--white); }
.person .ph, .person img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex-shrink: 0; font-size: 11px; }
.person b { display: block; font-weight: 600; }
.person .role { color: var(--green); font-size: 14px; font-weight: 600; }
.person small { display: block; color: var(--muted); font-size: 13px; margin-top: 4px; line-height: 1.4; }
.dir { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.dir-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--white); display: flex; flex-direction: column; }
.dir-card .img { height: 160px; }
.dir-card .body { padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.dir-card h3 { font-size: 20px; }
.dir-card p { color: var(--muted); font-size: 15px; line-height: 1.55; }
.dir-card .c { font-size: 14px; display: flex; flex-direction: column; gap: 4px; margin-top: 4px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin: 24px 0; }
.gallery img { border-radius: 14px; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 40px; padding-top: 40px; padding-bottom: 80px; align-items: start; }
.side-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 14px; background: var(--white); }
.kv { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.kv div { background: var(--sand); border-radius: 14px; padding: 14px; }
.kv small { display: block; font-size: 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.kv b { font-family: var(--display); font-size: 22px; }
.search-results { display: flex; flex-direction: column; gap: 14px; }
.result { display: block; padding: 18px 20px; border: 1px solid var(--line); border-radius: 16px; text-decoration: none; color: var(--ink); }
.result:hover { border-color: var(--green); color: var(--ink); }
.result small { color: var(--green); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.result b { display: block; font-size: 18px; margin: 4px 0; }
.result span { color: var(--muted); font-size: 15px; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--sand); border-top: 1px solid var(--line); font-size: 14px; }
.site-footer .cols { padding-top: 48px; padding-bottom: 24px; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; }
.site-footer .cols > div { display: flex; flex-direction: column; gap: 10px; }
.site-footer .name { font-family: var(--display); font-weight: 700; font-size: 20px; }
.site-footer .h { font-weight: 600; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--ink); text-decoration: underline; }
.site-footer a.admin { color: var(--green); font-weight: 600; }
.site-footer .addr { color: var(--muted); line-height: 1.6; }
.site-footer .legal { padding-top: 16px; padding-bottom: 32px; display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); }
.site-footer .legal a { text-decoration: underline; }
.mfoot { display: none; }

/* ---------- Tablette ---------- */
@media (max-width: 1080px) {
  .main-nav { gap: 4px 18px; }
  .filters { grid-template-columns: 1fr 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
  .pratique-grid { grid-template-columns: 1fr; }
}
@media (max-width: 960px) {
  .site-header .wrap { padding-top: 12px; padding-bottom: 12px; }
  .main-nav, .header-actions .btn, .header-actions .icon-btn.search { display: none; }
  .menu-btn { display: inline-flex; }
  .site-header.open .main-nav { display: flex; flex-direction: column; position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: 1px solid var(--line); padding: 8px 24px 20px; gap: 0; box-shadow: 0 12px 24px rgba(30, 38, 33, .08); }
  .site-header.open .main-nav a { padding: 14px 0; border-bottom: 1px solid var(--line-3); font-size: 17px; }
  .site-header.open .main-nav .mobile-only { display: block; }
  .page-head-split { grid-template-columns: 1fr; }
}
.main-nav .mobile-only { display: none; }

/* ---------- Téléphone (maquette « Accueil — mobile ») ---------- */
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .topbar { display: none; }
  .blason { width: 40px; height: 40px; }
  .brand-name small { display: none; }
  .brand-name b { font-size: 20px; }
  .flash .wrap { padding-top: 10px; padding-bottom: 10px; font-size: 13px; }
  .flash .tag { background: none; border: 0; padding: 0; font-size: 11px; font-weight: 700; letter-spacing: .08em; }
  .flash .more { display: none; }
  .flash-big .wrap { flex-wrap: wrap; gap: 4px; }
  .flash-big .flash-ico, .flash-big .msg { display: none; }
  .flash-big .wrap { position: relative; padding-right: 44px; }
  .flash-big .flash-close { position: absolute; top: 6px; right: 8px; }
  .flash-big .txt { flex-basis: 100%; }
  .flash-big .ttl { font-size: 16px; }
  .flash-big .btn { background: none; border: 0; padding: 0; text-decoration: underline; font-size: 14px; }
  .hero { padding-top: 28px; padding-bottom: 20px; gap: 18px; grid-template-columns: 1fr; }
  .hero h1 { font-size: 34px; }
  .hero p.long { display: none; }
  .hero .short { display: block; font-size: 15px; }
  .hero .cta { display: none; }
  .hero-img { height: 200px; border-radius: 18px; }
  .quick { grid-template-columns: 1fr 1fr; gap: 10px; padding-bottom: 24px; }
  .quick a { padding: 16px; font-size: 14px; min-height: 52px; }
  .quick a svg { display: none; }
  .quick a.desk { display: none; }
  .today-card { display: flex; flex-direction: column; gap: 10px; background: var(--green-soft); border-radius: 18px; padding: 18px; margin-bottom: 28px; }
  .today-card .eyebrow { font-size: 11px; color: var(--green-dark); }
  .today-card b { font-family: var(--display); font-size: 22px; font-weight: 600; }
  .today-card .acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 4px; }
  .today-card .acts .btn { font-size: 14px; padding: 11px; }
  .today-card .acts .btn-light { border-color: var(--white); }
  .sec { padding: 28px 0; }
  .sec-head { margin-bottom: 14px; }
  .sec-head h2 { font-size: 22px; }
  .sec-head p { display: none; }
  .sec-head .eyebrow { font-size: 11px; }
  .sec-head .all { display: none; }
  .mobile-all { display: inline-block !important; margin-top: 16px; font-weight: 600; font-size: 14px; }
  .mairie-ico { width: 36px; height: 36px; border-radius: 10px; }
  .mairie-ico svg { width: 18px; height: 18px; }
  .sec-head .mairie-ico + .t .eyebrow { display: none; }
  .home-news .cards { grid-template-columns: 1fr; gap: 14px; }
  .home-news .card { flex-direction: row; background: transparent; border-radius: 0; gap: 12px; align-items: flex-start; }
  .home-news .card .img { width: 96px; height: 80px; border-radius: 12px; overflow: hidden; flex-shrink: 0; }
  .home-news .card .body { padding: 0; gap: 4px; }
  .home-news .card .meta .pill { background: none; padding: 0; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--brown); }
  .home-news .card .date { font-size: 11px; font-weight: 600; text-transform: uppercase; color: var(--brown); }
  .home-news .card h3 { font-family: 'Inter', sans-serif; font-size: 15px; font-weight: 600; letter-spacing: 0; }
  .home-news .card p { display: none; }
  .home-news .card:nth-child(n+3) { display: none; }
  .home-news .side { display: none; }
  .notices-head { display: none; }
  .notice { padding: 14px 16px; gap: 4px; }
  .notice-ico, .notice .act { display: none; }
  .notice .ttl { font-size: 15px; }
  .notice .inf { font-size: 13px; }
  .home-mairie .notice:nth-child(n+5) { display: none; }
  .home-mairie .mayor { display: none; }
  .home-rando .sec-head h2 { font-size: 22px; }
  .home-rando .sec-head .eyebrow { display: none; }
  .rando-strip { display: flex; overflow-x: auto; gap: 12px; scroll-snap-type: x mandatory; margin-right: -16px; padding-right: 16px; }
  .rando-mini { flex: 0 0 240px; scroll-snap-align: start; }
  .rando-mini .img { height: 150px; }
  .rando-mini b { font-family: 'Inter', sans-serif; font-size: 15px; }
  .home-village { display: none; }
  .page-title { font-size: 34px; }
  .page-head .wrap { padding-top: 28px; padding-bottom: 22px; }
  .tablist { grid-template-columns: 1fr 1fr; gap: 6px; }
  .tab { padding: 14px; }
  .tab b { font-size: 16px; }
  .tab small { display: none; }
  .filters { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .box { padding: 20px; }
  .content-split { padding-top: 24px; }
  .site-footer .cols { display: none; }
  .mfoot { display: flex; flex-direction: column; gap: 8px; padding-top: 24px; padding-bottom: 8px; color: var(--muted); }
  .mfoot b { font-family: var(--display); font-size: 18px; color: var(--ink); }
  .mfoot .soc { display: flex; gap: 16px; }
  .mfoot a { color: var(--green); text-decoration: underline; }
  .mfoot a.admin { font-weight: 600; }
  .site-footer .legal { border-top: 0; padding-top: 8px; }
}
.mobile-all { display: none; }

@media print {
  .topbar, .site-header, .flash, .site-footer, .no-print { display: none !important; }
}
