/* styles.css */
:root {
    --primary: #0056b3;
    --secondary: #00a8e8;
    --dark: #1a2a3a;
    --light: #f8f9fa;
    --accent: #ff6b00;
    --success: #28a745;
    --text: #333;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text);
    line-height: 1.7;
    background-color: #f5f7fa;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Header --- */
header {
    background: linear-gradient(135deg, var(--dark) 0%, var(--primary) 100%);
    color: white;
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a { text-decoration: none; color: inherit; display: flex; align-items: center; }
.logo-img { height: 60px; margin-right: 15px; border-radius: 8px; }
.logo-text { display: flex; flex-direction: column; }
.logo-title { font-size: 1.6rem; color: white; margin: 0; }
.logo-slogan { font-size: 0.8rem; color: var(--accent); margin-top: 5px; text-transform: uppercase; }

nav ul { display: flex; list-style: none; margin: 0; padding: 0; }
nav ul li { margin-left: 25px; }
nav ul li a { color: white; text-decoration: none; font-weight: 500; padding: 8px 12px; border-radius: 4px; transition: color 0.3s; }
nav ul li a:hover { color: var(--accent); }

.mobile-menu-btn { display: none; background: none; border: none; color: white; font-size: 1.5rem; cursor: pointer; }

.language-switcher { margin-left: 20px; }
.lang-btn { background: rgba(255,255,255,0.15); color: white; border: none; padding: 8px 15px; border-radius: 4px; cursor: pointer; font-weight: 500; transition: all 0.3s; }
.lang-btn.active { background: var(--accent); }

/* --- Section Hero (Accueil) --- */
.hero {
    background: linear-gradient(rgba(26, 42, 58, 0.85), rgba(0, 86, 179, 0.85)), url('https://images.unsplash.com/photo-1551288049-bebda4e38f71?q=80&w=2070&auto=format&fit=crop') no-repeat center center/cover;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 0 20px;
}

.hero-content h1 { font-size: 3.5rem; margin-bottom: 20px; color: white; }
.hero-content p { font-size: 1.5rem; margin-bottom: 30px; font-weight: 300; max-width: 800px; margin-left: auto; margin-right: auto; }
.hero-btns { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }
.btn { display: inline-block; background: var(--accent); color: white; padding: 12px 30px; border-radius: 50px; text-decoration: none; font-weight: 600; transition: all 0.3s; border: 2px solid var(--accent); }
.btn-secondary { background: transparent; border: 2px solid white; }
.btn:hover { background: white; color: var(--primary); border-color: white; }

/* --- Sections Générales --- */
main > section:not(.hero) {
    padding: 100px 0;
    border-bottom: 1px solid #e9ecef;
}
main > section:last-of-type {
    border-bottom: none;
}

.section-title { text-align: center; margin-bottom: 60px; }
.section-title h2 { font-size: 2.5rem; position: relative; padding-bottom: 15px; }
.section-title h2::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 80px; height: 4px; background: var(--accent); }

/* --- Section À Propos --- */
.about-content { display: flex; align-items: center; gap: 50px; }
.about-text { flex: 2; }
.about-text h3 { margin-bottom: 1.5rem; color: var(--primary); }
.about-text p { margin-bottom: 1.25rem; text-align: justify; color: #495057; }
.about-image { flex: 1; border-radius: 10px; overflow: hidden; }
.about-image img { width: 100%; display: block; }

/* --- Section Mission --- */
.mission {
    background-color: #ffffff; /* Fond blanc pour contraster avec les autres sections */
}
.mission-content {
    display: flex;
    align-items: center;
    gap: 60px;
}
.mission-text {
    flex: 1.2; /* Donne un peu plus de place au texte */
}
.mission-image {
    flex: 0.8;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.mission-image img {
    width: 100%;
    display: block;
    aspect-ratio: 4 / 3; /* Garde une proportion d'image agréable */
    object-fit: cover;
}
.mission-text h3 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

/* On inverse l'ordre sur mobile pour avoir l'image en bas */
@media (max-width: 992px) {
    .mission-content {
        flex-direction: column-reverse;
    }
}

/* --- Section Services (page d'accueil) --- */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-top: 50px; }
.service-card { background: white; border-radius: 10px; text-decoration: none; color: inherit; padding: 40px 25px; text-align: center; box-shadow: 0 5px 15px rgba(0,0,0,0.05); transition: transform 0.3s, box-shadow 0.3s; }
.service-card:hover { transform: translateY(-10px); box-shadow: 0 15px 30px rgba(0,0,0,0.1); }
.service-icon { font-size: 3rem; color: var(--secondary); margin-bottom: 20px; }

/* --- Styles pour les pages de détail de service --- */
.service-detail { padding-top: 120px; padding-bottom: 80px; }
.service-header { text-align: center; margin-bottom: 50px; }
.service-icon-large { font-size: 5rem; color: var(--secondary); margin-bottom: 20px; }
.service-content { display: grid; grid-template-columns: 2fr 1fr; gap: 50px; margin-top: 50px; }
.service-benefits { background: #f8f9fa; border-radius: 10px; padding: 30px; }
.benefit-list { list-style: none; padding: 0; }
.benefit-list li { margin-bottom: 15px; padding-left: 30px; position: relative; }
.benefit-list li:before { content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute; left: 0; top: 2px; color: var(--success); }
.cta-section { margin-top: 30px; text-align: center; }

.back-btn {
    display: inline-block;
    margin-bottom: 40px;
    background: var(--primary);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s;
}
.back-btn:hover {
    background-color: var(--dark);
}
.back-btn i {
    margin-right: 8px;
}

/* Styles pour le processus en 4 étapes */
.service-process {
    margin-top: 40px;
}
.process-steps {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 30px;
}
.process-step {
    text-align: center;
}
.step-number {
    width: 60px;
    height: 60px;
    background: var(--secondary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 1.8rem;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
}
.process-step h4 {
    margin-bottom: 10px;
    color: var(--primary);
}

/* --- Section Projets --- */
.projets {
    background-color: #ffffff;
}
.projets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}
.projet-card {
    background: var(--light);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-left: 5px solid var(--secondary);
}
.projet-card h3 {
    color: var(--primary);
    margin-bottom: 15px;
}

/* --- Section Leadership --- */
.leadership-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 30px; align-items: stretch; }
.leader-card { background: white; border-radius: 10px; box-shadow: 0 8px 25px rgba(0,0,0,0.08); display: flex; flex-direction: column; overflow: hidden; }
.leader-image img { width: 100%; height: 280px; object-fit: cover; }
.leader-info { padding: 30px; display: flex; flex-direction: column; flex-grow: 1; }
.leader-info h3 { color: var(--primary); }
.leader-position { color: var(--secondary); font-weight: 600; margin-bottom: 15px; font-style: italic; }
.leader-info p { font-size: 0.95rem; color: #495057; flex-grow: 1; margin-bottom: 0; text-align: justify; padding-left: 15px; border-left: 3px solid var(--accent); }

/* --- Section Stats --- */
.stats { padding: 80px 0; background: linear-gradient(135deg, var(--primary) 0%, var(--dark) 100%); color: white; text-align: center; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 30px; }
.stat-item h3 { font-size: 3rem; color: white; margin-bottom: 10px; }
.stat-item p { font-size: 1.1rem; font-weight: 300; }

/* --- Section Carrières --- */
.careers { background: linear-gradient(rgba(26, 42, 58, 0.9), rgba(26, 42, 58, 0.9)), url('images/career-background.jpg') no-repeat center center/cover; color: white; }
.careers .section-title h2, .careers .section-title p { color: white; }
.careers-content { max-width: 850px; margin: 0 auto; text-align: center; }
.careers-content > p { margin-bottom: 40px; text-align: center; }
.career-card { background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.2); backdrop-filter: blur(5px); padding: 25px; border-radius: 8px; margin-bottom: 20px; text-align: left; }
.career-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; flex-wrap: wrap; gap: 10px; }
.career-title { font-size: 1.3rem; color: var(--accent); }
.career-location { font-style: italic; }
.career-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 15px; }
.career-tag { background: rgba(0, 168, 232, 0.2); padding: 5px 12px; border-radius: 20px; font-size: 0.8rem; }
.careers .btn { margin-top: 40px; }

/* --- Section Témoignages --- */
.testimonials-container { max-width: 850px; margin: 0 auto; }
.testimonial { background: white; padding: 30px; border-radius: 8px; margin-bottom: 20px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); position: relative; }
.testimonial::before { content: '"'; position: absolute; top: 10px; left: 20px; font-size: 5rem; color: var(--secondary); opacity: 0.1; }
.testimonial p { font-style: italic; position: relative; z-index: 1; }
.client { display: flex; align-items: center; margin-top: 20px; }
.client img { width: 60px; height: 60px; border-radius: 50%; margin-right: 15px; }

/* --- Section Contact --- */
.contact-container { display: flex; flex-wrap: wrap; gap: 50px; background: white; padding: 50px; border-radius: 10px; }
.contact-info { flex: 1; min-width: 300px; }
.contact-form { flex: 1.5; min-width: 300px; }
.info-item { display: flex; align-items: flex-start; margin-bottom: 20px; }
.info-icon { font-size: 1.5rem; color: var(--secondary); margin-right: 20px; width: 30px; }
.form-group { margin-bottom: 20px; }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 12px 15px; border-radius: 5px; border: 1px solid #ccc; font-size: 1rem; }
.form-group textarea { height: 120px; }

/* --- Footer --- */
footer { background: var(--dark); color: #ccc; padding: 70px 0 20px; }
.footer-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; margin-bottom: 50px; }
.footer-col h4 { color: white; margin-bottom: 25px; position: relative; padding-bottom: 10px; }
.footer-col h4::after { content: ''; position: absolute; bottom: 0; left: 0; width: 50px; height: 2px; background: var(--accent); }
.footer-col ul { list-style: none; padding: 0; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a { color: #ccc; text-decoration: none; transition: all 0.3s; }
.footer-col ul li a:hover { color: var(--accent); padding-left: 5px; }
.social-links { display: flex; gap: 15px; margin-top: 20px; }
.social-links a { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; background: rgba(255,255,255,0.1); border-radius: 50%; color: white; transition: all 0.3s; }
.social-links a:hover { background: var(--accent); }
.copyright { text-align: center; padding-top: 30px; border-top: 1px solid rgba(255,255,255,0.1); font-size: 0.9rem; color: #aaa; }

/* --- Responsive --- */
@media (max-width: 992px) {
    .process-steps {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 768px) {
    nav ul { display: none; position: absolute; top: 100%; left: 0; width: 100%; background: var(--dark); flex-direction: column; padding: 10px 0; }
    nav ul.show { display: flex; }
    nav ul li { margin: 10px 0; text-align: center; }
    .mobile-menu-btn { display: block; }
    .hero-content h1 { font-size: 2.5rem; }
    .about-content, .contact-container, .service-content, .process-steps { flex-direction: column; grid-template-columns: 1fr; }
}
/* --- Styles pour les liens sociaux du Leadership --- */
.leader-socials {
    margin-bottom: 20px; /* Espace avant le paragraphe de description */
    margin-top: -5px; /* Remonte un peu l'icône */
}

.leader-socials a {
    color: var(--primary);
    font-size: 1.6rem; /* Taille de l'icône */
    text-decoration: none;
    transition: color 0.3s ease;
}

.leader-socials a:hover {
    color: var(--accent); /* Couleur au survol */
}
/* --- Section Clients / Logos --- */
.clients {
    background-color: var(--light);
}

.logos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 40px;
    align-items: center;
    margin-top: 50px;
}

.logo-item {
    text-align: center;
    padding: 15px;
}

.logo-item img {
    max-height: 55px; /* Ajustez la hauteur pour une taille uniforme */
    width: auto;
    max-width: 100%;
    /* Effet professionnel : logos grisés par défaut */
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease-in-out;
}

.logo-item img:hover {
    /* Les couleurs reviennent au survol */
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

/* --- Styles pour le Blog --- */

/* En-tête de la page de blog */
.page-header {
    padding: 150px 0 80px;
    background: linear-gradient(rgba(26, 42, 58, 0.85), rgba(0, 86, 179, 0.85));
    text-align: center;
    color: white;
}
.page-header h1 {
    font-size: 3rem;
    color: white;
}
.page-header p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.9;
}

/* Grille des articles sur la page blog.html */
.blog-list {
    padding: 80px 0;
}
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}
.post-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.07);
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s, box-shadow 0.3s;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.post-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}
.post-card-content {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.post-card-content h3 {
    color: var(--primary);
}
.post-card-content p {
    flex-grow: 1;
    margin-bottom: 20px;
}
.post-read-more {
    color: var(--accent);
    font-weight: 700;
    align-self: flex-start;
}

/* Styles pour la page d'un article */
.article-page .article-header {
    padding: 160px 0 60px;
    background: var(--dark);
    color: white;
    text-align: center;
}
.article-page .article-header h1 {
    color: white;
    font-size: 2.8rem;
}
.article-meta {
    color: #ccc;
    font-style: italic;
}
.article-content {
    padding: 60px 0;
    max-width: 800px; /* Pour une meilleure lisibilité */
}
.article-content h2 {
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
}
.article-content p, .article-content ul {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
}
.article-content blockquote {
    margin: 2rem 0;
    padding-left: 20px;
    border-left: 4px solid var(--accent);
    font-style: italic;
    font-size: 1.2rem;
    color: #555;
}
/* Style pour le changement de langue dans un article */
.language-switch-article {
    margin-bottom: 2rem;
    padding: 10px;
    background-color: #e9f5ff;
    border-left: 4px solid var(--secondary);
    font-style: italic;
}
.language-switch-article a {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
}
.language-switch-article a:hover {
    text-decoration: underline;
}
/* --- Bloc Signature Auteur (Article) --- */
.article-author-box {
    margin-top: 4rem;
    padding-top: 2.5rem;
    border-top: 1px solid #e9ecef;
    display: flex;
    align-items: flex-start;
    gap: 25px;
}

.author-photo img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
}

.author-details {
    flex: 1;
}

.author-name {
    margin: 0 0 5px 0;
    color: var(--dark);
    font-size: 1.4rem;
}

.author-title {
    font-style: italic;
    color: #555;
    margin-bottom: 15px;
    line-height: 1.4;
}

.author-bio {
    font-size: 0.95rem;
    margin-bottom: 15px;
    line-height: 1.6;
}

.author-socials a {
    color: var(--primary);
    font-size: 1.6rem; /* Taille de l'icône LinkedIn */
    text-decoration: none;
    transition: color 0.3s;
}

.author-socials a:hover {
    color: var(--accent);
}

/* Rendre le bloc adaptable sur mobile */
@media (max-width: 768px) {
    .article-author-box {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

/* --- Image de Bannière pour les Articles --- */
.article-hero-image {
    width: 70%; /* L'image prendra la largeur du conteneur de texte */
    max-height: 1500px; /* Hauteur maximale réduite pour être moins imposante */
    overflow: hidden;
    margin-bottom: 40px; /* Espace avant le début du texte */
    border-radius: 10px; /* Ajoute des coins arrondis, plus élégant */
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.article-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- Section Départements --- */
.departements {
    background-color: #ffffff;
    padding: 100px 0;
    border-bottom: 1px solid #e9ecef;
}

.departements-grid {
    display: grid;
    /* Crée 4 colonnes sur grand écran, 2 sur tablette, 1 sur mobile */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.departement-card {
    background: white;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    padding: 30px 25px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    border-top: 4px solid var(--secondary); /* Petite touche de couleur distinctive */
}

.departement-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.departement-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 20px;
    height: 50px; /* Assure un alignement vertical même si les icônes ont des tailles différentes */
}

.departement-card h3 {
    margin-bottom: 15px;
    color: var(--dark);
    font-size: 1.3rem;
    min-height: 50px; /* Aide à aligner les titres sur deux lignes */
}

.departement-card p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
}

/* --- Styles pour les sous-sections des Départements --- */
.departement-subsection {
    margin-top: 80px; /* Ajoute de l'espace entre les départements et la mission/confiance */
}

/* On réutilise le style des logos qu'on avait déjà créé */
.departement-subsection .logos-grid {
    margin-top: 50px;
}

/* --- Style pour la mention de conception du site --- */
.site-credit {
    margin-top: 10px;
    font-size: 0.85rem;
    color: #888;
}
.site-credit strong {
    color: #bbb;
}