/* Général */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    color: #333;
    background-color: #f4f8fb;
}

/* Corps de la page */
main {
    padding: 20px;
    margin-left: 20px; /* Ajouter une petite marge à gauche */
}

/* Si tu veux appliquer cette marge uniquement à certaines sections, tu peux aussi faire comme suit */
section {
    margin-left: 20px; /* Ajouter une marge à gauche dans les sections */
}

.container {
    width: 80%;
    margin: auto;
}

header {
    background-color: #1a4d80;
    color: white;
    padding: 30px 0;
}

.header-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
    padding: 0 20px;
}

.logo-i2m {
    width: 250px;
    height: auto;
    object-fit: contain;
}

@media screen and (max-width: 768px) {
    .header-flex {
        flex-direction: column;
        align-items: center;
    }

    .logo-i2m {
        margin: 20px 0 0 0;
        height: 60px;
    }

    .photo-profil {
        margin: 0;
    }
}

.photo-profil {
    border-radius: 50%;
    width: 160px;
    height: 160px;
    object-fit: cover;
}

.header-center img.photo-profil {
    border-radius: 50%;
    width: 140px;
    height: 140px;
    object-fit: cover;
    margin-bottom: 20px;
}

.header-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 250px;
}

.header-text h1 {
    font-family: 'IBM Plex Sans', sans-serif;    
    font-size: 2.4em;
    margin: 0;
    color: white;
}

.header-text h2 {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 2.2em;
    margin: 5px 0;
    font-weight: normal;
    color: #e0e0ff;
}

.header-text h3 {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 1.5em;
    margin-top: 5px;
    font-weight: normal;
    font-style: italic;
    color: #cce;
}

header h1 {
    font-size: 2.2em;
    margin: 0;
    color: white;
}

header h2 {
    font-size: 2.2em;
    margin: 5px 0;
    font-weight: normal;
    color: #e0e0ff; /* blanc légèrement bleuté pour varier */
}

header h3 {
    font-size: 1.4em;
    margin-top: 5px;
    font-weight: normal;
    font-style: italic;
    color: #cce; /* teinte douce */
}

.profile {
    display: flex;
    align-items: center;
    gap: 20px;
}

.profile img {
    border-radius: 50%;
    width: 140px;
    height: 140px;
    object-fit: cover;
}

nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: #1a1a1a; /* Plus propre que #222 ou #2e2e2e */
    padding: 8px 0; /* Plus harmonieux */
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
}

nav li {
    margin: 0 25px; /* Un peu moins large que 40px pour plus d'équilibre */
    position: relative;
}

nav a {
    color: white;
    text-decoration: none;
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 1em; /* Légèrement agrandie */
    padding: 10px 0;
    display: inline-block;
    transition: color 0.3s ease;
}

/* Séparateurs sobres */
nav li:not(:last-child)::after {
    content: "";
    position: absolute;
    right: -30px;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 60%;
    background-color: white;
    opacity: 0.5;
}

nav a:hover {
    background-color: #006680;
    color: white;
    border-radius: 5px;
}

nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 5px;
    width: 0%;
    height: 2px;
    background-color: white;
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

main {
    padding: 20px;
}

section {
    margin-bottom: 40px;
}

h1 {
    font-size: 2.2em; /* Augmenter la taille du h1 */
    color: #1a4d80;
}

h2 {
    font-family: 'Merriweather Sans', sans-serif;
    font-size: 1.6em; /* Augmenter un peu la taille du h2 */
    color: #2e5f91; /* Teinte plus douce pour le h2 */
}

h3 {
    font-family: 'Merriweather Sans', sans-serif;
    font-size: 1.4em; /* Augmenter le h3 */
    color: #4d7aa8; /* Une couleur bleutée plus douce pour le h3 */
}

#about_h::before {
    content: '\f007'; /* Icone pour "user" (exemple) */
    font-family: 'FontAwesome';
    font-size: 1em;
    margin-right: 20px;
    color: #1a4d80;
    display: inline-block;
}

#activities_h::before {
    content: '\f02d'; /* Icone pour "user" (exemple) */
    font-family: 'FontAwesome';
    font-size: 1em;
    margin-right: 20px;
    color: #1a4d80;
    display: inline-block;
}

#publications_h::before {
    content: '\f03a'; /* Icone pour "user" (exemple) */
    font-family: 'FontAwesome';
    font-size: 1em;
    margin-right: 20px;
    color: #1a4d80;
    display: inline-block;
}

#teaching_h::before {
    content: '\f19d'; /* Icone pour "user" (exemple) */
    font-family: 'FontAwesome';
    font-size: 1em;
    margin-right: 15px;
    color: #1a4d80;
    display: inline-block;
}

#contact_h::before {
    content: '\f003'; /* Icone pour "user" (exemple) */
    font-family: 'FontAwesome';
    font-size: 1em;
    margin-right: 20px;
    color: #1a4d80;
    display: inline-block;
}

#liste_publis {
    list-style: none;
    padding-left: 10px;
    margin-left: 0;
}

p, li {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 1.4em; /* Réduire la taille du texte */
    color: #333; /* Couleur sombre pour une bonne lisibilité */
    line-height: 1.5; /* Enlever l'interlignage */
}

footer {
    text-align: center;
    padding: 10px;
    background-color: #333;
    color: white; /* Bleu I2M-esque pour le texte du footer */
}

footer p, footer li {
    color: white; /* Forcer la couleur blanche dans le footer */
}

/* Liens généraux */
a {
    text-decoration: none;
    color: #1a4d80; /* Modifié pour être en harmonie avec l'en-tête */
}

.directeurs {
    color: #cce;
}

a:hover {
    color: #2e5f91; /* Un bleu plus clair pour le survol */
    text-decoration: underline;
}

.directeurs:hover {
    color: #cce;
    text-decoration: underline;
}

.center-links {
    text-align: center;
}

.center-links a {
    font-size: 1.3em;
    font-family: 'GFS Didot', serif; /* Utilisation de la police GFS Didot */
    text-decoration: none;
    color: #1a4d80;
    transition: color 0.3s ease;
    text-transform: capitalize; /* Capitaliser le texte */
    display: inline-flex;
    align-items: center;
    margin: 0 15px; /* Espacement entre les liens */
}

.center-links a:hover {
    color: #006680;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3); /* Ajoute une ombre douce pour un effet de relief */
}

.logo {
    width: 24px;
    height: 24px;
    margin-right: 8px; /* Espacement entre l'icône et le texte */
}

.big-text {
    font-size: 2em;
    font-family: 'GFS Didot', serif; /* Style élégant pour le texte */
}

/* Exception pour les liens du menu */
nav a:hover {
    text-decoration: none;
}
