/* ==========================================================================
   L'italien — refonte 2026 : la réservation (parcours 4 étapes, DÉMO)
   Chargée APRÈS site.css, uniquement sur reserver.html.
   Le module sera remplacé par Zenchef : mêmes couleurs, même bouton.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Ouverture de page (sur crème, centré)
   -------------------------------------------------------------------------- */
.reserver-ouverture {
  padding: calc(72px + clamp(2.5rem, 6vw, 4rem)) 0 clamp(1.5rem, 3vw, 2.5rem);
  text-align: center;
}
.reserver-ouverture h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  color: var(--vert);
}
.reserver-ouverture .sous-titre {
  margin-top: 0.6rem;
  color: rgba(34, 50, 44, 0.75);
}

/* Encart crème foncé, filet doré à gauche */
.encart {
  max-width: 720px;
  margin: 2rem auto 0;
  text-align: left;
  background: #F4EDDF;
  border-left: 3px solid var(--dore);
  border-radius: 0 var(--rayon) var(--rayon) 0;
  padding: 1.1rem 1.4rem;
  font-size: 0.95rem;
  color: rgba(34, 50, 44, 0.85);
}

/* --------------------------------------------------------------------------
   2. Stepper : 4 onglets surmontés d'une barre
   vert = fait · doré = en cours · gris = à venir
   -------------------------------------------------------------------------- */
.stepper {
  list-style: none; /* le reset de site.css ne couvre que les ul */
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
  max-width: 720px;
  margin: clamp(1.8rem, 4vw, 2.8rem) auto 1.5rem;
}
.stepper button {
  display: block;
  width: 100%;
  min-height: 44px; /* zone tactile confortable pour revenir en arrière */
  padding-top: 0.2rem;
  cursor: default;
}
.stepper__barre {
  display: block;
  height: 3px;
  border-radius: 2px;
  background: #D8D2C4; /* à venir */
  transition: background var(--transition);
}
.stepper__libelle {
  display: block;
  margin-top: 0.5rem;
  text-align: center;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(34, 50, 44, 0.5);
}
.stepper__etape--fait .stepper__barre { background: var(--vert); }
.stepper__etape--fait .stepper__libelle { color: var(--vert); }
.stepper__etape--fait button { cursor: pointer; } /* retour en arrière permis */
.stepper__etape--cours .stepper__barre { background: var(--dore); }
.stepper__etape--cours .stepper__libelle { color: var(--encre); font-weight: 400; }
.stepper button:focus-visible {
  outline: 2px solid var(--dore);
  outline-offset: 3px;
  border-radius: 4px;
}

/* --------------------------------------------------------------------------
   3. Carte d'étape : blanche, arrondie, une seule visible à la fois
   -------------------------------------------------------------------------- */
.etape-zone {
  max-width: 720px;
  margin-inline: auto;
  width: min(100% - 2.5rem, 720px);
  padding-bottom: clamp(3.5rem, 8vw, 6rem);
}
.etape-carte {
  background: var(--blanc);
  border: 1px solid rgba(201, 162, 76, 0.25);
  border-radius: var(--rayon);
  box-shadow: var(--ombre);
  padding: clamp(1.6rem, 4vw, 2.6rem);
}
.etape-carte[hidden] { display: none; }
.etape-carte h2 {
  font-size: clamp(1.5rem, 3.4vw, 2rem);
  outline: none; /* focalisé au changement d'étape, sans liseré */
}
.etape-note {
  margin-top: 0.4rem;
  font-size: 0.9rem;
  color: rgba(34, 50, 44, 0.8);
}

/* boutons du parcours */
.etape-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
}
/* téléphone : « Confirmer la réservation » ne tient pas à côté de
   « Retour » — les deux passent pleine largeur, l'action principale en tête */
@media (max-width: 479px) {
  .etape-actions .btn-plein,
  .etape-actions .btn-retour { width: 100%; }
  .etape-actions .btn-plein { order: 1; }
  .etape-actions .btn-retour { order: 2; }
}
.etape-actions--seule { justify-content: flex-end; }
.btn-plein,
.btn-retour {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 30px;
  border-radius: 999px;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background var(--transition), color var(--transition), opacity var(--transition);
}
.btn-plein {
  background: var(--vert);
  color: var(--creme);
}
.btn-plein:hover:not(:disabled) { background: #0b3a1c; }
.btn-plein:disabled { opacity: 0.35; cursor: default; }
.btn-retour {
  border: 1px solid var(--vert);
  color: var(--vert);
}
.btn-retour:hover { background: rgba(0, 42, 12, 0.07); }

/* --------------------------------------------------------------------------
   4. Étape 1 — convives
   -------------------------------------------------------------------------- */
.convives-grille {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.7rem;
  margin-top: 1.6rem;
}
.convive {
  aspect-ratio: 1.35;
  min-height: 44px; /* cible tactile, même sur un écran de 360 px */
  display: grid;
  place-items: center;
  border: 1px solid var(--vert);
  border-radius: 12px;
  font-size: 1.15rem;
  color: var(--vert);
  transition: background var(--transition), color var(--transition);
}
.convive:hover { background: rgba(0, 42, 12, 0.06); }
.convive.est-choisi {
  background: var(--vert);
  color: var(--creme);
}
.convive:focus-visible { outline: 2px solid var(--dore); outline-offset: 2px; }

.appel-groupe {
  margin-top: 1.3rem;
  font-size: 0.9rem;
  color: rgba(34, 50, 44, 0.7);
}
.appel-groupe a {
  color: var(--vert);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.appel-groupe a:hover { color: var(--dore); }

/* --------------------------------------------------------------------------
   5. Étape 2 — calendrier maison
   -------------------------------------------------------------------------- */
.calendrier { margin-top: 1.4rem; }
.calendrier__tete {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.8rem;
}
.calendrier__mois {
  font-family: var(--police-titre);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--vert);
}
.calendrier__mois::first-letter { text-transform: uppercase; }
.calendrier__nav {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--vert);
  border-radius: 50%;
  color: var(--vert);
  transition: background var(--transition), color var(--transition), opacity var(--transition);
}
.calendrier__nav svg { width: 15px; height: 15px; }
.calendrier__nav:hover:not(:disabled) { background: var(--vert); color: var(--creme); }
.calendrier__nav:disabled { opacity: 0.3; cursor: default; }

.calendrier__grille {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
/* téléphone : on récupère de la gouttière pour agrandir les jours
   (7 colonnes ne permettent pas 44 px sur 360 px — on vise le maximum) */
@media (max-width: 479px) {
  .etape-carte { padding: 1.35rem 1.05rem; }
  .calendrier__grille { gap: 2px; }
  .jour { min-height: 40px; font-size: 1rem; }
  .convives-grille { gap: 0.5rem; }
}
.calendrier__jour-nom {
  text-align: center;
  padding-block: 0.3rem;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(34, 50, 44, 0.5);
}
.jour {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 0.95rem;
  color: var(--encre);
  transition: background var(--transition), color var(--transition);
}
.jour:not(:disabled):hover { background: rgba(0, 42, 12, 0.07); }
.jour:disabled { color: rgba(34, 50, 44, 0.25); cursor: default; } /* passé / hors fenêtre */
.jour.est-choisi { background: var(--vert); color: var(--creme); }   /* cercle plein */
.jour:focus-visible { outline: 2px solid var(--dore); outline-offset: 2px; }

/* --------------------------------------------------------------------------
   6. Étape 3 — créneaux par service
   -------------------------------------------------------------------------- */
.service { margin-top: 1.5rem; }
.service__titre {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dore);
  margin-bottom: 0.7rem;
}
.creneaux {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: 0.6rem;
}
.creneau {
  padding: 0.55rem 0;
  text-align: center;
  border: 1px solid var(--vert);
  border-radius: 999px;
  font-size: 0.9rem;
  color: var(--vert);
  transition: background var(--transition), color var(--transition);
}
.creneau:hover { background: rgba(0, 42, 12, 0.06); }
.creneau.est-choisi { background: var(--vert); color: var(--creme); }
.creneau:focus-visible { outline: 2px solid var(--dore); outline-offset: 2px; }

/* ligne brunch, sous la carte (affichée le vendredi) */
.note-brunch {
  margin-top: 1.2rem;
  text-align: center;
  font-style: italic;
  font-size: 0.9rem;
  color: rgba(34, 50, 44, 0.7);
}

/* --------------------------------------------------------------------------
   7. Étape 4 — récapitulatif + formulaire
   -------------------------------------------------------------------------- */
.recap {
  background: #F4EDDF;
  border-left: 3px solid var(--dore);
  border-radius: 0 var(--rayon) var(--rayon) 0;
  padding: 1rem 1.3rem;
  margin-top: 1.4rem;
  display: grid;
  gap: 0.35rem;
  font-size: 0.95rem;
}
.recap span { color: rgba(34, 50, 44, 0.6); }

.champs {
  display: grid;
  gap: 1.1rem;
  margin-top: 1.6rem;
}
@media (min-width: 620px) {
  .champs { grid-template-columns: 1fr 1fr; }
  .champ--large { grid-column: 1 / -1; }
}
.champ label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(34, 50, 44, 0.6);
}
.champ input,
.champ select,
.champ textarea {
  width: 100%;
  font: inherit;
  font-weight: 300;
  /* jamais sous 16 px : en dessous, iOS zoome la page à la mise au point */
  font-size: max(1rem, 16px);
  color: var(--encre);
  background: var(--blanc);
  border: 1px solid rgba(0, 42, 12, 0.35);
  border-radius: 10px;
  padding: 0.7rem 0.9rem;
  /* neutralise l'habillage natif iOS (ombre interne, coins carrés) */
  -webkit-appearance: none;
  appearance: none;
}
/* la flèche du menu déroulant, retirée avec appearance, est redessinée */
.champ select {
  padding-right: 2.4rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9' fill='none' stroke='%2322322C' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1.5 7 7.5 13 1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.95rem center;
}
.champ input:focus,
.champ select:focus,
.champ textarea:focus {
  outline: none;
  border-color: var(--dore);
  box-shadow: 0 0 0 3px rgba(201, 162, 76, 0.2);
}
.champ textarea { min-height: 90px; resize: vertical; }

/* validation en français, sous les champs */
.champ--erreur input { border-color: #A6402F; }
.champ__erreur {
  display: none;
  margin-top: 0.3rem;
  font-size: 0.8rem;
  color: #A6402F;
}
.champ--erreur .champ__erreur { display: block; }

/* --------------------------------------------------------------------------
   8. Confirmation (démo)
   -------------------------------------------------------------------------- */
.succes { text-align: center; }
.succes__coche {
  width: 64px;
  height: 64px;
  margin: 0.4rem auto 1.2rem;
  color: var(--dore);
}
.succes h2 { color: var(--vert); }
.succes .recap { text-align: left; margin-top: 1.6rem; }
.succes__mention {
  margin-top: 1.2rem;
  font-size: 0.9rem;
  color: rgba(34, 50, 44, 0.65);
}

/* --------------------------------------------------------------------------
   Fond fleuri global (site.css) : les textes posés directement sur la
   photo passent en crème — les cartes du parcours restent claires.
   -------------------------------------------------------------------------- */
/* assombrissement localisé derrière le bloc d'ouverture seulement :
   calque flouté aux bords fondus, aucune coupe nette */
.reserver-ouverture .conteneur {
  position: relative;
  z-index: 0;
  padding-block: 1.5rem;
}
.reserver-ouverture .conteneur::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(0, 23, 10, 0.62);
  border-radius: 28px;
  filter: blur(28px); /* statique : peint une seule fois */
}
.reserver-ouverture h1 {
  color: var(--creme);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.75);
}
.reserver-ouverture .sous-titre { text-shadow: 0 2px 18px rgba(0, 0, 0, 0.75); }
.stepper__libelle { text-shadow: 0 1px 10px rgba(0, 0, 0, 0.7); }
.reserver-ouverture .sous-titre { color: rgba(251, 247, 239, 0.85); }
.stepper__libelle { color: rgba(251, 247, 239, 0.55); }
.stepper__etape--fait .stepper__libelle { color: var(--dore-clair); }
.stepper__etape--cours .stepper__libelle { color: var(--creme); }
.stepper__etape--fait .stepper__barre { background: var(--dore-clair); }
.stepper__barre { background: rgba(251, 247, 239, 0.25); }


/* Groupes de 7-8 : demande soumise a confirmation (aligne sur Zenchef) */
.note-groupe {
  margin: 0.9rem auto 0;
  max-width: 34rem;
  padding: 0.75rem 1rem;
  border-left: 3px solid var(--dore);
  background: rgba(201, 162, 76, 0.12);
  border-radius: 6px;
  font-size: 0.9rem;
  line-height: 1.5;
  text-align: left;
}
.note-groupe[hidden] { display: none; }
.recap__reserve {
  margin-top: 0.55rem;
  padding-top: 0.55rem;
  border-top: 1px dashed rgba(201, 162, 76, 0.5);
  color: var(--dore);
  font-size: 0.85rem;
}
