/* ==========================================================================
   Portail de ville : feuille de style principale
   Identité « port » : bleu nuit, bleu océan, orange grue, fond sable clair.
   ========================================================================== */

:root {
  --bg: #f6f4ef;
  --surface: #ffffff;
  --surface-2: #efece4;
  --ink: #0e1b2c;
  --ink-2: #33404f;
  --muted: #667180;
  --line: #e2ddd2;
  --brand: #0b5c7a;
  --brand-ink: #083f55;
  --brand-soft: #e3eff3;
  --accent: #e8562a;
  --accent-ink: #b8401c;
  --accent-soft: #fde9e1;
  --ok: #1d7f49;
  --ok-soft: #e2f3e9;
  --closed: #a8433f;
  --warn: #9a6b00;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(14, 27, 44, .06), 0 6px 20px rgba(14, 27, 44, .06);
  --font: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head: "Bricolage Grotesque", "Public Sans", system-ui, sans-serif;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 var(--font); padding-bottom: 64px; }
@media (min-width: 900px) { body { padding-bottom: 0; } }
img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--brand-ink); }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; letter-spacing: -.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(1.9rem, 4.5vw, 2.9rem); font-weight: 800; }
h2 { font-size: clamp(1.3rem, 2.6vw, 1.7rem); font-weight: 700; }
h3 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0 0 .8em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 700px) { .wrap { padding: 0 24px; } }
.narrow { max-width: 760px; }
.narrow-sm { max-width: 460px; margin: 0 auto; padding: 0 16px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 100; border-radius: 8px; }
.skip:focus { left: 8px; }
.mt { margin-top: 1.5rem; }
.nowrap { white-space: nowrap; }
.hide-sm { display: none; }
@media (min-width: 600px) { .hide-sm { display: inline; } }

/* ---------- Boutons, puces, étiquettes ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4em; padding: .7em 1.15em; border-radius: 999px; border: 1.5px solid var(--ink); background: var(--surface); color: var(--ink); font-weight: 600; text-decoration: none; cursor: pointer; line-height: 1.2; transition: background .15s, color .15s, border-color .15s, transform .1s; }
.btn:hover { background: var(--ink); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn-sm { padding: .45em .9em; font-size: .9rem; }
.btn-block { width: 100%; }
.btn-accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-ink); border-color: var(--accent-ink); color: #fff; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--brand); border-color: var(--brand); }
.btn-ghost { border-color: var(--line); background: transparent; }
.btn-ghost:hover { background: var(--surface-2); color: var(--ink); }
.btn-ghost-light { border-color: rgba(255,255,255,.5); background: transparent; color: #fff; }
.btn-ghost-light:hover { background: #fff; color: var(--ink); }
.btn-link { background: none; border: 0; padding: 0; color: var(--brand); font-weight: 600; cursor: pointer; text-decoration: none; }
.btn-link:hover { text-decoration: underline; }
.btn[disabled], fieldset[disabled] .btn { opacity: .5; cursor: not-allowed; }

.chip { display: inline-flex; align-items: center; gap: .4em; padding: .42em .9em; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: .92rem; font-weight: 500; white-space: nowrap; }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip-lg { padding: .6em 1.1em; font-size: 1rem; }
.chip-n { font-size: .78rem; color: var(--muted); font-weight: 600; }
.chip.is-on .chip-n { color: rgba(255,255,255,.7); }
.chip-toggle { position: relative; display: inline-flex; cursor: pointer; }
.chip-toggle input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip-toggle span { padding: .42em .9em; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: .9rem; font-weight: 500; white-space: nowrap; }
.chip-toggle input:checked + span { background: var(--brand); border-color: var(--brand); color: #fff; }
.chip-toggle input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }

.pill { display: inline-block; padding: .15em .6em; border-radius: 999px; background: var(--surface-2); font-size: .78rem; font-weight: 600; color: var(--ink-2); }
.pill-accent { background: var(--accent); color: #fff; }
.pill-ok { background: var(--ok-soft); color: var(--ok); }
.pill-warn { background: #fff3cd; color: var(--warn); }
.kicker { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--brand); margin: 0 0 .3em; }
.kicker a { color: inherit; text-decoration: none; }
.eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--brand); margin-bottom: .6em; }
.fav { display: inline-block; font-size: .8rem; font-weight: 600; color: var(--accent-ink); margin: 0 .5em .2em 0; }
.status { display: inline-block; font-size: .88rem; font-weight: 600; margin: .2em 0 0; }
.status::before { content: ""; display: inline-block; width: .55em; height: .55em; border-radius: 50%; margin-right: .4em; vertical-align: .08em; background: currentColor; }
.status.is-open { color: var(--ok); }
.status.is-closed { color: var(--closed); }
.more { font-weight: 600; text-decoration: none; white-space: nowrap; }
.more:hover { text-decoration: underline; }

.tag { display: inline-block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: .2em .55em; border-radius: 6px; background: var(--brand-soft); color: var(--brand-ink); }
.tag-concert { background: #efe6ff; color: #5a2fa8; }
.tag-expo { background: #e4f2ee; color: #1b6a55; }
.tag-theatre { background: #fde8ec; color: #a22a4a; }
.tag-enfants { background: #fff2cc; color: #8a5a00; }
.tag-marche { background: #eaf4dc; color: #4a6b16; }
.tag-sport { background: #e2eefc; color: #1f4f96; }
.tag-festival { background: var(--accent-soft); color: var(--accent-ink); }
.tag-cancelled { background: #fbe6e4; color: #8a2a26; margin-left: .3rem; }
.is-cancelled a { text-decoration: line-through; color: var(--muted) !important; }

/* ---------- Bandeau du jour et en-tête ---------- */
.topbar { background: var(--ink); color: rgba(255,255,255,.85); font-size: .82rem; }
.topbar-in { display: flex; gap: 1.2em; align-items: center; height: 34px; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.topbar a { color: inherit; text-decoration: none; }
.topbar a:hover { color: #fff; text-decoration: underline; }
.tb-date { font-weight: 700; color: #fff; text-transform: uppercase; letter-spacing: .04em; }
.tb-right { margin-left: auto; }

.header { position: sticky; top: 0; z-index: 50; background: rgba(246, 244, 239, .92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.header-in { display: flex; align-items: center; gap: 1.2rem; height: 64px; }
.logo { font-family: var(--font-head); font-size: 1.45rem; font-weight: 800; text-decoration: none; letter-spacing: -.03em; color: var(--ink); white-space: nowrap; }
.logo-a { color: var(--ink); }
.logo-b { color: var(--brand); font-weight: 500; }
.logo-dot { color: var(--accent); }
.logo-light .logo-a { color: #fff; }
.logo-light .logo-b { color: #8fd0e6; }
.nav { display: none; gap: .3rem; }
.nav a { padding: .5em .8em; border-radius: 999px; color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav a:hover { background: var(--surface-2); color: var(--ink); }
.nav a.is-active { color: var(--ink); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.header-cta { margin-left: auto; display: flex; align-items: center; gap: .8rem; }
.header-cta .btn-link, .header-cta .btn { display: none; }
.burger { width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); display: inline-flex; flex-direction: column; justify-content: center; align-items: center; gap: 4px; cursor: pointer; }
.burger span { width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.mobile-menu { border-top: 1px solid var(--line); background: var(--surface); padding: .5rem 16px 1rem; display: grid; }
.mobile-menu[hidden] { display: none; }
.mobile-menu a { padding: .85em 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 600; }
@media (min-width: 980px) {
  .nav { display: flex; }
  .header-cta .btn-link, .header-cta .btn { display: inline-flex; }
  .burger, .mobile-menu { display: none !important; }
}

.crumbs { display: flex; flex-wrap: wrap; gap: .45em; font-size: .85rem; padding-top: 1rem; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }

.alert { padding: .9rem 1.1rem; border-radius: var(--radius-sm); margin: 1rem 0; font-weight: 500; }
.alert p:last-child { margin: 0; }
.alert-success { background: var(--ok-soft); color: #145c34; }
.alert-error { background: #fbe6e4; color: #8a2a26; }
.alert-info { background: var(--brand-soft); color: var(--brand-ink); }

/* ---------- Sections génériques ---------- */
.section { margin-top: 3rem; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 1.1rem; }
.section-head h2 { margin: 0; }
.section-head p { margin: .2em 0 0; }
.page-head { padding-top: 1.4rem; padding-bottom: 1rem; }
.page-head .lead { max-width: 720px; }
.page-head-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1rem; }
.lead { font-size: 1.12rem; color: var(--ink-2); }
.updated { font-size: .82rem; color: var(--muted); }
.subcats { display: flex; gap: .5rem; overflow-x: auto; padding: .3rem 0 .6rem; scrollbar-width: thin; }
@media (min-width: 900px) { .subcats { flex-wrap: wrap; overflow: visible; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow); }
.empty { background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); padding: 2rem; text-align: center; }
.big-emoji { font-size: 3.2rem; margin: 0; }
.actions { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1rem 0; }
.actions-center { justify-content: center; }

/* ---------- Accueil : héros ---------- */
.hero { padding: 2.2rem 0 1rem; }
.hero-in { display: grid; gap: 2rem; }
@media (min-width: 980px) { .hero-in { grid-template-columns: 1.15fr .85fr; align-items: center; } }
.hero h1 { font-size: clamp(2.5rem, 7vw, 4.4rem); line-height: 1; letter-spacing: -.035em; }
.hero h1 em { font-style: normal; color: var(--brand); position: relative; }
.hero h1 em::after { content: ""; position: absolute; left: 0; right: 0; bottom: .05em; height: .14em; background: var(--accent); border-radius: 4px; opacity: .85; }
.search { display: grid; gap: .6rem; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: .6rem; box-shadow: var(--shadow); margin: 1.3rem 0 1rem; }
.search-field { display: grid; padding: .3rem .7rem; }
.search-field label { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.search-field input, .search-field select { border: 0; background: transparent; padding: .25rem 0; font-size: 1.02rem; outline: none; min-width: 0; }
@media (min-width: 640px) {
  .search { grid-template-columns: 1fr 200px auto; align-items: center; border-radius: 999px; padding: .45rem .45rem .45rem 1rem; }
  .search-where { border-left: 1px solid var(--line); }
  .search .btn { padding: .95em 1.6em; }
}
.search-inline { grid-template-columns: 1fr auto !important; border-radius: 999px; padding: .4rem .4rem .4rem 1.1rem; max-width: 640px; margin: 1rem 0; }
.search-inline input { border: 0; outline: none; background: transparent; font-size: 1.02rem; min-width: 0; }
.center .search-inline { margin-left: auto; margin-right: auto; }
.quick { display: flex; flex-wrap: wrap; gap: .45rem; align-items: center; font-size: .9rem; }
.hero-feature { display: grid; background: var(--surface); border-radius: 24px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); text-decoration: none; color: var(--ink); transition: transform .2s; }
.hero-feature:hover { transform: translateY(-3px); color: var(--ink); }
.hero-feature-img { position: relative; aspect-ratio: 16 / 10; background: linear-gradient(135deg, hsl(var(--h, 200) 55% 35%), hsl(calc(var(--h, 200) + 40) 60% 55%)); }
.hero-feature-img img { width: 100%; height: 100%; object-fit: cover; }
.hero-badge { position: absolute; top: 14px; left: 14px; }
.hero-feature-body { display: grid; gap: .4rem; padding: 1.1rem 1.3rem 1.4rem; }
.hero-feature-body strong { font-family: var(--font-head); font-size: 1.35rem; line-height: 1.2; }

/* ---------- Aujourd'hui ---------- */
.today { margin-top: 2rem; }
.today-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem 1rem; }
.today-head h2 { margin: 0; }
.today-head p { margin: 0; }
.today-grid { display: grid; gap: .8rem; margin-top: 1rem; }
@media (min-width: 760px) { .today-grid { grid-template-columns: repeat(3, 1fr); } }
.today-card { display: grid; gap: .3rem; align-content: start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; text-decoration: none; color: var(--ink); }
.today-card:hover { border-color: var(--brand); color: var(--ink); }
.today-card strong { font-size: 1.08rem; }
.today-big { font-size: 1.6rem !important; font-family: var(--font-head); }
.today-big span { font-size: 1rem; font-family: var(--font); font-weight: 500; color: var(--ink-2); }

/* ---------- Rubriques ---------- */
.cat-grid { display: grid; gap: .7rem; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.cat-card { display: grid; grid-template-columns: auto 1fr auto; gap: .2rem .7rem; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s; }
.cat-card:hover { border-color: var(--ink); transform: translateY(-2px); color: var(--ink); }
.cat-icon { font-size: 1.5rem; grid-row: span 2; width: 2.6rem; height: 2.6rem; display: grid; place-items: center; background: var(--brand-soft); border-radius: 12px; }
.cat-name { font-weight: 700; font-size: 1.05rem; }
.cat-count { font-family: var(--font-head); font-weight: 700; color: var(--brand); }
.cat-subs { grid-column: 2 / 4; font-size: .83rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.dir-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.dir-block { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; }
.dir-head { display: flex; align-items: center; gap: .4em; font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; color: var(--ink); text-decoration: none; margin-bottom: .5rem; }
.dir-head .count { margin-left: auto; color: var(--brand); font-size: 1rem; }
.dir-block ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; }
.dir-block li { display: flex; justify-content: space-between; gap: .5rem; font-size: .95rem; }
.dir-block li a { color: var(--ink-2); text-decoration: none; }
.dir-block li a:hover { color: var(--brand); text-decoration: underline; }

/* ---------- Mag ---------- */
.tabs-inline { display: flex; gap: .45rem; overflow-x: auto; margin-bottom: 1rem; padding-bottom: .2rem; }
.mag-grid { display: grid; gap: 1rem; }
@media (min-width: 760px) { .mag-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1020px) { .mag-grid { grid-template-columns: 1.4fr 1fr 1fr; } .mag-grid .acard-big { grid-row: span 2; } }
.mag-list { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); margin-top: 1rem; }
.acard { display: grid; grid-template-rows: auto 1fr; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink); transition: transform .2s, box-shadow .2s; }
.acard:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: var(--ink); }
.acard-img { display: block; aspect-ratio: 16 / 9; background: linear-gradient(135deg, hsl(var(--h, 200) 45% 32%), hsl(calc(var(--h, 200) + 50) 55% 52%)); position: relative; overflow: hidden; }
.acard-img img { width: 100%; height: 100%; object-fit: cover; }
.acard-ph { position: absolute; inset: auto 12px 10px; color: rgba(255,255,255,.9); font-family: var(--font-head); font-weight: 800; font-size: 1.4rem; letter-spacing: -.02em; }
.acard-body { display: grid; gap: .35rem; align-content: start; padding: .9rem 1rem 1.1rem; }
.acard-title { font-family: var(--font-head); font-size: 1.08rem; line-height: 1.25; }
.acard-big .acard-title { font-size: 1.45rem; }
.acard-big .acard-img { aspect-ratio: 16 / 10; }
.acard-ex { color: var(--ink-2); font-size: .95rem; }
.mag-lead { display: grid; gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; text-decoration: none; color: var(--ink); }
@media (min-width: 860px) { .mag-lead { grid-template-columns: 1.2fr 1fr; } }
.mag-lead .acard-img { aspect-ratio: auto; min-height: 240px; }
.mag-lead-body { display: grid; gap: .6rem; align-content: center; padding: 1.5rem; }
.mag-lead-body strong { font-family: var(--font-head); font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.15; }
.mag-insert { display: grid; gap: .2rem; background: var(--brand-soft); border-radius: var(--radius); padding: 1rem 1.2rem; text-decoration: none; color: var(--ink); margin: .2rem 0; }
.mag-hits { display: flex; flex-wrap: wrap; gap: .4rem 1rem; align-items: baseline; background: var(--brand-soft); padding: .8rem 1rem; border-radius: var(--radius-sm); margin-bottom: 1rem; }

/* ---------- Agenda ---------- */
.ev-strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr); gap: .8rem; overflow-x: auto; padding-bottom: .4rem; scroll-snap-type: x mandatory; }
.ev-card { scroll-snap-align: start; display: grid; gap: .45rem; align-content: start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; text-decoration: none; color: var(--ink); }
.ev-card:hover { border-color: var(--ink); color: var(--ink); }
.ev-card .tag { justify-self: start; }
.ev-date { display: flex; align-items: baseline; gap: .4rem; font-size: .75rem; font-weight: 700; color: var(--muted); letter-spacing: .04em; }
.ev-date strong { font-family: var(--font-head); font-size: 1.8rem; color: var(--ink); }
.ev-date em { font-style: normal; color: var(--accent-ink); margin-left: auto; }
.ev-title { line-height: 1.3; }
.days { display: flex; gap: .4rem; overflow-x: auto; padding: .2rem 0 .6rem; }
.day { display: grid; justify-items: center; min-width: 58px; padding: .5rem .4rem; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-size: .72rem; font-weight: 700; letter-spacing: .05em; }
.day strong { font-family: var(--font-head); font-size: 1.25rem; letter-spacing: 0; }
.day.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }
.shortcuts a { color: var(--ink-2); }
.agenda-day { margin-bottom: 2rem; }
.agenda-day h2 { font-size: 1.25rem; padding-bottom: .5rem; border-bottom: 2px solid var(--ink); }
.agenda-day h2 .muted { font-size: .9rem; font-family: var(--font); font-weight: 500; }
.erow { display: grid; grid-template-columns: 80px 1fr; gap: .3rem 1rem; padding: .9rem 0; border-bottom: 1px solid var(--line); align-items: start; }
.erow h3 { margin: .3rem 0 .15rem; font-size: 1.05rem; }
.erow h3 a { color: var(--ink); text-decoration: none; }
.erow h3 a:hover { color: var(--brand); text-decoration: underline; }
.erow p { margin: 0; }
.erow-img { grid-column: 1; grid-row: 2 / span 2; }
.erow-img img { width: 80px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; background: var(--surface-2); }
.ev-img { width: calc(100% + 2rem); max-width: none; margin: -1rem -1rem .2rem; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius) var(--radius) 0 0; background: var(--surface-2); }
.event-img figcaption { font-size: .78rem; color: var(--muted); padding: .4rem .2rem 0; }
.erow-when { font-weight: 700; font-size: .9rem; color: var(--accent-ink); padding-top: .2rem; }
.erow-price { grid-column: 2; font-size: .9rem; }
.erow-more { display: none; }
@media (min-width: 700px) {
  .erow { grid-template-columns: 110px 1fr auto auto; align-items: center; }
  .erow.has-img { grid-template-columns: 70px 140px 1fr auto auto; }
  .erow-img { grid-column: auto; grid-row: auto; }
  .erow-img img { width: 140px; }
  .erow-price { grid-column: auto; }
  .erow-more { display: inline; font-weight: 600; text-decoration: none; }
}

/* ---------- Newsletter / bandeaux ---------- */
.nl-band { display: grid; gap: 1rem; align-items: center; background: var(--brand); color: #fff; border-radius: 24px; padding: 1.6rem; margin-top: 3rem; background-image: radial-gradient(circle at 100% 0, rgba(255,255,255,.12), transparent 50%); }
.nl-band h2 { margin: 0 0 .3rem; }
.nl-band p { margin: 0; color: rgba(255,255,255,.85); }
@media (min-width: 860px) { .nl-band { grid-template-columns: 1fr 1fr; padding: 2rem 2.4rem; } }
.nl-form { display: flex; flex-wrap: wrap; gap: .5rem; }
.nl-form input[type=email] { flex: 1 1 220px; border: 0; border-radius: 999px; padding: .85em 1.2em; min-width: 0; color: var(--ink); background: #fff; }
.nl-msg { flex-basis: 100%; margin: 0; font-size: .9rem; min-height: 1.2em; }
.pro-band { display: grid; gap: 1.2rem; align-items: center; background: var(--ink); color: #fff; border-radius: 24px; padding: 1.8rem; }
.pro-band h2 { color: #fff; }
.pro-band p { color: rgba(255,255,255,.82); margin: 0; }
.pro-band .eyebrow { color: #8fd0e6; }
.pro-band-cta { display: flex; flex-wrap: wrap; gap: .6rem; }
@media (min-width: 860px) { .pro-band { grid-template-columns: 1fr auto; padding: 2.2rem 2.6rem; } }
.pro-band-soft { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.pro-band-soft h2 { color: var(--ink); }
.pro-band-soft p { color: var(--ink-2); }

/* ---------- Fiches (cartes, lignes) ---------- */
.lcard-grid { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.lcard { display: grid; grid-template-columns: 64px 1fr; gap: .9rem; align-items: start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem; text-decoration: none; color: var(--ink); }
.lcard:hover { border-color: var(--ink); color: var(--ink); }
.lcard-body { display: grid; gap: .1rem; }
.lcard-name { font-size: 1.02rem; line-height: 1.25; }
.thumb { border-radius: 12px; object-fit: cover; background: var(--surface-2); }
.thumb-mono { display: grid; place-items: center; font-family: var(--font-head); font-weight: 800; color: hsl(var(--h) 45% 28%); background: hsl(var(--h) 55% 90%); letter-spacing: -.02em; }
.thumb-card { width: 64px; height: 64px; font-size: 1.25rem; }
.thumb-row { width: 76px; height: 76px; font-size: 1.4rem; }
.thumb-sm { width: 48px; height: 48px; font-size: 1rem; flex: none; }

.filters { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; padding: .8rem 0 1rem; border-bottom: 1px solid var(--line); margin-bottom: .5rem; }
.select-sm { border: 1px solid var(--line); border-radius: 999px; padding: .42em 2em .42em .9em; background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23667180'/%3E%3C/svg%3E") no-repeat right .8em center; appearance: none; font-size: .9rem; font-weight: 500; }
.select-bare { border: 0; background: transparent; font-weight: 600; color: var(--ink); }
.filters-meta { flex-basis: 100%; display: flex; gap: .4rem; align-items: center; font-size: .92rem; color: var(--muted); }
.filters-meta strong { color: var(--ink); }

.results { display: grid; gap: 1.5rem; }
@media (min-width: 1000px) { .results { grid-template-columns: 1fr 420px; align-items: start; } }
.lrow { display: grid; grid-template-columns: 76px 1fr; gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.lrow.is-featured { background: linear-gradient(90deg, var(--accent-soft), transparent 70%); margin: 0 -12px; padding-left: 12px; padding-right: 12px; border-radius: 12px; }
.lrow-name { font-size: 1.2rem; margin: .1rem 0 .3rem; }
.lrow-name a { color: var(--ink); text-decoration: none; }
.lrow-name a:hover { color: var(--brand); text-decoration: underline; }
.lrow .kicker { color: var(--muted); font-weight: 600; letter-spacing: .02em; text-transform: none; font-size: .85rem; }
.lrow-sum { margin: 0 0 .2rem; color: var(--ink-2); }
.lrow .pill-accent { margin-right: .4rem; }
.lrow.is-hl { background: var(--brand-soft); }

.map { width: 100%; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--line); z-index: 1; }
.map-sticky { height: 360px; }
@media (min-width: 1000px) { .map-sticky { position: sticky; top: 84px; height: calc(100vh - 110px); max-height: 720px; } }
.map-small { height: 220px; margin-bottom: .8rem; }
.map-wide { height: 420px; }
.leaflet-popup-content { font: 14px/1.4 var(--font); }
.leaflet-popup-content a { font-weight: 700; }
.pin { width: 26px; height: 26px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--brand); border: 3px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.35); }
.pin.is-open { background: var(--ok); }
.pin.is-closed { background: #7c8794; }
.pin.is-hl { background: var(--accent); }

.pager { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; margin: 1.5rem 0; }
.pager a, .pager span { min-width: 2.4em; padding: .45em .7em; border-radius: 10px; text-align: center; text-decoration: none; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-weight: 600; font-size: .92rem; }
.pager .is-current { background: var(--ink); color: #fff; border-color: var(--ink); }
.pager .gap { border: 0; background: none; }

.seo-text { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; }

/* ---------- Fiche détaillée ---------- */
.listing { display: grid; gap: 2rem; padding-top: 1rem; }
@media (min-width: 980px) { .listing { grid-template-columns: 1fr 360px; align-items: start; } }
.listing-head h1 { margin: .2em 0 .15em; }
.listing-sub { font-size: 1.08rem; color: var(--ink-2); }
.listing-lead { font-size: 1.15rem; color: var(--ink); }
.listing-head .pill-ok { margin-right: .4rem; }
.news-box { background: var(--accent-soft); border-left: 4px solid var(--accent); padding: 1rem 1.2rem; border-radius: 0 12px 12px 0; margin: 1rem 0; }
.news-box p { margin: 0; }
.specs { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 1.2rem 0; }
.specs div { background: var(--surface); padding: .8rem 1rem; }
.specs dt { font-size: .72rem; font-weight: 700; color: var(--muted); letter-spacing: .06em; }
.specs dd { margin: .15rem 0 0; font-weight: 600; }
.block { margin-top: 2rem; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
@media (min-width: 600px) { .block .checks { grid-template-columns: repeat(2, 1fr); } }
.checks li { padding-left: 1.6em; position: relative; }
.checks li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 800; }
.faq details { border-bottom: 1px solid var(--line); padding: .9rem 0; }
.faq summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--brand); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: .6rem 0 0; color: var(--ink-2); }
.clamp { max-height: 9.5em; overflow: hidden; position: relative; }
.clamp.is-clamped::after { content: ""; position: absolute; inset: auto 0 0; height: 3em; background: linear-gradient(transparent, var(--bg)); }
.clamp.is-open { max-height: none; }
.clamp.is-open::after { display: none; }
.gallery { display: grid; gap: .5rem; grid-template-columns: repeat(3, 1fr); margin: 1rem 0; }
.gallery-one { grid-template-columns: 1fr; }
.gallery-item { padding: 0; border: 0; border-radius: 12px; overflow: hidden; cursor: zoom-in; position: relative; aspect-ratio: 4 / 3; background: var(--surface-2); }
.gallery-one .gallery-item { aspect-ratio: 16 / 9; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.credit { position: absolute; right: 6px; bottom: 6px; background: rgba(0,0,0,.55); color: #fff; font-size: .72rem; padding: .1em .45em; border-radius: 6px; }
.socials { display: flex; gap: 1rem; }
.listing-side { display: grid; gap: 1rem; }
@media (min-width: 980px) { .listing-side { position: sticky; top: 84px; } }
.side-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; }
.side-card h2 { font-size: 1.15rem; display: flex; justify-content: space-between; align-items: center; }
.side-card summary { cursor: pointer; font-weight: 600; }
.side-card details[open] summary, .side-card[open] summary { margin-bottom: .8rem; }
.side-pro { display: grid; gap: .3rem; text-decoration: none; color: var(--ink); background: var(--brand-soft); border-color: transparent; }
.side-pro:hover { color: var(--ink); border-color: var(--brand); }
.hours { width: 100%; border-collapse: collapse; font-size: .93rem; }
.hours th { text-align: left; font-weight: 500; padding: .35rem 0; color: var(--ink-2); }
.hours td { text-align: right; padding: .35rem 0; }
.hours tr.is-today th, .hours tr.is-today td { font-weight: 700; color: var(--ink); }
.addr { font-weight: 500; }
.near-grid { display: grid; gap: .7rem; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.near { display: flex; gap: .8rem; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: .8rem; text-decoration: none; color: var(--ink); }
.near > span { display: grid; }
.near:hover { border-color: var(--ink); color: var(--ink); }
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(8, 14, 24, .92); display: grid; place-items: center; padding: 2rem; }
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 88vh; border-radius: 10px; }
.lightbox button { position: absolute; top: 14px; right: 18px; font-size: 2rem; color: #fff; background: none; border: 0; cursor: pointer; }

/* ---------- Articles et guides ---------- */
.article { max-width: 780px; padding-top: 1rem; }
.article-head h1 { font-size: clamp(1.9rem, 4.5vw, 2.7rem); }
.byline { font-size: .9rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; }
.article-img { margin: 1.4rem 0; border-radius: 20px; overflow: hidden; }
.article-img img { width: 100%; }
.prose { font-size: 1.07rem; line-height: 1.7; }
.prose h2 { margin-top: 1.8em; font-size: 1.45rem; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .35em; }
.prose blockquote { margin: 1.5em 0; padding: .5em 1.2em; border-left: 4px solid var(--accent); color: var(--ink-2); }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: .5em; text-align: left; }
.reactions { margin: 2.5rem 0 1rem; padding: 1.2rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.reactions-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.reaction { border: 1px solid var(--line); background: var(--bg); border-radius: 999px; padding: .45em .95em; cursor: pointer; font-weight: 600; font-size: .92rem; }
.reaction.is-on { background: var(--brand-soft); border-color: var(--brand); color: var(--brand-ink); }
.reaction .n { color: var(--muted); }
.comments { margin-top: 2.5rem; }
.comment { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.comment p { margin: 0 0 .3rem; }
.comment-meta { font-size: .9rem; color: var(--muted); }
.comment-reply { margin-left: 1.5rem; padding-left: 1rem; border-left: 3px solid var(--brand-soft); border-bottom: 0; }
.comment-form { margin-top: 1.5rem; }
.reply-banner { background: var(--brand-soft); padding: .5rem .8rem; border-radius: 8px; }
.link-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }

/* ---------- Vivre, météo, marchés, pharmacies ---------- */
.guide-grid { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.guide-card { display: grid; gap: .35rem; align-content: start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; text-decoration: none; color: var(--ink-2); }
.guide-card strong { color: var(--ink); font-size: 1.05rem; }
.guide-card:hover { border-color: var(--ink); color: var(--ink-2); }
.guide-card-tool { background: var(--brand-soft); border-color: transparent; }
.wx-now { display: grid; gap: 1rem; background: linear-gradient(135deg, var(--brand), #10789c); color: #fff; border-radius: 24px; padding: 1.6rem; }
@media (min-width: 860px) { .wx-now { grid-template-columns: auto 1fr; align-items: center; } .wx-rain { grid-column: 1 / -1; } }
.wx-main { display: grid; gap: .2rem; }
.wx-main strong { font-family: var(--font-head); font-size: 3.4rem; line-height: 1; }
.wx-icon { font-size: 2.6rem; }
.wx-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem 1.5rem; margin: 0; }
@media (min-width: 860px) { .wx-facts { grid-template-columns: repeat(4, 1fr); } }
.wx-facts dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; opacity: .8; }
.wx-facts dd { margin: 0; font-weight: 700; }
.wx-rain { margin: 0; background: rgba(255,255,255,.14); padding: .7rem 1rem; border-radius: 12px; }
.wx-hours { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .4rem; }
.wx-h { flex: none; display: grid; justify-items: center; gap: .15rem; min-width: 62px; padding: .7rem .4rem; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; font-size: .88rem; }
.wx-i { font-size: 1.4rem; }
.wx-p { color: var(--brand); font-size: .78rem; font-weight: 600; }
.wx-days { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.wx-d { display: grid; gap: .2rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; }
.wx-t { font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; }
.today-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.2rem; }
.today-box ul { margin: .4rem 0 0; padding-left: 1.2em; }
.mrow { display: flex; justify-content: space-between; gap: 1rem; padding: .9rem 0; border-bottom: 1px solid var(--line); }
.mrow p { margin: 0; }
.mrow-meta { display: grid; justify-items: end; gap: .3rem; font-weight: 700; white-space: nowrap; }
.num-grid { display: grid; gap: .7rem; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); margin: 1.2rem 0; }
.num { display: grid; gap: .1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; text-decoration: none; color: var(--ink); }
.num span { font-size: .72rem; font-weight: 700; letter-spacing: .06em; color: var(--muted); }
.num strong { font-family: var(--font-head); font-size: 1.8rem; color: var(--accent-ink); }
.num small { color: var(--ink-2); }
.num-ok strong { color: var(--ok); font-size: 1.2rem; }
.ph-list { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); margin-bottom: 1.5rem; }
.ph { display: grid; gap: .15rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .8rem 1rem; }
.ph a { text-decoration: none; }
.q-grid { display: grid; gap: .7rem; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.q-card { display: grid; gap: .2rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; text-decoration: none; color: var(--ink-2); }
.q-card strong { color: var(--ink); font-family: var(--font-head); font-size: 1.15rem; }
.q-card:hover { border-color: var(--ink); color: var(--ink-2); }

/* ---------- Formulaires ---------- */
.form-stack { display: grid; gap: 1rem; }
.form-stack label, .wizard label { display: grid; gap: .35rem; font-weight: 600; font-size: .93rem; }
.form-stack input:not([type=checkbox]):not([type=radio]):not([type=file]), .form-stack select, .form-stack textarea,
.wizard input:not([type=checkbox]):not([type=radio]), .wizard select, .wizard textarea {
  width: 100%; border: 1px solid #cfc9bc; border-radius: 10px; padding: .7em .85em; background: #fff; font-weight: 400; min-width: 0;
}
.form-stack input:focus, .form-stack select:focus, .form-stack textarea:focus, .wizard input:focus, .wizard select:focus, .wizard textarea:focus { border-color: var(--brand); outline: 2px solid var(--brand-soft); }
.form-stack textarea { resize: vertical; }
.form-row { display: grid; gap: 1rem; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } .form-row-3 { grid-template-columns: 1fr 1fr 1fr; } }
label.check { display: block !important; position: relative; padding-left: 1.7em; font-weight: 400 !important; }
label.check input { position: absolute; left: 0; top: .25em; margin: 0; }
.check-inline { align-self: end; padding-bottom: .7em; }
.label { font-weight: 700; margin: 1rem 0 .4rem; }
.mono { font-family: ui-monospace, Consolas, monospace; font-size: .85rem; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; margin-bottom: .8rem; padding: 0; }
.premium-fields[disabled] { opacity: .55; }
.faq-edit { display: grid; gap: .4rem; padding: .7rem; background: var(--bg); border-radius: 10px; }
.photo-admin { display: flex; flex-wrap: wrap; gap: .7rem; }
.photo-admin label { width: 130px; font-weight: 400; }
.photo-admin img { width: 130px; height: 95px; object-fit: cover; border-radius: 8px; }

.steps { list-style: none; display: flex; gap: .3rem; padding: 0; margin: 0 0 1.2rem; counter-reset: s; overflow-x: auto; }
.steps li { counter-increment: s; flex: 1; min-width: 92px; font-size: .82rem; font-weight: 600; color: var(--muted); padding-top: .5rem; border-top: 4px solid var(--line); }
.steps li::before { content: counter(s) " "; font-weight: 800; }
.steps li.is-on { color: var(--ink); border-color: var(--accent); }
.steps li.is-done { color: var(--ok); border-color: var(--ok); }
.wizard { display: grid; gap: 1rem; }
.step { display: grid; gap: 1rem; }
.step[hidden], .type-block[hidden] { display: none; }
.type-grid { display: grid; gap: .7rem; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.type-grid-2 { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.type-card { position: relative; display: grid !important; gap: .25rem !important; padding: 1rem 1.1rem; border: 1.5px solid var(--line); border-radius: 14px; cursor: pointer; background: #fff; }
.type-card input { position: absolute; opacity: 0; }
.type-card span { font-weight: 400; color: var(--muted); font-size: .88rem; }
.type-card:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.type-card:has(input:focus-visible) { outline: 3px solid var(--accent); }
.tag-checks { display: flex; flex-wrap: wrap; gap: .45rem; }
.wizard-nav { display: flex; justify-content: space-between; gap: .6rem; padding-top: .5rem; border-top: 1px solid var(--line); }
.wizard-nav [data-next], .wizard-nav [data-submit] { margin-left: auto; }
.hours-editor { display: grid; gap: .4rem; }
.hours-line { display: grid; grid-template-columns: 90px 1fr; gap: .4rem; align-items: center; }
@media (min-width: 640px) { .hours-line { grid-template-columns: 100px 1fr 1fr; } }
.hours-slot { display: flex; align-items: center; gap: .3rem; }
.hours-slot input { padding: .45em .5em !important; }
.hours-line .hours-slot:nth-child(3) { grid-column: 2; }
@media (min-width: 640px) { .hours-line .hours-slot:nth-child(3) { grid-column: auto; } }
.hours-day { font-weight: 600; font-size: .9rem; }

/* ---------- Offres et espace pro ---------- */
.plans { display: grid; gap: 1.2rem; max-width: 900px; margin: 0 auto; }
@media (min-width: 800px) { .plans { grid-template-columns: 1fr 1fr; align-items: start; } }
.plan { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 1.8rem; display: grid; gap: 1rem; }
.plan-hl { border: 2px solid var(--accent); box-shadow: var(--shadow); }
.plan-hl > .pill { position: absolute; top: -12px; left: 1.8rem; }
.price { font-family: var(--font-head); font-size: 2.6rem; font-weight: 800; margin: 0; display: grid; }
.price span { font-family: var(--font); font-size: .92rem; font-weight: 500; color: var(--muted); }
.dash-card { margin-bottom: 1rem; display: grid; gap: 1rem; }
.dash-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
.dash-head h2 { margin: .2rem 0 0; }
.dash-head .actions { margin: 0; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: .6rem; }
.stats div { background: var(--bg); border-radius: 12px; padding: .8rem; display: grid; }
.stats strong { font-family: var(--font-head); font-size: 1.7rem; }
.stats span { color: var(--muted); font-size: .85rem; }
.spark { display: flex; align-items: flex-end; gap: 3px; height: 60px; }
.spark span { flex: 1; background: var(--brand); border-radius: 3px 3px 0 0; min-width: 4px; opacity: .8; }
.upsell { background: var(--accent-soft); border-radius: 12px; padding: 1rem; }
.upsell p { margin: 0 0 .6rem; }

/* ---------- Pied de page, barre mobile, popup ---------- */
.footer { background: var(--ink); color: rgba(255,255,255,.75); margin-top: 4rem; padding: 3rem 0 1.5rem; font-size: .93rem; }
.footer-in { display: grid; gap: 2rem; }
@media (min-width: 800px) { .footer-in { grid-template-columns: 1.5fr 1fr 1fr 1fr; } }
.footer h3 { color: #fff; font-family: var(--font); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; }
.footer a { color: rgba(255,255,255,.75); text-decoration: none; display: block; padding: .2rem 0; }
.footer a:hover { color: #fff; }
.footer .logo { display: inline-block; margin-bottom: .6rem; }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .8rem; margin-top: 2.5rem; padding-top: 1.2rem; border-top: 1px solid rgba(255,255,255,.12); font-size: .8rem; }
.footer-legal a { display: inline; }
.footer-network { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem 1.1rem; margin-top: 2rem; font-size: .88rem; }
.footer-network span { color: rgba(255,255,255,.5); }
.footer-network a { display: inline; color: #fff; }
.tabbar { position: fixed; z-index: 60; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(5, 1fr); background: var(--surface); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.tabbar a { display: grid; justify-items: center; gap: 1px; padding: .45rem 0 .5rem; font-size: .7rem; font-weight: 600; color: var(--muted); text-decoration: none; }
.tabbar a span { font-size: 1.15rem; line-height: 1.2; }
.tabbar a.is-active { color: var(--accent); }
@media (min-width: 900px) { .tabbar { display: none; } }
.nlpop { border: 0; border-radius: 22px; padding: 1.8rem; max-width: 420px; width: calc(100% - 32px); box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.nlpop::backdrop { background: rgba(14, 27, 44, .55); }
.nlpop-title { font-family: var(--font-head); font-size: 1.5rem; font-weight: 800; margin-bottom: .3rem; }
.nlpop-close { position: absolute; top: 10px; right: 14px; border: 0; background: none; font-size: 1.6rem; cursor: pointer; color: var(--muted); }
.nlpop .nl-form input[type=email] { border: 1px solid var(--line); }

/* Lieux pratiques (carburants, bornes, supermarchés, drives) */
.prow { display: flex; gap: 1rem; justify-content: space-between; align-items: flex-start; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.prow.is-best { background: color-mix(in srgb, var(--brand) 6%, transparent); border-radius: 12px; padding: 1rem; border-bottom: 0; margin-bottom: .4rem; }
.prow-main { min-width: 0; }
.prow-name { font-size: 1.05rem; margin: .3rem 0 .15rem; }
.prow-main p { margin: .15rem 0; }
.prow-others { display: flex; flex-wrap: wrap; gap: .2rem .9rem; color: var(--muted); }
.prow-side { display: flex; flex-direction: column; align-items: flex-end; gap: .5rem; flex-shrink: 0; text-align: right; }
.prow-price { font-family: var(--font-head); font-size: 1.5rem; font-weight: 800; margin: 0; line-height: 1.1; }
.prow-price small { display: block; font-family: var(--font); font-size: .72rem; font-weight: 400; color: var(--muted); }
.navbtn { display: inline-flex; align-items: center; gap: .55rem; }
.navbtn .btn { display: inline-flex; align-items: center; gap: .35rem; white-space: nowrap; }
.navbtn-alt { font-size: .8rem; color: var(--muted); }
@media (max-width: 600px) {
  .prow { flex-direction: column; }
  .prow-side { flex-direction: row; align-items: center; justify-content: space-between; width: 100%; text-align: left; }
}

/* Cinéma */
.movies { display: grid; gap: 1.2rem; }
.movie { display: grid; grid-template-columns: 120px 1fr; gap: 1.1rem; padding-bottom: 1.2rem; border-bottom: 1px solid var(--line); }
.movie-full { grid-template-columns: 220px 1fr; border: 0; }
.movie-poster img { width: 100%; border-radius: 10px; display: block; box-shadow: 0 6px 18px rgba(0,0,0,.12); }
.movie-noposter { display: grid; place-items: center; aspect-ratio: 2/3; background: var(--surface-2, #eee); border-radius: 10px; font-size: 2rem; }
.movie-title { font-size: 1.2rem; margin: .3rem 0 .1rem; }
.movie-title a { color: inherit; text-decoration: none; }
.movie-body p { margin: .3rem 0; }
.movie-cinema { margin-top: .7rem; }
.movie-day { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; margin-top: .35rem; }
.movie-dayname { width: 4.2rem; font-size: .82rem; color: var(--muted); }
.showtime { display: inline-block; padding: .2rem .55rem; border: 1px solid var(--line); border-radius: 8px; font-size: .85rem; font-variant-numeric: tabular-nums; text-decoration: none; color: var(--ink); }
a.showtime:hover { border-color: var(--brand); color: var(--brand); }
@media (max-width: 600px) { .movie, .movie-full { grid-template-columns: 90px 1fr; } }

/* Identité du site (variables fournies par app/theme.php) */
h1, h2, h3 { text-transform: var(--head-case, none); }
h1, .hero h1, .logo { font-weight: var(--head-weight, 800); }
.header { background: color-mix(in srgb, var(--header-bg, var(--bg)) 94%, transparent); color: var(--header-ink, var(--ink)); }
.header .logo, .header .logo-a { color: var(--header-ink, var(--ink)); }
.logo { display: inline-flex; align-items: center; gap: .45rem; }
.logo-emblem { flex-shrink: 0; }
.logo-text { white-space: nowrap; }
.header-dark .logo-b { color: color-mix(in srgb, var(--accent) 35%, #fff); }
.header-dark .nav a { color: rgba(255,255,255,.82); }
.header-dark .nav a:hover, .header-dark .nav a.is-active { background: rgba(255,255,255,.14); color: #fff; box-shadow: none; }
.header-dark .btn-link { color: #fff; }
.header-dark .burger span { background: #fff; }
.logo-light .logo-b { color: color-mix(in srgb, var(--brand) 40%, #fff); }
@media (max-width: 420px) { .logo { font-size: 1.15rem; } .logo-emblem { width: 28px; height: 28px; } }
.nav a, .header-cta a { white-space: nowrap; }
@media (max-width: 1180px) { .nav a { padding: .5em .55em; font-size: .9rem; } .header-cta .btn-link { display: none !important; } }
@media (max-width: 1000px) { .header-cta .btn { display: none !important; } }
