/* Header page d'accueil */
body.home .header-home{
    width: 100vw;
    height: 100vh;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    position: relative !important;
}
body.home .header-home:before {
    position: absolute;
    content: "";
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: linear-gradient(180deg,rgba(0, 0, 0, 0.68) 0%, rgba(0, 0, 0, 0) 49%, rgba(255, 255, 255, 0) 100%);
}

/* Effet reveal pour les éléments du header */
.reveal-element {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal-element.revealed {
    opacity: 1;
    transform: translateY(0);
}

body.home .header-container{
    padding-top: 30px;
}
body.home .header-container .header-logo-link {
    margin-top: 30px;
}
body.home .header-container h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(34px, 7vw, 90px);
    font-weight: 300;
    line-height: 1.2;
    text-align: center;
    color: #ffffff;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
    margin: 50px 0;
    padding: 0 20px;
}

body.home .header-container h1 strong {
    display: block;
    font-size: clamp(40px, 7vw, 104px);
    font-weight: 400;
}

.btn-header{
    margin-top: 30px;
}

.btn-header a{
    color: var(--wp--preset--color--color-2);
    padding: 12px 24px;
    background-color: rgba(255, 255, 255, 0.5);
    font-weight: 700;
    font-size: clamp(14px, 2vw, 16px);
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-header a:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

/* Header standard (autres pages) */
body:not(.home) header {
    background-color: #ffffff;
    padding: 20px 0;
}

body:not(.home) .header-container {
    padding: 0;
}

body:not(.home) .header-logo-container {
    flex: 0 0 auto;
    max-width: none;
    padding: 0 40px;
}

body:not(.home) .header-menu-container,
body:not(.home) .header-menu-secondary-container {
    flex: 1 1 0;
    min-width: 0;
}

body:not(.home) .header-logo-black {
    max-height: 60px;
    width: auto;
}

body:not(.home) header nav a,
body:not(.home) header .menu a,
body:not(.home) header .menu-menu-secondaire a,
body:not(.home) header .secondary_menu a {
    color: #000000 !important;
}

body:not(.home) header nav a:hover,
body:not(.home) header .menu a:hover,
body:not(.home) header .menu-menu-secondaire a:hover,
body:not(.home) header .secondary_menu a:hover {
    color: var(--wp--preset--color--color-3) !important;
}

/* Header mobile pour les pages standards */
@media (max-width: 1199px) {
    body:not(.home) .header-container {
        position: relative;
        padding: 15px 20px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    body:not(.home) .header-menu-container {
        order: 1;
        flex: 0 0 auto;
        width: 50px;
    }

    body:not(.home) .header-logo-container {
        order: 2;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        padding: 0;
        flex: 0 0 auto;
    }

    body:not(.home) .header-menu-secondary-container {
        display: none !important;
    }

    body:not(.home) .header-logo-black {
        max-height: 45px;
    }

    /* S'assurer que le burger et le logo sont bien alignés verticalement */
    body:not(.home) .navbar-toggler {
        margin: 0;
        padding: 0;
        display: flex;
        align-items: center;
        height: 45px;
    }
}

/* Responsive - Tablettes et mobiles */
@media (max-width: 1024px) {
    body.home .header-container {
        padding-top: 20px;
    }

    body.home .header-container h1 {
        /* font-size: clamp(24px, 6vw, 48px); */
        margin: 15px 0;
        padding: 0 15px;
    }

    /* body.home .header-container h1 span[style*="font-size:110px"],
    body.home .header-container h1 span[style*="font-size: 110px"] {
        font-size: clamp(48px, 8vw, 80px) !important;
    }

    body.home .header-container h1 span[style*="font-size:94px"],
    body.home .header-container h1 span[style*="font-size: 94px"] {
        font-size: clamp(40px, 7vw, 70px) !important;
    } */

    .btn-header {
        margin-top: 20px;
    }

    .btn-header a {
        padding: 10px 20px;
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    body.home .header-home {
        height: 100vh;
        min-height: 600px;
        display: flex;
        flex-direction: column;
    }

    body.home .header-home .row {
        flex: 1;
        display: flex;
        flex-direction: column;
    }

    body.home .header-container {
        padding-top: 15px;
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    body.home .header-container h1 {
        /* font-size: clamp(20px, 5.5vw, 36px); */
        margin: 20px 0;
        padding: 0 15px;
        line-height: 1.3;
    }

    /* body.home .header-container h1 span[style*="font-size:110px"],
    body.home .header-container h1 span[style*="font-size: 110px"] {
        font-size: clamp(42px, 10vw, 68px) !important;
    }

    body.home .header-container h1 span[style*="font-size:94px"],
    body.home .header-container h1 span[style*="font-size: 94px"] {
        font-size: clamp(36px, 9vw, 58px) !important;
    } */

    .btn-header {
        margin-top: auto;
        padding-bottom: 80px;
    }

    .btn-header a {
        padding: 14px 28px;
        font-size: 15px;
        font-weight: 700;
    }
}

@media (max-width: 480px) {
    body.home .header-home {
        min-height: 500px;
    }

    body.home .header-container {
        padding-top: 10px;
    }

    body.home .header-container h1 {
        /* font-size: clamp(18px, 5vw, 28px); */
        margin: 15px 0;
        padding: 0 10px;
        line-height: 1.3;
    }

    /* body.home .header-container h1 span[style*="font-size:110px"],
    body.home .header-container h1 span[style*="font-size: 110px"] {
        font-size: clamp(34px, 9vw, 52px) !important;
        line-height: 1.2;
    }

    body.home .header-container h1 span[style*="font-size:94px"],
    body.home .header-container h1 span[style*="font-size: 94px"] {
        font-size: clamp(28px, 8vw, 44px) !important;
        line-height: 1.2;
    } */

    body.home .header-logo-container img {
        max-height: 50px;
        width: auto;
    }

    .btn-header {
        margin-top: auto;
        padding-bottom: 70px;
    }

    .btn-header a {
        padding: 12px 24px;
        font-size: 14px;
        font-weight: 700;
    }
}

/* Indicateur de scroll (mobile uniquement) */
.scroll-indicator {
    display: none;
}

@media (max-width: 768px) {
    .scroll-indicator {
        display: block;
        position: absolute;
        bottom: 30px;
        left: 50%;
        transform: translateX(-50%);
        text-align: center;
        color: #ffffff;
        z-index: 10;
        animation: bounce 2s infinite;
    }

    .scroll-indicator__text {
        font-family: 'Montserrat', sans-serif;
        font-size: 12px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.1em;
        margin-bottom: 8px;
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    }

    .scroll-indicator__icon {
        width: 24px;
        height: 36px;
        border: 2px solid #ffffff;
        border-radius: 12px;
        margin: 0 auto;
        position: relative;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    }

    .scroll-indicator__icon::before {
        content: '';
        position: absolute;
        top: 6px;
        left: 50%;
        transform: translateX(-50%);
        width: 4px;
        height: 8px;
        background-color: #ffffff;
        border-radius: 2px;
        animation: scroll 2s infinite;
    }

    @keyframes bounce {
        0%, 20%, 50%, 80%, 100% {
            transform: translateX(-50%) translateY(0);
        }
        40% {
            transform: translateX(-50%) translateY(-10px);
        }
        60% {
            transform: translateX(-50%) translateY(-5px);
        }
    }

    @keyframes scroll {
        0% {
            opacity: 1;
            top: 6px;
        }
        100% {
            opacity: 0;
            top: 18px;
        }
    }
}