/* ============================================
   COMITARI - HERO SECTION REDESIGN
   Style moderne et professionnel
   ============================================ */

/* ===== HEADER STYLE FIXED ===== */
/* Force white header everywhere for stability */
.header {
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: none;
    transition: box-shadow 0.3s ease;
}

.header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Ensure links are always dark */
.header .nav-link {
    color: var(--text-main) !important;
}

.header .nav-link:hover,
.header .nav-link.active {
    color: var(--primary-blue) !important;
}

.header .nav-link::after {
    background: var(--primary-blue) !important;
}

.header .logo {
    color: var(--primary-blue) !important;
    text-shadow: none !important;
}

/* Remove old transparency classes to avoid conflicts */
.header.transparent {
    background: rgba(255, 255, 255, 0.98) !important;
}

.header.transparent .nav-link {
    color: var(--text-main) !important;
}

.header.white-bg .nav-link:hover,
.header.white-bg .nav-link.active {
    color: var(--primary-blue) !important;
}


/* ===== HERO PRINCIPAL ===== */
.hero-with-image {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, #0F172A 0%, #1A5288 100%);
}

/* Image de fond */
.hero-image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0.4;
}

/* Overlay avec gradient sophistiqué */
.hero-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
            rgba(15, 23, 42, 0.95) 0%,
            rgba(26, 82, 136, 0.9) 50%,
            rgba(55, 142, 86, 0.85) 100%);
    z-index: 2;
}

/* Effet de particules/points */
.hero-image-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.3;
}

/* Contenu du hero */
.hero .container {
    position: relative;
    z-index: 3;
    padding: 4rem 1.5rem;
}

.hero-content-wrapper {
    max-width: 800px;
    margin: 0;
}

/* Badge */
.hero .badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 2rem;
    animation: fadeInDown 0.8s ease;
}

.hero .badge::before {
    content: '✓';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: var(--secondary-green);
    border-radius: 50%;
    font-size: 12px;
}

/* Titre principal */
.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.3;
    color: white;
    margin-bottom: 2rem;
    text-align: left;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-title br {
    display: block;
}

/* Effet de gradient sur le texte */
.hero-title::after {
    content: '';
    display: block;
    width: 100px;
    height: 5px;
    background: linear-gradient(90deg, var(--secondary-green) 0%, transparent 100%);
    margin-top: 1.5rem;
    border-radius: 10px;
}

/* Sous-titre */
.hero-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
    text-align: left !important;
    max-width: 600px;
    animation: fadeInUp 0.8s ease 0.4s both;
}

/* Boutons CTA */
.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    animation: fadeInUp 0.8s ease 0.6s both;
}

.hero-cta .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    font-size: 1.125rem;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.hero-cta .btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.hero-cta .btn:hover::before {
    width: 300px;
    height: 300px;
}

.hero-cta .btn svg {
    transition: transform 0.3s ease;
}

.hero-cta .btn:hover svg {
    transform: translateX(5px);
}

/* Bouton blanc */
.btn-white {
    background: white;
    color: var(--primary-blue) !important;
    /* Texte BLEU forcé */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    font-weight: 700;
}

.btn-white:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

/* Bouton outline */
.btn-outline-white {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-outline-white:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
    transform: translateY(-2px);
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll indicator */
.hero::after {
    content: '';
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    z-index: 3;
}

.hero::before {
    content: '';
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 10px;
    background: white;
    border-radius: 3px;
    z-index: 4;
    animation: scrollDown 2s infinite;
}

@keyframes scrollDown {
    0% {
        opacity: 0;
        transform: translate(-50%, 0);
    }

    40% {
        opacity: 1;
    }

    80% {
        opacity: 0;
        transform: translate(-50%, 20px);
    }

    100% {
        opacity: 0;
    }
}

/* ===== RESPONSIVE ===== */

@media (max-width: 768px) {
    .hero-with-image {
        min-height: 100vh;
        padding: 2rem 0;
    }

    .hero-content-wrapper {
        max-width: 100%;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-title br {
        display: none;
    }

    .hero-subtitle {
        font-size: 1.125rem;
    }

    .hero-cta {
        flex-direction: column;
    }

    .hero-cta .btn {
        width: 100%;
        justify-content: center;
    }

    .hero::after,
    .hero::before {
        display: none;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .hero-content-wrapper {
        max-width: 700px;
    }
}

/* ===== VARIANTES DE COULEUR ===== */

/* Hero avec accent vert */
.hero-with-image.hero-green .hero-image-overlay {
    background: linear-gradient(135deg,
            rgba(55, 142, 86, 0.95) 0%,
            rgba(77, 175, 110, 0.9) 50%,
            rgba(26, 82, 136, 0.85) 100%);
}

/* Hero avec accent bleu */
.hero-with-image.hero-blue .hero-image-overlay {
    background: linear-gradient(135deg,
            rgba(26, 82, 136, 0.95) 0%,
            rgba(45, 108, 168, 0.9) 50%,
            rgba(15, 23, 42, 0.85) 100%);
}

/* ===== STATS DANS LE HERO (OPTIONNEL) ===== */

.hero-stats {
    display: flex;
    gap: 3rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-stat {
    text-align: left;
}

.hero-stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-green);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.hero-stat-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@media (max-width: 768px) {
    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
}