/* ==========================================================================
   PRANAYANE — Page d'accueil
   Depend de site.css (tokens, header, footer, boutons, formulaires).
   1. Hero        2. Bande d'atouts   3. Presentation
   4. Prestations 5. Acteurs          6. Bande contact
   ========================================================================== */

/* 1. Hero ================================================================ */
.hero {
  position: relative;
  isolation: isolate;
  background: linear-gradient(120deg, var(--rose-50) 0%, var(--rose-25) 62%);
  overflow: hidden;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.22fr 1fr;
  align-items: stretch;
  min-height: clamp(420px, 46vw, 560px);
}

.hero__content {
  position: relative;
  z-index: 2;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 1.15rem;
  text-align: center;
  padding: clamp(3rem, 6vw, 4.5rem) clamp(1.5rem, 4vw, 3rem)
    clamp(3rem, 6vw, 4.5rem) clamp(1.5rem, 18vw, 17.5rem);
}

.hero__title {
  font-size: clamp(2.3rem, 5vw, 3.6rem);
  margin-bottom: 0.35rem;
}

.hero__title em {
  margin-top: 0.06em;
}

.hero__services {
  font-size: clamp(0.92rem, 1.4vw, 1.06rem);
  color: var(--ink-soft);
  line-height: 1.6;
  letter-spacing: 0.015em;
}

.hero__services span {
  color: var(--rose-400);
  margin-inline: 0.3em;
}

.hero__rule {
  width: min(240px, 60%);
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--gold-500) 30%,
    var(--gold-500) 70%,
    transparent
  );
  margin-block: 0.25rem;
}

.hero__mantra {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.02rem, 1.55vw, 1.2rem);
  line-height: 1.55;
  color: var(--rose-600);
  max-width: 24rem;
}

.hero__media {
  position: relative;
  z-index: 1;
  overflow: hidden;
}

/* Desktop uniquement (le mobile garde son gabarit plus bas, inchange) :
   le hero occupe exactement la hauteur visible de l'ecran au premier
   affichage — fenetre moins le bandeau haut (topbar + en-tete), dont la
   hauteur reelle est mesuree en JS (site.js) et exposee via --header-h.
   Une hauteur explicite ici (plutot que min-height) donne aussi a la
   rangee de grille une taille concrete : sans cela, le height:100% de
   l'image n'aurait rien ou se resoudre (rangee auto) et retomberait sur
   le ratio naturel du fichier (portrait, 959x1280), qui gonflerait tout
   le hero avec lui d'autant plus que l'ecran est large. */
@media (min-width: 901px) {
  .hero__grid {
    height: calc(100vh - var(--header-h));
  }

  .hero__media {
    height: 100%;
  }
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% center;
  -webkit-mask-image: linear-gradient(
    100deg,
    transparent 0%,
    rgba(0, 0, 0, 0.35) 9%,
    #000 26%
  );
  mask-image: linear-gradient(
    100deg,
    transparent 0%,
    rgba(0, 0, 0, 0.35) 9%,
    #000 26%
  );
}

/* Hibiscus aquarelle en bas a gauche du hero */
.hero__motif {
  left: clamp(-7rem, -5vw, -3.5rem);
  bottom: clamp(-5rem, -4vw, -2rem);
  width: clamp(340px, 36vw, 560px);
  aspect-ratio: 1474 / 704;
  z-index: 1;
}

/* 2. Bande d'atouts ====================================================== */
.atouts {
  background: linear-gradient(180deg, #fbe9ec 0%, #fdf1f3 100%);
  border-block: 1px solid var(--rose-100);
  padding-block: clamp(1.85rem, 3.5vw, 2.6rem);
}

.atouts__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: clamp(0.75rem, 2vw, 1.75rem);
}

.atout {
  display: grid;
  justify-items: center;
  gap: 0.75rem;
  text-align: center;
}

.atout svg {
  width: 40px;
  height: 40px;
  color: var(--rose-600);
  stroke-width: 1.15;
}

.atout span {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  line-height: 1.55;
  color: var(--rose-800);
}

/* 3. Presentation ======================================================== */
.presentation {
  position: relative;
  overflow: hidden;
  background: var(--white);
  padding-block: var(--section-y);
}

.presentation__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 0.76fr 1.24fr;
  gap: clamp(2rem, 4vw, 3.25rem);
  align-items: center;
}

.presentation__text {
  display: grid;
  gap: 1.1rem;
  justify-items: start;
}

.presentation__text .eyebrow + .subtitle {
  margin-top: -0.55rem;
}

.presentation__text .btn {
  margin-top: 0.6rem;
}

/* Mosaique d'images */
.mosaique {
  display: grid;
  grid-template-columns: 0.74fr 1fr;
  grid-template-rows: auto auto;
  gap: clamp(0.6rem, 1.2vw, 0.9rem);
}

.mosaique figure {
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.mosaique img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.mosaique figure:hover img {
  transform: scale(1.05);
}

.mosaique__tall {
  grid-row: span 2;
  min-height: clamp(300px, 34vw, 420px);
}

.mosaique__wide {
  min-height: clamp(140px, 15vw, 190px);
}

.mosaique__duo {
  display: grid;
  grid-template-columns: 1.18fr 1fr;
  gap: clamp(0.6rem, 1.2vw, 0.9rem);
}

.mosaique__duo figure {
  min-height: clamp(140px, 15vw, 190px);
}

.mosaique__legende {
  position: relative;
}

.mosaique__legende figcaption {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 0.6rem 0.7rem 0.5rem;
  background: linear-gradient(0deg, rgba(126, 15, 63, 0.82) 0%, rgba(126, 15, 63, 0) 100%);
  color: var(--white);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.25;
}

.citation {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 0.5rem;
  padding: 1.25rem 1.1rem;
  text-align: center;
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--rose-100), var(--rose-50));
}

.citation__quote {
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 0.6;
  color: var(--rose-300);
}

.citation p {
  font-family: var(--font-display);
  font-size: clamp(0.88rem, 1.15vw, 1rem);
  line-height: 1.5;
  color: var(--rose-700);
  text-wrap: balance;
}

.citation svg {
  width: 20px;
  color: var(--rose-300);
}

.presentation__motif {
  left: clamp(-8rem, -6vw, -4.5rem);
  bottom: clamp(-6rem, -5vw, -3rem);
  width: clamp(300px, 32vw, 480px);
  aspect-ratio: 1474 / 704;
  opacity: 0.9;
}

/* 4. Prestations ========================================================= */
.prestations {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #fdeef1 0%, #fbe4e9 55%, #fdf1f3 100%);
  padding-block: var(--section-y);
}

.prestations__motif {
  top: 3%;
  width: clamp(170px, 20vw, 290px);
  aspect-ratio: 847 / 1264;
  opacity: 0.8;
}

.prestations__motif--g {
  left: -2.5rem;
}

.prestations__motif--d {
  right: -2.5rem;
}

.prestations .shell {
  position: relative;
  z-index: 1;
}

.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(0.85rem, 1.6vw, 1.35rem);
}

.card {
  display: grid;
  justify-items: center;
  gap: 0.7rem;
  padding: clamp(1.5rem, 2.4vw, 2.1rem) clamp(1rem, 1.8vw, 1.5rem);
  text-align: center;
  border-radius: var(--radius);
  background: linear-gradient(170deg, #fce2e8 0%, #fbeff1 100%);
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.card__icon {
  width: 46px;
  height: 46px;
  color: var(--rose-600);
  stroke-width: 1.15;
}

.card__title {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rose-600);
}

.card p {
  font-size: 0.83rem;
  line-height: 1.65;
  color: var(--ink-soft);
}

.card .link-more {
  margin-top: 0.35rem;
}

/* 5. Acteurs ============================================================= */
.acteurs {
  background: var(--white);
  padding-block: var(--section-y);
}

.acteurs__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(1rem, 2.4vw, 2rem);
}

.acteur {
  display: grid;
  justify-items: center;
  gap: 0.7rem;
  text-align: center;
}

.acteur__badge {
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: linear-gradient(160deg, var(--rose-100), var(--rose-50));
  border: 1px solid var(--rose-200);
  color: var(--rose-600);
  transition: transform 0.4s var(--ease), background 0.4s var(--ease);
}

.acteur:hover .acteur__badge {
  transform: translateY(-4px);
  background: linear-gradient(160deg, var(--rose-200), var(--rose-100));
}

.acteur__badge svg {
  width: 30px;
  height: 30px;
  stroke-width: 1.2;
}

.acteur h3 {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--rose-600);
  line-height: 1.5;
}

.acteur p {
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 15rem;
}

/* 6. Bande contact ======================================================= */
.contact-band {
  position: relative;
  overflow: hidden;
  background: linear-gradient(110deg, #fbe4ea 0%, #fdeff2 55%, #fbe7ec 100%);
  padding-block: clamp(2.75rem, 5vw, 4rem);
}

.contact-band__motif {
  left: clamp(-6rem, -4vw, -3rem);
  bottom: clamp(-3.5rem, -2.5vw, -1.5rem);
  width: clamp(230px, 26vw, 380px);
  aspect-ratio: 1264 / 843;
  opacity: 0.85;
}

.contact-band__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: clamp(1.75rem, 4vw, 3.25rem);
  align-items: center;
}

.contact-band__text {
  display: grid;
  gap: 0.75rem;
  padding-left: clamp(0rem, 8vw, 7rem);
}

.contact-band__text .section-title {
  text-align: left;
}

.contact-band__text .subtitle {
  font-size: 1.05rem;
}

.contact-band__text p {
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.7;
  max-width: 26rem;
}

.form-rappel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(0.6rem, 1.2vw, 0.9rem);
}

.form-rappel .btn {
  width: 100%;
  padding-inline: 1rem;
}

.form-rappel__note {
  grid-column: 1 / -1;
  justify-content: space-between;
}

/* Case de consentement du formulaire de rappel (memes regles que .case
   dans interieur.css, dupliquees ici car l'accueil ne charge pas ce fichier). */
.case {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.7rem;
  align-items: start;
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--ink-soft);
  cursor: pointer;
}

.case input {
  width: 17px;
  height: 17px;
  margin-top: 0.18rem;
  accent-color: var(--rose-600);
  cursor: pointer;
}

.case a {
  color: var(--rose-600);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form-rappel__consentement,
.form-rappel .g-recaptcha-cell {
  grid-column: 1 / -1;
}

.form-rappel__note .heart {
  color: var(--rose-300);
}

/* 7. Responsive ========================================================== */
@media (max-width: 1100px) {
  .atouts__grid {
    grid-template-columns: repeat(3, 1fr);
    row-gap: 1.75rem;
  }

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

@media (max-width: 980px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .presentation__grid,
  .contact-band__grid {
    grid-template-columns: 1fr;
  }

  .contact-band__text {
    padding-left: 0;
  }

  .contact-band__text .section-title {
    text-align: center;
  }

  .contact-band__text {
    justify-items: center;
    text-align: center;
  }

  .contact-band__motif {
    display: none;
  }
}

@media (max-width: 900px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }

  .hero__content {
    padding-inline: clamp(1.5rem, 6vw, 3rem);
    order: 2;
  }

  .hero__media {
    order: 1;
    min-height: clamp(240px, 46vw, 340px);
  }

  .hero__media img {
    -webkit-mask-image: linear-gradient(
      180deg,
      #000 0%,
      #000 72%,
      rgba(0, 0, 0, 0.4) 92%,
      transparent 100%
    );
    mask-image: linear-gradient(
      180deg,
      #000 0%,
      #000 72%,
      rgba(0, 0, 0, 0.4) 92%,
      transparent 100%
    );
  }

  .hero__motif {
    display: none;
  }

  .prestations__motif {
    display: none;
  }
}

@media (max-width: 760px) {
  .form-rappel {
    grid-template-columns: 1fr 1fr;
  }

  .form-rappel .btn {
    grid-column: 1 / -1;
  }

  .mosaique {
    grid-template-columns: 1fr;
  }

  .mosaique__tall {
    grid-row: auto;
    min-height: clamp(240px, 52vw, 320px);
  }
}

@media (max-width: 560px) {
  .atouts__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .acteurs__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .form-rappel {
    grid-template-columns: 1fr;
  }

  .form-rappel__note {
    flex-direction: column;
    gap: 0.35rem;
    text-align: center;
  }
}
