/* ==============================================================================
   SYNORBE - DESIGN SYSTEM "SWISS TECH" & ACCESSIBILITÉ WCAG 2.1 AAA
   Architecture CSS standardisée, hiérarchie 60-30-10, grille de 8px.
   Zéro glassmorphism, zéro dégradé néon, rayon unique 6px, micro-transitions 150-200ms.
   ============================================================================== */

/* Polices auto-hébergées (variables, sous-ensemble latin, licence SIL OFL) : aucun appel à un service tiers */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/inter-latin-wght-normal.woff2') format('woff2-variations'),
       url('../fonts/inter-latin-wght-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url('../fonts/space-grotesk-latin-wght-normal.woff2') format('woff2-variations'),
       url('../fonts/space-grotesk-latin-wght-normal.woff2') format('woff2');
}

:root {
  color-scheme: light;

  /* Marque */
  --color-primary: #635BFF;      /* Violet tech (fonds, bordures, dégradés) */
  --color-accent: #00D4B2;       /* Cyan émeraude vif (pastilles, coches, option atelier) */

  /* Thème clair */
  --bg-body: #F8FAFC;
  --bg-surface: #FFFFFF;
  --text-main: #0F172A;
  --text-body: #334155;
  --text-muted: #64748B;         /* 4.55:1 sur --bg-body (WCAG AA) */
  --border-color: #E2E8F0;
  --border-focus: #CBD5E1;

  /* Alias historiques (le reste de la feuille s'appuie dessus) */
  --bg-primary: var(--bg-body);
  --border-subtle: var(--border-color);
  --accent-web: var(--color-primary);
  --accent-sys: var(--color-accent);
  --accent-web-text: #4F46E5;    /* Violet lisible en texte (6.3:1 sur blanc) */
  --accent-sys-text: #0A6B5E;    /* Émeraude lisible en texte (6.4:1 sur blanc) */
  --accent-web-light: #F0EFFF;
  --accent-sys-light: #E0FAF6;
  --grad-text: linear-gradient(90deg, #4F46E5, #0A6B5E);
  --accent-cta: #F47C5D;
  --accent-cta-hover: #E86B4B;
  --cta-text: #0F172A;           /* Texte sombre obligatoire sur corail et sur émeraude */

  /* Surfaces inversées (barre haute, pied de page, bandeau final) */
  --bg-inverse: #0F172A;
  --text-on-inverse: #F8FAFC;

  /* États et effets */
  --grid-line: rgba(15, 23, 42, 0.035);
  --glass: rgba(255, 255, 255, 0.8);
  --card-highlight: rgba(255, 255, 255, 0.9);
  --ok-bg: #F0FDF4;
  --ok-text: #15803D;
  --ok-dot: #16A34A;
  --err-bg: #FEF2F2;
  --err-border: #FCA5A5;
  --err-text: #991B1B;
  --succ-bg: #ECFDF5;
  --succ-border: #6EE7B7;
  --succ-text: #065F46;
  --warn-bg: #FEF3C7;
  --warn-text: #7C2D12;
  --feat-bg: #FDECE6;
  --feat-border: #F9C7B7;
  --feat-text: #9A3412;

  /* Rigueur Géométrique */
  --radius: 6px;
  --radius-sm: 4px;

  /* Grille Rythmique (8pt) */
  --space-2xs: 4px;
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 32px;
  --space-xl: 48px;
  --space-2xl: 64px;
  --space-3xl: 96px;

  /* Typographie */
  --font-heading: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Conteneur */
  --container-max: 1200px;
}

/* Thème sombre : préférence système (sans choix explicite) puis choix explicite */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg-body: #0B0F19;
    --bg-surface: #111827;
    --text-main: #F9FAFB;
    --text-body: #D1D5DB;
    --text-muted: #9CA3AF;
    --border-color: #1F2937;
    --border-focus: #374151;
    --grad-text: linear-gradient(90deg, #A5A0FF, #00D4B2);
  --accent-web-text: #A5A0FF;
    --accent-sys-text: #00D4B2;
    --accent-web-light: rgba(99, 91, 255, 0.18);
    --accent-sys-light: rgba(0, 212, 178, 0.12);
    --bg-inverse: #060A12;
    --grid-line: rgba(255, 255, 255, 0.04);
    --glass: rgba(17, 24, 39, 0.8);
    --card-highlight: rgba(255, 255, 255, 0.06);
    --ok-bg: rgba(22, 163, 74, 0.16);
    --ok-text: #4ADE80;
    --err-bg: rgba(220, 38, 38, 0.14);
    --err-border: #7F1D1D;
    --err-text: #FCA5A5;
    --succ-bg: rgba(16, 185, 129, 0.14);
    --succ-border: #065F46;
    --succ-text: #6EE7B7;
    --warn-bg: rgba(245, 158, 11, 0.15);
    --warn-text: #FCD34D;
    --feat-bg: rgba(244, 124, 93, 0.15);
    --feat-border: rgba(244, 124, 93, 0.4);
    --feat-text: #FDBA9F;
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg-body: #0B0F19;
  --bg-surface: #111827;
  --text-main: #F9FAFB;
  --text-body: #D1D5DB;
  --text-muted: #9CA3AF;
  --border-color: #1F2937;
  --border-focus: #374151;
  --grad-text: linear-gradient(90deg, #A5A0FF, #00D4B2);
  --accent-web-text: #A5A0FF;
  --accent-sys-text: #00D4B2;
  --accent-web-light: rgba(99, 91, 255, 0.18);
  --accent-sys-light: rgba(0, 212, 178, 0.12);
  --bg-inverse: #060A12;
  --grid-line: rgba(255, 255, 255, 0.04);
  --glass: rgba(17, 24, 39, 0.8);
  --card-highlight: rgba(255, 255, 255, 0.06);
  --ok-bg: rgba(22, 163, 74, 0.16);
  --ok-text: #4ADE80;
  --err-bg: rgba(220, 38, 38, 0.14);
  --err-border: #7F1D1D;
  --err-text: #FCA5A5;
  --succ-bg: rgba(16, 185, 129, 0.14);
  --succ-border: #065F46;
  --succ-text: #6EE7B7;
  --warn-bg: rgba(245, 158, 11, 0.15);
  --warn-text: #FCD34D;
  --feat-bg: rgba(244, 124, 93, 0.15);
  --feat-border: rgba(244, 124, 93, 0.4);
  --feat-text: #FDBA9F;
}

/* ------------------------------------------------------------------------------
   RESET & FONDAMENTAUX
   ------------------------------------------------------------------------------ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  background-color: var(--bg-primary);
  color: var(--text-body);
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  background-color: var(--bg-primary);
  color: var(--text-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-main);
  line-height: 1.25;
  letter-spacing: -0.02em;
  font-weight: 700;
}

h1 {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  margin-bottom: var(--space-sm);
}

h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  margin-bottom: var(--space-sm);
}

h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

p {
  margin-bottom: var(--space-sm);
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--text-main);
  text-decoration: none;
  transition: color 150ms ease-out;
}

a:hover {
  color: var(--accent-web-text);
}

img, svg {
  display: inline-block;
  vertical-align: middle;
}

ul, ol {
  list-style: none;
}

/* Accessibilité du Focus Clavier */
:focus-visible {
  outline: 2px solid var(--accent-web);
  outline-offset: 3px;
}

/* ------------------------------------------------------------------------------
   BARRE DE STATUT SUPÉRIEURE (TOP BAR)
   ------------------------------------------------------------------------------ */
.topbar {
  background-color: var(--bg-inverse);
  color: var(--text-on-inverse);
  font-size: 0.8125rem;
  padding: 8px var(--space-sm);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.topbar-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
}

.topbar-notice {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-weight: 500;
  letter-spacing: 0.01em;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #10B981; /* Vert signalisation stable */
  flex-shrink: 0;
}

.topbar-contact {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  font-variant-numeric: tabular-nums;
}

.topbar-contact a {
  color: var(--text-on-inverse);
  opacity: 0.9;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.topbar-contact a:hover {
  opacity: 1;
  text-decoration: underline;
}

@media (max-width: 768px) {
  .topbar-contact {
    display: none;
  }
  .topbar-notice {
    font-size: 0.75rem;
  }
}

/* ------------------------------------------------------------------------------
   HEADER & NAVIGATION
   ------------------------------------------------------------------------------ */
.site-header {
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: box-shadow 200ms ease-out;
}

/* 5. Ombre discrète dès que la page a défilé (classe posée par main.js) */
.site-header.is-scrolled {
  box-shadow: 0 4px 12px rgba(11, 25, 44, 0.06);
}

.nav-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--space-sm) var(--space-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  text-decoration: none;
}

.brand-logo:hover {
  color: var(--text-main);
}

.brand-mark {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: block;
  object-fit: cover;
  background-color: #060706;
  border-radius: var(--radius-sm);
}

.brand-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.brand-tag {
  white-space: nowrap;
  font-size: 0.6875rem;
  font-family: var(--font-body);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  border-left: 1px solid var(--border-subtle);
  padding-left: var(--space-xs);
  margin-left: 4px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.nav-link {
  white-space: nowrap;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-body);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  transition: all 150ms ease-out;
}

.nav-link:hover {
  color: var(--text-main);
  background-color: var(--bg-primary);
}

.nav-link.active {
  color: var(--text-main);
  font-weight: 600;
  border-bottom: 2px solid var(--text-main);
  border-radius: 0;
}

.nav-cta-mobile {
  display: none;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

/* Menu Mobile Toggle */
.mobile-nav-toggle .icon-close,
.mobile-nav-toggle[aria-expanded="true"] .icon-open {
  display: none;
}

.mobile-nav-toggle[aria-expanded="true"] .icon-close {
  display: block;
}

.mobile-nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 8px;
  color: var(--text-main);
  cursor: pointer;
}

@media (max-width: 1180px) {
  .brand-tag {
    display: none;
  }
  .mobile-nav-toggle {
    display: block;
  }
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--bg-surface);
    flex-direction: column;
    align-items: flex-start;
    padding: var(--space-md);
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: 0 8px 16px rgba(11, 25, 44, 0.04);
  }
  .nav-menu.open {
    display: flex;
    animation: fade-slide-in 150ms ease-out;
  }
  .nav-link {
    width: 100%;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-subtle);
  }
  .nav-cta {
    display: none;
  }
  .nav-menu .nav-cta-mobile {
    display: block;
    width: 100%;
    margin-top: var(--space-sm);
  }
}

/* ------------------------------------------------------------------------------
   BOUTONS STRICTS (ZÉRO PILULE - RAYON STRICT 6PX)
   ------------------------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 150ms ease-out, border-color 150ms ease-out, transform 150ms ease-out;
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

/* RÈGLE WCAG 2.1 AAA STRICTE : Texte Bleu Nuit #0B192C sur Corail #F47C5D */
.btn-cta {
  background-color: var(--accent-cta);
  color: var(--cta-text);
  border-color: rgba(11, 25, 44, 0.15);
}

.btn-cta:hover {
  background-color: var(--accent-cta-hover);
  color: var(--cta-text);
}

.btn-sys {
  background-color: var(--accent-sys);
  color: var(--cta-text);
}

.btn-sys:hover {
  filter: brightness(0.92);
  color: var(--cta-text);
}

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

.btn-web:hover {
  background-color: #5046e5;
  color: #FFFFFF;
}

.btn-secondary {
  background-color: var(--bg-surface);
  color: var(--text-main);
  border-color: var(--border-subtle);
}

.btn-secondary:hover {
  background-color: var(--bg-primary);
  border-color: var(--border-focus);
}

.btn-link {
  background: none;
  border: none;
  padding: 0;
  color: var(--accent-sys-text);
  font-weight: 600;
  font-size: 0.9375rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-link:hover {
  color: var(--text-main);
  text-decoration: underline;
}

.btn-link--web {
  color: var(--accent-web-text);
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1rem;
}

/* ------------------------------------------------------------------------------
   MISE EN PAGE GLOBALE & STRUCTURES
   ------------------------------------------------------------------------------ */
.main-content {
  flex: 1;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--space-md);
  padding-right: var(--space-md);
}

.section {
  padding-top: var(--space-2xl);
  padding-bottom: var(--space-2xl);
  border-bottom: 1px solid var(--border-subtle);
}

.section-header {
  margin-bottom: var(--space-xl);
  max-width: 800px;
}

.section-header.text-center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-xs);
  border: 1px solid var(--border-subtle);
  background-color: var(--bg-surface);
  color: var(--text-body);
}

.badge-sys {
  background-color: var(--accent-sys-light);
  color: var(--accent-sys-text);
  border-color: rgba(15, 109, 127, 0.2);
}

.badge-web {
  background-color: var(--accent-web-light);
  color: var(--accent-web-text);
  border-color: rgba(99, 91, 255, 0.2);
}

.badge-neutral {
  background-color: var(--bg-primary);
  color: var(--text-muted);
}

/* ------------------------------------------------------------------------------
   HERO SECTION (HUB D'ORIENTATION CALME)
   ------------------------------------------------------------------------------ */
.hero-hub {
  padding-top: var(--space-xl);
  padding-bottom: var(--space-2xl);
  background-color: var(--bg-primary);
}

.hero-intro {
  max-width: 860px;
  margin-bottom: var(--space-xl);
}

.hero-title {
  margin-top: var(--space-xs);
  margin-bottom: var(--space-md);
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--text-body);
  line-height: 1.6;
}

/* DOUBLE VOLET D'AIGUILLAGE */
.hub-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.hub-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: border-color 150ms ease-out, transform 150ms ease-out;
}

.hub-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-focus);
}

.hub-card--sys {
  border-top: 3px solid var(--accent-sys);
}

.hub-card--web {
  border-top: 3px solid var(--accent-web);
}

.hub-card-header {
  margin-bottom: var(--space-md);
}

.hub-icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-sm);
}

.hub-card--sys .hub-icon-wrap {
  background-color: var(--accent-sys-light);
  color: var(--accent-sys-text);
}

.hub-card--web .hub-icon-wrap {
  background-color: var(--accent-web-light);
  color: var(--accent-web-text);
}

.hub-card-title {
  font-size: 1.375rem;
  margin-bottom: var(--space-xs);
}

.hub-card-desc {
  font-size: 0.9375rem;
  color: var(--text-body);
  margin-bottom: var(--space-md);
}

.hub-card-meta {
  padding: var(--space-xs) var(--space-sm);
  background-color: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  gap: 8px;
}

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

/* ------------------------------------------------------------------------------
   CARTES ET GRILLES DE SERVICES
   ------------------------------------------------------------------------------ */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}

@media (max-width: 992px) {
  .grid-3, .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }
}

.card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: var(--space-md);
  transition: border-color 150ms ease-out, transform 150ms ease-out;
}

.card:hover {
  border-color: var(--border-focus);
}

.service-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.service-card-header {
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: var(--space-md);
  margin-bottom: var(--space-md);
}

.service-price {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-main);
  margin-top: var(--space-xs);
}

.service-price-amount {
  display: block;
  white-space: nowrap;
}

.service-price-note {
  display: block;
  margin-top: 6px;
  line-height: 1.45;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--text-muted);
}

.service-deliverables {
  margin-bottom: var(--space-md);
}

.deliverable-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--text-body);
  margin-bottom: 10px;
  line-height: 1.45;
}

.deliverable-item svg {
  color: var(--color-accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.service-card--web .deliverable-item svg {
  color: var(--accent-web-text);
}

.service-timing {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: var(--space-xs) var(--space-sm);
  font-size: 0.8125rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: var(--space-md);
}

/* ------------------------------------------------------------------------------
   CAS D'USAGE D'INGÉNIERIE (REMPLACEMENT DES FAUX AVIS CLIENTS)
   ------------------------------------------------------------------------------ */
.case-study {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: var(--space-md);
}

.case-study-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-xs);
  margin-bottom: var(--space-sm);
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: var(--space-xs);
}

.case-sector {
  font-weight: 600;
  color: var(--text-main);
  font-size: 0.9375rem;
}

.case-block {
  margin-bottom: var(--space-xs);
}

.case-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  color: var(--text-muted);
  display: block;
}

.case-text {
  font-size: 0.875rem;
  color: var(--text-body);
  line-height: 1.5;
}

.case-result {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  margin-top: var(--space-xs);
}

.case-result strong {
  color: var(--accent-sys-text);
  font-size: 0.8125rem;
  display: block;
  margin-bottom: 2px;
}

.case-result--web strong {
  color: var(--accent-web-text);
}

/* ------------------------------------------------------------------------------
   SECTIONS MÉTHODE & MANIFESTE
   ------------------------------------------------------------------------------ */
.manifesto-box {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-left: 4px solid var(--text-main);
  border-radius: var(--radius);
  padding: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.manifesto-title {
  font-size: 1.375rem;
  margin-bottom: var(--space-xs);
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.feature-item {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: var(--space-md);
}

.feature-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background-color: var(--bg-primary);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-sm);
}

@media (max-width: 768px) {
  .feature-list {
    grid-template-columns: 1fr;
  }
}

/* TABLEAU COMPARATIF TECHNIQUE */
.comparison-table-wrap {
  overflow-x: auto;
  margin: var(--space-lg) 0;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  background-color: var(--bg-surface);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  text-align: left;
}

.comparison-table th, .comparison-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-subtle);
}

.comparison-table th {
  background-color: var(--bg-primary);
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--text-main);
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.comparison-table td:nth-child(2) {
  color: var(--text-muted);
}

.comparison-table td:nth-child(3) {
  font-weight: 600;
  color: var(--accent-sys-text);
  background-color: rgba(15, 109, 127, 0.03);
}

/* ------------------------------------------------------------------------------
   TUNNEL DE DIAGNOSTIC & CONTACT INTERACTIF (3 ÉTAPES)
   ------------------------------------------------------------------------------ */
.diagnostic-wrapper {
  max-width: 800px;
  margin: 0 auto;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: var(--space-lg);
}

/* Barre de progression des étapes */
.step-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-xl);
  position: relative;
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--border-subtle);
}

.step-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
}

.step-indicator.active {
  color: var(--text-main);
}

.step-indicator.completed {
  color: var(--accent-sys-text);
}

.step-number {
  width: 24px;
  height: 24px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background-color: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-family: var(--font-heading);
  color: var(--text-muted);
}

.step-indicator.active .step-number {
  background-color: var(--text-main);
  color: var(--bg-surface);
  border-color: var(--text-main);
}

.step-indicator.completed .step-number {
  background-color: var(--accent-sys);
  color: var(--cta-text);
  border-color: var(--accent-sys);
}

/* Panneaux d'étapes */
.step-panel {
  display: none;
}

.step-panel.active {
  display: block;
  animation: fade-slide-in 180ms ease-out;
}

.step-title:focus {
  outline: none;
}

.step-title {
  font-size: 1.25rem;
  margin-bottom: var(--space-xs);
}

.step-description {
  font-size: 0.9375rem;
  color: var(--text-body);
  margin-bottom: var(--space-md);
}

/* Grille de sélection pour étape 1 et 2 */
.choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

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

.choice-card {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: var(--space-md);
  cursor: pointer;
  background-color: var(--bg-surface);
  transition: border-color 150ms ease-out, background-color 150ms ease-out;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
}

.choice-card:hover {
  border-color: var(--border-focus);
  background-color: var(--bg-primary);
}

.choice-card.selected,
.choice-card:has(input:checked) {
  border-color: var(--text-main);
  background-color: var(--bg-primary);
}

.choice-card::after {
  content: "";
  position: absolute;
  top: -9px;
  right: -9px;
  width: 20px;
  height: 20px;
  border-radius: var(--radius-sm);
  background: var(--text-main) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23FFFFFF' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='16 5.5 8 13.5 4 9.5'/%3E%3C/svg%3E") center / 13px no-repeat;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 150ms ease-out, transform 150ms ease-out;
}

.choice-card.selected::after,
.choice-card:has(input:checked)::after {
  opacity: 1;
  transform: scale(1);
}

.choice-card:has(input:focus-visible) {
  outline: 2px solid var(--accent-web);
  outline-offset: 2px;
}

.choice-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.choice-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.choice-icon {
  color: var(--text-main);
}

.choice-name {
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-main);
}

.choice-desc {
  font-size: 0.8125rem;
  color: var(--text-body);
  line-height: 1.4;
}

.choice-badge {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Formulaires étape 3 */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

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

.form-group {
  margin-bottom: var(--space-sm);
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 6px;
}

.form-label .required {
  color: var(--err-text);
}

.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  background-color: var(--bg-surface);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--text-main);
  transition: border-color 150ms ease-out;
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--text-main);
  outline: none;
}

.form-textarea {
  min-height: 110px;
  resize: vertical;
}

.form-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Honeypot anti-spam (invisible aux humains) */
.hp-field {
  display: none !important;
  visibility: hidden !important;
  position: absolute !important;
  left: -9999px !important;
}

/* Actions de navigation du formulaire */
.step-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--border-subtle);
}

/* Boîte de confirmation apaisante */
.confirmation-box {
  text-align: center;
  padding: var(--space-xl) var(--space-md);
}

.confirmation-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
  background-color: var(--succ-bg);
  color: var(--succ-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
}

.confirmation-title {
  font-size: 1.5rem;
  margin-bottom: var(--space-xs);
}

.confirmation-text {
  font-size: 1rem;
  color: var(--text-body);
  max-width: 600px;
  margin: 0 auto var(--space-lg);
  line-height: 1.6;
}

.confirmation-card {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: var(--space-md);
  max-width: 500px;
  margin: 0 auto;
  text-align: left;
  font-size: 0.875rem;
}

.confirmation-card-title {
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 6px;
}

/* Alertes & Notifications */
.alert {
  animation: fade-in 150ms ease-out;
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 0.875rem;
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  gap: 8px;
}

.alert-error {
  background-color: var(--err-bg);
  border: 1px solid var(--err-border);
  color: var(--err-text);
}

.alert-success {
  background-color: var(--succ-bg);
  border: 1px solid var(--succ-border);
  color: var(--succ-text);
}

/* ------------------------------------------------------------------------------
   PIED DE PAGE INSTITUTIONNEL (FOOTER BLEU NUIT)
   ------------------------------------------------------------------------------ */
.site-footer {
  background-color: var(--bg-inverse);
  color: var(--text-on-inverse);
  padding-top: var(--space-2xl);
  padding-bottom: var(--space-xl);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-2xl);
}

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

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

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  color: #FFFFFF;
  text-decoration: none;
}

.footer-desc {
  font-size: 0.875rem;
  color: #94A3B8;
  line-height: 1.6;
  margin-top: var(--space-xs);
}

.footer-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  color: #CBD5E1;
  width: fit-content;
  margin-top: var(--space-xs);
}

.footer-heading {
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 600;
  color: #FFFFFF;
  letter-spacing: 0.02em;
  margin-bottom: var(--space-md);
  text-transform: uppercase;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: #94A3B8;
  font-size: 0.875rem;
  transition: color 150ms ease-out;
}

.footer-links a:hover {
  color: #FFFFFF;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.875rem;
  color: #94A3B8;
  margin-bottom: 12px;
  line-height: 1.5;
}

.footer-contact-item svg {
  color: var(--accent-cta);
  flex-shrink: 0;
  margin-top: 3px;
}

.footer-contact-item a {
  color: #CBD5E1;
}

.footer-contact-item a:hover {
  color: #FFFFFF;
}

.footer-bottom {
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  font-size: 0.8125rem;
  color: #94A3B8;
}

.footer-legal-links {
  display: flex;
  gap: var(--space-md);
}

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

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

@media (max-width: 600px) {
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ------------------------------------------------------------------------------
   OPTION SÉRÉNITÉ MATÉRIELLE (BANNIÈRE UPSELL CLIENTS WEB)
   ------------------------------------------------------------------------------ */
.upsell-banner {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-left: 4px solid var(--accent-sys);
  border-radius: var(--radius);
  padding: var(--space-lg);
  margin-top: var(--space-xl);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-lg);
}

.upsell-banner-content {
  flex: 1;
}

.upsell-banner-title {
  font-size: 1.25rem;
  margin-bottom: var(--space-xs);
  display: flex;
  align-items: center;
  gap: 10px;
}

.upsell-banner-price {
  font-family: var(--font-heading);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--accent-sys-text);
  margin-bottom: var(--space-xs);
}

@media (max-width: 768px) {
  .upsell-banner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ------------------------------------------------------------------------------
   COMPOSANTS AJOUTÉS (MENTIONS, CONFIDENTIALITÉ, PIED DE PAGE)
   ------------------------------------------------------------------------------ */
[hidden] {
  display: none !important;
}

.service-price-prefix {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
}

.service-price-unit {
  font-size: 1rem;
  font-weight: 500;
}

.tva-note {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: var(--space-sm);
}

.notice {
  font-size: 0.875rem;
  color: var(--text-body);
  background-color: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--accent-web);
  border-radius: var(--radius);
  padding: 12px 16px;
  margin-top: var(--space-md);
}

.notice--sys {
  border-left-color: var(--accent-sys);
}

.form-privacy {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  gap: 8px;
}


.footer-logo-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
}

.footer-hours {
  color: #CBD5E1;
}

.footer-hours--muted {
  color: #94A3B8;
  font-size: 0.8125rem;
}

.footer-contact-note {
  font-size: 0.75rem;
  color: #94A3B8;
}

.milestone-label {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-web-text);
  margin-bottom: 8px;
}

.pill-row {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  margin-top: var(--space-md);
}

.pill {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--text-body);
  background-color: var(--bg-primary);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

.btn-row {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  flex-wrap: wrap;
}

.stack-md {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.stack-8 {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.media-row {
  display: flex;
  gap: var(--space-sm);
  align-items: flex-start;
}

.callout--sys {
  border-left: 3px solid var(--accent-sys);
  background-color: var(--bg-primary);
}

.feature-icon--web {
  background-color: var(--accent-web-light);
  color: var(--accent-web-text);
}

.feature-icon--sys {
  background-color: var(--accent-sys-light);
  color: var(--accent-sys-text);
}

/* Pages de contenu juridique */
.legal-content {
  max-width: 800px;
}

.legal-content h2 {
  font-size: 1.375rem;
  margin-top: var(--space-xl);
  margin-bottom: var(--space-sm);
}

.legal-content h3 {
  font-size: 1.0625rem;
  margin-top: var(--space-md);
  margin-bottom: var(--space-xs);
}

.legal-content ul {
  list-style: disc;
  padding-left: var(--space-md);
  margin-bottom: var(--space-sm);
}

.legal-content li {
  margin-bottom: var(--space-2xs);
}

.legal-content a {
  text-decoration: underline;
}

.todo-marker {
  background-color: var(--warn-bg);
  border: 1px dashed #B45309;
  color: var(--warn-text);
  padding: 0 4px;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

/* Indicateur d'envoi du formulaire */
.spin {
  animation: spin 900ms linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fade-slide-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

/* 6. Réglage système « réduire les animations » : tout mouvement est supprimé */
@media (prefers-reduced-motion: reduce) {
  .spin { animation: none; }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Correctifs mobiles : aucun élément ne doit élargir la page */
.hub-grid > *,
.grid-2 > *,
.grid-3 > * {
  min-width: 0;
}

.comparison-table-wrap {
  max-width: 100%;
}

@media (max-width: 600px) {
  .btn {
    white-space: normal;
    text-align: center;
  }
}

/* Hero : actions et réassurance */
.hero-actions {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  margin-top: var(--space-md);
}

.hero-reassurance {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs) var(--space-md);
  margin-top: var(--space-md);
  font-size: 0.875rem;
  color: var(--text-body);
}

.hero-reassurance li {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-reassurance svg {
  color: var(--color-accent);
  flex-shrink: 0;
}

/* Hero : l'offre web domine, l'option atelier reste secondaire */
.hub-grid--primary {
  grid-template-columns: 2fr 1fr;
}

.hub-card--compact {
  background-color: var(--bg-primary);
  padding: var(--space-md);
}

.hub-card--compact .hub-card-title {
  font-size: 1.125rem;
}

.hub-card--compact .hub-card-desc {
  font-size: 0.875rem;
}

@media (max-width: 768px) {
  .hub-grid--primary {
    grid-template-columns: 1fr;
  }
}

/* Encart suivi et mensualités sous les tarifs */
.offer-strip {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: var(--space-md);
  align-items: center;
  margin-top: var(--space-lg);
  padding: var(--space-md);
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-left: 4px solid var(--accent-web);
  border-radius: var(--radius);
  font-size: 0.9375rem;
}

.offer-strip p {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .offer-strip {
    grid-template-columns: 1fr;
  }
}

/* Formule mise en avant */
.service-card--featured {
  border: 2px solid var(--accent-cta);
  box-shadow: 0 8px 24px rgba(11, 25, 44, 0.06);
}

.service-card--featured:hover {
  border-color: var(--accent-cta-hover);
}

.badge-featured {
  background-color: var(--feat-bg);
  border-color: var(--feat-border);
  color: var(--feat-text);
}

/* Bande sombre de fin de page */
.section--dark {
  background-color: var(--bg-inverse);
  color: #CBD5E1;
  border-bottom: none;
}

.section--dark h2 {
  color: #FFFFFF;
}

.section--dark .section-desc {
  color: #CBD5E1;
}

.section--dark .btn-secondary {
  background-color: transparent;
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.35);
}

.section--dark .btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.6);
}

/* ------------------------------------------------------------------------------
   CLASSES UTILITAIRES (remplacent les anciens attributs style="" ; en fin de fichier pour primer)
   ------------------------------------------------------------------------------ */
.bg-surface { background-color: var(--bg-surface); }
.bg-primary { background-color: var(--bg-primary); }
.section--page-top { padding-top: var(--space-xl); }
.pb-lg { padding-bottom: var(--space-lg); }

.btn--block { width: 100%; }
.w-25 { width: 25%; }
.w-35 { width: 35%; }
.w-40 { width: 40%; }
.maxw-720 { max-width: 720px; }
.maxw-760 { max-width: 760px; }
.maxw-800 { max-width: 800px; }
.maxw-860 { max-width: 860px; }
.maxw-900 { max-width: 900px; }
.mx-auto { margin-left: auto; margin-right: auto; }

.text-center { text-align: center; }
.text-right { text-align: right; }
.justify-end { justify-content: flex-end; }
.shrink-0 { flex-shrink: 0; }
.flip-x { transform: rotate(180deg); }

.text-xsm { font-size: 0.8125rem; }
.text-sm { font-size: 0.875rem; }
.text-md { font-size: 0.9375rem; }
.text-17 { font-size: 1.0625rem; }
.text-18 { font-size: 1.125rem; }
.text-24 { font-size: 1.5rem; }
.text-body { color: var(--text-body); }
.text-muted { color: var(--text-muted); }
.text-main { color: var(--text-main); }
.text-web { color: var(--accent-web-text); }
.text-sys { color: var(--color-accent); }

.mt-2 { margin-top: 2px; }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-md { margin-top: var(--space-md); }
.mt-xl { margin-top: var(--space-xl); }
.mb-0 { margin-bottom: 0; }
.mb-4 { margin-bottom: 4px; }
.mb-6 { margin-bottom: 6px; }
.mb-8 { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-20 { margin-bottom: 20px; }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }

@media (max-width: 768px) {
  .text-right { text-align: left; }
}


/* ==============================================================================
   MODERNISATION : fonds techniques, cartes réactives, badge statut, shimmer
   (CSS pur, aucune dépendance, aucune image)
   ============================================================================== */

/* Fond Hero + Tarifs : grille technique subtile + lueurs diffuses (< 15 %) */
.hero-hub,
.section--pricing {
  position: relative;
  isolation: isolate;
  background-color: var(--bg-primary);
  background-image:
    radial-gradient(60% 55% at 12% 0%, rgba(99, 91, 255, 0.12) 0%, rgba(99, 91, 255, 0) 70%),
    radial-gradient(55% 50% at 92% 18%, rgba(15, 109, 127, 0.11) 0%, rgba(15, 109, 127, 0) 70%),
    radial-gradient(45% 45% at 60% 100%, rgba(99, 91, 255, 0.07) 0%, rgba(99, 91, 255, 0) 70%),
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: auto, auto, auto, 32px 32px, 32px 32px;
}

/* Fondu de la grille vers le bas pour éviter une coupure nette */
.hero-hub::after,
.section--pricing::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 80px;
  background: linear-gradient(to bottom, transparent, var(--bg-primary));
  pointer-events: none;
  z-index: -1;
}

/* Cartes de tarifs et de services : micro-élévation, bordure réactive, ombre teintée */
.card,
.service-card {
  position: relative;
  transition: transform 200ms ease-out, border-color 200ms ease-out, box-shadow 200ms ease-out;
}

.card:hover,
.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(99, 91, 255, 0.45);
  box-shadow:
    0 10px 28px rgba(99, 91, 255, 0.10),
    0 2px 8px rgba(15, 109, 127, 0.08),
    inset 0 1px 0 var(--card-highlight);
}

/* Reflet subtil sur le bord supérieur au survol */
.card::before,
.service-card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 12%;
  right: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(99, 91, 255, 0.6), rgba(15, 109, 127, 0.5), transparent);
  opacity: 0;
  transition: opacity 200ms ease-out;
  pointer-events: none;
}

.card:hover::before,
.service-card:hover::before {
  opacity: 1;
}

.service-card--featured:hover {
  border-color: var(--accent-cta-hover);
  box-shadow: 0 12px 32px rgba(244, 124, 93, 0.18), 0 2px 8px rgba(11, 25, 44, 0.06);
}

/* Badge statut : point vert pulsé */
.status-badge {
  margin: 0 0 var(--space-xs);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-main);
  background-color: var(--glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
}

.status-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--ok-dot);
  flex-shrink: 0;
}

.status-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background-color: var(--ok-dot);
  animation: status-pulse 2s ease-out infinite;
}

@keyframes status-pulse {
  0% { transform: scale(1); opacity: 0.6; }
  80%, 100% { transform: scale(3); opacity: 0; }
}

/* Shimmer au survol des boutons d'appel à l'action */
.btn-cta,
.btn-primary {
  position: relative;
  overflow: hidden;
}

.btn-cta::after,
.btn-primary::after {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(105deg, transparent 0%, rgba(255, 255, 255, 0.45) 50%, transparent 100%);
  transform: skewX(-20deg);
  pointer-events: none;
}

.btn-cta:hover::after,
.btn-primary:hover::after {
  left: 130%;
  transition: left 600ms ease-out;
}

@media (prefers-reduced-motion: reduce) {
  .card:hover,
  .service-card:hover { transform: none; }
  .status-dot::after { animation: none; opacity: 0; }
  .btn-cta:hover::after,
  .btn-primary:hover::after { transition: none; }
}


/* ==============================================================================
   REFONTE ACCUEIL : hero split, bandeau 3 zéros, toggle tarifs, timeline
   ============================================================================== */

/* Hero 2 colonnes */
.hero-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  align-items: center;
  margin-bottom: var(--space-xl);
}

.hero-split .hero-intro {
  max-width: none;
  margin-bottom: 0;
}

@media (min-width: 960px) {
  .hero-split { grid-template-columns: 1.15fr 0.85fr; gap: var(--space-2xl); }
}

.text-gradient {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--accent-web-text);
}

.btn-ghost {
  background: transparent;
  color: var(--text-main);
  border-color: transparent;
}

.btn-ghost:hover {
  background: rgba(99, 91, 255, 0.08);
  color: var(--accent-web-text);
}

.btn-ghost svg { transition: transform 150ms ease-out; }
.btn-ghost:hover svg { transform: translateX(3px); }

/* Carte Performance & Sérénité (fenêtre navigateur épurée) */
.perf-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  box-shadow: 0 18px 40px rgba(99, 91, 255, 0.12), 0 2px 8px rgba(11, 25, 44, 0.06);
  overflow: hidden;
}

.perf-card-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-subtle);
}

.perf-card-bar span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--border-focus);
}

.perf-card-bar em {
  margin-left: 10px;
  padding: 2px 10px;
  font: normal 0.75rem var(--font-mono);
  color: var(--text-muted);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
}

.perf-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  border-bottom: 1px solid var(--border-subtle);
}

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

.perf-row strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  color: var(--text-main);
}

.perf-row span {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.perf-row--score { justify-content: flex-start; }

.perf-gauge {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  font: 700 1.25rem var(--font-heading);
  color: var(--ok-text) !important;
  background: var(--ok-bg);
  border: 3px solid var(--ok-dot);
}

.perf-value {
  font: 700 1.375rem var(--font-heading);
  color: var(--accent-sys-text) !important;
  white-space: nowrap;
}

.perf-ok {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--ok-bg);
  color: var(--ok-text) !important;
  font-weight: 700;
}

/* Bandeau « Les 3 zéros » */
.zeros {
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-surface);
}

.zeros-grid {
  display: grid;
  grid-template-columns: 1fr;
  list-style: none;
  margin: 0 auto;
  padding-top: var(--space-md);
  padding-bottom: var(--space-md);
  gap: var(--space-md);
}

@media (min-width: 720px) {
  .zeros-grid { grid-template-columns: repeat(3, 1fr); }
  .zeros-grid li + li { border-left: 1px solid var(--border-subtle); padding-left: var(--space-md); }
}

.zeros-grid strong {
  display: block;
  font: 700 1.5rem var(--font-heading);
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--accent-web-text);
}

.zeros-grid span {
  font-size: 0.875rem;
  color: var(--text-body);
  line-height: 1.5;
}

/* Toggle tarifs */
.pay-toggle {
  display: flex;
  width: fit-content;
  margin: 0 auto var(--space-lg);
  padding: 4px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
}

.pay-toggle button {
  padding: 8px 18px;
  font: 600 0.875rem var(--font-body);
  color: var(--text-body);
  background: transparent;
  border: 0;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background-color 150ms ease-out, color 150ms ease-out;
}

.pay-toggle button.is-active {
  background: var(--accent-web);
  color: #FFFFFF;
}

.service-price-amount { transition: opacity 180ms ease-out; }
.service-price-amount.is-fading { opacity: 0; }

/* Carte star */
.service-card--featured {
  border-color: var(--accent-web);
  box-shadow: 0 12px 32px rgba(99, 91, 255, 0.16);
}

@media (min-width: 960px) {
  .service-card--featured { transform: translateY(-8px); }
  .service-card--featured:hover { transform: translateY(-12px); }
}

.service-card--featured:hover { border-color: var(--accent-web); box-shadow: 0 16px 40px rgba(99, 91, 255, 0.22); }

.featured-flag {
  position: absolute;
  top: -12px;
  right: var(--space-md);
  padding: 4px 12px;
  font: 700 0.75rem var(--font-heading);
  color: #FFFFFF;
  background: linear-gradient(90deg, #4F46E5, #635BFF);
  border-radius: var(--radius-sm);
}

/* Encart option transversal */
.upsell-banner--wide {
  margin-top: var(--space-xl);
  border-left: 4px solid var(--accent-sys);
}

/* Timeline 4 étapes */
.timeline {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  list-style: none;
  margin: 0;
  padding: 0;
}

.timeline li { position: relative; padding-left: 56px; }

.timeline li::before {
  content: "";
  position: absolute;
  left: 17px;
  top: 36px;
  bottom: -32px;
  width: 2px;
  background: linear-gradient(var(--accent-web), var(--accent-sys));
  opacity: 0.35;
}

.timeline li:last-child::before { display: none; }

.timeline-num {
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  font: 700 1rem var(--font-heading);
  color: #FFFFFF;
  background: linear-gradient(135deg, #4F46E5, #635BFF);
  border-radius: 50%;
}

.timeline h3 { margin: 0 0 4px; font-size: 1.0625rem; }
.timeline p { margin: 0; font-size: 0.9375rem; color: var(--text-body); }

@media (min-width: 860px) {
  .timeline { grid-template-columns: repeat(4, 1fr); gap: var(--space-md); }
  .timeline li { padding: 56px 0 0; }
  .timeline li::before { left: 36px; right: -24px; top: 17px; bottom: auto; width: auto; height: 2px; }
}

@media (prefers-reduced-motion: reduce) {
  .service-price-amount { transition: none; }
  .service-card--featured, .service-card--featured:hover { transform: none; }
}


/* ==============================================================================
   RÉASSURANCE, SIMULATEUR, FICHE ÉCO-CONCEPTION
   ============================================================================== */
.rhythm-note {
  max-width: 820px;
  margin: 0 auto var(--space-xl);
  padding: var(--space-md);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-body);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-left: 4px solid var(--accent-sys);
  border-radius: var(--radius);
}

.rhythm-note strong { color: var(--text-main); }

.commit-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 860px) { .commit-grid { grid-template-columns: repeat(3, 1fr); } }

.commit-grid h3 { margin: 0 0 var(--space-xs); font-size: 1.0625rem; color: var(--accent-web-text); }
.commit-grid p { margin: 0; font-size: 0.9375rem; color: var(--text-body); }

.sim {
  max-width: 760px;
  margin: 0 auto;
  padding: var(--space-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(99, 91, 255, 0.08);
}

.sim-title { margin: 0 0 var(--space-md); font-size: 1.25rem; }
.sim fieldset { margin: 0 0 var(--space-md); padding: 0; border: 0; }
.sim legend { margin-bottom: var(--space-xs); padding: 0; font: 600 0.9375rem var(--font-heading); color: var(--text-main); }

.sim label {
  display: block;
  margin-bottom: 6px;
  padding: 10px 12px;
  font-size: 0.9375rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color 150ms ease-out, background-color 150ms ease-out;
}

.sim label:hover { border-color: var(--accent-web); }
.sim label:has(input:checked) { border-color: var(--accent-web); background: var(--accent-web-light); }

.sim-total {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
  margin-bottom: var(--space-md);
  padding: var(--space-sm);
  background: var(--bg-primary);
  border-radius: var(--radius-sm);
}

.sim-total strong { font: 700 1.5rem var(--font-heading); color: var(--accent-sys-text); }
.sim-total span { font-size: 0.9375rem; color: var(--text-body); }

.eco-sheet {
  padding: var(--space-lg) 0;
  background: var(--bg-primary);
  border-top: 1px solid var(--border-subtle);
}

.eco-title {
  margin: 0 0 var(--space-sm);
  font: 600 0.8125rem var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.eco-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-sm);
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 720px) { .eco-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .eco-list { grid-template-columns: repeat(4, 1fr); } }

.eco-list li { font-size: 0.875rem; color: var(--text-body); line-height: 1.5; }
.eco-list strong { display: block; font: 700 1rem var(--font-heading); color: var(--text-main); }

.sim fieldset { transition: opacity 200ms ease-out; }
.sim fieldset.is-off { opacity: 0.45; }


/* ==============================================================================
   BASCULE THÈME CLAIR / SOMBRE
   ============================================================================== */
.theme-toggle {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-left: var(--space-xs);
  color: var(--text-main);
  background: none;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background-color 150ms ease-out, border-color 150ms ease-out, color 150ms ease-out;
}

.theme-toggle:hover { border-color: var(--color-primary); color: var(--accent-web-text); }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

body { transition: background-color 200ms ease-out, color 200ms ease-out; }

/* Ajustements mode sombre */
:root[data-theme="dark"] .brand-mark { background-color: #000; }
:root[data-theme="dark"] .btn-primary,
:root[data-theme="dark"] .pay-toggle button.is-active { background-color: var(--color-primary); color: #FFFFFF; }
:root[data-theme="dark"] .card:hover,
:root[data-theme="dark"] .service-card:hover { border-color: rgba(165, 160, 255, 0.55); box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(99, 91, 255, 0.25); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
}

@media (min-width: 1181px) { .theme-toggle { order: 3; } }
@media (max-width: 1180px) { .theme-toggle { margin-left: auto; } }

.form-input::placeholder, .form-textarea::placeholder { color: var(--text-muted); opacity: 1; }

/* Logo : variante claire / sombre (une seule image chargée selon le thème) */
.brand-wordmark {
  display: block;
  flex-shrink: 0;
  width: 133px;
  height: 44px;
  background: url("../img/logo-horizontal-light.png") no-repeat left center / contain;
}

:root[data-theme="dark"] .brand-wordmark,
.brand-wordmark--dark {
  background-image: url("../img/logo-horizontal-dark.png");
}

@media (max-width: 420px) {
  .brand-wordmark { width: 112px; height: 37px; }
}
