/* ==========================================================================
   Afghan restaurant — feuille de style
   Mobile d'abord. Points de rupture : 560px (tablette), 900px (ordinateur).
   ========================================================================== */

/* ---------- Polices (hébergées sur le site, rien n'est chargé chez Google) ----------
   Lalezar (titres) et Vazirmatn (texte, police variable : graisses 400 à 700).
   Jeu de caractères latin : couvre le français. Licence SIL Open Font License. */
@font-face {
  font-family: "Lalezar";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/lalezar-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Vazirmatn";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/vazirmatn-latin.woff2") format("woff2");
}

/* ---------- Couleurs et réglages ---------- */
:root {
  /* Thème sombre : fonds vert profond, texte clair, accent doré (safran séché) */
  --fond: #143D2B;         /* fond principal (vert foncé uni) */
  --chaux: #0F3122;        /* fond de section alterné (formulaire) */
  --lapis: #1D4A35;        /* vert émeraude : frise, logo */
  --lapis-fonce: #143826;  /* survol */
  --clair: #E8E5DE;        /* texte principal */
  --clair-doux: #AEB9AF;   /* texte secondaire (AA sur tous les fonds sombres) */
  --encre: #14140F;        /* texte posé sur le safran (boutons) */
  --blanc: #FFFFFF;
  --safran: #C9973A;       /* accent doré : boutons, liens, titres */
  --safran-clair: #DDB060; /* survol */
  --filet: rgba(255, 255, 255, .14);
  --filet-lapis: rgba(255, 255, 255, .28);
  --gris-photo: #4A4A4A;   /* fond des photos pendant leur chargement */

  --titre: "Lalezar", "Vazirmatn", system-ui, sans-serif;
  --texte: "Vazirmatn", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --marge: 1.25rem;
  --largeur: 76rem;
  --barre-mobile: 4.25rem;
}

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

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

body {
  margin: 0;
  font-family: var(--texte);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--clair);
  /* Un seul fond pour toute la page : vert foncé uni */
  background: var(--fond);
  padding-bottom: calc(var(--barre-mobile) + env(safe-area-inset-bottom));
}

h1, h2, h3, h4 {
  font-family: var(--titre);
  font-weight: 400;          /* Lalezar n'a qu'une graisse, déjà très noire */
  line-height: 1.05;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h2 { font-size: clamp(2.6rem, 8vw, 4.75rem); }
h3 { font-size: 1.5rem; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
dl, dd { margin: 0; }
sup { font-size: .6em; line-height: 0; }

a { color: var(--safran); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--safran-clair); text-decoration-thickness: 2px; }

::selection { background: var(--safran); color: var(--encre); }

:focus-visible { outline: 3px solid var(--safran); outline-offset: 3px; }
.ouverture :focus-visible,
.reserver :focus-visible { outline-color: var(--safran); }
.pied :focus-visible { outline-color: var(--safran); }

.visuellement-cache {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.evitement {
  position: absolute; left: .5rem; top: -4rem;
  background: var(--safran); color: var(--encre);
  padding: .6rem 1rem; z-index: 100;
}
.evitement:focus { top: .5rem; }

.conteneur { max-width: var(--largeur); margin: 0 auto; padding: 0 var(--marge); }

.section { padding: 4rem 0; scroll-margin-top: 0; }
/* Sections séparées par un simple filet, sans changement de fond */
.section + .section { border-top: 1px solid var(--filet); }

.chapo { font-size: 1.2rem; line-height: 1.55; color: var(--clair-doux); max-width: 32em; }

/* ---------- Photos ---------- */
.photo {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  background: var(--gris-photo);
}
.r-4x3 { aspect-ratio: 4 / 3; }

/* ---------- Boutons ---------- */
.bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: .75rem 1.6rem;
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: 0;
  cursor: pointer;
}
.bouton:hover { text-decoration: none; }
.bouton--safran { background: var(--safran); color: var(--encre); }
.bouton--safran:hover { background: var(--safran-clair); color: var(--encre); }
.bouton--lapis { background: var(--lapis); color: var(--blanc); border-color: var(--filet-lapis); }
.bouton--lapis:hover { background: var(--lapis-fonce); color: var(--blanc); }
.bouton--contour { border-color: var(--blanc); color: var(--blanc); }
.bouton--contour:hover { background: var(--blanc); color: var(--lapis); }

/* ==========================================================================
   OUVERTURE
   ========================================================================== */
.ouverture { color: var(--blanc); }
.ouverture a:not(.bouton) { color: var(--blanc); }

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .5rem 1.5rem;
  max-width: var(--largeur);
  margin: 0 auto;
  padding: 1rem var(--marge);
  border-bottom: 1px solid var(--filet-lapis);
}
.marque {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--titre);
  font-size: 1.35rem;
  line-height: 1;
  text-decoration: none;
}
.marque__etoile { width: 1.6rem; height: 1.6rem; flex: none; }
.nav__liens { display: flex; gap: 1.25rem; }
.nav__liens a { display: inline-block; padding: .4rem 0; text-decoration: none; font-size: .95rem; }
.nav__liens a:hover { text-decoration: underline; }

.ouverture__grille {
  max-width: var(--largeur);
  margin: 0 auto;
  padding: 2.25rem var(--marge) 0;
  display: grid;
  gap: 2.25rem;
}

.ouverture h1 {
  font-size: clamp(3.6rem, 17vw, 8.5rem);
  line-height: .88;
  margin-bottom: .3em;
  letter-spacing: -0.005em;
}
.ouverture__texte { padding-bottom: 2.5rem; }
.ouverture__phrase { font-size: 1.25rem; line-height: 1.5; max-width: 26em; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.75rem 0 0; }

/* Repère : statut / adresse / téléphone, sous les boutons */
.repere {
  display: grid;
  gap: .9rem;
  margin-top: 2.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--filet-lapis);
  font-size: .98rem;
}
.repere dt { font-size: .85rem; opacity: .8; }
.repere dd { font-weight: 700; }
.repere dd a { white-space: nowrap; }
.repere dd strong { color: var(--safran); }


.frise { display: block; position: relative; z-index: 1; }

/* ==========================================================================
   LA CARTE
   ========================================================================== */
.carte { padding-top: 5rem; }

.carte__intro { display: grid; gap: 2rem; margin-bottom: 3rem; }
.carte__intro h2 { margin-bottom: .25em; }

.premiere-fois { max-width: 34em; }
.premiere-fois h3 { font-size: 1.6rem; color: var(--safran); margin-bottom: .35em; }
.premiere-fois p { margin: 0; }

.carte__partie {
  font-size: 2rem;
  margin: 1.5rem 0 0;
  padding-bottom: .6rem;
  border-bottom: 3px solid var(--clair);
}

/* Quelques plats en photo : nom seulement */
.galerie {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.75rem 1rem;
  margin: 1.75rem 0 4rem;
}
.galerie figure { margin: 0; }
.galerie figcaption {
  font-family: var(--titre);
  font-size: 1.3rem;
  line-height: 1.15;
  margin-top: .6rem;
}

/* Photos en quinconce : la colonne de droite descend d'un cran */
.galerie { padding-bottom: 2.5rem; }
.galerie__plat:nth-child(even) { transform: translateY(2.5rem); }

/* Le menu en image */
.menu { max-width: 42rem; margin-top: 1.75rem; }
.menu__image { display: block; }
.menu__image img { display: block; width: 100%; height: auto; background: var(--gris-photo); }

/* ==========================================================================
   LA CHEFFE
   ========================================================================== */
.cheffe { }
.cheffe__grille { display: grid; gap: 2rem; }
.cheffe__lead { font-size: 1.3rem; line-height: 1.5; }
.cheffe__texte p { max-width: 32em; }

/* ==========================================================================
   RÉSERVATION
   ========================================================================== */
.reserver { color: var(--blanc); }
.reserver .chapo { color: var(--blanc); opacity: .92; }
.reserver a { color: var(--blanc); font-weight: 700; }
.reserver__grille { display: grid; gap: 2rem; }

.reserver__details > div {
  padding: .9rem 0;
  border-top: 1px solid var(--filet-lapis);
}
.reserver__details dt { font-size: .85rem; opacity: .8; }

/* Formulaire de demande de réservation */
.resa, .resa__merci {
  background: var(--chaux);
  border: 1px solid var(--filet);
  border-top: 3px solid var(--safran);
  padding: 1.5rem var(--marge);
  margin: 0 calc(var(--marge) * -1);
  color: var(--clair);
}
.resa__ligne { display: grid; gap: 0 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.resa__ligne .resa__champ:first-child { grid-column: 1 / -1; }
.resa__ligne--2 { grid-template-columns: minmax(0, 1fr); }
.resa__champ { margin-bottom: 1.1rem; }
.resa label { display: block; font-weight: 700; font-size: .95rem; margin-bottom: .35rem; }
.resa__option { font-weight: 400; color: var(--clair-doux); }
.resa input, .resa select, .resa textarea {
  display: block; width: 100%;
  min-height: 3rem;
  padding: .6rem .75rem;
  font: inherit; font-size: 1rem;
  color: var(--clair);
  background: var(--fond);
  border: 1px solid var(--filet-lapis);
  border-radius: 0;
  color-scheme: dark;
}
.resa textarea { resize: vertical; }
.resa input:focus-visible, .resa select:focus-visible, .resa textarea:focus-visible {
  outline: 3px solid var(--safran); outline-offset: 0; border-color: var(--safran);
}
.resa [aria-invalid="true"] { border-color: #F08A7A; }
.resa__aide { font-size: .85rem; color: var(--clair-doux); margin: .35rem 0 0; }
.resa__aide a, .resa__note a { color: var(--safran); font-weight: 400; }
.resa__erreur { color: #F4A396; font-weight: 700; margin: 0; }
.resa__erreur:not(:empty) { margin-bottom: 1rem; }
.resa__note { font-size: .85rem; color: var(--clair-doux); margin: 0; }
.resa .bouton { width: 100%; }
.resa .bouton[disabled] { opacity: .6; cursor: wait; }
.resa__piege { position: absolute; left: -9999px; }
.resa__merci h3 { color: var(--safran); }
.resa__merci a { color: var(--safran); }
.resa__merci:focus { outline: none; }

/* ==========================================================================
   INFOS PRATIQUES
   ========================================================================== */
.infos__grille { display: grid; gap: 2.25rem; }
.infos__grille h2 { margin-bottom: 0; }
.infos__bloc h3 { margin-top: 2rem; }
.infos__bloc h3:first-child { margin-top: 0; }
.infos__adresse { font-family: var(--titre); font-size: 1.9rem; line-height: 1.1; }
.infos__adresse a { text-decoration: none; }
.infos__adresse a:hover { text-decoration: underline; }
.infos__tel { font-weight: 700; font-size: 1.3rem; }
.infos__transports li { padding: .15rem 0; }

.horaires { border-collapse: collapse; width: 100%; max-width: 24rem; }
.horaires caption { text-align: left; }
.horaires th, .horaires td {
  text-align: left;
  padding: .6rem 0;
  border-bottom: 1px solid var(--filet);
  font-variant-numeric: tabular-nums;
}
.horaires th { font-weight: 400; }
.horaires td { text-align: right; }
.horaires tr.aujourdhui th,
.horaires tr.aujourdhui td { font-weight: 700; color: var(--safran); }
.horaires tr.aujourdhui th::before {
  content: "";
  display: inline-block;
  width: .5rem; height: .5rem;
  margin-right: .5rem;
  background: var(--safran);
  transform: rotate(45deg) translateY(-.1em);
}


/* ==========================================================================
   PIED DE PAGE
   ========================================================================== */
.pied { color: var(--clair); padding: 3.5rem 0 2rem; border-top: 1px solid var(--filet); }
.pied a:not(.bouton) { color: var(--clair); }
.pied__grille { display: grid; gap: 2rem; }
.pied__appel {
  font-family: var(--titre);
  font-size: clamp(2.6rem, 11vw, 6rem);
  line-height: 1;
  margin: 0;
}
.pied__appel a { text-decoration: none; white-space: nowrap; }
.pied__appel a:not(.bouton) { color: var(--safran); }
.pied__appel a:hover { text-decoration: underline; }
.pied__traduction { margin: .5rem 0 0; font-size: .95rem; }
.pied__nom { font-family: var(--titre); font-size: 1.75rem; line-height: 1.1; margin-bottom: .4em; }
.pied__legal {
  display: flex; flex-wrap: wrap; gap: .5rem 1.5rem;
  font-size: .95rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, .2);
}

/* ---------- Barre fixe mobile ---------- */
.barre-mobile {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .5rem;
  padding: .5rem .75rem calc(.5rem + env(safe-area-inset-bottom));
  background: var(--fond);
  border-top: 1px solid var(--filet);
}
.barre-mobile .bouton { width: 100%; min-height: 3rem; }

/* ==========================================================================
   Tablette ≥ 560px
   ========================================================================== */
@media (min-width: 560px) {
  :root { --marge: 2rem; }

  .repere { grid-template-columns: repeat(3, auto); justify-content: start; column-gap: 2.5rem; }

  .resa, .resa__merci { margin: 0; padding: 2rem; }
  .resa__ligne { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); }
  .resa__ligne .resa__champ:first-child { grid-column: auto; }
  .resa__ligne--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .resa .bouton { width: auto; }
}

/* ==========================================================================
   Ordinateur ≥ 900px
   ========================================================================== */
@media (min-width: 900px) {
  .galerie figcaption { font-size: 1.6rem; }

  body { padding-bottom: 0; }
  .barre-mobile { display: none; }
  .section { padding: 6.5rem 0; }

  .nav { padding-top: 1.25rem; padding-bottom: 1.25rem; }
  .nav__liens { gap: 2rem; }

  .ouverture__grille { padding-top: 4rem; }
  .ouverture__texte { padding-bottom: 4.5rem; }

  .carte { padding-top: 9rem; }
  /* Le menu en premier, centré ; puis la carte et les photos sur 3 colonnes en quinconce */
  .carte__droite { max-width: 46rem; margin: 0 auto 5rem; }
  .carte__intro { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 5rem; align-items: end; margin-bottom: 3.5rem; }
  .galerie { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem 2rem; padding-bottom: 5rem; margin-bottom: 0; }
  .galerie__plat:nth-child(even) { transform: none; }
  .galerie__plat:nth-child(3n+2) { transform: translateY(5rem); }

  .cheffe__grille { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); column-gap: 5rem; align-items: start; }

  .reserver__grille {
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    column-gap: 5rem;
    align-items: start;
  }

  .infos__grille {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 4rem;
  }
  .infos__grille h2 { grid-column: 1 / -1; margin-bottom: 1rem; }

  .pied { padding-top: 5rem; }
  .pied__grille { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); align-items: end; column-gap: 4rem; }
  .pied__legal { grid-column: 1 / -1; margin-top: 1.5rem; }
}

/* ---------- Pages légales ---------- */
.legal-page { padding-bottom: 0; }
.legal-entete { border-bottom: 1px solid var(--filet); }
.legal-entete .conteneur { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-top: 1rem; padding-bottom: 1rem; }
.legal-entete a { color: var(--blanc); text-decoration: none; }
.legal-entete a:hover { text-decoration: underline; }
.legal { padding: 3.5rem 0 5rem; }
.legal .conteneur { max-width: 46rem; }
.legal h1 { font-size: clamp(2.6rem, 8vw, 4rem); }
.legal h2 { font-size: 1.75rem; margin-top: 2.25rem; }
