/* Laqa — feuille de style.
   Direction : marketplace haut de gamme épurée à la Planity (photos plein cadre, cartes aérées, boutons pleins),
   charte Laqa : crème #FAF7F2, terracotta #9A5B42, or champagne #C59B27, noir #2C1E18 ;
   titres en Cormorant Garamond, textes et montants en Jost. */
:root {
  --bg: #FAF7F2;               /* crème */
  --bg-soft: #F3EDE4;
  --surface: #FFFFFF;
  --surface-2: #F4EEE6;
  --ink: #2C1E18;              /* noir Laqa */
  --ink-2: #4A3A31;
  --muted: #6E5B50;           /* contraste AA (4,5:1) même sur les fonds gris clair */
  --line: #E8DFD5;
  --line-strong: #D8CBBD;
  --primary: #2C1E18;          /* boutons principaux */
  --primary-hover: #4A3125;
  --on-primary: #FFFFFF;
  --accent: #9A5B42;           /* terracotta Laqa */
  --accent-soft: #F6ECE6;
  --gold: #C59B27;
  --gold-soft: #FAF2DD;
  --gold-text: #7E5F10;        /* or foncé pour les TEXTES sur fond clair (l’or champagne n’atteint que 2,4:1) */
  --success: #1F7A4A; --success-soft: #E6F4EC;
  --warning: #A35F00; --warning-soft: #FDF2E0;
  --danger: #B42F25;  --danger-soft: #FCE9E7;
  --info: #26618A;    --info-soft: #E5F0F8;
  --sh-xs: 0 1px 2px rgba(44, 30, 24, .06);
  --sh-sm: 0 2px 10px rgba(44, 30, 24, .06);
  --sh: 0 12px 32px rgba(44, 30, 24, .09);
  --sh-lg: 0 24px 60px rgba(44, 30, 24, .16);
  --r-xs: 8px; --r-sm: 12px; --r: 16px; --r-lg: 24px;
  --sans: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Cormorant Garamond", Georgia, serif;
  --header-h: 72px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121110; --bg-soft: #181614; --surface: #1C1A18; --surface-2: #262320; --ink: #F5F2EE; --ink-2: #D9D3CC; --muted: #A59D96;
    --line: #2E2A27; --line-strong: #403A35; --primary: #F5F2EE; --primary-hover: #FFFFFF; --on-primary: #121110;
    --accent: #DDA084; --accent-soft: #33231B; --gold: #E2BF5A; --gold-soft: #322A18; --gold-text: #E2BF5A;
    --success: #7ACF9C; --success-soft: #16291E; --warning: #F1B865; --warning-soft: #33250F;
    --danger: #F2928A; --danger-soft: #371917; --info: #8FC5E8; --info-soft: #13263A;
    --sh-xs: 0 1px 2px rgba(0,0,0,.4); --sh-sm: 0 2px 10px rgba(0,0,0,.35); --sh: 0 12px 32px rgba(0,0,0,.45); --sh-lg: 0 24px 60px rgba(0,0,0,.6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #121110; --bg-soft: #181614; --surface: #1C1A18; --surface-2: #262320; --ink: #F5F2EE; --ink-2: #D9D3CC; --muted: #A59D96;
  --line: #2E2A27; --line-strong: #403A35; --primary: #F5F2EE; --primary-hover: #FFFFFF; --on-primary: #121110;
  --accent: #DDA084; --accent-soft: #33231B; --gold: #E2BF5A; --gold-soft: #322A18; --gold-text: #E2BF5A;
  --success: #7ACF9C; --success-soft: #16291E; --warning: #F1B865; --warning-soft: #33250F;
  --danger: #F2928A; --danger-soft: #371917; --info: #8FC5E8; --info-soft: #13263A;
  --sh-xs: 0 1px 2px rgba(0,0,0,.4); --sh-sm: 0 2px 10px rgba(0,0,0,.35); --sh: 0 12px 32px rgba(0,0,0,.45); --sh-lg: 0 24px 60px rgba(0,0,0,.6);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--bg); color: var(--ink);
  font: 400 16px/1.55 var(--sans); letter-spacing: .005em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  transition: background-color .3s, color .3s;
}
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.1; letter-spacing: -.01em; margin: 0; }
h1 em, h2 em, h3 em { font-style: italic; font-weight: 500; color: var(--accent); }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--gold-soft); }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.small { font-size: .86rem; }
.serif { font-family: var(--serif); }
.eyebrow { display: block; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); font-weight: 600; margin-bottom: 10px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 1000; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Boutons & champs ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid var(--primary); background: var(--primary); color: var(--on-primary);
  border-radius: var(--r-sm); padding: .72rem 1.35rem; font-weight: 500; font-size: .95rem;
  cursor: pointer; white-space: nowrap; transition: background .2s, border-color .2s, color .2s, transform .15s, box-shadow .2s;
}
.btn:hover { background: var(--primary-hover); border-color: var(--primary-hover); box-shadow: var(--sh-sm); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; transform: none; }
.btn.ghost { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn.ghost:hover { border-color: var(--ink); background: var(--surface); }
.btn.gold { background: var(--gold); border-color: var(--gold); color: #1A140B; }
.btn.gold:hover { filter: brightness(1.05); }
.btn.danger { background: transparent; color: var(--danger); border-color: color-mix(in srgb, var(--danger) 40%, transparent); }
.btn.danger:hover { background: var(--danger-soft); border-color: var(--danger); }
.btn.success { background: var(--success); border-color: var(--success); color: #fff; }
:root[data-theme="dark"] .btn.success { color: #0D1A12; }
.btn.sm { padding: .45rem .9rem; font-size: .85rem; border-radius: var(--r-xs); }
.btn.lg { padding: .95rem 1.7rem; font-size: 1rem; }
.btn.block { width: 100%; }
.btn.is-loading { pointer-events: none; opacity: .65; }
.link-btn { background: none; border: 0; padding: 0; color: var(--ink); cursor: pointer; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

.field { display: grid; gap: 6px; }
.field > span:first-child, .label { font-size: .82rem; font-weight: 500; color: var(--ink-2); }
.input, .field input, .field select, .field textarea {
  width: 100%; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink);
  padding: .78rem .95rem; border-radius: var(--r-sm); outline: none; transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 96px; }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ink) 10%, transparent); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-stack { display: grid; gap: 16px; }
.pw { position: relative; display: block; }
.pw input { padding-right: 88px; }
.pw-toggle { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--muted); font-size: .82rem; font-weight: 500; cursor: pointer; padding: 6px 8px; border-radius: 6px; }
.pw-toggle:hover { color: var(--ink); background: var(--surface-2); }

.icon-btn {
  position: relative; width: 42px; height: 42px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: 1px solid transparent; color: var(--ink); cursor: pointer; transition: background .2s;
}
.icon-btn:hover { background: var(--surface-2); }
.icon-btn svg { width: 20px; height: 20px; }
.count-badge {
  position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 999px; background: var(--accent); color: var(--bg); border: 2px solid var(--bg); /* texte foncé en thème sombre (contraste) */
  font-size: .66rem; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.count-badge:empty { display: none; }

.badge {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px;
  font-size: .72rem; font-weight: 500; background: var(--surface-2); color: var(--ink-2); white-space: nowrap;
}
.badge.instant { background: var(--gold-soft); color: var(--gold-text); }
.badge.verified { background: var(--accent-soft); color: var(--accent); }
.status { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 500; white-space: nowrap; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status.pending { background: var(--warning-soft); color: var(--warning); }
.status.confirmed, .status.approved { background: var(--success-soft); color: var(--success); }
.status.rejected, .status.suspended { background: var(--danger-soft); color: var(--danger); }
.status.cancelled { background: var(--surface-2); color: var(--muted); }
.status.completed { background: var(--info-soft); color: var(--info); }
.paid { display: inline-flex; align-items: center; gap: 5px; color: var(--success); font-size: .8rem; font-weight: 500; }

/* ---------- En-tête ---------- */
header.top {
  position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid var(--line);
}
.top-in { height: var(--header-h); display: flex; align-items: center; gap: 28px; }
.logo { font: italic 600 2rem/1 var(--serif); display: inline-flex; align-items: baseline; gap: 3px; letter-spacing: -.01em; }
.logo-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.main-nav { display: flex; gap: 6px; font-size: .94rem; }
.main-nav a, .main-nav button { background: none; border: 0; padding: 8px 12px; border-radius: var(--r-xs); cursor: pointer; color: var(--ink-2); font-weight: 500; transition: background .2s, color .2s; }
.main-nav a:hover, .main-nav button:hover { background: var(--surface-2); color: var(--ink); }
.main-nav .active { color: var(--ink); background: var(--surface-2); }
.main-nav .role-link { color: var(--accent); }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.pro-link { background: none; border: 0; color: var(--ink-2); font-weight: 500; font-size: .9rem; cursor: pointer; padding: 8px 10px; border-radius: var(--r-xs); }
.pro-link:hover { background: var(--surface-2); color: var(--ink); }
#authSlot { margin-left: 4px; }
.burger { display: none; }

.user-menu { position: relative; }
.user-pill { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line-strong); padding: 4px 14px 4px 4px; border-radius: 999px; cursor: pointer; font-size: .88rem; transition: box-shadow .2s; }
.user-pill:hover { box-shadow: var(--sh-sm); }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: var(--bg); display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: .9rem; flex: none; }
.user-pill small { display: block; color: var(--muted); font-size: .72rem; line-height: 1.1; }
.user-pill strong { display: block; font-weight: 600; line-height: 1.2; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-pop { position: absolute; right: 0; top: calc(100% + 8px); min-width: 230px; z-index: 60; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh-lg); padding: 8px; display: grid; }
.menu-pop a, .menu-pop button { text-align: left; background: none; border: 0; padding: 10px 12px; border-radius: var(--r-xs); cursor: pointer; font-size: .92rem; }
.menu-pop a:hover, .menu-pop button:hover { background: var(--surface-2); }

/* ---------- Hero & recherche ---------- */
.hero { position: relative; z-index: 2; isolation: isolate; color: #fff; min-height: 600px; display: flex; align-items: center; padding: 96px 0 88px; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(14,10,8,.62) 0%, rgba(14,10,8,.48) 45%, rgba(14,10,8,.75) 100%); }
.hero-in { text-align: center; }
.hero-kicker { display: inline-block; font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 500; padding: 7px 14px; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; margin-bottom: 24px; backdrop-filter: blur(6px); }
.hero h1 { font-size: clamp(2.9rem, 6.6vw, 5.4rem); font-weight: 500; letter-spacing: -.015em; max-width: 17ch; margin: 0 auto 18px; color: #fff; text-shadow: 0 2px 24px rgba(0,0,0,.25); }
.hero h1 em { color: #F0D9A0; }
.hero .lead { max-width: 52ch; margin: 0 auto 38px; color: rgba(255,255,255,.88); font-size: 1.12rem; font-weight: 400; }
.hero-meta { margin-top: 26px; display: flex; justify-content: center; gap: 28px; flex-wrap: wrap; font-size: .9rem; color: rgba(255,255,255,.85); }
.hero-meta b { color: #fff; font-weight: 600; margin-right: 4px; }

.search-box {
  max-width: 1040px; margin: 0 auto; text-align: left; color: var(--ink);
  display: grid; grid-template-columns: 1.3fr 1.3fr .9fr .7fr auto; align-items: stretch;
  background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--sh-lg); padding: 8px;
}
.search-field { display: grid; align-content: center; gap: 2px; padding: 10px 18px; border-radius: var(--r); min-width: 0; position: relative; transition: background .2s; }
.search-field + .search-field::before { content: ""; position: absolute; left: 0; top: 22%; bottom: 22%; width: 1px; background: var(--line); }
.search-field:hover, .search-field:focus-within { background: var(--surface-2); }
.search-field:hover::before, .search-field:focus-within::before, .search-field:hover + .search-field::before, .search-field:focus-within + .search-field::before { opacity: 0; }
.search-field label { font-size: .78rem; font-weight: 600; color: var(--ink); }
.search-field select, .search-field input { border: 0; background: transparent; outline: none; padding: 2px 0; font-size: .95rem; color: var(--ink-2); width: 100%; min-width: 0; cursor: pointer; }
.search-field input::placeholder { color: var(--muted); }
.search-box .btn { border-radius: var(--r); margin-left: 6px; padding: 0 30px; }

/* Autocomplétion des villes */
.ac-host { position: relative; }
.ac-list {
  position: absolute; left: 0; top: calc(100% + 8px); z-index: 70; min-width: 100%; width: max-content; max-width: min(420px, 90vw);
  list-style: none; margin: 0; padding: 6px; background: var(--surface); color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh-lg); max-height: 320px; overflow-y: auto;
}
.search-field .ac-list { left: -8px; top: calc(100% + 14px); min-width: calc(100% + 16px); }
.ac-list [role=option] { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 10px 12px; border-radius: var(--r-xs); cursor: pointer; font-size: .93rem; }
.ac-list [role=option] b { font-weight: 600; }
.ac-list [role=option] small { color: var(--muted); font-size: .78rem; }
.ac-list [role=option]:hover, .ac-list [role=option][aria-selected="true"] { background: var(--surface-2); }
.ac-list .ac-cp { color: var(--muted); }
.ac-list .ac-empty { padding: 10px 12px; color: var(--muted); font-size: .9rem; }

.mq { overflow: hidden; border-bottom: 1px solid var(--line); padding: 16px 0; background: var(--bg); }
.mq-track { display: flex; width: max-content; animation: marquee 55s linear infinite; }
.mq-track span { font-size: .9rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; display: flex; align-items: center; color: var(--muted); }
.mq-track span::after { content: "✦"; margin: 0 28px; color: var(--gold); font-size: .7rem; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .mq-track { animation: none; } html { scroll-behavior: auto; } }

/* ---------- Sections ---------- */
section.block { padding: 88px 0; }
.sec-h { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 30px; flex-wrap: wrap; }
.sec-h h2 { font-size: clamp(2.3rem, 4.4vw, 3.3rem); font-weight: 500; }
.result-count { font-size: .9rem; color: var(--muted); }

.cats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.cat-card { position: relative; overflow: hidden; border-radius: var(--r); aspect-ratio: 4 / 3.2; cursor: pointer; border: 0; background: var(--surface-2); color: #fff; text-align: left; padding: 0; display: flex; align-items: flex-end; isolation: isolate; }
.cat-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.cat-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 35%, rgba(12,9,7,.78)); }
.cat-card:hover img { transform: scale(1.07); }
.cat-card.active { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--ink); }
.cat-card div { padding: 16px 18px; }
.cat-card h3 { font-size: 1.45rem; color: #fff; }
.cat-card small { font-size: .8rem; opacity: .85; }

/* Filtres */
.filter-bar {
  position: sticky; top: calc(var(--header-h) + 10px); z-index: 20;
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(12px);
  border: 1px solid var(--line); border-radius: var(--r); padding: 10px 12px; margin-bottom: 28px; box-shadow: var(--sh-xs);
}
.chips { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.chip { border: 1px solid var(--line-strong); background: var(--surface); border-radius: 999px; padding: .45rem .95rem; font-size: .86rem; font-weight: 500; cursor: pointer; transition: all .2s; display: inline-flex; align-items: center; gap: 6px; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.select-sm { border: 1px solid var(--line-strong); background: var(--surface); border-radius: 999px; padding: .45rem .95rem; font-size: .86rem; font-weight: 500; cursor: pointer; outline: none; }
.select-sm:hover { border-color: var(--ink); }

/* Cartes prestataires */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 30px 24px; }
.card { display: flex; flex-direction: column; cursor: pointer; border-radius: var(--r); transition: transform .3s ease; }
.card:hover { transform: translateY(-3px); }
.card-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--r); background: var(--surface-2); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s cubic-bezier(.2,.7,.2,1); }
.card:hover .card-media img { transform: scale(1.05); }
.card-media .badges { position: absolute; left: 12px; top: 12px; display: flex; gap: 6px; }
.card-media .badge { background: rgba(255,255,255,.94); color: #161412; box-shadow: var(--sh-xs); }
.fav-btn { position: absolute; top: 10px; right: 10px; width: 38px; height: 38px; border-radius: 50%; border: 0; cursor: pointer; background: rgba(255,255,255,.94); color: #161412; display: flex; align-items: center; justify-content: center; box-shadow: var(--sh-xs); transition: transform .2s; }
.fav-btn:hover { transform: scale(1.08); }
.fav-btn svg { width: 18px; height: 18px; }
.fav-btn[aria-pressed="true"] { color: #C0392B; }
.fav-btn[aria-pressed="true"] svg { fill: currentColor; }
.card-body { padding: 14px 2px 0; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card-cat { font-size: .78rem; font-weight: 500; color: var(--accent); }
.card-title { font-size: 1.45rem; }
.card-line { display: flex; align-items: center; gap: 6px; font-size: .88rem; color: var(--muted); flex-wrap: wrap; }
.card-line .dist { margin-left: auto; color: var(--ink); font-weight: 500; font-size: .8rem; background: var(--surface-2); padding: 2px 9px; border-radius: 999px; }
.stars { color: var(--gold-text); letter-spacing: .5px; font-weight: 600; }
.card-foot { margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--line); display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.price-from small { display: block; font-size: .74rem; color: var(--muted); }
.price-from strong { font-size: 1.1rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.price-from em { font-style: normal; font-size: .8rem; color: var(--muted); font-weight: 400; }
.empty { grid-column: 1 / -1; text-align: center; padding: 56px 20px; border: 1px dashed var(--line-strong); border-radius: var(--r); color: var(--muted); }
.empty h3 { color: var(--ink); font-size: 1.3rem; margin-bottom: 6px; }
.skeleton { background: linear-gradient(90deg, var(--surface-2), var(--bg-soft), var(--surface-2)); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: var(--r); min-height: 330px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* Étapes & bannière Pro */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 28px; }
.step b { display: inline-flex; width: 40px; height: 40px; border-radius: 50%; align-items: center; justify-content: center; background: var(--ink); color: var(--bg); font-weight: 600; font-size: .95rem; }
.step h3 { font-size: 1.6rem; margin: 16px 0 6px; }
.pro-banner { position: relative; overflow: hidden; border-radius: var(--r-lg); padding: 76px 40px; text-align: center; color: #F5EFE8; background: radial-gradient(60% 90% at 85% 0%, rgba(197,155,39,.28), transparent 60%), #2C1E18; }
.pro-banner h2 { font-size: clamp(2.3rem, 4.8vw, 3.7rem); font-weight: 500; margin-bottom: 14px; color: #fff; }
.pro-banner p { max-width: 54ch; margin: 0 auto 30px; color: rgba(245,239,232,.8); }
.pro-banner .eyebrow { color: #E2BF5A; }
/* Espace client : liste de préparation et dépenses hors Laqa */
.planner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; align-items: start; }
.planner .panel { margin: 0; }
.task-progress { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.task-progress .meter { flex: 1; height: 8px; border-radius: 999px; background: var(--line); overflow: hidden; }
.task-progress .meter span { display: block; height: 100%; background: var(--gold); border-radius: inherit; transition: width .4s ease; }
.task-list, .expense-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.task-list li, .expense-list li { display: grid; grid-template-columns: auto 1fr auto auto; gap: 10px; align-items: center; padding: 7px 4px; border-bottom: 1px solid var(--line); }
.expense-list li { grid-template-columns: 1fr auto auto; }
.task-list input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--gold); }
.task-list li.done span { color: var(--muted); text-decoration: line-through; }
.icon-x { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 1rem; padding: 2px 6px; border-radius: 6px; }
.icon-x:hover { color: var(--danger); background: color-mix(in srgb, var(--danger) 10%, transparent); }
.inline-add { display: flex; gap: 8px; margin-top: 12px; }
.inline-add .input { flex: 1; min-width: 0; }
.inline-add .input.amount { flex: 0 0 96px; }
.event-pick { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 4px; }
@media (max-width: 900px) { .planner { grid-template-columns: 1fr; } }
/* Espace Pro : jauge « Fiche complète à X % » */
.complete-box .meter { height: 10px; border-radius: 999px; background: var(--line); overflow: hidden; margin: 4px 0 16px; }
.complete-box .meter span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--gold), #E2BF5A); transition: width .6s ease; }
.complete-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.complete-list li { display: grid; grid-template-columns: 26px 1fr auto; gap: 10px; align-items: center; }
.complete-list .tick { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; font-size: .75rem; font-weight: 700; }
.complete-list li.ok .tick { background: var(--success); border-color: var(--success); color: #fff; }
.complete-list li.ok b { color: var(--muted); font-weight: 400; text-decoration: line-through; }
/* Fiche prestataire : réseaux sociaux et partage WhatsApp */
.social-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 14px; }
.social-links a { font-size: .88rem; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--accent); text-decoration: none; background: var(--surface); }
.social-links a:hover { border-color: var(--accent); }
.btn.wa-share { border-color: #25D366; color: #128C4A; }
.btn.wa-share:hover { background: #25D366; color: #fff; }
/* Accueil sans prestataire (avant les premières inscriptions) */
.empty-launch { grid-column: 1 / -1; text-align: center; padding: 48px 20px; border: 1px dashed var(--line); border-radius: var(--r-lg); background: var(--surface); }
.empty-launch h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 10px; }
.empty-launch p { max-width: 56ch; margin: 0 auto; }

/* ---------- Tableaux de bord ---------- */
.dash { padding: 44px 0 88px; }
.dash-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; }
.dash-head h1 { font-size: clamp(2.4rem, 4.6vw, 3.3rem); font-weight: 500; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin-bottom: 26px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px 22px; }
.stat .num { font-size: 1.75rem; font-weight: 600; line-height: 1.15; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat .num.accent { color: var(--accent); }
.stat .lbl { font-size: .85rem; color: var(--muted); margin-top: 4px; }
.progress { height: 6px; background: var(--surface-2); border-radius: 999px; overflow: hidden; margin-top: 12px; }
.progress span { display: block; height: 100%; background: var(--ink); border-radius: inherit; transition: width .6s ease; }
.progress.over span { background: var(--danger); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; margin-bottom: 22px; }
.panel-h { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.panel-h h2, .panel-h h3 { font-size: 1.7rem; }

.countdown { display: grid; grid-template-columns: auto 1fr; gap: 32px; align-items: center; background: #2C1E18; border: 1px solid var(--line); color: #F5EFE8; border-radius: var(--r-lg); padding: 34px 38px; margin-bottom: 22px; position: relative; overflow: hidden; }
.countdown::after { content: ""; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(197,155,39,.35), transparent 70%); pointer-events: none; }
.countdown .big { font: italic 500 clamp(3.6rem, 9vw, 6rem)/.9 var(--serif); color: #E2BF5A; }
.countdown h2 { color: #fff; font-size: 2rem; font-weight: 500; }
.countdown p { color: rgba(245,239,232,.75); margin-top: 2px; }
.countdown form { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; align-items: flex-end; position: relative; z-index: 1; }
.countdown .field > span:first-child { color: rgba(245,239,232,.7); }
.countdown .field input { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.18); color: #fff; color-scheme: dark; }
.countdown .field input:focus { border-color: #fff; box-shadow: none; }
.countdown .btn.ghost { background: #fff; color: #161412; border-color: #fff; }

.booking-list { display: grid; gap: 12px; }
.booking { display: grid; grid-template-columns: 70px 1fr auto; gap: 18px; align-items: center; border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; background: var(--surface); transition: box-shadow .2s; }
.booking:hover { box-shadow: var(--sh-sm); }
.date-chip { text-align: center; border-radius: var(--r-sm); background: var(--surface-2); padding: 8px 4px; }
.date-chip b { display: block; font-size: 1.5rem; font-weight: 600; line-height: 1.1; }
.date-chip small { font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.booking h4, .booking h3.booking-name { font-size: 1.35rem; }
.booking .meta { font-size: .86rem; color: var(--muted); }
.booking .side { text-align: right; display: grid; gap: 6px; justify-items: end; }
.booking .amount { font-size: 1.1rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.booking .actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.btn.pay-btn { white-space: normal; text-align: center; max-width: 100%; } /* long libellé « Régler l’acompte… » : passe à la ligne sur mobile */

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 22px; overflow-x: auto; scrollbar-width: none; }
.tab { background: none; border: 0; border-bottom: 2px solid transparent; padding: 10px 14px; cursor: pointer; color: var(--muted); font-weight: 500; white-space: nowrap; margin-bottom: -1px; }
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.tab .count-badge { position: static; display: inline-flex; margin-left: 6px; vertical-align: 1px; border: 0; }
.tab .count-badge:empty { display: none; }

.table-wrap { overflow-x: auto; margin: 0 -4px; }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th { text-align: left; font-size: .76rem; color: var(--muted); font-weight: 500; padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: var(--bg-soft); }
.table .actions { display: flex; gap: 6px; flex-wrap: wrap; }
.table .num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.row-flash { animation: flash 1.2s ease; }
@keyframes flash { from { background: var(--gold-soft); } to { background: transparent; } }

.service-row { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.service-row:last-child { border-bottom: 0; }
.service-row.inactive { opacity: .5; }
.chip-list { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-list .chip { cursor: default; }
.chip-list .chip button { background: none; border: 0; cursor: pointer; color: var(--muted); padding: 0 0 0 4px; }
.status-bar { display: flex; height: 10px; border-radius: 999px; overflow: hidden; background: var(--surface-2); margin: 10px 0; }
.status-bar span { height: 100%; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: .84rem; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.notice { border: 1px solid color-mix(in srgb, var(--warning) 30%, transparent); background: var(--warning-soft); border-radius: var(--r); padding: 14px 18px; margin-bottom: 22px; }

.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.media-item { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r-sm); overflow: hidden; background: var(--surface-2); }
.media-item img { width: 100%; height: 100%; object-fit: cover; }
.media-item .badge { position: absolute; left: 8px; top: 8px; background: #fff; color: #161412; }
.media-item .tools { position: absolute; inset: auto 0 0; display: flex; gap: 6px; justify-content: flex-end; padding: 8px; background: linear-gradient(transparent, rgba(12,9,7,.65)); }
.media-item .tools button { border: 0; border-radius: 999px; padding: 4px 10px; font-size: .76rem; font-weight: 500; cursor: pointer; background: rgba(255,255,255,.95); color: #161412; }
.media-item .tools button.del { color: #B42F25; }
.media-item.uploading { display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: .85rem; }

/* ---------- Modales ---------- */
dialog { border: 0; padding: 0; border-radius: var(--r-lg); background: var(--surface); color: var(--ink); width: calc(100% - 32px); max-width: 560px; max-height: calc(100dvh - 48px); box-shadow: var(--sh-lg); overflow: hidden; }
dialog.wide { max-width: 1100px; }
dialog.chat { max-width: 940px; }
dialog[open] { animation: pop .28s cubic-bezier(.2,.8,.2,1); display: flex; flex-direction: column; }
dialog::backdrop { background: rgba(12, 9, 7, .55); backdrop-filter: blur(4px); }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.985); } }
.dlg-body { padding: 34px; overflow-y: auto; overscroll-behavior: contain; }
.dlg-close { position: absolute; top: 14px; right: 14px; z-index: 5; width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--surface-2); cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 1rem; }
.dlg-close:hover { background: var(--line-strong); }
.dlg-title { font-size: 2rem; margin-bottom: 4px; padding-right: 40px; }

.role-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.role-pick label { position: relative; border: 1px solid var(--line-strong); border-radius: var(--r-sm); padding: 14px 16px; cursor: pointer; display: grid; gap: 2px; transition: border-color .2s, box-shadow .2s; }
.role-pick label:hover { border-color: var(--ink); }
.role-pick label:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.role-pick input { position: absolute; opacity: 0; pointer-events: none; }
.role-pick b { font-weight: 600; }
.role-pick small { color: var(--muted); font-size: .8rem; }
.demo-box { margin-top: 26px; padding: 16px; border-radius: var(--r); background: var(--bg-soft); border: 1px solid var(--line); font-size: .86rem; }
.demo-box .chip-list { margin-top: 10px; }
.demo-box .chip { cursor: pointer; }

/* Fiche prestataire */
.pv-head { display: flex; justify-content: space-between; gap: 20px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 22px; padding-right: 44px; }
.pv-head h2 { font-size: clamp(2.2rem, 4.2vw, 3rem); font-weight: 500; }
.gallery { display: grid; grid-template-columns: 3fr 2fr; grid-template-rows: 1fr 1fr; gap: 8px; height: 380px; border-radius: var(--r); overflow: hidden; margin-bottom: 32px; }
.gallery button { padding: 0; border: 0; cursor: zoom-in; overflow: hidden; background: var(--surface-2); position: relative; }
.gallery button:first-child { grid-row: span 2; }
.gallery[data-n="1"] { grid-template-columns: 1fr; }
.gallery[data-n="2"] button:nth-child(2) { grid-row: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.gallery button:hover img { transform: scale(1.04); }
.gallery .more { position: absolute; right: 12px; bottom: 12px; background: #fff; color: #161412; font-size: .82rem; font-weight: 500; padding: 6px 12px; border-radius: var(--r-xs); box-shadow: var(--sh-sm); }
.pv-layout { display: grid; grid-template-columns: 1fr 400px; gap: 40px; align-items: start; }
.pv-section { padding-bottom: 26px; margin-bottom: 26px; border-bottom: 1px solid var(--line); }
.pv-section:last-child { border-bottom: 0; }
.pv-section h3 { font-size: 1.6rem; margin-bottom: 14px; }
.formula { display: flex; justify-content: space-between; gap: 14px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r-sm); margin-bottom: 10px; cursor: pointer; transition: border-color .2s, box-shadow .2s; text-align: left; width: 100%; background: var(--surface); }
.formula:hover { border-color: var(--line-strong); box-shadow: var(--sh-xs); }
.formula[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.formula strong { font-weight: 600; }
.formula .price { font-size: 1rem; font-weight: 600; white-space: nowrap; text-align: right; font-variant-numeric: tabular-nums; }
.formula .price em { font-style: normal; font-weight: 400; color: var(--muted); font-size: .85rem; }
.review { padding: 14px 0; border-bottom: 1px solid var(--line); }
.review:last-child { border-bottom: 0; }

.book-panel { position: sticky; top: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; display: grid; gap: 16px; box-shadow: var(--sh); }
.book-panel h3 { font-size: 1.6rem; }
.opt { display: flex; align-items: center; gap: 10px; font-size: .9rem; padding: 6px 0; cursor: pointer; }
.opt input { accent-color: var(--ink); width: 17px; height: 17px; }
.book-panel .opt span:last-child { margin-left: auto; color: var(--muted); white-space: nowrap; } /* prix des options, à droite */
.cal { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px; background: var(--surface); }
.cal-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.cal-h strong { font-weight: 600; text-transform: capitalize; }
.cal-h button { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); background: transparent; cursor: pointer; }
.cal-h button:hover:not(:disabled) { border-color: var(--ink); }
.cal-h button:disabled { opacity: .3; cursor: default; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.cal-grid small { font-size: .7rem; color: var(--muted); font-weight: 500; padding: 4px 0; }
.cal-day { aspect-ratio: 1; border: 1px solid transparent; border-radius: 50%; background: transparent; cursor: pointer; font-size: .88rem; font-weight: 500; display: flex; align-items: center; justify-content: center; transition: all .15s; font-variant-numeric: tabular-nums; }
.cal-day:hover:not(:disabled) { border-color: var(--ink); }
.cal-day:disabled { color: color-mix(in srgb, var(--muted) 45%, transparent); font-weight: 400; cursor: not-allowed; text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--muted) 35%, transparent); }
.cal-day.today { color: var(--accent); }
.cal-day.wedding:not(.selected) { border-color: var(--gold); }
.cal-day.selected { background: var(--ink); color: var(--bg); }
.cal-loading { opacity: .5; pointer-events: none; }
.slots { display: flex; flex-wrap: wrap; gap: 6px; }
.slot { border: 1px solid var(--line-strong); background: var(--surface); border-radius: var(--r-xs); padding: .45rem .85rem; font-size: .86rem; font-weight: 500; cursor: pointer; }
.slot:hover:not(:disabled) { border-color: var(--ink); }
.slot[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.slot:disabled { opacity: .4; text-decoration: line-through; cursor: not-allowed; }
.summary { border-top: 1px solid var(--line); padding-top: 14px; display: grid; gap: 6px; font-size: .92rem; }
.summary div { display: flex; justify-content: space-between; gap: 10px; }
.summary .total { font-size: 1.2rem; font-weight: 600; font-variant-numeric: tabular-nums; margin-top: 4px; }
.summary .deposit { color: var(--accent); font-weight: 500; }
.summary .rest { color: var(--muted); font-size: .86rem; }
.summary .policy-line { font-size: .8rem; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 8px; margin-top: 4px; }
.policy-pick { border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; display: grid; gap: 10px; }
.policy-pick legend { padding: 0 6px; font-size: .88rem; font-weight: 500; }
.policy-pick label { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: baseline; cursor: pointer; }
.policy-pick label small { grid-column: 2; color: var(--muted); }
.policy-pick input { accent-color: var(--gold); }
.pay-hint { margin: 0; font-size: .85rem; color: var(--ink-2); background: var(--gold-soft); border-radius: var(--r-xs); padding: 8px 12px; }

.pro-offer { margin: 6px 0 18px; font-size: .95rem; opacity: .95; }
.pro-offer b { color: var(--gold); font-size: 1.1em; }
.pro-offer span { display: block; margin-top: 4px; font-size: .85rem; color: var(--gold); }

/* Suivi d’une réservation en étapes (Mon mariage) */
.track { list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); counter-reset: step; }
.track li { position: relative; text-align: center; font-size: .74rem; color: var(--muted); padding-top: 22px; }
.track li::before { content: ''; position: absolute; top: 4px; left: 50%; transform: translateX(-50%); width: 12px; height: 12px; border-radius: 50%;
  background: var(--surface); border: 2px solid var(--line); z-index: 1; transition: background .3s, border-color .3s; }
.track li::after { content: ''; position: absolute; top: 9px; left: -50%; width: 100%; height: 2px; background: var(--line); }
.track li:first-child::after { display: none; }
.track li.done::before { background: var(--gold); border-color: var(--gold); }
.track li.done::after, .track li.current::after { background: var(--gold); }
.track li.done { color: var(--ink); }
.track li.current { color: var(--accent); font-weight: 600; }
/* Étape en cours : le point « respire » (transform seulement, sans redessiner la page à chaque image) */
.track li.current::before { border-color: var(--accent); box-shadow: 0 0 0 4px var(--gold-soft); animation: track-pulse 1.8s ease-in-out infinite; }
@keyframes track-pulse { 50% { transform: translateX(-50%) scale(1.25); } }
@media (prefers-reduced-motion: reduce) { .track li.current::before { animation: none; } }
@media (max-width: 480px) { .track li { font-size: .66rem; } }

/* Abonnement Laqa Pro (espace Pro) */
.sub-offer { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.sub-offer p { margin: 6px 0 0; }
.sub-price { font-size: 1.05rem; }
.sub-price b { font-size: 1.25rem; color: var(--accent); }
@media (max-width: 640px) { .sub-offer { flex-direction: column; align-items: stretch; } }

/* Versements & Banque (espace Pro) */
.pill-ok { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 99px; font-size: .82rem; font-weight: 500;
  color: var(--success); background: var(--success-soft); }
.payout-alert { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 20px; border-radius: var(--r);
  border: 1px solid color-mix(in srgb, var(--gold) 45%, transparent); background: var(--gold-soft); }
.payout-alert p { margin: 6px 0 0; }
.payout-stats { margin-bottom: 14px; }
@media (max-width: 640px) { .payout-alert { flex-direction: column; align-items: stretch; } }

/* Page de confirmation du paiement (booking_success.php) */
.success-mark { width: 84px; height: 84px; margin: 0 auto 8px; display: grid; place-items: center; border-radius: 50%;
  background: var(--gold-soft); color: var(--gold); font-size: 2rem; }
.success-mark.is-ok { background: var(--success-soft); }
.success-mark.is-err { background: var(--danger-soft); color: var(--danger); }
.success-mark svg { width: 64px; height: 64px; fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.success-mark circle { stroke: var(--gold); stroke-dasharray: 152; stroke-dashoffset: 152; animation: draw .7s ease-out forwards; }
.success-mark path { stroke: var(--success); stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .4s .6s ease-out forwards; }
.success-mark.is-ok { animation: pop .5s .9s ease-out both; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { 50% { transform: scale(1.08); } }
@media (prefers-reduced-motion: reduce) { .success-mark *, .success-mark { animation: none !important; stroke-dashoffset: 0 !important; } }
.confetti { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 5; }
.confetti i { position: absolute; top: -14px; width: 8px; height: 14px; border-radius: 2px; opacity: 0; animation: confetti-fall 3s ease-in forwards; }
@keyframes confetti-fall { 0% { opacity: 1; transform: translateY(0) rotate(0); } 100% { opacity: 0; transform: translateY(105vh) rotate(540deg); } }
@media (prefers-reduced-motion: reduce) { .confetti { display: none; } }
.pay-recap { text-align: left; margin: 22px 0; border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; display: grid; gap: 8px; background: var(--surface); }
.pay-recap > div { display: flex; justify-content: space-between; gap: 12px; font-variant-numeric: tabular-nums; }
.pay-recap .pay-recap-head { display: grid; gap: 2px; padding-bottom: 10px; border-bottom: 1px solid var(--line); font-size: .9rem; color: var(--muted); }
.pay-recap .pay-recap-head strong { color: var(--ink); font-size: 1.05rem; }
.pay-recap .paid-line { color: var(--success); font-weight: 600; }
.pay-recap .rest-line { color: var(--accent); font-weight: 500; }

.lightbox { max-width: min(1100px, 96vw); background: #0D0A08; }
.lightbox img { max-height: 82dvh; width: 100%; object-fit: contain; }
.lightbox .nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: #161412; cursor: pointer; font-size: 1.3rem; }
.lightbox .prev { left: 12px; } .lightbox .next { right: 12px; }
.lightbox .dlg-close { background: rgba(255,255,255,.92); color: #161412; }

/* Messagerie */
.chat-layout { display: grid; grid-template-columns: 290px 1fr; height: min(660px, calc(100dvh - 48px)); }
.conv-list { border-right: 1px solid var(--line); overflow-y: auto; background: var(--bg-soft); }
.conv-list h2 { font-size: 1.7rem; padding: 24px 20px 14px; }
.conv { display: grid; gap: 2px; width: 100%; text-align: left; border: 0; background: transparent; padding: 12px 20px; cursor: pointer; border-left: 3px solid transparent; }
.conv:hover { background: var(--surface-2); }
.conv[aria-current="true"] { background: var(--surface); border-left-color: var(--ink); }
.conv b { font-weight: 600; display: flex; justify-content: space-between; gap: 8px; }
.conv small { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conv .dot { min-width: 18px; height: 18px; border-radius: 999px; background: var(--accent); color: #fff; font-size: .68rem; display: inline-flex; align-items: center; justify-content: center; padding: 0 5px; }
.thread { display: flex; flex-direction: column; min-width: 0; }
.thread-h { padding: 18px 64px 16px 22px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 12px; }
.thread-h h3 { font-size: 1.4rem; }
.thread-h .back { display: none; }
.messages { flex: 1; overflow-y: auto; padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.bubble { max-width: 76%; padding: 10px 14px; border-radius: 18px; font-size: .93rem; white-space: pre-wrap; word-wrap: break-word; }
.bubble time { display: block; font-size: .68rem; opacity: .6; margin-top: 4px; }
.bubble.mine { align-self: flex-end; background: var(--ink); color: var(--bg); border-bottom-right-radius: 5px; }
.bubble.theirs { align-self: flex-start; background: var(--surface-2); border-bottom-left-radius: 5px; }
.chat-form { display: flex; gap: 10px; padding: 14px; border-top: 1px solid var(--line); }
.chat-form textarea { flex: 1; resize: none; height: 46px; line-height: 1.4; border: 1px solid var(--line-strong); background: var(--surface); border-radius: var(--r-sm); padding: 11px 16px; outline: none; overflow-y: auto; scrollbar-width: none; }
.chat-form textarea::-webkit-scrollbar { display: none; }
.chat-form textarea:focus { border-color: var(--ink); }

.stars-input { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.stars-input input { position: absolute; opacity: 0; }
.stars-input label { font-size: 2rem; color: var(--line-strong); cursor: pointer; transition: color .15s; }
.stars-input input:checked ~ label, .stars-input label:hover, .stars-input label:hover ~ label { color: var(--gold); }
.stars-input input:focus-visible + label { outline: 2px solid var(--ink); border-radius: 4px; }

/* Toasts */
.toasts { position: fixed; z-index: 2000; right: 20px; bottom: 20px; display: grid; gap: 10px; width: min(380px, calc(100vw - 32px)); }
@media (max-width: 640px) { .toasts { right: 16px; bottom: 16px; } .toasts > .toast:not(:last-child) { display: none; } } /* téléphone : un seul message à la fois */
.toast { display: flex; align-items: flex-start; gap: 12px; background: #2C1E18; color: #F5F2EE; border-radius: var(--r-sm); padding: 14px 14px 14px 16px; box-shadow: var(--sh-lg); font-size: .92rem; animation: toastIn .35s cubic-bezier(.2,.8,.2,1); }
:root[data-theme="dark"] .toast { background: #F5F2EE; color: #161412; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .toast { background: #F5F2EE; color: #161412; } }
.toast .ico { width: 20px; height: 20px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: .72rem; font-weight: 700; flex: none; margin-top: 1px; background: var(--gold); color: #161412; }
.toast.success .ico { background: #3FB073; color: #fff; }
.toast.error .ico { background: #E5534B; color: #fff; }
.toast p { flex: 1; }
.toast button { background: none; border: 0; color: inherit; opacity: .6; cursor: pointer; font-size: .95rem; padding: 0 2px; }
.toast button:hover { opacity: 1; }
.toast.out { animation: toastOut .3s forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(16px); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(10px); } }

/* Pied de page */
footer { margin-top: auto; border-top: 1px solid var(--line); background: var(--bg-soft); padding: 60px 0 30px; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 36px; }
footer h3, footer h4 { font-size: 1.2rem; margin-bottom: 14px; }
footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: .9rem; }
footer ul a, footer ul button { color: var(--muted); background: none; border: 0; padding: 3px 0; cursor: pointer; text-align: left; display: inline-block; min-height: 24px; }
footer ul a:hover, footer ul button:hover { color: var(--ink); }
.foot-bottom { border-top: 1px solid var(--line); padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .85rem; color: var(--muted); }
.giant { font: italic 600 clamp(4rem, 17vw, 13rem)/.8 var(--serif); color: color-mix(in srgb, var(--ink) 6%, transparent); text-align: center; user-select: none; margin-top: 28px; }

/* ---------- Page de connexion ---------- */
.auth-page { min-height: 100dvh; }
.auth { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); min-height: 100dvh; }
.auth-side { display: flex; flex-direction: column; padding: 28px 48px; min-width: 0; }
.auth-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.auth-top-actions { display: flex; align-items: center; gap: 6px; }
.link-back { font-size: .9rem; font-weight: 500; color: var(--ink-2); padding: 8px 10px; border-radius: var(--r-xs); }
.link-back:hover { background: var(--surface-2); color: var(--ink); }
.auth-box { width: 100%; max-width: 440px; margin: auto; padding: 48px 0; }
.auth-box h1 { font-size: clamp(2.3rem, 4vw, 3rem); font-weight: 500; margin: 30px 0 10px; }
.auth-lead { color: var(--muted); margin-bottom: 26px; }
.auth-note { background: var(--gold-soft); border-radius: var(--r-sm); padding: 10px 14px; font-size: .88rem; margin: -10px 0 22px; }
/* Code à 6 chiffres (double authentification, code SMS) */
.otp { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; max-width: 340px; margin: 6px auto; }
.otp input { width: 100%; aspect-ratio: 5 / 6; text-align: center; font: 600 1.6rem/1 'Jost', sans-serif; border: 1.5px solid var(--line);
  border-radius: var(--r-sm); background: var(--surface); color: var(--ink); caret-color: var(--gold); transition: border-color .15s, box-shadow .15s; }
.otp input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }
.otp.shake { animation: otp-shake .35s; }
@keyframes otp-shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
@media (prefers-reduced-motion: reduce) { .otp.shake { animation: none; } }
.twofa-box { text-align: center; }
.twofa-box .twofa-icon { width: 64px; height: 64px; margin: 10px auto 14px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold); font-size: 1.7rem; }
.twofa-actions { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-top: 12px; font-size: .9rem; }
.twofa-trust { display: inline-flex; align-items: center; gap: 8px; margin: 14px 0 4px; font-size: .9rem; color: var(--muted); }
.auth-success { text-align: center; padding: 30px 0 0; }
.auth-success-mark { width: 74px; height: 74px; margin: 0 auto 22px; display: grid; place-items: center; border-radius: 50%;
  background: var(--gold-soft); color: var(--gold); font-size: 2rem; border: 1px solid var(--gold); }
.auth-success h2 { font-size: clamp(1.9rem, 3.4vw, 2.4rem); font-weight: 500; margin: 0 0 12px; line-height: 1.15; }
.auth-success p { margin: 0 0 14px; }
.auth-success .btn { margin-top: 18px; }
.auth-switch { text-align: center; margin-top: 22px; color: var(--muted); font-size: .92rem; }
.auth-foot { text-align: center; margin: 0; padding: 0; border: 0; background: none; }
.segmented { display: grid; grid-template-columns: 1fr 1fr; background: var(--surface-2); border-radius: var(--r-sm); padding: 4px; }
.segmented button { border: 0; background: transparent; padding: 10px 12px; border-radius: var(--r-xs); font-weight: 500; color: var(--muted); cursor: pointer; transition: all .2s; }
.segmented button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--sh-xs); }
.auth-visual { position: relative; overflow: hidden; margin: 12px; border-radius: var(--r-lg); background: #161412; }
.auth-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.auth-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12,9,7,0) 40%, rgba(12,9,7,.8)); }
.auth-quote { position: absolute; left: 44px; right: 44px; bottom: 44px; z-index: 1; color: #fff; }
.auth-quote p { font: italic 500 clamp(1.8rem, 2.8vw, 2.6rem)/1.15 var(--serif); max-width: 20ch; margin-bottom: 22px; }
.auth-quote ul { list-style: none; padding: 0; margin: 0; display: flex; gap: 10px; flex-wrap: wrap; }
.auth-quote li { font-size: .85rem; padding: 6px 12px; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; backdrop-filter: blur(6px); color: rgba(255,255,255,.9); }
.auth-quote li b { font-weight: 600; color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .pro-link { display: none; }
}
@media (max-width: 1000px) {
  .pv-layout { grid-template-columns: 1fr; }
  .book-panel { position: static; box-shadow: none; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .auth { grid-template-columns: 1fr; }
  .auth-visual { display: none; }
}
@media (max-width: 900px) {
  .search-box { grid-template-columns: 1fr 1fr; gap: 2px; }
  .search-field + .search-field::before { display: none; }
  .search-field { background: var(--bg-soft); }
  .search-box .btn { grid-column: 1 / -1; margin: 6px 0 0; padding: .95rem; }
  .main-nav { position: absolute; top: var(--header-h); left: 0; right: 0; flex-direction: column; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; box-shadow: var(--sh); }
  .main-nav:not(.open) { display: none; }
  .main-nav a, .main-nav button { padding: 13px 8px; text-align: left; border-radius: 0; border-bottom: 1px solid var(--line); }
  .burger { display: inline-flex; }
  .user-pill > div { display: none; }
  .user-pill { padding: 3px; }
  .chat-layout { grid-template-columns: 1fr; }
  .chat-layout .thread { display: none; }
  .chat-layout.show-thread .thread { display: flex; }
  .chat-layout.show-thread .conv-list { display: none; }
  .thread-h .back { display: inline-flex; }
}
@media (max-width: 640px) {
  :root { --header-h: 64px; }
  .wrap { padding: 0 16px; }
  .logo { font-size: 1.75rem; }
  .top-in { gap: 10px; }
  .nav-actions { gap: 2px; }
  .icon-btn { width: 38px; height: 38px; }
  .hero { min-height: 0; padding: 56px 0 44px; }
  .hero .lead { margin-bottom: 26px; font-size: 1rem; }
  .search-box { grid-template-columns: 1fr; padding: 6px; }
  .search-field { padding: 10px 14px; }
  section.block { padding: 60px 0; }
  .grid { grid-template-columns: 1fr; }
  .cats-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .grid-2, .role-pick { grid-template-columns: 1fr; }
  dialog, dialog.wide, dialog.chat { width: 100%; max-width: 100%; height: 100dvh; max-height: 100dvh; border-radius: 0; margin: 0; }
  .dlg-body { padding: 24px 16px 32px; }
  .chat-layout { height: 100dvh; }
  .gallery { height: 240px; }
  .booking { grid-template-columns: 56px 1fr; }
  .booking .side { grid-column: 1 / -1; text-align: left; justify-items: start; grid-template-columns: 1fr auto; align-items: center; width: 100%; }
  .booking .actions { grid-column: 1 / -1; justify-content: flex-start; }
  .countdown { grid-template-columns: 1fr; padding: 26px 22px; gap: 10px; }
  .panel { padding: 20px 16px; border-radius: var(--r); }
  .foot-grid { grid-template-columns: 1fr; }
  .pro-banner { padding: 52px 22px; }
  .filter-bar { position: static; }
  .toasts { right: 16px; bottom: 16px; }
  .table thead { display: none; }
  .table tr { display: grid; gap: 4px; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .table td { padding: 2px 0; border: 0; }
  .table td[data-label]::before { content: attr(data-label) " · "; color: var(--muted); font-size: .78rem; }
  .auth-side { padding: 18px 16px; }
  .auth-box { padding: 28px 0; }
  .auth-box h1 { margin-top: 24px; }
}

/* ---------- Vérification d’e-mail & mot de passe oublié ---------- */
.verify-banner { background: var(--gold-soft); border-bottom: 1px solid color-mix(in srgb, var(--gold) 35%, transparent); font-size: .9rem; }
.verify-banner .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
.verify-banner.pulse { animation: bannerPulse .5s ease 3; }
@keyframes bannerPulse { 50% { background: color-mix(in srgb, var(--gold) 45%, var(--bg)); } }
.toast-action { display: block; margin-top: 6px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.forgot-row { display: flex; justify-content: flex-end; margin-top: -8px; }
.forgot-row .link-btn { font-size: .86rem; font-weight: 500; }
.otp-input { font-size: 1.6rem !important; letter-spacing: .5em; text-align: center; font-variant-numeric: tabular-nums; padding: .7rem !important; }
.recover-done { text-align: center; display: grid; gap: 12px; justify-items: center; }
.simple-icon { width: 56px; height: 56px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 1.5rem; font-weight: 700; }
.simple-icon.ok { background: var(--success-soft); color: var(--success); }
.simple-icon.err { background: var(--danger-soft); color: var(--danger); }
.simple-page { background: var(--bg-soft); align-items: center; padding: 24px 16px 48px; }
.simple-top { width: 100%; max-width: 480px; padding: 8px 0 28px; }
.simple-card { width: 100%; max-width: 480px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh); padding: 40px 36px; display: grid; gap: 16px; }
.simple-card h1 { font-size: 2.1rem; font-weight: 500; }
@media (max-width: 640px) { .simple-card { padding: 28px 20px; } }

/* ---------- Notifications ---------- */
.notif-wrap { position: relative; }
.notif-panel {
  position: absolute; right: -8px; top: calc(100% + 10px); z-index: 80; width: 390px; max-width: calc(100vw - 24px);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh-lg);
  display: flex; flex-direction: column; max-height: min(560px, calc(100dvh - var(--header-h) - 24px)); overflow: hidden;
  animation: pop .22s cubic-bezier(.2,.8,.2,1);
}
.notif-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 18px 12px; border-bottom: 1px solid var(--line); }
.notif-head h3 { font-size: 1.45rem; }
.notif-head .link-btn { font-size: .84rem; font-weight: 500; }
.notif-list { overflow-y: auto; overscroll-behavior: contain; padding: 6px; }
.notif-item {
  display: grid; grid-template-columns: 36px 1fr auto; gap: 12px; align-items: start; width: 100%; text-align: left;
  border: 0; background: transparent; border-radius: var(--r-sm); padding: 12px; cursor: pointer; transition: background .15s;
}
.notif-item:hover { background: var(--surface-2); }
.notif-item.unread { background: color-mix(in srgb, var(--gold-soft) 70%, var(--surface)); }
.notif-item.unread:hover { background: var(--gold-soft); }
.notif-ico { width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: .95rem; font-weight: 700; }
.notif-ico.msg { background: var(--info-soft); color: var(--info); }
.notif-ico.req { background: var(--gold-soft); color: color-mix(in srgb, var(--gold) 75%, var(--ink)); }
.notif-ico.ok { background: var(--success-soft); color: var(--success); }
.notif-ico.ko { background: var(--danger-soft); color: var(--danger); }
.notif-body { display: grid; gap: 2px; min-width: 0; font-size: .88rem; color: var(--ink-2); }
.notif-body strong { font-weight: 600; color: var(--ink); font-size: .92rem; }
.notif-body span { overflow-wrap: anywhere; }
.notif-body time { font-size: .76rem; color: var(--muted); margin-top: 2px; }
.notif-item:not(.unread) .notif-body strong { font-weight: 500; }
.notif-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); margin-top: 6px; }
.notif-empty { text-align: center; color: var(--muted); font-size: .9rem; padding: 36px 20px; }
#notifCount { background: var(--accent); }
.toast-title { display: block; font-weight: 600; margin-bottom: 2px; }
.toast button.toast-action { opacity: 1; padding: 0; margin-top: 6px; font: inherit; font-weight: 600; color: inherit; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 640px) {
  .notif-panel { position: fixed; left: 8px; right: 8px; top: calc(var(--header-h) + 6px); width: auto; max-width: none; }
}

/* ---------- Assistant Laqa (widget flottant) ---------- */
.has-assistant .toasts { bottom: 96px; }
.ast { position: fixed; right: 22px; bottom: 22px; z-index: 65; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; pointer-events: none; }
.ast > * { pointer-events: auto; }
.ast.ast-away:not(.open) > * { opacity: 0; transform: scale(.6); pointer-events: none; transition: opacity .2s, transform .2s; }
.ast-fab {
  width: 60px; height: 60px; border-radius: 50%; border: 0; cursor: pointer; position: relative;
  background: radial-gradient(circle at 30% 25%, #4A3125, #2C1E18 70%); color: #F0D9A0; font-size: 1.5rem;
  box-shadow: 0 10px 30px rgba(44, 30, 24, .35), inset 0 0 0 2px rgba(197, 155, 39, .55); transition: transform .2s ease, box-shadow .2s;
}
.ast-fab:hover { transform: translateY(-2px) scale(1.04); box-shadow: 0 14px 34px rgba(44, 30, 24, .42), inset 0 0 0 2px #C59B27; }
.ast-fab-close { display: none; font-size: 1.15rem; color: #FAF7F2; }
.ast.open .ast-fab-open { display: none; }
.ast.open .ast-fab-close { display: inline; }
.ast-hint { display: flex; align-items: center; gap: 2px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--sh); padding: 4px 4px 4px 6px; animation: pop .3s ease; }
.ast-hint-text { border: 0; background: none; font-weight: 600; font-size: .9rem; cursor: pointer; padding: 6px 8px; color: var(--ink); }
.ast-hint-close { border: 0; background: var(--surface-2); width: 26px; height: 26px; border-radius: 50%; cursor: pointer; font-size: .75rem; color: var(--muted); }
.ast-panel {
  width: 380px; height: min(600px, calc(100dvh - 120px)); display: flex; flex-direction: column; overflow: hidden;
  background: var(--bg); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--sh-lg); animation: pop .25s cubic-bezier(.2,.8,.2,1);
}
.ast-head { display: flex; align-items: center; gap: 10px; padding: 14px 14px 14px 16px; background: #2C1E18; color: #FAF7F2; }
.ast-avatar { width: 38px; height: 38px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #FAF7F2; color: #2C1E18; font: italic 600 1.35rem var(--serif); box-shadow: inset 0 0 0 2px #C59B27; flex: none; }
.ast-id { flex: 1; min-width: 0; display: grid; }
.ast-id strong { font: 600 1.25rem/1.1 var(--serif); color: #fff; }
.ast-id small { font-size: .76rem; color: rgba(250, 247, 242, .75); display: flex; align-items: center; gap: 6px; }
.ast-online { width: 8px; height: 8px; border-radius: 50%; background: #3FB073; box-shadow: 0 0 0 3px rgba(63, 176, 115, .25); }
.ast-icon { width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .1); color: #FAF7F2; cursor: pointer; font-size: .95rem; }
.ast-icon:hover { background: rgba(255, 255, 255, .2); }
.ast-log { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 18px 14px 8px; display: flex; flex-direction: column; gap: 10px; }
.ast-msg { max-width: 86%; font-size: .9rem; line-height: 1.5; animation: astIn .25s ease; }
.ast-msg p { margin: 0; padding: 10px 13px; border-radius: 16px; overflow-wrap: anywhere; }
.ast-msg.bot { align-self: flex-start; }
.ast-msg.bot p { background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 5px; color: var(--ink); }
.ast-msg.me { align-self: flex-end; }
.ast-msg.me p { background: #9A5B42; color: #FFFFFF; border-bottom-right-radius: 5px; }
.ast-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.ast-link { border: 1px solid color-mix(in srgb, var(--gold) 55%, transparent); background: var(--gold-soft); color: var(--ink); border-radius: 999px; padding: 5px 11px; font-size: .8rem; font-weight: 600; cursor: pointer; }
.ast-link:hover { border-color: var(--gold); }
.ast-typing { display: flex; gap: 4px; padding: 13px 15px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; border-bottom-left-radius: 5px; }
.ast-typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: astDot 1.1s infinite ease-in-out; }
.ast-typing span:nth-child(2) { animation-delay: .15s; } .ast-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes astDot { 0%, 60%, 100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
@keyframes astIn { from { opacity: 0; transform: translateY(6px); } }
.ast-pills { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 14px 10px; }
.ast-pill { border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 6px 11px; font-size: .8rem; font-weight: 500; cursor: pointer; transition: all .15s; }
.ast-pill:hover { border-color: #9A5B42; color: #9A5B42; }
.ast-form { display: flex; gap: 8px; padding: 10px 12px 12px; border-top: 1px solid var(--line); background: var(--surface); }
.ast-form input { flex: 1; min-width: 0; border: 1px solid var(--line-strong); background: var(--bg); color: var(--ink); border-radius: 999px; padding: 10px 15px; outline: none; font-size: .9rem; }
.ast-form input:focus { border-color: #9A5B42; }
.ast-send { width: 42px; height: 42px; flex: none; border: 0; border-radius: 50%; background: #2C1E18; color: #F0D9A0; cursor: pointer; font-size: .95rem; }
.ast-email { display: grid; gap: 8px; padding: 14px 14px 16px; border-top: 1px solid var(--line); background: var(--gold-soft); }
.ast-email label { font-weight: 600; font-size: .86rem; }
.ast-email-row { display: flex; gap: 8px; }
.ast-email input { flex: 1; min-width: 0; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); border-radius: var(--r-sm); padding: 10px 12px; outline: none; }
.ast-email input:focus { border-color: #9A5B42; box-shadow: 0 0 0 3px rgba(154, 91, 66, .15); }
.ast-email small { color: var(--muted); font-size: .78rem; }
@media (max-width: 640px) {
  .ast { right: 14px; bottom: 14px; }
  .ast-fab { width: 54px; height: 54px; }
  .ast.open .ast-fab { display: none; }
  .ast-panel { position: fixed; inset: 0; width: auto; height: 100dvh; border-radius: 0; border: 0; }
  .has-assistant .toasts { bottom: 82px; }
}
@media (prefers-reduced-motion: reduce) { .ast-typing span, .ast-msg, .ast-panel { animation: none; } }

/* Demandes d’assistance (console d’administration) */
.count-badge.static { position: static; display: inline-flex; vertical-align: middle; margin-left: 6px; border: 0; }
.count-badge.static:empty { display: none; }
.ticket-list { display: grid; gap: 10px; }
.ticket { border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); }
.ticket summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 16px; cursor: pointer; list-style: none; }
.ticket summary::-webkit-details-marker { display: none; }
.ticket-main { display: grid; gap: 2px; min-width: 0; flex: 1; }
.ticket-main strong { overflow-wrap: anywhere; }
.ticket-log { border-top: 1px solid var(--line); padding: 12px 16px; display: grid; gap: 6px; font-size: .88rem; max-height: 320px; overflow-y: auto; background: var(--bg-soft); }
.ticket-log p { margin: 0; }
.ticket-log b { display: inline-block; min-width: 88px; color: var(--muted); font-weight: 500; }
.ticket-log .from-user b { color: var(--accent); font-weight: 600; }

/* Devis reçu (espace mariés) */
.quote-box { border: 1px solid color-mix(in srgb, var(--gold) 45%, transparent); background: var(--gold-soft); border-radius: var(--r-sm); padding: 14px 16px; display: grid; gap: 8px; }
.quote-box > div:first-child { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: baseline; }
.quote-box p { white-space: pre-wrap; font-size: .9rem; color: var(--ink-2); }
.quote-box .actions { justify-content: flex-start; }

/* Horaires d’ouverture & options de formule (espace Pro) */
.hours-grid { display: grid; gap: 8px; max-width: 520px; }
.hours-row { display: grid; grid-template-columns: 150px 1fr auto 1fr; gap: 10px; align-items: center; }
.hours-row .input { padding: .5rem .7rem; }
.hours-row.closed .input { opacity: .45; }
.opt-rows { display: grid; gap: 8px; }
.opt-row { display: grid; grid-template-columns: 1fr 110px 38px; gap: 8px; align-items: center; }
.opt-row .input { padding: .55rem .75rem; }
@media (max-width: 640px) { .hours-row { grid-template-columns: 1fr 1fr auto 1fr; } .hours-row .opt { grid-column: 1 / -1; } }
.hours-row .opt span:last-child { margin-left: 0; color: var(--ink); font-weight: 500; }

/* Mon compte */
.account { max-width: 860px; }
.danger-zone { border-color: color-mix(in srgb, var(--danger) 35%, var(--line)); }
.danger-zone h2 { color: var(--danger); }

/* Pages légales */
.legal { max-width: 860px; padding-top: 32px; padding-bottom: 80px; }
.legal-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.legal-nav a { padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: .88rem; font-weight: 500; }
.legal-nav a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.legal-draft { background: var(--warning-soft); border: 1px solid color-mix(in srgb, var(--warning) 35%, transparent); border-radius: var(--r-sm); padding: 12px 16px; margin-bottom: 22px; font-size: .9rem; }
.legal-doc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 36px 40px; }
.legal-doc h1 { font-size: clamp(2rem, 4vw, 2.7rem); font-weight: 500; margin-bottom: 4px; }
.legal-doc h2 { font-size: 1.45rem; margin: 28px 0 8px; }
.legal-doc p, .legal-doc li { line-height: 1.7; color: var(--ink-2); }
.legal-doc ul { padding-left: 20px; margin: 8px 0; display: grid; gap: 4px; }
.legal-doc a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
mark.todo { background: var(--gold-soft); color: var(--ink); padding: 0 4px; border-radius: 4px; border-bottom: 2px solid var(--gold); }
@media (max-width: 640px) { .legal-doc { padding: 24px 18px; } }
.legal-consent { font-size: .82rem; color: var(--muted); text-align: center; }
.legal-consent a { color: var(--ink); text-decoration: underline; }
/* Pages de référencement (fiches et annuaire générés par le serveur) */
.seo-page { padding-top: 28px; padding-bottom: 80px; }
.seo-page h1 { font-size: clamp(2.2rem, 4.4vw, 3.1rem); font-weight: 500; }
.seo-page .pv-section h2 { font-size: 1.6rem; margin-bottom: 14px; }
.seo-page .gallery > a { display: block; overflow: hidden; background: var(--surface-2); }
.seo-page .gallery > a:first-child { grid-row: span 2; }
.seo-page .gallery[data-n="2"] > a:nth-child(2) { grid-row: span 2; }
.seo-page .gallery img { width: 100%; height: 100%; object-fit: cover; }
.crumbs { font-size: .86rem; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }
.card-link { display: contents; color: inherit; }
.seo-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line); }
.seo-links h2 { font-size: 1.4rem; margin-bottom: 10px; }
.seo-links ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.seo-links a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 900px) { .seo-nav { display: none; } }
