/* =========================================================
   Glory Head Spa – feuille de style
   Couleurs du logo : noir, blanc et doré.
   Pour changer une couleur, modifiez les variables ci-dessous.
   ========================================================= */
:root {
  --bg: #faf8f4;
  --surface: #ffffff;
  --tint: #f4eee4;
  --ink: #171512;
  --ink-2: #2b2722;
  --muted: #6b655c;
  --line: #e8e1d5;
  --accent: #7a5829;        /* doré foncé : textes et détails lisibles */
  --accent-ink: #ffffff;
  --accent-soft: #f4ebdc;
  --gold: #c9a063;          /* doré du logo : décors */
  --gold-light: #e2c48f;
  --dark: #14120f;
  --dark-2: #1f1c18;
  --sage: #6f7d68;
  --sage-soft: #e9ede5;
  --danger: #b3412f;
  --ok: #3f7d5a;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(23, 21, 18, .04), 0 10px 30px rgba(23, 21, 18, .07);
  --shadow-lg: 0 24px 60px rgba(23, 21, 18, .14);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16.5px/1.6 var(--sans); -webkit-font-smoothing: antialiased; font-variant-numeric: lining-nums; }
h1, h2, h3, strong, .card-price, .pick-price, .day-num, .ritual-num, .giftcard-value, .gift-total strong { font-variant-numeric: lining-nums tabular-nums; }
img { max-width: 100%; display: block; }
a { color: var(--accent); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.1; margin: 0 0 .5rem; letter-spacing: .005em; }
h1 { font-size: clamp(2.4rem, 5.2vw, 3.9rem); }
h2 { font-size: clamp(2rem, 3.8vw, 2.9rem); }
h3 { font-size: 1.5rem; }
h4 { font-size: .95rem; font-weight: 600; margin: 1.5rem 0 .75rem; letter-spacing: .01em; }
p { margin: 0 0 .8rem; }
.icon { flex-shrink: 0; vertical-align: middle; }
.muted { color: var(--muted); }
.center { text-align: center; }
.fine { font-size: .86rem; color: var(--muted); margin-top: 1rem; }
[hidden] { display: none !important; }
::selection { background: var(--accent-soft); }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 820px; }

/* Petit titre doré au-dessus des grands titres */
.eyebrow, .kicker {
  display: inline-flex; align-items: center; gap: .7rem; margin: 0 0 .9rem;
  text-transform: uppercase; letter-spacing: .2em; font-size: .74rem; font-weight: 500; color: var(--accent);
}
.eyebrow::before, .kicker::before { content: ""; width: 28px; height: 1px; background: var(--gold); }
.center .eyebrow::after { content: ""; width: 28px; height: 1px; background: var(--gold); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 48px; padding: .7rem 1.4rem; border-radius: 999px; border: 1px solid transparent;
  font: 500 .95rem var(--sans); letter-spacing: .01em; text-decoration: none; cursor: pointer;
  transition: background .2s, border-color .2s, color .2s, transform .1s, box-shadow .2s;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--ink-2); box-shadow: 0 6px 18px rgba(23, 21, 18, .2); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-gold { background: linear-gradient(135deg, var(--gold-light), var(--gold)); color: var(--dark); }
.btn-gold:hover { box-shadow: 0 6px 20px rgba(201, 160, 99, .35); }
.btn-link { background: none; border: 0; color: inherit; opacity: .7; padding: .5rem 0; min-height: 0; display: inline-flex; align-items: center; gap: .3rem; cursor: pointer; font: inherit; }
.btn-link-gold { background: none; border: 0; color: var(--accent); padding-left: .4rem; padding-right: .4rem; }
.btn-link-gold:hover { color: var(--ink); }
.btn-sm { min-height: 40px; padding: .5rem 1rem; font-size: .9rem; }
.btn-lg { min-height: 54px; padding: .8rem 1.7rem; font-size: 1rem; }
.btn-danger { background: transparent; color: var(--danger); border-color: #ecd0c9; }
.btn-danger:hover { border-color: var(--danger); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ---------- En-tête ---------- */
.topbar { position: sticky; top: 0; z-index: 20; background: rgba(250, 248, 244, .9); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.topbar-inner { display: flex; align-items: center; gap: 2rem; height: 72px; }
.brand { display: flex; align-items: center; gap: .65rem; color: var(--ink); text-decoration: none; min-width: 0; }
.brand-mark { height: 30px; width: auto; }
.wordmark { font: 500 1.02rem var(--sans); letter-spacing: .2em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mainnav { display: flex; gap: 1.8rem; margin-left: auto; }
.mainnav a { color: var(--muted); text-decoration: none; font-size: .93rem; position: relative; padding: .3rem 0; }
.mainnav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px; background: var(--gold); transition: right .25s; }
.mainnav a:hover { color: var(--ink); }
.mainnav a:hover::after { right: 0; }
.topbar-actions { display: flex; align-items: center; gap: .8rem; }
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: var(--surface); }
.lang button { border: 0; background: none; font: 600 .74rem var(--sans); letter-spacing: .05em; color: var(--muted); padding: .38rem .6rem; border-radius: 999px; cursor: pointer; }
.lang button.active { background: var(--ink); color: #fff; }
.demo-banner { background: var(--accent-soft); color: var(--accent); text-align: center; font-size: .86rem; padding: .5rem 1rem; display: flex; align-items: center; justify-content: center; gap: .45rem; }

/* ---------- Logo (version retravaillée) ---------- */
.lockup { display: flex; width: max-content; flex-direction: column; align-items: center; gap: .5rem; margin-bottom: 1.8rem; }
.hero-text .eyebrow { display: flex; width: max-content; }
.lockup-mark { width: 150px; height: auto; }
.lockup-name { font: 500 1.55rem var(--sans); letter-spacing: .24em; text-transform: uppercase; padding-left: .24em; line-height: 1; }
.lockup-tagline {
  background: var(--ink); color: #fff; font: 400 .72rem var(--sans); letter-spacing: .26em; text-transform: uppercase;
  padding: .45rem .9rem .45rem 1.16rem;
}

/* ---------- Accueil ---------- */
.hero { padding: 64px 0 72px; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; }
.hero-text h1 { max-width: 16ch; }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 33rem; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: .8rem; margin: 2rem 0 1.4rem; }
.hero-meta { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; color: var(--muted); font-size: .9rem; margin-bottom: 1.4rem; }
.hero-meta span { display: inline-flex; align-items: center; gap: .4rem; }
.hero-meta .icon { color: var(--accent); }
/* Cadre doré centré autour de la photo (même écart tout autour) */
.hero-media { position: relative; padding: 14px; }
.hero-frame { position: absolute; inset: 0; border: 1px solid var(--gold); border-radius: 234px 234px calc(var(--radius) + 14px) calc(var(--radius) + 14px); pointer-events: none; }
.hero-visual {
  position: relative; aspect-ratio: 1 / 1; border-radius: 220px 220px var(--radius) var(--radius); overflow: hidden;
  background: radial-gradient(circle at 30% 25%, #a9824c 0%, #4a3a24 45%, var(--dark) 100%); box-shadow: var(--shadow-lg);
}
.hero-visual > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 22% center; }
.hero-visual.has-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 18, 15, 0) 60%, rgba(20, 18, 15, .45)); }
.hero-badge { position: absolute; z-index: 1; left: 18px; bottom: 18px; display: flex; align-items: center; gap: .45rem; color: #fff; background: rgba(20, 18, 15, .35); padding: .45rem .85rem; border-radius: 999px; font-size: .78rem; backdrop-filter: blur(6px); }

/* ---------- Application installable ---------- */
.install-card {
  display: flex; align-items: center; gap: .9rem; width: 100%; max-width: 460px; margin: 0;
  padding: .75rem .85rem; border: 1px solid var(--line); background: var(--surface); border-radius: 16px;
  font: inherit; color: var(--ink); text-align: left; cursor: pointer; box-shadow: var(--shadow);
}
.install-card:hover { border-color: var(--gold); }
.install-icon img { border-radius: 11px; display: block; border: 1px solid var(--line); }
.install-text { flex: 1; display: flex; flex-direction: column; line-height: 1.3; }
.install-text strong { font-size: .93rem; font-weight: 500; }
.install-text small { color: var(--muted); font-size: .8rem; }
.install-go { display: inline-flex; align-items: center; gap: .3rem; background: var(--ink); color: #fff; border-radius: 999px; padding: .45rem .85rem; font-size: .82rem; font-weight: 500; white-space: nowrap; }

/* ---------- Points forts ---------- */
.highlights { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.highlights-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.highlight { display: flex; gap: .9rem; align-items: flex-start; padding: 28px 22px; }
.highlight + .highlight { border-left: 1px solid var(--line); }
.highlight-icon { flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--accent-soft); color: var(--accent); }
.highlight strong { display: block; font-weight: 500; margin-bottom: .15rem; }
.highlight span { font-size: .88rem; color: var(--muted); line-height: 1.45; }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-tint { background: var(--tint); }
.section-dark { background: var(--dark); color: #f3eee6; }
.section-dark .muted { color: rgba(243, 238, 230, .65); }
.section-dark .eyebrow { color: var(--gold-light); }
.section-head { margin-bottom: 2.4rem; max-width: 640px; }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.panel h3 .icon { color: var(--accent); margin-right: .25rem; }
.panel-dark { background: var(--dark-2); border-color: rgba(201, 160, 99, .25); box-shadow: none; color: #f3eee6; }

/* ---------- Filtres ---------- */
.chips { display: flex; flex-wrap: wrap; gap: .55rem; margin-bottom: 1.8rem; }
.chip { border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 999px; padding: .5rem 1.15rem; font: 500 .9rem var(--sans); cursor: pointer; min-height: 42px; transition: border-color .2s; }
.chip:hover { border-color: var(--gold); }
.chip.active { background: var(--ink); color: #fff; border-color: var(--ink); }

.center-chips { justify-content: center; }
.diag-teaser { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: .5rem; margin: 2.4rem 0 0; color: var(--muted); text-align: center; }
.diag-teaser .icon { color: var(--accent); }
.diag-teaser a { display: inline-flex; align-items: center; gap: .2rem; font-weight: 500; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--gold); padding-bottom: 1px; }
.diag-teaser a:hover { color: var(--accent); }

/* ---------- Cartes de soins ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 26px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); transition: transform .3s, box-shadow .3s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-visual { position: relative; height: 220px; overflow: hidden; display: flex; align-items: center; justify-content: center; color: var(--accent); background: linear-gradient(135deg, var(--accent-soft), #faf6ee); }
.card-visual.massage { color: var(--sage); background: linear-gradient(135deg, var(--sage-soft), #f4f6f2); }
.card-visual img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.card:hover .card-visual img { transform: scale(1.05); }
.card-visual.small { width: 84px; height: 84px; border-radius: 14px; flex-shrink: 0; }
.card-tag { position: absolute; top: 14px; left: 14px; background: rgba(255, 255, 255, .92); color: var(--ink); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; padding: .32rem .7rem; border-radius: 999px; }
.card-body { padding: 24px 24px 20px; display: flex; flex-direction: column; flex: 1; }
.card-title-row { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.card-title-row h3 { margin: 0; }
.card-price { font: 600 1.45rem var(--serif); color: var(--accent); white-space: nowrap; }
.card-meta { display: flex; align-items: center; gap: .4rem; color: var(--muted); font-size: .88rem; margin: .4rem 0 .7rem; }
.card-meta strong { color: inherit; }
.dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; display: inline-block; opacity: .6; }
.card-desc { color: var(--muted); font-size: .94rem; flex: 1; }
.card-actions { display: flex; gap: .4rem; flex-wrap: wrap; align-items: center; margin-top: .6rem; padding-top: 1rem; border-top: 1px solid var(--line); }

/* ---------- Le rituel ---------- */
.ritual { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.ritual-step { position: relative; background: var(--surface); border-radius: var(--radius); padding: 30px 26px; border: 1px solid var(--line); }
.ritual-num { display: block; font: 400 2.2rem var(--sans); letter-spacing: .02em; color: var(--gold); line-height: 1; margin-bottom: 1rem; }
.ritual-step h3 { font-size: 1.4rem; }
.ritual-step p { color: var(--muted); font-size: .93rem; margin: 0; }

/* ---------- Galerie « L'institut » ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 230px; grid-auto-flow: dense; gap: 14px; }
.gallery-item { position: relative; padding: 0; border: 0; border-radius: var(--radius); overflow: hidden; cursor: zoom-in; background: var(--tint); }
.gallery-item.g1 { grid-column: span 2; grid-row: span 2; }
.gallery-item img, .gallery-item video { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; display: block; }
.gallery-item:hover img, .gallery-item:hover video { transform: scale(1.04); }
.play-badge { position: absolute; z-index: 1; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 62px; height: 62px; border-radius: 50%; background: rgba(20, 18, 15, .55); color: var(--gold-light); display: flex; align-items: center; justify-content: center; border: 1px solid rgba(226, 196, 143, .6); backdrop-filter: blur(4px); padding-left: 4px; }
.lightbox video { max-width: 100%; max-height: calc(100vh - 140px); border-radius: 12px; background: #000; }
.gallery-item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 18, 15, 0) 55%, rgba(20, 18, 15, .6)); }
.gallery-caption { position: absolute; z-index: 1; left: 18px; bottom: 14px; color: #fff; font: 500 .82rem var(--sans); letter-spacing: .16em; text-transform: uppercase; text-align: left; }
.lightbox { position: fixed; inset: 0; z-index: 70; background: rgba(12, 11, 9, .94); display: flex; align-items: center; justify-content: center; padding: 60px 70px; }
.lightbox figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 140px); border-radius: 12px; object-fit: contain; }
.lightbox figcaption { color: #f3eee6; font-size: .9rem; letter-spacing: .12em; text-transform: uppercase; }
.lightbox figcaption span { color: var(--gold-light); margin-left: .6rem; letter-spacing: 0; }
.lb-btn { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .06); color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.lb-btn:hover { border-color: var(--gold); color: var(--gold-light); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 14px; top: 50%; transform: translateY(-50%); }

/* ---------- Diagnostic ---------- */
.diag-progress { display: flex; gap: 6px; margin-bottom: 1.4rem; }
.diag-progress span { flex: 1; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .14); }
.diag-progress span.on { background: var(--gold); }
.diag-q { font-size: 1.8rem; }
.options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 1.4rem 0 .6rem; }
.option { display: flex; align-items: center; gap: .8rem; text-align: left; padding: 1.05rem 1.15rem; border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .03); border-radius: var(--radius-sm); font: 500 .97rem var(--sans); color: inherit; cursor: pointer; min-height: 60px; transition: border-color .2s, background .2s; }
.option .icon { color: var(--gold); }
.option:hover { border-color: var(--gold); background: rgba(201, 160, 99, .08); }
.diag-result { display: flex; gap: 20px; align-items: flex-start; margin: .5rem 0 1rem; }
.panel-dark .card-meta, .panel-dark .card-desc, .panel-dark .fine { color: rgba(243, 238, 230, .65); }
.panel-dark .kicker { color: var(--gold-light); }
.panel-dark .btn-primary { background: linear-gradient(135deg, var(--gold-light), var(--gold)); color: var(--dark); }
.panel-dark .btn-ghost { color: #f3eee6; border-color: rgba(255, 255, 255, .2); }
.panel-dark .btn-ghost:hover { border-color: var(--gold); }
.row-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.5rem; align-items: center; }
.row-actions.between { justify-content: space-between; }
.row-actions.center { justify-content: center; }

/* ---------- Réservation ---------- */
.steps { list-style: none; padding: 0; margin: 0 0 1.6rem; display: flex; justify-content: center; gap: .6rem; flex-wrap: wrap; }
.steps li { display: flex; align-items: center; gap: .55rem; color: var(--muted); font-size: .9rem; }
.steps li + li::before { content: ""; width: 34px; height: 1px; background: var(--line); margin-right: .2rem; }
.step-num { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; font-size: .8rem; font-weight: 600; background: var(--surface); }
.steps li.current { color: var(--ink); font-weight: 500; }
.steps li.current .step-num { background: var(--ink); color: #fff; border-color: var(--ink); }
.steps li.done .step-num { background: var(--accent-soft); color: var(--accent); border-color: var(--accent-soft); }

.pick-list { display: grid; gap: 10px; margin-top: 1rem; }
.pick { display: flex; align-items: center; gap: 1rem; width: 100%; text-align: left; padding: .7rem 1rem .7rem .7rem; border: 1px solid var(--line); background: var(--surface); border-radius: 14px; cursor: pointer; font: inherit; color: var(--ink); min-height: 66px; transition: border-color .2s; }
.pick:hover { border-color: var(--gold); }
.pick.active { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.pick-icon { width: 50px; height: 50px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; overflow: hidden; }
.pick-icon img { width: 100%; height: 100%; object-fit: cover; }
.pick-name { flex: 1; font-weight: 500; display: flex; flex-direction: column; }
.pick-name small { color: var(--muted); font-weight: 400; font-size: .84rem; }
.pick-price { font: 600 1.2rem var(--serif); color: var(--accent); white-space: nowrap; }
.pick-list.compact { margin: 1rem 0 .4rem; }
.pick-list.compact .pick { padding-left: 1rem; min-height: 56px; }

.summary { display: grid; gap: .5rem; background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: .95rem 1.1rem; margin-bottom: .8rem; font-size: .94rem; }
.summary > div { display: flex; align-items: center; gap: .65rem; }
.summary .icon { color: var(--accent); }

.days-scroller { display: flex; align-items: center; gap: 6px; }
.days { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x proximity; padding: 4px 2px 10px; flex: 1; scrollbar-width: thin; }
.day { flex: 0 0 66px; scroll-snap-align: start; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: .6rem .2rem; border: 1px solid var(--line); background: var(--surface); border-radius: 14px; cursor: pointer; font: inherit; color: var(--ink); transition: border-color .2s; }
.day:hover:not(:disabled) { border-color: var(--gold); }
.day.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.day:disabled { opacity: .35; cursor: not-allowed; background: transparent; }
.day-name, .day-month { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; }
.day-num { font: 500 1.3rem var(--sans); }
.scroll-btn { flex-shrink: 0; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; color: var(--ink); }
.scroll-btn:hover { border-color: var(--ink); }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 8px; }
.slot { padding: .7rem 0; border: 1px solid var(--line); background: var(--surface); border-radius: 12px; font: 500 .96rem var(--sans); cursor: pointer; color: var(--ink); min-height: 46px; transition: border-color .2s; }
.slot:hover { border-color: var(--gold); }
.slot.active { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ---------- Formulaires ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
label { display: flex; flex-direction: column; gap: .4rem; font-size: .88rem; font-weight: 500; }
label small { color: var(--muted); font-weight: 400; }
input, textarea, select {
  font: 400 1rem var(--sans); color: var(--ink); background: var(--surface);
  border: 1px solid var(--line); border-radius: 12px; padding: .75rem .9rem; width: 100%; min-height: 48px;
  transition: border-color .2s, box-shadow .2s;
}
textarea { resize: vertical; min-height: 76px; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--accent-soft); }
label.check { flex-direction: row; align-items: flex-start; gap: .65rem; font-weight: 400; margin-top: 1.1rem; color: var(--muted); }
label.check input { width: 20px; height: 20px; min-height: 0; margin: 2px 0 0; accent-color: var(--accent); flex-shrink: 0; }
.inline-field { max-width: 280px; margin-bottom: .6rem; }
.form-error { color: var(--danger); font-size: .9rem; min-height: 1.2em; margin: .6rem 0 0; }

.segmented { display: inline-flex; background: var(--bg); border-radius: 999px; padding: 4px; margin-bottom: 1.3rem; border: 1px solid var(--line); }
.segmented button { display: inline-flex; align-items: center; gap: .45rem; border: 0; background: none; padding: .55rem 1.2rem; border-radius: 999px; font: 500 .93rem var(--sans); color: var(--muted); cursor: pointer; min-height: 42px; }
.segmented button.active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.gift-total { color: var(--muted); }
.gift-total strong { color: var(--accent); font: 600 1.4rem var(--serif); }

/* ---------- WhatsApp ---------- */
.btn-whatsapp { background: #1f9d55; color: #fff; }
.btn-whatsapp:hover { background: #188547; }
.wa-info { display: inline-flex; align-items: center; gap: .4rem; }
.wa-info .icon { color: #1f9d55; }

/* ---------- Caution ---------- */
.deposit-box { margin-top: 1.2rem; border: 1px solid var(--gold-light); background: var(--accent-soft); border-radius: 14px; padding: 1rem 1.1rem; }
.deposit-head { display: flex; align-items: center; gap: .6rem; font-weight: 500; }
.deposit-head .icon { color: var(--accent); }
.deposit-head strong { margin-left: auto; font: 600 1.45rem var(--sans); color: var(--accent); }
.deposit-box p { margin: .5rem 0 0; font-size: .9rem; color: var(--muted); }
.deposit-ok { display: inline-flex; align-items: center; gap: .4rem; background: var(--accent-soft); color: var(--accent); padding: .4rem .9rem; border-radius: 999px; }
.success-icon.warn { background: #fbefe9; color: var(--danger); border-color: #ecd0c9; }
.success-icon.spin .icon { animation: spin 1.2s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Confirmation ---------- */
.success { text-align: center; margin-bottom: 1.4rem; }
.success-icon { display: inline-flex; width: 64px; height: 64px; border-radius: 50%; align-items: center; justify-content: center; background: var(--accent-soft); color: var(--accent); margin-bottom: .8rem; border: 1px solid var(--gold-light); }
.ref { font-size: 1.05rem; }
.ref strong { letter-spacing: .14em; }

/* ---------- Cartes cadeaux ---------- */
.gift-layout { display: grid; grid-template-columns: 1.15fr .85fr; gap: 32px; align-items: start; }
.gift-layout.is-done { grid-template-columns: minmax(0, 640px); justify-content: center; }
.gift-preview { position: sticky; top: 100px; }
.giftcard {
  max-width: 460px; margin: 0 auto; color: #fff; border-radius: 20px; padding: 28px;
  background: radial-gradient(circle at 85% 0%, #3a3023 0%, var(--dark) 60%);
  border: 1px solid rgba(201, 160, 99, .45); box-shadow: 0 20px 50px rgba(20, 18, 15, .3);
  aspect-ratio: auto;
}
.giftcard p { margin: 0 0 .35rem; }
.giftcard .muted { color: rgba(255, 255, 255, .6); }
.giftcard-top { display: flex; align-items: center; gap: .65rem; font: 500 .9rem var(--sans); letter-spacing: .2em; text-transform: uppercase; }
.giftcard-top img { height: 30px; width: auto; }
.giftcard-label { text-transform: uppercase; letter-spacing: .2em; font-size: .7rem; margin-top: 1.6rem !important; color: var(--gold-light); }
.giftcard-value { font: 600 2.2rem var(--serif); margin-bottom: .9rem !important; color: var(--gold-light); line-height: 1.1; }
.giftcard-msg { font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: rgba(255, 255, 255, .88); }
.giftcard-foot { display: flex; justify-content: space-between; align-items: center; gap: .6rem; flex-wrap: wrap; margin-top: 1.3rem; padding-top: 1rem; border-top: 1px solid rgba(201, 160, 99, .35); font-size: .8rem; }
.giftcard .code { font: 600 1.02rem ui-monospace, Consolas, monospace; letter-spacing: .08em; background: rgba(255, 255, 255, .1); padding: .28rem .65rem; border-radius: 8px; }
.giftcard-addr { font-size: .74rem; color: rgba(255, 255, 255, .55); margin-top: .8rem !important; }
.gift-done .giftcard { margin-bottom: .4rem; }

/* ---------- Infos ---------- */
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.info-grid h3 { font-size: 1.4rem; display: flex; align-items: center; gap: .3rem; }
.hours { list-style: none; padding: 0; margin: 0; font-size: .94rem; }
.hours li { display: flex; justify-content: space-between; padding: .4rem 0; border-bottom: 1px solid var(--line); }
.hours li:last-child { border-bottom: 0; }
.hours li.today { font-weight: 600; color: var(--accent); }

/* ---------- Pied de page ---------- */
.footer { background: var(--dark); color: rgba(243, 238, 230, .78); padding: 64px 0 28px; font-size: .93rem; }
.footer a { color: #f3eee6; text-decoration: none; }
.footer a:hover { color: var(--gold-light); }
.footer .btn-gold, .footer .btn-gold:hover { color: var(--dark); }
.footer h4 { color: var(--gold-light); font-weight: 500; text-transform: uppercase; letter-spacing: .18em; font-size: .74rem; margin: 0 0 1rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 1.4rem; }
.footer-logo .lockup-mark { width: 110px; }
.footer-logo { display: inline-flex; flex-direction: column; align-items: center; gap: .5rem; }
.footer-logo .lockup-name { color: #fff; font-size: 1.15rem; }
.footer-logo .lockup-tagline { background: transparent; border: 1px solid rgba(201, 160, 99, .5); color: var(--gold-light); font-size: .64rem; }
.footer-muted { color: rgba(243, 238, 230, .55); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; padding-top: 22px; font-size: .84rem; color: rgba(243, 238, 230, .5); }
.footer-link { display: inline-flex; align-items: center; gap: .35rem; color: rgba(243, 238, 230, .6) !important; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: .8rem 1.25rem; border-radius: 14px; z-index: 50; max-width: calc(100% - 32px); box-shadow: var(--shadow-lg); }

.tabbar { display: none; }
.modal { position: fixed; inset: 0; z-index: 60; background: rgba(20, 18, 15, .5); display: flex; align-items: flex-end; justify-content: center; padding: 16px; }
.modal-box { background: var(--surface); border-radius: 22px; padding: 26px 22px; width: 100%; max-width: 420px; box-shadow: var(--shadow-lg); }
.modal-box .btn { width: 100%; margin-top: .4rem; }
.ios-steps { list-style: none; padding: 0; margin: 1rem 0; display: grid; gap: .9rem; }
.ios-steps li { display: flex; gap: .8rem; align-items: flex-start; }
.ios-num { flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: inline-flex; align-items: center; justify-content: center; font-weight: 600; font-size: .85rem; }
.share-icon { display: inline-flex; vertical-align: middle; color: #0a7aff; }

/* ---------- Tablette ---------- */
@media (max-width: 1020px) {
  .mainnav { display: none; }
  .topbar-actions { margin-left: auto; }
  .hero-inner { grid-template-columns: 1fr; gap: 44px; }
  .hero-media { max-width: 520px; }
  .highlights-grid { grid-template-columns: 1fr 1fr; }
  .highlight:nth-child(3) { border-left: 0; }
  .highlight:nth-child(n+3) { border-top: 1px solid var(--line); }
  .ritual { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
  .info-grid { grid-template-columns: 1fr; }
  .gift-layout { grid-template-columns: 1fr; }
  .gift-preview { position: static; order: -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

/* ---------- Téléphone ---------- */
@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { padding: 0 18px; }
  .topbar-inner { gap: .6rem; height: 64px; }
  .brand-mark { height: 24px; }
  .wordmark { font-size: .86rem; letter-spacing: .14em; }
  .topbar-cta { display: none; }
  .hero { padding: 36px 0 48px; }
  .lockup { margin-bottom: 1.4rem; }
  .lockup-mark { width: 120px; }
  .lockup-name { font-size: 1.25rem; }
  .hero-media { padding: 10px; }
  .hero-visual { border-radius: 160px 160px var(--radius) var(--radius); }
  .hero-frame { border-radius: 170px 170px calc(var(--radius) + 10px) calc(var(--radius) + 10px); }
  .hero-visual { aspect-ratio: 1 / 1; }
  .hero-buttons .btn { flex: 1 1 100%; }
  .highlights-grid { grid-template-columns: 1fr; }
  .highlight { padding: 18px 4px; }
  .highlight + .highlight { border-left: 0; border-top: 1px solid var(--line); }
  .section { padding: 64px 0; }
  .panel { padding: 22px 18px; }
  .cards { grid-template-columns: 1fr; }
  .card-visual { height: 200px; }
  .ritual { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; gap: 8px; }
  .gallery-caption { left: 10px; bottom: 8px; font-size: .64rem; letter-spacing: .1em; }
  .lightbox { padding: 60px 8px 80px; }
  .lb-prev, .lb-next { top: auto; bottom: 18px; transform: none; }
  .lb-prev { left: calc(50% - 60px); }
  .lb-next { right: calc(50% - 60px); }
  .options, .form-grid { grid-template-columns: 1fr; }
  .scroll-btn { display: none; }
  .steps li + li::before { width: 14px; }
  .steps li span:last-child { font-size: .82rem; }
  .row-actions.between { flex-direction: column-reverse; align-items: stretch; }
  .row-actions .btn { width: 100%; }
  .diag-result { flex-direction: column; }
  .segmented { display: flex; }
  .segmented button { flex: 1; justify-content: center; padding: .55rem .5rem; }
  .install-card { max-width: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }

  /* Barre d'onglets façon application */
  body:not(.admin) { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
  .tabbar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    background: rgba(255, 255, 255, .96); backdrop-filter: blur(12px); border-top: 1px solid var(--line);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  }
  .tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--muted); text-decoration: none; font-size: .68rem; font-weight: 500; padding: 4px 0; }
  .tabbar a.tab-main { color: var(--ink); }
  .tabbar a.tab-main .icon { background: var(--ink); color: var(--gold-light); border-radius: 15px; padding: 9px; width: 44px; height: 44px; margin-top: -16px; box-shadow: 0 6px 16px rgba(20, 18, 15, .28); }
  .toast { bottom: calc(86px + env(safe-area-inset-bottom)); }
}
@media (display-mode: standalone) {
  .footer-link { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card, .card-visual img, .mainnav a::after { transition: none; }
}

/* ---------- Impression : seulement la carte cadeau ---------- */
@media print {
  body * { visibility: hidden; }
  #giftCard, #giftCard * { visibility: visible; }
  #giftCard { position: absolute; left: 0; top: 0; box-shadow: none; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
