/* Ohlala Yoga — feuille commune (site + OS). Valeurs : DESIGN.md uniquement. */
:root {
  --fond: #FDEADF;
  --fond-2: #FFF8F3;
  --fond-3: #DCE6F5;
  --texte: #2B5672;
  --texte-2: #4F6F86;
  --ligne: #EBCDB9;
  --accent: #2B5672;
  --sur-accent: #FFFFFF;
  --orange: #C2620A;
  --orange-vif: #F9A01E;
  --bleu-ciel: #9DB8E0;
  --ok: #2E7D4F;
  --attention: #A15C00;
  --probleme: #B3261E;
  --police-titres: "Abril Fatface", Georgia, serif;
  --police-texte: "Montserrat", -apple-system, "Segoe UI", system-ui, sans-serif;
  --t12: 12px; --t14: 14px; --t16: 16px; --t20: 20px; --t24: 24px; --t32: 32px; --t44: 44px;
  --e4: 4px; --e8: 8px; --e12: 12px; --e16: 16px; --e24: 24px; --e32: 32px; --e48: 48px;
  --r-bloc: 24px; --r-champ: 14px; --r-pilule: 999px;
  --ombre: 0 6px 24px rgba(43, 86, 114, .08);
  --blanc: #FFFFFF;
  --desactive: #E3D3C9;
  --sur-desactive: #5A6670;
  --voile: rgba(43, 86, 114, .35);
  --largeur: 1120px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--fond); color: var(--texte); font-family: var(--police-texte); font-size: var(--t16); line-height: 1.55; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--texte); text-underline-offset: 3px; }
h1, h2, .titre { font-family: var(--police-titres); font-weight: 400; color: var(--orange); line-height: 1.12; margin: 0 0 var(--e16); letter-spacing: .2px; }
h1 { font-size: var(--t32); }
h2 { font-size: var(--t24); }
h3 { font-size: var(--t20); margin: 0 0 var(--e8); line-height: 1.3; }
p { margin: 0 0 var(--e12); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.cache { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.conteneur { max-width: var(--largeur); margin: 0 auto; padding: 0 var(--e16); }
.texte-2 { color: var(--texte-2); }
.petit { font-size: var(--t14); }
.centre { text-align: center; }
.pile > * + * { margin-top: var(--e12); }
.ligne { display: flex; gap: var(--e12); align-items: center; flex-wrap: wrap; }
.espace { justify-content: space-between; }

/* Boutons */
.bouton { display: inline-flex; align-items: center; justify-content: center; gap: var(--e8); min-height: 48px; padding: 0 var(--e24); border-radius: var(--r-pilule); border: 2px solid var(--accent); background: var(--accent); color: var(--sur-accent); font: 600 var(--t16) var(--police-texte); text-decoration: none; cursor: pointer; transition: transform .15s; }
.bouton:hover { transform: translateY(-1px); }
.bouton.second { background: transparent; color: var(--accent); }
.bouton.discret { background: transparent; border-color: transparent; color: var(--accent); text-decoration: underline; padding: 0 var(--e8); }
.bouton.danger { background: var(--probleme); border-color: var(--probleme); }
.bouton.danger.second { background: transparent; color: var(--probleme); }
.bouton.large { width: 100%; }
.bouton[disabled], .bouton[aria-disabled="true"] { background: var(--desactive); border-color: var(--desactive); color: var(--sur-desactive); cursor: not-allowed; transform: none; }
.bouton.second[disabled] { background: transparent; }
.bouton svg { width: 20px; height: 20px; }
.raison { font-size: var(--t14); color: var(--texte-2); margin-top: var(--e8); text-align: center; }

/* Pastilles (choix) */
.pastilles { display: flex; gap: var(--e8); flex-wrap: wrap; }
.pastille { min-height: 44px; padding: 0 var(--e16); border-radius: var(--r-pilule); border: 2px solid var(--ligne); background: var(--fond-2); color: var(--texte); font: 600 var(--t14) var(--police-texte); cursor: pointer; display: inline-flex; align-items: center; gap: var(--e8); }
.pastille[aria-pressed="true"], .pastille[aria-checked="true"] { border-color: var(--accent); background: var(--accent); color: var(--sur-accent); }

/* Étiquettes */
.etiquette { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: var(--r-pilule); font-size: var(--t12); font-weight: 700; background: var(--fond); border: 1px solid var(--ligne); }
.etiquette.ok { color: var(--ok); border-color: currentColor; background: var(--fond-2); }
.etiquette.attention { color: var(--attention); border-color: currentColor; background: var(--fond-2); }
.etiquette.probleme { color: var(--probleme); border-color: currentColor; background: var(--fond-2); }
.point { width: 12px; height: 12px; border-radius: 50%; flex: none; display: inline-block; }
.point.orange { background: var(--orange-vif); }
.point.bleu { background: var(--bleu-ciel); }

/* Cartes */
.carte { background: var(--fond-2); border-radius: var(--r-bloc); padding: var(--e24); box-shadow: var(--ombre); }
.carte.plate { box-shadow: none; border: 1px solid var(--ligne); }

/* Formulaires */
.champ { display: flex; flex-direction: column; gap: 6px; margin-bottom: var(--e16); }
.champ label, .champ .label { font-weight: 600; font-size: var(--t14); }
.champ input, .champ textarea, .champ select { font: var(--t16) var(--police-texte); color: var(--texte); background: var(--blanc); border: 2px solid var(--ligne); border-radius: var(--r-champ); padding: 12px 14px; min-height: 48px; width: 100%; }
.champ textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
.champ input:focus, .champ textarea:focus, .champ select:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px rgba(43, 86, 114, .18); }
.champ.erreur input, .champ.erreur textarea, .champ.erreur select { border-color: var(--probleme); }
.msg-erreur { color: var(--probleme); font-size: var(--t14); font-weight: 600; }
.aide { font-size: var(--t14); color: var(--texte-2); }
.deux { display: grid; grid-template-columns: 1fr; gap: 0 var(--e16); }
@media (min-width: 640px) { .deux { grid-template-columns: 1fr 1fr; } }
.coche { display: flex; gap: var(--e12); align-items: flex-start; padding: var(--e12) 0; cursor: pointer; }
.coche input { width: 24px; height: 24px; accent-color: var(--accent); flex: none; margin: 2px 0 0; }
.encart { background: var(--fond); border-radius: var(--r-champ); padding: var(--e16); font-size: var(--t14); }
.alerte { border-radius: var(--r-champ); padding: var(--e12) var(--e16); font-weight: 600; border: 2px solid currentColor; background: var(--fond-2); }
.alerte.probleme { color: var(--probleme); }
.alerte.ok { color: var(--ok); }

/* Chargement */
.chargement { display: flex; align-items: center; justify-content: center; gap: var(--e12); padding: var(--e32); color: var(--texte-2); }
.chargement::before { content: ""; width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--ligne); border-top-color: var(--accent); animation: tourne .8s linear infinite; }
@keyframes tourne { to { transform: rotate(360deg); } }
.vide { text-align: center; padding: var(--e32) var(--e16); color: var(--texte-2); }

/* Volet / fenêtre */
.voile { position: fixed; inset: 0; background: var(--voile); z-index: 50; display: flex; align-items: flex-end; justify-content: center; }
.volet { background: var(--fond-2); width: 100%; max-height: 92vh; max-height: 92svh; overflow: auto; overscroll-behavior: contain; border-radius: var(--r-bloc) var(--r-bloc) 0 0; padding: var(--e24) var(--e16) calc(var(--e24) + env(safe-area-inset-bottom)); }
@media (min-width: 760px) { .voile { align-items: center; } .volet { max-width: 560px; border-radius: var(--r-bloc); padding: var(--e32); } }
.volet .entete { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--e12); margin: calc(-1 * var(--e24)) calc(-1 * var(--e16)) var(--e16); padding: var(--e16) var(--e16) var(--e8); position: sticky; top: calc(-1 * var(--e24)); z-index: 2; background: var(--fond-2); }
@media (min-width: 760px) { .volet .entete { margin: calc(-1 * var(--e32)) calc(-1 * var(--e32)) var(--e16); padding: var(--e24) var(--e32) var(--e8); top: calc(-1 * var(--e32)); } }
/* Champs date et heure : sur iPhone, ils gardent sinon une largeur minimale et débordent */
input[type="date"], input[type="time"] { -webkit-appearance: none; appearance: none; min-width: 0; max-width: 100%; }
input[type="date"]::-webkit-date-and-time-value, input[type="time"]::-webkit-date-and-time-value { text-align: left; }
.fermer { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--fond); color: var(--texte); cursor: pointer; flex: none; display: grid; place-items: center; }
.fermer svg { width: 20px; height: 20px; }

/* Message flottant */
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(96px + env(safe-area-inset-bottom)); background: var(--texte); color: var(--blanc); padding: 12px 20px; border-radius: var(--r-pilule); font-weight: 600; z-index: 60; max-width: calc(100% - 32px); box-shadow: var(--ombre); }

/* Motifs Matisse (décor) */
.motif { position: absolute; pointer-events: none; user-select: none; z-index: 0; }

@media (prefers-reduced-motion: reduce) { *, *::before { animation: none !important; transition: none !important; } }
.pastille svg { width: 18px; height: 18px; flex: none; }
.deux > *, .ligne-champs > * { min-width: 0; }
input[type="date"], input[type="time"] { min-width: 0; }
/* Écrans de validation : les cœurs dessinés par Gaëlle à la place de la coche verte (Julien, 24 oct.) */
.succes-icone { width: 112px !important; height: 104px !important; border-radius: 0 !important; background: url(/img/coeurs.webp) no-repeat center / contain !important; margin: 0 auto var(--e16) !important; animation: coeurs .6s ease-out; }
.succes-icone svg { display: none !important; }
@keyframes coeurs { from { transform: scale(.6) rotate(-8deg); opacity: 0; } to { transform: none; opacity: 1; } }
/* Bouton rond avec une icône (croix, appel) : commun au site et à l'OS (QA 24 oct. : absent de la réservation) */
.icone-bouton { width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent; color: var(--texte); display: grid; place-items: center; cursor: pointer; text-decoration: none; }
.icone-bouton svg { width: 24px; height: 24px; }
/* Menu déroulant de l'appli (remplace le menu natif) */
.deroulant { position: relative; flex: none; }
.deroulant .selecteur { display: inline-flex; align-items: center; }
.deroulant-liste { position: absolute; right: 0; top: calc(100% + 6px); z-index: 40; min-width: 160px; margin: 0; padding: 6px; list-style: none; background: var(--fond-2); border: 1px solid var(--ligne); border-radius: var(--r-champ); box-shadow: var(--ombre); }
.deroulant-liste li { display: flex; align-items: center; justify-content: space-between; gap: var(--e12); min-height: 44px; padding: 0 var(--e12); border-radius: 10px; font-weight: 600; font-size: var(--t16); color: var(--texte); cursor: pointer; }
.deroulant-liste li:hover, .deroulant-liste li:focus { background: var(--fond); outline: none; }
.deroulant-liste li[aria-selected="true"] { background: var(--accent); color: var(--sur-accent); }
.deroulant-liste li[aria-selected="true"]::after { content: ''; width: 10px; height: 6px; border: solid currentColor; border-width: 0 0 2px 2px; transform: rotate(-45deg) translateY(-2px); }
/* Téléphone avec indicatif du pays */
.tel-pays { display: flex; gap: var(--e8); align-items: stretch; }
.tel-pays .deroulant-liste { left: 0; right: auto; min-width: 230px; max-height: 320px; overflow-y: auto; }
.tel-pays .deroulant-liste li { justify-content: flex-start; gap: var(--e8); }
.tel-pays .deroulant-liste li[aria-selected="true"] .texte-2 { color: var(--sur-accent); }
.tel-pays .deroulant-liste li[aria-selected="true"]::after { margin-left: auto; }
.indicatif { display: inline-flex; align-items: center; gap: 6px; min-height: 48px; height: 100%; padding: 0 var(--e12); border-radius: var(--r-champ); border: 1.5px solid var(--ligne); background: var(--fond-2); font: 600 var(--t16) var(--police-texte); color: var(--texte); cursor: pointer; }
.indicatif img, .tel-pays li img { border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
.tel-pays input[type="tel"] { flex: 1; min-width: 0; }
.drapeau { display: inline-block; vertical-align: -1px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
