@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700&family=JetBrains+Mono:wght@500;600&display=swap');

/* ==========================================================================
   TOKENS
   ========================================================================== */
:root {
  --bg: #FBF8F2;           /* papier chaud */
  --surface: #FFFFFF;
  --surface-soft: #F4F0E7; /* niveau intermédiaire (inputs, hover) */
  --ink: #16181D;          /* texte principal, quasi-noir */
  --ink-soft: #63666E;     /* texte secondaire */
  --ink-faint: #9A9C9F;    /* texte tertiaire / placeholders */
  --border: #16181D;       /* bordures fortes, assumées */
  --border-soft: #E4DFD2;  /* séparateurs discrets */
  --accent: #C87F1E;       /* ambre — seule touche de couleur forte */
  --accent-soft: #F4E3C8;
  --success: #1E8A56;
  --success-bg: #E7F3EC;
  --danger: #C1442E;
  --danger-bg: #FBEAE5;

  --font-display: 'Outfit', system-ui, sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;

  --shadow-card: 4px 4px 0 rgba(22, 24, 29, 0.06);
  --shadow-card-hover: 6px 6px 0 rgba(22, 24, 29, 0.09);
}

* { box-sizing: border-box; }

html, body {
  min-height: 100vh;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 1px 1px, rgba(22,24,29,0.05) 1px, transparent 0);
  background-size: 22px 22px;
  color: var(--ink);
  margin: 0;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0;
}

a { color: inherit; }

::selection { background: var(--accent-soft); color: var(--ink); }

::placeholder { color: var(--ink-faint); }

/* ==========================================================================
   LAYOUT PRINCIPAL
   ========================================================================== */
.app-layout {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

/* --- SIDEBAR --- */
.sidebar {
  width: 260px;
  flex-shrink: 0;
  background-color: var(--surface);
  border-right: 2px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 1.75rem 1.5rem;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 2.5rem;
  text-decoration: none;
}

.sidebar-logo .crow-mark {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border);
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nav-menu { display: flex; flex-direction: column; gap: 6px; flex: 1; }

.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: var(--radius-sm);
  color: var(--ink-soft); text-decoration: none;
  font-weight: 600; font-size: 0.92rem;
  border: 1.5px solid transparent;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.nav-item:hover { background: var(--surface-soft); color: var(--ink); }
.nav-item.active {
  background: var(--ink); color: var(--surface);
  border-color: var(--border);
}

/* --- DÉPLIANT "DOMAINE" DANS LA SIDEBAR --- */
.nav-group { border: none; margin: 0; padding: 0; }

.nav-summary {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  cursor: pointer;
  list-style: none;
}
.nav-summary::-webkit-details-marker { display: none; }
.nav-summary::marker { content: ''; }

.nav-summary.active { background: var(--ink); color: var(--surface); border-color: var(--border); }

.nav-chevron { width: 16px; height: 16px; flex-shrink: 0; transition: transform 0.15s ease; }
.nav-group[open] > .nav-summary .nav-chevron { transform: rotate(180deg); }

.nav-submenu {
  display: flex; flex-direction: column; gap: 2px;
  padding: 6px 0 4px 14px; margin-left: 10px;
  border-left: 2px solid var(--border-soft);
}

.nav-subitem {
  display: flex; align-items: center; gap: 6px;
  padding: 7px 10px; border-radius: var(--radius-sm);
  color: var(--ink-soft); text-decoration: none;
  font-weight: 600; font-size: 0.85rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.nav-subitem:hover { background: var(--surface-soft); color: var(--ink); }
.nav-subitem.active { background: var(--surface-soft); color: var(--ink); }

.nav-subitem-branch { color: var(--ink-faint); flex-shrink: 0; }

.nav-subitem-add { color: var(--accent); }
.nav-subitem-add:hover { color: var(--accent); background: var(--accent-soft); }

.nav-subempty { margin: 0; padding: 7px 10px; color: var(--ink-faint); font-size: 0.82rem; }

.user-profile {
  display: flex; align-items: center; gap: 12px;
  padding-top: 1.25rem; margin-top: 1.25rem;
  border-top: 2px solid var(--border-soft);
}
.user-profile img {
  width: 40px; height: 40px; border-radius: 50%;
  border: 2px solid var(--border); object-fit: cover; flex-shrink: 0;
}
.user-info { display: flex; flex-direction: column; min-width: 0; }
.user-name {
  font-weight: 700; font-size: 0.9rem;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.user-logout {
  color: var(--danger); font-size: 0.8rem; font-weight: 600;
  text-decoration: none; margin-top: 2px;
}
.user-logout:hover { text-decoration: underline; }

/* --- MENU MOBILE --- */
.mobile-topbar { display: none; }
.mobile-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  cursor: pointer;
  flex-shrink: 0;
}
.mobile-menu-toggle svg { width: 20px; height: 20px; }

/* --- CONTENU CENTRAL --- */
.main-content {
  flex: 1;
  min-width: 0;
  padding: 2.75rem 3rem;
}

.page-header { margin-bottom: 2.25rem; }
.page-header h1 { font-size: 2rem; margin-bottom: 0.4rem; }
.page-header p { margin: 0; color: var(--ink-soft); font-size: 1rem; }

.page-header-row {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

/* ==========================================================================
   GRILLES ET CARTES
   ========================================================================== */
.grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  margin-bottom: 2rem;
}

.card {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
}

.card-header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 1.25rem;
}
.card-title {
  font-family: var(--font-display);
  font-weight: 700; font-size: 1.05rem;
  display: flex; align-items: center; gap: 8px; margin: 0;
}

.card-link {
  cursor: pointer; text-decoration: none; color: inherit; display: block;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card-link:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--accent);
}
.card-link .card-description { margin-top: 0.4rem; }

.card-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.6rem 0;
  border-bottom: 1.5px solid var(--border-soft);
}
.card-row:last-child { border-bottom: none; }
.card-row .label { color: var(--ink-soft); font-weight: 500; font-size: 0.92rem; }
.card-row .value { font-weight: 700; font-family: var(--font-mono); font-size: 0.9rem; }

.card-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.card.centered {
  max-width: 620px;
  margin: 3rem auto;
  text-align: center;
  padding: 3rem 2.25rem;
}
.card.narrow { max-width: 640px; }

.card-description {
  color: var(--ink-soft); font-size: 0.92rem; margin: 0;
  line-height: 1.5;
}
.card-description a, .inline-link {
  color: var(--accent); font-weight: 600; text-decoration: underline;
}

/* --- ÉLÉMENTS UI --- */
.badge {
  padding: 4px 12px; border-radius: 99px; font-size: 0.7rem;
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em;
  border: 1.5px solid transparent;
}
.badge.success { background: var(--success-bg); color: var(--success); border-color: rgba(30,138,86,0.25); }
.badge.neutral { background: var(--surface-soft); color: var(--ink-soft); border-color: var(--border-soft); }

.domain-tag {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 600;
  background: var(--surface-soft);
  border: 1.5px dashed var(--ink-faint);
  border-radius: var(--radius-sm);
  padding: 0.15rem 0.6rem;
  display: inline-block;
}

.field { margin-bottom: 1.5rem; }
.field:last-child { margin-bottom: 0; }
.field-label {
  display: block; margin-bottom: 0.5rem;
  color: var(--ink-soft); font-weight: 600; font-size: 0.88rem;
}
.field-hint {
  display: block; margin-top: 0.45rem;
  font-size: 0.78rem; color: var(--ink-faint); line-height: 1.45;
}
.field-hint.is-error { color: var(--danger); }
.field-hint.is-ok { color: var(--success); }

input[type="text"].is-invalid, .input-suffix-group.is-invalid { border-color: var(--danger); }
input[type="text"].is-valid, .input-suffix-group.is-valid { border-color: var(--success); }

input[type="text"] {
  width: 100%; padding: 12px 16px; border-radius: var(--radius-sm);
  background: var(--surface-soft); border: 2px solid var(--border-soft);
  color: var(--ink); font-size: 0.95rem; font-family: var(--font-body);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
input[type="text"]:focus {
  outline: none; border-color: var(--ink);
  box-shadow: 3px 3px 0 rgba(22, 24, 29, 0.08);
}

.input-suffix-group {
  display: flex; align-items: center;
  background: var(--surface-soft); border: 2px solid var(--border-soft);
  border-radius: var(--radius-sm); padding-right: 16px;
}
.input-suffix-group input[type="text"] {
  border: none; background: transparent; box-shadow: none;
}
.input-suffix-group input[type="text"]:focus { box-shadow: none; }
.input-suffix-group .suffix {
  color: var(--ink-soft); font-weight: 600; font-family: var(--font-mono);
  font-size: 0.88rem; white-space: nowrap;
}

.input-row { display: flex; gap: 10px; }
.input-row input[type="text"] { flex: 1; min-width: 0; }

button {
  background: var(--ink); color: var(--surface); border: 2px solid var(--border);
  padding: 11px 20px; border-radius: var(--radius-sm); font-weight: 700;
  font-family: var(--font-body); font-size: 0.92rem;
  cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
button:hover { transform: translate(-2px, -2px); box-shadow: 3px 3px 0 rgba(22,24,29,0.15); }
button:active { transform: translate(0, 0); box-shadow: none; }
button:disabled {
  opacity: 0.5; cursor: not-allowed;
  transform: none; box-shadow: none;
}

button.accent { background: var(--accent); border-color: var(--accent); color: var(--surface); }
button.accent:hover { background: #B06F19; }

button.danger { background: var(--danger-bg); color: var(--danger); border-color: rgba(193,68,46,0.3); }
button.danger:hover { background: var(--danger); color: var(--surface); border-color: var(--border); }

button.secondary { background: var(--surface); color: var(--ink); border-color: var(--border-soft); }
button.secondary:hover { background: var(--surface-soft); border-color: var(--border); }

button.block { width: 100%; justify-content: center; }
button.large { padding: 14px 24px; font-size: 1rem; }

.back-button { margin-bottom: 1.25rem; padding: 8px 14px; font-size: 0.85rem; }

.danger-zone {
  border-color: rgba(193, 68, 46, 0.35);
  background: var(--danger-bg);
}
.danger-zone .card-title { color: var(--danger); }

/* --- ALERTES --- */
.alert {
  padding: 0.9rem 1.1rem; border-radius: var(--radius-sm); margin-top: 1rem;
  display: none; font-weight: 600; font-size: 0.9rem; border: 1.5px solid transparent;
}
.alert.success { display: block; background: var(--success-bg); border-color: rgba(30,138,86,0.3); color: var(--success); }
.alert.error { display: block; background: var(--danger-bg); border-color: rgba(193,68,46,0.3); color: var(--danger); }

/* ==========================================================================
   PAGE DE CONNEXION — SPLIT SCREEN
   ========================================================================== */
.login-screen {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
}

.login-hero {
  background: var(--ink);
  color: var(--bg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 3rem;
  position: relative;
  overflow: hidden;
  background-image: radial-gradient(circle at 1px 1px, rgba(251,248,242,0.09) 1px, transparent 0);
  background-size: 26px 26px;
}

.login-hero-top .sidebar-logo { color: var(--bg); margin-bottom: 0; }
.login-hero-top .crow-mark { background: var(--accent); border-color: var(--accent); }

.login-hero-main { max-width: 420px; }
.login-hero-main h2 {
  font-size: 2.15rem; line-height: 1.15; color: var(--bg);
  margin-bottom: 1rem;
}
.login-hero-main p { color: #C7C9CE; font-size: 1rem; line-height: 1.6; margin: 0; }

.login-hero-features { display: flex; flex-direction: column; gap: 0.9rem; margin-top: 2.25rem; }
.login-hero-feature {
  display: flex; align-items: center; gap: 10px;
  color: #E7E8EA; font-size: 0.92rem; font-weight: 500;
}
.login-hero-feature .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); flex-shrink: 0;
}

.login-hero-foot {
  font-family: var(--font-mono); font-size: 0.78rem;
  color: #7C7F87; letter-spacing: 0.02em;
}

.login-panel {
  display: flex; align-items: center; justify-content: center;
  padding: 2rem;
  background: var(--bg);
}

.login-card {
  max-width: 400px; width: 100%;
  text-align: center;
  padding: 3rem 2.25rem;
}

.login-crow {
  width: 60px; height: 60px;
  margin: 0 auto 1.5rem;
  border-radius: var(--radius-md);
  border: 2px solid var(--border);
  background: var(--ink);
  display: flex; align-items: center; justify-content: center;
}

.login-card h1 { font-size: 1.6rem; margin-bottom: 0.6rem; }
.login-card p { color: var(--ink-soft); margin: 0 0 2rem; font-size: 0.95rem; }

.btn-discord {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 13px 20px;
  background: var(--ink); color: var(--surface);
  border: 2px solid var(--border); border-radius: var(--radius-sm);
  font-weight: 700; font-size: 0.95rem; text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-discord:hover { transform: translate(-2px, -2px); box-shadow: 3px 3px 0 rgba(22,24,29,0.15); }

@media (max-width: 900px) {
  .login-screen { grid-template-columns: 1fr; }
  .login-hero { display: none; }
}

/* ==========================================================================
   LAYOUT DEUX COLONNES (dashboard / manage)
   ========================================================================== */
.layout-two-col {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 1.5rem;
  align-items: start;
}

.aside-panel { position: sticky; top: 2rem; }
.aside-panel h3 { font-size: 0.98rem; margin-bottom: 0.9rem; }

.tip-list { display: flex; flex-direction: column; gap: 0.9rem; }
.tip-item { display: flex; gap: 10px; align-items: flex-start; }
.tip-item .tip-icon {
  width: 26px; height: 26px; flex-shrink: 0;
  border-radius: 7px; border: 1.5px solid var(--border-soft);
  background: var(--surface-soft);
  display: flex; align-items: center; justify-content: center;
}
.tip-item .tip-icon svg { width: 14px; height: 14px; }
.tip-item p { margin: 0; font-size: 0.85rem; color: var(--ink-soft); line-height: 1.5; }

.upsell-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  background: var(--accent-soft); border: 2px solid var(--accent);
  border-radius: var(--radius-md); padding: 1.1rem 1.4rem;
  margin-bottom: 2rem;
}
.upsell-banner strong { display: block; margin-bottom: 2px; }
.upsell-banner p { margin: 0; color: var(--ink-soft); font-size: 0.9rem; }
.upsell-banner button { flex-shrink: 0; }
@media (max-width: 560px) {
  .upsell-banner { flex-direction: column; align-items: stretch; text-align: center; }
}

/* ==========================================================================
   PREMIUM (cartes d'emplacements)
   ========================================================================== */
.pricing-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
  margin-bottom: 2rem;
}
.pricing-card {
  background: var(--surface); border: 2px solid var(--border); border-radius: var(--radius-md);
  padding: 1.4rem; display: flex; flex-direction: column; gap: 0.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  animation: premiumFadeUp 0.45s ease both;
}
.pricing-grid .pricing-card:nth-child(1) { animation-delay: 0.03s; }
.pricing-grid .pricing-card:nth-child(2) { animation-delay: 0.1s; }
.pricing-grid .pricing-card:nth-child(3) { animation-delay: 0.17s; }
.pricing-card:hover { transform: translateY(-3px); box-shadow: 4px 4px 0 rgba(22,24,29,0.1); }
.pricing-card.is-active { border-color: var(--success); background: var(--success-bg); }
.pricing-card.is-active .badge.success { animation: premiumBadgePulse 2.4s ease-in-out infinite; }
.pricing-card h3 { font-size: 1.15rem; margin: 0; }
.pricing-card .badge { align-self: flex-start; }
.payment-methods { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.payment-methods li { font-size: 0.92rem; }

@keyframes premiumFadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes premiumBadgePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(30,138,86,0.35); }
  50% { box-shadow: 0 0 0 6px rgba(30,138,86,0); }
}

.stat-strip .stat-card { animation: premiumFadeUp 0.4s ease both; }
.stat-strip .stat-card:nth-child(1) { animation-delay: 0.01s; }
.stat-strip .stat-card:nth-child(2) { animation-delay: 0.06s; }
.stat-strip .stat-card:nth-child(3) { animation-delay: 0.11s; }

.btn-paypal {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--accent); color: var(--surface); border: 2px solid var(--accent);
  padding: 11px 20px; border-radius: var(--radius-sm);
  font-family: var(--font-body); font-weight: 700; font-size: 0.92rem;
  text-decoration: none; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn-paypal:hover { background: #B06F19; transform: translate(-2px, -2px); box-shadow: 3px 3px 0 rgba(22,24,29,0.15); }
.btn-paypal:active { transform: translate(0, 0); box-shadow: none; }
.btn-paypal-icon {
  width: 22px; height: 22px; flex-shrink: 0; border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
}

.paypal-subscribe-box { max-width: 260px; margin-top: 0.25rem; }

@media (max-width: 720px) {
  .pricing-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   ADMIN (tableau des membres)
   ========================================================================== */
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.admin-table th {
  text-align: left; padding: 0.9rem 1.1rem; font-size: 0.75rem; text-transform: uppercase;
  letter-spacing: 0.03em; color: var(--ink-faint); border-bottom: 2px solid var(--border);
}
.admin-table td { padding: 0.75rem 1.1rem; border-bottom: 1.5px solid var(--border-soft); vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-member { display: flex; align-items: center; gap: 10px; }
.admin-member img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.admin-table select {
  font-family: var(--font-body); font-size: 0.9rem; padding: 5px 8px;
  border: 2px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink);
}
.save-status { margin-left: 8px; font-size: 0.85rem; }

/* ==========================================================================
   ARBRE DE DOMAINES (sous-domaines imbriqués)
   ========================================================================== */
.domain-tree {
  display: flex; flex-direction: column; gap: 0.6rem;
  margin-bottom: 2rem;
}
.domain-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--surface); border: 2px solid var(--border); border-radius: var(--radius-md);
  padding: 0.85rem 1.1rem; text-decoration: none; color: inherit;
  margin-left: var(--indent, 0px);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.domain-row:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--accent);
}
.domain-row-main {
  display: flex; align-items: center; gap: 8px; min-width: 0;
}
.domain-row-name {
  font-family: var(--font-mono); font-weight: 700; font-size: 0.92rem;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.domain-row-branch {
  color: var(--ink-faint); flex-shrink: 0; font-weight: 700;
}

/* --- FIL D'ARIANE (page de gestion) --- */
.breadcrumb {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 0.85rem; color: var(--ink-soft);
  margin: 0.75rem 0 1.25rem;
}
.breadcrumb a { color: var(--ink-soft); text-decoration: none; }
.breadcrumb a:hover { color: var(--ink); text-decoration: underline; }
.breadcrumb .sep { color: var(--ink-faint); }
.breadcrumb .current { color: var(--ink); font-weight: 700; }

/* ==========================================================================
   BANDE DE STATS
   ========================================================================== */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.stat-card {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.25rem;
  box-shadow: var(--shadow-card);
}
.stat-card .stat-label {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.04em; color: var(--ink-soft); margin-bottom: 0.4rem;
}
.stat-card .stat-value {
  font-family: var(--font-display); font-size: 1.4rem; font-weight: 700;
  display: block;
}
.mono { font-family: var(--font-mono); }
.stat-card .stat-value.mono { font-family: var(--font-mono); font-size: 1.15rem; }

/* ==========================================================================
   ÉTAPES NUMÉROTÉES (état vide du dashboard)
   ========================================================================== */
.step-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  text-align: left;
  margin: 2rem 0;
}
.step-item {
  border: 1.5px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 1rem 1.1rem;
  background: var(--surface-soft);
}
.step-number {
  font-family: var(--font-mono);
  font-size: 0.75rem; font-weight: 700; color: var(--accent);
  display: block; margin-bottom: 0.5rem;
}
.step-item h4 { font-size: 0.9rem; margin-bottom: 0.3rem; }
.step-item p { font-size: 0.8rem; color: var(--ink-soft); margin: 0; line-height: 1.45; }

/* ==========================================================================
   SCHÉMA DE FLUX DNS — élément signature
   ========================================================================== */
.flow-card { overflow-x: auto; }
.flow-diagram {
  display: flex; align-items: center; gap: 0;
  min-width: 560px;
  padding: 0.5rem 0 0.25rem;
}
.flow-node {
  flex: 1;
  border: 1.5px solid var(--border-soft);
  background: var(--surface-soft);
  border-radius: var(--radius-md);
  padding: 0.9rem 1rem;
  text-align: center;
}
.flow-node .flow-node-label {
  font-size: 0.68rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.04em; color: var(--ink-faint); display: block; margin-bottom: 0.4rem;
}
.flow-node .flow-node-value {
  font-family: var(--font-mono); font-size: 0.88rem; font-weight: 600;
  color: var(--ink); word-break: break-all;
}
.flow-node.is-live { border-color: var(--accent); background: var(--accent-soft); }
.flow-node.is-live .flow-node-value { color: #7A4A0F; }

.flow-arrow {
  flex-shrink: 0;
  width: 64px; height: 2px;
  position: relative;
  background-image: linear-gradient(to right, var(--ink-faint) 50%, transparent 0%);
  background-size: 10px 2px;
  background-repeat: repeat-x;
  margin: 0 0.5rem;
}
.flow-arrow::after {
  content: '';
  position: absolute; right: -1px; top: 50%;
  width: 8px; height: 8px;
  border-right: 2px solid var(--ink-faint);
  border-bottom: 2px solid var(--ink-faint);
  transform: translateY(-50%) rotate(-45deg);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 900px) {
  .app-layout { flex-direction: column; }

  .mobile-topbar {
    display: flex; align-items: center; justify-content: space-between;
    padding: 1rem 1.25rem;
    background: var(--surface);
    border-bottom: 2px solid var(--border);
    position: sticky; top: 0; z-index: 20;
  }
  .mobile-topbar .sidebar-logo { margin-bottom: 0; font-size: 1.1rem; }
  .mobile-topbar .sidebar-logo .crow-mark { width: 28px; height: 28px; }
  .mobile-menu-toggle { display: flex; }

  .sidebar {
    position: fixed; inset: 0 0 0 auto;
    width: 82%; max-width: 300px;
    height: 100vh;
    z-index: 30;
    transform: translateX(100%);
    transition: transform 0.2s ease;
    box-shadow: -8px 0 24px rgba(22,24,29,0.12);
  }
  .sidebar.open { transform: translateX(0); }

  .sidebar-backdrop {
    display: none;
    position: fixed; inset: 0;
    background: rgba(22,24,29,0.35);
    z-index: 25;
  }
  .sidebar-backdrop.open { display: block; }

  .main-content { padding: 1.75rem 1.25rem 2.5rem; }
  .page-header h1 { font-size: 1.6rem; }

  .grid { grid-template-columns: 1fr; }

  .page-header-row { flex-direction: column; align-items: flex-start; gap: 1rem; }

  .layout-two-col { grid-template-columns: 1fr; }
  .aside-panel { position: static; }

  .stat-strip { grid-template-columns: 1fr 1fr; }
  .step-list { grid-template-columns: 1fr; }
  .domain-row { margin-left: min(var(--indent, 0px), 36px); }
}

@media (max-width: 480px) {
  .card { padding: 1.35rem; }
  .card.centered { padding: 2.25rem 1.5rem; margin: 1.5rem auto; }
  .input-row { flex-direction: column; }
  .stat-strip { grid-template-columns: 1fr; }
}

/* ==========================================================================
   PAGE D'ACCUEIL (LANDING)
   ========================================================================== */
.landing {
  max-width: 1140px;
  margin: 0 auto;
  padding: 2rem 2rem 0;
}

.landing-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0 2.75rem;
}
.landing-nav .sidebar-logo { margin-bottom: 0; }
.landing-nav .crow-mark { background: var(--ink); border-color: var(--ink); }

.btn-nav-login {
  display: inline-flex; align-items: center;
  padding: 10px 18px;
  background: var(--surface); color: var(--ink);
  border: 2px solid var(--border); border-radius: var(--radius-sm);
  font-weight: 700; font-size: 0.9rem; text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-nav-login:hover { transform: translate(-2px, -2px); box-shadow: 3px 3px 0 rgba(22,24,29,0.12); }

/* --- HERO --- */
.landing-hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
  padding-bottom: 3rem;
}

.landing-kicker {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-mono); font-size: 0.76rem; font-weight: 600;
  letter-spacing: 0.03em; color: var(--accent);
  background: var(--accent-soft); border: 1.5px solid rgba(200,127,30,0.3);
  border-radius: 999px; padding: 5px 13px 5px 11px; margin-bottom: 1.4rem;
}
.landing-kicker .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex-shrink: 0;
}

.landing-hero h1 {
  font-size: 2.65rem; line-height: 1.1;
  margin-bottom: 1.2rem;
  max-width: 15ch;
}
.landing-hero h1 .accent-word { color: var(--accent); }

.landing-lede {
  font-size: 1.03rem; line-height: 1.65; color: var(--ink-soft);
  max-width: 44ch; margin: 0 0 1.75rem;
}

.landing-cta-row { display: flex; flex-direction: column; align-items: flex-start; gap: 0.8rem; }
.landing-cta { width: auto; padding: 13px 22px; }
.landing-cta-hint { font-size: 0.83rem; color: var(--ink-faint); }

/* --- Élément signature : aperçu d'un arbre de sous-domaines --- */
.domain-tree-preview { padding: 0; overflow: hidden; }
.dtp-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.8rem 1.1rem;
  border-bottom: 1.5px solid var(--border-soft);
  background: var(--surface-soft);
}
.dtp-head-label {
  font-family: var(--font-mono); font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-faint);
}
.dtp-head-dots { display: flex; gap: 5px; }
.dtp-head-dots span { width: 8px; height: 8px; border-radius: 50%; background: var(--border-soft); }

.dtp-body { padding: 0.9rem 1.1rem 1.05rem; }

.dtp-row {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 0;
  padding-left: calc(var(--depth, 0) * 18px);
  border-bottom: 1px dashed var(--border-soft);
  font-size: 0.85rem;
}
.dtp-row:last-child { border-bottom: none; }
.dtp-branch { color: var(--ink-faint); flex-shrink: 0; font-size: 0.8rem; }
.dtp-name { font-family: var(--font-mono); font-weight: 700; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dtp-suffix { font-weight: 500; color: var(--ink-faint); }
.dtp-ip { margin-left: auto; font-family: var(--font-mono); font-size: 0.76rem; color: var(--ink-faint); flex-shrink: 0; padding-left: 10px; white-space: nowrap; }

.dtp-row.is-creating .dtp-name { color: var(--ink-soft); }
.dtp-pulse {
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
  display: inline-block; margin-right: 5px;
  animation: dtp-pulse 1.4s ease-in-out infinite;
}
@keyframes dtp-pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.35; transform: scale(0.7); } }
@media (prefers-reduced-motion: reduce) { .dtp-pulse { animation: none; } }

.dtp-foot {
  padding: 0.75rem 1.1rem;
  border-top: 1.5px solid var(--border-soft);
  background: var(--surface-soft);
  font-family: var(--font-mono); font-size: 0.72rem; color: var(--ink-faint);
}

/* --- Bande de chiffres (grille dédiée à 4 colonnes, pas la .stat-strip globale à 3) --- */
.landing-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding-bottom: 3rem;
}
.landing-stat {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.15rem;
  box-shadow: var(--shadow-card);
}
.landing-stat .stat-label {
  display: block;
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.04em; color: var(--ink-soft); margin-bottom: 0.4rem;
}
.landing-stat .stat-value {
  font-family: var(--font-display); font-size: 1.3rem; font-weight: 700;
}
.landing-stat .stat-value.mono { font-family: var(--font-mono); font-size: 1.05rem; }

/* --- Sections --- */
.landing-section {
  padding: 3rem 0;
  border-top: 2px solid var(--border-soft);
}

/* --- Fonctionnalités : lignes avec numéro fantôme en fond --- */
.landing-feature-row {
  position: relative;
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 1.5rem;
  padding: 1.6rem 0;
  border-bottom: 1.5px solid var(--border-soft);
  overflow: hidden;
}
.landing-feature-row:first-of-type { padding-top: 0.25rem; }
.landing-feature-row:last-of-type { border-bottom: none; }

.landing-feature-index { font-family: var(--font-mono); font-size: 0.95rem; font-weight: 700; color: var(--accent); z-index: 1; }
.landing-feature-ghost {
  position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-family: var(--font-display); font-weight: 800; font-size: 6rem;
  color: var(--ink); opacity: 0.035; line-height: 1; pointer-events: none;
  user-select: none;
}

.landing-feature-row h3 { font-size: 1.15rem; margin-bottom: 0.5rem; position: relative; z-index: 1; }
.landing-feature-row p { color: var(--ink-soft); font-size: 0.95rem; line-height: 1.6; max-width: 56ch; margin: 0; position: relative; z-index: 1; }
.landing-feature-row .example {
  display: inline-block; margin-top: 0.7rem; position: relative; z-index: 1;
  font-family: var(--font-mono); font-size: 0.8rem;
  background: var(--surface-soft); border: 1.5px solid var(--border-soft);
  border-radius: var(--radius-sm); padding: 5px 10px; color: var(--ink);
}
.landing-feature-row .example .fade { color: var(--ink-faint); }

/* --- Aperçu de l'espace membre (mockup) --- */
.app-preview {
  display: grid;
  grid-template-columns: 190px 1fr;
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  background: var(--surface);
}
.app-preview-side {
  background: var(--ink);
  padding: 1.25rem 1rem;
  display: flex; flex-direction: column; gap: 1.5rem;
}
.app-preview-logo {
  display: flex; align-items: center; gap: 8px;
  color: var(--bg); font-family: var(--font-display); font-weight: 800; font-size: 0.95rem;
}
.app-preview-logo .crow-mark { width: 26px; height: 26px; background: var(--accent); border-color: var(--accent); }
.app-preview-nav { display: flex; flex-direction: column; gap: 6px; }
.app-preview-nav span {
  font-size: 0.78rem; font-weight: 600; color: #A9ABB1;
  padding: 7px 10px; border-radius: 7px;
}
.app-preview-nav span.is-active { background: rgba(251,248,242,0.1); color: var(--bg); }

.app-preview-main { padding: 1.5rem 1.6rem; }
.app-preview-stats { display: flex; gap: 0.75rem; margin-bottom: 1.1rem; }
.app-preview-stats .mini-stat {
  flex: 1; border: 1.5px solid var(--border-soft); border-radius: var(--radius-sm);
  padding: 0.6rem 0.75rem; background: var(--surface-soft);
}
.app-preview-stats .mini-stat span { display: block; }
.app-preview-stats .mini-stat .mini-stat-label { font-size: 0.64rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; color: var(--ink-faint); margin-bottom: 3px; }
.app-preview-stats .mini-stat .mini-stat-value { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; }

.app-preview-rows { display: flex; flex-direction: column; gap: 8px; }
.app-preview-row {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 11px;
  border: 1.5px solid var(--border-soft); border-radius: var(--radius-sm);
  padding-left: calc(11px + (var(--depth, 0) * 16px));
}
.app-preview-row .branch { color: var(--ink-faint); font-size: 0.78rem; }
.app-preview-row .name { font-family: var(--font-mono); font-weight: 700; font-size: 0.82rem; }
.app-preview-row .name .suffix { font-weight: 500; color: var(--ink-faint); }
.app-preview-row .badge { margin-left: auto; font-size: 0.68rem; padding: 2px 9px; }

/* --- CTA final : bloc sombre --- */
.landing-final-cta {
  background: var(--ink);
  color: var(--bg);
  border-radius: var(--radius-lg);
  border: 2px solid var(--border);
  text-align: center;
  padding: 3.25rem 2rem;
  margin: 3rem 0 3.5rem;
  background-image: radial-gradient(circle at 1px 1px, rgba(251,248,242,0.09) 1px, transparent 0);
  background-size: 24px 24px;
}
.landing-final-cta h2 { font-size: 1.6rem; color: var(--bg); margin: 0 auto 0.6rem; max-width: 26ch; }
.landing-final-cta p { color: #C7C9CE; margin: 0 auto 1.6rem; max-width: 42ch; font-size: 0.95rem; }
.landing-final-cta .landing-cta { display: inline-flex; }

.landing-footer {
  text-align: center;
  font-family: var(--font-mono); font-size: 0.78rem;
  color: var(--ink-faint); letter-spacing: 0.02em;
  padding: 0 0 2.5rem;
}

@media (max-width: 900px) {
  .landing-stats { grid-template-columns: 1fr 1fr; }
  .app-preview { grid-template-columns: 1fr; }
  .app-preview-side { flex-direction: row; align-items: center; justify-content: space-between; }
  .app-preview-nav { flex-direction: row; }
}

@media (max-width: 800px) {
  .landing { padding: 1.5rem 1.25rem 0; }
  .landing-hero { grid-template-columns: 1fr; gap: 2rem; padding-bottom: 2.5rem; }
  .landing-hero h1 { font-size: 2rem; max-width: none; }
  .landing-lede { max-width: none; }
  .landing-stats { grid-template-columns: 1fr; }
  .landing-feature-row { grid-template-columns: 1fr; gap: 0.4rem; }
  .landing-feature-ghost { display: none; }
  .dtp-ip { display: none; }
  .app-preview-nav { flex-wrap: wrap; }
}

/* ==========================================================================
   MODALE DE PAIEMENT (page /premium)
   ========================================================================== */
.pay-modal-backdrop {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(22, 24, 29, 0.5);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.2s ease;
}
.pay-modal-backdrop.is-open { opacity: 1; pointer-events: auto; }

.pay-modal {
  position: relative;
  background: var(--surface); border: 2px solid var(--border); border-radius: var(--radius-md);
  box-shadow: 6px 6px 0 rgba(22,24,29,0.12);
  padding: 2rem 1.75rem; max-width: 340px; width: 100%; text-align: center;
  transform: scale(0.9) translateY(8px);
  transition: transform 0.28s cubic-bezier(0.2, 0.9, 0.3, 1.25);
}
.pay-modal-backdrop.is-open .pay-modal { transform: scale(1) translateY(0); }

.pay-modal h3 { margin: 0 0 0.4rem; font-family: var(--font-display); font-size: 1.15rem; }
.pay-modal p { margin: 0; color: var(--ink-soft); font-size: 0.88rem; line-height: 1.5; }
.pay-modal button { margin-top: 1.4rem; }

.pay-modal-icon {
  position: relative;
  width: 56px; height: 56px; margin: 0 auto 1.1rem;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
}
.pay-modal-icon.is-loading { background: var(--accent-soft); }
.pay-modal-icon.is-success { background: var(--success-bg); }
.pay-modal-icon.is-error { background: var(--danger-bg); }
.pay-modal-icon.is-neutral { background: var(--surface-soft); border: 1.5px solid var(--border-soft); }

.pay-modal-spinner {
  width: 24px; height: 24px; border-radius: 50%;
  border: 3px solid rgba(200,127,30,0.25); border-top-color: var(--accent);
  animation: paySpin 0.8s linear infinite;
}
@keyframes paySpin { to { transform: rotate(360deg); } }

.pay-modal-check { animation: payPop 0.3s ease 0.05s both; }
.pay-modal-check path {
  stroke-dasharray: 26; stroke-dashoffset: 26;
  animation: payDrawCheck 0.35s ease 0.15s forwards;
}
@keyframes payDrawCheck { to { stroke-dashoffset: 0; } }
@keyframes payPop { from { transform: scale(0.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.confetti-burst { position: absolute; inset: 0; }
.confetti-dot {
  position: absolute; top: 50%; left: 50%; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  animation: confettiBurst 0.7s ease-out both;
}
.confetti-dot.dot-0 { --rot: 0deg; background: var(--accent); animation-delay: 0.05s; }
.confetti-dot.dot-1 { --rot: 60deg; background: var(--success); animation-delay: 0.1s; }
.confetti-dot.dot-2 { --rot: 120deg; background: var(--accent); animation-delay: 0.02s; }
.confetti-dot.dot-3 { --rot: 180deg; background: var(--success); animation-delay: 0.12s; }
.confetti-dot.dot-4 { --rot: 240deg; background: var(--accent); animation-delay: 0.07s; }
.confetti-dot.dot-5 { --rot: 300deg; background: var(--success); animation-delay: 0.15s; }
@keyframes confettiBurst {
  from { opacity: 1; transform: rotate(var(--rot, 0deg)) translateY(-4px) scale(0.6); }
  to { opacity: 0; transform: rotate(var(--rot, 0deg)) translateY(-34px) scale(1); }
}
/* ==========================================================================
   PAGE PREMIUM — REFONTE
   ========================================================================== */

/* --- Hero sombre avec suivi visuel des emplacements --- */
.premium-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  background: var(--ink);
  color: var(--bg);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2.75rem;
  margin-bottom: 2rem;
  background-image: radial-gradient(circle at 1px 1px, rgba(251,248,242,0.09) 1px, transparent 0);
  background-size: 24px 24px;
}
.premium-hero-text { position: relative; z-index: 1; max-width: 560px; }
.premium-hero .landing-kicker {
  background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.18); color: var(--accent);
}
.premium-hero-text h2 { color: var(--bg); font-size: 2rem; line-height: 1.15; margin: 0 0 0.75rem; }
.premium-hero-text > p { color: #C7C9CE; font-size: 0.98rem; line-height: 1.6; margin: 0; max-width: 50ch; }
.premium-hero-text > p strong { color: var(--bg); }

.premium-hero-icon {
  position: relative; z-index: 1; flex-shrink: 0;
  width: 76px; height: 76px;
  border-radius: var(--radius-lg);
  border: 2px solid var(--accent);
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 4px 4px 0 rgba(0,0,0,0.28);
}

.slot-tracker { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.75rem; }
.slot-node {
  width: 38px; height: 38px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid rgba(251,248,242,0.25);
  background: rgba(251,248,242,0.05);
  color: var(--ink);
  transition: transform 0.15s ease;
}
.slot-node svg { width: 15px; height: 15px; }
.slot-node.is-open { border-color: rgba(251,248,242,0.35); background: rgba(251,248,242,0.08); }
.slot-node.is-filled { background: var(--accent); border-color: var(--accent); }
.slot-node.is-paid.is-open { border-color: rgba(30,138,86,0.6); background: rgba(30,138,86,0.14); }
.slot-node.is-paid.is-filled { background: var(--success); border-color: var(--success); color: var(--bg); }
.slot-node.is-locked { border-style: dashed; border-color: rgba(251,248,242,0.3); background: transparent; color: rgba(251,248,242,0.55); }

.slot-tracker-legend { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 1.1rem; margin-top: 1.1rem; }
.slot-tracker-legend span { display: flex; align-items: center; gap: 6px; font-size: 0.78rem; color: #C7C9CE; }
.slot-tracker-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; flex-shrink: 0; }

@media (max-width: 720px) {
  .premium-hero { flex-direction: column; padding: 2rem 1.5rem; }
  .premium-hero-icon { width: 60px; height: 60px; }
}

/* --- Sous-titre de section --- */
.section-sub { color: var(--ink-soft); font-size: 0.88rem; margin: -0.6rem 0 1.25rem; max-width: 60ch; }

/* --- Lignes de fonctionnalités (réutilise le ghost-number de la landing) --- */
.feature-rows { margin-bottom: 2.5rem; }

/* --- Tableau comparatif Gratuit / Premium --- */
.compare-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.compare-table thead th {
  text-align: left; padding: 0.9rem 1.25rem; font-size: 0.72rem; text-transform: uppercase;
  letter-spacing: 0.04em; color: var(--ink-faint); border-bottom: 2px solid var(--border);
  font-family: var(--font-display);
}
.compare-table td { padding: 0.85rem 1.25rem; border-bottom: 1.5px solid var(--border-soft); }
.compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table td:first-child { font-weight: 600; color: var(--ink-soft); }
.compare-table th.col-premium, .compare-table td.col-premium {
  background: var(--accent-soft); font-weight: 700; color: var(--ink);
}
.compare-table thead th.col-premium { color: var(--accent); }

/* --- Grille de confiance (icônes) --- */
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin: 0 0 2.5rem; }
.trust-card {
  display: flex; gap: 10px; align-items: flex-start;
  border: 1.5px solid var(--border-soft); border-radius: var(--radius-md);
  background: var(--surface-soft); padding: 1.1rem 1.15rem;
}
.trust-card .trust-icon {
  width: 30px; height: 30px; flex-shrink: 0; border-radius: 8px;
  border: 1.5px solid var(--border-soft); background: var(--surface);
  display: flex; align-items: center; justify-content: center;
}
.trust-card .trust-icon svg { width: 15px; height: 15px; }
.trust-card p { margin: 0; font-size: 0.84rem; color: var(--ink-soft); line-height: 1.5; }

@media (max-width: 900px) { .trust-grid { grid-template-columns: repeat(2, 1fr) !important; } }
@media (max-width: 520px) { .trust-grid { grid-template-columns: 1fr !important; } }

/* --- FAQ en accordéon --- */
.faq-list { display: flex; flex-direction: column; gap: 0.7rem; margin-bottom: 1rem; }
.faq-item {
  border: 1.5px solid var(--border-soft); border-radius: var(--radius-md);
  background: var(--surface); overflow: hidden;
}
.faq-item summary {
  cursor: pointer; list-style: none;
  padding: 1rem 1.25rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  font-weight: 700; font-family: var(--font-display); font-size: 0.95rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::marker { content: ''; }
.faq-item summary:hover { background: var(--surface-soft); }

.faq-icon {
  width: 22px; height: 22px; flex-shrink: 0; border-radius: 6px;
  border: 1.5px solid var(--border-soft);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.faq-icon svg { width: 12px; height: 12px; }
.faq-item[open] .faq-icon { transform: rotate(45deg); background: var(--ink); border-color: var(--ink); color: var(--bg); }

.faq-item-body {
  padding: 0 1.25rem 1.1rem; margin-top: -0.2rem;
  color: var(--ink-soft); font-size: 0.88rem; line-height: 1.6;
}

@media (max-width: 480px) {
  .compare-table { font-size: 0.82rem; }
  .compare-table thead th, .compare-table td { padding: 0.7rem 0.8rem; }
}
