:root {
    --primary-color: #0056b3; /* Bleu pro */
    --secondary-color: #0a192f; /* Bleu nuit très sombre (proche noir) */
    --accent-color: #00d4ff; /* Bleu cyan pour les détails modernes */
    --white: #ffffff;
    --light-gray: #f4f4f9;
    --text-dark: #333;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', sans-serif; }
html { scroll-behavior: smooth; }

body { background-color: var(--white); color: var(--text-dark); overflow-x: hidden; }

/* NAVBAR */
.navbar {
    display: flex; justify-content: space-between; align-items: center;
    padding: 1rem 5%; background: var(--white);
    position: fixed; width: 100%; top: 0; z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.logo { font-size: 1.5rem; font-weight: 800; color: var(--primary-color); letter-spacing: 2px; }
.nav-links a { margin: 0 15px; text-decoration: none; color: var(--text-dark); font-weight: 500; }
.btn-call-nav {
    background: var(--primary-color); color: var(--white);
    padding: 10px 20px; border-radius: 50px; text-decoration: none; font-weight: bold;
    transition: transform 0.3s;
}
.btn-call-nav:hover { transform: scale(1.05); background: #004494; }

/* HERO SECTION */
.hero {
    height: 100vh;
    
    /* --- CHANGEMENT ICI --- */
    /* 1. On met un dégradé semi-transparent (rgba) pour assombrir l'image */
    /* 2. On ajoute l'URL de ton image (assure-toi qu'elle s'appelle bien camion.jpg) */
    background: linear-gradient(rgba(10, 25, 47, 0.85), rgba(0, 86, 179, 0.7)), url('camion.jpg');
    
    /* Pour que l'image couvre tout l'écran sans se répéter */
    background-size: cover;
    /* Pour centrer l'image */
    background-position: center;
    /* Effet moderne : l'image reste fixe quand on scrolle (parallaxe) */
    background-attachment: fixed;
    /* ---------------------- */

    display: flex; 
    align-items: center; 
    justify-content: center;
    text-align: center; 
    color: var(--white);
    padding-top: 60px;
}
.hero h1 { font-size: 3.5rem; margin-bottom: 20px; line-height: 1.2; }
.highlight { color: var(--accent-color); }
.hero p { font-size: 1.2rem; margin-bottom: 30px; opacity: 0.9; max-width: 600px; margin-left: auto; margin-right: auto; }

.btn-primary {
    background: var(--accent-color); color: var(--secondary-color);
    padding: 15px 30px; text-decoration: none; border-radius: 5px; font-weight: bold; font-size: 1.1rem;
    display: inline-block; transition: 0.3s; margin: 10px;
}
.btn-primary:hover { background: #fff; }

.btn-secondary {
    border: 2px solid var(--white); color: var(--white);
    padding: 13px 28px; text-decoration: none; border-radius: 5px; font-weight: bold;
    display: inline-block; transition: 0.3s; margin: 10px;
}
.btn-secondary:hover { background: var(--white); color: var(--secondary-color); }

/* SECTIONS GÉNÉRALES */
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
section { padding: 80px 0; }
.section-title { text-align: center; font-size: 2.5rem; margin-bottom: 50px; color: var(--secondary-color); }

/* CARDS SERVICES */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.card {
    background: var(--light-gray); padding: 40px 30px; border-radius: 10px; text-align: center;
    transition: transform 0.3s, box-shadow 0.3s; border-bottom: 4px solid var(--primary-color);
}
.card:hover { transform: translateY(-10px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
.icon { font-size: 3rem; color: var(--primary-color); margin-bottom: 20px; }
.card h3 { margin-bottom: 15px; color: var(--secondary-color); }

/* À PROPOS */
.split-layout { display: flex; align-items: center; gap: 50px; flex-wrap: wrap; }
.about-text { flex: 1; }
.about-text ul { list-style: none; margin-top: 20px; }
.about-text li { margin-bottom: 15px; font-size: 1.1rem; }
.about-text i { color: var(--primary-color); margin-right: 10px; }
.about-image { flex: 1; }
.fake-img {
    width: 100%; height: 300px; background: #ddd; border-radius: 10px;
    display: flex; align-items: center; justify-content: center; color: #666; font-weight: bold;
}

/* FOOTER */
footer { background: var(--secondary-color); color: var(--white); text-align: center; padding: 40px 0; }
.footer-phone { display: block; font-size: 2rem; color: var(--accent-color); text-decoration: none; font-weight: bold; margin: 20px 0; }
.copyright { font-size: 0.9rem; opacity: 0.6; }

/* ANIMATION CLASSES (pour JS) */
.hidden { opacity: 0; transform: translateY(50px); transition: all 0.8s ease-out; }
.show { opacity: 1; transform: translateY(0); }

/* --- RESPONSIVE MOBILE (Mise à jour) --- */
@media (max-width: 768px) {
    
    /* 1. Titre plus petit pour que ça rentre */
    .hero h1 { font-size: 2.2rem; }

    /* 2. FORCE LE MASQUAGE du menu et des numéros dans la barre du haut */
    .nav-links { display: none !important; }
    .navbar .phone-group { display: none !important; }
    .navbar .btn-call-nav { display: none !important; }

    /* 3. On centre le logo AMSR tout seul en haut */
    .navbar { 
        justify-content: center !important; 
        padding: 15px 0; 
    }

    /* 4. Les sections (texte/image) s'empilent */
    .split-layout { flex-direction: column; }

    /* 5. REGLAGE DES GROS BOUTONS D'APPEL (HERO) */
    /* On les force à s'empiler proprement */
    .cta-group {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    /* Les boutons prennent toute la largeur pour être faciles à cliquer */
    .btn-primary, .btn-secondary {
        display: block;      /* Force l'affichage en bloc */
        width: 90%;          /* Largeur confortable */
        margin: 10px auto;   /* Centré avec de l'espace */
        text-align: center;
    }
}
/* AJOUT POUR LES CATÉGORIES DE SERVICES */
.category-title {
    text-align: left;
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-top: 60px;
    margin-bottom: 30px;
    padding-left: 15px;
    border-left: 5px solid var(--accent-color);
}

/* Petit ajustement pour que le premier titre ne soit pas trop collé au grand titre */
.category-title:first-of-type {
    margin-top: 10px;
}

/* STYLE POUR LA PHOTO DU CAMION */
.camion-photo {
    width: 100%;             /* Prend toute la largeur disponible */
    height: auto;            /* Garde les proportions (pas d'écrasement) */
    border-radius: 10px;     /* Arrondit les coins */
    box-shadow: 0 10px 20px rgba(0,0,0,0.2); /* Ajoute une ombre portée sympa */
    object-fit: cover;       /* S'assure que l'image remplit bien l'espace */
    display: block;
}