/* ============================================================
   LSPA WEBSITE — Design Tokens v3.0 PREMIUM (UI Designer)
   Refonte "Moderne premium" type Caterpillar — 30/09/2026
   Client : fini la copie maquette. Épuré, corporate, blanc+gris+or.
   Fichier : assets/css/tokens.css v3 — import AVANT style.css
   Logo : Logo.jpeg gardé en navbar blanche (pastille blanche inutile),
          violet #6A0D6E SUPPRIMÉ partout sauf favicon.svg
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@500;600;700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* ---------- 1. FONDS PREMIUM — 3 SEULES VALEURS ---------- */
  --lspa-white: #FFFFFF;        /* ★ fond principal / hero / cards */
  --lspa-grey: #F5F6F7;         /* ★ fond alterné / bandeau chiffres / imgbox */
  --lspa-navy-900: #0A1F36;     /* ★ UNIQUEMENT footer + bouton navy fin */
  --lspa-navy-800: #12294A;     /* hover bouton navy / bottom-bar footer */

  /* ---------- 2. ACCENT OR MINIMAL ---------- */
  /* #C99A2B UNIQUEMENT : boutons CTA + filets 2-3px + pastille flèche.
     INTERDIT en fond de section, en texte courant, en dégradé. */
  --lspa-gold: #C99A2B;         /* ★ CTA + filet */
  --lspa-gold-hover: #B3871F;   /* hover CTA (plus sombre, AA) */
  --lspa-gold-soft: #FAF3E0;    /* pastille icône sur blanc (icône or dessus) */
  --lspa-gold-line: #E7CE8B;    /* filet fin secondaire */

  /* ---------- 3. TEXTE CORPORATE ---------- */
  --lspa-ink: #111827;          /* ★ titres Poppins 700 */
  --lspa-body: #374151;         /* paragraphes (option, défaut = muted) */
  --lspa-muted: #6B7280;        /* ★ texte secondaire / descriptions */
  --lspa-placeholder: #9CA3AF;
  --lspa-on-dark: #FFFFFF;
  --lspa-on-dark-muted: #C3CDD9; /* texte footer sur navy */

  /* ---------- 4. BORDURES & RAYONS PREMIUM ---------- */
  --lspa-line: #E5E7EB;         /* ★ TOUTES les bordures 1px */
  --radius-sm: 8px;             /* inputs, badges */
  --radius-md: 12px;            /* ★ TOUTES les cards / boutons */
  --radius-pill: 999px;         /* pastilles flèche ronde */
  --radius-round: 50%;

  /* ---------- 5. OMBRES — QUASI SUPPRIMÉES ---------- */
  /* Cards SANS ombres lourdes. Hover = bordure or + translateY(-2px). */
  --shadow-none: none;
  --shadow-xs: 0 1px 2px rgb(17 24 39 / 0.05);
  --shadow-sm: 0 1px 3px rgb(17 24 39 / 0.06);

  /* ---------- 6. SÉMANTIQUES (inchangées) ---------- */
  --lspa-success-600: #067647;
  --lspa-success-100: #D1FADF;
  --lspa-error-600: #B42318;
  --lspa-error-100: #FEE4E2;
  --lspa-warning-600: #B54708;
  --lspa-warning-100: #FEF0C7;
  --lspa-info-600: #175CD3;
  --lspa-info-100: #D1E9FF;

  /* ---------- 7. TYPO PREMIUM ---------- */
  --font-display: 'Poppins', system-ui, sans-serif;   /* ★ titres 700 ONLY */
  --font-body: 'Inter', system-ui, -apple-system, sans-serif; /* ★ tout le reste */

  --fs-xs: 0.75rem;    /* 12px kicker/badges */
  --fs-sm: 0.875rem;   /* 14px body cards */
  --fs-base: 1rem;     /* 16px body */
  --fs-lg: 1.125rem;   /* 18px lead */
  --fs-xl: 1.25rem;    /* 20px */
  --fs-2xl: 1.5rem;    /* 24px H3 */
  --fs-3xl: 1.875rem;  /* 30px H2 */
  --fs-4xl: 2.75rem;   /* 44px H1 desktop */
  --fs-5xl: 3.5rem;    /* 56px H1 large */

  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;       /* ★ max autorisé (titres Poppins 700) */

  --lh-tight: 1.15;
  --lh-normal: 1.6;     /* aéré premium */
  --lh-relaxed: 1.75;

  /* ---------- 8. SPACING — BEAUCOUP DE BLANC ---------- */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-6: 1.5rem;
  --sp-8: 2rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
  --sp-20: 5rem;        /* py sections desktop */
  --sp-24: 6rem;        /* hero desktop */

  /* ---------- 9. LAYOUT ---------- */
  --container-max: 1200px;  /* resserré premium (vs 1280 maquette) */
  --navbar-h: 72px;

  /* ---------- 10. VIOLET — DÉPRÉCIÉ v3 ---------- */
  /* #6A0D6E INTERDIT partout sauf favicon.svg. Gardé en var pour
     détecter les restes : ne PAS utiliser. */
  --lspa-violet-banned: #6A0D6E;

  /* Aliases compat v2 (ne plus utiliser, seront supprimés) */
  --lspa-bg-grey: var(--lspa-grey);
  --lspa-silver-100: var(--lspa-line);
  --lspa-silver-050: var(--lspa-grey);
  --lspa-silver-300: #D1D5DB;
  --lspa-gold-500: var(--lspa-gold);
  --lspa-gold-600: var(--lspa-gold-hover);
  --lspa-ink-v2: var(--lspa-ink);
}

/* ============ BASE PREMIUM ============ */
html { scroll-behavior: smooth; }
body {
  background: var(--lspa-white);
  color: var(--lspa-muted);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, .font-display {
  font-family: var(--font-display);
  color: var(--lspa-ink);
  font-weight: var(--fw-bold); /* ★ Poppins 700 MAX, jamais 800/900 */
  line-height: var(--lh-tight);
  letter-spacing: -0.015em;
}
h1 .accent-gold, h2 .accent-gold { color: var(--lspa-gold); }
a { color: inherit; }

/* Kicker premium : petit, or, fileté */
.kicker-premium {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-display);
  font-size: var(--fs-xs); font-weight: var(--fw-bold);
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--lspa-gold);
}
.kicker-premium::before {
  content: ""; width: 28px; height: 2px;
  background: var(--lspa-gold); border-radius: 2px;
}

/* Filet or minimal sous titre */
.hr-gold-min {
  height: 3px; width: 48px; border: 0; border-radius: 3px;
  background: var(--lspa-gold); margin: 0.9rem 0 0;
}

/* ============ NAVBAR PREMIUM — BLANCHE ============ */
.navbar-premium {
  background: var(--lspa-white);
  border-bottom: 1px solid var(--lspa-line);
  height: var(--navbar-h);
  position: sticky; top: 0; z-index: 50;
}
.navbar-premium a.nav-link {
  color: var(--lspa-body); font-weight: var(--fw-medium);
  font-size: var(--fs-sm); text-decoration: none; padding: 8px 2px;
}
.navbar-premium a.nav-link:hover { color: var(--lspa-ink); }
.navbar-premium a.nav-link[aria-current="page"] {
  color: var(--lspa-ink); font-weight: var(--fw-semibold);
  border-bottom: 2px solid var(--lspa-gold);
}

/* ============ BOUTONS PREMIUM ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--font-body); font-weight: var(--fw-semibold);
  font-size: var(--fs-sm); line-height: 1;
  padding: 0.9rem 1.75rem; border-radius: var(--radius-md); /* ★ 12px, PAS pill */
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
  transition: background 150ms ease, border-color 150ms ease, transform 150ms ease;
  min-height: 44px;
}
.btn:focus-visible { outline: 2px solid var(--lspa-gold); outline-offset: 2px; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }

/* Or minimal = CTA principal */
.btn-gold {
  background: var(--lspa-gold); color: #fff;
}
.btn-gold:hover { background: var(--lspa-gold-hover); }
/* Navy fine = CTA secondaire */
.btn-navy {
  background: var(--lspa-white); color: var(--lspa-navy-900);
  border-color: var(--lspa-navy-900);
}
.btn-navy:hover { background: var(--lspa-navy-900); color: #fff; }
.btn-outline {
  background: var(--lspa-white); color: var(--lspa-ink);
  border-color: var(--lspa-line);
}
.btn-outline:hover { border-color: var(--lspa-ink); }

/* Pastille flèche or (cards produits) */
.arrow-gold {
  width: 32px; height: 32px; border-radius: var(--radius-pill);
  display: grid; place-items: center;
  background: var(--lspa-gold); color: #fff;
  font-weight: var(--fw-bold); text-decoration: none; flex: none;
}
.arrow-gold:hover { background: var(--lspa-gold-hover); }

/* ============ HERO PREMIUM — PLEIN BLANC, SANS DIAGONALE ============ */
.hero-premium {
  background: var(--lspa-white);
  padding-block: var(--sp-24) var(--sp-20);
}
.hero-premium-title {
  font-size: var(--fs-4xl); color: var(--lspa-ink);
}
@media (min-width: 1024px) { .hero-premium-title { font-size: var(--fs-5xl); } }
.hero-premium-lead {
  font-size: var(--fs-lg); color: var(--lspa-muted);
  max-width: 52ch; line-height: var(--lh-relaxed);
}
.hero-premium-media {
  background: var(--lspa-grey); border-radius: var(--radius-md);
  border: 1px solid var(--lspa-line);
  overflow: hidden; /* image engin détourée posée dessus, PAS de clip-path */
}
.hero-premium-media img { width: 100%; height: 100%; object-fit: cover; }

/* ============ BANDEAU CHIFFRES MINIMAL ============ */
.stats-minimal {
  background: var(--lspa-grey);
  border-block: 1px solid var(--lspa-line);
}
.stats-minimal-num {
  font-family: var(--font-display); font-weight: var(--fw-bold);
  font-size: var(--fs-3xl); color: var(--lspa-ink);
}
.stats-minimal-label { font-size: var(--fs-sm); color: var(--lspa-muted); }
.stats-minimal-gold { width: 24px; height: 2px; background: var(--lspa-gold); border-radius: 2px; }

/* ============ CARDS ÉPURÉES — 1px #E5E7EB, radius 12, SANS OMBRE ============ */
.card-premium {
  background: var(--lspa-white);
  border: 1px solid var(--lspa-line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-none);
  overflow: hidden;
  transition: border-color 200ms ease, transform 200ms ease;
}
.card-premium:hover { border-color: var(--lspa-gold-line); transform: translateY(-2px); }
.card-premium-img {
  background: var(--lspa-grey);
  border-bottom: 1px solid var(--lspa-line);
  object-fit: cover;
}
.card-premium h3 { color: var(--lspa-ink); font-size: var(--fs-base); font-weight: var(--fw-semibold); }
.card-premium p { color: var(--lspa-muted); font-size: var(--fs-sm); }

/* ============ SECTIONS ============ */
.section-white { background: var(--lspa-white); }
.section-grey { background: var(--lspa-grey); }
.section-pad { padding-block: var(--sp-20); }
@media (min-width: 1024px) { .section-pad { padding-block: var(--sp-24); } }

/* ============ CTA SIMPLE ============ */
.cta-simple {
  background: var(--lspa-white);
  border: 1px solid var(--lspa-line);
  border-radius: var(--radius-md);
  border-top: 3px solid var(--lspa-gold); /* seul accent */
}

/* ============ FOOTER PREMIUM — SEUL NAVY AUTORISÉ ============ */
.footer-premium { background: var(--lspa-navy-900); color: var(--lspa-on-dark-muted); }
.footer-premium h4 { color: #fff; font-size: var(--fs-sm); }
.footer-premium a { color: var(--lspa-on-dark-muted); text-decoration: none; }
.footer-premium a:hover { color: #fff; }
.footer-bottom { background: var(--lspa-navy-800); border-top: 1px solid rgb(255 255 255 / 0.08); }

/* ============ FORMULAIRES ============ */
.field label { display: block; font-weight: var(--fw-semibold); font-size: var(--fs-sm); color: var(--lspa-ink); margin-bottom: 0.4rem; }
.field label .req { color: var(--lspa-error-600); }
.input, .select, .textarea {
  width: 100%; padding: 0.8rem 1rem;
  border: 1px solid var(--lspa-line); border-radius: var(--radius-sm);
  background: #fff; font-size: var(--fs-base); color: var(--lspa-ink);
}
.input::placeholder, .textarea::placeholder { color: var(--lspa-placeholder); }
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--lspa-gold);
  box-shadow: 0 0 0 3px rgb(201 154 43 / 0.15);
}
.input[aria-invalid="true"] { border-color: var(--lspa-error-600); }
.hint { font-size: var(--fs-xs); color: var(--lspa-muted); }
.error-msg { font-size: var(--fs-xs); color: var(--lspa-error-600); font-weight: var(--fw-medium); }

/* ============ BADGES MINIMAUX ============ */
.badge {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-size: var(--fs-xs); font-weight: var(--fw-semibold);
  padding: 0.3rem 0.75rem; border-radius: var(--radius-pill);
  border: 1px solid var(--lspa-line); white-space: nowrap;
  background: var(--lspa-grey); color: var(--lspa-body);
}
.badge-gold { background: var(--lspa-gold-soft); color: #7A5A10; border-color: #EED9A0; }

/* ============ TABLE SPECS PREMIUM ============ */
.spec-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: var(--fs-sm); border: 1px solid var(--lspa-line); border-radius: var(--radius-md); overflow: hidden; }
.spec-table th, .spec-table td { padding: 0.75rem 1rem; text-align: start; border-bottom: 1px solid var(--lspa-line); }
.spec-table thead th { background: var(--lspa-grey); color: var(--lspa-ink); font-weight: var(--fw-semibold); }
.spec-table tbody tr:last-child th, .spec-table tbody tr:last-child td { border-bottom: 0; }
.spec-table tbody tr:nth-child(even) { background: var(--lspa-grey); }

/* ============ ACCESSIBILITÉ ============ */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
:focus-visible { outline: 2px solid var(--lspa-gold); outline-offset: 2px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ============ DÉPRÉCIÉ v3 — NE PLUS UTILISER (compat temporaire) ============ */
/* .navbar-lspa (navy) → .navbar-premium (blanche) | .trustbar-navy / .presence-navy
   (navy) → .stats-minimal (gris clair) | .hero-diagonal + clip-path 88%/12% +
   .hero-ribbon 12px or/violet → .hero-premium (sans diagonale) |
   .btn pill 999px + shadow-gold → .btn-gold radius 12px sans ombre |
   .card shadow-lg + radius 14px → .card-premium | violet #6A0D6E → INTERDIT */
.trustbar-navy, .presence-navy, .navbar-lspa, .hero-diagonal, .hero-ribbon,
.hero-panel, .hero-media, .sidebar-header, .helpbox-navy { outline: 2px dashed #B42318; }
.trustbar-navy::before, .presence-navy::before, .navbar-lspa::before,
.hero-diagonal::before { content: "DÉPRÉCIÉ v3 — voir design-system.md"; display: none; }

/* ============ CONTAINERS / RTL ============ */
.container-lspa { width: 100%; max-width: var(--container-max); margin-inline: auto; padding-inline: var(--sp-4); }
@media (min-width: 640px) { .container-lspa { padding-inline: var(--sp-6); } }
@media (min-width: 1024px) { .container-lspa { padding-inline: var(--sp-8); } }
[dir="rtl"] .kicker-premium::before { order: 2; }
