/* Kalibre-Audit — Feuille de style locale de l'interface agence (autonome hors-ligne, aucune ressource externe). */

:root {
  --color-bg: #F8FAFC;
  --color-bg-alt: #F1F5F9;
  --color-surface: #FFFFFF;
  --color-dark-deep: #0B1120;
  --color-dark-slate: #0F172A;
  --color-dark-card: #131C31;
  --color-dark-border: #1E293B;
  --color-border: #E2E8F0;
  --color-border-strong: #CBD5E1;
  --color-text: #0F172A;
  --color-muted: #475569;
  --color-primary: #0284C7;
  --color-primary-hover: #0369A1;
  --color-primary-deep: #1D4ED8;
  --color-primary-soft: #E0F2FE;
  --color-accent: #10B981;
  --color-accent-strong: #059669;
  --color-accent-soft: #D1FAE5;
  --color-danger: #B91C1C;
  --color-danger-soft: #FEF2F2;
  --color-success: #059669;
  --color-success-soft: #ECFDF5;
  --color-warning: #B45309;
  --color-warning-soft: #FFFBEB;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(11, 17, 32, 0.06), 0 1px 2px rgba(11, 17, 32, 0.04);
  --shadow-md: 0 10px 28px -4px rgba(11, 17, 32, 0.10), 0 4px 10px -2px rgba(11, 17, 32, 0.05);
  --shadow-lg: 0 24px 48px -12px rgba(11, 17, 32, 0.38);
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "Cascadia Code", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --container: 1240px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.55;
}

a {
  color: var(--color-primary);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  text-decoration: underline;
}

:focus-visible {
  outline: 3px solid rgba(2, 132, 199, 0.45);
  outline-offset: 2px;
}

h1,
h2,
p {
  margin: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Barre de navigation ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.topbar-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--color-text);
  font-weight: 800;
  letter-spacing: 0.08em;
}

.brand:hover,
.brand:focus-visible {
  text-decoration: none;
}

.brand-mark {
  flex-shrink: 0;
}

.brand-name {
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  flex: 1 1 auto;
}

.main-nav a {
  padding: 0.45rem 0.8rem;
  border-radius: var(--radius-sm);
  color: var(--color-muted);
  font-weight: 600;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  background: var(--color-bg);
  color: var(--color-text);
  text-decoration: none;
}

.main-nav a[aria-current="page"] {
  background: var(--color-primary-soft);
  color: var(--color-primary);
}

.account {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: auto;
  min-width: 0;
}

.account-name {
  max-width: 16rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
}

.logout-form,
.theme-toggle-form {
  margin: 0;
  display: inline-flex;
}

.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.15rem;
  height: 2.15rem;
  padding: 0;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border-strong);
  background: var(--color-surface);
  color: var(--color-text);
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.theme-toggle-btn:hover,
.theme-toggle-btn:focus-visible {
  background: var(--color-bg);
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.plan-badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  background: var(--color-primary-soft);
  color: var(--color-primary);
  border: 1px solid rgba(2, 132, 199, 0.25);
}

.plan-badge.plan-agency {
  background: #0F172A;
  color: #FFFFFF;
  border-color: #0F172A;
}

.visitor-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.5rem;
  margin-left: auto;
}

.visitor-link {
  padding: 0.45rem 0.8rem;
  border-radius: var(--radius-sm);
  color: var(--color-muted);
  font-weight: 600;
}

.visitor-link:hover,
.visitor-link:focus-visible {
  background: var(--color-bg);
  color: var(--color-text);
  text-decoration: none;
}

.visitor-link[aria-current="page"] {
  background: var(--color-primary-soft);
  color: var(--color-primary);
}

.visitor-nav .btn-primary:hover,
.visitor-nav .btn-primary:focus-visible {
  text-decoration: none;
}

/* ---------- Mise en page ---------- */

.page {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 2.25rem 1.25rem 3rem;
  flex: 1 0 auto;
}

.page.page-auth {
  max-width: none;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.auth-stage {
  flex: 1 0 auto;
  display: flex;
  align-items: center;
  background-color: var(--color-dark-deep);
  background-image:
    radial-gradient(circle at 18% 22%, rgba(2, 132, 199, 0.22) 0%, transparent 45%),
    radial-gradient(circle at 82% 75%, rgba(16, 185, 129, 0.16) 0%, transparent 45%),
    linear-gradient(rgba(148, 163, 184, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.06) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 40px 40px, 40px 40px;
  color: #F8FAFC;
  padding: 3.5rem 1.5rem 4rem;
}

.auth-split-layout {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 3rem;
  align-items: center;
}

.auth-pitch {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.auth-pitch-title {
  margin: 0;
  font-size: 2.15rem;
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: #FFFFFF;
}

.auth-pitch-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.auth-pitch-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.95rem 1.1rem;
  background: rgba(19, 28, 49, 0.85);
  border: 1px solid #1E293B;
  border-left: 3px solid var(--color-accent);
  border-radius: var(--radius-md);
  color: #CBD5E1;
  font-size: 0.94rem;
  line-height: 1.55;
}

.auth-pitch-item strong {
  color: #FFFFFF;
}

.auth-pitch-icon {
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.auth-pitch-sample {
  margin-top: 0.25rem;
}

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

.page-header-copy {
  flex: 1 1 28rem;
  min-width: 0;
}

.eyebrow {
  color: var(--color-primary);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.page-title {
  font-size: 1.75rem;
  line-height: 1.25;
  margin-top: 0.25rem;
  overflow-wrap: anywhere;
}

.page-subtitle,
.panel-subtitle,
.auth-subtitle {
  color: var(--color-muted);
  margin-top: 0.35rem;
}

.site-footer {
  border-top: 1px solid #1E293B;
  background: #0B1120;
  color: #94A3B8;
  font-size: 0.85rem;
  padding: 2.5rem 1.25rem 1.5rem;
}

.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 1.5rem 3rem;
}

.footer-brand-head {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.footer-brand-mark {
  flex-shrink: 0;
}

.footer-title {
  color: #F8FAFC;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-mission {
  margin-top: 0.45rem;
  color: #E2E8F0;
  font-weight: 500;
}

.footer-pillars {
  margin-top: 0.5rem;
  color: #94A3B8;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.footer-heading {
  color: #F8FAFC;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-links {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.footer-links a {
  color: #94A3B8;
}

.footer-links a:hover,
.footer-links a:focus-visible,
.footer-links a[aria-current="page"] {
  color: #38BDF8;
}

.footer-bottom {
  max-width: var(--container);
  margin: 1.75rem auto 0;
  padding-top: 1.1rem;
  border-top: 1px solid #1E293B;
  text-align: center;
  font-size: 0.8rem;
  color: #94A3B8;
}

/* ---------- Boutons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1.15rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.btn-primary {
  background: var(--color-primary);
  color: #FFFFFF;
}

.btn-primary:hover:not(:disabled) {
  background: var(--color-primary-hover);
}

.btn-ghost,
.btn-secondary {
  background: var(--color-surface);
  border-color: var(--color-border-strong);
  color: var(--color-text);
}

.btn-ghost:hover:not(:disabled),
.btn-secondary:hover:not(:disabled) {
  background: var(--color-bg);
  text-decoration: none;
}

.btn-primary:hover,
.btn-primary:focus-visible,
.btn-secondary:hover,
.btn-secondary:focus-visible,
.btn-ghost:hover,
.btn-ghost:focus-visible {
  text-decoration: none;
}

.btn-small {
  padding: 0.38rem 0.8rem;
  font-size: 0.85rem;
}

.btn-block {
  width: 100%;
}

/* ---------- Formulaires ---------- */

.auth-card {
  width: 100%;
  max-width: 480px;
  justify-self: end;
  background: var(--color-surface);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 2.25rem;
}

.auth-title {
  font-size: 1.4rem;
  line-height: 1.3;
}

.auth-switch {
  margin-top: 1.5rem;
  text-align: center;
  color: var(--color-muted);
}

.form-stack {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  margin-top: 1.5rem;
}

.field,
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.38rem;
}

.field label,
.field-label,
.form-label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-text);
}

.field input,
.field textarea,
.input,
.form-input {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  color: var(--color-text);
  font: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field textarea {
  min-height: 8rem;
  resize: vertical;
  line-height: 1.5;
}

.field input:focus,
.field textarea:focus,
.input:focus,
.form-input:focus {
  border-color: var(--color-primary);
  outline: 3px solid rgba(2, 132, 199, 0.2);
  outline-offset: 0;
}

.field input:disabled,
.input:disabled,
.form-input:disabled {
  background: var(--color-bg);
}

.field-hint,
.form-note {
  color: var(--color-muted);
  font-size: 0.82rem;
}

.alert {
  margin-top: 1.25rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  overflow-wrap: anywhere;
}

.alert-error {
  background: var(--color-danger-soft);
  border: 1px solid rgba(185, 28, 28, 0.25);
  color: var(--color-danger);
}

.alert-success {
  background: var(--color-success-soft);
  border: 1px solid rgba(4, 120, 87, 0.25);
  color: var(--color-success);
}

.alert-warning {
  background: var(--color-warning-soft);
  border: 1px solid rgba(180, 83, 9, 0.25);
  color: var(--color-warning);
}

.alert-list {
  margin: 0.4rem 0 0;
  padding-left: 1.2rem;
  font-weight: 500;
}

.page-alerts {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.page-alerts .alert {
  margin-top: 0;
}

/* ---------- Cartes de synthèse ---------- */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.stat-card,
.panel {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.stat-card {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.stat-label {
  color: var(--color-muted);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.stat-value {
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.2;
}

.stat-value-mono {
  font-family: var(--font-mono);
  font-size: 1.15rem;
}

.stat-detail {
  color: var(--color-muted);
  font-size: 0.88rem;
}

.quota-bar {
  width: 100%;
  height: 0.5rem;
  border: 0;
  border-radius: 999px;
  overflow: hidden;
  background: var(--color-border);
  accent-color: var(--color-primary);
  -webkit-appearance: none;
  appearance: none;
}

.quota-bar::-webkit-progress-bar {
  background: var(--color-border);
  border-radius: 999px;
}

.quota-bar::-webkit-progress-value {
  background: var(--color-primary);
  border-radius: 999px;
}

.quota-bar::-moz-progress-bar {
  background: var(--color-primary);
  border-radius: 999px;
}

.brand-preview {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.brand-swatch {
  flex-shrink: 0;
  border-radius: var(--radius-md);
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.1), var(--shadow-sm);
}

/* ---------- Panneaux ---------- */

.panel {
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.panel-header {
  margin-bottom: 1rem;
}

.panel-title {
  font-size: 1.15rem;
}

.audit-form {
  margin: 0;
}

.audit-fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.2fr) auto;
  gap: 1rem;
  align-items: end;
}

.form-note {
  margin-top: 0.75rem;
}

/* ---------- Tableau des rapports ---------- */

.table-wrapper {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.data-table th,
.data-table td {
  padding: 0.7rem 0.8rem;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
  vertical-align: middle;
}

.data-table th {
  color: var(--color-muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--color-bg);
}

.data-table tbody tr:hover {
  background: #F1F5F9;
}

.cell-url {
  max-width: 22rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  overflow-wrap: anywhere;
}

.status-pill {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
  background: var(--color-bg);
  color: var(--color-muted);
  border: 1px solid var(--color-border);
}

.status-completed {
  background: var(--color-success-soft);
  color: var(--color-success);
  border-color: rgba(4, 120, 87, 0.25);
}

.status-running {
  background: var(--color-primary-soft);
  color: var(--color-primary);
  border-color: rgba(2, 132, 199, 0.25);
}

.status-pending {
  background: var(--color-warning-soft);
  color: var(--color-warning);
  border-color: rgba(180, 83, 9, 0.25);
}

.status-failed {
  background: var(--color-danger-soft);
  color: var(--color-danger);
  border-color: rgba(185, 28, 28, 0.25);
}

.grade {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: var(--radius-sm);
  color: #FFFFFF;
  font-weight: 800;
}

.grade-A { background: #047857; }
.grade-B { background: #15803D; }
.grade-C { background: #CA8A04; }
.grade-D { background: #EA580C; }
.grade-E { background: #DC2626; }
.grade-F { background: #7F1D1D; }

.empty-state {
  padding: 2rem 1rem;
  text-align: center;
  color: var(--color-muted);
  border: 1px dashed var(--color-border-strong);
  border-radius: var(--radius-md);
}

.empty-title {
  color: var(--color-text);
  font-weight: 700;
  margin-bottom: 0.25rem;
}

/* ---------- Marque Blanche ---------- */

.branding-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.branding-layout .panel {
  margin-bottom: 0;
}

.branding-preview-panel {
  position: sticky;
  top: 5rem;
}

.branding-form {
  margin-top: 0;
  gap: 1.5rem;
}

.form-section {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.form-section + .form-section {
  padding-top: 1.25rem;
  border-top: 1px solid var(--color-border);
}

.form-section-title {
  padding: 0;
  margin-bottom: 0.25rem;
  color: var(--color-muted);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.field input.input-mono {
  font-family: var(--font-mono);
}

.field-hint code {
  font-family: var(--font-mono);
  font-size: 0.85em;
}

.logo-current {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  padding: 0.75rem;
  border: 1px dashed var(--color-border-strong);
  border-radius: var(--radius-sm);
  background: var(--color-bg);
}

.logo-thumb {
  width: auto;
  height: auto;
  max-width: 160px;
  max-height: 64px;
  object-fit: contain;
}

.field .checkbox-row {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.field .checkbox-row input {
  width: auto;
  margin: 0;
  padding: 0;
  accent-color: var(--color-danger);
}

.field .checkbox-row.checkbox-row-primary input {
  accent-color: var(--color-primary);
}

.pricing-details {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-bg);
}

.pricing-details[open] {
  border-color: var(--color-border-strong);
}

.pricing-summary {
  padding: 0.75rem 1rem;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  color: var(--color-text);
}

.pricing-details-body {
  padding: 0 1rem 1rem;
  border-top: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.pricing-pillar-group {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.pricing-pillar-title {
  margin: 0.5rem 0 0;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-primary);
}

.pricing-service-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.pricing-service-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem 1rem;
  padding: 0.65rem 0.8rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
}

.pricing-service-info {
  flex: 1 1 16rem;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.pricing-service-label {
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.35;
}

.pricing-service-default {
  font-size: 0.76rem;
  color: var(--color-muted);
  font-family: var(--font-mono);
}

.pricing-service-inputs {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

.pricing-bound-field {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  width: 6.5rem;
}

.pricing-bound-field label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--color-muted);
}

.pricing-bound-field input {
  padding: 0.35rem 0.5rem;
  font-size: 0.85rem;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
}

.cover-preview {
  overflow: hidden;
  background: #FFFFFF;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.cover-band {
  display: block;
  width: 100%;
  height: 12px;
}

.cover-body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem;
}

.cover-agency {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
}

.cover-logo {
  flex-shrink: 0;
  width: auto;
  height: auto;
  max-width: 140px;
  max-height: 56px;
  object-fit: contain;
}

.cover-wordmark,
.cover-swatch {
  flex-shrink: 0;
}

.cover-agency-text {
  min-width: 0;
}

.cover-agency-name {
  font-size: 1.05rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.cover-contacts {
  list-style: none;
  margin: 0.15rem 0 0;
  padding: 0;
  color: var(--color-muted);
  font-size: 0.82rem;
  overflow-wrap: anywhere;
}

.cover-eyebrow {
  margin-top: 0.75rem;
  color: var(--color-muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.cover-title {
  margin-top: -0.6rem;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.cover-color {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cover-color-code {
  color: var(--color-muted);
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.cover-intro {
  margin: 0;
  padding: 0.9rem 1rem;
  background: var(--color-bg);
  border-left: 3px solid var(--color-border-strong);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.88rem;
}

.cover-intro p {
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.cover-intro footer {
  margin-top: 0.5rem;
  font-size: 0.82rem;
  font-weight: 700;
}

.cover-intro-empty {
  color: var(--color-muted);
  font-style: italic;
}

/* ---------- Lancement & rapport d'audit ---------- */

.audit-error {
  margin: 0 0 1rem;
}

.form-note code {
  font-family: var(--font-mono);
  font-size: 0.85em;
}

.cell-actions {
  white-space: nowrap;
}

.cell-actions a + a {
  margin-left: 0.75rem;
}

.audit-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 1.5rem;
}

.audit-header-text {
  min-width: 0;
  flex: 1 1 24rem;
}

.audit-target {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  overflow-wrap: anywhere;
}

.audit-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 0.9rem;
}

.audit-status-text {
  flex: 1 1 20rem;
  overflow-wrap: anywhere;
}

.audit-status-failed .audit-status-text {
  color: var(--color-danger);
  font-weight: 600;
}

.audit-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 0.75rem 1.5rem;
  margin: 1.25rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
}

.audit-meta dt {
  color: var(--color-muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.audit-meta dd {
  margin: 0.15rem 0 0;
  min-width: 0;
}

.score-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.score-card-global {
  border-color: rgba(2, 132, 199, 0.35);
  background: var(--color-primary-soft);
}

.score-main {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.score-unit {
  color: var(--color-muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.grade-large {
  width: 3rem;
  height: 3rem;
  font-size: 1.5rem;
  border-radius: var(--radius-md);
}

.score-meter {
  width: 100%;
  height: 0.5rem;
}

.executive-summary {
  white-space: pre-line;
  overflow-wrap: anywhere;
  line-height: 1.65;
}

.scanner-errors {
  margin-top: 1rem;
  color: var(--color-muted);
  font-size: 0.85rem;
}

.scanner-errors summary {
  cursor: pointer;
  font-weight: 600;
}

.scanner-errors ul {
  margin: 0.5rem 0 0;
  padding-left: 1.2rem;
  overflow-wrap: anywhere;
}

.finding-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.finding-item {
  padding: 1rem 1.1rem;
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  overflow-wrap: anywhere;
}

.finding-item.sev-critical { border-left-color: #7F1D1D; }
.finding-item.sev-high { border-left-color: #DC2626; }
.finding-item.sev-medium { border-left-color: #EA580C; }
.finding-item.sev-low { border-left-color: #CA8A04; }

.finding-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.6rem;
}

.severity-badge,
.category-tag {
  display: inline-block;
  padding: 0.1rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.severity-badge { color: #FFFFFF; }
.severity-badge.sev-critical { background: #7F1D1D; }
.severity-badge.sev-high { background: #DC2626; }
.severity-badge.sev-medium { background: #EA580C; }
.severity-badge.sev-low { background: #A16207; }

.category-tag {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  color: var(--color-muted);
}

.finding-code {
  color: var(--color-muted);
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

.finding-title {
  margin: 0;
  font-size: 1rem;
}

.finding-impact,
.finding-evidence,
.finding-fix {
  font-size: 0.9rem;
}

.finding-evidence {
  color: var(--color-muted);
}

.nowrap {
  white-space: nowrap;
}

.lot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1rem;
}

.lot-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.1rem;
  border: 1px solid var(--color-border);
  border-top: 4px solid var(--color-primary);
  border-radius: var(--radius-sm);
  overflow-wrap: anywhere;
}

.lot-number {
  color: var(--color-primary);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lot-title {
  margin: 0;
  font-size: 1rem;
}

.lot-priority {
  color: var(--color-warning);
  font-size: 0.85rem;
  font-weight: 700;
}

.lot-deliverables {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.88rem;
  flex: 1 1 auto;
}

.lot-price {
  font-weight: 800;
}

.lot-total {
  margin-top: 1rem;
  text-align: right;
}

.audit-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.75rem;
}

/* ---------- Mode Vigie ---------- */

.btn-danger {
  background: transparent;
  border-color: rgba(185, 28, 28, 0.35);
  color: var(--color-danger);
}

.btn-danger:hover:not(:disabled) {
  background: var(--color-danger-soft);
}

.watch-alert {
  margin: 0 0 1rem;
}

.watch-fieldset:disabled .field input {
  background: var(--color-bg);
}

.row-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}

.inline-form {
  margin: 0;
}

.status-active {
  background: var(--color-success-soft);
  color: var(--color-success);
  border-color: rgba(4, 120, 87, 0.25);
}

.status-paused {
  background: var(--color-bg);
  color: var(--color-muted);
  border-color: var(--color-border-strong);
}

.ssl-badge {
  display: inline-block;
  padding: 0.1rem 0.55rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
  border: 1px solid transparent;
}

.ssl-alert,
.ssl-bad {
  background: var(--color-danger-soft);
  color: var(--color-danger);
  border-color: rgba(185, 28, 28, 0.3);
}

.ssl-warn {
  background: var(--color-warning-soft);
  color: var(--color-warning);
  border-color: rgba(180, 83, 9, 0.3);
}

.ssl-ok {
  background: var(--color-success-soft);
  color: var(--color-success);
  border-color: rgba(4, 120, 87, 0.25);
}

.ssl-na {
  background: var(--color-bg);
  color: var(--color-muted);
  border-color: var(--color-border);
}

.ssl-days {
  color: var(--color-muted);
  font-size: 0.82rem;
}

.monthly-cover {
  padding: 0;
  overflow: hidden;
}

.monthly-band {
  display: block;
  width: 100%;
  height: 12px;
}

.monthly-cover-body {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem 2rem;
  padding: 1.5rem;
}

.monthly-heading {
  min-width: 0;
  flex: 1 1 22rem;
  text-align: right;
}

.monthly-heading .cover-eyebrow {
  margin-top: 0;
}

.trend-up { color: var(--color-success); }
.trend-down { color: var(--color-danger); }
.trend-flat { color: var(--color-muted); }

.watch-alert-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.watch-alert-item {
  padding: 0.85rem 1rem;
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  overflow-wrap: anywhere;
}

.watch-alert-item.sev-critical { border-left-color: #7F1D1D; }
.watch-alert-item.sev-high { border-left-color: #DC2626; }
.watch-alert-item.sev-medium { border-left-color: #EA580C; }

.watch-alert-message {
  font-size: 0.92rem;
}

.empty-state-success {
  border-color: rgba(4, 120, 87, 0.35);
  background: var(--color-success-soft);
}

.history-error {
  display: block;
  margin-top: 0.25rem;
  color: var(--color-danger);
  font-size: 0.8rem;
  overflow-wrap: anywhere;
}

.monthly-footer {
  margin-bottom: 1.5rem;
  color: var(--color-muted);
  font-size: 0.85rem;
  text-align: center;
}

.monthly-print-hint {
  text-align: right;
}

/* ---------- Abonnement & quotas ---------- */

.billing-alert {
  margin: 0 0 1.5rem;
}

.subscription-active {
  background: var(--color-success-soft);
  color: var(--color-success);
  border-color: rgba(4, 120, 87, 0.25);
}

.subscription-trialing {
  background: var(--color-primary-soft);
  color: var(--color-primary);
  border-color: rgba(2, 132, 199, 0.25);
}

.subscription-past_due {
  background: var(--color-warning-soft);
  color: var(--color-warning);
  border-color: rgba(180, 83, 9, 0.25);
}

.subscription-canceled {
  background: var(--color-danger-soft);
  color: var(--color-danger);
  border-color: rgba(185, 28, 28, 0.25);
}

.quota-gauge {
  display: block;
  width: 100%;
  height: 0.5rem;
  border-radius: 999px;
  overflow: hidden;
}

.quota-gauge-track {
  fill: var(--color-border);
}

.quota-gauge-fill {
  fill: var(--color-primary);
}

.quota-gauge-fill.is-exhausted {
  fill: var(--color-danger);
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.plan-card {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: 1.25rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
}

.plan-card-current {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 1px var(--color-primary);
}

.plan-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.plan-card-title {
  font-size: 1.05rem;
  font-weight: 800;
}

.plan-current-badge {
  flex-shrink: 0;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--color-primary-soft);
  color: var(--color-primary);
}

.plan-price {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--color-text);
}

.plan-features {
  flex: 1 0 auto;
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  align-content: start;
  gap: 0.35rem;
}

/* ---------- Pages publiques (FAQ, contact, informations légales) ---------- */

.page.page-public {
  max-width: none;
  padding: 0 0 3.5rem;
}

.public-header {
  margin-bottom: 0;
}

.public-page-hero {
  background-color: var(--color-dark-deep);
  background-image:
    radial-gradient(circle at 18% 22%, rgba(2, 132, 199, 0.2) 0%, transparent 45%),
    radial-gradient(circle at 82% 75%, rgba(16, 185, 129, 0.14) 0%, transparent 45%),
    linear-gradient(rgba(148, 163, 184, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.06) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 40px 40px, 40px 40px;
  border-bottom: 1px solid var(--color-dark-border);
  padding: 3rem 1.25rem;
  color: #F8FAFC;
}

.public-page-hero-inner {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
}

.public-page-hero .eyebrow {
  color: #38BDF8;
}

.public-page-hero .page-title {
  color: #FFFFFF;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.015em;
}

.public-page-hero .page-subtitle,
.public-page-hero .lead {
  color: #CBD5E1;
  font-size: 1.02rem;
  max-width: 48rem;
  margin-top: 0.45rem;
}

.public-page-body {
  width: 100%;
  max-width: 1040px;
  margin: 2.25rem auto 0;
  padding: 0 1.25rem;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.faq-item[open] {
  border-color: rgba(2, 132, 199, 0.35);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  font-size: 1.02rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "+";
  flex-shrink: 0;
  width: 1.6rem;
  height: 1.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--color-primary-soft);
  color: var(--color-primary);
  font-weight: 800;
}

.faq-item[open] > .faq-question::after {
  content: "\2212";
}

.faq-answer {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0 1.25rem 1.25rem;
}

.pillar-grid,
.help-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.pillar-card,
.help-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.pillar-title,
.help-title {
  margin: 0;
  font-size: 0.98rem;
  color: var(--color-primary);
}

.plan-summary-list,
.legal-list,
.commitment-list {
  margin: 0;
  padding-left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.public-cta {
  margin-top: 2rem;
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: var(--color-primary-soft);
  border: 1px solid rgba(2, 132, 199, 0.25);
  border-radius: var(--radius-md);
  font-weight: 700;
}

.public-cta .btn:hover,
.public-cta .btn:focus-visible {
  text-decoration: none;
}

.contact-layout,
.contact-top-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  align-items: stretch;
  margin-bottom: 2rem;
}

.contact-top-grid .panel {
  margin-bottom: 0;
}

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.contact-discovery-links {
  list-style: none;
  margin: 0.25rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.contact-discovery-link {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.75rem 0.95rem;
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-primary);
  border-radius: var(--radius-sm);
  background: var(--color-bg);
  color: var(--color-text);
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.contact-discovery-link:hover,
.contact-discovery-link:focus-visible {
  background: var(--color-primary-soft);
  border-color: rgba(2, 132, 199, 0.45);
  text-decoration: none;
}

.contact-discovery-link strong {
  color: var(--color-text);
  font-size: 0.94rem;
}

.contact-discovery-link span {
  color: var(--color-muted);
  font-size: 0.84rem;
}

.contact-email {
  font-size: 1.25rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.section-title {
  margin: 0 0 1rem;
  font-size: 1.2rem;
}

.help-section {
  margin-top: 0.5rem;
}

.info-list {
  margin: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.info-row {
  display: grid;
  grid-template-columns: minmax(0, 12rem) minmax(0, 1fr);
  gap: 1rem;
  padding: 0.6rem 0.9rem;
  border-bottom: 1px solid var(--color-border);
}

.info-row:last-child {
  border-bottom: 0;
}

.info-row dt {
  color: var(--color-muted);
  font-weight: 600;
}

.info-row dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.legal-document {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 2rem 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  line-height: 1.7;
}

.legal-section {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.legal-heading {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.35;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--color-border);
}

.legal-document code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  padding: 0.1rem 0.35rem;
  border-radius: var(--radius-sm);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
}

.privacy-highlight {
  padding: 1.25rem;
  border-radius: var(--radius-md);
  background: var(--color-success-soft);
  border: 1px solid rgba(4, 120, 87, 0.25);
}

.privacy-highlight .legal-heading {
  color: var(--color-success);
  border-bottom-color: rgba(4, 120, 87, 0.25);
}

.table-scroll {
  overflow-x: auto;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  line-height: 1.5;
}

.legal-table th,
.legal-table td {
  text-align: left;
  vertical-align: top;
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid var(--color-border);
}

.legal-table th {
  background: var(--color-bg);
  color: var(--color-muted);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .branding-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .branding-preview-panel {
    position: static;
  }

  .audit-fieldset {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .audit-fieldset .btn {
    grid-column: 1 / -1;
  }

  .score-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pillar-grid,
  .help-grid,
  .contact-layout,
  .contact-top-grid,
  .auth-split-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .auth-card {
    max-width: 520px;
    justify-self: center;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 14px;
  }

  .topbar-inner {
    padding: 0.65rem 1rem;
  }

  .main-nav {
    order: 3;
    flex-basis: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
  }

  .main-nav a {
    white-space: nowrap;
  }

  .account-name {
    max-width: 9rem;
  }

  .page {
    padding: 1.25rem 1rem 2rem;
  }

  .auth-stage {
    padding: 2rem 1rem 2.5rem;
  }

  .auth-pitch-title {
    font-size: 1.65rem;
  }

  .auth-card {
    padding: 1.5rem 1.25rem;
  }

  .public-page-hero {
    padding: 2rem 1rem;
  }

  .public-page-hero .page-title {
    font-size: 1.5rem;
  }

  .public-page-body {
    margin-top: 1.5rem;
    padding: 0 1rem;
  }

  .page-title {
    font-size: 1.4rem;
  }

  .stats-grid,
  .audit-fieldset,
  .score-grid,
  .plan-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .btn-download {
    width: 100%;
  }

  .data-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  .data-table,
  .data-table tbody,
  .data-table tr,
  .data-table td {
    display: block;
    width: 100%;
  }

  .data-table tr {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    margin-bottom: 0.75rem;
    padding: 0.5rem 0;
  }

  .data-table td {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 0;
    padding: 0.4rem 0.9rem;
  }

  .data-table td::before {
    content: attr(data-label);
    color: var(--color-muted);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    flex-shrink: 0;
  }

  .cell-url {
    max-width: none;
    text-align: right;
  }

  .monthly-heading {
    text-align: left;
  }

  .row-actions {
    justify-content: flex-end;
  }

  .visitor-nav {
    margin-left: 0;
    flex-basis: 100%;
  }

  .footer-inner,
  .footer-nav {
    grid-template-columns: minmax(0, 1fr);
  }

  .legal-document {
    padding: 1.25rem 1rem;
  }

  .info-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.15rem;
  }
}

@media print {
  .topbar,
  .site-footer,
  .no-print {
    display: none !important;
  }

  body {
    background: #FFFFFF;
    font-size: 12px;
  }

  .page {
    max-width: none;
    padding: 0;
  }

  .panel,
  .stat-card {
    box-shadow: none;
    break-inside: avoid;
  }

  .monthly-band,
  .grade,
  .severity-badge,
  .ssl-badge,
  .status-pill,
  .quota-gauge {
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}

/* ---------- Console Super-Admin (/admin) & clôture du compte (RGPD) ---------- */

.page-wide {
  max-width: 1400px;
}

.admin-alert {
  margin: 0 0 1.25rem;
}

.stats-grid.admin-kpi-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-table td {
  vertical-align: top;
}

.admin-agency-name {
  font-weight: 700;
}

.admin-agency-email,
.admin-agency-id {
  display: block;
  color: var(--color-muted);
  font-size: 0.82rem;
  overflow-wrap: anywhere;
}

.admin-self-badge {
  display: inline-block;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  background: var(--color-primary-soft);
  color: var(--color-primary);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.admin-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  white-space: normal;
}

.admin-subscription-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
}

.select-input,
.admin-select {
  padding: 0.42rem 0.7rem;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  color: var(--color-text);
  font: inherit;
  font-size: 0.85rem;
  line-height: 1.35;
  cursor: pointer;
}

.select-input:focus,
.admin-select:focus {
  border-color: var(--color-primary);
  outline: 3px solid rgba(2, 132, 199, 0.2);
  outline-offset: 0;
}

.admin-delete summary {
  list-style: none;
  cursor: pointer;
}

.admin-delete summary::-webkit-details-marker {
  display: none;
}

.admin-delete[open] summary {
  background: var(--color-danger-soft);
}

.admin-delete-form {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  max-width: 22rem;
  margin: 0.5rem 0 0;
  padding: 0.75rem;
  border: 1px solid rgba(185, 28, 28, 0.25);
  border-radius: var(--radius-sm);
  background: var(--color-danger-soft);
}

.danger-zone {
  border-color: rgba(185, 28, 28, 0.35);
}

.danger-zone .panel-title {
  color: var(--color-danger);
}

.danger-zone-list {
  margin: 0 0 0.75rem;
  padding-left: 1.25rem;
}

.danger-zone-alert {
  margin: 0 0 1rem;
}

.danger-zone-form,
.account-delete-form,
.danger-form {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 0.85rem;
  width: 100%;
  max-width: 440px;
  margin-top: 1rem;
}

.danger-zone-form .field,
.account-delete-form .field,
.danger-form .field {
  width: 100%;
  max-width: 420px;
  align-items: flex-start;
  text-align: left;
}

@media (max-width: 960px) {
  .stats-grid.admin-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .stats-grid.admin-kpi-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- Vitrine commerciale B2B Haute Conversion (landing.html) ---------- */

.page.page-landing {
  max-width: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.landing-container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --- Section 1 : Hero Plein Écran sur Fond Bleu Nuit Carbone (#0B1120) --- */

.landing-hero-band {
  background-color: var(--color-dark-deep);
  background-image:
    radial-gradient(circle at 18% 22%, rgba(2, 132, 199, 0.22) 0%, transparent 45%),
    radial-gradient(circle at 82% 75%, rgba(16, 185, 129, 0.16) 0%, transparent 45%),
    linear-gradient(rgba(148, 163, 184, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.06) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 40px 40px, 40px 40px;
  color: #F8FAFC;
  padding: 4.5rem 0 5rem;
  border-bottom: 1px solid var(--color-dark-border);
}

.landing-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.98fr);
  gap: 3rem;
  align-items: center;
}

.landing-hero-copy {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.landing-badge-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.landing-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  align-self: flex-start;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #E2E8F0;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.landing-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--color-accent);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.85);
  flex-shrink: 0;
}

.landing-badge-sub {
  color: #38BDF8;
  font-size: 0.84rem;
  font-weight: 600;
}

.landing-title {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: #FFFFFF;
}

.landing-subtitle {
  color: #CBD5E1;
  font-size: 1.08rem;
  line-height: 1.65;
  max-width: 40rem;
}

.landing-cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem 1.15rem;
  margin-top: 0.25rem;
}

.btn-large {
  padding: 0.85rem 1.5rem;
  font-size: 0.98rem;
}

.btn-hero-primary {
  background: linear-gradient(135deg, #0284C7 0%, #059669 100%);
  color: #FFFFFF;
  border: 1px solid rgba(16, 185, 129, 0.45);
  box-shadow: 0 10px 24px -6px rgba(2, 132, 199, 0.55);
}

.btn-hero-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, #0369A1 0%, #047857 100%);
}

.btn-hero-ghost {
  background: rgba(15, 23, 42, 0.65);
  border-color: #334155;
  color: #F8FAFC;
}

.btn-hero-ghost:hover {
  background: #1E293B;
  border-color: #475569;
}

.landing-cta-group .btn:hover,
.landing-cta-group .btn:focus-visible,
.landing-plan-card .btn:hover,
.landing-plan-card .btn:focus-visible,
.report-anatomy-header .btn:hover,
.report-anatomy-header .btn:focus-visible {
  text-decoration: none;
}

.landing-sample-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
}

.btn-sample-preview {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.45);
  color: #6EE7B7;
  font-size: 0.88rem;
  font-weight: 700;
}

.btn-sample-preview:hover,
.btn-sample-preview:focus-visible {
  background: rgba(16, 185, 129, 0.24);
  border-color: rgba(52, 211, 153, 0.7);
  color: #A7F3D0;
  text-decoration: none;
}

.landing-method-link {
  color: #38BDF8;
  font-weight: 700;
  font-size: 0.9rem;
}

.landing-method-link:hover,
.landing-method-link:focus-visible {
  color: #7DD3FC;
}

.hero-proof-strip {
  margin: 0.5rem 0 0;
  padding: 1rem 1.25rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid #1E293B;
  border-radius: var(--radius-md);
}

.hero-proof-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  border-right: 1px solid #1E293B;
  padding-right: 0.75rem;
}

.hero-proof-item:last-child {
  border-right: 0;
  padding-right: 0;
}

.hero-proof-value {
  font-size: 1.25rem;
  font-weight: 800;
  color: #10B981;
  font-family: var(--font-mono);
}

.hero-proof-label {
  margin: 0;
  font-size: 0.78rem;
  color: #94A3B8;
  font-weight: 600;
}

/* --- Composition Visuelle Multi-Feuilles du Rapport PDF A4 --- */

.hero-document-stack {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 0.75rem 0 0 0.75rem;
}

.doc-sheet-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 1.25rem;
  bottom: 3.5rem;
  background: rgba(30, 41, 59, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: var(--radius-lg);
  transform: rotate(-1.6deg);
  pointer-events: none;
}

.hero-preview {
  position: relative;
  z-index: 1;
  background: var(--color-surface);
  color: var(--color-text);
  border: 1px solid #CBD5E1;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.hero-preview-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  padding: 1rem 1.25rem;
  background: #0F172A;
  border-bottom: 3px solid var(--color-primary);
  color: #FFFFFF;
}

.hero-preview-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.hero-preview-logo {
  flex-shrink: 0;
}

.hero-preview-eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #94A3B8;
}

.hero-preview-target {
  font-family: var(--font-mono);
  font-size: 0.92rem;
  font-weight: 700;
  color: #FFFFFF;
  overflow-wrap: anywhere;
}

.doc-page-pill {
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: rgba(2, 132, 199, 0.22);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #BAE6FD;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}

.hero-preview-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.hero-cover-score-row {
  padding: 0.75rem 0.9rem;
  background: #F8FAFC;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.hero-ring-wrapper {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.hero-score-ring {
  flex-shrink: 0;
}

.hero-ring-meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.hero-ring-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9rem;
  color: var(--color-text);
}

.hero-preview-score-text {
  font-weight: 800;
  color: var(--color-accent-strong);
}

.hero-ring-caption {
  font-size: 0.8rem;
  color: var(--color-muted);
}

.hero-preview-section-label {
  color: var(--color-muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-preview-pillars,
.hero-preview-lots {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.hero-preview-pillar {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.hero-preview-pillar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.84rem;
}

.hero-preview-pillar-name {
  font-weight: 600;
  color: var(--color-text);
}

.hero-preview-pillar-score {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--color-text);
}

.quota-gauge-emerald {
  fill: var(--color-accent-strong);
}

.doc-sheet-quote {
  position: relative;
  z-index: 2;
  margin-top: -0.35rem;
  margin-left: 1rem;
  padding: 1rem 1.15rem;
  background: #0F172A;
  color: #F8FAFC;
  border: 1px solid #334155;
  border-left: 4px solid var(--color-accent);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.doc-quote-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.doc-quote-title {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #E2E8F0;
}

.doc-quote-badge {
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #6EE7B7;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-preview-lot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem 0.75rem;
  padding: 0.5rem 0.7rem;
  border: 1px solid #1E293B;
  border-radius: var(--radius-sm);
  background: #131C31;
  font-size: 0.8rem;
}

.hero-preview-lot-name {
  font-weight: 600;
  color: #E2E8F0;
}

.hero-preview-lot-price {
  color: #38BDF8;
  font-family: var(--font-mono);
  font-weight: 800;
}

/* --- Bandes de section alternées (Clair / Surface / Sombre) --- */

.landing-band {
  padding: 4.5rem 0;
  border-bottom: 1px solid var(--color-border);
}

.landing-band-light {
  background: var(--color-bg);
}

.landing-band-surface {
  background: var(--color-surface);
}

.landing-band-dark {
  background: var(--color-dark-slate);
  color: #F8FAFC;
  border-bottom-color: var(--color-dark-border);
}

.landing-section {
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
}

.landing-section-header {
  max-width: 52rem;
}

.landing-section-title {
  margin-top: 0.35rem;
  font-size: 1.9rem;
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.015em;
}

.landing-section-subtitle {
  margin-top: 0.55rem;
  color: var(--color-muted);
  font-size: 1.02rem;
  line-height: 1.6;
}

.eyebrow-emerald {
  color: var(--color-accent);
}

.landing-title-light {
  color: #FFFFFF;
}

.landing-subtitle-light {
  color: #94A3B8;
}

/* --- Section 2 : Comparatif Avant / Après & Frise en 3 étapes --- */

.comparison-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  align-items: stretch;
}

.comparison-column {
  padding: 1.6rem;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.comparison-before {
  background: var(--color-surface);
  border: 1px solid var(--color-border-strong);
  box-shadow: var(--shadow-sm);
}

.comparison-after {
  background: #0B1120;
  color: #F8FAFC;
  border: 1px solid #1E293B;
  box-shadow: var(--shadow-md);
}

.comparison-header {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--color-border);
}

.comparison-after .comparison-header {
  border-bottom-color: #1E293B;
}

.comparison-status {
  align-self: flex-start;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.comparison-status-bad {
  background: var(--color-danger-soft);
  color: var(--color-danger);
  border: 1px solid rgba(185, 28, 28, 0.25);
}

.comparison-status-good {
  background: rgba(16, 185, 129, 0.18);
  color: #6EE7B7;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.comparison-heading {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 800;
}

.problem-grid {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.problem-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1rem 1.15rem;
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
}

.problem-number {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: var(--color-danger-soft);
  color: var(--color-danger);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 800;
}

.problem-title {
  margin: 0 0 0.25rem;
  font-size: 0.98rem;
  line-height: 1.35;
}

.problem-text {
  color: var(--color-muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.after-benefit-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.after-benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 1rem 1.15rem;
  background: #131C31;
  border: 1px solid #1E293B;
  border-left: 3px solid var(--color-accent);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
}

.after-benefit-item strong {
  display: block;
  color: #FFFFFF;
  margin-bottom: 0.25rem;
  font-size: 0.96rem;
}

.after-benefit-item p {
  color: #CBD5E1;
  font-size: 0.88rem;
  line-height: 1.55;
}

.after-benefit-check {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.2);
  color: #10B981;
  font-weight: 800;
}

.workflow-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  padding: 1.35rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.workflow-step {
  display: flex;
  align-items: flex-start;
  gap: 0.95rem;
}

.workflow-icon-box {
  flex-shrink: 0;
}

.workflow-step-body {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.workflow-step-num {
  color: var(--color-primary);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.workflow-step-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
}

.workflow-step-text {
  color: var(--color-muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

/* --- Section 3 : Les 3 Piliers d'Audit avec Illustrations Vectorielles --- */

.solution-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.solution-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border-strong);
  border-top: 4px solid var(--color-primary);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.pillar-illustration {
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid #1E293B;
}

.pillar-illustration svg {
  display: block;
}

.solution-pillar-tag,
.feature-tag {
  align-self: flex-start;
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
  background: var(--color-primary-soft);
  color: var(--color-primary);
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.solution-title,
.feature-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.3;
}

.solution-tech-box {
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-bg);
  font-size: 0.88rem;
  line-height: 1.55;
}

.solution-tech-box code {
  font-family: var(--font-mono);
  font-size: 0.85em;
}

.solution-box-label,
.solution-quote-label {
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.solution-box-label {
  color: var(--color-muted);
}

.solution-quote {
  margin: auto 0 0;
  padding: 0.9rem 1rem;
  border-left: 3px solid var(--color-danger);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--color-danger-soft);
  font-size: 0.88rem;
  line-height: 1.55;
}

.solution-quote-label {
  color: var(--color-danger);
}

/* --- Frise Visuelle : Anatomie des 6 Pages A4 du Rapport --- */

.report-anatomy-banner {
  margin-top: 0.5rem;
  padding: 1.75rem;
  background: #0B1120;
  color: #F8FAFC;
  border: 1px solid #1E293B;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.report-anatomy-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  padding-bottom: 1.15rem;
  border-bottom: 1px solid #1E293B;
}

.report-anatomy-header .eyebrow {
  color: #38BDF8;
}

.report-anatomy-heading {
  margin: 0.25rem 0 0;
  font-size: 1.25rem;
  font-weight: 800;
  color: #FFFFFF;
}

.anatomy-pages-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.anatomy-page-card {
  padding: 1rem 1.1rem;
  background: #131C31;
  border: 1px solid #1E293B;
  border-top: 3px solid var(--color-primary);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.anatomy-page-card-quote {
  border-top-color: var(--color-accent);
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.35);
}

.anatomy-page-badge {
  align-self: flex-start;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: rgba(2, 132, 199, 0.2);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #7DD3FC;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.anatomy-badge-emerald {
  background: rgba(16, 185, 129, 0.22);
  border-color: rgba(16, 185, 129, 0.45);
  color: #6EE7B7;
}

.anatomy-page-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #FFFFFF;
}

.anatomy-page-desc {
  color: #CBD5E1;
  font-size: 0.85rem;
  line-height: 1.5;
}

/* --- Section 4 : Showcase Produit sur Fond Sombre Ardoise (#0F172A) --- */

.feature-duo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.feature-card-dark {
  background: #131C31;
  border-color: #1E293B;
  box-shadow: var(--shadow-md);
}

.feature-tag-cobalt {
  background: rgba(2, 132, 199, 0.2);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #7DD3FC;
}

.feature-tag-emerald {
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #6EE7B7;
}

.feature-title-light {
  color: #FFFFFF;
}

.feature-text {
  color: var(--color-muted);
  font-size: 0.94rem;
  line-height: 1.6;
}

.feature-text-light {
  color: #CBD5E1;
}

.showcase-mockup {
  background: #0B1120;
  border: 1px solid #334155;
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.mockup-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.65rem 0.95rem;
  background: #1E293B;
  border-bottom: 1px solid #334155;
}

.mockup-bar-title {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #94A3B8;
}

.mockup-bar-pill {
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: rgba(2, 132, 199, 0.25);
  color: #BAE6FD;
  font-size: 0.7rem;
  font-weight: 700;
}

.mockup-bar-pill-emerald {
  background: rgba(16, 185, 129, 0.22);
  color: #6EE7B7;
}

.feature-lot-list,
.feature-check-list {
  margin: 0;
  padding-left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-size: 0.9rem;
}

.mockup-lot-rows,
.mockup-watcher-rows {
  list-style: none;
  margin: 0;
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.mockup-lot-row,
.mockup-watcher-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 0.75rem;
  padding: 0.65rem 0.8rem;
  background: #131C31;
  border: 1px solid #1E293B;
  border-radius: var(--radius-sm);
}

.mockup-lot-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-size: 0.84rem;
  color: #F8FAFC;
}

.mockup-lot-sub {
  font-size: 0.75rem;
  color: #94A3B8;
}

.mockup-lot-amount {
  font-family: var(--font-mono);
  font-size: 0.84rem;
  font-weight: 800;
  color: #38BDF8;
}

.mockup-approval-box {
  margin: 0 0.85rem 0.85rem;
  padding: 0.75rem 0.85rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1px dashed rgba(16, 185, 129, 0.45);
  border-radius: var(--radius-sm);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
}

.mockup-approval-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.mockup-check-pill {
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-sm);
  background: #0F172A;
  border: 1px solid #334155;
  color: #E2E8F0;
  font-size: 0.73rem;
  font-weight: 600;
}

.mockup-signature-stamp {
  display: flex;
  flex-direction: column;
  text-align: right;
}

.mockup-stamp-label {
  font-size: 0.8rem;
  font-weight: 800;
  color: #6EE7B7;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.mockup-stamp-sub {
  font-size: 0.7rem;
  color: #94A3B8;
}

.mockup-domain-cell {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.mockup-domain-name {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: #FFFFFF;
}

.mockup-domain-meta {
  display: block;
  font-size: 0.74rem;
  color: #94A3B8;
}

.mockup-status-badge {
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 800;
  white-space: nowrap;
}

.mockup-badge-ok {
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #6EE7B7;
}

.mockup-badge-warn {
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid rgba(245, 158, 11, 0.45);
  color: #FCD34D;
}

.mockup-badge-danger {
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid rgba(248, 113, 113, 0.45);
  color: #FCA5A5;
}

.feature-check-list-dark {
  color: #CBD5E1;
}

.feature-highlight {
  margin-top: auto;
  padding-top: 0.85rem;
  border-top: 1px solid var(--color-border);
  font-weight: 700;
  font-size: 0.92rem;
}

.feature-highlight-dark {
  border-top-color: #1E293B;
  color: #F8FAFC;
}

.link-emerald {
  color: #34D399;
}

.link-emerald:hover,
.link-emerald:focus-visible {
  color: #6EE7B7;
}

/* --- Section 5 : Tarifs & Équation Visuelle de Rentabilité (ROI) --- */

.roi-banner {
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  background: #0B1120;
  border: 1px solid #1E293B;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.roi-equation {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid #1E293B;
}

.roi-step {
  flex: 1 1 12rem;
  padding: 0.75rem 1rem;
  background: #131C31;
  border: 1px solid #1E293B;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.roi-step-result {
  background: rgba(16, 185, 129, 0.14);
  border-color: rgba(16, 185, 129, 0.45);
}

.roi-step-kicker {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94A3B8;
}

.roi-step-val {
  font-size: 1rem;
  font-weight: 800;
  color: #FFFFFF;
}

.roi-step-highlight {
  color: #38BDF8;
}

.roi-step-result .roi-step-val {
  color: #34D399;
}

.roi-operator {
  font-size: 1.35rem;
  font-weight: 800;
  color: #38BDF8;
}

.roi-banner-text {
  color: #E2E8F0;
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1.6;
}

.landing-pricing-grid {
  gap: 1.5rem;
}

.landing-plan-card {
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.landing-plan-card .plan-card-title {
  margin: 0.4rem 0 0;
  font-size: 1.2rem;
}

.landing-plan-featured {
  border: 2px solid var(--color-primary);
  box-shadow: var(--shadow-md);
  position: relative;
}

.plan-featured-ribbon {
  align-self: flex-start;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #0B1120 0%, #0284C7 100%);
  color: #FFFFFF;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.plan-feature-highlight {
  color: var(--color-text);
}

.plan-badge-emerald {
  background: var(--color-accent-soft);
  color: var(--color-accent-strong);
  border: 1px solid rgba(5, 150, 105, 0.3);
}

@media (max-width: 960px) {
  .landing-hero,
  .comparison-board,
  .workflow-strip,
  .solution-grid,
  .anatomy-pages-grid,
  .feature-duo-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-proof-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-proof-item:nth-child(2) {
    border-right: 0;
  }

  .landing-title {
    font-size: 2.15rem;
  }

  .doc-sheet-quote {
    margin-left: 0;
  }
}

@media (max-width: 640px) {
  .landing-hero-band,
  .landing-band {
    padding: 3rem 0;
  }

  .landing-container {
    padding: 0 1rem;
  }

  .landing-title {
    font-size: 1.75rem;
  }

  .landing-section-title {
    font-size: 1.45rem;
  }

  .hero-proof-strip {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-proof-item {
    border-right: 0;
    border-bottom: 1px solid #1E293B;
    padding-right: 0;
    padding-bottom: 0.5rem;
  }

  .hero-proof-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
  }

  .landing-cta-group .btn {
    width: 100%;
  }

  .roi-operator {
    display: none;
  }
}

/* ---------- Bouton d'aperçu 6 pages A4 personnalisé (/branding/sample-preview) ---------- */

.branding-sample-preview-box {
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-md);
  background: var(--color-primary-soft);
  border: 1px solid rgba(2, 132, 199, 0.3);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.branding-sample-preview-hint {
  color: var(--color-muted);
  font-size: 0.82rem;
}

.btn-branding-sample-preview {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: 100%;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #0284C7 0%, #059669 100%);
  color: #FFFFFF;
  border: 1px solid rgba(16, 185, 129, 0.4);
  font-size: 0.88rem;
  font-weight: 700;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.btn-branding-sample-preview:hover,
.btn-branding-sample-preview:focus-visible {
  background: linear-gradient(135deg, #0369A1 0%, #047857 100%);
  color: #FFFFFF;
  text-decoration: none;
}

/* ---------- Thème Sombre Exécutif Bi-Ton (html[data-theme="dark"]) ---------- */

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0B1120;
  --bg-obsidian: #060911;
  --bg-slate-elevated: #111C35;
  --surface: #111827;
  --surface-elevated: #172542;
  --surface-muted: #1E293B;
  --border: #334155;
  --border-strong: #475569;
  --ink: #F8FAFC;
  --ink-soft: #E2E8F0;
  --ink-muted: #94A3B8;
  --color-bg: var(--bg);
  --color-bg-alt: var(--surface-muted);
  --color-surface: var(--surface);
  --color-border: var(--border);
  --color-border-strong: var(--border-strong);
  --color-text: var(--ink);
  --color-muted: var(--ink-muted);
  --color-primary: #38BDF8;
  --color-primary-hover: #0284C7;
  --color-primary-soft: rgba(56, 189, 248, 0.14);
  --color-accent: #10B981;
  --color-accent-strong: #34D399;
  --color-accent-soft: rgba(16, 185, 129, 0.16);
  --color-danger: #F87171;
  --color-danger-soft: rgba(239, 68, 68, 0.15);
  --color-success: #34D399;
  --color-success-soft: rgba(16, 185, 129, 0.15);
  --color-warning: #FBBF24;
  --color-warning-soft: rgba(245, 158, 11, 0.15);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.35), 0 1px 2px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 10px 28px -4px rgba(0, 0, 0, 0.45), 0 4px 10px -2px rgba(0, 0, 0, 0.3);
}

html[data-theme="dark"] body {
  background: var(--bg);
  color: var(--ink);
}

html[data-theme="dark"] .site-header,
html[data-theme="dark"] .topbar {
  background: #060911;
  border-bottom-color: #1E293B;
}

html[data-theme="dark"] .main-nav a:hover,
html[data-theme="dark"] .main-nav a:focus-visible,
html[data-theme="dark"] .visitor-link:hover,
html[data-theme="dark"] .visitor-link:focus-visible {
  background: var(--surface-muted);
  color: var(--ink);
}

html[data-theme="dark"] .theme-toggle-btn {
  background: var(--surface-muted);
  border-color: var(--border-strong);
  color: #FBBF24;
}

html[data-theme="dark"] .theme-toggle-btn:hover,
html[data-theme="dark"] .theme-toggle-btn:focus-visible {
  background: #0F172A;
  border-color: #38BDF8;
  color: #FDE68A;
}

html[data-theme="dark"] .panel,
html[data-theme="dark"] .stat-card,
html[data-theme="dark"] .plan-card,
html[data-theme="dark"] .legal-document,
html[data-theme="dark"] .auth-card {
  background: var(--surface);
  border-color: var(--border);
  color: var(--ink);
}

/* --- Contraste Bi-Ton de la Vitrine Commerciale (landing.html) en Mode Sombre --- */

/* Tonalité 1 — Noir Carbone Profond / Obsidian Void (#060911) : Hero, Section 4 & Footer */
html[data-theme="dark"] .landing-hero-band,
html[data-theme="dark"] .landing-band-dark {
  background-color: #060911;
  background-image:
    radial-gradient(circle at 18% 22%, rgba(2, 132, 199, 0.22) 0%, transparent 45%),
    radial-gradient(circle at 82% 75%, rgba(16, 185, 129, 0.16) 0%, transparent 45%),
    linear-gradient(rgba(148, 163, 184, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.05) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 40px 40px, 40px 40px;
  border-bottom: 1px solid rgba(56, 189, 248, 0.16);
}

html[data-theme="dark"] .site-footer {
  background-color: #060911;
  border-top: 1px solid rgba(56, 189, 248, 0.16);
}

html[data-theme="dark"] .hero-preview {
  background: #172542;
  border-color: #283756;
  color: #F8FAFC;
}

html[data-theme="dark"] .hero-cover-score-row {
  background: #0E1729;
  border-color: #283756;
}

html[data-theme="dark"] .hero-score-ring circle:first-of-type {
  stroke: #283756;
}

html[data-theme="dark"] .hero-score-ring text:first-of-type {
  fill: #F8FAFC;
}

html[data-theme="dark"] .hero-score-ring text:last-of-type {
  fill: #CBD5E1;
}

html[data-theme="dark"] .feature-card-dark {
  background: #111C35;
  border-color: #283756;
}

/* Tonalité 2 — Ardoise Nuit Élevée (#10192D / #111C33) : Sections 2, 3 et 5 */
html[data-theme="dark"] .landing-band-light,
html[data-theme="dark"] .landing-band-surface {
  background-color: #10192D;
  background: linear-gradient(180deg, #111C33 0%, #0D1526 100%);
  border-top: 1px solid #1E293B;
  border-bottom: 1px solid #1E293B;
  color: #F8FAFC;
}

html[data-theme="dark"] .landing-section-title {
  color: #FFFFFF;
}

html[data-theme="dark"] .landing-section-subtitle {
  color: #CBD5E1;
}

/* Section 2 — Comparatif Avant / Après & Frise 3 Étapes */
html[data-theme="dark"] .comparison-before {
  background: #16223A;
  border: 1px solid #283756;
  color: #F8FAFC;
}

html[data-theme="dark"] .comparison-before .comparison-header {
  border-bottom-color: #283756;
}

html[data-theme="dark"] .problem-card {
  background: #0E1729;
  border: 1px solid #283756;
}

html[data-theme="dark"] .problem-title {
  color: #F8FAFC;
}

html[data-theme="dark"] .problem-text {
  color: #CBD5E1;
}

html[data-theme="dark"] .problem-number,
html[data-theme="dark"] .comparison-status-bad {
  background: rgba(239, 68, 68, 0.15);
  color: #FCA5A5;
  border-color: rgba(248, 113, 113, 0.28);
}

html[data-theme="dark"] .comparison-after {
  background: #090E1A;
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #F8FAFC;
}

html[data-theme="dark"] .workflow-strip {
  background: #16223A;
  border: 1px solid #283756;
}

html[data-theme="dark"] .workflow-step-title {
  color: #F8FAFC;
}

html[data-theme="dark"] .workflow-step-text {
  color: #CBD5E1;
}

html[data-theme="dark"] .workflow-icon-box svg > rect:first-child {
  fill: #0E1729;
  stroke: #283756;
  stroke-width: 1.5px;
}

html[data-theme="dark"] .workflow-icon-box svg circle[stroke="#0284C7"],
html[data-theme="dark"] .workflow-icon-box svg ellipse[stroke="#0284C7"],
html[data-theme="dark"] .workflow-icon-box svg path[stroke="#0284C7"] {
  stroke: #38BDF8;
}

/* Section 3 — Les 3 Piliers d'Audit */
html[data-theme="dark"] .solution-card {
  background: #16223B;
  border: 1px solid #2A3B5C;
  border-top: 4px solid #38BDF8;
  color: #F8FAFC;
}

html[data-theme="dark"] .solution-title {
  color: #FFFFFF;
}

html[data-theme="dark"] .solution-tech-box {
  background: #0B1120;
  border: 1px solid #1E293B;
  color: #CBD5E1;
}

html[data-theme="dark"] .solution-box-label {
  color: #94A3B8;
}

html[data-theme="dark"] .solution-quote {
  background: rgba(239, 68, 68, 0.10);
  border: 1px solid rgba(248, 113, 113, 0.28);
  border-left: 3px solid #F87171;
  color: #F8FAFC;
}

html[data-theme="dark"] .solution-quote-label {
  color: #FCA5A5;
}

html[data-theme="dark"] .report-anatomy-banner {
  background: #060911;
  border-color: #2A3B5C;
}

/* Section 5 — Tarifs & ROI */
html[data-theme="dark"] .roi-banner {
  background: #060911;
  border-color: #283756;
}

html[data-theme="dark"] .landing-plan-card {
  background: #152036;
  border: 1px solid #283756;
  color: #F8FAFC;
}

html[data-theme="dark"] .landing-plan-card.landing-plan-featured {
  background: linear-gradient(180deg, #17294A 0%, #101D36 100%);
  border: 2px solid #0284C7;
  box-shadow: 0 16px 36px -8px rgba(2, 132, 199, 0.28), 0 4px 12px -2px rgba(0, 0, 0, 0.45);
  color: #F8FAFC;
}

html[data-theme="dark"] .landing-plan-card .plan-price,
html[data-theme="dark"] .landing-plan-card .plan-feature-highlight {
  color: #F8FAFC;
}

/* Pages publiques (/faq, /contact, /legal, /terms, /privacy) & Authentification */
html[data-theme="dark"] .public-page-hero,
html[data-theme="dark"] .auth-stage {
  background-color: #060911;
  border-bottom: 1px solid rgba(56, 189, 248, 0.16);
}

html[data-theme="dark"] .page.page-public {
  background: #0F172A;
}

html[data-theme="dark"] .public-page-body {
  background: #0F172A;
}

html[data-theme="dark"] .public-page-body .panel,
html[data-theme="dark"] .public-page-body .faq-item,
html[data-theme="dark"] .public-page-body .legal-document,
html[data-theme="dark"] .public-page-body .help-card,
html[data-theme="dark"] .auth-card {
  background: #16223A;
  border-color: #283756;
  color: #F8FAFC;
}

html[data-theme="dark"] .public-page-body .pillar-card,
html[data-theme="dark"] .public-page-body .contact-discovery-link,
html[data-theme="dark"] .public-page-body .info-list {
  background: #0E1729;
  border-color: #283756;
}

html[data-theme="dark"] .input,
html[data-theme="dark"] .form-input,
html[data-theme="dark"] .field input,
html[data-theme="dark"] .field textarea,
html[data-theme="dark"] .select-input,
html[data-theme="dark"] .admin-select {
  background: #0E1729;
  border-color: #334155;
  color: #F8FAFC;
}

html[data-theme="dark"] .input:disabled,
html[data-theme="dark"] .form-input:disabled,
html[data-theme="dark"] .field input:disabled,
html[data-theme="dark"] .watch-fieldset:disabled .field input {
  background: var(--surface-muted);
  color: var(--ink-muted);
}

html[data-theme="dark"] .table-wrap,
html[data-theme="dark"] .table-wrapper {
  border-color: var(--border);
}

html[data-theme="dark"] .data-table th,
html[data-theme="dark"] .legal-table th {
  background: var(--surface-muted);
  color: var(--ink-soft);
  border-bottom-color: var(--border);
}

html[data-theme="dark"] .data-table td,
html[data-theme="dark"] .legal-table td {
  border-bottom-color: var(--border);
  color: var(--ink-soft);
}

html[data-theme="dark"] .data-table tbody tr:hover {
  background: rgba(30, 41, 59, 0.65);
}

html[data-theme="dark"] .badge,
html[data-theme="dark"] .plan-badge,
html[data-theme="dark"] .status-pill,
html[data-theme="dark"] .category-tag {
  border-color: var(--border-strong);
}

html[data-theme="dark"] .plan-badge.plan-agency {
  background: var(--surface-muted);
  color: var(--ink);
  border-color: var(--border-strong);
}

html[data-theme="dark"] .alert {
  color: var(--ink);
}

html[data-theme="dark"] .alert-error {
  background: rgba(185, 28, 28, 0.2);
  border-color: rgba(248, 113, 113, 0.45);
  color: #FECACA;
}

html[data-theme="dark"] .alert-success {
  background: rgba(5, 150, 105, 0.2);
  border-color: rgba(52, 211, 153, 0.45);
  color: #A7F3D0;
}

html[data-theme="dark"] .alert-warning {
  background: rgba(180, 83, 9, 0.22);
  border-color: rgba(251, 191, 36, 0.45);
  color: #FDE68A;
}

html[data-theme="dark"] .faq-item,
html[data-theme="dark"] .pillar-card,
html[data-theme="dark"] .help-card,
html[data-theme="dark"] .pricing-details,
html[data-theme="dark"] .pricing-service-row,
html[data-theme="dark"] .finding-item,
html[data-theme="dark"] .lot-card,
html[data-theme="dark"] .watch-alert-item {
  background: #16223A;
  border-color: #283756;
  color: var(--ink);
}

html[data-theme="dark"] .pricing-details {
  background: #0F172A;
}

html[data-theme="dark"] .code-pill,
html[data-theme="dark"] .legal-document code,
html[data-theme="dark"] .field-hint code,
html[data-theme="dark"] .form-note code {
  background: var(--surface-muted);
  border: 1px solid var(--border);
  color: var(--ink-soft);
  padding: 0.1rem 0.35rem;
  border-radius: var(--radius-sm);
}

html[data-theme="dark"] .cover-preview {
  background: #0F172A;
  border-color: var(--border);
  color: var(--ink);
}

html[data-theme="dark"] .cover-intro,
html[data-theme="dark"] .logo-current {
  background: var(--surface-muted);
  border-color: var(--border-strong);
}

html[data-theme="dark"] .btn-primary {
  background: #0284C7;
  color: #FFFFFF;
}

html[data-theme="dark"] .btn-primary:hover:not(:disabled) {
  background: #0369A1;
}

html[data-theme="dark"] .btn-ghost,
html[data-theme="dark"] .btn-secondary {
  background: #0E1729;
  border-color: #334155;
  color: #F8FAFC;
}

html[data-theme="dark"] .btn-ghost:hover:not(:disabled),
html[data-theme="dark"] .btn-secondary:hover:not(:disabled) {
  background: #1E293B;
  border-color: #475569;
  color: #FFFFFF;
}

/* ---------- Chasseur Sniper (/admin/sniper), Opt-Out CNIL & Recalcul 0 Crédit (T-8.3 / T-8.4) ---------- */

.page-actions,
.audit-header-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}

.stats-grid.admin-kpi-grid.sniper-kpi-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.sniper-hunt-panel {
  margin-bottom: 1.5rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  align-items: end;
}

.form-grid.sniper-hunt-fields {
  grid-template-columns: minmax(0, 1fr) 180px auto;
  gap: 1rem;
  align-items: end;
}

.sniper-query-group,
.sniper-max-group {
  min-width: 0;
}

.sniper-hunt-submit {
  display: flex;
  align-items: flex-end;
}

.branding-quick-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  padding-top: 0.5rem;
  margin-top: 0.25rem;
  border-top: 1px solid var(--color-border);
}

.sniper-agency-header {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.2rem;
}

.sniper-color-swatch {
  flex-shrink: 0;
  border-radius: 3px;
}

.sniper-email-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.5rem;
}

.sniper-email-input {
  max-width: 15.5rem;
  padding: 0.38rem 0.65rem;
  font-size: 0.84rem;
}

.sniper-audit-summary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  margin-bottom: 0.35rem;
}

.sniper-audit-summary .grade-pill,
.sniper-score {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  white-space: nowrap;
}

.sniper-report-links {
  font-size: 0.84rem;
}

.sniper-row-error {
  margin: 0.35rem 0 0;
  color: var(--color-danger);
  font-size: 0.8rem;
}

.sniper-status-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
}

.sniper-opened-badge {
  background: rgba(16, 185, 129, 0.16);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.45);
  font-weight: 800;
}

html[data-theme="dark"] .sniper-opened-badge {
  background: rgba(16, 185, 129, 0.22);
  color: #6EE7B7;
  border-color: rgba(52, 211, 153, 0.5);
}

.sniper-opened-date,
.sniper-contacted-date {
  font-size: 0.76rem;
  color: var(--color-muted);
}

.sniper-email-preview summary {
  cursor: pointer;
}

.sniper-email-content {
  margin-top: 0.5rem;
  padding: 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-bg);
  max-width: 28rem;
}

html[data-theme="dark"] .sniper-email-content {
  background: #0F172A;
  border-color: var(--border);
}

.sniper-email-subject {
  margin: 0 0 0.45rem;
  font-size: 0.82rem;
}

.sniper-email-body {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  line-height: 1.45;
}

.sniper-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
}

.optout-card {
  max-width: 44rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.optout-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.35rem;
}

/* ---------- Modale Givrée de Progression Temps Réel du Chasseur Sniper (T-8.5) ---------- */

@keyframes sniper-spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes sniper-pulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 24px rgba(56, 189, 248, 0.35), inset 0 0 18px rgba(56, 189, 248, 0.18);
  }
  50% {
    transform: scale(1.04);
    box-shadow: 0 0 42px rgba(56, 189, 248, 0.65), inset 0 0 26px rgba(16, 185, 129, 0.28);
  }
}

.sniper-loading-modal {
  position: fixed;
  inset: 2rem;
  z-index: 999;
  border-radius: 1.5rem;
  background: rgba(11, 17, 32, 0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(56, 189, 248, 0.28);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  color: #F8FAFC;
}

.sniper-modal-center {
  width: 100%;
  max-width: 34rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.9rem;
  padding: 2.25rem 2rem;
  border-radius: 1.25rem;
  background: rgba(15, 23, 42, 0.82);
  border: 1px solid rgba(56, 189, 248, 0.22);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.45);
}

.sniper-modal-emblem {
  position: relative;
  width: 8rem;
  height: 8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  animation: sniper-pulse 2.4s ease-in-out infinite;
}

.sniper-modal-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.sniper-ring-track {
  stroke: rgba(148, 163, 184, 0.2);
}

.sniper-ring-progress {
  stroke: #38BDF8;
  stroke-linecap: round;
  transform: rotate(-90deg);
  transform-origin: 64px 64px;
  transition: stroke-dasharray 0.35s ease;
}

.sniper-ring-orbit {
  stroke: #10B981;
  transform-origin: 64px 64px;
  animation: sniper-spin 6s linear infinite;
}

.sniper-modal-logo {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.sniper-modal-logo-mark {
  font-size: 2.35rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: #FFFFFF;
}

.sniper-modal-logo-dot {
  color: #38BDF8;
}

.sniper-modal-logo-sub {
  margin-top: 0.2rem;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  color: #94A3B8;
}

.sniper-modal-title {
  margin: 0.25rem 0 0;
  font-size: 1.35rem;
  font-weight: 800;
  color: #FFFFFF;
}

.sniper-modal-query {
  margin: 0;
  font-size: 0.95rem;
  color: #CBD5E1;
}

.sniper-modal-query strong {
  color: #38BDF8;
}

.sniper-modal-target {
  margin: 0;
  font-size: 0.88rem;
  color: #94A3B8;
}

.sniper-modal-target code {
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
  background: rgba(2, 132, 199, 0.18);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #E0F2FE;
  font-family: var(--font-mono);
  font-size: 0.84rem;
}

.sniper-modal-progress-wrap {
  width: 100%;
  margin-top: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sniper-modal-progress-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.84rem;
  font-weight: 700;
  color: #E2E8F0;
}

.sniper-modal-progress-pct {
  font-family: var(--font-mono);
  color: #38BDF8;
}

.sniper-progress-bar {
  display: block;
  width: 100%;
  height: 0.65rem;
  border-radius: 999px;
  overflow: hidden;
}

.sniper-progress-track {
  fill: rgba(148, 163, 184, 0.22);
}

.sniper-progress-fill {
  fill: #38BDF8;
  transition: width 0.35s ease;
}

.sniper-modal-counters {
  margin: 0;
  font-size: 0.82rem;
  color: #CBD5E1;
}

@media (max-width: 1100px) {
  .stats-grid.admin-kpi-grid.sniper-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .form-grid.sniper-hunt-fields {
    grid-template-columns: minmax(0, 1fr) 160px;
  }

  .sniper-hunt-submit {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .stats-grid.admin-kpi-grid.sniper-kpi-grid,
  .form-grid,
  .form-grid.sniper-hunt-fields {
    grid-template-columns: minmax(0, 1fr);
  }

  .sniper-loading-modal {
    inset: 0.75rem;
    padding: 1rem;
  }

  .sniper-modal-center {
    padding: 1.5rem 1.15rem;
  }
}

/* ---------- Explorateur en Arborescence de Dossiers & Chronologie 90j (/admin/sniper — T-8.6) ---------- */

.sniper-explorer-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
}

.sniper-folder-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.15rem;
  position: sticky;
  top: 1rem;
}

.sniper-sidebar-header {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--color-border);
}

.sniper-sidebar-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
}

.sniper-sidebar-subtitle {
  margin: 0;
  font-size: 0.78rem;
  color: var(--color-muted);
}

.sniper-folder-nav {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.sniper-master-group {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.sniper-folder-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.5rem 0.65rem;
  border-radius: var(--radius-sm);
  color: var(--color-text);
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.sniper-folder-link:hover {
  background: var(--color-bg);
  text-decoration: none;
}

.sniper-folder-link.is-active {
  background: rgba(2, 132, 199, 0.14);
  border-color: rgba(56, 189, 248, 0.45);
  color: var(--color-primary);
}

html[data-theme="dark"] .sniper-folder-link:hover {
  background: rgba(30, 41, 59, 0.7);
}

html[data-theme="dark"] .sniper-folder-link.is-active {
  background: rgba(2, 132, 199, 0.24);
  border-color: rgba(56, 189, 248, 0.55);
  color: #38BDF8;
}

.sniper-folder-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.5rem;
  padding: 0.1rem 0.42rem;
  border-radius: 999px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  font-family: var(--font-mono);
  font-size: 0.73rem;
  font-weight: 700;
  color: var(--color-muted);
}

html[data-theme="dark"] .sniper-folder-count {
  background: #0B1120;
  border-color: #334155;
  color: #CBD5E1;
}

.sniper-subfolder-list {
  list-style: none;
  margin: 0 0 0.25rem 0.65rem;
  padding: 0 0 0 0.55rem;
  border-left: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

html[data-theme="dark"] .sniper-subfolder-list {
  border-left-color: #334155;
}

.sniper-subfolder-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem;
}

.sniper-subfolder-item.sniper-depth-1 {
  padding-left: 0.65rem;
}

.sniper-subfolder-item.sniper-depth-2,
.sniper-subfolder-item.sniper-depth-3 {
  padding-left: 1.25rem;
}

.sniper-subfolder-link {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  padding: 0.32rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  color: var(--color-muted);
  text-decoration: none;
  border: 1px solid transparent;
}

.sniper-subfolder-link:hover {
  background: var(--color-bg);
  color: var(--color-text);
  text-decoration: none;
}

.sniper-subfolder-link.is-active {
  background: rgba(16, 185, 129, 0.14);
  border-color: rgba(16, 185, 129, 0.45);
  color: #059669;
  font-weight: 700;
}

html[data-theme="dark"] .sniper-subfolder-link:hover {
  background: rgba(30, 41, 59, 0.65);
  color: #F8FAFC;
}

html[data-theme="dark"] .sniper-subfolder-link.is-active {
  background: rgba(16, 185, 129, 0.2);
  border-color: rgba(52, 211, 153, 0.5);
  color: #6EE7B7;
}

.sniper-subfolder-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sniper-subfolder-delete-form {
  margin: 0;
  flex-shrink: 0;
}

.sniper-subfolder-delete-btn {
  padding: 0.1rem 0.38rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: transparent;
  color: var(--color-muted);
  font-size: 0.85rem;
  line-height: 1;
  cursor: pointer;
}

.sniper-subfolder-delete-btn:hover {
  background: var(--color-danger-soft);
  color: var(--color-danger);
}

.sniper-create-folder-details {
  padding-top: 0.65rem;
  border-top: 1px solid var(--color-border);
}

.sniper-create-folder-summary {
  width: 100%;
  justify-content: center;
  cursor: pointer;
  list-style: none;
}

.sniper-create-folder-summary::-webkit-details-marker {
  display: none;
}

.sniper-create-folder-form {
  margin-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.sniper-folder-pill {
  display: inline-block;
  margin-top: 0.3rem;
  padding: 0.14rem 0.5rem;
  border-radius: 999px;
  background: rgba(2, 132, 199, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: var(--color-primary);
  font-size: 0.72rem;
  font-weight: 700;
}

html[data-theme="dark"] .sniper-folder-pill {
  background: rgba(2, 132, 199, 0.2);
  border-color: rgba(56, 189, 248, 0.45);
  color: #7DD3FC;
}

.sniper-status-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

.sniper-timeline {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.28rem;
  margin-top: 0.15rem;
}

.sniper-timeline-item {
  font-size: 0.76rem;
  color: var(--color-muted);
  line-height: 1.35;
}

.sniper-timeline-item strong {
  color: var(--color-text);
}

html[data-theme="dark"] .sniper-timeline-item strong {
  color: #E2E8F0;
}

.sniper-optout-date {
  color: var(--color-danger);
}

html[data-theme="dark"] .sniper-optout-date {
  color: #FCA5A5;
}

.sniper-cooldown-badge {
  font-size: 0.72rem;
  font-weight: 800;
}

.sniper-cooldown-locked {
  background: rgba(245, 158, 11, 0.16);
  border: 1px solid rgba(245, 158, 11, 0.45);
  color: #B45309;
}

html[data-theme="dark"] .sniper-cooldown-locked {
  background: rgba(245, 158, 11, 0.2);
  border-color: rgba(251, 191, 36, 0.5);
  color: #FDE68A;
}

.sniper-cooldown-ready {
  background: rgba(16, 185, 129, 0.16);
  border: 1px solid rgba(16, 185, 129, 0.45);
  color: #059669;
}

html[data-theme="dark"] .sniper-cooldown-ready {
  background: rgba(16, 185, 129, 0.22);
  border-color: rgba(52, 211, 153, 0.5);
  color: #6EE7B7;
}

.sniper-move-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
}

.sniper-move-select {
  max-width: 11.5rem;
  padding: 0.28rem 0.5rem;
  font-size: 0.76rem;
}

.sniper-danger-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

@media (max-width: 1100px) {
  .sniper-explorer-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .sniper-folder-sidebar {
    position: static;
  }
}

/* ---------- Indicateur Pulsant « Nouvelles Consultations 🔥 », Édition Inline & Envoi Groupé (T-8.7) ---------- */

@keyframes sniper-alert-pulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.55), 0 0 14px rgba(16, 185, 129, 0.35);
  }
  50% {
    transform: scale(1.03);
    box-shadow: 0 0 0 5px rgba(245, 158, 11, 0), 0 0 22px rgba(245, 158, 11, 0.65);
  }
}

.sniper-unseen-alert-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.16rem 0.55rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(16, 185, 129, 0.2));
  border: 1px solid rgba(245, 158, 11, 0.65);
  color: #B45309;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
  animation: sniper-alert-pulse 1.8s ease-in-out infinite;
}

html[data-theme="dark"] .sniper-unseen-alert-badge {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.28), rgba(16, 185, 129, 0.28));
  border-color: rgba(251, 191, 36, 0.75);
  color: #FEF3C7;
}

.btn-primary .sniper-unseen-alert-badge {
  margin-left: 0.35rem;
  background: rgba(254, 243, 199, 0.96);
  border-color: #F59E0B;
  color: #92400E;
}

html[data-theme="dark"] .btn-primary .sniper-unseen-alert-badge {
  background: rgba(15, 23, 42, 0.9);
  border-color: #FBBF24;
  color: #FDE68A;
}

.sniper-unseen-pulse-dot {
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 999px;
  background: #10B981;
  box-shadow: 0 0 8px #10B981, 0 0 12px #F59E0B;
  flex-shrink: 0;
}

.sniper-kpi-unseen-card {
  border-color: rgba(245, 158, 11, 0.65);
  box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.25), var(--shadow-sm);
}

html[data-theme="dark"] .sniper-kpi-unseen-card {
  border-color: rgba(251, 191, 36, 0.65);
  box-shadow: 0 0 18px rgba(245, 158, 11, 0.22);
}

.sniper-kpi-unseen-card .stat-value {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.sniper-folder-badges {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

.sniper-folder-link.has-unseen-alert {
  border-color: rgba(245, 158, 11, 0.55);
  background: rgba(245, 158, 11, 0.08);
}

html[data-theme="dark"] .sniper-folder-link.has-unseen-alert {
  border-color: rgba(251, 191, 36, 0.55);
  background: rgba(245, 158, 11, 0.14);
}

.sniper-ack-opens-form {
  margin: 0;
}

.sniper-main-panel-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.sniper-main-panel-copy {
  flex: 1;
  min-width: 16rem;
}

.sniper-batch-send-form {
  margin: 0;
  flex-shrink: 0;
}

.sniper-row-unseen-open {
  background: rgba(16, 185, 129, 0.07);
  box-shadow: inset 4px 0 0 #F59E0B;
}

html[data-theme="dark"] .sniper-row-unseen-open {
  background: rgba(16, 185, 129, 0.13);
  box-shadow: inset 4px 0 0 #FBBF24;
}

.sniper-new-open-badge {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.22), rgba(16, 185, 129, 0.22));
  border: 1px solid rgba(245, 158, 11, 0.65);
  color: #B45309;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  animation: sniper-alert-pulse 2s ease-in-out infinite;
}

html[data-theme="dark"] .sniper-new-open-badge {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.3), rgba(16, 185, 129, 0.28));
  border-color: rgba(251, 191, 36, 0.75);
  color: #FEF3C7;
}

.sniper-inline-edit-fields {
  display: flex;
  flex-direction: column;
  gap: 0.32rem;
  width: 100%;
  max-width: 15.5rem;
}

.sniper-agency-name-input {
  max-width: 15.5rem;
  padding: 0.34rem 0.65rem;
  font-size: 0.82rem;
  font-weight: 700;
}

/* ---------- Sélection Multiple « Boîte Mail » Sniper & Newsletter Produit RGPD (T-8.8) ---------- */

.sniper-bulk-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-bottom: 0.85rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg);
}

html[data-theme="dark"] .sniper-bulk-toolbar {
  background: rgba(15, 23, 42, 0.72);
  border-color: #334155;
}

.sniper-bulk-toolbar-group,
.sniper-bulk-move-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.sniper-bulk-move-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-muted);
  white-space: nowrap;
}

.sniper-bulk-move-select {
  max-width: 13.5rem;
  padding: 0.3rem 0.55rem;
  font-size: 0.8rem;
}

.sniper-col-select {
  width: 2.4rem;
  text-align: center;
  vertical-align: middle;
}

.sniper-select-all-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  font-size: 0.95rem;
  line-height: 1;
  text-decoration: none;
}

.sniper-select-all-toggle:hover {
  border-color: var(--color-primary);
  text-decoration: none;
}

.sniper-row-checkbox {
  width: 1.05rem;
  height: 1.05rem;
  accent-color: var(--color-primary);
  cursor: pointer;
}

.field-checkbox {
  margin-top: 0.25rem;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--color-text);
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  margin-top: 0.18rem;
  width: 1.05rem;
  height: 1.05rem;
  flex-shrink: 0;
  accent-color: var(--color-primary);
  cursor: pointer;
}

.admin-newsletter-panel {
  margin-bottom: 1.5rem;
}

.admin-newsletter-textarea {
  min-height: 7.5rem;
  resize: vertical;
  font-family: var(--font-sans);
  line-height: 1.5;
}

/* ---------- Portail Support Client & Gestion Tickets Super-Admin (T-8.11) ---------- */

.support-open-alert-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.22), rgba(239, 68, 68, 0.18));
  border: 1px solid rgba(245, 158, 11, 0.7);
  color: #B45309;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  animation: sniper-alert-pulse 2s ease-in-out infinite;
}

html[data-theme="dark"] .support-open-alert-badge {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.32), rgba(239, 68, 68, 0.25));
  border-color: rgba(251, 191, 36, 0.8);
  color: #FEF3C7;
}

.support-open-pulse-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: #F59E0B;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.9);
  flex-shrink: 0;
}

.support-ticket-form-panel,
.support-tickets-history,
.admin-support-panel {
  margin-bottom: 1.5rem;
}

.admin-support-header-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
}

.support-tickets-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.support-ticket-card {
  padding: 1.15rem 1.25rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

html[data-theme="dark"] .support-ticket-card {
  background: rgba(15, 23, 42, 0.65);
  border-color: #334155;
}

.support-ticket-card-open {
  border-left: 4px solid #F59E0B;
}

.support-ticket-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
}

.support-ticket-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}

.support-ticket-ref {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--color-primary);
}

.support-ticket-date {
  font-size: 0.8rem;
  color: var(--color-muted);
}

.support-status-open {
  background: rgba(245, 158, 11, 0.16);
  color: #B45309;
  border: 1px solid rgba(245, 158, 11, 0.45);
}

html[data-theme="dark"] .support-status-open {
  background: rgba(245, 158, 11, 0.24);
  color: #FDE68A;
  border-color: rgba(251, 191, 36, 0.55);
}

.support-status-answered {
  background: rgba(2, 132, 199, 0.14);
  color: #0369A1;
  border: 1px solid rgba(2, 132, 199, 0.38);
}

html[data-theme="dark"] .support-status-answered {
  background: rgba(56, 189, 248, 0.2);
  color: #BAE6FD;
  border-color: rgba(56, 189, 248, 0.48);
}

.support-status-resolved {
  background: rgba(16, 185, 129, 0.15);
  color: #047857;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

html[data-theme="dark"] .support-status-resolved {
  background: rgba(16, 185, 129, 0.22);
  color: #A7F3D0;
  border-color: rgba(52, 211, 153, 0.5);
}

.support-ticket-subject {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--color-text);
}

.support-ticket-message {
  margin: 0;
  white-space: pre-wrap;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--color-text);
}

.support-ticket-reply {
  margin-top: 0.25rem;
  padding: 0.9rem 1rem;
  border-left: 3px solid var(--color-accent);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

html[data-theme="dark"] .support-ticket-reply {
  background: rgba(30, 41, 59, 0.85);
}

.support-ticket-reply-title {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--color-accent-strong);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.support-ticket-reply-date {
  font-weight: 500;
  color: var(--color-muted);
}

.support-ticket-reply-body {
  margin: 0;
  white-space: pre-wrap;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--color-text);
}

.admin-ticket-requester {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.75rem;
}

.admin-ticket-actions-bar {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--color-border);
}

.admin-ticket-reply-textarea {
  min-height: 5.5rem;
  resize: vertical;
  font-family: var(--font-sans);
  line-height: 1.5;
}

.admin-ticket-reply-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem 1rem;
}

.admin-ticket-status-field {
  min-width: 14rem;
}

.admin-ticket-delete-form {
  align-self: flex-end;
}

/* ---------- Espace Client « Mon Compte » (/account) & Console Support (/admin/support) ---------- */

.account-alert {
  margin-top: 0;
  margin-bottom: 1.25rem;
}

.account-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  align-items: start;
}

.account-card {
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.account-card .panel-header {
  margin-bottom: 0;
}

.account-card-alert {
  margin-top: 0;
}

.account-form {
  margin-top: 0.25rem;
}

.account-card-body {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.account-summary-list,
.account-status-list,
.account-meta-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
  padding: 0.95rem 1.05rem;
  border: 1px solid var(--border, var(--color-border));
  border-radius: var(--radius-sm);
  background: var(--color-bg);
}

html[data-theme="dark"] .account-summary-list,
html[data-theme="dark"] .account-status-list,
html[data-theme="dark"] .account-meta-grid {
  background: rgba(15, 23, 42, 0.55);
  border-color: var(--border);
}

.account-status-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 0.5rem;
}

.account-status-row:last-child {
  margin-bottom: 0;
}

.account-actions,
.account-actions-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
  margin-top: 0.5rem;
}

.account-subsection-title {
  margin: 0;
  font-size: 0.96rem;
  font-weight: 800;
  color: var(--color-text);
}

.account-rgpd-section {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.account-rgpd-divider {
  border-top: 1px solid var(--border, var(--color-border));
  padding-top: 1.25rem;
  margin-top: 0.5rem;
}

.danger-zone-form,
.account-delete-form,
.danger-form {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 0.85rem;
  width: 100%;
  max-width: 440px;
}

.danger-zone-form .field,
.account-delete-form .field,
.danger-form .field {
  width: 100%;
  max-width: 420px;
  align-items: flex-start;
  text-align: left;
}

.danger-zone-form .field input,
.account-delete-form .field input,
.danger-form .field input {
  width: 100%;
  max-width: 420px;
}

.page-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.stats-grid.admin-support-kpi-grid,
.admin-support-kpi-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.support-filter-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem;
  border: 1px solid var(--border, var(--color-border));
  border-radius: var(--radius-md);
  background: var(--color-bg);
}

html[data-theme="dark"] .support-filter-tabs {
  background: rgba(15, 23, 42, 0.75);
  border-color: #334155;
}

.support-filter-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.38rem 0.78rem;
  border-radius: var(--radius-sm);
  color: var(--color-muted);
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.support-filter-tab:hover,
.support-filter-tab:focus-visible {
  color: var(--color-text);
  background: var(--color-surface);
  text-decoration: none;
}

.support-filter-tab.is-active {
  background: var(--color-primary);
  color: #FFFFFF;
  border-color: var(--color-primary);
}

html[data-theme="dark"] .support-filter-tab.is-active {
  background: #0284C7;
  color: #FFFFFF;
  border-color: #38BDF8;
}

.support-filter-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35rem;
  padding: 0.08rem 0.38rem;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.22);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1.2;
}

.support-filter-tab.is-active .support-filter-count {
  background: rgba(255, 255, 255, 0.22);
  color: #FFFFFF;
}

/* ---------- Création Manuelle de Comptes Clients & Système Tricolore des Tickets Support (T-8.14) ---------- */

.admin-create-agency-panel {
  margin-bottom: 1.5rem;
}

.admin-create-agency-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.admin-create-agency-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  align-items: end;
}

.admin-nav-ticket-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  padding: 0.16rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}

@keyframes ticket-new-red-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.55);
  }
  50% {
    box-shadow: 0 0 0 5px rgba(239, 68, 68, 0);
  }
}

.ticket-badge-new-red,
.status-pill.ticket-status-new,
.support-status-new {
  background: rgba(239, 68, 68, 0.18);
  border: 1px solid #EF4444;
  color: #B91C1C;
  font-weight: 800;
  animation: ticket-new-red-pulse 1.8s ease-in-out infinite;
}

html[data-theme="dark"] .ticket-badge-new-red,
html[data-theme="dark"] .status-pill.ticket-status-new,
html[data-theme="dark"] .support-status-new {
  background: rgba(239, 68, 68, 0.18);
  border-color: #EF4444;
  color: #FCA5A5;
}

.ticket-badge-open-yellow,
.status-pill.ticket-status-open {
  background: rgba(245, 158, 11, 0.18);
  border: 1px solid #F59E0B;
  color: #B45309;
  font-weight: 800;
}

html[data-theme="dark"] .ticket-badge-open-yellow,
html[data-theme="dark"] .status-pill.ticket-status-open {
  background: rgba(245, 158, 11, 0.18);
  border-color: #F59E0B;
  color: #FCD34D;
}

.ticket-badge-resolved-green,
.status-pill.ticket-status-resolved {
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid #10B981;
  color: #047857;
  font-weight: 800;
}

html[data-theme="dark"] .ticket-badge-resolved-green,
html[data-theme="dark"] .status-pill.ticket-status-resolved {
  background: rgba(16, 185, 129, 0.18);
  border-color: #10B981;
  color: #6EE7B7;
}

.support-ticket-card-new,
.support-ticket-card.ticket-status-new {
  border-left: 4px solid #EF4444;
  background: rgba(239, 68, 68, 0.06);
}

html[data-theme="dark"] .support-ticket-card-new,
html[data-theme="dark"] .support-ticket-card.ticket-status-new {
  border-left: 4px solid #EF4444;
  background: rgba(239, 68, 68, 0.12);
}

.support-ticket-card-open,
.support-ticket-card.ticket-status-open {
  border-left: 4px solid #F59E0B;
}

.support-ticket-card-resolved,
.support-ticket-card.ticket-status-resolved {
  border-left: 4px solid #10B981;
}

.admin-support-btn-new {
  border-color: #EF4444;
}

.admin-support-btn-open {
  border-color: #F59E0B;
}

.admin-support-btn-new .ticket-badge-new-red,
.admin-support-btn-open .ticket-badge-open-yellow {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: 0.45rem;
  padding: 0.14rem 0.52rem;
  border-radius: 999px;
  font-size: 0.74rem;
}

@media (max-width: 960px) {
  .account-grid,
  .stats-grid.admin-support-kpi-grid,
  .admin-support-kpi-grid,
  .admin-create-agency-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}






