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

body {
    font-family: sans-serif;
}

/* Header */
header {
    /*background-image: url("mangrovefp_blur.png");*/
    position: relative;
    z-index: 20;
    background-color: #000;
    color: white;
    margin: 1em 2em 1em 2em;
    padding: 1em 1em 1em 1em;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.komodofrontpic {
    border-radius: 10px;
    max-height: 280px;
    width: 70%;
    pointer-events: none;
    z-index: 20;
    position: relative;
    margin: auto;
}

/* Hamburger */
.menu-toggle {
    width: 30px;
    height: 25px;
    display: flex;
    z-index: 1001; /* Higher than .side-menu and .overlay */
    position: absolute;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
}

.menu-toggle span {
    height: 4px;
    background: #f8f8f8;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Slide-out menu */
.side-menu {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100%;
    background: #111;
    color: #fff;
    padding: 20px;
    box-sizing: border-box;
    transition: left 0.3s ease;
    z-index: 1000;
    overflow-y: auto;
    max-height: auto;
}

.side-menu.open {
    left: 0;
}

.side-menu h2 {
    margin-top: 0;
}

.side-menu ul {
    list-style: none;
    padding: 0;
}

.side-menu li {
    margin: 20px 0;
    font-size: 1.1em;
    cursor: pointer;
    color: #ffffff;
}

.side-menu li i {
    margin-right: 10px;
}

.side-menu li:hover {
    color: #0af;
}
.side-menu a {
    text-decoration: none;
}
.side-menu a:hover {
    color: #0af;
}
.side-menu a:visited {
    color: #ffffff;
    text-decoration: none;
}
/* Overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.3);
    display: none;
    z-index: 999;
}

.overlay.active {
    display: block;
}

/* Main content */
/*main {
    padding: 20px;
    z-index: 1;
}*/

/*main {
    z-index:1;
    height: auto;
    display: flex;
    flex-direction:column;
    justify-content: center;
}*/


.main-section {
    z-index:1;
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

.content-section {
    background: white;
    padding: 10px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.top-section h2 {
    text-align: center;
    font-size: 2.5em;
    color: #f8f8f8;
    font-family: 'Yellowtail';
}

.left-section, .right-section {
    display: flex;
    align-items: center;
    justify-content: space-around;
    /*max-width: 1850px;*/
    margin: 2em 2em 2em 2em;
    padding: 2em 2em 2em 2em;
    background: #f0f0f2;
    border: 1px solid #dbe2e9;
}

.top-section {
    position: sticky;
    top: 5px;
    /*display: flex;*/
    /*align-items: center;*/
    justify-content: space-around;
    /*max-width: 1850px;*/
    margin: 1em 2em 1em 2em;
    padding: 2em 2em 2em 2em;
    border-radius: 8px;
    background: #541E1B;
    z-index: 20;
}

/* A ELIMINER
.left-section img, .right-section img {
    max-width: 350px;
    height: auto;
    padding:0.5em;
    border-radius:5%;
} */

.h2-section {
    font-size: 1.5em;
    text-align: center;
}

.french-button {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 60px;
    background: #541E1B;
    background-image: url('fr-2.webp');
    background-size: 30px;
    background-position: center;
    background-repeat: no-repeat;
    border: black;
    border-radius: 15px 4px 4px 15px;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
    color: #333;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.french-button:hover {
    width: 150px;
    background: #242526;
    background-position: center;
    opacity:0.7;
    color: white;
    font-size: 14px;
}

.french-button-text {
    transition: opacity 0.3s ease;
}

.french-button:hover .french-button-text::after {
    content: "French";
}

.french-button:hover .french-button-text::before {
    content: "";
}

.french-button-text::before {
    content: "";
}

.french-button:hover .french-button-text::before {
    display: none;
}


.english-button {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 60px;
    background: #541E1B;
    background-image: url('gb-2.webp');
    background-size: 30px;
    background-position: center;
    background-repeat: no-repeat;
    border: black;
    border-radius: 15px 4px 4px 15px;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
    color: #333;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.english-button:hover {
    width: 150px;
    background: #242526;
    background-position: center;
    opacity:0.7;
    color: white;
    font-size: 14px;
}

.english-button-text {
    transition: opacity 0.3s ease;
}

.english-button:hover .english-button-text::after {
    content: "English";
}

.english-button:hover .english-button-text::before {
    content: "";
}

.english-button-text::before {
    content: "";
}

.english-button:hover .button-text::before {
    display: none;
}

.condition-section {
    display: flex;
    align-items: top;
    justify-content: space-around;
    margin: 2em 2em 2em 2em;
    padding: 2em 1em 2em 1em;
    background: #ffffff;
    border-radius: 10px;
    height: 600px;
}
.text-condition-section {
    margin: 0px 25px 0px 25px;
    font-size: 1.3em;
    text-align: justify;
}
.text1-section {
    margin: 0px 0px 0px 25px;
    font-size: 1.1em;
    text-align: justify;
}
.text2-section {
    margin: 0px 25px 0px 0px;
    font-size: 1.1em;
    text-align: justify;
}
.infobulle1 {
    position: relative;
    cursor: help;
    border-radius: 50%;
}
.infobulle1:hover:after,
.infobulle1:focus:after {
    content: attr(aria-label);
    position: absolute;
    top: -2.4em;
    left: 50%;
    transform: translateX(-20%);
    z-index: 1;
    white-space: nowrap;
    padding: 5px 14px;
    background: #555555;
    color: #fff;
    border-radius: 4px;
    font-size: 1.2rem;
}

.slider {
    overflow: hidden;
    width: 100%;
    background: #eee;
    padding: 1em 0;
}

.slides {
    display: flex;
    width: 100%;
    animation: slide 30s infinite linear;
}

.slides img {
    width: auto;
    height: 250px;
    max-width: 100%;
}

@keyframes slide {
    0% {transform: translateX(0);}
    20% {transform: translateX(-20%);}
    40% {transform: translateX(-40%);}
    60% {transform: translateX(-60%);}
    80% {transform: translateX(-80%);}
    100% {transform: translateX(0);}
}

.thumbnail {
    width: 180px;
    cursor: pointer;
    border-radius: 10px;
    margin: 5px;
    transition: transform 0.2s;
}
.thumbnail:hover {
    transform: scale(1.05);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 10;
    inset: 0;
    background: rgba(0,0,0,0.8);
    justify-content: center;
    align-items: center;
}
.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
}

.image-container {
    position: relative;
    display: inline-block;
}

.hover-text {
    position: absolute;
    bottom: 8px;
    left: 0;
    right: 0;
    text-align: center;
    color: white;
    background: rgba(0, 0, 0, 0.6);
    padding: 6px;
    border-radius: 0 0 8px 8px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 14px;
}

.image-container:hover .hover-text {
    opacity: 1;
}

footer {
    background: black;
    height:350px;
    color: white;
    text-align: center;
    padding: 1em;
}

.foot-section {
    display: flex;
    justify-content: center;
    gap: 20px;
    background-color: #000;
    text-decoration: none;
    text-align: center;
    font-size: 1.1em;
    padding: 20px;
    margin: 20px;
    -moz-box-shadow: 0px 0px 8px #000;
    -webkit-box-shadow: 0px 0px 8px #000;
    box-shadow: 0px 0px 8px #000;
}

div.foot-section a {padding: 0px 30px; text-align: right; text-decoration: none;}
div.foot-section a:link {color:#ffffff;}
div.foot-section a:visited {color:#ffffff;}
div.foot-section a:hover {color:#696969;}


    a.infobox {
        position:relative;
        text-align:center;
    }
    a.infobox:hover {
        background: none;
        z-index: 50;
    }
    a.infobox span {
        display: none;
    }
    a.infobox:hover span {
        display: block;
        position: absolute;
        bottom: 37px;
        right: 10px;
        font-family:arial, verdana, sans-serif;
        color: black;
        text-align:justify;
        font-size:0.7em;
        font-weight:normal;
        width:380px;
        background:#fff;
        padding: 5px 20px 20px 20px;
        border: 10px solid #ddd;
        -webkit-box-shadow: 0px 0px 20px #000;
        -moz-box-shadow: 0px 0px 20px #000;
        box-shadow: 0px 0px 20px #000;
        /*--Coins arrondis en CSS3--*/
        -webkit-border-radius: 10px;
        -moz-border-radius: 10px;
        border-radius: 10px;
    }
/* Responsive */
@media (max-width: 1100px) {
    .menu-toggle {
        display: block;
        z-index: 10000;
        width: 25px;
        height: 20px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        cursor: pointer;
    }
    .content-section_1 h2 {
        font-size: 1.8em;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        background-color: #d3d3d3;
        text-align: center;
    }

    .nav-links.active {
        display: flex;
    }
    .top-section {
        margin: 1em;
        padding: 1em;
        border-radius: 8px;
    }
    .top-section h2 {
        font-size: 2em;
    }

    .author-section, .publication-section {
        flex-wrap: wrap;
        flex-direction: column;
        text-align: center !important;
    }
    .left-section, .right-section {
        align-items: center;
        flex-wrap: wrap;
        flex-direction: column;
        text-align: center;
        margin: 1em;
        padding: 1em;
        border-radius: 8px;
    }
    .left-section img, .right-section img {
        max-width: 250px;
        height: auto;
        padding:0.1em;
        border-radius: 8px;
    }
    .text1-section {
        margin: 0px 0px 0px 0px;
        font-size: 1em;
        text-align: justify;
    }

    .slides img {
        max-width: 100%;
    }
    .foot-section {
        flex-direction: column;
        align-items: center;
    }
    .komodofrontpic {
        width: 100%;
    }
    header {
        margin: 0;
    }
    .thumbnail {
        width: 100px;
    }
}
