/* ===== 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 ===== */
.pg-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

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

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

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

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

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

/* Buttons */
.ac-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;
}

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

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

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

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

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


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


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


/* ============================================
   HERO
   ============================================ */
.top-sec {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.top-bg {
  position: absolute;
  inset: 0;
}
.top-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.top-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 65% 70% at 50% 0%, rgba(30,58,95,0.85) 0%, transparent 75%),
    #18273B;
}

/* Centered top-sec content */
.top-inner--ctr {
  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 */
.view-step {
  display: none;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 44rem;
  animation: top-secFadeIn 0.5s ease;
}
.view-step--on {
  display: flex;
}
@keyframes top-secFadeIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.top-sec h1,
.top-sec h2 {
  font-size: clamp(1.8rem, 4.5vw, 3.2rem);
  color: var(--white);
  line-height: 1.15;
  max-width: 52rem;
}
.top-sec h1 .txt-hl {
  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 */
.top-sub {
  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 */
.field-box {
  margin-top: 4rem;
  width: 100%;
  max-width: 38rem;
}
.field-lbl {
  display: block;
  text-align: center;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.75rem;
  letter-spacing: 0.01em;
}
.input-row {
  display: flex;
  gap: 0;
  border-radius: 0.375rem;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
}
.main-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;
}
.main-input::placeholder {
  color: #9ca3af;
}
.arrow-ac-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;
}
.arrow-ac-btn svg {
  transition: transform 0.25s ease;
}
.arrow-ac-btn:hover svg {
  transform: translateX(4px);
}

/* Step loader */
.load-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  padding: 2rem 0;
}
.load-spin {
  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); }
}
.load-txt {
  font-size: 1.125rem;
  color: rgba(255,255,255,0.8);
  font-weight: 600;
}

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

/* Step 2: eligible row (check + text inline) */
.elig-row {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  text-align: left;
  max-width: 40rem;
}
.elig-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;
}
.elig-check svg {
  color: #66bb6a;
}

/* Step 3: success badge (reuses old badge style) */
.elig-badge--ok {
  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;
}
.elig-badge--ok svg {
  color: #81c784;
}

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

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

.elig-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 */
.contact-frm {
  margin-top: 0.75rem;
  width: 100%;
  max-width: 40rem;
}
.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.field-wrap 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;
}
.field-wrap input::placeholder {
  color: #9ca3af;
}
.field-wrap input:focus,
.field-wrap select:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(197,43,64,0.15);
}
.field-wrap 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;
}
.field-wrap select:invalid {
  color: var(--foreground);
}
.field-wrap--full {
  margin-top: 0.75rem;
}
.field-wrap--full input {
  width: 100%;
}

.consent-txt {
  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;
}

.send-ac-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;
}
.send-ac-btn:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 28px rgba(197, 43, 64, 0.4);
}
.send-ac-btn .btn-ico {
  width: 1.5rem;
  height: 1.5rem;
  transition: transform 0.25s ease;
}
.send-ac-btn:hover .btn-ico {
  transform: translateX(4px);
}

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

/* Compact trust strip pinned to bottom of top-sec */
.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);
}
.stat-item {
  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;
}
.stat-item + .stat-item {
  border-left: 1px solid rgba(255,255,255,0.1);
}
.trust-ico {
  width: 1.125rem;
  height: 1.125rem;
  flex-shrink: 0;
  color: rgba(255,255,255,0.4);
}
@media (max-width: 900px) {
  .trust-strip {
    flex-wrap: wrap;
    justify-content: center;
  }
  .stat-item {
    padding: 0.75rem 1.25rem;
    font-size: 0.85rem;
  }
  .stat-item + .stat-item {
    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-btn-ico {
  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-btn-ico 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
   ============================================ */
.promo-sec {
  padding: 4rem 0 4rem;
  background: var(--navy);
}
@media (min-width: 1024px) {
  .promo-sec {
    padding: 5rem 0;
  }
}
.promo-sec .pg-wrap {
  max-width: 56rem;
  text-align: center;
}
.promo-sec h2 {
  font-size: clamp(1.875rem, 4vw, 2.75rem);
  color: var(--white);
  line-height: 1.15;
  text-wrap: balance;
}
.promo-sec 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;
}
.promo-sec .promo-ac-btns {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}
.promo-sec .ac-btn-outline-white {
  border-color: rgba(255,255,255,0.3);
}
.promo-note {
  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 top-sec 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
   ============================================ */
.site-foot {
  background: var(--navy);
  color: var(--white);
}
.foot-content {
  padding: 3.5rem 0;
}
.foot-grid {
  display: grid;
  gap: 2.5rem;
}
@media (min-width: 768px) {
  .foot-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .foot-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
  }
}

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

.foot-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;
}
.foot-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}
.foot-col ul a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.5);
  transition: color 0.2s;
}
.foot-col ul a:hover {
  color: var(--red);
}
.foot-col ul li {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.5);
}

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

/* Footer bottom */
.foot-base {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1.5rem 0;
}
.foot-base .pg-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
@media (min-width: 768px) {
  .foot-base .pg-wrap {
    flex-direction: row;
  }
}
.foot-base .foot-copy {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.3);
}
.foot-base .foot-nav {
  display: flex;
  gap: 1.5rem;
}
.foot-base .foot-nav a {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.3);
  transition: color 0.2s;
}
.foot-base .foot-nav a:hover {
  color: rgba(255,255,255,0.6);
}
.foot-base .disc-txt {
  margin-top: 16px;
  font-size: 11px;
  color: rgba(255,255,255,0.35);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}
.foot-base .disc-txt a {
  color: rgba(255,255,255,0.45);
  text-decoration: underline;
}


/* ============================================
   MOBILE FIXES (max 480px)
   ============================================ */
@media (max-width: 480px) {
  .ac-btn {
    white-space: normal;
    text-align: center;
  }
  .ac-ac-btn--xl {
    height: auto;
    padding: 0.875rem 1.5rem;
    font-size: 0.95rem;
  }
  .top-inner--ctr {
    padding: 4rem 1rem 1.5rem;
  }
  .top-sec h1,
  .top-sec h2 {
    font-size: 1.6rem;
  }
  .top-sub {
    font-size: 0.95rem;
  }
  .field-grid {
    grid-template-columns: 1fr;
  }
  .input-row {
    flex-direction: row;
  }
  .main-input {
    height: 3.5rem;
    font-size: 1rem;
    padding: 0 1rem;
    min-width: 0;
  }
  .arrow-ac-btn {
    width: 3.5rem;
    height: 3.5rem;
  }
  .field-box {
    margin-top: 2.5rem;
  }
  .field-lbl {
    font-size: 1rem;
  }
  .send-ac-btn {
    font-size: 1.5rem;
    font-weight: 800;
    height: auto;
    padding: 1rem 1.5rem;
    width: 80%;
    max-width: 80%;
  }
  .stat-item {
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
  }
  .promo-sec .ac-ac-btn--xl {
    width: 100%;
    max-width: 100%;
  }
}
