/* ===============================================
   ANIMATIONS ELEMENTOR STYLE
   =============================================== */

/* Fade In animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translate3d(0, -100%, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 100%, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translate3d(-100%, 0, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translate3d(100%, 0, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

/* Animation classes */
.animate-on-scroll {
    opacity: 0;
}

.animate-on-scroll.animated {
    animation-duration: 1s;
    animation-fill-mode: both;
}

.fadeIn {
    animation-name: fadeIn;
}

.fadeInDown {
    animation-name: fadeInDown;
}

.fadeInUp {
    animation-name: fadeInUp;
}

.fadeInLeft {
    animation-name: fadeInLeft;
}

.fadeInRight {
    animation-name: fadeInRight;
}

/* Shrink button animation */
.btn-shrink {
    transition: all 0.3s ease;
}

.btn-shrink:hover {
    transform: scale(0.95);
}

/* ===============================================
   HERO SECTION AVEC VIDÉO
   =============================================== */

.hero-video-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: white;
}

.hero-video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: 0;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-title {
    font-size: 4rem;
    font-weight: bold;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.hero-divider {
    width: 100px;
    height: 3px;
    background: #ffc107;
    margin: 30px auto;
}

/* ===============================================
   SECTIONS AVEC FOND
   =============================================== */

/* Section services icons */
.services-icons-section {
    background: white;
    padding: 60px 0;
}

.service-icon-box {
    text-align: center;
    padding: 20px;
    transition: transform 0.3s ease;
}

.service-icon-box:hover {
    transform: translateY(-10px);
}

.service-icon-box img {
    max-width: 80px;
    margin-bottom: 20px;
}

.service-icon-box h3 {
    font-size: 1.2rem;
    font-weight: bold;
    color: #343a40;
    margin-bottom: 15px;
}

.service-icon-box p {
    font-size: 0.95rem;
    color: #666;
}

/* Section Qui sommes-nous */
.about-section {
    position: relative;
    background-image: url('/media/downloaded_images/camion-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 80px 0;
}

.about-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.about-content {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 10px;
}

.section-title {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.section-title img {
    width: 50px;
    height: 50px;
    margin-right: 15px;
}

.section-title h3 {
    font-size: 2rem;
    font-weight: bold;
    color: #343a40;
    margin: 0;
}

.about-content p {
    font-size: 1rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 15px;
}

.about-content strong {
    color: #ffc107;
}

/* Section Zone d'intervention */
.zone-section {
    position: relative;
    background-image: url('/media/downloaded_images/map-bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 80px 0;
}

.zone-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    z-index: 1;
}

.zone-content {
    position: relative;
    z-index: 2;
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.section-title-yellow img {
    filter: brightness(0) saturate(100%) invert(79%) sepia(86%) saturate(1434%) hue-rotate(359deg) brightness(102%) contrast(103%);
}

/* Section Actualités */
.news-section {
    background: #343a40;
    padding: 80px 0;
    color: white;
}

.news-section .section-title h3 {
    color: white;
}

.news-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.news-card:hover {
    transform: translateY(-10px);
}

.news-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.news-card-content {
    padding: 25px;
}

.news-card h3 {
    font-size: 1.3rem;
    font-weight: bold;
    color: #343a40;
    margin-bottom: 15px;
}

.news-card h3 a {
    color: #343a40;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-card h3 a:hover {
    color: #ffc107;
}

.news-card p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.news-card .btn-read-more {
    color: #ffc107;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
}

.news-card .btn-read-more:hover {
    color: #343a40;
}

.news-meta {
    color: #999;
    font-size: 0.85rem;
    margin-top: 15px;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

/* ===============================================
   BUTTONS CUSTOM
   =============================================== */

.btn-custom {
    background: #ffc107;
    color: #343a40;
    padding: 15px 40px;
    font-weight: bold;
    border-radius: 50px;
    border: none;
    transition: all 0.3s ease;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.btn-custom:hover {
    background: #ffb300;
    transform: scale(0.95);
    color: #343a40;
}

.btn-custom svg {
    width: 20px;
    height: 20px;
}

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

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title h3 {
        font-size: 1.5rem;
    }
    
    .about-content,
    .zone-content {
        padding: 25px;
    }
    
    .hero-video-section {
        min-height: 70vh;
    }
    
    .service-icon-box h3 {
        font-size: 1rem;
    }
}
