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

:root {
  /* Brand colors */
  --navy: #18273B;
  --red: #C52B40;
  --red-hover: #a82336;
  --green: #086E5A;
  --white: #ffffff;
  --background: #fafafa;
  --secondary-bg: #f3f4f5;
  --card-bg: #ffffff;
  --border: #e5e6e8;
  --foreground: #0f1a2e;
  --muted: #6b7280;
  --radius: 0.75rem;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-heading: 'DM Sans', 'Inter', system-ui, sans-serif;
  --max-width: 80rem; /* 1280px */
}

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

body {
  font-family: var(--font-sans);
  color: var(--foreground);
  background: var(--background);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

ul, ol {
  list-style: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  border: none;
  outline: none;
  background: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.1;
  font-weight: 700;
  text-wrap: balance;
}


/* ===== UTILITY CLASSES ===== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-label {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--red);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.875rem, 4vw, 2.75rem);
  color: var(--foreground);
  line-height: 1.15;
  text-wrap: balance;
}

.section-subtitle {
  margin-top: 1.25rem;
  font-size: 1.125rem;
  color: var(--muted);
  line-height: 1.7;
}

.section-header {
  text-align: center;
  max-width: 42rem;
  margin: 0 auto 3.5rem;
}

@media (min-width: 1024px) {
  .section-header {
    margin-bottom: 5rem;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1rem;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  text-decoration: none;
}

.btn-lg {
  height: 3.5rem;
  padding: 0 2rem;
  font-size: 1rem;
}

.btn-red {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(183, 28, 28, 0.25);
}

.btn-navy {
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(12, 29, 54, 0.2);
}
.btn-navy:hover {
  background: #0a1729;
}

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.25);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.1);
}

/* Section CTA (reusable) */
.section-cta {
  text-align: center;
  margin-top: 3rem;
}
.section-cta-btn {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.section-cta-btn:hover {
  transform: scale(1.04);
  box-shadow: 0 8px 28px rgba(197, 43, 64, 0.4);
}
.section-cta-btn .icon {
  transition: transform 0.25s ease;
}
.section-cta-btn:hover .icon {
  transform: translateX(4px);
}


/* ===== SVG ICONS (inline) ===== */
.icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}
.icon-sm {
  width: 1rem;
  height: 1rem;
}
.icon-lg {
  width: 2rem;
  height: 2rem;
}


/* ============================================
   LP HEADER (logo only)
   ============================================ */
.lp-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.5rem;
}
.lp-logo {
  height: 2rem;
  width: auto;
  filter: brightness(0) invert(1);
}


/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #18273B 0%, #1e3a5f 50%, #18273B 100%);
}

/* Centered hero content */
.hero-content--centered {
  position: relative;
  z-index: 10;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  padding: 5rem 1.5rem 2rem;
}

/* Hero multi-step system */
.hero-step {
  display: none;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 44rem;
  animation: heroFadeIn 0.5s ease;
}
.hero-step--active {
  display: flex;
}
@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero h1,
.hero h2 {
  font-size: clamp(1.8rem, 4.5vw, 3.2rem);
  color: var(--white);
  line-height: 1.15;
  max-width: 52rem;
}
.hero h1 .highlight {
  color: var(--white);
  background-color: var(--red);
  padding: 0.05em 0.3em;
  border-radius: 4px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* Step 1: subtitle */
.hero-subtitle {
  margin-top: 0.25rem;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  color: var(--red);
  font-weight: 600;
  font-style: italic;
}

/* Step 1: input row */
.hero-form-wrapper {
  margin-top: 4rem;
  width: 100%;
  max-width: 38rem;
}
.hero-form-label {
  display: block;
  text-align: center;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.75rem;
  letter-spacing: 0.01em;
}
.hero-input-row {
  display: flex;
  gap: 0;
  border-radius: 0.375rem;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
}
.hero-input {
  flex: 1;
  height: 4.5rem;
  padding: 0 1.75rem;
  font-size: 1.25rem;
  border: none;
  outline: none;
  background: var(--white);
  color: var(--foreground);
  text-transform: capitalize;
}
.hero-input::placeholder {
  color: #9ca3af;
}
.hero-arrow-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4.5rem;
  height: 4.5rem;
  background: var(--red);
  border: none;
  cursor: pointer;
  color: var(--white);
  flex-shrink: 0;
}
.hero-arrow-btn svg {
  transition: transform 0.25s ease;
}
.hero-arrow-btn:hover svg {
  transform: translateX(4px);
}

/* Step loader */
.hero-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  padding: 2rem 0;
}
.hero-loader-spinner {
  width: 3rem;
  height: 3rem;
  border: 3px solid rgba(255,255,255,0.15);
  border-top-color: var(--red);
  border-radius: 50%;
  animation: loaderSpin 0.6s linear infinite;
}
@keyframes loaderSpin {
  to { transform: rotate(360deg); }
}
.hero-loader-text {
  font-size: 1.125rem;
  color: rgba(255,255,255,0.8);
  font-weight: 600;
}

/* Step 2: left-aligned layout */
#hero-step2 {
  align-items: flex-start;
  max-width: 40rem;
}
#hero-step3 {
  align-items: center;
  text-align: center;
}

/* Step 2: eligible row (check + text inline) */
.hero-eligible-row {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  text-align: left;
  max-width: 40rem;
}
.hero-eligible-check {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: rgba(76, 175, 80, 0.2);
  flex-shrink: 0;
  margin-top: 0.125rem;
}
.hero-eligible-check svg {
  color: #66bb6a;
}

/* Step 3: success badge (reuses old badge style) */
.hero-eligible-badge--success {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  background: rgba(76, 175, 80, 0.25);
  margin-bottom: 1.5rem;
}
.hero-eligible-badge--success svg {
  color: #81c784;
}

.hero-eligible-title {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem) !important;
  color: var(--white);
  line-height: 1.25;
  max-width: 36rem;
}
.highlight-inline {
  color: var(--red);
}

.hero-eligible-confirmation {
  font-size: 1.0625rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.6;
}
.hero-eligible-confirmation strong {
  color: var(--white);
  font-weight: 700;
}

.hero-eligible-sub {
  margin-top: 2rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  max-width: 40rem;
  line-height: 1.6;
  text-align: center;
  align-self: center;
  letter-spacing: 0.01em;
}

/* Step 2: contact form */
.hero-contact-form {
  margin-top: 0.75rem;
  width: 100%;
  max-width: 40rem;
}
.hero-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.hero-field input {
  width: 100%;
  height: 3.75rem;
  padding: 0 1.5rem;
  font-size: 1.25rem;
  border-radius: 0.375rem;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--foreground);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.hero-field input::placeholder {
  color: #9ca3af;
}
.hero-field input:focus,
.hero-field select:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(197,43,64,0.15);
}
.hero-field select {
  width: 100%;
  height: 3.75rem;
  padding: 0 1.5rem;
  font-size: 1.25rem;
  border-radius: 0.375rem;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--foreground);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  cursor: pointer;
}
.hero-field select:invalid {
  color: var(--foreground);
}
.hero-field--full {
  margin-top: 0.75rem;
}
.hero-field--full input {
  width: 100%;
}

.hero-consent-text {
  margin-top: 1.25rem;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.5;
  text-align: center;
  max-width: 40rem;
}

.hero-submit-btn {
  margin-top: 1rem;
  width: auto;
  min-width: 14rem;
  height: 3.75rem;
  padding: 0 2.5rem;
  font-size: 1.5rem;
  font-weight: 800;
  border-radius: 0.375rem;
  letter-spacing: 0.05em;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.hero-submit-btn:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 28px rgba(197, 43, 64, 0.4);
}
.hero-submit-btn .icon {
  width: 1.5rem;
  height: 1.5rem;
  transition: transform 0.25s ease;
}
.hero-submit-btn:hover .icon {
  transform: translateX(4px);
}

.cta-subtext {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  font-weight: 400;
}

/* Compact trust strip pinned to bottom of hero */
.hero-trust-strip {
  position: relative;
  z-index: 10;
  width: 100%;
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 0;
  background: rgba(0,0,0,0.25);
  border-top: 1px solid rgba(255,255,255,0.08);
}
.trust-stat {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 1.25rem 2rem;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.7);
  white-space: nowrap;
}
.trust-stat + .trust-stat {
  border-left: 1px solid rgba(255,255,255,0.1);
}
.trust-icon {
  width: 1.125rem;
  height: 1.125rem;
  flex-shrink: 0;
  color: rgba(255,255,255,0.4);
}
@media (max-width: 900px) {
  .hero-trust-strip {
    flex-wrap: wrap;
    justify-content: center;
  }
  .trust-stat {
    padding: 0.75rem 1.25rem;
    font-size: 0.85rem;
  }
  .trust-stat + .trust-stat {
    border-left: none;
  }
}


/* ============================================
   POURQUOI RÉPONDRE AUX AO
   ============================================ */
.pourquoi-ao {
  padding: 5rem 0;
  background: var(--background);
}
@media (min-width: 1024px) {
  .pourquoi-ao {
    padding: 7rem 0;
  }
}

.ao-grid {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .ao-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .ao-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.ao-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.ao-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

.ao-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.625rem;
  background: rgba(197, 43, 64, 0.08);
  margin-bottom: 1.25rem;
}
.ao-card-icon svg {
  color: var(--red);
  width: 1.25rem;
  height: 1.25rem;
}

.ao-card h3 {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.ao-card-stat {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--red);
  margin-bottom: 0.25rem;
  line-height: 1.2;
}

.ao-card p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.7;
}

.ao-cta {
  text-align: center;
  margin-top: 3rem;
  padding-top: 2.5rem;
}
.ao-cta-text {
  font-size: 1.125rem;
  color: var(--foreground);
  max-width: 40rem;
  margin: 0 auto 1.5rem;
  line-height: 1.7;
}


/* ============================================
   ACCOMPAGNEMENT
   ============================================ */
.accompagnement {
  padding: 5rem 0 5rem;
  background: var(--background);
}
@media (min-width: 1024px) {
  .accompagnement {
    padding: 7rem 0;
  }
}

.accomp-list {
  display: flex;
  flex-direction: column;
  gap: 4rem;
  max-width: 52rem;
  margin: 0 auto;
}

.accomp-step {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.accomp-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  font-size: 1.25rem;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.accomp-body h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 0.5rem;
  line-height: 1.35;
}

.accomp-body p {
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.7;
}

.accomp-result {
  margin-top: 0.5rem;
  font-size: 0.9375rem;
  color: var(--foreground);
  line-height: 1.6;
  font-weight: 600;
}

.accomp-result strong {
  font-weight: 700;
}

@media (max-width: 480px) {
  .accomp-step {
    gap: 1rem;
  }
  .accomp-number {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1rem;
  }
}


/* ============================================
   CTA BANNER
   ============================================ */
.cta-banner {
  padding: 4rem 0 4rem;
  background: var(--navy);
}
@media (min-width: 1024px) {
  .cta-banner {
    padding: 5rem 0;
  }
}
.cta-banner .container {
  max-width: 56rem;
  text-align: center;
}
.cta-banner h2 {
  font-size: clamp(1.875rem, 4vw, 2.75rem);
  color: var(--white);
  line-height: 1.15;
  text-wrap: balance;
}
.cta-banner p {
  margin-top: 1.25rem;
  font-size: 1.125rem;
  color: rgba(255,255,255,0.8);
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}
.cta-banner .cta-buttons {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}
.cta-banner .btn-outline-white {
  border-color: rgba(255,255,255,0.3);
}
.cta-banner-subtext {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  text-align: center;
}


/* ============================================
   LEGAL PAGES
   ============================================ */
/* Legal pages: header needs solid bg since no hero behind it */
.main-header--legal {
  background: var(--navy);
}

.legal-page {
  padding: 9rem 0 4rem;
  min-height: 60vh;
}
.legal-page h1 {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--navy);
  margin-bottom: 2rem;
}
.legal-page h2 {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.25rem;
  color: var(--navy);
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}
.legal-page p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 0.75rem;
  max-width: 50rem;
}
.legal-page ul {
  margin: 0.5rem 0 1rem 1.5rem;
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text);
}
.legal-page a {
  color: var(--red);
  text-decoration: none;
}
.legal-page a:hover {
  text-decoration: underline;
}


/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--navy);
  color: var(--white);
}
.footer-content {
  padding: 3.5rem 0;
}
.footer-grid {
  display: grid;
  gap: 2.5rem;
}
@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
  }
}

/* Footer brand */
.footer-brand .footer-logo {
  margin-bottom: 1rem;
}
.footer-logo-text {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
}
.footer-brand .footer-logo-img {
  height: 2rem;
  width: auto;
  filter: brightness(0) invert(1);
}
.footer-brand p {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.7;
}

.footer-col h4 {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.7);
  margin-bottom: 1rem;
}
.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}
.footer-col ul a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.5);
  transition: color 0.2s;
}
.footer-col ul a:hover {
  color: var(--red);
}
.footer-col ul li {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.5);
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.footer-contact-item.address {
  align-items: flex-start;
}
.footer-contact-item svg {
  flex-shrink: 0;
}

/* Footer bottom */
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1.5rem 0;
}
.footer-bottom .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
@media (min-width: 768px) {
  .footer-bottom .container {
    flex-direction: row;
  }
}
.footer-bottom .copyright {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.3);
}
.footer-bottom .legal-links {
  display: flex;
  gap: 1.5rem;
}
.footer-bottom .legal-links a {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.3);
  transition: color 0.2s;
}
.footer-bottom .legal-links a:hover {
  color: rgba(255,255,255,0.6);
}


/* ============================================
   MOBILE FIXES (max 480px)
   ============================================ */
@media (max-width: 480px) {
  .btn {
    white-space: normal;
    text-align: center;
  }
  .btn-lg {
    height: auto;
    padding: 0.875rem 1.5rem;
    font-size: 0.95rem;
  }
  .hero-content--centered {
    padding: 4rem 1rem 1.5rem;
  }
  .hero h1,
  .hero h2 {
    font-size: 1.6rem;
  }
  .hero-subtitle {
    font-size: 0.95rem;
  }
  .hero-form-grid {
    grid-template-columns: 1fr;
  }
  .hero-input-row {
    flex-direction: row;
  }
  .hero-input {
    height: 3.5rem;
    font-size: 1rem;
    padding: 0 1rem;
    min-width: 0;
  }
  .hero-arrow-btn {
    width: 3.5rem;
    height: 3.5rem;
  }
  .hero-form-wrapper {
    margin-top: 2.5rem;
  }
  .hero-form-label {
    font-size: 1rem;
  }
  .hero-submit-btn {
    font-size: 1.5rem;
    font-weight: 800;
    height: auto;
    padding: 1rem 1.5rem;
    width: 80%;
    max-width: 80%;
  }
  .trust-stat {
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
  }
  .cta-banner .btn-lg {
    width: 100%;
    max-width: 100%;
  }
}
