/* =========================================================
   AUBERGE DE LA CASCADE — Feuille de style
   ---------------------------------------------------------
   Reprend le design du site Nuxt : fond photo, encadres
   creme a liseres kaki, accents dores, pied de page noir.
   ========================================================= */

:root {
  --or: #af8842;
  --or-fonce: #8d6c34;
  --kaki: khaki;
  --noir: #141008;
  --creme: rgba(245, 245, 245, 0.88);
  --creme-plein: #f5f5f5;
  --voile: rgba(238, 238, 238, 0.45);

  --titre: "Cinzel", Georgia, serif;
  --serif: "Playfair Display", Georgia, serif;
  --texte: "Libre Franklin", Arial, sans-serif;

  --ombre: rgba(0, 0, 0, 0.25) 0 54px 55px, rgba(0, 0, 0, 0.12) 0 -12px 30px,
           rgba(0, 0, 0, 0.12) 0 4px 6px, rgba(0, 0, 0, 0.17) 0 12px 13px,
           rgba(0, 0, 0, 0.09) 0 -3px 5px;
  --ombre-photo: rgba(0, 0, 0, 0.3) 0 19px 38px, rgba(0, 0, 0, 0.22) 0 15px 12px;

  --hauteur-barre: 146px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--texte);
  color: var(--noir);
  background: url("images/auberge.jpg") center center / cover no-repeat fixed;
  background-color: rgba(238, 238, 238, 0.45);
  min-height: 100vh;
  padding-top: var(--hauteur-barre);
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; cursor: pointer; }
button { font: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }

/* =========================================================
   BARRE DE NAVIGATION
   ========================================================= */

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--hauteur-barre);
  display: flex;
  justify-content: space-around;
  align-items: center;
  background-color: rgba(243, 243, 243, 0.9);
  backdrop-filter: blur(6px);
  z-index: 100;
}

.nav_topbar {
  font-size: 20px;
  font-family: var(--texte);
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--noir);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.nav_topbar:hover,
.nav_topbar.actif { color: var(--or); border-bottom-color: var(--or); }

.nav_topbar.reservation {
  border: 2px solid var(--noir);
  padding: 8px 16px;
  border-bottom-width: 2px;
}

.nav_topbar.reservation:hover {
  background: var(--noir);
  color: var(--creme-plein);
  border-color: var(--noir);
}

/* Bouton d'ouverture du menu, sur petit ecran */
.burger {
  display: none;
  position: fixed;
  top: 18px;
  left: 18px;
  width: 52px;
  height: 52px;
  z-index: 102;
  background: rgba(243, 243, 243, 0.95);
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
}

.burger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--noir);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.burger.ouvert span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger.ouvert span:nth-child(2) { opacity: 0; }
.burger.ouvert span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media screen and (max-width: 1284px) {
  :root { --hauteur-barre: 0px; }

  body { padding-top: 88px; }

  .burger { display: flex; }

  .topbar {
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 4px;
    width: 300px;
    max-width: 85vw;
    height: 100%;
    padding: 100px 28px 28px;
    transform: translateX(-105%);
    transition: transform 0.28s ease;
    overflow-y: auto;
  }

  .topbar.ouvert { transform: translateX(0); }

  .nav_topbar { margin: 14px 0; font-size: 19px; }
  .nav_topbar.reservation { margin-top: 24px; }
}

/* =========================================================
   ACCUEIL
   ========================================================= */

.welcome {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 645px;
  background-position: center;
  background-size: cover;
  animation: fondu 12s ease-in-out infinite both;
}

.auberge {
  background-color: var(--voile);
  color: var(--or);
  font-family: var(--texte);
  font-size: 50px;
  font-weight: 700;
  text-align: center;
  text-shadow: 4px 4px 0 var(--noir);
  border: solid 4px var(--or);
  padding: 18px 28px;
  max-width: 90%;
}

@keyframes fondu {
  0%   { background-image: var(--photo1); }
  45%  { background-image: var(--photo1); }
  50%  { background-image: var(--photo2); }
  95%  { background-image: var(--photo2); }
  100% { background-image: var(--photo1); }
}

@media screen and (max-width: 900px) {
  .welcome { height: 420px; }
  .auberge { font-size: 26px; text-shadow: 2px 2px 0 var(--noir); }
}

/* =========================================================
   BANDEAU PHOTO DES PAGES INTERIEURES
   ========================================================= */

#container-nava {
  width: 100%;
  overflow: hidden;
  background-size: cover;
  background-position: 50%;
}

@media screen and (min-width: 1100px) {
  #container-nava { height: 400px; }
  .nava { display: none; }
}

.nava { width: 100%; }

/* =========================================================
   ENCADRES DE CONTENU
   ========================================================= */

.conteneur,
.conteneur1 {
  padding: 5% 24px;
  border: solid 1px var(--kaki);
  box-shadow: var(--ombre);
}

.conteneur { background-color: var(--creme); }
.conteneur1 { background-color: var(--creme-plein); }

.interieur {
  max-width: 1100px;
  margin: 0 auto;
}

/* Blocs alternes photo / texte */
.box, .box1 {
  display: flex;
  flex-direction: column;
  margin-bottom: 36px;
}

.img {
  width: 100%;
  background-position: center center;
  box-shadow: var(--ombre-photo);
  object-fit: cover;
}

.text {
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  text-align: center;
  padding: 20px;
  background-color: #fff;
  border: solid 1px var(--kaki);
  box-shadow: var(--ombre-photo);
}

.nom {
  font-family: var(--titre);
  font-size: 3em;
  font-weight: 400;
  color: #1a1a1a;
  margin-bottom: 10px;
}

.description {
  font-family: var(--serif);
  font-size: 20px;
  line-height: 30px;
  color: var(--or);
  font-weight: 400;
}

@media screen and (min-width: 1100px) {
  .box  { flex-direction: row; justify-content: center; }
  .box1 { flex-direction: row-reverse; justify-content: center; }
  .box > *, .box1 > * { flex: 1 1 0; min-width: 0; }
  .img  { height: 320px; }
  .text { max-height: 320px; }
}

/* =========================================================
   TITRES ET TEXTES COURANTS
   ========================================================= */

.titre-page {
  font-family: var(--titre);
  font-size: 2.4em;
  text-align: center;
  margin-bottom: 24px;
  color: #1a1a1a;
}

.soustitre {
  font-family: var(--serif);
  font-size: 1.5em;
  color: var(--or);
  text-align: center;
  margin: 32px 0 16px;
}

.paragraphe {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 31px;
  text-align: center;
  margin-bottom: 14px;
  color: #2b2b2b;
}

.note {
  font-size: 15px;
  font-style: italic;
  text-align: center;
  color: #555;
  margin-top: 12px;
}

/* =========================================================
   TABLEAUX (tarifs, carte, vins)
   ========================================================= */

.tableau {
  width: 100%;
  max-width: 720px;
  margin: 0 auto 28px;
  border-collapse: collapse;
  background: #fff;
  box-shadow: var(--ombre-photo);
}

.tableau caption {
  font-family: var(--serif);
  font-size: 1.3em;
  color: var(--or);
  padding: 14px 0;
}

.tableau th, .tableau td {
  padding: 10px 14px;
  border: 1px solid var(--or);
  font-size: 16px;
}

.tableau th { background: rgba(175, 136, 66, 0.12); text-align: left; }
.tableau td:last-child { text-align: right; white-space: nowrap; font-weight: 600; }

/* =========================================================
   BOUTONS
   ========================================================= */

.bouton {
  display: inline-block;
  padding: 15px 30px;
  margin: 16px 0;
  background: var(--noir);
  color: #fff;
  border-radius: 50px;
  font-weight: bold;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.25s ease, background 0.25s ease;
}

.bouton:hover { transform: translateY(-2px); background: var(--or); }
.bouton-centre { display: block; width: fit-content; margin: 20px auto; }

/* =========================================================
   FORMULAIRES
   ========================================================= */

.formulaire {
  max-width: 640px;
  margin: 0 auto;
  background: #fff;
  padding: 28px;
  border: solid 1px var(--kaki);
  box-shadow: var(--ombre-photo);
}

.champ { margin-bottom: 18px; }

.champ label {
  display: block;
  font-size: 15px;
  margin-bottom: 6px;
  color: #333;
}

.champ input,
.champ select,
.champ textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: var(--texte);
  font-size: 15px;
  background: #fafafa;
}

.champ input:focus,
.champ select:focus,
.champ textarea:focus {
  outline: none;
  border-color: var(--or);
  background: #fff;
}

.champ textarea { min-height: 130px; resize: vertical; }

/* Piege a robots : invisible pour les visiteurs */
.piege {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* =========================================================
   CARTE
   ========================================================= */

.ggMap {
  width: 100%;
  height: 420px;
  border: 0;
  display: block;
}

@media screen and (min-width: 1100px) {
  .ggMap { width: 800px; height: 500px; margin: 0 auto; }
}

/* =========================================================
   PIED DE PAGE
   ========================================================= */

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  background-color: #000;
  padding: 20px 33px;
}

.horaires, .adresse {
  color: rgba(243, 243, 243, 0.85);
  flex: 1 1 320px;
  padding: 15px 0;
}

.horaires { padding-right: 10%; }
.adresse { padding-left: 10%; text-align: right; }

.h2_horaires, .h2_adresse { font-size: 30px; margin-bottom: 15px; }

.info_footer {
  margin-bottom: 15px;
  color: rgba(189, 189, 189, 0.85);
  font-size: 16px;
  line-height: 28px;
}

.barre { border: 0; border-top: 1px solid rgba(189, 189, 189, 0.4); margin-bottom: 15px; }

.footer2 {
  display: flex;
  justify-content: center;
  gap: 26px;
  background-color: rgba(5, 5, 5, 0.85);
  padding: 14px 10px;
}

.footer2 a { color: rgba(243, 243, 243, 0.85); font-size: 15px; }
.footer2 a:hover { color: var(--or); }

@media screen and (max-width: 900px) {
  .horaires, .adresse { padding: 15px 0; text-align: center; }
}

/* =========================================================
   POP-UP D'ANNONCE
   ========================================================= */

.modal-fond {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.85);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-fond.ouvert { display: flex; }

.popup {
  position: relative;
  width: 100%;
  max-width: 650px;
  background-color: #fff;
  border: 5px solid var(--or);
  padding: 36px 28px 28px;
  text-align: center;
  box-shadow: var(--ombre);
}

.popup-fermer {
  position: absolute;
  top: 10px;
  right: 14px;
  font-size: 26px;
  line-height: 1;
  color: var(--or);
}

.popup-titre { font-size: 42px; line-height: 1.1; margin-bottom: 14px; color: #1a1a1a; }

.popup-texte {
  font-family: var(--serif);
  font-size: 20px;
  line-height: 30px;
  color: var(--or);
}

.popup-fin { font-size: 18px; margin-top: 12px; color: #1a1a1a; }

@media screen and (max-width: 630px) {
  .popup-titre { font-size: 30px; }
  .popup-texte { font-size: 17px; line-height: 26px; }
}

/* =========================================================
   ACCESSIBILITE
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .welcome { animation: none; }
}


/* =========================================================
   GALERIE PHOTOS DU RESTAURANT
   Defilement horizontal sur petit ecran, grille sur grand.
   ========================================================= */

.galerie-photos {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 72%;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 10px;
}

.galerie-photos img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  scroll-snap-align: center;
  box-shadow: var(--ombre-photo);
}

@media screen and (min-width: 900px) {
  .galerie-photos {
    grid-auto-flow: row;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-columns: auto;
    overflow: visible;
  }
  .galerie-photos img { height: 220px; }
}


/* =========================================================
   FORMULAIRE DE RESERVATION
   ========================================================= */

.avertissement {
  max-width: 640px;
  margin: 0 auto 18px;
  padding: 12px 16px;
  border: 1px solid #c0392b;
  background: rgba(192, 57, 43, 0.06);
  color: #a5281c;
  font-size: 15px;
  line-height: 23px;
  text-align: center;
}

.formulaire-etat {
  margin-top: 14px;
  text-align: center;
  font-size: 15px;
  min-height: 22px;
}

.formulaire-etat.ok { color: #1e7a3c; }
.formulaire-etat.erreur { color: #a5281c; }

.info {
  font-size: 17px;
  line-height: 28px;
  text-align: center;
}


/* =========================================================
   CARTE EN ATTENTE DE CONSENTEMENT
   ========================================================= */

.carte-attente {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  padding: 28px;
  background: var(--creme-plein);
  border: 1px dashed var(--or);
}

.carte-attente .note { max-width: 420px; margin: 0; }
.carte-attente a { color: var(--or); text-decoration: underline; }

/* Case a cocher du formulaire */
.champ-case {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.champ-case input {
  width: auto;
  margin-top: 4px;
  flex-shrink: 0;
}

.champ-case label { font-size: 14px; line-height: 1.5; margin: 0; }
.champ-case a { color: var(--or); text-decoration: underline; }
