/*
Theme Name: Hestia Child
Template: hestia
*/

/* -------------------- RESET -------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* -------------------- HERO SECTION -------------------- */
.hero-section {
    position: relative;
    height: 100vh;
    text-align: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: background-image 0.5s ease-in-out;
    font-family: "Alice", serif !important;
}

.background-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.background-slider .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity .8s ease-in-out;
    filter: brightness(0.85);
}

.background-slider .slide.active {
    opacity: 1;
}

.hero-content-desktop {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 8px;
    margin: 0 auto;
    top: 10px;
    color: #fff !important;
}

/* ------ titre descendu ------ */
.hero-text-wrapper {
    margin-top: 20px !important; 
}

.hero-content-desktop h1 {
    font-size: 3rem;
    margin-bottom: 25px;
    text-shadow: 0 2px 6px rgba(0,0,0,0.6);
    font-family: 'Adamina', serif;
    font-style: italic;
}

.hero-content-desktop p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    line-height: 1.5;
    text-shadow: 0 1px 5px rgba(0,0,0,0.5);
    font-family: 'Alice', serif;
}

/* -------------------- MENU -------------------- */

/* ------ menu remonté ------ */
.hero-menu {
    position: relative;
    top: -95px !important; 
    display: flex;
    margin-bottom: 0px;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.hero-menu a {
    color: #fff !important;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
    font-size: 1.75rem !important; /* optionnel : réduire légèrement la taille */
    margin-left: 6px !important;
    margin-right: 6px !important;
    padding-left: 6px !important;
    padding-right: 6px !important;
}

.hero-menu a:hover {
    color: #f5a623 !important;
}

/* -------------------- LOGIN ICON -------------------- */
.login-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px !important;
    height: 32px !important;
    padding:0 !important;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.1);
    transition: all .3s ease;
}


/* Alignement parfait du menu */
.hero-menu a,
.hero-menu .login-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.login-icon svg {
    width: 20px;
    height: 24px;
    vertical-align: middle;
    transition: transform .3s ease, color .3s ease;
}

.login-icon:hover {
    background-color: #f5a623;
    color: #fff !important;
    transform: scale(1.15);
}

/* -------------------- BOUTONS -------------------- */
.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 10px;
}

.btn-orange {
    background-color: #f57c00;
    color: #fff !important;
    padding: 12px 35px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

.btn-orange:hover {
    background-color: #e67300;
    color: #fff !important;
}

.btn-transparent {
    background-color: transparent;
    border: 2px solid #fff;
    color: #fff !important;
    padding: 12px 35px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

.btn-transparent:hover {
    background-color: rgba(255,255,255,0.2);
}

/* -------------------- FORCE COLORS -------------------- */
.hero-content-desktop h1,
.hero-content-desktop p,
.hero-menu a,
.mobile-infos h2,
.mobile-infos p,
.call-btn,
.btn-orange,
.btn-transparent {
    color: #fff !important;
}

/* -------------------- RESPONSIVE MOBILE -------------------- */
@media(max-width:768px) { 
  .hero-content-desktop { top: 25%; width: 90%; text-align: center; } 
  .hero-text-wrapper { margin-top: 60px; } 
  .hero-content-desktop h1 { font-size: 1.6rem; line-height: 1.2; } 
  .hero-content-desktop p { font-size: 1.1rem; line-height: 1.3; }
  .hero-menu a { font-size: 1.4rem; margin: 0 8px; padding: 5px 8px; } 
  .hero-buttons { display: none; } 
}

/* ----- TITRE RESPONSIVE DANS LE HEADER ----- */
@media (max-width: 768px) {
    .hero-text-wrapper h1 {
        font-size: 2rem !important; /* Taille réduite */
        line-height: 1.2 !important;
    }

    .hero-text-wrapper p {
        font-size: 1rem !important; /* Sous-titre plus petit */
    }
}

  /* Forcer sur le h1 si nécessaire */
  body .hero-section .hero-content-desktop .hero-text-wrapper h1 {
    margin-top: 0 !important;
    transform: translateY(-12px) !important;
  }
}
/* Mobile hero height */
@media (max-width: 768px) {
    .hero-section {
        padding-top: 40px !important;  /* réduit le top */
        padding-bottom: 40px !important; /* réduit le bottom */
        height: 700px; /* Hauteur réduite */
        background-size: contain; /* l'image reste entière mais pas stretchée */
        background-repeat: no-repeat; /* pour éviter répétition si image plus petite */
        background-position: center; /* recentre l'image */
    }

    .hero-section .hero-text-wrapper {
        margin-top: 3px; /* remonter un peu le texte */
    }
}


/* Exemple : style du contenu */
.page-id-123 .entry-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

/* FORCE LE MENU À REMONTER AU NIVEAU DU HERO */
.navbar,
.navbar-fixed-top {
    margin-top: -100px !important;  /* remonte le menu */
    position: relative !important;  /* enlève le blocage du fixed */
    background: transparent !important; /* enlève le fond */
    box-shadow: none !important;
}



