* {
    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;
    }
}