/* ==========================================================================
   Pages — home, browse, domain, account, auth, blog, how, pricing
   Style : Swiss — typographique, grille stricte, whitespace généreux
   ========================================================================== */

/* ================================ HOME =================================== */
.hero {
  position: relative;
  padding-block: clamp(4rem, 10vw, 8rem);
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: var(--sp-16);
  align-items: center;
}
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: var(--sp-10); }
}

.hero h1 {
  font-size: clamp(2.5rem, 5.5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin-bottom: var(--sp-6);
  color: var(--text);
}
.hero h1 .highlight {
  color: var(--accent);
  font-style: normal;
}
.hero-sub {
  font-size: var(--fs-lg);
  color: var(--text-secondary);
  margin-bottom: var(--sp-8);
  max-width: 540px;
  line-height: 1.6;
}
.hero-actions {
  display: flex;
  gap: var(--sp-3);
  flex-wrap: wrap;
  margin-bottom: var(--sp-10);
}

.hero-stats {
  display: flex;
  gap: var(--sp-10);
  padding-top: var(--sp-6);
  border-top: 1px solid var(--border);
}
.hero-stat { display: flex; flex-direction: column; gap: var(--sp-1); }
.hero-stat-value {
  font-size: var(--fs-2xl);
  font-weight: 600;
  color: var(--text);
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.hero-stat-label {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  font-weight: 500;
}

.hero-visual { position: relative; }
.hero-preview {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-2);
  box-shadow: var(--shadow-sm);
}
.hero-preview-head {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-4);
  border-bottom: 1px solid var(--border);
  font-size: var(--fs-xs);
  color: var(--text-muted);
}
.hero-preview-head .dots { display: flex; gap: 4px; margin-right: auto; }
.hero-preview-head .dots span {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--border-strong);
}
.hero-preview-list { display: flex; flex-direction: column; }
.hero-preview-item {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: var(--sp-4);
  align-items: center;
  padding: var(--sp-3) var(--sp-4);
  border-bottom: 1px solid var(--border);
  font-size: var(--fs-sm);
}
.hero-preview-item:last-child { border-bottom: none; }
.hero-preview-item .dname {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--text);
  font-size: var(--fs-sm);
}
.hero-preview-item .dprice {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--text);
}
.hero-preview-item .dtimer {
  font-variant-numeric: tabular-nums;
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

/* ------------- grid domaines (cards) ------------- */
.grid-domains {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--sp-4);
}

/* ------------- features ------------- */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-6);
}
@media (max-width: 900px) { .features { grid-template-columns: 1fr; } }

.feature {
  padding: var(--sp-8) var(--sp-6);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color var(--dur) var(--ease);
}
.feature:hover { border-color: var(--border-strong); }
.feature-icon {
  width: 36px; height: 36px;
  border-radius: var(--radius-md);
  background: var(--surface-alt);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--sp-5);
  border: 1px solid var(--border);
}
.feature h3 {
  font-size: var(--fs-lg);
  font-weight: 600;
  margin-bottom: var(--sp-2);
  letter-spacing: -0.015em;
}
.feature p { font-size: var(--fs-sm); color: var(--text-secondary); line-height: 1.65; }

/* ============================== BROWSE =================================== */
.browse-header {
  padding-block: var(--sp-12) var(--sp-8);
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.browse-header h1 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin-bottom: var(--sp-2);
  letter-spacing: -0.03em;
}
.browse-count {
  font-variant-numeric: tabular-nums;
  color: var(--text-muted);
  font-size: var(--fs-sm);
}

.browse-main { padding-block: var(--sp-8) var(--sp-16); }

/* ============================== DOMAIN DETAIL ============================ */
.domain-detail { padding-block: var(--sp-10); }
@media (max-width: 700px) { .domain-detail { padding-block: var(--sp-6); } }

.domain-detail-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: var(--sp-10);
  align-items: start;
}
@media (max-width: 960px) {
  .domain-detail-grid { grid-template-columns: 1fr; gap: var(--sp-6); }
  .domain-detail-grid > :nth-child(2) { order: -1; }
}

.domain-head { margin-bottom: var(--sp-8); }
.domain-head .domain-meta { margin-bottom: var(--sp-4); }
.domain-head-title {
  font-family: var(--font-mono);
  font-size: clamp(1.75rem, 5vw, var(--fs-5xl));
  font-weight: 600;
  color: var(--text);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0 0 var(--sp-4);
  word-break: break-all;
}
.domain-head-lead {
  color: var(--text-secondary);
  font-size: var(--fs-lg);
  line-height: 1.6;
  max-width: 620px;
  margin: 0;
}
@media (max-width: 700px) {
  .domain-head-lead { font-size: var(--fs-base); }
}

.stat-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.stat-strip .stat {
  padding: var(--sp-5);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  min-width: 0;
  border-right: 1px solid var(--border);
}
.stat-strip .stat:last-child { border-right: none; }
.stat-strip .stat-label {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  font-weight: 500;
}
.stat-strip .stat-value {
  font-variant-numeric: tabular-nums;
  font-size: var(--fs-2xl);
  font-weight: 600;
  color: var(--text);
  line-height: 1;
  letter-spacing: -0.02em;
}
.stat-strip .stat-value-sm { font-size: var(--fs-lg); }
.stat-strip .stat-unit {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  font-weight: 500;
  margin-left: 2px;
}
@media (max-width: 560px) {
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .stat-strip .stat {
    padding: var(--sp-4);
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
  }
  .stat-strip .stat:nth-child(even) { border-right: none; }
  .stat-strip .stat:nth-last-child(-n+2) { border-bottom: none; }
  .stat-strip .stat-value { font-size: var(--fs-xl); }
}

.domain-notes {
  margin-top: var(--sp-3);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  list-style: none;
  padding: 0;
}
.domain-notes li {
  position: relative;
  padding-left: var(--sp-5);
  color: var(--text-secondary);
  line-height: 1.55;
  font-size: var(--fs-sm);
}
.domain-notes li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.6em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--text-muted);
}
.domain-notes li strong { color: var(--text); }

.bid-panel {
  position: sticky;
  top: calc(var(--nav-h) + var(--sp-4));
  padding: var(--sp-6);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
@media (max-width: 960px) {
  .bid-panel { position: static; padding: var(--sp-5); }
}
.bid-current {
  font-variant-numeric: tabular-nums;
  font-size: clamp(2rem, 7vw, var(--fs-5xl));
  font-weight: 700;
  color: var(--text);
  margin-block: var(--sp-2) var(--sp-3);
  line-height: 1;
  letter-spacing: -0.03em;
}
.bid-count { font-size: var(--fs-sm); color: var(--text-muted); }
.bid-timer {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--sp-2);
  padding: var(--sp-4) var(--sp-3);
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-block: var(--sp-4);
}
.bid-timer-unit { text-align: center; min-width: 0; }
.bid-timer-num {
  font-variant-numeric: tabular-nums;
  font-size: clamp(1.25rem, 4vw, var(--fs-3xl));
  font-weight: 600;
  color: var(--text);
  line-height: 1;
  letter-spacing: -0.02em;
}
.bid-timer-label {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  font-weight: 500;
  margin-top: var(--sp-1);
}
.bid-close-date {
  margin-top: var(--sp-2);
  font-size: var(--fs-sm);
  color: var(--text);
  text-align: center;
}
.bid-close-date .muted { color: var(--text-muted); }

/* ============================== AUTH (login/register) ==================== */
.auth-wrap {
  min-height: calc(100vh - var(--nav-h));
  display: grid;
  place-items: center;
  padding: var(--sp-10) var(--sp-4);
  background: var(--bg);
}
.auth-card {
  width: 100%;
  max-width: 400px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-8);
  box-shadow: var(--shadow-sm);
}
.auth-card h1 {
  font-size: var(--fs-2xl);
  margin-bottom: var(--sp-2);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.auth-card .sub {
  color: var(--text-muted);
  margin-bottom: var(--sp-6);
  font-size: var(--fs-sm);
}
.auth-alt {
  text-align: center;
  margin-top: var(--sp-6);
  padding-top: var(--sp-6);
  border-top: 1px solid var(--border);
  font-size: var(--fs-sm);
  color: var(--text-muted);
}
.auth-alt a { color: var(--text); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.auth-alt a:hover { color: var(--accent); }

/* --- Inscription complète (carte large) --- */
.auth-wrap-wide { align-items: start; padding-top: var(--sp-10); padding-bottom: var(--sp-16); }
.auth-card-wide { max-width: 760px; padding: var(--sp-10) var(--sp-10) var(--sp-8); }
@media (max-width: 640px) {
  .auth-card-wide { padding: var(--sp-6); }
}

/* --- Inscription en 2 étapes --- */
.register-progress {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin: var(--sp-6) 0 var(--sp-8);
  padding: var(--sp-4) var(--sp-5);
  background: var(--zinc-50, var(--surface-alt));
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.register-progress-step {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  color: var(--text-muted);
  font-size: var(--fs-sm);
  font-weight: 500;
  transition: color var(--dur-fast) var(--ease);
}
.register-progress-step.is-active { color: var(--text); }
.register-progress-step.is-done { color: var(--accent); }
.register-progress-num {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--zinc-100);
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  font-size: var(--fs-xs);
  border: 1px solid var(--border);
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.register-progress-step.is-active .register-progress-num {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}
.register-progress-step.is-done .register-progress-num {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.register-progress-line {
  flex: 1;
  height: 1px;
  background: var(--border);
  min-width: 20px;
}
.register-step[hidden] { display: none; }
.register-step {
  animation: registerStepIn 0.28s var(--ease, ease-out);
}
@keyframes registerStepIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}
.register-step-error {
  display: none;
  margin-top: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  background: rgba(220, 38, 38, 0.08);
  border: 1px solid rgba(220, 38, 38, 0.24);
  border-radius: var(--radius-sm);
  color: #b91c1c;
  font-size: var(--fs-sm);
}
.register-step-error.is-visible { display: block; }
.register-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: var(--fs-sm);
  text-decoration: none;
  margin-top: var(--sp-2);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-weight: 500;
}
.register-back-link:hover { color: var(--text); }

/* Segmented control (type de compte) */
.segmented {
  display: inline-grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  background: var(--zinc-100);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 4px;
  gap: 4px;
  width: 100%;
  max-width: 360px;
}
.segmented-opt {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.875rem;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.segmented-opt input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.segmented-opt:hover { color: var(--text); }
.segmented-opt:has(input:checked) {
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 1px 2px rgba(9,9,11,0.06);
}

/* Bloc acceptation (en dehors de la modale) */
.terms-block {
  margin-top: var(--sp-6);
  padding: var(--sp-5);
  background: var(--zinc-50);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
}
.terms-block-status {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  line-height: 1.5;
  flex: 1;
  min-width: 260px;
}
.terms-block-status svg { flex-shrink: 0; color: var(--text-muted); }
.terms-block-status.is-ok { color: var(--text); }
.terms-block-status.is-ok svg { color: var(--success); }

.form-actions-stack {
  flex-direction: column;
  align-items: stretch;
  gap: var(--sp-3);
}

/* Modale Conditions — plus large que la modale par défaut */
.terms-modal-overlay { padding: var(--sp-6); align-items: stretch; }
.terms-modal {
  max-width: 720px;
  padding: 0;
  display: flex;
  flex-direction: column;
  max-height: min(90vh, 820px);
  overflow: hidden;
}
.terms-modal .modal-close { top: var(--sp-5); right: var(--sp-5); z-index: 2; }

.terms-modal-header {
  padding: var(--sp-8) var(--sp-8) var(--sp-5);
  border-bottom: 1px solid var(--border);
}
.terms-modal-header h2 {
  font-size: var(--fs-2xl);
  letter-spacing: -0.02em;
  margin: var(--sp-1) 0 var(--sp-2);
}
.terms-modal-sub {
  color: var(--text-muted);
  font-size: var(--fs-sm);
  line-height: 1.55;
  margin: 0;
}

.terms-scroll {
  flex: 1;
  overflow-y: auto;
  padding: var(--sp-6) var(--sp-8);
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  line-height: 1.65;
  scroll-behavior: smooth;
}
.terms-scroll:focus { outline: none; }
.terms-scroll h3 {
  font-size: var(--fs-lg);
  color: var(--text);
  margin-top: var(--sp-6);
  margin-bottom: var(--sp-3);
  letter-spacing: -0.015em;
  font-weight: 600;
}
.terms-scroll h3:first-of-type { margin-top: var(--sp-5); }
.terms-scroll p { margin: 0 0 var(--sp-3); }
.terms-scroll strong { color: var(--text); font-weight: 600; }

.terms-docs-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-2);
  margin-bottom: var(--sp-3);
}
@media (max-width: 560px) {
  .terms-docs-list { grid-template-columns: 1fr; }
}
.terms-doc {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.625rem 0.875rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text);
  text-decoration: none;
  font-size: var(--fs-sm);
  transition: border-color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}
.terms-doc:hover {
  border-color: var(--accent-line);
  background: var(--accent-soft);
}
.terms-doc-title { font-weight: 500; }
.terms-doc-hint { font-size: var(--fs-xs); color: var(--text-muted); }
.terms-doc:hover .terms-doc-hint { color: var(--accent); }

.terms-essential {
  counter-reset: terms-n;
  list-style: none;
  padding: 0;
  margin: 0 0 var(--sp-5);
}
.terms-essential > li {
  counter-increment: terms-n;
  position: relative;
  padding: var(--sp-3) 0 var(--sp-3) 2.25rem;
  border-top: 1px solid var(--border-subtle);
}
.terms-essential > li:first-child { border-top: none; padding-top: var(--sp-2); }
.terms-essential > li::before {
  content: counter(terms-n, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: var(--sp-3);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.terms-list {
  padding-left: 1.1rem;
  margin: 0 0 var(--sp-4);
}
.terms-list li { margin-bottom: var(--sp-2); }
.terms-list li::marker { color: var(--text-subtle); }

.terms-scroll-end {
  margin-top: var(--sp-6);
  padding: var(--sp-5);
  text-align: center;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  border-radius: var(--radius-md);
}
.terms-scroll-end span {
  display: block;
  font-size: var(--fs-xs);
  color: var(--accent-hover);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: var(--sp-1);
}
.terms-scroll-end p { margin: 0; color: var(--text); }

.terms-modal-footer {
  padding: var(--sp-5) var(--sp-8) var(--sp-6);
  border-top: 1px solid var(--border);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.terms-accept-box {
  font-size: var(--fs-sm);
  color: var(--text);
  transition: opacity var(--dur) var(--ease);
  cursor: pointer;
}
.terms-accept-box.is-locked {
  opacity: 0.55;
  cursor: not-allowed;
}
.terms-accept-box.is-locked input { cursor: not-allowed; }
.terms-accept-box strong { font-weight: 600; }

.terms-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: var(--sp-2);
  flex-wrap: wrap;
}
@media (max-width: 480px) {
  .terms-modal-actions { justify-content: stretch; }
  .terms-modal-actions .btn { flex: 1; }
  .terms-modal-header { padding: var(--sp-6); }
  .terms-scroll { padding: var(--sp-5); }
  .terms-modal-footer { padding: var(--sp-4) var(--sp-5) var(--sp-5); }
}

/* ============================== DASHBOARD / ACCOUNT ====================== */
.dashboard {
  padding-block: var(--sp-10);
  min-height: calc(100vh - var(--nav-h));
}
.dashboard-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: var(--sp-10);
}
@media (max-width: 820px) { .dashboard-grid { grid-template-columns: 1fr; gap: var(--sp-6); } }

.dashboard-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  position: sticky;
  top: calc(var(--nav-h) + var(--sp-4));
  align-self: start;
}
.dashboard-nav a {
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: var(--fs-sm);
  font-weight: 500;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.dashboard-nav a:hover { background: var(--surface-alt); color: var(--text); }
.dashboard-nav a.is-active {
  background: var(--surface-alt);
  color: var(--text);
  font-weight: 600;
}

.dashboard-header {
  padding-bottom: var(--sp-6);
  margin-bottom: var(--sp-8);
  border-bottom: 1px solid var(--border);
}
.dashboard-header h1 {
  font-size: var(--fs-3xl);
  margin-bottom: var(--sp-1);
  letter-spacing: -0.025em;
}
.dashboard-header p { color: var(--text-muted); font-size: var(--fs-sm); margin: 0; }

.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--sp-4);
  margin-bottom: var(--sp-8);
}
.dashboard-stat {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2) var(--sp-3);
  padding: var(--sp-5) var(--sp-4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  min-width: 0;
  text-align: center;
}
.dashboard-stat-label {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  font-weight: 500;
  line-height: 1.1;
  margin: 0;
}
.dashboard-stat-value {
  font-variant-numeric: tabular-nums;
  font-size: clamp(1.5rem, 3.2vw, var(--fs-3xl));
  font-weight: 600;
  color: var(--text);
  line-height: 1;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

/* ============================== BLOG ===================================== */
.blog-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--sp-8) var(--sp-6);
}
.blog-card {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  border: none;
  padding: 0;
  background: transparent;
}
.blog-card:hover { border-color: transparent; }
.blog-card .cover {
  aspect-ratio: 16/10;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: var(--sp-2);
  overflow: hidden;
  transition: border-color var(--dur) var(--ease);
}
.blog-card .cover picture,
.blog-card .cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.blog-post-cover picture { display: block; width: 100%; height: 100%; }
.blog-card:hover .cover { border-color: var(--border-strong); }
.blog-card h3 {
  font-size: var(--fs-xl);
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.015em;
  line-height: 1.3;
}
.blog-card .excerpt {
  color: var(--text-secondary);
  font-size: var(--fs-sm);
  line-height: 1.6;
  margin: 0;
}
.blog-card .meta {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  margin-top: var(--sp-1);
  font-variant-numeric: tabular-nums;
}

.blog-post {
  max-width: 720px;
  margin-inline: auto;
  padding-block: var(--sp-12);
}
.blog-post h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: var(--sp-4);
  letter-spacing: -0.03em;
}
.blog-post .meta {
  color: var(--text-muted);
  font-size: var(--fs-sm);
  margin-bottom: var(--sp-10);
  padding-bottom: var(--sp-6);
  border-bottom: 1px solid var(--border);
  font-variant-numeric: tabular-nums;
}
.blog-post h2 {
  font-size: var(--fs-2xl);
  margin-block: var(--sp-10) var(--sp-4);
  letter-spacing: -0.02em;
}
.blog-post h3 {
  font-size: var(--fs-xl);
  margin-block: var(--sp-8) var(--sp-3);
}
.blog-post p {
  font-size: var(--fs-base);
  line-height: 1.75;
  margin-bottom: var(--sp-5);
  color: var(--text-secondary);
}
.blog-post a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.blog-post blockquote {
  border-left: 3px solid var(--zinc-950);
  padding-left: var(--sp-5);
  margin-block: var(--sp-6);
  font-style: italic;
  color: var(--text);
}
.blog-post ul, .blog-post ol {
  margin-bottom: var(--sp-5);
  padding-left: var(--sp-6);
  list-style: disc;
}
.blog-post ol { list-style: decimal; }
.blog-post li {
  line-height: 1.75;
  margin-bottom: var(--sp-2);
  color: var(--text-secondary);
}

/* ============================== HOW / PRICING ============================= */
.steps {
  display: grid;
  gap: var(--sp-4);
}
.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--sp-6);
  padding: var(--sp-6);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.step-num {
  font-variant-numeric: tabular-nums;
  font-size: var(--fs-3xl);
  font-weight: 600;
  color: var(--text-subtle);
  line-height: 1;
  letter-spacing: -0.03em;
}
.step h3 {
  font-size: var(--fs-lg);
  font-weight: 600;
  margin-bottom: var(--sp-2);
  letter-spacing: -0.015em;
}
.step p { color: var(--text-secondary); font-size: var(--fs-sm); line-height: 1.6; margin: 0; }

.pricing-table {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-4);
  max-width: 800px;
  margin-inline: auto;
}
@media (max-width: 720px) { .pricing-table { grid-template-columns: 1fr; } }

.price-card {
  padding: var(--sp-8);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}
.price-card.featured {
  background: var(--zinc-950);
  color: var(--white);
  border-color: var(--zinc-950);
}
.price-card.featured h3,
.price-card.featured .price-value { color: var(--white); }
.price-card.featured p,
.price-card.featured li { color: var(--zinc-300); }

.price-card h3 { font-size: var(--fs-lg); font-weight: 600; margin: 0; }
.price-card p { color: var(--text-secondary); font-size: var(--fs-sm); margin: 0; }
.price-value {
  font-variant-numeric: tabular-nums;
  font-size: var(--fs-4xl);
  font-weight: 700;
  color: var(--text);
  line-height: 1;
  letter-spacing: -0.03em;
}
.price-value small { font-size: var(--fs-base); color: var(--text-muted); font-weight: 500; margin-left: var(--sp-1); }
.price-features {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  font-size: var(--fs-sm);
}
.price-features li {
  padding-left: var(--sp-6);
  position: relative;
  color: var(--text-secondary);
  line-height: 1.55;
}
.price-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 12px;
  height: 6px;
  border-left: 1.5px solid var(--success);
  border-bottom: 1.5px solid var(--success);
  transform: rotate(-45deg);
}
.price-card.featured .price-features li::before { border-color: var(--white); }

/* ============================== FAQ ===================================== */
.faq {
  max-width: 720px;
  margin-inline: auto;
}
.faq-item {
  border-bottom: 1px solid var(--border);
  padding-block: var(--sp-5);
}
.faq-item summary {
  cursor: pointer;
  font-weight: 500;
  font-size: var(--fs-base);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-4);
  color: var(--text);
}
.faq-item summary::after {
  content: "";
  width: 12px;
  height: 12px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2371717A' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat center/contain;
  transition: transform var(--dur) var(--ease);
}
.faq-item[open] summary::after { transform: rotate(180deg); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item p {
  margin-top: var(--sp-3);
  color: var(--text-secondary);
  font-size: var(--fs-sm);
  line-height: 1.65;
}

/* ============================== CTA SECTION ============================== */
.cta-box {
  padding: var(--sp-12) var(--sp-8);
  background: var(--zinc-950);
  color: var(--white);
  border-radius: var(--radius-xl);
  text-align: center;
}
.cta-box h2 { color: var(--white); margin-bottom: var(--sp-3); font-size: clamp(1.5rem, 3vw, var(--fs-3xl)); }
.cta-box p { color: var(--zinc-300); max-width: 540px; margin: 0 auto var(--sp-6); }
.cta-box .btn-primary {
  background: var(--white);
  color: var(--zinc-950);
  border-color: var(--white);
}
.cta-box .btn-primary:hover { background: var(--zinc-100); color: var(--zinc-950); border-color: var(--zinc-100); }
.cta-box .btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.2);
}
.cta-box .btn-ghost:hover { background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.4); color: var(--white); }

/* ============================== LEGAL / CGV =============================== */
.legal-doc {
  max-width: 780px;
  margin-inline: auto;
  padding-block: var(--sp-12);
}
.legal-doc h1 {
  font-size: clamp(1.875rem, 3vw, 2.5rem);
  margin-bottom: var(--sp-2);
  letter-spacing: -0.03em;
}
.legal-doc .updated {
  color: var(--text-muted);
  font-size: var(--fs-sm);
  margin-bottom: var(--sp-8);
  padding-bottom: var(--sp-6);
  border-bottom: 1px solid var(--border);
}
.legal-doc h2 {
  font-size: var(--fs-xl);
  margin-block: var(--sp-10) var(--sp-4);
  letter-spacing: -0.015em;
}
.legal-doc h3 { font-size: var(--fs-base); font-weight: 600; margin-block: var(--sp-6) var(--sp-3); }
.legal-doc p, .legal-doc li {
  font-size: var(--fs-sm);
  line-height: 1.7;
  color: var(--text-secondary);
}
.legal-doc ul, .legal-doc ol {
  padding-left: var(--sp-6);
  margin-bottom: var(--sp-4);
  list-style: disc;
}
.legal-doc ol { list-style: decimal; }
.legal-doc li { margin-bottom: var(--sp-2); }

/* ============================== ERRORS =================================== */
.error-page {
  min-height: calc(100vh - var(--nav-h));
  display: grid;
  place-items: center;
  text-align: center;
  padding: var(--sp-10) var(--sp-4);
}
.error-code {
  font-variant-numeric: tabular-nums;
  font-size: clamp(4rem, 14vw, 9rem);
  font-weight: 700;
  line-height: 1;
  color: var(--text);
  letter-spacing: -0.05em;
  margin-bottom: var(--sp-4);
}
.error-page h1 {
  font-size: var(--fs-2xl);
  margin-bottom: var(--sp-3);
}
.error-page p {
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto var(--sp-8);
}

/* ============================== CONTACT ================================== */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--sp-12);
  padding-block: var(--sp-12);
  max-width: var(--container);
  margin-inline: auto;
}
@media (max-width: 820px) { .contact-wrap { grid-template-columns: 1fr; gap: var(--sp-8); } }

.contact-intro h1 {
  font-size: clamp(1.875rem, 3vw, 2.5rem);
  margin-bottom: var(--sp-4);
  letter-spacing: -0.03em;
}
.contact-intro p { color: var(--text-secondary); margin-bottom: var(--sp-6); }
.contact-info { display: flex; flex-direction: column; gap: var(--sp-4); }
.contact-info-item {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
  padding: var(--sp-4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.contact-info-item .label {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  font-weight: 500;
}
.contact-info-item .value { font-size: var(--fs-sm); color: var(--text); font-weight: 500; }

.contact-form-card {
  padding: var(--sp-8);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

/* ==========================================================================
   Additions — breadcrumb, blog extras, contact cards, price cards,
   error page, auth brand, dashboard extras, empty state, tables extras
   ========================================================================== */

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-bottom: var(--sp-8);
  font-size: var(--fs-sm);
  color: var(--text-muted);
}
.breadcrumb a { color: var(--text-muted); transition: color var(--dur-fast) var(--ease); }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb-sep { color: var(--text-subtle); user-select: none; }
.breadcrumb > span:last-child { color: var(--text); font-weight: 500; }

/* Blog extras */
.blog-card-eyebrow {
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  margin-bottom: -2px;
}
.blog-card .meta {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}
.meta-sep { color: var(--text-subtle); }

.blog-post-meta {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin-top: var(--sp-4);
  margin-bottom: var(--sp-10);
  padding-bottom: var(--sp-6);
  border-bottom: 1px solid var(--border);
  font-size: var(--fs-sm);
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}
.blog-post-cover {
  margin-block: var(--sp-8) var(--sp-10);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 16/9;
}
.blog-post-cover img { width: 100%; height: 100%; object-fit: cover; }
.blog-post-footer {
  display: flex;
  justify-content: space-between;
  gap: var(--sp-3);
  margin-top: var(--sp-12);
  padding-top: var(--sp-8);
  border-top: 1px solid var(--border);
}

/* Contact cards (new) */
.contact-wrap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--sp-4);
  padding: 0;
  margin: 0;
  max-width: none;
}
.contact-card {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  padding: var(--sp-6);
}
.contact-card-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: var(--surface-alt);
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  margin-bottom: var(--sp-2);
}
.contact-card-label {
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
}
.contact-card-value {
  font-family: var(--font-mono);
  font-size: var(--fs-lg);
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
  text-decoration: none;
}
.contact-card-value:hover { color: var(--accent); }
.contact-card-note {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  line-height: 1.55;
  margin-top: var(--sp-2);
}

/* Price card (new structure) */
.price-card-eyebrow {
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  margin-bottom: var(--sp-3);
}
.price-card.featured .price-card-eyebrow { color: var(--zinc-400); }
.price-card-name {
  font-size: var(--fs-xl);
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0;
}
.price-card.featured .price-card-name { color: var(--white); }
.price-card-amount {
  display: flex;
  align-items: baseline;
  gap: var(--sp-1);
  margin-block: var(--sp-4) var(--sp-2);
  font-variant-numeric: tabular-nums;
}
.price-card-value {
  font-size: var(--fs-5xl);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.035em;
  color: var(--text);
}
.price-card.featured .price-card-value { color: var(--white); }
.price-card-currency {
  font-size: var(--fs-2xl);
  font-weight: 600;
  color: var(--text-muted);
  margin-left: 4px;
}
.price-card.featured .price-card-currency { color: var(--zinc-300); }
.price-card-period {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  font-weight: 500;
  margin-left: var(--sp-1);
}
.price-card.featured .price-card-period { color: var(--zinc-400); }
.price-card-lead {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  margin: 0 0 var(--sp-4);
  line-height: 1.55;
}
.price-card.featured .price-card-lead { color: var(--zinc-300); }
.price-card-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  margin: 0 0 var(--sp-6);
  font-size: var(--fs-sm);
  flex: 1;
}
.price-card-list li {
  position: relative;
  padding-left: var(--sp-6);
  line-height: 1.55;
  color: var(--text-secondary);
}
.price-card.featured .price-card-list li { color: var(--zinc-300); }
.price-card-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 11px;
  height: 6px;
  border-left: 1.75px solid var(--success);
  border-bottom: 1.75px solid var(--success);
  transform: rotate(-45deg);
}
.price-card.featured .price-card-list li::before { border-color: var(--white); }
.price-card .btn-primary { margin-top: auto; }
.price-card.featured .btn-primary {
  background: var(--white);
  color: var(--zinc-950);
  border-color: var(--white);
}
.price-card.featured .btn-primary:hover {
  background: var(--zinc-100);
  border-color: var(--zinc-100);
  color: var(--zinc-950);
}

/* Legal doc meta */
.legal-doc-meta {
  color: var(--text-muted);
  font-size: var(--fs-sm);
  margin-bottom: var(--sp-8);
  padding-bottom: var(--sp-6);
  border-bottom: 1px solid var(--border);
}

/* Error page extras */
.error-page-inner {
  max-width: 520px;
  margin-inline: auto;
}
.error-page .eyebrow { margin-bottom: var(--sp-2); }
.error-page h2 {
  font-size: var(--fs-2xl);
  margin-bottom: var(--sp-3);
  letter-spacing: -0.02em;
}
.error-actions {
  display: flex;
  gap: var(--sp-3);
  justify-content: center;
  flex-wrap: wrap;
}

/* Auth extras */
.auth-brand {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-weight: 600;
  color: var(--text);
  font-size: var(--fs-sm);
  letter-spacing: -0.01em;
  margin-bottom: var(--sp-8);
}
.auth-card h1 {
  font-size: var(--fs-3xl);
  margin-bottom: var(--sp-2);
  font-weight: 700;
  letter-spacing: -0.025em;
}
.auth-sub {
  color: var(--text-muted);
  font-size: var(--fs-sm);
  margin-bottom: var(--sp-8);
}

/* Dashboard extras */
.dashboard-main { min-width: 0; }
.dashboard-head {
  padding-bottom: var(--sp-6);
  margin-bottom: var(--sp-8);
  border-bottom: 1px solid var(--border);
}
.dashboard-head h2 {
  font-size: var(--fs-3xl);
  margin-bottom: var(--sp-1);
  letter-spacing: -0.025em;
  font-weight: 700;
}
.dashboard-sub {
  color: var(--text-muted);
  font-size: var(--fs-sm);
  margin: 0;
}
.dashboard-stat-unit {
  font-size: var(--fs-base);
  font-weight: 500;
  color: var(--text-muted);
  margin-left: 2px;
}
.dashboard-section { margin-top: var(--sp-10); }
.dashboard-section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--sp-3);
  margin-bottom: var(--sp-4);
}
.dashboard-section-head h3 {
  font-size: var(--fs-lg);
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.015em;
}

/* Dashboard nav (redesigned) */
.dashboard-nav {
  display: flex;
  flex-direction: column;
  gap: 1px;
  position: sticky;
  top: calc(var(--nav-h) + var(--sp-4));
  align-self: start;
}
.dashboard-nav-label {
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  padding: 0 var(--sp-3);
  margin-bottom: var(--sp-3);
}
.dashboard-nav-link {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: var(--fs-sm);
  font-weight: 500;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.dashboard-nav-link svg { color: var(--text-muted); flex-shrink: 0; }
.dashboard-nav-link:hover { background: var(--surface-alt); color: var(--text); }
.dashboard-nav-link:hover svg { color: var(--text); }
.dashboard-nav-link.is-active {
  background: var(--surface-alt);
  color: var(--text);
  font-weight: 600;
}
.dashboard-nav-link.is-active svg { color: var(--text); }
.dashboard-nav-sep {
  height: 1px;
  background: var(--border);
  margin: var(--sp-3) var(--sp-2);
}
.dashboard-nav-logout { color: var(--text-muted); }

@media (max-width: 820px) {
  .dashboard-nav {
    flex-direction: row;
    position: static;
    gap: var(--sp-1);
    padding-bottom: var(--sp-2);
    margin-bottom: var(--sp-2);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    border-bottom: 1px solid var(--border);
    scroll-snap-type: x proximity;
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 32px), transparent 100%);
            mask-image: linear-gradient(to right, #000 calc(100% - 32px), transparent 100%);
  }
  .dashboard-nav::-webkit-scrollbar { display: none; }
  .dashboard-nav-label { display: none; }
  .dashboard-nav-sep { display: none; }
  .dashboard-nav-link {
    flex-shrink: 0;
    padding: var(--sp-2) var(--sp-3);
    white-space: nowrap;
    scroll-snap-align: start;
    animation: dashboard-nav-hint 1.6s 1 ease-out 0.5s;
  }
  .dashboard-nav-link span { font-size: var(--fs-sm); }

  @keyframes dashboard-nav-hint {
    0%   { transform: translateX(0); }
    35%  { transform: translateX(-22px); }
    70%  { transform: translateX(0); }
    100% { transform: translateX(0); }
  }
  @media (prefers-reduced-motion: reduce) {
    .dashboard-nav-link { animation: none; }
  }
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: var(--sp-12) var(--sp-6);
  background: var(--surface);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
}
.empty-state-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto var(--sp-4);
  border-radius: var(--radius-md);
  background: var(--surface-alt);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}
.empty-state h4 {
  font-size: var(--fs-lg);
  font-weight: 600;
  margin-bottom: var(--sp-2);
  letter-spacing: -0.015em;
}
.empty-state p {
  color: var(--text-muted);
  font-size: var(--fs-sm);
  margin: 0 auto var(--sp-5);
  max-width: 360px;
  line-height: 1.55;
}

/* Small utility: align-right (for non-table contexts) */
.align-right { text-align: right; }

/* ---------------------------------------------------------------------------
   Milo — mascot integrations (Corporate Modern, bow-tie #2563EB)
   File map:
     app/static/img/mascot/milo_mvp_01_posed.png       (reference / footer)
     app/static/img/mascot/milo_mvp_02_magnify.png     (404, empty dashboard)
     app/static/img/mascot/milo_mvp_03_repair.png      (500)
     app/static/img/mascot/milo_mvp_04_briefcase.png   (empty my_orders)
     app/static/img/mascot/milo_footer_64.png          (tiny footer signature)
   Rule: Milo never appears twice on the same page.
---------------------------------------------------------------------------- */
.mascot {
  display: block;
  max-width: 100%;
  height: auto;
  -webkit-user-drag: none;
  user-select: none;
}

/* Hero mascot — for 404/500 pages */
.mascot-hero {
  width: min(280px, 70vw);
  margin: 0 auto var(--sp-6);
  filter: drop-shadow(0 8px 24px rgba(15, 23, 42, 0.08));
}

.error-page .mascot-hero { margin-bottom: var(--sp-4); }

/* Empty-state mascot — replaces the generic SVG icon.
   Les PNG sources sont standardisés sur un canvas commun (633x706) avec
   la tête du raton scaled à la même hauteur, donc même taille visuelle partout. */
.empty-state-mascot {
  width: 180px;
  height: auto;
  margin: calc(-1 * var(--sp-4)) auto var(--sp-2);
  display: block;
}

/* Footer signature — Milo aligne parfaitement avec "Fait en France" et le copyright */
.footer-signature {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  line-height: 1;
}
.footer-copy { line-height: 1; }
.footer-mascot {
  width: 20px;
  height: 20px;
  object-fit: contain;
  opacity: 0.85;
  display: block;
  transition: opacity 0.2s ease, transform 0.25s ease;
}
.footer-mascot:hover {
  opacity: 1;
  transform: translateY(-1px) rotate(-4deg);
}

@media (prefers-reduced-motion: reduce) {
  .footer-mascot { transition: none; }
  .footer-mascot:hover { transform: none; }
}

/* Row wrapper for inline Milo tip (juste un peu d'air vertical, pas de carré) */
.dashboard-tip-row {
  margin-top: var(--sp-6);
  margin-bottom: calc(-1 * var(--sp-4));
}

/* ---------------------------------------------------------------------------
   Milo tip widget — mascotte + bulle de dialogue
   Pas de conteneur : Milo et bulle flottent dans le flux parent.
   Utilisé via {% from "partials/_milo_tip.html" import milo_tip %}
   --------------------------------------------------------------------------- */
.milo-tip {
  display: inline-flex;
  align-items: flex-end;
  gap: var(--sp-2);
  max-width: 440px;
}

.milo-tip--left { flex-direction: row-reverse; }

.milo-tip-mascot {
  flex-shrink: 0;
  width: var(--milo-tip-size, 96px);
  line-height: 0;
}

.milo-tip-mascot img {
  width: 100%;
  height: auto;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

.milo-tip-bubble {
  flex: 0 1 auto;
  position: relative;
  padding: var(--sp-3) var(--sp-4);
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  min-width: 0;
  margin-bottom: var(--sp-4);
}

/* Bubble arrow — rotated square cut-out pointing toward Milo */
.milo-tip-bubble::before {
  content: "";
  position: absolute;
  bottom: 14px;
  width: 10px;
  height: 10px;
  background: var(--bg-subtle);
  transform: rotate(45deg);
}

.milo-tip--right .milo-tip-bubble::before {
  left: -6px;
  border-left: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.milo-tip--left .milo-tip-bubble::before {
  right: -6px;
  border-right: 1px solid var(--border);
  border-top: 1px solid var(--border);
}

.milo-tip-bubble-title {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 2px;
}

.milo-tip-bubble-body {
  color: var(--text);
  line-height: 1.5;
  font-size: 0.88rem;
}

.milo-tip-bubble-body > :first-child { margin-top: 0; }
.milo-tip-bubble-body > :last-child { margin-bottom: 0; }

@media (max-width: 520px) {
  .milo-tip { max-width: 100%; gap: var(--sp-1); }
  .milo-tip-mascot { width: min(72px, var(--milo-tip-size, 96px)); }
  .milo-tip-bubble { font-size: 0.85rem; padding: var(--sp-2) var(--sp-3); }
  .milo-tip-bubble::before { bottom: 10px; width: 8px; height: 8px; }
}
