:root {
    --primary-color: #283618; /* Couleur principale */
    --secondary-color: #bc6c25; /* Couleur pour les titres */
    --accent-color: #dda15e; /* Couleur pour les dates */
    --background-color: #f4f4f4;
    --text-color: #333;
    --font-family: Arial, sans-serif;
}

body {
    display: flex;
    margin: 0px 100px;
    font-family: var(--font-family);
    background-color: var(--background-color);
}

.menu-toggle {
    display: none; /* Caché par défaut */
    position: fixed;
    top: 10px;
    left: 10px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 10px;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1000;
}

nav {
    width: auto;
    background-color: var(--primary-color); /* Couleur du menu */
    color: white;
    padding: 15px;
    position: fixed;
    height: 100vh;
    min-width: 180px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease;
}

nav.active {
    transform: translateX(0); /* Affiche le menu */
}

nav h2 {
    font-size: 1.375rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
    color: white;
}

nav ul {
    list-style: none;
    padding: 0;
}


nav ul li a {
    color: white;
    text-decoration: none;
    display: block;
    padding: 8px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

nav ul li a:hover {
    background-color: rgba(255, 255, 255, 0.1); /* Effet de survol plus doux */
    padding-left: 12px;
}

.submenu {
    display: none;
    list-style: none;
    padding-left: 15px;
}

.menu-item:hover .submenu {
    display: block;
}

main {
    margin-left: 200px;
    padding: 30px;
    flex-grow: 1;
}

.intro {
    text-align: center;
    margin-bottom: 30px;
}

.intro h1 {
    font-size: 1.75rem;
    color: var(--secondary-color); /* Couleur du titre principal */
}

.intro p {
    font-size: 1.125rem;
    color: var(--primary-color); /* Couleur du texte d'introduction */
    font-weight: bold;
}

.container {
    display: block;
    gap: 30px;
}

 .container h2{
	font-size: 2.1rem;
    color: var(--secondary-color); /* Couleur des titres des blocs */
    margin-bottom: 15px;
    font-weight: bold;
 }
.block {
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.block h2{
    font-size: 1.5rem;
    color: var(--secondary-color); /* Couleur des titres des blocs */
    margin-bottom: 15px;
    font-weight: bold;
}


.block p {
    font-size: 1rem;
    color: var(--text-color);
}

.year {
    color: var(--accent-color); /* Couleur des dates */
    font-weight: bold;
}

.title {
    font-weight: bold;
}

.institution {
    font-style: italic;
}

.nav-footer {
    text-align: center;
    padding-top: 20px;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7); /* Couleur du texte du footer du menu */
}

/* Media Queries pour les écrans de petite taille */
@media (max-width: 768px) {
    .menu-toggle {
        display: block; /* Affiche le bouton du menu */
    }

    nav {
        transform: translateX(-100%); /* Cache le menu par défaut */
        width: 80%; /* Largeur du menu mobile */
    }

    main {
        margin-left: 0;
        padding: 15px;
    }

    .intro h1 {
        font-size: 1.5rem;
    }

    .intro p {
        font-size: 1rem;
    }

    .block h2 {
        font-size: 1.25rem;
    }

    .block p {
        font-size: 0.9rem;
    }
}

/* Styles pour la page Publications */
.preface-content {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.preface-image {
    max-width: 150px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.publications-list {
    list-style-type: none;
    padding: 0;
    /*counter-reset: publication-counter;*/
}

.publications-list.reversed {
    counter-reset: publication-counter 45; /* Définir le nombre total d'articles + 1 */
}

.publications-list li {
    margin-bottom: 20px;
    padding: 15px 15px 15px 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    /*counter-increment: publication-counter -1;*/ /* Décrémentation */
    position: relative;
}

.publications-list li::before {
    content: counter(publication-counter) ". ";
    font-weight: bold;
    color: var(--primary-color);
    position: absolute;
    left: -3px;
    top: 15px;
}

.publications-list li strong {
    color: var(--primary-color);
}

.publications-list li a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: bold;
}

.publications-list li a:hover {
    text-decoration: underline;
}

.profile {
	color: var(--secondary-color);
    text-decoration: none;
    font-weight: bold;
}

.bookTitle{
    font-size: 1.375rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
    color: var(--secondary-color);

}

