/**
 * ============================================
 * HERO SECTION STYLES - RDConnect
 * ============================================
 * Extrait de hero_section.php le 26 janvier 2026
 * Version: 1.0
 * ============================================
 */

/* ==========================================================================
   NAVBAR & MENU HAMBURGER
   ========================================================================== */

/* Animation du menu hamburger - ÉTAT INITIAL */
.navbar-toggler {
    border: none !important;
    padding: 8px 12px !important;
    background: transparent !important;
    position: relative !important;
    width: 40px !important;
    height: 40px !important;
}

/* ÉTAT PAR DÉFAUT : 3 BARRES HORIZONTALES */
.navbar-toggler-icon {
    background: #ffffff !important;
    width: 24px !important;
    height: 2px !important;
    border-radius: 1px !important;
    position: relative !important;
    display: block !important;
    transition: all 0.3s ease !important;
}

.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
    content: '' !important;
    position: absolute !important;
    left: 0 !important;
    width: 24px !important;
    height: 2px !important;
    background: #ffffff !important;
    border-radius: 1px !important;
    transition: all 0.3s ease !important;
}

.navbar-toggler-icon::before {
    top: -8px !important;
}

.navbar-toggler-icon::after {
    bottom: -8px !important;
}

/* Quand le menu est OUVERT : transformer en X */
.navbar-toggler:not(.collapsed) .navbar-toggler-icon {
    background: transparent !important;
}

.navbar-toggler:not(.collapsed) .navbar-toggler-icon::before {
    transform: rotate(45deg) !important;
    top: 0 !important;
}

.navbar-toggler:not(.collapsed) .navbar-toggler-icon::after {
    transform: rotate(-45deg) !important;
    bottom: 0 !important;
}

/* ==========================================================================
   WELCOME AREA (HERO)
   ========================================================================== */

.welcome-area {
    background-attachment: scroll;
    background-size: cover;
    background-position: center center;
    padding: 80px 0 60px;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1; /* BEHIND header (z-index: 9999) */
}

/* Overlay pour lisibilité */
.welcome-area::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

/* ==========================================================================
   HEADER TEXT (HERO CONTENT)
   ========================================================================== */

.header-text {
    position: relative;
    z-index: 10;
    text-align: center;
    width: 100%;
    margin-top: 0;
}

.header-text h1 {
    font-size: 3.5rem;
    margin-bottom: 30px;
    line-height: 1.2;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.header-text p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    line-height: 1.6;
    color: #ffffff;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.header-text .buttons {
    margin-top: 35px;
}

.header-text .main-button-slider,
.header-text .btn,
.header-text a.btn {
    display: inline-block;
    margin: 10px;
    padding: 16px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 30px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 100;
}

/* ==========================================================================
   BARRE DE RECHERCHE HERO
   ========================================================================== */

.hero-search-form {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    padding: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    max-width: 800px;
    margin: 30px auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.hero-search-form .search-input-group {
    flex: 1;
    min-width: 200px;
    position: relative;
}

.hero-search-form .search-input-group i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
    font-size: 18px;
}

.hero-search-form input,
.hero-search-form select {
    width: 100%;
    border: none;
    padding: 14px 16px 14px 45px;
    font-size: 15px;
    background: transparent;
    color: #1f2937;
    outline: none;
}

.hero-search-form input::placeholder {
    color: #9ca3af;
}

.hero-search-form select {
    padding-left: 45px;
    appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%236b7280' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}

.hero-search-form .search-divider {
    width: 1px;
    height: 30px;
    background: #e5e7eb;
}

.hero-search-form .btn-search {
    background: linear-gradient(135deg, #0891b2 0%, #06b6d4 100%);
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.hero-search-form .btn-search:hover {
    background: linear-gradient(135deg, #0e7490 0%, #0891b2 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(8, 145, 178, 0.4);
}

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

@media (max-width: 768px) {
    .welcome-area {
        padding: 80px 0 50px;
        min-height: auto;
    }
    
    .header-text {
        padding: 0 20px;
        margin-top: -50px;
    }
    
    .header-text h1 {
        font-size: 2.2rem !important;
        margin-bottom: 20px !important;
    }
    
    .header-text p {
        font-size: 1.1rem !important;
        margin-bottom: 30px !important;
        padding: 0 10px;
    }
    
    .header-text .buttons {
        margin-top: 25px;
    }
    
    .header-text .main-button-slider,
    .header-text .btn {
        padding: 14px 32px !important;
        font-size: 1rem !important;
        margin: 8px !important;
    }
    
    /* Barre de recherche mobile */
    .hero-search-form {
        flex-direction: column;
        border-radius: 20px;
        padding: 16px;
        margin: 20px 15px;
    }
    
    .hero-search-form .search-input-group {
        width: 100%;
        min-width: unset;
    }
    
    .hero-search-form .search-divider {
        display: none;
    }
    
    .hero-search-form input,
    .hero-search-form select {
        padding: 12px 12px 12px 42px;
        border: 1px solid #e5e7eb;
        border-radius: 10px;
        margin-bottom: 8px;
    }
    
    .hero-search-form .btn-search {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
        border-radius: 10px;
        margin-top: 8px;
    }
}
