:root {
  color-scheme: light;
  --violet: #4B2A8C;
  --violet-dark: #2F1A5C;
  --violet-soft: #F0EDF5;
  --corail: #E2603F;
  --corail-clair: #FF9A7A;
  --encre: #1F1A2E;
  --gris: #5E586B;
  --bord: #E4E0EC;
  --fond: #FAF9FC;
  --blanc: #FFFFFF;
  --vert: #0E5A43;
  --vert-soft: #E3F3EC;
  --rouge: #A12A12;
  --rouge-soft: #FBE9E4;
  --rayon: 14px;
  --titre: 'Bricolage Grotesque', system-ui, sans-serif;
  --texte: 'DM Sans', system-ui, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--fond);
  color: var(--encre);
  font-family: var(--texte);
  font-size: 16px;
  line-height: 1.5;
}

a { color: var(--violet); }
a:hover { color: var(--violet-dark); }

h1, h2, h3 { font-family: var(--titre); line-height: 1.15; margin: 0; }

.conteneur { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.etroit { max-width: 460px; }

/* Logo */
.logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: inherit; }
.logo:hover { color: inherit; }
.logo-icone {
  width: 32px; height: 32px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--violet); color: var(--blanc); transform: rotate(-8deg);
}
.logo-texte { font-family: var(--titre); font-weight: 700; font-size: 24px; letter-spacing: -0.5px; line-height: 1; }
.logo-texte span { color: var(--corail); }
.sur-violet .logo-icone { background: var(--blanc); color: var(--violet); }
.sur-violet .logo-texte span { color: var(--corail-clair); }

/* Barre du haut */
.barre { background: var(--violet); color: var(--blanc); }
.barre .conteneur { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; flex-wrap: wrap; }
.badge-pro {
  padding: 4px 10px; border-radius: 999px; background: var(--blanc); color: var(--violet);
  font-size: 12px; font-weight: 700; letter-spacing: 0.5px;
}

/* Boutons */
.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 20px; border-radius: 12px; border: 0;
  background: var(--violet); color: var(--blanc);
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
}
.bouton:hover { background: var(--violet-dark); color: var(--blanc); }
.bouton:disabled { background: #B7B1C2; cursor: not-allowed; }
.bouton-clair { background: var(--blanc); color: var(--violet); }
.bouton-clair:hover { background: var(--violet-soft); color: var(--violet-dark); }
.bouton-contour { background: var(--blanc); color: var(--violet); border: 1px solid var(--violet); }
.bouton-contour:hover { background: var(--violet-soft); color: var(--violet-dark); }
.bouton-danger { background: var(--rouge); }
.bouton-danger:hover { background: #7F200E; }
.bouton-lien {
  min-height: 44px; padding: 0 8px; border: 0; background: transparent; color: var(--violet);
  font: inherit; font-weight: 700; cursor: pointer;
}
.bouton-plein { width: 100%; }

/* Formulaires */
.carte { background: var(--blanc); border: 1px solid var(--bord); border-radius: var(--rayon); padding: 20px; }
.champ { display: flex; flex-direction: column; gap: 6px; }
.champ label, .legende { font-weight: 700; }
.champ input {
  min-height: 48px; width: 100%; padding: 0 12px;
  border: 1px solid #8E879C; border-radius: 10px; background: var(--blanc); color: var(--encre); font: inherit;
}
.champ input:focus, .bouton:focus-visible, .choix input:focus-visible + span, .bouton-lien:focus-visible {
  outline: 3px solid var(--corail-clair); outline-offset: 2px;
}
.aide { font-size: 14px; color: var(--gris); }
.formulaire { display: flex; flex-direction: column; gap: 16px; }
.choix-groupe { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.choix { position: relative; }
.choix input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choix span {
  display: flex; align-items: center; justify-content: center; min-height: 56px;
  border: 2px solid var(--bord); border-radius: 12px; background: var(--blanc); font-weight: 700; cursor: pointer;
}
.choix input:checked + span { border-color: var(--violet); background: var(--violet); color: var(--blanc); }

.message { margin: 0; padding: 12px 14px; border-radius: 10px; }
.message-erreur { background: var(--rouge-soft); color: #8A2A12; }
.message-ok { background: var(--vert-soft); color: var(--vert); }
.cache { display: none !important; }

/* Page d'accueil */
.hero { background: var(--violet); color: var(--blanc); position: relative; overflow: hidden; padding: 56px 0 72px; border-radius: 0 0 32px 32px; }
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.hero::before { width: 420px; height: 420px; top: -160px; right: -120px; background: rgba(255, 255, 255, 0.08); }
.hero::after { width: 140px; height: 140px; bottom: 40px; right: 18%; border: 2px solid rgba(255, 255, 255, 0.18); }
.hero .conteneur { position: relative; }
.hero h1 { font-size: clamp(34px, 6vw, 60px); max-width: 760px; letter-spacing: -1px; }
.hero p { font-size: 18px; max-width: 600px; margin: 18px 0 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.pastilles { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.pastille { padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.16); font-size: 14px; font-weight: 700; }

.section { padding: 56px 0; }
.section h2 { font-size: clamp(26px, 4vw, 38px); margin-bottom: 8px; }
.section .intro { color: var(--gris); margin: 0 0 28px; max-width: 620px; }
.grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.atout h3 { font-size: 20px; margin: 12px 0 6px; }
.atout p { margin: 0; color: var(--gris); }
.atout-icone {
  width: 44px; height: 44px; border-radius: 12px; background: var(--violet-soft); color: var(--violet);
  display: flex; align-items: center; justify-content: center;
}

.formule { display: flex; flex-direction: column; gap: 10px; }
.formule-vedette { border: 2px solid var(--violet); }
.formule .prix { font-family: var(--titre); font-size: 40px; font-weight: 700; line-height: 1; }
.formule .prix small { font-family: var(--texte); font-size: 16px; font-weight: 500; color: var(--gris); }
.formule ul { margin: 0; padding-left: 20px; color: var(--gris); }
.etiquette { align-self: flex-start; padding: 4px 10px; border-radius: 999px; background: var(--violet); color: var(--blanc); font-size: 12px; font-weight: 700; }

.pied { padding: 28px 0 40px; color: var(--gris); font-size: 14px; border-top: 1px solid var(--bord); }
.pied .conteneur { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }

/* Pages compte */
.page-compte { padding: 40px 0 64px; }
.page-compte h1 { font-size: 32px; margin-bottom: 6px; }
.page-compte .sous-titre { color: var(--gris); margin: 0 0 24px; }

/* Espace pro */
.espace { padding: 28px 0 64px; display: flex; flex-direction: column; gap: 20px; }
.entete-espace { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; }
.entete-espace h1 { font-size: 32px; }
.bonjour { margin: 0; color: var(--gris); }
.titre-section { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.titre-section h2 { font-size: 22px; }
.liste { display: flex; flex-direction: column; }
.ligne {
  display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--violet-soft);
}
.ligne:last-child { border-bottom: 0; }
.ligne-texte { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ligne-texte strong { overflow-wrap: anywhere; }
.ligne-texte span { font-size: 14px; color: var(--gris); }
.ligne-masquee .ligne-texte { opacity: 0.55; }
.interrupteur { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--gris); cursor: pointer; min-height: 44px; }
.interrupteur input { width: 22px; height: 22px; margin: 0; accent-color: var(--violet); }
.menu-zone { position: relative; }
.bouton-points {
  width: 44px; height: 44px; border: 0; border-radius: 10px; background: transparent; color: var(--encre);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.bouton-points:hover { background: var(--violet-soft); }
.menu {
  position: absolute; right: 0; top: 46px; z-index: 5; min-width: 170px; padding: 6px;
  background: var(--blanc); border: 1px solid var(--bord); border-radius: 12px;
  box-shadow: 0 8px 24px rgba(31, 26, 46, 0.14); display: flex; flex-direction: column;
}
.menu button {
  min-height: 44px; padding: 0 12px; border: 0; border-radius: 8px; background: transparent;
  color: var(--encre); font: inherit; text-align: left; cursor: pointer;
}
.menu button:hover { background: var(--violet-soft); }
.menu .supprimer { color: var(--rouge); font-weight: 700; }
.vide { margin: 0; padding: 18px; border-radius: 12px; background: var(--violet-soft); color: var(--gris); text-align: center; }
.infos { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.info { padding: 14px 16px; border-radius: 12px; background: var(--violet-soft); }
.info span { display: block; font-size: 13px; color: var(--gris); }
.info strong { overflow-wrap: anywhere; }

dialog {
  width: min(460px, calc(100vw - 32px)); padding: 0; border: 0; border-radius: 16px;
  box-shadow: 0 20px 50px rgba(31, 26, 46, 0.25);
}
dialog::backdrop { background: rgba(31, 26, 46, 0.45); }
.dialogue { padding: 22px; display: flex; flex-direction: column; gap: 16px; }
.dialogue h2 { font-size: 22px; }
.deux-colonnes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }

.chargement { padding: 60px 0; text-align: center; color: var(--gris); }

/* Lien de réservation */
.lien-zone { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.lien-zone code {
  flex: 1 1 260px; min-width: 0; padding: 12px; border-radius: 10px; background: var(--violet-soft);
  font-family: var(--texte); font-size: 15px; overflow-wrap: anywhere;
}

/* Horaires */
.horaires { display: flex; flex-direction: column; }
.jour {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px;
  padding: 10px 0; border-bottom: 1px solid var(--violet-soft);
}
.jour:last-child { border-bottom: 0; }
.jour-nom { display: flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 700; cursor: pointer; min-width: 130px; }
.jour-nom input { width: 22px; height: 22px; margin: 0; accent-color: var(--violet); }
.jour-heures { display: flex; align-items: center; gap: 8px; color: var(--gris); }
.jour-heures input {
  min-height: 44px; padding: 0 8px; border: 1px solid #8E879C; border-radius: 10px;
  background: var(--blanc); color: var(--encre); font: inherit;
}
.jour-heures input:disabled { opacity: 0.45; }

/* Page de réservation */
.resa-hero { background: var(--violet); color: var(--blanc); position: relative; overflow: hidden; padding: 28px 0 32px; border-radius: 0 0 28px 28px; }
.resa-hero::before { content: ""; position: absolute; width: 260px; height: 260px; top: -110px; right: -80px; border-radius: 50%; background: rgba(255, 255, 255, 0.09); pointer-events: none; }
.resa-hero .conteneur { position: relative; display: flex; flex-direction: column; gap: 16px; }
.resa-pro { display: flex; align-items: center; gap: 12px; }
.resa-avatar {
  width: 56px; height: 56px; flex: none; border-radius: 50%; background: var(--blanc); color: var(--violet);
  display: flex; align-items: center; justify-content: center; font-family: var(--titre); font-size: 22px; font-weight: 700;
}
.resa-hero h1 { font-size: clamp(24px, 5vw, 34px); }
.resa { padding: 24px 0 64px; display: flex; flex-direction: column; gap: 20px; }
.etape h2 { font-size: 20px; margin-bottom: 12px; }
.etape-numero { color: var(--corail); }
.choix-liste { display: flex; flex-direction: column; gap: 10px; }
.choix-carte {
  min-height: 64px; padding: 12px 14px; border: 2px solid var(--bord); border-radius: 12px; background: var(--blanc);
  color: var(--encre); font: inherit; text-align: left; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.choix-carte[aria-pressed="true"] { border-color: var(--violet); background: var(--violet-soft); }
.choix-carte small { display: block; font-size: 14px; color: var(--gris); }
.jours-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 8px; }
.creneaux-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; margin-top: 14px; }
.pastille-choix {
  min-height: 48px; padding: 6px 4px; border: 1px solid #C9C2D6; border-radius: 10px; background: var(--blanc);
  color: var(--violet); font: inherit; font-weight: 700; cursor: pointer; line-height: 1.2;
}
.pastille-choix small { display: block; font-weight: 500; font-size: 13px; color: var(--gris); }
.pastille-choix[aria-pressed="true"] { background: var(--violet); border-color: var(--violet); color: var(--blanc); }
.pastille-choix[aria-pressed="true"] small { color: var(--blanc); }
.case { display: flex; gap: 10px; align-items: flex-start; min-height: 44px; font-size: 15px; cursor: pointer; }
.case input { width: 22px; height: 22px; flex: none; margin: 0; accent-color: var(--violet); }
.recap { padding: 14px 16px; border-radius: 12px; background: var(--violet-soft); display: flex; flex-direction: column; gap: 2px; }
.conditions { padding: 14px 16px; border-radius: 12px; background: var(--violet-soft); display: flex; flex-direction: column; gap: 10px; }

@media (max-width: 520px) {
  .hero { padding: 40px 0 56px; }
  .hero-actions .bouton { width: 100%; }
}
