/* ---------- RESET SIMPLE ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #001726;
  background-color: #fffefa;
  line-height: 1.6;
}
body {
  margin: 0;
}
html,
body {
  width: 100%;
  overflow-x: hidden;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: #fffefa;
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.2rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.beta-button {
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  border: none;
  text-decoration: none;
  background: linear-gradient(135deg, #ff835f, #ff9d58);
  color: #fffefa;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.beta-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 30px rgba(255, 131, 95, 0.45);
}


.hero {
  padding: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


.hero-right {
  margin: 0;
  padding: 0;
}
.hero-inner {
  padding-left: 2rem; /* équilibre avec le fond */
}
.hero-left {
  max-width: 550px; /* optionnel mais ça structure mieux */
  padding-left: 3rem; /* rapproche de la gauche */
}

.hero-title {
  font-size: 4.2rem; /* augmente clairement le titre */
  line-height: 1.1;
  font-weight: 700;
}

.hero-illustration {
  margin: 0;
  padding: 0;
  display: block; }

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

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

/* ---------- LAYOUT GLOBAL ---------- */

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

/* ---------- HEADER ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background-color: #fffefa;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  overflow-x: hidden;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
}

.logo img {
  height: 70px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.95rem;
  max-width: 100%;
  flex-wrap: wrap;
}

.main-nav a {
  color: #001726;
  font-weight: 500;
}

.nav-cta {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background-color: #ff835f;
  color: #001726;
  font-weight: 600;
}

/* SECTION HERO */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

/* FOND WAVES */
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("assets/hero-bg-waves.png");
  background-size: cover;
  background-position: center;
  z-index: -2;
}

/* CONTENU INTERNE TEXTE */
.hero-inner {
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
}

/* TEXTE – ON NE TOUCHE PAS À TA TYPO */
.hero-left {
  width: 50%;
  padding-left: 80px;
  max-width: 600px;
}

/* ILLUSTRATION COLLÉE EN BAS À DROITE */
.hero-right {
  position: absolute;
  right: 0;
  bottom: 0;
  height: 100%;
  width: auto;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  z-index: 1;
  pointer-events: none;
}

/* IMAGE DE LA MAIN */
.hero-illustration {
  height: 100%;     /* prend toute la hauteur de la section */
  width: auto;
  object-fit: contain;
  display: block;
}

/* ---------- BOUTONS ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.9rem 1.8rem;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background-color: #001726;
  color: #fffefa;
}

.btn-primary:hover {
  opacity: 0.9;
}

.btn-full {
  width: 100%;
}

/* ---------- SECTION CONSTAT ---------- */

.section-constat {
  background-color: #fffefa;
}

.constat-inner {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.constat-illustration {
  flex: 1;
}
.constat-illustration img {
  border-radius: 40px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.06);
}

.constat-text {
  flex: 1.2;
  background-color: #fff;
  border-radius: 24px;
  padding: 2.5rem;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.05);
}

.constat-text h2 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 2rem;
}

.constat-text ul {
  margin: 1rem 0 0;
  padding-left: 1.1rem;
}

/* ---------- SECTION VISION ---------- */

.section-vision {
  text-align: center;
}

.section-vision h2 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 2rem;
}

.section-intro {
  max-width: 44rem;
  margin: 0 auto 3rem;
}

.pillars {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.pillar-card {
  padding: 1.5rem 1rem 1.75rem;
  border-radius: 24px;
  background-color: #fff;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.04);
}

.pillar-card img {
  height: 56px;
  margin: 0 auto 1rem;
}

.pillar-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
}

/* ---------- SECTION FONCTIONNEMENT ---------- */

.section-fonctionnement {
  background-color: #ffe1c5;
}

.fonctionnement-inner {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.fonctionnement-illustration {
  flex: 2;
  z-index: 1;
  overflow: hidden;
}

.fonctionnement-illustration img {
  width: 100%;
  max-width: 620px;
  margin: 0 auto;
  display: block;
}


.fonctionnement-text {
  flex: 1.2;
  background-color: #fffefa;
  border-radius: 24px;
  padding: 2.5rem;
}

.fonctionnement-text h2 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 2rem;
}

.fonctionnement-text ul {
  margin: 1rem 0 0;
  padding-left: 1.1rem;
}

/* ---------- SECTION FORMULAIRE ---------- */

.section-form {
  position: relative;
  padding: 5rem 0;
  background-color: #ff835f;
  color: #fffefa;
}

.section-form-bg {
  position: absolute;
  inset: 0;
  opacity: 0.3;
  background-image: url(".assets/hero-bg-waves.png");
  background-size: cover;
  background-position: center;
  z-index: -2;
}

.form-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.3fr);
  gap: 3rem;
  align-items: center;
}
.contact-illustration {
  width: 100%;
  max-width: 420px;
  margin-bottom: 1.5rem;
  display: block;
  border-radius:40px;
}


.form-text h2 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 2.5rem;
}

.form-text p {
  max-width: 26rem;
  font-size: 1.05rem;
  line-height: 1.7;
}

.form-card {
  background-color: #fffefa;
  color: #001726;
  border-radius: 24px;
  padding: 2.5rem;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.15);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

input[type="text"],
input[type="email"],
select {
  width: 100%;
  border-radius: 8px;
  border: 1px solid rgba(0, 23, 38, 0.18);
  padding: 0.7rem 0.8rem;
  font: inherit;
  background-color: #fff;
}

input:focus,
select:focus {
  outline: 2px solid #ff835f;
  outline-offset: 1px;
  border-color: #ff835f;
}

.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.9rem;
}

.checkbox-group input {
  margin-right: 0.4rem;
}

.form-note {
  margin-top: 1rem;
  font-size: 0.8rem;
  opacity: 0.8;
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 50;
}

.modal.is-visible {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
}

.modal-content {
  position: relative;
  z-index: 1;
  background: #fffefa;
  border-radius: 24px;
  padding: 2rem 2.5rem;
  max-width: 460px;
  width: 90%;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
  text-align: left;
}

.modal-content h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-size: 1.4rem;
}

.modal-content p {
  margin-bottom: 1.5rem;
}

.modal-close {
  position: absolute;
  top: 0.8rem;
  right: 0.9rem;
  border: none;
  background: transparent;
  font-size: 1.4rem;
  cursor: pointer;
}

/* ---------- FOOTER ---------- */

.site-footer {
  padding: 1.5rem 0 2rem;
  background-color: #fffefa;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  font-size: 0.85rem;
  text-align: center;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 640px) {

  /* HEADER */
  .header-inner {
    flex-direction: row;
    justify-content: space-between;
  }

  .main-nav {
    display: none;
  }

  /* HERO */
  .hero {
    height: auto;
    min-height: 100vh;
    padding: 4.5rem 1.5rem 9rem; /* espace en bas pour l'illustration */
    overflow: hidden;
  }

  .hero-inner {
    flex-direction: column;
    align-items: flex-start;
    padding-left: 0;
    height: auto;
  }

  .hero-left {
    width: 100%;
    padding-left: 0;
    max-width: none;
  }

  .hero-subtitle {
    font-size: 2.2rem;
    line-height: 1.2;
  }

  .hero-right,
  .hero-illustration {
    display: none;
  }

  /* CONSTAT */
  .constat-inner {
    flex-direction: column;
    gap: 2rem;
  }

  .constat-text,
  .fonctionnement-text,
  .form-card {
    padding: 1.7rem;
  }

  /* Réduction illustration CONSTAT */
  .constat-illustration img {
    width: 75%;
    max-width: 300px;
    margin: 0 auto 1.5rem;
    display: block;
  }

  /* VISION */
  .pillars {
    grid-template-columns: 1fr;
  }

  /* Icônes plus grandes */
  .pillar-card img {
    height: 72px;
  }

  /* FONCTIONNEMENT */
  .fonctionnement-inner {
    flex-direction: column;
    gap: 2rem;
    align-items: center;
    text-align: left;
  }

  /* Réduction illustration FONCTIONNEMENT */
  .fonctionnement-illustration img {
    width: 100%;
    max-width: 400px;
    margin: 0 auto 1.5rem;
    display: block;
  }

  /* FORMULAIRE */
  .form-inner {
    grid-template-columns: 1fr;
  }

  .form-text {
    text-align: left;
  }

  /* Réduction illustration CONTACT */
  .contact-illustration {
    width: 75%;
    max-width: 260px;
    margin: 0 auto 1.5rem;
    display: block;
  }

  /* Sécurise tous les conteneurs en mobile */
  .container,
  .site-header,
  .hero,
  .section,
  .section-constat,
  .section-vision,
  .section-fonctionnement,
  .section-form {
    max-width: 100%;
    overflow-x: hidden;
  }

  /* Conteneur plus compact en mobile */
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

}

