/* ==========================================================================
   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.7rem; 
    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; }

/* ==========================================================================
   DRAWER MOBILE (CORRECTIF A-Z)
   ========================================================================== */
.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; }

.mobile-links {
    list-style: none !important; /* Supprime les puces */
    padding: 30px !important;
    margin: 0;
}
.mobile-links li {
    list-style: none !important;
    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); }
.mobile-links li a i { color: var(--orange); width: 24px; }

.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
   ========================================================================== */
.hero {
    height: 100vh; min-height: 650px;
    background: linear-gradient(rgba(10, 15, 29, 0.6), rgba(10, 15, 29, 0.7)), 
                url('https://images.unsplash.com/photo-1541888946425-d81bb19240f5?q=80&w=2070&auto=format&fit=crop');
    background-size: cover; background-position: center;
    display: flex; align-items: center; padding-top: 90px;
}
.hero-content { width: 90%; max-width: 1200px; margin: 0 auto; }
.hero-subtitle { color: var(--bg-blank); letter-spacing: 0.1em; font-size: 1.1rem; font-weight: 900; margin-bottom: 15px; }
.hero-title { font-family: 'Libre'; font-size: clamp(1.8rem, 10vw, 2.7rem); line-height: 0.9; color: white; text-transform: uppercase; }
.hero-title span { color: var(--orange); }
.hero-desc { margin: 30px 0; color: #e2e8f0; font-size: 1.2rem; max-width: 600px; border-left: 5px solid var(--orange); padding-left: 25px; }

.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 & CARDS
   ========================================================================== */
.services-cards { padding: 100px 0; background: var(--bg-blank); }
.container { width: 90%; max-width: 1200px; margin: 0 auto; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }

.card { 
    background: var(--white); padding: 40px; border-radius: 15px; 
    border: 1px solid #f1f5f9; box-shadow: var(--shadow); 
    transition: var(--transition); 
}
.card:hover { 
    transform: translateY(-12px); 
    border-color: var(--orange); 
    box-shadow: 0 20px 50px rgba(255, 107, 0, 0.1); 
}
.card-icon { color: var(--orange); margin-bottom: 20px; font-size: 2.5rem; }
.card h2 { font-family: 'Anton'; font-size: 1.8rem; margin-bottom: 15px; color: var(--navy); }
.card p { color: var(--slate-text); font-size: 0.95rem; }

/* ==========================================================================
   5. RÉALISATIONS
   ========================================================================== */
.realisations { padding: 100px 0; background: var(--white); }
.section-header { text-align: center; margin-bottom: 80px; }
.section-header h3 { font-family: 'Anton'; font-size: clamp(2.5rem, 6vw, 4rem); text-transform: uppercase; }
.header-line { width: 80px; height: 6px; background: var(--orange); margin: 20px auto; }

.project-row { display: flex; flex-direction: column; gap: 60px; margin-bottom: 100px; }

.image-card { 
    background: #f8fafc; padding: 12px; border-radius: 20px; 
    box-shadow: var(--shadow); overflow: hidden; 
    transition: var(--transition);
}
.image-card img { 
    width: 100%; height: 500px; object-fit: cover; 
    border-radius: 15px; display: block; 
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.image-card:hover { transform: translateY(-5px); box-shadow: 0 25px 50px rgba(255, 107, 0, 0.15); }
.image-card:hover img { transform: scale(1.08); }

.project-text { padding: 20px 0; }
.project-id { font-family: 'Anton'; font-size: 5rem; color: #f1f5f9; line-height: 0.8; margin-bottom: -10px; display: block; }
.project-title { font-family: 'Anton'; font-size: 2.5rem; color: var(--navy); margin-bottom: 20px; text-transform: uppercase; }
.project-desc { color: var(--slate-text); font-size: 1.1rem; margin-bottom: 25px; }

.tech-tags { display: flex; gap: 15px; flex-wrap: wrap; }
.tag { 
    font-size: 0.8rem; font-weight: 700; color: var(--orange); 
    background: rgba(255,107,0,0.08); padding: 6px 15px; 
    border-radius: 50px; display: flex; align-items: center; gap: 8px; 
}

/* ==========================================================================
   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; letter-spacing: 1px; 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; padding-left: 20px; position: relative; transition: 0.3s; }
.footer-list li::before { content: '→'; position: absolute; left: 0; color: var(--orange); }

.contact-box-footer {
    background: var(--navy-dark); padding: 30px; border-radius: 15px; border: 1px solid rgba(255,107,0,0.1);
}
.contact-item { display: flex; align-items: center; gap: 15px; text-decoration: none; color: #cbd5e1; margin-bottom: 20px; transition: var(--transition); }
.icon-wrap { width: 40px; height: 40px; background: rgba(255, 107, 0, 0.1); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: var(--orange); flex-shrink: 0; }

.footer-bottom { border-top: 1px solid rgba(255,255,255,0.05); padding-top: 30px; text-align: center; font-size: 0.8rem; color: #64748b; }

/* ==========================================================================
   7. RESPONSIVE DESIGN
   ========================================================================== */
@media (min-width: 992px) {
    .nav-menu { display: flex; }
    .burger { display: none; }
    .project-row { flex-direction: row; gap: 100px; align-items: center; }
    .project-row.reverse { flex-direction: row-reverse; }
    .project-image-wrapper, .project-text { width: 50%; }
}

@media (max-width: 768px) {
    .navbar { height: 80px; }
    .nav-phone, .nav-btn-devis { display: none; }
    .logo-block { padding: 8px 15px; top: 5px; }
    .logo-text span { font-size: 1.3rem; }
    .hero { padding-top: 80px; }
    .hero-title { font-size: 2rem; }
    .image-card img { height: 320px; }
    .footer-grid { grid-template-columns: 1fr; }
    .section-header h3 { font-size: 2.5rem; }
}