/* =========================
   HERO ANIMATIONS
   ========================= */
.hero-intro h1,
.hero-intro h2,
.hero-intro h3 {
  opacity: 0;
  transform: translateY(35px);
  animation: titleReveal 1s ease-out forwards;
  text-shadow:
    0 3px 10px rgba(0, 0, 0, 0.22),
    0 8px 24px rgba(0, 0, 0, 0.28);
}

.hero-intro p {
  opacity: 0;
  transform: translateY(24px);
  animation: textReveal 1s ease-out forwards;
  animation-delay: 0.2s;
  text-shadow:
    0 2px 6px rgba(0, 0, 0, 0.18),
    0 6px 18px rgba(0, 0, 0, 0.22);
}

.hero-intro .wp-block-button,
.hero-intro .wp-element-button,
.hero-intro a.wp-block-button__link {
  opacity: 0;
  transform: translateY(40px);
  animation: buttonReveal 1.05s ease-out forwards;
  animation-delay: 0.45s;
}

.hero-intro .wp-block-buttons .wp-block-button:first-child,
.hero-intro .wp-block-buttons .wp-block-button:first-child a {
  animation-delay: 0.45s !important;
}

.hero-intro .wp-block-buttons .wp-block-button:last-child,
.hero-intro .wp-block-buttons .wp-block-button:last-child a {
  animation-delay: 0.7s !important;
}

.hero-intro .wp-block-button__link,
.hero-intro .wp-element-button {
  transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
}

.hero-intro .wp-block-button__link:hover,
.hero-intro .wp-element-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
  filter: brightness(1.05);
}

.hero-intro .wp-block-cover__background {
  background-color: rgba(0, 0, 0, 0.30) !important;
  opacity: 1 !important;
}

.hero-intro h1::after,
.hero-intro h2::after,
.hero-intro h3::after {
  content: "";
  display: block;
  width: 0;
  height: 2px;
  margin: 14px auto 0;
  background: rgba(255, 255, 255, 0.85);
  animation: lineGrow 0.9s ease-out forwards;
  animation-delay: 0.6s;
}

.hero-intro .wp-block-cover__image-background,
.hero-intro .wp-block-cover__video-background,
.hero-intro img {
  transform: scale(1.04);
  animation: bgZoom 1.8s ease-out forwards;
}

.hero-intro .wp-block-cover__inner-container {
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center !important;
}

/* =========================
   TEXTE PERSONNALISÉ HERO
   ========================= */
.hero-title-custom {
  text-align: center !important;
  max-width: 100% !important;
}

/* =========================
   TABLETTE ET MOBILE
   ========================= */
@media (max-width: 1023px) {
  .home .hero-intro .wp-block-cover__inner-container {
    padding-left: 18px !important;
    padding-right: 18px !important;
  }
}

@media (max-width: 782px) {
  .home .hero-intro .wp-block-cover__inner-container {
    padding-left: 28px !important;
    padding-right: 28px !important;
  }
}

/* =========================
   KEYFRAMES
   ========================= */
@keyframes titleReveal {
  from {
    opacity: 0;
    transform: translateY(35px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes textReveal {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes buttonReveal {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes lineGrow {
  from {
    width: 0;
  }
  to {
    width: 90px;
  }
}

@keyframes bgZoom {
  from {
    transform: scale(1.20);
  }
  to {
    transform: scale(1);
  }
}

/* =========================
   MENU HAMBURGER
   ========================= */
@media (max-width: 900px) {
  .nav-tablette .wp-block-navigation__responsive-container-open {
    display: flex !important;
    align-items: center;
    justify-content: center;
  }

  .nav-tablette > *:not(.wp-block-navigation__responsive-container-open):not(.wp-block-navigation__responsive-container) {
    display: none !important;
  }

  .nav-tablette .wp-block-navigation__responsive-container.is-menu-open {
    display: block !important;
  }

  .nav-tablette .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
  }
}

@media (min-width: 901px) and (max-width: 1180px) {
  .nav-tablette .wp-block-navigation-item__label {
    font-size: 15px !important;
  }
}

/* Lignes du titre */
.hero-title-custom .hero-line {
  display: block !important;
}

.hero-title-custom .hero-line strong {
  display: inline-block !important;
}

/* MOBILE */
@media (max-width: 599px) {
  .hero-intro p.hero-title-custom,
  .wp-block-cover p.hero-title-custom {
    font-size: 25px !important;
    line-height: 1.3 !important;
    font-weight: 700 !important;
    text-align: center !important;
    margin: 0 !important;
    margin-top: 18px !important;
    margin-bottom: -6px !important;
    padding: 0 !important;
  }

  .hero-intro .hero-title-custom .hero-line-2,
  .wp-block-cover .hero-title-custom .hero-line-2 {
    margin-top: 0 !important;
  }

  .hero-intro .hero-title-custom .hero-line-3,
  .wp-block-cover .hero-title-custom .hero-line-3 {
    margin-top: 0 !important;
  }

  .hero-intro p:not(.hero-title-custom),
  .wp-block-cover p:not(.hero-title-custom) {
    font-size: 16px !important;
    line-height: 1.2 !important;
    font-weight: 400 !important;
    text-align: center !important;
    transform:
translatey(28px) !important;
    margin-bottom: 10px !important;
  }
}
/* TABLETTE PORTRAIT */
@media (min-width: 600px) and (max-width: 1024px) and (orientation: portrait) {
  .hero-intro p.hero-title-custom,
  .wp-block-cover p.hero-title-custom {
    font-size: 42px !important;
    line-height: 1.1 !important;
    font-weight: 700 !important;
    text-align: center !important;
		margin-top: 50px !important;
    padding: 0 !important;
  }

  .hero-intro .hero-title-custom .hero-line-2,
  .wp-block-cover .hero-title-custom .hero-line-2 {
    margin-top: -6px !important;
  }

  .hero-intro .hero-title-custom .hero-line-3,
  .wp-block-cover .hero-title-custom .hero-line-3 {
    margin-top: 0 !important;
  }
}

a {
  text-decoration: none !important;
}

a:hover {
  text-decoration: underline !important;
}

@media (min-width: 1025px) {
  .footer-texte .wp-block-paragraph:first-child {
    font-size: 24px !important;
  }

  .footer-texte .wp-block-paragraph:last-child {
    font-size: 16px !important;
    line-height: 1.4 !important;
  }
}