/* Tikoun — thème 2027 */
:root {
  color-scheme: light;
  --bg: #f6f7fb; --bg-glow-1: rgba(255, 107, 44, .10); --bg-glow-2: rgba(15, 27, 61, .07);
  --surface: #ffffff; --surface-2: #eef1f7; --surface-3: #e3e7f0; --glass: rgba(255,255,255,.78);
  --ink: #0f1b3d; --ink-2: #4a5470; --ink-3: #6b7591; --line: rgba(15,27,61,.09); --line-2: rgba(15,27,61,.17);
  --brand: #ff6b2c; --brand-2: #f25615; --brand-ink: #0f1b3d; --brand-soft: #ffede3; --brand-text: #c2410c;
  --navy: #0f1b3d; --navy-2: #1d2d5c; --logo-pin: #ff6b2c; --logo-t: #ffffff;
  --lime: #ff6b2c; --lime-ink: #0f1b3d;
  --ok: #0b8a5f; --ok-soft: #dcf5ea; --warn: #a86500; --warn-soft: #fdf0d5; --err: #c9302c; --err-soft: #fde4e2;
  --star: #f5a623;
  --s1: #2f55c4; --s2: #ff6b2c; --s3: #1baf7a;
  --radius: 22px; --radius-sm: 14px; --radius-xs: 10px;
  --shadow: 0 1px 2px rgba(15,27,61,.05), 0 8px 28px -12px rgba(15,27,61,.16);
  --shadow-lg: 0 30px 80px -30px rgba(15, 27, 61, .35);
  --font: 'Rubik', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Sora', 'Rubik', ui-sans-serif, system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0a1128; --bg-glow-1: rgba(255, 107, 44, .12); --bg-glow-2: rgba(60, 90, 180, .14);
    --surface: #111b36; --surface-2: #18244a; --surface-3: #22305c; --glass: rgba(10,17,40,.78);
    --ink: #f2f4fa; --ink-2: #c9d1e6; --ink-3: #8f9aba; --line: rgba(201,209,230,.10); --line-2: rgba(201,209,230,.18);
    --brand: #ff7a3d; --brand-2: #ff9360; --brand-ink: #0f1b3d; --brand-soft: #3a1f14; --brand-text: #ff9a66;
    --navy: #18244a; --navy-2: #22305c; --logo-pin: #ff6b2c; --logo-t: #ffffff;
    --ok: #3ccf96; --ok-soft: #0f2e22; --warn: #f0b44c; --warn-soft: #33260c; --err: #ff7a73; --err-soft: #3a1614;
    --s1: #6f8fff; --s2: #ff7a3d; --s3: #2bc28a;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 30px -12px rgba(0,0,0,.6);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0a1128; --bg-glow-1: rgba(255, 107, 44, .12); --bg-glow-2: rgba(60, 90, 180, .14);
  --surface: #111b36; --surface-2: #18244a; --surface-3: #22305c; --glass: rgba(10,17,40,.78);
  --ink: #f2f4fa; --ink-2: #c9d1e6; --ink-3: #8f9aba; --line: rgba(201,209,230,.10); --line-2: rgba(201,209,230,.18);
  --brand: #ff7a3d; --brand-2: #ff9360; --brand-ink: #0f1b3d; --brand-soft: #3a1f14; --brand-text: #ff9a66;
  --navy: #18244a; --navy-2: #22305c; --logo-pin: #ff6b2c; --logo-t: #ffffff;
  --ok: #3ccf96; --ok-soft: #0f2e22; --warn: #f0b44c; --warn-soft: #33260c; --err: #ff7a73; --err-soft: #3a1614;
  --s1: #6f8fff; --s2: #ff7a3d; --s3: #2bc28a;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 30px -12px rgba(0,0,0,.6);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: hidden; overflow-x: clip; overscroll-behavior-x: none; }
body { margin: 0; font-family: var(--font); background: var(--bg); color: var(--ink); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: hidden; overflow-x: clip; overscroll-behavior-x: none; position: relative; }
h1, h2, .logo, .hero-stats b, .kpi b, .plan .p { font-family: var(--font-display); }
body::before { content: ''; position: fixed; inset: -20vh 0 auto auto; width: 70vw; height: 70vh; background: radial-gradient(closest-side, var(--bg-glow-1), transparent); pointer-events: none; z-index: -1; }
body::after { content: ''; position: fixed; inset: auto auto -25vh 0; width: 60vw; height: 60vh; background: radial-gradient(closest-side, var(--bg-glow-2), transparent); pointer-events: none; z-index: -1; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; letter-spacing: -0.02em; line-height: 1.12; }
h1 { font-size: clamp(34px, 5.6vw, 66px); font-weight: 700; letter-spacing: -0.04em; }
h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 700; letter-spacing: -0.03em; }
h3 { font-size: 18px; font-weight: 600; }
p { margin: 0; }
.muted { color: var(--ink-2); } .faint { color: var(--ink-3); }
.small { font-size: 13px; } .tiny { font-size: 12px; }
.icon { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon.lg { width: 24px; height: 24px; } .icon.sm { width: 15px; height: 15px; }
[dir="rtl"] .flip { transform: scaleX(-1); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.wrap { width: min(1240px, 100% - 32px); margin-inline: auto; }
.stack > * + * { margin-top: 12px; }
.row { display: flex; align-items: center; gap: 10px; }
.row.wrap-ok { flex-wrap: wrap; }
.between { justify-content: space-between; }
.between.wrap-ok > .row { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 8px; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; background: var(--brand); color: var(--brand-ink); padding: 10px 14px; border-radius: 10px; z-index: 100; }
.skip:focus { top: 12px; }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); cursor: pointer; font-weight: 550; font-size: 14px; white-space: nowrap; transition: transform .15s, background .15s, border-color .15s, box-shadow .15s; }
.btn:hover { border-color: var(--ink-3); }
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn.primary:hover { box-shadow: 0 8px 24px -8px rgba(15,27,61,.45); }
.btn.brand { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); font-weight: 600; }
.btn.brand:hover { background: var(--brand-2); border-color: var(--brand-2); }
.btn.lime { background: var(--lime); color: var(--lime-ink); border-color: transparent; }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.ghost:hover { background: var(--surface-2); }
.btn.soft { background: var(--surface-2); border-color: transparent; }
.btn.danger { color: var(--err); }
.btn.sm { height: 34px; padding: 0 13px; font-size: 13px; }
.btn.lg { height: 52px; padding: 0 24px; font-size: 15px; }
.btn.icon-only { width: 42px; padding: 0; }
.btn.sm.icon-only { width: 34px; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn.block { width: 100%; }

.chip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 13px; cursor: pointer; white-space: nowrap; }
.chip:hover { border-color: var(--line-2); }
.chip.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 560; background: var(--surface-2); color: var(--ink-2); white-space: nowrap; }
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.err { background: var(--err-soft); color: var(--err); }
.badge.brand { background: var(--brand-soft); color: var(--brand-text); }
.badge .icon { width: 13px; height: 13px; }

/* ---------- En-tête ---------- */
.hdr { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40; backdrop-filter: saturate(1.6) blur(18px); -webkit-backdrop-filter: saturate(1.6) blur(18px); background: var(--glass); border-bottom: 1px solid var(--line); }
.hdr-in { height: 68px; display: flex; align-items: center; gap: 14px; }
.logo { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 23px; letter-spacing: -0.05em; color: var(--ink); line-height: 1; }
.logo-mark { width: 32px; height: 32px; flex: none; display: block; }
.logo-mark .pin { fill: var(--logo-pin); } .logo-mark .t { stroke: var(--logo-t); }
.logo.on-dark { color: #fff; } .logo.on-dark .pin { fill: #ff6b2c; } .logo.on-dark .t { stroke: #fff; }
.logo small { font-family: var(--font); font-size: 11px; font-weight: 500; color: var(--ink-3); letter-spacing: .01em; display: block; margin-top: 3px; }
.nav { display: flex; gap: 2px; margin-inline-start: 10px; }
.nav a { padding: 8px 13px; border-radius: 999px; color: var(--ink-2); font-weight: 520; font-size: 14px; }
.nav a:hover, .nav a.on { background: var(--surface-2); color: var(--ink); }
.hdr-search { flex: 1; max-width: 380px; margin-inline-start: auto; }
.hdr-right { display: flex; align-items: center; gap: 6px; margin-inline-start: auto; }
.hdr-search + .hdr-right { margin-inline-start: 0; }
.lang-sel { height: 38px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); padding: 0 10px; font-size: 13px; font-weight: 600; cursor: pointer; }
.avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 650; color: #fff; font-size: 14px; flex: none; letter-spacing: 0; }
.avatar.lg { width: 96px; height: 96px; font-size: 34px; border-radius: 30px; }
.avatar.md { width: 52px; height: 52px; font-size: 18px; border-radius: 16px; }
.menu-btn { display: none; }
.menu-btn { position: relative; }
.menu-btn.has-dot::after { content: ''; position: absolute; top: 7px; inset-inline-end: 7px; width: 9px; height: 9px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 2px var(--bg); }
/* ---------- Aide & litiges (messagerie) ---------- */
.chat { overflow: hidden; margin-top: 14px; padding: 0; }
.msgs { display: flex; flex-direction: column; gap: 10px; padding: 18px 16px; max-height: min(60vh, 560px); overflow-y: auto; background: var(--surface-2); }
.msg { max-width: min(560px, 86%); padding: 10px 14px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); align-self: flex-start; border-end-start-radius: 6px; }
.msg.mine { align-self: flex-end; background: var(--brand-soft); border-color: transparent; border-end-start-radius: 18px; border-end-end-radius: 6px; }
.msg.staff:not(.mine) { border-color: var(--brand); }
.msg-h { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; font-size: 13px; }
.msg-h .logo-mark { width: 18px; height: 18px; }
.msg-h .faint { margin-inline-start: auto; padding-inline-start: 10px; }
.msg p { white-space: pre-line; overflow-wrap: anywhere; }
.reply-f { display: flex; gap: 10px; align-items: flex-end; padding: 12px; border-top: 1px solid var(--line); background: var(--surface); }
.reply-f textarea { min-height: 52px; max-height: 200px; flex: 1; resize: vertical; }
.thread { display: block; transition: border-color .15s; } .thread:hover { border-color: var(--line-2); }
.thread.unread { border-color: var(--brand); }
.req-sum { margin-bottom: 4px; }
.tbl tr.unread td { background: var(--brand-soft); }
@media (max-width: 560px) { .reply-f { flex-direction: column; align-items: stretch; } .msg { max-width: 92%; } }
.drawer { position: fixed; inset: 68px 0 auto 0; background: var(--surface); border-bottom: 1px solid var(--line); padding: 12px 16px 18px; z-index: 39; display: none; box-shadow: var(--shadow); }
.drawer.open { display: block; }
.drawer a { display: flex; gap: 10px; align-items: center; padding: 12px 8px; border-radius: 12px; font-weight: 550; }
.drawer a:hover { background: var(--surface-2); }
.drawer-theme { display: flex; gap: 10px; align-items: center; width: 100%; padding: 12px 8px; margin-top: 6px; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: none; font-weight: 550; cursor: pointer; text-align: start; }
.drawer-theme span { flex: 1; }
.switch { position: relative; width: 44px; height: 26px; border-radius: 999px; background: var(--surface-3); flex: none; transition: background .2s; }
.switch::after { content: ''; position: absolute; top: 3px; inset-inline-start: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: inset-inline-start .2s; }
.switch.on { background: var(--brand); } .switch.on::after { inset-inline-start: 21px; }

/* ---------- Recherche ---------- */
.search { position: relative; }
.search-box { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 999px; padding: 0 8px 0 16px; height: 44px; transition: box-shadow .15s, border-color .15s; }
[dir="rtl"] .search-box { padding: 0 16px 0 8px; }
.search-box:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.search-box input { border: 0; outline: 0; background: transparent; flex: 1; min-width: 0; height: 100%; font-size: 15px; }
.search.xl .search-box { height: 66px; padding-inline: 22px 8px; box-shadow: var(--shadow-lg); border-color: var(--line); }
.search.xl .search-box input { font-size: 17px; }
.search.xl select { border: 0; background: var(--surface-2); height: 50px; border-radius: 999px; padding: 0 14px; font-weight: 550; max-width: 150px; }
/* ---------- Choix de ville (liste + recherche) ---------- */
.cp { position: relative; }
.cp .cp-ic { position: absolute; inset-inline-start: 13px; top: 50%; transform: translateY(-50%); color: var(--ink-3); pointer-events: none; display: flex; }
.cp .input.cp-in { padding-inline-start: 38px; }
.cp-list { position: absolute; inset-inline: 0; top: calc(100% + 6px); min-width: 240px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); padding: 6px; z-index: 60; max-height: 320px; overflow: auto; display: none; }
.cp-list.open { display: block; }
.cp-opt { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 0; background: none; border-radius: 10px; cursor: pointer; text-align: start; font-size: 14px; color: var(--ink); }
.cp-opt .icon { color: var(--ink-3); }
.cp-opt:hover, .cp-opt.act { background: var(--surface-2); }
.cp-opt.act .icon, .cp-opt:hover .icon { color: var(--brand-text); }
.cp-list .sg-h { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); padding: 8px 10px 4px; font-weight: 650; display: flex; align-items: center; gap: 6px; }
.cp-list .cp-hint { text-transform: none; letter-spacing: 0; font-weight: 500; font-size: 12px; border-top: 1px solid var(--line); margin-top: 4px; padding-top: 10px; }
.cp-inline { flex: none; }
.cp-inline .cp-in { border: 0; background: var(--surface-2); height: 50px; border-radius: 999px; padding: 0 16px; font-weight: 550; width: 160px; outline: none; }
.cp-inline .cp-in::placeholder { color: var(--ink); opacity: 1; }
.cp-inline .cp-in:focus { box-shadow: 0 0 0 3px var(--brand-soft); }
.cp-inline .cp-list { inset-inline: auto 0; width: 280px; }
.zones .zones-extra { margin-top: 8px; }
.zones .zones-extra:empty { display: none; }
.zones .cp { margin-top: 10px; max-width: 360px; }
.chip.zone-x { background: var(--brand-soft); border-color: transparent; color: var(--ink); font-weight: 550; }
.zone-x button { border: 0; background: none; padding: 0; margin-inline-start: 2px; display: flex; cursor: pointer; color: var(--ink-3); }
.zone-x button:hover { color: var(--err); }
.sugg { position: absolute; inset-inline: 0; top: calc(100% + 8px); background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg); padding: 8px; z-index: 30; max-height: 420px; overflow: auto; display: none; }
.sugg.open { display: block; }
.sugg a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; }
.sugg a:hover, .sugg a.act { background: var(--surface-2); }
.sugg .sg-h { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); padding: 8px 12px 4px; font-weight: 650; }
.sg-ic { width: 34px; height: 34px; border-radius: 10px; background: var(--brand-soft); color: var(--brand-text); display: grid; place-items: center; flex: none; }

/* ---------- Cartes & sections ---------- */
main { min-height: 70vh; }
.section { padding: 56px 0; }
.section-h { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.eyebrow { font-size: 12px; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; color: var(--brand-text); margin-bottom: 10px; display: inline-flex; gap: 8px; align-items: center; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card.pad { padding: 22px; }
.card.flat { box-shadow: none; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ---------- Accueil ---------- */
.hero { padding: 64px 0 40px; position: relative; }
.hero h1 .grad { background: linear-gradient(100deg, var(--brand-text) 0%, var(--brand) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { font-size: clamp(16px, 1.6vw, 19px); color: var(--ink-2); max-width: 620px; margin: 20px 0 30px; }
.hero-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 40px; align-items: center; }
.hero .search { max-width: 720px; }
.pop { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; align-items: center; }
.hero-card { list-style: none; margin: 0; border-radius: 30px; padding: 10px 22px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); position: relative; }
.hero-card .float { position: absolute; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 10px 14px; box-shadow: var(--shadow); font-size: 13px; display: flex; gap: 8px; align-items: center; }
.hero-stats { display: flex; gap: 32px; margin-top: 34px; flex-wrap: wrap; }
.hero-stats b { font-size: 26px; letter-spacing: -0.03em; display: block; }
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.tile { position: relative; overflow: hidden; border-radius: var(--radius); padding: 20px; background: var(--surface); border: 1px solid var(--line); min-height: 150px; display: flex; flex-direction: column; justify-content: space-between; transition: transform .2s, box-shadow .2s, border-color .2s; }
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--line-2); }
.tile .t-ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-text); }
.tile h3 { margin-top: 16px; }
.tile .count { font-size: 12px; color: var(--ink-3); margin-top: 4px; }
.tile.big { grid-column: span 2; grid-row: span 2; background: radial-gradient(120% 90% at 100% 0%, rgba(255,107,44,.35), transparent 55%), linear-gradient(150deg, #0f1b3d, #1d2d5c); color: #fff; border: 0; }
.tile.big .t-ic { background: rgba(255,255,255,.18); color: #fff; }
.tile.big .count { color: rgba(255,255,255,.75); }
.tile.big h3 { font-size: 28px; }
.tile.big .subs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.tile.big .subs span { background: rgba(255,255,255,.16); padding: 5px 10px; border-radius: 999px; font-size: 12.5px; }
.tile.lime { background: var(--lime); color: var(--lime-ink); border: 0; }
.tile.lime .t-ic { background: rgba(0,0,0,.08); color: var(--lime-ink); }
.tile.lime .count { color: rgba(15,27,61,.72); }
.hero-card li { display: flex; align-items: center; gap: 12px; padding: 14px 4px; border-bottom: 1px solid var(--line); }
.hero-card li:last-child { border-bottom: 0; }
.hero-card .badge { width: 40px; height: 40px; justify-content: center; border-radius: 12px; flex: none; }
.tile.more { background: var(--surface-2); border-style: dashed; }
.tile .arrow { position: absolute; inset-inline-end: 18px; top: 18px; opacity: .5; }
.steps { counter-reset: s; }
.step { padding: 26px; }
.step .num { width: 40px; height: 40px; border-radius: 12px; background: var(--ink); color: var(--bg); display: grid; place-items: center; font-weight: 700; margin-bottom: 18px; }
.trust { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.trust .card { padding: 26px; }
.trust .ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--ok-soft); color: var(--ok); margin-bottom: 16px; }
.cta-pro { border-radius: 32px; padding: 44px; background: var(--ink); color: var(--bg); display: grid; grid-template-columns: 1.2fr .8fr; gap: 30px; align-items: center; position: relative; overflow: hidden; }
.cta-pro::after { content: ''; position: absolute; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255,107,44,.40), transparent); inset-inline-end: -120px; top: -140px; }
.cta-pro .muted { color: color-mix(in srgb, var(--bg) 70%, transparent); }
.cta-pro ul { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.cta-pro li { display: flex; gap: 10px; align-items: center; }
.cta-pro li .icon { color: var(--lime); }

/* ---------- Liste de pros ---------- */
.page-h { padding: 36px 0 18px; }
.crumbs { display: flex; gap: 6px; align-items: center; font-size: 13px; color: var(--ink-3); margin-bottom: 14px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--ink); }
.layout-filter { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 24px; align-items: start; }
.filters { position: sticky; top: 88px; padding: 20px; }
.filters h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); margin: 18px 0 10px; }
.filters h4:first-child { margin-top: 0; }
.check { display: flex; align-items: center; gap: 10px; padding: 6px 0; cursor: pointer; font-size: 14px; }
.check input { width: 18px; height: 18px; accent-color: var(--brand); }
.pro-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 18px; padding: 20px; align-items: start; transition: border-color .15s, box-shadow .2s; }
.pro-card:hover { border-color: var(--line-2); box-shadow: var(--shadow-lg); }
.pro-card h3 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pro-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 6px; font-size: 13.5px; color: var(--ink-2); }
.pro-meta span { display: inline-flex; gap: 5px; align-items: center; }
.pro-card .side { text-align: end; display: flex; flex-direction: column; gap: 8px; align-items: end; }
.price-from { font-size: 12px; color: var(--ink-3); }
.price-from b { font-size: 18px; color: var(--ink); display: block; }
.langs { display: inline-flex; gap: 4px; }
.lang-pill { font-size: 10.5px; font-weight: 700; padding: 2px 6px; border-radius: 6px; background: var(--surface-2); color: var(--ink-2); letter-spacing: .04em; }
.lang-pill.fr { background: var(--brand-soft); color: var(--brand-text); }
.stars { display: inline-flex; align-items: center; gap: 1px; color: var(--star); }
.stars .icon { width: 15px; height: 15px; fill: currentColor; stroke: none; }
.stars .icon.off { fill: var(--surface-3); }
.rating-big { font-size: 15px; font-weight: 650; display: inline-flex; gap: 6px; align-items: center; }
.empty { text-align: center; padding: 50px 20px; }
.empty .ic { width: 64px; height: 64px; border-radius: 20px; background: var(--surface-2); display: grid; place-items: center; margin: 0 auto 16px; color: var(--ink-3); }

/* ---------- Profil pro ---------- */
.cover { height: 210px; border-radius: 0 0 36px 36px; position: relative; overflow: hidden; }
.cover::after { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.18) 1px, transparent 1px); background-size: 18px 18px; }
.cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cover.has-img::after { display: none; }
img.avatar { object-fit: cover; background: var(--surface-2); }
.brand-edit { overflow: hidden; padding: 0; }
.brand-edit .cover { height: 150px; border-radius: 0; }
.be-cover-btns { position: absolute; inset-inline-end: 12px; top: 12px; z-index: 2; display: flex; gap: 6px; }
.be-row { display: flex; gap: 18px; align-items: flex-end; padding: 0 20px 20px; margin-top: -40px; position: relative; z-index: 2; flex-wrap: wrap; }
.be-row .avatar.lg { border: 5px solid var(--surface); }
.be-row .grow { padding-top: 46px; min-width: 220px; }
.profile-head { display: flex; gap: 22px; align-items: flex-start; position: relative; z-index: 2; flex-wrap: wrap; }
.profile-head .avatar.lg { margin-top: -54px; }
.profile-head > .grow { padding-top: 14px; }
.profile-head .profile-actions { align-self: center; padding-top: 14px; }
.profile-head .crumbs { background: var(--surface-2); padding: 4px 12px; border-radius: 99px; width: fit-content; color: var(--ink-2); }
.profile-head .avatar.lg { border: 5px solid var(--bg); }
.profile-head h1 { font-size: clamp(26px, 3.4vw, 40px); }
.profile-actions { margin-inline-start: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.pstats { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; margin: 26px 0; }
.pstat { padding: 16px 18px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.pstat b { font-size: 22px; letter-spacing: -0.02em; display: block; }
.pstat span { font-size: 12.5px; color: var(--ink-3); }
.profile-body { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 26px; align-items: start; }
.tabs { display: flex; gap: 4px; padding: 4px; background: var(--surface-2); border-radius: 999px; overflow-x: auto; scrollbar-width: none; width: fit-content; max-width: 100%; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button, .tabs a { border: 0; background: transparent; padding: 9px 16px; border-radius: 999px; cursor: pointer; font-weight: 560; font-size: 14px; color: var(--ink-2); white-space: nowrap; display: inline-flex; gap: 7px; align-items: center; }
.tabs .on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.tabs .cnt { font-size: 11px; background: var(--surface-3); border-radius: 999px; padding: 1px 7px; }
.svc { display: grid; grid-template-columns: 56px minmax(0,1fr) auto; gap: 14px; align-items: center; padding: 14px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); }
.svc + .svc { margin-top: 10px; }
.svc-img { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; color: #fff; }
.svc .price { font-weight: 700; font-size: 16px; text-align: end; }
.svc .price small { display: block; font-weight: 500; color: var(--ink-3); font-size: 12px; }
.photos { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
.photo { border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); cursor: pointer; }
.photo .ph { aspect-ratio: 4/3; position: relative; display: grid; place-items: center; color: rgba(255,255,255,.9); overflow: hidden; }
.photo .ph img { width: 100%; height: 100%; object-fit: cover; }
.photo .ph .icon { width: 34px; height: 34px; }
.photo .cap { padding: 10px 12px; font-size: 13px; }
.photo .consent { position: absolute; inset-inline-start: 8px; bottom: 8px; }
.review { padding: 18px 0; border-top: 1px solid var(--line); }
.review:first-child { border-top: 0; }
.review-reply { margin-top: 12px; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); font-size: 14px; border-inline-start: 3px solid var(--brand); }
.rsum { display: grid; grid-template-columns: 170px minmax(0,1fr) minmax(0, 1fr); gap: 24px; align-items: center; padding: 22px; }
.rsum .big { font-size: 54px; font-weight: 700; letter-spacing: -0.05em; line-height: 1; }
.dist { display: grid; gap: 5px; }
.dist-row { display: grid; grid-template-columns: 14px minmax(0,1fr) 28px; gap: 8px; align-items: center; font-size: 12.5px; color: var(--ink-2); cursor: pointer; }
.dist-bar { height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.dist-bar i { display: block; height: 100%; background: var(--star); border-radius: 99px; }
.subscore { display: grid; grid-template-columns: minmax(0,1fr) 36px; gap: 8px; font-size: 13px; align-items: center; margin: 5px 0; }
.subscore .dist-bar i { background: var(--brand); }
.side-card { position: sticky; top: 88px; padding: 22px; }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 14px; }
.kv:first-child { border-top: 0; }
.kv span:first-child { color: var(--ink-3); }

/* ---------- Formulaires ---------- */
.field { display: grid; gap: 6px; }
.field label, .lbl { font-size: 13px; font-weight: 580; color: var(--ink-2); }
.input, select.input, textarea.input { width: 100%; border: 1px solid var(--line-2); background: var(--surface); border-radius: 14px; height: 46px; padding: 0 14px; outline: none; transition: border-color .15s, box-shadow .15s; }
textarea.input { height: auto; min-height: 110px; padding: 12px 14px; resize: vertical; }
.input:focus { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 4px; background: var(--surface-2); border-radius: 16px; gap: 4px; }
.seg button { border: 0; background: transparent; padding: 12px; border-radius: 12px; cursor: pointer; font-weight: 600; display: flex; gap: 8px; align-items: center; justify-content: center; color: var(--ink-2); }
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.pw-meter { height: 5px; border-radius: 9px; background: var(--surface-2); overflow: hidden; }
.pw-meter i { display: block; height: 100%; width: 0; transition: width .2s, background .2s; }
.auth { min-height: calc(100vh - 68px); display: grid; grid-template-columns: 1fr 1fr; }
.auth-side { background: radial-gradient(90% 70% at 100% 100%, rgba(255,107,44,.45), transparent 60%), linear-gradient(160deg, #0f1b3d, #1d2d5c); color: #fff; padding: 56px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.auth-side::after { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1px); background-size: 22px 22px; }
.auth-side > * { position: relative; z-index: 1; }
.auth-form { padding: 56px; display: flex; align-items: center; justify-content: center; }
.auth-form .inner { width: min(440px, 100%); }
.divider { display: flex; align-items: center; gap: 12px; color: var(--ink-3); font-size: 12px; margin: 18px 0; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.star-input { display: inline-flex; gap: 4px; direction: ltr; }
.star-input button { border: 0; background: none; padding: 2px; cursor: pointer; color: var(--surface-3); }
.star-input button .icon { width: 28px; height: 28px; fill: currentColor; stroke: none; }
.star-input button.on { color: var(--star); }
.rate-main { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 18px 0 16px; }
.rate-main .star-input button .icon { width: 42px; height: 42px; }
.rate-main .star-input button { transition: transform .12s; }
.rate-main .star-input button:hover { transform: scale(1.12); }
.rate-lbl { font-weight: 600; min-height: 22px; color: var(--ink-2); }
.rate-more { margin-top: 12px; }
.rate-more summary { cursor: pointer; font-size: 14px; font-weight: 550; color: var(--brand-text); }
.reviews-bottom { margin-top: 34px; padding-top: 24px; border-top: 1px solid var(--line); }
.reviews-bottom .review:first-child { padding-top: 0; }
.star-input.sm button .icon { width: 20px; height: 20px; }

/* ---------- Tableaux ---------- */
.table-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: start; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); font-weight: 620; padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 13px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover { background: var(--surface-2); }
.tbl .num { text-align: end; font-variant-numeric: tabular-nums; }

/* ---------- Fil communauté ---------- */
.feed-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.post { padding: 22px; }
.post + .post { margin-top: 14px; }
.answer { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; padding: 14px; border-radius: 16px; background: var(--surface-2); margin-top: 10px; }
.mini-pro { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); margin-top: 8px; }
.mini-pro:hover { border-color: var(--brand); }
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 16px; background: var(--brand-soft); color: var(--brand-text); font-size: 14px; }
.notice.warn { background: var(--warn-soft); color: var(--warn); }
.notice.ok { background: var(--ok-soft); color: var(--ok); }

/* ---------- Espace client / dashboard ---------- */
.dash { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 24px; padding: 28px 0 60px; align-items: start; }
.side-nav { position: sticky; top: 88px; padding: 12px; }
.side-nav a { display: flex; align-items: center; gap: 11px; padding: 11px 12px; border-radius: 13px; font-weight: 540; color: var(--ink-2); font-size: 14px; }
.side-nav a:hover { background: var(--surface-2); color: var(--ink); }
.side-nav a.on { background: var(--ink); color: var(--bg); }
.side-nav a .cnt { margin-inline-start: auto; font-size: 11px; background: var(--err); color: #fff; border-radius: 99px; padding: 1px 7px; }
.side-nav .who b { font-size: 14px; line-height: 1.25; display: block; }
.side-nav .who { display: flex; gap: 10px; align-items: center; padding: 8px 8px 14px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; }
.kpi { padding: 18px 20px; }
.kpi .lab { font-size: 13px; color: var(--ink-3); display: flex; gap: 7px; align-items: center; }
.kpi .val { font-size: 28px; font-weight: 680; letter-spacing: -0.035em; margin-top: 6px; font-variant-numeric: tabular-nums; }
.kpi .delta { font-size: 12.5px; margin-top: 4px; font-weight: 580; }
.kpi .delta.up { color: var(--ok); } .kpi .delta.down { color: var(--err); }
.kpi.accent { background: linear-gradient(150deg, #0f1b3d, #1d2d5c); color: #fff; border-color: transparent; }
.kpi.accent .lab, .kpi.accent .delta { color: rgba(255,255,255,.85); }
.chart-card { padding: 20px 22px; }
.chart-card .ch-h { display: flex; justify-content: space-between; gap: 12px; align-items: start; margin-bottom: 14px; flex-wrap: wrap; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--ink-2); }
.legend span { display: inline-flex; gap: 6px; align-items: center; }
.sw { display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: var(--s1); flex: none; }
.sw.s1, .s1 .sw { background: var(--s1); } .sw.s2 { background: var(--s2); } .sw.s3 { background: var(--s3); }
.viz { position: relative; direction: ltr; }
.viz svg { display: block; width: 100%; height: auto; overflow: visible; }
.viz-grid { stroke: var(--line); stroke-width: 1; }
.viz-base { stroke: var(--line-2); stroke-width: 1; }
.viz-axis { fill: var(--ink-3); font-size: 11px; font-family: var(--font); }
.viz-mark.s1 { fill: var(--s1); } .viz-mark.s2 { fill: var(--s2); } .viz-mark.s3 { fill: var(--s3); }
.viz-hit { fill: transparent; cursor: crosshair; outline: none; }
.viz-hit.on { fill: color-mix(in srgb, var(--ink) 5%, transparent); }
.viz-line { fill: none; stroke-width: 2; }
.viz-line.s1 { stroke: var(--s1); } .viz-area.s1 { fill: color-mix(in srgb, var(--s1) 12%, transparent); }
.viz-dot.s1 { fill: var(--s1); stroke: var(--surface); stroke-width: 2; }
.viz-cross { stroke: var(--ink-3); stroke-dasharray: 3 3; }
.viz-tip { position: absolute; pointer-events: none; opacity: 0; transition: opacity .12s; background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow-lg); border-radius: 12px; padding: 10px 12px; font-size: 12.5px; min-width: 170px; z-index: 5; color: var(--ink); }
.viz-tip b { display: block; margin-bottom: 6px; }
.viz-tip div { display: flex; align-items: center; gap: 7px; margin-top: 3px; color: var(--ink-2); }
.viz-tip div span { margin-inline-start: auto; color: var(--ink); font-weight: 650; font-variant-numeric: tabular-nums; padding-inline-start: 12px; }
.hb { display: grid; gap: 9px; }
.hb-row { display: grid; grid-template-columns: minmax(90px, 38%) minmax(0,1fr) auto; gap: 10px; align-items: center; font-size: 13px; outline: none; }
.hb-row:hover .hb-bar, .hb-row:focus .hb-bar { filter: brightness(1.08); }
.hb-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink-2); direction: auto; }
.hb-track { height: 14px; }
.hb-bar { height: 100%; border-radius: 0 4px 4px 0; }
.hb-bar.s1 { background: var(--s1); } .hb-bar.s2 { background: var(--s2); } .hb-bar.s3 { background: var(--s3); }
.hb-val { font-variant-numeric: tabular-nums; font-weight: 600; min-width: 64px; text-align: end; }
.table-toggle { font-size: 12.5px; color: var(--brand-text); background: none; border: 0; cursor: pointer; padding: 0; margin-top: 12px; font-weight: 560; }
.dash-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 16px; }
.lead { padding: 18px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: start; }
.lead + .lead { margin-top: 10px; }
.lead.new { border-color: color-mix(in srgb, var(--brand) 45%, transparent); }
.status-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; background: currentColor; }

/* ---------- Facture ---------- */
.invoice { background: #fff; color: #111; border-radius: 16px; padding: 36px; font-size: 13.5px; border: 1px solid #e6e6e6; }
.invoice h2 { font-size: 22px; }
.invoice table { width: 100%; border-collapse: collapse; margin: 22px 0; }
.invoice th { text-align: start; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: #666; border-bottom: 1.5px solid #111; padding: 8px 6px; }
.invoice td { padding: 9px 6px; border-bottom: 1px solid #eee; }
.invoice .num { text-align: end; }
.invoice .tot { margin-inline-start: auto; width: 280px; }
.invoice .tot div { display: flex; justify-content: space-between; padding: 5px 0; }
.invoice .tot .grand { border-top: 1.5px solid #111; margin-top: 6px; padding-top: 10px; font-size: 17px; font-weight: 700; }
.invoice .inv-h { display: flex; justify-content: space-between; gap: 20px; align-items: start; flex-wrap: wrap; }
.invoice .muted { color: #666; }
.line-row { display: grid; grid-template-columns: minmax(0, 1fr) 80px 110px 110px 36px; gap: 8px; align-items: center; margin-top: 8px; }

/* ---------- Pages légales ---------- */
.legal { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 36px; padding: 36px 0 70px; align-items: start; }
.legal nav { position: sticky; top: 88px; }
.legal nav a { display: block; padding: 9px 12px; border-radius: 12px; font-size: 14px; color: var(--ink-2); }
.legal nav a.on, .legal nav a:hover { background: var(--surface-2); color: var(--ink); }
.prose { max-width: 760px; }
.prose h1 { font-size: clamp(30px, 4vw, 44px); margin-bottom: 8px; }
.prose h2 { font-size: 20px; margin: 30px 0 10px; }
.prose p, .prose li { color: var(--ink-2); line-height: 1.7; }
.prose p + p { margin-top: 10px; }
.prose ul { padding-inline-start: 20px; }

/* ---------- Tarifs ---------- */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; align-items: stretch; }
.plan { padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.plan.hl { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.plan.hl .muted { color: color-mix(in srgb, var(--bg) 70%, transparent); }
.plan .p { font-size: 44px; font-weight: 700; letter-spacing: -0.04em; }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; flex: 1; }
.plan li { display: flex; gap: 10px; font-size: 14px; }
.plan li .icon { color: var(--ok); margin-top: 2px; }
.plan.hl li .icon { color: var(--lime); }

/* ---------- Modale, toast, cookies ---------- */
.modal-bg { position: fixed; inset: 0; background: rgba(8,8,12,.5); backdrop-filter: blur(6px); z-index: 80; display: grid; place-items: center; padding: 16px; animation: fade .15s; }
.modal { width: min(560px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: var(--surface); border-radius: 26px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); animation: pop .18s cubic-bezier(.2,.9,.3,1.2); }
.modal.wide { width: min(880px, 100%); }
.modal-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 22px 0; }
.modal-b { padding: 18px 22px 22px; }
.modal-f { display: flex; gap: 10px; justify-content: flex-end; padding: 0 22px 22px; flex-wrap: wrap; }
@keyframes fade { from { opacity: 0; } }
[data-gsec] { scroll-margin-top: 90px; }
.mobile-search { display: none; }
.flash { animation: flash 1.8s ease-out; }
@keyframes flash { 0%, 30% { box-shadow: 0 0 0 3px var(--brand), var(--shadow-lg); border-color: var(--brand); } 100% { box-shadow: 0 0 0 0 transparent; } }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.98); } }
.toasts { position: fixed; bottom: 20px; inset-inline-start: 50%; transform: translateX(-50%); z-index: 90; display: grid; gap: 8px; }
[dir="rtl"] .toasts { transform: translateX(50%); }
.toast { background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 14px; font-size: 14px; box-shadow: var(--shadow-lg); display: flex; gap: 10px; align-items: center; animation: pop .2s; }
.idle-warn { position: fixed; top: 16px; inset-inline: 16px; margin-inline: auto; max-width: 520px; z-index: 120; padding: 14px 16px; display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; box-shadow: var(--shadow-lg); border-color: var(--warn, #e0a100); animation: pop .2s; }
.cookie { position: fixed; bottom: 16px; inset-inline-start: 16px; width: min(440px, calc(100% - 32px)); z-index: 70; padding: 20px; }

/* ---------- Pied de page ---------- */
.ftr { border-top: 1px solid var(--line); margin-top: 40px; padding: 44px 0 28px; background: var(--surface); }
.ftr-grid { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 30px; }
.ftr h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); margin-bottom: 12px; }
.ftr a { display: block; padding: 4px 0; color: var(--ink-2); font-size: 14px; }
.ftr a:hover { color: var(--ink); }
.ftr-bottom { display: flex; justify-content: space-between; gap: 16px; margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-3); flex-wrap: wrap; }
.demo-banner { background: var(--brand-soft); color: var(--ink); font-size: 13px; text-align: center; padding: 7px 12px; font-weight: 560; }
.demo-banner button { background: none; border: 0; text-decoration: underline; cursor: pointer; font-weight: 650; color: inherit; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-card { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; padding: 6px 14px; border-radius: 22px; box-shadow: var(--shadow); }
  .hero-card li { border-bottom: 0; padding: 10px 0; gap: 10px; }
  .hero-card li .faint { display: none; }
  .hero-card li b { font-size: 13px; line-height: 1.25; }
  .hero-card .badge { width: 32px; height: 32px; border-radius: 10px; }
  .bento { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .kpis { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .profile-body, .feed-layout { grid-template-columns: minmax(0, 1fr); }
  .side-card { position: static; }
  .dash-grid { grid-template-columns: 1fr; }
  .nav { display: none; }
  .menu-btn { display: inline-flex; }
}
@media (max-width: 820px) {
  .hdr-search { display: none; }
  .mobile-search { display: block !important; }
  .profile-head { gap: 10px 16px; }
  .profile-head > .grow { flex-basis: 100%; padding-top: 0; }
  .profile-head .profile-actions { margin-inline-start: 0; padding-top: 4px; }
  .profile-head .avatar.lg { width: 84px; height: 84px; margin-top: -48px; }
  .layout-filter, .dash, .legal { grid-template-columns: minmax(0, 1fr); }
  .filters, .side-nav, .legal nav { position: static; }
  .side-nav { display: flex; overflow-x: auto; gap: 4px; padding: 8px; }
  .side-nav .who b { font-size: 14px; line-height: 1.25; display: block; }
.side-nav .who { display: none; }
  .side-nav a { white-space: nowrap; }
  .legal nav { display: flex; overflow-x: auto; gap: 4px; }
  .legal nav a { white-space: nowrap; }
  .g3, .g4, .trust, .plans { grid-template-columns: 1fr; }
  .g2 { grid-template-columns: 1fr; }
  .bento { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .tile.big { grid-column: span 2; grid-row: auto; }
  .auth { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .auth-form { padding: 32px 16px; }
  .cta-pro { grid-template-columns: 1fr; padding: 30px 24px; }
  .ftr-grid { grid-template-columns: 1fr 1fr; }
  .pstats { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .rsum { grid-template-columns: 1fr; }
  .photos { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .pro-card { grid-template-columns: auto minmax(0, 1fr); }
  .pro-card .side { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; text-align: start; }
  .form-grid { grid-template-columns: 1fr; }
  .search.xl select, .search.xl .cp-inline { display: none; }
  .search.xl .search-box { height: 58px; padding-inline: 16px 6px; }
  .search.xl .btn.lg { height: 46px; padding: 0 16px; }
  .line-row { grid-template-columns: minmax(0,1fr) 60px 90px 36px; }
  .line-row .lr-total { display: none; }
  .lead { grid-template-columns: auto minmax(0,1fr); }
  .lead > :last-child { grid-column: 1 / -1; }
  .invoice { padding: 20px; }
  .profile-actions { margin-inline-start: 0; width: 100%; }
  .section { padding: 40px 0; }
  .lang-sel { padding: 0 6px; }
  .hide-sm { display: none !important; }
  .logo small { display: none; }
  .hdr-in { gap: 8px; }
}
@media (max-width: 480px) {
  .kpis { grid-template-columns: 1fr 1fr; gap: 10px; }
  .kpi .val { font-size: 22px; }
  .bento { grid-template-columns: 1fr 1fr; gap: 10px; }
  .tile { min-height: 130px; padding: 16px; }
  .step { padding: 18px; display: grid; grid-template-columns: 36px minmax(0, 1fr); column-gap: 14px; }
  .step .num { width: 36px; height: 36px; margin: 0; grid-row: span 2; }
  .step p { margin-top: 4px !important; }
  .grid.g3 { gap: 10px; }
  .ftr-grid { grid-template-columns: 1fr; }
  .svc { grid-template-columns: 44px minmax(0,1fr); }
  .svc-img { width: 44px; height: 44px; }
  .svc > :last-child { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; }
}

/* ---------- Impression (factures) ---------- */
@media print {
  body * { visibility: hidden !important; }
  body::before, body::after { display: none; }
  .print-area, .print-area * { visibility: visible !important; }
  .print-area { position: absolute; inset: 0; border: 0; border-radius: 0; }
  .modal-bg { background: none; backdrop-filter: none; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* Version en ligne : pas d'impression ni de téléchargement */
[data-artifact] .dl-only { display: none !important; }

/* Chargement */
.loading { min-height: 50vh; display: grid; place-items: center; }
.spin { display: inline-block; width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; vertical-align: -2px; }
.spin.lg { width: 34px; height: 34px; border-width: 3px; color: var(--brand); }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 440px) {
  #theme-btn { display: none; }
  .logo { font-size: 18px; gap: 8px; }
  .hdr-right .btn.sm { padding: 0 10px; }
}

/* ---------- Notifications ---------- */
:root { --notif: #E5372B; }
.nbadge { display: inline-flex; align-items: center; justify-content: center; min-width: 19px; height: 19px; padding: 0 6px; border-radius: 999px; background: var(--notif); color: #fff; font-size: 11px; font-weight: 700; line-height: 1; letter-spacing: 0; }
.nbadge[hidden] { display: none; }
.nbadge.txt { height: 20px; padding: 0 8px; font-size: 11px; vertical-align: middle; }
.side-nav a .nbadge { margin-inline-start: auto; }
.notif-btn { position: relative; }
.notif-btn .nbadge { position: absolute; top: -3px; inset-inline-end: -4px; min-width: 18px; height: 18px; font-size: 10.5px; box-shadow: 0 0 0 2px var(--bg); }
.notif-btn.on { background: var(--surface-2); }
.menu-btn.has-dot::after { background: var(--notif); }
.notif-list { padding: 6px; }
.notif { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 14px; }
.notif + .notif { border-top: 1px solid var(--line); }
.notif:hover { background: var(--surface-2); }
.notif .n-ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); color: var(--ink-2); flex: none; }
.notif.unread .n-ic { background: var(--brand-soft); color: var(--brand-text); }
.notif .n-txt { display: block; font-size: 14.5px; }
.notif.unread .n-txt { font-weight: 600; }
.notif .n-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--notif); flex: none; }

/* ---------- Barre de navigation du bas (téléphone) ---------- */
.bottom-nav { display: none; }
.drawer-link { display: flex; gap: 10px; align-items: center; width: 100%; padding: 12px 8px; border: 0; background: none; border-radius: 12px; font-weight: 550; cursor: pointer; text-align: start; color: var(--ink); }
.drawer-link:hover { background: var(--surface-2); }
@media (max-width: 820px) {
  .bottom-nav { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); position: fixed; inset-inline: 0; bottom: 0; z-index: 45; background: var(--glass); backdrop-filter: saturate(1.6) blur(18px); -webkit-backdrop-filter: saturate(1.6) blur(18px); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px)); }
  .bottom-nav a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 4px 2px; border-radius: 12px; color: var(--ink-3); font-size: 11px; font-weight: 600; min-width: 0; }
  .bottom-nav a .bn-l { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .bottom-nav a .bn-ic { position: relative; display: grid; place-items: center; width: 46px; height: 30px; border-radius: 999px; transition: background .15s; }
  .bottom-nav a .icon { width: 22px; height: 22px; }
  .bottom-nav a.on { color: var(--ink); }
  .bottom-nav a.on .bn-ic { background: var(--brand-soft); color: var(--brand-text); }
  .bottom-nav .nbadge { position: absolute; top: -4px; inset-inline-end: 2px; min-width: 18px; height: 18px; font-size: 10.5px; box-shadow: 0 0 0 2px var(--bg); }
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
  .toasts { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
  .cookie { bottom: calc(80px + env(safe-area-inset-bottom, 0px)); }
  .idle-warn { top: 76px; }
  .hdr-right .notif-btn, .hdr-right #logout, .hdr-right .hdr-user { display: none; }
}
@media (max-width: 820px) {
  .bottom-nav a { font-size: 10.5px; letter-spacing: -0.1px; padding: 4px 0; }
}
/* Mes commandes : cartes au lieu d'un tableau sur téléphone */
@media (max-width: 640px) {
  .orders-wrap { overflow: visible; background: none; border: 0; box-shadow: none; }
  .orders-tbl, .orders-tbl tbody { display: block; }
  .orders-tbl thead { display: none; }
  .orders-tbl tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "pro status" "svc svc" "meta meta" "act act"; gap: 6px 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 14px; margin-bottom: 10px; box-shadow: var(--shadow); }
  .orders-tbl td { display: block; padding: 0; border: 0; }
  .orders-tbl td:nth-child(1) { grid-area: pro; }
  .orders-tbl td:nth-child(2) { grid-area: svc; font-weight: 600; }
  .orders-tbl td:nth-child(3) { grid-area: meta; color: var(--ink-3); font-size: 13px; }
  .orders-tbl td:nth-child(4) { grid-area: meta; justify-self: end; font-weight: 600; }
  .orders-tbl td:nth-child(5) { grid-area: status; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
  .orders-tbl td:nth-child(6) { grid-area: act; border-top: 1px solid var(--line); padding-top: 8px; }
  .orders-tbl td:nth-child(6) .row { flex-wrap: wrap; }
}
.report .tbl th, .report .tbl td { color: #111; border-color: #e6e6e6; padding: 7px 8px; font-size: 12.5px; }
.report .tbl th { color: #666; }
.report h4 { font-size: 14px; color: #111; }
