/* --- RESET & VARIABLES --- */
:root {
    --bg-dark: #121212;
    --accent-orange: #FF6D00;
    --accent-green: #4CAF50;
    --text-white: #ffffff;
    --text-gray: #dddddd;
}

* { box-sizing: border-box; }

body { 
    font-family: 'Roboto', sans-serif; 
    margin: 0; padding: 0;
    line-height: 1.6; 
    color: var(--text-white); 
    
    /* FOND GÉNÉRAL (Texture) */
    background-color: var(--bg-dark); 
    background: linear-gradient(rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.85)), url('images/background.jpg');
    background-size: cover; background-position: center; background-attachment: fixed;
}

/* TYPOGRAPHIE */
h1, h2, h3, .logo, .btn, .fake-btn { 
    font-family: 'Oswald', sans-serif; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
}
a { text-decoration: none; }

/* --- HEADER --- */
header { 
    background: rgba(18, 18, 18, 0.95);
    padding: 15px 5%; 
    border-bottom: 2px solid var(--accent-orange); 
    display: flex; justify-content: space-between; align-items: center; 
    position: sticky; top: 0; z-index: 1000; 
}
.logo { font-size: 1.8rem; color: white; font-weight: bold; }
.logo span { color: var(--accent-orange); }

/* BOUTON HEADER */
.btn-header {
    background: var(--accent-orange); color: white; padding: 8px 20px;
    border-radius: 4px; font-weight: bold; border: 2px solid var(--accent-orange);
    transition: 0.3s;
}

/* --- HERO SECTION (BANNIÈRE CARTE D'AFFAIRES) --- */
.hero {
    /* Image tracteur/maison avec filtre sombre */
    background: linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.65)), url('images/banniere-aga.jpg');
    background-size: cover; background-position: center;
    padding: 160px 5%; text-align: center;
    border-bottom: 5px solid var(--accent-orange);
}

.hero h1 {
    font-size: 3rem; color: white; margin-bottom: 15px;
    text-shadow: 2px 2px 8px #000;
}
.hero p {
    font-size: 1.2rem; color: #f0f0f0; max-width: 800px; margin: 0 auto 40px auto;
    text-shadow: 1px 1px 5px #000;
}

.hero-buttons {
    display: flex; justify-content: center; gap: 20px; flex-wrap: wrap;
}

/* BOUTONS HERO */
.btn-white {
    background: white; color: #111; padding: 15px 30px; border-radius: 5px;
    font-weight: bold; border: 2px solid white; transition: 0.3s;
}
.btn-white:hover {
    background: var(--accent-orange); color: white; border-color: var(--accent-orange);
}

.btn-outline {
    background: transparent; color: white; padding: 15px 30px; border-radius: 5px;
    font-weight: bold; border: 2px solid white; transition: 0.3s;
}
.btn-outline:hover {
    background: var(--accent-green); border-color: var(--accent-green);
}

/* --- SECTIONS GÉNÉRALES --- */
.section-padding { padding: 80px 5%; max-width: 1400px; margin: 0 auto; }
.section-header { margin-bottom: 50px; }
.section-header h2 { font-size: 2.5rem; color: var(--accent-orange); margin-bottom: 10px; }
.section-header p { color: var(--text-gray); }
.center-text { text-align: center; }

/* --- SERVICES --- */
.services-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px;
}
.service-card {
    background: rgba(30, 30, 30, 0.85); /* Semi-transparent */
    padding: 30px; border-radius: 8px; border-left: 4px solid var(--accent-orange);
    transition: 0.3s; backdrop-filter: blur(5px);
}
.service-card:hover { transform: translateY(-5px); background: rgba(40, 40, 40, 0.95); }
.service-card h3 { color: white; margin-bottom: 10px; }
.featured { border: 2px solid var(--accent-orange); }

/* --- PORTFOLIO --- */
.gallery-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 15px;
}
.gallery-item { height: 250px; overflow: hidden; border-radius: 8px; cursor: pointer; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.gallery-item:hover img { transform: scale(1.1); }

/* --- CONTACT SECTION (FIX MOBILE) --- */
.contact-section { background: #1a1a1a; padding: 60px 5%; }
.email-buttons-grid {
    display: flex; flex-direction: column; gap: 20px;
    max-width: 900px; margin: 0 auto;
}
/* Style Carte Email */
.email-card {
    background: #2d2d2d; border: 2px solid #444; padding: 30px; border-radius: 10px;
    text-align: center; text-decoration: none !important; color: white !important;
    transition: 0.2s;
}
.email-card:hover { background: #333; border-color: var(--accent-orange); }
.email-card h3 { color: white !important; margin: 10px 0; font-size: 1.4rem; }
.email-card p { color: #bbb !important; font-size: 1rem; margin-bottom: 20px; }
.icon { font-size: 3rem; margin-bottom: 10px; line-height: 1; }

/* Faux Bouton dans la carte */
.fake-btn {
    display: inline-block; border: 2px solid var(--accent-orange);
    color: var(--accent-orange) !important; padding: 10px 20px; border-radius: 5px;
    font-weight: bold; margin-top: auto;
}
.email-card:hover .fake-btn { background: var(--accent-orange); color: white !important; }

/* --- CTA BAR & FOOTER --- */
.cta-bar {
    background: rgba(76, 175, 80, 0.9); text-align: center; padding: 60px 20px; margin-top: 40px;
}
.cta-bar h2 { color: white; margin-bottom: 20px; }
.phone-big {
    display: block; font-size: 3rem; font-weight: bold; color: white;
    font-family: 'Oswald', sans-serif; margin-bottom: 20px;
}

footer { background: #000; text-align: center; padding: 40px 5%; color: #888; font-size: 0.9rem; }
.rbq {
    margin-top: 15px; display: inline-block; border: 1px solid #444;
    padding: 5px 15px; color: var(--accent-orange); font-family: monospace;
}

/* --- LIGHTBOX --- */
.lightbox {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.95); display: none;
    justify-content: center; align-items: center; z-index: 2000;
}
.lightbox img { max-width: 95%; max-height: 90vh; border: 2px solid var(--accent-orange); }
.close-btn {
    position: absolute; top: 20px; right: 20px; font-size: 40px; color: white; cursor: pointer;
}

/* --- MEDIA QUERIES (Mobile/Tablette) --- */
@media (min-width: 768px) {
    .email-buttons-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    h1 { font-size: 2.2rem; }
    .hero { padding: 100px 5%; }
    header { flex-direction: column; gap: 10px; }
    .btn-header { width: 100%; text-align: center; }
}