/* =====================================================
   ATELLO — Design System v2
   Outfit · Amber gold · Off-white · Deep navy
   Light default · Dark via [data-theme="dark"]
   ===================================================== */

/* ── Variables : Light mode ── */
:root {
  --bg:          #F6F5F2;
  --surface:     #FFFFFF;
  --surface-2:   #EFEDE9;
  --surface-3:   #E8E5E0;
  --nav-bg:      rgba(246,245,242,0.92);
  --nav-border:  rgba(10,22,40,0.07);
  --overlay:     rgba(10,22,40,0.5);
  --badge-bg:    rgba(10,22,40,0.06);

  --text:        #0D1B2E;
  --text-dim:    #5B6E82;
  --text-muted:  #9AAABB;

  --line:        rgba(10,22,40,0.07);
  --line-strong: rgba(10,22,40,0.12);

  --accent:      #C9944A;
  --accent-h:    #B8895A;
  --accent-glow: rgba(201,148,74,0.18);
  --accent-bg:   rgba(201,148,74,0.08);

  --accent-2:    #3A7BD5;
  --accent-2-bg: rgba(58,123,213,0.08);

  --success:     #1E9E5E;
  --success-bg:  rgba(30,158,94,0.08);

  --danger:      #CC4C38;
  --danger-bg:   rgba(204,76,56,0.08);

  --radius:    14px;
  --radius-sm:  9px;
  --radius-lg:  22px;
  --radius-xl:  32px;

  --shadow-xs: 0 1px 3px rgba(10,22,40,0.05), 0 1px 2px rgba(10,22,40,0.04);
  --shadow-sm: 0 4px 12px rgba(10,22,40,0.06), 0 2px 4px rgba(10,22,40,0.04);
  --shadow:    0 12px 32px rgba(10,22,40,0.08), 0 4px 8px rgba(10,22,40,0.04);
  --shadow-lg: 0 24px 56px rgba(10,22,40,0.10), 0 8px 16px rgba(10,22,40,0.05);
  --shadow-diffuse: 0 20px 60px -10px rgba(10,22,40,0.08);

  --focus-ring: 0 0 0 2px #fff, 0 0 0 4px var(--accent);
  --spring: cubic-bezier(0.16, 1, 0.3, 1);

  /* ── Layout fluide ──
     Le site plafonnait à 1220px : sur un écran 1440p (2560 de large) plus de
     la moitié de la surface restait vide et la recherche n'affichait que
     2 colonnes. Ces paliers font grandir le contenu avec l'écran, tandis que
     --measure garde les paragraphes à une longueur de ligne lisible. */
  --gutter:        28px;
  --container-max: 1220px;
  --measure:       68ch;
}

@media (min-width: 1560px) { :root { --container-max: 1400px; --gutter: 36px; } }
@media (min-width: 1840px) { :root { --container-max: 1600px; --gutter: 44px; } }
@media (min-width: 2200px) { :root { --container-max: 1800px; --gutter: 52px; } }
@media (min-width: 2500px) { :root { --container-max: 1960px; } }

/* ── Variables : Dark mode ── */
[data-theme="dark"] {
  --bg:          #0A1628;
  --surface:     #0F2240;
  --surface-2:   #162E50;
  --surface-3:   #1E3A60;
  --nav-bg:      rgba(10,22,40,0.90);
  --nav-border:  rgba(255,255,255,0.07);
  --overlay:     rgba(0,0,0,0.72);
  --badge-bg:    rgba(255,255,255,0.07);

  --text:        #E8EEF5;
  --text-dim:    #92A8C0;
  --text-muted:  #5E7A96;

  --line:        rgba(255,255,255,0.07);
  --line-strong: rgba(255,255,255,0.13);

  --accent:      #D4A574;
  --accent-h:    #E0B888;
  --accent-glow: rgba(212,165,116,0.22);
  --accent-bg:   rgba(212,165,116,0.10);

  --accent-2:    #6FA8DC;
  --accent-2-bg: rgba(111,168,220,0.10);

  --success:     #7AC994;
  --success-bg:  rgba(122,201,148,0.10);

  --danger:      #E2725B;
  --danger-bg:   rgba(226,114,91,0.10);

  --shadow-xs: 0 1px 3px rgba(0,0,0,0.20);
  --shadow-sm: 0 4px 12px rgba(0,0,0,0.28);
  --shadow:    0 12px 32px rgba(0,0,0,0.36);
  --shadow-lg: 0 24px 56px rgba(0,0,0,0.48);
  --shadow-diffuse: 0 20px 60px -10px rgba(0,0,0,0.40);

  --focus-ring: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Outfit', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100dvh;
  transition: background 0.28s var(--spring), color 0.28s var(--spring);
}

img { max-width: 100%; display: block; }
a  { color: var(--accent-2); text-decoration: none; transition: color 0.18s; }
a:hover { color: var(--accent); }
button, input, select, textarea { font: inherit; color: inherit; }
svg { display: block; }

/* ── Accessibility ── */
.skip-link {
  position: absolute;
  top: -100px; left: 12px;
  background: var(--accent); color: #fff;
  padding: 10px 16px; border-radius: var(--radius-sm);
  font-weight: 600; z-index: 200; transition: top 0.2s;
}
.skip-link:focus { top: 12px; color: #fff; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[role="button"]:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: var(--radius-sm);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── Keyframes ── */
@keyframes fadeIn     { from { opacity: 0 }                                to { opacity: 1 } }
@keyframes fadeInUp   { from { opacity: 0; transform: translateY(20px) }   to { opacity: 1; transform: translateY(0) } }
@keyframes fadeInLeft { from { opacity: 0; transform: translateX(-20px) }  to { opacity: 1; transform: translateX(0) } }
@keyframes scaleIn    { from { opacity: 0; transform: scale(0.93) }        to { opacity: 1; transform: scale(1) } }
@keyframes shimmer    { 0% { background-position: -200% 0 } 100% { background-position: 200% 0 } }
@keyframes slideInRight  { from { opacity: 0; transform: translateX(40px) }  to { opacity: 1; transform: translateX(0) } }
@keyframes slideOutRight { from { opacity: 1; transform: translateX(0) }      to { opacity: 0; transform: translateX(40px) } }
@keyframes spin   { to { transform: rotate(360deg) } }
@keyframes pulse  { 0%, 100% { opacity: 1 } 50% { opacity: 0.45 } }
@keyframes float  {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-10px) rotate(0.6deg); }
}
@keyframes floatSlow {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50%      { transform: translateY(-6px) rotate(-3.2deg); }
}
@keyframes revealUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Animation utilities ── */
.anim-fade-in    { animation: fadeIn    0.38s var(--spring) both; }
.anim-fade-in-up { animation: fadeInUp  0.48s var(--spring) both; }
.anim-scale-in   { animation: scaleIn   0.32s var(--spring) both; }
.anim-reveal     { opacity: 0; }
.anim-reveal.is-visible { animation: revealUp 0.56s var(--spring) both; }

.stagger > * { animation: fadeInUp 0.48s var(--spring) both; }
.stagger > *:nth-child(1) { animation-delay: 0.00s; }
.stagger > *:nth-child(2) { animation-delay: 0.07s; }
.stagger > *:nth-child(3) { animation-delay: 0.14s; }
.stagger > *:nth-child(4) { animation-delay: 0.21s; }
.stagger > *:nth-child(5) { animation-delay: 0.28s; }
.stagger > *:nth-child(n+6) { animation-delay: 0.35s; }

/* ── Transitions (all interactive elements) ── */
.btn, .card, .tag, .pill, .feature, .nav a {
  transition:
    transform 0.22s var(--spring),
    box-shadow 0.24s var(--spring),
    border-color 0.18s,
    background-color 0.18s,
    color 0.18s,
    opacity 0.18s;
}
.btn:active    { transform: scale(0.97) translateY(1px) !important; }
.card:hover .card-media img { transform: scale(1.06); }
.card-media img { transition: transform 0.55s var(--spring); }

/* ── Skeleton loader ── */
.skeleton {
  position: relative; overflow: hidden;
  background: var(--surface-2);
  border-radius: var(--radius);
}
.skeleton::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(128,128,128,0.07) 50%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: shimmer 1.6s linear infinite;
}
.skeleton-card { height: 320px; }
.skeleton-line { height: 13px; margin: 7px 0; border-radius: 5px; }

/* ─────────────────────────────────────────────
   TOAST
───────────────────────────────────────────── */
.toast-host {
  position: fixed; top: 76px; right: 20px;
  z-index: 1000;
  display: flex; flex-direction: column; gap: 10px;
  pointer-events: none; max-width: 360px;
}
.toast {
  pointer-events: auto;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-left: 3px solid var(--accent);
  border-radius: 12px;
  padding: 12px 14px;
  box-shadow: var(--shadow);
  font-size: 14px; color: var(--text);
  display: flex; gap: 10px; align-items: flex-start;
  animation: slideInRight 0.38s var(--spring) both;
}
.toast.is-leaving { animation: slideOutRight 0.25s ease-in both; }
.toast--success { border-left-color: var(--success); }
.toast--error   { border-left-color: var(--danger); }
.toast--info    { border-left-color: var(--accent-2); }
.toast .toast-icon { font-size: 18px; line-height: 1; flex-shrink: 0; }
.toast--success .toast-icon { color: var(--success); }
.toast--error   .toast-icon { color: var(--danger); }
.toast--info    .toast-icon { color: var(--accent-2); }
.toast .toast-msg { flex: 1; font-size: 14px; line-height: 1.5; }
.toast .toast-close {
  background: transparent; border: 0;
  color: var(--text-muted); cursor: pointer;
  padding: 2px 4px; font-size: 18px; line-height: 1;
  flex-shrink: 0;
}
.toast .toast-close:hover { color: var(--text); }

/* ─────────────────────────────────────────────
   MODAL / DIALOG
───────────────────────────────────────────── */
.dialog-backdrop {
  position: fixed; inset: 0;
  background: var(--overlay);
  backdrop-filter: blur(8px) saturate(120%);
  -webkit-backdrop-filter: blur(8px) saturate(120%);
  z-index: 900;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  animation: fadeIn 0.22s var(--spring) both;
}
.dialog {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), var(--shadow-lg);
  border-radius: var(--radius-lg);
  padding: 36px;
  max-width: 440px; width: 100%;
  animation: scaleIn 0.28s var(--spring) both;
}
.dialog h3  { margin: 0 0 8px; font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
.dialog p   { margin: 0 0 24px; color: var(--text-dim); }
.dialog-actions { display: flex; gap: 10px; justify-content: flex-end; }
.dialog-actions .btn { min-width: 100px; }

/* ── Tooltip ──
   display:none au repos : un ::after absolu en nowrap créait un scroll
   horizontal fantôme sur mobile (le tooltip invisible comptait dans la
   zone de défilement). */
[data-tip] { position: relative; cursor: help; }
[data-tip]::after {
  content: attr(data-tip);
  position: absolute; bottom: calc(100% + 8px); left: 50%;
  transform: translateX(-50%);
  background: var(--surface); color: var(--text);
  border: 1px solid var(--line-strong);
  padding: 7px 11px; border-radius: 8px;
  font-size: 12px;
  white-space: normal;
  width: max-content;
  max-width: min(240px, 72vw);
  text-align: center;
  line-height: 1.45;
  pointer-events: none;
  display: none;
  box-shadow: var(--shadow);
  z-index: 800;
}
[data-tip]:hover::after,
[data-tip]:focus-visible::after {
  display: block;
  animation: tipIn 0.18s ease both;
}
@keyframes tipIn {
  from { opacity: 0; transform: translateX(-50%) translateY(4px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
/* Pas de tooltips sur écrans tactiles : le hover n'y existe pas */
@media (hover: none) {
  [data-tip]::after { display: none !important; }
}

/* ─────────────────────────────────────────────
   LAYOUT
───────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  /* `0` vertical volontaire : c'est un conteneur de largeur, pas d'espacement.
     Les blocs qui ont besoin de padding vertical le posent eux-mêmes avec une
     spécificité supérieure (voir `.nav .nav-inner`). */
  padding: 0 var(--gutter);
}

/* ─────────────────────────────────────────────
   NAVIGATION
───────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
  background: var(--nav-bg);
  border-bottom: 1px solid var(--nav-border);
  box-shadow: 0 1px 0 rgba(10,22,40,0.04), var(--shadow-xs);
}
/* Spécificité (0,2,0) : les media queries de .container ne doivent pas
   écraser le padding vertical de la nav. L'horizontal vient de .container
   pour rester aligné avec le contenu des pages. */
.nav .nav-inner {
  display: flex; align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 19px;
  letter-spacing: -0.05em; color: var(--text);
  text-decoration: none;
}
.brand:hover { color: var(--text); }
.brand-icon {
  width: 32px; height: 32px;
  border-radius: 9px;
  background: linear-gradient(140deg, var(--accent) 0%, #a0743a 100%);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px var(--accent-glow);
  flex-shrink: 0;
}
.brand-icon svg { width: 18px; height: 18px; fill: #fff; }
.brand-name { color: var(--text); }
.brand-name em { font-style: normal; color: var(--accent); }

.nav-links {
  display: flex; gap: 4px; align-items: center;
}
.nav-links a {
  color: var(--text-dim);
  font-size: 14px; font-weight: 500;
  padding: 7px 13px; border-radius: 8px;
  transition: all 0.18s; text-decoration: none;
}
.nav-links a:hover { color: var(--text); background: var(--surface-2); }
.nav-links a.active { color: var(--accent); background: var(--accent-bg); }

.nav-cta { display: flex; gap: 8px; align-items: center; }

/* Theme toggle — SVG-based, no emoji */
.theme-toggle {
  width: 36px; height: 36px;
  border: 1px solid var(--line-strong);
  border-radius: 9px; background: transparent;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-dim);
  transition: all 0.22s var(--spring);
}
.theme-toggle:hover { background: var(--surface-2); color: var(--text); border-color: var(--accent); }
.theme-toggle svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 1.8; }

/* Burger + menu mobile */
.nav-burger {
  display: none;
  width: 40px; height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: transparent;
  cursor: pointer;
  align-items: center; justify-content: center;
  color: var(--text);
  flex-shrink: 0;
}
.nav-burger svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; }
.nav-burger:hover { background: var(--surface-2); border-color: var(--accent); }

/* En flux normal dans la nav sticky : le menu pousse le contenu,
   aucun bug de positionnement possible. */
.mobile-menu {
  display: none;
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding: 10px 20px 18px;
}
.mobile-menu.open { display: block; animation: menuIn 0.22s var(--spring); }
@keyframes menuIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: none; }
}
.mobile-menu a.mm-link {
  display: block;
  padding: 13px 12px;
  border-radius: 10px;
  font-size: 15px; font-weight: 600;
  color: var(--text);
  text-decoration: none;
}
.mobile-menu a.mm-link:hover  { background: var(--surface-2); }
.mobile-menu a.mm-link.active { color: var(--accent); background: var(--accent-bg); }
.mm-cta {
  display: flex; gap: 10px;
  margin-top: 10px; padding-top: 14px;
  border-top: 1px solid var(--line);
}
.mm-cta .btn { flex: 1; }
.mm-user {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-top: 10px; padding: 14px 12px 0;
  border-top: 1px solid var(--line);
  font-size: 14px; font-weight: 600; color: var(--text-dim);
}

/* ─────────────────────────────────────────────
   BUTTONS
───────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-weight: 600; font-size: 14px;
  cursor: pointer; text-decoration: none;
  background: transparent; color: var(--text);
  white-space: nowrap; position: relative; overflow: hidden;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 2px 12px var(--accent-glow);
}
.btn-primary::before {
  content: '';
  position: absolute; inset: 0;
  background: rgba(255,255,255,0.12);
  transform: translateX(-102%);
  transition: transform 0.44s var(--spring);
}
.btn-primary:hover { background: var(--accent-h); color: #fff; box-shadow: 0 6px 20px var(--accent-glow); }
.btn-primary:hover::before { transform: translateX(0); }

.btn-secondary {
  background: var(--surface);
  border-color: var(--line-strong);
  color: var(--text);
  box-shadow: var(--shadow-xs);
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }

.btn-ghost {
  border-color: var(--line-strong);
  color: var(--text-dim);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { opacity: 0.88; color: #fff; }

.btn-block   { width: 100%; justify-content: center; }
.btn-sm      { padding: 7px 14px; font-size: 13px; }
.btn-lg      { padding: 14px 30px; font-size: 16px; border-radius: 13px; }
.btn-icon    { width: 36px; height: 36px; padding: 0; border-radius: 9px; }

/* ─────────────────────────────────────────────
   HERO — Asymmetric split (DV8)
───────────────────────────────────────────── */
.hero {
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
  /* Plafonné : sur un écran 1440p de haut, un hero plein écran laissait
     ~700px de vide autour du contenu. Le plafond laisse aussi entrevoir la
     section suivante, ce qui invite au défilement. */
  min-height: min(100dvh, 980px);
  display: flex; align-items: center;
}
.hero::before {
  content: '';
  position: absolute;
  width: 800px; height: 800px; border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 62%);
  top: -300px; right: -180px;
  pointer-events: none; z-index: 0;
}
.hero::after {
  content: '';
  position: absolute;
  width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, var(--accent-2-bg) 0%, transparent 62%);
  bottom: -180px; left: -80px;
  pointer-events: none; z-index: 0;
}
.hero .container { position: relative; z-index: 1; width: 100%; }

/* Split layout */
.hero-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 42%);
  gap: 80px;
  align-items: center;
}

/* Left column */
.hero-content { max-width: 680px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px;
  background: var(--accent-bg);
  border: 1px solid rgba(201,148,74,0.28);
  border-radius: 100px;
  color: var(--accent);
  font-size: 13px; font-weight: 600;
  margin-bottom: 28px; letter-spacing: 0.01em;
}
.eyebrow::before {
  content: '';
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
  animation: pulse 2.4s ease-in-out infinite;
}

.hero h1 {
  /* Pente inchangée (5.5vw) : le rendu est identique à l'existant jusqu'à
     ~1345px, où l'ancien plafond de 74px bloquait. Au-delà, le titre continue
     de grandir au lieu de rester figé sur un écran deux fois plus large. */
  font-size: clamp(40px, 5.5vw, 88px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.04;
  margin: 0 0 24px;
  color: var(--text);
}
.hero h1 em {
  font-style: normal;
  color: var(--accent);
  position: relative;
}
.hero h1 em::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--accent), transparent 80%);
  border-radius: 2px; opacity: 0.55;
}
.hero p {
  font-size: 17px; color: var(--text-dim);
  max-width: 540px; margin: 0 0 40px; line-height: 1.75;
}

/* ─────────────────────────────────────────────
   HERO VISUAL — before/after proof grid
   (composants .proof-* définis plus bas)
───────────────────────────────────────────── */
.hero-visual {
  position: relative;
  min-width: 0;
}

/* ─────────────────────────────────────────────
   SEARCH BAR
───────────────────────────────────────────── */
.search-bar {
  display: grid;
  grid-template-columns: 1.6fr 0.9fr 0.9fr auto;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow-diffuse);
  overflow: hidden;
  max-width: 860px;
}
.search-bar .field {
  padding: 14px 18px;
  border-right: 1px solid var(--line);
  position: relative;
  min-width: 0;
}
.search-bar .field:last-of-type { border-right: 0; }
.search-bar label {
  display: block;
  font-size: 10px; font-weight: 700; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.09em;
  margin-bottom: 4px;
}
.search-bar input,
.search-bar select {
  width: 100%; min-width: 0; background: transparent;
  border: 0; outline: 0;
  font-size: 15px; font-weight: 500; color: var(--text);
  appearance: none; -webkit-appearance: none;
}
.search-bar input::placeholder { color: var(--text-muted); font-weight: 400; }
.search-bar .search-go {
  background: var(--accent); color: #fff;
  border: 0; padding: 0 28px;
  font-weight: 700; font-size: 15px;
  cursor: pointer;
  transition: background 0.22s var(--spring);
  white-space: nowrap; letter-spacing: -0.01em;
}
.search-bar .search-go:hover { background: var(--accent-h); }

/* ── Popular tags ── */
.popular-tags {
  margin-top: 24px;
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
}
.popular-tags > span { color: var(--text-muted); font-size: 13px; font-weight: 500; }
.tag {
  display: inline-flex; align-items: center;
  padding: 6px 14px;
  border: 1px solid var(--line-strong); border-radius: 100px;
  font-size: 13px; font-weight: 500; color: var(--text-dim);
  background: var(--surface); cursor: pointer;
  box-shadow: var(--shadow-xs);
  transition: all 0.22s var(--spring);
}
.tag:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.tag.solid { background: var(--accent-bg); border-color: rgba(201,148,74,0.3); color: var(--accent); }

/* ─────────────────────────────────────────────
   SECTIONS
───────────────────────────────────────────── */
.section     { padding: 80px 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 48px; gap: 24px;
}
.section-head h2 {
  font-size: clamp(26px, 3.5vw, 52px);
  font-weight: 800; letter-spacing: -0.035em; margin: 0 0 8px;
  text-wrap: balance;
}
/* Le conteneur s'élargit sur grand écran, pas les lignes de texte. */
.section-head p  { color: var(--text-dim); margin: 0; font-size: 16px; max-width: var(--measure); }

/* Garde-fou de lisibilité : au-delà de ~70 caractères par ligne, l'œil perd
   le début de la ligne suivante. Sans ça, la bio d'un artisan s'étalait sur
   1382px (≈200 caractères) en 1440p. `max-width` ne fait que plafonner :
   aucun effet sur les écrans où le texte est déjà plus étroit. */
.panel p,
.panel li { max-width: var(--measure); }
.section-label {
  display: inline-block;
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--accent); margin-bottom: 14px;
}

/* ─────────────────────────────────────────────
   FEATURES GRID — Asymmetric zigzag (DV8)
───────────────────────────────────────────── */
.features {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 20px;
}
/* Offset even items downward for stagger effect */
.features .feature:nth-child(even) {
  margin-top: 40px;
}
.feature {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-xs);
  transition: transform 0.28s var(--spring), box-shadow 0.28s var(--spring), border-color 0.2s;
}
.feature:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-diffuse);
  border-color: rgba(201,148,74,0.25);
}
.feature .ico {
  width: 48px; height: 48px;
  border-radius: 13px;
  background: var(--accent-bg);
  border: 1px solid rgba(201,148,74,0.2);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  color: var(--accent);
}
.feature .ico svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.7; }
.feature h4 { margin: 0 0 10px; font-size: 17px; font-weight: 700; letter-spacing: -0.02em; }
.feature p  { color: var(--text-dim); font-size: 14px; margin: 0; line-height: 1.7; }

/* ─────────────────────────────────────────────
   STATS ROW
───────────────────────────────────────────── */
.stats-row {
  display: flex; gap: 0;
  padding: 40px 0;
}
.stat-item {
  flex: 1; padding: 0 40px;
  border-left: 1px solid var(--line);
}
.stat-item:first-child { padding-left: 0; border-left: 0; }
.stat-num {
  font-size: 44px; font-weight: 800;
  letter-spacing: -0.05em; line-height: 1;
  color: var(--text); margin-bottom: 6px;
}
.stat-num .accent { color: var(--accent); }
.stat-lbl { font-size: 14px; color: var(--text-dim); font-weight: 400; }

/* ─────────────────────────────────────────────
   PROCESS — Numbered steps horizontal
───────────────────────────────────────────── */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  position: relative;
}
.process-grid::before {
  content: '';
  position: absolute;
  top: 22px; left: 22px; right: 22px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--line) 100%);
  z-index: 0;
}
.process-step {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; gap: 16px;
}
.process-num {
  width: 44px; height: 44px; border-radius: 13px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; font-weight: 800; color: var(--accent);
  flex-shrink: 0; box-shadow: var(--shadow-sm);
  transition: all 0.28s var(--spring);
}
.process-step:first-child .process-num {
  background: var(--accent); color: #fff;
  border-color: var(--accent);
  box-shadow: 0 4px 16px var(--accent-glow);
}
.process-step h4 { font-size: 16px; font-weight: 700; letter-spacing: -0.02em; margin: 0; color: var(--text); }
.process-step p  { font-size: 14px; color: var(--text-dim); margin: 0; line-height: 1.7; }

/* ─────────────────────────────────────────────
   ARTISAN CARDS GRID
───────────────────────────────────────────── */
.grid {
  display: grid; gap: 20px;
  /* auto-fill + minmax : le nombre de colonnes suit la largeur disponible.
     Avec le conteneur fluide, on passe de 3 colonnes à 5-6 en 1440p sans
     media query supplémentaire. */
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-xs);
  transition: transform 0.28s var(--spring), box-shadow 0.28s var(--spring), border-color 0.2s;
}
.card:hover {
  transform: translateY(-5px);
  border-color: rgba(201,148,74,0.22);
  box-shadow: var(--shadow-diffuse);
}
.card-media {
  aspect-ratio: 16 / 10;
  background: var(--surface-2);
  position: relative; overflow: hidden;
}
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-badge {
  position: absolute; top: 12px; left: 12px;
  background: rgba(10,22,40,0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
  color: #fff; padding: 5px 10px; border-radius: 7px;
  font-size: 12px; font-weight: 500;
}
.card-badge.video { background: rgba(201,148,74,0.88); border: 0; }
.card-body   { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.card-title  { font-size: 17px; font-weight: 700; margin: 0 0 4px; letter-spacing: -0.025em; }
.card-sub    { color: var(--text-dim); font-size: 13px; margin: 0 0 14px; }
.card-meta   {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line);
}
.rating      { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 500; }
.rating-star { color: var(--accent); }
.price       { font-weight: 700; color: var(--text); font-size: 15px; }
.price small { color: var(--text-dim); font-weight: 400; }

/* Trust score */
.trust-score {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  background: var(--accent-bg);
  border: 1px solid rgba(201,148,74,0.22);
  border-radius: 100px;
  font-size: 13px; font-weight: 700; color: var(--accent);
}
.trust-score-num.is-animating { animation: pulse 0.8s ease-out 1; }

/* Badges */
.atello-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: 100px;
  font-size: 12px; font-weight: 600;
}

/* ─────────────────────────────────────────────
   FORMS
───────────────────────────────────────────── */
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block; font-size: 13px; font-weight: 600;
  color: var(--text); margin-bottom: 7px;
}
.form-control {
  width: 100%; padding: 11px 14px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--text); font-size: 15px; font-weight: 400;
  transition: border-color 0.22s, box-shadow 0.22s;
  box-shadow: var(--shadow-xs);
}
.form-control:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.form-control.is-invalid { border-color: var(--danger); }
.form-control.is-invalid:focus { box-shadow: 0 0 0 3px var(--danger-bg); }
.field-error { display: block; margin-top: 6px; color: var(--danger); font-size: 12px; animation: fadeIn 0.2s; }
textarea.form-control { resize: vertical; min-height: 90px; }

.form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 40px;
  max-width: 460px; margin: 0 auto;
  box-shadow: var(--shadow-lg);
}
.form-card h1 { margin: 0 0 6px; font-size: 30px; font-weight: 800; letter-spacing: -0.04em; }
.form-card .sub { color: var(--text-dim); margin: 0 0 32px; font-size: 15px; }

.alert {
  padding: 12px 14px; border-radius: var(--radius-sm);
  font-size: 14px; margin-bottom: 16px; font-weight: 500;
}
.alert-error   { background: var(--danger-bg);  color: var(--danger);  border: 1px solid rgba(204,76,56,0.2); }
.alert-success { background: var(--success-bg); color: var(--success); border: 1px solid rgba(30,158,94,0.2); }

.role-toggle {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
  padding: 5px;
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--radius-sm); margin-bottom: 24px;
}
.role-toggle button {
  padding: 10px; background: transparent; border: 0;
  border-radius: 7px; color: var(--text-dim);
  cursor: pointer; font-size: 14px; font-weight: 600;
  transition: all 0.22s var(--spring);
}
.role-toggle button.active {
  background: var(--surface); color: var(--accent);
  box-shadow: var(--shadow-sm);
}

/* ─────────────────────────────────────────────
   AUTH SPLIT SCREEN
───────────────────────────────────────────── */
.auth-page {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.auth-brand-panel {
  background: linear-gradient(145deg, #0A1628 0%, #0F2240 60%, #162E50 100%);
  display: flex; flex-direction: column;
  justify-content: space-between;
  padding: 48px;
  position: relative; overflow: hidden;
}
.auth-brand-panel::before {
  content: '';
  position: absolute; top: -200px; right: -200px;
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(201,148,74,0.15) 0%, transparent 65%);
  pointer-events: none;
}
.auth-brand-logo {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none;
}
.auth-brand-icon {
  width: 40px; height: 40px; border-radius: 12px;
  background: linear-gradient(140deg, var(--accent) 0%, #a0743a 100%);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(201,148,74,0.4);
}
.auth-brand-icon svg { width: 22px; height: 22px; fill: #fff; }
.auth-brand-name {
  font-size: 22px; font-weight: 800; letter-spacing: -0.05em;
  color: #E8EEF5;
}
.auth-brand-name em { font-style: normal; color: #D4A574; }

.auth-brand-body { position: relative; z-index: 1; }
.auth-brand-quote {
  font-size: clamp(28px, 3vw, 56px);
  font-weight: 800; letter-spacing: -0.04em;
  line-height: 1.1; color: #E8EEF5; margin-bottom: 20px;
}
.auth-brand-quote em { font-style: normal; color: #D4A574; }
.auth-brand-sub { font-size: 16px; color: rgba(232,238,245,0.6); line-height: 1.65; max-width: 380px; }

.auth-trust-items {
  display: flex; flex-direction: column; gap: 14px;
  position: relative; z-index: 1;
}
.auth-trust-item {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 13px;
}
.auth-trust-ico {
  width: 36px; height: 36px; border-radius: 9px;
  background: var(--accent-bg); border: 1px solid rgba(201,148,74,0.3);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); flex-shrink: 0;
}
.auth-trust-ico svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.auth-trust-text { font-size: 14px; color: rgba(232,238,245,0.85); font-weight: 500; line-height: 1.4; }

.auth-form-panel {
  display: flex; align-items: center; justify-content: center;
  padding: 48px; background: var(--bg);
}
.auth-form-panel .form-card { box-shadow: none; border: none; max-width: 400px; width: 100%; padding: 0; }

/* ─────────────────────────────────────────────
   PROFILE / ARTISAN DETAIL
───────────────────────────────────────────── */
.profile-hero {
  display: grid; grid-template-columns: auto 1fr;
  gap: 28px; padding: 44px 0;
  border-bottom: 1px solid var(--line);
}
.avatar-lg {
  width: 120px; height: 120px; border-radius: 24px;
  background: linear-gradient(135deg, var(--accent-bg), var(--surface-2));
  display: flex; align-items: center; justify-content: center;
  font-size: 40px; font-weight: 800; color: var(--accent);
  border: 2px solid var(--line-strong); flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}
.profile-info h1     { margin: 0 0 6px; font-size: 34px; font-weight: 800; letter-spacing: -0.04em; }
.profile-info .trade { color: var(--accent); font-size: 16px; margin: 0 0 14px; font-weight: 600; }
.profile-info .meta  {
  display: flex; gap: 20px; flex-wrap: wrap;
  color: var(--text-dim); font-size: 14px;
}
.profile-info .meta span { display: inline-flex; align-items: center; gap: 6px; }
.profile-actions { margin-top: 18px; display: flex; gap: 10px; flex-wrap: wrap; }

.two-col {
  display: grid; grid-template-columns: 1fr 380px;
  gap: 44px; padding: 44px 0;
}
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px; margin-bottom: 20px;
  box-shadow: var(--shadow-xs);
}
.panel h3 {
  margin: 0 0 16px;
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--text-muted);
}

/* Service list */
.service-row {
  display: flex; justify-content: space-between;
  align-items: flex-start;
  padding: 18px 0; border-bottom: 1px solid var(--line); gap: 16px;
}
.service-row:last-child { border-bottom: 0; }
.service-row .info h4 { margin: 0 0 4px; font-size: 16px; font-weight: 700; }
.service-row .info p  { color: var(--text-dim); font-size: 13px; margin: 0 0 8px; }
.service-row .price-block { text-align: right; flex-shrink: 0; }
.service-row .price-block .p { font-size: 18px; font-weight: 700; }
.service-row .price-block .u { color: var(--text-dim); font-size: 12px; }

/* ─────────────────────────────────────────────
   FILTERS / PILLS
───────────────────────────────────────────── */
.filters {
  display: flex; gap: 8px; flex-wrap: wrap;
  padding: 20px 0; border-bottom: 1px solid var(--line);
  margin-bottom: 28px; align-items: center;
}
.filters .pill {
  padding: 8px 16px;
  background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: 100px; color: var(--text-dim);
  font-size: 13px; font-weight: 500;
  cursor: pointer; box-shadow: var(--shadow-xs);
  transition: all 0.22s var(--spring);
}
.filters .pill.active,
.filters .pill:hover {
  border-color: var(--accent); color: var(--accent); background: var(--accent-bg);
}

/* ─────────────────────────────────────────────
   BOOKING
───────────────────────────────────────────── */
.booking-type {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 20px;
}
.booking-type label {
  cursor: pointer; padding: 18px;
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  text-align: center; transition: all 0.22s var(--spring);
  background: var(--surface); box-shadow: var(--shadow-xs);
}
.booking-type input { display: none; }
.booking-type label.selected,
.booking-type input:checked + label {
  border-color: var(--accent); background: var(--accent-bg);
  box-shadow: 0 0 0 1px var(--accent);
}
.booking-type .ico { font-size: 24px; margin-bottom: 8px; }
.booking-type .l   { font-weight: 700; font-size: 14px; }
.booking-type .s   { color: var(--text-dim); font-size: 12px; margin-top: 2px; }

/* ─────────────────────────────────────────────
   DASHBOARD
───────────────────────────────────────────── */
.stats-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px; margin-bottom: 32px;
}
.stat-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px 24px;
  box-shadow: var(--shadow-xs);
}
.stat-card .num {
  font-size: 32px; font-weight: 800; letter-spacing: -0.04em;
  color: var(--text); margin: 0 0 4px;
}
.stat-card .lbl { font-size: 13px; color: var(--text-dim); font-weight: 500; }

/* Lead/booking rows */
.lead-row, .booking-row {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: 18px 0; border-bottom: 1px solid var(--line); gap: 16px;
}
.lead-row:last-child, .booking-row:last-child { border-bottom: 0; }

/* ─────────────────────────────────────────────
   ADMIN
───────────────────────────────────────────── */
.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin-table th {
  padding: 10px 14px; text-align: left;
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em;
  color: var(--text-muted); border-bottom: 2px solid var(--line);
}
.admin-table td { padding: 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: 0; }
.admin-table tr:hover td { background: var(--surface-2); }

/* ─────────────────────────────────────────────
   OPTION CARDS
───────────────────────────────────────────── */
.options-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px; margin-bottom: 20px;
}
.option-card {
  cursor: pointer; padding: 20px 16px;
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  text-align: center; background: var(--surface);
  transition: all 0.22s var(--spring); box-shadow: var(--shadow-xs);
}
.option-card:hover,
.option-card.selected {
  border-color: var(--accent); background: var(--accent-bg);
}
.option-card:active { transform: scale(0.97); }
.option-card .ico { font-size: 28px; margin-bottom: 10px; }
.option-card .lbl { font-size: 13px; font-weight: 600; color: var(--text); }

/* ─────────────────────────────────────────────
   STEPS / PROGRESS
───────────────────────────────────────────── */
.steps {
  display: flex; align-items: center; gap: 8px; margin-bottom: 36px;
}
.step {
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
  background: var(--surface-2); color: var(--text-dim);
  border: 1px solid var(--line-strong); flex-shrink: 0;
}
.step.active { background: var(--accent); color: #fff; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-glow); }
.step.done   { background: var(--success); color: #fff; border-color: var(--success); }
.step-line   { flex: 1; height: 1px; background: var(--line-strong); }

/* ─────────────────────────────────────────────
   FOOTER
───────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--line);
  padding: 44px 0; margin-top: 80px;
  color: var(--text-dim); font-size: 13px;
  background: var(--surface);
}
.footer-inner {
  display: flex; justify-content: space-between; flex-wrap: wrap;
  gap: 20px; align-items: center;
}
.footer a { color: var(--text-dim); }
.footer a:hover { color: var(--accent); }

/* ─────────────────────────────────────────────
   STATES (loading / empty / error)
───────────────────────────────────────────── */
.state {
  text-align: center; padding: 72px 24px; color: var(--text-dim);
}
.state h3 { margin: 0 0 8px; font-size: 18px; font-weight: 700; color: var(--text); }
.state p  { margin: 0; font-size: 14px; }
.state--error h3 { color: var(--danger); }
.spinner {
  width: 36px; height: 36px; border-radius: 50%;
  border: 3px solid var(--line-strong);
  border-top-color: var(--accent);
  animation: spin 0.75s linear infinite;
  margin: 0 auto 16px;
}

/* ─────────────────────────────────────────────
   HOME — Connected (Doctolib-style)
───────────────────────────────────────────── */
.home-auth-hero {
  background: var(--surface); border-bottom: 1px solid var(--line-strong);
  padding: 52px 0 44px; position: relative; overflow: hidden;
}
.home-auth-hero::before {
  content: ''; position: absolute;
  width: 700px; height: 700px; border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 65%);
  top: -250px; right: -80px; pointer-events: none;
}
.home-auth-hero .container { position: relative; }
.home-auth-eyebrow { margin: 0 0 10px; font-size: 16px; color: var(--text-dim); font-weight: 400; }
.home-auth-eyebrow strong { color: var(--text); font-weight: 700; }
.home-auth-title {
  font-size: clamp(28px, 4vw, 60px); font-weight: 800;
  letter-spacing: -0.04em; color: var(--text); margin: 0 0 32px; line-height: 1.12;
}
.home-auth-bar { max-width: 100%; }
.home-auth-body { padding-top: 36px; }

/* Quick categories */
.home-quick-cats { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.home-cat {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; background: var(--surface);
  border: 1.5px solid var(--line-strong); border-radius: var(--radius);
  font-size: 14px; font-weight: 600; color: var(--text-dim);
  cursor: pointer; box-shadow: var(--shadow-xs);
  white-space: nowrap; transition: all 0.22s var(--spring);
}
.home-cat:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.home-cat--active {
  border-color: var(--accent) !important; background: var(--accent-bg) !important;
  color: var(--accent) !important; box-shadow: 0 0 0 1px var(--accent), var(--shadow-xs) !important;
}
.home-cat-ico { font-size: 18px; line-height: 1; }
.home-cat--check input[type="checkbox"] {
  position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none;
}
.home-cat--check { user-select: none; }

/* Activity bar */
.home-activity-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 24px; }
.home-act-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 600; text-decoration: none;
  border: 1.5px solid var(--line-strong); background: var(--surface);
  color: var(--text-dim); box-shadow: var(--shadow-xs);
  transition: transform 0.22s var(--spring), box-shadow 0.22s;
}
.home-act-chip:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.home-act-chip--accent { background: var(--accent-bg); color: var(--accent); border-color: rgba(201,148,74,0.3); }
.home-act-chip--blue   { background: var(--accent-2-bg); color: var(--accent-2); border-color: rgba(58,123,213,0.25); }

/* Results header */
.home-results-header {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 16px; margin: 16px 0 20px;
}
.home-results-header h2 { font-size: 22px; font-weight: 800; letter-spacing: -0.03em; margin: 0; color: var(--text); }

/* Card avatar */
.card-avatar { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; border: 1.5px solid var(--line-strong); flex-shrink: 0; }
.card-avatar-initials {
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-bg); color: var(--accent);
  font-size: 15px; font-weight: 800; letter-spacing: -0.02em;
}

/* ─────────────────────────────────────────────
   UTILS
───────────────────────────────────────────── */
.muted  { color: var(--text-muted); }
.dimmed { color: var(--text-dim); }
.accent { color: var(--accent); }
.success { color: var(--success); }
.danger  { color: var(--danger); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.row-inline { display: flex; align-items: center; flex-wrap: wrap; }
.divider { height: 1px; background: var(--line); margin: 24px 0; }
.chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 100px;
  font-size: 12px; font-weight: 600;
  background: var(--surface-2); color: var(--text-dim);
  border: 1px solid var(--line);
}
.chip.green { background: var(--success-bg); color: var(--success); border-color: rgba(30,158,94,0.2); }
.chip.gold  { background: var(--accent-bg);  color: var(--accent);  border-color: rgba(201,148,74,0.2); }
.chip.blue  { background: var(--accent-2-bg); color: var(--accent-2); border-color: rgba(58,123,213,0.2); }
.chip.red   { background: var(--danger-bg);  color: var(--danger);  border-color: rgba(204,76,56,0.2); }

/* ─────────────────────────────────────────────
   CTA SECTION
───────────────────────────────────────────── */
.cta-section {
  padding: 96px 0;
}
.cta-inner {
  display: grid; grid-template-columns: 1fr auto;
  gap: 64px; align-items: center;
  padding: 56px 64px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-diffuse);
  position: relative; overflow: hidden;
}
.cta-inner::before {
  content: '';
  position: absolute; top: -150px; right: -100px;
  width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 65%);
  pointer-events: none;
}
.cta-text h2,
.cta-inner-accent h2 {
  font-size: clamp(28px, 3.5vw, 54px);
  font-weight: 800; letter-spacing: -0.04em;
  margin: 0 0 14px; line-height: 1.1;
  text-wrap: balance;
}
.cta-text p {
  color: var(--text-dim); font-size: 17px; margin: 0; line-height: 1.65;
  max-width: 480px;
}
.cta-actions { display: flex; flex-direction: column; gap: 12px; flex-shrink: 0; }

/* ─────────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────────── */
@media (max-width: 1100px) {
  .hero { min-height: auto; padding: 72px 0 64px; }
  .hero-split { grid-template-columns: 1fr; gap: 52px; }
  .hero-content { max-width: 640px; }
}

@media (max-width: 960px) {
  .two-col      { grid-template-columns: 1fr; }
  .profile-hero { grid-template-columns: 1fr; }
  .nav-links    { display: none; }
  .nav-burger   { display: inline-flex; }
  .nav-cta .btn { display: none; }
  .nav-cta .nav-user-name { display: none; }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .process-grid::before { display: none; }
  .auth-page    { grid-template-columns: 1fr; }
  .auth-brand-panel { display: none; }
  .auth-form-panel { padding: 48px 24px; }
  .cta-inner    { grid-template-columns: 1fr; gap: 32px; padding: 40px 36px; }
  .cta-actions  { flex-direction: row; }
}

@media (max-width: 720px) {
  .search-bar { grid-template-columns: 1fr; border-radius: var(--radius); }
  .search-bar .field { border-right: 0; border-bottom: 1px solid var(--line); }
  .search-bar .search-go { border-radius: 0 0 calc(var(--radius) - 1px) calc(var(--radius) - 1px); padding: 14px; }
  .hero   { padding: 56px 0 48px; }
  .hero h1 { font-size: clamp(34px, 9vw, 52px); }
  .hero-split { gap: 36px; }
  /* Mobile : un seul diptyque, compact */
  .proof-diptych:nth-child(2) { display: none; }
  .proof-trust-strip { justify-content: center; }
  .features { grid-template-columns: 1fr; }
  .features .feature:nth-child(even) { margin-top: 0; }
  .stats-row { flex-wrap: wrap; }
  .stat-item { min-width: 50%; padding: 16px; }
  .stat-item:first-child { padding-left: 16px; border-left: 1px solid var(--line); }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .form-card { padding: 28px 20px; }
  .process-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .container { padding: 0 18px; }
  .features { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr; }
  .options-grid { grid-template-columns: 1fr 1fr; }
  .booking-type { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat-item  { min-width: 100%; }
  .nav-cta .btn-secondary { display: none; }
  .cta-inner { padding: 28px 20px; }
  .cta-actions { flex-direction: column; }
  .cta-actions .btn { width: 100%; }
}

/* ════════════════════════════════════════════════════════════════════════════
   PROOF-FIRST EDITORIAL — tokens, components, overrides
   ════════════════════════════════════════════════════════════════════════════ */

:root {
  --text-display:   #1A1814;
  --diptych-before: linear-gradient(140deg, #C8BAA0 0%, #B8A88C 100%);
  --diptych-after:  linear-gradient(140deg, #C8DFC2 0%, #A8CCA0 100%);
}
[data-theme="dark"] {
  --text-display:   #F0EBE2;
  --diptych-before: linear-gradient(140deg, #3A332A 0%, #2A261E 100%);
  --diptych-after:  linear-gradient(140deg, #1E2E1E 0%, #162416 100%);
}

/* ── Hero proof grid ────────────────────────────────────────────────────── */
.hero-proof {
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100%;
}
.proof-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.proof-diptych {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.proof-diptych:nth-child(2) {
  margin-left: 20px;
  margin-right: -20px;
}
.proof-tile {
  border-radius: 10px;
  aspect-ratio: 4 / 3;
  position: relative;
  overflow: hidden;
}
.proof-tile,
.tdc-photo {
  background-color: var(--surface-2);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}
.proof-diptych:nth-child(1) .proof-tile--before { background-image: linear-gradient(rgba(0,0,0,.08),rgba(0,0,0,.08)),url('/images/projects/renovation-carpentry.jpg'); }
.proof-diptych:nth-child(1) .proof-tile--after  { background-image: linear-gradient(rgba(0,0,0,.04),rgba(0,0,0,.04)),url('/images/projects/renovation-paint.jpg'); }
.proof-diptych:nth-child(2) .proof-tile--before { background-image: linear-gradient(rgba(0,0,0,.08),rgba(0,0,0,.08)),url('/images/projects/renovation-electric.jpg'); }
.proof-diptych:nth-child(2) .proof-tile--after  { background-image: linear-gradient(rgba(0,0,0,.04),rgba(0,0,0,.04)),url('/images/projects/renovation-tiles.jpg'); }
.proof-tile-label {
  position: absolute;
  bottom: 8px; left: 8px;
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  background: rgba(0,0,0,0.42); color: #fff;
  padding: 3px 7px; border-radius: 4px;
  backdrop-filter: blur(4px);
}
.proof-score-badge {
  position: absolute;
  top: 8px; right: 8px;
  background: var(--accent); color: #fff;
  font-size: 12px; font-weight: 800;
  padding: 3px 9px; border-radius: 6px;
  letter-spacing: -0.02em;
}
.proof-trust-strip {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px; font-weight: 600;
  color: var(--text-muted);
}
.proof-trust-strip svg {
  width: 13px; height: 13px;
  stroke: var(--accent); fill: none; stroke-width: 2;
  flex-shrink: 0;
}
.proof-attribution {
  font-size: 12px; font-weight: 500; color: var(--text-muted);
}

/* ── Trust bar (replaces stats row) ────────────────────────────────────── */
.trust-bar {
  background: #1A1814;
  color: rgba(255,255,255,0.65);
  padding: 13px 0;
}
[data-theme="dark"] .trust-bar {
  background: #060E1C;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.trust-bar-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}
.trust-bar-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px; font-weight: 500;
  white-space: nowrap;
}
.trust-bar-item svg {
  width: 13px; height: 13px;
  stroke: var(--accent); fill: none; stroke-width: 2;
  flex-shrink: 0;
}
.trust-bar-sep {
  opacity: 0.22; font-size: 18px; line-height: 1; user-select: none;
}

/* ── Trust demo (replaces 4-icon feature grid) ─────────────────────────── */
.trust-demo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
  margin-top: 48px;
}
.trust-demo-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-diffuse);
  /* Cette carte figure un élément d'interface : au-delà de cette largeur elle
     ne ressemble plus à une carte mais à un panneau vide. */
  max-width: 580px;
  width: 100%;
  margin-inline: auto;
}
.tdc-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: start;
  margin-bottom: 20px;
}
.tdc-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  letter-spacing: 0.03em;
}
.tdc-name  { font-weight: 700; font-size: 15px; color: var(--text); line-height: 1.2; margin-bottom: 2px; }
.tdc-trade { font-size: 13px; color: var(--text-dim); font-weight: 500; margin-bottom: 4px; }
.tdc-rating { font-size: 12px; color: var(--text-muted); }
.tdc-rating strong { color: var(--accent); }
.tdc-score {
  text-align: center;
  background: var(--accent-bg, rgba(201,148,74,.1));
  border: 1px solid rgba(201,148,74,.22);
  border-radius: 10px;
  padding: 7px 12px;
  flex-shrink: 0;
  min-width: 52px;
}
.tdc-score-num   { font-size: 22px; font-weight: 800; color: var(--accent); line-height: 1; letter-spacing: -0.03em; }
.tdc-score-label { font-size: 10px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; }
.tdc-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 14px;
}
.tdc-photo {
  border-radius: 8px;
  aspect-ratio: 4 / 3;
  position: relative;
  overflow: hidden;
}
.tdc-photo--before { background-image: url('/images/projects/renovation-electric.jpg'); }
.tdc-photo--after  { background-image: url('/images/projects/renovation-paint.jpg'); }
.tdc-photo-label {
  position: absolute;
  bottom: 6px; left: 6px;
  font-size: 9px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  background: rgba(0,0,0,0.4); color: #fff;
  padding: 2px 6px; border-radius: 3px;
}
.tdc-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.tdc-badge {
  font-size: 11px; font-weight: 600;
  padding: 3px 9px; border-radius: 20px;
}
.tdc-badge--blue {
  background: var(--accent-2-bg, rgba(58,123,213,.1));
  color: var(--accent-2, #3A7BD5);
}
.tdc-badge--gold {
  background: var(--accent-bg, rgba(201,148,74,.1));
  color: var(--accent);
}
.trust-callouts {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 28px;
  padding-top: 8px;
}
.trust-callout {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 14px;
  align-items: start;
}
.tc-num {
  font-size: 11px; font-weight: 800;
  letter-spacing: 0.08em; color: var(--accent);
  padding-top: 3px;
}
.tc-body h4 { font-size: 15px; font-weight: 700; color: var(--text); margin: 0 0 5px; }
.tc-body p  { font-size: 13.5px; color: var(--text-dim); line-height: 1.6; margin: 0; }

/* ── Process band (replaces circle-numbered grid) ───────────────────────── */
.process-band {
  display: grid;
  grid-template-columns: 1fr 32px 1fr 32px 1fr 32px 1fr;
  gap: 0 4px;
  align-items: start;
  margin-top: 48px;
}
.pb-step { padding: 0 8px; }
.pb-num {
  font-size: 72px; font-weight: 800;
  color: var(--text); opacity: 0.055;
  line-height: 0.85; letter-spacing: -0.04em;
  margin-bottom: -14px;
  user-select: none;
  font-variant-numeric: tabular-nums;
}
.pb-body h4 { font-size: 15px; font-weight: 700; color: var(--text); margin: 0 0 6px; position: relative; z-index: 1; }
.pb-body p  { font-size: 13.5px; color: var(--text-dim); line-height: 1.55; margin: 0; }
.pb-connector {
  display: flex; align-items: center; justify-content: center;
  padding-top: 52px;
}
.pb-connector::after {
  content: '';
  display: block;
  width: 20px; height: 1px;
  background: var(--line-strong, #D0CCCA);
  opacity: 0.6;
}

/* ── Magazine grid (featured artisans) ───────────────────────────────────── */
.grid--magazine { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
/* Carte "à la une" : format éditorial horizontal, photo pleine hauteur */
.grid--magazine > *:first-child {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
}
.grid--magazine > *:first-child .card-media {
  aspect-ratio: auto;
  height: 100%;
  min-height: 260px;
}
.grid--magazine > *:first-child .card-body { padding: 26px; }
.grid--magazine > *:first-child .card-title { font-size: 21px; }

/* ── Accent CTA section ─────────────────────────────────────────────────── */
.cta-section--accent {
  background: var(--accent);
  padding: 72px 0;
}
.cta-inner-accent {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
}
.cta-inner-accent h2 { color: #fff; margin-bottom: 10px; }
.cta-inner-accent p  { color: rgba(255,255,255,0.8); margin: 0; }
.btn-cta-accent {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: var(--accent);
  font-family: 'Outfit', system-ui, sans-serif;
  font-weight: 700; font-size: 15px;
  padding: 15px 28px;
  border-radius: var(--radius);
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.2s var(--spring), box-shadow 0.2s var(--spring);
  flex-shrink: 0;
}
.btn-cta-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px -8px rgba(0,0,0,0.28);
}
.btn-cta-accent svg { flex-shrink: 0; }

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .trust-demo { gap: 36px; }
  /* Le proof grid passe sous le texte : 2 diptyques côte à côte, pleine largeur */
  .proof-grid { flex-direction: row; gap: 14px; }
  .proof-diptych { flex: 1; }
  .proof-diptych:nth-child(2) { margin-left: 0; margin-right: 0; }
}
@media (max-width: 960px) {
  .trust-demo { grid-template-columns: 1fr; gap: 28px; }
  .trust-callouts { gap: 20px; }
  .process-band {
    grid-template-columns: 1fr 1fr;
    gap: 24px 16px;
  }
  .pb-connector { display: none; }
  .cta-inner-accent { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 720px) {
  .trust-bar { padding: 16px 0; }
  .trust-bar-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 18px;
  }
  .trust-bar-item { white-space: normal; font-size: 12px; align-items: flex-start; }
  .trust-bar-item svg { margin-top: 2px; }
  .trust-bar-sep { display: none; }
  .grid--magazine > *:first-child {
    grid-column: span 1;
    display: flex;
    flex-direction: column;
  }
  .grid--magazine > *:first-child .card-media { aspect-ratio: 16 / 10; height: auto; min-height: 0; }
  .grid--magazine > *:first-child .card-body { padding: 20px; }
  .grid--magazine > *:first-child .card-title { font-size: 17px; }
  .process-band { grid-template-columns: 1fr; gap: 20px; }
  .pb-num { font-size: 52px; }
}
@media (max-width: 480px) {
  .cta-section--accent { padding: 48px 0; }
  .trust-bar-inner { grid-template-columns: 1fr; gap: 8px; }
}

/* ── Photos : avatar + galerie de réalisations ──────────────────────────── */

/* `.avatar-lg` sert de conteneur d'initiales ET de balise <img> : on force
   object-fit pour qu'une photo non carrée ne soit jamais déformée. */
img.avatar-lg,
img.card-avatar {
  object-fit: cover;
  background: var(--surface-2);
}

.avatar-editor {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* Galerie publique (fiche artisan) */
.work-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 12px;
}
.work-shot {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface-2);
}
.work-shot img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.5s var(--spring);
}
.work-shot:hover img { transform: scale(1.05); }
.work-shot figcaption {
  padding: 9px 12px;
  font-size: 12.5px;
  color: var(--text-dim);
  border-top: 1px solid var(--line);
  background: var(--surface);
}

/* Gestionnaire (dashboard artisan) */
.work-manager {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}
.work-thumb {
  margin: 0;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface-2);
}
.work-thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.work-thumb-del {
  position: absolute;
  top: 6px; right: 6px;
  width: 26px; height: 26px;
  display: flex; align-items: center; justify-content: center;
  border: 0; border-radius: 50%;
  background: rgba(10,22,40,0.6);
  backdrop-filter: blur(6px);
  color: #fff; font-size: 17px; line-height: 1;
  cursor: pointer;
  transition: background 0.18s;
}
.work-thumb-del:hover { background: var(--danger); }
.work-thumb-caption {
  width: 100%;
  border: 0;
  border-top: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-size: 12px;
  padding: 8px 10px;
}
.work-thumb-caption:focus {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.work-add {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  aspect-ratio: 1 / 1;
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--radius);
  color: var(--text-dim);
  font-size: 12.5px; font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.work-add span[aria-hidden] { font-size: 26px; font-weight: 300; line-height: 1; }
.work-add:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-bg);
}

@media (max-width: 480px) {
  .work-gallery { grid-template-columns: 1fr 1fr; }
  .work-manager { grid-template-columns: 1fr 1fr; }
  .avatar-editor { gap: 14px; }
}

/* ── Poste de modération ────────────────────────────────────────────────── */

.auth-page--solo { grid-template-columns: 1fr; }

.mod-tabs { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.mod-tab {
  padding: 9px 18px; border-radius: 100px; cursor: pointer;
  border: 1px solid var(--line-strong); background: var(--surface);
  font-family: inherit; font-size: 14px; font-weight: 600; color: var(--text-dim);
  transition: all 0.18s;
}
.mod-tab:hover  { border-color: var(--accent); color: var(--accent); }
.mod-tab.active { background: var(--accent); border-color: var(--accent); color: #fff; }

.mod-filters { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.mod-filters .chip { cursor: pointer; border: 1px solid var(--line-strong); }

.doc-list { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); }
.doc-card { margin: 0; }
.doc-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 12px; flex-wrap: wrap; margin-bottom: 14px;
}
.doc-siret {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: var(--surface-2); border-radius: 10px;
  padding: 10px 12px; margin-bottom: 12px; font-size: 13px;
}
.doc-siret-res { font-size: 13px; font-weight: 600; }
.doc-preview { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.doc-img   { max-width: 100%; border-radius: var(--radius); border: 1px solid var(--line); display: block; }
.doc-frame { width: 100%; height: 460px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.doc-note {
  background: var(--danger-bg); color: var(--danger);
  border-radius: 10px; padding: 10px 12px; font-size: 13px; margin: 0 0 12px;
}
.doc-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* Dépôt des justificatifs (espace artisan) */
.doc-slot {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  padding: 14px 0; border-bottom: 1px solid var(--line);
}
.doc-slot:last-of-type { border-bottom: 0; }
.doc-slot-info { flex: 1; min-width: 220px; }

.mod-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.mod-table th {
  text-align: left; font-size: 11px; font-weight: 700; letter-spacing: 0.09em;
  text-transform: uppercase; color: var(--text-muted);
  padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); white-space: nowrap;
}
.mod-table td { padding: 12px 12px 12px 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
.mod-table tr:last-child td { border-bottom: 0; }
.mod-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }

@media (max-width: 720px) {
  .doc-list { grid-template-columns: 1fr; }
  .doc-frame { height: 320px; }
}

/* ── Consultation vidéo ─────────────────────────────────────────────────── */

.call-body { margin: 0; background: #0A1628; }
.call-shell { min-height: 100dvh; display: flex; align-items: center; justify-content: center; }

/* Écran d'autorisation caméra/micro */
.call-gate { width: 100%; padding: 24px; display: flex; justify-content: center; }
.call-gate-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: 40px 32px;
  max-width: 460px; width: 100%;
  text-align: center;
}
.call-gate-avatar { display: flex; justify-content: center; margin-bottom: 18px; }
.call-gate-card h1 { font-size: 24px; font-weight: 800; letter-spacing: -0.03em; margin: 0 0 10px; text-wrap: balance; }
.call-gate-sub { color: var(--text-dim); font-size: 15px; line-height: 1.6; margin: 0 0 24px; }
.call-gate-perms { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-bottom: 24px; }
.call-perm {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 14px; border-radius: 100px;
  background: var(--surface-2); border: 1px solid var(--line);
  font-size: 13px; font-weight: 600; color: var(--text-dim);
}
.call-perm-ico { font-size: 15px; }
.call-gate-note { font-size: 12.5px; color: var(--text-muted); margin: 16px 0 0; line-height: 1.5; }

/* Scène d'appel */
.call-stage { position: relative; width: 100%; height: 100dvh; background: #060E1C; overflow: hidden; }
.call-remote { width: 100%; height: 100%; object-fit: cover; background: #060E1C; }
.call-local {
  position: absolute; right: 16px; bottom: 104px;
  width: clamp(96px, 22vw, 200px); aspect-ratio: 3 / 4;
  object-fit: cover; border-radius: var(--radius);
  border: 2px solid rgba(255,255,255,0.18);
  box-shadow: 0 8px 28px rgba(0,0,0,0.45);
  background: #0F2240;
  transform: scaleX(-1); /* effet miroir : plus naturel pour l'auto-image */
}
.call-waiting {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; color: rgba(255,255,255,0.72); font-size: 15px;
}
.call-topbar {
  position: absolute; top: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 18px 20px;
  background: linear-gradient(rgba(0,0,0,0.55), transparent);
  color: #fff;
}
.call-peer-name { font-weight: 700; font-size: 16px; letter-spacing: -0.02em; }
.call-status { font-size: 13px; color: rgba(255,255,255,0.72); }

.call-controls {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; align-items: center; justify-content: center; gap: 16px;
  padding: 20px 20px calc(20px + env(safe-area-inset-bottom));
  background: linear-gradient(transparent, rgba(0,0,0,0.6));
}
.call-btn {
  width: 58px; height: 58px; border-radius: 50%;
  border: 0; cursor: pointer;
  background: rgba(255,255,255,0.16);
  backdrop-filter: blur(10px);
  color: #fff; font-size: 21px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, transform 0.2s var(--spring);
}
.call-btn:hover { background: rgba(255,255,255,0.26); transform: translateY(-2px); }
.call-btn.off { background: rgba(255,255,255,0.9); color: #0A1628; }
.call-btn--end { background: var(--danger); }
.call-btn--end:hover { background: #b8422f; }

@media (max-width: 480px) {
  .call-gate-card { padding: 28px 20px; }
  .call-btn { width: 52px; height: 52px; font-size: 19px; }
  .call-local { bottom: 96px; right: 12px; }
}

/* ── Carte auth (login/register) ────────────────────────────────────────── */
/* Spécificité (0,2,0) pour surpasser `.auth-form-panel .form-card` (padding: 0) */
.auth-form-panel .auth-card {
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  padding: 40px;
  border-radius: var(--radius-xl);
  max-width: 440px;
}
.demo-hint {
  margin-top: 20px;
  padding: 12px 14px;
  background: var(--surface-2);
  border: 1px dashed var(--line-strong);
  border-radius: 10px;
  font-size: 12.5px;
  color: var(--text-dim);
  text-align: left;
  line-height: 1.7;
}
.demo-hint strong { color: var(--text); font-weight: 600; }
.demo-hint code {
  font-size: 11.5px;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 1px 6px;
  border-radius: 5px;
  color: var(--text);
}
@media (max-width: 480px) {
  .auth-form-panel .auth-card { padding: 28px 20px; }
}

/* ════════════════════════════════════════════════════════════════════════════
   MOBILE POLISH + LEGACY COMPONENT COMPATIBILITY
   The markup predates the v2 design-system names in a few places. Keeping the
   aliases here prevents partially unstyled flows while the mobile rules below
   establish one compact, touch-first behaviour across every page.
   ════════════════════════════════════════════════════════════════════════════ */

:root {
  --ink: var(--surface-2);
  --ink-2: var(--surface-3);
}

html,
body {
  max-width: 100%;
  overflow-x: clip;
}

button,
[role="button"],
a,
label {
  -webkit-tap-highlight-color: transparent;
}

button,
.btn,
.option-card,
.pill,
.tag {
  touch-action: manipulation;
}

.hide { display: none !important; }
.center { text-align: center; }
.mt-1 { margin-top: 6px !important; }
.mt-2 { margin-top: 12px !important; }
.mt-3 { margin-top: 20px !important; }
.mb-2 { margin-bottom: 12px !important; }
.mb-3 { margin-bottom: 20px !important; }
.text-xs { font-size: 12px !important; }
.text-sm { font-size: 14px !important; }
.text-success { color: var(--success); }

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.48;
  box-shadow: none;
  transform: none !important;
}

/* Shared filter chips (search uses pills outside the legacy .filters wrapper). */
.pill {
  min-height: 36px;
  padding: 7px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-dim);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  box-shadow: var(--shadow-xs);
  transition: all 0.2s var(--spring);
}
.pill:hover,
.pill.active {
  border-color: var(--accent);
  background: var(--accent-bg);
  color: var(--accent);
}

/* Four-step quote flow. */
.steps-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 30px;
}
.steps-bar .step {
  width: auto;
  height: 5px;
  border: 0;
  border-radius: 999px;
  background: var(--surface-3);
  box-shadow: none;
}
.steps-bar .step.active { background: var(--accent); box-shadow: none; }
.steps-bar .step.done { background: var(--success); }
.step-label {
  display: block;
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.option-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}
.option-grid .option-card {
  min-width: 0;
  padding: 16px 12px;
  border-radius: 12px;
}
.option-card .t {
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
}
.option-card .s {
  margin-top: 3px;
  color: var(--text-dim);
  font-size: 12px;
  line-height: 1.3;
}
.option-grid .option-card .ico {
  margin-bottom: 7px;
  font-size: 22px;
  line-height: 1;
}

/* Before/after proof cards used on profiles and dashboards. */
.project {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
}
.project-verified-tag {
  position: absolute;
  z-index: 2;
  top: 10px;
  left: 10px;
  padding: 5px 9px;
  border: 1px solid rgba(255,255,255,0.32);
  border-radius: 999px;
  background: rgba(15,34,64,0.82);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  backdrop-filter: blur(10px);
}
.before-after {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px;
  overflow: hidden;
  background: var(--surface-2);
}
.before-after > div {
  position: relative;
  min-width: 0;
  aspect-ratio: 4 / 3;
  background: linear-gradient(145deg, var(--surface-2), var(--surface-3));
}
.before-after img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.before-after img:not([src]),
.before-after img[src=""] { visibility: hidden; }
.card-media.image-fallback,
.before-after > .image-fallback {
  background:
    radial-gradient(circle at 70% 18%, var(--accent-glow), transparent 34%),
    linear-gradient(145deg, var(--surface-2), var(--surface-3));
}
.card-media img[hidden],
.before-after img[hidden] { display: none !important; }
.card-media.image-fallback::after,
.before-after > .image-fallback::after {
  content: 'Photo indisponible';
  position: absolute;
  top: 50%;
  left: 50%;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-align: center;
  transform: translate(-50%, -50%);
}
.before-after .label {
  position: absolute;
  bottom: 8px;
  left: 8px;
  padding: 3px 7px;
  border-radius: 5px;
  background: rgba(10,22,40,0.68);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.project-body { padding: 16px; }
.project-body h4 {
  margin: 0 0 6px;
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
}
.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin-top: 10px;
  color: var(--text-muted);
  font-size: 12px;
}
.Atello-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}
.mobile-filter-toggle { display: none; }
.mobile-profile-actions { display: none; }

/* Mobile navigation is a stable dropdown overlay, so opening it never pushes
   the current page several hundred pixels downward. */
.nav { isolation: isolate; }
.mobile-menu {
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  max-height: calc(100dvh - 64px);
  overflow-y: auto;
  overscroll-behavior: contain;
  box-shadow: var(--shadow-lg);
}

@media (max-width: 720px) {
  :root { --radius-xl: 22px; }

  body { line-height: 1.5; }

  .container { padding-right: 18px; padding-left: 18px; }
  .section { padding: 44px 0; }
  .section-head {
    align-items: flex-start;
    margin-bottom: 24px;
  }
  .section-head h2 { font-size: 28px; line-height: 1.08; }
  .section-head p { font-size: 14px; line-height: 1.5; }
  .section-label { margin-bottom: 9px; }
  .section-head > .btn { display: none; }

  .nav .nav-inner {
    min-height: 62px;
    padding-top: max(10px, env(safe-area-inset-top));
    padding-bottom: 10px;
  }
  .brand { gap: 9px; font-size: 18px; }
  .brand-icon { width: 32px; height: 32px; }
  .theme-toggle,
  .nav-burger { width: 42px; height: 42px; }
  .nav-cta { gap: 7px; }
  .mobile-menu { padding: 8px 14px calc(14px + env(safe-area-inset-bottom)); }
  .mobile-menu a.mm-link { min-height: 46px; padding: 12px; }
  .mm-cta { flex-direction: column; }
  .mm-cta .btn { min-height: 46px; }

  .btn { min-height: 44px; padding: 10px 18px; }
  .btn-sm { min-height: 40px; }
  .btn-lg { min-height: 50px; padding: 12px 22px; }
  .form-control { min-height: 48px; font-size: 16px; }
  textarea.form-control { min-height: 108px; }
  .form-group { margin-bottom: 16px; }
  .form-card { padding: 24px 20px; }
  .form-card h1 { font-size: 27px; }
  .form-card .sub { margin-bottom: 24px; }

  /* Home: keep the proof-led message, remove ceremonial height. */
  .hero { min-height: auto; padding: 38px 0 34px; }
  .hero-split { gap: 0; }
  .hero-content { width: 100%; min-width: 0; }
  .hero h1 {
    margin-bottom: 18px;
    font-size: clamp(34px, 10vw, 44px);
    line-height: 1.02;
  }
  .hero h1 br { display: none; }
  .hero p { margin-bottom: 24px; font-size: 15.5px; line-height: 1.58; }
  .eyebrow { margin-bottom: 18px; padding: 5px 11px; font-size: 12px; }
  .hero-visual { display: none; }
  .search-bar .field { padding: 11px 16px; }
  .search-bar .search-go { min-height: 50px; }
  .popular-tags {
    flex-wrap: nowrap;
    gap: 7px;
    margin: 16px -18px 0;
    padding: 2px 18px 6px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .popular-tags::-webkit-scrollbar { display: none; }
  .popular-tags > span { display: none; }
  .popular-tags .tag { flex: 0 0 auto; min-height: 38px; padding: 7px 13px; }

  .trust-bar { padding: 12px 0; }
  .trust-bar-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px 14px; }
  .trust-bar-item { font-size: 11.5px; line-height: 1.3; }
  .trust-demo { margin-top: 24px; }
  .trust-demo-card { padding: 18px; border-radius: 18px; }
  .trust-callouts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    padding-top: 0;
  }
  .trust-callout { grid-template-columns: 1fr; gap: 3px; }
  .tc-num { padding: 0; }
  .tc-body h4 { margin: 0; font-size: 14px; }
  .tc-body p { display: none; }

  /* Artisan cards become compact result rows instead of tall poster cards. */
  .grid,
  .grid--magazine {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
  .grid .card,
  .grid--magazine > *:first-child {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    min-height: 150px;
    border-radius: 16px;
  }
  .grid .card-media,
  .grid--magazine > *:first-child .card-media {
    width: 112px;
    height: 100%;
    min-height: 150px;
    aspect-ratio: auto;
  }
  .grid .card-body,
  .grid--magazine > *:first-child .card-body { min-width: 0; padding: 14px; }
  .grid .card-title,
  .grid--magazine > *:first-child .card-title { font-size: 16px; }
  .grid .card-sub { margin-bottom: 8px; line-height: 1.3; }
  .grid .card-meta { padding-top: 9px; }
  .grid .atello-badge:nth-child(n+3) { display: none; }
  .grid .card-badge { top: 8px; left: 8px; padding: 4px 7px; font-size: 10px; }
  .grid .card-badge.video { display: none; }

  .process-band {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 14px;
    margin-top: 24px;
  }
  .pb-step { padding: 0; }
  .pb-num { margin-bottom: -10px; font-size: 44px; }
  .pb-body h4 { font-size: 14px; }
  .pb-body p { font-size: 12.5px; line-height: 1.45; }
  .cta-section--accent { padding: 42px 0; }
  .cta-inner-accent { gap: 20px; }
  .cta-inner-accent h2 { font-size: 28px; line-height: 1.1; }
  .btn-cta-accent { width: 100%; justify-content: center; min-height: 50px; }

  /* Search results: the filters are compact and the list starts quickly. */
  .search-page-header { padding-top: 24px !important; }
  .search-page-header .search-bar { margin-bottom: 20px !important; }
  .search-page-header .search-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .search-page-header .search-bar .field:first-child { grid-column: 1 / -1; }
  .search-page-header .search-bar .field {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .search-page-header .search-bar .field:nth-child(2) { border-right: 1px solid var(--line); }
  .search-page-header .search-bar .search-go {
    grid-column: 1 / -1;
    border-radius: 0 0 calc(var(--radius) - 1px) calc(var(--radius) - 1px);
  }
  .search-layout { padding: 18px 0 44px !important; }
  .mobile-filter-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 48px;
    padding: 10px 14px;
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    background: var(--surface);
    color: var(--text);
    font-size: 14px;
    font-weight: 700;
    box-shadow: var(--shadow-xs);
    cursor: pointer;
  }
  .search-sidebar {
    display: none !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    gap: 0 12px !important;
    padding: 14px !important;
    border: 1px solid var(--line) !important;
    border-radius: 16px;
    background: var(--surface);
    box-shadow: var(--shadow-xs);
  }
  .search-sidebar.is-open { display: grid !important; }
  .search-sidebar .filter-group { min-width: 0; }
  .filter-group-label { margin-bottom: 7px !important; }
  .sort-select { min-height: 44px; font-size: 16px !important; }
  .filter-checkbox { min-height: 44px; padding: 8px 0 !important; }
  .filter-checkbox input[type="checkbox"] { width: 20px !important; height: 20px !important; }
  #tag-filters {
    flex-wrap: nowrap !important;
    margin: 0 -14px;
    padding: 2px 14px 4px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  #tag-filters::-webkit-scrollbar { display: none; }
  #tag-filters > .muted { display: none; }
  #tag-filters .pill { flex: 0 0 auto; }
  .results-header { margin-bottom: 12px !important; }

  /* Profile: immediate identity and trust, with a persistent primary action. */
  .profile-hero {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 14px;
    padding: 26px 0 22px;
  }
  .avatar-lg { width: 72px; height: 72px; border-radius: 18px; font-size: 25px; }
  .profile-info { min-width: 0; }
  .profile-info h1 { font-size: 25px; line-height: 1.05; }
  .profile-info h1 .muted { display: block; margin-top: 5px; font-size: 13px !important; }
  .profile-info .trade { margin-bottom: 9px; font-size: 14px; }
  .profile-info .meta { gap: 7px 12px; font-size: 12.5px; }
  .profile-info > div:nth-of-type(1) {
    display: flex;
    gap: 5px;
    margin: 8px -4px 0 0 !important;
    padding-bottom: 4px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .profile-info > div:nth-of-type(1) .atello-badge { flex: 0 0 auto; }
  .profile-actions {
    display: none;
  }
  .mobile-profile-actions {
    position: fixed;
    z-index: 45;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-columns: 1fr;
    margin: 0;
    padding: 10px 18px calc(10px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line-strong);
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    box-shadow: 0 -8px 24px rgba(10,22,40,0.08);
  }
  .mobile-profile-actions .btn { width: 100%; }
  .mobile-profile-actions .btn-ghost { display: none; }
  body:has(.mobile-profile-actions) { padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
  .two-col { gap: 0; padding: 22px 0; }
  .panel { padding: 18px; margin-bottom: 14px; }
  .panel h3 { margin-bottom: 13px; }
  .before-after > div { aspect-ratio: 1 / 1; }
  .project-body { padding: 14px; }
  .service-row { padding: 14px 0; gap: 10px; }
  .service-row .price-block .p { font-size: 15px; }

  /* Quote and booking flows stay within roughly one phone screen per step. */
  .steps-bar { margin-bottom: 22px; }
  .step-pane > h1 { font-size: 26px !important; line-height: 1.1; }
  .option-grid .option-card { min-height: 92px; }
  .step-pane .center .btn { width: 100%; }
  .booking-type { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .booking-type label { min-width: 0; padding: 14px 10px; }
  .booking-type .ico { margin-bottom: 5px; font-size: 20px; }

  /* Dashboards: dense, readable cards rather than long sheets. */
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 20px;
  }
  .stat-card { min-width: 0; padding: 15px; }
  .stat-card .num { font-size: 26px; }
  .lead-row,
  .booking-row { flex-direction: column; gap: 9px; padding: 14px 0; }
  .lead-row > *,
  .booking-row > * { min-width: 0; }
  .lead-row .Atello-badge,
  .booking-row .Atello-badge { align-self: flex-start; }
  #root form [style*="grid-template-columns:1fr 1fr 1fr"],
  #root form [style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
  #root .panel > div[style*="display:flex"][style*="gap:8px"] { flex-wrap: wrap; }

  .tabs {
    gap: 2px !important;
    margin-right: -18px;
    margin-left: -18px;
    padding: 0 18px 6px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .tabs::-webkit-scrollbar { display: none; }
  .tabs .tab { flex: 0 0 auto; min-height: 44px; }
  .admin-table {
    display: block;
    width: 100%;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
  }
  .admin-table th,
  .admin-table td { min-width: 120px; padding: 11px 10px; }

  .footer { margin-top: 36px; padding: 28px 0 calc(28px + env(safe-area-inset-bottom)); }
  .footer-inner { align-items: flex-start; gap: 14px; }
  .footer-inner > div { gap: 12px !important; }
  .footer-inner > div:last-child > span { display: none; }
  .toast-host { top: 72px; right: 12px; left: 12px; max-width: none; }
  .dialog-backdrop { align-items: flex-end; padding: 0; }
  .dialog {
    max-width: none;
    padding: 24px 20px calc(20px + env(safe-area-inset-bottom));
    border-radius: 22px 22px 0 0;
  }
}

@media (max-width: 380px) {
  .container { padding-right: 14px; padding-left: 14px; }
  .hero { padding-top: 30px; }
  .hero h1 { font-size: 32px; }
  .hero p { font-size: 15px; }
  .popular-tags { margin-right: -14px; margin-left: -14px; padding-right: 14px; padding-left: 14px; }
  .trust-bar-inner { grid-template-columns: 1fr; }
  .grid .card,
  .grid--magazine > *:first-child { grid-template-columns: 96px minmax(0, 1fr); }
  .grid .card-media,
  .grid--magazine > *:first-child .card-media { width: 96px; }
  .profile-hero { grid-template-columns: 60px minmax(0, 1fr); gap: 11px; }
  .avatar-lg { width: 60px; height: 60px; font-size: 21px; }
  .profile-info h1 { font-size: 22px; }
  .option-grid { gap: 8px; }
  .option-grid .option-card { padding: 13px 8px; }
  .auth-form-panel { padding: 20px 14px; }
  .auth-form-panel .auth-card { padding: 24px 18px; }
}

@media (max-height: 520px) and (orientation: landscape) {
  .nav .nav-inner { min-height: 54px; padding-top: 6px; padding-bottom: 6px; }
  .hero { padding: 24px 0; }
  .hero p { margin-bottom: 16px; }
  .auth-form-panel { align-items: flex-start; padding-top: 20px; padding-bottom: 20px; }
  .dialog { max-height: 92dvh; overflow-y: auto; }
}
