* {
    box-sizing: border-box;
}

body {
    color: #081038;
    font-family: Avenir, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

ul {
    list-style: disc;
    margin-left: 20px;
}

/* Tables */
.tableau_publi {
    border-collapse: separate;
    border-spacing: 0;
    font-size: 15px;
    width: 100%;
}

.tableau_publi tr {
    border-bottom: 1px solid #e0e0e0;
}

.tableau_publi td {
    padding: 15px 10px;
    vertical-align: top;
}

.tableau_publi tr:last-child {
    border-bottom: none;
}

.tableau_home {
    border-collapse: collapse;
    font-size: 15px;
    width: 100%;
}

.tableau_home td {
    padding: 8px 0;
}

.tableau_2 {
    border-collapse: collapse;
    border-spacing: 0;
    font-size: 15px;
    width: 100%;
}

.tableau_2 tr {
    border-bottom: 1px solid #e0e0e0;
}

.tableau_2 td {
    padding: 15px 10px;
    vertical-align: top;
}

.tableau_2 td:first-child {
    width: 150px;
    font-weight: 600;
    color: #384257;
}

.tableau_2 tr:last-child {
    border-bottom: none;
}

/* Header */
header {
    margin: 0;
    padding: 0;
}

header img {
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
    vertical-align: bottom; /* Ceci élimine l'espace */
}

header table.no-border {
    width: 100%;
    margin: 0;
    padding: 0;
    border-collapse: collapse;
}

header table.no-border tr,
header table.no-border td {
    margin: 0;
    padding: 0;
    border: none;
}

header table.no-border img {
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
}

.talks-page .box p {
    font-weight: normal !important;
}
.talks-page .box b {
    font-weight: normal !important;
}

/* Navigation */
.naviga {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    margin: 0;
    padding: 20px 2%;
    width: 100%;
    background-color: #384257;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.naviga a {
    padding: 12px 20px;
    font-size: 1.1em;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.naviga a:hover {
    background-color: rgba(255,255,255,0.1);
    text-decoration: none;
}

/* Style grec pour CIRCE */
.greek-style {
    font-family: "Trajan Pro", "Cinzel", serif;
    font-weight: 600;
    letter-spacing: 0.05em;
}

/* Main content box */
.box {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 30px;
    overflow: visible;
}

/* Typography */
h1 {
    color: #384257;
    font-size: 2em;
    margin-top: 30px;
    margin-bottom: 20px;
    font-weight: 600;
}

h2 {
    color: #384257;
    font-size: 1.6em;
    margin-top: 35px;
    margin-bottom: 20px;
    font-weight: 600;
    border-bottom: 2px solid #384257;
    padding-bottom: 8px;
}

h3 {
    color: #384257;
    font-size: 1.3em;
    margin-top: 25px;
    margin-bottom: 15px;
    font-weight: 600;
}

p {
    margin-bottom: 15px;
    text-align: justify;
}

.My_name {
    font-weight: bold;
    font-size: 1.4em;
    margin-bottom: 15px;
    color: #384257;
}

/* Borders */
.no-border, 
.no-border th, 
.no-border td {
    border: none !important;
}

/* Images and logos */
.photo_gauche {
    width: 360px;
    max-width: 100%;
    height: auto;
    float: right;
    margin-left: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.photo_contact {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.logo {
    width: 130px;
    max-width: 100%;
    height: auto;
    float: right;
    margin-left: 20px;
}

.Logo {
    margin-left: 10%;
}



/* Encadré beige pour le projet CIRCE */
.circe-summary {
    margin-top: 20px;
    padding: 20px;
    background-color: #faf8f3;
    border-left: 4px solid #d4af37;
    border-radius: 4px;
}


.tableau_talks {
    border-collapse: collapse;
    border-spacing: 0;
    font-size: 15px;
    width: 100%;
}

.tableau_talks tr {
    border-bottom: 1px solid #e0e0e0;
}

.tableau_talks td {
    padding: 15px 10px;
    vertical-align: top;
    font-weight: normal;
    color: #081038;
}
.tableau_talks td:first-child {
    width: 150px;
    color: black;
}

.tableau_talks tr:last-child {
    border-bottom: none;
}



.header-banner {
    position: relative;
    width: 100%;
}

.header-banner img.banner {
    width: 100%;
    height: auto;
    display: block;
}

.header-logos {
    position: absolute;
    top: 20px;
    left: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.header-logos img {
    height: 60px;
    width: auto;
}



/* Links */
a:link {
    text-decoration: none;
    color: #384257;
    transition: color 0.2s ease;
}

a:visited {
    text-decoration: none;
    color: #384257;
}

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

/* Special styling for bracketed links like [DOI], [arXiv], [.pdf], [article in French] */
a[href*="doi.org"]:link,
a[href*="arxiv.org"]:link,
a[href*=".pdf"]:link,
a:link[href$=".pdf"] {
    color: #d4af37;
}

a[href*="doi.org"]:visited,
a[href*="arxiv.org"]:visited,
a[href*=".pdf"]:visited,
a:visited[href$=".pdf"] {
    color: #d4af37;
}

a[href*="doi.org"]:hover,
a[href*="arxiv.org"]:hover,
a[href*=".pdf"]:hover,
a:hover[href$=".pdf"] {
    color: #b8941f;
    text-decoration: underline;
}

/* Responsive design for tablets */
@media screen and (max-width: 768px) {
    body {
        font-size: 15px;
    }
    
    .naviga {
        flex-direction: column;
        padding: 15px 2%;
    }
    
    .naviga a {
        width: 100%;
        text-align: center;
        padding: 15px 20px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        border-radius: 0;
    }
    
    .naviga a:last-child {
        border-bottom: none;
    }
    
    .box {
        margin: 20px auto;
        padding: 0 20px;
    }
    
    .tableau_publi,
    .tableau_home,
    .tableau_2 {
        font-size: 14px;
    }
    
    .tableau_publi td,
    .tableau_2 td {
        padding: 12px 5px;
    }
    
    .tableau_2 td:first-child {
        width: 120px;
        font-size: 14px;
    }
    
    .photo_gauche,
    .photo_contact {
        width: 100%;
        float: none;
        margin: 15px 0;
    }
    
    .logo {
        width: 100px;
        float: none;
        margin: 10px auto;
        display: block;
    }
    
    h1 {
        font-size: 1.7em;
    }
    
    h2 {
        font-size: 1.4em;
    }
    
    h3 {
        font-size: 1.2em;
    }
    
    p {
        text-align: left;
    }
}

/* Responsive design for smartphones */
@media screen and (max-width: 480px) {
    body {
        font-size: 14px;
    }
    
    .naviga {
        padding: 10px 0;
    }
    
    .naviga a {
        padding: 12px 15px;
        font-size: 1em;
    }
    
    .box {
        margin: 15px auto;
        padding: 0 15px;
    }
    
    .My_name {
        font-size: 1.2em;
    }
    
    .tableau_publi,
    .tableau_home,
    .tableau_2 {
        font-size: 13px;
    }
    
    .tableau_2 td:first-child {
        width: 100px;
        font-size: 13px;
    }
    
    h1 {
        font-size: 1.5em;
        margin-top: 20px;
    }
    
    h2 {
        font-size: 1.3em;
        margin-top: 25px;
    }
    
    h3 {
        font-size: 1.1em;
        margin-top: 20px;
    }
}


/* ════════════════════════════════════════════════════
   HEADER LOGOS  –  deux logos côte à côte sur la bannière
   ════════════════════════════════════════════════════ */

/* On passe en row pour que CIRCE et ERC soient côte à côte */
.header-logos {
    flex-direction: row;          /* écrase le column éventuel */
    align-items: center;
    gap: 20px;
    background: rgba(0,0,0,0.18); /* légère pastille sombre pour la lisibilité */
    padding: 10px 16px;
    border-radius: 8px;
}

.header-logos img {
    height: 55px;
    width: auto;
}


/* ════════════════════════════════════════════════════
   JOIN-US BANNER  –  remplace "Funding is available…"
   ════════════════════════════════════════════════════ */
.join-us-banner {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: #384257;
    border-left: 4px solid #d4af37;
    border-radius: 8px;
    padding: 18px 24px;
    margin-bottom: 40px;
}

.join-us-banner p {
    margin: 0;
    color: #fff;
    text-align: left;
    font-size: 0.97em;
    line-height: 1.65;
}

.join-us-banner a {
    color: #d4af37 !important;
    text-decoration: underline;
}


/* ════════════════════════════════════════════════════
   MEMBER CARDS  –  PhD, postdocs, stagiaires, collabs
   ════════════════════════════════════════════════════ */
.member-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 24px;
    margin-top: 16px;
    margin-bottom: 36px;
}

/* Grille un peu plus compacte pour les collaborateurs */
.collab-grid {
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
}

.member-card {
    background: #faf8f3;
    border-radius: 10px;
    padding: 24px 18px 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.07);
    border-top: 4px solid #384257;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.member-card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.13);
    transform: translateY(-3px);
}

/* Variante dorée pour les collaborateurs extérieurs */
.member-card--collab {
    border-top-color: #d4af37;
}

.member-photo {
    width: 180px;
    height: 180px;
    border-radius: 12px;      /* carré arrondi au lieu de cercle */
    object-fit: cover;
    margin-bottom: 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}


/* Avatar placeholder (quand pas de photo) */
.member-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: #dde1ea;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2em;
    margin-bottom: 14px;
    color: #384257;
}

.member-name {
    font-weight: 700;
    font-size: 1.05em;
    color: #384257;
    margin-bottom: 4px;
}

.member-since {
    font-size: 0.82em;
    color: #aaa;
    font-style: italic;
    margin-bottom: 6px;
}

.member-cosup {
    font-size: 0.86em;
    color: #555;
    margin-top: 6px;
    line-height: 1.4;
}

.member-affil {
    font-size: 0.84em;
    color: #888;
    margin-top: 4px;
}

.member-topic {
    font-size: 0.83em;
    color: #666;
    margin-top: 6px;
    font-style: italic;
    line-height: 1.4;
}

.collab-intro {
    color: #666;
    font-size: 0.93em;
    margin-top: -10px;
    margin-bottom: 4px;
}


/* ════════════════════════════════════════════════════
   RESPONSIVE  –  cartes sur mobile
   ════════════════════════════════════════════════════ */
@media screen and (max-width: 600px) {
    .member-grid,
    .collab-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 16px;
    }

    .header-logos img {
        height: 40px;
    }
}

/* ── Pastilles de rôle ── */
.member-badge {
    display: inline-block;
    font-size: 0.78em;
    font-weight: 600;
    letter-spacing: 0.03em;
    padding: 3px 14px;
    border-radius: 20px;
    margin-top: 6px;
    margin-bottom: 6px;
}

.badge-postdoc {
    background: #384257;
    color: #fff;
}

.badge-phd {
    background: #dde1ea;
    color: #384257;
}

.badge-intern {
    background: #faf0d6;
    color: #8a7230;
}

/* ── Co-encadrement allégé ── */
.member-cosup {
    font-size: 0.84em;
    color: #888;
    margin-top: 4px;
    line-height: 1.4;
    font-style: italic;
}