/* accueil.css — styles spécifiques à la page d'accueil */

/* Sur l'accueil uniquement, le fond passe en plein écran (au lieu des 70vh
   génériques de .hero-bg) et reçoit un voile sombre pour que le texte blanc
   du hero reste lisible sur la photo. */
body.page-accueil .hero-bg {
  height: 100vh;
  min-height: 600px;
}

body.page-accueil .hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(20, 24, 29, 0.15) 0%, rgba(20, 24, 29, 0.5) 55%, rgba(20, 24, 29, 0.65) 100%);
  pointer-events: none;
}

/* Logo plus grand sur l'accueil, même quand le menu latéral réduit le fond */
body.page-accueil .logo img {
  height: 120px;
}

body.page-accueil .hero-bg.reduit .logo img {
  height: 108px;
}

.hero-contenu {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 24px;
  padding: 140px 24px 100px;
  box-sizing: border-box;
}

.hero-contenu h1 {
  width: 100%;
  color: var(--blanc);
  font-size: clamp(2rem, 4vw, 3.2rem);
  max-width: 900px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

.hero-sous-titre {
  width: 100%;
  color: var(--blanc);
  font-size: 1.15rem;
  max-width: 680px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
}

.hero-boutons {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 8px;
}

.hero-logo-mobile {
  display: none;
}

.hero-fleche {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  z-index: 2;
  color: var(--blanc);
  padding: 8px;
  display: flex;
  animation: hero-fleche-rebond 1.8s ease-in-out infinite;
  transition: opacity 0.2s ease;
}

.hero-fleche:hover,
.hero-fleche:focus-visible {
  opacity: 0.7;
}

@keyframes hero-fleche-rebond {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(8px);
  }
}

/* ==========================================================================
   Section "Nous trouver" (adresse + carte)
   ========================================================================== */

.section-adresse {
  background: var(--blanc);
  padding: 72px 24px;
}

.adresse-carte-conteneur {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(200px, 260px) 1fr;
  gap: 40px;
  align-items: center;
}

.adresse-bloc {
  text-align: left;
}

.adresse-titre {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 8px;
  margin-left: -24px;
  margin-bottom: 16px;
}

.adresse-titre h2 {
  text-align: left;
  margin-bottom: 0;
  white-space: nowrap;
}

.icone-localisation {
  width: 48px;
  height: 48px;
  object-fit: contain;
  flex-shrink: 0;
}

.adresse-texte {
  font-size: 1.05rem;
  line-height: 1.7;
}

.adresse-texte strong {
  display: block;
  color: var(--bleu-fonce);
  font-size: 1.2rem;
  white-space: nowrap;
  margin-bottom: 4px;
}

.carte-conteneur {
  border-radius: var(--radius-l);
  overflow: hidden;
  box-shadow: var(--ombre-douce);
  aspect-ratio: 16 / 10;
}

.carte-conteneur iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

@media (max-width: 1024px) {
  .adresse-carte-conteneur {
    grid-template-columns: 1fr;
  }

  body.page-accueil .hero-bg {
    height: auto;
    min-height: 100vh;
  }

  body.page-accueil .logo img,
  body.page-accueil .hero-bg.reduit .logo img {
    height: 56px;
  }

  .hero-contenu {
    flex: 1;
    height: auto;
    padding: 32px 20px 64px;
  }
}

@media (max-width: 640px) {
  body.page-accueil .hero-bg {
    min-height: 92vh;
  }

  /* Sur téléphone, le logo du bandeau du haut (à côté du bouton rond du
     menu) est masqué : une copie s'affiche à la place juste au-dessus du
     titre, dans le hero, pour ne pas se retrouver coincé à côté du bouton
     du menu latéral. */
  body.page-accueil .header-bar .logo {
    display: none;
  }

  body.page-accueil .header-bar {
    padding: 0;
    min-height: 0;
  }

  .hero-logo-mobile {
    display: inline-flex;
  }

  .hero-logo-mobile img {
    height: 64px;
    width: auto;
  }

  .hero-contenu {
    padding: 20px 20px 48px;
    gap: 16px;
  }

  .hero-contenu h1 {
    font-size: 1.7rem;
  }

  .hero-sous-titre {
    font-size: 1rem;
  }

  .hero-boutons {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .hero-boutons .btn {
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    justify-content: center;
    padding: 12px 24px;
  }

  .section-adresse {
    padding: 48px 20px;
  }
}
