/* ==========================================================================
   LA FARIGOULETTE — Système visuel
   L'élégance naturelle d'une maison provençale : pierre, chaux, lin, olivier.
   La photographie porte l'émotion ; la typographie et l'espace font le reste.
   ========================================================================== */

:root {
  /* Palette */
  --ivoire: #F7F4ED;        /* fond principal */
  --blanc: #FCFAF6;         /* papier, sections claires */
  --sable: #D8C8AE;         /* filets, fonds doux */
  --sable-clair: #EDE5D7;   /* fond de respiration */
  --terre: #A65F46;         /* action principale (texte blanc : 4,8:1) */
  --terre-fonce: #8C4C37;   /* terre cuite pour petits textes sur clair (AA) */
  --olive: #525846;         /* surtitres, accents */
  --olive-fonce: #3D4234;   /* section sombre */
  --encre: #292820;         /* texte */
  --encre-douce: #5C5A4E;   /* texte secondaire (6,3:1 sur ivoire) */
  --ligne: rgba(41, 40, 32, .14);

  /* Typographie */
  --serif: "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif;
  --sans: "Manrope", "Avenir Next", "Segoe UI", system-ui, sans-serif;

  --t-xs: .75rem;
  --t-sm: .875rem;
  --t-md: clamp(1rem, .96rem + .2vw, 1.0625rem);
  --t-lg: clamp(1.15rem, 1.05rem + .4vw, 1.35rem);
  --t-h3: clamp(1.5rem, 1.3rem + .8vw, 1.9rem);
  --t-h2: clamp(2.2rem, 1.5rem + 2.8vw, 3.75rem);
  --t-h1: clamp(2.9rem, 1.7rem + 5vw, 5.75rem);

  /* Rythme */
  --gutter: clamp(1.25rem, 5vw, 4.5rem);
  --max: 1320px;
  --lecture: 34rem;
  --sect: clamp(5rem, 10vw, 9.5rem);
  --header-h: 84px;
  --topbar-h: 34px;          /* bandeau d'informations au-dessus de l'en-tête (ordinateur) */

  --ease: cubic-bezier(.22, .61, .36, 1);
  --rapide: 240ms var(--ease);
  --moyen: 420ms var(--ease);
}

@media (max-width: 960px) {
  :root { --header-h: 64px; --topbar-h: 0px; }
}

/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  background: var(--ivoire);
  color: var(--encre);
  font-family: var(--sans);
  font-size: var(--t-md);
  font-weight: 400;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .25em; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -.01em;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: var(--t-h1); }
h2 { font-size: var(--t-h2); }
h3 { font-size: var(--t-h3); line-height: 1.15; }
h1 em, h2 em { font-style: italic; font-weight: 400; }

:focus-visible { outline: 2px solid var(--terre); outline-offset: 3px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  padding: .8rem 1.2rem; background: var(--encre); color: var(--blanc);
  font-size: var(--t-sm); text-decoration: none;
}
.skip:focus { top: 1rem; }

.wrap { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }

/* Surtitre */
.eyebrow {
  display: block;
  margin: 0 0 1.4rem;
  font-family: var(--sans);
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--olive);
}
.eyebrow--rule { display: flex; align-items: center; gap: .9rem; }
.eyebrow--rule::before { content: ""; width: 2.25rem; height: 1px; background: currentColor; opacity: .6; }

.lede { font-size: var(--t-lg); line-height: 1.65; color: var(--encre); max-width: var(--lecture); }
.muted { color: var(--encre-douce); }
.prose { max-width: var(--lecture); }
.prose p { color: var(--encre-douce); }

/* ==========================================================================
   Boutons et liens d'action
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 48px;
  padding: .95em 1.75em;
  border: 1px solid transparent;
  border-radius: 2px;
  background: var(--terre);
  color: #fff;
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--rapide), color var(--rapide), border-color var(--rapide), transform var(--rapide);
}
.btn:hover { background: var(--terre-fonce); }
.btn:active { transform: translateY(1px); }
.btn--light { background: var(--blanc); color: var(--encre); }
.btn--light:hover { background: #fff; color: var(--terre-fonce); }
.btn--line { background: transparent; color: var(--encre); border-color: rgba(41, 40, 32, .4); }
.btn--line:hover { background: var(--encre); color: var(--blanc); border-color: var(--encre); }
.btn--line-light { background: transparent; color: var(--blanc); border-color: rgba(252, 250, 246, .55); }
.btn--line-light:hover { background: var(--blanc); color: var(--encre); border-color: var(--blanc); }

.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2.25rem; }

.link {
  display: inline-flex; align-items: center; gap: .6em;
  padding-block: .6rem;
  font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--terre-fonce); text-decoration: none;
}
.link::after { content: ""; width: 1.75rem; height: 1px; background: currentColor; transition: width var(--moyen); }
.link:hover::after { width: 2.75rem; }

/* ==========================================================================
   En-tête
   ========================================================================== */
.header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: rgba(247, 244, 237, .96);
  border-bottom: 1px solid transparent;
  transition: border-color var(--moyen), box-shadow var(--moyen);
}
@supports (backdrop-filter: blur(1px)) {
  .header { background: rgba(247, 244, 237, .88); backdrop-filter: saturate(1.2) blur(12px); }
}
.header.is-scrolled { border-bottom-color: var(--ligne); box-shadow: 0 8px 28px -22px rgba(41, 40, 32, .45); }

.header-inner {
  height: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
}

.nav { display: flex; align-items: center; gap: clamp(1.25rem, 2.2vw, 2.25rem); }
.nav--end { justify-content: flex-end; }
/* Navigation : capitales légèrement espacées, comme les libellés et les boutons */
.nav a:not(.btn) {
  position: relative;
  padding-block: .75rem;
  font-size: .72rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none; color: var(--encre); white-space: nowrap;
}

/* Bandeau d'informations au-dessus de l'en-tête (ordinateur uniquement) */
.topbar { background: var(--ivoire); border-bottom: 1px solid var(--ligne); color: var(--encre-douce); font-size: .7rem; letter-spacing: .04em; } /* discret : même ivoire que l'en-tête, simple filet */
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: var(--topbar-h); }
.topbar p { margin: 0; }
.topbar-end { display: flex; align-items: center; gap: 1.25rem; }
.topbar-tel {
  display: inline-flex; align-items: center; gap: .5rem; padding-block: .45rem;
  font-weight: 600; letter-spacing: .1em; font-variant-numeric: tabular-nums; color: var(--encre); text-decoration: none;
}
.topbar-tel svg { width: 15px; height: 15px; }
.topbar-tel:hover span { text-decoration: underline; text-underline-offset: .25em; }
.topbar .lang a { color: var(--encre-douce); }
.topbar .lang a:hover, .topbar .lang [aria-current] { color: var(--encre); }
.topbar .lang a, .topbar .lang span { padding-block: .45rem; }
.topbar .lang .sep { color: var(--sable); }
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .45rem; height: 1px;
  background: var(--terre); transform: scaleX(0); transform-origin: left; transition: transform var(--moyen);
}
.nav a:not(.btn):hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav .btn { min-height: 42px; padding: .75em 1.35em; font-size: .72rem; }

.lang { display: inline-flex; align-items: center; gap: .15rem; font-size: .74rem; font-weight: 600; letter-spacing: .1em; }
.lang a, .lang span { padding: .7rem .35rem; text-decoration: none; }
.lang a { color: var(--encre-douce); }
.lang a:hover { color: var(--encre); }
.lang [aria-current] { color: var(--encre); }
.lang .sep { padding: 0; color: var(--sable); }

/* Logotype */
.brand {
  display: inline-flex; flex-direction: column; align-items: center;
  text-decoration: none; color: var(--encre); line-height: 1;
  padding-block: .45rem;
}
.brand-name {
  font-family: var(--sans); font-weight: 500;
  font-size: clamp(.95rem, .8rem + .45vw, 1.2rem);
  letter-spacing: .3em; margin-right: -.3em; text-transform: uppercase; white-space: nowrap;
}
.brand-place {
  display: flex; align-items: center; gap: .7rem; margin-top: .55rem;
  font-size: .58rem; font-weight: 600; letter-spacing: .42em; margin-right: -.42em; text-transform: uppercase;
  color: var(--encre-douce);
}
.brand-place::before, .brand-place::after { content: ""; width: 1.6rem; height: 1px; background: var(--olive); opacity: .7; }

.burger {
  display: none;
  width: 48px; height: 48px; margin-right: -12px;
  border: 0; background: none; cursor: pointer; color: var(--encre);
  position: relative;
}
.burger span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: currentColor; transition: transform var(--moyen), opacity var(--rapide); }
.burger span:nth-child(1) { top: 18px; }
.burger span:nth-child(2) { top: 24px; }
.burger span:nth-child(3) { top: 30px; }
.menu-open .burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-open .burger span:nth-child(2) { opacity: 0; }
.menu-open .burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Menu mobile */
.mobile-menu {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 49;
  display: flex; flex-direction: column;
  padding: 2rem var(--gutter) calc(2rem + env(safe-area-inset-bottom));
  background: var(--ivoire);
  overflow-y: auto;
  opacity: 0; visibility: hidden;
  transition: opacity var(--moyen), visibility 0s linear 420ms;
}
.menu-open .mobile-menu { opacity: 1; visibility: visible; transition: opacity var(--moyen), visibility 0s; }
.mobile-menu ul { list-style: none; margin: 0; padding: 0; }
.mobile-menu li { border-bottom: 1px solid var(--ligne); }
.mobile-menu li a {
  display: block; padding: 1.05rem 0;
  font-size: .9rem; font-weight: 500; line-height: 1.2; letter-spacing: .16em; text-transform: uppercase;
  text-decoration: none;
}
.mobile-menu li a[aria-current="page"] { color: var(--terre-fonce); }
.mobile-menu-foot { margin-top: auto; padding-top: 2rem; display: grid; gap: 1.25rem; }
.mobile-menu-foot .btn { width: 100%; }
.btn--stack { flex-direction: column; gap: .35rem; padding-block: .9rem; }
.btn--stack span { font-size: 1rem; letter-spacing: .08em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.mobile-menu-foot .lang { justify-self: start; margin-left: -.35rem; }
.mobile-menu-foot p { margin: 0; font-size: var(--t-sm); color: var(--encre-douce); }

.header-call { display: none; }
@media (min-width: 961px) and (max-width: 1120px) {
  .header-inner { gap: 1.25rem; }
  .nav { gap: 1rem; }
  .nav .btn { padding-inline: 1rem; }
}
@media (max-width: 960px) {
  .topbar { display: none; }
  /* En-tête mobile : menu à gauche, logo au centre, téléphone à droite.
     Deux colonnes latérales identiques (48 px) : le logo reste centré sur l'écran quelles que soient les icônes. */
  .header-inner { grid-template-columns: 48px 1fr 48px; gap: 0; }
  .nav { display: none; }
  .burger { display: block; grid-column: 1; grid-row: 1; justify-self: start; margin-right: 0; margin-left: -12px; }
  .brand { grid-column: 2; grid-row: 1; justify-self: center; }
  .header-call {
    display: grid; place-items: center; grid-column: 3; grid-row: 1; justify-self: end; width: 48px; height: 48px; margin-right: -12px;
    color: var(--encre); border-radius: 50%;
  }
  .header-call:hover { color: var(--terre-fonce); }
  .brand-name { font-size: .92rem; letter-spacing: .26em; margin-right: -.26em; white-space: nowrap; }
  .brand-place { margin-top: .45rem; }
}
@media (max-width: 359px) {
  .brand-name { font-size: .84rem; letter-spacing: .22em; margin-right: -.22em; }
}
@media (min-width: 961px) {
  .mobile-menu { display: none; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
/* Ordinateur : texte à gauche (48 %), aligné sur la grille du site ; photo à droite (52 %) jusqu'au bord
   de l'écran. Le hero tient dans l'écran sous l'en-tête ; la photo le remplit (object-fit), cadrée sur
   l'horizon et la table, sans retouche ni déformation. */
.hero { container-type: inline-size; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 47fr) minmax(0, 53fr);
  align-items: center;
  min-height: clamp(560px, calc(100svh - var(--header-h) - var(--topbar-h)), 900px);
}
.hero-content {
  /* même marge gauche que .wrap : la gouttière, ou le centrage de la grille de 1320 px sur grand écran */
  /* centrage optique : un peu plus d'air sous le bloc qu'au-dessus */
  padding-block: clamp(1.25rem, 2.5vw, 3rem) clamp(2rem, 4vw, 4.5rem);
  padding-left: max(var(--gutter), calc((100vw - var(--max)) / 2));
  padding-left: max(var(--gutter), calc((100cqw - var(--max)) / 2));
  padding-right: clamp(2rem, 4.5vw, 5rem);
}
.hero-photo { position: relative; align-self: stretch; margin: 0; min-height: 100%; }
.hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.hero h1 { margin-bottom: .35em; }
@media (min-width: 861px) { .hero h1 { font-size: min(var(--t-h1), 6.4cqw); } } /* colonne de texte à 48 % : le titre suit sa largeur sur les écrans moyens */
.hero h1 .eyebrow { line-height: 1.6; margin-bottom: 1.5rem; }
.hero .h1-main { display: block; max-width: 11ch; line-height: .98; }
.eyebrow-sep { white-space: pre; }
.hero-text { max-width: 30rem; font-size: var(--t-lg); line-height: 1.6; color: var(--encre-douce); }
.hero .actions { margin-top: 2.25rem; align-items: center; gap: 1.25rem 2rem; }

/* Note Google : preuve sociale discrète, sous l'action principale */
.stars {
  display: inline-block; font-size: .95rem; letter-spacing: .12em; line-height: 1;
  background: linear-gradient(90deg, var(--terre) var(--fill), rgba(41, 40, 32, .2) var(--fill));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.rating {
  display: inline-flex; align-items: center; flex-wrap: wrap; gap: .35rem .75rem; margin-top: 1.75rem;
  padding-block: .4rem; font-size: var(--t-sm); color: var(--encre-douce); text-decoration: none;
}
.rating b { font-weight: 600; color: var(--encre); }
.rating-arrow { color: var(--terre-fonce); transition: transform var(--rapide); }
.rating:hover span:not(.stars) { color: var(--encre); }
.rating:hover .rating-arrow { transform: translate(2px, -2px); }

/* Bandeau « avis + parole de la maison » */
.proof { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 2.5rem clamp(2rem, 6vw, 6rem); align-items: center; }
.proof-num { margin: 1.25rem 0 .5rem; font-family: var(--serif); line-height: 1; }
.proof-num span { font-size: clamp(3.75rem, 3rem + 3vw, 5.5rem); font-weight: 500; }
.proof-num small { font-family: var(--sans); font-size: var(--t-sm); color: var(--encre-douce); }
.proof .stars { font-size: 1.15rem; }
.proof-count { margin: .9rem 0 .25rem; font-weight: 500; }
.proof-meta { margin: 0 0 1.25rem; font-size: var(--t-xs); color: var(--encre-douce); }
.quote.proof-quote { max-width: none; margin: 0; padding-left: clamp(0rem, 4vw, 3.5rem); border-left: 1px solid rgba(41, 40, 32, .18); text-align: left; }
@media (max-width: 860px) {
  .proof { grid-template-columns: 1fr; }
  .quote.proof-quote { padding: 2.25rem 0 0; border-left: 0; border-top: 1px solid rgba(41, 40, 32, .18); }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-content > * { animation: rise 700ms var(--ease) both; }
  .hero-content > h1 { animation-name: rise-soft; } /* le titre reste opaque : il compte pour le LCP */
  .hero-content > :nth-child(2) { animation-delay: 80ms; }
  .hero-content > :nth-child(3) { animation-delay: 160ms; }
  .hero-content > :nth-child(4) { animation-delay: 240ms; }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes rise-soft { from { transform: translateY(10px); } to { transform: none; } }

@media (max-width: 860px) {
  /* Tablette et mobile : hero compact, le texte et les actions d'abord ; la même photo (pas de doublon
     dans le HTML) passe dessous, pleine largeur et entière, et fait la transition avec la section suivante. */
  .hero-grid { grid-template-columns: 1fr; min-height: 0; }
  .hero-content { padding: clamp(1.75rem, 6vw, 3rem) var(--gutter) 0; }
  .hero-photo { order: 1; align-self: auto; min-height: 0; margin-top: clamp(2.25rem, 8vw, 3.5rem); }
  .hero-photo img { position: static; height: auto; }
  .hero h1 .eyebrow { margin-bottom: 1.1rem; }
  .hero .actions { margin-top: 1.75rem; }
  .hero .rating { margin-top: 1.25rem; }
}
@media (min-width: 641px) and (max-width: 860px) {
  /* tablette : photo pleine largeur limitée en hauteur, toujours cadrée sur l'horizon et la table */
  .hero-photo img { height: min(75svh, 46rem); object-fit: cover; object-position: 50% 60%; }
}
@media (max-width: 640px) {
  .hero .actions { flex-direction: column; align-items: stretch; max-width: 22rem; }
  /* surtitre sur deux lignes nettes (« La Farigoulette » / « Restaurant à Tourtour ») ; le point reste lu */
  .hero .eyebrow-sep { display: block; height: 0; overflow: hidden; }
}

/* ==========================================================================
   Sections
   ========================================================================== */
.section { padding-block: var(--sect); }
.section--tight { padding-block: calc(var(--sect) * .65); }
.section--paper { background: var(--blanc); }
.section--sand { background: var(--sable-clair); }
.section:not(.section--paper):not(.section--sand):not(.section--dark) + .section:not(.section--paper):not(.section--sand):not(.section--dark) { padding-top: 0; }

.section-head { max-width: 44rem; margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow--rule { justify-content: center; }
.section-head--center .eyebrow--rule::after { content: ""; width: 2.25rem; height: 1px; background: currentColor; opacity: .6; }

/* Composition éditoriale asymétrique */
.split {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(1rem, 2.5vw, 2.5rem);
  align-items: center;
}
.split-media { grid-column: 1 / span 6; }
.split-text { grid-column: 8 / span 5; }
.split--rev .split-media { grid-column: 7 / span 6; grid-row: 1; }
.split--rev .split-text { grid-column: 1 / span 5; grid-row: 1; }
.split--wide .split-media { grid-column: 1 / span 7; }
.split--wide .split-text { grid-column: 9 / span 4; }

@media (max-width: 860px) {
  .split { display: block; }
  .split-media { margin-bottom: 2.5rem; }
  .split--rev .split-media { margin-bottom: 2.5rem; }
  .split .split-head { margin-bottom: 1.5rem; }
}

/* Figures */
.figure { margin: 0; }
/* Les photos gardent leurs proportions d'origine : aucun ratio imposé, aucun recadrage. */
.frame { position: relative; overflow: hidden; background: var(--sable-clair); }
.frame img { width: 100%; height: auto; transition: transform 1.2s var(--ease); }
a.frame:hover img, .frame--zoom:hover img, .gallery-item:hover img { transform: scale(1.025); }
/* Salle voûtée (escalier) : masque d'affichage des 6 px de bord droit (artefact vert
   présent dans le fichier). Le fichier original reste intact. */
img.trim-right { aspect-ratio: 714 / 1280; object-fit: cover; object-position: left center; }

.figure figcaption {
  margin-top: .9rem;
  font-family: var(--serif); font-style: italic; font-size: 1.05rem; line-height: 1.4;
  color: var(--encre-douce);
}
.figure figcaption b {
  display: block; margin-bottom: .15rem;
  font-family: var(--sans); font-style: normal; font-size: .68rem; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase; color: var(--olive);
}

/* Petite image en décalé, superposée */
.stack { position: relative; padding-bottom: 30%; }
.stack-small {
  position: absolute; right: -4%; bottom: 0; width: 34%;
  border: clamp(6px, 1vw, 12px) solid var(--ivoire);
}

/* Variante « vue » (accueil, La maison) : grande photo verticale à ses proportions d'origine,
   seconde photo superposée en bas à droite. */
.stack--vue { padding-bottom: 24%; }
.stack--vue > .figure:first-child { width: 76%; }
.stack--vue .stack-small { width: 38%; right: 0; }

/* En-tête de page avec photo : même logique que le hero de l'accueil.
   La photo (entière, à ses proportions) tient dans l'écran sous l'en-tête et le bandeau d'informations,
   le texte est centré verticalement face à elle ; la marge haute est celle du hero, pas celle des en-têtes sans photo. */
.page-head.page-head--photo { padding-top: clamp(1.5rem, 3vw, 2.5rem); }
.page-head--photo .wrap { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.page-head--photo .figure {
  margin: 0; justify-self: end; width: 100%;
  max-width: min(30rem, calc((100svh - var(--header-h) - var(--topbar-h) - 5rem) * var(--ratio, .75)));
}
@media (max-width: 860px) {
  .page-head--photo .wrap { grid-template-columns: 1fr; }
  .page-head--photo .figure { justify-self: start; max-width: 34rem; }
}
.section--paper .stack-small { border-color: var(--blanc); }
@media (max-width: 860px) { .stack-small { right: 0; } }

/* Trio asymétrique */
.trio {
  display: grid;
  grid-template-columns: 5fr 4fr 3fr;
  gap: clamp(1rem, 2.5vw, 2.5rem);
  align-items: start;
  margin-top: clamp(3rem, 6vw, 5.5rem);
}
.trio > :nth-child(2) { margin-top: clamp(3rem, 8vw, 7rem); }
.trio > :nth-child(3) { margin-top: clamp(1.5rem, 4vw, 3rem); }
@media (max-width: 760px) {
  .trio { grid-template-columns: 1fr 1fr; }
  .trio > :nth-child(1) { grid-column: 1 / -1; }
  .trio > :nth-child(2) { margin-top: 0; }
  .trio > :nth-child(3) { margin-top: 3rem; }
}

/* Chiffres clés */
.key-facts { display: flex; flex-wrap: wrap; gap: 1.5rem 2.5rem; margin: 2.5rem 0 0; }
.key-facts div { display: flex; flex-direction: column; }
.key-facts dd { order: -1; margin: 0; font-family: var(--serif); font-size: 1.9rem; line-height: 1.1; }
.key-facts dt { margin-top: .35rem; font-size: var(--t-xs); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--olive); max-width: 12rem; }

/* Bandeau de faits */
.facts {
  display: flex; flex-wrap: wrap; gap: .5rem 2rem;
  margin: 2rem 0 0; padding: 0; list-style: none;
  font-size: var(--t-xs); font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--olive);
}

/* ==========================================================================
   La carte
   ========================================================================== */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(3rem, 6vw, 5rem) clamp(2.5rem, 7vw, 7rem);
}
.menu-title {
  display: flex; align-items: center; gap: 1rem;
  margin-bottom: 1.75rem; line-height: 1.4;
  font-family: var(--sans); font-size: var(--t-xs); font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  color: var(--olive);
}
.menu-title::after { content: ""; flex: 1; height: 1px; background: var(--ligne); }
.dish { margin: 0 0 1.6rem; }
.dish:last-child { margin-bottom: 0; }
.dish-line { display: flex; align-items: baseline; gap: 1rem; }
.dish-name { margin: 0; font-family: var(--serif); font-size: clamp(1.35rem, 1.2rem + .5vw, 1.6rem); font-weight: 500; line-height: 1.25; }
.dish-line::after { content: ""; order: 1; flex: 1; min-width: 1.5rem; border-bottom: 1px dotted rgba(41, 40, 32, .28); transform: translateY(-.35em); }
.dish-price { order: 2; font-size: var(--t-md); font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dish-desc { margin: .2rem 0 0; font-size: var(--t-sm); color: var(--encre-douce); }
@media (max-width: 760px) { .menu-grid { grid-template-columns: 1fr; } }

.menu-preview { display: grid; gap: 1.4rem; margin: 2.5rem 0 0; }
.menu-note {
  margin-top: clamp(3rem, 6vw, 4.5rem); padding-top: 2rem; border-top: 1px solid var(--ligne);
  font-size: var(--t-sm); color: var(--encre-douce);
}
.price-range { font-family: var(--serif); font-style: italic; font-size: 1.2rem; color: var(--encre-douce); }

/* ==========================================================================
   Citation
   ========================================================================== */
.quote { max-width: 52rem; margin: 0 auto; text-align: center; }
.quote blockquote { margin: 0; }
.quote blockquote p {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.5rem); line-height: 1.32; color: var(--encre);
}
.quote figcaption { margin-top: 2rem; font-size: var(--t-xs); font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--olive); }

/* ==========================================================================
   Galerie
   ========================================================================== */
/* Composition éditoriale : une grande vue en tête, puis un parcours asymétrique.
   Proportions d'origine partout, sauf l'image latérale du premier rang, légèrement
   recadrée (≈ 10 %) pour s'aligner sur la hauteur de la grande vue. */
.gallery-item { display: block; width: 100%; margin: 0; padding: 0; border: 0; cursor: zoom-in; }
.editorial {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(1rem, 2.2vw, 2.25rem); row-gap: clamp(2rem, 3.5vw, 3.25rem);
  align-items: start;
}
.ed { margin: 0; }
.ed figcaption { margin-top: .85rem; font-family: var(--serif); font-style: italic; font-size: 1.05rem; line-height: 1.4; color: var(--encre-douce); }
.ed--lead { grid-column: 1 / span 8; }
.ed--side { grid-column: 9 / span 4; align-self: stretch; display: flex; flex-direction: column; }
/* La verticale voisine prend exactement la hauteur de la vue large (elle n'impose pas la sienne) */
.ed--side .gallery-item, .ed--tall .gallery-item { position: relative; flex: 1; min-height: 0; overflow: hidden; }
.ed--side .gallery-item img, .ed--tall .gallery-item img { position: absolute; inset: 0; height: 100%; object-fit: cover; object-position: 50% 62%; }
/* Rang 2 : miroir du premier (verticale à gauche, vue large à droite) ;
   rang 3 : une paire de verticales, légèrement décalée, pour finir le parcours. */
.ed--tall { grid-column: 1 / span 4; grid-row: 2; align-self: stretch; display: flex; flex-direction: column; }
.ed--wide { grid-column: 5 / span 8; grid-row: 2; }
.ed--left { grid-column: 3 / span 4; grid-row: 3; }
.ed--right { grid-column: 7 / span 4; grid-row: 3; margin-top: clamp(2rem, 5vw, 4.5rem); }

@media (max-width: 860px) {
  .editorial { grid-template-columns: 1fr 1fr; column-gap: .9rem; row-gap: 2.25rem; }
  .ed--lead, .ed--wide { grid-column: 1 / -1; grid-row: auto; }
  .ed--side, .ed--tall, .ed--left, .ed--right { grid-column: auto; grid-row: auto; align-self: start; display: block; margin-top: 0; }
  .ed--side .gallery-item, .ed--tall .gallery-item { position: static; }
  .ed--side .gallery-item img, .ed--tall .gallery-item img { position: static; height: auto; }
  .ed--tall, .ed--right { margin-top: 3.5rem; }
  .ed figcaption { font-size: .95rem; }
}

/* Visionneuse */
.viewer {
  width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgba(24, 23, 18, .96); color: var(--blanc);
}
.viewer::backdrop { background: rgba(24, 23, 18, .96); }
.viewer[open] { display: grid; place-items: center; }
@media (prefers-reduced-motion: no-preference) {
  .viewer[open] { animation: fade 300ms var(--ease); }
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.viewer figure { margin: 0; display: grid; gap: 1rem; justify-items: center; padding: 4.5rem 1rem; }
.viewer img { max-width: min(92vw, 1500px); max-height: calc(100dvh - 10rem); width: auto; height: auto; object-fit: contain; }
.viewer figcaption { font-family: var(--serif); font-style: italic; font-size: 1.1rem; text-align: center; color: rgba(252, 250, 246, .82); max-width: 40rem; }
.viewer button {
  position: absolute; width: 52px; height: 52px; border: 0; border-radius: 50%;
  background: rgba(252, 250, 246, .08); color: var(--blanc); font-size: 1.5rem; line-height: 1; cursor: pointer;
  transition: background-color var(--rapide);
}
.viewer button:hover { background: rgba(252, 250, 246, .18); }
.viewer .v-close { top: 1rem; right: 1rem; }
.viewer .v-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.viewer .v-next { right: 1rem; top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) {
  .viewer .v-prev, .viewer .v-next { top: auto; bottom: 1rem; transform: none; }
}

/* ==========================================================================
   Réservation (section sombre, unique)
   ========================================================================== */
.section--dark { background: var(--olive-fonce); color: var(--blanc); }
.section--dark .eyebrow { color: var(--sable); }
.section--dark .muted, .section--dark .prose p { color: rgba(252, 250, 246, .78); }
.section--dark a:not(.btn) { color: var(--blanc); }

.booking {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(1rem, 2.5vw, 2.5rem); align-items: center;
}
.booking-text { grid-column: 1 / span 6; }
.booking-media { grid-column: 8 / span 5; }
/* Bandeau réservation : texte à gauche, photographie pleine hauteur jusqu'au bord droit */
.booking-bleed { position: relative; overflow: hidden; }
.booking-bleed .booking-text { width: min(100%, 46%); }
.booking-bleed-media { position: absolute; top: 0; right: 0; bottom: 0; width: 46%; margin: 0; }
.booking-bleed-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; }
@media (max-width: 860px) {
  .booking-bleed { padding-bottom: 0; }
  .booking-bleed .booking-text { width: 100%; }
  .booking-bleed-media { position: static; width: 100%; margin-top: 3rem; }
  .booking-bleed-media img { height: auto; }
}

.phone-big {
  display: inline-block; margin: .5rem 0 0;
  font-family: var(--serif); font-size: clamp(2.2rem, 1.6rem + 2.4vw, 3.4rem); font-weight: 500; line-height: 1.1;
  text-decoration: none; letter-spacing: .01em;
  padding-block: .15rem;
}
.phone-big:hover { color: var(--sable); }
.info-list { display: grid; gap: 1.5rem; margin: 2.5rem 0 0; }
.info-list dt { font-size: var(--t-xs); font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--sable); margin-bottom: .3rem; }
.info-list dd { margin: 0; }
.section--light .info-list dt { color: var(--olive); }
@media (max-width: 860px) {
  .booking { display: block; }
  .booking-media { margin-top: 3rem; }
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq { max-width: 52rem; }
.faq details { border-top: 1px solid var(--ligne); }
.faq details:last-child { border-bottom: 1px solid var(--ligne); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 1.5rem;
  min-height: 64px; padding: 1.1rem 0; cursor: pointer; list-style: none;
  font-family: var(--serif); font-size: clamp(1.3rem, 1.15rem + .5vw, 1.55rem); font-weight: 500; line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 11px; height: 11px; margin-right: 4px;
  border-right: 1.5px solid var(--olive); border-bottom: 1.5px solid var(--olive);
  transform: translateY(-3px) rotate(45deg); transition: transform var(--moyen);
}
.faq details[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.faq details p { max-width: 42rem; padding-bottom: 1.5rem; color: var(--encre-douce); }
.faq a { color: var(--terre-fonce); }

/* ==========================================================================
   En-tête de page intérieure
   ========================================================================== */
.page-head { padding-block: clamp(3.5rem, 8vw, 7rem) clamp(2.5rem, 5vw, 4rem); }
.page-head h1 { font-size: clamp(2.6rem, 1.6rem + 4.2vw, 5rem); max-width: 16ch; }
.page-head .lede { margin-top: 1.5rem; }
.breadcrumb { margin-bottom: 2rem; font-size: var(--t-xs); letter-spacing: .08em; color: var(--encre-douce); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.breadcrumb li + li::before { content: "/"; margin-right: .5rem; color: var(--sable); }
.breadcrumb a { text-decoration: none; padding-block: .5rem; }
.breadcrumb a:hover { color: var(--encre); }

/* Liste de points (patrimoine, lieux) */
.points {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(2.5rem, 5vw, 4rem) clamp(2rem, 4vw, 3.5rem);
  margin: 0; padding: 0; list-style: none;
}
.points h3 { font-size: 1.6rem; margin-bottom: .5rem; }
.points p { color: var(--encre-douce); font-size: var(--t-sm); line-height: 1.75; }
.points .num { display: block; margin-bottom: 1rem; font-family: var(--serif); font-style: italic; font-size: 1.1rem; color: var(--terre-fonce); }
@media (max-width: 900px) { .points { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .points { grid-template-columns: 1fr; } }


/* Page Contact : fiche de service */
.contact-sheet {
  display: grid; grid-template-columns: minmax(0, 5fr) repeat(3, minmax(0, 3fr));
  gap: 2.5rem clamp(1.5rem, 3vw, 3rem);
}
.contact-cell { padding-top: 1.5rem; border-top: 1px solid var(--ligne); }
.contact-cell--phone { border-top-color: var(--terre); }
.contact-label { margin: 0 0 1rem; font-family: var(--sans); font-size: var(--t-xs); font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--olive); }
.contact-phone {
  display: inline-block; padding-block: .1rem;
  font-family: var(--serif); font-size: clamp(2.2rem, 1.6rem + 2.2vw, 3.2rem); font-weight: 500; line-height: 1.05;
  color: var(--encre); text-decoration: none; white-space: nowrap;
}
.contact-phone:hover { color: var(--terre-fonce); }
.contact-cell p { margin: 0 0 .6rem; }
.contact-phone + .muted { margin-top: .9rem; }
.contact-links .link { white-space: nowrap; }
.contact-cell .muted { font-size: var(--t-sm); }
.contact-cell .actions { margin-top: 1.5rem; }
.contact-cell address { font-style: normal; font-size: var(--t-lg); line-height: 1.5; }
.contact-links { display: flex; flex-direction: column; align-items: flex-start; margin-top: 1rem !important; }
.contact-mail { color: var(--encre); word-break: break-word; }
.contact-access { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.contact-notes { display: grid; gap: 2rem; }
.contact-notes h3 { font-size: 1.5rem; margin-bottom: .4rem; }
.contact-notes p { margin: 0; font-size: var(--t-sm); color: var(--encre-douce); }
.contact-notes a { color: var(--terre-fonce); }
@media (max-width: 1100px) { .contact-sheet { grid-template-columns: 1fr 1fr; } }
@media (max-width: 860px) { .contact-access { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .contact-sheet { grid-template-columns: 1fr; gap: 2rem; } }

/* Carte de localisation (page Contact) : affichée directement, même fond que la carte du guide */
.contact-map { position: relative; height: clamp(420px, 62vh, 640px); background: #EFE9DC; border: 1px solid var(--ligne); overflow: hidden; }
.contact-map > .contact-map-canvas { position: absolute; inset: 0; } /* l'emporte sur .maplibregl-map { position: relative } */
.contact-map-status { position: absolute; inset: 0; display: grid; place-content: center; padding: 2rem; margin: 0; text-align: center; font-size: var(--t-sm); color: var(--encre-douce); }
.contact-map-status a { color: var(--terre-fonce); }
.contact-map.is-ready .contact-map-status { display: none; }
@media (max-width: 760px) { .contact-map { height: max(340px, 58svh); } }

/* Pages légales */
.legal { max-width: 46rem; }
.legal h2 { font-size: 1.9rem; margin-top: 3rem; }
.legal p, .legal li { color: var(--encre-douce); }
.legal a { color: var(--terre-fonce); }

/* ==========================================================================
   Pied de page
   ========================================================================== */
.footer { padding-block: clamp(4rem, 8vw, 6.5rem) 2rem; background: var(--sable-clair); font-size: var(--t-sm); }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem clamp(2rem, 4vw, 4rem);
}
.footer .brand { align-items: flex-start; margin-bottom: 1.5rem; }
.footer .brand-place::before { display: none; }
.footer h2 { margin-bottom: 1rem; font-family: var(--sans); font-size: var(--t-xs); font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--olive); }
.footer p { color: var(--encre-douce); line-height: 1.8; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .1rem; }
.footer ul a { display: inline-block; padding-block: .7rem; line-height: 1.4; text-decoration: none; color: var(--encre); }
.footer ul a:hover { color: var(--terre-fonce); }
.footer address { font-style: normal; color: var(--encre-douce); line-height: 1.8; }
.footer address a { color: var(--encre); text-decoration: none; display: inline-block; padding-block: .65rem; line-height: 1.4; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem;
  margin-top: clamp(3rem, 6vw, 5rem); padding-top: 1.5rem; border-top: 1px solid var(--ligne);
  font-size: var(--t-xs); color: var(--encre-douce);
}
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 0 1.5rem; }
.footer-bottom a { display: inline-block; padding-block: .75rem; color: var(--encre-douce); }
.footer-bottom p { align-self: center; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Retour en haut (apparaît après défilement, voir farigoulette.js)
   ========================================================================== */
.to-top {
  position: fixed; z-index: 39;
  right: max(1.25rem, env(safe-area-inset-right)); bottom: calc(1.25rem + env(safe-area-inset-bottom));
  display: grid; place-items: center; width: 46px; height: 46px; padding: 0;
  border: 1px solid rgba(41, 40, 32, .16); border-radius: 50%;
  background: rgba(252, 250, 246, .95); color: var(--olive); cursor: pointer;
  box-shadow: 0 4px 14px -8px rgba(41, 40, 32, .45);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity var(--moyen), transform var(--moyen), visibility 0s linear 420ms, background-color var(--rapide), color var(--rapide);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; transition: opacity var(--moyen), transform var(--moyen), visibility 0s, background-color var(--rapide), color var(--rapide); }
.to-top:hover { background: var(--olive); color: var(--blanc); border-color: var(--olive); }
.to-top:focus-visible { outline: 2px solid var(--terre); outline-offset: 3px; }
.menu-open .to-top { opacity: 0; visibility: hidden; }
@media (max-width: 760px) {
  /* au-dessus de la barre Appeler · Réserver */
  .to-top { width: 44px; height: 44px; right: 12px; bottom: calc(56px + 12px + env(safe-area-inset-bottom)); }
}

/* ==========================================================================
   Barre d'action mobile
   ========================================================================== */
.action-bar { display: none; }
@media (max-width: 760px) {
  .action-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    display: grid; grid-template-columns: 1fr 1.6fr;
    padding-bottom: env(safe-area-inset-bottom);
    background: var(--encre);
    transition: transform var(--moyen);
  }
  /* Toujours présente sur mobile (Appeler · Réserver), sauf menu ouvert ; le pied de page lui laisse sa place. */
  .menu-open .action-bar { transform: translateY(110%); }
  .action-bar a {
    display: flex; align-items: center; justify-content: center; gap: .55rem;
    min-height: 56px; font-size: .74rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
    text-decoration: none; color: var(--blanc);
  }
  .action-bar svg { width: 18px; height: 18px; }
  .action-bar a:last-child { background: var(--terre); }
  @media (max-width: 380px) {
    .action-bar { grid-template-columns: 1fr 1.9fr; }
    .action-bar a { gap: .4rem; font-size: .66rem; letter-spacing: .08em; white-space: nowrap; }
  }
  .footer { padding-bottom: calc(2rem + 56px + env(safe-area-inset-bottom)); }
}

/* ==========================================================================
   Apparitions au défilement (uniquement si le JS est actif)
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 650ms var(--ease), transform 650ms var(--ease); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  .js [data-reveal="2"] { transition-delay: 90ms; }
  .js [data-reveal="3"] { transition-delay: 180ms; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ==========================================================================
   Guide du Haut-Var
   ========================================================================== */
:root { --cat-village: #A65F46; --cat-nature: #525846; --cat-patrimoine: #292820; --cat-terroir: #9A7A3E; }

/* Haut de page : titre discret, la carte juste en dessous */
.guide-top { padding-top: clamp(1.75rem, 3.5vw, 2.75rem); }
.guide-title { margin: 0 0 1.25rem; font-size: clamp(1.75rem, 1.35rem + 1.4vw, 2.6rem); line-height: 1.15; }
.guide-title .eyebrow { display: block; margin-bottom: .7rem; }
.guide-intro { max-width: 46rem; margin: clamp(2rem, 4vw, 3rem) 0 0; color: var(--encre-douce); }
.guide-filters { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.25rem; padding: 0; list-style: none; }
.guide-filters button {
  min-height: 44px; padding: .6em 1.15em;
  border: 1px solid rgba(41, 40, 32, .22); border-radius: 999px;
  background: transparent; color: var(--encre);
  font: 500 .82rem var(--sans); letter-spacing: .04em; cursor: pointer;
  transition: background-color var(--rapide), color var(--rapide), border-color var(--rapide);
}
.guide-filters button:hover { border-color: var(--encre); }
.guide-filters button[aria-pressed="true"] { background: var(--encre); color: var(--blanc); border-color: var(--encre); }
.guide-filters .swatch { display: inline-block; width: 8px; height: 8px; margin-right: .5em; border-radius: 50%; vertical-align: 1px; }
.guide-filters .f-short { display: none; }
@media (max-width: 560px) {
  .guide-filters .f-long { display: none; }
  .guide-filters .f-short { display: inline; }
}

.guide-explorer { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(1.5rem, 3vw, 3rem); align-items: start; }
.guide-list { list-style: none; margin: 0; padding: 0; max-height: clamp(380px, calc(100svh - 22.5rem), 680px); overflow-y: auto; border-top: 1px solid var(--ligne); }
.guide-list li { border-bottom: 1px solid var(--ligne); transition: background-color var(--rapide); }
.guide-list li.is-active { background: var(--blanc); }
.guide-item { display: grid; grid-template-columns: 1fr auto; gap: .25rem 1rem; padding: 1.1rem .75rem 1.1rem .25rem; }
.guide-item h3 { margin: 0; font-size: 1.35rem; line-height: 1.2; }
.guide-item h3 a { text-decoration: none; }
.guide-item h3 a:hover { color: var(--terre-fonce); }
.guide-item .meta { grid-column: 1 / -1; margin: 0; font-size: var(--t-xs); letter-spacing: .08em; text-transform: uppercase; color: var(--encre-douce); }
.guide-item .meta .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: .5em; vertical-align: 1px; }
.guide-item .short { grid-column: 1 / -1; margin: .2rem 0 0; font-size: var(--t-sm); color: var(--encre-douce); line-height: 1.6; }
.guide-item .show {
  grid-row: 1; grid-column: 2; align-self: start;
  min-height: 40px; padding: .4em .8em; border: 1px solid rgba(41, 40, 32, .2); border-radius: 2px;
  background: transparent; font: 600 .68rem var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--encre); cursor: pointer;
}
.guide-item .show:hover { background: var(--encre); color: var(--blanc); }
.guide-count { margin: 0 0 .75rem; font-size: var(--t-xs); letter-spacing: .14em; text-transform: uppercase; color: var(--olive); }

.guide-map { position: sticky; top: calc(var(--header-h) + 1rem); height: clamp(420px, calc(100svh - 20rem), 720px); background: #EFE9DC; border: 1px solid var(--ligne); overflow: hidden; }
.guide-map > .guide-map-canvas { position: absolute; inset: 0; } /* l'emporte sur .maplibregl-map { position: relative } */
.guide-map-status { position: absolute; inset: 0; display: grid; place-content: center; padding: 2rem; margin: 0; text-align: center; font-size: var(--t-sm); color: var(--encre-douce); }
.guide-map.is-ready .guide-map-status { display: none; }
.guide-home-btn {
  position: absolute; left: 10px; top: 10px; z-index: 3;
  min-height: 40px; padding: .5em .95em; border: 1px solid rgba(41, 40, 32, .15); border-radius: 2px;
  background: rgba(252, 250, 246, .95); color: var(--encre);
  font: 600 .7rem var(--sans); letter-spacing: .12em; text-transform: uppercase; cursor: pointer; box-shadow: 0 1px 6px rgba(41, 40, 32, .12);
}
.guide-home-btn:hover { background: var(--encre); color: var(--blanc); }

/* Marqueurs : point fin cerclé, couleur par catégorie ; nom en petites capitales pour les lieux majeurs */
.gmark { position: relative; display: block; width: 28px; height: 28px; padding: 0; border: 0; background: none; cursor: pointer; }
.gmark-dot { position: absolute; left: 50%; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--blanc); border: 2px solid currentColor; box-shadow: 0 0 0 3px rgba(252, 250, 246, .7); transition: transform var(--rapide); }
.gmark:hover .gmark-dot, .gmark.is-active .gmark-dot, .gmark:focus-visible .gmark-dot { transform: scale(1.35); background: currentColor; }
.gmark--village { color: var(--cat-village); }
.gmark--nature { color: var(--cat-nature); }
.gmark--patrimoine { color: var(--cat-patrimoine); }
.gmark--terroir { color: var(--cat-terroir); }
.gmark--home { color: var(--terre); width: 34px; height: 34px; }
.gmark--home .gmark-dot { width: 16px; height: 16px; margin: -8px 0 0 -8px; background: var(--terre); box-shadow: 0 0 0 4px rgba(252, 250, 246, .9), 0 0 0 5px var(--terre); }
.gmark-label {
  position: absolute; left: 50%; top: 100%; transform: translate(-50%, -2px); white-space: nowrap; pointer-events: none;
  font: 500 .95rem/1 var(--serif); letter-spacing: .08em; font-variant: small-caps; color: var(--encre);
  text-shadow: 0 0 3px var(--ivoire), 0 0 3px var(--ivoire), 0 0 6px var(--ivoire);
}
.gmark--home .gmark-label { font-weight: 600; color: var(--terre-fonce); font-size: 1.05rem; }
.gmark-label--right { left: 100%; top: 50%; transform: translate(2px, -55%); }
.gmark-label--left { left: auto; right: 100%; top: 50%; transform: translate(-2px, -55%); }
.gmark-label--top { top: auto; bottom: 100%; transform: translate(-50%, 2px); }

.maplibregl-popup-content { padding: 1rem 1.1rem .9rem; border-radius: 2px; background: var(--blanc); box-shadow: 0 10px 30px -12px rgba(41, 40, 32, .45); font-family: var(--sans); }
.maplibregl-popup-close-button { width: 32px; height: 32px; font-size: 1.2rem; color: var(--encre-douce); }
.gpop-kicker { margin: 0 0 .3rem; font-size: .66rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--olive); }
.gpop-title { margin: 0 1.2rem .4rem 0; font: 500 1.35rem/1.15 var(--serif); color: var(--encre); }
.gpop-text { margin: 0 0 .7rem; font-size: .85rem; line-height: 1.55; color: var(--encre-douce); }
.gpop-links { display: flex; flex-wrap: wrap; gap: .25rem 1rem; margin: 0; }
.gpop-links a { padding-block: .35rem; font-size: .7rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--terre-fonce); text-decoration: none; }
.maplibregl-ctrl-group { border-radius: 2px !important; box-shadow: 0 1px 6px rgba(41, 40, 32, .12) !important; }
.maplibregl-ctrl-group button { width: 40px !important; height: 40px !important; }
.maplibregl-ctrl-attrib { font-family: var(--sans); font-size: 11px; }

@media (max-width: 960px) {
  .guide-explorer { grid-template-columns: 1fr; }
  .guide-map { position: relative; top: 0; height: 62svh; min-height: 340px; order: -1; }
  .guide-list { max-height: none; overflow: visible; }
}
@media (max-width: 760px) {
  /* Les filtres passent à la ligne (jamais de défilement caché) ; pastilles un peu plus compactes,
     toujours lisibles et tactiles. La carte occupe la hauteur restante au-dessus de la barre fixe, sans excès. */
  .guide-filters { gap: .45rem; margin-bottom: 1rem; }
  .guide-filters button { min-height: 42px; padding: .5em .9em; font-size: .78rem; letter-spacing: .02em; }
  .guide-filters .swatch { margin-right: .4em; }
  .guide-explorer .guide-map { height: clamp(300px, calc(100svh - 27rem), 520px); min-height: 0; }
}
/* Sur une carte étroite et peu zoomée, seuls La Farigoulette et le lieu sélectionné gardent leur nom :
   les autres noms reviennent dès qu'on zoome (voir guide-map.js). */
.guide-map.is-compact .gmark:not(.gmark--home):not(.is-active) .gmark-label { display: none; }

/* Fiches */
.place { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(1.5rem, 4vw, 4rem); padding-block: clamp(2.5rem, 5vw, 4rem); border-top: 1px solid var(--ligne); scroll-margin-top: calc(var(--header-h) + 1rem); }
.place-aside { font-size: var(--t-sm); }
.place-aside .eyebrow { margin-bottom: .75rem; }
.place-aside dl { display: grid; gap: .9rem; margin: 1.5rem 0 0; }
.place-aside dt { font-size: var(--t-xs); font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--olive); }
.place-aside dd { margin: .15rem 0 0; color: var(--encre-douce); }
.place-aside .actions { margin-top: 1.5rem; }
.place-aside .actions .btn { min-height: 44px; padding: .75em 1.2em; font-size: .7rem; }
.place h3 { font-size: clamp(1.9rem, 1.5rem + 1.4vw, 2.6rem); margin-bottom: .6rem; }
.place-body .prose { max-width: 40rem; }
.place-body .why { margin-top: 1.5rem; padding-left: 1.25rem; border-left: 2px solid var(--sable); font-family: var(--serif); font-style: italic; font-size: 1.2rem; line-height: 1.5; color: var(--encre); max-width: 38rem; }
/* Photo principale de la fiche : grande, à ses proportions d'origine (aucun recadrage) */
.place-photo { margin: 1.25rem 0 1.75rem; max-width: 44rem; }
.place-photo img { display: block; width: 100%; height: auto; background: var(--sable-clair); }
.photo-credit { margin-top: .6rem; font-size: .72rem; line-height: 1.5; color: var(--encre-douce); }
.photo-credit a { color: inherit; text-underline-offset: .2em; }
.place-sources { margin-top: 1.5rem; font-size: var(--t-xs); color: var(--encre-douce); }
.place-sources summary { cursor: pointer; padding-block: .6rem; letter-spacing: .08em; }
.place-sources ul { margin: .25rem 0 0; padding-left: 1.1rem; }
.place-sources a { color: var(--encre-douce); word-break: break-word; }
.back-to-map { display: inline-block; margin-top: 1.25rem; padding-block: .5rem; font-size: var(--t-xs); letter-spacing: .12em; text-transform: uppercase; color: var(--encre-douce); }
@media (max-width: 860px) {
  .place { grid-template-columns: 1fr; }
  .place-body { order: -1; } /* sur mobile : le nom, la photo et le texte d'abord, les infos pratiques ensuite */
  .place-photo { margin-inline: calc(var(--gutter) * -1); }
  .place-photo .photo-credit { padding-inline: var(--gutter); }
}

.markets { width: 100%; max-width: 40rem; margin-top: 1.5rem; border-collapse: collapse; font-size: var(--t-sm); }
.markets th { text-align: left; padding: .6rem 1rem .6rem 0; font-size: var(--t-xs); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--olive); border-bottom: 1px solid var(--ligne); }
.markets td { padding: .7rem 1rem .7rem 0; border-bottom: 1px solid var(--ligne); color: var(--encre-douce); }
.markets td a { color: var(--encre); }

/* Itinéraires */
.trips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(2rem, 4vw, 3.5rem); counter-reset: trip; }
.trip h3 { font-size: 1.7rem; margin-bottom: .5rem; }
.trip .num { display: block; margin-bottom: .9rem; font-family: var(--serif); font-style: italic; color: var(--terre-fonce); }
.trip ol { margin: 1.25rem 0 0; padding: 0; list-style: none; border-left: 1px solid var(--sable); }
.trip li { position: relative; padding: 0 0 1.1rem 1.25rem; font-size: var(--t-sm); color: var(--encre-douce); }
.trip li::before { content: ""; position: absolute; left: -4px; top: .55em; width: 7px; height: 7px; border-radius: 50%; background: var(--ivoire); border: 1.5px solid var(--olive); }
.trip li strong { display: block; color: var(--encre); font-weight: 600; }
.trip li a { color: var(--terre-fonce); }
@media (max-width: 900px) { .trips { grid-template-columns: 1fr; } }

/* Bloc « Découvrez le Haut-Var » (accueil) */
.discover { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 2rem 4rem; align-items: end; }
.discover h2 { margin: 0; }
.discover--joined { margin-top: clamp(3.5rem, 7vw, 6rem); padding-top: clamp(2.5rem, 5vw, 4rem); border-top: 1px solid var(--ligne); }
.discover .actions { margin-top: 0; justify-content: flex-end; }
@media (max-width: 860px) { .discover { grid-template-columns: 1fr; } .discover .actions { justify-content: flex-start; } }

/* Impression : la carte doit pouvoir s'imprimer proprement */
@media print {
  .header, .action-bar, .footer, .actions, .mobile-menu { display: none !important; }
  body { background: #fff; }
  .section { padding-block: 1.5rem; }
}
