/* Charte SOLMA. Pour passer aux polices de marque (Ballinger X-Condensed /
   Neue Haas Grotesk Display) une fois leur licence web obtenue : déclarer
   les @font-face et les placer en tête de --police-titre / --police-texte. */
:root {
  --bleu: #cce0ec;
  --orange: #dd642f;
  --anthracite: #424242;
  --jaune: #f4e4b5;
  --creme: #f2f0ea;
  --blanc: #ffffff;
  --gris-doux: #8a8986;
  --trait: #dcd9d0;

  --police-titre: "Antonio", "Arial Narrow", sans-serif;
  --police-texte: "Inter Tight", "Helvetica Neue", Arial, sans-serif;

  --rayon: 14px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html, body {
  margin: 0;
  background: var(--creme);
  color: var(--anthracite);
  font-family: var(--police-texte);
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

#app { max-width: 760px; margin: 0 auto; padding: 24px 16px 40px; }

button { font: inherit; color: inherit; cursor: pointer; }
button:focus-visible, input:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }

.titre {
  font-family: var(--police-titre);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1;
  margin: 0;
}
h1.titre { font-size: clamp(40px, 9vw, 56px); }
h2.titre { font-size: 30px; }

.entete { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; margin-bottom: 20px; }
.entete .titre { white-space: nowrap; }
.liens-compte { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.lien-compte {
  background: none; border: 0; padding: 6px 0;
  font-size: 14px; text-decoration: underline; text-underline-offset: 3px;
}

/* --- Bandeau des jours --- */
.jours {
  display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 10px;
  scroll-snap-type: x proximity; scrollbar-width: none;
}
.jours::-webkit-scrollbar { display: none; }
.jour {
  flex: 0 0 auto; width: 58px; padding: 10px 0 9px;
  border: 1px solid var(--trait); border-radius: var(--rayon);
  background: var(--blanc); text-align: center; scroll-snap-align: start;
}
.jour-nom { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; }
.jour-num { display: block; font-family: var(--police-titre); font-weight: 700; font-size: 26px; line-height: 1.1; }
.jour[aria-pressed="true"] { background: var(--anthracite); border-color: var(--anthracite); color: var(--creme); }
.jour.vide:not([aria-pressed="true"]) { color: var(--gris-doux); background: transparent; }

/* --- Filtres --- */
.filtres { display: flex; gap: 8px; margin: 14px 0 22px; flex-wrap: wrap; }
.filtre {
  border: 1px solid var(--anthracite); background: transparent; border-radius: 999px;
  padding: 6px 14px; font-size: 14px;
}
.filtre[aria-pressed="true"] { background: var(--anthracite); color: var(--creme); }

/* --- Liste des cours --- */
.date-du-jour { font-size: 15px; margin: 0 0 12px; }
.date-du-jour::first-letter { text-transform: uppercase; }
.cours-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.cours {
  display: grid; grid-template-columns: 74px 1fr auto; align-items: center; gap: 14px;
  background: var(--blanc); border-radius: var(--rayon); padding: 14px 16px;
}
.cours-heure { font-family: var(--police-titre); font-weight: 700; font-size: 28px; line-height: 1; }
.cours-duree { display: block; font-size: 13px; color: var(--gris-doux); margin-top: 4px; }
.cours-nom { font-weight: 600; text-transform: uppercase; letter-spacing: 0.02em; font-size: 15px; margin: 0 0 6px; }
.etiquettes { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.etiquette { font-size: 12px; padding: 2px 9px; border-radius: 999px; }
.etiquette.reformer { background: var(--bleu); }
.etiquette.pilates { background: var(--jaune); }
.places { font-size: 13px; }
.places.peu { color: var(--orange); font-weight: 600; }
.places.complet { color: var(--gris-doux); }

.bouton {
  border: 0; border-radius: 999px; padding: 11px 20px;
  background: var(--anthracite); color: var(--creme);
  font-weight: 600; font-size: 14px; letter-spacing: 0.04em; text-transform: uppercase;
  white-space: nowrap;
}
.bouton:hover { background: #2f2f2f; }
.bouton[disabled] { background: var(--trait); color: var(--gris-doux); cursor: default; }
.bouton.large { width: 100%; padding: 14px 20px; }
.bouton.secondaire { background: transparent; color: var(--anthracite); border: 1px solid var(--anthracite); }

.message-vide { background: var(--blanc); border-radius: var(--rayon); padding: 28px 20px; text-align: center; }
.message-erreur { color: #a63d12; font-size: 14px; margin: 10px 0 0; }
.chargement { color: var(--gris-doux); padding: 20px 0; }

@media (max-width: 480px) {
  .cours { grid-template-columns: 62px 1fr; }
  .cours-heure { font-size: 24px; }
  .cours-action { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; }
}

/* --- Fenêtre de réservation --- */
.voile { position: fixed; inset: 0; background: rgba(40, 40, 40, 0.45); z-index: 10; }
.fenetre {
  position: fixed; z-index: 11; left: 0; right: 0; bottom: 0;
  max-height: 92vh; overflow-y: auto;
  background: var(--creme); border-radius: 20px 20px 0 0;
  padding: 28px 20px calc(24px + env(safe-area-inset-bottom));
}
@media (min-width: 640px) {
  .fenetre {
    left: 50%; right: auto; bottom: auto; top: 50%;
    transform: translate(-50%, -50%); width: 480px; border-radius: 20px;
  }
}
.fenetre-fermer {
  position: absolute; top: 12px; right: 14px; border: 0; background: none;
  font-size: 28px; line-height: 1; padding: 4px 8px;
}
.fenetre .titre { margin-bottom: 6px; padding-right: 30px; }
.sous-titre { margin: 0 0 20px; font-size: 15px; }
.fenetre p { margin: 0 0 14px; }

.onglets { display: flex; border-bottom: 1px solid var(--trait); margin-bottom: 18px; }
.onglet { flex: 1; border: 0; background: none; padding: 10px 0; font-weight: 500; border-bottom: 2px solid transparent; }
.onglet[aria-selected="true"] { border-bottom-color: var(--anthracite); }

.champ { display: block; margin-bottom: 14px; }
.champ span { display: block; font-size: 13px; margin-bottom: 5px; }
.champ input {
  width: 100%; padding: 12px 14px; font: inherit; color: inherit;
  border: 1px solid var(--trait); border-radius: 10px; background: var(--blanc);
}
.lien-discret { background: none; border: 0; padding: 0; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }

.offres { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 8px; }
.offre {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 12px;
  text-align: left; background: var(--blanc); border: 1px solid var(--trait); border-radius: 12px; padding: 13px 14px;
}
.offre:hover { border-color: var(--anthracite); }
.offre-nom { font-weight: 600; display: block; }
.offre-detail { font-size: 13px; color: var(--gris-doux); }
.offre-prix { font-family: var(--police-titre); font-weight: 700; font-size: 24px; white-space: nowrap; }
.offres-groupe { font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; margin: 18px 0 8px; }

.minuteur { background: var(--jaune); border-radius: 10px; padding: 9px 12px; font-size: 14px; margin-bottom: 16px; }
#paiement-stripe { margin-bottom: 16px; min-height: 40px; }
.succes-pastille {
  width: 56px; height: 56px; border-radius: 50%; background: var(--bleu);
  display: grid; place-items: center; font-size: 28px; margin-bottom: 14px;
}

/* --- Vue Tarifs --- */
.accroche { margin: -8px 0 8px; font-size: 15px; }
.section-titre {
  font-family: var(--police-titre); font-weight: 700; text-transform: uppercase;
  font-size: 22px; margin: 28px 0 12px;
}
.tarifs { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.tarif {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  background: var(--blanc); border-radius: var(--rayon); padding: 16px;
}
.tarif-titre { font-weight: 600; text-transform: uppercase; letter-spacing: 0.02em; font-size: 15px; margin: 0 0 4px; }
.tarif-detail { font-size: 13px; color: var(--gris-doux); margin: 0; }
.tarif-note { font-size: 13px; color: var(--orange); margin: 4px 0 0; }
.tarif-achat { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.tarif-prix { font-family: var(--police-titre); font-weight: 700; font-size: 28px; margin: 0; white-space: nowrap; }
.tarif-prix span { font-family: var(--police-texte); font-weight: 400; font-size: 13px; color: var(--gris-doux); }
.mention { font-size: 13px; color: var(--gris-doux); margin: 10px 0 0; }

@media (max-width: 480px) {
  .tarif { flex-direction: column; align-items: stretch; }
  .tarif-achat { justify-content: space-between; }
}

/* --- Vue Mon compte --- */
.soldes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.solde { border-radius: var(--rayon); padding: 16px; display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.solde.reformer { background: var(--bleu); }
.solde.pilates { background: var(--jaune); }
.solde-nombre { font-family: var(--police-titre); font-weight: 700; font-size: 44px; line-height: 1; }
.actions-ligne { display: flex; gap: 10px; flex-wrap: wrap; }
.actions-centre { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 16px; }
.message-vide p { margin: 0; }
.carte-info { background: var(--blanc); border-radius: var(--rayon); padding: 16px; }
.carte-info p { margin: 0 0 6px; }
.carte-info p:last-child { margin-bottom: 0; }
.cours-date { font-size: 13px; color: var(--gris-doux); margin: 0; }
.cours-date::first-letter { text-transform: uppercase; }

/* Promotions */
.prix-barre { font-family: var(--police-texte); font-weight: 400; font-size: 0.6em; color: var(--gris-doux); }
.badge-promo {
  display: inline-block; margin: 6px 0 0; padding: 2px 9px; border-radius: 999px;
  background: var(--orange); color: var(--blanc); font-size: 12px; font-weight: 600;
}
.offre .prix-barre { font-size: 15px; }
.etiquettes:empty { display: none; }
.etiquette.lieu { background: var(--creme); border: 1px solid var(--orange); }
.alerte-lieu { background: var(--jaune); border-radius: 10px; padding: 9px 12px; font-size: 14px; margin: -8px 0 16px; }

/* Créneau fixe */
.case-fixe { display: flex; gap: 10px; align-items: flex-start; background: var(--blanc); border-radius: 12px; padding: 12px; margin: 0 0 16px; font-size: 14px; cursor: pointer; }
.case-fixe input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--anthracite); }
.aide-case { color: var(--gris-doux); font-size: 13px; }
.liste-dates { margin: 0 0 14px; padding-left: 18px; font-size: 14px; }
.liste-dates li::first-letter { text-transform: uppercase; }

/* Case d'acceptation des CGV, sous le formulaire de paiement */
.case-cgv { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; margin: 14px 0 12px; line-height: 1.4; }
.case-cgv input { margin-top: 2px; width: 16px; height: 16px; flex: none; accent-color: var(--anthracite); }
.case-cgv a { color: inherit; }
