/* ==================== STYLES SPÉCIFIQUES HERO ==================== */

/* Styles pour le bouton d'icône mobile */
.mobile-tabs-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
    display: none;
    width: 50px;
    height: 50px;
    background: var(--primary);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(237, 27, 36, 0.3);
    transition: all 0.3s ease;
}

.mobile-tabs-toggle i {
    font-size: 24px;
    color: white;
}

.mobile-tabs-toggle:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(237, 27, 36, 0.4);
}

/* Menu des onglets mobile */
.mobile-tabs-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 350px;
    height: 100vh;
    background: white;
    z-index: 1002;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.2);
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
}

[data-theme="dark"] .mobile-tabs-menu {
    background: #1a1a1a;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.5);
}

.mobile-tabs-menu.active {
    right: 0;
}

.mobile-tabs-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    background: var(--primary);
    color: white;
}

[data-theme="dark"] .mobile-tabs-header {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.mobile-tabs-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.mobile-tabs-close {
    background: none;
    border: none;
    cursor: pointer;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.mobile-tabs-close i {
    font-size: 20px;
    color: white;
}

.mobile-tabs-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

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

.mobile-tab-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

[data-theme="dark"] .mobile-tab-link {
    color: #fff;
}

.mobile-tab-link i {
    width: 24px;
    font-size: 18px;
    color: var(--primary);
}

.mobile-tab-link:hover {
    background: rgba(237, 27, 36, 0.1);
    padding-left: 25px;
}

.mobile-tab-link.active {
    background: rgba(237, 27, 36, 0.15);
    border-left-color: var(--primary);
    color: var(--primary);
}

/* Overlay pour fermer le menu */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    display: none;
    backdrop-filter: blur(4px);
}

.mobile-menu-overlay.active {
    display: block;
}

/* Hero content enhancement */
.hero-content {
    position: relative;
    z-index: 2;
}

/* Badge amélioré */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(237, 27, 36, 0.15);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(237, 27, 36, 0.3);
    border-radius: 100px;
    padding: 8px 20px;
    margin-bottom: 24px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    transition: all 0.3s ease;
}


.hero-badge i {
    font-size: 0.75rem;
}

[data-theme="light"] .hero-badge {
    background: rgba(237, 27, 36, 0.1);
    border-color: rgba(237, 27, 36, 0.2);
}

/* Titre avec effet de soulignement */
.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.2;
    margin-bottom: 24px;
    color: var(--white);
    transition: color 0.3s ease;
}

[data-theme="light"] .hero h1 {
    color: var(--dark);
}

.hero h1 .highlight {
    color: var(--primary);
    position: relative;
    display: inline-block;
}

.hero h1 .highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    right: 0;
    height: 8px;
    background: rgba(237, 27, 36, 0.25);
    border-radius: 4px;
    z-index: -1;
    transition: background 0.3s ease;
}

[data-theme="light"] .hero h1 .highlight::after {
    background: rgba(237, 27, 36, 0.15);
}

/* Description */
.hero p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 32px;
    max-width: 500px;
    color: rgba(255, 255, 255, 0.85);
    transition: color 0.3s ease;
}

/* [data-theme="light"] .hero p {
    color: rgba(0, 0, 0, 0.75);
} */

/* Boutons */
.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 12px;
    font-weight: 700;
    transition: all 0.3s ease;
    text-decoration: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary);
    color: white;
    border: none;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(237, 27, 36, 0.3);
    background: var(--primary-dark);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

[data-theme="light"] .fa-chevron-left{
    color: var(--primary) !important;
}

[data-theme="light"] .fa-chevron-right{
    color: var(--primary) !important;
}

[data-theme="light"] .separator{
    color: rgba(0, 0, 0, 0.59) !important;
}

[data-theme="light"] .total-slides{
    color: rgba(0, 0, 0, 0.59) !important;
}

[data-theme="light"] .btn-secondary {
    background: rgba(0, 0, 0, 0.62);
    border-color: rgba(105, 104, 104, 0.41);
    color: var(--dark);
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-3px);
    background: transparent;
}

/* Services buttons */
.hero-services {
    margin-bottom: 20px;
}

.service-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-service {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    text-decoration: none;
    color: white;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

[data-theme="light"] .btn-service {
    background: rgba(141, 141, 141, 0.54);
    border-color: rgba(0, 0, 0, 0.57);
    color: white;
}

.btn-service i {
    color: white;
    transition: color 0.3s ease;
}

.btn-service:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-2px);
    color: white;
}

.btn-service:hover i,.btn-service:hover span {
    color: white;
}

/* Statistiques */
.hero-stats {
    display: flex;
    gap: 48px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--border);
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
    display: inline-block;
    line-height: 1;
}

.stat-symbol {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    display: inline-block;
    margin-left: 2px;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--white-off);
    display: block;
    margin-top: 5px;
}

/* ==================== CARROUSEL STYLES ==================== */
.hero-carousel {
    position: relative;
    width: 100%;
    max-width: 550px;
    margin: 0 auto;
    /* border-radius: 24px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px); */
    transition: all 0.3s ease;
}

/* [data-theme="light"] .hero-carousel {
    background: rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
} */

.carousel-container {
    position: relative;
    width: 100%;
    height: 350px;
    overflow: hidden;
    border-radius: 24px;
}

.carousel-image-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 24px;
}

.carousel-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.hero-car-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 20px 30px rgba(237, 27, 36, 0.25));
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] .hero-car-image {
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.12));
}

.carousel-slide:hover .hero-car-image {
    transform: scale(1.02);
}

/* Légende des images */
.carousel-caption {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    padding: 8px 20px;
    border-radius: 40px;
    font-size: 0.85rem;
    font-weight: 700 !important;
    color: white;
    white-space: nowrap;
    transition: all 0.3s ease;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

[data-theme="light"] .carousel-caption {
    background: rgba(255, 255, 255, 0.95);
    color: black !important;
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.carousel-caption i {
    font-size: 0.75rem;
    color: var(--primary);
}

/* Navigation dots */
.carousel-dots {
    position: absolute;
    bottom: -45px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
    padding: 8px 24px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    border-radius: 50px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="light"] .carousel-dots {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.carousel-dot {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: transform 0.2s ease;
}

.carousel-dot:hover {
    transform: scale(1.2);
}

.dot-indicator {
    display: block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

[data-theme="light"] .dot-indicator {
    background: rgba(0, 0, 0, 0.3);
}

.carousel-dot.active .dot-indicator {
    background: var(--primary);
    width: 28px;
    border-radius: 6px;
}

/* Navigation arrows */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    color: white;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 20;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

[data-theme="light"] .carousel-nav {
    background: rgba(255, 255, 255, 0.9);
    color: var(--dark);
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.carousel-prev { left: 15px; }
.carousel-next { right: 15px; }

.carousel-nav:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-50%) scale(1.08);
    border-color: transparent;
}

/* Progress bar */
.carousel-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 0 0 24px 24px;
    overflow: hidden;
    z-index: 15;
}

[data-theme="light"] .carousel-progress {
    background: rgba(0, 0, 0, 0.1);
}

.progress-bar {
    width: 0%;
    height: 100%;
    background: var(--primary);
    transition: width linear;
}

/* Compteur d'images */
.carousel-counter {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    z-index: 15;
    display: flex;
    align-items: center;
    gap: 4px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

[data-theme="light"] .carousel-counter {
    background: rgba(255, 255, 255, 0.9);
    color: var(--dark);
    border-color: rgba(0, 0, 0, 0.1);
}

.carousel-counter .current-slide {
    color: var(--primary);
    font-weight: 700;
}

.carousel-counter .separator {
    opacity: 0.6;
}

/* ==================== HERO CARD ==================== */
.hero-card {
    position: absolute;
    bottom: 30px;
    left: 30px;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    border-radius: 20px;
    padding: 16px 24px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .hero-card {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.hero-card:hover {
    transform: translateY(-5px);
    background: var(--primary);
    border-color: transparent;
    box-shadow: 0 10px 30px rgba(237, 27, 36, 0.3);
}

.card-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.card-icon {
    width: 45px;
    height: 45px;
    background: rgba(237, 27, 36, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

[data-theme="light"] .card-icon {
    background: rgba(237, 27, 36, 0.12);
}

.hero-card:hover .card-icon {
    background: rgba(255, 255, 255, 0.25);
}

.card-icon i {
    font-size: 1.3rem;
    color: var(--primary);
    transition: all 0.3s ease;
}

.hero-card:hover .card-icon i {
    color: white;
}

.card-info {
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: white;
    transition: color 0.3s ease;
}

[data-theme="light"] .card-title {
    color: var(--dark);
}

.hero-card:hover .card-title {
    color: white;
}

.card-subtitle {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
}

[data-theme="light"] .card-subtitle {
    color: rgba(0, 0, 0, 0.6);
}

.hero-card:hover .card-subtitle {
    color: rgba(255, 255, 255, 0.9);
}

.card-badge {
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

[data-theme="light"] .card-badge {
    background: rgba(0, 0, 0, 0.08);
}

.hero-card:hover .card-badge {
    transform: translateX(5px);
    background: rgba(255, 255, 255, 0.3);
}

.card-badge i {
    font-size: 0.8rem;
    color: white;
    transition: color 0.3s ease;
}

[data-theme="light"] .card-badge i {
    color: var(--dark);
}

.hero-card:hover .card-badge i {
    color: white;
}

/* Animation pulsante */
.pulse-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(237, 27, 36, 0.3) 0%, transparent 70%);
    border-radius: 20px;
    transform: translate(-50%, -50%) scale(0);
    animation: pulse 2s infinite;
    pointer-events: none;
}

/* ==================== ANNONCES HERO ==================== */
.hero-ads-container {
    position: relative;
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.hero-ad-item {
    background: linear-gradient(135deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.6) 100%);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: fadeInUp 0.5s ease;
}

[data-theme="light"] .hero-ad-item {
    background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.9) 100%);
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.hero-ad-item:hover {
    transform: translateY(-3px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(237, 27, 36, 0.2);
}

.hero-ad-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.hero-ad-content {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 15px 20px;
}

.hero-ad-image {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-secondary);
}

.hero-ad-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-ad-text {
    flex: 1;
}

.hero-ad-text h4 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 5px 0;
    color: inherit;
}

.hero-ad-text p {
    font-size: 0.8rem;
    margin: 0;
    opacity: 0.8;
    line-height: 1.4;
}

.hero-ad-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary);
    white-space: nowrap;
    transition: gap 0.3s ease;
}

.hero-ad-link:hover .hero-ad-cta {
    gap: 12px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero-ads-container {
        max-width: 100%;
        margin-top: 20px;
    }
    
    .hero-ad-content {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    .hero-ad-image {
        width: 80px;
        height: 80px;
    }
    
    .hero-ad-cta {
        margin-top: 10px;
    }
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0.8;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.4;
    }
    100% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0;
    }
}

.animated-card:hover .pulse-ring {
    animation: none;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
    .hero {
        gap: 40px;
        padding: 100px 20px 60px;
    }
}

@media (max-width: 768px) {
    /* Afficher le bouton d'icône sur mobile */
    .mobile-tabs-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 35px;
        height: 35px;
        top: 12px;
        right: 15px;
    }
    
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 100px 20px 60px;
    }
    
    .hero p {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .service-buttons {
        justify-content: center;
    }
    
    .hero-image {
        order: -1;
        margin-bottom: 30px;
    }
    
    .hero-carousel {
        max-width: 350px;
    }
    
    .carousel-container {
        height: 250px;
    }
    
    .carousel-nav {
        width: 36px;
        height: 36px;
    }
    
    .carousel-dots {
        bottom: -40px;
        gap: 10px;
        padding: 6px 18px;
    }
    
    .carousel-caption {
        font-size: 0.7rem;
        padding: 5px 14px;
        bottom: 12px;
    }
    
    .carousel-caption i {
        font-size: 0.65rem;
    }
    
    .carousel-counter {
        top: 10px;
        right: 10px;
        padding: 3px 10px;
        font-size: 0.7rem;
    }
    
    .hero-card {
        bottom: -20px;
        left: 50%;
        transform: translateX(-50%);
        padding: 12px 20px;
        white-space: nowrap;
    }
    
    .hero-card:hover {
        transform: translateX(-50%) translateY(-5px);
    }
    
    .card-icon {
        width: 35px;
        height: 35px;
    }
    
    .card-icon i {
        font-size: 1rem;
    }
    
    .card-title {
        font-size: 0.8rem;
    }
    
    .card-subtitle {
        font-size: 0.6rem;
    }
    
    .card-badge {
        width: 25px;
        height: 25px;
    }
    
    .hero-stats {
        gap: 30px;
        margin-top: 30px;
        padding-top: 20px;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .stat-symbol {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn-primary, .btn-secondary {
        justify-content: center;
    }
    
    .service-buttons {
        flex-direction: column;
    }
    
    .btn-service {
        justify-content: center;
    }
    
    .hero-carousel {
        max-width: 280px;
    }
    
    .carousel-container {
        height: 200px;
    }
    
    .carousel-caption {
        font-size: 0.6rem;
        padding: 4px 12px;
        gap: 5px;
    }
    
    .carousel-caption i {
        font-size: 0.55rem;
    }
    
    .mobile-tabs-toggle {
        width: 35px;
        height: 35px;
        top: 12px;
        right: 15px;
    }
    
    .mobile-tabs-menu {
        width: 90%;
    }
}

/* <picture> ajouté pour le WebP : l image garde la taille du conteneur */
.hero-bg-wrapper picture { display: contents; }
