/**
 * Glesner - Header & Hero
 */

/* ============================================
   HEADER
   ============================================ */
.site-header.sticky-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    /* Dégradé de la nav en #16161A */
    background: linear-gradient(180deg, rgba(22, 22, 26, 0.9) 0%, rgba(22, 22, 26, 0) 100%);
    padding: 20px 0;
    transition: all 0.3s ease;
}

.site-header.sticky-header.scrolled {
    background: rgba(22, 22, 26, 0.95);
    backdrop-filter: blur(12px);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.site-logo {
    display: flex;
    align-items: center;
}

.site-logo svg {
    height: 70px;
    max-width: 200px;
    width: auto;
}

/* Navigation */
.main-navigation {
    display: flex;
    align-items: center;
    gap: 40px;
}

.main-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 40px;
}

.main-menu a {
    color: #FFFFFF;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
    transition: color 0.3s ease;
}

.main-menu a:hover {
    color: #FCCE2D;
}

/* CTA Button */
.header-cta-button {
    background: transparent;
    color: #FFFFFF;
    padding: 10px 26px;
    border-radius: 999px;
    border: 1px solid rgba(252, 206, 45, 0.2);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
    transition: all 0.3s ease;
}

.header-cta-button:hover {
    background: var(--color-primary);
    color: #16161A;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: none;
    color: #FFFFFF;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-toggle svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
}

.mobile-menu-toggle-text {
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ============================================
   MOBILE MENU MODAL
   ============================================ */
.mobile-menu-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    pointer-events: none;
}

.mobile-menu-modal.is-open {
    display: block;
    pointer-events: auto;
}

.mobile-menu-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(22, 22, 26, 0.95);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-modal.is-open .mobile-menu-overlay {
    opacity: 1;
}

.mobile-menu-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 400px;
    height: 100%;
    background: #16161A;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    padding: 80px 30px 30px;
    display: flex;
    flex-direction: column;
}

.mobile-menu-modal.is-open .mobile-menu-content {
    transform: translateX(0);
}

.mobile-menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: #FFFFFF;
    cursor: pointer;
    padding: 10px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.mobile-menu-close svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
}

.mobile-menu-nav {
    flex: 1;
    margin-bottom: 40px;
}

.mobile-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-menu-list li {
    margin-bottom: 20px;
}

.mobile-menu-list a {
    color: #FFFFFF;
    font-size: 1.25rem;
    font-weight: 500;
    text-decoration: none;
    display: block;
    padding: 10px 0;
    transition: color 0.3s ease;
}

.mobile-menu-list a:hover {
    color: var(--color-primary);
}

.mobile-menu-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
}

.mobile-menu-contact {
    margin-bottom: 30px;
}

.mobile-menu-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    color: #FFFFFF;
    font-size: 0.9rem;
}

.mobile-menu-contact-item svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    fill: var(--color-primary);
}

.mobile-menu-contact-item a {
    color: #FFFFFF;
    text-decoration: none;
}

.mobile-menu-social {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.mobile-menu-social-icon {
    width: 30px;
    height: 30px;
}

.mobile-menu-social-icon img {
    width: 100%;
    height: 100%;
}

.mobile-menu-legal {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.mobile-menu-legal a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
    text-decoration: none;
}

.mobile-menu-button {
    display: block;
    width: 100%;
    padding: 16px;
    background: var(--color-primary);
    color: #16161A;
    text-align: center;
    text-decoration: none;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.mobile-menu-button:hover {
    background: #FFFFFF;
}

/* Empêcher le scroll du body quand le menu est ouvert */
body.has-no-scroll {
    overflow: hidden;
}

@media (max-width: 768px) {
    .header-container {
        padding: 0 30px;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .main-navigation {
        display: none;
    }

    /* Réduire les espacements du burger pour tenir sur une seule hauteur d'écran */
    .mobile-menu-content {
        padding: 70px 22px 22px;
    }

    .mobile-menu-nav {
        margin-bottom: 22px;
    }

    .mobile-menu-list li {
        margin-bottom: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    }

    .mobile-menu-list a {
        font-size: 1.6rem;
        line-height: 1.15;
        padding: 22px 0;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    /* Flèche à droite comme sur la capture */
    .mobile-menu-list a::after {
        content: '›';
        color: var(--color-primary);
        font-size: 2rem;
        line-height: 1;
        margin-left: 16px;
        flex-shrink: 0;
    }

    .mobile-menu-footer {
        padding-top: 18px;
    }

    .mobile-menu-contact {
        margin-bottom: 18px;
    }

    .mobile-menu-contact-item {
        gap: 10px;
        margin-bottom: 10px;
        font-size: 0.85rem;
    }

    .mobile-menu-social {
        margin-bottom: 14px;
    }

    .mobile-menu-legal {
        gap: 12px;
        margin-bottom: 14px;
    }

    .mobile-menu-button {
        padding: 12px;
    }
}

/* Petites hauteurs (ex: iPhone SE / anciens Android) : encore plus compact */
@media (max-width: 768px) and (max-height: 700px) {
    .mobile-menu-content {
        padding: 62px 18px 18px;
    }

    .mobile-menu-nav {
        margin-bottom: 16px;
    }

    .mobile-menu-list li {
        margin-bottom: 0;
    }

    .mobile-menu-list a {
        font-size: 1.4rem;
        line-height: 1.15;
        padding: 16px 0;
    }

    .mobile-menu-list a::after {
        font-size: 1.7rem;
    }

    .mobile-menu-footer {
        padding-top: 14px;
    }

    .mobile-menu-contact {
        margin-bottom: 14px;
    }

    .mobile-menu-contact-item {
        margin-bottom: 8px;
    }

    .mobile-menu-legal {
        margin-bottom: 10px;
    }

    .mobile-menu-button {
        padding: 10px;
    }
}

/* Sur desktop, s'assurer que le menu mobile est complètement caché */
@media (min-width: 769px) {
    .mobile-menu-modal {
        display: none !important;
    }
    
    .mobile-menu-toggle {
        display: none !important;
    }
}

/* ============================================
   HERO HOME
   ============================================ */
.hero-home-section {
    position: relative;
    width: 100%;
    height: 60vh;
    min-height: 300px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

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

.hero-home-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-home-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(22, 22, 26, 0.3) 0%, rgba(22, 22, 26, 0.6) 100%);
}

/* Dégradé en bas du hero pour transition vers la première section */
.hero-home-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent 0%, #16161A 100%);
    z-index: 1;
    pointer-events: none;
}

.hero-home-content {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 80px;
    width: 100%;
}

.hero-home-text {
    max-width: 900px;
}

/* Tagline / petit titre au-dessus du titre principal (hero home) */
.hero-home-subtitle {
    text-align: left;
    font-family: var(--font-primary);
    font-weight: 500; /* medium */
    font-size: 14px;
    letter-spacing: 0;
    color: #FCCE2D;
    text-transform: uppercase;
    opacity: 1;
    margin: 0 0 12px 0;
}

/* Titre principal (hero home) */
.hero-home-title {
    text-align: left;
    font-family: var(--font-primary);
    font-weight: 500; /* medium */
    font-size: 64px;
    letter-spacing: 0;
    color: #FFFFFF;
    opacity: 1;
    line-height: 1.1;
    margin: 0;
}

.hero-home-scroll-indicator {
    position: absolute;
    bottom: -74px;
    left: 7%;
    transform: translateX(-50%);
    color: #FFFFFF;
    animation: bounce 2s infinite;
    z-index: 2;
}

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

@media (max-width: 1200px) {
    .hero-home-content {
        padding: 0 60px;
    }
    
    .hero-home-title {
        font-size: 56px;
    }
}

@media (max-width: 768px) {
    .hero-home-section {
        min-height: 300px;
    }
    
    .hero-home-content {
        padding: 0 30px;
    }
    
    .hero-home-title {
        font-size: 40px;
    }
    
    .hero-home-subtitle {
        font-size: 0.875rem;
    }
}

/* ============================================
   HERO PAGE (autres pages)
   ============================================ */
.hero-page-section {
    position: relative;
    width: 100%;
    height: 60vh;
    min-height: 260px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

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

.hero-page-background-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    /* Image hero secondaire à 70% d'opacité */
    opacity: 0.7;
}

.hero-page-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(6, 21, 42, 0.9) 0%, rgba(6, 21, 42, 0) 100%);
}

/* Dégradé bleu foncé sur les 20% du bas */
.hero-page-background::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    /* Dégradé du bas 2x plus grand (40%) */
    height: 40%;
    background: linear-gradient(180deg, rgba(22, 22, 26, 0) 0%, #16161A 100%);
    z-index: 2;
}

.hero-page-content {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 80px;
    width: 100%;
    text-align: left;
}

/* Titre (ligne du haut) des pages secondaires : H1 avec style tagline */
h1.hero-page-tagline {
    text-align: left;
    font-family: var(--font-primary);
    font-weight: 500; /* medium */
    font-size: 14px;
    letter-spacing: 0;
    color: #FCCE2D;
    text-transform: uppercase;
    opacity: 1;
    margin: 0 0 12px 0;
    display: block;
}

/* Sous-titre visuel (gros titre) des pages secondaires : H2 avec style titre */
h2.hero-page-title {
    text-align: left;
    font-family: var(--font-primary);
    font-weight: 500; /* medium */
    font-size: 48px;
    letter-spacing: 0;
    color: #FFFFFF;
    opacity: 1;
    line-height: 1.1;
    margin: 0;
    max-width: 900px;
}

@media (max-width: 1200px) {
    .hero-page-content {
        padding: 0 60px;
    }
    
    .hero-page-title {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .hero-page-section {
        min-height: 500px;
    }
    
    .hero-page-content {
        padding: 0 30px;
    }
    
    .hero-page-title {
        font-size: 2rem;
    }
    
    .hero-page-subtitle {
        font-size: 1rem;
    }
    
    .hero-page-tagline {
        font-size: 0.875rem;
    }
}
