/* Design « paris » : Paris Best Restaurants.
 * Basé sur design/default.css du modèle commun. Couleurs : crème, encre, bordeaux, or (étoiles). */
:root {
  --bg: #faf6ef;
  --surface: #fffdf9;
  --ink: #1c1714;
  --muted: #6e655b;
  --line: #e8dfd2;
  --accent: #7d1f2c;
  --accent-ink: #ffffff;
  --accent-soft: #f4e4e2;
  --gold: #a87a1f;
  --gold-soft: #f6ecd4;
  --bib: #b4442f;
  --ok: #1f7a4d;
  --error: #b42318;

  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(29, 27, 24, 0.06), 0 8px 24px rgba(29, 27, 24, 0.06);
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
}
/* Chinois : polices du système (Fraunces et Inter n'ont pas de caractères chinois) */
:root:lang(zh) {
  --font-body: "Inter", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  --font-display: "Fraunces", "Songti SC", "Noto Serif SC", "SimSun", Georgia, serif;
}
/* Russe : Fraunces n'a pas de caractères cyrilliques, Georgia les a */
:root:lang(ru) { --font-display: "Fraunces", Georgia, "PT Serif", "Times New Roman", serif; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.0625rem/1.65 var(--font-body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); }
h3 { font-size: 1.25rem; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.sr, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: var(--radius-sm); z-index: 100; }
.skip:focus { top: 8px; }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; border: 0; border-radius: 999px; padding: 0.7em 1.3em; background: var(--accent); color: var(--accent-ink); font: 600 1rem/1.2 var(--font-body); text-decoration: none; cursor: pointer; transition: transform 0.15s, box-shadow 0.15s; }
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn:disabled { opacity: 0.6; cursor: wait; }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn--lg { font-size: 1.1rem; padding: 0.85em 1.6em; }

/* ---------- En-tête ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; margin-right: auto; }
.brand__name { font: 700 1.3rem/1 var(--font-display); }
.nav { display: flex; gap: 4px; }
.nav a { color: var(--ink); text-decoration: none; padding: 8px 12px; border-radius: 999px; font-weight: 500; }
.nav a:hover { background: var(--accent-soft); }
.nav a[aria-current="page"] { background: var(--ink); color: var(--bg); }
.nav-toggle { display: none; }
.lang { position: relative; }
.lang summary { list-style: none; cursor: pointer; padding: 8px 12px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--line); font-weight: 600; font-size: 0.9rem; }
.lang summary::-webkit-details-marker { display: none; }
.lang ul { position: absolute; right: 0; top: calc(100% + 8px); margin: 0; padding: 6px; list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow); min-width: 160px; }
.lang li a { display: block; padding: 8px 12px; border-radius: 6px; color: var(--ink); text-decoration: none; }
.lang li a:hover, .lang li a[aria-current] { background: var(--accent-soft); }

@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; order: 3; width: 44px; height: 44px; align-items: center; justify-content: center; border: 0; background: transparent; cursor: pointer; }
  .nav-toggle__bar, .nav-toggle__bar::before, .nav-toggle__bar::after { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; }
  .nav-toggle__bar::before, .nav-toggle__bar::after { content: ""; position: absolute; left: 0; }
  .nav-toggle__bar::before { top: -7px; }
  .nav-toggle__bar::after { top: 7px; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; padding: 12px var(--gutter) 20px; background: var(--bg); border-bottom: 1px solid var(--line); }
  .js .nav { display: none; }
  .js .nav.is-open { display: flex; }
  html:not(.js) .nav { position: static; padding: 0; border: 0; }
  html:not(.js) .nav-toggle { display: none; }
  .nav a { padding: 12px 14px; }
}

/* ---------- Sections ---------- */
main { min-height: 60vh; }
.section { padding-block: clamp(32px, 6vw, 72px); }
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.section__head h2 { margin: 0; }
.more { font-weight: 600; text-decoration: none; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.8rem; font-weight: 700; color: var(--accent); margin: 0 0 12px; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 62ch; }

.hero { padding-block: clamp(56px, 10vw, 128px) clamp(40px, 7vw, 88px); background: radial-gradient(1200px 400px at 85% -10%, var(--accent-soft), transparent 70%); }
.hero__inner > * { max-width: 880px; }
.hero h1 { font-size: clamp(2.3rem, 1.5rem + 3.6vw, 4.2rem); }

.page-head { padding-block: clamp(28px, 5vw, 56px) clamp(16px, 3vw, 28px); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; padding: 0; list-style: none; font-size: 0.9rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line); }
.crumbs a { color: var(--muted); }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.feature__icon { font-size: 1.8rem; display: block; margin-bottom: 8px; }
.feature p { margin: 0; color: var(--muted); }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 4vw, 40px); box-shadow: var(--shadow); }

/* ---------- Cartes ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform 0.2s, box-shadow 0.2s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card__media img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.card__body { padding: 18px 20px 22px; }
.card__meta { font-size: 0.85rem; color: var(--muted); }
.card__title { margin: 6px 0 8px; font-size: 1.25rem; }
.card__title a { color: var(--ink); text-decoration: none; }
.card__title a::after { content: ""; position: absolute; inset: 0; }
.card { position: relative; }
.card p { margin: 0; color: var(--muted); }

/* ---------- Texte long ---------- */
.prose { padding-bottom: 64px; }
.prose > * { max-width: 720px; }
.prose > * + * { margin-top: 1em; }
.prose h2 { margin-top: 1.8em; }
.prose h3 { margin-top: 1.4em; }
.prose code { background: var(--accent-soft); padding: 0.1em 0.35em; border-radius: 4px; font-size: 0.92em; }
.prose blockquote { margin-inline: 0; padding-left: 18px; border-left: 3px solid var(--accent); color: var(--muted); font-style: italic; }
.prose .meta { color: var(--muted); font-size: 0.95rem; }
.cover img { border-radius: var(--radius); }
.faq { margin-top: 48px; }
.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 600; }

/* ---------- Formulaires ---------- */
.form { display: grid; gap: 14px; max-width: 640px; }
.form--inline { grid-template-columns: 1fr auto; align-items: start; }
.form--inline .form__note, .form--inline .form__status, .form--inline .cf-turnstile { grid-column: 1 / -1; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; }
input[type="email"], input[type="text"], input:not([type]), textarea, select { width: 100%; font: inherit; color: var(--ink); background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 0.7em 0.9em; }
input:focus, textarea:focus, select:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }
.form__note { margin: 0; font-size: 0.85rem; color: var(--muted); }
.form__status { margin: 0; font-weight: 600; }
.form__status.is-ok { color: var(--ok); }
.form__status.is-error { color: var(--error); }
.panel .form { margin-top: 16px; }

/* ---------- Publicité ---------- */
.ad { margin: 32px auto; min-height: var(--ad-min, 280px); text-align: center; }
.ad__label { display: block; font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.ad__preview { display: grid; place-items: center; min-height: calc(var(--ad-min, 280px) - 20px); border: 2px dashed var(--line); border-radius: var(--radius-sm); color: var(--muted); font-size: 0.9rem; }

/* ---------- Pied de page ---------- */
.site-footer { margin-top: 48px; background: var(--ink); color: #d9d4cb; padding-block: 48px 28px; }
.site-footer a { color: #fff; }
.footer-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; }
.footer-brand { font: 700 1.4rem/1.2 var(--font-display); color: #fff; margin-bottom: 8px; }
.site-footer h2 { font-size: 1.1rem; color: #fff; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-links--inline { display: flex; flex-wrap: wrap; gap: 14px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.site-footer input { background: #2b2925; border-color: #3d3a35; color: #fff; }
.site-footer .form__note { color: #a9a39a; }
.site-footer .form__status.is-ok { color: #7fd1a6; }
.site-footer .form__status.is-error { color: #ff9b8f; }
.copy { margin: 36px 0 0; font-size: 0.85rem; color: #a9a39a; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ==========================================================================
   Paris Best Restaurants : composants propres au site
   ========================================================================== */
.site-header .wrap { min-height: 64px; }
.brand__name { font-size: 1.25rem; }
.lang summary { white-space: nowrap; }
@media (max-width: 420px) { .brand__name { font-size: 1.05rem; } .site-header .wrap { gap: 8px; } }
.brand__name em { font-style: italic; color: var(--accent); }
.muted { color: var(--muted); }

/* Accueil */
.hero--home { padding-block: clamp(40px, 7vw, 88px) clamp(36px, 5vw, 64px); position: relative; color: #fff; background: radial-gradient(900px 420px at 90% 0%, rgba(168, 122, 31, 0.35), transparent 70%), linear-gradient(160deg, #2a1418 0%, #1c1714 60%); }
.hero--home .eyebrow { color: #e7c77d; }
.hero--home h1 { color: #fff; }
.hero--home .lead { color: #e9e1d6; }
.hero__stats { display: flex; flex-wrap: wrap; gap: 12px 28px; margin: 28px 0 0; padding: 0; list-style: none; }
.hero__stats li { display: grid; }
.hero__stats strong { font: 700 2rem/1 var(--font-display); color: #fff; }
.hero__stats span { font-size: 0.85rem; color: #cfc5b8; }

.finder { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 10px; margin-top: 32px; padding: 12px; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.16); border-radius: var(--radius); max-width: 880px; }
.finder label { display: grid; gap: 4px; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: #cfc5b8; }
.finder select { background: #fffdf9; border-color: transparent; }
.finder .btn { align-self: end; min-height: 48px; background: #e7c77d; color: #1c1714; }
@media (max-width: 760px) { .finder { grid-template-columns: 1fr; } .finder .btn { justify-content: center; } }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 500; }
a.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip small { color: var(--muted); font-weight: 600; }
.chip--off { color: var(--muted); }

.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.tile { position: relative; display: grid; gap: 4px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); text-decoration: none; transition: transform 0.2s, box-shadow 0.2s; }
.tile:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.tile strong { font: 700 1.2rem/1.2 var(--font-display); }
.tile span { color: var(--muted); font-size: 0.95rem; }
.tile--gold { background: linear-gradient(160deg, var(--gold-soft), var(--surface)); }

/* Distinctions */
.award { display: inline-flex; align-items: center; gap: 6px; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--gold); }
.award__stars { letter-spacing: 0.1em; font-size: 0.95rem; }
.award--bib { color: var(--bib); }
.badge-new { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 0.7rem; letter-spacing: 0.06em; }

/* Cartes restaurant */
.resto-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 18px; }
.resto-card { border-top: 3px solid var(--line); }
.resto-card[data-stars="3"] { border-top-color: var(--gold); }
.resto-card[data-stars="2"] { border-top-color: #c9a35a; }
.resto-card[data-stars="1"] { border-top-color: #dcc595; }
.resto-card[data-bib="1"] { border-top-color: var(--bib); }
.resto-card .card__title { font-size: 1.3rem; }
.resto-card__cuisine { font-size: 0.95rem; }
.resto-card__facts { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px !important; padding-top: 12px; border-top: 1px dashed var(--line); font-size: 0.9rem; font-weight: 600; color: var(--ink) !important; }
.resto-grid .ad { grid-column: 1 / -1; margin: 8px 0; }
.resto-grid [hidden] { display: none; }

/* Filtres de la liste */
.filters { display: none; }
.js .filters { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; align-items: end; margin-bottom: 20px; padding: 16px; }
.filters label { display: grid; gap: 4px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.filters select { padding: 0.55em 0.7em; }
.filters__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin: 0 0 18px; }
.filters__count { margin: 0; font-weight: 600; }
.filters__reset { font: inherit; font-weight: 600; color: var(--accent); background: none; border: 0; padding: 4px 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.filters__empty { padding: 32px; text-align: center; color: var(--muted); }
@media (max-width: 980px) { .js .filters { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .js .filters { gap: 10px; padding: 12px; } .filters label:last-child { grid-column: 1 / -1; } }

/* Pages thématiques */
.intro { max-width: 760px; margin-bottom: 28px; }
.intro p { margin: 0 0 1em; }
.see-also { margin-top: 40px; }
.see-also h2 { font-size: 1.3rem; }

/* Fiche restaurant */
.resto-head .award { margin-bottom: 10px; }
.resto { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; align-items: start; padding-bottom: 48px; }
.resto .prose { padding-bottom: 0; }
.resto .prose > p:first-child { font-size: 1.15rem; }
.resto__side { display: grid; gap: 16px; position: sticky; top: 84px; }
.resto__facts dl { margin: 0; display: grid; }
.resto__facts dt { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-top: 14px; }
.resto__facts dt:first-child { margin-top: 0; }
.resto__facts dd { margin: 2px 0 0; }
.rating { display: none; }
.rating.is-ready { display: block; }
.rating__score { display: flex; align-items: baseline; gap: 10px; margin: 4px 0; }
.rating__score strong { font: 700 2.2rem/1 var(--font-display); }
.rating__stars { position: relative; display: inline-block; font-size: 1.1rem; letter-spacing: 2px; color: var(--line); }
.rating__stars::before { content: "★★★★★"; }
.rating__stars span { position: absolute; inset: 0 auto 0 0; overflow: hidden; white-space: nowrap; color: #e3a008; }
.rating__stars span::before { content: "★★★★★"; }
.rating p { margin: 0; font-size: 0.9rem; color: var(--muted); }
.rating__by { font-size: 0.8rem !important; }
.resto-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
@media (max-width: 900px) {
  .resto { grid-template-columns: 1fr; gap: 24px; }
  .resto__main { display: contents; }
  .resto .prose { order: 1; }
  .resto__side { order: 2; position: static; }
  .resto-links { order: 3; margin-top: 0; }
  .resto .ad { order: 4; margin: 0; }
}

/* FAQ en bloc (accueil, pages thématiques) */
.faq--block { max-width: 820px; }
