/* ============================================================
   SIGNATURE COSTA BLANCA — Design System
   Premium editorial gastronomy guide · 2026
   Palette: noir, blanc cassé, or, blanc
   ============================================================ */

:root {
  /* Colors */
  --ink: #14213a;          /* bleu nuit (marque) */
  --ink-soft: #1c2b4a;
  --navy: #14213a;
  --paper: #f7f4ee;        /* blanc cassé */
  --paper-2: #efeae0;
  --white: #ffffff;
  --gold: #b8985a;         /* or sobre */
  --gold-soft: #cbb27e;
  --gold-deep: #93763f;
  --line: rgba(14,14,15,.12);
  --line-light: rgba(255,255,255,.16);
  --muted: #6b675f;
  --muted-light: rgba(247,244,238,.62);

  /* Type */
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;

  /* Space & motion */
  --wrap: 1560px;
  --radius: 4px;
  --ease: cubic-bezier(.22,.61,.36,1);
  --shadow: 0 24px 60px -28px rgba(14,14,15,.35);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-weight: 300;
  letter-spacing: .01em;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* Typography */
h1,h2,h3,h4 { font-family: var(--serif); font-weight: 500; line-height: 1.08; letter-spacing: -.01em; }
.display { font-size: clamp(2.8rem, 7vw, 6.2rem); font-weight: 500; }
.eyebrow {
  font-family: var(--sans); font-size: .72rem; font-weight: 500;
  letter-spacing: .32em; text-transform: uppercase; color: var(--gold-deep);
}
.eyebrow.on-dark { color: var(--gold-soft); }
.lead { font-size: 1.15rem; color: var(--muted); font-weight: 300; max-width: 60ch; }

.wrap { width: min(100% - 3rem, var(--wrap)); margin-inline: auto; }
.section { padding: clamp(4rem, 9vw, 8rem) 0; }
section { position: relative; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .95rem 1.9rem; font-size: .78rem; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase;
  border-radius: 100px; transition: all .4s var(--ease);
}
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--gold-deep); color: var(--white); transform: translateY(-2px); }
.btn-ghost { border: 1px solid var(--line); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-ghost.on-dark { border-color: var(--line-light); color: var(--paper); }
.btn-ghost.on-dark:hover { background: var(--gold); color: var(--ink); border-color: var(--gold); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.5rem clamp(1.5rem, 4vw, 3rem);
  transition: background .5s var(--ease), padding .4s var(--ease), box-shadow .4s var(--ease);
}
.site-header.scrolled {
  background: rgba(247,244,238,.9); backdrop-filter: blur(14px);
  padding-block: 1rem; box-shadow: 0 1px 0 var(--line);
}
.brand { display: flex; flex-direction: column; line-height: 1; }
.brand b { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; letter-spacing: .04em; }
.brand span { font-size: .58rem; letter-spacing: .42em; text-transform: uppercase; color: var(--gold-deep); margin-top: 3px; }
.site-header.on-hero:not(.scrolled) .brand b { color: var(--paper); }
.site-header.on-hero:not(.scrolled) .brand span { color: var(--gold-soft); }

.nav { display: flex; align-items: center; gap: 2.2rem; }
.nav a { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 400; position: relative; }
.nav a::after { content:""; position:absolute; left:0; bottom:-5px; width:0; height:1px; background: var(--gold); transition: width .4s var(--ease); }
.nav a:hover::after { width: 100%; }
.site-header.on-hero:not(.scrolled) .nav a { color: var(--paper); }

.header-tools { display: flex; align-items: center; gap: 1rem; }
.lang-switch { position: relative; }
.lang-btn {
  display: flex; align-items: center; gap: .4rem; font-size: .78rem;
  letter-spacing: .1em; text-transform: uppercase; padding: .4rem .2rem; color: inherit;
}
.site-header.on-hero:not(.scrolled) .lang-btn { color: var(--paper); }
.lang-menu {
  position: absolute; right: 0; top: 130%; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  min-width: 160px; padding: .4rem; opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: all .3s var(--ease); z-index: 20;
}
.lang-switch.open .lang-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-menu button {
  display: flex; align-items: center; gap: .7rem; width: 100%; text-align: left;
  padding: .6rem .8rem; font-size: .85rem; border-radius: 3px; color: var(--ink);
}
.lang-menu button:hover, .lang-menu button.active { background: var(--paper-2); }
.lang-menu .flag { font-size: 1.1rem; }
.icon-btn { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; transition: background .3s; }
.icon-btn:hover { background: rgba(14,14,15,.06); }
.site-header.on-hero:not(.scrolled) .icon-btn { color: var(--paper); }
.site-header.on-hero:not(.scrolled) .icon-btn:hover { background: rgba(255,255,255,.12); }
.burger { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: grid; align-items: end; color: var(--paper); overflow: hidden; }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; animation: slowzoom 18s var(--ease) forwards; }
@keyframes slowzoom { from { transform: scale(1.12); } to { transform: scale(1); } }
.hero::after { content:""; position:absolute; inset:0; z-index:-1;
  background: linear-gradient(180deg, rgba(14,14,15,.35) 0%, rgba(14,14,15,.05) 35%, rgba(14,14,15,.75) 100%); }
.hero-inner { padding-bottom: clamp(3rem, 8vw, 7rem); }
.hero h1 { color: var(--paper); max-width: 16ch; }
.hero .lead { color: var(--muted-light); margin-top: 1.5rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.5rem; }
.scroll-hint { position: absolute; left: 50%; bottom: 2rem; transform: translateX(-50%);
  font-size: .68rem; letter-spacing: .3em; text-transform: uppercase; color: var(--muted-light);
  display: flex; flex-direction: column; align-items: center; gap: .6rem; }
.scroll-hint::after { content:""; width:1px; height:40px; background: var(--gold-soft); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:.3;transform:scaleY(.6)} 50%{opacity:1;transform:scaleY(1)} }

/* ---------- Section head ---------- */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; margin-bottom: 3rem; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(2rem, 4.5vw, 3.4rem); }
.section-head .eyebrow { display: block; margin-bottom: 1rem; }
.section-head p { color: var(--muted); max-width: 42ch; }

/* ---------- Cards / restaurant grid ---------- */
.grid { display: grid; gap: 1.6rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card { position: relative; background: var(--white); border-radius: var(--radius); overflow: hidden;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card-media { position: relative; aspect-ratio: 4/3.2; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.card:hover .card-media img { transform: scale(1.06); }
.card-body { padding: 1.4rem 1.5rem 1.7rem; }
.card-body h3 { font-size: 1.55rem; margin-bottom: .2rem; }
.card-meta { display: flex; align-items: center; gap: .5rem; font-size: .78rem; color: var(--muted);
  text-transform: uppercase; letter-spacing: .08em; }
.card-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--gold); }
.card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 1.1rem;
  padding-top: 1.1rem; border-top: 1px solid var(--line); }
.price { color: var(--gold-deep); font-weight: 500; letter-spacing: .05em; }
.price .off { opacity: .3; }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .9rem; }
.tag { font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
  border: 1px solid var(--line); border-radius: 100px; padding: .28rem .7rem; }

/* Premium badge & featured */
.badge-premium {
  position: absolute; top: 1rem; left: 1rem; z-index: 3;
  display: inline-flex; align-items: center; gap: .4rem;
  background: rgba(14,14,15,.82); color: var(--gold-soft); backdrop-filter: blur(6px);
  font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 500;
  padding: .45rem .8rem; border-radius: 100px; border: 1px solid rgba(203,178,126,.4);
}
.badge-premium svg { width: 11px; height: 11px; }
.fav-btn { position: absolute; top: 1rem; right: 1rem; z-index: 3;
  width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.85);
  backdrop-filter: blur(6px); display: grid; place-items: center; transition: all .3s; }
.fav-btn:hover { background: var(--white); transform: scale(1.08); }
.fav-btn svg { width: 18px; height: 18px; stroke: var(--ink); fill: none; transition: all .3s; }
.fav-btn.active svg { fill: var(--gold); stroke: var(--gold); }

/* Editorial feature card (large) */
.feature { display: grid; grid-template-columns: 1.15fr 1fr; background: var(--ink); color: var(--paper);
  border-radius: var(--radius); overflow: hidden; }
.feature .card-media { aspect-ratio: auto; height: 100%; min-height: 420px; }
.feature-body { padding: clamp(2rem,4vw,3.5rem); display: flex; flex-direction: column; justify-content: center; }
.feature-body h3 { font-size: clamp(2rem,3.5vw,3rem); color: var(--paper); margin: .8rem 0 1rem; }
.feature-body p { color: var(--muted-light); margin-bottom: 1.6rem; }
.free-card { border: 1px solid var(--line); background: transparent; }
.free-card .card-body { padding-block: 1.6rem; }
.free-card h3 { font-size: 1.3rem; }
.claim-link { color: var(--gold-deep); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 500;
  display: inline-flex; align-items: center; gap: .4rem; }

/* ---------- Cities strip ---------- */
.city-card { position: relative; aspect-ratio: 3/4; border-radius: var(--radius); overflow: hidden; color: var(--paper);
  display: flex; align-items: flex-end; }
.city-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.city-card::after { content:""; position:absolute; inset:0; background: linear-gradient(180deg, transparent 40%, rgba(14,14,15,.8)); }
.city-card:hover img { transform: scale(1.07); }
.city-card-body { position: relative; z-index: 2; padding: 1.6rem; }
.city-card-body h3 { font-size: 1.8rem; color: var(--paper); }
.city-card-body span { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-soft); }

/* ---------- Magazine section ---------- */
.magazine { background: var(--ink); color: var(--paper); }
.magazine .grid { align-items: center; }
.magazine h2 { color: var(--paper); }
.magazine .lead { color: var(--muted-light); }
.mag-visual { position: relative; }
.mag-visual img { border-radius: var(--radius); box-shadow: 0 40px 80px -30px rgba(0,0,0,.6); }
.mag-points { list-style: none; margin-top: 2rem; display: grid; gap: 1.1rem; }
.mag-points li { display: flex; gap: 1rem; align-items: flex-start; }
.mag-points .num { font-family: var(--serif); color: var(--gold-soft); font-size: 1.4rem; min-width: 2rem; }
.mag-points b { display:block; font-family: var(--serif); font-size: 1.2rem; font-weight: 500; }
.mag-points p { color: var(--muted-light); font-size: .95rem; }

/* ---------- Search & filters ---------- */
.searchbar { position: relative; max-width: 640px; }
.searchbar input {
  width: 100%; padding: 1.2rem 3.2rem 1.2rem 1.5rem; font-family: var(--sans); font-size: 1rem;
  border: 1px solid var(--line); border-radius: 100px; background: var(--white); color: var(--ink);
  transition: border-color .3s, box-shadow .3s;
}
.searchbar input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(184,152,90,.12); }
.searchbar .s-icon { position: absolute; right: 1.3rem; top: 50%; transform: translateY(-50%); color: var(--muted); }
.suggest { position: absolute; top: 110%; left: 0; right: 0; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; z-index: 30; display: none; }
.suggest.show { display: block; }
.suggest a { display: flex; align-items: center; gap: .9rem; padding: .8rem 1.2rem; transition: background .2s; }
.suggest a:hover { background: var(--paper); }
.suggest img { width: 46px; height: 46px; object-fit: cover; border-radius: 3px; }
.suggest .s-name { font-family: var(--serif); font-size: 1.1rem; }
.suggest .s-sub { font-size: .74rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }

.filters { display: flex; flex-wrap: wrap; gap: .6rem; margin: 2rem 0; }
.chip { font-size: .76rem; letter-spacing: .06em; text-transform: uppercase; padding: .55rem 1.1rem;
  border: 1px solid var(--line); border-radius: 100px; color: var(--muted); transition: all .3s; white-space: nowrap; }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.result-count { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

/* ---------- Map ---------- */
.map-wrap { display: grid; grid-template-columns: 1fr 1.3fr; gap: 0; border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; min-height: 560px; background: var(--white); }
.map-near { grid-column: 1 / -1; }
.map-list { overflow-y: auto; max-height: 620px; }
.map-item { display: flex; gap: 1rem; padding: 1.1rem 1.3rem; border-bottom: 1px solid var(--line);
  cursor: pointer; transition: background .3s; }
.map-item:hover, .map-item.active { background: var(--paper); }
.map-item img { width: 82px; height: 82px; object-fit: cover; border-radius: 3px; flex-shrink: 0; }
.map-item h4 { font-size: 1.2rem; }
.map-canvas { position: relative; background: #dfe6e3; overflow: hidden; min-height: 480px; }
.map-canvas svg { width: 100%; height: 100%; }
.pin { cursor: pointer; transition: transform .3s var(--ease); transform-origin: center bottom; }
.pin:hover, .pin.active { transform: scale(1.25); }
.pin-dot { fill: var(--muted); }
.pin.premium .pin-dot { fill: var(--gold); }
.map-pop { position: absolute; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: .7rem; width: 220px; display: none; z-index: 10; }
.map-pop.show { display: block; }
.map-pop img { width: 100%; height: 110px; object-fit: cover; border-radius: 3px; margin-bottom: .5rem; }

/* ---------- Restaurant detail (mini-site) ---------- */
.rest-hero { position: relative; height: 82svh; min-height: 560px; display: grid; align-items: end; color: var(--paper); overflow: hidden; }
.rest-hero img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.rest-hero::after { content:""; position:absolute; inset:0; z-index:-1;
  background: linear-gradient(180deg, rgba(14,14,15,.4) 0%, transparent 40%, rgba(14,14,15,.82) 100%); }
.rest-hero-inner { padding-bottom: clamp(2.5rem,6vw,5rem); }
.rest-hero h1 { color: var(--paper); font-size: clamp(2.6rem,6vw,5rem); }
.rest-hero .rmeta { display: flex; flex-wrap: wrap; gap: 1.2rem; margin-top: 1.2rem; color: var(--muted-light);
  font-size: .84rem; letter-spacing: .08em; text-transform: uppercase; align-items: center; }
.rest-hero .rmeta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--gold); }

.rest-nav { position: sticky; top: 0; z-index: 50; background: rgba(247,244,238,.92); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line); }
.rest-nav ul { display: flex; gap: 2rem; list-style: none; overflow-x: auto; padding: 1rem 0; }
.rest-nav a { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); white-space: nowrap; transition: color .3s; }
.rest-nav a:hover, .rest-nav a.active { color: var(--ink); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,5vw,5rem); align-items: center; }
.story-img { border-radius: var(--radius); overflow: hidden; }
.pullquote { font-family: var(--serif); font-size: clamp(1.6rem,3vw,2.4rem); line-height: 1.3; font-style: italic;
  max-width: 24ch; color: var(--ink); }
.pullquote::before { content:"“"; color: var(--gold); }

.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: .8rem; }
.gallery a { overflow: hidden; border-radius: var(--radius); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.gallery a:hover img { transform: scale(1.08); }
.gallery .tall { grid-row: span 2; }
.gallery .wide { grid-column: span 2; }

/* Menu */
.menu-cats { display: flex; gap: .6rem; flex-wrap: wrap; margin-bottom: 2rem; }
.menu-section { display: none; }
.menu-section.active { display: block; animation: fade .5s var(--ease); }
@keyframes fade { from{opacity:0;transform:translateY(8px)} to{opacity:1;transform:none} }
.dish { display: flex; gap: 1.5rem; padding: 1.4rem 0; border-bottom: 1px solid var(--line); align-items: flex-start; }
.dish img { width: 96px; height: 96px; object-fit: cover; border-radius: 3px; flex-shrink: 0; }
.dish-info { flex: 1; }
.dish-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.dish-head h4 { font-size: 1.35rem; }
.dish-head .dprice { font-family: var(--serif); font-size: 1.35rem; color: var(--gold-deep); white-space: nowrap; }
.dish p { color: var(--muted); font-size: .92rem; margin-top: .2rem; }
.allergens { display: flex; gap: .3rem; margin-top: .5rem; }
.allergen { font-size: .62rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted);
  border: 1px solid var(--line); border-radius: 100px; padding: .15rem .55rem; }
.soldout { opacity: .45; }
.soldout .dprice::after { content:" · Épuisé"; font-size: .7rem; font-family: var(--sans); }

/* Amenities */
.amenities { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px,1fr)); gap: 1rem; }
.amenity { display: flex; align-items: center; gap: .7rem; padding: 1rem 1.2rem; border: 1px solid var(--line); border-radius: var(--radius); }
.amenity svg { width: 22px; height: 22px; color: var(--gold-deep); flex-shrink: 0; }
.amenity span { font-size: .84rem; }

/* Booking / info panel */
.info-card { background: var(--ink); color: var(--paper); border-radius: var(--radius); padding: clamp(1.8rem,3vw,2.6rem); position: sticky; top: 90px; }
.info-card h3 { color: var(--paper); font-size: 1.8rem; margin-bottom: 1.4rem; }
.info-row { display: flex; gap: 1rem; padding: .9rem 0; border-bottom: 1px solid var(--line-light); font-size: .92rem; }
.info-row svg { width: 18px; color: var(--gold-soft); flex-shrink: 0; }
.info-row .muted { color: var(--muted-light); }
.info-actions { display: grid; gap: .7rem; margin-top: 1.6rem; }
.social-row { display: flex; gap: .8rem; margin-top: 1.4rem; }
.social-row a { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-light); display: grid; place-items: center; transition: all .3s; }
.social-row a:hover { background: var(--gold); color: var(--ink); border-color: var(--gold); }

/* Offers */
.offer { display: flex; gap: 1.5rem; align-items: center; background: var(--white); border: 1px solid var(--line);
  border-left: 3px solid var(--gold); border-radius: var(--radius); padding: 1.6rem; }
.offer .otag { font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-deep); font-weight: 500; }
.offer h4 { font-size: 1.4rem; margin: .3rem 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--muted-light); padding: clamp(3.5rem,7vw,6rem) 0 2.5rem; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem; padding-bottom: 3rem; border-bottom: 1px solid var(--line-light); }
.footer-brand b { font-family: var(--serif); font-size: 2rem; color: var(--paper); display: block; }
.footer-brand span { font-size: .6rem; letter-spacing: .4em; text-transform: uppercase; color: var(--gold-soft); }
.footer-col h5 { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-soft); margin-bottom: 1.1rem; }
.footer-col a { display: block; padding: .35rem 0; font-size: .9rem; transition: color .3s; }
.footer-col a:hover { color: var(--paper); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 2rem; flex-wrap: wrap; gap: 1rem; font-size: .78rem; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* Breadcrumb */
.crumb { font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 1.4rem 0; }
.crumb a:hover { color: var(--gold-deep); }
.crumb span { opacity: .4; margin: 0 .5rem; }

/* ---------- Wide desktop (full-width) ---------- */
@media (min-width: 1500px) {
  .grid-3 { grid-template-columns: repeat(4, 1fr); }
  .searchbar { max-width: 820px; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .grid-3 { grid-template-columns: repeat(2,1fr); }
  .feature, .split, .map-wrap { grid-template-columns: 1fr; }
  .feature .card-media { min-height: 300px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .info-card { position: static; }
  .gallery { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 680px) {
  .nav { display: none; }
  .burger { display: grid; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .footer-top { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; grid-auto-rows: 240px; }
  .gallery .wide, .gallery .tall { grid-column: auto; grid-row: auto; }
  .dish img { width: 70px; height: 70px; }
  .map-list { max-height: 340px; }
}

/* Mobile drawer */
.drawer { position: fixed; inset: 0; z-index: 200; background: var(--ink); color: var(--paper);
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 1.8rem;
  transform: translateX(100%); transition: transform .5s var(--ease); }
.drawer.open { transform: none; }
.drawer a { font-family: var(--serif); font-size: 2rem; }
.drawer .close { position: absolute; top: 1.8rem; right: 1.8rem; font-size: 2rem; }

/* ============================================================
   MOBILE FIXES — solid header band + hero legibility
   (header was transparent and overlapped the hero on phones)
   ============================================================ */
@media (max-width: 900px) {
  .site-header,
  .site-header.on-hero:not(.scrolled),
  .site-header.scrolled {
    background: rgba(20, 33, 58, .97);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    padding: .85rem clamp(1rem, 4vw, 1.6rem);
    box-shadow: 0 1px 0 rgba(255, 255, 255, .08);
  }
  .site-header .brand b { color: var(--paper) !important; }
  .site-header .brand span { color: var(--gold-soft) !important; }
  .site-header .lang-btn,
  .site-header .icon-btn,
  .site-header .nav a { color: var(--paper) !important; }
  .hero-inner { padding-top: 5.5rem; }
  .rest-hero-inner { padding-top: 5rem; }
}
@media (max-width: 680px) {
  .site-header { padding: .75rem 1rem; }
  .site-header .brand b { font-size: 1.2rem; }
  .site-header .brand span { font-size: .5rem; letter-spacing: .3em; }

  .hero { align-items: center; }
  .hero-inner { padding-top: 6rem; padding-bottom: 3rem; }
  .hero .eyebrow.on-dark { font-size: .6rem; letter-spacing: .2em; }
  .hero h1 { font-size: clamp(2.05rem, 8.4vw, 2.9rem); max-width: 100%; }
  .hero .lead { color: #f4eee2; font-size: 1rem; text-shadow: 0 1px 12px rgba(0, 0, 0, .55); }
  .hero::after {
    background: linear-gradient(180deg, rgba(14,14,15,.74) 0%, rgba(14,14,15,.34) 42%, rgba(14,14,15,.86) 100%);
  }
  .hero-stat span[data-i18n="hero.stat"] { text-shadow: 0 1px 10px rgba(0,0,0,.5); }
  .hero-cta { gap: .7rem; margin-top: 1.8rem; }
  .hero-cta .btn { padding: .85rem 1.35rem; font-size: .72rem; }

  .rest-hero h1 { font-size: clamp(2.1rem, 8.5vw, 3rem); }
}

/* ============================================================
   Header : lien « Mon Carnet » (entrée membre) — doit POP
   ============================================================ */
.nav-carnet,
.header-tools a[href="/carnet"],
.header-tools a[href="/carnet.html"],
.header-tools a[href="/carnet/"],
.nav a[href="/carnet"] {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .5rem 1.05rem; border: 1px solid var(--gold);
  border-radius: 100px; color: var(--gold-deep);
  font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 500;
  white-space: nowrap; transition: all .35s var(--ease);
}
.nav-carnet::before,
.header-tools a[href="/carnet"]::before,
.header-tools a[href="/carnet.html"]::before,
.header-tools a[href="/carnet/"]::before,
.nav a[href="/carnet"]::before { content: "\2661"; font-size: .95rem; line-height: 1; }
.nav-carnet::after { display: none !important; }
.nav-carnet:hover,
.header-tools a[href="/carnet"]:hover,
.header-tools a[href="/carnet.html"]:hover,
.header-tools a[href="/carnet/"]:hover,
.nav a[href="/carnet"]:hover { background: var(--gold); color: var(--ink); border-color: var(--gold); }
/* Sur le hero (header sombre translucide) : or clair et lisible */
.site-header.on-hero:not(.scrolled) .nav-carnet,
.site-header.on-hero:not(.scrolled) .header-tools a[href="/carnet"],
.site-header.on-hero:not(.scrolled) .header-tools a[href="/carnet.html"],
.site-header.on-hero:not(.scrolled) .nav a[href="/carnet"] {
  color: var(--gold-soft) !important; border-color: var(--gold-soft);
}
.site-header.on-hero:not(.scrolled) .nav-carnet:hover,
.site-header.on-hero:not(.scrolled) .header-tools a[href="/carnet"]:hover {
  color: var(--ink) !important; background: var(--gold-soft); border-color: var(--gold-soft);
}
/* Bandeau header mobile (navy) : garder l'or, pas le gris/paper */
.site-header .nav-carnet,
.site-header .header-tools a[href="/carnet"] { color: var(--gold-soft) !important; }
/* Entrée dans le tiroir mobile */
.drawer a[href="/carnet"], .drawer a.nav-carnet {
  color: var(--gold-soft); border: 1px solid var(--gold-soft); border-radius: 100px;
  padding: .5rem 1.7rem;
}
.drawer a[href="/carnet"]::before, .drawer a.nav-carnet::before { content: "\2661\00a0"; }

/* ============================================================
   GLOBAL A11Y REFINEMENTS (safe site-wide, additive)
   Gold focus-visible ring + reduced-motion support
   ============================================================ */
:where(a, button, input, select, textarea, .btn, .chip, .wl-flag):focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-radius: 6px;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .hero-media img { animation: none !important; transform: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* ============================================================
   HOMEPAGE PREMIUM POLISH — scoped to body.home only
   Editorial refinements matching the restaurant fiche.
   Nothing here leaks to ville / pro / carnet / fiche pages.
   ============================================================ */

/* --- Trust band (0 % commission promo bar) --- */
.home .promo-bar {
  background: linear-gradient(90deg, #0f1a30 0%, #14213a 50%, #0f1a30 100%);
  border-bottom: 1px solid rgba(201,162,75,.5);
  letter-spacing: .045em;
}
.home .promo-bar #promoTxt::before {
  content: "\2726";            /* diamant or */
  color: var(--gold-soft);
  margin-right: .55rem;
  font-size: .82em;
}
.home .promo-bar b { color: #f4e6c2; }

/* --- Hero: richer navy overlay + editorial hierarchy --- */
.home .hero::after {
  background: linear-gradient(180deg, rgba(15,26,48,.55) 0%, rgba(15,26,48,.12) 34%, rgba(15,26,48,.82) 100%);
}
.home .hero .eyebrow.on-dark {
  display: inline-flex; align-items: center; gap: .8rem;
}
.home .hero .eyebrow.on-dark::after {
  content: ""; width: 46px; height: 1px;
  background: linear-gradient(90deg, var(--gold-soft), transparent);
}
.home .hero-title { text-wrap: balance; }
.home .hero .lead { max-width: 46ch; }
.home .hero-stat {
  margin-top: 1.7rem; padding-top: 1.4rem;
  border-top: 1px solid rgba(201,162,75,.28);
}
.home .hero-cta .btn { letter-spacing: .2em; }

/* --- Section heads: gold hairline tick before the eyebrow --- */
.home .section-head .eyebrow {
  display: inline-flex; align-items: center; gap: .7rem;
}
.home .section-head .eyebrow::before {
  content: ""; width: 26px; height: 1px; background: var(--gold); flex-shrink: 0;
}

/* --- Cards (editor selection grid) : paper, border, gold accent --- */
.home .card {
  border: 1px solid var(--line);
  border-radius: 12px;
}
.home .card::after {
  content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-soft));
  border-radius: 12px 12px 0 0;
  transform: scaleX(0); transform-origin: left; opacity: 0;
  transition: transform .5s var(--ease), opacity .5s var(--ease);
  z-index: 4;
}
.home .card:hover {
  box-shadow: 0 30px 66px -30px rgba(15,26,48,.42);
  border-color: rgba(201,162,75,.45);
}
.home .card:hover::after { transform: scaleX(1); opacity: 1; }
.home .card-body h3 { letter-spacing: -.01em; }

/* --- City tiles : softer corners, gold outline on hover --- */
.home .city-card {
  border-radius: 12px;
  box-shadow: 0 18px 44px -30px rgba(15,26,48,.5);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
  outline: 1px solid transparent; outline-offset: -1px;
}
.home .city-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 34px 70px -30px rgba(15,26,48,.55);
  outline-color: rgba(201,162,75,.5);
}
.home .city-card-body h3 {
  text-shadow: 0 2px 18px rgba(0,0,0,.35);
  transition: transform .5s var(--ease);
}
.home .city-card:hover .city-card-body h3 { transform: translateY(-2px); }

/* --- Finder console : softer card + gold focus on selects --- */
.home .sf-console { border-radius: 16px; }
.home .sf-field select:focus { box-shadow: 0 0 0 3px rgba(201,162,75,.14); }

/* ============================================================
   /PRO PREMIUM POLISH — restaurateur offer page (pro.html)
   Matched to the homepage editorial polish: navy/gold, serif,
   gold hairlines, refined cards & pills.
   SCOPED via body:has(#proRestoCount) so it ONLY affects pro.html
   and never leaks to home / ville / carnet / fiche.
   Additive & reversible — no markup / JS / i18n changes needed.
   ============================================================ */

/* --- Eyebrows: gold hairline tick (like homepage section heads) --- */
body:has(#proRestoCount) .eyebrow:not(.on-dark) {
  display: inline-flex; align-items: center; gap: .7rem;
}
body:has(#proRestoCount) .eyebrow:not(.on-dark)::before {
  content: ""; width: 26px; height: 1px; background: var(--gold); flex-shrink: 0;
}
body:has(#proRestoCount) .band .eyebrow:not(.on-dark)::before { background: var(--gold-soft); }

/* --- Hero: gold gradient flourish on the eyebrow, balanced title --- */
body:has(#proRestoCount) .pro-hero .eyebrow.on-dark {
  display: inline-flex; align-items: center; gap: .8rem;
}
body:has(#proRestoCount) .pro-hero .eyebrow.on-dark::after {
  content: ""; width: 46px; height: 1px;
  background: linear-gradient(90deg, var(--gold-soft), transparent);
}
body:has(#proRestoCount) .pro-hero h1 { text-wrap: balance; }
body:has(#proRestoCount) .pro-hero::after {
  background: linear-gradient(180deg, rgba(15,26,48,.9) 0%, rgba(15,26,48,.72) 45%, rgba(15,26,48,.9) 100%);
}
body:has(#proRestoCount) .hero-cta .btn { letter-spacing: .2em; }

/* --- Trust bands: navy gradient + gold hairlines (homepage band feel) --- */
body:has(#proRestoCount) .section.band {
  background: linear-gradient(180deg, #0f1a30 0%, #14213a 50%, #0f1a30 100%);
  border-top: 1px solid rgba(201,162,75,.5);
  border-bottom: 1px solid rgba(201,162,75,.5);
}

/* --- Pricing card: stronger gold top accent + premium navy-tinted shadow --- */
body:has(#proRestoCount) .plan {
  border-top: 3px solid var(--gold);
  box-shadow: 0 44px 96px -50px rgba(15,26,48,.55), 0 0 0 1px rgba(201,162,75,.18);
}
body:has(#proRestoCount) .plan .plan-kicker {
  display: inline-flex; align-items: center; gap: .55rem;
}
body:has(#proRestoCount) .plan .plan-kicker::before,
body:has(#proRestoCount) .plan .plan-kicker::after {
  content: "\2726"; color: var(--gold-soft); font-size: .8em; line-height: 1;
}
/* Gold diamond value markers (brand ◆ in place of the list icon) */
body:has(#proRestoCount) .plan .incl .ic { display: none; }
body:has(#proRestoCount) .plan .incl li::before {
  content: "\2726"; color: var(--gold-deep); flex-shrink: 0;
  font-size: .9em; line-height: 1; margin-top: .2rem;
}
body:has(#proRestoCount) .plan .cta-lg { letter-spacing: .16em; }

/* --- Add-on tag (+49 €/mois): elegant gold-outline pill (secondary option) --- */
body:has(#proRestoCount) .cmp .addon {
  border: 1px solid rgba(201,162,75,.5); border-radius: 100px;
  padding: .12rem .6rem; background: rgba(184,152,90,.08);
}

/* --- Comparatif: on-brand gold checks + refined 'us' column + row hover --- */
body:has(#proRestoCount) .cmp { box-shadow: 0 24px 60px -40px rgba(15,26,48,.4); }
body:has(#proRestoCount) .cmp .yes { color: var(--gold-deep); }
body:has(#proRestoCount) .cmp .no { color: var(--muted); font-weight: 400; }
body:has(#proRestoCount) .cmp td.us,
body:has(#proRestoCount) .cmp th.us { background: rgba(184,152,90,.10); }
body:has(#proRestoCount) .cmp tbody tr:hover td { background: rgba(184,152,90,.05); }
body:has(#proRestoCount) .cmp tbody tr:hover td.us { background: rgba(184,152,90,.14); }

/* --- Finder box: gold focus ring, consistent with site inputs --- */
body:has(#proRestoCount) .pfind-box:focus-within {
  box-shadow: 0 20px 50px -20px rgba(0,0,0,.55), 0 0 0 3px rgba(201,162,75,.16);
}

/* ============================================================
   VILLE (CITY) PAGES PREMIUM POLISH — ville-*.html
   Matches the homepage / fiche / pro editorial language:
   deep navy, gold hairlines, serif titles, refined cards,
   navy/gold rank badges, framed map, unified pills.
   SCOPED via body:has(#cityGrid) — the restaurant-grid container
   mounted by mountGrid("#cityGrid", …). This id is unique to
   ville pages, so nothing here leaks to home / fiche / carnet / pro.
   Additive & reversible — NO markup / JS / i18n / id changes.
   Note: each ville-*.html is a separate file cloned from one
   template; this shared-but-scoped CSS elevates them all at once.
   ============================================================ */

/* --- City hero: richer navy overlay + gold eyebrow flourish --- */
body:has(#cityGrid) .hero::after {
  background: linear-gradient(180deg, rgba(15,26,48,.55) 0%, rgba(15,26,48,.10) 34%, rgba(15,26,48,.84) 100%);
}
body:has(#cityGrid) .hero .eyebrow.on-dark {
  display: inline-flex; align-items: center; gap: .8rem;
}
body:has(#cityGrid) .hero .eyebrow.on-dark::after {
  content: ""; width: 46px; height: 1px;
  background: linear-gradient(90deg, var(--gold-soft), transparent);
}
body:has(#cityGrid) .hero h1 { text-wrap: balance; letter-spacing: -.015em; }
body:has(#cityGrid) .hero .lead { max-width: 48ch; }

/* --- Section heads: gold hairline tick before the eyebrow --- */
body:has(#cityGrid) .section-head .eyebrow:not(.on-dark) {
  display: inline-flex; align-items: center; gap: .7rem;
}
body:has(#cityGrid) .section-head .eyebrow:not(.on-dark)::before {
  content: ""; width: 26px; height: 1px; background: var(--gold); flex-shrink: 0;
}
body:has(#cityGrid) .section-head h2 { font-family: var(--serif); }

/* --- Restaurant cards + Top-ranking cards: paper, border, gold accent --- */
body:has(#cityGrid) .card {
  border: 1px solid var(--line);
  border-radius: 12px;
}
body:has(#cityGrid) .card::after {
  content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-soft));
  border-radius: 12px 12px 0 0;
  transform: scaleX(0); transform-origin: left; opacity: 0;
  transition: transform .5s var(--ease), opacity .5s var(--ease);
  z-index: 4;
}
body:has(#cityGrid) .card:hover {
  box-shadow: 0 30px 66px -30px rgba(15,26,48,.42);
  border-color: rgba(201,162,75,.45);
}
body:has(#cityGrid) .card:hover::after { transform: scaleX(1); opacity: 1; }
body:has(#cityGrid) .card-body h3 { letter-spacing: -.01em; }
body:has(#cityGrid) .card-foot .price svg { color: var(--gold); vertical-align: -1px; }

/* --- Rank badge (#1, #2 …) : navy chip with gold hairline + soft depth ---
   The inline background/color on the JS badge stays; we only add
   framing that inline styles don't set. --- */
body:has(#cityGrid) #topRanking .badge-premium {
  border: 1px solid rgba(201,162,75,.55);
  box-shadow: 0 8px 20px -10px rgba(15,26,48,.6);
  font-weight: 600;
}

/* --- Top-ranking banner: gold hairline frame + depth (navy CTA block) --- */
body:has(#cityGrid) #topRankingBanner > .wrap > div {
  border: 1px solid rgba(201,162,75,.4);
  box-shadow: 0 40px 90px -46px rgba(15,26,48,.6);
}
body:has(#cityGrid) #topRankingBanner a.btn:hover {
  filter: brightness(.96);
  transform: translateY(-2px);
}

/* --- Filters / chips: unified pill system (active = navy) --- */
body:has(#cityGrid) .chip.active {
  background: var(--ink); color: var(--paper); border-color: var(--ink);
  box-shadow: 0 10px 24px -14px rgba(15,26,48,.5);
}
body:has(#cityGrid) .chip:hover { border-color: var(--gold); color: var(--gold-deep); }
body:has(#cityGrid) .chip.active:hover { color: var(--paper); border-color: var(--ink); }

/* --- Search bar: slightly softer, gold focus is already global --- */
body:has(#cityGrid) .searchbar input { border-radius: 100px; }

/* --- Map block: rounded framing, gold hairline, soft navy shadow --- */
body:has(#cityGrid) .map-wrap {
  border-radius: 16px;
  border-color: rgba(201,162,75,.35);
  box-shadow: 0 34px 80px -46px rgba(15,26,48,.5);
}
body:has(#cityGrid) .map-item:hover,
body:has(#cityGrid) .map-item.active {
  background: var(--paper);
  box-shadow: inset 3px 0 0 var(--gold);
}
body:has(#cityGrid) .map-item h4 { font-family: var(--serif); }
body:has(#cityGrid) .map-pop { border: 1px solid rgba(201,162,75,.3); }

/* --- Result count: refined, gold-toned rhythm --- */
body:has(#cityGrid) .result-count { color: var(--muted); }

/* --- Ville-page responsive nicety: keep hero title readable on small
   phones (mirrors the global mobile hero fixes, scoped tighter) --- */
@media (max-width: 680px) {
  body:has(#cityGrid) .hero .eyebrow.on-dark::after { width: 30px; }
  body:has(#cityGrid) .map-wrap { border-radius: 12px; }
}
