* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px;
    background-image: url("images/background.jpg");
    background-attachment: fixed;
    background-repeat: repeat;
}

/* Header */
header {
    background-image: url("images/navbar2.png");
    padding: 15px;
    box-shadow: 0px 5px 10px #AAA;
    text-align: center;
}

#title {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 5px;
}

#My_name {
    color: white;
    font-weight: bold;
    margin: 5px 0;
    text-align: center;
}

#My_name span:first-child {
    font-size: 1.5rem;
    display: block;
}

#My_name span:last-child {
    font-size: 1.1rem;
    display: block;
    margin-top: 5px;
}

/* Navigation */
#naviga {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
    padding: 10px;
    width: 100%;
}

#naviga div {
    background: rgba(255,255,255,0.1);
    padding: 8px 25px;
    border-radius: 8px;
}

#naviga a {
    font-size: 1.1rem;
    color: white;
    text-decoration: none;
}

#naviga a:hover {
    text-decoration: underline;
}

/* Section principale */
section {
    display: flex;
    flex-direction: column;
    margin: 20px 0;
    background-color: white;
    padding: 15px;
    border-radius: 4px;
}

/* Photo et contact */
.ide {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin: 20px 0;
}

.My_photo {
    width: auto;
    max-width: 25%;
    height: auto;
    min-width: 150px;
    object-fit: cover;
}

.contact {
    background-color: white;
    font-family: Verdana;
    text-align: center;
    flex: 1;
}

/* Titres de section */
.section-title {
    font-size: 1.2rem;
    font-weight: bold;
    display: block;
    margin: 15px 0 5px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

/* Timeline CV */
.cv-timeline {
    margin: 15px 0;
}

.cv-item {
    margin-bottom: 15px;
    padding-left: 0;
}

.cv-year {
    font-weight: bold;
    color: #5d697c;
    display: inline-block;
    min-width: 120px;
}

.cv-role {
    color: #29323e;
}

.cv-details {
    margin-left: 120px;
    margin-top: 5px;
}

.cv-details p {
    margin: 5px 0;
    color: #29323e;
}

/* Publications CV */
.cv-publications {
    margin: 15px 0;
    color: #29323e;
}

.cv-publications a {
    color: #b49688;
    text-decoration: none;
}

.cv-publications a:hover {
    text-decoration: underline;
}

/* Service */
.cv-service {
    margin: 15px 0;
    color: #29323e;
}

.cv-service em {
    font-style: italic;
}

/* Listes d'identifiants */
.identifiers-list {
    list-style-type: disc;
    padding-left: 20px;
    margin: 10px 0;
    color: #5d697c;
}

.identifiers-list li {
    color: #5d697c;
    margin-bottom: 8px;
}

.identifiers-list li::marker {
    color: black;
}

/* Liste de publications */
.publications-list {
    list-style-type: disc;
    padding-left: 20px;
    margin: 10px 0;
}

.publications-list li {
    margin-bottom: -5px;
}

.publi_title {
    font-family: Times;
    font-style: normal;
    font-weight: bold;
    font-size: 12pt;
    color: #5d697c;
}

.publi_author {
    font-family: Times;
    font-style: normal;
    font-weight: normal;
    font-size: 12pt;
    color: #29323e;
}

.publi_journal {
    font-family: Times;
    font-style: italic;
    font-weight: normal;
    font-size: 12pt;
    color: #29323e;
}

img[alt="pdf"], img[alt="movie"] {
    width: auto;
    max-height: 1.2em;
    vertical-align: middle;
    margin-left: 5px;
    border: 0;
}

.gallery-section-title {
    font-size: 13pt;
    font-weight: bold;
    display: block;
    margin: 20px 0 10px;
}

/* Article speech */
.speech {
    background-color: white;
    border-style: ridge;
    border-color: #e6e7e8;
    width: 100%;
    text-align: justify;
    margin: 20px auto;
    font-family: Helvetica;
    font-weight: lighter;
    padding: 15px;
}

.speech h1 {
    color: #29323e;
    font-family: "HelveticaNeue-Light","Helvetica Neue","Arial",sans-serif;
    font-size: 1.5rem;
    font-style: normal;
    font-weight: 300;
    margin: 20px 0 15px;
}

.speech h2 {
    font-family: "Helvetica";
    font-size: 1.1rem;
    font-weight: 400;
    color: #5d697c;
    margin: 15px 0 10px;
}

.speech p {
    font-family: "Helvetica-Light","Helvetica";
    font-size: 0.95rem;
    font-weight: 300;
    color: #29323e;
    margin: 10px 0;
}

/* Listes avec puces */
ul {
    list-style-type: disc;
    padding-left: 20px;
    margin: 10px 0;
}

li {
    margin-bottom: 15px;
}

/* Liens */
a {
    color: #b49688;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Media queries pour mobile */
@media (min-width: 768px) {
    .ide {
        flex-direction: row;
        align-items: stretch;
    }

    .contact {
        text-align: left;
    }
}

@media (max-width: 768px) {
    body {
        padding: 5px;
    }

    header {
        padding: 10px;
    }

    #My_name span:first-child {
        font-size: 1.3rem;
    }

    #My_name span:last-child {
        font-size: 0.9rem;
    }

    #naviga {
        flex-direction: column;
        align-items: center;
    }

    #naviga div {
        width: 100%;
        max-width: 250px;
        text-align: center;
    }

    .speech h1 {
        font-size: 1.3rem;
    }

    .speech h2 {
        font-size: 1rem;
    }

    .speech p {
        font-size: 0.9rem;
    }

    .My_photo {
        width: 120px;
    }

    .cv-year {
        display: block;
        min-width: auto;
        margin-bottom: 3px;
    }

    .cv-details {
        margin-left: 0;
    }

    .cv-item {
        margin-bottom: 20px;
    }
    
    
}
