/* style.css */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;800&display=swap');

:root {
    --primary-red: #c8102e; 
    --dark-grey: #2b2b2b;   
    --text-color: #333333;
    --light-bg: #ffffff;
    --border-color: #eaeaea;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-color);
    background-color: var(--light-bg);
    line-height: 1.6;
    overflow-x: hidden; 
}

a {
    text-decoration: none;
}

/* --- HEADER & NAVIGATION --- */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 40px;
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Nouveau bloc d'en-tête gauche (Logo + Contacts) */
.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo-container img {
    height: 80px;
    display: block;
}

/* Style des informations de contact dans l'en-tête */
.header-contacts {
    display: flex;
    flex-direction: column;
    font-size: 0.85em;
    line-height: 1.5;
    border-left: 2px solid var(--primary-red);
    padding-left: 15px;
}

.header-contacts a {
    color: var(--dark-grey);
    font-weight: 600;
    transition: color 0.3s;
}

.header-contacts a:hover {
    color: var(--primary-red);
}

.header-contacts .contact-name {
    font-weight: 800;
    color: var(--primary-red);
    font-size: 1.1em;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.mobile-only {
    display: none;
}

.burger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 32px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001; 
}

.burger-menu span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--dark-grey);
    border-radius: 3px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.burger-menu.open span:nth-child(1) {
    transform: translateY(10.5px) rotate(45deg);
}
.burger-menu.open span:nth-child(2) {
    opacity: 0;
}
.burger-menu.open span:nth-child(3) {
    transform: translateY(-10.5px) rotate(-45deg);
}

.nav-wrapper {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 30px;
}

nav {
    display: flex;
    justify-content: center;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
    align-items: center;
}

nav ul li a {
    color: var(--dark-grey);
    font-weight: 700;
    font-size: 0.85em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding-bottom: 5px;
    transition: color 0.3s;
}

nav ul li a.active {
    color: var(--primary-red);
    border-bottom: 2px solid var(--primary-red);
}

nav ul li a:hover {
    color: var(--primary-red);
}

.btn-header {
    background-color: var(--dark-grey);
    color: #ffffff;
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.85em;
    text-transform: uppercase;
    transition: background-color 0.3s;
    text-align: center;
}

.btn-header:hover {
    background-color: var(--primary-red);
}

/* --- HERO SECTION --- */
.hero {
    position: relative;
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.5)), url('images/hero2.jpeg') center/cover no-repeat;
    height: 65vh;
    min-height: 550px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero-text-container {
    margin-top: -40px;
    padding: 0 20px;
}

.hero-title-line {
    background-color: var(--primary-red);
    color: #ffffff;
    display: inline-block;
    padding: 6px 20px;
    font-size: 2.8em;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 5px;
    line-height: 1.1;
}

.hero-subtitle {
    color: #ffffff;
    font-size: 1.2em;
    font-weight: 600;
    margin-top: 15px;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.8);
}

.hero-features {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 100%);
    display: flex;
    justify-content: space-around;
    padding: 50px 5% 20px;
}

.hero-feature-item {
    display: flex;
    align-items: flex-start;
    color: #ffffff;
    max-width: 300px;
    text-align: left;
}

.hero-feature-item svg {
    width: 40px;
    height: 40px;
    fill: none;
    stroke: var(--primary-red);
    stroke-width: 2;
    margin-right: 15px;
    flex-shrink: 0;
}

.hero-feature-item strong {
    display: block;
    font-size: 1.1em;
    margin-bottom: 3px;
}
.hero-feature-item p {
    font-size: 0.85em;
    opacity: 0.9;
}

/* --- STYLE SECTIONS GÉNÉRAUX --- */
.section-container {
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 20px;
}

.bg-light {
    background-color: #fafdff;
    padding: 80px 0;
    margin: 80px 0;
}
.bg-light .section-container { margin: 0 auto; }

.section-title {
    text-align: center;
    font-size: 2.5em;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 60px;
}

.section-title .text-black { color: var(--dark-grey); }
.section-title .text-red { color: var(--primary-red); }

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, var(--dark-grey) 50%, var(--primary-red) 50%);
    margin: 15px auto 0;
}

/* --- SECTION 1 : NOS PRESTATIONS --- */
.services-grid {
    display: flex;
    justify-content: space-between;
    gap: 30px;
}

.service-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    border: 1px solid var(--border-color);
    transition: transform 0.3s;
}
.service-card:hover {
    transform: translateY(-5px);
}

.service-icon-wrapper {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.service-icon-wrapper svg {
    width: 45px;
    height: 45px;
    fill: none;
    stroke: var(--primary-red);
    stroke-width: 1.5;
    margin-right: 15px;
}

.service-card h3 {
    font-size: 1.3em;
    color: var(--dark-grey);
    text-transform: uppercase;
    font-weight: 800;
}

.service-card p {
    font-size: 0.95em;
    color: #666;
    margin-bottom: 25px;
    flex-grow: 1;
}

.btn-service-cta {
    display: inline-block;
    border: 2px solid var(--primary-red);
    color: var(--primary-red);
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 0.8em;
    text-transform: uppercase;
    align-self: flex-start;
    transition: all 0.3s;
}
.btn-service-cta:hover {
    background-color: var(--primary-red);
    color: #ffffff;
}

/* --- SECTION 2 : NOS SERVICES & ENGAGEMENTS (6 Blocs) --- */
.features-grid-6 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-card-6 {
    background: #ffffff;
    padding: 25px;
    border-radius: 8px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    border-top: 3px solid var(--dark-grey);
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
    transition: all 0.3s;
}
.feature-card-6:hover {
    border-top-color: var(--primary-red);
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}

.feature-card-6 svg {
    width: 40px;
    height: 40px;
    fill: none;
    stroke: var(--primary-red);
    stroke-width: 2;
    flex-shrink: 0;
}

.feature-card-6 h4 {
    font-size: 1.1em;
    font-weight: 800;
    color: var(--dark-grey);
    text-transform: uppercase;
    margin-bottom: 6px;
}
.feature-card-6 p {
    font-size: 0.9em;
    color: #555;
    line-height: 1.5;
}

/* --- SECTION 3 : AVIS CLIENTS --- */
.grid-reviews {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.card-review {
    background: #ffffff;
    padding: 35px 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
    border: 1px solid var(--border-color);
    position: relative;
}
.card-review::before {
    content: '“';
    font-size: 4em;
    color: var(--primary-red);
    opacity: 0.15;
    position: absolute;
    top: 5px;
    left: 20px;
    font-family: serif;
}
.stars {
    color: #ffc107;
    font-size: 1.1em;
    margin-bottom: 15px;
}
.review-text {
    font-style: italic;
    font-size: 0.95em;
    color: #555;
    margin-bottom: 15px;
}
.author {
    font-weight: 700;
    color: var(--dark-grey);
    font-size: 0.9em;
}

.center-container {
    text-align: center;
    margin-top: 50px;
}

.btn-large-red {
    display: inline-block;
    background-color: var(--primary-red);
    color: #ffffff;
    padding: 14px 35px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.9em;
    text-transform: uppercase;
    transition: background-color 0.3s;
}
.btn-large-red:hover {
    background-color: var(--dark-grey);
}

/* --- FOOTER --- */
footer {
    background-color: #1a1a1a;
    color: #c5c5c5;
    padding: 60px 20px 30px;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto 40px;
}
.footer-col h4 {
    color: #ffffff;
    font-size: 1.1em;
    margin-bottom: 20px;
    text-transform: uppercase;
}
.footer-col p { font-size: 0.9em; margin-bottom: 10px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; font-size: 0.9em; }
.footer-col ul li a { color: #c5c5c5; transition: color 0.3s; }
.footer-col ul li a:hover { color: var(--primary-red); }

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 20px;
    text-align: center;
    font-size: 0.8em;
}

.footer-legal-links {
    margin-top: 10px;
}
.footer-legal-links a {
    color: #c5c5c5;
    margin: 0 8px;
    transition: color 0.3s ease;
}
.footer-legal-links a:hover {
    color: var(--primary-red);
}

/* =========================================
   RESPONSIVE DESIGN (Tablettes & Mobiles)
========================================= */

/* Modifié à 1150px pour assurer le bon affichage du nouveau bloc info d'en-tête */
@media (max-width: 1150px) {
    header {
        padding: 15px 20px;
    }
    
    .logo-container img {
        height: 60px;
    }
    
    /* On cache le bloc contact de bureau, on affiche le menu burger */
    .desktop-only { display: none !important; }
    .mobile-only { display: flex !important; }

    .burger-menu {
        display: flex;
    }

    .nav-wrapper {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--light-bg);
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        display: flex;
        flex-direction: column;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-in-out, padding 0.4s ease-in-out;
    }

    .nav-wrapper.active {
        max-height: 800px; 
        padding: 20px 0 30px;
    }

    /* Style du bloc contact intégré au menu mobile */
    .header-contacts.mobile-only {
        flex-direction: column;
        align-items: center;
        border-left: none;
        border-bottom: 1px solid var(--border-color);
        padding: 0 0 20px 0;
        margin-bottom: 20px;
        width: 90%;
        gap: 10px;
        text-align: center;
    }

    nav {
        width: 100%;
    }

    nav ul {
        flex-direction: column;
        gap: 20px;
        width: 100%;
        text-align: center;
        margin-bottom: 25px;
    }

    .btn-header {
        width: 90%;
        max-width: 300px;
        margin: 0 auto;
    }

    .services-grid {
        flex-direction: column;
    }
    
    .hero-title-line {
        font-size: 2em;
    }
    
    .hero-features {
        display: none; 
    }
}

@media (max-width: 576px) {
    .hero {
        min-height: 400px;
        height: 50vh;
    }

    .hero-title-line {
        font-size: 1.4em;
        padding: 4px 10px;
    }

    .hero-subtitle {
        font-size: 1em;
    }

    .section-title {
        font-size: 1.8em;
        margin-bottom: 40px;
    }

    .features-grid-6, .grid-reviews {
        grid-template-columns: 1fr; 
    }

    .feature-card-6 {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .feature-card-6 svg {
        margin-bottom: 10px;
    }

    .card-review {
        padding: 25px 20px;
    }
}