:root {
    --primary: #D64727;
    --secondary: #1E1F26;
    --light: #FFFFFF;
    --gray: #F5F5F7;
    --dark-gray: #8A8A8F;
}



body {
    font-family: 'Poppins', sans-serif;
    color: var(--secondary);
    background-color: var(--light);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

.text-primary {
    color: var(--primary) !important;
}

.bg-primary {
    background-color: var(--primary) !important;
}

.bg-secondary {
    background-color: var(--secondary) !important;
}

.bg-light {
    background-color: var(--light) !important;
}

.bg-gray {
    background-color: var(--gray) !important;
}

/* Header & Navigation */
.navbar {
    /* padding: 1rem 0; */
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.8rem;
    color: var(--primary);
    display: flex;
    align-items: center;
}

.navbar-brand span {
    color: var(--secondary);
    font-size: 1rem;
    margin-left: 0.5rem;
    font-weight: 500;
}

.navbar-brand img {
    height: 80px;
    transition: all 0.3s ease;
}

.navbar.scrolled .navbar-brand img {
    height: 50px;
}

.nav-link {
    font-weight: 500;
    color: var(--secondary);
    margin: 0 0.5rem;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.btn-primary {
    background-color: var(--primary);
    border: none;
    padding: 0.7rem 1.8rem;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #b83c20;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(214, 71, 39, 0.3);
}

/* Hero Section */
.hero {
    padding: 8rem 0 6rem;
    background: linear-gradient(rgba(30, 31, 38, 0.85), rgba(30, 31, 38, 0.85)), url('https://images.unsplash.com/photo-1504307651254-35680f356dfd?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
    color: var(--light);
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.hero-badge {
    background: rgba(214, 71, 39, 0.15);
    color: var(--light);
    padding: 0.5rem 1.2rem;
    border-radius: 30px;
    display: inline-block;
    margin-bottom: 1.5rem;
    font-weight: 500;
    font-size: 0.9rem;
}

/* Services Slider */
.services-slider {
    padding: 5rem 0;
    background-color: var(--light);
}

.services-slider .section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.services-slider .section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.services-slider .section-title p {
    color: var(--dark-gray);
    max-width: 700px;
    margin: 0 auto;
}

.service-card {
    background: var(--light);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.service-icon {
    height: 80px;
    width: 80px;
    background: rgba(214, 71, 39, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--primary);
}

.service-content {
    padding: 2rem;
    flex-grow: 1;
}

.service-content h3 {
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.service-content p {
    color: var(--dark-gray);
    margin-bottom: 1.5rem;
}

/* About Section */
.about {
    padding: 5rem 0;
    background-color: var(--gray);
}

.about-img {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.about-content {
    padding-left: 2rem;
}

.about-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.about-content p {
    margin-bottom: 1.5rem;
    color: var(--dark-gray);
}

.stats-container {
    background: var(--light);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-item h3 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: var(--secondary);
    font-weight: 500;
}

/* Projects Section */
.projects {
    padding: 5rem 0;
    background-color: var(--light);
}

.project-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.project-img {
    height: 300px;
    width: 100%;
    object-fit: cover;
    transition: all 0.4s ease;
}

.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(30, 31, 38, 0.85);
    color: var(--light);
    padding: 2rem;
    transform: translateY(100%);
    transition: all 0.4s ease;
}

.project-card:hover .project-overlay {
    transform: translateY(0);
}

.project-card:hover .project-img {
    transform: scale(1.05);
}

.project-overlay h3 {
    margin-bottom: 0.5rem;
}

.project-overlay p {
    opacity: 0.8;
    margin-bottom: 1rem;
}

/* Why Choose Section */
.why-choose {
    padding: 5rem 0;
    background: linear-gradient(rgba(30, 31, 38, 0.9), rgba(30, 31, 38, 0.9)), url('https://images.unsplash.com/photo-1519501025264-65ba15a82390?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
    color: var(--light);
}

.why-choose .section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.why-choose .section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.why-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 2rem;
    transition: all 0.4s ease;
    height: 100%;
    margin-bottom: 1.5rem;
}

.why-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(214, 71, 39, 0.3);
}

.why-card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.why-card h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.why-card p {
    opacity: 0.8;
}

/* Contact Section */
.contact {
    padding: 5rem 0;
    background-color: var(--light);
}

.contact-form {
    background: var(--light);
    border-radius: 10px;
    padding: 3rem;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.form-control {
    padding: 1rem;
    border: 1px solid #e1e1e1;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(214, 71, 39, 0.1);
}

.contact-info {
    padding-left: 3rem;
}

.contact-info h3 {
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.contact-item {
    display: flex;
    margin-bottom: 2rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: rgba(214, 71, 39, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--primary);
    margin-right: 1rem;
    flex-shrink: 0;
}

.contact-details h4 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.contact-details p {
    color: var(--dark-gray);
    margin-bottom: 0;
}

/* Footer */
.footer {
    background-color: var(--secondary);
    color: var(--light);
    padding: 5rem 0 0;
}

.footer-logo {
    font-size: 2rem;
    font-weight: 800;
    color: var(--light);
    margin-bottom: 1.5rem;
}

.footer-logo span {
    color: var(--primary);
}

.footer p {
    opacity: 0.7;
    margin-bottom: 1.5rem;
    max-width: 300px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--light);
    margin-right: 0.7rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-5px);
}

.footer-title {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.7rem;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--primary);
}

.footer-links li {
    margin-bottom: 0.8rem;
    list-style: none;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.copyright {
    padding: 2rem 0;
    margin-top: 4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
}

/* Responsive */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .about-content {
        padding-left: 0;
        margin-top: 2rem;
    }
    
    .contact-info {
        padding-left: 0;
        margin-top: 3rem;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 6rem 0 4rem;
    }
    
    .hero h1 {
        font-size: 2.3rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .section-title h2 {
        font-size: 2rem !important;
    }
    
    .stat-item {
        margin-bottom: 1.5rem;
    }

    .navbar-brand img {
        height: 50px;
    }
}

/* Animation Classes */
[data-aos] {
    transition: all 0.8s ease;
}

.fade-up {
    opacity: 0;
    transform: translateY(30px);
}

.fade-up.aos-animate {
    opacity: 1;
    transform: translateY(0);
}

/* Loader */
#loader {
    position: fixed;
    inset: 0; /* Remplace top/left/right/bottom: 0 */
    background-color: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    overflow: hidden;
}

/* Désactiver le scroll quand le loader est visible */
body.loading {
    overflow: hidden;
    /* height: 100vh; */
}

/* Centrage et style */
.loader-content {
    text-align: center;
    max-width: 90%;
    padding: 20px;
}

.loader-logo {
    font-size: 3rem;
    color: var(--primary);
    font-weight: 800;
    margin-bottom: 10px;
}

.loader-subtitle {
    font-size: 1rem;
    color: #fff;
    margin-bottom: 20px;
    display: block;
    font-weight: 600;
}

.loader-bar {
    width: 200px;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    overflow: hidden;
    margin: 0 auto;
}

.loader-progress {
    height: 100%;
    width: 0;
    background: var(--primary);
    animation: loading 1.5s ease-in-out forwards;
    border-radius: 4px;
}

/* Animation fluide */
@keyframes loading {
    0% { width: 0%; }
    70% { width: 70%; }
    100% { width: 100%; }
}

/* spécifique  */
.hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
    color: #fff;
    }

    /* Image de fond */
    .hero-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: blur(0px);
    transition: filter 0.8s ease-in-out;
    z-index: 0;
    }

    /* Overlay sombre */
    .overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
    }

    /* Contenu texte au-dessus */
    .hero .container {
    position: relative;
    z-index: 2;
    }

    .about-img {
    overflow: hidden;
    border-radius: 1rem;
    position: relative;
    }

    .about-img img {
    transition: transform 0.8s ease;
    }

    .about-img:hover img {
    transform: scale(1.05);
    }

    .img-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    border-radius: 1rem;
    pointer-events: none;
    border: 3px solid rgba(214, 71, 39, 0.25); /* couleur rouge orangé légère */
    transition: all 0.5s ease;
    }

    .about-content h2 {
    color: #D64727;
    }
