/* --- Reset et Variables --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary-color: #0056b3;
    --text-dark: #333;
    --text-light: #666;
    --bg-light: #f9f9f9;
}

body {
    color: var(--text-dark);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* ---------------------------------- */
/* EN-TÊTE / NAVBAR                  */
/* ---------------------------------- */
header {
    background-color: #FFFFFF;
    border-bottom: 1px solid #F3F4F6;
    position: relative;
    z-index: 1000;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
}

.logo img {
    height: 40px;
}

/* NAV PC */
nav ul {
    list-style: none;
    display: flex;
    gap: 28px;
}

nav a {
    text-decoration: none;
    color: #6B7280;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: color 0.2s;
}

nav a:hover {
    color: #1470AF;
}

nav a.active {
    color: #FF914D;
    text-decoration: underline;
    text-underline-offset: 4px;
    font-weight: 600;
}

/* HEADER CTAs */
.header-ctas {
    display: flex;
    align-items: center;
    gap: 24px;
}

.phone-number {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #1470AF;
    font-weight: 600;
    font-size: 14px;
    border: 1px solid #E5E7EB;
    padding: 10px 16px;
    border-radius: 6px;
}

.phone-number img {
    width: 16px;
}

/* BOUTONS */
.btn-diagnostic {
    background-color: #1470AF;
    color: #FFFFFF;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-diagnostic a {
    color: #FFFFFF;
    text-decoration: none;
}

.btn-secondary {
    background-color: #FFFFFF;
    color: #6B7280;
    padding: 12px 24px;
    border: 1px solid #E5E7EB;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
}

/* MENU DÉROULANT PC */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #FFFFFF;
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    top: 100%;
    left: 0;
    z-index: 2000;
    padding: 10px 0;
    flex-direction: column;
    gap: 0;
}

.dropdown:hover .dropdown-content {
    display: flex;
    flex-direction: column;
}

.dropdown-content li {
    width: 100%;
}

.dropdown-content li a {
    padding: 10px 20px;
    display: block;
    text-transform: none;
}

.dropdown-content li a:hover {
    background-color: var(--bg-light);
}

/* FIX MOBILE : neutralise le CSS natif du menu */
@media (max-width: 1024px) {
    nav {
        display: none;
    }
    nav.active {
        display: flex !important;
    }
    .dropdown-content {
        display: none !important;
    }
    .dropdown-content.open {
        display: flex !important;
        flex-direction: column !important;
    }
}

/* --- Section Équipe --- */
.team-section {
    padding: 80px 5%;
    background-color: var(--bg-light);
}

.title-banner {
    max-width: 100%;
    height: 50vh;
    margin: 0 auto 60px auto;
    padding: 60px 20px;
    border-radius: 10px;
    background-size: cover;
    background-position-y: -250px;
    background-color: #333;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    display: flex;
    justify-content: center;
    align-items: center;
}

.team-section .section-title {
    text-align: center;
    font-size: 2.5rem;
    color: #fff;
    margin: 0;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8);
}

.team-grid {
    display: flex;
    flex-direction: column;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.team-card {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    gap: 50px;
}

.team-card:nth-child(even) {
    flex-direction: row-reverse;
}

.team-img {
    width: 30vw;
    max-width: 450px;
    height: 50vh;
    min-height: 300px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.team-text {
    flex-grow: 1;
}

.team-card h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--primary-color);
    border-bottom: 3px solid var(--primary-color);
    display: inline-block;
    padding-bottom: 5px;
}

.team-card p {
    color: var(--text-light);
    margin-bottom: 15px;
    font-size: 1.05rem;
    text-align: justify;
}

/* --- Section Services --- */
.services-section {
    padding: 60px 5%;
    background-color: white;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 60px;
    color: var(--text-dark);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    text-align: center;
    padding: 20px;
}

.icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-card h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.service-card p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* --- CTA Section --- */
.cta-section {
    text-align: center;
    padding: 60px 5%;
    background-color: var(--bg-light);
}

/* --- FOOTER --- */
.site-footer {
    background-color: #2D2D2D;
    color: #FFFFFF;
    padding: 60px 20px 30px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    justify-content: center;
}

.footer-container {
    width: 100%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-logo {
    margin-bottom: 60px;
}

.footer-logo img {
    height: 60px;
    width: auto;
    object-fit: contain;
}

.footer-links-grid {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 60px;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-column {
    flex: 1;
    min-width: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 40px;
}

.footer-block h4 {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}

.footer-block ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-block li {
    margin-bottom: 12px;
}

.footer-block a {
    color: #D1D5DB;
    text-decoration: underline;
    text-underline-offset: 3px;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.footer-block a:hover {
    color: #FFFFFF;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding-top: 20px;
}

.copyright {
    color: #D1D5DB;
    font-size: 0.8rem;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons img {
    width: 30px;
    height: 30px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.social-icons a:hover img {
    transform: scale(1.1);
}

/* --- RESPONSIVE TABLETTES --- */
@media (max-width: 1024px) {
    .team-card,
    .team-card:nth-child(even) {
        flex-direction: column;
        padding: 30px;
        gap: 25px;
    }

    .team-img {
        width: 100%;
        max-width: 100%;
        height: auto;
        min-height: auto;
    }

    .title-banner {
        height: auto;
        min-height: 30vh;
        padding: 40px 15px;
        background-position: center;
        margin-bottom: 40px;
    }
}

/* --- RESPONSIVE MOBILE --- */
@media (max-width: 768px) {
    .title-banner {
        height: auto;
        min-height: 30vh;
        padding: 40px 15px;
        background-position: center;
        margin-bottom: 40px;
    }

    .team-section .section-title {
        font-size: 1.8rem;
    }

    .footer-links-grid {
        flex-direction: column;
        gap: 40px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

@media (max-width: 800px) {
    .footer-links-grid {
        flex-direction: column;
        gap: 60px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}