/* Météo des Communes : styles issus de la maquette validée. Polices hébergées localement. */
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("../fonts/bricolage-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: "Bricolage Grotesque"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("../fonts/bricolage-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Atkinson Hyperlegible Next"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("../fonts/atkinson-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: "Atkinson Hyperlegible Next"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("../fonts/atkinson-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; }
:root {
  --bg: #f2f5f8;
  --surface: #ffffff;
  --ink: #142231;
  --muted: #586779;
  --line: #d8e0e9;
  --accent: #1d5ca8;
  --accent-soft: #e3edf9;
  --sun: #e09a1b;
  --moon: #8b9bb3;
  --cloud: #a9b7c6;
  --cloud-dark: #6f7f92;
  --rain: #2f74d0;
  --good: #2f8a57;
  --warn: #c7811a;
  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;
  --step--1: 0.85rem;
  --step-0: 1rem;
  --step-1: 1.2rem;
  --step-2: 1.6rem;
  --step-3: clamp(1.9rem, 4.6vw, 2.9rem);
  --step-temp: clamp(5rem, 17vw, 9rem);
  --head-h: 60px;
  --radius: 14px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c141e; --surface: #132031; --ink: #e5ecf4; --muted: #94a4b7; --line: #233449;
    --accent: #7db1ef; --accent-soft: #1a2f49; --sun: #f0b544; --moon: #c3cee0; --cloud: #c0cbd8;
    --cloud-dark: #8d9bad; --rain: #6ea6ef; --good: #5cc28a; --warn: #e9a443; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0c141e; --surface: #132031; --ink: #e5ecf4; --muted: #94a4b7; --line: #233449;
  --accent: #7db1ef; --accent-soft: #1a2f49; --sun: #f0b544; --moon: #c3cee0; --cloud: #c0cbd8;
  --cloud-dark: #8d9bad; --rain: #6ea6ef; --good: #5cc28a; --warn: #e9a443; color-scheme: dark;
}
* { box-sizing: border-box; }
body { background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: var(--step-0); line-height: 1.55; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--font-display); text-wrap: balance; line-height: 1.1; margin: 0; }
h2 { font-size: var(--step-2); font-weight: 600; letter-spacing: -0.01em; }
h3 { font-size: var(--step-1); font-weight: 600; }
p { margin: 0; }
.wrap { max-width: 1180px; margin-inline: auto; padding-inline: clamp(16px, 4vw, 32px); }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* En-tête */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 16px; min-height: var(--head-h); }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; letter-spacing: -0.02em; flex: none; }
.logo svg { width: 30px; height: 30px; }
.logo span { white-space: nowrap; }
.search { position: relative; flex: 1; max-width: 420px; margin-left: auto; min-width: 0; }
.search input { width: 100%; font: inherit; padding: 9px 14px 9px 38px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.search input::placeholder { color: var(--muted); }
.search .glass { position: absolute; left: 13px; top: 50%; translate: 0 -50%; width: 16px; height: 16px; color: var(--muted); pointer-events: none; }
.sugg { position: absolute; left: 0; right: 0; top: calc(100% + 6px); list-style: none; margin: 0; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 32px rgba(10, 25, 45, 0.16); z-index: 40; max-height: 320px; overflow-y: auto; }
.sugg li { padding: 8px 10px; border-radius: 8px; cursor: pointer; display: flex; justify-content: space-between; gap: 12px; color: var(--ink); }
.sugg li[aria-selected="true"], .sugg li:hover { background: var(--accent-soft); }
.sugg li small { color: var(--muted); }
.sugg .empty { cursor: default; color: var(--muted); }
@media (max-width: 560px) { .logo span { display: none; } }

/* Bandeau ciel */
.sky { position: relative; color: #fff; overflow: hidden; isolation: isolate; background: #24466f; }
.sky canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; display: block; }
.sky::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(6, 18, 38, 0.55) 0%, rgba(6, 18, 38, 0.18) 60%, rgba(6, 18, 38, 0.05) 100%); }
.sky .wrap { padding-block: clamp(22px, 4.5vw, 52px); display: grid; gap: 22px; }
.sky a { color: #fff; }
.crumbs { display: flex; flex-wrap: wrap; gap: 4px 8px; font-size: var(--step--1); list-style: none; padding: 0; margin: 0; }
.crumbs li { display: flex; gap: 8px; align-items: center; }
.crumbs li + li::before { content: "›"; opacity: 0.7; }
.crumbs a { color: inherit; opacity: 0.9; }
.crumbs [aria-current] { opacity: 1; font-weight: 700; }
.sky h1 { font-size: var(--step-3); font-weight: 800; letter-spacing: -0.025em; max-width: 22ch; text-shadow: 0 1px 18px rgba(0, 10, 30, 0.35); }
.sky .lede { font-size: var(--step-1); max-width: 52ch; opacity: 0.95; text-shadow: 0 1px 12px rgba(0, 10, 30, 0.35); }
.now { display: grid; grid-template-columns: minmax(0, auto) minmax(0, 1fr); gap: clamp(18px, 4vw, 56px); align-items: end; }
.now-main { display: flex; align-items: flex-end; gap: 14px; }
.temp-big { font-family: var(--font-display); font-weight: 800; font-size: var(--step-temp); line-height: 0.82; letter-spacing: -0.05em; font-variant-numeric: tabular-nums; text-shadow: 0 2px 30px rgba(0, 10, 30, 0.3); }
.temp-big sup { font-size: 0.42em; vertical-align: top; position: relative; top: 0.1em; font-weight: 600; }
.now-cond { display: grid; gap: 4px; padding-bottom: 6px; }
.now-cond .ic { width: 56px; height: 56px; }
.now-cond strong { font-size: var(--step-1); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 14px 22px; margin: 0; }
.facts div { border-top: 1px solid rgba(255, 255, 255, 0.35); padding-top: 8px; min-width: 0; }
.facts dt { font-size: var(--step--1); opacity: 0.85; }
.facts dd { margin: 0; font-weight: 700; font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.stamp { font-size: var(--step--1); opacity: 0.85; }
.stamp b { background: rgba(255, 255, 255, 0.18); padding: 2px 8px; border-radius: 999px; font-weight: 500; }
@media (max-width: 760px) { .now { grid-template-columns: 1fr; } }

/* Sommaire de page */
.toc { position: sticky; top: calc(env(safe-area-inset-top, 0px) + var(--head-h)); z-index: 20; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.toc .wrap { display: flex; gap: 6px; overflow-x: auto; padding-block: 8px; scrollbar-width: none; }
.toc button { font: inherit; font-size: var(--step--1); border: 1px solid var(--line); background: var(--surface); color: var(--ink); padding: 6px 12px; border-radius: 999px; cursor: pointer; white-space: nowrap; transition: background 0.2s, border-color 0.2s; }
.toc button[aria-current="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* Sections */
main { display: block; }
.sec { padding-block: clamp(28px, 5vw, 48px); border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--head-h) + 56px); }
.sec-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 18px; margin-bottom: 18px; }
.sec-head p { color: var(--muted); max-width: 60ch; }
.bulletin { font-size: var(--step-1); max-width: 64ch; line-height: 1.6; }

/* Heure par heure */
.hscroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.hours { position: relative; width: 1440px; }
.hours svg.curve { display: block; }
.hcells { display: grid; grid-template-columns: repeat(24, 60px); }
.hcell { display: grid; justify-items: center; gap: 4px; padding: 6px 0 12px; font-size: var(--step--1); border-left: 1px solid transparent; }
.hcell.newday { border-left-color: var(--line); }
.hcell .ic { width: 30px; height: 30px; }
.hcell .h { font-weight: 700; }
.rainbar { width: 8px; height: 26px; border-radius: 4px; background: var(--accent-soft); display: flex; align-items: flex-end; overflow: hidden; }
.rainbar i { display: block; width: 100%; background: var(--rain); border-radius: 4px; }
.hcell .p { color: var(--rain); font-variant-numeric: tabular-nums; }

/* 15 jours */
.days { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.days li + li { border-top: 1px solid var(--line); }
.day-row { width: 100%; font: inherit; color: inherit; background: none; border: 0; cursor: pointer; display: grid; grid-template-columns: minmax(0, 8.5rem) 2.4rem 3.4rem 2.4rem minmax(0, 1fr) 2.4rem 1.2rem; align-items: center; gap: 10px; padding: 10px 14px; text-align: left; }
.day-row:hover { background: color-mix(in srgb, var(--accent-soft) 55%, transparent); }
.day-row .ic { width: 34px; height: 34px; }
.day-row .d b { display: block; }
.day-row .d small { color: var(--muted); }
.day-row .p { color: var(--rain); font-size: var(--step--1); font-variant-numeric: tabular-nums; }
.day-row .lo { color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.day-row .hi { font-weight: 700; font-variant-numeric: tabular-nums; }
.track { position: relative; height: 8px; border-radius: 99px; background: var(--accent-soft); }
.track i { position: absolute; top: 0; bottom: 0; border-radius: 99px; }
.chev { width: 14px; height: 14px; color: var(--muted); transition: rotate 0.25s; }
.day-row[aria-expanded="true"] .chev { rotate: 180deg; }
.day-more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.3s ease; }
.day-more > div { overflow: hidden; }
.day-more.open { grid-template-rows: 1fr; }
.day-more dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px 18px; margin: 0; padding: 4px 14px 16px calc(14px + 2.4rem); }
.day-more dt { font-size: var(--step--1); color: var(--muted); }
.day-more dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
@media (max-width: 620px) {
  .day-row { grid-template-columns: minmax(0, 5.6rem) 2rem 2.6rem 2rem minmax(0, 1fr) 2rem 1rem; gap: 6px; padding: 10px; }
  .day-row .d small { display: none; }
  .day-more dl { padding-left: 14px; }
}

/* Climat */
.stripes { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); border-radius: var(--radius); overflow: hidden; }
.stripe { height: 150px; display: flex; flex-direction: column; justify-content: space-between; align-items: center; padding: 10px 2px; font-variant-numeric: tabular-nums; font-size: var(--step--1); }
.stripe b { font-size: 1rem; }
.climate-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 28px; align-items: start; }
@media (max-width: 860px) { .climate-grid { grid-template-columns: 1fr; } }
.tblwrap { overflow-x: auto; }
table.tbl { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; font-size: var(--step--1); }
.tbl th, .tbl td { padding: 8px 6px; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl th:first-child, .tbl td:first-child { text-align: left; }
.tbl thead th { color: var(--muted); font-weight: 500; }
.keyfacts { display: grid; gap: 14px; margin: 0; }
.keyfacts div { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.keyfacts dt { color: var(--muted); }
.keyfacts dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 820px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 0 16px; }
.faq summary { cursor: pointer; padding: 14px 0; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-display); font-size: 1.3rem; line-height: 1; color: var(--accent); transition: rotate 0.25s; }
.faq details[open] summary::after { rotate: 45deg; }
.faq details p { padding-bottom: 16px; color: var(--ink); max-width: 64ch; }

/* Listes de liens */
.near { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 0 28px; list-style: none; margin: 0; padding: 0; }
.near li { border-bottom: 1px solid var(--line); }
.near a { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 10px 0; text-decoration: none; color: var(--ink); }
.near a:hover .nm { text-decoration: underline; }
.near .ic { width: 30px; height: 30px; }
.near .nm { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.near small { display: block; color: var(--muted); font-weight: 400; }
.near .t { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.tag { display: inline-block; font-size: 0.72rem; padding: 1px 7px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); margin-left: 4px; vertical-align: 1px; }

/* Accueil */
.strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(150px, 1fr); gap: 10px; overflow-x: auto; padding-bottom: 6px; }
.city { display: grid; gap: 6px; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); transition: border-color 0.2s, translate 0.2s; }
.city:hover { border-color: var(--accent); translate: 0 -2px; }
.city .ic { width: 38px; height: 38px; }
.city .t { font-family: var(--font-display); font-weight: 800; font-size: 2rem; line-height: 1; font-variant-numeric: tabular-nums; }
.city small { color: var(--muted); }
.regions { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 0 28px; list-style: none; margin: 0; padding: 0; }
.regions li { border-bottom: 1px solid var(--line); padding: 11px 0; display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.regions .soon { color: var(--muted); }
.regions .soon small { font-size: 0.75rem; }
.hero-search { max-width: 560px; margin-left: 0; }
.hero-search input { padding: 14px 18px 14px 44px; font-size: 1.05rem; border: 0; box-shadow: 0 8px 30px rgba(0, 15, 40, 0.25); }
.hero-search .glass { left: 16px; width: 18px; height: 18px; }

/* Département */
.mapwrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.mapwrap svg { display: block; width: 100%; height: auto; }
.mapwrap a text { fill: var(--ink); }
.mapwrap a:hover circle { stroke: var(--ink); stroke-width: 2; }
.two { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 28px; align-items: start; }
@media (max-width: 900px) { .two { grid-template-columns: 1fr; } }
.tbl a { font-weight: 700; }
.tbl .ic { width: 24px; height: 24px; vertical-align: middle; }

/* Pied de page */
footer { padding-block: 36px 90px; color: var(--muted); font-size: var(--step--1); }
footer .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 24px; }
footer h3 { font-size: 1rem; color: var(--ink); margin-bottom: 8px; }
footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
footer .credit { margin-top: 26px; border-top: 1px solid var(--line); padding-top: 16px; max-width: 80ch; }

/* Icônes */
.ic { display: inline-block; flex: none; overflow: visible; }
.ic .rays { transform-origin: 24px 24px; animation: spin 30s linear infinite; }
.ic .drop { animation: fall 1.3s linear infinite; }
.ic .drop:nth-child(2) { animation-delay: 0.42s; }
.ic .drop:nth-child(3) { animation-delay: 0.85s; }
.ic .bolt { animation: flash 3.2s ease-in-out infinite; }
@keyframes spin { to { rotate: 360deg; } }
@keyframes fall { 0% { translate: 0 -3px; opacity: 0; } 25% { opacity: 1; } 100% { translate: -2px 7px; opacity: 0; } }
@keyframes flash { 0%, 86%, 100% { opacity: 1; } 90% { opacity: 0.25; } 94% { opacity: 1; } }

/* Entrée de page */
.enter .temp-big { animation: rise 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.enter .now-cond, .enter .facts { animation: rise 0.9s 0.12s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
@keyframes rise { from { opacity: 0.001; translate: 0 18px; } to { opacity: 1; translate: 0 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.wx-note { background: var(--accent-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; max-width: 64ch; }
.sky .wx-note { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.3); color: #fff; }
.sky .city-line { font-size: var(--step-1); opacity: .95; }
.ic .flake { fill: #fff; }
.sugg a { display: flex; justify-content: space-between; gap: 12px; width: 100%; color: inherit; text-decoration: none; }
.notfound { padding-block: 60px; max-width: 60ch; }
.notfound h1 { font-size: var(--step-3); margin-bottom: 12px; }
.lang { flex: none; font-weight: 700; font-size: var(--step--1); text-decoration: none; color: var(--ink); border: 1px solid var(--line); border-radius: 999px; padding: 5px 11px; background: var(--surface); }
.lang:hover { border-color: var(--accent); }

.langs { display: inline-flex; flex: none; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--surface); }
.langs .lang { border: 0; border-radius: 0; padding: 5px 11px; background: transparent; }
.langs .lang + .lang { border-left: 1px solid var(--line); }
.langs .lang.on { background: var(--ink); color: var(--bg); cursor: default; }

/* Catégories : cartes (pays, régions) et pastilles (départements, communes) */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 12px; list-style: none; margin: 0; padding: 0; }
.cards.lg { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 14px; }
.card { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); text-decoration: none; transition: border-color .2s, translate .2s, box-shadow .2s; }
.card:hover, .card:focus-visible { border-color: var(--accent); translate: 0 -2px; box-shadow: 0 10px 26px rgba(10, 25, 45, .1); }
.card-t { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1.08rem; line-height: 1.2; text-wrap: balance; }
.card-s { display: block; margin-top: 3px; color: var(--muted); font-size: var(--step--1); }
.card .go { width: 18px; height: 18px; flex: none; color: var(--accent); transition: translate .2s; }
.card:hover .go { translate: 3px 0; }
.cards.lg .card { padding: 20px 22px; }
.cards.lg .card-t { font-size: 1.4rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.chips a { display: inline-flex; align-items: baseline; gap: 7px; padding: 7px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; color: var(--ink); font-size: .95rem; text-decoration: none; transition: background .15s, border-color .15s; }
.chips a:hover, .chips a:focus-visible { background: var(--accent-soft); border-color: var(--accent); }
.chips small { color: var(--muted); font-variant-numeric: tabular-nums; font-size: .78rem; }
.az { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.az a { min-width: 34px; text-align: center; padding: 5px 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; color: var(--ink); font-weight: 700; font-size: var(--step--1); text-decoration: none; }
.az a:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.az-h { margin: 22px 0 10px; padding-bottom: 6px; border-bottom: 2px solid var(--accent-soft); color: var(--accent); font-size: 1.25rem; scroll-margin-top: calc(var(--head-h) + 16px); }
.sec-head h2 { position: relative; }

/* =====================================================================
   Identité visuelle : verre dépoli sur ciel, soleil en accent, drapeaux ronds
   Échelle d'espacement 4/8 px, durées 150-300 ms, cibles tactiles >= 40 px
   ===================================================================== */
:root {
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --glass: color-mix(in srgb, var(--surface) 80%, transparent);
  --shadow-1: 0 1px 2px rgba(10, 25, 45, 0.06), 0 6px 18px rgba(10, 25, 45, 0.06);
  --shadow-2: 0 2px 4px rgba(10, 25, 45, 0.06), 0 16px 36px rgba(10, 25, 45, 0.14);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.4), 0 6px 18px rgba(0, 0, 0, 0.3); --shadow-2: 0 2px 4px rgba(0, 0, 0, 0.4), 0 16px 36px rgba(0, 0, 0, 0.5); }
}
.skip { position: absolute; left: 12px; top: -64px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: var(--ink); color: var(--bg); font-weight: 700; text-decoration: none; transition: top 0.2s var(--ease); }
.skip:focus { top: 10px; }

/* Drapeaux ronds (décoratifs : le nom du pays est toujours écrit à côté) */
.flag { flex: none; border-radius: 50%; object-fit: cover; background: var(--accent-soft); box-shadow: 0 0 0 1px var(--line); }
.flag.md { width: 40px; height: 40px; box-shadow: 0 0 0 2px var(--surface), 0 0 0 3px var(--line), 0 4px 10px rgba(10, 25, 45, 0.16); }
.flag.lg { width: 56px; height: 56px; box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.6), 0 8px 22px rgba(0, 10, 30, 0.35); }
.flag.sm { width: 20px; height: 20px; }
.flag.xs { width: 16px; height: 16px; margin-right: 8px; vertical-align: -3px; }
.hero-title { display: flex; align-items: center; gap: 16px; }
.hero-title h1 { margin: 0; }

/* Titres de section : une barre ciel/soleil, signature du site */
.sec-head h2::before { content: ""; display: inline-block; width: 6px; height: 0.85em; margin-right: 12px; border-radius: 3px; background: linear-gradient(180deg, var(--sun), var(--accent)); vertical-align: -0.08em; }

/* Cartes de catégories : verre dépoli, relief doux, flèche animée */
.card { position: relative; isolation: isolate; display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 14px 18px; background: var(--glass); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-1); transition: translate 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.2s; }
.card::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: linear-gradient(115deg, color-mix(in srgb, var(--accent) 12%, transparent), transparent 60%); opacity: 0; transition: opacity 0.25s; }
.card:hover, .card:focus-visible { translate: 0 -3px; box-shadow: var(--shadow-2); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.card:hover::before, .card:focus-visible::before { opacity: 1; }
.card:active { translate: 0 -1px; }
.card-body { flex: 1; min-width: 0; }
.card .go { margin-left: auto; width: 20px; height: 20px; }
.card-country { padding: 18px 20px; }
.cards.lg .card-t { font-size: 1.35rem; }
.pin { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); }
.pin svg { width: 20px; height: 20px; }

/* Pastilles et index alphabétique : cibles de 40 px */
.chips a { min-height: 40px; align-items: center; }
.chips a:hover { translate: 0 -1px; }
.az a { min-width: 40px; min-height: 40px; display: inline-grid; place-items: center; }

/* Recherche : drapeau dans les suggestions, relief du champ */
.sugg a .sg-name { display: inline-flex; align-items: center; gap: 10px; }
.sugg li { min-height: 44px; align-items: center; }
.hero-search input { box-shadow: 0 10px 34px rgba(0, 15, 40, 0.28); transition: box-shadow 0.2s; }
.hero-search input:focus-visible { box-shadow: 0 0 0 3px color-mix(in srgb, var(--sun) 70%, transparent), 0 10px 34px rgba(0, 15, 40, 0.28); outline: none; }

/* Villes du moment : même langage que les cartes */
.city { border-radius: 18px; box-shadow: var(--shadow-1); background: var(--glass); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: translate 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.2s; }
.city:hover { box-shadow: var(--shadow-2); }
.strip { scroll-snap-type: x proximity; scroll-padding-inline: 4px; }
.strip .city { scroll-snap-align: start; }

/* Sélecteur de langue et pied de page */
.langs .lang { min-height: 36px; display: inline-flex; align-items: center; }
footer a { text-underline-offset: 3px; }
footer li a { display: inline-flex; align-items: center; min-height: 28px; }
@media (max-width: 560px) {
  .hero-title { gap: 12px; }
  .flag.lg { width: 44px; height: 44px; }
  .card-country { padding: 14px 16px; }
  .cards.lg .card-t { font-size: 1.2rem; }
}
