/* LA CLAIE AUX MOINES — styles du site
   Tailles : chercher « Titres ». Photos : chercher « Bande ».
   Animation d’arrivée : chercher « INTRODUCTION ». */

/* Couleurs principales et typographie */
:root {
  --cream: #f7f0e5;
  --green: #364533;
  --wine: #762c24;
  --ink: #28251e;
  --gold: #d9b986;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.6;
}

a {
  color: inherit;
}

button {
  font: inherit;
}

/* Lien accessible pour aller directement au contenu. */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 99;
  background: white;
  padding: 1rem;
}

.skip-link:focus {
  top: 1rem;
}

/* En-tête et navigation */
.header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1rem clamp(1.2rem, 5vw, 5rem);
  background: rgba(247, 240, 229, 0.97);
  box-shadow: 0 2px 20px #00000010;
}

/* Place occupée par le logo dans la barre du haut. */
.brand {
  font-size: clamp(1.15rem, 2vw, 1.6rem);
  font-style: italic;
  font-weight: bold;
  color: var(--wine);
  text-decoration: none;
}

/* Liens du menu sur ordinateur. */
.nav {
  display: flex;
  gap: 1.6rem;
}

.nav a {
  text-decoration: none;
  font-size: 0.92rem;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--wine);
  text-decoration: underline;
}

/* Bouton du menu sur téléphone. */
.menu-toggle {
  display: none;
  border: 0;
  background: none;
  font-size: 1.5rem;
}

/* Première page : logo et boutons */
.hero {
  display: grid;
  place-items: center;
  text-align: center;
  padding: 5rem 1rem;
  color: white;
}

/* Largeur et centrage du contenu de la première page. */
.hero-inner {
  max-width: 850px;
}

/* Style de base des petits titres de section. */
.eyebrow {
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: bold;
  color: var(--wine);
}

.hero .eyebrow {
  color: var(--gold);
}

h1,
h2,
h3 {
  line-height: 1.12;
  font-weight: normal;
}

h1 {
  font-size: clamp(3rem, 8vw, 6.5rem);
  font-style: italic;
  margin: 1rem 0;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  margin: 0.5rem 0 1.3rem;
}

h3 {
  font-size: 1.6rem;
  margin: 1rem 0 0.2rem;
}

/* Alignement et espace entre les boutons. */
.actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

/* Forme et dimensions communes des boutons. */
.btn {
  display: inline-block;
  text-decoration: none;
  font-size: 0.95rem;
  transition: transform 0.25s,
    background 0.25s;
}

.btn:hover {
  transform: translateY(-3px);
}

/* Bouton bordeaux : réserver une table. */
.btn-primary {
  background: var(--wine);
  color: white;
}

.btn-primary:hover {
  background: #552018;
}

/* Boutons avec un contour : carte et contact. */
.btn-outline {
  border: 1px solid #fff;
  color: #fff;
}

/* Animation de départ des éléments de l’accueil. */
.intro {
  animation: rise 0.9s ease both;
}

.hero .intro:nth-child(2) {
  animation-delay: 0.12s;
}

.hero .intro:nth-child(3) {
  animation-delay: 0.24s;
}

.hero .intro:nth-child(4) {
  animation-delay: 0.36s;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }

}

/* Espaces intérieurs des sections : vertical, puis horizontal. */
.section {
  padding: clamp(4rem, 8vw, 7rem) clamp(1.3rem, 7vw, 7rem);
}

.story,
/* Deux colonnes : texte du restaurant et photo de pétanque. */
.place {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 6rem);
}

.story p,
.place p {
  max-width: 55ch;
}

.pizza {
  background: radial-gradient(
    circle at 52% 45%,
    #d49b5b 0 18%,
    #a94628 19% 31%,
    #e7ba78 32% 39%,
    #554332 40% 41%,
    #7b5e45 42%
  );
}

.place .actions {
  justify-content: flex-start;
}

.contact .actions {
  justify-content: flex-start;
}

.contact a:not(.btn) {
  color: var(--wine);
}

/* Petites mentions et informations complémentaires. */
.small {
  font-size: 0.82rem;
  color: #6d665e;
}

/* Pied de page. */
.footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  background: #263326;
  color: white;
  padding: 1.3rem 7%;
  font-size: 0.85rem;
}

.footer a {
  text-decoration: none;
}

/* Éléments masqués avant leur apparition au défilement. */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease,
    transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 750px) {
  .story,
  .place {
    grid-template-columns: 1fr;
  }

}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .intro {
    animation: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn {
    transition: none;
  }

}

/* Logo et carte */
/* Taille du logo dans la barre du haut. */
.brand img {
  display: block;
  width: 240px;
  max-width: 40vw;
  height: auto;
}

/* Taille du grand logo sur la première page. */
.hero-logo img {
  width: 100%;
  height: auto;
  display: block;
}

/* Chaque catégorie de la carte : entrées, pizzas, desserts… */
.menu-category {
  border-bottom: 1px solid #cbbba2;
}

/* Titre cliquable qui ouvre une catégorie. */
.menu-category summary {
  cursor: pointer;
  color: var(--wine);
}

/* Une ligne de la carte : nom à gauche, prix à droite. */
.menu-item {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem 0;
  border-bottom: 1px solid #d9cdbb;
}

.menu-item:last-child {
  border: 0;
}

/* Présentation des prix. */
.menu-item span {
  white-space: nowrap;
  font-variant-numeric: lining-nums tabular-nums;
}

/* Description sous le nom du plat. */
.menu-item p {
  margin: 0.3rem 0 0;
  font-size: 0.95rem;
  color: #62594b;
}

.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  font-family: Arial, sans-serif;
}

.contact h2 {
  font-family: Georgia, serif;
  font-style: italic;
  color: var(--wine);
}

.reservation-panel {
  align-self: start;
  scroll-margin-top: 110px;
}

input,
select,
textarea {
  font: inherit;
  width: 100%;
  min-width: 0;
  padding: 0.85rem;
  border: 1px solid #cdbb9b;
  border-radius: 8px;
  background: #faf6ef;
  color: var(--ink);
}

button.btn {
  border: 0;
  cursor: pointer;
}

.contact p {
  font-variant-numeric: lining-nums;
}

.contact h2 {
  font-size: 2.4rem;
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

@media (max-width: 750px) {
  .contact {
    grid-template-columns: 1fr;
  }

  .reservation-panel {
    padding: 1.3rem;
  }

  .menu-item {
    gap: 0.7rem;
  }

  .menu-item span {
    font-size: 0.85rem;
  }

  .brand img {
    max-width: 65vw;
  }

  .hero-logo {
    padding: 0.6rem;
  }

}

/* Finitions : accueil, carte et présentation des sections. */
.hero {
  min-height: 640px;
  background: radial-gradient(ellipse at 50% 0%, #45523c 0%, #283525 65%, #20291e 100%);
}

.hero-logo {
  width: min(680px, 85vw);
  background: transparent;
  padding: 0;
  border-radius: 0;
  margin: 2rem auto;
}

.hero-logo img {
  filter: brightness(0) invert(94%) sepia(15%) saturate(380%) hue-rotate(340deg);
  opacity: 0.97;
}

/* Phrase sous le logo de la première page. */
.hero-subtitle {
  font-size: 1.15rem;
  max-width: 38ch;
  margin: 0 auto;
}

.hero .actions {
  margin-top: 2.4rem;
}

.btn {
  border-radius: 0;
  padding: 0.9rem 1.6rem;
}

.hero .btn-outline {
  border-color: #e5d6bc80;
}

.story {
  max-width: 1300px;
  margin: auto;
}

/* Fond et largeur de la carte. */
.actual-menu {
  background: #f0e5d3;
}

.actual-menu > h2,
.actual-menu > .eyebrow,
.actual-menu > p {
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.menu-category {
  max-width: 1000px;
  margin: auto;
  padding: 1.35rem 0;
}

.contact {
  background: var(--cream);
  gap: 3rem;
  max-width: 1350px;
  margin: auto;
}

.reservation-panel {
  border-radius: 0;
  border-top: 1px solid var(--wine);
  padding: 2rem 0;
  background: transparent;
}

.reservation-panel {
  padding-right: 2rem;
  border-right: 1px solid #d7ccb9;
}

button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

button:disabled:hover {
  transform: none;
}

@media (max-width: 750px) {
  .hero {
    min-height: 520px;
  }

  .hero-logo {
    width: 85vw;
  }

  .contact {
    gap: 2rem;
  }

  .reservation-panel {
    padding-right: 0;
    border-right: 0;
  }

  .hero .actions {
    gap: 0.6rem;
  }

  .hero .btn {
    padding: 0.8rem 1rem;
  }

}

.menu-category summary {
  list-style: none;
}

.menu-category summary::-webkit-details-marker {
  display: none;
}

.menu-category summary::marker {
  content: "";
}

/* Entrée progressive, sans bloquer la navigation. */
@keyframes openingShade {
  0%,
  15% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }

}

@keyframes openingReveal {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }

}

.hero {
  position: relative;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #10170f;
  z-index: -1;
  pointer-events: none;
}

.hero .intro {
  animation: openingReveal 1s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hero .actions {
  animation: none;
}

.hero .actions .btn {
  animation: openingReveal 0.7s ease both;
}

.header {
  animation: openingReveal 0.8s 0.9s ease both;
}

.menu-category summary {
  transition: color 0.2s,
    padding-left 0.2s;
}

/* Réaction du titre au passage de la souris. */
.menu-category summary:hover {
  padding-left: 0.4rem;
  color: #4d201c;
}

.menu-category[open] .menu-item {
  animation: openingReveal 0.35s ease both;
}

.story {
  border-top: 1px solid #d7ccb9;
}

@media (prefers-reduced-motion: reduce) {
  .hero::before {
    animation: none;
    opacity: 0;
  }

  .hero .intro,
  .hero .actions .btn,
  .header,
  .menu-category[open] .menu-item {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .menu-category summary {
    transition: none;
  }

}

@font-face  {
  font-family: Playball;
  src: url("assets/playball.ttf") format("truetype");
  font-display: swap;
  font-weight: 400;
  font-style: normal;
}

.menu-category summary {
  font-family: Playball, Georgia, serif;
  font-weight: 400;
  font-style: normal;
  font-size: 2rem;
  line-height: 1.3;
}

@media (max-width: 750px) {
  .menu-category summary {
    font-size: 1.8rem;
  }

}

/* Réservation : hauteur 65svh, espaces 60px */
section.reservation-section {
  background: var(--cream);
  font-family: Arial, sans-serif;
  max-width: 1350px;
  margin: auto;
  min-height: 65svh;
  padding-top: 60px;
  padding-bottom: 60px;
}

.reservation-section .reservation-panel {
  border: 0;
  padding: 0;
  width: 100%;
}

.reservation-section h2 {
  font-family: Playball, Georgia, serif;
  color: var(--wine);
  font-size: 2.6rem;
}

.reservation-section input,
.reservation-section select {
  min-height: 50px;
}

/* Bloc des informations pratiques. */
.practical-section {
  background: #eee4d3;
  font-family: Arial, sans-serif;
}

.practical-section .eyebrow {
  grid-column: 1/-1;
  margin: 0 0 0.4rem;
}

.practical-section .actions {
  grid-column: 1/-1;
  justify-content: flex-start;
  margin: 1rem 0 0;
}

.practical-section a:not(.btn) {
  color: var(--wine);
}

#reservation {
  scroll-margin-top: 90px;
}

@media (max-width: 600px) {
  .reservation-section h2 {
    font-size: 2.2rem;
  }

}

.practical-inner {
  max-width: 1200px;
  margin: auto;
}

/* Colonnes de l’adresse, des horaires et du contact. */
.practical-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 0;
}

.practical-block h3,
.access-details h3 {
  font-family: Georgia, serif;
  color: var(--wine);
  font-size: 1.45rem;
  margin: 0 0 1.2rem;
}

.practical-block address {
  font-style: normal;
  line-height: 1.8;
}

.practical-block .btn {
  margin-top: 1.3rem;
  padding: 0.8rem 1.1rem;
  font-size: 0.9rem;
}

.opening-hours {
  margin: 0;
}

/* Une ligne d’horaires : jour et heures côte à côte. */
.opening-hours > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid #cdbda7;
}

.opening-hours > div:first-child {
  padding-top: 0;
}

/* Nom des jours. */
.opening-hours dt {
  font-size: 0.95rem;
}

/* Heures d’ouverture : éviter le retour à la ligne. */
.opening-hours dd {
  margin: 0;
  white-space: nowrap;
  font-size: 0.95rem;
}

/* Présentation du numéro de téléphone. */
.phone-link {
  font-size: 1.3rem;
  white-space: nowrap;
}

.practical-block p {
  font-size: 0.95rem;
}

/* Accès : bus, arrêt et parking. */
.access-details {
  border-top: 1px solid #cdbda7;
  margin-top: 2.8rem;
  padding-top: 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.access-details h3 {
  margin-bottom: 0.6rem;
}

.access-details p {
  margin: 0;
  line-height: 1.7;
}

@media (max-width: 1050px) {
  .practical-grid,
  .access-details {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }


}

@media (max-width: 600px) {
  .practical-grid,
  .access-details {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .practical-grid .practical-block:first-child {
    grid-column: auto;
  }

  .opening-hours dd {
    white-space: nowrap;
  }

}

/* Adresse cliquable (ouvre Google Maps) */
.practical-block .address-link {
  color: var(--wine);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.practical-block .address-link:hover,
.practical-block .address-link:focus-visible {
  color: #552018;
}

.practical-block .phone-link {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Réservation en ligne : calendrier, heures et coordonnées */
.booking-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.8rem clamp(1.5rem, 4vw, 3.5rem);
  margin-top: 1.8rem;
}

.booking-step {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

/* Coordonnées, message et bouton : toute la largeur. */
.booking-step:nth-of-type(3),
.booking-message,
.booking-submit,
.booking-note {
  grid-column: 1 / -1;
}

.booking-step legend {
  padding: 0;
  margin-bottom: 0.9rem;
  font-family: Georgia, serif;
  color: var(--wine);
  font-size: 1.3rem;
}

/* Calendrier */
.booking-calendar {
  max-width: 420px;
  padding: 1rem;
  background: #faf6ef;
  border: 1px solid #d9c9ad;
  border-radius: 8px;
}

.calendar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.6rem;
}

.calendar-month {
  margin: 0;
  font-weight: bold;
}

.calendar-nav {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--wine);
  cursor: pointer;
}

.calendar-nav:hover:not(:disabled) {
  background: #eee4d3;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  text-align: center;
}

.calendar-dayname {
  font-size: 0.75rem;
  font-weight: bold;
  color: #7a6e5c;
  padding-bottom: 0.3rem;
}

.calendar-day {
  aspect-ratio: 1;
  min-height: 36px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font-variant-numeric: lining-nums;
  cursor: pointer;
}

.calendar-day:hover:not(:disabled) {
  border-color: var(--wine);
}

.calendar-day:disabled {
  background: transparent;
  opacity: 0.35;
}

/* Dimanche : cliquable mais en retrait, ouvre la fenêtre « fermé ». */
.calendar-day.is-closed {
  background: transparent;
  border: 1px dashed #cdbb9b;
  color: #9a8c76;
}

.calendar-day.is-today {
  font-weight: bold;
  text-decoration: underline;
}

/* Jour et heure choisis : bordeaux. */
.calendar-day.is-selected,
.booking-time.is-selected {
  background: var(--wine);
  border-color: var(--wine);
  color: #fff;
}

/* Heures */
.booking-chosen {
  margin: 0 0 1rem;
}

.booking-times {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(78px, 1fr));
  gap: 0.5rem;
  max-width: 440px;
}

.booking-time {
  min-height: 44px;
  border: 1px solid #cdbb9b;
  border-radius: 6px;
  background: #faf6ef;
  color: var(--ink);
  font-variant-numeric: lining-nums;
  cursor: pointer;
}

.booking-time:hover:not(:disabled) {
  border-color: var(--wine);
}

/* Prénom, nom, téléphone, personnes */
.booking-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.booking-fields label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.9rem;
}

/* Champ piège anti-robots : jamais visible. */
.booking-trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.booking-message {
  margin: 0;
  min-height: 1.6em;
  color: var(--green);
  font-weight: bold;
}

.booking-message.is-error {
  color: var(--wine);
}

.booking-submit {
  justify-self: start;
  padding: 1rem 1.8rem;
}

.booking-note {
  margin: 0;
  max-width: 62ch;
  line-height: 1.6;
}

.booking-note a {
  color: var(--wine);
}

/* Pop-up des groupes (10 personnes et plus). */
.group-dialog {
  max-width: min(440px, calc(100vw - 32px));
  padding: 2rem;
  border: 0;
  border-top: 4px solid var(--wine);
  border-radius: 8px;
  background: var(--cream);
  color: var(--ink);
  font-family: Arial, sans-serif;
  text-align: center;
}

.group-dialog::backdrop {
  background: rgba(20, 16, 12, 0.6);
}

.group-dialog h3 {
  margin: 0 0 0.8rem;
  font-family: Georgia, serif;
  color: var(--wine);
  font-size: 1.4rem;
}

.group-dialog .btn {
  display: block;
  margin: 1.4rem 0 0.8rem;
  padding: 1rem;
}

.group-dialog-close {
  border: 0;
  background: none;
  color: var(--ink);
  text-decoration: underline;
  cursor: pointer;
}

@media (max-width: 750px) {
  .booking-form {
    grid-template-columns: 1fr;
  }

  .booking-calendar,
  .booking-times {
    max-width: none;
  }

  .booking-fields {
    grid-template-columns: 1fr 1fr;
  }

  .booking-submit {
    justify-self: stretch;
    text-align: center;
  }
}

@media (max-width: 420px) {
  .booking-fields {
    grid-template-columns: 1fr;
  }
}

/* TVA incluse sous la carte */
#carte .menu-tax {
  width: 100%;
  text-align: center;
  font-size: 13px;
  margin-top: 24px;
  color: #756858;
}

/* Titres rouges : modifier font-size pour leur taille. */
.section .eyebrow {
  font-size: 22px;
  font-weight: 400;
  text-transform: none;
  letter-spacing: normal;
}

/* Titres noirs : font-size règle leur taille, font-family leur écriture. */
.section h2 {
  font-family: "Playball", cursive;
  font-size: 29px;
  font-weight: 400;
}

.story,
.story > .screen-content {
  grid-template-columns: 1fr;
}

/* Photo de pétanque entière : max-width règle sa taille. */
.place-photo {
  display: block;
  width: 100%;
  max-width: 350px;
  height: auto;
  margin: 0 auto;
}

/* Bande de photos */
.plats-gallery {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  width: 100%;
  min-width: 0;
  margin-top: 20px;
}

/* Taille commune des miniatures : modifier height. */
.plat-thumbnail {
  display: block;
  width: 100%;
  height: 180px;
  padding: 0;
  border: 0;
  overflow: hidden;
  background: transparent;
  cursor: zoom-in;
}

/* Remplir les miniatures sans déformer les photos. */
.plat-thumbnail img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  margin: 0;
  object-fit: cover;
}

.plat-thumbnail:focus-visible {
  outline: 2px solid #792e29;
  outline-offset: 4px;
}

/* Sur téléphone : glissement horizontal */
@media (max-width: 700px) {
  .plats-gallery {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 4px 4px 14px;
    box-sizing: border-box;
  }

  .plat-thumbnail {
    flex: 0 0 78%;
    scroll-snap-align: start;
  }

}

/* Photo en grand, entière et sans recadrage */
.photo-viewer {
  position: fixed;
  inset: 0;
  width: 94vw;
  max-width: 1100px;
  max-height: 94vh;
  margin: auto;
  padding: 48px 12px 12px;
  border: 0;
  box-sizing: border-box;
  background: #f6f0e6;
}

.photo-viewer::backdrop {
  background: rgba(0, 0, 0, 0.85);
}

.photo-viewer > img {
  display: block;
  width: 100%;
  height: auto;
  max-height: calc(94vh - 60px);
  object-fit: contain;
}

/* Croix pour fermer la photo agrandie. */
.photo-close {
  position: absolute;
  top: 5px;
  right: 12px;
  border: 0;
  background: transparent;
  color: #792e29;
  font-size: 34px;
  cursor: pointer;
}

html.photo-viewer-open,
html.photo-viewer-open body {
  overflow: hidden;
}

.photo-prev,
/* Position de la flèche suivante. */
.photo-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(246, 240, 230, 0.9);
  color: #792e29;
  font-size: 24px;
  cursor: pointer;
}

/* Position de la flèche précédente. */
.photo-prev {
  left: 10px;
}

.photo-next {
  right: 10px;
}

.photo-prev:hover,
.photo-next:hover {
  background: #792e29;
  color: white;
}

/* Hauteur du bloc restaurant et espace autour de son contenu. */
section.place {
  min-height: auto;
  padding-top: 40px;
  padding-bottom: 40px;
}

/* DÉFILEMENT — taille des sections et apparition du contenu */
:root {
  --header-height: 85px;
}

/* Défilement libre ; les liens du menu s’arrêtent juste sous la barre du haut. */
html {
  scroll-padding-top: var(--header-height);
}

main > section {
  min-height: calc(100svh - var(--header-height));
  scroll-margin-top: 0;
}

main > .hero {
  min-height: calc(100svh - var(--header-height));
}

.reservation-section, .practical-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.reservation-panel, .practical-inner {
  width: 100%;
}

.story:has(> .screen-content), .place:has(> .screen-content) {
  display: block;
}

.place > .screen-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 6rem);
}

.story > .screen-content {
  display: grid;
  grid-template-columns: 1fr;
}

section > .screen-content {
  width: 100%;
}

/* Durée de l’apparition des sections au défilement. */
.screen-content {
  transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1);
}

.screen-ready .screen-content {
  opacity: 0;
  transform: translateY(45px);
}

.screen-ready.screen-visible .screen-content {
  opacity: 1;
  transform: none;
}

/* INTRODUCTION — apparition rapide (moins d’une seconde), sans écran d’attente.
   Le logo passe du flou au net, puis le texte et les boutons montent l’un après l’autre. */
.hero::before {
  animation: none;
  opacity: 0;
}

/* Fond de l’accueil : léger éclaircissement à l’arrivée. */
.hero {
  animation: heroLight 1.2s ease-out both;
}

@keyframes heroLight {
  from {
    filter: brightness(0.6);
  }

  to {
    filter: none;
  }

}

.hero .intro,
.hero .actions .btn {
  animation: heroRise 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

/* Grand logo : flou → net. */
.hero .hero-logo {
  animation: heroFocus 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes heroFocus {
  from {
    opacity: 0;
    filter: blur(10px);
    transform: scale(0.96);
  }

  to {
    opacity: 1;
    filter: none;
    transform: none;
  }

}

@keyframes heroRise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: none;
  }

}

/* Délais d’apparition (en secondes). */
.hero .eyebrow {
  animation-delay: 0.15s;
}

.hero .hero-subtitle {
  animation-delay: 0.3s;
}

.hero .actions .btn:nth-child(1) {
  animation-delay: 0.4s;
}

.hero .actions .btn:nth-child(2) {
  animation-delay: 0.47s;
}

.hero .actions .btn:nth-child(3) {
  animation-delay: 0.54s;
}

/* Barre du haut : descend dès l’ouverture. */
.header {
  animation: headerDrop 0.5s ease-out both;
}

@keyframes headerDrop {
  from {
    opacity: 0;
    transform: translateY(-100%);
  }

  to {
    opacity: 1;
    transform: none;
  }

}

/* Lien Découvrir et flèche vers la réservation. */
.discover-next {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
  margin-top: 2.4rem;
  color: #f7f0e5;
  text-decoration: none;
  font-family: Arial,sans-serif;
  font-size: .75rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  animation: heroRise .6s .7s both;
}

.discover-next span {
  font-size: 1.6rem;
  animation: arrowFloat 2s 1.3s ease-in-out infinite;
}

@keyframes arrowFloat {
  0%,100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(6px);
  }

}

/* TÉLÉPHONE — une colonne */
@media (max-width: 750px) {
  .place > .screen-content {
    grid-template-columns: 1fr;
  }

  .discover-next {
    margin-top: 1.8rem;
  }

}

/* ACCESSIBILITÉ — fondu simple, sans déplacement */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .screen-content, .screen-ready .screen-content {
    transition: none;
    opacity: 1;
    transform: none;
  }

  .hero, .discover-next, .discover-next span, .hero .intro, .hero .actions .btn, .header {
    animation: none;
    opacity: 1;
    transform: none;
  }

}

/* Histoire : récit justifié. */
.story p:not(.eyebrow) {
  text-align: justify;
  margin: 0;
}


/* Années du récit : même écriture (Georgia) que le reste du texte. */
.story-year {
  font: inherit;
}

/* Remarques (facultatif) : toute la largeur, sous les autres champs. */
.booking-notes {
  grid-column: 1 / -1;
}

.booking-notes small {
  color: #7a6e5c;
  font-size: 0.85em;
}

.booking-notes textarea {
  resize: vertical;
  min-height: 90px;
}

/* Lien Appeler : seulement dans le menu du téléphone. */
.nav-call {
  display: none;
}

/* Bouton du menu : trois traits qui deviennent une croix. */
.menu-toggle {
  position: relative;
  width: 44px;
  height: 44px;
  padding: 0;
  cursor: pointer;
}

.menu-toggle span {
  position: absolute;
  left: 11px;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.menu-toggle span:nth-child(1) {
  top: 15px;
}

.menu-toggle span:nth-child(2) {
  top: 21px;
}

.menu-toggle span:nth-child(3) {
  top: 27px;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* TÉLÉPHONE — en-tête compact, menu déroulant et réservation sans coupure */
@media (max-width: 750px) {
  .header {
    padding: 0.55rem 0.6rem 0.55rem 1rem;
  }

  .brand img {
    width: 150px;
    max-width: 50vw;
  }

  /* Réservation : commence en haut, sans grands espaces. */
  section.reservation-section {
    justify-content: flex-start;
    padding-top: 32px;
    padding-bottom: 40px;
  }

  /* La hauteur de la barre est déjà comptée par scroll-padding-top. */
  #reservation {
    scroll-margin-top: 0;
  }

  .booking-form {
    gap: 1.5rem;
    margin-top: 1rem;
  }

  .booking-calendar {
    padding: 0.6rem;
  }

  .calendar-grid {
    gap: 3px;
  }

  .calendar-day {
    aspect-ratio: auto;
    min-height: 42px;
    padding: 0;
  }
}

/* Liste du nombre de personnes : même style que les autres champs (Safari la met en gris). */
.booking-fields select {
  -webkit-appearance: none;
  appearance: none;
  background: #faf6ef url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23762c24' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 0.9rem center;
  padding-right: 2.4rem;
}

/* Choix de la langue : globe + liste déroulante discrète dans la barre du haut. */
.nav {
  margin-left: auto;
}

.language-picker {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  flex: 0 0 auto;
  padding: 0 0.3rem 0 0.55rem;
  border: 1px solid #d7ccb9;
  border-radius: 999px;
  background: #faf6ef;
  cursor: pointer;
}

.language-picker svg {
  display: block;
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  color: var(--wine);
}

.language-picker select {
  -webkit-appearance: none;
  appearance: none;
  width: auto;
  min-width: 0;
  padding: 0.45rem 1.4rem 0.45rem 0.1rem;
  border: 0;
  border-radius: 999px;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23762c24' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 0.45rem center;
  color: var(--ink);
  font-family: Arial, sans-serif;
  font-size: 0.85rem;
  cursor: pointer;
}

.language-picker:focus-within {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

.language-picker select:focus-visible {
  outline: none;
}



/* Champs obligatoires manquants : contour et fond rouges après un clic sur Envoyer. */
.booking-form .is-invalid {
  border-color: #c0392b;
  background-color: #fdf0ee;
  box-shadow: 0 0 0 2px #c0392b33;
}

.booking-calendar.is-invalid,
.booking-times.is-invalid {
  border: 1px solid #c0392b;
  border-radius: 8px;
}

.booking-times.is-invalid {
  padding: 0.5rem;
}

/* Pas de zoom automatique sur iPhone : Safari zoome sur les champs écrits en moins de 16 px. */
.booking-form input,
.booking-form select,
.booking-form textarea,
.language-picker select {
  font-size: 16px;
}

/* Fenêtre « réservation envoyée » avec le résumé. */
.booking-done-check {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 0.8rem;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: 1.7rem;
}

.booking-summary {
  margin: 1.2rem 0;
  padding: 0.4rem 1rem;
  border-radius: 8px;
  background: #fff;
  text-align: left;
}

.booking-summary > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid #eee4d3;
}

.booking-summary > div:last-child {
  border-bottom: 0;
}

.booking-summary dt {
  color: #7a6e5c;
  white-space: nowrap;
}

.booking-summary dd {
  margin: 0;
  font-weight: bold;
  text-align: right;
  overflow-wrap: anywhere;
}

.booking-done .btn {
  width: 100%;
  margin-bottom: 0;
}

/* CONTACT — infos à gauche, plan Google Maps à droite (l’un sous l’autre sur téléphone). */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}

.contact-info .access-details {
  margin-top: 2.2rem;
}

.map-card {
  border-radius: 16px;
  overflow: hidden;
  background: var(--cream);
  box-shadow: 0 18px 40px #28251e26;
}

/* Couleurs de la carte adoucies pour aller avec le site. */
.map-frame {
  display: block;
  width: 100%;
  height: 380px;
  border: 0;
  filter: sepia(0.25) saturate(0.85) contrast(1.02);
}

/* Bande sous la carte : nom et adresse à gauche, bouton Itinéraire à droite. */
.map-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.3rem;
}

.map-info p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.4;
}

.map-name {
  font-family: Playball, Georgia, serif;
  color: var(--wine);
  font-size: 1.5rem !important;
}

.map-info .btn {
  flex: 0 0 auto;
  padding: 0.75rem 1.3rem;
  font-size: 0.9rem;
}

@media (max-width: 900px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .map-frame {
    height: 280px;
  }
}

@media (max-width: 480px) {
  .map-info {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
}


/* Lien Mentions légales du pied de page. */
.footer a {
  color: inherit;
}

/* Fenêtre des mentions légales. */
.legal-dialog {
  max-width: min(640px, calc(100vw - 32px));
  max-height: calc(100svh - 48px);
  padding: 2rem clamp(1.2rem, 4vw, 2.2rem);
  border: 0;
  border-top: 4px solid var(--wine);
  border-radius: 8px;
  background: var(--cream);
  color: var(--ink);
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.legal-dialog::backdrop {
  background: rgba(20, 16, 12, 0.6);
}

.legal-dialog h2 {
  margin: 0 2rem 1rem 0;
  font-family: Georgia, serif;
  color: var(--wine);
  font-weight: normal;
}

.legal-dialog h3 {
  margin: 1.4rem 0 0.4rem;
  font-family: Georgia, serif;
  color: var(--wine);
  font-size: 1.1rem;
}

.legal-dialog p {
  margin: 0 0 0.7rem;
  font-size: 0.92rem;
}

.legal-dialog a {
  color: var(--wine);
}

.legal-close {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: #eee4d3;
  color: var(--ink);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}


/* Pied de page : copyright, mentions légales et retour en haut sur une seule ligne. */
.footer {
  align-items: center;
  flex-wrap: nowrap;
}

.footer p {
  margin: 0;
}

@media (max-width: 600px) {
  .footer {
    gap: 0.8rem;
    padding: 1.1rem 1rem;
    font-size: 0.75rem;
    white-space: nowrap;
  }

  /* Téléphone : texte raccourci pour que tout tienne sur une ligne. */
  .footer-extra {
    display: none;
  }
}

/* Téléphone : indicatif +41 fixe, affiché à gauche dans le champ. */
.phone-field {
  display: flex;
  gap: 0.4rem;
}

/* Liste des indicatifs (CH +41 par défaut). */
.phone-field .phone-code {
  flex: 0 0 7.6rem;
  width: 7.6rem;
  padding-left: 0.8rem;
  font-weight: bold;
}

.phone-field input[name="phone"] {
  flex: 1 1 auto;
}

/* Résumé : petites icônes au trait dans une pastille bordeaux claire. */
.booking-summary dt {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.summary-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: #f3e6e3;
  color: var(--wine);
}

.summary-icon svg {
  width: 17px;
  height: 17px;
}

.booking-summary > div {
  align-items: center;
}

/* Coche de confirmation dessinée au trait. */
.booking-done-check svg {
  display: block;
}

/* PAS DE DÉFILEMENT HORIZONTAL — rien ne doit dépasser à droite de l’écran. */
body {
  overflow-x: clip;
}

/* Liens du menu : toujours sur une seule ligne. */
.nav a {
  white-space: nowrap;
}

/* ÉCRAN MOYEN ET TÉLÉPHONE (1100 px et moins) — le menu ne tient plus sur une ligne :
   bouton ☰ et menu déroulant, langue à côté du bouton. */
@media (max-width: 1100px) {
  .header {
    gap: 0.5rem;
  }

  .menu-toggle {
    display: block;
    order: 3;
  }

  .language-picker {
    margin-left: auto;
    order: 2;
  }

  /* Menu déroulant sous la barre, avec un léger glissement. */
  .nav,
  .nav.open {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 0.4rem 1.2rem 1.4rem;
    background: var(--cream);
    box-shadow: 0 18px 30px #0000001f;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s 0.2s;
  }

  .nav.open {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .nav a {
    padding: 0.95rem 0.2rem;
    border-bottom: 1px solid #e3d8c6;
    font-size: 1.1rem;
  }

  /* Réserver : gros bouton bordeaux en bas du menu. */
  .nav a[href="#reservation"] {
    order: 1;
    margin-top: 1.2rem;
    padding: 0.95rem;
    border: 0;
    background: var(--wine);
    color: #fff;
    text-align: center;
  }

  .nav-call {
    display: block;
    order: 2;
    margin-top: 0.6rem;
    text-align: center;
    color: var(--wine);
    border-bottom: 0 !important;
  }
}

/* Téléphone (et nombre de personnes juste après) : toute la largeur sur téléphone,
   pour que le numéro reste lisible à côté de l’indicatif. */
@media (max-width: 750px) {
  .booking-fields .booking-phone,
  .booking-fields .booking-phone + label {
    grid-column: 1 / -1;
  }
}

/* VACANCES — jours hachurés en gris dans le calendrier, avec une légende. */
.calendar-day.is-holiday {
  background: repeating-linear-gradient(135deg, #ece6dc 0 4px, #ddd4c6 4px 8px);
  border-color: transparent;
  color: #8c8273;
  text-decoration: line-through;
  cursor: help;
}

.calendar-day.is-holiday:hover {
  border-color: #b5a993;
}

.calendar-legend {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.8rem 0 0;
  font-size: 0.85rem;
  color: #7a6e5c;
}

.legend-swatch {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: repeating-linear-gradient(135deg, #ece6dc 0 3px, #ddd4c6 3px 6px);
}

/* Boutons des fenêtres : toute la largeur, comme « Appeler ». */
.group-dialog button.btn {
  width: 100%;
  margin-top: 1.4rem;
}

/* Légende des vacances : vraiment masquée les mois sans vacances. */
.calendar-legend[hidden] {
  display: none;
}

/* ESPACES — chaque section prend la hauteur de son contenu (l’accueil reste plein écran),
   avec des marges haut/bas plus raisonnables. */
main > section:not(.hero),
section.reservation-section {
  min-height: 0;
}

.section {
  padding-top: clamp(3rem, 6vw, 4.5rem);
  padding-bottom: clamp(3rem, 6vw, 4.5rem);
}

section.reservation-section {
  padding-top: clamp(2.5rem, 5vw, 4rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}

/* Le restaurant sur téléphone : texte, photo de la pétanque et photos des plats plus rapprochés. */
@media (max-width: 750px) {
  .place > .screen-content {
    gap: 1.5rem;
  }
}

/* Mention des allergènes, juste sous « TVA incluse ». */
#carte .menu-allergens {
  margin-top: 4px;
}

/* PLAN — image du plan avec le bouton qui charge la carte interactive. */
.map-static {
  position: relative;
  overflow: hidden;
  background: #eee4d3;
}

.map-static img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.map-load {
  position: absolute;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
  padding: 0.7rem 1.2rem;
  border: 1px solid #cdbb9b;
  border-radius: 999px;
  background: rgba(247, 240, 229, 0.95);
  color: var(--wine);
  font-family: Arial, sans-serif;
  font-size: 0.9rem;
  font-weight: bold;
  white-space: nowrap;
  box-shadow: 0 6px 18px #0000002e;
  cursor: pointer;
}

.map-load:hover {
  background: #fff;
}

/* Liens plus faciles à toucher au doigt (pied de page, « Vous préférez appeler ? »). */
.footer a {
  display: inline-block;
  padding: 0.45rem 0.2rem;
}

.booking-note a {
  display: inline-block;
  padding: 0.35rem 0;
}

/* Teinte douce sur l’image du plan seulement (pas sur le bouton). */
.map-static {
  filter: none;
}

.map-static img {
  filter: sepia(0.25) saturate(0.85) contrast(1.02);
}

/* Pizzas à l’emporter : bandeau en tête des catégories de pizzas. */
.takeaway-offer {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0.4rem 0 1rem;
  padding: 0.7rem 1rem;
  border-left: 3px solid var(--wine);
  border-radius: 6px;
  background: #f3e6e3;
  color: var(--ink);
  font-family: Arial, sans-serif;
  font-size: 0.95rem;
}

.takeaway-offer svg {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  color: var(--wine);
}

.takeaway-offer strong {
  color: var(--wine);
}

/* Rappel discret dans le bloc Contact. */
.practical-block .takeaway-note {
  margin-top: -0.4rem;
  color: var(--wine);
  font-weight: bold;
}
