/*
 Theme Name: Hello Child
 Theme URI: https://elementor.com/hello-theme/
 Description: Thème enfant de Hello Elementor
 Author: Elementor Team
 Author URI: https://elementor.com/
 Template: hello-elementor
 Version: 1.0.0
 Text Domain: hello-child
*/

/* Accueil bannière image */

.elementor-widget-image img {
  animation: slowZoom 20s ease-in-out infinite;
  transform-origin: center center;
}

@keyframes slowZoom {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}
/* =================================================
   HERO WRAPPER (CONTENEUR PARENT IMAGE + TEXTE)
   ================================================= */

.hero-wrapper {
  position: relative;
  overflow: hidden; /* nécessaire pour le zoom */
  min-height: 70vh;
}

/* =================================================
   IMAGE DE BANNIÈRE (FOND)
   ================================================= */

.hero-wrapper .elementor-widget-image {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-wrapper .elementor-widget-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;

  /* Animation EXISTANTE conservée */
  animation: slowZoom 20s ease-in-out infinite;
  transform-origin: center center;
}

/* Animation zoom lente */
@keyframes slowZoom {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

/* =================================================
   CONTENEUR TEXTE HERO (SUPERPOSÉ)
   ================================================= */

.hero-content {
  position: absolute;
  inset: 0;
  z-index: 2;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  text-align: center;
  color: #ffffff;

  pointer-events: none; /* optionnel */
}

/* =================================================
   RESET COMPORTEMENT ELEMENTOR INTERNE
   ================================================= */

.hero-content .elementor-widget {
  width: auto !important;
  max-width: 100%;
}

/* =================================================
   TITRE
   ================================================= */

.hero-content .elementor-heading-title {
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.2;
  margin: 0 0 1rem 0;
  max-width: 900px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

/* =================================================
   TEXTE DESCRIPTIF
   ================================================= */

.hero-content .elementor-widget-text-editor {
  max-width: 700px;
}

.hero-content .elementor-widget-text-editor p {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  line-height: 1.6;
  margin: 0;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

/* =================================================
   ANIMATION SYNCHRO TEXTE AVEC ZOOM
   ================================================= */

.hero-content {
  animation: fadeInHero 2.5s ease-out forwards;
  opacity: 0;
}

@keyframes fadeInHero {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  40% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 1;
  }
}

/* HEADER GLOBAL */
.site-header {
    width: 100%;
    background: #000;
    padding: 15px 40px;
    z-index: 9999;
}

/* HEADER STICKY */
.sticky-header {
    position: sticky;
    top: 0;
}

/* GRID DU HEADER */
.header-grid {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    align-items: center;
}


/* HEADER FULL WIDTH */
.site-header {
    width: 100%;
    background-color: #000;
    padding: 15px 40px;
    box-sizing: border-box;
}

/* Supprime les marges du body et du html */
html, body {
    margin: 0;
    padding: 0;
}
/* HEADER STICKY */
.sticky-header {
    position: sticky;
    top: 0;
    z-index: 9999;
    transition: background-color 0.3s ease, padding 0.3s ease;
}

/* HEADER TRANSPARENT AU SCROLL */
.sticky-header.scrolled {
    background-color: rgba(0, 0, 0, 0.7); /* semi-transparent */
    backdrop-filter: blur(6px); /* effet premium */
    padding: 10px 40px; /* header plus fin au scroll */
}

/* LOGO */
.header-logo img {
    max-height: 60px;
}

.header-socials img {
    width: 22px;
    height: 22px;
    margin-left: 15px;
    filter: brightness(0) invert(1); /* rend les icônes blanches */
    transition: opacity 0.2s ease;
}

.header-socials img:hover {
    opacity: 0.7;
}

/* LOGO RESPONSIVE */
.header-logo img {
    height: auto;
    width: auto;
    max-height: 60px; /* tu peux ajuster */
    max-width: 100%;
    object-fit: contain;
    display: block;
}


/* MENU */
.menu-links {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.menu-links a {
    color: white;
    text-decoration: none;
    font-weight: 600;
}

.menu-links {
    list-style: none; /* retire les puces */
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 30px;
}

.menu-links li {
    list-style: none; /* sécurité supplémentaire */
}

.menu-links a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
}


/* RÉSEAUX SOCIAUX */
.header-socials {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

.header-socials a {
    color: orange;
    font-weight: bold;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .header-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 20px;
    }

    .menu-links {
        flex-direction: column;
        gap: 15px;
    }

    .header-socials {
        justify-content: center;
    }
}

/* Séparateur design */
.footer-separator {
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, transparent, orange, transparent);
    margin-top: 60px;
    margin-bottom: -20px;
}

/* Footer global */
.site-footer {
    width: 100%;
    background-color: #000;
    padding: 50px 40px;
    box-sizing: border-box;
    color: white;
}

/* Grille */
.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

/* Titres */
.footer-col h3 {
    color: orange;
    font-size: 18px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

/* Liens */
.footer-col a {
    color: white;
    text-decoration: none;
    font-size: 14px;
}

.footer-col a:hover {
    color: orange;
}

/* Kiosques */
.kiosk-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.kiosk-item img {
    width: 18px;
    height: 18px;
    filter: brightness(0) invert(1);
}

/* Réseaux sociaux */
.footer-socials {
    margin-top: 15px;
    display: flex;
    gap: 15px;
}

.footer-socials img {
    width: 22px;
    height: 22px;
    filter: brightness(0) invert(1);
    transition: opacity 0.2s ease;
}

.footer-socials img:hover {
    opacity: 0.7;
}

/* Responsive */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .kiosk-item {
        justify-content: center;
    }

    .footer-socials {
        justify-content: center;
    }
}

/* =================================================
   TABLETTE
   ================================================= */

@media (max-width: 1024px) {
  .hero-wrapper {
    min-height: 65vh;
  }

  .hero-content .elementor-heading-title {
    font-size: 2.4rem;
  }

  .hero-content .elementor-widget-text-editor p {
    font-size: 1rem;
  }
}

/* =================================================
   MOBILE
   ================================================= */

@media (max-width: 767px) {
  .hero-wrapper {
    min-height: 60vh;
  }

  .hero-content {
    padding: 0 1.5rem;
  }

  .hero-content .elementor-heading-title {
    font-size: 1.8rem;
  }

  .hero-content .elementor-widget-text-editor p {
    font-size: 0.95rem;
  }
}
