﻿/*
Theme Name: Au Château
Theme URI: https://auchateau.ch
Author: Restaurant Au Château
Description: Thème sur mesure pour le Restaurant Au Château, Estavayer-le-Lac. Page d'accueil unique avec ancres, carte des mets gérée depuis l'administration, formulaire de réservation par email, vidéo de fond facultative, thème sombre et clair au choix du visiteur. Aucune dépendance à un constructeur de pages.
Version: 1.3.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: au-chateau
Tags: restaurant, one-page, dark-mode, custom-menu, custom-logo, translation-ready
*/

/* =========================================================
   1. Jetons de couleur
   -----------------------------------------------------------
   Le thème sombre est la valeur par défaut. Le thème clair est
   appliqué par l'attribut data-theme="light" posé sur <html> :
   soit par le script anti-scintillement (voir functions.php),
   soit par le bouton de bascule (voir js/main.js).
   ========================================================= */

:root {
  /* --- Thème sombre --- */
  --bg:            #0f0d0b;
  --bg-alt:        #16130f;
  --text:          #f2ebdd;
  --text-soft:     #c2b9a9;
  --muted:         #8d8477;

  --gold:          #c9a24b;
  --accent-deep:   #e0c88a;
  --gold-hover:    #dcb767;
  --gold-wash:     rgba(201, 162, 75, .13);
  --line:          rgba(201, 162, 75, .28);

  --header-bg:     rgba(15, 13, 11, .82);
  --header-bg-fix: rgba(15, 13, 11, .97);
  --footer-bg:     #080706;
  --input-bg:      #17140f;
  --btn-gold-text: #14110e;
  --shadow:        rgba(0, 0, 0, .5);

  /* Constantes : textes posés sur une image ou un fond toujours sombre. */
  --on-dark:       #faf3e0;
  --rouge:         #d98878;
  --vert:          #9dc48a;

  --font-display: "Playfair Display", Georgia, serif;
  --font-body:    "EB Garamond", Georgia, serif;

  --header-h: 88px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

:root[data-theme="light"] {
  --bg:            #faf3e0;
  --bg-alt:        #f3e9d2;
  --text:          #1a1714;
  --text-soft:     #4a423a;
  --muted:         #8a7f70;

  --gold:          #b8863b;
  --accent-deep:   #6b4b28;
  --gold-hover:    #6b4b28;
  --gold-wash:     #f0e3c4;
  --line:          rgba(184, 134, 59, .28);

  --header-bg:     rgba(250, 243, 224, .82);
  --header-bg-fix: rgba(250, 243, 224, .97);
  --footer-bg:     #14110e;
  --input-bg:      #faf3e0;
  --btn-gold-text: #faf3e0;
  --shadow:        rgba(26, 23, 20, .1);

  --rouge:         #9b3d2e;
  --vert:          #4a6b3d;
}

/* =========================================================
   2. Base
   ========================================================= */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  background: var(--bg);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  transition: background-color .4s var(--ease), color .4s var(--ease);
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 999;
  padding: 1rem 1.5rem;
  background: var(--gold);
  color: var(--btn-gold-text);
  font-size: .8rem;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.skip-link:focus { left: 1rem; top: 1rem; }

.container { width: min(1200px, 100% - 3rem); margin-inline: auto; }
.container-narrow { width: min(860px, 100% - 3rem); }

.centre { text-align: center; }
.note-centre { text-align: center; }

/* Classes générées par WordPress. */
.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}
.alignleft  { float: left;  margin: .5rem 1.5rem 1rem 0; }
.alignright { float: right; margin: .5rem 0 1rem 1.5rem; }
.aligncenter { margin-inline: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-style: italic; font-size: .95rem; color: var(--muted); }

/* =========================================================
   3. Typographie utilitaire
   ========================================================= */

.eyebrow {
  margin: 0 0 1.25rem;
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--gold);
}
.eyebrow-light { color: var(--accent-deep); }

.section-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.4rem, 5vw, 3.9rem);
  line-height: 1.12;
  letter-spacing: -.01em;
}
.section-title em { font-style: italic; color: var(--accent-deep); }
.section-title-sm { font-size: clamp(1.9rem, 3.4vw, 2.5rem); }

.rule {
  display: block;
  width: 68px;
  height: 1px;
  margin: 1.75rem auto 0;
  background: var(--gold);
}
.rule-left { margin-inline: 0; }

.note { font-size: .98rem; font-style: italic; color: var(--muted); }
.note a { color: var(--gold); border-bottom: 1px solid var(--line); }

.link-arrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  border-bottom: 1px solid var(--line);
  padding-bottom: .35rem;
  transition: color .25s var(--ease), border-color .25s var(--ease);
}
.link-arrow span { display: inline-block; transition: transform .25s var(--ease); }
.link-arrow:hover { color: var(--accent-deep); border-color: var(--accent-deep); }
.link-arrow:hover span { transform: translateX(5px); }

/* =========================================================
   4. Boutons
   ========================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.05rem 2.4rem;
  border: 1px solid transparent;
  border-radius: 2px;
  font-family: var(--font-body);
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color .28s var(--ease), color .28s var(--ease),
              border-color .28s var(--ease), transform .28s var(--ease);
}
.btn-gold {
  background: var(--gold);
  color: var(--btn-gold-text);
  border-color: var(--gold);
}
.btn-gold:hover {
  background: var(--gold-hover);
  border-color: var(--gold-hover);
  transform: translateY(-2px);
}

/* Toujours posé sur le hero sombre : couleurs constantes. */
.btn-outline { background: transparent; color: var(--on-dark); border-color: rgba(201, 162, 75, .8); }
.btn-outline:hover { background: rgba(201, 162, 75, .16); border-color: #c9a24b; transform: translateY(-2px); }

.btn-sm { padding: .78rem 1.7rem; font-size: .72rem; }

/* =========================================================
   5. En-tête
   ========================================================= */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background-color .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header.is-scrolled {
  background: var(--header-bg-fix);
  border-bottom-color: var(--line);
  box-shadow: 0 6px 30px var(--shadow);
}

.header-inner {
  width: min(1320px, 100% - 3rem);
  margin-inline: auto;
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.logo { display: flex; flex-direction: column; line-height: 1; }
.logo-kicker {
  font-size: .62rem;
  letter-spacing: .38em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .4rem;
}
.logo-name { font-family: var(--font-display); font-size: 1.6rem; letter-spacing: .01em; }
.logo-light .logo-name { color: var(--on-dark); }
.logo-image img { max-height: 56px; width: auto; }

.nav { margin-left: auto; }
.nav-list {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav-list a {
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-soft);
  padding-bottom: .3rem;
  border-bottom: 1px solid transparent;
  transition: color .25s var(--ease), border-color .25s var(--ease);
}
.nav-list a:hover,
.nav-list a.is-current,
.nav-list .current-menu-item > a { color: var(--gold); border-bottom-color: var(--gold); }

.nav-cta-mobile { display: none; }
.header-cta { flex-shrink: 0; }

/* --- Bascule sombre / clair --- */
.theme-toggle {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--gold);
  cursor: pointer;
  transition: color .25s var(--ease), border-color .25s var(--ease), background-color .25s var(--ease);
}
.theme-toggle:hover { color: var(--accent-deep); border-color: var(--gold); background: var(--gold-wash); }
.theme-toggle svg { width: 18px; height: 18px; display: block; }

/* Une seule des deux icônes est visible selon le thème actif. */
.theme-toggle .icon-sun  { display: block; }
.theme-toggle .icon-moon { display: none; }
:root[data-theme="light"] .theme-toggle .icon-sun  { display: none; }
:root[data-theme="light"] .theme-toggle .icon-moon { display: block; }

.burger {
  display: none;
  width: 44px; height: 44px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}
.burger span {
  display: block;
  height: 1px; width: 26px;
  margin-inline: auto;
  background: var(--text);
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   6. Hero — toujours sombre, quel que soit le thème
   ========================================================= */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: calc(var(--header-h) + 3rem) 1.5rem 7rem;
  background: #0f0d0b;
}
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Vidéo de fond : posée par-dessus la photo, révélée seulement une fois la
   lecture réellement lancée (voir js/main.js). La photo reste visible en
   dessous pendant le chargement et si la vidéo ne démarre pas. */
.hero-video {
  opacity: 0;
  transition: opacity .9s var(--ease);
  pointer-events: none;
}
.hero-video.is-playing { opacity: 1; }
.hero-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(15, 13, 11, .74) 0%, rgba(15, 13, 11, .46) 40%, rgba(15, 13, 11, .86) 100%);
}
.hero-content { position: relative; max-width: 780px; }
.hero .eyebrow { color: #c9a24b; }

.hero-title {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3.6rem, 11vw, 8rem);
  line-height: 1;
  color: var(--on-dark);
  letter-spacing: -.015em;
}
.hero-sub {
  margin: 0 0 3rem;
  font-style: italic;
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  color: rgba(250, 243, 224, .85);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }

.scroll-cue {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .9rem;
}
.scroll-cue-label {
  font-size: .64rem;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: rgba(250, 243, 224, .7);
}
.scroll-cue-line {
  width: 1px; height: 52px;
  background: linear-gradient(to bottom, rgba(201, 162, 75, .9), transparent);
  animation: cue 2.4s var(--ease) infinite;
  transform-origin: top;
}
@keyframes cue {
  0%, 100% { transform: scaleY(.45); opacity: .5; }
  50%      { transform: scaleY(1);   opacity: 1; }
}

/* =========================================================
   7. Sections
   ========================================================= */

.section { padding: clamp(5rem, 10vw, 8.5rem) 0; }
.section-head { text-align: center; margin-bottom: 4rem; }
.section-ambiance { background: var(--bg-alt); }
.section-reservation { background: var(--bg-alt); }
.section-interieur { padding-top: calc(var(--header-h) + clamp(3rem, 7vw, 6rem)); }

/* =========================================================
   8. Carte des mets
   ========================================================= */

/* La carte compte neuf catégories : la barre d'onglets défile
   horizontalement plutôt que de passer à la ligne. */
.tabs-wrap {
  margin-bottom: 3.5rem;
  overflow-x: auto;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}
.tabs {
  display: flex;
  justify-content: flex-start;
  gap: .75rem;
  min-width: min-content;
  padding-bottom: .75rem;
  margin-inline: auto;
  width: max-content;
  max-width: 100%;
}
.tab {
  flex-shrink: 0;
  padding: .85rem 1.6rem;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 2px;
  font-family: var(--font-body);
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--text-soft);
  cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.tab:hover { color: var(--gold); border-color: var(--gold); }
.tab.is-active { background: var(--gold-wash); border-color: var(--gold); color: var(--accent-deep); }

.menu-panels { max-width: 860px; margin-inline: auto; }
.menu-panel { animation: panelIn .45s var(--ease); }
.menu-panel[hidden] { display: none; }

/* Bandeaux d'accordéon : invisibles sur ordinateur, où ce sont les onglets
   qui pilotent les panneaux. Ils prennent le relais sous 768 px. */
.cat-heading { display: none; }
.carte-cat { scroll-margin-top: calc(var(--header-h) + 1rem); }
@keyframes panelIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

.dish {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--line);
}
.dish:last-of-type { border-bottom: none; }
.dish-text { flex: 0 1 auto; }
.dish-name {
  margin: 0 0 .3rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.4rem;
  line-height: 1.3;
}
.dish-desc { margin: 0; font-style: italic; font-size: 1rem; color: var(--muted); }
.dish-dots {
  flex: 1 1 auto;
  min-width: 1.5rem;
  height: 1px;
  background-image: radial-gradient(circle, var(--line) 1px, transparent 1px);
  background-size: 7px 1px;
  background-repeat: repeat-x;
  transform: translateY(-4px);
}
.dish-price {
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--gold);
  white-space: nowrap;
}
.dish-mention {
  display: block;
  font-family: var(--font-body);
  font-size: .82rem;
  font-style: italic;
  color: var(--muted);
  text-align: right;
}

.panel-note {
  margin: 2rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: .95rem;
  font-style: italic;
  color: var(--muted);
}

.carte-foot { text-align: center; margin-top: 3.5rem; }
.carte-foot .note { margin: 0 0 1.75rem; }

/* =========================================================
   9. Galerie ambiance
   ========================================================= */

.gallery {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  grid-template-areas:
    "lg sm1"
    "lg sm2"
    "wide wide";
  gap: 1.25rem;
}
.gal-lg    { grid-area: lg; }
.gal-sm-1  { grid-area: sm1; }
.gal-sm-2  { grid-area: sm2; }
.gal-wide  { grid-area: wide; }

.gal { position: relative; margin: 0; overflow: hidden; border-radius: 2px; }
.gal img {
  width: 100%; height: 100%;
  min-height: 240px;
  object-fit: cover;
  transition: transform .8s var(--ease);
}
.gal-lg img { min-height: 520px; }
.gal-wide img { min-height: 280px; }
.gal:hover img { transform: scale(1.045); }

.gal figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 3rem 1.75rem 1.4rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.3rem;
  color: #fff;
  background: linear-gradient(to top, rgba(15, 13, 11, .72), transparent);
}

.ambiance-notes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem 3rem;
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--line);
}
.ambiance-notes p { margin: 0; font-style: italic; color: var(--text-soft); }

/* =========================================================
   10. Le restaurant
   ========================================================= */

.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
}
.story-media img {
  width: 100%; height: 100%;
  max-height: 680px;
  object-fit: cover;
  border-radius: 2px;
}
.story-text p { color: var(--text-soft); }
.story-text .rule-left { margin-bottom: 2rem; }

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  margin: 2.75rem 0;
  padding: 1.75rem 0;
  list-style: none;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.facts li { display: flex; flex-direction: column; gap: .4rem; }
.fact-label {
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--gold);
}
.fact-value { font-family: var(--font-display); font-size: 1.15rem; line-height: 1.3; }

/* =========================================================
   11. Formulaire de réservation
   ========================================================= */

.form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem 2rem;
}
.field { display: flex; flex-direction: column; }
.field-full { grid-column: 1 / -1; }

.honeypot { position: absolute; left: -9999px; }

.field label {
  margin-bottom: .7rem;
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--gold);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: .95rem 1.1rem;
  background: var(--input-bg);
  border: 1px solid var(--line);
  border-radius: 2px;
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--text);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.field textarea { resize: vertical; }
.field input::placeholder,
.field textarea::placeholder { color: var(--muted); font-style: italic; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-wash);
}
/* Rend la roulette du sélecteur de date lisible sur fond sombre. */
:root:not([data-theme="light"]) .field input[type="date"] { color-scheme: dark; }

.form-notice {
  max-width: 640px;
  margin: 0 auto 2.5rem;
  padding: 1.1rem 1.5rem;
  border-left: 2px solid var(--gold);
  background: var(--gold-wash);
  font-size: 1rem;
  text-align: center;
}
.form-notice-succes { border-left-color: var(--vert); }
.form-notice-erreur { border-left-color: var(--rouge); }

.form-foot {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  margin-top: 1rem;
}
.form-foot .note { margin: 0; }

/* =========================================================
   12. Horaires & contact
   ========================================================= */

.infos-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
}
.infos-col .rule-left { margin-bottom: 2.5rem; }

.hours-saison {
  margin: 0 0 1rem;
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--muted);
}
.hours { margin: 0; }
.hours-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.5rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}
.hours-row dt { font-family: var(--font-display); font-size: 1.1rem; }
.hours-row dd { margin: 0; font-size: 1rem; color: var(--text-soft); text-align: right; }
.hours-row.is-closed dt,
.hours-row.is-closed dd { color: var(--muted); }
.hours-row.is-closed dd { font-style: italic; }

.hours-ete {
  margin-top: 2rem;
  padding: 1.5rem 1.75rem;
  background: var(--gold-wash);
  border: 1px solid var(--line);
  border-radius: 2px;
}
.hours-ete p { margin: .6rem 0 0; font-size: 1rem; color: var(--text-soft); }

.contact-list {
  margin: 0 0 2.5rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 1.5rem;
}
.contact-list li { display: flex; flex-direction: column; gap: .45rem; }
.contact-value { font-size: 1.05rem; line-height: 1.6; }
.contact-value a { border-bottom: 1px solid var(--line); transition: color .25s var(--ease); }
.contact-value a:hover { color: var(--gold); }

.map-card { position: relative; overflow: hidden; border-radius: 2px; }
.map-card img { width: 100%; height: 260px; object-fit: cover; }
.map-btn { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.map-btn:hover { transform: translate(-50%, -50%) translateY(-2px); }

/* =========================================================
   13. Contenu éditorial (pages, articles)
   ========================================================= */

.prose { font-size: 1.12rem; }
.prose > * + * { margin-top: 1.5rem; }
.prose h2, .prose h3, .prose h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.25;
  margin-top: 2.5rem;
}
.prose h2 { font-size: 2rem; }
.prose h3 { font-size: 1.5rem; }
.prose a { color: var(--gold); border-bottom: 1px solid var(--line); }
.prose blockquote {
  margin-inline: 0;
  padding-left: 1.75rem;
  border-left: 2px solid var(--gold);
  font-style: italic;
  color: var(--text-soft);
}
.prose img { border-radius: 2px; }

.page-media { margin: 0 0 3rem; }
.page-media img { width: 100%; border-radius: 2px; }

.post-list { display: grid; gap: 3.5rem; }
.post-card-media img { width: 100%; border-radius: 2px; margin-bottom: 1.5rem; }
.post-card-title {
  margin: 0 0 .75rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.9rem;
  line-height: 1.2;
}
.post-card-excerpt { color: var(--text-soft); margin-bottom: 1.25rem; }

.post-nav {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  font-size: .95rem;
}
.post-nav a { color: var(--gold); }

.pagination { margin-top: 4rem; text-align: center; }
.pagination .page-numbers {
  display: inline-block;
  padding: .5rem .9rem;
  font-size: .9rem;
  color: var(--text-soft);
}
.pagination .current { background: var(--gold-wash); color: var(--accent-deep); border-radius: 2px; }

/* =========================================================
   14. Pied de page — sombre dans les deux thèmes
   ========================================================= */

.site-footer {
  background: var(--footer-bg);
  color: rgba(250, 243, 224, .68);
  padding: 3.5rem 0;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.footer-nav { display: flex; flex-wrap: wrap; gap: 1.9rem; }
.footer-nav a {
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  transition: color .25s var(--ease);
}
.footer-nav a:hover { color: #c9a24b; }
.copyright { margin: 0; font-size: .88rem; color: rgba(250, 243, 224, .45); }

/* =========================================================
   15. Apparition au scroll
   ========================================================= */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* =========================================================
   16. Responsive
   ========================================================= */

@media (max-width: 1080px) {
  .nav-list { gap: 1.5rem; }
  .nav-list a { font-size: .68rem; letter-spacing: .16em; }
}

@media (max-width: 900px) {
  :root { --header-h: 74px; }

  .container, .container-narrow, .header-inner { width: min(100% - 2.5rem, 1200px); }

  .burger { display: flex; }
  .header-cta { display: none; }
  .theme-toggle { margin-left: auto; }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    margin: 0;
    padding: 2rem 2rem 2.75rem;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 40px var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    max-height: calc(100svh - var(--header-h));
    overflow-y: auto;
    transform: translateY(-140%);
    opacity: 0;
    pointer-events: none;
    transition: transform .38s var(--ease), opacity .3s var(--ease);
  }
  .nav.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }

  .nav-list { flex-direction: column; align-items: flex-start; gap: 1.4rem; }
  .nav-list a { font-size: .82rem; letter-spacing: .2em; }
  .nav-cta-mobile { display: inline-flex; align-self: flex-start; }

  .story-grid,
  .infos-grid,
  .ambiance-notes { grid-template-columns: 1fr; }
  .story-media { order: -1; }
  .story-media img { max-height: 420px; }

  .gallery {
    grid-template-columns: 1fr;
    grid-template-areas: "lg" "sm1" "sm2" "wide";
  }
  .gal-lg img { min-height: 340px; }

  .form { grid-template-columns: 1fr; }
}

/* --- Carte des mets : accordéon à la place des onglets --- */
@media (max-width: 768px) {
  .tabs-wrap { display: none; }

  .cat-heading { display: block; margin: 0; }
  .carte-cat { border-bottom: 1px solid var(--line); }
  .carte-cat:first-child { border-top: 1px solid var(--line); }

  .cat-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    padding: 1.4rem 0;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 1.3rem;
    line-height: 1.25;
    color: var(--text);
    text-align: left;
    transition: color .25s var(--ease);
  }
  .cat-toggle:hover,
  .cat-toggle.is-open { color: var(--gold); }

  /* Signe + qui devient − à l'ouverture. */
  .cat-toggle-icon {
    position: relative;
    flex-shrink: 0;
    width: 15px;
    height: 15px;
  }
  .cat-toggle-icon::before,
  .cat-toggle-icon::after {
    content: "";
    position: absolute;
    inset: 50% 0 auto 0;
    height: 1px;
    background: var(--gold);
    transition: transform .3s var(--ease), opacity .3s var(--ease);
  }
  .cat-toggle-icon::after { transform: rotate(90deg); }
  .cat-toggle.is-open .cat-toggle-icon::after { transform: rotate(0deg); opacity: 0; }

  .menu-panel { padding-bottom: 1.75rem; }
  .dish:first-of-type { padding-top: .25rem; }
}

@media (max-width: 560px) {
  body { font-size: 1.06rem; }

  .hero { padding-bottom: 8rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }

  .tabs { margin-inline: 0; }

  /* Le prix passe sous la description, mais reste aligné à droite : il reste
     rattaché visuellement à son plat au lieu de flotter à gauche. */
  .dish { flex-wrap: wrap; }
  .dish-dots { display: none; }
  .dish-text { flex: 1 1 100%; }
  .dish-price { margin-top: .35rem; margin-left: auto; text-align: right; }
  .dish-mention { display: inline; margin-left: .5rem; }

  .facts { gap: 1.5rem 2.5rem; }

  .hours-row { flex-direction: column; gap: .3rem; }
  .hours-row dd { text-align: left; }

  .footer-inner { flex-direction: column; align-items: flex-start; }
}

/* =========================================================
   17. Accessibilité : mouvement réduit
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* Barre d'administration : ne pas masquer l'en-tête fixe. */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
}
