/* --- RESET & VARIABLES --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Palette de couleurs principale */
    --primary-color: #000000;
    --secondary-color: #555555;
    --accent-color: #007bff; /* Bleu principal défini ici */
    --bg-light: #f9f9f9;
    --text-color: #333333;
    --bg-color: #ffffff;
    --card-bg: #ffffff;
    --nav-bg: rgba(255, 255, 255, 0.95);
    --section-light: #f9f9f9;
    --border-color: #eeeeee;
}

[data-theme="dark"] {
    --bg-color: #121212;
    --text-color: #e0e0e0;
    --card-bg: #1e1e1e;
    --nav-bg: rgba(18, 18, 18, 0.95);
    --section-light: #1a1a1a;
    --primary-color: #ffffff;
    --secondary-color: #aaaaaa;
    --border-color: #333333;
    /* L'accent color reste le même ou peut être ajusté si besoin */
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    background-color: var(--bg-color);
    color: var(--text-color);
    scroll-behavior: smooth;
    transition: background-color 0.3s, color 0.3s;
}

/* --- NAVIGATION --- */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 8%;
    background: var(--nav-bg);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(5px); /* Effet moderne de flou */
}

nav ul {
    display: flex;
    list-style: none;
    align-items: center;
}

nav ul li {
    margin-left: 25px;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: var(--accent-color);
}

/* --- HERO SECTION --- */
header {
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    /* Ajout d'un voile blanc (0.7) pour garantir la lisibilité du texte */
    background-image: url('background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    margin-top: 60px;
    position: relative;
}

/* Ajustement pour le mode sombre : voile sombre sur l'image */
[data-theme="dark"] header {
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('background.jpg');
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 15px;
    color: #000000; /* Reste noir en mode clair */
}

[data-theme="dark"] .hero h1 {
    color: #ffffff; /* Passe en blanc en mode sombre */
}

.hero p {
    font-size: 1.2rem;
    color: #333333;
    margin-bottom: 30px;
    font-weight: 500;
}

[data-theme="dark"] .hero p {
    color: #dddddd;
}

/* --- BOUTONS --- */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--primary-color);
    color: var(--bg-color); /* Texte s'adapte au fond */
    text-decoration: none;
    border-radius: 5px;
    font-weight: 700;
    transition: 0.3s;
    border: 1px solid transparent;
}

.btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.btn-cv {
    background-color: #27ae60;
    color: white;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

/* --- SECTIONS --- */
section {
    padding: 80px 10%;
}

.bg-light {
    background-color: var(--section-light);
}

h2 {
    font-size: 2rem;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 10px;
    color: var(--text-color);
}

h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background: var(--accent-color);
}

/* --- GRILLE & CARTES --- */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.card {
    background: var(--card-bg);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    transition: 0.3s;
}

.card:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.card-img {
    height: 180px;
    margin-bottom: 20px;
    border-radius: 6px;
    /* Le style inline HTML gère les dégradés spécifiques */
}

.card h3 {
    margin-bottom: 10px;
    color: var(--text-color);
}

.card p {
    color: var(--secondary-color);
}

/* --- ENTREPRISE --- */
.company-header {
    margin-bottom: 30px;
}

.tagline {
    color: var(--accent-color);
    font-weight: 500;
}

.company-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
}

.company-history p {
    margin-bottom: 15px;
    font-size: 0.95rem;
    text-align: justify;
    color: var(--secondary-color);
}

.sectors-list {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    font-size: 0.85rem;
}

.sectors-list li {
    background: var(--section-light);
    padding: 10px;
    border-radius: 5px;
    border-left: 3px solid var(--accent-color);
    color: var(--text-color);
}

.mission-box {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 20px;
    border-radius: 10px;
}

.mission-box li {
    margin-bottom: 15px;
    list-style: none;
}

.mission-box li strong {
    display: block;
    color: var(--text-color);
    text-transform: uppercase;
    font-size: 0.85rem;
}

/* --- VEILLE --- */
.veille-card h4 {
    color: var(--accent-color);
    margin-bottom: 10px;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.list-veille {
    list-style: none;
    margin-top: 10px;
}

.list-veille li {
    font-size: 0.9rem;
    margin-bottom: 8px;
    padding-left: 15px;
    position: relative;
    color: var(--secondary-color);
}

.list-veille li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

.list-check {
    list-style: none;
    font-size: 0.85rem;
    color: var(--secondary-color);
}

.list-check li::before {
    content: "✓ ";
    color: #2ecc71;
    font-weight: 700;
}

/* --- DARK MODE TOGGLE --- */
.theme-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 5px;
    transition: transform 0.2s;
    color: var(--text-color);
}

.theme-btn:hover {
    transform: scale(1.1);
}

/* --- FOOTER --- */
footer {
    text-align: center;
    padding: 40px 10%;
    background: #111;
    color: #fff;
}

.social-links {
    margin: 20px 0;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-links a {
    color: #fff;
    font-size: 1.8rem;
    transition: transform 0.3s, color 0.3s;
    text-decoration: none;
}

.social-links a:hover {
    transform: translateY(-5px);
}

.social-links a[title="LinkedIn"]:hover {
    color: #0077b5;
}

.social-links a[title="Instagram"]:hover {
    color: #e1306c;
}

.admin-link {
    color: #888;
    font-size: 0.8rem;
    text-decoration: none;
    transition: color 0.3s;
}

.admin-link:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

[data-theme="dark"] footer {
    background: #000;
}

/* --- SECTION A PROPOS --- */
.about-intro {
    font-size: 1.1rem;
    margin-bottom: 30px;
    line-height: 1.8;
}

.about-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.academic-path h3, 
.info-block h3, 
.professional-exp h3 {
    color: var(--accent-color);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.exp-item, 
.timeline-item {
    margin-bottom: 20px;
    padding-left: 15px;
    border-left: 2px solid var(--border-color);
}

.date {
    font-weight: 700;
    color: var(--secondary-color);
    display: block;
    margin-bottom: 5px;
}

.academic-path ul {
    margin-left: 20px;
    font-size: 0.95rem;
}

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
    .company-grid {
        grid-template-columns: 1fr;
    }
    .sectors-list {
        grid-template-columns: 1fr;
    }
    nav {
        flex-direction: column;
        padding: 15px;
    }
    nav ul {
        margin-top: 15px;
    }
    .hero h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .about-info-grid {
        grid-template-columns: 1fr;
    }
}