/* Reset */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    padding-top: 70px; /* IMPORTANT pour nav fixe */
}

a { color: #004080; text-decoration: none; }
a:hover { text-decoration: underline; }

/* NAVBAR */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: #fff;
    border-bottom: 1px solid #ddd;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 1rem;
}

nav ul { list-style: none; display: flex; gap: 1.5rem; }
nav li { font-weight: bold; }
nav a[aria-current="page"] { border-bottom: 2px solid #004080; }

.nav-logo { position: absolute; right: 20px; height: 40px; }

/* SÉLECTEUR DE LANGUE */
.lang-switch {
    position: absolute;
    left: 20px;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-weight: bold;
    color: #999;
}

.lang-switch button {
    background: none;
    border: none;
    font: inherit;
    font-weight: bold;
    color: #004080;
    cursor: pointer;
    padding: 0.2rem 0.3rem;
    border-bottom: 2px solid transparent;
}

.lang-switch button:hover { text-decoration: underline; }

.lang-switch button[aria-pressed="true"] {
    border-bottom-color: #004080;
    cursor: default;
    text-decoration: none;
}

.lang-switch button:focus-visible { outline: 2px solid #004080; outline-offset: 2px; }

/* LOGOS HEADER */
.logos img {
    max-height: 80px;
    width: auto;
    object-fit: contain;
    background: white;
    padding: 8px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}
.logos img:hover { transform: scale(1.1); }

/* HEADER */
header {
    background: #004080;
    color: white;
    text-align: center;
    padding: 3rem 1rem 2rem 1rem;
}
header h1 { font-size: 2.2rem; margin-bottom: 0.5rem; }
header p { font-size: 1.1rem; }

/* SECTIONS */
section { padding: 3rem 2rem; max-width: 900px; margin: auto; }

h2 {
    color: #004080;
    border-bottom: 2px solid #004080;
    display: inline-block;
    margin-bottom: 1rem;
    padding-bottom: 0.3rem;
}

.news-item { margin-bottom: 1.2rem; padding-left: 1rem; border-left: 4px solid #004080; }

/* CARTES (doctorants, publications, projets) */
.cards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

.card {
    border: 1px solid #ddd;
    border-top: 4px solid #004080;
    border-radius: 5px;
    padding: 1rem 1.2rem;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.card h3 { color: #004080; font-size: 1.1rem; margin-bottom: 0.2rem; }
.card .meta { font-size: 0.9rem; color: #666; margin-bottom: 0.5rem; }

.pub-list { list-style: none; }
.pub-list li { margin-bottom: 1.2rem; padding-left: 1rem; border-left: 4px solid #004080; }
.pub-venue { color: #666; font-size: 0.95rem; }

/* FOOTER */
footer { text-align: center; padding: 2rem 1rem; background: #f4f4f4; margin-top: 4rem; font-size: 0.9rem; }

html { scroll-behavior: smooth; }

/* MOBILE */
@media (max-width: 800px) {
    body { padding-top: 110px; }
    .nav-container { flex-direction: column; gap: 0.5rem; }
    .lang-switch, .nav-logo { position: static; }
    .nav-logo { height: 30px; }
    nav ul { flex-wrap: wrap; justify-content: center; gap: 0.5rem 1rem; }
}
/* SÉMINAIRES */
.seminar {
    display: flex;
    gap: 1.2rem;
    align-items: flex-start;
    padding: 1rem 1.2rem;
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.seminar.upcoming { border-left: 4px solid #004080; background: #f4f8fd; }

.date-badge {
    flex: 0 0 72px;
    text-align: center;
    background: #004080;
    color: #fff;
    border-radius: 5px;
    padding: 0.5rem 0.2rem;
    line-height: 1.1;
}
.date-badge .day { display: block; font-size: 1.7rem; font-weight: bold; }
.date-badge .month { display: block; font-size: 0.75rem; text-transform: uppercase; }

.seminar-body h3 { color: #004080; font-size: 1.05rem; margin-bottom: 0.2rem; }
.seminar-meta { font-size: 0.9rem; color: #666; }
.seminar-talks { margin: 0.6rem 0 0 1.2rem; }
.seminar-talks li { margin-bottom: 0.5rem; }
.resources { margin-top: 0.6rem; font-size: 0.95rem; }

@media (max-width: 800px) {
    .seminar { flex-direction: column; gap: 0.6rem; }
    .date-badge { flex: none; align-self: flex-start; padding: 0.4rem 0.8rem; }
}

/* ACCUEIL MODERNE */
.hero {
    background: linear-gradient(135deg, #003060 0%, #004080 55%, #1a66b3 100%);
    padding: 4rem 1rem 3rem 1rem;
}
.hero h1 { font-size: 2.6rem; letter-spacing: -0.5px; }
.hero > p { max-width: 700px; margin: 0.5rem auto 0; opacity: 0.92; }

.hero-actions { display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap; margin: 1.8rem 0 2rem; }

.btn {
    display: inline-block;
    padding: 0.7rem 1.6rem;
    border-radius: 999px;
    font-weight: bold;
    border: 2px solid #fff;
    transition: transform 0.2s, background 0.2s;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: #fff; color: #004080; }
.btn-outline { background: transparent; color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,0.15); }

.hero .logos { display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: center; }

/* CHIFFRES CLÉS */
.stats {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    max-width: 900px;
    margin: 2rem auto 0;
    padding: 0 1rem;
}
.stat {
    flex: 1 1 200px;
    background: #fff;
    border: 1px solid #ddd;
    border-top: 4px solid #004080;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    padding: 1rem;
    text-align: center;
}
.stat-num { display: block; font-size: 2rem; font-weight: bold; color: #004080; line-height: 1.1; }
.stat-label { font-size: 0.9rem; color: #666; }

/* TEXTE & ACTUALITÉS */
.lead { font-size: 1.1rem; line-height: 1.8; }

.news-item {
    background: #f4f8fd;
    border-radius: 0 6px 6px 0;
    padding: 0.9rem 1.2rem;
    transition: transform 0.2s, box-shadow 0.2s;
}
.news-item:hover { transform: translateX(4px); box-shadow: 0 2px 8px rgba(0,0,0,0.08); }

/* CONTACT */
.people { list-style: none; }
.people li { margin-bottom: 0.6rem; }
.people li:last-child { margin-bottom: 0; }

@media (max-width: 800px) {
    .hero h1 { font-size: 2rem; }
}
/* OFFRES */
.offer { margin-bottom: 1rem; }
.tag {
    display: inline-block;
    background: #004080;
    color: #fff;
    font-size: 0.75rem;
    font-weight: bold;
    padding: 0.15rem 0.7rem;
    border-radius: 999px;
    margin-bottom: 0.5rem;
}
.empty { color: #666; font-style: italic; }
/* RÉSUMÉ REPLIABLE (Afficher / Masquer) */
.abstract { margin-top: 0.6rem; }

.abstract summary {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    cursor: pointer;
    list-style: none;
    font-size: 0.9rem;
    font-weight: bold;
    color: #004080;
    user-select: none;
}
.abstract summary::-webkit-details-marker { display: none; }
.abstract summary::before { content: "▸"; transition: transform 0.2s; }
.abstract[open] summary::before { transform: rotate(90deg); }
.abstract summary:hover { text-decoration: underline; }
.abstract summary:focus-visible { outline: 2px solid #004080; outline-offset: 2px; border-radius: 3px; }

.abstract .less { display: none; }
.abstract[open] .more { display: none; }
.abstract[open] .less { display: inline; }

.abstract-text {
    margin-top: 0.5rem;
    padding: 0.8rem 1rem;
    border-left: 3px solid #004080;
    background: #fff;
    border-radius: 0 5px 5px 0;
    font-size: 0.95rem;
    line-height: 1.6;
    text-align: justify;
}
.abstract-text p { margin-bottom: 0.6rem; }
.abstract-text p:last-child { margin-bottom: 0; }
