/* Reset & Base */
:root {
    --primary-color: #0f172a; /* Bleu marine très sombre */
    --secondary-color: #334155; /* Gris anthracite */
    --accent-color: #2563eb; /* Bleu professionnel pour les boutons/liens */
    --bg-light: #f8fafc;
    --text-color: #1e293b;
    --white: #ffffff;
    --max-width: 1200px;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
    
    /* PROTECTION TEXTE : Désactive la sélection sur tout le site */
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

a { text-decoration: none; color: inherit; transition: color 0.3s; }
ul { list-style: none; }

/* RÉACTIVATION TEXTE : Permet la sélection pour les éléments interactifs */
a, button, input, textarea, .lang-switch, .btn {
    user-select: auto;
    -webkit-user-select: auto;
    -moz-user-select: auto;
    -ms-user-select: auto;
    cursor: pointer;
}

/* Utilities */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section { padding: 80px 0; }

.bg-light { background-color: var(--bg-light); }
h1, h2, h3 { color: var(--primary-color); margin-bottom: 20px; line-height: 1.2; }
h1 { font-size: 2.5rem; font-weight: 700; }
h2 { font-size: 2rem; text-align: center; margin-bottom: 40px; position: relative; }
h2::after {
    content: ''; display: block; width: 60px; height: 3px; 
    background: var(--accent-color); margin: 15px auto 0;
}
p { margin-bottom: 15px; }

/* Navigation */
.navbar {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    height: 70px;
    display: flex;
    align-items: center;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
}

.lang-switch { font-size: 0.9rem; font-weight: 600; }

.lang-current { color: var(--secondary-color); margin: 0 5px; }

.lang-link { color: var(--accent-color); margin: 0 5px; }

.lang-link:hover { text-decoration: underline; }

/* Hero Section */
.hero {
    position: relative;
    height: 90vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
  
    /* CORRECTION CHEMIN : Chemin absolu depuis la racine */
    background-image: url("/assets/images/fond.jpg");
  
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    margin-top: 70px;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15, 23, 42, 0.6); /* Filtre sombre bleu marine */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 20px;
}

.hero-content h1 { color: var(--white); font-size: 3rem; margin-bottom: 10px; }

.subtitle { font-size: 1.2rem; font-weight: 300; opacity: 0.9; margin-bottom: 20px; }

.hero-text { font-size: 1.1rem; margin-bottom: 30px; opacity: 0.95; }

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--accent-color);
    color: var(--white);
    border-radius: 4px;
    font-weight: 600;
    transition: background 0.3s;
}
.btn:hover { background-color: #1d4ed8; }

/* Grid & Cards */
.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.card {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border-top: 3px solid var(--accent-color);
}

.card h3 { font-size: 1.2rem; margin-bottom: 15px; color: var(--secondary-color); }

.card ul { list-style: disc; padding-left: 20px; }

.card li { margin-bottom: 8px; font-size: 0.95rem; color: var(--secondary-color); }

/* Timeline */
.timeline { max-width: 800px; margin: 0 auto; }
.timeline-item {
    border-left: 3px solid var(--accent-color);
    padding-left: 20px;
    margin-bottom: 40px;
    position: relative;
}
.timeline-item::before {
    content: '';
    position: absolute;
    left: -9px; top: 0;
    width: 15px; height: 15px;
    background: var(--white);
    border: 3px solid var(--accent-color);
    border-radius: 50%;
}
.timeline-item h3 { font-size: 1.3rem; margin-bottom: 5px; }
.timeline-item .date {
    display: inline-block;
    background: var(--bg-light);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

/* Split Layout (International) */
.split-layout {
    display: flex;
    align-items: center;
    gap: 50px;
}
.text-content { flex: 1; }
.image-content { flex: 1; }

/* PROTECTION IMAGE : Empêche la sélection et le drag */
.image-content img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: auto; /* Gardé auto pour permettre le zoom si besoin, mais le JS bloquera le clic droit */
}

.lang-list { margin-top: 20px; }
.lang-list li { margin-bottom: 5px; }

/* Footer */
.footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 50px 0;
    text-align: center;
}
.footer-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.footer a { color: #94a3b8; }
.footer a:hover { color: var(--white); }
.legal { font-size: 0.85rem; color: #64748b; margin-top: 20px; }

/* Responsive */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    .hero-content h1 { font-size: 2.2rem; }
    .split-layout { flex-direction: column; }
    .image-content { order: -1; } /* Image au dessus sur mobile */
    .grid-4 { grid-template-columns: 1fr; }
    .hero { background-attachment: scroll; /* Meilleure perf mobile */ }
}