/* Variables et Styles Généraux (identiques à l'index.html) */
:root {
    --color-dark-blue: #0A192F;
    --color-light-blue: #66CCFF;
    --color-text: #E6E6E6;
    --color-grey: #30475E;
    --color-cta-hover: #99FFFF; /* Ajout d'une variable pour le survol */
}

/* --------------------------------- */
/* 🚀 1. Styles Généraux & Reset Minime */
/* --------------------------------- */
*, *::before, *::after {
    box-sizing: border-box; 
}

body {
    font-family: 'Arial', sans-serif;
    color: var(--color-text);
    margin: 0;
    padding: 0;
    line-height: 1.6;

    /* 🆕 AJOUT DE L'IMAGE DE FOND AVEC OPACITÉ */
    background-image: 
        linear-gradient(rgba(10, 25, 47, 0.2), rgba(10, 25, 47, 0.2)), 
        url('services.jpg'); 
    
    background-color: var(--color-dark-blue);
    background-size: cover; 
    background-position: center center; 
    background-attachment: fixed; 
}
 
/* --------------------------------- */
/* 🌐 2. En-tête (Navigation) */
/* --------------------------------- */
header {
    background-color: rgba(10, 25, 47, 0.95);
    padding: 15px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--color-light-blue);
}

/* Styles pour le logo */
.logo-container {
    display: flex;
    align-items: center;
    text-decoration: none;
}
.logo-img {
    height: 120px; 
    width: auto;
    margin-right: 10px;
}
.logo {
    font-size: 1.8em;
    font-weight: bold;
    color: var(--color-light-blue);
}

nav a {
    color: var(--color-text);
    text-decoration: none;
    margin-left: 25px;
    font-size: 1.1em;
    transition: color 0.3s;
}
nav a:hover, nav a.active {
    color: var(--color-light-blue);
}
.cta-button { 
    display: inline-block;
    background-color: var(--color-light-blue);
    color: var(--color-dark-blue);
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    font-size: 1em;
    transition: background-color 0.3s;
}
.cta-button:hover {
    background-color: var(--color-cta-hover);
}

/* --------------------------------- */
/* 🖼️ 3. Contenu Principal */
/* --------------------------------- */
.page-content {
    padding: 50px 80px;
    max-width: 1200px;
    margin: 0 auto;
}
.page-content h1 {
    text-align: center;
    font-size: 3em;
    color: var(--color-light-blue);
    margin-bottom: 50px;
}

.page-intro-centered {
    text-align: center; 
    font-size: 1.2em;
    max-width: 800px;
    margin: 0 auto 50px auto; 
}


/* --------------------------------- */
/* 🛠️ 4. Blocs de Services */
/* --------------------------------- */
.service-blocks {
    display: flex;
    gap: 40px;
    margin-top: 30px;
}

.service-block {
    flex: 1;
    background-color: var(--color-grey);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
}
.service-block h2 {
    color: var(--color-light-blue);
    font-size: 2em;
    border-bottom: 3px solid var(--color-dark-blue);
    padding-bottom: 15px;
    margin-bottom: 25px;
}
.service-block ul {
    list-style: none;
    padding: 0;
}
.service-block li {
    background-color: var(--color-dark-blue);
    padding: 15px;
    margin-bottom: 10px;
    border-left: 5px solid var(--color-light-blue);
    border-radius: 4px;
}
.service-block li strong {
    color: var(--color-light-blue);
    display: block;
    margin-bottom: 5px;
}

/* --------------------------------- */
/* 🎯 5. Schéma (Matrice) */
/* --------------------------------- */
.schema-container {
    margin-top: 50px;
    padding: 40px;
    background-color: #172A45;
    border-radius: 10px;
    text-align: center;
}
.schema-container h3 {
    color: var(--color-light-blue);
    margin-bottom: 20px;
}
.matrix {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}
.matrix-item {
    background-color: var(--color-dark-blue);
    padding: 20px;
    border-radius: 5px;
    border: 1px dashed var(--color-light-blue);
    font-weight: bold;
}

/* --------------------------------- */
/* 📜 6. Pied de Page */
/* --------------------------------- */
footer {
    background-color: var(--color-grey);
    text-align: center;
    padding: 20px;
    font-size: 0.9em;
    margin-top: 50px;
    border-top: 2px solid var(--color-light-blue);
}
footer a {
    color: var(--color-light-blue);
    text-decoration: none;
}

/* ========================================= */
/* 📱 7. MEDIA QUERIES (Affichage Mobile) */
/* ========================================= */
@media (max-width: 768px) {
    
    /* 1. Navigation et En-tête */
    header {
        padding: 15px 20px;
        flex-direction: column; 
        text-align: center;
    }
    .logo-img {
        height: 80px; 
    }
    nav {
        margin-top: 15px;
        display: flex;
        flex-direction: column; 
        width: 100%;
        **align-items: center;** /* Ajout pour renforcer le centrage des liens */
    }
    nav a {
        margin: 5px 0;
        padding: 8px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        width: 100%;
        text-align: center;
    }

    /* 🎯 CORRECTION DÉFINITIVE DU BOUTON "CONTACT" */
    .cta-button {
        margin-top: 10px;
        /* Remplacement de width: 100% pour permettre le centrage */
        **width: 90%;** **display: block;** **margin-left: auto;** /* Centrage Horizontal */
        **margin-right: auto;** /* Centrage Horizontal */
        text-align: center;
    }
    
    /* 2. Contenu Principal */
    .page-content {
        padding: 30px 20px; 
    }
    .page-content h1 {
        font-size: 2em;
    }

    .page-intro-centered {
        font-size: 1em; 
        margin-bottom: 30px; 
    }

    /* 3. Blocs de Services */
    .service-blocks {
        flex-direction: column; /* Empile les deux blocs (Organisations et ESN) */
        gap: 30px;
        **align-items: center;** /* Centrage du conteneur Flex */
    }
    .service-block {
        **width: 95%;** /* Limite la largeur du bloc */
        **margin: 0 auto;** /* Centrage de l'élément bloc */
    }
    
    /* 4. Matrice d'Intervention */
    .schema-container {
        padding: 30px 20px;
    }
    .matrix {
        grid-template-columns: 1fr; /* Une seule colonne */
    }
    .matrix-item {
        /* Centrage visuel des éléments de la matrice empilés */
        text-align: center;
    }
}