/* ==========================================================================
   1. CONFIGURATION & VARIABLES
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Anton&family=Montserrat:wght@400;600;700;800;900&display=swap');

:root {
    --orange: #ff6b00;
    --orange-dark: #e65a00;
    --navy: #0a0f1d;
    --navy-dark: #05070a;
    --bg-blank: #ffffff;      
    --slate-bg: #f8fafc;     
    --slate-text: #64748b;
    --white: #ffffff;
    --transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow: 0 10px 30px rgba(0,0,0,0.1);
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Montserrat', sans-serif;
    background: var(--bg-blank);
    color: var(--navy);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Scrollbar Style */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--navy); }
::-webkit-scrollbar-thumb { background: var(--orange); border-radius: 10px; }

/* ==========================================================================
   2. NAVIGATION
   ========================================================================== */
.navbar {
    height: 90px;
    background: var(--navy); 
    display: flex;
    align-items: center;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.nav-container {
    width: 95%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-block { 
    display: flex; 
    align-items: center; 
    gap: 15px; 
    background: var(--white);
    padding: 12px 20px;
    border-radius: 0 0 12px 12px;
    position: relative;
    top: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    transition: var(--transition);
    text-decoration: none;
}

.logo-block:hover { transform: translateY(5px); }

.logo-square {
    width: 50px; height: 50px;
    background: var(--navy);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
.logo-square img { width: 85%; object-fit: contain; }

.logo-text span { 
    font-family: 'Anton'; 
    font-size: 1.3rem; 
    color: var(--navy); 
    line-height: 1; 
}
.logo-text span span { color: var(--orange); }
.logo-text p { 
    font-size: 0.6rem; 
    font-weight: 800;
    letter-spacing: 1.5px; 
    color: var(--orange);
    text-transform: uppercase; 
}

.nav-menu { display: none; list-style: none; gap: 30px; margin-left: 20px; }
.nav-menu a {
    text-decoration: none; color: white;
    font-size: 0.8rem; font-weight: 800; letter-spacing: 1px;
    transition: var(--transition);
}
.nav-menu a:hover { color: var(--orange); }

.nav-contact-wrapper { display: flex; align-items: center; gap: 20px; }
.nav-phone { display: flex; align-items: center; gap: 8px; color: white; text-decoration: none; font-weight: 700; font-size: 0.9rem; }
.nav-phone i { color: var(--orange); width: 18px; }

.burger { background: none; border: none; color: white; cursor: pointer; display: flex; font-size: 1.5rem; }

/* ==========================================================================
   DRAWER MOBILE
   ========================================================================== */
.drawer {
    position: fixed; top: 0; right: 0; width: 320px; height: 100%; 
    background: var(--navy); z-index: 2000; 
    transform: translateX(100%); transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}
.drawer.active { transform: translateX(0); }

.drawer-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.8);
    z-index: 1999; display: none; backdrop-filter: blur(4px);
}
.drawer-overlay.active { display: block; }

.drawer-header {
    padding: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.drawer-title { font-family: 'Anton'; color: white; letter-spacing: 2px; font-size: 1.2rem; }
.close-btn { background: none; border: none; color: var(--orange); cursor: pointer; font-size: 1.5rem; }

.mobile-links {
    list-style: none;
    padding: 30px;
    margin: 0;
}
.mobile-links li { margin-bottom: 25px; }
.mobile-links li a {
    text-decoration: none;
    color: white;
    font-family: 'Anton';
    font-size: 1.8rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-transform: uppercase;
    transition: 0.3s;
}
.mobile-links li a:hover { color: var(--orange); padding-left: 10px; }

.drawer-footer { margin-top: auto; padding: 30px; }
.cta-mobile {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--orange);
    color: white;
    text-decoration: none;
    padding: 15px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 0.9rem;
}

/* ==========================================================================
   3. HERO SECTION
   ========================================================================== */
   /* Le conteneur parent */

.hero {
    height: 100vh; min-height: 650px;
    background: linear-gradient(to right, rgba(10, 15, 29, 0.3) 0%, rgba(10, 15, 29, 0.2) 50%, rgba(10, 15, 29, 0.1) 100%), 
                url('https://s7d2.scene7.com/is/image/Caterpillar/CM20190828-17308-2f7ce');
    background-size: cover; 
    background-position: center right;
    display: flex; 
    align-items: center; 
    padding-top: 90px;
    position: relative;
}

.hero-content { width: 90%; max-width: 1200px; margin: 0 auto; z-index: 2; }

.hero-subtitle { 
    color: var(--white); 
    letter-spacing: 0.2em; 
    font-size: 1.1rem; 
    font-weight: 900; 
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    text-transform: uppercase;
}

.hero-title { 
    font-family: 'Anton', sans-serif; 
    font-size: clamp(2rem, 8vw, 3rem); 
    line-height: 1.1; 
    color: white; 
    text-transform: uppercase;
    text-shadow: 3px 3px 10px rgba(0,0,0,0.7);
}
.hero-title span { color: var(--orange); }

.hero-desc { 
    margin: 30px 0; 
    color: #ffffff; 
    font-size: 1.1rem; 
    max-width: 600px; 
    border-left: 5px solid var(--orange); 
    padding: 10px 0 10px 25px;
    background: rgba(10, 15, 29, 0.4);
}

.hero-actions { display: flex; gap: 20px; flex-wrap: wrap; }
.btn-devis { background: var(--orange); color: white; padding: 18px 35px; border-radius: 8px; text-decoration: none; font-weight: 800; display: flex; align-items: center; gap: 10px; transition: var(--transition); border: none; cursor: pointer; }
.btn-devis:hover { background: var(--white); color: var(--navy); transform: translateY(-3px); }
.btn-secondary { border: 2px solid white; color: white; padding: 18px 35px; border-radius: 8px; text-decoration: none; font-weight: 800; transition: var(--transition); }
.btn-secondary:hover { background: white; color: var(--navy); }

/* ==========================================================================
   4. SERVICES SLIDER
   ========================================================================== */
.services-slider-section { padding: 100px 0; background: var(--slate-bg); overflow: hidden; }

.slider-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.services-slider-container {
    width: 100%;
    max-width: 550px;
    display: flex;
    justify-content: center;
}

.service-slide { 
    display: none; 
    background: var(--white); 
    border-radius: 20px; 
    border: 1px solid #f1f5f9; 
    box-shadow: var(--shadow); 
    transition: var(--transition);
    width: 100%;
    overflow: hidden;
}
.service-slide.active { display: block; animation: fadeInSlide 0.6s ease-out; }

.card-img-container img {
    width: 100%;
    height: 400px; /* Ajusté car 80vh était trop grand pour une carte slider */
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-slide:hover .card-img-container img { transform: scale(1.05); }
.card-body { padding: 40px; text-align: center; }
.card-icon { color: var(--orange); margin-bottom: 20px; font-size: 2.5rem; display: flex; justify-content: center; }
.card-body h2 { font-family: 'Anton'; font-size: 2rem; margin-bottom: 15px; color: var(--navy); text-transform: uppercase; }
.card-body p { color: var(--slate-text); font-size: 1.05rem; }

.slider-arrow {
    background: var(--orange);
    color: white;
    border: none;
    width: 60px; height: 60px;
    border-radius: 50%;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition);
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(255,107,0,0.3);
}
.slider-arrow:hover { background: var(--navy); transform: scale(1.1); }

.slider-dots { display: flex; justify-content: center; gap: 12px; margin-top: 40px; }
.dot { width: 12px; height: 12px; background: #cbd5e1; border-radius: 50%; cursor: pointer; transition: var(--transition); }
.dot.active { background: var(--orange); transform: scale(1.4); width: 25px; border-radius: 10px; }

@keyframes fadeInSlide {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   5. RÉALISATIONS
   ========================================================================== */
.realisations { padding: 100px 0; background: var(--white); }
.section-header { text-align: center; margin-bottom: 40px; }
.section-header h3 { font-family: 'Anton'; font-size: clamp(2rem, 6vw, 3rem); text-transform: uppercase; }
.header-line { width: 80px; height: 6px; background: var(--orange); margin: 20px auto; }

.container { width: 90%; max-width: 1200px; margin: 0 auto; }

.project-row { display: flex; flex-direction: column; gap: 40px; margin-bottom: 80px; }

.image-card { 
    background: #f8fafc; padding: 12px; border-radius: 20px; 
    box-shadow: var(--shadow); overflow: hidden; 
    transition: var(--transition);
}
.image-card img { 
    width: 100%; height: 400px; object-fit: cover; 
    border-radius: 15px; display: block; 
    transition: transform 0.8s ease;
}

.image-card:hover img { transform: scale(1.05); }

.project-id { font-family: 'Anton'; font-size: 1.5rem; color: var(--orange); margin-bottom: 5px; display: block; }
.project-title { font-family: 'Anton'; font-size: 2rem; color: var(--navy); margin-bottom: 20px; text-transform: uppercase; }
.project-desc { color: var(--slate-text); margin-bottom: 25px; }

.tech-tags { display: flex; gap: 10px; flex-wrap: wrap; }
.tag { 
    font-size: 0.75rem; font-weight: 700; color: var(--orange); 
    background: rgba(255,107,0,0.08); padding: 5px 12px; 
    border-radius: 50px; display: flex; align-items: center; gap: 6px; 
}

/* ==========================================================================
   6. FOOTER
   ========================================================================== */
.footer { background: var(--navy); color: var(--white); padding: 80px 0 30px; }
.footer-grid {
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
    gap: 40px; 
    margin-bottom: 60px;
}

.footer-title {
    font-family: 'Anton', sans-serif; 
    font-size: 1.2rem; 
    margin-bottom: 30px; 
    position: relative; 
    text-transform: uppercase;
}
.footer-title::after { 
    content: ''; position: absolute; bottom: -10px; left: 0; width: 40px; height: 3px; background: var(--orange); 
}

.logo-footer { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.logo-footer img { width: 40px; filter: brightness(0) invert(1); }
.logo-footer span { font-family: 'Anton'; font-size: 1.5rem; }

.footer-list { list-style: none; }
.footer-list li { color: #94a3b8; font-size: 0.9rem; margin-bottom: 12px; }

.contact-box-footer { display: flex; flex-direction: column; gap: 15px; }
.contact-item { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #94a3b8; transition: 0.3s; }
.contact-item:hover { color: var(--orange); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    text-align: center;
    font-size: 0.8rem;
    color: #64748b;
}

/* ==========================================================================
   7. MEDIA QUERIES (RESPONSIVE)
   ========================================================================== */

@media (min-width: 992px) {
    .nav-menu { display: flex; }
    .burger { display: none; }
    
    .project-row { 
        flex-direction: row; 
        align-items: center; 
        gap: 60px;
    }
    
    .project-row.reverse { flex-direction: row-reverse; }
    .project-image-wrapper, .project-text { flex: 1; }
    .image-card img { height: 300px; }
}

@media (max-width: 991px) {
    .nav-container { width: 95%; }
}

@media (max-width: 768px) {
    .hero-title { font-size: 1.5rem; }
    .slider-arrow { display: none; }
    .services-slider-container { max-width: 100%; }
    .nav-phone span { display: none; }
    .card-img-container img { height: 300px; }
}


