/* ---------------------------------------------------------------
   Prestations Yoël — feuille de style principale
   Ambiance : luxe discret, ivoire, violet profond, or, turquoise
   --------------------------------------------------------------- */

:root {
  --ivoire: #FBF8F3;
  --blanc: #FFFFFF;
  --encre: #1B1520;
  --gris: #6B6472;
  --gris-clair: #9A93A3;
  --violet: #3B2159;
  --violet-2: #5B3486;
  --or: #B8913F;
  --or-clair: #E9DCC0;
  --turquoise: #2E9E9A;
  --bord: rgba(27, 21, 32, .09);
  --ombre: 0 6px 24px rgba(27, 21, 32, .07);
  --ombre-forte: 0 14px 44px rgba(27, 21, 32, .14);
  --r-carte: 20px;
  --r-pilule: 999px;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --tabbar-h: 62px;
}

*, *::before, *::after { box-sizing: border-box; }

[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  padding: 0 0 calc(var(--tabbar-h) + 46px + env(safe-area-inset-bottom));
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  color: var(--encre);
  background: var(--ivoire);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; border: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap { width: 100%; max-width: 720px; margin: 0 auto; padding: 0 18px; }

/* ---------------- Écran d'ouverture ---------------- */
#app-splash {
  display: none; position: fixed; inset: 0; z-index: 99999; pointer-events: none;
  flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  background: #2C1745; color: #FBF8F3;
}
#app-splash img { width: 96px; height: 96px; border-radius: 24px; }
#app-splash span { font-family: var(--serif); font-size: 22px; letter-spacing: .04em; }
#app-splash.show { display: flex; animation: splashOut .45s ease 1.2s forwards; }
@keyframes splashOut { to { opacity: 0; visibility: hidden; } }

/* ---------------- En-tête minimal ---------------- */
.topbar {
  position: sticky; top: 0; z-index: 60;
  padding-top: env(safe-area-inset-top, 0px);
  background: linear-gradient(var(--ivoire) 62%, rgba(251, 248, 243, 0));
}
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 18px 6px;
}
.iconbtn {
  width: 44px; height: 44px; min-width: 44px; border: 0; background: transparent;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 14px; cursor: pointer; color: var(--encre);
  transition: background .18s ease, transform .12s ease;
}
.iconbtn:active { transform: scale(.94); background: rgba(27, 21, 32, .06); }
.iconbtn svg { width: 24px; height: 24px; }

/* ---------------- Menu latéral ---------------- */
.drawer-veil {
  position: fixed; inset: 0; z-index: 200; background: rgba(20, 12, 28, .48);
  opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s ease;
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
}
.drawer-veil.open { opacity: 1; visibility: visible; }

.drawer {
  position: fixed; top: 0; left: 0; bottom: 0; z-index: 210;
  width: 82%; max-width: 320px; background: var(--blanc);
  border-radius: 0 24px 24px 0;
  transform: translateX(-100%); visibility: hidden; pointer-events: none;
  transition: transform .28s cubic-bezier(.4, 0, .2, 1), visibility .28s ease;
  display: flex; flex-direction: column;
  padding: calc(20px + env(safe-area-inset-top, 0px)) 0 calc(20px + env(safe-area-inset-bottom, 0px));
  box-shadow: var(--ombre-forte);
}
.drawer.open { transform: translateX(0); visibility: visible; pointer-events: auto; }
.drawer-head { display: flex; align-items: center; gap: 12px; padding: 0 20px 18px; }
.drawer-head img { width: 48px; height: 48px; border-radius: 14px; }
.drawer-head strong { font-family: var(--serif); font-size: 20px; font-weight: 600; display: block; line-height: 1.1; }
.drawer-head small { display: block; color: var(--gris); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; }
.drawer nav { flex: 1; overflow-y: auto; padding: 6px 12px; }
.drawer nav a {
  display: flex; align-items: center; gap: 12px; padding: 13px 12px;
  border-radius: 14px; font-size: 15px; color: var(--encre);
  transition: background .16s ease;
}
.drawer nav a:active { background: rgba(59, 33, 89, .06); }
.drawer nav a svg { width: 20px; height: 20px; color: var(--violet); opacity: .8; }
.drawer nav a.sep { margin-top: 8px; border-top: 1px solid var(--bord); border-radius: 0 0 14px 14px; padding-top: 16px; }
.drawer-foot { padding: 12px 20px 0; border-top: 1px solid var(--bord); }

/* ---------------- Marque et titres ---------------- */
.brand { display: flex; align-items: center; gap: 12px; padding: 2px 18px 14px; }
.brand img { width: 36px; height: 36px; border-radius: 11px; }
.brand h1, .brand .name {
  font-family: var(--serif); font-size: 36px; line-height: 1.05; letter-spacing: -.02em;
  font-weight: 600; margin: 0;
}
.page-head { padding: 4px 18px 14px; }
.page-head h1 { font-size: 40px; line-height: 1.04; letter-spacing: -.02em; }
.page-head p { color: var(--gris); font-size: 14px; margin-top: 8px; max-width: 46ch; }
.kicker {
  font-family: var(--sans); font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--or); font-weight: 600;
}

.section { padding: 30px 0 0; }
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px; padding: 0 18px 14px;
}
.section-head h2 { font-size: 24px; font-weight: 600; }
.section-head .more { font-size: 13px; color: var(--gris); }
.section-foot { padding: 16px 18px 0; }

/* ---------------- Boutons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 26px; border-radius: var(--r-pilule);
  background: var(--violet); color: #FFF; border: 0; cursor: pointer;
  font-size: 15px; font-weight: 500; letter-spacing: .01em;
  transition: transform .12s ease, box-shadow .2s ease, background .2s ease;
  box-shadow: 0 8px 20px rgba(59, 33, 89, .22);
}
.btn:active { transform: scale(.975); }
.btn[disabled] { opacity: .45; box-shadow: none; cursor: not-allowed; transform: none; }
.btn.block { width: 100%; }
.btn.ghost {
  background: transparent; color: var(--encre); border: 1px solid var(--bord);
  box-shadow: none;
}
.btn.or { background: linear-gradient(135deg, #C6A15B, #A9822F); color: #FFF9EC; }
.btn.small { min-height: 38px; padding: 0 16px; font-size: 13px; }
.btn.danger { background: #8E2F3F; box-shadow: none; }

.link-or { color: var(--or); font-weight: 500; }

/* ---------------- Héros galerie ---------------- */
.hero { position: relative; margin: 6px 0 0; }
.hero-track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
  gap: 0; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.hero-track::-webkit-scrollbar { display: none; }
.hero-slide {
  position: relative; flex: 0 0 100%; margin: 0; scroll-snap-align: start;
  border-radius: 22px; overflow: hidden; background: #2C1745;
  aspect-ratio: 4 / 5; max-height: min(66vh, 520px);
}
.hero-slide img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transform: scale(1.08); transition: transform 6s ease;
}
.hero-slide.active img { transform: scale(1); }
.hero-slide::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(16, 9, 24, .86) 0%, rgba(16, 9, 24, .35) 45%, rgba(16, 9, 24, .12) 100%);
}
.hero-caption {
  position: absolute; inset: auto 0 0 0; padding: 22px 20px; color: #FFF;
  pointer-events: none; z-index: 2;
}
.hero-caption .kicker { color: #E9DCC0; }
.hero-caption h2 { font-size: 30px; line-height: 1.08; margin-top: 6px; color: #FFF; }
.hero-caption p { font-size: 14px; color: rgba(255, 255, 255, .82); margin-top: 6px; max-width: 34ch; }
.hero-dots {
  display: flex; gap: 6px; justify-content: center; padding: 12px 0 4px;
}
.hero-dots span {
  width: 7px; height: 7px; border-radius: 999px; background: rgba(27, 21, 32, .18);
  transition: width .3s ease, background .3s ease;
}
.hero-dots span.on { width: 22px; background: var(--violet); }
.hero-cta { padding: 12px 18px 0; }

/* ---------------- Prestations ---------------- */
.svc-list { display: grid; gap: 14px; padding: 0 18px; }
.svc {
  display: block; background: var(--blanc); border-radius: var(--r-carte);
  overflow: hidden; box-shadow: var(--ombre);
  transition: transform .12s ease, box-shadow .2s ease;
}
.svc:active { transform: scale(.985); }
.svc img { width: 100%; height: 190px; object-fit: cover; }
.svc-body { padding: 16px 18px 18px; }
.svc-body h3 { font-size: 22px; line-height: 1.15; }
.svc-body p { color: var(--gris); font-size: 14px; margin-top: 6px; }
.svc-meta {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-top: 12px; font-size: 13px; color: var(--gris);
}
.svc-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .5; }
.svc-meta strong { color: var(--encre); font-weight: 600; font-size: 15px; }
.tag {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px;
  border-radius: var(--r-pilule); background: rgba(59, 33, 89, .06);
  font-size: 12px; color: var(--violet); font-weight: 500;
}
.tag.or { background: rgba(184, 145, 63, .12); color: #8A6B22; }
.tag.neutre { background: rgba(27, 21, 32, .05); color: var(--gris); }

/* ---------------- Bandeau défilant des stages ---------------- */
.stage-banner {
  margin: 8px 0 0;
  background: linear-gradient(100deg, #2C1745 0%, #3B2159 52%, #4A2A6E 100%);
  color: #FBF8F3;
  overflow: hidden;
  position: relative;
  border-top: 1px solid rgba(233, 220, 192, .22);
  border-bottom: 1px solid rgba(233, 220, 192, .22);
}
.stage-banner-track {
  display: flex; align-items: center; gap: 0;
  width: max-content;
  animation: bannerScroll 34s linear infinite;
}
.stage-banner:hover .stage-banner-track,
.stage-banner:focus-within .stage-banner-track { animation-play-state: paused; }
@keyframes bannerScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.stage-banner-group { display: flex; align-items: center; }
.stage-banner-item {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 11px 22px; font-size: 12.5px; letter-spacing: .06em;
  text-transform: uppercase; white-space: nowrap; color: #FBF8F3;
}
.stage-banner-item strong { font-weight: 600; color: #E9DCC0; letter-spacing: .08em; }
.stage-banner-item .dot {
  width: 4px; height: 4px; border-radius: 50%; background: rgba(233, 220, 192, .55); flex: none;
}
.stage-banner-item .cta {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: 6px;
  border: 1px solid rgba(233, 220, 192, .5);
  font-size: 11px; letter-spacing: .1em; color: #E9DCC0;
}
.stage-banner-item:hover .cta { background: rgba(233, 220, 192, .14); }
@media (max-width: 767px) {
  .stage-banner-item { padding: 10px 16px; font-size: 11.5px; }
  .stage-banner-item .opt { display: none; }
}

/* ---------------- Fiche stage ---------------- */
.stage-card {
  background: var(--blanc); border-radius: var(--r-carte); box-shadow: var(--ombre);
  overflow: hidden; margin: 0 18px 16px;
}
.stage-card > img { width: 100%; height: 210px; object-fit: cover; }
.stage-card .body { padding: 18px; }
.stage-facts { display: grid; gap: 10px; margin: 14px 0; }
.stage-facts div { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: #3A3244; }
.stage-facts svg { width: 17px; height: 17px; color: var(--violet); opacity: .75; flex: none; margin-top: 2px; }
.stage-facts b { font-weight: 600; color: var(--encre); }

/* ---------------- Bande défilante (desktop grid) ---------------- */
.rail {
  display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 0 18px 6px; scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.rail > * { flex: 0 0 78%; scroll-snap-align: start; }

/* ---------------- Blocs d'information ---------------- */
.note {
  margin: 0 18px; padding: 16px 18px; border-radius: 16px;
  background: rgba(46, 158, 154, .08); border-left: 3px solid var(--turquoise);
  font-size: 13.5px; color: #1F4F4D;
}
.note.or { background: rgba(184, 145, 63, .09); border-left-color: var(--or); color: #6E5417; }
.note.violet { background: rgba(59, 33, 89, .06); border-left-color: var(--violet); color: #33204D; }

/* ---------------- Avis ---------------- */
.review {
  background: var(--blanc); border-radius: var(--r-carte); box-shadow: var(--ombre);
  padding: 18px; display: flex; flex-direction: column; gap: 8px;
}
.review-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.review-head strong { font-size: 15px; font-weight: 600; }
.review-head .svc { font-size: 12px; color: var(--gris); }
.review p { font-size: 14.5px; line-height: 1.5; color: #332C3A; }
.review time { font-size: 12px; color: var(--gris); }

/* Mention d'origine : un avis de client et un témoignage rédigé par
   l'administrateur ne doivent jamais se confondre à la lecture. */
.review-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 9px; border-radius: 6px;
  font-size: 10.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase;
  line-height: 1.5;
}
.review-badge.client { background: rgba(46, 158, 154, .13); color: #1F5F5C; }
.review-badge.admin { background: rgba(184, 145, 63, .14); color: #7A5C19; }
.stars { display: inline-flex; gap: 2px; }
.star { fill: rgba(27, 21, 32, .16); }
.star.on { fill: #C6A15B; }
.rate-star .star { fill: rgba(27, 21, 32, .18); transition: fill .12s ease; }
.rate-star.on .star { fill: #C6A15B; }
.rating-big { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--gris); }
.rating-big b { font-family: var(--serif); font-size: 28px; color: var(--encre); font-weight: 600; }

/* ---------------- Pied de page ---------------- */
.footer {
  margin-top: 40px; background: #F2ECE2; border-radius: 24px 24px 0 0;
  padding: 28px 20px 26px;
}
.footer-top { display: flex; align-items: center; gap: 12px; }
.footer-top img { width: 40px; height: 40px; border-radius: 12px; }
.footer-top strong { font-family: var(--serif); font-size: 20px; display: block; line-height: 1.1; }
.footer p.about { color: var(--gris); font-size: 13.5px; margin-top: 12px; max-width: 40ch; }
.footer-info { margin-top: 16px; display: grid; gap: 8px; }
.footer-info div { display: flex; align-items: center; gap: 9px; font-size: 13.5px; color: #3A3244; }
.footer-info svg { width: 16px; height: 16px; color: var(--violet); opacity: .7; flex: none; }
.footer-links { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px 16px; }
.footer-links a { font-size: 13px; color: var(--gris); }
.footer-links a:hover { color: var(--encre); }
.footer-copy { margin-top: 18px; font-size: 12px; color: #8A8194; }

/* ---------------- Barre du bas ---------------- */
.tabbar {
  position: fixed; z-index: 150;
  left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom));
  height: var(--tabbar-h);
  display: flex; align-items: center; justify-content: space-around;
  border-radius: 28px; background: rgba(255, 255, 255, .82);
  -webkit-backdrop-filter: blur(20px) saturate(1.4); backdrop-filter: blur(20px) saturate(1.4);
  box-shadow: 0 8px 30px rgba(27, 21, 32, .13);
  border: 1px solid rgba(255, 255, 255, .6);
}
.tabbar a {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  font-size: 10.5px; color: var(--gris); padding: 6px 10px; border-radius: 18px;
  transition: color .16s ease, background .16s ease, transform .12s ease;
  min-width: 58px;
}
.tabbar a svg { width: 21px; height: 21px; }
.tabbar a:active { transform: scale(.94); }
.tabbar a.on { color: var(--violet); background: rgba(59, 33, 89, .08); font-weight: 600; }

/* ---------------- Formulaires ---------------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 13px; font-weight: 500; color: #332C3A; }
.field .hint { font-size: 12px; color: var(--gris); }
input[type=text], input[type=tel], input[type=email], input[type=date], input[type=password],
input[type=number], input[type=time], input[type=search], select, textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; font-family: var(--sans); font-size: 16px;
  color: var(--encre); background: var(--blanc);
  border: 1px solid var(--bord); border-radius: 14px; outline: none;
  -webkit-appearance: none; appearance: none;
  transition: border-color .16s ease, box-shadow .16s ease;
}
textarea { min-height: 110px; resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus {
  border-color: var(--violet); box-shadow: 0 0 0 3px rgba(59, 33, 89, .1);
}
.radio-row { display: flex; gap: 8px; flex-wrap: wrap; }
.check {
  display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: var(--gris);
  line-height: 1.45;
}
.check input { width: 20px; height: 20px; min-height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--violet); }

/* ---------------- Réservation ---------------- */
.stepper { display: flex; gap: 6px; padding: 0 18px 18px; }
.stepper div {
  flex: 1; height: 4px; border-radius: 4px; background: rgba(27, 21, 32, .1);
  transition: background .3s ease;
}
.stepper div.on { background: var(--violet); }

.card {
  background: var(--blanc); border-radius: var(--r-carte); box-shadow: var(--ombre);
  padding: 18px; margin: 0 18px 14px;
}
.card h3 { font-size: 20px; margin-bottom: 12px; }
.card .sub { font-size: 13px; color: var(--gris); margin-bottom: 14px; }

.pick {
  display: flex; gap: 12px; align-items: center; padding: 12px;
  border: 1px solid var(--bord); border-radius: 16px; margin-bottom: 10px;
  cursor: pointer; transition: border-color .16s ease, background .16s ease;
}
.pick img { width: 62px; height: 62px; border-radius: 12px; object-fit: cover; flex: none; }
.pick-input:checked + .pick, .pick.on { border-color: var(--violet); background: rgba(59, 33, 89, .04); }
.pick strong { display: block; font-size: 15px; }
.pick span { font-size: 12.5px; color: var(--gris); }
.pick-input { position: absolute; opacity: 0; pointer-events: none; }

.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.cal-head strong { font-size: 16px; font-family: var(--serif); font-size: 20px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-grid .dow {
  text-align: center; font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em;
  color: var(--gris); padding-bottom: 4px;
}
.cal-day {
  aspect-ratio: 1; border: 0; background: transparent; border-radius: 12px;
  font-size: 14px; color: #B6AEBE; display: flex; align-items: center; justify-content: center;
  cursor: default; position: relative;
}
.cal-day.free { color: var(--encre); background: rgba(46, 158, 154, .09); cursor: pointer; font-weight: 500; }
.cal-day.free:active { transform: scale(.93); }
.cal-day.sel { background: var(--violet); color: #FFF; font-weight: 600; }
.cal-day.today::after {
  content: ""; position: absolute; bottom: 6px; width: 4px; height: 4px; border-radius: 50%;
  background: currentColor; opacity: .55;
}

.slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.slot {
  min-height: 44px; border: 1px solid var(--bord); background: var(--blanc);
  border-radius: 12px; font-size: 14px; font-weight: 500; cursor: pointer;
  transition: all .14s ease;
}
.slot:active { transform: scale(.96); }
.slot.on { background: var(--violet); color: #FFF; border-color: var(--violet); }
.empty { text-align: center; color: var(--gris); font-size: 13.5px; padding: 18px 0; }

.recap { display: grid; gap: 10px; }
.recap div { display: flex; justify-content: space-between; gap: 8px 12px; font-size: 14px; flex-wrap: wrap; }
.recap div span:last-child { text-align: right; }
.recap div span:first-child { min-width: 0; }
.recap div span:first-child { color: var(--gris); }
.recap div.total { border-top: 1px solid var(--bord); padding-top: 10px; font-weight: 600; font-size: 16px; }
.recap div.total span:first-child { color: var(--encre); }

.alert {
  margin: 0 18px 16px; padding: 14px 16px; border-radius: 14px; font-size: 14px;
  background: #FBEAEA; color: #8E2F3F; border-left: 3px solid #B84A5C;
}
.alert.ok { background: #E8F5F1; color: #1F5C4E; border-left-color: var(--turquoise); }
.alert.info { background: rgba(59, 33, 89, .06); color: #33204D; border-left-color: var(--violet); }

.success {
  margin: 20px 18px; background: var(--blanc); border-radius: var(--r-carte);
  box-shadow: var(--ombre); padding: 26px 20px; text-align: center;
}
.success .mark {
  width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 16px;
  background: rgba(46, 158, 154, .12); display: flex; align-items: center; justify-content: center;
}
.success .mark svg { width: 26px; height: 26px; stroke: var(--turquoise); }
.success h2 { font-size: 24px; margin-bottom: 10px; }
.success p { font-size: 14.5px; color: #433B4C; }
.success .ref {
  margin: 16px auto 0; display: inline-block; padding: 8px 16px; border-radius: var(--r-pilule);
  background: rgba(27, 21, 32, .05); font-size: 13px; letter-spacing: .06em; color: var(--encre);
}

/* ---------------- Installer l'application ---------------- */
.install-card {
  margin: 26px 18px 0; padding: 18px; border-radius: var(--r-carte);
  background: var(--violet); color: #F6F1FF; display: flex; gap: 14px; align-items: center;
}
.install-card .ico { flex: none; width: 42px; height: 42px; border-radius: 12px; background: rgba(255, 255, 255, .14); display: flex; align-items: center; justify-content: center; }
.install-card .ico svg { width: 22px; height: 22px; }
.install-card strong { display: block; font-size: 14.5px; }
.install-card p { font-size: 12.5px; color: rgba(246, 241, 255, .78); margin-top: 3px; }
.install-card button {
  flex: none; min-height: 40px; padding: 0 16px; border-radius: var(--r-pilule); border: 0;
  background: #F6F1FF; color: var(--violet); font-size: 13px; font-weight: 600; cursor: pointer;
}
.install-foot { display: flex; gap: 10px; align-items: center; margin-top: 10px; }
.install-foot svg { width: 18px; height: 18px; }

/* ---------------- Modale d'installation ---------------- */
.modal {
  position: fixed; inset: 0; z-index: 300; display: none;
  align-items: flex-end; justify-content: center; padding: 18px;
  background: rgba(20, 12, 28, .5);
}
.modal.open { display: flex; }
.modal .panel {
  width: 100%; max-width: 420px; background: var(--blanc); border-radius: 22px;
  padding: 22px 20px calc(22px + env(safe-area-inset-bottom)); box-shadow: var(--ombre-forte);
  animation: slideUp .28s cubic-bezier(.4, 0, .2, 1);
}
@keyframes slideUp { from { transform: translateY(24px); opacity: .4; } to { transform: translateY(0); opacity: 1; } }
.modal h3 { font-size: 20px; margin-bottom: 8px; }
.modal p { font-size: 14px; color: var(--gris); }
.modal ol { margin: 12px 0 16px; padding-left: 20px; font-size: 14px; color: #332C3A; display: grid; gap: 6px; }

/* ---------------- Pages légales ---------------- */
.legal { padding: 0 18px; }
.legal h2 { font-size: 22px; margin: 26px 0 8px; }
.legal h3 { font-size: 17px; margin: 18px 0 6px; font-family: var(--sans); font-weight: 600; }
.legal p, .legal li { font-size: 14.5px; color: #3A3244; line-height: 1.6; margin-bottom: 10px; }
.legal ul { list-style: none; padding: 0; }
.legal ul li { padding-left: 16px; position: relative; }
.legal ul li::before { content: ""; position: absolute; left: 2px; top: 10px; width: 5px; height: 5px; border-radius: 50%; background: var(--or); }

/* ---------------- Utilitaires ---------------- */
.center { text-align: center; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; }
.mb-0 { margin-bottom: 0; }
.muted { color: var(--gris); }
.small { font-size: 12.5px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; }
.grow { flex: 1; }
.pb-space { height: 24px; }
::selection { background: rgba(59, 33, 89, .16); }

/* ---------------- Ordinateur ---------------- */
.sidenav { display: none; }

@media (min-width: 900px) {
  body { padding: 0 0 40px; }
  .topbar, .tabbar, .drawer, .drawer-veil { display: none; }
  .sidenav {
    display: flex; flex-direction: column; position: fixed; top: 0; left: 0; bottom: 0;
    width: 260px; background: var(--blanc); padding: 28px 18px; gap: 6px;
    border-right: 1px solid rgba(27, 21, 32, .06); z-index: 100;
  }
  .sidenav .brand-desk { display: flex; align-items: center; gap: 11px; margin-bottom: 26px; }
  .sidenav .brand-desk img { width: 38px; height: 38px; border-radius: 11px; }
  .sidenav .brand-desk strong { font-family: var(--serif); font-size: 19px; line-height: 1.1; display: block; }
  .sidenav .brand-desk small { font-size: 11px; color: var(--gris); letter-spacing: .08em; text-transform: uppercase; }
  .sidenav a.navitem {
    display: flex; align-items: center; gap: 11px; padding: 11px 12px; border-radius: 12px;
    font-size: 14px; color: #3A3244; transition: background .16s ease;
  }
  .sidenav a.navitem svg { width: 19px; height: 19px; color: var(--violet); opacity: .75; }
  .sidenav a.navitem:hover { background: rgba(59, 33, 89, .05); }
  .sidenav a.navitem.on { background: rgba(59, 33, 89, .08); color: var(--violet); font-weight: 600; }
  .sidenav .foot { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--bord); }

  main.page { margin-left: 260px; }
  .wrap { max-width: 1100px; padding: 0 40px; }
  .brand, .page-head, .section-head, .stepper, .hero-cta, .section-foot { padding-left: 40px; padding-right: 40px; }
  .svc-list, .rail, .legal, .install-card { padding-left: 40px; padding-right: 40px; }
  .card, .alert, .note, .success { margin-left: 40px; margin-right: 40px; }
  .footer { margin-left: 40px; margin-right: 40px; border-radius: 24px; margin-top: 48px; }
  .hero-slide { aspect-ratio: 21 / 9; max-height: 460px; }
  .hero-caption h2 { font-size: 40px; }
  .brand h1, .brand .name { font-size: 34px; }

  .svc-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
  .rail { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; overflow: visible; }
  .rail > * { flex: none; }
  .slots { grid-template-columns: repeat(6, 1fr); }
  .cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
  .footer { max-width: 1020px; }
  .footer-info { grid-template-columns: repeat(3, auto); gap: 22px; }
  #app-splash img { width: 120px; height: 120px; }
}

@media (min-width: 1400px) {
  .svc-list, .rail { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001s !important; transition-duration: .001s !important; }
  .hero-slide img { transform: none !important; }
}
