/* =========================================================================
   LIVRE DE POLICE — Premium Overlay
   « République numérique » — bleu institutionnel · blanc · rouge accent
   Charge ce fichier APRÈS main.css (Dewi). Override propre, réversible.
   ========================================================================= */

/* ---------------------------------------------------------------------------
   1. DESIGN TOKENS
   --------------------------------------------------------------------------- */
:root {
  /* Couleurs République */
  --lp-blue-950: #061a2e;       /* fond très profond, footer */
  --lp-blue-900: #0a2540;       /* bleu Marianne / institutionnel */
  --lp-blue-800: #102b4e;
  --lp-blue-700: #1e3a8a;
  --lp-blue-600: #2563eb;       /* lien / focus */
  --lp-blue-100: #dde7f5;
  --lp-blue-50:  #eef2ff;

  --lp-red-700:  #991b1b;
  --lp-red-600:  #dc2626;       /* rouge cocarde / CTA */
  --lp-red-500:  #ef4444;
  --lp-red-50:   #fef2f2;

  --lp-white:    #ffffff;
  --lp-off:      #fafbff;
  --lp-paper:    #f5f7fb;       /* fond sections claires */

  --lp-ink-900:  #0b1220;       /* texte principal */
  --lp-ink-700:  #1f2937;
  --lp-ink-500:  #475569;       /* texte secondaire */
  --lp-ink-300:  #94a3b8;
  --lp-line:     #e2e8f0;

  --lp-gold:     #a07c2c;       /* mention probatoire / certifié */

  /* Typo */
  --lp-font-display: "Fraunces", "Cormorant Garamond", "Times New Roman", serif;
  --lp-font-body:    "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --lp-font-mono:    "JetBrains Mono", "SFMono-Regular", Menlo, monospace;

  /* Radii */
  --lp-r-sm: 6px;
  --lp-r-md: 10px;
  --lp-r-lg: 16px;
  --lp-r-xl: 24px;

  /* Ombres élégantes */
  --lp-shadow-1: 0 1px 2px rgba(11, 18, 32, 0.05), 0 1px 3px rgba(11, 18, 32, 0.04);
  --lp-shadow-2: 0 4px 14px rgba(11, 18, 32, 0.07), 0 2px 4px rgba(11, 18, 32, 0.04);
  --lp-shadow-3: 0 24px 48px -12px rgba(10, 37, 64, 0.22);
  --lp-shadow-glow-blue: 0 12px 32px -8px rgba(37, 99, 235, 0.35);
  --lp-shadow-glow-red:  0 12px 28px -8px rgba(220, 38, 38, 0.35);

  /* Transitions */
  --lp-ease: cubic-bezier(.2, .8, .2, 1);
  --lp-dur:  280ms;
}

/* Surcharge variables Dewi sans casser sa structure */
:root {
  --background-color: var(--lp-white);
  --default-color: var(--lp-ink-700);
  --heading-color: var(--lp-blue-900);
  --accent-color: var(--lp-red-600);
  --surface-color: var(--lp-white);
  --contrast-color: var(--lp-white);
  --nav-color: var(--lp-ink-700);
  --nav-hover-color: var(--lp-red-600);
  --default-font: var(--lp-font-body);
  --heading-font: var(--lp-font-display);
  --nav-font: var(--lp-font-body);
}

/* ---------------------------------------------------------------------------
   2. RESET PREMIUM & TYPO
   --------------------------------------------------------------------------- */
body.index-page,
body {
  font-family: var(--lp-font-body);
  color: var(--lp-ink-700);
  background-color: var(--lp-white);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: var(--lp-font-display);
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--lp-blue-900);
  font-feature-settings: "ss01", "ss02";
  text-transform: none !important;  /* neutralise Dewi qui force uppercase */
}

/* Dewi force uppercase sur les titres — on rétablit la casse naturelle */
#hero h2,
.section-title h2,
.section-title p,
.lp-step h3,
.lp-compliance-content h2,
.lp-cta-final h2 {
  text-transform: none !important;
}

a { color: var(--lp-blue-600); transition: color var(--lp-dur) var(--lp-ease); }
a:hover { color: var(--lp-red-600); }

/* ---------------------------------------------------------------------------
   3. HEADER — barre haute épurée, sceau tricolore signature
   --------------------------------------------------------------------------- */
#header.header {
  background: rgba(255, 255, 255, 0.92) !important;
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--lp-line);
  box-shadow: 0 1px 0 rgba(11, 18, 32, 0.02);
  padding: 14px 0;
  min-height: 76px;
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
}

#header .logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  position: relative;
}

/* Bandeau tricolore signature sous le logo */
#header .logo::after {
  content: "";
  display: block;
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 56px;
  height: 3px;
  background: linear-gradient(
    to right,
    var(--lp-blue-900) 0 33.33%,
    var(--lp-white)    33.33% 66.66%,
    var(--lp-red-600)  66.66% 100%
  );
  border-radius: 2px;
  box-shadow: 0 1px 0 var(--lp-line);
}

#header .logo img { height: 38px; width: auto; }

#navmenu ul {
  display: flex;
  align-items: center;
  gap: 36px;
  margin: 0;
  padding: 0;
  list-style: none;
}

#navmenu a {
  position: relative;
  font-family: var(--lp-font-body) !important;
  font-weight: 500 !important;
  font-size: 14.5px !important;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--lp-ink-700) !important;
  padding: 8px 0 !important;
  text-decoration: none;
  transition: color var(--lp-dur) var(--lp-ease);
}

#navmenu a::after {
  content: "";
  position: absolute;
  bottom: 0; left: 50%;
  width: 0; height: 2px;
  background: var(--lp-red-600);
  transition: all var(--lp-dur) var(--lp-ease);
  transform: translateX(-50%);
}

#navmenu a:hover,
#navmenu a.active {
  color: var(--lp-blue-900) !important;
}
#navmenu a:hover::after,
#navmenu a.active::after {
  width: 100%;
}

/* CTA bouton "Se connecter" */
#header .cta-btn {
  background: var(--lp-blue-900) !important;
  color: var(--lp-white) !important;
  font-family: var(--lp-font-body);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 11px 24px !important;
  border-radius: 999px !important;
  margin-left: 32px;
  text-decoration: none;
  transition: all var(--lp-dur) var(--lp-ease);
  box-shadow: var(--lp-shadow-2);
}
#header .cta-btn:hover {
  background: var(--lp-red-600) !important;
  color: var(--lp-white) !important;
  transform: translateY(-1px);
  box-shadow: var(--lp-shadow-glow-red);
}

/* ---------------------------------------------------------------------------
   4. HERO — composition signature
   --------------------------------------------------------------------------- */
#hero.hero {
  position: relative;
  min-height: 100vh;
  padding: 160px 0 120px;
  background:
    radial-gradient(ellipse 80% 60% at 20% 0%, rgba(37, 99, 235, 0.12), transparent 60%),
    radial-gradient(ellipse 60% 50% at 100% 100%, rgba(220, 38, 38, 0.08), transparent 60%),
    linear-gradient(180deg, var(--lp-white) 0%, var(--lp-off) 100%);
  overflow: hidden;
  display: flex;
  align-items: center;
}

/* Pattern décoratif en arrière-plan (motif registre) */
#hero.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("/images/premium/hero-pattern.svg");
  background-repeat: no-repeat;
  background-position: right -8% center;
  background-size: 65% auto;
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}

/* Filet tricolore vertical à gauche du hero */
#hero.hero::after {
  content: "";
  position: absolute;
  left: 0; top: 25%; bottom: 25%;
  width: 4px;
  background: linear-gradient(
    to bottom,
    var(--lp-blue-900) 0 33.33%,
    var(--lp-white)    33.33% 66.66%,
    var(--lp-red-600)  66.66% 100%
  );
  border-radius: 0 4px 4px 0;
  z-index: 1;
}

/* On masque l'image de fond du hero qui vient du template */
#hero.hero > img { display: none !important; }

#hero .container {
  position: relative;
  z-index: 2;
  max-width: 1240px;
}

#hero h2 {
  font-family: var(--lp-font-display) !important;
  font-weight: 600 !important;
  font-size: clamp(2.5rem, 5.2vw, 4.4rem) !important;
  line-height: 1.05 !important;
  letter-spacing: -0.025em;
  color: var(--lp-blue-900) !important;
  max-width: 920px;
  margin-bottom: 24px;
  text-shadow: none !important;
}

#hero h2 em {
  font-style: italic;
  color: var(--lp-red-600);
  font-weight: 500;
}

#hero p {
  font-family: var(--lp-font-body) !important;
  font-size: 1.25rem !important;
  line-height: 1.55 !important;
  color: var(--lp-ink-500) !important;
  max-width: 640px;
  margin-bottom: 36px;
  font-weight: 400;
}

/* Badge "conformité" au-dessus du titre */
#hero .lp-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 12px;
  border-radius: 999px;
  background: var(--lp-white);
  border: 1px solid var(--lp-line);
  font-family: var(--lp-font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--lp-blue-900);
  margin-bottom: 28px;
  box-shadow: var(--lp-shadow-1);
}
#hero .lp-eyebrow .lp-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--lp-red-600);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.18);
}

/* CTA principal hero */
#hero .btn-get-started {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--lp-red-600) !important;
  color: var(--lp-white) !important;
  font-family: var(--lp-font-body);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 16px 32px !important;
  border-radius: 999px !important;
  border: none;
  text-decoration: none;
  transition: all var(--lp-dur) var(--lp-ease);
  box-shadow: var(--lp-shadow-glow-red);
}
#hero .btn-get-started:hover {
  background: var(--lp-red-700) !important;
  transform: translateY(-2px);
  box-shadow: 0 18px 36px -10px rgba(220, 38, 38, 0.5);
}
#hero .btn-get-started::after {
  content: "→";
  font-size: 18px;
  transition: transform var(--lp-dur) var(--lp-ease);
}
#hero .btn-get-started:hover::after { transform: translateX(4px); }

/* CTA secondaire (lien) */
#hero .btn-secondary-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 24px;
  font-family: var(--lp-font-body);
  font-weight: 500;
  font-size: 15px;
  color: var(--lp-blue-900) !important;
  text-decoration: none;
  padding: 16px 0;
  transition: color var(--lp-dur) var(--lp-ease);
}
#hero .btn-secondary-link:hover { color: var(--lp-red-600) !important; }

/* Bandeau "trust" sous le hero */
#hero .lp-trust {
  margin-top: 64px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--lp-line);
}
#hero .lp-trust-label {
  font-family: var(--lp-font-body);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lp-ink-300);
}
#hero .lp-trust-item {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--lp-font-body);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--lp-ink-500);
}
#hero .lp-trust-item i {
  color: var(--lp-blue-900);
  font-size: 18px;
}

/* ---------------------------------------------------------------------------
   5. SECTIONS — base
   --------------------------------------------------------------------------- */
section {
  padding: 120px 0;
  position: relative;
}

.section-title { text-align: center; margin-bottom: 64px; }

.section-title h2 {
  font-family: var(--lp-font-display) !important;
  font-size: clamp(2rem, 3.6vw, 3rem) !important;
  font-weight: 600 !important;
  color: var(--lp-blue-900) !important;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  position: relative;
  display: inline-block;
}

/* Filet tricolore sous chaque titre de section */
.section-title h2::after {
  content: "";
  display: block;
  width: 64px;
  height: 3px;
  margin: 18px auto 0;
  background: linear-gradient(
    to right,
    var(--lp-blue-900) 0 33.33%,
    var(--lp-ink-300)  33.33% 66.66%,
    var(--lp-red-600)  66.66% 100%
  );
  border-radius: 2px;
}

.section-title p {
  font-family: var(--lp-font-body);
  font-size: 1.125rem;
  color: var(--lp-ink-500);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.55;
}

/* ---------------------------------------------------------------------------
   6. FONCTIONNALITÉS — cards premium
   --------------------------------------------------------------------------- */
#fonctionnalités.services {
  background: var(--lp-white);
}

#fonctionnalités .service-item {
  position: relative;
  background: var(--lp-white);
  border: 1px solid var(--lp-line);
  border-radius: var(--lp-r-lg);
  padding: 0;
  overflow: hidden;
  height: 100%;
  transition: all var(--lp-dur) var(--lp-ease);
  box-shadow: var(--lp-shadow-1);
}

#fonctionnalités .service-item::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(
    to right,
    var(--lp-blue-900) 0 33.33%,
    var(--lp-white)    33.33% 66.66%,
    var(--lp-red-600)  66.66% 100%
  );
  opacity: 0;
  transition: opacity var(--lp-dur) var(--lp-ease);
  z-index: 2;
}

#fonctionnalités .service-item:hover {
  transform: translateY(-6px);
  border-color: var(--lp-blue-100);
  box-shadow: var(--lp-shadow-3);
}
#fonctionnalités .service-item:hover::before { opacity: 1; }

/* Header coloré de la card (remplace l'image stock) */
#fonctionnalités .service-item .img {
  height: 180px;
  background: linear-gradient(135deg, var(--lp-blue-900) 0%, var(--lp-blue-700) 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
#fonctionnalités .service-item .img img {
  display: none !important;
}
#fonctionnalités .service-item .img::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("/images/premium/card-pattern.svg");
  background-repeat: repeat;
  background-size: 120px auto;
  opacity: 0.12;
}
/* Numéro de fonctionnalité (style officiel) */
#fonctionnalités .service-item .img::after {
  content: attr(data-num);
  position: absolute;
  top: 16px; right: 20px;
  font-family: var(--lp-font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.55);
}

#fonctionnalités .service-item .details {
  padding: 28px 28px 32px !important;
  height: auto !important;
  position: relative;
}

/* Icône — cercle bleu marine avec accent */
#fonctionnalités .service-item .icon {
  position: absolute !important;
  top: -32px;
  left: 28px;
  width: 64px; height: 64px;
  background: var(--lp-white) !important;
  border: 1px solid var(--lp-line);
  border-radius: 16px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  box-shadow: var(--lp-shadow-2);
  z-index: 3;
}
#fonctionnalités .service-item .icon i {
  font-size: 26px !important;
  color: var(--lp-blue-900) !important;
  transition: color var(--lp-dur) var(--lp-ease);
}
#fonctionnalités .service-item:hover .icon i { color: var(--lp-red-600) !important; }

#fonctionnalités .service-item .details h3 {
  margin-top: 40px;
  margin-bottom: 14px;
  font-family: var(--lp-font-display) !important;
  font-size: 1.35rem !important;
  font-weight: 600 !important;
  color: var(--lp-blue-900) !important;
  letter-spacing: -0.015em;
  line-height: 1.2;
}

#fonctionnalités .service-item .details p {
  font-family: var(--lp-font-body);
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--lp-ink-500);
  margin-bottom: 10px;
}

/* On retire les emojis 📌 inutilement bruyants — on les remplace par un tiret */
#fonctionnalités .service-item .details p::first-letter {
  /* no-op, géré via twig */
}

/* ---------------------------------------------------------------------------
   7. FAQ — accordéon premium
   --------------------------------------------------------------------------- */
#faq.faq {
  background: var(--lp-blue-950) !important;
  color: var(--lp-white);
  position: relative;
  overflow: hidden;
}

#faq.faq::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("/images/premium/dots-pattern.svg");
  background-repeat: repeat;
  background-size: 32px;
  opacity: 0.08;
  pointer-events: none;
}

#faq .section-title h2 {
  color: var(--lp-white) !important;
}
#faq .section-title p {
  color: rgba(255, 255, 255, 0.65);
}

#faq .accordion-item {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: var(--lp-r-md) !important;
  margin-bottom: 14px !important;
  overflow: hidden;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all var(--lp-dur) var(--lp-ease);
}
#faq .accordion-item:hover {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(255, 255, 255, 0.18) !important;
}

#faq .accordion-button {
  background: transparent !important;
  color: var(--lp-white) !important;
  font-family: var(--lp-font-display);
  font-size: 1.05rem !important;
  font-weight: 500 !important;
  padding: 20px 24px !important;
  box-shadow: none !important;
  border: none !important;
}
#faq .accordion-button:not(.collapsed) {
  background: rgba(220, 38, 38, 0.08) !important;
  color: var(--lp-white) !important;
}
#faq .accordion-button::after {
  filter: invert(1) brightness(2);
}

#faq .accordion-body {
  color: rgba(255, 255, 255, 0.75) !important;
  font-family: var(--lp-font-body);
  font-size: 0.97rem;
  line-height: 1.7;
  padding: 0 24px 22px !important;
}

/* ---------------------------------------------------------------------------
   8. CONTACT
   --------------------------------------------------------------------------- */
#contact.contact {
  background: var(--lp-paper) !important;
  position: relative;
}

#contact .info-item {
  background: var(--lp-white);
  border: 1px solid var(--lp-line);
  border-radius: var(--lp-r-lg);
  padding: 32px 24px !important;
  text-align: center;
  transition: all var(--lp-dur) var(--lp-ease);
  box-shadow: var(--lp-shadow-1);
}
#contact .info-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--lp-shadow-2);
  border-color: var(--lp-blue-100);
}
#contact .info-item i {
  font-size: 32px;
  color: var(--lp-red-600);
  margin-bottom: 16px;
  display: inline-block;
}
#contact .info-item h3 {
  font-family: var(--lp-font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--lp-blue-900);
  margin-bottom: 8px;
}
#contact .info-item p,
#contact .info-item a {
  font-family: var(--lp-font-body);
  font-size: 0.97rem;
  color: var(--lp-ink-500);
  text-decoration: none;
}
#contact .info-item a:hover { color: var(--lp-red-600); }

/* Formulaire */
#contact .php-email-form {
  background: var(--lp-white);
  padding: 32px;
  border-radius: var(--lp-r-lg);
  border: 1px solid var(--lp-line);
  box-shadow: var(--lp-shadow-2);
}

#contact .form-control {
  background: var(--lp-off) !important;
  border: 1px solid var(--lp-line) !important;
  border-radius: var(--lp-r-sm) !important;
  padding: 14px 16px !important;
  font-family: var(--lp-font-body);
  font-size: 0.97rem;
  color: var(--lp-ink-900);
  transition: all var(--lp-dur) var(--lp-ease);
}
#contact .form-control:focus {
  border-color: var(--lp-blue-600) !important;
  background: var(--lp-white) !important;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12) !important;
  outline: none;
}
#contact .form-control::placeholder { color: var(--lp-ink-300); }

#contact button[type="submit"] {
  background: var(--lp-blue-900) !important;
  color: var(--lp-white) !important;
  font-family: var(--lp-font-body);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 16px 40px !important;
  border-radius: 999px !important;
  border: none;
  transition: all var(--lp-dur) var(--lp-ease);
  box-shadow: var(--lp-shadow-2);
}
#contact button[type="submit"]:hover {
  background: var(--lp-red-600) !important;
  transform: translateY(-1px);
  box-shadow: var(--lp-shadow-glow-red);
}

/* ---------------------------------------------------------------------------
   9. FOOTER — sobre, institutionnel
   --------------------------------------------------------------------------- */
#footer.footer {
  background: var(--lp-blue-950) !important;
  color: rgba(255, 255, 255, 0.7);
  padding: 48px 0 32px !important;
  position: relative;
}

#footer.footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(
    to right,
    var(--lp-blue-700) 0 33.33%,
    var(--lp-white)    33.33% 66.66%,
    var(--lp-red-600)  66.66% 100%
  );
}

#footer .copyright {
  font-family: var(--lp-font-body);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
}
#footer .copyright a {
  color: var(--lp-white);
  text-decoration: none;
  font-weight: 500;
}
#footer .copyright a:hover { color: var(--lp-red-500); }
#footer .sitename { color: var(--lp-white) !important; }

/* ---------------------------------------------------------------------------
   10. NOUVELLES SECTIONS PREMIUM (à insérer en Twig)
   --------------------------------------------------------------------------- */

/* Bande "comment ça marche" en 3 étapes */
.lp-steps {
  padding: 120px 0;
  background: var(--lp-paper);
  position: relative;
}
.lp-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 56px;
  position: relative;
}
.lp-steps-grid::before {
  content: "";
  position: absolute;
  top: 36px; left: 16%; right: 16%;
  height: 2px;
  background-image: linear-gradient(to right, var(--lp-blue-100) 50%, transparent 50%);
  background-size: 12px 2px;
  background-repeat: repeat-x;
  z-index: 0;
}
.lp-step {
  position: relative;
  background: var(--lp-white);
  border: 1px solid var(--lp-line);
  border-radius: var(--lp-r-lg);
  padding: 40px 28px 32px;
  text-align: center;
  z-index: 1;
  transition: all var(--lp-dur) var(--lp-ease);
}
.lp-step:hover {
  transform: translateY(-4px);
  box-shadow: var(--lp-shadow-3);
  border-color: var(--lp-blue-100);
}
.lp-step-num {
  width: 72px; height: 72px;
  margin: -76px auto 24px;
  background: var(--lp-blue-900);
  color: var(--lp-white);
  border: 6px solid var(--lp-paper);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--lp-font-display);
  font-size: 1.6rem;
  font-weight: 600;
  box-shadow: var(--lp-shadow-2);
  position: relative;
}
.lp-step-num::after {
  content: "";
  position: absolute;
  bottom: -6px; left: 50%;
  transform: translateX(-50%);
  width: 32px; height: 2px;
  background: linear-gradient(
    to right,
    var(--lp-blue-900) 0 33.33%,
    var(--lp-white)    33.33% 66.66%,
    var(--lp-red-600)  66.66% 100%
  );
  border-radius: 1px;
}
.lp-step h3 {
  font-family: var(--lp-font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--lp-blue-900);
  margin-bottom: 10px;
}
.lp-step p {
  font-family: var(--lp-font-body);
  color: var(--lp-ink-500);
  font-size: 0.97rem;
  line-height: 1.6;
  margin: 0;
}

/* Section "conformité légale" — sceau République */
.lp-compliance {
  padding: 100px 0;
  background: var(--lp-white);
  border-top: 1px solid var(--lp-line);
  border-bottom: 1px solid var(--lp-line);
}
.lp-compliance-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: center;
}
.lp-seal {
  width: 100%;
  max-width: 280px;
  margin: 0 auto;
}
.lp-compliance-content h2 {
  font-family: var(--lp-font-display);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  color: var(--lp-blue-900);
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  line-height: 1.15;
}
.lp-compliance-content > p {
  font-family: var(--lp-font-body);
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--lp-ink-500);
  margin-bottom: 24px;
}
.lp-compliance-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}
.lp-compliance-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-family: var(--lp-font-body);
  font-size: 0.97rem;
  color: var(--lp-ink-700);
}
.lp-compliance-list li i {
  flex-shrink: 0;
  width: 22px; height: 22px;
  background: var(--lp-blue-50);
  color: var(--lp-blue-900);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  margin-top: 2px;
}
.lp-compliance-ref {
  margin-top: 28px;
  padding: 16px 20px;
  border-left: 3px solid var(--lp-red-600);
  background: var(--lp-red-50);
  font-family: var(--lp-font-mono);
  font-size: 12.5px;
  color: var(--lp-ink-700);
  border-radius: 0 var(--lp-r-sm) var(--lp-r-sm) 0;
}

/* Section CTA finale */
.lp-cta-final {
  padding: 100px 0;
  background:
    radial-gradient(ellipse 60% 80% at 20% 50%, rgba(220, 38, 38, 0.15), transparent 70%),
    linear-gradient(135deg, var(--lp-blue-900) 0%, var(--lp-blue-700) 100%);
  color: var(--lp-white);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.lp-cta-final::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("/images/premium/card-pattern.svg");
  background-size: 160px;
  opacity: 0.08;
  pointer-events: none;
}
.lp-cta-final h2 {
  font-family: var(--lp-font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--lp-white);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  position: relative;
}
.lp-cta-final p {
  font-family: var(--lp-font-body);
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.8);
  max-width: 560px;
  margin: 0 auto 32px;
  position: relative;
}
.lp-cta-final .lp-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--lp-white);
  color: var(--lp-blue-900);
  font-family: var(--lp-font-body);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 18px 36px;
  border-radius: 999px;
  text-decoration: none;
  transition: all var(--lp-dur) var(--lp-ease);
  box-shadow: 0 12px 28px -8px rgba(0, 0, 0, 0.3);
  position: relative;
}
.lp-cta-final .lp-cta-btn:hover {
  background: var(--lp-red-600);
  color: var(--lp-white);
  transform: translateY(-2px);
}
.lp-cta-final .lp-cta-btn::after {
  content: "→";
  transition: transform var(--lp-dur) var(--lp-ease);
}
.lp-cta-final .lp-cta-btn:hover::after { transform: translateX(4px); }

/* ---------------------------------------------------------------------------
   11. RESPONSIVE
   --------------------------------------------------------------------------- */
@media (max-width: 991px) {
  #hero.hero { padding: 130px 0 80px; min-height: auto; }
  #hero h2 { font-size: 2.4rem !important; }
  #hero.hero::before { background-size: 100% auto; opacity: 0.25; }
  #hero .lp-trust { gap: 18px; margin-top: 40px; }

  .lp-steps-grid { grid-template-columns: 1fr; gap: 56px; }
  .lp-steps-grid::before { display: none; }
  .lp-compliance-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .lp-seal { max-width: 200px; }

  section { padding: 80px 0; }

  #navmenu ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--lp-white);
    padding: 12px 0;
  }
  #navmenu a { padding: 14px 24px !important; }
  #header .cta-btn { margin-left: 0; }
}

@media (max-width: 575px) {
  #hero.hero { padding: 110px 0 60px; }
  #hero h2 { font-size: 2rem !important; }
  #hero p { font-size: 1.05rem !important; }
  #hero .btn-get-started { padding: 14px 24px !important; font-size: 13px; }
  #hero .btn-secondary-link { display: block; margin: 16px 0 0; }

  .section-title h2 { font-size: 1.75rem !important; }
}

/* ---------------------------------------------------------------------------
   12. ACCESSIBILITY
   --------------------------------------------------------------------------- */
:focus-visible {
  outline: 3px solid var(--lp-blue-600);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------------------------------------------------------------------------
   13. UTILITAIRES
   --------------------------------------------------------------------------- */
.lp-tricolor-bar {
  display: block;
  width: 56px;
  height: 3px;
  background: linear-gradient(
    to right,
    var(--lp-blue-900) 0 33.33%,
    var(--lp-white)    33.33% 66.66%,
    var(--lp-red-600)  66.66% 100%
  );
  border-radius: 2px;
}

.lp-tricolor-bar--center { margin: 16px auto; }
