:root {
  --bg: #FAF6F0;
  --card: #FFFFFF;
  --ink: #2B2824;
  --ink-2: #4A443C;
  --muted: #6B6459;
  --line: #E8DFD2;
  --line-2: #EFEAE2;
  --soft: #F3ECE2;
  --soft-2: #F6F2EC;
  --accent: #B35B38;
  --accent-dark: #8F4429;
  --accent-soft: #F6E6DD;
  --ok: #3E6B51;
  --ok-soft: #E6EFE8;
  --info: #34507A;
  --info-soft: #E3EAF3;
  --pad: clamp(16px, 5vw, 64px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: 'Inter', system-ui, sans-serif; background: var(--bg); color: var(--ink); line-height: 1.45; }
h1, h2, h3 { font-family: 'Fraunces', Georgia, serif; margin: 0; font-weight: 500; }
a { color: var(--accent); }
a:hover { color: var(--accent-dark); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }

.wrap { max-width: 1440px; margin: 0 auto; }
.pad { padding-left: var(--pad); padding-right: var(--pad); }

/* En-tête */
.site-header { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; padding: 16px var(--pad); border-bottom: 1px solid var(--line); background: var(--bg); }
.logo { font-family: 'Fraunces', Georgia, serif; font-size: 24px; font-weight: 600; letter-spacing: .5px; color: var(--ink); text-decoration: none; }
.nav { display: flex; flex-wrap: wrap; gap: 28px; font-size: 15px; }
.nav a { text-decoration: none; }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px; border-radius: 8px; border: 1.5px solid transparent; font-size: 15px; font-weight: 600; text-decoration: none; text-align: center; }
.btn-primary { background: var(--accent); color: #FFFFFF; }
.btn-primary:hover { background: var(--accent-dark); color: #FFFFFF; }
.btn-dark { background: var(--ink); color: var(--bg); }
.btn-dark:hover { color: var(--bg); background: #000000; }
.btn-light { background: var(--card); color: var(--ink); border-color: var(--line); }
.btn-light:hover { color: var(--ink); border-color: var(--ink); }
.btn-danger { background: var(--card); color: var(--accent-dark); border-color: var(--line); }
.btn-sm { min-height: 40px; padding: 8px 14px; font-size: 13.5px; }
.btn[disabled], .btn.is-disabled { opacity: .45; pointer-events: none; }
.btn-link { background: none; border: none; padding: 10px 0; color: var(--accent-dark); font-weight: 600; text-decoration: underline; min-height: 44px; }

/* Cartes et formulaires */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: clamp(18px, 4vw, 28px); }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.field input, .field select, .field textarea { height: 48px; border: 1.5px solid var(--line); border-radius: 8px; padding: 0 14px; font-size: 16px; font-weight: 400; color: var(--ink); background: #FFFFFF; min-width: 0; width: 100%; }
.field input:focus, .field select:focus { outline: 2px solid var(--ink); outline-offset: 1px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.error { color: var(--accent-dark); font-weight: 600; font-size: 14px; margin: 0; }
.notice { background: var(--accent-soft); color: var(--accent-dark); padding: 12px 16px; border-radius: 10px; font-size: 14px; font-weight: 600; }

/* Étapes de réservation */
.step { padding: 0 var(--pad) 32px; }
.step-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.step-num { width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: var(--bg); font-size: 13px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.step-head h2 { font-size: 20px; font-weight: 600; }
.step-hint { font-size: 13px; color: var(--muted); margin: 0 0 16px 40px; }

.services { display: flex; flex-wrap: wrap; gap: 14px; }
.service { flex: 1 1 280px; min-width: 0; display: flex; justify-content: space-between; align-items: center; gap: 12px; text-align: left; background: var(--card); border: 1.5px solid var(--line); border-radius: 12px; padding: 18px 22px; }
.service[aria-pressed="true"] { border-color: var(--ink); background: var(--soft); }
.service-name { font-size: 17px; font-weight: 600; }
.service-meta { font-size: 13px; color: var(--muted); margin-top: 4px; }
.price { font-family: 'Fraunces', Georgia, serif; font-size: 22px; font-weight: 600; white-space: nowrap; }

.days { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x proximity; }
.day { flex-shrink: 0; width: 84px; padding: 10px 0; border-radius: 10px; display: flex; flex-direction: column; align-items: center; border: 1.5px solid var(--line); background: var(--card); scroll-snap-align: start; }
.day .wd { font-size: 12px; opacity: .8; text-transform: capitalize; }
.day .num { font-size: 18px; font-weight: 600; margin-top: 2px; }
.day .tag { margin-top: 6px; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 10px; background: var(--ok-soft); color: var(--ok); }
.day[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.day[aria-pressed="true"] .tag { background: rgba(250,246,240,.16); color: var(--bg); }
.day.full { background: #F1ECE4; border-style: dashed; border-color: #C9BFB0; color: var(--muted); }
.day.full .num { text-decoration: line-through; }
.day.full .tag { background: var(--line); color: var(--ink-2); }
.day.full[aria-pressed="true"] { border-style: solid; border-color: var(--ink); background: #F1ECE4; color: var(--ink); }
.day.closed { opacity: .5; cursor: not-allowed; }

.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 10px; }
.slot { min-height: 46px; border-radius: 8px; font-size: 15px; border: 1.5px solid var(--line); background: var(--card); }
.slot[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.slot:disabled { background: var(--soft-2); color: #8A8172; border-color: var(--line-2); text-decoration: line-through; cursor: not-allowed; }

.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; max-width: 760px; }

.sticky-bar { position: sticky; bottom: 0; z-index: 5; background: var(--card); border-top: 1px solid var(--line); padding: 12px var(--pad); display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; box-shadow: 0 -4px 16px rgba(0,0,0,.05); }
.sticky-bar .recap { font-size: 14px; color: var(--ink-2); }
.sticky-bar .btn { flex: 1 1 220px; }

/* Accueil */
.hero { display: flex; flex-wrap: wrap; gap: 32px; align-items: center; padding: clamp(28px, 6vw, 64px) var(--pad); }
.hero-text { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.hero h1 { font-size: clamp(36px, 9vw, 56px); line-height: 1.05; }
.hero-img { flex: 1 1 340px; min-width: 0; height: clamp(300px, 80vw, 520px); object-fit: cover; object-position: center 40%; border-radius: 20px; }
.eyebrow { margin: 0; font-size: 13px; letter-spacing: 2px; text-transform: uppercase; color: var(--accent-dark); font-weight: 600; }
.section { padding: 0 var(--pad) 48px; }
.section h2 { font-size: clamp(26px, 6vw, 32px); }
.row { display: flex; flex-wrap: wrap; gap: 12px; }
.row > .btn { flex: 1 1 180px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.gallery figure { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.gallery img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 14px; background: var(--line); }
.gallery figcaption { font-size: 14px; font-weight: 600; }
.reviews { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
.review { margin: 0; flex: 0 0 min(85%, 380px); scroll-snap-align: start; display: flex; flex-direction: column; gap: 14px; }
.stars { display: flex; gap: 2px; color: var(--accent); }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: var(--bg); display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 600; flex-shrink: 0; }
.info-line { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; font-size: 15px; }
.mobile-cta { position: sticky; bottom: 0; z-index: 5; padding: 12px 16px; background: var(--card); border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgba(0,0,0,.06); }
.mobile-cta .btn { width: 100%; font-size: 16px; }
.site-footer { border-top: 1px solid var(--line); padding: 24px var(--pad); display: flex; flex-wrap: wrap; gap: 12px 16px; justify-content: space-between; font-size: 14px; color: var(--muted); }

/* Espace coiffeuse */
.seg { display: flex; background: #F1EBE2; border-radius: 22px; padding: 4px; gap: 4px; }
.seg button { height: 40px; padding: 0 16px; border-radius: 20px; border: none; font-size: 13px; font-weight: 600; background: transparent; color: var(--ink-2); }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--card); display: inline-flex; align-items: center; justify-content: center; position: relative; }
.badge { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--accent-dark); color: #FFFFFF; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.stat { display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 18px; }
.stat-label { font-size: 13px; color: var(--muted); font-weight: 600; }
.stat-value { font-family: 'Fraunces', Georgia, serif; font-size: clamp(24px, 6vw, 34px); font-weight: 600; }
.bar { height: 8px; border-radius: 4px; background: #F1EBE2; overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--accent); border-radius: 4px; }
.layout { display: flex; flex-wrap: wrap; gap: 24px; padding: 24px var(--pad) 40px; }
.layout-main { flex: 999 1 640px; min-width: 0; }
.layout-side { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.appt { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.appt.new { border-color: var(--accent); }
.appt.muted-row { background: var(--soft-2); }
.appt.block { background: var(--soft-2); border-style: dashed; border-color: #D9CFC0; }
.appt-time { width: 56px; flex-shrink: 0; font-family: 'Fraunces', Georgia, serif; font-size: 17px; font-weight: 600; }
.appt-body { flex: 1 1 160px; min-width: 0; }
.appt-name { font-size: 15px; font-weight: 600; }
.appt-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.pill { font-size: 12.5px; font-weight: 600; padding: 5px 11px; border-radius: 20px; white-space: nowrap; }
.pill-ok { background: var(--ok-soft); color: var(--ok); }
.pill-new { background: var(--accent-soft); color: var(--accent-dark); }
.pill-grey { background: var(--line-2); color: var(--ink-2); }
.pill-info { background: var(--info-soft); color: var(--info); }
.week { overflow-x: auto; }
.week-grid { min-width: 760px; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.week-col { border-right: 1px solid var(--line-2); padding: 12px 8px; display: flex; flex-direction: column; gap: 6px; min-height: 360px; }
.week-col:last-child { border-right: none; }
.week-head { font-size: 13.5px; font-weight: 600; margin-bottom: 4px; text-transform: capitalize; background: none; border: none; text-align: left; padding: 0; min-height: 32px; }
.chip { border-radius: 8px; padding: 6px 8px; font-size: 12px; background: var(--bg); border: 1px solid var(--line); }
.chip.block { background: #F1ECE4; border-style: dashed; color: var(--ink-2); }
.month-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: clamp(3px, 1vw, 8px); }
.month-dow { font-size: 12px; font-weight: 600; color: var(--muted); text-align: center; }
.month-cell { min-height: clamp(48px, 11vw, 80px); min-width: 0; border-radius: 8px; padding: clamp(4px, 1vw, 8px); border: 1px solid var(--line-2); background: var(--card); display: flex; flex-direction: column; gap: 4px; text-align: left; }
.month-cell.today { border: 2px solid var(--ink); }
.month-cell.closed { background: var(--soft-2); }
.month-cell.full { background: var(--accent-soft); }
.month-cell .n { font-size: 14px; font-weight: 600; }
.month-cell .c { font-size: 11.5px; color: var(--ink-2); }
.toast { position: fixed; top: 20px; right: 20px; z-index: 50; width: 340px; max-width: calc(100% - 40px); background: var(--ink); color: var(--bg); border-radius: 14px; padding: 16px 12px 16px 18px; display: flex; gap: 12px; align-items: flex-start; box-shadow: 0 12px 32px rgba(43,40,36,.25); }
.toast button { background: transparent; border: none; color: var(--bg); width: 36px; height: 36px; border-radius: 8px; flex-shrink: 0; }
.list-row { display: flex; align-items: center; gap: 12px; background: var(--soft-2); border-radius: 10px; padding: 8px 6px 8px 14px; }

@media (max-width: 640px) {
  .hide-sm { display: none !important; }
  .sm-last { order: 99; }
}
@media (min-width: 641px) {
  .show-sm { display: none !important; }
}
