/* ——————————————————————————————————
   Variables & Reset
—————————————————————————————————— */

:root {
  --blue:        #2563EB;
  --blue-dark:   #1D4ED8;
  --blue-light:  #DBEAFE;
  --blue-xlight: #EFF6FF;
  --navy:        #0F172A;
  --text:        #334155;
  --muted:       #64748B;
  --border:      #E2E8F0;
  --bg:          #F8FAFC;
  --white:       #FFFFFF;
  --font-head:   'Poppins', system-ui, -apple-system, sans-serif;
  --font-body:   'Inter', system-ui, -apple-system, sans-serif;
  --radius:      12px;
  --radius-pill: 100px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ——————————————————————————————————
   Shared
—————————————————————————————————— */

.container {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.logo {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: -0.02em;
}

.btn-primary {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  padding: 1rem 1.75rem;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.18s ease, transform 0.1s ease;
  -webkit-tap-highlight-color: transparent;
}

.btn-primary:hover  { background: var(--blue-dark); }
.btn-primary:active { transform: scale(0.97); }

/* ——————————————————————————————————
   Nav
—————————————————————————————————— */

.nav {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.25rem;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

/* ——————————————————————————————————
   Hero
—————————————————————————————————— */

.hero {
  background: var(--white);
  display: grid;
  grid-template-columns: 57% 43%;
  align-items: center;
  min-height: 72dvh;
  overflow: hidden;
}

.hero-text {
  padding: 2.5rem 1.25rem 2.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  animation: fadeUp 0.55s ease both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--blue-xlight);
  color: var(--blue);
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1.25rem;
}

.badge::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
  flex-shrink: 0;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.7); }
}

.hero h1 {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 4.5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 1rem;
  color: var(--navy);
}

.subtitle {
  font-size: clamp(0.85rem, 2vw, 1rem);
  color: var(--text);
  margin-bottom: 1.75rem;
  line-height: 1.7;
}

.hero-visual {
  height: 100%;
  min-height: 320px;
  position: relative;
  overflow: hidden;
}

.hero-img {
  position: absolute;
  bottom: 0;
  left: -8%;
  width: 118%;
  height: 100%;
  object-fit: cover;
  object-position: left bottom;
}

/* ——————————————————————————————————
   Features
—————————————————————————————————— */

.features {
  background: var(--bg);
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.features-grid {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.feature {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.feature-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  background: var(--blue-xlight);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature h3 {
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.2rem;
  line-height: 1.3;
}

.feature p {
  font-size: 0.83rem;
  color: var(--muted);
  line-height: 1.5;
}

/* ——————————————————————————————————
   Trust
—————————————————————————————————— */

.trust {
  background: var(--white);
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
}

.trust-grid {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
}

/* ——————————————————————————————————
   Le problème
—————————————————————————————————— */

.probleme {
  background: var(--bg);
  padding: 5rem 0;
}

.stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.stat-number {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(2.5rem, 8vw, 3.5rem);
  font-weight: 800;
  color: var(--blue);
  letter-spacing: -0.05em;
  line-height: 1;
  margin-bottom: 0.6rem;
}

.stat p {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.55;
  margin-bottom: 0.35rem;
}

.stat-source {
  font-size: 0.73rem;
  color: var(--muted);
  opacity: 0.7;
  font-style: italic;
}

.callout {
  font-size: 1rem;
  font-weight: 500;
  color: var(--navy);
  line-height: 1.65;
  padding: 1.25rem 1.5rem;
  background: var(--blue-xlight);
  border-left: 3px solid var(--blue);
  border-radius: 0 var(--radius) var(--radius) 0;
}

/* ——————————————————————————————————
   Comment ça marchera
—————————————————————————————————— */

.comment {
  background: var(--white);
  padding: 5rem 0;
  border-top: 1px solid var(--border);
}

.comment h2 {
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--navy);
  margin-bottom: 0.4rem;
}

.section-sub {
  font-size: 1rem;
  color: var(--muted);
  margin-bottom: 2.5rem;
}

.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.step {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  position: relative;
}

.step-num {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--blue);
  background: var(--blue-light);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-icon {
  margin-bottom: 0.85rem;
  line-height: 1;
}

.step h3 {
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  color: var(--navy);
}

.step p {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ——————————————————————————————————
   Formulaire
—————————————————————————————————— */

.inscription {
  background: var(--blue);
  padding: 5rem 0;
  color: #fff;
}

.inscription h2 {
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 0.6rem;
}

.inscription-sub {
  font-size: 1rem;
  opacity: 0.85;
  margin-bottom: 2rem;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 480px;
  margin-bottom: 0.85rem;
}

.form-row input[type="email"] {
  width: 100%;
  padding: 1rem 1.25rem;
  border: none;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--navy);
  background: #fff;
  outline: none;
  transition: box-shadow 0.18s;
}

.form-row input[type="email"]::placeholder { color: #94A3B8; }

.form-row input[type="email"]:focus {
  box-shadow: 0 0 0 3px rgba(255,255,255,0.4);
}

.form-row button {
  width: 100%;
  padding: 1rem 1.5rem;
  border: none;
  border-radius: var(--radius-pill);
  background: var(--navy);
  color: #fff;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s, transform 0.1s;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}

.form-row button:hover  { background: #1e293b; }
.form-row button:active { transform: scale(0.97); }
.form-row button:disabled { opacity: 0.6; cursor: not-allowed; }

.form-note {
  font-size: 0.82rem;
  opacity: 0.72;
}

.form-error {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.92);
  background: rgba(0,0,0,0.15);
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-pill);
  margin-bottom: 0.75rem;
  width: fit-content;
}

.success-msg {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  max-width: 440px;
  background: rgba(255,255,255,0.15);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  font-size: 1rem;
  color: #fff;
  line-height: 1.5;
}

.success-msg strong { display: block; margin-bottom: 0.15rem; }

/* ——————————————————————————————————
   Tagline
—————————————————————————————————— */

.tagline-section {
  background: var(--bg);
  padding: 4.5rem 0;
  text-align: center;
  border-top: 1px solid var(--border);
}

.tagline {
  font-family: var(--font-head);
  font-size: clamp(1.3rem, 4vw, 2rem);
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.025em;
  line-height: 1.35;
}

.tagline::after {
  content: '';
  display: block;
  width: 44px;
  height: 3px;
  background: var(--blue);
  border-radius: 2px;
  margin: 1.1rem auto 0;
}

/* ——————————————————————————————————
   Footer
—————————————————————————————————— */

.footer {
  padding: 2.25rem 0;
  border-top: 1px solid var(--border);
  background: var(--white);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.footer p {
  font-size: 0.875rem;
  color: var(--muted);
}

/* ——————————————————————————————————
   Responsive — tablette & desktop
—————————————————————————————————— */

@media (min-width: 600px) {

  .features-grid {
    flex-direction: row;
    gap: 2rem;
  }

  .feature {
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
  }

  .trust-grid {
    flex-direction: row;
    justify-content: center;
    gap: 2.5rem;
  }

  .stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }

  .steps {
    grid-template-columns: repeat(3, 1fr);
  }

  .form-row {
    flex-direction: row;
  }

  .form-row input[type="email"] {
    flex: 1;
    min-width: 0;
  }

  .form-row button {
    width: auto;
  }

  .footer-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

}

/* Hero : bascule en colonne sur très petits écrans */
@media (max-width: 420px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-text {
    padding: 2rem 1.25rem 1.5rem;
  }

  .hero-visual {
    min-height: 240px;
  }

  .hero-img {
    left: 0;
    width: 100%;
    object-position: center top;
  }
}
