@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-display: swap;
  font-weight: 400 900;
  src: url("/fonts/schibsted-grotesk-latin-wght-normal.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: "Schibsted Grotesk";
  font-style: normal;
  font-display: swap;
  font-weight: 400 900;
  src: url("/fonts/schibsted-grotesk-latin-ext-wght-normal.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;
}

:root {
  --paper: #ffffff;
  --surface: #f5f3f0;
  --ink: #26170f;
  --ink-2: #5e4d43;
  --ink-3: #8a7a70;
  --line: #e4dfd9;
  --patisserie: #9c1f3e;
  --boulangerie: #95580f;
  --accent: var(--patisserie);
  --accent-soft: #f7e9ec;
  --wrap: 1180px;
  --font: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.22, .8, .24, 1);
}
.mode-boulangerie { --accent: var(--boulangerie); --accent-soft: #f6eddf; }

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font); font-size: 1rem; line-height: 1.55; color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
ol, ul { list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(var(--wrap), 100% - 48px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 6px; z-index: 100; text-decoration: none; }
.skip:focus { top: 12px; }

/* ── Header ── */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 1.06rem; letter-spacing: -.01em; }
.site-nav { display: flex; gap: 28px; }
.site-nav a { text-decoration: none; font-size: .95rem; color: var(--ink-2); padding: 6px 0; border-bottom: 2px solid transparent; transition: color .2s, border-color .2s; }
.site-nav a:hover { color: var(--ink); border-color: var(--ink); }

/* ── Intro ── */
.intro { padding: 72px 0 40px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 380px); gap: 48px; align-items: end; }
.intro h1 { font-size: clamp(2rem, 4.2vw, 3.25rem); font-weight: 750; line-height: 1.06; letter-spacing: -.028em; max-width: 17ch; }
.intro-text { color: var(--ink-2); font-size: 1.08rem; max-width: 42ch; }

/* ── Switch (élément signature) ── */
.directory { padding-bottom: 96px; }
.switch { position: relative; display: flex; gap: clamp(20px, 5vw, 64px); border-bottom: 1px solid var(--line); margin-bottom: 28px; }
.switch-item {
  display: flex; align-items: flex-start; gap: 10px; background: none; border: 0; cursor: pointer;
  padding: 0 0 14px; color: #d3cac2; transition: color .35s var(--ease);
}
.switch-item:hover { color: var(--ink-3); }
.switch-item.is-active { color: var(--accent); }
.switch-word { font-size: clamp(2.6rem, 8.5vw, 6.5rem); font-weight: 800; line-height: .95; letter-spacing: -.045em; }
.switch-count { font-size: clamp(.9rem, 1.6vw, 1.15rem); font-weight: 600; margin-top: .45em; font-variant-numeric: tabular-nums; }
.switch-bar { position: absolute; bottom: -1px; left: 0; height: 4px; background: var(--accent); transition: transform .55s var(--ease), width .55s var(--ease), background .35s; }

/* Entrée au chargement : un seul mouvement orchestré */
.switch-item { animation: rise .9s var(--ease) both; }
.switch-item + .switch-item { animation-delay: .12s; }
.switch-bar { animation: grow 1s var(--ease) .35s both; }

/* ── Filtres ── */
.filters { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: .82rem; font-weight: 600; color: var(--ink-2); }
.field input, .field select {
  height: 46px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); padding: 0 14px; min-width: 190px;
  transition: border-color .2s;
}
.field-search input { width: min(380px, 80vw); }
.field input:focus, .field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field select { appearance: none; padding-right: 38px; cursor: pointer;
  background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2326170f' stroke-width='1.6' fill='none'/%3E%3C/svg%3E") no-repeat right 14px center; }
.result-count { margin-left: auto; color: var(--ink-3); font-size: .92rem; padding-bottom: 12px; }

/* ── Split liste / carte ── */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 40px; align-items: start; }
.list { border-top: 1px solid var(--line); }
.entry { border-bottom: 1px solid var(--line); padding: 26px 0 26px 20px; position: relative; animation: fade .45s var(--ease) both; }
.entry::before { content: ""; position: absolute; left: 0; top: 26px; bottom: 26px; width: 3px; border-radius: 2px; background: transparent; transition: background .25s; }
.entry.is-selected::before { background: var(--accent); }
.entry-head { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; flex-wrap: wrap; }
.entry h3 { font-size: 1.3rem; font-weight: 700; letter-spacing: -.015em; line-height: 1.2; }
.entry-quartier { font-size: .88rem; color: var(--accent); font-weight: 600; white-space: nowrap; }
.entry-addr { color: var(--ink-2); margin-top: 4px; font-size: .97rem; }
.entry-chef { margin-top: 12px; font-size: .95rem; }
.entry-chef span { color: var(--ink-3); }
.entry-chef.is-unknown strong { font-weight: 400; color: var(--ink-3); }
.entry-desc { margin-top: 8px; color: var(--ink-2); max-width: 64ch; }
.entry-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.entry-tags li { font-size: .8rem; padding: 3px 10px; border-radius: 999px; background: var(--surface); color: var(--ink-2); }
.entry-actions { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 16px; }
.action { display: inline-flex; align-items: center; gap: 6px; font-size: .92rem; font-weight: 600; text-decoration: none; background: none; border: 0; cursor: pointer; padding: 4px 0; color: var(--ink); border-bottom: 1px solid var(--line); transition: border-color .2s, color .2s; }
.action:hover { color: var(--accent); border-color: var(--accent); }
.action svg { flex: none; }
.action-map[aria-pressed="true"] { color: var(--accent); border-color: var(--accent); }

.mapcard { position: sticky; top: 92px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--paper); }
.mapcard-head { padding: 18px 20px; border-bottom: 1px solid var(--line); }
.mapcard-name { font-weight: 700; font-size: 1.05rem; }
.mapcard-addr { color: var(--ink-2); font-size: .92rem; }
.mapframe { position: relative; aspect-ratio: 4 / 4.2; background: var(--surface); }
.mapframe iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; animation: fade .5s ease both; }
.consent { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 14px; padding: 32px; color: var(--ink-2); font-size: .93rem; }
.consent svg { color: var(--accent); }
.consent p { max-width: 30ch; }
.btn { height: 44px; padding: 0 20px; border-radius: 8px; border: 0; background: var(--ink); color: #fff; font-weight: 600; cursor: pointer; transition: background .2s; }
.btn:hover { background: var(--accent); }
.mapcard-link { display: block; padding: 14px 20px; font-size: .92rem; font-weight: 600; text-decoration: none; border-top: 1px solid var(--line); }
.mapcard-link:hover { color: var(--accent); }

.empty { padding: 40px 0; color: var(--ink-2); }
.disclaimer { margin-top: 28px; font-size: .88rem; color: var(--ink-3); max-width: 72ch; }

/* ── Candidater ── */
.guide { background: var(--surface); padding: 96px 0; }
.guide-inner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; }
.guide h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 750; letter-spacing: -.025em; line-height: 1.1; margin-bottom: 18px; }
.guide-aside p { color: var(--ink-2); max-width: 46ch; }
.guide-src { margin-top: 14px; font-size: .85rem; color: var(--ink-3) !important; }
.steps { counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 52px 1fr; column-gap: 8px; padding: 22px 0; border-top: 1px solid var(--line); }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps li::before { content: counter(s); grid-row: span 2; font-size: 1.6rem; font-weight: 800; color: var(--accent); line-height: 1.1; font-variant-numeric: tabular-nums; }
.steps h3 { font-size: 1.08rem; font-weight: 700; }
.steps p { color: var(--ink-2); font-size: .97rem; margin-top: 2px; max-width: 58ch; }

/* ── Footer ── */
.site-footer { background: var(--ink); color: #d9cfc8; padding: 56px 0 64px; font-size: .93rem; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.site-footer .brand { color: #fff; }
.site-footer .brand img { background: #fff; border-radius: 50%; }
.footer-brand p { margin-top: 12px; }
.footer-col h2 { font-size: .93rem; font-weight: 700; color: #fff; margin-bottom: 12px; }
.footer-col li + li { margin-top: 6px; }
.footer-col a { text-decoration: none; }
.footer-col a:hover { text-decoration: underline; color: #fff; }

/* ── Page mentions légales ── */
.legal { padding: 64px 0 96px; }
.legal-inner { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 64px; align-items: start; }
.legal h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 750; letter-spacing: -.028em; line-height: 1.06; margin-bottom: 8px; }
.legal-updated { color: var(--ink-3); font-size: .92rem; margin-bottom: 48px; }
.legal-toc { position: sticky; top: 100px; font-size: .9rem; }
.legal-toc li + li { margin-top: 8px; }
.legal-toc a { text-decoration: none; color: var(--ink-2); }
.legal-toc a:hover { color: var(--ink); text-decoration: underline; }
.legal article { max-width: 70ch; }
.legal section { padding: 28px 0; border-top: 1px solid var(--line); }
.legal h2 { font-size: 1.25rem; font-weight: 700; letter-spacing: -.01em; margin-bottom: 12px; }
.legal p + p, .legal p + ul, .legal ul + p, .legal dl + p { margin-top: 10px; }
.legal p, .legal li, .legal dd { color: var(--ink-2); }
.legal ul { list-style: disc; padding-left: 20px; }
.legal li + li { margin-top: 4px; }
.legal dl { display: grid; grid-template-columns: 160px 1fr; gap: 6px 16px; }
.legal dt { font-weight: 600; }
.legal a { color: var(--ink); }

/* ── Animations ── */
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes grow { from { opacity: 0; } to { opacity: 1; } }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ── Responsive ── */
@media (max-width: 960px) {
  .intro { grid-template-columns: 1fr; gap: 16px; padding-top: 48px; }
  .split { grid-template-columns: 1fr; }
  .mapcard { display: none; }
  .action-map { display: none; }
  .guide-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .legal-inner { grid-template-columns: 1fr; gap: 0; }
  .legal-toc { display: none; }
}
@media (max-width: 600px) {
  .wrap { width: calc(100% - 32px); }
  .site-nav { gap: 16px; }
  .site-nav a { white-space: nowrap; font-size: .9rem; }
  .site-nav a:nth-child(-n+2) { display: none; }
  .brand span { font-size: .98rem; }
  .switch { gap: 18px; }
  .switch-word { font-size: 7vw; letter-spacing: -.035em; }
  .switch-item { gap: 5px; }
  .switch-count { font-size: .78rem; margin-top: .1em; }
  .filters { flex-direction: column; align-items: stretch; }
  .field input, .field select, .field-search input { width: 100%; min-width: 0; }
  .result-count { margin-left: 0; padding: 0; }
  .entry { padding-left: 14px; }
  .legal dl { grid-template-columns: 1fr; }
  .legal dd { margin-bottom: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
