body {
    margin: 0;
    font-family: "Trebuchet MS", sans-serif;
    background: #f5f5f5;
    color: #333;
}

#page {
    max-width: 900px;
    margin: 20px auto;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

/* En-tête avec image */
#header {
    height: 180px;
    display: flex;
    align-items: center;            /* centre verticalement */
    justify-content: space-between; /* photo à gauche, titre et image à droite */
    padding: 0 20px;
    margin-bottom: 40px;
    position: relative;
    background-color: #f5f5f5;      /* fond si image ne charge pas */
}

/* Image de fond positionnée à droite */
#header::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;                      /* image collée à droite */
    width: 700px;
    height: 180px;
    background: url('bali2.jpg') no-repeat center center;
    background-size: contain;
    z-index: 0;                     /* derrière le texte et photo */
}

/* Photo personnelle à gauche */
.header-photo img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    z-index: 1;                     /* devant l'image de fond */
}

/* Titre centré entre la photo et l'image de fond */
#header h1 {
    font-size: 1.4em;
    color: black;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
    margin: 0;
    z-index: 1;                     /* devant l'image de fond */
}

/* Menu de navigation */
.menu {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.menu li a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 4px;
}

.menu li a.active,
.menu li a:hover {
    background-color: #d25002;
    color: white;
}

/* Simulations */
.simulations .images {
    text-align: center;
    margin-bottom: 30px;
}

.image_simulation {
    height: 100px;
    margin: 5px;
}

/* Publications */
.publications h2 {
    color: #4682B4;
    border-bottom: 2px solid #4682B4;
    padding-bottom: 5px;
    margin-top: 30px;
}

/* Liste de publications sans puces */
.publications ol.pub-list {
    list-style: none;
    padding-left: 0;
}

/* Chaque publication en flex */
.publications li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
}

/* Numéro de publication */
.pub-number {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 25px;
    height: 25px;
    background: #4682B4;
    color: white;
    font-weight: bold;
    font-size: 0.9em;
    margin-right: 10px;
    border-radius: 4px;
    flex-shrink: 0;
}

/* Contenu de la publication */
.pub-content {
    display: flex;
    flex-direction: column;
}

/* Titre en gras */
.pub-title {
    font-weight: bold;
    font-size: 1.05em;
    margin-bottom: 2px;
}

/* Auteurs et journal */
.pub-authors {
    font-size: 0.9em;
    color: #333;
}

/* Bouton PDF */
.pdf-button {
    color: #007BFF;
    text-decoration: underline;
    font-weight: normal;
    padding: 0;
    margin-left: 5px;
    background: none;
    border: none;
    font-size: 0.9em;
}

.pdf-button:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* Titres de section */
h2 {
    color: #4682B4;
    border-bottom: 2px solid #4682B4;
    padding-bottom: 5px;
    margin-top: 25px;
}

h3 {
    color: black;
    margin-top: 20px;
}

/* Sujet de thèse */
.thesis {
    color: #5dade2;
    font-style: italic;
}

/* Listes */
ul, ol {
    margin-left: 20px;
}
li {
    margin-bottom: 6px;
}

/* Dates */
.year {
    font-weight: bold;
    color: #1f4e79 !important;
    margin-right: 8px;
}

/* Financements */
.financement {
    font-size: 0.85em;
    color: #333;
}


