/* ===== STYLES GÉNÉRAUX ===== */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    line-height: 1.6;
    background-color: #ffffff;
    color: #333333;
}

main {
    max-width: 900px;
    margin: 20px auto 40px;
    padding: 0 20px;
}

h1 {
    margin-top: 10px;
    margin-bottom: 30px;
    font-size: 26px;
    color: #1a4a8a;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

h2 {
    border-bottom: 2px solid #ddd;
    padding-bottom: 6px;
    margin-bottom: 15px;
    color: #2C3E50;
}

ul {
    padding-left: 20px;
}

/* ===== HEADER ===== */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    background: linear-gradient(to right, #34495E, #2C3E50);
    color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.name {
    font-size: 22px;
    font-weight: bold;
    white-space: nowrap;
}

nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 5px;
}

nav a {
    margin-left: 10px;
    text-decoration: none;
    color: white;
    font-weight: 500;
    padding: 6px 10px;
    border-radius: 4px;
    transition: background-color 0.3s, color 0.3s;
    white-space: nowrap;
}

nav a.active {
    background-color: #2980B9;
    font-weight: bold;
}

nav a:hover {
    background-color: #2980B9;
    color: white;
}

/* ===== STYLES SPÉCIFIQUES À INDEX.HTML ===== */
#introduction {
    background-color: #ECF0F1;
    padding: 25px;
    border-radius: 8px;
    line-height: 1.7;
    overflow: auto;
}

.profile-photo {
    float: left;
    width: 180px;
    margin-right: 25px;
    margin-bottom: 10px;
    border-radius: 6px;
}

.title-wrapper {
    display: block;
    text-align: center;
    margin-bottom: 15px;
}

.intro-title {
    font-size: 26px;
    font-weight: bold;
    margin: 0;
    color: #2C3E50;
    display: inline-block;
}

section {
    margin-top: 30px;
    background-color: #F9F9F9;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* ===== STYLES POUR PUBLICATIONS ===== */
.publication {
    margin-top: 14px;
    padding-left: 10px;
    border-left: 2px solid transparent;
}

.publication:hover {
    border-left-color: #1a4a8a;
}

.title {
    font-weight: bold;
    color: #222;
}

.info-banner {
  font-size: 13px;
  color: #666;
  margin-bottom: 15px;
}

.info-icon {
  font-size: 16px;
}

.buttons {
    margin-top: 6px;
}

.button {
    display: inline-block;
    padding: 4px 10px;
    margin-right: 8px;
    margin-bottom: 4px;
    background-color: #f5f5f5;
    border-radius: 4px;
    text-decoration: none;
    font-size: 12px;
    color: #333;
    font-weight: bold;
    transition: background-color 0.2s;
}

.button:hover {
    background-color: #1a4a8a;
    color: white;
}

.button.pdf {
    background-color: #e8f0fe;
}

.button.pdf:hover {
    background-color: #1a4a8a;
}

.button.Repo {
    background-color: #e6f4ea; /* Un vert très léger pour différencier */
    border: 1px solid #ceead6;
    color: #0d652d; /* Texte un peu plus vert */
}

.button.Repo:hover {
    background-color: #0d652d;
    color: white;
}

.button.Repo::before {
    content: "🏛️ "; /* Icône de monument pour le dépôt institutionnel */
    font-size: 10px;
}

.button.pdf::before {
    content: "📄 "; /* Icône de document */
    font-size: 10px;
}

.year {
    margin-top: 30px;
    font-size: 20px;
    font-weight: bold;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}

/* ===== STYLES POUR WORKING PAPERS ===== */
.entry {
    margin-bottom: 25px;
    padding: 10px 12px;
    border-radius: 6px;
    transition: background-color 0.2s;
}

.entry:hover {
    background-color: #f9f9f9;
}

.entry-title {
    font-weight: bold;
    font-size: 17px;
    margin-bottom: 4px;
}

.entry-title a {
    text-decoration: none;
    color: #000;
    transition: color 0.2s;
    display: inline;
}

.entry-title a:hover {
    color: #1a4a8a;
    text-decoration: underline;
}

.entry-title a:hover .badge {
    text-decoration: none;
}

.entry-title a .badge {
    display: inline-block;
    margin-left: 8px;
}

.entry-authors {
    color: #555;
    font-size: 15px;
    margin-bottom: 3px;
    margin-left: 0;
}

.entry-note {
    font-size: 13px;
    color: #666;
    font-style: italic;
    margin-top: 3px;
    margin-left: 0;
}

.rr-note {
    color: #e67e22;
    font-weight: 500;
}

/* ===== ICÔNES POUR WORKING PAPERS ===== */
.entry-title a[href$=".pdf"]::before {
    content: "📄 ";
    font-size: 0.9em;
    margin-right: 4px;
    display: inline;
}

.entry-title a[href*="ssrn.com"]::before,
.entry-title a[href*="papers.ssrn.com"]::before {
    content: "🔗 ";
    font-size: 0.9em;
    margin-right: 4px;
    display: inline;
}

/* ===== BADGES ===== */
.badge {
    display: inline-block;
    padding: 3px 10px;
    font-size: 11px;
    font-weight: bold;
    border-radius: 20px;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    background-color: #666;
    margin-left: 5px;
    vertical-align: middle;
}

.pdf-badge {
    background-color: #c0392b;
}

.ssrn-badge {
    background-color: #2980b9;
}

.badge-outline {
    background-color: transparent;
    border: 1px solid #ccc;
    color: #666;
}

.badge-outline.pdf-badge {
    border-color: #c0392b;
    color: #c0392b;
}

.badge-outline.ssrn-badge {
    border-color: #2980b9;
    color: #2980b9;
}

/* ===== STYLES RESPONSIVES ===== */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: stretch;
        padding: 15px 20px;
    }
    
    .name {
        text-align: center;
        margin-bottom: 10px;
        font-size: 20px;
    }
    
    nav {
        justify-content: center;
        gap: 3px;
    }
    
    nav a {
        margin: 2px;
        padding: 4px 6px;
        font-size: 14px;
        text-align: center;
        flex: 0 1 auto;
    }
    
    .profile-photo {
        float: none;
        display: block;
        margin: 0 auto 20px;
        width: 150px;
    }
    
    .intro-title {
        font-size: 22px;
    }
    
    section {
        padding: 15px;
    }
    
    h1 {
        font-size: 22px;
    }
    
    .entry-title {
        font-size: 16px;
    }
}

@media (max-width: 400px) {
    nav a {
        font-size: 12px;
        padding: 3px 4px;
    }
    
    .name {
        font-size: 18px;
    }
    
    h2 {
        font-size: 18px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    header {
        padding: 15px 30px;
    }
    
    nav a {
        margin-left: 8px;
        padding: 6px 8px;
    }
}


/* ===== STYLES POUR RESEARCH.HTML ===== */
.research-page h1 {
    margin-top: 40px;
    margin-bottom: 15px;
    font-size: 24px;
}

.research-page h1:first-of-type {
    margin-top: 10px;
}

.research-page div {
    margin-bottom: 30px;
}

.research-page ul {
    margin-top: 5px;
    margin-bottom: 0;
    padding-left: 25px;
}

.research-page li {
    margin-bottom: 8px;
}

.research-page div:not(.topics):not([class*="table"]) {
    line-height: 1.7;
    text-align: justify;
}

.research-page table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    margin-bottom: 10px;
}

.research-page th {
    padding: 10px 8px;
    text-align: left;
    border-bottom: 2px solid #ddd;
    background-color: #f5f5f5;
    color: #2C3E50;
}

.research-page td {
    padding: 10px 8px;
    border-bottom: 1px solid #eee;
}

.research-page tr:last-child td {
    border-bottom: none;
}

.research-page tr:hover {
    background-color: #f9f9f9;
}

.research-page ul li a {
    text-decoration: none;
    color: #1a4a8a;
    transition: color 0.2s;
}

.research-page ul li a:hover {
    text-decoration: underline;
    color: #2980B9;
}

/* ===== STYLES POUR TEACHING.HTML ===== */
.teaching-page h1 {
    margin-top: 40px;
    margin-bottom: 15px;
    font-size: 24px;
}

.teaching-page h1:first-of-type {
    margin-top: 10px;
}

.teaching-page div {
    margin-bottom: 30px;
}

.teaching-page ul {
    margin-top: 5px;
    margin-bottom: 0;
    padding-left: 25px;
}

.teaching-page li {
    margin-bottom: 8px;
}

.teaching-page .lecturer-note {
    font-size: 14px;
    color: #666;
    font-style: italic;
    margin-top: -10px;
    margin-bottom: 20px;
}