/* Variables et Styles Généraux */
:root {
    --color-dark-blue: #0A192F;
    --color-light-blue: #66CCFF;
    --color-text: #E6E6E6;
    --color-grey: #30475E;
    --color-accent-bg: #112240; 
    --color-cta-hover: #99FFFF;
}

/* --------------------------------- */
/* 🚀 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;

    /* Image de fond */
    background-image: 
        linear-gradient(rgba(10, 25, 47, 0.2), rgba(10, 25, 47, 0.2)), 
        url('rciware.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);
}

/* Bouton d'Action (CTA) */
.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: 1100px;
    margin: 0 auto;
}
.page-content h1 {
    text-align: center;
    font-size: 3em;
    color: var(--color-light-blue);
    margin-bottom: 40px;
}
.section-intro {
    background-color: var(--color-accent-bg);
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 50px;
    border-left: 5px solid var(--color-light-blue);
}
.section-intro h2 {
    color: var(--color-light-blue);
    margin-top: 0;
}

.section-heading-centered {
    text-align: center; 
    color: var(--color-light-blue); 
    margin-bottom: 30px;
}
 
/* --------------------------------- */
/* 🛠️ 4. Section Valeurs */
/* --------------------------------- */
.value-grid {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 50px;
}
.value-card {
    flex: 1;
    background-color: var(--color-grey);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-align: center;
    transition: transform 0.3s;
}
.value-card:hover {
    transform: translateY(-5px);
}
.value-card h3 {
    color: var(--color-light-blue);
    font-size: 1.5em;
    margin-top: 0;
    border-bottom: 1px solid var(--color-light-blue);
    padding-bottom: 10px;
}

/* --------------------------------- */
/* 🎯 5. Section Pourquoi nous choisir */
/* --------------------------------- */
.why-choose {
    background-color: var(--color-accent-bg);
    padding: 40px;
    border-radius: 10px;
}
.why-choose h2 {
    color: var(--color-light-blue);
    text-align: center;
    margin-bottom: 30px;
}
.advantage-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}
.advantage-list li {
    width: 48%; /* Deux colonnes sur desktop */
    background-color: var(--color-dark-blue);
    padding: 15px;
    margin-bottom: 20px;
    border-left: 4px solid var(--color-light-blue);
    border-radius: 4px;
}
.advantage-list li strong {
    color: var(--color-light-blue);
    display: block;
    margin-bottom: 5px;
    font-size: 1.1em;
}


/* --------------------------------- */
/* 📜 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 enfants */
    }
    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: 2.2em;
    }
    .section-intro {
        padding: 20px;
    }

    /* 3. Section Valeurs */
    .value-grid {
        flex-direction: column; 
        gap: 20px;
        /* Ajout pour centrer le conteneur des cartes si nécessaire */
        align-items: center;
    }
    /* Centrage des cartes de valeurs */
    .value-card {
        padding: 20px;
        **width: 90%;** /* Limite la largeur */
        **margin: 0 auto;** /* Centrage de la carte elle-même */
    }

    /* 4. Pourquoi nous choisir */
    .why-choose {
        padding: 30px 20px;
    }
    .advantage-list li {
        width: 100%; 
        margin-bottom: 15px;
    }
}