/* RESET ET BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ANIMATIONS */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-fadeIn {
    animation: fadeIn 0.8s ease forwards;
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* BOUTONS */
.btn {
    display: inline-block;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.btn-secondary:hover {
    background: white !important;
    color: var(--bleu-nuit) !important;
}

.btn-cta:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* CARDS SERVICES */
.service-card:hover {
    transform: translateY(-10px) !important;
    box-shadow: 0 15px 35px rgba(255, 123, 43, 0.15) !important;
}

.service-card:hover .icon {
    transform: scale(1.1);
}

/* OFFERS */
.offer-item {
    transition: all 0.3s ease;
}

.offer-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(255, 123, 43, 0.4) !important;
}

/* STATS */
.stat-item {
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: scale(1.05);
}

.stat-item:hover .stat-value {
    text-shadow: 2px 2px 10px rgba(255, 123, 43, 0.3);
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .hero {
        padding: 120px 0 60px !important;
    }
    
    .hero h1 {
        font-size: 2rem !important;
    }
    
    .services-grid {
        grid-template-columns: 1fr !important;
    }
    
    .stats-grid {
        grid-template-columns: 1fr 1fr !important;
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons .btn {
        width: 100%;
        text-align: center;
    }
    
    .stats-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Styles améliorés pour le carousel */
.hero-carousel {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

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

/* Overlay amélioré */
.carousel-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26,43,76,0.6) 0%, rgba(255,123,43,0.6) 100%);
    z-index: 1;
}

/* Texte avec meilleure lisibilité */
.hero-content {
    position: relative;
    z-index: 3;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Boutons améliorés */
.btn-primary, .btn-secondary {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    background: <?= COLOR_BLEU_NUIT ?> !important;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255,123,43,0.4);
}

.btn-secondary:hover {
    background: white !important;
    color: <?= COLOR_BLEU_NUIT ?> !important;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255,255,255,0.3);
}

/* Flèches de navigation */
.carousel-arrow {
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.carousel-arrow:hover {
    background: <?= COLOR_ORANGE ?> !important;
    border-color: white;
    transform: translateY(-50%) scale(1.1);
}

/* Dots indicateurs */
.dot {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.dot:hover {
    transform: scale(1.3);
    box-shadow: 0 4px 10px rgba(255,123,43,0.4);
}

.dot.active {
    width: 30px;
    border-radius: 10px;
    background: <?= COLOR_ORANGE ?>;
}

/* Optimisations mobiles */
@media (max-width: 768px) {
    .hero-carousel {
        height: 80vh;
        min-height: 500px;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
        line-height: 1.3;
    }
    
    .hero-content p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .carousel-arrow {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
}
