/* La Source : feuille de style
   Fond sombre #16322C, sol clair #F2F4F0, accents « eau » #9AD8CE (sur sombre) et #1D6A66 (sur clair).
   Polices hébergées dans /fonts : aucune requête vers un service externe. */

@font-face {
  font-family: "Young Serif";
  src: url("fonts/young-serif-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("fonts/instrument-sans-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("fonts/instrument-sans-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("fonts/instrument-sans-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --sol: #F2F4F0;
  --encre: #14211D;
  --encre-douce: #4A5B54;
  --fond-sombre: #16322C;
  --sur-sombre: #EEF2EC;
  --sur-sombre-doux: #B7C9C1;
  --eau-clair: #9AD8CE;
  --eau-fonce: #1D6A66;
  --trait: #CBD3CD;
  --police-titre: "Young Serif", Georgia, "Times New Roman", serif;
  --police-texte: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --largeur: 70rem;
}

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

[hidden] { display: none !important; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--sol);
  color: var(--encre);
  font-family: var(--police-texte);
  font-size: 1.0625rem;
  line-height: 1.55;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

:focus-visible { outline: 3px solid var(--eau-fonce); outline-offset: 3px; }
.sombre :focus-visible { outline-color: var(--eau-clair); }

h1,
h2 {
  font-family: var(--police-titre);
  font-weight: 400;
  line-height: 1.1;
  text-wrap: balance;
  margin: 0;
}
h1 { font-size: clamp(3rem, 8vw, 5.5rem); line-height: 1.02; }
h2 { font-size: clamp(2rem, 4vw, 2.5rem); }

.conteneur {
  max-width: var(--largeur);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

/* Lien d'évitement pour le clavier */
.evitement {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 10;
  padding: 0.75rem 1rem;
  background: var(--sur-sombre);
  color: var(--encre);
  border-radius: 0.375rem;
}
.evitement:focus { top: 1rem; }

/* Bandeau de fermeture annuelle (affiché par script.js) */
.bandeau {
  background: #DCEBE5;
  color: var(--encre);
  padding: 0.875rem 0;
  font-weight: 500;
  font-size: 1rem;
}

/* Fonds sombres */
.sombre { background: var(--fond-sombre); color: var(--sur-sombre); }

/* En-tête */
.entete {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-top: 1.25rem;
}
.marque {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-family: var(--police-titre);
  font-size: 1.375rem;
  text-decoration: none;
}
.nav { display: flex; flex-wrap: wrap; gap: 0 0.25rem; }
.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0 0.625rem;
  text-decoration: none;
}
.nav a:hover { text-decoration: underline; text-underline-offset: 0.3em; }

/* Haut de page */
.hero { padding-bottom: 4.5rem; }
.hero__grille {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(20rem, 100%), 1fr));
  gap: 2.5rem 3.5rem;
  align-items: center;
  padding-top: 3.5rem;
}
.hero__texte {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
}
.hero__lieu { margin: 0; color: var(--sur-sombre-doux); }
.hero__resume { margin: 0; font-size: 1.1875rem; max-width: 28em; }

/* Pastille ouvert / fermé */
.statut {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  margin: 0;
  padding: 0.625rem 1rem;
  border: 1px solid #5F8E81;
  border-radius: 999px;
  font-size: 1rem;
}
.statut__point { width: 0.625rem; height: 0.625rem; border-radius: 50%; flex: none; }
.statut[data-etat="ouvert"] .statut__point { background: var(--eau-clair); }
.statut[data-etat="ferme"] .statut__point { border: 2px solid var(--sur-sombre-doux); }

/* Boutons */
.boutons { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.bouton {
  display: inline-flex;
  align-items: center;
  min-height: 3.25rem;
  padding: 0 1.5rem;
  border: 1px solid transparent;
  border-radius: 0.375rem;
  font-weight: 600;
  font-size: 1.0625rem;
  text-decoration: none;
}
.bouton:hover { filter: brightness(1.08); }
.bouton--clair { background: var(--eau-clair); color: #0F1F1B; }
.bouton--contour { border-color: #8FB5AA; color: var(--sur-sombre); font-weight: 500; }
.bouton--sombre { background: var(--fond-sombre); color: var(--sur-sombre); }

/* Photos : une zone teintée reste en place tant qu'aucune image n'est ajoutée */
.photo { margin: 0; border-radius: 0.375rem; overflow: hidden; background: #20443C; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo--hero { aspect-ratio: 4 / 5; min-height: 18.75rem; }
.photo--maison { aspect-ratio: 4 / 3; min-height: 15rem; background: #DCE3DD; }

/* Sections */
.section { padding: 0 0 5rem; }
.section--premiere { padding-top: 5rem; padding-bottom: 2.5rem; }
.deux-colonnes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(20rem, 100%), 1fr));
  gap: 2rem 4rem;
  align-items: start;
}
.deux-colonnes--centre { align-items: center; }
.pile { display: flex; flex-direction: column; gap: 1rem; }
.texte-doux { color: var(--encre-douce); }
.texte-doux, .pile p { margin: 0; max-width: 28em; }

/* Horaires */
.horaires {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.125rem;
  font-variant-numeric: tabular-nums;
}
.horaires th,
.horaires td { padding: 1rem 0; border-bottom: 1px solid var(--trait); vertical-align: top; }
.horaires th { text-align: left; font-weight: 600; padding-right: 1rem; }
.horaires td { text-align: right; }
.horaires .ferme { color: var(--encre-douce); }
.note { margin: 1rem 0 0; font-size: 1rem; }

/* Réservation */
.reserver { border-radius: 0.5rem; padding: 3rem 2rem; }
.reserver__infos { display: flex; flex-direction: column; gap: 1.25rem; align-items: flex-start; }
.reserver p { margin: 0; color: #D6E3DD; }
.telephone {
  display: inline-flex;
  align-items: center;
  min-height: 3rem;
  font-family: var(--police-titre);
  font-size: 2.125rem;
  text-decoration: none;
  color: var(--sur-sombre);
}

/* Carte (liste de plats prête à remplir) */
.carte-liste { list-style: none; margin: 0; padding: 0; }
.carte-liste li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--trait);
}
.carte-liste .prix { font-variant-numeric: tabular-nums; white-space: nowrap; }
.menu-jour {
  padding: 2rem 1.75rem;
  border: 1px solid var(--trait);
  border-left: 0.375rem solid var(--eau-fonce);
  border-radius: 0.375rem;
  background: #FFFFFF;
  max-width: 36rem;
}
.menu-jour h2 { margin-bottom: 0.25rem; }
.menu-jour p { margin: 0.25rem 0; max-width: none; }
.menu-jour__quand, .menu-jour__date { color: var(--encre-douce); font-size: 1rem; }
.menu-jour .carte-liste { margin: 1rem 0; }
.menu-jour__prix { font-family: var(--police-titre); font-size: 1.375rem; }
.menu-jour__detail { font-family: var(--police-texte); font-size: 1rem; color: var(--encre-douce); }
.carte-apercu li { align-items: baseline; }
.carte-apercu small { display: block; margin-top: 0.25rem; max-width: 34em; font-size: 1rem; color: var(--encre-douce); }
.zone-carte {
  padding: 3.5rem 1.5rem;
  border: 2px dashed #8A9C94;
  border-radius: 0.375rem;
  background: #DCE3DD;
  color: #3E524A;
  text-align: center;
}

/* Repère visuel des textes encore à écrire : à supprimer avant la mise en ligne */
.a-completer {
  background: #EFE7C8;
  color: var(--encre);
  padding: 0.125rem 0.375rem;
  border-radius: 0.1875rem;
}

/* Adresse */
.adresse { font-style: normal; font-size: 1.25rem; line-height: 1.5; }
.adresse strong { font-weight: 600; }

/* Pied de page */
.pied { padding: 2.5rem 0; color: var(--sur-sombre-doux); font-size: 1rem; }
.pied__contenu { display: flex; flex-direction: column; gap: 0.75rem; }
.pied__marque { font-family: var(--police-titre); font-size: 1.375rem; color: var(--sur-sombre); }
.pied p { margin: 0; }
.reseaux { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.5rem; }
.reseaux a { display: inline-flex; align-items: center; min-height: 2.75rem; color: var(--sur-sombre); }

/* Page de texte (mentions légales) */
.page-texte { padding-block: 3rem 5rem; max-width: 46rem; }
.page-texte h1 { font-size: clamp(2.25rem, 6vw, 3rem); margin-bottom: 1.5rem; }
.page-texte h2 { font-size: 1.5rem; margin: 2.5rem 0 0.75rem; }
.page-texte p,
.page-texte li { max-width: 42em; }
