/* SLV Beauty — mise en page du site public. Aucune couleur ni police ici :
   tout vient des jetons de charte.css. Mobile d'abord. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@view-transition { navigation: auto; }

body {
  margin: 0;
  background: var(--slv-fond);
  color: var(--slv-texte);
  font-family: var(--slv-police-texte);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3 { font-family: var(--slv-police-titre); font-weight: 500; line-height: 1.15; margin: 0 0 0.4em; letter-spacing: 0.005em; }
h1 { font-size: clamp(2rem, 6.5vw, 3.4rem); }
h2 { font-size: clamp(1.45rem, 4.2vw, 2rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
a { color: var(--slv-accent-fort); text-underline-offset: 3px; }
a:hover { color: var(--slv-texte); }
:focus-visible { outline: 2px solid var(--slv-accent); outline-offset: 3px; border-radius: 6px; }

.saut { position: absolute; left: -9999px; top: 0; background: var(--slv-surface); padding: 8px 14px; z-index: 10; }
.saut:focus { left: 16px; top: 12px; }

/* En-tête et pied */
.entete { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--slv-fond) 86%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid color-mix(in srgb, var(--slv-ligne) 70%, transparent); }
.entete-in { max-width: var(--slv-largeur); margin: 0 auto; padding: 12px 16px; padding-top: max(12px, env(safe-area-inset-top)); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.marque { text-decoration: none; color: var(--slv-texte); display: inline-flex; align-items: center; }
.marque-texte { font-family: var(--slv-police-titre); font-size: 1.55rem; letter-spacing: 0.06em; }
.marque-logo { height: 36px; width: auto; display: block; }
.nav { display: flex; align-items: center; gap: 18px; }
.nav a:not(.bouton) { color: var(--slv-texte-doux); text-decoration: none; font-size: 0.95rem; }
.nav a:not(.bouton)[aria-current="page"], .nav a:not(.bouton):hover { color: var(--slv-texte); }

.principal { flex: 1; width: 100%; max-width: var(--slv-largeur); margin: 0 auto; padding: 24px 16px 56px; }

.pied { border-top: 1px solid var(--slv-ligne); background: var(--slv-surface-2); color: var(--slv-texte-doux); font-size: 0.92rem; }
.pied-in { max-width: var(--slv-largeur); margin: 0 auto; padding: 28px 16px calc(28px + env(safe-area-inset-bottom)); }
.pied-marque { margin-bottom: 8px; color: var(--slv-texte); }
.pied a { color: inherit; }
.pied-petit { font-size: 0.82rem; margin: 0; }

/* Boutons */
.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px; border-radius: 999px; border: 1px solid transparent;
  background: var(--slv-accent); color: var(--slv-accent-encre);
  font: inherit; font-weight: 600; font-size: 1rem; text-decoration: none; cursor: pointer;
  transition: transform var(--slv-duree) var(--slv-courbe), background-color 200ms ease, box-shadow var(--slv-duree) var(--slv-courbe);
  -webkit-tap-highlight-color: transparent;
}
.bouton:hover { background: var(--slv-accent-fort); color: var(--slv-accent-encre); box-shadow: var(--slv-ombre); transform: translateY(-1px); }
.bouton:active { transform: translateY(0) scale(0.98); }
.bouton-petit { min-height: 40px; padding: 0 18px; font-size: 0.93rem; }
.bouton-large { width: 100%; }
.bouton-clair { background: transparent; color: var(--slv-texte); border-color: var(--slv-ligne); }
.bouton-clair:hover { background: var(--slv-surface); color: var(--slv-texte); }
.bouton-discret { background: transparent; color: var(--slv-texte-doux); border-color: transparent; text-decoration: underline; font-weight: 500; }
.bouton-discret:hover { background: transparent; color: var(--slv-alerte); box-shadow: none; }
.bouton-alerte { background: var(--slv-alerte); }
.bouton-alerte:hover { background: var(--slv-alerte); filter: brightness(0.92); }
.bouton-inactif, .bouton[aria-disabled="true"] { opacity: 0.45; pointer-events: none; }
.bouton[data-envoi] { opacity: 0.7; pointer-events: none; }

/* Blocs */
.bloc { margin: 8px 0 28px; }
.bloc-centre { text-align: center; max-width: 620px; margin-left: auto; margin-right: auto; }
.bloc-tete { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.surtitre { text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.78rem; color: var(--slv-accent-fort); margin-bottom: 10px; font-weight: 600; }
.chapo { font-size: 1.1rem; color: var(--slv-texte-doux); max-width: 46ch; }
.bloc-centre .chapo { margin-left: auto; margin-right: auto; }
.note { color: var(--slv-texte-doux); font-size: 0.95rem; }
.petit { color: var(--slv-texte-doux); font-size: 0.86rem; }
.alerte { background: color-mix(in srgb, var(--slv-alerte) 12%, transparent); color: var(--slv-alerte); padding: 12px 14px; border-radius: var(--slv-rayon-petit); font-size: 0.95rem; }

.heros { padding: 28px 0 32px; }
.heros h1 { max-width: 15ch; }
.heros-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

.carte { background: var(--slv-surface); border-radius: var(--slv-rayon); box-shadow: var(--slv-ombre); padding: 22px 20px; border: 1px solid color-mix(in srgb, var(--slv-ligne) 55%, transparent); }
.carte-etroite { max-width: 560px; margin: 0 auto; }
.deux, .grille, .choix, .colonnes { display: grid; gap: 16px; }
.deux { margin-bottom: 32px; }
.carte-lieu p:last-child { margin-bottom: 0; }
.carte-prestation { display: flex; flex-direction: column; transition: transform var(--slv-duree) var(--slv-courbe), box-shadow var(--slv-duree) var(--slv-courbe); }
.carte-prestation:hover { transform: translateY(-2px); box-shadow: var(--slv-ombre-forte); }
.carte-tete { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.carte-tete h3 { margin: 0; }
.prix { font-weight: 600; white-space: nowrap; margin: 0; }
.meta { color: var(--slv-texte-doux); font-size: 0.92rem; margin: 2px 0 10px; }
.description { color: var(--slv-texte-doux); font-size: 0.97rem; }
.carte-pied { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.pastilles { display: flex; gap: 6px; flex-wrap: wrap; }
.pastille { font-size: 0.78rem; padding: 4px 10px; border-radius: 999px; background: var(--slv-accent-doux); color: var(--slv-accent-fort); font-weight: 600; }
.pastille-douce { background: var(--slv-surface-2); color: var(--slv-texte-doux); }

.bientot { padding: 36px 0; }

/* Étapes */
.etapes { list-style: none; padding: 0; margin: 0 0 20px; display: flex; gap: 6px; font-size: 0.8rem; color: var(--slv-texte-doux); overflow-x: auto; }
.etapes li { display: flex; align-items: center; gap: 6px; white-space: nowrap; padding-right: 8px; }
.etapes span { width: 22px; height: 22px; border-radius: 50%; display: inline-grid; place-items: center; border: 1px solid var(--slv-ligne); font-size: 0.75rem; }
.etapes .faite span { background: var(--slv-accent-doux); border-color: transparent; color: var(--slv-accent-fort); }
.etapes .courante { color: var(--slv-texte); font-weight: 600; }
.etapes .courante span { background: var(--slv-accent); color: var(--slv-accent-encre); border-color: transparent; }

/* Choix du lieu */
.carte-choix { position: relative; text-decoration: none; color: inherit; display: block; transition: transform var(--slv-duree) var(--slv-courbe), box-shadow var(--slv-duree) var(--slv-courbe); }
a.carte-choix:hover { transform: translateY(-2px); box-shadow: var(--slv-ombre-forte); color: inherit; }
.fleche { position: absolute; right: 20px; top: 22px; font-size: 1.4rem; color: var(--slv-accent); transition: transform var(--slv-duree) var(--slv-courbe); }
a.carte-choix:hover .fleche { transform: translateX(4px); }

/* Créneaux */
.semaine { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.semaine p { margin: 0; font-weight: 600; text-align: center; }
.jours { display: grid; gap: 10px; }
.jour { background: var(--slv-surface); border-radius: var(--slv-rayon-petit); border: 1px solid color-mix(in srgb, var(--slv-ligne) 70%, transparent); }
.jour summary, .jour-vide { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; min-height: 52px; }
.jour summary { cursor: pointer; list-style: none; }
.jour summary::-webkit-details-marker { display: none; }
.jour summary::after { content: ""; width: 9px; height: 9px; border-right: 2px solid var(--slv-texte-doux); border-bottom: 2px solid var(--slv-texte-doux); transform: rotate(45deg); transition: transform var(--slv-duree) var(--slv-courbe); margin-left: 4px; }
.jour[open] summary::after { transform: rotate(225deg); }
.jour-vide { opacity: 0.55; background: transparent; }
.jour-nom { font-weight: 600; }
.jour-compte { color: var(--slv-texte-doux); font-size: 0.9rem; margin-left: auto; }
.creneaux { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; padding: 2px 16px 16px; }
.jour[open] .creneaux { animation: deplie var(--slv-duree) var(--slv-courbe); }
.creneau { display: grid; place-items: center; min-height: 46px; border-radius: 999px; border: 1px solid var(--slv-ligne); text-decoration: none; color: var(--slv-texte); font-weight: 600; font-variant-numeric: tabular-nums; transition: background-color 180ms ease, transform var(--slv-duree) var(--slv-courbe), border-color 180ms ease; }
.creneau:hover { background: var(--slv-accent); color: var(--slv-accent-encre); border-color: transparent; transform: translateY(-1px); }

/* Formulaires */
.formulaire { display: grid; gap: 14px; }
.champ { display: grid; gap: 6px; }
.champ label { font-weight: 600; font-size: 0.93rem; }
.facultatif { font-weight: 400; color: var(--slv-texte-doux); font-size: 0.85rem; }
.champ input, .champ textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--slv-texte); background: var(--slv-fond);
  border: 1px solid var(--slv-ligne); border-radius: var(--slv-rayon-petit); padding: 12px 14px; min-height: 48px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.champ input:focus, .champ textarea:focus { outline: none; border-color: var(--slv-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--slv-accent) 22%, transparent); }
.champ-erreur input, .champ-erreur textarea { border-color: var(--slv-alerte); }
.erreur-champ { color: var(--slv-alerte); font-size: 0.86rem; margin: 0; }
.champs-ligne { display: grid; gap: 14px; }
.case { display: flex; gap: 10px; align-items: flex-start; font-size: 0.95rem; cursor: pointer; }
.case input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--slv-accent); flex: none; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Récapitulatif */
.recap { margin: 0 0 12px; display: grid; gap: 10px; }
.recap div { display: grid; gap: 2px; }
.recap dt { color: var(--slv-texte-doux); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em; }
.recap dd { margin: 0; font-weight: 500; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; align-items: center; }
.actions-centre { justify-content: center; }

/* Sceau d'état */
.sceau { width: 64px; height: 64px; border-radius: 50%; margin: 6px auto 16px; position: relative; background: var(--slv-accent-doux); animation: sceau 700ms var(--slv-courbe) both; }
.sceau::after { content: ""; position: absolute; left: 24px; top: 17px; width: 13px; height: 24px; border-right: 3px solid var(--slv-accent-fort); border-bottom: 3px solid var(--slv-accent-fort); transform: rotate(45deg); }
.sceau-annule::after { left: 30px; top: 16px; width: 0; height: 32px; border-bottom: 0; transform: rotate(45deg); }
.sceau-annule { background: var(--slv-surface-2); }
.sceau-attente::after { left: 30px; top: 16px; width: 0; height: 20px; border-bottom: 0; transform: none; }

/* Textes légaux */
.texte { max-width: 70ch; }
.texte h2 { margin-top: 1.4em; font-size: 1.4rem; }
.a-completer { background: var(--slv-accent-doux); color: var(--slv-accent-fort); padding: 0 6px; border-radius: 6px; font-size: 0.92em; }

/* Animations */
.apparait { animation: apparait var(--slv-duree) var(--slv-courbe) both; animation-delay: calc(var(--i, 0) * 60ms); }
@keyframes apparait { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes deplie { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@keyframes sceau { from { opacity: 0; transform: scale(0.6); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-delay: 0ms !important; transition-duration: 1ms !important; }
  @view-transition { navigation: none; }
}

/* Écrans plus larges */
@media (min-width: 640px) {
  .principal { padding: 36px 24px 72px; }
  .entete-in, .pied-in { padding-left: 24px; padding-right: 24px; }
  .deux, .choix { grid-template-columns: 1fr 1fr; }
  .grille { grid-template-columns: repeat(2, 1fr); }
  .champs-ligne { grid-template-columns: 1fr 1fr; }
  .carte { padding: 28px; }
  .heros { padding: 56px 0 48px; }
}
@media (min-width: 960px) {
  .grille { grid-template-columns: repeat(3, 1fr); }
  .colonnes { grid-template-columns: 340px 1fr; align-items: start; }
  .colonnes aside { position: sticky; top: 88px; }
}
/* Rang dans une cascade (pas de style inline : la CSP les refuse). */
.i1 { --i: 1; } .i2 { --i: 2; } .i3 { --i: 3; } .i4 { --i: 4; } .i5 { --i: 5; } .i6 { --i: 6; } .i7 { --i: 7; } .i8 { --i: 8; } .i9 { --i: 9; }
@media (max-width: 440px) {
  .etapes li:not(.courante) { font-size: 0; padding-right: 0; }
  .etapes li:not(.courante) span { font-size: 0.75rem; }
}
