/* Rabat Pépites
   An editorial city guide: the PDF's forest green, gold and terracotta,
   Cormorant Garamond for display, DM Sans for everything you read or tap. */

@font-face { font-family: "DM Sans"; font-weight: 400; font-display: swap; src: url(/assets/fonts/dm-sans-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "DM Sans"; font-weight: 500; font-display: swap; src: url(/assets/fonts/dm-sans-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "DM Sans"; font-weight: 600; font-display: swap; src: url(/assets/fonts/dm-sans-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 500; font-display: swap; src: url(/assets/fonts/cormorant-garamond-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 600; font-display: swap; src: url(/assets/fonts/cormorant-garamond-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 600; font-style: italic; font-display: swap; src: url(/assets/fonts/cormorant-garamond-latin-600-italic.woff2) format("woff2"); }

:root {
  --forest: #0f2e26;
  --forest-2: #163b31;
  --forest-ink: #17433b;
  --gold: #c9a45c;
  --gold-soft: rgba(201, 164, 92, .45);
  --terra: #c2613f;
  --terra-ink: #9b4527;
  --terra-fill: #ad4f2e;
  --ivory: #fbf7f0;
  --paper: #fffdf9;
  --sand: #f4ecdf;
  --sand-2: #ebe0cd;
  --line: #e5dbca;
  --ink: #1c2724;
  --body: #34403b;
  --muted: #5b6762;
  --on-dark: #f6f1e6;
  --on-dark-muted: #c9cfc6;

  --serif: "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --r-sm: 8px;
  --r: 14px;
  --r-lg: 22px;
  --shadow: 0 1px 2px rgba(15, 46, 38, .06), 0 8px 24px -12px rgba(15, 46, 38, .18);
  --gutter: 16px;
  --wrap: 1120px;
  --topbar: 96px; /* two rows on phones: logo + search, then the contribution tabs */
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--topbar) + 56px); }
body { margin: 0; background: var(--ivory); color: var(--body); font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: var(--forest-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--terra-ink); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; color: var(--forest); letter-spacing: -.005em; }
p { margin: 0 0 1em; }
img { max-width: 100%; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--terra); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--gold-soft); }

.i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 50; background: var(--forest); color: var(--on-dark); padding: 10px 14px; border-radius: var(--r-sm); }
.skip:focus { left: 8px; }
.muted { color: var(--muted); }
.eyebrow { margin: 0 0 10px; font: 600 11px/1.3 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--terra-ink); }
.wrap, main > .section, main > .chapter, main > .fiche, main > .prose, main > .crumbs, main > .results { max-width: var(--wrap); margin-left: auto; margin-right: auto; }
main { padding: 0 var(--gutter) 64px; }

/* ---------- Top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 20; height: var(--topbar); display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: 56px 40px;
  grid-template-areas: "brand nav" "tabs tabs"; align-items: center; column-gap: 12px;
  padding: 0 var(--gutter); background: rgba(15, 46, 38, .97); color: var(--on-dark); backdrop-filter: saturate(1.2) blur(8px); }
.brand { display: flex; align-items: baseline; color: var(--on-dark); text-decoration: none; font: 600 23px/1 var(--serif); white-space: nowrap; }
.brand:hover { color: var(--on-dark); }
.brand-le, .brand-love { font-style: italic; color: var(--gold); }
.brand-love { margin-left: .26em; }
.brand-sub { margin-left: 10px; font: italic 600 15px var(--serif); color: var(--gold); opacity: .9; }
.topbar-nav { display: flex; align-items: center; gap: 2px; }
.topbar-link { display: inline-flex; align-items: center; min-height: 40px; color: var(--on-dark-muted); text-decoration: none; font: 500 13px var(--sans); padding: 0 8px; border-radius: 999px; }
.topbar-link:hover, .topbar-link[aria-current] { color: var(--on-dark); background: rgba(255, 255, 255, .07); }
.topbar-link-wide { display: none; }
.topbar-search { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--on-dark); }
.topbar-search:hover { color: var(--gold); background: rgba(255, 255, 255, .06); }
.topbar-search .i { width: 22px; height: 22px; }
.brand { grid-area: brand; }
.topbar-nav { grid-area: nav; }
.topbar-tabs { grid-area: tabs; align-self: start; display: flex; gap: 4px; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter) 6px;
  overflow-x: auto; scrollbar-width: none; }
.topbar-tabs::-webkit-scrollbar { display: none; }
.topbar-tab { flex: none; display: inline-flex; align-items: center; min-height: 32px; padding: 0 8px; border-radius: 999px; border: 1px solid var(--gold-soft);
  color: var(--on-dark); text-decoration: none; font: 500 11.5px/1 var(--sans); white-space: nowrap; }
.topbar-tab:hover, .topbar-tab[aria-current] { color: var(--forest); background: var(--gold); border-color: var(--gold); }

/* ---------- Contribution pages (/demander-un-changement/) and the newsletter form (/nouveautes/) ---------- */
.steps { display: grid; gap: 10px; margin: 20px 0 0; padding: 0; list-style: none; }
.steps li { padding: 12px 16px; border-radius: var(--r); background: var(--paper); border: 1px solid var(--line); }
.cta { margin: 28px 0 10px; }
.pill-big { min-height: 56px; padding: 0 26px; font-size: 16px; }
.contrib { display: grid; gap: 18px; margin: 28px 0 0; padding: 22px 20px; border-radius: var(--r-lg); background: var(--paper); border: 1px solid var(--line); }
.field { display: grid; gap: 6px; }
.field label, .check { font: 600 14px/1.35 var(--sans); color: var(--ink); }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field textarea, .field select { width: 100%; min-height: 46px; padding: 10px 14px; border-radius: var(--r); border: 1px solid var(--sand-2);
  background: #fff; font: 16px/1.4 var(--sans); color: var(--ink); }
.field select { appearance: none; padding-right: 34px; }
.select-light::after { border-color: var(--forest); }
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--forest); box-shadow: 0 0 0 2px var(--gold-soft); }
.check { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-weight: 500; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--forest); }
.contrib .pill-call { justify-self: start; }
.form-lead { margin: 0; font: 600 16px/1.4 var(--sans); color: var(--ink); }
.form-hint { margin: 0; font-size: 13.5px; color: var(--muted); }
.form-note { margin: 0; padding: 12px 14px; border-radius: var(--r); background: var(--sand); font-size: 14.5px; color: var(--ink); }
.form-note.is-error { background: #fbeee3; color: #8a3b1e; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.rules { margin: 18px 0 0; padding: 16px 18px; border-radius: var(--r-lg); background: var(--sand); }
.rules p { margin: 0 0 8px; } .rules p:last-child { margin: 0; }

/* ---------- Home cover ---------- */
.cover { margin: 0 calc(-1 * var(--gutter)); padding: 8px var(--gutter) 28px; background: var(--forest); color: var(--on-dark); }
.cover-frame { max-width: 860px; margin: 0 auto; padding: 34px 18px 26px; border: 1px solid var(--gold-soft); text-align: center; }
.cover .eyebrow { color: var(--on-dark-muted); letter-spacing: .24em; }
.cover-title { margin: 6px 0 0; font: 500 clamp(78px, 24vw, 150px)/.86 var(--serif); color: var(--ivory); letter-spacing: -.02em; }
.cover-love { display: block; margin-top: -.12em; font: italic 600 clamp(40px, 12vw, 72px)/1 var(--serif); color: var(--gold); letter-spacing: 0; }
.cover-le { display: block; font: italic 600 clamp(28px, 7vw, 40px)/1 var(--serif); color: var(--gold); letter-spacing: 0; margin-bottom: 4px; }
.cover-sub { margin: 14px 0 0; font: italic 600 clamp(22px, 6vw, 30px)/1.2 var(--serif); color: var(--gold); }
.cover-rule { width: 56px; height: 1px; margin: 20px auto; background: var(--gold); border: 0; }
.cover-tagline { margin: 0 auto 22px; max-width: 30ch; font: 500 clamp(20px, 5.4vw, 26px)/1.3 var(--serif); color: var(--on-dark); }
.cover-stats { margin: 22px 0 0; font: 500 11px/1.5 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--on-dark-muted); }

/* Finder (search) */
.finder { max-width: 640px; margin: 0 auto; text-align: left; scroll-margin-top: calc(var(--topbar) + 12px); }
.finder-field { position: relative; }
.finder-field .i { position: absolute; left: 16px; top: 50%; translate: 0 -50%; width: 22px; height: 22px; color: var(--forest); pointer-events: none; }
.finder-input { width: 100%; height: 56px; padding: 0 16px 0 48px; border: 0; border-radius: 999px; background: var(--paper); color: var(--ink);
  font: 400 17px var(--sans); box-shadow: 0 0 0 1px rgba(201, 164, 92, .55), 0 12px 30px -14px rgba(0, 0, 0, .55); }
.finder-input::placeholder { color: #7b847f; }
.finder-input:focus { outline: none; box-shadow: 0 0 0 2px var(--gold), 0 12px 30px -14px rgba(0, 0, 0, .55); }
.finder-filters { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.select { position: relative; }
.select select { appearance: none; width: 100%; height: 44px; padding: 0 34px 0 14px; border-radius: 999px; border: 1px solid rgba(201, 164, 92, .5);
  background: rgba(255, 255, 255, .06); color: var(--on-dark); font: 500 14px var(--sans); cursor: pointer; }
.select select option { color: var(--ink); background: var(--paper); }
.select::after { content: ""; position: absolute; right: 15px; top: 50%; width: 7px; height: 7px; border-right: 1.5px solid var(--gold); border-bottom: 1.5px solid var(--gold); translate: 0 -70%; rotate: 45deg; pointer-events: none; }
.finder-examples { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 16px 0 0; }
.chip-try { cursor: pointer; padding: 7px 13px; border-radius: 999px; border: 1px solid rgba(201, 164, 92, .45); background: transparent; color: var(--on-dark); font: 500 13px/1.2 var(--sans); min-height: 34px; }
.chip-try:hover { border-color: var(--gold); color: var(--gold); }

/* Search results */
.results { padding-top: 6px; }
.results-status { margin: 22px 0 4px; font: 500 14px var(--sans); color: var(--muted); }
.results-status:empty { margin: 0; }
.results-status strong { color: var(--ink); }
.results:empty { display: none; }
.more { grid-column: 1 / -1; margin: 20px 0 0; text-align: center; }

/* ---------- Sections ---------- */
.section { margin-top: 56px; }
/* The title keeps at least 260px; when the side link does not fit next to it, the link wraps below. */
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 16px; margin-bottom: 18px; }
.section-head > div { flex: 1 1 260px; }
.section-title { margin: 0; font-size: clamp(30px, 7.5vw, 44px); line-height: 1.02; }
.section-link { flex: none; display: inline-flex; align-items: center; gap: 6px; font: 600 14px var(--sans); text-decoration: none; color: var(--forest-ink); }
.section-link .i { width: 16px; height: 16px; }


/* ---------- Les incontournables: top 2 of each category ---------- */
/* position: relative so absolutely positioned children (.sr labels) are clipped by the scroller instead of widening the page. */
/* One card per category, stacked on a phone (full width, so its three addresses fit side by side). */
.podiums { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.podium { position: relative; display: flex; flex-direction: column; padding: 16px 16px 12px; border-radius: var(--r-lg); background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); }
.podium-head { display: flex; align-items: baseline; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--line); text-decoration: none; }
.podium-num { font: 500 30px/1 var(--serif); color: var(--terra-ink); }
.podium-cat { font: 600 20px/1.15 var(--serif); color: var(--forest); }
.podium-head:hover .podium-cat { color: var(--terra-ink); }
/* The three addresses as three equal tiles on one row, at every width: same size, centred,
   no order marks, so nothing reads as a ranking. Names wrap between words only. */
.podium-list { list-style: none; margin: 12px 0 4px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; gap: 6px; }
.podium-list li { display: flex; }
.podium-item { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 3px; padding: 10px 6px; border-radius: var(--r); background: var(--sand); border: 1px solid var(--sand-2); text-align: center; text-decoration: none; color: var(--ink); }
.podium-item:hover { border-color: var(--gold); }
.podium-name { font: 600 14.5px/1.15 var(--serif); color: var(--forest); overflow-wrap: normal; word-break: normal; hyphens: manual; }
.podium-item:hover .podium-name { color: var(--terra-ink); }
.podium-what { font-size: 11px; line-height: 1.2; color: var(--muted); }
.podium-more { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 8px; font: 600 13px var(--sans); color: var(--forest-ink); text-decoration: none; }
.podium-more .i { width: 15px; height: 15px; }

/* Category tiles */
.tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 10px; counter-reset: none; }
.tile { display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: 4px 12px; padding: 14px 16px; min-height: 76px; border-radius: var(--r);
  background: var(--paper); border: 1px solid var(--line); text-decoration: none; color: var(--body); transition: border-color .18s ease, transform .18s ease; }
.tile:hover { border-color: var(--gold); transform: translateY(-1px); color: var(--body); }
.tile-num { grid-row: span 2; font: 500 38px/1 var(--serif); color: var(--terra-ink); }
.tile-name { font: 600 21px/1.12 var(--serif); color: var(--forest); }
.tile-count { grid-row: span 2; font: 600 13px var(--sans); color: var(--muted); }
.tile-subs { font: 400 13px/1.4 var(--sans); color: var(--muted); display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }

/* Neighbourhood index */
.index-list { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 28px; }
.index-list li { break-inside: avoid; }
.index-list a { display: flex; align-items: baseline; gap: 6px; padding: 9px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); font: 600 19px/1.2 var(--serif); }
.index-list a::after { content: ""; flex: 1; order: 1; border-bottom: 1px dotted #c8bda9; translate: 0 -4px; }
.index-list .n { order: 2; font: 500 13px var(--sans); color: var(--muted); }
.index-list a:hover { color: var(--terra-ink); }

/* Legend / how to read */
.legend { display: grid; gap: 18px; padding: 24px 20px; border-radius: var(--r-lg); background: var(--sand); }
.legend-title { margin: 0; font-size: 30px; line-height: 1.05; }
.legend-items { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.legend-items li { display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: start; font-size: 15px; }
.legend-items .badge { margin-top: 2px; justify-self: center; }
.legend-items .i { width: 26px; height: 26px; color: var(--terra-ink); margin: 3px 0 0 6px; }

/* ---------- Chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; }
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 999px; background: var(--sand); color: var(--ink); font: 500 12px/1.2 var(--sans); }
.chip .i { width: 14px; height: 14px; }
.chip-top { background: var(--forest); color: var(--on-dark); }
.chip-top .i { color: var(--gold); }
.chip-old { background: #fbeee3; color: #8a3b1e; }
.chip-new { background: var(--gold-soft); color: var(--forest); }
.chip-cat { background: transparent; border: 1px solid var(--line); color: var(--muted); }

/* ---------- Badge (recommendations) ---------- */
.badge { flex: none; display: inline-grid; place-items: center; min-width: 34px; height: 34px; padding: 0 7px; border-radius: 999px;
  border: 1.5px solid var(--terra); color: var(--terra-ink); background: var(--paper); font: 600 14px/1 var(--sans); font-variant-numeric: tabular-nums; }
.badge-filled { background: var(--terra-fill); border-color: var(--terra-fill); color: #fff; }
.badge-sm { min-width: 28px; height: 28px; font-size: 12.5px; }
.badge-xl { min-width: 76px; height: 76px; font: 500 38px/1 var(--serif); border-width: 2px; }

/* ---------- Buttons ---------- */
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--paper); color: var(--forest); font: 600 14.5px/1 var(--sans); text-decoration: none; cursor: pointer; white-space: nowrap; }
.pill:hover { border-color: var(--forest); color: var(--forest); }
.pill-call { background: var(--forest); border-color: var(--forest); color: var(--on-dark); font-variant-numeric: tabular-nums; }
.pill-call:hover { background: var(--forest-2); color: #fff; }
.pill-call .i { color: var(--gold); width: 18px; height: 18px; }
.link-more { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font: 600 14.5px var(--sans); color: var(--forest-ink); text-decoration: none; }
.link-more .i { width: 17px; height: 17px; transition: translate .15s ease; }
.link-more:hover .i { translate: 3px 0; }

/* ---------- Crumbs ---------- */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 18px 0 0; font: 500 13px var(--sans); color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--terra-ink); }
.crumbs .sep { color: var(--gold); }

/* ---------- Chapter opener (category / sub-category / place) ---------- */
.chapter { padding: 18px 0 18px; border-bottom: 2px solid var(--forest); }
.chapter-row { display: grid; grid-template-columns: auto 1fr; align-items: end; gap: 4px 14px; }
.chapter-num { grid-row: span 2; font: 500 clamp(64px, 18vw, 104px)/.8 var(--serif); color: var(--terra-ink); letter-spacing: -.02em; }
.chapter-title { margin: 0; font-size: clamp(34px, 9vw, 58px); line-height: 1; }
.chapter-count { margin: 0; font: 600 11px/1.5 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.chapter-count strong { font: 600 15px var(--sans); color: var(--ink); letter-spacing: 0; }
.chapter-lead { margin: 16px 0 0; max-width: 62ch; font-size: 15.5px; color: var(--muted); }

/* Sticky rubric tabs */
.tabs { position: sticky; top: var(--topbar); z-index: 10; margin: 0 calc(-1 * var(--gutter)); padding: 10px var(--gutter); background: rgba(251, 247, 240, .96);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; min-height: 36px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--paper); color: var(--ink); font: 500 13px/1.2 var(--sans); text-decoration: none; white-space: nowrap; }
.tab span { color: var(--muted); font-size: 12px; }
.tab:hover, .tab[aria-current="true"] { background: var(--forest); border-color: var(--forest); color: var(--on-dark); }
.tab:hover span, .tab[aria-current="true"] span { color: var(--gold); }

.note { display: flex; gap: 10px; align-items: flex-start; margin: 20px 0; padding: 12px 16px; border-radius: var(--r); background: var(--sand); font-size: 14.5px; color: var(--ink); }
.note .i { color: var(--terra-ink); margin-top: 2px; }

/* Top du top */
.top { margin: 26px 0 8px; padding: 22px 20px 12px; border-radius: var(--r-lg); background: var(--sand); border: 1px solid var(--sand-2); position: relative; }
.top::before { content: ""; position: absolute; inset: 6px; border: 1px solid var(--gold-soft); border-radius: calc(var(--r-lg) - 6px); pointer-events: none; }
.top-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-bottom: 8px; }
.top-title { margin: 0; font: italic 600 28px/1 var(--serif); color: var(--forest); }
.top-sub { font: 600 10.5px/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--terra-ink); }
.top-list { list-style: none; margin: 0; padding: 0; display: grid; position: relative; }
.top-list li + li { border-top: 1px solid var(--sand-2); }
.top-list a { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; padding: 11px 0; text-decoration: none; }
.top-name { font: 600 19px/1.15 var(--serif); color: var(--forest); }
.top-label { display: block; font: 500 12.5px/1.3 var(--sans); color: var(--muted); margin-top: 2px; }

/* Rubric band, as in the PDF */
.rubric { margin-top: 36px; }
.band { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 2px; padding: 12px 16px; border-radius: 0 var(--r) var(--r) 0;
  background: var(--sand); border-left: 3px solid var(--terra); font-size: 24px; line-height: 1.1; }
.band a { color: var(--forest); text-decoration: none; }
.band a:hover { color: var(--terra-ink); }
.band-count { flex: none; font: 600 10.5px var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--terra-ink); }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: 1fr; }
.card { position: relative; padding: 20px 0 16px; border-bottom: 1px solid var(--line); }
.card-head { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: start; }
.card-name { margin: 0; font-size: 24px; line-height: 1.1; }
.card-name a { color: var(--forest); text-decoration: none; }
.card-name a::after { content: ""; position: absolute; inset: 0; } /* whole card is the link target */
.card-name a:hover { color: var(--terra-ink); }
.card-summary { margin: 8px 0 0; font-size: 15px; line-height: 1.55; color: var(--body); }
.card-foot { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin-top: 12px; }
.card-foot .chips { margin: 0; }
.card-actions { display: flex; align-items: center; gap: 4px 14px; margin-left: auto; }
.card .chips, .card .pill, .card .link-more { position: relative; z-index: 1; }

.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 0; margin: 6px 0 0; font: 600 11px/1.6 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.meta > span + span::before { content: ""; display: inline-block; width: 4px; height: 4px; margin: 0 9px; border-radius: 50%; background: var(--gold); vertical-align: middle; translate: 0 -1px; }
.meta-spec { color: var(--terra-ink); }
.meta-period { text-transform: none; letter-spacing: 0; font-weight: 500; font-size: 12px; }

/* ---------- Entry page (fiche) ---------- */
.fiche { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "voice" "aside" "more"; gap: 0; }
.fiche-head { grid-area: head; padding: 14px 0 0; }
.fiche-name { margin: 0; font-size: clamp(40px, 11vw, 64px); line-height: .98; letter-spacing: -.015em; }
.fiche .meta { margin-top: 12px; font-size: 11.5px; }
.score { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 16px; margin-top: 22px; padding: 16px; border-radius: var(--r-lg); background: var(--paper); border: 1px solid var(--line); }
.score p { margin: 0; }
.score-main { font: 600 15.5px/1.35 var(--sans); color: var(--ink); }
.score-sub { margin-top: 4px !important; font-size: 13.5px; color: var(--muted); }
.fiche-voice { grid-area: voice; margin-top: 28px; }
.voice { margin: 0; padding-left: 18px; border-left: 2px solid var(--gold); font: 500 clamp(22px, 6vw, 27px)/1.32 var(--serif); color: var(--ink); }

.fiche-aside { grid-area: aside; margin-top: 30px; }
.info { margin: 0; padding: 6px 0; border-radius: var(--r-lg); background: var(--paper); border: 1px solid var(--line); }
.info-row { display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 14px; padding: 13px 18px; color: var(--ink); text-decoration: none; }
.info-row + .info-row { border-top: 1px solid var(--line); }
.info-row > .i { color: var(--terra-ink); }
.info-row > .i:last-child { width: 16px; height: 16px; color: var(--muted); }
a.info-row:hover { background: var(--sand); color: var(--ink); }
a.info-row:hover > .i:last-child { color: var(--forest); }
.info-label { display: block; font: 600 10.5px/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.info-value { display: block; font-size: 15px; line-height: 1.45; overflow-wrap: anywhere; }
.info-row:first-child { border-radius: var(--r-lg) var(--r-lg) 0 0; }
.info-row:last-child { border-radius: 0 0 var(--r-lg) var(--r-lg); }

/* Action bar: fixed at the bottom on phones, inline on larger screens */
.actionbar { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px;
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); background: rgba(255, 253, 249, .97); border-top: 1px solid var(--line);
  backdrop-filter: blur(10px); box-shadow: 0 -10px 30px -18px rgba(15, 46, 38, .35); }
.act { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 54px; padding: 6px 4px; border-radius: var(--r);
  border: 0; background: transparent; color: var(--forest); font: 600 12px/1.1 var(--sans); text-decoration: none; cursor: pointer; }
.act .i { width: 22px; height: 22px; }
.act:hover { background: var(--sand); color: var(--forest); }
.act-call { background: var(--forest); color: var(--on-dark); }
.act-call .i { color: var(--gold); }
.act-call:hover { background: var(--forest-2); color: #fff; }
body.has-actionbar { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }

.related h2 { margin: 0 0 14px; font-size: 30px; line-height: 1.05; }

.fiche-more { grid-area: more; }
.related { margin-top: 36px; }
.related-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.related-list a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; border-radius: var(--r); background: var(--paper); border: 1px solid var(--line); text-decoration: none; }
.related-list strong { font: 600 19px var(--serif); color: var(--forest); }
.disclaimer { margin-top: 36px; padding: 18px 20px; border-radius: var(--r-lg); background: var(--sand); font-size: 14px; color: var(--ink); }
.disclaimer p:last-child { margin-bottom: 0; }
.disclaimer .health { font-weight: 600; }
.correction { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.correction .i { width: 16px; height: 16px; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 28px; }
.pager a { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: var(--r); border: 1px solid var(--line); background: var(--paper); text-decoration: none; min-height: 72px; }
.pager a:hover { border-color: var(--gold); }
.pager .dir { display: inline-flex; align-items: center; gap: 6px; font: 600 10.5px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.pager .dir .i { width: 14px; height: 14px; }
.pager strong { font: 600 18px/1.15 var(--serif); color: var(--forest); }
.pager .next { text-align: right; align-items: flex-end; grid-column: 2; }

/* ---------- Text pages ---------- */
.prose { max-width: 720px; padding-top: 6px; }
.prose h1 { margin: 10px 0 14px; font-size: clamp(40px, 10vw, 60px); line-height: 1; }
.prose h2 { margin: 34px 0 10px; font-size: 28px; line-height: 1.1; }
.prose .lead { font: 500 22px/1.35 var(--serif); color: var(--ink); }
.prose blockquote { margin: 0; padding: 18px 20px; border-radius: var(--r-lg); background: var(--sand); }
.prose blockquote p:last-child { margin: 0; }
.prose .badge, .prose .chip { vertical-align: middle; margin: 0 4px; }

/* ---------- Footer ---------- */
.footer { padding: 28px var(--gutter) 36px; background: var(--forest); color: var(--on-dark-muted); text-align: center; font-size: 13.5px; }
.footer-frame { max-width: 760px; margin: 0 auto; padding: 30px 18px 22px; border: 1px solid var(--gold-soft); }
.footer a { color: var(--gold); }
.footer p { margin: 0 auto 10px; max-width: 56ch; }
.footer-mark { font: 500 42px/1 var(--serif); color: var(--ivory); margin-bottom: 4px !important; }
.footer-sub { font: italic 600 18px var(--serif); color: var(--gold); margin-bottom: 18px !important; }
.footer-credit { font-size: 15px; color: var(--on-dark); }
.footer-credit strong { font-weight: 600; }
.footer-stats { font: 500 11px var(--sans); letter-spacing: .18em; text-transform: uppercase; }

/* ---------- Les 3 adresses de la semaine: compact, clickable rows ---------- */
.week .section-head { margin-bottom: 10px; }
.section-title-sm { font-size: clamp(24px, 6vw, 30px); }
.week-list { display: grid; grid-template-columns: 1fr; gap: 8px; }
.week-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 10px 12px 10px 14px; min-height: 60px;
  border-radius: var(--r); background: var(--paper); border: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: border-color .15s ease, transform .15s ease; }
.week-item:hover { border-color: var(--gold); transform: translateY(-1px); color: var(--ink); }
.week-num { font: 500 24px/1 var(--serif); color: var(--terra-ink); min-width: 1.4em; }
.week-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.week-name { font: 600 19px/1.15 var(--serif); color: var(--forest); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.week-meta { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.week-cat { font-weight: 600; color: var(--terra-ink); }
.week-go { width: 16px; height: 16px; color: var(--muted); }

/* ---------- Photos ---------- */
.cover { position: relative; isolation: isolate; overflow: hidden; }
.cover-img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.cover::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(15, 46, 38, .72) 0%, rgba(15, 46, 38, .86) 45%, rgba(15, 46, 38, .95) 100%); }
.cover-frame { background: transparent; }

.photo { position: relative; margin: 0; overflow: hidden; border-radius: var(--r-lg); background: var(--sand-2); }
.photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.photo-band { margin: 56px calc(-1 * var(--gutter)) 0; border-radius: 0; height: clamp(220px, 42vw, 440px); }
/* Height, not aspect-ratio + min-height: that pair widens the box past narrow screens. */
.photo-wide { height: clamp(170px, 40vw, 310px); margin: 6px 0 22px; }
.mosaic { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 80%); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
  margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter) 4px; scroll-padding: 0 var(--gutter); scrollbar-width: none; }
.mosaic::-webkit-scrollbar { display: none; }
.mosaic .photo { aspect-ratio: 4 / 3; scroll-snap-align: start; }

/* ---------- Community: group, newsletter, contact ---------- */
.community { display: grid; grid-template-columns: 1fr; gap: 12px; }
.panel { display: flex; flex-direction: column; padding: 22px 20px 20px; border-radius: var(--r-lg); background: var(--paper); border: 1px solid var(--line); scroll-margin-top: calc(var(--topbar) + 16px); }
.panel h3 { margin: 0 0 8px; font-size: 26px; line-height: 1.08; }
.panel p { font-size: 15px; }
.panel-icon { display: grid; place-items: center; width: 44px; height: 44px; margin: 0 0 14px !important; border-radius: 50%; background: var(--sand); color: var(--terra-ink); }
.panel-icon .i { width: 22px; height: 22px; }
.panel-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: auto 0 0 !important; padding-top: 6px; }
.panel-group { background: var(--forest); border-color: var(--forest); color: var(--on-dark-muted); }
.panel-group h3 { color: var(--ivory); }
.panel-group .panel-icon { background: rgba(255, 255, 255, .08); color: var(--gold); }
.panel-group .pill-call { background: var(--ivory); border-color: var(--ivory); color: var(--forest); }
.panel-group .pill-call .i { color: var(--forest); }
.panel-group .pill-call:hover { background: #fff; color: var(--forest); }
.panel-news { background: var(--sand); border-color: var(--sand-2); }
.soon { align-self: flex-start; margin: 0 0 14px !important; padding: 5px 10px; border-radius: 999px; background: var(--terra-fill); color: #fff; font: 600 10.5px/1.2 var(--sans) !important; letter-spacing: .16em; text-transform: uppercase; }
.news-form { display: grid; gap: 8px; margin-top: auto; }
.news-form input { height: 46px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--sand-2); background: var(--paper); font: 15px var(--sans); color: var(--muted); }
.news-form .pill[disabled] { cursor: not-allowed; color: var(--muted); background: transparent; border-color: var(--sand-2); }

/* ---------- Larger screens ---------- */
@media (min-width: 640px) {
  :root { --gutter: 24px; }
  .tiles { grid-template-columns: 1fr 1fr; }
  .index-list { columns: 3; }
  .podiums { grid-template-columns: 1fr 1fr; }
    .legend { grid-template-columns: 1fr 2fr; padding: 32px; }
  .top-list { grid-template-columns: 1fr 1fr; column-gap: 32px; }
  .top-list li + li { border-top: 0; }
  .top-list li { border-bottom: 1px solid var(--sand-2); }
}
@media (min-width: 720px) {
  .topbar-link { font-size: 14px; padding: 0 12px; }
  .topbar-link-wide { display: inline-flex; }
  .cards { grid-template-columns: 1fr 1fr; column-gap: 40px; }
  .actionbar { position: static; grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: repeat(3, 1fr); padding: 0; margin: 0 0 12px; background: none; border: 0; box-shadow: none; backdrop-filter: none; }
  .act { flex-direction: row; gap: 7px; min-height: 48px; border: 1px solid var(--line); background: var(--paper); font-size: 13.5px; }
  .act .i { width: 19px; height: 19px; }
  .act-call { grid-column: 1 / -1; background: var(--forest); border-color: var(--forest); font-size: 15px; min-height: 54px; }
  body.has-actionbar { padding-bottom: 0; }
  .cover-frame { padding: 52px 40px 34px; }
}
@media (min-width: 980px) {
  :root { --topbar: 56px; }
  .topbar { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-rows: 56px; grid-template-areas: "brand tabs nav"; }
  .topbar-tabs { align-self: center; justify-content: flex-end; margin: 0; padding: 0; }
  .topbar-tab { font-size: 13.5px; padding: 0 13px; }
  .tiles { grid-template-columns: 1fr 1fr 1fr; }
  .podiums { grid-template-columns: repeat(3, 1fr); }
  .community { grid-template-columns: repeat(3, 1fr); }
  .week-list { grid-template-columns: repeat(3, 1fr); }
  .mosaic { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: repeat(3, 1fr); overflow: visible; margin: 0; padding: 0; }
  .photo-band { margin-left: 0; margin-right: 0; border-radius: var(--r-lg); }
    .fiche { grid-template-columns: minmax(0, 1.5fr) minmax(320px, 1fr); column-gap: 56px; grid-template-areas: "head aside" "voice aside" "more aside"; align-items: start; }
  .fiche-aside { margin-top: 24px; position: sticky; top: calc(var(--topbar) + 20px); }
}
@media (max-width: 380px) {
  .brand-sub { display: none; }
  .finder-filters { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .brand-sub { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  .topbar, .finder, .actionbar, .pager, .footer, .card-actions, .tabs { display: none !important; }
  body { background: #fff; }
}
.chapter-pin { width: .62em; height: .62em; stroke-width: 1.2; }
.section-tight { margin-top: 28px; }
.thanks { padding: 16px 18px; border-left: 2px solid var(--gold); background: var(--paper); border-radius: 0 var(--r) var(--r) 0; font: 500 20px/1.4 var(--serif); color: var(--ink); }
.footer-photos { margin-top: 18px !important; font-size: 9.5px; line-height: 1.5; color: rgba(201, 207, 198, .55); }
.footer .footer-photos a { color: inherit; text-decoration: none; }
.place-group { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin: 18px 0 0; }
.place-group-name { flex-basis: 100%; font: 600 10.5px var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--terra-ink); }
.place-group a { font: 600 18px var(--serif); color: var(--ink); text-decoration: none; }
.place-group a:hover { color: var(--terra-ink); }
.place-group .n { font: 500 12.5px var(--sans); color: var(--muted); margin-left: 2px; }
.index-list-tight { margin-top: 6px; }
.photo-deco { margin-top: 24px; }
.contact-note { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; padding: 12px 14px; border-radius: var(--r); background: var(--sand); border: 1px solid var(--sand-2);
  font: 600 14.5px/1.3 var(--sans); color: var(--forest); text-decoration: none; }
.contact-note .i { width: 18px; height: 18px; color: var(--terra-ink); }
.contact-note .i:last-child { margin-left: auto; color: var(--forest); }
a.contact-note:hover { border-color: var(--gold); color: var(--forest); }
.card-note { position: relative; z-index: 1; flex-basis: 100%; margin: 4px 0 0; font: 600 13.5px var(--sans); }
.card-note a { color: var(--terra-ink); text-decoration: none; }
.card-note a:hover { text-decoration: underline; }
@media (max-width: 719px) { .fiche .contact-note { margin-top: 0; } }
