body {
    --main-color: #6c757d;
    --secondary-color: #cbc0d3;
    /* --light-blue: rgb(33, 158, 188);
    --vlight-blue: rgb(142, 202, 230);*/
    --light-grey: rgb(225, 229, 242); 
    --photo-width: 280px;
    padding: 40px 80px;
    font-family: "Manrope", sans-serif;
    font-weight: 250;
    font-size: 15px;
    width: 70%;
    margin-left: auto;
    margin-right: auto;
    color: var(--main-color);
    
}
/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: white;
    border-bottom: 1px solid #d3d3d3;
    width: 70%;
    margin-left: auto;
    margin-right: auto;
}
.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0px;
}

/* Align content with bio (start after sidebar) */
.site-brand {
    color: var(--main-color);
    font-weight: 600;
}
.site-nav ul {
    list-style: none;
    margin: 0px;
    padding: 0px;
    /* font-family: "Georgia", serif; */
    font-weight: 200;
}
.site-nav li {
    display: inline;
    margin-left: 16px;
}
.site-nav a {
    text-decoration: none;
}

/* Nav bar*/
/* Less specific */
nav ul, footer ul {
    font-family:'Helvetica', 'Arial', 'Sans-Serif';
    padding: 0px;
    list-style: none;
    font-weight: bold;
}
nav ul li, footer ul li {
    display: inline;
    margin-left: 20px;
    margin-right: 20px; /* largeur inter section */
}
p {
    text-align: justify;
}
.publication-institutions li {
    display: inline;
    font-size: 18px;
    margin-left: 15px;
    margin-right: 20px;
}
.publication-links li {
    display: inline;
    margin-left: 20px;
    margin-right: 20px;
}

.publication-authors li {
    display: inline;
    margin-left: 15px;
    margin-right: 15px;
    font-size: 18px;
    font-weight: 200;
}

.abstract {
    width: 70%;
    margin: 0 auto;
    text-align: justify;
}
.abstract h2 {
    text-align: center;
}

.separator {
    border: none; /* Remove default border */
    border-top: 0.5px solid var(--main-color); 
}

.content {
    width: 70%; /* Adjust this value to match your desired content width */
    margin: 0 auto; /* Center the content block horizontally */
    padding-bottom: 10px;
  }


/* name and various other*/
.name {
    color: var(--main-color);
    margin: 10px 0px; 
    font-size: 30px;    
}

h1 { 
    color: var(--main-color);
    margin: 10px 0px; 
    font-size: 30px;
    font-weight: bold;
    font-family: "Georgia", serif;
    text-align: center;
    width: 70%;
    margin-left: auto;
    margin-right: auto;
}
h2 {
    color: var(--main-color);
    margin: 10px 0px; 
    font-size: 35px;
    font-weight: 200;
    font-family: "Georgia", serif;
    text-align: left;
}
h3 {
    color: var(--main-color);
    margin: 10px 0px; 
    font-size: 20px;
    font-weight: 200;
    /* font-family: "Georgia", serif; */
    text-align: center;
}
code {
    display: block;
    overflow-x: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
    font-size: 15px;
    text-align: left;
    border: 1px solid var(--main-color);
    padding: 5px 10px;
    border-radius: 4px;
    /* background-color: #f8f9fa; */
    margin-top: 0;
}

.bibtex-container {
    position: relative;
}
.custom-link {
    color: var(--secondary-color);
    /* font-size: 13px; */
    /* font-weight: 500; */
}

.copy-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--main-color);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: background-color 0.3s ease;
    z-index: 10;
}

.copy-btn:hover {
    background-color: var(--secondary-color);
}

.copy-btn i {
    margin-right: 5px;
}
/* a {
    color: var(--main-color);
    text-decoration: none;
} */
.box-link {
    text-decoration: none;
    color:var(--main-color);
    font-weight: 400;
}
.container {
    display: flex;
    flex-direction: row;
    align-items: center;
}
.box {
    display: inline-block;
    padding: 8px;
    border: 2px solid var(--main-color);
    border-radius: 15px;
    margin-top: 0px;
    /* background-color: var(--main-color); */
  }

/* Fixed-size box variants (opt-in) */
.box--fixed {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 160px;   /* adjust as needed */
    height: 48px;   /* adjust as needed */
    padding: 0;     /* content centered; override default padding */
    white-space: nowrap;
}

.box--square {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 150px;   /* adjust as needed */
    height: 150px;  /* square */
    padding: 0;
}

/* Make links fill and center inside fixed boxes if used */
.box--fixed .box-link,
.box--square .box-link {
    display: inline-block;
    width: 100%;
    text-align: center;
}

.box-math {
    display: block;
    overflow-x: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
    /* font-size: 1px; */
    text-align: justify; /* Justify the text inside the box */
    border: 2px solid var(--secondary-color);
    padding: 5px 10px;
    border-radius: 4px;
    margin: 10px auto; /* Center the box horizontally */
    width: 80%; /* Adjust the width as needed */
}

.inblock-line {
    /* color: var(--main-color); */
    font-weight: 200;
    font-family: "Georgia", serif;
    margin-bottom: 0px;
    margin-top: 3px;
}

/* Abstract button styling */
.abstract-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 400;
    color: white;
    padding: 0;
    font-size: inherit;
    font-family: inherit;
}

.abstract-btn:hover {
    opacity: 0.8;
}

/* Abstract content styling */
.abstract-content {
    margin-top: 5px;
    padding: 5px;
    background-color: white;
    border-radius: 5px;
    border-left: 4px solid var(--main-color);
}


/* Carousel */

/* Carousel container */
.carousel-container {
    max-width: 1000px;
    position: relative;
    margin: auto;
    width: 380px;
    max-height: 425px;
    overflow: hidden;
}
  
/* Hide the images by default */
.myCarousel {
    display: none;
    height: 100%;
}
.myCarousel img {
    width: 100%;
    height: auto;
}

.image-container {
    position: relative;
    width: 100%;
}

.loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.9);
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 14px;
    color: var(--main-color);
    z-index: 10;
}

.previous,
.next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  margin-top: -22px;
  padding: 16px;
  color: black;
  font-weight: bold;
  font-size: 20px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
}

/* Position the "next button" to the right */
.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

/* On hover, add a black background color with a little bit see-through */
.previous:hover,
.next:hover {
  background-color: rgba(0, 0, 0, 0.8);
}
/* Number text (1/3 etc) */
.numbertext {
    color: black;
    font-style: bold;
    font-size: 12px;
    padding: 12px 20px;
    position: absolute;
    top: 0;
    background: transparent;
  }
   .dot {
     cursor: pointer;
     height: 15px;
     width: 15px;
     margin: 0 2px;
     background-color: black;
     border-radius: 50%;
     display: inline-block;
     transition: background-color 0.6s ease;
   }
   
   /* Container for dots */
   .dot-container {
     position: absolute;
     bottom: 10px;
     left: 50%;
     transform: translateX(-50%);
     text-align: center;
   }
  .active,
  .dot:hover {
    background-color: #3f3f3f;
  }

.text.legend {
    font-size: 15px;
    text-align: left;
    width: 90%;
    display: block;
    margin: 0 auto;
    color: var(--main-color);
}

/* Responsive: full-width on small screens */
@media (max-width: 1024px) {
    body {
        padding: 24px 40px;
    }

    /* Slightly relax abstract width on tablets */
    .abstract {
        width: 85%;
    }

    .carousel-container {
        width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 640px) {
    body {
        width: 100%;
        padding: 20px;
    }

    /* Make abstract section full width on small screens */
    .abstract {
        width: 100%;
    }

    /* Allow nav to wrap instead of overflowing */
    .site-nav ul {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 8px 12px;
    }

    .site-nav li {
        margin-left: 0px;
    }

    .container {
        flex-direction: column;
        align-items: flex-start;
    }

    /* Ensure carousel spans full width on phones */
    .carousel-container {
        width: 100%;
        max-width: 100%;
    }

    .publi-pic {
        width: 100%;
        max-width: 420px;
        margin-right: 0px;
        margin-left: 0px;
    }

    /* Tweak headings to avoid overflow */
    h1 {
        font-size: 26px;
    }
    h2 {
        font-size: 28px;
    }
}

/* Ensure images scale within their containers */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Keep small icons inline inside link buttons */
.box-link img {
    display: inline;
    vertical-align: middle;
}