/* ============================================================
   Section Hero
   ============================================================ */

/* ── Variables locales ── */
.hero-section {
  --hero-bg: #f2f7f5;
  --hero-color-dark: #025253;
  --hero-color-accent: #21b593;
  --hero-color-text: #003c3d;
  --hero-btn-primary-bg: #21b593;
  --hero-btn-primary-bg-hover: #1a9578;
  --hero-btn-primary-text: #fefefe;
  --hero-btn-secondary-border: #025253;
  --hero-btn-secondary-text: #025253;
  --hero-btn-secondary-bg-hover: #025253;
  --hero-btn-secondary-text-hover: #fefefe;
  --hero-image-radius: 70px 10px 70px 10px;
}

/* ── Layout principal ── */
.hero-section {
  background-color: var(--hero-bg);
  position: relative;
  overflow: hidden;
  padding: 150px 0;
}

/* Forme décorative (pilule inclinée) — desktop */
.hero-section::before {
  content: '';
  position: absolute;
  width: 277px;
  height: 913px;
  background-color: rgba(33, 181, 147, 0.06);
  border-radius: 500px 500px 500px 301px;
  top: 62%;
  right: 60px;
  transform: translateY(-50%) rotate(34.72deg);
  pointer-events: none;
  z-index: 0;
}

/* ── Conteneur centré ── */
.hero-section__inner {
  position: relative;
  z-index: 1;
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
}

/* ── Bloc texte ── */
.hero-section__content {
  flex: 0 1 602px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

/* ── Titre ── */
.hero-section__title {
  display: flex;
  flex-direction: column;
  gap: 0;
  line-height: 1.12;
  margin: 0;
}

.hero-section__title-line1 {
  display: block;
  font-family: 'SweetSansPro', sans-serif;
  font-weight: 700;
  font-style: normal;
  font-size: clamp(2.5rem, 4.5vw, 4.375rem); /* 40px → 70px */
  color: var(--hero-color-dark);
  line-height: 1.12;
}

.hero-section__title-line2 {
  display: block;
  font-family: 'SweetSansPro', sans-serif;
  font-weight: 500;
  font-style: italic;
  font-size: clamp(2.5rem, 4.5vw, 4.375rem);
  color: var(--hero-color-accent);
  line-height: 1.12;
}

/* ── Description ── */
.hero-section__description {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero-section__desc-p1,
.hero-section__desc-p2 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: clamp(0.9375rem, 1.3vw, 1.25rem); /* 15px → 20px */
  line-height: 1.6;
  margin: 0;
}

.hero-section__desc-p1 {
  color: var(--hero-color-text);
}

.hero-section__desc-p2 {
  color: var(--hero-color-dark);
}

/* ── CTAs ── */
.hero-section__cta {
  display: flex;
  align-items: stretch;
  gap: 24px;
  flex-wrap: nowrap;
}

/* ── Boutons communs ── */
.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 40px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 1.1875rem; /* 19px */
  letter-spacing: -0.2px;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
  cursor: pointer;
}

.hero-btn__label {
  line-height: 1;
}

.hero-btn__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

/* ── Bouton principal ── */
.hero-btn--primary {
  background-color: var(--hero-btn-primary-bg);
  color: var(--hero-btn-primary-text);
  height: 60px;
  padding: 0 10px 0 45px;
  min-width: 260px;
  justify-content: space-between;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.hero-btn--primary .hero-btn__icon {
  background-color: transparent;
  border-radius: 30px;
  width: 40px;
  height: 40px;
  transition: all 0.3s ease;
}

.hero-btn--primary:hover .hero-btn__icon {
  background-color: #025253;
  border-radius: 30px;
  width: 40px;
  height: 40px;
}

.hero-btn--primary .hero-btn__icon svg path {
  stroke: #D4F7A5;
}

.hero-btn--primary:hover,
.hero-btn--primary:focus-visible {
  color: var(--hero-btn-primary-text);
  padding: 0 10px 0 25px;
}

.hero-btn--primary:hover .hero-btn__icon,
.hero-btn--primary:focus-visible .hero-btn__icon {
  transform: rotate(45deg);
}

.hero-btn--primary .hero-btn__label {
  margin-right: 0;
  transition: all 0.3s ease;
}

.hero-btn--primary:hover .hero-btn__label {
  margin-right: 20px;
}

/* ── Bouton secondaire ── */
.hero-btn--secondary {
  background-color: transparent;
  color: var(--hero-btn-secondary-text);
  border: 1.5px solid var(--hero-btn-secondary-border);
  height: 60px;
  padding: 0 30px;
  box-shadow: 0 1px 1px rgba(16, 24, 40, 0.05);
}

.hero-btn--secondary:hover,
.hero-btn--secondary:focus-visible {
  background-color: var(--hero-btn-secondary-bg-hover);
  color: var(--hero-btn-secondary-text-hover);
  border-color: var(--hero-btn-secondary-bg-hover);
}

.hero-btn--secondary:hover .hero-btn__icon,
.hero-btn--secondary:focus-visible .hero-btn__icon {
  transform: translateX(3px);
}

/* ── Image — desktop (côté droit) ── */
.hero-section__image-wrap--desktop {
  flex: 0 0 660px;
  align-self: stretch;
  min-height: 480px;
  border-radius: var(--hero-image-radius);
  overflow: hidden;
}

.hero-section__image-wrap--desktop .hero-section__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: var(--hero-image-radius);
}

/* Image mobile masquée en desktop */
.hero-section__image-wrap--mobile {
  display: none;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* ── ≤ 1530px : image fixe avec ratio, texte qui rétrécit ── */
@media (max-width: 1530px) {
  .hero-section__image-wrap--desktop {
    flex: 0 0 auto;        /* l'image ne grandit ni ne rétrécit */
    width: 520px;
    aspect-ratio: 660 / 520; /* conserve le ratio d'origine */
    align-self: center;
    min-height: unset;
  }

  .hero-section__image-wrap--desktop .hero-section__image {
    height: 100%;
  }

  .hero-section__content {
    flex: 1 1 0;   /* prend l'espace restant et peut rétrécir */
    min-width: 0;  /* permet de passer sous la largeur intrinsèque */
  }
}

/* ── ≤ 1400px : padding réduit ── */
@media (max-width: 1400px) {
  .hero-section {
    padding: 75px 0;
  }
}

/* ── ≤ 1380px : boutons empilés ── */
@media (max-width: 1380px) {
  .hero-section__cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-btn--primary,
  .hero-btn--secondary {
    width: auto;
  }
}

/* ── Large tablette (≤ 1280px) ── */
@media (max-width: 1280px) {
  .hero-section__inner {
    gap: 40px;
  }

  .hero-section__image-wrap--desktop {
    flex: 0 0 480px;
    min-height: 420px;
  }

  .hero-section__content {
    flex: 1 1 auto;
  }
}

/* ── Tablette (≤ 991px) — bascule vers layout mobile ── */
@media (max-width: 991px) {
  .hero-section {
    padding: 68px 0 80px;
  }

  /* Forme décorative adaptée au mobile (deux petites pilules en haut-gauche) */
  .hero-section::before {
    width: 84px;
    height: 276px;
    border-radius: 500px 500px 500px 301px;
    top: 30px;
    right: auto;
    left: -10px;
    transform: rotate(34.72deg);
  }

  .hero-section::after {
    content: '';
    position: absolute;
    width: 84px;
    height: 276px;
    background-color: rgba(33, 181, 147, 0.06);
    border-radius: 500px 500px 500px 301px;
    transform: rotate(34.72deg);
    top: -150px;
    left: 80px;
    pointer-events: none;
    z-index: 0;
  }

  .hero-section__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 40px;
  }

  .hero-section__content {
    flex: none;
    width: 100%;
    gap: 32px;
    align-items: center;
    text-align: center;
  }

  /* Afficher l'image mobile entre le titre et la description */
  .hero-section__image-wrap--mobile {
    display: block;
    width: 100%;
    height: 169px;
    border-radius: var(--hero-image-radius);
    overflow: hidden;
  }

  .hero-section__image-wrap--mobile .hero-section__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: var(--hero-image-radius);
  }

  /* Masquer l'image desktop */
  .hero-section__image-wrap--desktop {
    display: none;
  }

  .hero-section__title {
    align-items: center;
  }

  .hero-section__cta {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    width: 100%;
  }

  .hero-btn--primary,
  .hero-btn--secondary {
    width: 100%;
    justify-content: center;
    min-width: unset;
    font-size: 0.875rem; /* 14px */
    padding: 15px 20px;
  }

  .hero-btn--primary {
    padding: 15px 20px;
  }

  .hero-btn--primary .hero-btn__icon {
    width: 32px;
    height: 32px;
  }
}

/* ── Mobile (≤ 575px) ── */
@media (max-width: 575px) {
  .hero-section {
    padding: 60px 0 70px;
  }

  .hero-section__inner {
    padding: 0 24px;
  }
}
