/* ==========================================================================
   Brasserie de l'Hôtel de Ville
   Palette et esprit inspirés du site Verjus : vert profond texturé, or, typo vintage.
   ========================================================================== */

:root {
  --vert:        #3b5e51;
  --vert-fonce:  #2c473d;
  --vert-nuit:   #18322c;
  --or:          #c49c6b;
  --or-clair:    #dcbb8e;
  --creme:       #f0e6d8;
  --creme-attenue: rgba(240, 230, 216, 0.72);

  --font-display: 'Bodoni Moda', Georgia, 'Times New Roman', serif;
  --font-ui: 'Oswald', 'Helvetica Neue', Arial, sans-serif;
  --font-body: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --largeur: 1100px;
  --gouttiere: clamp(1.25rem, 5vw, 3rem);
  --nav-h: 58px;
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

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

body {
  margin: 0;
  background-color: var(--vert);
  color: var(--creme);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  overflow-x: hidden;
}

/* Texture « foil » : deux trames diagonales très légères, sans fichier image. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(45deg,
      rgba(255,255,255,0.014) 0 2px, transparent 2px 5px),
    repeating-linear-gradient(-45deg,
      rgba(0,0,0,0.022) 0 2px, transparent 2px 5px);
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--or); text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { color: var(--or-clair); }

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

.saut-contenu {
  position: absolute;
  left: -9999px;
}
.saut-contenu:focus {
  left: 50%;
  transform: translateX(-50%);
  top: 0.5rem;
  z-index: 200;
  background: var(--creme);
  color: var(--vert-nuit);
  padding: 0.6rem 1.2rem;
  border-radius: 3px;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Titres
   -------------------------------------------------------------------------- */

h1, h2, h3 { margin: 0; font-weight: 400; line-height: 1.1; }

/* Relief façon enseigne peinte, repris de la référence Verjus. */
.titre-relief {
  font-family: var(--font-display);
  color: var(--or);
  -webkit-text-stroke: 0.01em var(--vert-nuit);
  text-shadow: 0.035em 0.035em 0 var(--vert-nuit);
}

.surtitre {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--or);
  margin: 0 0 0.5rem;
}

.section-titre {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3.2rem);
  color: var(--or);
  -webkit-text-stroke: 0.01em var(--vert-nuit);
  text-shadow: 0.035em 0.035em 0 var(--vert-nuit);
  text-align: center;
  margin-bottom: 0.4rem;
}

.filet {
  width: 90px;
  height: 1px;
  margin: 1.4rem auto 2.6rem;
  background: var(--or);
  opacity: 0.45;
  border: 0;
}

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(24, 50, 44, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(196, 156, 107, 0.22);
}

.nav-inner {
  max-width: var(--largeur);
  margin: 0 auto;
  padding: 0 var(--gouttiere);
  display: flex;
  align-items: center;
  gap: 1rem;
  height: var(--nav-h);
}

.nav-marque {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--or);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-liens {
  display: flex;
  gap: clamp(0.9rem, 2.4vw, 1.9rem);
  margin: 0 0 0 auto;
  padding: 0;
  list-style: none;
  /* Sans min-width, un élément flex refuse de descendre sous la largeur de son
     contenu : la barre pousserait alors la page entière au-delà du viewport. */
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.nav-liens::-webkit-scrollbar { display: none; }

.nav-liens a {
  font-family: var(--font-ui);
  font-size: 0.76rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--creme);
  text-decoration: none;
  white-space: nowrap;
  padding: 0.35rem 0;
  border-bottom: 1px solid transparent;
  transition: color 0.25s, border-color 0.25s;
}
.nav-liens a:hover,
.nav-liens a.actif {
  color: var(--or);
  border-bottom-color: var(--or);
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

.section {
  max-width: var(--largeur);
  margin: 0 auto;
  padding: clamp(3.5rem, 9vw, 6.5rem) var(--gouttiere);
}

.section--sombre {
  max-width: none;
  background: var(--vert-fonce);
}
.section--sombre > .section-inner {
  max-width: var(--largeur);
  margin: 0 auto;
}

.prose {
  max-width: 44rem;
  margin: 0 auto;
  text-align: center;
  color: var(--creme-attenue);
  font-size: 1.05rem;
}
.prose p + p { margin-top: 1.1rem; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem var(--gouttiere) 5rem;
  position: relative;
}

.hero-adresse {
  font-family: var(--font-display);
  font-size: clamp(0.85rem, 2.2vw, 1rem);
  color: var(--creme-attenue);
  margin: 0 0 clamp(1.5rem, 5vw, 3rem);
}

/* Le PNG blanc sur fond transparent sert de masque : la couleur vient du CSS. */
.hero-logo {
  height: clamp(185px, 30vh, 300px);
  aspect-ratio: 248 / 882;
  background-color: var(--or);
  -webkit-mask: url('../img/logo-reverbere.png') center / contain no-repeat;
  mask: url('../img/logo-reverbere.png') center / contain no-repeat;
  filter: drop-shadow(3px 3px 0 var(--vert-nuit));
}

/* Le réverbère ne porte plus le nom : c'est ce titre qui le dit. */
.hero-nom {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: 0.01em;
  color: var(--or);
  -webkit-text-stroke: 0.01em var(--vert-nuit);
  text-shadow: 0.035em 0.035em 0 var(--vert-nuit);
  margin: 1.6rem 0 0;
  /* Répartit les lignes quand le titre passe sur deux lignes, plutôt que de
     laisser « Ville » orphelin. Ignoré par les navigateurs qui ne le gèrent pas. */
  text-wrap: balance;
}

.hero-baseline {
  font-family: var(--font-ui);
  font-size: clamp(0.72rem, 2.2vw, 0.85rem);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--creme-attenue);
  margin: 1.6rem 0 0;
}

.hero-fleche {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 2px solid var(--or);
  border-radius: 20px;
  opacity: 0.65;
  transition: opacity 0.3s;
}
.hero-fleche:hover { opacity: 1; }
.hero-fleche::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 8px;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--or);
  animation: molette 2.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite;
}

@keyframes molette {
  0%   { transform: translateY(0);    opacity: 1; }
  70%  { transform: translateY(14px); opacity: 0; }
  100% { transform: translateY(0);    opacity: 0; }
}

/* --------------------------------------------------------------------------
   Plats du jour
   -------------------------------------------------------------------------- */

.grille-plats {
  display: grid;
  gap: 1.4rem;
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
}

/* La semaine compte cinq jours : au-delà de cette largeur, on les aligne d'un bloc
   plutôt que de laisser un orphelin sur une seconde ligne. */
@media (min-width: 1080px) {
  .grille-plats { grid-template-columns: repeat(5, 1fr); }
  .plat-nom { font-size: 1.12rem; }
}

.plat {
  background: rgba(24, 50, 44, 0.42);
  border: 1px solid rgba(196, 156, 107, 0.24);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.plat--aujourdhui {
  border-color: var(--or);
  box-shadow: 0 0 0 1px var(--or);
}

.plat-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: rgba(0, 0, 0, 0.15);
}

.plat-corps { padding: 1.15rem 1.25rem 1.35rem; }

.plat-jour {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--or);
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  margin-bottom: 0.55rem;
}

.plat-badge {
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  background: var(--or);
  color: var(--vert-nuit);
  padding: 0.1rem 0.45rem;
  border-radius: 2px;
}

.plat-nom {
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.25;
  color: var(--creme);
}

.plat-desc {
  margin: 0.55rem 0 0;
  font-size: 0.92rem;
  color: var(--creme-attenue);
}

.etat {
  text-align: center;
  color: var(--creme-attenue);
  font-style: italic;
  padding: 2rem 0;
}

/* --------------------------------------------------------------------------
   Menus
   -------------------------------------------------------------------------- */

.grille-menus {
  display: grid;
  gap: 1.6rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  max-width: 800px;
  margin: 0 auto;
}

.menu-carte {
  border: 1px solid rgba(196, 156, 107, 0.35);
  border-radius: 4px;
  padding: 2.2rem 1.6rem;
  text-align: center;
  background: rgba(24, 50, 44, 0.3);
}

.menu-nom {
  font-family: var(--font-display);
  font-size: 1.9rem;
  color: var(--or);
  -webkit-text-stroke: 0.01em var(--vert-nuit);
  text-shadow: 0.03em 0.03em 0 var(--vert-nuit);
}

.menu-prix {
  font-family: var(--font-ui);
  font-size: 2.6rem;
  color: var(--creme);
  margin: 0.7rem 0 0.2rem;
  line-height: 1;
}
.menu-prix sup { font-size: 0.42em; top: -0.9em; }

.menu-compo {
  font-size: 0.98rem;
  color: var(--creme);
  margin: 1.1rem 0 0;
}

.menu-inclus {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--or);
  margin-top: 1.1rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(196, 156, 107, 0.25);
}

/* --------------------------------------------------------------------------
   Classiques
   -------------------------------------------------------------------------- */

.grille-classiques {
  display: grid;
  gap: 0.2rem 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  max-width: 820px;
  margin: 0 auto;
}

.classique {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(196, 156, 107, 0.16);
}

.classique-nom { font-size: 1rem; color: var(--creme); }
.classique-desc {
  display: block;
  font-size: 0.85rem;
  color: var(--creme-attenue);
}

.classique-points {
  flex: 1;
  border-bottom: 1px dotted rgba(196, 156, 107, 0.4);
  transform: translateY(-4px);
  min-width: 1.5rem;
}

.classique-prix {
  font-family: var(--font-ui);
  color: var(--or);
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Services (le bar)
   -------------------------------------------------------------------------- */

.grille-services {
  display: grid;
  gap: 1.6rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.service h3 {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--or);
  padding-bottom: 0.7rem;
  margin-bottom: 0.9rem;
  border-bottom: 1px solid rgba(196, 156, 107, 0.25);
}

.service ul {
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--creme-attenue);
  font-size: 0.95rem;
}
.service li { padding: 0.22rem 0; }

/* --------------------------------------------------------------------------
   Horaires
   -------------------------------------------------------------------------- */

.horaires-bloc + .horaires-bloc { margin-top: 3.5rem; }

.horaires-titre {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--or);
  text-align: center;
  margin-bottom: 0.4rem;
}

.horaires {
  max-width: 620px;
  margin: 0 auto;
}

.horaire-ligne {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 0.2rem;
  border-bottom: 1px solid rgba(196, 156, 107, 0.18);
}
.horaire-ligne:last-child { border-bottom: 0; }

.horaire-ligne--triple { grid-template-columns: 1fr 1fr 1fr; }

.horaire-jour,
.horaire-creneau {
  font-family: var(--font-ui);
  font-size: clamp(0.9rem, 2.8vw, 1.15rem);
  color: var(--or);
  text-align: center;
  letter-spacing: 0.04em;
}
.horaire-jour { text-transform: uppercase; text-align: left; }
.horaire-creneau sup { font-size: 0.55em; top: -0.55em; }
.horaire-creneau .fleche { opacity: 0.6; padding: 0 0.15rem; }
.horaire-creneau--vide { opacity: 0.35; }

.horaires-note {
  font-family: var(--font-ui);
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--creme-attenue);
  text-align: center;
  margin-top: 1.8rem;
}

/* --------------------------------------------------------------------------
   Formulaire de suggestion
   -------------------------------------------------------------------------- */

.formulaire {
  max-width: 560px;
  margin: 0 auto;
  display: grid;
  gap: 1.1rem;
}

.champ { display: grid; gap: 0.4rem; }

.champ label {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--or);
}

.champ input,
.champ textarea {
  width: 100%;
  padding: 0.75rem 0.85rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--creme);
  background: rgba(24, 50, 44, 0.5);
  border: 1px solid rgba(196, 156, 107, 0.3);
  border-radius: 3px;
}
.champ input:focus,
.champ textarea:focus {
  border-color: var(--or);
  outline: none;
  box-shadow: 0 0 0 2px rgba(196, 156, 107, 0.25);
}
.champ textarea { resize: vertical; min-height: 90px; }

/* Piège à robots : invisible pour l'humain, rempli par les scripts de spam. */
.pot-de-miel {
  position: absolute !important;
  left: -9999px !important;
  opacity: 0;
  height: 0;
  overflow: hidden;
}

.bouton {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--vert-nuit);
  background: var(--or);
  border: 1px solid var(--or);
  border-radius: 3px;
  padding: 0.85rem 1.8rem;
  cursor: pointer;
  transition: background 0.25s, color 0.25s;
}
.bouton:hover { background: var(--or-clair); border-color: var(--or-clair); }
.bouton:disabled { opacity: 0.5; cursor: not-allowed; }

.bouton--fantome {
  background: transparent;
  color: var(--or);
}
.bouton--fantome:hover { background: var(--or); color: var(--vert-nuit); }

.message {
  font-size: 0.92rem;
  padding: 0.75rem 1rem;
  border-radius: 3px;
  border: 1px solid transparent;
}
.message[hidden] { display: none; }
.message--ok {
  color: var(--creme);
  background: rgba(122, 168, 108, 0.18);
  border-color: rgba(122, 168, 108, 0.5);
}
.message--erreur {
  color: #ffd9d0;
  background: rgba(190, 70, 50, 0.18);
  border-color: rgba(190, 70, 50, 0.55);
}

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */

.contact {
  text-align: center;
}

.contact-adresse {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 3vw, 1.4rem);
  color: var(--creme);
  margin: 0 0 0.4rem;
}

.contact-tel {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: clamp(1.8rem, 6.5vw, 2.8rem);
  color: var(--or);
  text-decoration: none;
  -webkit-text-stroke: 0.01em var(--vert-nuit);
  text-shadow: 0.03em 0.03em 0 var(--vert-nuit);
  margin: 1.8rem 0 0.6rem;
  letter-spacing: 0.02em;
}
.contact-tel:hover { text-decoration: underline; }

.contact-acces {
  font-family: var(--font-ui);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--creme-attenue);
  margin-top: 1.6rem;
}

.reseaux {
  display: flex;
  justify-content: center;
  gap: 1.1rem;
  margin-top: 2.4rem;
}

.reseau {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 2px solid rgba(196, 156, 107, 0.45);
  border-radius: 50%;
  color: var(--or);
  transition: background 0.3s, border-color 0.3s, color 0.3s;
}
.reseau:hover {
  background: var(--or);
  border-color: var(--or);
  color: var(--vert-nuit);
}
.reseau svg { width: 22px; height: 22px; fill: currentColor; }

/* --------------------------------------------------------------------------
   Pied de page
   -------------------------------------------------------------------------- */

.pied {
  background: var(--vert-nuit);
  text-align: center;
  padding: 2.2rem var(--gouttiere);
  font-size: 0.8rem;
  color: rgba(240, 230, 216, 0.55);
}
.pied a { color: rgba(240, 230, 216, 0.75); }

/* --------------------------------------------------------------------------
   Page d'administration
   -------------------------------------------------------------------------- */

.admin { max-width: 860px; margin: 0 auto; padding: 2rem var(--gouttiere) 5rem; }

.admin-entete {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  padding-bottom: 1.2rem;
  margin-bottom: 2.2rem;
  border-bottom: 1px solid rgba(196, 156, 107, 0.25);
}
.admin-entete h1 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--or);
  margin-right: auto;
}

.admin-onglets {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.admin-onglet {
  font-family: var(--font-ui);
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--creme);
  background: transparent;
  border: 1px solid rgba(196, 156, 107, 0.3);
  border-radius: 3px;
  padding: 0.55rem 1.1rem;
  cursor: pointer;
}
.admin-onglet[aria-selected="true"] {
  background: var(--or);
  border-color: var(--or);
  color: var(--vert-nuit);
}

.admin-carte {
  background: rgba(24, 50, 44, 0.45);
  border: 1px solid rgba(196, 156, 107, 0.22);
  border-radius: 4px;
  padding: 1.3rem;
  margin-bottom: 1rem;
}

.admin-carte h3 {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--or);
  margin-bottom: 0.9rem;
}

.admin-ligne {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) {
  .admin-ligne { grid-template-columns: 1fr 1fr; }
  .admin-ligne--large { grid-template-columns: 1fr; }
}

.admin-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.admin-vignette {
  width: 120px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 3px;
  border: 1px solid rgba(196, 156, 107, 0.3);
}

.suggestion {
  border-left: 3px solid var(--or);
  padding: 0.9rem 1.1rem;
  margin-bottom: 0.8rem;
  background: rgba(24, 50, 44, 0.45);
  border-radius: 0 3px 3px 0;
}
.suggestion--lue { border-left-color: rgba(196, 156, 107, 0.3); opacity: 0.62; }
.suggestion-meta {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--or);
  margin-bottom: 0.4rem;
}
.suggestion-plat { font-size: 1.05rem; color: var(--creme); }
.suggestion-message { font-size: 0.92rem; color: var(--creme-attenue); margin-top: 0.4rem; }

.connexion {
  max-width: 380px;
  margin: 12vh auto;
  padding: 0 var(--gouttiere);
}
.connexion h1 {
  font-family: var(--font-display);
  font-size: 1.7rem;
  color: var(--or);
  text-align: center;
  margin-bottom: 1.8rem;
}
