/* ===================================================================
   FICHIER STYLE : COULEURS ET MISE EN PAGE DU SITE
   Normalement, ne pas modifier ce fichier pour ajouter une publication.
   Pour changer la couleur principale : voir --violet dans :root.
   Pour changer largeur du contenu : voir max-width de .container.
   Pour modifier le cadrage de la photo : voir .portrait-zone img.
   Les regles @media tout en bas adaptent le site aux telephones.
   =================================================================== */

/* STYLE GENERAL : MODIFIER ICI les couleurs du site. */
:root {
    --violet:#5337a5;
    --deep:#2b2355;
    --pale:#f6f3fd;
    --ink:#29243a;
    --muted:#69647b;
    --border:#e8e3f2;
}

* {
    box-sizing:border-box;
}

html {
    scroll-behavior:smooth;
}

body {
    margin:0;
    background:white;
    color:var(--ink);
    font:16px/1.7 -apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;
}

a {
    color:var(--violet);
}

.container {
    max-width:1080px;
    margin:auto;
    padding:0 25px;
}

.topbar {
    border-bottom:1px solid var(--border);
    background:white;
    position:sticky;
    top:0;
    z-index:10;
}

.nav {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:24px;
    min-height:76px;
}

.brand {
    font-weight:800;
    font-size:20px;
    text-decoration:none;
    color:var(--deep);
}

nav {
    display:flex;
    gap:20px;
    flex-wrap:wrap;
}

nav a {
    font-size:14px;
    text-decoration:none;
    font-weight:600;
    color:var(--ink);
}

nav a:hover {
    color:var(--violet);
}

h1,h2,h3 {
    line-height:1.23;
    color:var(--deep);
}

h1 {
    font-size:clamp(36px,5vw,62px);
    margin:10px 0;
}

h2 {
    font-size:15px;
    margin:6px 0 24px;
}

h3 {
    font-size:19px;
    margin:0 0 10px;
}

.eyebrow {
    color:var(--violet);
    font-size:12px;
    text-transform:uppercase;
    font-weight:800;
    letter-spacing:.11em;
}

.section>.container>.eyebrow,
.affiliations-heading>.eyebrow {
    font-size:17px;
    letter-spacing:.09em;
}

.hero {
    display:grid;
    grid-template-columns:1.7fr 1fr;
    gap:55px;
    align-items:center;
    padding-top:85px;
    padding-bottom:85px;
}

.subtitle {
    color:var(--violet);
    font-weight:650;
    font-size:18px;
}

.hero-copy>p {
    max-width:650px;
}

.hero-links {
    display:flex;
    gap:9px;
    margin-top:26px;
    flex-wrap:wrap;
}

.button {
    border-radius:8px;
    padding:9px 14px;
    text-decoration:none;
    background:var(--violet);
    color:#fff;
    font-size:14px;
    font-weight:700;
}

.button.secondary {
    background:var(--pale);
    color:var(--violet);
}

.portrait-zone {
    border-radius:18px;
    background:var(--pale);
    height:320px;
    overflow:hidden;
}

.portrait-zone img {
    width:100%;
    height:100%;
    object-fit:cover;
}

.portrait-placeholder {
    height:100%;
    align-items:center;
    justify-content:center;
    text-align:center;
    color:var(--muted);
}

.affiliations {
    border-top:1px solid var(--border);
    border-bottom:1px solid var(--border);
    background:#fff;
}

.affiliations-inner {
    min-height:160px;
    display:grid;
    grid-template-columns:240px 1fr;
    align-items:center;
    gap:52px;
}

.affiliations-heading h2 {
    margin:4px 0 0;
}

.affiliations-logos {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:38px;
}

.institution-logo {
    display:flex;
    align-items:center;
    justify-content:center;
    gap:12px;
    padding:12px 4px;
    text-decoration:none;
    transition:opacity .2s ease,transform .2s ease;
}

.institution-logo:hover,
.institution-logo:focus-visible {
    opacity:.78;
    transform:translateY(-2px);
}

.institution-logo img {
    display:block;
    max-width:100%;
    height:auto;
}

.institution-inria img {
    width:150px;
}

.institution-sorbonne img {
    width:158px;
}

.institution-ljll img {
    width:60px;
    flex:0 0 auto;
}

.institution-ljll span {
    color:var(--deep);
    font-size:14px;
    font-weight:750;
    line-height:1.35;
}

.section {
    padding:80px 0;
    scroll-margin-top:80px;
}

.tinted {
    background:var(--pale);
}

.topics {
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:18px;
}

.topics article,.teaching-card {
    background:white;
    border:1px solid var(--border);
    padding:25px;
    border-radius:12px;
}

.topics p,.teaching-card p {
    margin-bottom:0;
}

.intro {
    color:var(--muted);
    max-width:790px;
}

.pub-list {
    list-style:none;
    padding:0;
    margin:20px 0 32px;
}

.publication {
    display:flex;
    gap:13px;
    padding:10px 0;
    border-bottom:1px solid var(--border);
    line-height:1.4;
}

.publication a {
    text-decoration:none;
}

.publication a:hover {
    text-decoration:underline;
}

.pub-num {
    min-width:28px;
    color:var(--violet);
    font-weight:800;
}

.authors {
    font-size:14px;
    margin-top:1px;
}

.journal {
    color:var(--muted);
    font-size:14px;
    font-style:italic;
    line-height:1.35;
}

.teaching-grid {
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:17px;
}

.teaching-card h3 {
    font-size:14px;
    margin:4px 0 8px;
}

.cv-link {
    font-weight:700;
    text-decoration:none;
}

.cv-link:hover,
.cv-link:focus-visible {
    text-decoration:underline;
    text-underline-offset:4px;
}

footer {
    padding:32px 0;
    border-top:1px solid var(--border);
    color:var(--muted);
    font-size:13px;
}

code {
    padding:3px 5px;
    background:#eee9fa;
    border-radius:4px;
}

@media(max-width:760px) {
    .hero {
        grid-template-columns:1fr;
        padding-top:50px;
        padding-bottom:50px;
    }

    .portrait-zone {
        height:240px;
        max-width:280px;
    }

    .topics,.teaching-grid {
        grid-template-columns:1fr;
    }

    .affiliations-inner {
        grid-template-columns:1fr;
        gap:22px;
        padding-top:38px;
        padding-bottom:38px;
    }

    .affiliations-logos {
        flex-direction:column;
        align-items:stretch;
        gap:8px;
    }

    .institution-logo {
        min-height:78px;
    }

    .nav {
        align-items:flex-start;
        padding-top:16px;
        padding-bottom:16px;
        flex-direction:column;
        gap:10px;
    }

    .section {
        padding:54px 0;
    }

}

/* Enseignement : listes de PDF, faciles à compléter */
.documents-list { padding-left: 1.25rem; line-height: 1.9; }
.documents-list a { text-decoration: underline; text-underline-offset: 3px; }
