* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* PALETTE DE COULEURS : GRIS ET BLEUS */
    /* Bleus */
    --primary-color: #3A7CA5;       /* Bleu Acier: Éléments interactifs principaux, liens */
    --primary-dark: #2C5E8D;       /* Bleu Acier Foncé: États de survol pour le primaire, bordures importantes */
    --accent-color: #5DADE2;       /* Bleu Plus Vif: Éléments d'accentuation, certains tags de compétence */
    --accent-light: #A9CCE3;       /* Bleu Clair: Arrière-plans subtils, effets de survol, bordures */

    /* Gris */
    --bg-page: #F4F6F8;            /* Gris Très Clair: Arrière-plan principal du corps */
    --bg-content: #FFFFFF;         /* Blanc: Arrière-plan pour les cartes, sections, nav */
    --text-primary: #212529;       /* Gris Foncé/Presque Noir: Titres, texte principal */
    --text-secondary: #495057;     /* Gris Moyen: Texte régulier, descriptions */
    --text-muted: #6C757D;         /* Gris Clair: Sous-titres, informations moins importantes */
    --border-color: #DEE2E6;       /* Gris Clair: Bordures, séparateurs */

    /* Ombres (ajustées pour une teinte bleutée) */
    --shadow-light: rgba(58, 124, 165, 0.1);
    --shadow-medium: rgba(58, 124, 165, 0.15);
}

html {
    scroll-behavior: smooth;
    width: 100%; /* Assure que HTML prend toute la largeur */
}

body {
    font-family: 'Georgia', 'Times New Roman', serif; /* Conservé comme dans l'original */
    background: var(--bg-page);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden; /* Empêche le défilement horizontal non désiré */
    width: 100%; /* Assure que body prend toute la largeur */
}

/* Typographie */
h1, h2, h3, h4 {
    font-weight: 400; /* Poids de police original */
    letter-spacing: -0.02em; /* Espacement des lettres original */
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--bg-content);
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: 0 2px 10px var(--shadow-light);
    transition: all 0.3s ease;
}

nav.scrolled {
    padding: 0.7rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 2.5rem; /* Espacement original */
    list-style: none;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.95rem; /* Taille de police originale */
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* Page d'accueil */
#accueil.section.accueil,
.accueil {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-content);
    padding-top: 80px; /* Compense la hauteur de la barre de navigation fixe */
    position: relative;
    width: 100%; /* Assure que la section prend toute la largeur pour un centrage correct */
    background-image:
        radial-gradient(circle at 20% 50%, rgba(58, 124, 165, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(93, 173, 226, 0.08) 0%, transparent 50%);
}

.accueil-content {
    text-align: center;
    max-width: 900px; /* Largeur maximale du contenu d'accueil */
    padding: 0 2rem; /* Marges intérieures latérales */
    width: 100%; /* S'assure qu'il utilise la largeur disponible jusqu'à max-width */
}

.accueil-content .explore-prompt {
    width: 100%; /* Prend toute la largeur de .accueil-content */
    text-align: center; /* Centre le paragraphe à l'intérieur */
    margin-top: 3rem;  /* Espace au-dessus du texte (ajustez si besoin) */
    padding-bottom: 2rem; /* Un peu d'espace en bas pour ne pas coller au bord */
}

.accueil h1 {
    font-size: clamp(3rem, 5vw, 4rem); /* Taille de police adaptative */
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 300; /* Poids de police original */
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
    letter-spacing: 0.05em; /* Espacement des lettres original */
}

.citation {
    font-style: italic;
    font-size: 1.3rem; /* Taille de police originale */
    color: var(--text-secondary);
    margin: 3rem auto 1rem auto; /* Centrage et marges verticales */
    line-height: 1.8;
    opacity: 0;
    animation: fadeInUp 1s ease 0.3s forwards;
    max-width: 600px; /* Largeur maximale de la citation */
}

.citation-author {
    font-size: 1rem; /* Taille de police originale */
    color: var(--text-muted);
    margin-bottom: 3rem;
    opacity: 0;
    animation: fadeInUp 1s ease 0.5s forwards;
}

.nav-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 250px)); /* Grille adaptative */
    gap: 2rem;
    margin-top: 4rem;
    opacity: 0;
    animation: fadeInUp 1s ease 0.7s forwards;
    justify-content: center; /* Centre les cartes si la grille ne remplit pas toute la largeur */
}

.nav-card {
    background: var(--bg-content);
    padding: 2rem;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px var(--shadow-light);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 150px;
    cursor: pointer;
    border: 2px solid transparent; /* Bordure transparente pour éviter le décalage au survol */
}

.nav-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px var(--shadow-medium);
    background: var(--bg-content);
    border: 2px solid var(--primary-color);
    padding: calc(2rem - 2px); /* Ajuste le padding pour compenser la bordure */
}

.nav-card:hover h3 {
    color: var(--primary-dark);
}

.nav-card h3 {
    font-size: 1.2rem; /* Taille de police originale */
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.nav-card p {
    font-size: 0.9rem; /* Taille de police originale */
    color: var(--text-secondary);
    opacity: 0.8; /* Opacité originale */
    line-height: 1.4; /* Hauteur de ligne originale */
}

/* Sections communes */
.section {
    display: none; /* Géré par JS pour la navigation SPA-like */
    min-height: 100vh;
    padding: 100px 0 50px; /* padding-top augmenté pour la nav fixe */
}

.section.active {
    display: block;
}

.container {
    max-width: 1200px; /* Largeur maximale du conteneur principal */
    margin: 0 auto; /* Centre le conteneur */
    padding: 0 2rem; /* Marges intérieures latérales */
}

.section-title {
    font-size: 2.5rem; /* Taille de police originale */
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-primary);
    font-weight: 300; /* Poids de police original */
}

/* Présentation Section */
.presentation {
    background: var(--bg-page);
}

.presentation-header {
    display: flex;
    align-items: center;
    gap: 3rem;
    margin-bottom: 3rem;
    padding: 2rem;
    background: var(--bg-content);
    border-radius: 10px;
    box-shadow: 0 2px 10px var(--shadow-light);
}

.photo-container {
    flex-shrink: 0; /* Empêche la photo de rétrécir */
}

.photo-container img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover; /* S'assure que l'image couvre bien sans se déformer */
    box-shadow: 0 5px 20px var(--shadow-medium);
}

.presentation-intro {
    flex: 1; /* Permet à cette section de prendre l'espace restant */
}

.presentation-intro h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.soft-skills {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap; /* Permet aux tags de passer à la ligne si besoin */
}

.skill-tag {
    background: var(--accent-color);
    color: var(--bg-content); /* Texte blanc sur fond coloré */
    padding: 0.3rem 1rem;
    border-radius: 20px; /* Tags arrondis */
    font-size: 0.9rem; /* Taille de police originale */
}

.sommaire {
    background: var(--bg-content);
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 3rem;
    box-shadow: 0 2px 10px var(--shadow-light);
}

.sommaire h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.sommaire-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Grille adaptative */
    gap: 1rem;
}

.sommaire-link {
    padding: 1rem;
    background: var(--bg-page);
    border-radius: 5px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sommaire-link:hover {
    background: var(--primary-color);
    color: var(--bg-content);
    transform: translateX(5px);
}

.presentation-content {
    background: var(--bg-content);
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px var(--shadow-light);
    margin-bottom: 2rem;
}

.presentation-content h3 {
    color: var(--primary-color);
    margin: 2rem 0 1rem;
}

.presentation-content h4 {
    color: var(--primary-dark);
    margin: 1.5rem 0 1rem;
}

.presentation-content p {
    text-align: justify; /* Texte justifié pour une meilleure lecture */
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.presentation-content ul {
    margin-left: 2rem; /* Indentation des listes */
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.presentation-content li {
    margin-bottom: 0.5rem;
}

/* Projets Section */
.projets {
    background: var(--bg-content);
}

.projets-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.projet-nav-btn {
    padding: 0.8rem 1.5rem;
    background: var(--bg-page);
    border: 2px solid transparent;
    border-radius: 25px;
    text-decoration: none;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 0.9rem; /* Taille de police originale */
}

.projet-nav-btn:hover,
.projet-nav-btn.active {
    background: var(--primary-color);
    color: var(--bg-content);
    border-color: var(--primary-color);
}

.projet-content {
    display: none; /* Géré par JS pour les onglets */
}

.projet-content.active {
    display: block;
}

.projet-card {
    background: var(--bg-page);
    border-radius: 10px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px var(--shadow-light);
    transition: all 0.3s ease;
}

.projet-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 25px var(--shadow-medium);
}

.projet-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

/* Styles d'icônes pour Projets (image ou emoji) */
.projet-icon {
    display: block;
    text-align: center;
    line-height: 1.2;
    margin-bottom: 0.5rem;
    flex-shrink: 0;
}

.projet-icon img {
    display: block;
    width: 50px;
    height: 50px;
    object-fit: contain;
    margin-left: auto;
    margin-right: auto;
}

.projet-icon.text-emoji { /* Pour les emojis 🔄, 🔐, 💻 */
    font-size: 2.5rem;
    color: var(--primary-color);
    /* margin-bottom: 0; /* Ajusté car .projet-icon a déjà une marge */
}
/* Fin styles icônes Projets */

.projet-title h3 {
    color: var(--primary-color);
    font-size: 1.8rem; /* Taille de police originale */
    margin-bottom: 0.3rem;
}

.projet-subtitle {
    color: var(--text-muted);
    font-size: 1rem; /* Taille de police originale */
}

.projet-description {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.8; /* Hauteur de ligne originale */
}

.projet-details {
    background: var(--bg-content);
    padding: 1.5rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
}

.projet-details h4 {
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

.projet-details ul {
    list-style: none;
    padding-left: 0;
}

.projet-details li {
    padding: 0.5rem 0;
    padding-left: 1.5rem; /* Indentation pour la puce personnalisée */
    position: relative;
    color: var(--text-secondary);
}

.projet-details li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem; /* Espacement original */
    margin-top: 1.5rem;
}

.tech-tag { /* Style combiné avec .skill-tag */
    background-color: var(--accent-color);
    color: var(--bg-content);
    padding: 0.4rem 1rem;
    border-radius: 15px;
    font-size: 0.85rem; /* Taille de police originale */
    box-shadow: 0 1px 3px rgba(0,0,0,0.1); /* Ombre originale */
}


/* Entreprise Section */
.entreprise {
    background: var(--bg-page);
}

.entreprise-content {
    background: var(--bg-content);
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px var(--shadow-light);
    margin-bottom: 2rem;
}

.entreprise-header {
    text-align: center;
    margin-bottom: 3rem;
}

/* Styles pour le logo BRL à côté du titre */
.entreprise-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-size: 2.5rem; /* Taille de police ajustée */
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.entreprise-logo span { /* Pour le texte "BRL Groupe" */
    /* Hérite de .entreprise-logo */
}

.entreprise-logo-img {
    height: 45px;
    width: auto;
}
/* Fin styles logo BRL */

.entreprise-info {
    display: grid;
    grid-template-columns: 1fr; /* 1 colonne par défaut */
    gap: 2rem;
    margin-bottom: 3rem;
}

@media (min-width: 768px) { /* 2 colonnes sur écrans plus larges */
    .entreprise-info {
        grid-template-columns: 1fr 1fr;
    }
}

.info-box {
    padding: 1.5rem;
    background: var(--bg-page);
    border-radius: 8px;
}

.info-box h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}
.info-box p, .info-box li {
    color: var(--text-secondary);
}

.info-box ul {
    list-style-position: inside; /* Puces à l'intérieur */
    padding-left: 0;
}


.organigramme {
    text-align: center;
    margin: 3rem 0;
}

.organigramme h4 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.5rem; /* Taille de police originale */
}

.organigramme img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 20px var(--shadow-medium);
}

.missions {
    margin-top: 3rem;
}
.missions h3 {
    color: var(--primary-dark);
    text-align: center;
    margin-bottom: 1rem;
    font-size: 1.8rem; /* Taille de police originale */
}


.mission-item {
    background: var(--bg-page);
    padding: 2rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--accent-color); /* Bordure d'accentuation */
    transition: all 0.3s ease;
}

.mission-item:hover {
    transform: translateX(5px);
    box-shadow: 0 3px 15px var(--shadow-light);
}

.mission-item h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem; /* Taille de police originale */
}
.mission-item p {
    color: var(--text-secondary);
}


/* Compétences & Certifications Section */
.competences {
    background: var(--bg-content);
}

.competences-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.comp-nav-btn {
    padding: 0.8rem 1.5rem;
    background: var(--bg-page);
    border: none;
    border-radius: 25px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem; /* Taille de police originale */
}

.comp-nav-btn:hover,
.comp-nav-btn.active {
    background: var(--primary-color);
    color: var(--bg-content);
}

.comp-content {
    display: none; /* Géré par JS */
}

.comp-content.active {
    display: block;
}

.competences-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 2rem;
    background: var(--bg-content);
    box-shadow: 0 2px 10px var(--shadow-light);
    border-radius: 10px;
    overflow: hidden; /* Pour que le border-radius s'applique aux coins du tableau */
}

.competences-table th,
.competences-table td {
    padding: 1.2rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
}
.competences-table td ul {
    margin-left: 1rem;
    padding-left: 0;
    list-style-type: disc; /* Puces standard */
}
.competences-table td ul li {
    margin-bottom: 0.3rem;
    color: var(--text-secondary);
}


.competences-table th {
    background: var(--primary-color);
    color: var(--bg-content);
    font-weight: 500; /* Poids de police original */
}

.competences-table tr:last-child td {
    border-bottom: none; /* Supprime la bordure de la dernière ligne */
}


.competences-table tr:hover {
    background: var(--bg-page); /* Effet de survol */
}

.domaine-title { /* Titres de domaine dans le tableau */
    background: var(--accent-light) !important; /* Fond bleu clair */
    color: var(--text-primary) !important; /* Texte foncé pour contraste */
    font-weight: 600;
    text-align: center !important;
}

.project-ref {
    font-weight: bold;
    color: var(--primary-dark);
    font-size: 0.9rem; /* Taille de police originale */
}

/* Certifications */
.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Grille adaptative */
    gap: 2rem;
    margin-top: 2rem;
}

.cert-card {
    background: var(--bg-page);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px var(--shadow-light);
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Espace le contenu verticalement */
}

.cert-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px var(--shadow-medium);
}

/* Styles d'icônes pour Certifications (image ou emoji) */
.cert-icon {
    display: block;
    text-align: center;
    line-height: 1.2;
    margin-bottom: 1rem; /* Marge originale */
}

.cert-icon img {
    display: block;
    width: 50px;
    height: 50px;
    object-fit: contain;
    margin-left: auto;
    margin-right: auto;
}

.cert-icon.text-emoji { /* Si un emoji est utilisé */
    font-size: 3rem;
    color: var(--primary-color);
}
/* Fin styles icônes Certifications */

.cert-card h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.2rem; /* Taille de police originale */
}
.cert-card p {
    font-size: 0.95rem; /* Taille de police originale */
    color: var(--text-secondary);
    line-height: 1.5; /* Hauteur de ligne originale */
}


.cert-status {
    color: var(--text-muted);
    font-size: 0.9rem; /* Taille de police originale */
    font-style: italic; /* Style original */
    margin-top: 0.5rem;
}

/* Veille Section */
.veille {
    background: var(--bg-page);
}

.veille-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); /* Grille adaptative */
    gap: 2rem;
    margin-top: 3rem;
}

.veille-category {
    background: var(--bg-content);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 2px 10px var(--shadow-light);
    transition: all 0.3s ease;
}

.veille-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px var(--shadow-medium);
}

.veille-category h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.4rem; /* Taille de police originale */
    border-bottom: 1px solid var(--border-color); /* Séparateur original */
    padding-bottom: 0.75rem;
}

.rss-feed {
    list-style: none;
    padding-left: 0;
}

.rss-item {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.3s ease;
}

.rss-item:last-child {
    border-bottom: none;
}

.rss-item:hover {
    background-color: var(--bg-page); /* Effet de survol original */
}

.rss-item a {
    color: var(--text-primary);
    text-decoration: none;
    display: block;
    transition: color 0.3s ease;
}

.rss-item a:hover {
    color: var(--primary-color);
}

.rss-source {
    font-size: 0.85rem; /* Taille de police originale */
    color: var(--text-muted);
    margin-top: 0.3rem;
    display: block;
}

/* CTA Button Style */
.cta-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--bg-content);
    padding: 0.8rem 1.8rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500; /* Poids de police original */
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15); /* Ombre originale */
}

.cta-button:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2); /* Ombre au survol originale */
}

/* Compétences table vertical align */
.competences-table td {
    vertical-align: top; /* Alignement original */
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-links a {
        font-size: 0.85rem; /* Taille de police originale pour mobile */
    }

    .presentation-header {
        flex-direction: column;
        text-align: center;
    }

    .photo-container img {
        width: 150px;
        height: 150px;
    }

    .nav-cards {
        grid-template-columns: 1fr; /* 1 colonne pour mobile */
        max-width: 300px;
        margin: 3rem auto 0;
    }

    .sommaire-links {
        grid-template-columns: 1fr; /* 1 colonne pour mobile */
    }
}

/* Styles pour les barres de défilement (optionnel) */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-page);
}
::-webkit-scrollbar-thumb {
    background: var(--accent-light);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}