/* ==========================================================================
   1. RESET ET VARIABLES GLOBALES
   ========================================================================== */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', sans-serif; }

:root {
    --primary-color: #1c3d5a;
    --accent-color: #f39c12;
    --bg-color: #f4f6f8;
    --text-color: #333333;
    --white: #ffffff;
}

body {
    background: linear-gradient(135deg, #f4f6f8 0%, #e2e6ea 100%);
    color: var(--text-color);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container { width: 90%; max-width: 1200px; margin: 0 auto; }

h1 { text-align: center; margin-bottom: 15px; color: var(--primary-color); font-size: 2.2rem; }
.subtitle { text-align: center; margin-bottom: 40px; color: #666; font-size: 1.1rem; max-width: 900px; margin-left: auto; margin-right: auto; }

/* ==========================================================================
   2. HEADER ET NAVIGATION
   ========================================================================== */
header { background-color: var(--primary-color); color: var(--white); padding: 1rem 0; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
header .container { display: flex; justify-content: space-between; align-items: center; }

/* --- STYLE DU NOUVEAU LOGO --- */
.logo { 
    display: flex; 
    align-items: center; 
    gap: 8px; 
    font-size: 1.9rem; 
    letter-spacing: 1px; 
    text-decoration: none; 
}
.logo-icon { width: 28px; height: 28px; fill: var(--accent-color); stroke: var(--accent-color); }
.logo-rd { color: var(--accent-color); font-weight: 800; }
.logo-elec { color: var(--white); font-weight: 400; }
/* ----------------------------- */

nav ul { list-style: none; display: flex; gap: 25px; }
nav a { color: var(--white); text-decoration: none; font-weight: 500; font-size: 1.05rem; transition: color 0.3s ease; }
nav a:hover, nav a.active { color: var(--accent-color); }

/* ==========================================================================
   3. STRUCTURE ET BOÎTES
   ========================================================================== */
main { flex: 1; padding: 50px 0; }

.content-box { 
    background: var(--white); 
    padding: 50px; 
    border-radius: 12px; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.05); 
    max-width: 1000px; 
    margin: 0 auto; 
}

.btn { background-color: var(--accent-color); color: var(--white); border: none; padding: 12px 25px; border-radius: 6px; cursor: pointer; font-size: 1.05rem; font-weight: bold; text-decoration: none; display: inline-block; transition: background 0.3s ease; }
.btn:hover { background-color: #d68910; }

/* ==========================================================================
   4. SECTION SERVICES ET FEATURES (Accueil)
   ========================================================================== */
/* Services */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 50px; max-width: 1300px; margin: 0 auto; }
.service-card { position: relative; background: var(--white); border-radius: 20px; overflow: hidden; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08); transition: transform 0.4s ease; height: 420px; display: flex; flex-direction: column; }
.service-card:hover { transform: translateY(-8px); box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15); }
.service-card img { width: 100%; height: 100%; object-fit: cover; }
.service-content { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(to top, rgba(28, 61, 90, 0.95), transparent); color: var(--white); padding: 30px 25px; height: 65%; display: flex; flex-direction: column; justify-content: flex-end; }
.service-content h3 { font-size: 1.3rem; margin-bottom: 10px; }
.service-content p { font-size: 0.95rem; color: rgba(255, 255, 255, 0.9); }

/* Features (Accueil) */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; margin-top: 60px; }
.feature-item { background: #ffffff; padding: 25px; border-radius: 15px; box-shadow: 0 4px 15px rgba(0,0,0,0.1); text-align: center; }
.feature-item h3 { color: var(--primary-color); margin-bottom: 10px; }

/* ==========================================================================
   5. PAGE CONTACT
   ========================================================================== */
.contact-grid { 
    display: grid; 
    grid-template-columns: 1.1fr 1fr; /* On donne un peu plus de place au texte (1.1) par rapport à la carte (1) */
    gap: 50px; /* J'ai légèrement réduit l'écart pour gagner encore un peu de place */
    align-items: start; 
    margin-top: 30px; 
}
.contact-details h3 { color: var(--primary-color); margin-bottom: 20px; font-size: 1.4rem; }
.contact-details ul { list-style: none; }
.contact-details li { margin-bottom: 15px; font-size: 1.1rem; color: #444; }
.contact-map iframe { border-radius: 12px; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); width: 100%; height: 350px; }

/* ==========================================================================
   6. FOOTER
   ========================================================================== */
footer { background-color: var(--primary-color); color: var(--white); text-align: center; padding: 25px 0; margin-top: auto; }
footer a { color: var(--accent-color); text-decoration: none; }

/* ==========================================================================
   7. RESPONSIVE
   ========================================================================== */
@media (max-width: 768px) {
    header .container { flex-direction: column; gap: 15px; }
    .contact-grid { grid-template-columns: 1fr; }
    .service-card { height: 320px; }
}
/* ==========================================================================
   8. PAGE TARIFS (Design des prix)
   ========================================================================== */
.pricing-list { 
    max-width: 650px; 
    margin: 0 auto 40px auto; 
    display: flex; 
    flex-direction: column; 
    gap: 15px; 
}

.pricing-item { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    background: var(--bg-color); /* Fond très clair */
    padding: 18px 25px; 
    border-radius: 10px; 
    border-left: 5px solid var(--accent-color); /* Barre orange sur le côté */
    transition: all 0.3s ease; 
}

.pricing-item:hover { 
    transform: translateX(5px); /* Petit décalage au survol */
    box-shadow: 0 5px 15px rgba(0,0,0,0.08); 
    background: var(--white); 
}

.pricing-label { 
    font-size: 1.15rem; 
    font-weight: 600; 
    color: var(--primary-color); 
    display: flex; 
    align-items: center; 
    gap: 10px; 
}

.pricing-value { 
    font-size: 1.4rem; 
    font-weight: 800; 
    color: var(--accent-color); 
}

.pricing-value small { 
    font-size: 0.9rem; 
    font-weight: 500; 
    color: #777; 
}