/* Maison Iris — institut de beauté (site de démonstration WytsWeb). Mobile d'abord. */

@font-face {
    font-family: 'Cormorant Garamond';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/cormorant-garamond-latin-500-normal.woff2') format('woff2');
}
@font-face {
    font-family: 'Cormorant Garamond';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/cormorant-garamond-latin-600-normal.woff2') format('woff2');
}
@font-face {
    font-family: 'Cormorant Garamond';
    font-style: italic;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/cormorant-garamond-latin-500-italic.woff2') format('woff2');
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('../fonts/inter-latin-wght-normal.woff2') format('woff2');
}

:root {
    --ink: #2a2124;
    --text: #4a3f43;
    --muted: #6f6166;
    --bg: #faf7f4;
    --surface: #ffffff;
    --soft: #f3ece8;
    --rose: #f4e8ec;
    --accent: #8a5a6b;
    --accent-dark: #6f4656;
    --on-accent: #ffffff;
    --line: #e8dfda;
    --gold: #b89a74;
    --ok: #2f6b4f;
    --ok-soft: #e6f2ea;
    --warn-soft: #fbf1dc;
    --error: #a1262b;
    --error-soft: #fbeaea;
    --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --radius: 12px;
    --radius-lg: 20px;
    --shadow: 0 10px 30px rgba(42, 33, 36, .08);
    --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body { margin: 0; font: 400 1rem/1.65 var(--sans); color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--accent-dark); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; color: var(--ink); line-height: 1.12; margin: 0 0 .75rem; letter-spacing: -.01em; }
h1 { font-size: clamp(2.5rem, 7vw, 4.25rem); }
h2 { font-size: clamp(2rem, 5vw, 2.875rem); }
h3 { font-size: 1.5rem; }
p { margin: 0 0 1rem; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.container { width: min(100% - 2rem, var(--max)); margin-inline: auto; }
.kicker { display: inline-block; font: 600 .78rem/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-bottom: .75rem; }
.lead { font-size: 1.125rem; color: var(--text); max-width: 38rem; }
.section { padding: 4.5rem 0; }
.section-soft { background: var(--soft); }
.section-head { max-width: 40rem; margin-bottom: 2.5rem; }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px; padding: .75rem 1.5rem; border-radius: 999px; border: 1.5px solid var(--accent); background: var(--accent); color: var(--on-accent); font: 600 1rem/1.2 var(--sans); text-decoration: none; cursor: pointer; transition: background .2s, border-color .2s, transform .2s; }
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface); border-color: var(--accent); }
.btn-link { background: none; border: 0; padding: .5rem 0; min-height: 44px; color: var(--accent-dark); font: 600 1rem var(--sans); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* Bandeau démo */
.demo-banner { background: var(--ink); color: #f4ece9; font-size: .8125rem; text-align: center; padding: .5rem 1rem; }
.demo-banner a { color: #fff; }

/* En-tête */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(250, 247, 244, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.25rem; }
.brand { text-decoration: none; display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font: 600 1.625rem/1 var(--serif); color: var(--ink); }
.brand-tag { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-top: .25rem; }
.nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 18px; height: 2px; background: var(--ink); position: relative; content: ''; }
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }
.site-nav { display: none; position: absolute; inset: 100% 0 auto 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: .5rem 1rem 1.25rem; }
.site-nav.is-open { display: block; }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav a { display: block; padding: .875rem 0; color: var(--ink); text-decoration: none; font-weight: 500; border-bottom: 1px solid var(--line); }
.site-nav .btn { margin-top: 1rem; width: 100%; border-bottom: 0; color: var(--on-accent); }

/* Accueil */
.hero { padding: 3rem 0 4rem; overflow: hidden; }
.hero-grid { display: grid; gap: 2.5rem; align-items: center; }
.hero h1 em { font-style: italic; font-weight: 500; color: var(--accent); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.75rem 0 2rem; }
.hero-points { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; color: var(--ink); font-size: .9375rem; }
.hero-points li { display: flex; align-items: center; gap: .625rem; }
.hero-points li::before { content: ''; width: 8px; height: 8px; border-radius: 999px; background: var(--gold); flex: none; }
.hero-visual { position: relative; aspect-ratio: 4 / 5; max-width: 26rem; width: 100%; margin-inline: auto; }
.arch { position: absolute; inset: 0 10% 0 0; border-radius: 999px 999px var(--radius-lg) var(--radius-lg); background: radial-gradient(120% 80% at 30% 20%, #f9e9ee 0%, #e9c9d3 45%, #b98798 100%); box-shadow: var(--shadow); }
.arch-small { position: absolute; right: 0; bottom: 8%; width: 42%; aspect-ratio: 3 / 4; border-radius: 999px 999px var(--radius) var(--radius); background: linear-gradient(160deg, #f7efe6 0%, #e4cfb4 100%); border: 6px solid var(--bg); }
.hero-badge { position: absolute; left: -2%; bottom: 12%; background: var(--surface); border-radius: var(--radius); padding: .875rem 1rem; box-shadow: var(--shadow); font-size: .875rem; line-height: 1.35; max-width: 13rem; }
.hero-badge strong { display: block; font: 600 1.25rem var(--serif); color: var(--ink); }

/* Soins */
.cards { display: grid; gap: 1rem; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.5rem; }
.card h3 { margin-bottom: .5rem; }
.card p { margin: 0; color: var(--text); }
.card-icon { width: 44px; height: 44px; border-radius: 999px; background: var(--rose); display: grid; place-items: center; color: var(--accent); margin-bottom: 1rem; font: 600 1.25rem var(--serif); }

/* Institut */
.about-grid { display: grid; gap: 2.5rem; }
.team { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .75rem; }
.team li { display: flex; gap: 1rem; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: .875rem 1rem; }
.avatar { width: 48px; height: 48px; border-radius: 999px; display: grid; place-items: center; font: 600 1.25rem var(--serif); color: #fff; flex: none; }
.team strong { color: var(--ink); display: block; }
.team span { font-size: .9375rem; color: var(--muted); }
.promises { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.promises li { padding-left: 1.75rem; position: relative; }
.promises li::before { content: '✓'; position: absolute; left: 0; top: 0; color: var(--accent); font-weight: 700; }

/* Infos pratiques */
.info-grid { display: grid; gap: 1rem; }
.hours { width: 100%; border-collapse: collapse; }
.hours th, .hours td { text-align: left; padding: .5rem 0; border-bottom: 1px solid var(--line); font-weight: 400; }
.hours th { color: var(--ink); font-weight: 500; }
.hours td { text-align: right; }
.closed { color: var(--muted); }

/* Pied de page */
.site-footer { background: var(--ink); color: #e9dfdc; padding: 3rem 0 2rem; font-size: .9375rem; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; gap: 2rem; }
.footer-brand { font: 600 1.75rem var(--serif); color: #fff; margin-bottom: .5rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .375rem; }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(255, 255, 255, .15); display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; font-size: .8125rem; color: #cbbfbb; }
.footer-bottom a { color: #e9dfdc; }

/* ---------- Réservation ---------- */
.booking { display: grid; gap: 1.25rem; align-items: start; }
.booking-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.25rem; box-shadow: var(--shadow); min-height: 22rem; }
.steps { list-style: none; display: flex; gap: .375rem; padding: 0; margin: 0 0 1.25rem; counter-reset: step; }
.steps li { flex: 1; font-size: .75rem; color: var(--muted); counter-increment: step; }
.steps li::before { content: ''; display: block; height: 4px; border-radius: 4px; background: var(--line); margin-bottom: .375rem; }
.steps li.is-done::before, .steps li[aria-current='step']::before { background: var(--accent); }
.steps li[aria-current='step'] { color: var(--ink); font-weight: 600; }
.steps .step-label { display: none; }
.steps li[aria-current='step'] .step-label { display: block; }
.step-title { font-size: 1.75rem; margin-bottom: .25rem; }
.step-title:focus { outline: none; }
.step-intro { color: var(--muted); margin-bottom: 1.25rem; }
.back { margin-bottom: .5rem; padding: 0; min-height: 40px; display: inline-flex; align-items: center; gap: .25rem; }

.category + .category { margin-top: 1.5rem; }
.category h3 { font-size: 1.25rem; margin-bottom: .625rem; }
.choices { display: grid; gap: .625rem; }
.choice { display: block; width: 100%; text-align: left; background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 1rem; cursor: pointer; font: inherit; color: inherit; transition: border-color .15s, background .15s; }
.choice:hover { border-color: var(--accent); }
.choice.is-selected, .choice[aria-pressed='true'] { border-color: var(--accent); background: var(--rose); }
.choice-top { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; }
.choice-name { font-weight: 600; color: var(--ink); }
.choice-price { font-weight: 600; color: var(--ink); white-space: nowrap; }
.choice-meta { font-size: .875rem; color: var(--muted); margin-top: .25rem; }
.choice-detail { margin-top: .875rem; padding-top: .875rem; border-top: 1px solid var(--line); display: grid; gap: .5rem; }
.option { display: flex; align-items: center; gap: .75rem; min-height: 44px; padding: .5rem .75rem; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; }
.option input { width: 20px; height: 20px; accent-color: var(--accent); flex: none; }
.option .grow { flex: 1; }
.fieldset-title { font-size: .8125rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: .5rem 0 .25rem; }

/* Bandeau de jours */
.week-nav { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .75rem; }
.week-nav button { width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-size: 1.25rem; color: var(--ink); }
.week-nav button:disabled { opacity: .35; cursor: default; }
.week-label { font-weight: 600; color: var(--ink); text-align: center; }
.days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .375rem; }
.day { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 64px; border-radius: var(--radius); border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-size: .75rem; cursor: pointer; padding: .25rem 0; text-transform: capitalize; }
.day strong { font-size: 1.125rem; line-height: 1.2; }
.day:hover:not(:disabled) { border-color: var(--accent); }
.day[aria-pressed='true'] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.day:disabled { background: var(--soft); color: #a3969a; border-style: dashed; cursor: default; }
.slots-title { font-size: 1.125rem; margin: 1.25rem 0 .625rem; text-transform: none; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(5rem, 1fr)); gap: .5rem; }
.slot { min-height: 48px; border-radius: var(--radius); border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); font: 600 1rem var(--sans); cursor: pointer; }
.slot:hover { border-color: var(--accent); background: var(--rose); }
.slot[aria-pressed='true'] { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.empty { padding: 1.25rem; border-radius: var(--radius); background: var(--soft); text-align: center; margin-top: 1rem; }

/* Formulaire */
.form-grid { display: grid; gap: 1rem; }
.field label { display: block; font-weight: 600; color: var(--ink); margin-bottom: .375rem; font-size: .9375rem; }
.field input { width: 100%; min-height: 50px; padding: .75rem 1rem; border-radius: var(--radius); border: 1.5px solid var(--line); background: var(--surface); font: inherit; color: var(--ink); }
.field input:focus { border-color: var(--accent); outline: 3px solid rgba(138, 90, 107, .2); outline-offset: 0; }
.field input[aria-invalid='true'] { border-color: var(--error); }
.field-error { color: var(--error); font-size: .875rem; margin-top: .375rem; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.privacy-note { font-size: .875rem; color: var(--muted); margin: 0; }

.alert { padding: .875rem 1rem; border-radius: var(--radius); margin-bottom: 1rem; }
.alert-error { background: var(--error-soft); color: var(--error); }
.alert-ok { background: var(--ok-soft); color: var(--ok); }
.alert-warn { background: var(--warn-soft); color: #6b4a12; }
.loading { color: var(--muted); padding: 2rem 0; text-align: center; }
.loading::before { content: ''; display: block; width: 28px; height: 28px; margin: 0 auto .75rem; border-radius: 999px; border: 3px solid var(--line); border-top-color: var(--accent); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Récapitulatif */
.booking-aside { position: sticky; bottom: .75rem; z-index: 5; }
.summary { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1rem 1.25rem; box-shadow: 0 8px 30px rgba(42, 33, 36, .16); }
.summary summary { cursor: pointer; font-weight: 600; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 1rem; min-height: 32px; align-items: center; }
.summary summary::-webkit-details-marker { display: none; }
.summary summary::after { content: '▾'; color: var(--muted); }
.summary[open] summary::after { content: '▴'; }
.summary dl { margin: .75rem 0 0; display: grid; gap: .625rem; }
.summary dt { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.summary dd { margin: 0; color: var(--ink); font-weight: 500; }
.summary .total { display: flex; justify-content: space-between; border-top: 1px solid var(--line); padding-top: .75rem; margin-top: .25rem; font-weight: 700; color: var(--ink); }
.summary-empty { color: var(--muted); font-size: .9375rem; margin: .75rem 0 0; }

.done { text-align: center; padding: 1rem 0; }
.done-icon { width: 64px; height: 64px; border-radius: 999px; margin: 0 auto 1rem; display: grid; place-items: center; background: var(--ok-soft); color: var(--ok); font-size: 2rem; }
.done-icon.is-pending { background: var(--warn-soft); color: #8a6214; }
.done .btn { margin-top: .5rem; }
.done-actions { display: grid; gap: .75rem; max-width: 22rem; margin: 1.5rem auto 0; }

.badge { display: inline-block; padding: .2rem .75rem; border-radius: 999px; font-size: .8125rem; font-weight: 600; background: var(--ok-soft); color: var(--ok); }
.badge-pending { background: var(--warn-soft); color: #6b4a12; }
.badge-off { background: var(--error-soft); color: var(--error); }

/* Page « gérer ma réservation » */
.manage { padding: 3rem 0 4rem; }
.manage-card { max-width: 40rem; margin-inline: auto; }
.manage-actions { display: grid; gap: .75rem; margin-top: 1.5rem; }
.confirm-box { margin-top: 1.25rem; padding: 1rem; border-radius: var(--radius); background: var(--soft); }
.staff-switch { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.staff-switch button { min-height: 44px; padding: .5rem 1rem; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); font: inherit; cursor: pointer; color: var(--ink); }
.staff-switch button[aria-pressed='true'] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

@media (min-width: 560px) {
    .cards { grid-template-columns: repeat(2, 1fr); }
    .steps .step-label { display: block; }
    .form-grid { grid-template-columns: 1fr 1fr; }
    .form-grid .full { grid-column: 1 / -1; }
    .booking-panel { padding: 1.75rem; }
}

@media (min-width: 900px) {
    .nav-toggle { display: none; }
    .site-nav { display: block; position: static; padding: 0; background: none; border: 0; }
    .site-nav ul { display: flex; align-items: center; gap: 1.75rem; }
    .site-nav a { border: 0; padding: .5rem 0; }
    .site-nav .btn { margin: 0; width: auto; padding: .625rem 1.25rem; min-height: 44px; }
    .hero { padding: 4.5rem 0 5.5rem; }
    .hero-grid { grid-template-columns: 1.1fr .9fr; }
    .cards { grid-template-columns: repeat(3, 1fr); }
    .about-grid { grid-template-columns: 1fr 1fr; gap: 4rem; }
    .info-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
    .booking { grid-template-columns: minmax(0, 1fr) 20rem; gap: 1.5rem; }
    .booking-aside { position: sticky; top: 5.5rem; bottom: auto; }
    .summary { box-shadow: none; }
    .summary summary { pointer-events: none; }
    .summary summary::after { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* En-tête cliquable d'une carte de soin */
.choice-head { all: unset; box-sizing: border-box; display: block; width: 100%; cursor: pointer; }
.choice-head:focus-visible { outline: 3px solid var(--accent); outline-offset: 6px; border-radius: 8px; }
