/* Hestia : olivier, huile et pierre. Palette issue du site d'origine, affinée. */
:root {
  --nuit: #2e2b18;        /* olive très foncé : fonds sombres, texte fort */
  --olive: #3e3a23;       /* panneau d'origine */
  --bronze: #8b7234;      /* bandeau de la carte d'origine */
  --huile: #c9ad57;       /* huile d'olive : liens et filets sur fond sombre */
  --feuille: #e9ebdc;     /* revers de feuille d'olivier : fond clair */
  --encre: #24220f;
  --piment: #b4432f;      /* uniquement pour les fermetures */
  --vert: #7e9a3a;        /* uniquement pour « ouvert » */

  --display: "GFS Didot", "Didot", "Bodoni 72", Georgia, serif;
  --texte: "Commissioner", "Segoe UI", system-ui, sans-serif;

  --pas: clamp(1rem, 0.6rem + 1.6vw, 2rem);
  --section: clamp(4rem, 2.5rem + 6vw, 8rem);
  --large: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 4.5rem; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  margin: 0;
  font-family: var(--texte);
  font-weight: 300;
  font-size: clamp(1rem, 0.95rem + 0.2vw, 1.0625rem);
  line-height: 1.6;
  color: var(--encre);
  background: var(--feuille);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--huile); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.05; margin: 0; }
h2 { font-size: clamp(2.4rem, 1.6rem + 3vw, 4rem); margin-bottom: .5em; }
h3 { font-size: clamp(1.4rem, 1.2rem + .6vw, 1.75rem); margin-bottom: .6em; }
p { margin: 0 0 1em; max-width: 62ch; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.titre-hero, .lieu { display: block; }
.titre-hero { padding-bottom: .14em; }
.sous-titre { width: 100%; margin: -.3em 0 1em; color: #5c5836; }
.skip { position: absolute; left: -999px; top: 0; background: var(--huile); color: var(--nuit); padding: .5em 1em; z-index: 100; }
.skip:focus { left: 1rem; }

.bouton {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px;
  padding: .7em 1.4em; border: 1px solid currentColor; border-radius: 999px;
  text-decoration: none; font-weight: 400; letter-spacing: .01em;
  transition: background-color .2s, color .2s;
}
.bouton:hover { background: rgba(255, 255, 255, .12); }
.bouton.plein { background: var(--huile); border-color: var(--huile); color: var(--nuit); font-weight: 600; }
.bouton.plein:hover { background: #dcc06a; }

/* ---------- Barre de navigation ---------- */
.barre {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: 4rem;
  display: flex; align-items: center; gap: var(--pas);
  padding: 0 var(--pas);
  color: #fff;
  transition: background-color .3s, box-shadow .3s;
}
.barre.defile { background: rgba(46, 43, 24, .94); backdrop-filter: blur(8px); box-shadow: 0 1px 0 rgba(201, 173, 87, .35); }
.marque { font-family: var(--display); font-size: 1.9rem; text-decoration: none; letter-spacing: .02em; margin-right: auto; }
.nav ul { list-style: none; display: flex; gap: clamp(1rem, 2vw, 2.2rem); margin: 0; padding: 0; }
.nav a { text-decoration: none; font-weight: 400; padding: .4em 0; border-bottom: 1px solid transparent; }
.nav a:hover, .nav a.actif { border-bottom-color: var(--huile); }
.nav { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2.4rem); }
.nav .langues { display: flex; gap: .15rem; font-size: .8rem; letter-spacing: .06em; }
.nav .langues a { display: block; padding: .35em .45em; border: 1px solid transparent; border-radius: 3px; font-family: inherit; font-size: inherit; opacity: .75; }
.nav .langues a:hover { opacity: 1; border-color: rgba(255, 255, 255, .35); }
.nav .langues a[aria-current] { opacity: 1; color: var(--huile); border-color: rgba(201, 173, 87, .6); }
.appel {
  display: inline-flex; align-items: center; gap: .5em; min-height: 40px; padding: 0 1em;
  border: 1px solid rgba(255, 255, 255, .5); border-radius: 999px; text-decoration: none; white-space: nowrap;
}
.appel svg { width: 1.05em; height: 1.05em; fill: currentColor; }
.appel:hover { border-color: var(--huile); color: var(--huile); }
.burger { display: none; width: 44px; height: 44px; border: 0; background: none; color: inherit; cursor: pointer; padding: 10px; }
.burger span, .burger span::before, .burger span::after { display: block; height: 1.5px; background: currentColor; position: relative; transition: transform .25s; }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; right: 0; }
.burger span::before { top: -7px; }
.burger span::after { top: 7px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Accueil ---------- */
.hero {
  position: relative; min-height: min(100svh, 980px); display: grid; align-items: end;
  color: #fff; overflow: hidden; isolation: isolate;
}
.hero-fond {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(46, 43, 24, .55) 0%, rgba(46, 43, 24, .15) 35%, rgba(46, 43, 24, .85) 100%),
    url("../images/fond-olives.webp") center 40% / cover no-repeat;
}
.hero-contenu { width: 100%; max-width: var(--large); margin: 0 auto; padding: 8rem var(--pas) clamp(2.5rem, 6vh, 5rem); }
.lieu { font-family: var(--texte); font-size: 1rem; line-height: 1.6; font-weight: 400; color: #ecd894; margin-bottom: .2em; text-shadow: 0 1px 8px rgba(0,0,0,.5); }
.titre-hero {
  font-size: clamp(5.5rem, 2rem + 17vw, 15rem);
  line-height: .85; letter-spacing: -.01em; margin-left: -.04em;
  animation: lever 1.2s cubic-bezier(.2, .7, .2, 1) both;
}
@keyframes lever { from { opacity: 0; transform: translateY(.15em); letter-spacing: .06em; } to { opacity: 1; transform: none; } }
.devise { font-family: var(--display); font-size: clamp(1.35rem, 1rem + 1.4vw, 2.1rem); line-height: 1.25; margin: .5em 0 1.2em; max-width: 30ch; }
.statut { display: inline-flex; align-items: center; gap: .6em; margin: 0 0 1.4em; padding: .45em 1em; border-radius: 999px; background: rgba(46, 43, 24, .7); }
.pastille { width: .6em; height: .6em; border-radius: 50%; background: var(--huile); flex: none; }
.statut.ouvert .pastille { background: var(--vert); box-shadow: 0 0 0 4px rgba(126, 154, 58, .3); }
.statut.ferme .pastille { background: var(--piment); }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.avis-clients { list-style: none; margin: 1.6rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; }
.avis-clients a { display: inline-flex; align-items: center; gap: .55em; text-decoration: none; color: #fff; padding: .35em 0; border-bottom: 1px solid transparent; }
.avis-clients a:hover { border-bottom-color: var(--huile); }
.avis-clients svg { width: 1.35em; height: 1.35em; fill: currentColor; flex: none; }
.avis-site { font-weight: 600; }
.avis-note { color: #ecd894; }
.avis-note small { color: rgba(255, 255, 255, .75); font-size: .85em; }
.avis { max-width: 46rem; margin: 0 0 1.4em; padding: .8em 1.1em; border-left: 3px solid var(--piment); background: rgba(46, 43, 24, .75); color: #fff; }
.avis p { margin: .2em 0; max-width: none; }

/* ---------- La cuisine ---------- */
.cuisine {
  max-width: var(--large); margin: 0 auto; padding: var(--section) var(--pas);
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 5rem); align-items: center;
}
.intro { font-family: var(--display); font-size: clamp(1.3rem, 1.1rem + .7vw, 1.65rem); line-height: 1.35; }
.mosaique {
  margin: 0; display: grid; gap: .6rem;
  grid-template-columns: repeat(6, 1fr); grid-template-rows: repeat(5, minmax(60px, 7.2vw));
  grid-template-areas: "a a a b b c" "a a a b b c" "d d e e e f" "g h e e e f" "g h i i j j";
}
.mosaique img { width: 100%; height: 100%; object-fit: cover; border-radius: 2px; }
.m1 { grid-area: a; } .m2 { grid-area: b; } .m3 { grid-area: c; } .m4 { grid-area: d; } .m5 { grid-area: e; }
.m6 { grid-area: f; } .m7 { grid-area: g; } .m8 { grid-area: h; } .m9 { grid-area: i; } .m10 { grid-area: j; }

/* ---------- La salle ---------- */
.salle { background: var(--nuit); color: var(--feuille); padding: var(--section) 0; }
.salle-texte { max-width: var(--large); margin: 0 auto 2.5rem; padding: 0 var(--pas); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 5rem); align-items: end; }
.salle-texte p { font-size: 1.15em; }
.galerie {
  display: flex; gap: .8rem; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 0 var(--pas) 1rem; scrollbar-color: var(--bronze) transparent;
}
.galerie img { height: clamp(260px, 32vw, 460px); width: auto; flex: none; object-fit: cover; scroll-snap-align: center; border-radius: 2px; }
@media (min-width: 1300px) {
  .galerie { padding-left: calc((100vw - var(--large)) / 2 + var(--pas)); }
}

/* ---------- La carte ---------- */
.carte { max-width: var(--large); margin: 0 auto; padding: var(--section) var(--pas); }
.carte-entete { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 0 2rem; }
.carte-entete p { color: #5c5836; }
.onglets {
  position: sticky; top: 4rem; z-index: 10;
  display: flex; gap: .5rem; overflow-x: auto; padding: .8rem 0; margin-bottom: 1.5rem;
  background: var(--feuille); scrollbar-width: none;
  box-shadow: 0 1px 0 rgba(139, 114, 52, .35);
}
.onglets::-webkit-scrollbar { display: none; }
.onglets a {
  flex: none; padding: .45em 1em; border-radius: 999px; text-decoration: none; white-space: nowrap;
  border: 1px solid rgba(62, 58, 35, .3); font-weight: 400; font-size: .95em;
}
.onglets a:hover { border-color: var(--bronze); }
.onglets a.actif { background: var(--olive); border-color: var(--olive); color: var(--feuille); }
.carte-contenu { columns: 2 26rem; column-gap: clamp(2rem, 5vw, 5rem); }
.categorie { break-inside: avoid; padding-top: 1.5rem; margin-bottom: 1.5rem; }
.categorie h3 { display: flex; align-items: baseline; gap: .6em; border-bottom: 1px solid var(--bronze); padding-bottom: .3em; }
.categorie ul { list-style: none; margin: 0; padding: 0; }
.categorie li { display: grid; grid-template-columns: 1fr auto; gap: 1.5rem; padding: .65em 0; border-bottom: 1px dotted rgba(139, 114, 52, .5); }
.plat-nom { font-weight: 400; }
.plat-desc { display: block; font-size: .92em; color: #5c5836; }
.prix { font-family: var(--display); font-size: 1.2em; white-space: nowrap; font-variant-numeric: lining-nums; }
.attente { text-align: center; }

/* ---------- Actualités (page Facebook) ---------- */
.actus {
  max-width: var(--large); margin: 0 auto; padding: 0 var(--pas) var(--section);
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 5rem); align-items: start;
}
.actus-texte { position: sticky; top: 6rem; }
.fb-cadre { width: 100%; max-width: 500px; min-height: 200px; justify-self: center; }
.fb-cadre iframe { display: block; width: 100%; border: 0; background: #fff; border-radius: 2px; box-shadow: 0 1px 0 rgba(139, 114, 52, .35); }

/* ---------- Réservation ---------- */
.reserver {
  background: var(--olive); color: var(--feuille);
  padding: var(--section) max(var(--pas), calc((100% - var(--large)) / 2 + var(--pas)));
  margin-bottom: var(--section);
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 5rem); align-items: start;
}
.reserver h2 { color: #fff; }
.reserver-tel a { color: var(--huile); font-weight: 600; white-space: nowrap; }
.form-reserver { background: var(--feuille); color: var(--encre); border-radius: 4px; padding: clamp(1.2rem, 3vw, 2rem); }
.form-reserver .champs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem 1.2rem; margin-bottom: 1.2rem; }
.form-reserver .champs[hidden] { display: none; }
.form-reserver label { display: flex; flex-direction: column; gap: .3rem; font-size: .9rem; color: #5c5836; }
.form-reserver .large { grid-column: 1 / -1; }
.form-reserver input[type=date], .form-reserver input[type=text], .form-reserver input[type=tel], .form-reserver input[type=email],
.form-reserver select, .form-reserver textarea {
  font: inherit; color: var(--encre); background: #fff; border: 1px solid #b9b49a; border-radius: 3px;
  min-height: 48px; padding: .5rem .7rem; width: 100%;
}
.form-reserver textarea { resize: vertical; min-height: 4.5rem; }
.form-reserver select:disabled { color: #8a866a; background: #f3f2ea; }
.form-reserver .accord { flex-direction: row; align-items: flex-start; gap: .6rem; font-size: .85rem; }
.form-reserver .accord input { width: 20px; height: 20px; margin-top: .15rem; flex: none; accent-color: var(--olive); }
.form-reserver .piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-reserver .bouton.plein { min-width: 14rem; }
.form-reserver .bouton[disabled] { opacity: .5; cursor: not-allowed; }
.res-groupe { background: #f4e8c4; padding: .6rem .9rem; border-radius: 3px; }
.res-groupe a { font-weight: 600; }
.res-message { margin: 1rem 0 0; min-height: 1.5em; }
.res-message.erreur { color: var(--piment); font-weight: 600; }
.res-message.ok { background: #dfe9cc; padding: 1rem; border-radius: 3px; font-size: 1.05em; }
.res-message:focus { outline: none; }
.res-ferme { background: #f4e8c4; padding: 1rem; }

/* ---------- Accès et contact ---------- */
.contact {
  max-width: var(--large); margin: 0 auto; padding: 0 var(--pas) var(--section);
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(2rem, 4vw, 4rem); align-items: start;
}
address { font-style: normal; font-size: 1.15em; margin-bottom: 1em; }
.liens a { font-weight: 400; }
.horaires { border-collapse: collapse; width: 100%; }
.horaires th, .horaires td { text-align: left; vertical-align: top; padding: .55em 0; border-bottom: 1px solid rgba(139, 114, 52, .3); font-weight: 300; }
.horaires th { font-weight: 400; padding-right: 1rem; }
.horaires td { text-align: right; }
.horaires tr.aujourdhui th, .horaires tr.aujourdhui td { font-weight: 600; }
.horaires tr.aujourdhui th[data-auj]::after { content: " (" attr(data-auj) ")"; font-weight: 300; font-size: .85em; color: var(--bronze); }
.horaires .ferme { color: var(--piment); }
#liste-conges .avis { background: #f4e3dc; color: var(--encre); margin-top: 1.2em; }
.plan iframe { width: 100%; aspect-ratio: 4 / 5; border: 0; border-radius: 2px; filter: saturate(.7) sepia(.15); }

/* ---------- Pied de page ---------- */
.pied { background: var(--nuit); color: var(--feuille); }
.meandre {
  height: 22px; opacity: .6; margin-top: 1.5rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='22' viewBox='0 0 24 22'%3E%3Cpath d='M0 20H20V2H4V16H16V6H8V12H12' fill='none' stroke='%23c9ad57' stroke-width='2'/%3E%3C/svg%3E") repeat-x 0 0 / 24px 22px;
}
.pied-contenu {
  max-width: var(--large); margin: 0 auto; padding: 3rem var(--pas);
  display: flex; flex-wrap: wrap; gap: 1.5rem 3rem; align-items: center; justify-content: space-between;
}
.pied-contenu p { margin: 0; }
.pied .marque { font-size: 2.4rem; margin: 0; }
.reseaux { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.reseaux a { display: inline-flex; align-items: center; gap: .5em; text-decoration: none; }
.reseaux a:hover { color: var(--huile); }
.reseaux svg { width: 1.4em; height: 1.4em; fill: currentColor; }

/* ---------- Tablette ---------- */
@media (max-width: 1024px) {
  .contact { grid-template-columns: 1fr 1fr; }
  .plan { grid-column: 1 / -1; }
  .plan iframe { aspect-ratio: 16 / 9; }
}

/* ---------- Téléphone et petite tablette ---------- */
@media (max-width: 980px) {
  .burger { display: block; }
  .appel span { display: none; }
  .appel { width: 44px; height: 44px; padding: 0; justify-content: center; }
  .nav ul {
    position: fixed; inset: 4rem 0 auto 0; flex-direction: column; gap: 0;
    background: rgba(46, 43, 24, .98); padding: .5rem var(--pas) 1.5rem;
    transform: translateY(-110%); visibility: hidden; transition: transform .3s, visibility .3s;
  }
  .nav ul.ouvert { transform: none; visibility: visible; }
  .nav a { display: block; padding: .9em 0; font-family: var(--display); font-size: 1.6rem; border-bottom: 1px solid rgba(201, 173, 87, .2); }
  .barre:has(.ouvert) { background: rgba(46, 43, 24, .98); }
  .nav { gap: 0; }
  .nav .langues a { padding: .5em .4em; border-bottom: 1px solid transparent; }
  .cuisine, .salle-texte, .actus, .reserver { grid-template-columns: 1fr; }
  .form-reserver .champs { grid-template-columns: 1fr 1fr; }
  .actus-texte { position: static; }
  .mosaique { grid-template-rows: repeat(5, minmax(60px, 14vw)); }
  .contact { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .actions .bouton { flex: 1 1 100%; }
  .form-reserver .champs { grid-template-columns: 1fr; }
  .form-reserver .bouton.plein { width: 100%; }
  .mosaique { grid-template-columns: 1fr 1fr; grid-template-rows: auto; grid-template-areas: "a a" "b c" "d e" "f g" "h i"; }
  .m10 { display: none; }
  .mosaique img { aspect-ratio: 4 / 3; height: auto; }
  .m1 { aspect-ratio: 3 / 2 !important; }
  .categorie li { gap: 1rem; }
}
/* Très grands écrans */
@media (min-width: 1800px) { :root { --large: 1440px; } }
