@charset "UTF-8";
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap");

:root {
  --blue-light: #BEE2FA;
  --green: #6FB11F;
  --blue: #1498C5;
  --blue-dark: #107da4;
  --text: #1f2d3d;
  --text-soft: #4e6275;
  --white: #ffffff;
  --border: #d6e7f1;
  --shadow: 0 18px 40px rgba(24, 54, 84, 0.10);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: #f4f8fb;
}

img {
  max-width: 100%;
  display: block;
}

button,
input,
textarea,
select {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding-inline: 20px;
}

/* =========================
   HERO
========================= */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--blue-light);
  padding: 0 0 28px;
}

/* image visible en mobile */
.hero-bg {
  display: block;
  width: 100%;
  height: auto;
}

.hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: -8px;
}

.info-container {
  width: 100%;
}

.hero-badge {
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 18px;
  padding: 16px 20px 14px;
  border-radius: 22px;
  background: var(--blue);
  box-shadow: 0 12px 28px rgba(20, 152, 197, 0.18);
}

.hero-title {
  margin: 0;
  color: var(--white);
  text-transform: uppercase;
  text-align: center;
  font-size: 1.95rem;
  line-height: 1.04;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.benefits {
  max-width: 460px;
  margin: 0 auto;
  padding: 18px 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 26px rgba(31, 45, 61, 0.08);
}

.benefits-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.benefits-list li {
  position: relative;
  padding-left: 36px;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.45;
  font-weight: 600;
}

.benefits-list li strong {
  font-weight: 900;
}

.benefits-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 1px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* =========================
   FORMULAIRE
========================= */

.lpform-card,
.lpform-card * {
  box-sizing: border-box;
}

.lpform-card {
  width: 100%;
  max-width: 470px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.97);
  border: 2px solid var(--green);
  border-radius: 26px;
  padding: 26px 18px 22px;
  box-shadow:
    0 20px 50px rgba(24, 54, 84, 0.12),
    0 0 0 7px rgba(111, 177, 31, 0.08);
}

.lpform {
  margin: 0;
}

.lpform-step {
  display: none;
}

.lpform-step.is-active {
  display: block;
}

.lpform-title {
  margin: 0 0 18px;
  text-align: center;
  color: var(--blue);
  font-size: 1.75rem;
  line-height: 1.14;
  font-weight: 900;
}

.lpform-title::after {
  content: "";
  display: block;
  width: 14px;
  height: 14px;
  margin: 10px auto 0;
  border-left: 3px solid var(--green);
  border-bottom: 3px solid var(--green);
  transform: rotate(-45deg);
  border-radius: 2px;
}

.lpform-group {
  margin-bottom: 22px;
}

.lpform-label {
  margin: 0 0 14px;
  text-align: center;
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 800;
}

.lpform-choices {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.lpform-choice {
  position: relative;
  display: inline-flex;
  margin: 0;
  cursor: pointer;
}

.lpform-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.lpform-choice span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 130px;
  min-height: 52px;
  padding: 12px 18px;
  border: 2px solid var(--border);
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.2;
  font-weight: 800;
  text-align: center;
  transition: all 0.18s ease;
}

.lpform-choice:hover span {
  border-color: var(--blue);
}

.lpform-choice input:checked + span {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
  box-shadow: 0 10px 20px rgba(111, 177, 31, 0.20);
}

.lpform-summary {
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #f3f9fd;
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.5;
}

.lpform-fields {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.lpform-field {
  display: flex;
  flex-direction: column;
}

.lpform-field label {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 800;
}

.lpform-field input {
  width: 100%;
  height: 52px;
  padding: 0 14px;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  background: #fff;
  color: var(--text);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.lpform-field input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(20, 152, 197, 0.10);
}

.lpform-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 22px;
  flex-wrap: wrap;
}

.lpform-btn {
  border: 0;
  border-radius: 999px;
  padding: 15px 26px;
  font-size: 1rem;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease, background-color 0.15s ease;
}

.lpform-btn:hover {
  transform: translateY(-1px);
  opacity: 0.97;
}

.lpform-btn-primary {
  background: var(--green);
  color: #fff;
  box-shadow: 0 12px 24px rgba(111, 177, 31, 0.18);
}

.lpform-btn-primary:hover {
  background: #5f9a1a;
}

.lpform-btn-secondary {
  background: #edf6fb;
  color: var(--text);
}

/* =========================
   WHY
========================= */

.why {
  background: #eef7fd;
  padding: 52px 0;
}

.section-title {
  margin: 0;
  font-weight: 900;
  text-align: center;
  font-size: 2rem;
  line-height: 1.15;
  color: var(--blue);
}

.section-divider {
  border: 0;
  height: 6px;
  width: 90px;
  border-radius: 999px;
  background: var(--green);
  margin: 24px auto 28px;
  opacity: 1;
}

.why-text {
  text-align: center;
  font-size: 1.02rem;
  line-height: 1.75;
  margin: 0 auto 18px;
  max-width: 1040px;
  color: var(--text);
}

.why-text--strong {
  margin-bottom: 38px;
  color: var(--text);
  font-weight: 800;
}

/* =========================
   STEPS HELP
========================= */

.steps-help {
  margin-top: 28px;
}

.steps-help__header {
  text-align: center;
  margin-bottom: 26px;
}

.steps-help__title {
  margin: 0 0 8px;
  font-size: 1.95rem;
  line-height: 1.15;
  font-weight: 900;
  color: var(--blue);
}

.steps-help__title span {
  color: var(--green);
}

.steps-help__subtitle {
  margin: 0;
  color: var(--text-soft);
  font-size: 1rem;
  line-height: 1.6;
}

.steps-help__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.steps-help__card {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 24px;
  padding: 24px 18px 20px;
  text-align: center;
  box-shadow: 0 12px 24px rgba(24, 54, 84, 0.06);
}

.steps-help__icon-wrap {
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.steps-help__icon {
  max-width: 250px;
  max-height: 250px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.steps-help__card-title {
  margin: 0 0 10px;
  font-size: 1.08rem;
  line-height: 1.35;
  font-weight: 800;
  color: var(--text);
}

.steps-help__card-text {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--text-soft);
}

.steps-help__actions {
  display: flex;
  justify-content: center;
  margin-top: 22px;
}

.steps-help__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 14px;
  background: var(--green);
  color: #fff;
  font-weight: 800;
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.steps-help__btn:hover {
  transform: translateY(-1px);
  background: #5f9a1a;
}

/* =========================
   WHY GRID / ICÔNES
========================= */

.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-top: 28px;
}

.why-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  text-align: center;
}

/* taille remise en mode visible */
.why-icon {
  width: 1200px;
  height: 120px;
  pointer-events: none;
  object-fit: contain;
}

.why-label {
  margin: 0;
  text-align: center;
  font-size: 1rem;
  line-height: 1.45;
  color: var(--text);
  font-weight: 700;
}

/* =========================
   FAQ
========================= */

.faq {
  background: #f5fbff;
  padding: 50px 0 60px;
}

.faq-list {
  max-width: 920px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(24, 54, 84, 0.05);
}

.faq-question {
  width: 100%;
  border: 0;
  background: #fff;
  color: var(--text);
  text-align: left;
  padding: 20px 22px;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  position: relative;
}

.faq-question::after {
  content: "+";
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 26px;
  font-weight: 500;
  color: var(--green);
}

.faq-item.active .faq-question::after {
  content: "−";
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}

.faq-answer p {
  margin: 0;
  padding: 0 22px 20px;
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--text-soft);
}

/* =========================
   TABLET
========================= */

@media (min-width: 768px) {
  .lpform-fields {
    grid-template-columns: 1fr 1fr;
  }

  .lpform-field-full {
    grid-column: 1 / -1;
  }

  .steps-help__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .why-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
  }
}

/* =========================
   DESKTOP
========================= */

@media (min-width: 1024px) {
  .container {
    padding-inline: 28px;
  }

  .hero {
    padding: 58px 0 54px;
    background: url("hpflottante.svg") center / cover no-repeat;
  }

  .hero-bg {
    display: none !important;
  }

  .hero__content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 470px;
    gap: 42px;
    align-items: center;
    margin-top: 0;
  }

  .info-container {
    min-height: 560px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
  }

  .hero-badge,
  .benefits {
    margin-left: 0;
    max-width: 500px;
  }

  .hero-badge {
    margin-bottom: 24px;
    background: rgba(20, 152, 197, 0.95);
  }

  .hero-title {
    text-align: left;
    font-size: 3.2rem;
    line-height: 0.98;
  }

  .benefits {
    margin-top: 0;
    background: rgba(255, 255, 255, 0.94);
  }

  .lpform-card {
    max-width: 470px;
    margin-left: auto;
    padding: 30px 22px 24px;
  }

  .lpform-title {
    font-size: 2.1rem;
  }

  .section-title {
    font-size: 2.35rem;
  }

  .steps-help__title {
    font-size: 2.2rem;
  }
}

/* =========================
   MOBILE
========================= */

@media (max-width: 767px) {
  .hero {
    padding-bottom: 24px;
  }

  .hero__content {
    gap: 20px;
    margin-top: -10px;
  }

  .hero-badge {
    max-width: calc(100% - 20px);
    margin-inline: auto;
  }

  .hero-title {
    font-size: 1.78rem;
  }

  .benefits {
    max-width: calc(100% - 10px);
  }

  .lpform-card {
    padding: 22px 16px;
  }

  .lpform-title {
    font-size: 1.45rem;
  }

  .lpform-choice span {
    min-width: 120px;
    width: 100%;
  }

  .lpform-btn {
    width: 100%;
  }

  .why {
    padding: 42px 0;
  }

  .section-title {
    font-size: 1.72rem;
  }

  .steps-help__title {
    font-size: 1.62rem;
  }

  .faq {
    padding: 42px 0 50px;
  }
}

@media (max-width: 767px) {
  .lpform-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  /* Par défaut, tous les champs prennent toute la largeur */
  .lpform-field {
    grid-column: 1 / -1;
  }

  /* Sauf ceux qu'on veut sur une demi-ligne */
  .lpform-field-half {
    grid-column: auto;
  }

  .lpform-field-full {
    grid-column: 1 / -1;
  }
}

.lpform-select {
  width: 100%;
  height: 54px;
  padding: 0 16px;
  border: 2px solid #d6e7f1;
  border-radius: 14px;
  background: #fff;
  color: #1f2d3d;
  font-size: 1rem;
  font-weight: 600;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #1498C5 50%),
                    linear-gradient(135deg, #1498C5 50%, transparent 50%);
  background-position: calc(100% - 22px) calc(50% - 3px),
                       calc(100% - 16px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.lpform-select:focus {
  border-color: #1498C5;
  box-shadow: 0 0 0 4px rgba(20, 152, 197, 0.10);
}

/* Reset de base */
.lpform-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* Champs pleine largeur */
.lpform-field-full {
  grid-column: span 2;
}

/* Téléphone en pleine largeur */
#lpform-telephone {
  width: 100%;
}

/* Forcer téléphone en full */
.lpform-field:has(#lpform-telephone) {
  grid-column: span 2;
}

/* Code postal + ville côte à côte */
.lpform-field-half {
  grid-column: span 1;
}

/* Sécurité : ville et CP bien alignés */
#lpform-codepostal,
#lpform-ville {
  width: 100%;
}