/* =====================================================================
   LUSTRA — Design system premium 2026
   Couche chargée en dernier : redéfinit les tokens et affine les
   composants partagés pour un rendu sobre, dense et luxueux
   (inspiration Stripe / Linear / Bexio / Qonto).
   ===================================================================== */

/* ---------- 1. Tokens ------------------------------------------------- */
:root {
  /* Neutres */
  --ink: #161b22;
  --ink-soft: #3a4452;
  --blue-deep: #111722;          /* titres */
  --muted: #6b7787;
  --bg: #fafbfc;
  --card: #ffffff;
  --surface: #ffffff;
  --surface-2: #f7f8fa;
  --surface-3: #f1f3f6;
  --soft: #f4f7fb;

  /* Lignes 1px très douces */
  --line: #e7e9ee;
  --line-soft: #eef0f4;
  --line-strong: #d7dbe3;

  /* Accent unique, sobre */
  --blue: #2456e6;
  --teal: #0e9f6e;
  --green: #0e9f6e;
  --primary: #2456e6;
  --primary-700: #1b43c4;
  --primary-600: #1f4ed6;
  --primary-50: #eef2fe;
  --primary-100: #dde6fd;

  /* États */
  --success: #0e9f6e;
  --success-50: #e9f8f1;
  --warning: #b25e09;
  --warning-50: #fdf3e7;
  --danger: #c0341d;
  --danger-50: #fdecea;
  --info: #2456e6;

  /* Rayons (densité Linear/Stripe) */
  --radius-xs: 7px;
  --radius-sm: 9px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-pill: 999px;

  /* Ombres quasi inexistantes */
  --shadow-xs: 0 1px 1px rgba(16, 24, 40, .04);
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .05);
  --shadow: 0 1px 3px rgba(16, 24, 40, .06), 0 1px 2px rgba(16, 24, 40, .04);
  --shadow-lg: 0 10px 30px rgba(16, 24, 40, .10);
  --shadow-ring: 0 0 0 3px rgba(36, 86, 230, .18);

  --app-bg: #fafbfc;
  --app-surface: #ffffff;
  --app-surface-2: #f7f8fa;
  --app-line: #e7e9ee;
  --app-shadow: 0 10px 30px rgba(16, 24, 40, .08);
  --app-shadow-soft: 0 1px 3px rgba(16, 24, 40, .06);
  --amber: #b25e09;
}

/* ---------- 2. Base -------------------------------------------------- */
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: var(--ink);
  background: var(--bg);
  font-feature-settings: 'cv05' 1, 'ss01' 1;
  letter-spacing: -0.005em;
}
::selection { background: rgba(36, 86, 230, .14); }

a { color: var(--primary); }
a:hover { color: var(--primary-700); }

h1, h2, h3, h4 { color: var(--blue-deep); font-weight: 650; letter-spacing: -0.02em; }
h1 { font-size: clamp(26px, 3.4vw, 34px); line-height: 1.18; }
h2 { font-size: clamp(20px, 2.4vw, 25px); line-height: 1.22; }
h3 { font-size: 18px; line-height: 1.3; }

.muted { color: var(--muted); }
.eyebrow {
  text-transform: uppercase;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--muted);
}

:where(a, button, input, select, textarea, summary):focus-visible {
  outline: none;
  box-shadow: var(--shadow-ring);
  border-radius: var(--radius-xs);
}

/* ---------- 3. Topbar / marque -------------------------------------- */
.topbar {
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--line);
  padding: 11px 22px;
}
.brand { font-weight: 700; gap: 10px; }
.brand-text strong { font-size: 16px; font-weight: 700; color: var(--blue-deep); letter-spacing: -0.02em; }
.brand small { font-size: 10.5px; font-weight: 600; letter-spacing: .1em; color: var(--muted); }
.saas-brand-mark, .tenant-brand-mark, .brand-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; padding: 0;
  background: var(--blue-deep);
  color: #fff;
  border-radius: 9px;
  font-weight: 700; font-size: 14px; letter-spacing: -0.01em;
  box-shadow: none;
}
.nav a { color: var(--ink-soft); font-weight: 550; font-size: 14px; }
.nav a:hover { color: var(--blue-deep); }
.nav-toggle {
  border: 1px solid var(--line-strong);
  background: #fff; color: var(--ink);
  border-radius: 9px; padding: 8px 12px; font-weight: 550; font-size: 14px;
}

/* ---------- 4. Boutons ---------------------------------------------- */
.button, button {
  background: var(--primary);
  color: #fff;
  border: 1px solid transparent;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.01em;
  padding: 9px 15px;
  min-height: 40px;
  box-shadow: none;
  transition: background .15s ease, border-color .15s ease, color .15s ease, transform .04s ease;
}
.button:hover, button:hover { background: var(--primary-700); color: #fff; }
.button:active, button:active { transform: translateY(.5px); }

.button.secondary, button.secondary,
.button.ghost, button.ghost {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line-strong);
}
.button.secondary:hover, button.secondary:hover,
.button.ghost:hover, button.ghost:hover {
  background: var(--surface-2);
  color: var(--blue-deep);
  border-color: var(--line-strong);
}
.button.small, button.small { min-height: 34px; padding: 7px 12px; font-size: 13px; border-radius: 9px; }
.button.danger, button.danger { background: var(--danger); color: #fff; }
.button.danger:hover, button.danger:hover { background: #a32a16; }
.button[disabled], button[disabled] { opacity: .5; cursor: not-allowed; }

/* le texte sur fond bleu reste blanc, jamais gris */
.button:not(.secondary):not(.ghost):not([class*="outline"]) { color: #fff; }

.inline-form button { color: var(--primary); font-weight: 600; min-height: 0; }
.inline-form button:hover { background: transparent; color: var(--primary-700); }

/* ---------- 5. Cartes / panneaux / surfaces ------------------------- */
.card, .panel, .contact-box, .stat, .seo-card, .ops-card, .ops-summary article,
.ops-total-grid article, .table-wrap {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
}
.card, .panel, .contact-box { padding: 18px; }
.stat { padding: 16px; }
.stat strong { color: var(--blue-deep); font-weight: 700; }

/* ---------- 6. Tableaux --------------------------------------------- */
.table-wrap { border-radius: var(--radius); overflow: hidden; }
table { font-size: 14px; }
th {
  font-size: 11.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  color: var(--muted); background: var(--surface-2);
  border-bottom: 1px solid var(--line);
}
td { border-bottom: 1px solid var(--line-soft); color: var(--ink-soft); }
tbody tr:last-child td { border-bottom: 0; }
tbody tr { transition: background .12s ease; }
tbody tr:hover td { background: var(--surface-2); }

/* ---------- 7. Formulaires ------------------------------------------ */
label { font-weight: 550; color: var(--ink-soft); font-size: 13.5px; gap: 6px; }
input, select, textarea {
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  background: #fff;
  color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
input::placeholder, textarea::placeholder { color: #9aa4b2; }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: var(--shadow-ring);
}

/* ---------- 8. Badges / statuts ------------------------------------- */
.badge {
  background: var(--surface-3);
  color: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  font-size: 11.5px; font-weight: 600; letter-spacing: .01em;
  padding: 3px 9px;
}
.badge.success, .badge.green, .badge.paid { background: var(--success-50); color: #0a7350; border-color: #c7ecdb; }
.badge.warning, .badge.amber, .badge.pending { background: var(--warning-50); color: var(--warning); border-color: #f5e0c2; }
.badge.danger, .badge.red, .badge.late { background: var(--danger-50); color: var(--danger); border-color: #f4cfc8; }
.badge.info, .badge.blue { background: var(--primary-50); color: var(--primary-700); border-color: var(--primary-100); }

/* ---------- 9. Flash / alertes -------------------------------------- */
.flash {
  border-radius: var(--radius);
  border: 1px solid #c7ecdb;
  background: var(--success-50);
  color: #0a7350;
  font-weight: 550; font-size: 14px;
  box-shadow: var(--shadow-xs);
}
.flash.warning { background: var(--warning-50); color: var(--warning); border-color: #f5e0c2; }
.flash.error, .flash.danger { background: var(--danger-50); color: var(--danger); border-color: #f4cfc8; }
.errors { background: var(--danger-50); color: var(--danger); border: 1px solid #f4cfc8; border-radius: var(--radius); }

/* ---------- 10. Footer ---------------------------------------------- */
.footer {
  border-top: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  font-size: 13.5px;
  padding: 28px 24px;
}
.footer a { color: var(--ink-soft); font-weight: 550; }
.footer a:hover { color: var(--blue-deep); }

/* ---------- 11. Vitrine SaaS / pages publiques ---------------------- */
.hero {
  min-height: auto;
  background: var(--bg);
  color: var(--ink);
  padding: 0;
}
.seo-hero {
  background: radial-gradient(1200px 500px at 70% -10%, #eef2fe 0%, rgba(238,242,254,0) 60%), #fff;
  border-bottom: 1px solid var(--line);
  padding: clamp(48px, 7vw, 86px) 20px clamp(40px, 5vw, 64px);
  min-height: auto;
}
.seo-hero h1, .seo-page-head h1, .hero h1 {
  color: var(--blue-deep);
  font-size: clamp(34px, 5vw, 54px);
  letter-spacing: -0.03em;
  line-height: 1.08;
}
.seo-hero .hero-lead, .seo-page-head p, .hero p {
  color: var(--ink-soft);
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.6;
  font-weight: 400;
}
.seo-proof span {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-soft);
  font-weight: 550; font-size: 12.5px;
  box-shadow: var(--shadow-xs);
}
.seo-card { box-shadow: var(--shadow-xs); }
.hero-panel h2 { color: var(--blue-deep); }
.service-tile h2, .service-tile h3 { font-size: 19px; }
.service-tile h2 a, .service-tile h3 a, .area-links a, .compact-link-grid a { color: var(--blue-deep); }
.text-link { color: var(--primary); font-weight: 600; }
.tag-row span {
  background: var(--surface-3); border: 1px solid var(--line);
  color: var(--ink-soft); font-weight: 550;
}

/* Bandeau accent : on garde un bloc fort mais sobre */
.seo-band {
  background: var(--blue-deep);
  color: #fff;
  border-radius: var(--radius-lg);
  box-shadow: none;
  border: 1px solid var(--blue-deep);
}
.seo-band p { color: rgba(255, 255, 255, .82); }
.seo-band .seo-list span { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .16); }

/* FAQ */
.faq-list details { border: 1px solid var(--line); box-shadow: var(--shadow-xs); border-radius: var(--radius); }
.faq-list summary { color: var(--blue-deep); font-weight: 600; }
.faq-list details[open] summary { background: var(--surface-2); border-color: var(--line); }
.faq-list p { color: var(--ink-soft); }

/* ---------- 12. Mini-pagination ------------------------------------- */
.simple-pagination a, .simple-pagination span {
  border: 1px solid var(--line-strong); background: #fff; color: var(--ink-soft);
  font-weight: 550; border-radius: 9px;
}
.simple-pagination a:hover { border-color: var(--primary); color: var(--primary); }
.simple-pagination a.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ---------- 13. Page head admin ------------------------------------- */
.page-head h1, .compact-page-head h1 { letter-spacing: -0.025em; }
.page-head .muted, .compact-page-head .muted { font-size: 14px; }

/* ---------- 14. Mobile action bar ----------------------------------- */
.mobile-action-bar {
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(14px);
}
.mobile-action { color: var(--muted); font-weight: 550; }
.mobile-action.active { color: var(--primary); }
.mobile-action-quote, .mobile-sticky-quote { background: var(--primary); color: #fff; }

/* ---------- 15. Vitrine SaaS — sections "suite-*" ------------------- */
.suite-hero {
  min-height: auto;
  padding: clamp(52px, 6vw, 92px) min(6vw, 78px) clamp(44px, 5vw, 72px);
  background: radial-gradient(1100px 460px at 78% -8%, #eef2fe 0%, rgba(238, 242, 254, 0) 58%), #fff;
  border-bottom: 1px solid var(--line);
}
.suite-hero h1 { color: var(--blue-deep); font-size: clamp(34px, 4.3vw, 56px); letter-spacing: -0.03em; line-height: 1.07; }
.suite-hero .hero-lead { color: var(--ink-soft); font-weight: 400; }
.suite-hero-evidence article {
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow-xs);
  border-radius: var(--radius);
}
.suite-hero-evidence strong { color: var(--blue-deep); }
.suite-trust-row span {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-soft);
  font-weight: 550;
  box-shadow: var(--shadow-xs);
}
.suite-trust-row-subtle span { background: var(--surface-2); box-shadow: none; color: var(--muted); }

/* En-têtes de section */
.suite-section-head h2 { color: var(--blue-deep); letter-spacing: -0.025em; }
.suite-section-head p { color: var(--ink-soft); }
.lined-eyebrow { color: var(--muted); }

/* Cartes "problèmes" */
.suite-pain-grid article {
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow-xs);
  border-radius: var(--radius);
}
.suite-pain-grid h3 { color: var(--blue-deep); font-weight: 600; }
.suite-pain-icon { color: var(--primary); }

/* Bandeau preuves */
.suite-proof-strip {
  max-width: 1180px;
  margin: 8px auto;
  padding: 8px 18px 28px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.suite-proof-strip article {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-xs);
  display: grid;
  gap: 6px;
}
.suite-proof-strip strong { color: var(--blue-deep); font-size: 16px; font-weight: 600; }
.suite-proof-strip span { color: var(--muted); font-size: 14px; line-height: 1.55; }

/* Matrice fonctionnalités */
.suite-feature-matrix article {
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow-xs);
  border-radius: var(--radius);
}
.suite-feature-matrix h3 { color: var(--blue-deep); font-size: 16px; font-weight: 600; }
.suite-feature-matrix p { color: var(--muted); }
.suite-feature-matrix span {
  background: var(--primary-50);
  color: var(--primary);
  border-radius: 9px;
}

/* Étapes */
.suite-flow-section h2 { color: var(--blue-deep); }
.suite-flow-grid article {
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow-xs);
  border-radius: var(--radius);
}
.suite-flow-grid strong { color: var(--primary); font-weight: 700; font-size: 14px; letter-spacing: .02em; }
.suite-flow-grid h3 { color: var(--blue-deep); font-size: 16px; }

/* Bandeau mobile (foncé, sobre) */
.suite-mobile-band {
  background: var(--blue-deep);
  box-shadow: none;
  border: 1px solid var(--blue-deep);
}
.suite-mobile-band .eyebrow { color: #9db4ff; }
.suite-check-list li { color: rgba(255, 255, 255, .86); }

/* Teaser tarifs */
.suite-price-teaser article {
  border: 1px solid var(--line);
  box-shadow: var(--shadow-xs);
  border-radius: var(--radius-lg);
}
.suite-price-teaser article:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: var(--line-strong); }
.suite-price-teaser article.is-featured { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary), var(--shadow-sm); }
.suite-price-teaser strong { color: var(--blue-deep); font-weight: 700; }
.suite-price-teaser span:not(.suite-price-flag) { color: var(--muted); font-weight: 600; font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; }
.suite-price-flag { background: var(--primary); color: #fff; border-radius: var(--radius-pill); font-size: 11px; font-weight: 600; }
.suite-price-teaser p { color: var(--muted); }

/* Bandeau démo / final */
.suite-demo-band { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.suite-demo-band h2 { color: var(--blue-deep); }
.suite-demo-band p { color: var(--ink-soft); }
.pricing-faq h2 { color: var(--blue-deep); letter-spacing: -0.02em; }

/* ---------- 16. Page tarifs ---------------------------------------- */
.pricing-hero h1 { color: var(--blue-deep); font-size: clamp(34px, 4.4vw, 54px); letter-spacing: -0.03em; line-height: 1.08; }
.pricing-hero > div > p { color: var(--ink-soft); }
.pricing-hero aside {
  border: 1px solid var(--line);
  background: var(--primary-50);
  box-shadow: none;
  border-radius: var(--radius-lg);
}
.pricing-hero aside span { color: var(--primary-700); font-weight: 600; }
.pricing-hero aside strong { color: var(--blue-deep); font-size: 26px; font-weight: 700; }
.pricing-hero aside p { color: var(--ink-soft); }

.pricing-card {
  border: 1px solid var(--line);
  box-shadow: var(--shadow-xs);
  border-radius: var(--radius-lg);
}
.pricing-card.featured {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary), var(--shadow-sm);
}
.pricing-card h2 { color: var(--blue-deep); font-size: 20px; }
.pricing-card > p { color: var(--muted); }
.plan-badge { background: var(--primary); color: #fff; font-weight: 600; letter-spacing: .05em; }
.plan-price strong { color: var(--blue-deep); font-weight: 700; }
.plan-price small { color: var(--muted); }
.plan-fit { border: 1px solid var(--line); background: var(--surface-2); }
.plan-fit span { color: var(--muted); font-weight: 600; }
.plan-fit strong { color: var(--ink-soft); font-weight: 500; }
.pricing-card ul li { color: var(--ink-soft); }

.plan-compare-table th { background: var(--surface-2); color: var(--blue-deep); border-bottom: 1px solid var(--line); }
.plan-compare-table td { border-bottom: 1px solid var(--line-soft); }
.plan-compare-table tbody tr:hover td { background: var(--surface-2); }
.compare-check { background: var(--success-50); color: #0a7350; font-weight: 600; }
.compare-empty { color: #b8c0cc; }

.pricing-note-band article {
  border: 1px solid var(--line);
  box-shadow: var(--shadow-xs);
  border-radius: var(--radius);
}
.pricing-note-band strong { color: var(--blue-deep); font-weight: 600; }
.pricing-note-band span { color: var(--muted); }

/* Bandeau CTA final (foncé, sobre) */
.final-cta {
  background: var(--blue-deep);
  box-shadow: none;
  border: 1px solid var(--blue-deep);
  border-radius: var(--radius-lg);
}
.final-cta .eyebrow { color: #9db4ff; }
.final-cta p { color: rgba(255, 255, 255, .82); }
.final-cta .button:not(.secondary) { background: #fff; color: var(--blue-deep); }
.final-cta .button:not(.secondary):hover { background: #eef2fe; color: var(--blue-deep); }
.final-cta .button.secondary, .saas-final-cta .button.secondary {
  background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35);
}
.final-cta .button.secondary:hover { background: rgba(255, 255, 255, .1); color: #fff; }

/* ---------- 17. Espace de travail (admin / client / employé) -------- */
/* Typographie plus fine : on calme les graisses 800 du workspace. */
.app-ui .page-head h1 { font-weight: 700; letter-spacing: -0.03em; }
.app-ui .stat strong, .app-ui .compact-stat strong { font-weight: 700; }
.app-ui .panel h2, .app-ui .compact-heading h2, .app-ui .inline-heading h2 { font-weight: 680; }
.app-ui .premium-side-nav .side-nav-title span { font-weight: 700; }
/* Bouton primaire workspace : plat et net, texte blanc garanti */
.app-ui .button:not(.secondary):not(.ghost), .app-ui main .button:not(.secondary):not(.ghost) {
  background: var(--primary);
  background-image: none;
  color: #fff;
  box-shadow: none;
}
.app-ui .button:not(.secondary):not(.ghost):hover { background: var(--primary-700); color: #fff; }

/* ---------- 18. SaaS admin global (séparé de l'admin entreprise) ---- */
.saas-admin-page { background: var(--bg); }
.saas-admin-rail {
  border: 1px solid var(--line);
  box-shadow: var(--shadow-xs);
  border-radius: var(--radius-lg);
}
.rail-brand span {
  background: var(--blue-deep);
  color: #fff;
  font-weight: 700;
  border-radius: 9px;
}
.rail-brand strong { color: var(--blue-deep); font-weight: 700; }
.saas-admin-rail nav a { color: var(--ink-soft); font-weight: 550; }
.saas-admin-rail nav a.active, .saas-admin-rail nav a:hover { background: var(--blue-deep); color: #fff; }
.rail-warning { color: var(--muted); font-size: 12.5px; }

.saas-admin-head {
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-xs);
  border-radius: var(--radius-lg);
}
.saas-admin-head h1 { color: var(--blue-deep); font-size: clamp(24px, 2.6vw, 32px); letter-spacing: -0.03em; line-height: 1.12; }
.saas-admin-head .eyebrow { color: var(--muted); }
.saas-admin-head > div > p { color: var(--ink-soft); }

.saas-admin-stats article {
  border: 1px solid var(--line);
  box-shadow: var(--shadow-xs);
  border-radius: var(--radius);
}
.saas-admin-stats article span { color: var(--muted); font-weight: 600; font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; }
.saas-admin-stats article strong { color: var(--blue-deep); font-weight: 700; font-size: 26px; letter-spacing: -0.02em; }
.saas-admin-stats article small { color: var(--muted); }

.saas-admin-table h2 { color: var(--blue-deep); font-size: 17px; font-weight: 650; }
.saas-admin-table .table-title p { color: var(--muted); }
.saas-admin-table td strong { color: var(--blue-deep); font-weight: 600; }
.saas-admin-table td span { color: var(--muted); font-size: 13px; }
.saas-admin-filters label { font-weight: 550; color: var(--ink-soft); }

/* ---------- 19. Templates de mini-site (builder) ------------------- */
/* Héros sombres (b2b-corporate, portfolio-visuel) : lisibilité des actions. */
.template-b2b-corporate .builder-hero .button.secondary,
.template-portfolio-visuel .builder-hero .button.secondary {
  background: rgba(255, 255, 255, .08) !important;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, .45) !important;
  box-shadow: none !important;
}
.template-b2b-corporate .builder-hero .button.secondary:hover,
.template-portfolio-visuel .builder-hero .button.secondary:hover {
  background: rgba(255, 255, 255, .16) !important;
  color: #fff !important;
  border-color: rgba(255, 255, 255, .65) !important;
}
.template-b2b-corporate .builder-hero a:not(.button),
.template-portfolio-visuel .builder-hero a:not(.button) {
  color: #cdd9ff;
}
.template-b2b-corporate .builder-hero .eyebrow,
.template-portfolio-visuel .builder-hero .eyebrow {
  color: rgba(255, 255, 255, .72);
}
/* Premium-service : héros clair raffiné, cohérent avec la vitrine. */
.template-premium-service .builder-hero {
  background: radial-gradient(900px 380px at 80% -10%, var(--primary-50) 0%, rgba(238,242,254,0) 60%), #fff;
}
/* Artisan-compact : coins nets, sobre, sans ombres marquées. */
.template-artisan-compact .seo-card,
.template-artisan-compact .builder-card { box-shadow: none; border-color: var(--line); }
/* Intervention-rapide : accent chaleureux mais maîtrisé. */
.template-intervention-rapide .builder-hero { border-color: #f0e2c4; }

/* ---------- 20. Studio site (builder type Elementor) --------------- */
/* Le builder utilise toute la largeur : le canevas devient la pièce maîtresse. */
.app-ui .content.studio-content { max-width: min(1880px, 100%); padding-left: clamp(16px, 2vw, 28px); padding-right: clamp(16px, 2vw, 28px); }
.studio-builder { grid-template-columns: 304px minmax(0, 1fr) 336px !important; gap: 18px !important; }
/* Onglets de bascule de panneaux : inutiles en desktop (3 panneaux visibles). */
@media (min-width: 1100px) { .studio-workspace-tabs { display: none !important; } }

/* Panneaux */
.studio-panel { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-xs); }
.studio-panel-head strong { color: var(--blue-deep); font-weight: 650; }
.studio-panel-head span { color: var(--muted); font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; }
.studio-builder-sidebar, .studio-builder-inspector { align-content: start; }

/* Bibliothèque de blocs : grandes pastilles, draggables */
.studio-block-library { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.studio-block-add {
  display: flex; align-items: center; gap: 8px;
  border: 1px solid var(--line-strong); background: #fff; color: var(--ink);
  border-radius: 10px; padding: 10px 12px; font-weight: 550; font-size: 13px;
  cursor: grab; transition: border-color .12s, background .12s, box-shadow .12s; min-height: 0;
}
.studio-block-add:hover { border-color: var(--primary); background: var(--primary-50); color: var(--primary-700); }
.studio-block-add:active { cursor: grabbing; }
.studio-block-add span { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; background: var(--primary-50); color: var(--primary); font-weight: 700; }
.studio-block-library.is-picking { outline: 2px dashed var(--primary); outline-offset: 4px; border-radius: 12px; }

/* Canevas */
.studio-canvas-shell { background: var(--surface-3) !important; border-color: var(--line) !important; border-radius: var(--radius-lg) !important; }
.studio-builder-preview { box-shadow: var(--shadow-lg) !important; border-radius: var(--radius) !important; }
.studio-preview-page { min-height: 70vh; }

/* Bloc dans le canevas : contour de survol + sélection façon Elementor */
.builder-preview-block { position: relative; outline: 1.5px solid transparent; outline-offset: -1.5px; transition: outline-color .12s; }
.builder-preview-block:hover { outline-color: var(--primary-100); }
.builder-preview-block.selected { outline: 2px solid var(--primary); outline-offset: -2px; }
.builder-block-toolbar {
  position: absolute; top: 0; left: 12px; transform: translateY(-50%);
  display: none; align-items: center; gap: 4px; z-index: 5;
  background: var(--blue-deep); color: #fff; border-radius: var(--radius-pill); padding: 4px 6px;
  box-shadow: var(--shadow);
}
.builder-preview-block:hover .builder-block-toolbar,
.builder-preview-block.selected .builder-block-toolbar { display: inline-flex; }
.builder-block-toolbar strong { font-size: 11px; font-weight: 600; padding: 0 6px; }
.builder-block-toolbar button { background: transparent; border: 0; color: #fff; min-height: 0; width: 24px; height: 24px; padding: 0; border-radius: 6px; font-size: 13px; cursor: pointer; }
.builder-block-toolbar button:hover { background: rgba(255, 255, 255, .16); }
.builder-drag-handle { cursor: grab; color: rgba(255, 255, 255, .8); padding: 0 4px; }
.builder-preview-block.is-hidden { opacity: .5; }

/* Texte éditable inline : repère discret au survol */
.builder-preview-block [contenteditable="true"] { border-radius: 4px; transition: box-shadow .12s, background .12s; outline: none; }
.builder-preview-block [contenteditable="true"]:hover { box-shadow: 0 0 0 1px var(--primary-100); }
.builder-preview-block [contenteditable="true"]:focus { box-shadow: 0 0 0 2px var(--primary); background: #fff; }

/* Zones d'insertion "+" entre les blocs */
.builder-insert-zone {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  width: 100%; min-height: 18px; border: 0; background: transparent; cursor: pointer;
  color: var(--primary); font-weight: 600; font-size: 12px; opacity: 0; transition: opacity .12s; padding: 3px 0;
}
.builder-insert-zone::before, .builder-insert-zone::after { content: ""; height: 1px; flex: 1; background: var(--primary); opacity: .4; }
.builder-canvas:hover .builder-insert-zone, .builder-insert-zone:focus, .builder-insert-zone.is-active { opacity: 1; }
.builder-insert-zone:hover { color: var(--primary-700); }

/* Ligne d'insertion pendant le drag */
.builder-drop-line { height: 3px; background: var(--primary); border-radius: 2px; margin: 2px 0; box-shadow: 0 0 0 3px var(--primary-50); }
.builder-canvas.is-drag-over { outline: 2px dashed var(--primary); outline-offset: -6px; border-radius: var(--radius); }

/* État vide du canevas */
.builder-empty-canvas {
  display: grid; place-items: center; gap: 10px; text-align: center;
  min-height: 360px; margin: 16px; border: 2px dashed var(--line-strong); border-radius: var(--radius-lg);
  background: var(--surface-2); color: var(--muted); padding: 28px;
}
.builder-empty-canvas strong { color: var(--blue-deep); font-size: 16px; font-weight: 650; }

/* Navigator / structure */
.studio-outline-item { border: 1px solid var(--line); background: #fff; border-radius: 9px; }
.studio-outline-item.active { border-color: var(--primary); background: var(--primary-50); }
.studio-outline-item strong { color: var(--blue-deep); font-weight: 600; }
.studio-outline-item small { color: var(--muted); }

/* Médiathèque */
.studio-media-grid button { border: 1px solid var(--line); border-radius: 9px; overflow: hidden; cursor: pointer; padding: 0; }
.studio-media-grid button:hover { border-color: var(--primary); }

/* Barre d'enregistrement */
.studio-builder-savebar { background: rgba(255, 255, 255, .92); backdrop-filter: blur(12px); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 10px; }

/* Topbar studio */
.studio-builder-topbar h1 { color: var(--blue-deep); font-weight: 700; font-size: 22px; letter-spacing: -0.02em; }

/* Toolbar device + historique */
.studio-device-toggle, .studio-history-controls { background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 3px; display: inline-flex; gap: 3px; }
.studio-device-toggle button, .studio-history-controls button { min-height: 0; padding: 6px 12px; border-radius: 7px; font-size: 13px; background: transparent; color: var(--ink-soft); border: 0; box-shadow: none; }
.studio-device-toggle button.active { background: #fff; color: var(--blue-deep); box-shadow: var(--shadow-xs); }
.studio-history-controls button:disabled { opacity: .4; }

/* ---------- 21. Suite métier (clés, stock, réclamations, contrats…) - */
.suite-command-grid article {
  border: 1px solid var(--line);
  box-shadow: var(--shadow-xs);
  border-radius: var(--radius);
}
.suite-command-grid article strong { color: var(--blue-deep); font-weight: 700; letter-spacing: -0.02em; }
.suite-command-grid article span { color: var(--muted); font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; }
.suite-command-grid article small { color: var(--muted); }

.suite-alert-cockpit { box-shadow: var(--shadow-xs); border: 1px solid var(--line); }
.suite-alert-cockpit h2 { color: var(--blue-deep); }
.suite-alert-grid article { border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-xs); }

/* Barre de navigation des modules (sticky) */
.suite-module-nav {
  border: 1px solid var(--line) !important;
  box-shadow: var(--shadow-xs) !important;
  border-radius: var(--radius) !important;
}
.suite-module-nav a { color: var(--ink-soft); font-weight: 550; border-radius: 8px; }
.suite-module-nav a:hover { background: var(--surface-2); color: var(--blue-deep); }
.suite-module-nav a.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* Drawers de module */
.suite-module-section {
  background: #fff !important;
  border: 1px solid var(--line) !important;
  box-shadow: var(--shadow-xs) !important;
  border-radius: var(--radius) !important;
}
.suite-module-title h2 { color: var(--blue-deep); font-size: 17px; font-weight: 650; }
.suite-module-title .eyebrow, .suite-module-title p { color: var(--muted); }
.suite-module-toggle {
  border: 1px solid var(--line-strong); background: #fff; color: var(--ink-soft);
  border-radius: var(--radius-pill); font-weight: 600;
}
.suite-module-toggle:hover { border-color: var(--primary); color: var(--primary); }

/* Listes internes (clés, stock, réclamations, contrats) */
.suite-list-panel { border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-xs); }
.suite-list > * { border-color: var(--line-soft); }
.suite-list strong { color: var(--blue-deep); font-weight: 600; }
.suite-list span, .suite-list small { color: var(--muted); }
.suite-list em {
  font-style: normal;
  display: inline-block;
  align-self: start;
  background: var(--surface-3);
  color: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 2px 9px;
  font-size: 11px;
  font-weight: 600;
}

/* Conciergerie (même famille visuelle) */
.concierge-grid article, .concierge-card { border: 1px solid var(--line); box-shadow: var(--shadow-xs); border-radius: var(--radius); }
