/* ============================================================
   LA FOCACC' — Coming Soon
   ------------------------------------------------------------
   COULEURS (charte graphique) :
   Modifiez les variables ci-dessous pour changer toute la palette.
   ============================================================ */
:root {
  --bordeaux:       #721421;  /* texte, éléments principaux        */
  --bordeaux-fonce: #5a0f1a;  /* hover / appuis                    */
  --beige:          #fef2e6;  /* fond de page                      */
  --beige-fonce:    #f3e2d0;  /* cartes, séparateurs               */
  --sauge:          #a4b089;  /* touches secondaires (fraîcheur)   */

  --police:         'Roboto', system-ui, sans-serif;  /* textes        */
  --police-display: 'Kalnia', serif;                  /* ITALIAN STREET FOOD */
}

/* ---------- Reset minimal ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--police);
  background-color: var(--beige);
  /* léger grain chaleureux, très subtil */
  background-image: radial-gradient(circle at 50% 0%, #fff7ee 0%, var(--beige) 55%);
  color: var(--bordeaux);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  -webkit-font-smoothing: antialiased;
}

/* Texte accessible aux lecteurs d'écran uniquement */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  clip: rect(0 0 0 0); overflow: hidden; white-space: nowrap;
}

/* ============================================================
   STRUCTURE GÉNÉRALE
   ============================================================ */
.page {
  width: 100%;
  max-width: 720px;
  padding: clamp(2rem, 5vw, 4rem) 1.5rem 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* ---------- Animation d'apparition au chargement ----------
   Chaque bloc .reveal apparaît en fondu + léger glissement,
   décalé via la variable --d définie dans le HTML. */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  animation: reveal .8s ease forwards;
  animation-delay: var(--d, 0s);
}
@keyframes reveal {
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   LOGO
   ============================================================ */
.logo-zone { margin-bottom: clamp(1.5rem, 4vw, 2.5rem); }

.logo {
  width: clamp(220px, 45vw, 340px);
  height: auto;
  display: block;
}

/* ============================================================
   ANNONCE
   ============================================================ */
.eyebrow {
  font-family: var(--police-display);   /* Kalnia */
  font-size: clamp(1rem, 2.8vw, 1.3rem);
  font-weight: 500;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--sauge);
  margin-bottom: 1rem;
}

h1 {
  font-size: clamp(2.1rem, 6vw, 3.4rem);
  font-weight: 800;             /* H1 — Roboto ExtraBold (charte) */
  line-height: 1.1;
  letter-spacing: -.01em;
}

.sous-titre {
  font-size: clamp(1.05rem, 2.5vw, 1.35rem);
  font-weight: 500;
  font-style: italic;
  margin-top: .6rem;
  opacity: .85;
}

/* ---------- Adresse mise en avant ---------- */
.adresse {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  margin-top: 1.4rem;
  font-style: normal;
  font-size: clamp(1rem, 2.6vw, 1.2rem);
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--bordeaux);
  background: #fff;
  border: 1.5px solid var(--beige-fonce);
  border-radius: 999px;
  padding: .7rem 1.5rem;
  box-shadow: 0 6px 18px rgba(114, 20, 33, .08);
}

.adresse-pin {
  width: 1.15em;
  height: 1.15em;
  color: var(--sauge);
  flex-shrink: 0;
}

/* Sur mobile, l'adresse passe sur deux lignes proprement */
@media (max-width: 420px) {
  .adresse { flex-direction: column; gap: .2rem; padding: .8rem 1.4rem; border-radius: 18px; }
  .adresse-sep { display: none; }
}

/* ============================================================
   COMPTEUR
   ============================================================ */
.compteur {
  display: flex;
  align-items: flex-start;
  gap: clamp(.4rem, 2vw, 1rem);
  margin-top: clamp(2rem, 5vw, 3rem);
}

.compteur-bloc {
  background: #fff;
  border: 1px solid var(--beige-fonce);
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(114, 20, 33, .07);
  padding: clamp(.8rem, 2.5vw, 1.2rem) clamp(.7rem, 2.5vw, 1.3rem);
  min-width: clamp(64px, 18vw, 96px);
  display: flex;
  flex-direction: column;
  gap: .25rem;
}

.compteur-valeur {
  font-size: clamp(1.6rem, 5vw, 2.6rem);
  font-weight: 800;
  font-variant-numeric: tabular-nums; /* évite les sauts de largeur */
  transition: transform .25s ease;
}

/* petit "pop" quand la valeur change (classe ajoutée en JS) */
.compteur-valeur.tick { animation: tick .3s ease; }
@keyframes tick {
  40% { transform: translateY(-4px); }
  100% { transform: translateY(0); }
}

.compteur-label {
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--sauge);
}

.compteur-sep {
  font-size: clamp(1.4rem, 4vw, 2.2rem);
  font-weight: 700;
  padding-top: clamp(.8rem, 2.5vw, 1.2rem);
  opacity: .35;
}

/* ============================================================
   MENTION SPÉCIALE
   ============================================================ */
.badge-offre {
  margin-top: clamp(1.8rem, 4vw, 2.5rem);
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  background: var(--bordeaux);
  color: var(--beige);
  font-weight: 600;
  font-size: clamp(.85rem, 2.2vw, 1rem);
  padding: .8rem 1.6rem;
  border-radius: 999px;
  box-shadow: 0 8px 22px rgba(114, 20, 33, .25);
}

.badge-etoile { color: var(--sauge); font-size: .8em; }

/* ============================================================
   HORAIRES
   ============================================================ */
.horaires {
  margin-top: clamp(2rem, 5vw, 3rem);
  width: 100%;
  max-width: 420px;
  background: #fff;
  border: 1px solid var(--beige-fonce);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(114, 20, 33, .08);
  padding: clamp(1.4rem, 4vw, 2rem) clamp(1.4rem, 4vw, 2.2rem);
}

.horaires-titre {
  font-size: clamp(1.15rem, 3vw, 1.4rem);
  font-weight: 700;             /* Roboto Bold (charte) */
  text-align: center;
  margin-bottom: 1.2rem;
}

/* Bloc horaires synthétique */
.horaires-jours {
  text-align: center;
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: .7rem;
}

.horaires-creneaux {
  display: flex;
  justify-content: center;
  gap: .7rem;
  flex-wrap: wrap;
}

.horaires-creneaux span {
  background: var(--beige);
  border: 1px solid var(--beige-fonce);
  border-radius: 999px;
  padding: .45rem 1.1rem;
  font-weight: 600;
  font-size: .95rem;
  font-variant-numeric: tabular-nums;
}

.horaires-ferme {
  text-align: center;
  margin-top: .9rem;
  color: var(--sauge);
  font-style: italic;
  font-weight: 600;
  font-size: .95rem;
}

/* Lien téléphone réservations */
.horaires-tel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  margin-top: 1.2rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--beige-fonce);
  color: var(--bordeaux);
  font-weight: 700;
  font-size: 1.02rem;
  text-decoration: none;
  transition: opacity .2s ease;
}
.horaires-tel:hover { opacity: .7; }

.horaires-tel svg {
  width: 1.1em;
  height: 1.1em;
  color: var(--sauge);
  flex-shrink: 0;
}

/* ============================================================
   NEWSLETTER
   ============================================================ */
.newsletter {
  margin-top: clamp(2.5rem, 6vw, 4rem);
  width: 100%;
  max-width: 520px;
  background: #fff;
  border: 1px solid var(--beige-fonce);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(114, 20, 33, .08);
  padding: clamp(1.6rem, 4vw, 2.4rem);
}

.newsletter h2 {
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  font-weight: 700;             /* H2 — Roboto Bold (charte) */
}

.newsletter-texte {
  font-size: .95rem;
  font-weight: 500;
  margin-top: .6rem;
  opacity: .8;
  line-height: 1.5;
}

.champ-groupe {
  display: flex;
  gap: .6rem;
  margin-top: 1.4rem;
}

#email {
  flex: 1;
  font: inherit;
  font-weight: 500;
  color: var(--bordeaux);
  background: var(--beige);
  border: 1.5px solid var(--beige-fonce);
  border-radius: 12px;
  padding: .9rem 1.1rem;
  outline: none;
  transition: border-color .25s ease, box-shadow .25s ease;
}

#email::placeholder { color: rgba(114, 20, 33, .45); }

#email:focus {
  border-color: var(--bordeaux);
  box-shadow: 0 0 0 3px rgba(114, 20, 33, .12);
}

#email.invalide {
  border-color: #c0392b;
  animation: shake .35s ease;
}
@keyframes shake {
  20%, 60% { transform: translateX(-4px); }
  40%, 80% { transform: translateX(4px); }
}

/* ---------- Boutons (style commun) ---------- */
#btn-inscription,
#btn-tourner {
  font: inherit;
  font-weight: 700;
  color: var(--beige);
  background: var(--bordeaux);
  border: none;
  border-radius: 12px;
  padding: .9rem 1.5rem;
  cursor: pointer;
  transition: background .25s ease, transform .2s ease, box-shadow .25s ease;
  white-space: nowrap;
}

#btn-inscription:hover,
#btn-tourner:hover {
  background: var(--bordeaux-fonce);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(114, 20, 33, .3);
}

#btn-inscription:active,
#btn-tourner:active { transform: translateY(0); }

#btn-tourner:disabled {
  opacity: .5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.form-message {
  margin-top: .8rem;
  font-size: .85rem;
  font-weight: 600;
  min-height: 1.2em;
}
.form-message.erreur  { color: #c0392b; }
.form-message.succes  { color: var(--sauge); }

/* ============================================================
   PIED DE PAGE
   ============================================================ */
.pied {
  margin-top: clamp(2.5rem, 6vw, 3.5rem);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  opacity: .55;
}

/* ============================================================
   ROUE CADEAU (modale)
   ============================================================ */
.roue-overlay {
  position: fixed;
  inset: 0;
  background: rgba(60, 8, 16, .55);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 100;
  opacity: 0;
  transition: opacity .35s ease;
}
.roue-overlay.visible { opacity: 1; }

.roue-modale {
  position: relative;
  background: var(--beige);
  border-radius: 24px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, .35);
  padding: clamp(1.6rem, 4vw, 2.5rem);
  width: 100%;
  max-width: 460px;
  max-height: 92vh;
  overflow-y: auto;
  text-align: center;
  transform: scale(.92) translateY(10px);
  transition: transform .35s cubic-bezier(.2, .9, .3, 1.2);
}
.roue-overlay.visible .roue-modale { transform: scale(1) translateY(0); }

.roue-fermer {
  position: absolute;
  top: .8rem; right: 1rem;
  background: none;
  border: none;
  font-size: 1.8rem;
  line-height: 1;
  color: var(--bordeaux);
  cursor: pointer;
  opacity: .6;
  transition: opacity .2s ease;
}
.roue-fermer:hover { opacity: 1; }

.roue-modale h2 {
  font-size: clamp(1.2rem, 3vw, 1.45rem);
  font-weight: 700;
}

.roue-soustexte {
  font-size: .9rem;
  font-weight: 500;
  margin-top: .5rem;
  opacity: .8;
}

.roue-conteneur {
  position: relative;
  width: min(300px, 70vw);
  margin: 1.5rem auto;
}

#roue-canvas {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 50%;
  box-shadow: 0 10px 30px rgba(114, 20, 33, .25);
}

/* Pointeur fixe en haut de la roue */
.roue-pointeur {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 0; height: 0;
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-top: 22px solid var(--bordeaux);
  filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .25));
  z-index: 2;
}

.roue-resultat { margin-top: 1.4rem; }

.resultat-lot {
  font-size: clamp(1.3rem, 4vw, 1.6rem);
  font-weight: 800;
  animation: resultatPop .5s cubic-bezier(.2, .9, .3, 1.4);
}
@keyframes resultatPop {
  0% { transform: scale(.6); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.resultat-message {
  margin-top: .5rem;
  font-size: .92rem;
  font-weight: 500;
  color: var(--sauge);
  font-style: italic;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 540px) {
  /* Le formulaire passe en colonne sur mobile */
  .champ-groupe { flex-direction: column; }
  #btn-inscription { width: 100%; }
}

/* Respect du réglage "réduire les animations" */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
