/* --- 1. BASE & TYPOGRAPHIE --- */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #333;
    background-color: #fcfcfc;
    line-height: 1.7;
}

.container { 
    width: 90%; 
    max-width: 1100px; 
    margin: 0 auto; 
    padding: 2rem 0;
}

h1, h2, h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

h2 {
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
    margin-top: 2rem;
}

/* --- 2. NAVIGATION & BANNIÈRE (HERO) --- */
.banner {
    position: relative;
    width: 100%;
    height: 60vh; /* Hauteur équilibrée */
    overflow: hidden;
    background-color: #2c3e50;
}


.banner-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Aligne l'image sur son centre vertical et horizontal */
  object-position: center 50%; 
}

.banner-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.35); /* Voile pour la lisibilité */
    display: flex;
    flex-direction: column;
    color: #FFFFFF;
}

.navbar-overlay {
    width: 100%;
    padding: 20px 0;
    display: flex;
    justify-content: flex-end;
}

.navbar-overlay ul { 
    list-style: none; 
    display: flex; 
    gap: 25px; 
    padding-right: 5%;
}

.navbar-overlay ul li a {
    text-decoration: none;
    color: #FFFFFF;
    font-weight: 500;
    padding: 8px 15px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.navbar-overlay ul li a:hover,
.navbar-overlay ul li a.active {
    background-color: rgba(255, 255, 255, 0.25);
}

.banner-text {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.banner-text h1 {
    font-size: 3.5rem;
    color: #FFFFFF;
    border: none;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    margin: 0;
}


.banner-text h2 {
    font-size: 3.5rem;
    color: #FFFFFF;
    border: none;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    margin: 0;
}


.banner-text p {
    font-size: 1.4rem;
    font-weight: 300;
    opacity: 0.95;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}


/* 1. Réduire l'espace sous la bannière */
.hero-banner, .banner {
  margin-bottom: 20px; /* Réduisez cette valeur (par exemple de 50px à 20px) */
}



/* --- 3. SECTIONS DE CONTENU --- */
/* Zone Introduction (Accueil) */
.intro {
    background: #f8f9fa;
    padding: 4rem 0;
    border-bottom: 1px solid #eee;
}

/* 2. Réduire l'espace interne en haut de la section intro */
.intro {
  padding-top: 20px; /* Diminuez le padding supérieur */
  padding-bottom: 40px;
}

.intro-flex {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 3rem;
}

.photo-profil img {
    width: 220px;
    height: 220px;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.intro-texte { flex: 1; min-width: 300px; }
.intro-texte p { margin-bottom: 1.2rem; }

/* Bouton CV */
.btn-cv {
    display: inline-block;
    padding: 12px 30px;
    background-color: #2c3e50;
    color: #fff !important;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid #2c3e50;
    margin-top: 1rem;
}

.btn-cv:hover {
    background-color: transparent;
    color: #2c3e50 !important;
}

/* --- 4. ENSEIGNEMENT (CARTES) --- */
.teaching-block {
    background: #fff;
    border-left: 5px solid #2c3e50;
    margin-bottom: 2rem;
    padding: 1.5rem 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border-radius: 0 4px 4px 0;
}

.teaching-block h2 { 
    margin-top: 0; 
    border: none; 
    color: #2c3e50;
    font-size: 1.4rem;
}

.teaching-block p { 
    margin: 5px 0 15px 0; 
    font-style: italic;
    color: #555;
}

.teaching-block ul {
    margin-left: 1.5rem;
    list-style-type: square;
}

/* --- 5. LISTES ET LIENS (RECHERCHE & NOTES) --- */
.list-doc2 ul {
    margin-left: 2rem;
    list-style-type: circle
}

.list-doc ul, .documents ul {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

.list-doc li, .documents li {
    margin-bottom: 0.8rem;
}

a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: #2980b9;
    text-decoration: underline;
}

/* Style spécifique email */
.email a {
    color: #e67e22;
    font-weight: bold;
}

/* --- Styles pour les résumés déroulants (Abstracts) --- */
.abstract-container {
    margin-top: 8px;
    margin-bottom: 15px;
    border: 1px solid #eee;
    border-radius: 4px;
    background-color: #fafafa;
    transition: all 0.3s ease;
}

.abstract-container[open] {
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

summary {
    padding: 6px 12px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #3498db;
    cursor: pointer;
    outline: none;
    list-style: none; /* Cache la flèche par défaut dans certains navigateurs */
}

summary::-webkit-details-marker {
    display: none; /* Cache la flèche sous Chrome/Safari */
}

summary:before {
    content: "▶ "; /* Ajoute un petit triangle personnalisé */
    font-size: 0.7rem;
    margin-right: 5px;
    transition: transform 0.2s;
    display: inline-block;
}

.abstract-container[open] summary:before {
    transform: rotate(90deg); /* Fait pivoter le triangle quand c'est ouvert */
}

summary:hover {
    color: #2c3e50;
    text-decoration: underline;
}

.abstract-content {
    padding: 10px 15px 15px 15px;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #555;
    border-top: 1px solid #eee;
    font-style: italic;
}
