.navbar {
  background-color: rgb(10, 125, 178) !important;
}

.navbar-brand,
.navbar-nav {
  display: flex;
  align-items: center;
}

.navbar-brand {
  padding: 0.5rem 1rem;
  margin-left: 12%;
  overflow: hidden;
  max-height: 60px;
}

.navbar-brand img {
  height: 50px;
  width: 50px;
}
.navbar-nav {
  display: flex;
  justify-content: center;
}

.navbar-nav li {
  margin: 0 10px;
}

.nav-link {
  font-family: "Helvetica Neue", Helvetica, Arial, cursive;
  font-size: 16px;
  font-weight: 500;
}
.nav-link:hover {
  color: white;
}

.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000; /* Ensures the navbar is above other content */
}

body {
  padding-top: 56px; /* Adjust this value based on the height of your navbar */
}


/* Begin Table Teaching */

  .table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 30px;
  }
  
  .table th {
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    color: #e67e22;
    border-bottom: 2px solid #e67e22;
    background-color: #f5f5f5;
  }
  
  .table td {
    padding: 15px;
    vertical-align: top;
    border-bottom: 1px solid #e0e0e0;
  }
  
  /* Couleurs différentes pour chaque colonne */
  .table td:nth-child(1) {
    background-color: #fff9f0; /* Beige très léger */
  }
  
  .table td:nth-child(2) {
    background-color: #f0f8ff; /* Bleu très léger */
  }
  
  .table td:nth-child(3) {
    background-color: #f0fff0; /* Vert très léger */
  }
  
  .table td:nth-child(4) {
    background-color: #fff0f5; /* Rose très léger */
  }
  
  .table td:nth-child(5) {
    background-color: #f5f0ff; /* Violet très léger */
  }
  
  /* Couleurs d'en-tête assorties */
  .table th:nth-child(1) {
    background-color: #ffecd9; /* Beige léger */
  }
  
  .table th:nth-child(2) {
    background-color: #e6f2ff; /* Bleu léger */
  }
  
  .table th:nth-child(3) {
    background-color: #e6ffe6; /* Vert léger */
  }
  
  .table th:nth-child(4) {
    background-color: #ffe6ee; /* Rose léger */
  }
  
  .table th:nth-child(5) {
    background-color: #efe6ff; /* Violet léger */
  }
  
  .course-title {
    font-weight: 500;
    color: #e67e22;
    margin: 0 0 15px 0;
    font-size: 18px;
  }
  
  .download-button {
    display: block;
    width: 100%;
    max-width: 160px;
    margin: 10px 0;
    padding: 8px 12px;
    background-color: #fff;
    color: #e67e22;
    border: 1px solid #e67e22;
    border-radius: 4px;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
  }
  
  .download-button:hover {
    background-color: #e67e22;
    color: white;
  }
  
  .material-button {
    display: inline-block;
    margin: 5px;
    padding: 8px 15px;
    background-color: #fff;
    color: #e67e22;
    border: 1px solid #e67e22;
    border-radius: 4px;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
  }
  
  .material-button:hover {
    background-color: #e67e22;
    color: white;
  }
  
  .material-section {
    display: flex;
    flex-wrap: wrap;
  }
  
  @media (max-width: 992px) {
    .table, .table tbody, .table tr, .table td {
      display: block;
      width: 100%;
    }
    
    .table thead {
      display: none;
    }
    
    .table td {
      padding-left: 50%;
      position: relative;
    }
    
    .table td:before {
      position: absolute;
      left: 15px;
      top: 15px;
      width: 45%;
      font-weight: bold;
      color: #e67e22;
    }
    
    .table tr {
      margin-bottom: 20px;
      border: 1px solid #e0e0e0;
    }
    
    .table td:nth-of-type(1):before { content: "Cours"; }
    .table td:nth-of-type(2):before { content: "Chapitres"; }
    .table td:nth-of-type(3):before { content: "TD"; }
    .table td:nth-of-type(4):before { content: "TP"; }
    .table td:nth-of-type(5):before { content: "Mini-Projets"; }
  }
/*End CSS Table*/

.publications-header {
  text-align: center;
  margin-top: 70px; /* Adjust this value based on the height of your navbar */
  padding: 20px;
  background-color: #f0f0f0; /* Light grey background, adjust as needed */
  border: 1px solid #ccc; /* Add a border, customize as desired */
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1); /* Optional: adds a subtle shadow */
}

.publications-header h2 {
  margin: 0;
  padding: 10px;
  color: #333; /* Dark grey text color, adjust as needed */
}



.publication-list li {
  background-color: #f9f9f9; /* Light gray background */
  border-left: 5px solid #007bff; /* Blue left border */
  padding: 15px;
  margin-bottom: 10px;
  list-style-type: decimal; /* Removes the default list-style */
}

.publication-list li:nth-child(odd) {
  background-color: #efefef; /* Slightly darker for odd items */
}

.publication-list li:hover {
  background-color: #e2e2e2; /* Change on hover */
}

.nav-tabs .nav-link.active {
  background-color: #007bff; /* Your desired color for active tabs */
  color: #fff; /* Text color for active tabs */
  border-color: #dee2e6 #dee2e6 #fff; /* Border color for active tabs */
}

.nav-tabs .nav-link {
  color: #007bff; /* Text color for inactive tabs */
  background-color: transparent; /* Background for inactive tabs */
  border: 1px solid transparent; /* Border for inactive tabs */
}

.nav-tabs .nav-link:hover {
  border-color: #e9ecef #e9ecef #dee2e6; /* Border color on hover */
}


.container-fluid {
  margin-top: 2%;
  height: 100%;
  width: 70%;
  display: flex;
  flex-direction: column;
  align-items: left;
  border-radius: 10px;
  font-family: "Helvetica Neue", Helvetica, Arial, cursive;
  padding: 2%;
  color: white;
  background-color: rgb(10, 125, 178) !important;
  max-height: 341px;
}
#container-logo{
  height: 300px;
  width: 300px;
  margin-top: -70px;
  opacity: 0.8;

}


.container-fluid p {
  margin: 0;
  font-weight: 600;
  margin-top: 2%;
}

.avatar{
  width: 210px;
  height: 210px;
  border-radius: 50%;
  display: block;
  margin-left: auto;
  margin-right: auto;
}
hr {
  width: 100%;
  border: 2px solid white;
}

.col-4 {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: left;
}
.social-links {
  text-align: left;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: space-between;
  font-size: 30px;
  margin-top: 10%;
}
.social-links a {
  color: white;
}

.social-links a:hover {
  color: #768f97;
}

.aboutme {
  margin-left: 13%;
  width: 70%;
  display: flex;
  flex-direction: column;
  align-items: left;
  border-radius: 10px;
  font-family: "Helvetica Neue", Helvetica, Arial, cursive;
  padding: 2%;
  color: black;
}
.aboutme h2 {
  margin: 0;
  color: #e87722;
  font-size: 28px;
  font-weight: 600;
}
.aboutme p {
  margin: 0;
  margin-top: 2%;
  font-size: 18px;
  text-align: justify;
}
.news {
  margin-left: 13%;
  width: 70%;
  display: flex;
  flex-direction: column;
  align-items: left;
  border-radius: 10px;
  font-family: "Helvetica Neue", Helvetica, Arial, cursive;
  padding: 2%;
  color: black;
}
.news h2 {
  margin: 0;
  color: #e87722;
  font-size: 28px;
  font-weight: 600;
}
.news ul {
  margin: 0;
  margin-top: 2%;
  font-size: 18px;
  text-align: justify;
}

.news ul h4 {
  margin: 0;
  font-size: 20px;
  font-weight: bold;
}

.research {
  margin-left: 13%;
  width: 70%;
  display: flex;
  flex-direction: column;
  align-items: left;
  border-radius: 10px;
  font-family: "Helvetica Neue", Helvetica, Arial, cursive;
  padding: 2%;
  color: black;
}
.research h2 {
  margin: 0;
  color: #e87722;
  font-size: 28px;
  font-weight: 600;
}
.research h4 {
  margin: 0;
  font-size: 20px;
  font-weight: bold;
  margin-top: 2%;
}

.research .btn {
  background-color: white;
  border: 1px solid #e87722;
  border-radius: 5px;
  color: #e87722;
  text-align: center;
  height: 21px;
  width: 77px;
  font-size: 12px;
  font-weight: 600;
  padding: 0;
  float: right;
  margin-right: 1.5%;
  margin-top: 3%;
}
.btn:hover {
  background-color: #e87722;
  color: white;
  border: 1px solid #e87722;
}

.publications {
  margin-left: 13%;
  width: 70%;
  display: flex;
  flex-direction: column;
  align-items: left;
  border-radius: 10px;
  font-family: "Helvetica Neue", Helvetica, Arial, cursive;
  padding: 2%;
  color: black;
}
.publications h2 {
  margin: 0;
  color: #e87722;
  font-size: 28px;
  font-weight: 600;
}
.publications .row {
  margin: 0;
  margin-top: 2%;
  font-size: 18px;
  text-align: justify;
}
.publications h4 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #2e3436;
}
.publications h5 {
  margin: 0;
  font-size: 17px;
  color: rgba(232, 119, 34, 0.8);
  font-weight: bold;
  text-align: left;
  padding-bottom: 6px;
}
.publications p {
  margin: 0;
  font-size: 14px;
  text-align: left;
}
.publications .col-2 {
  margin-top: 2%;
}
.publications .col-10 {
  margin-top: 2%;
}

.cv-icon {
  /* styles for the CV icon  */
  display: inline-block;
  width: 30px; /* Adjust size as needed */
  height: 30px; /* Adjust size as needed */
  border-radius: 50%;
  text-align: center;
  color: white; /* Icon color */
  font-weight: bold;
  font-size: 30px; /* Adjust font size as needed */
}

.cv-icon:hover {
  color: #768f97;
}

.software {
  margin-left: 13%;
  width: 70%;
  display: flex;
  flex-direction: column;
  align-items: left;
  border-radius: 10px;
  font-family: "Helvetica Neue", Helvetica, Arial, cursive;
  padding: 2%;
  color: black;
}
.software h2 {
  margin: 0;
  color: #e87722;
  font-size: 28px;
  font-weight: 600;
}
.software h4 {
  margin: 0;
  font-size: 16px;
  margin-top: 2%;
}

.software .btn {
  background-color: white;
  border: 1px solid #e87722;
  border-radius: 5px;
  color: #e87722;
  text-align: center;
  height: 21px;
  width: 77px;
  font-size: 12px;
  font-weight: 600;
  padding: 0;
  float: right;
  margin-right: 0.5%;
  margin-top: 12%;
}

.software .btn:hover {
  background-color: #e87722;
  color: white;
  border: 1px solid #e87722;
}

.teaching {
  margin-left: 13%;
  width: 70%;
  display: flex;
  flex-direction: column;
  align-items: left;
  border-radius: 10px;
  font-family: "Helvetica Neue", Helvetica, Arial, cursive;
  padding: 2%;
  color: black;
}
.teaching h2 {
  margin: 0;
  color: #e87722;
  font-size: 28px;
  font-weight: 600;
}
.teaching h4 {
  margin: 0;
  font-size: 16px;
  margin-top: 2%;
  margin-left: 5px;
}

.teaching .btn {
  background-color: white;
  border: 1px solid #e87722;
  border-radius: 5px;
  color: #e87722;
  text-align: center;
  height: 19px;
  width: 69px;
  font-size: 12px;
  font-weight: 600;
  padding: 0;
  float: right;
  margin-top: 18%;
}

.teaching .btn:hover {
  background-color: #e87722;
  color: white;
  border: 1px solid #e87722;
}
#address {
  display: inline-block;
  padding-left: 27px;
}
#icon {
  padding-right: 10px;
}

.funding {
  margin-left: 13%;
  width: 70%;
  display: flex;
  flex-direction: column;
  align-items: left;
  border-radius: 10px;
  font-family: "Helvetica Neue", Helvetica, Arial, cursive;
  padding: 2%;
  color: black;
}
.funding h2 {
  margin: 0;
  color: #e87722;
  font-size: 28px;
  font-weight: 600;
}

.funding span {
  margin-top: 2%;
  font-weight: 600;
  color: rgba(232, 119, 34, 0.8);
  font-size: 16px;
}

.funding ul > li {
  margin-top: 2%;
  margin-left: 5px;
  font-size: 16px;
}

.acknowledgements {
  margin-left: 13%;
  width: 70%;
  display: flex;
  flex-direction: column;
  align-items: left;
  border-radius: 10px;
  font-family: "Helvetica Neue", Helvetica, Arial, cursive;
  padding: 2%;
  color: black;
}
.acknowledgements h2 {
  margin: 0;
  color: #e87722;
  font-size: 28px;
  font-weight: 600;
}

.acknowledgements img {
  width: 100%;
  height: 100%;
  margin-top: 2%;
}

.advice {
  margin-left: 13%;
  width: 70%;
  display: flex;
  flex-direction: column;
  align-items: left;
  border-radius: 10px;
  font-family: "Helvetica Neue", Helvetica, Arial, cursive;
  padding: 2%;
  color: black;
}
.advice h2 {
  margin: 0;
  color: #e87722;
  font-size: 28px;
  font-weight: 600;
}

.advice h5 {
  margin-top: 2%;
  font-weight: 600;
  color: rgba(232, 119, 34, 0.8);
}

.advice p {
  margin-top: 2%;
  font-size: 16px;
}
.advice a {
  text-decoration: none;
}

@media only screen and (max-width: 800px) {
  .navbar {
    width: 100%;
  }
  .navbar-brand {
    margin-left: 0%;
    overflow: hidden;
    max-height: 60px;
  }
  .navbar-brand img {
    height: 50px;
    width: 50px;
  }
  .container-fluid {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 90%;
    height: 100%;
    text-align: center;
    max-height: 610px;
  }
  #container-logo{
    height: 5px;
    width: 5px;
    margin-top: 0;
    margin-left: 0;
    margin-top: -30px;

  }
  .container-fluid h4 {
    margin-top: 2%;
  }
  .social-links {
    width: 50%;
    margin-left: 25%;
  }
  .simple-icons--scopus {
    display: inline-block;
    width: 1em;
    height: 1em;
    --svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='m24 19.059l-.14-1.777c-1.426.772-2.945 1.076-4.465 1.076c-3.319 0-5.96-2.782-5.96-6.475c0-3.903 2.595-6.31 5.633-6.31c1.917 0 3.39.303 4.792 1.075L24 4.895c-1.286-.608-2.337-.889-4.698-.889c-4.534 0-7.97 3.53-7.97 8.017c0 5.12 4.09 7.924 7.9 7.924c1.916 0 3.506-.257 4.768-.888m-14.954-3.46c0-2.22-1.964-3.225-3.857-4.347C3.716 10.364 2.15 9.756 2.15 8.12c0-1.215.889-2.548 2.642-2.548c1.519 0 2.57.234 3.903 1.029l.117-1.847c-1.239-.514-2.127-.748-4.137-.748C1.8 4.006.047 5.876.047 8.26c0 2.384 2.103 3.413 4.02 4.581c1.426.865 2.922 1.45 2.922 2.992c0 1.496-1.333 2.571-2.922 2.571c-1.566 0-2.594-.35-3.786-1.075L0 19.176c1.215.56 2.454.818 4.16.818c2.385 0 4.885-1.473 4.885-4.395z'/%3E%3C/svg%3E");
    background-color: currentColor;
    -webkit-mask-image: var(--svg);
    mask-image: var(--svg);
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
  }



  .aboutme {
    width: 99%;
    height: 100%;
    text-align: left;
    margin-left: 0;
    margin-top: 5%;
    word-break: break;
  }
    .aboutme h2 {
        margin-left: 0;
        margin: 0 16px 0 16px;
    }

  .aboutme p {
    margin-left: 0;
    font-size: 15px;
    margin: 16px;
  }
  
  .news {
    width: 99%;
    height: 100%;
    text-align: left;
    margin-left: 0;
  }
    .news h2 {
        margin-left: 0;
        margin: 0 16px 0 16px;
    }
  .news ul {
    margin-left: 0;
    font-size: 15px;
    margin: 16px;
  }
  .news ul h4 {
    margin-left: 0;
    font-size: 16px;
  }
  .research {
    width: 99%;
    height: 100%;
    text-align: left;
    margin-left: 0;
  }
    .research h2 {
        margin-left: 0;
        margin: 0 16px 0 16px;
    }
  .research h4 {
    margin-left: 0;
    font-size: 15px;
  }
  .research .btn {
    margin-left: 10px;
    height: 18px;
    width: 70px;
  }
  .research table {
    margin-left: 10px;
    font-size: 13px;
    margin-top: 10px;
  }


  .publications {
    width: 99%;
    height: 100%;
    text-align: left;
    margin-left: 0;
  }
    .publications h2 {
        margin-left: 0;
        margin: 0 16px 0 16px;
    }
  .publications h4 {
    margin-left: 8px;
    font-size: 16px;
  }

  .publications h5 {
    margin-left: 0;
    font-size: 16px;

  }
  .publications p {
    margin-left: 0;
    font-size: 13px;

  }
  .software {
    width: 99%;
    height: 100%;
    margin-left: 0;
  }
  .software h2{
    margin-left: 0;
    margin: 0 16px 0 16px;

  }

  .software h4 {
    margin-left: 0;
    font-size: 15px;
    padding-top: 10px;
    line-height: 1.5;
    text-align: left;
    margin: 16px;
  }
  .software .btn {
    height: 18px;
    width: 70px;
    margin-top: 30px;
    float: right;
  }
  .software .col-10 {
    width: 80%;
  }

  .teaching {
    width: 99%;
    height: 100%;
    margin-left: 0;
  }
    .teaching h2 {
        margin-left: 0;
        margin: 0 16px 0 16px;
    }
  .teaching h4 {
    margin-left: 0;
    font-size: 15px;
    padding-top: 10px;
    text-align: left;
    line-height: 1.5;
    margin: 16px;
  }
  .teaching .btn {
    height: 18px;
    width: 70px;
    float: right;
    margin-top: 30px;
  }
  .teaching .col-10 {
    width: 80%;
  }

  .funding {
    width: 99%;
    height: 100%;
    text-align: left;
    margin-left: 0;
  }
    .funding h2 {
        margin-left: 0;
        margin: 0 16px 0 16px;
    }
  .funding h4 {
    margin-left: 0;
    font-size: 16px;
    padding-top: 10px;
  }
  .funding span {
    margin-left: 0;
    font-size: 13px;
    padding-top: 10px;
  }
  .funding ul > li {
    margin-left: 0;
    font-size: 13px;
    padding-top: 10px;
  }

  .acknowledgements {
    width: 99%;
    height: 100%;
    text-align: left;
    margin-left: 0;
  }
    .acknowledgements h2 {
        margin-left: 0;
        margin: 0 16px 0 16px;
    }
  .acknowledgements h4 {
    margin-left: 0;
    font-size: 16px;
    padding-top: 10px;
  }

  .advice {
    width: 99%;
    height: 100%;
    text-align: left;
    margin-left: 0;
  }
    .advice h2 {
        margin-left: 0;
        margin: 0 16px 0 16px;
    }
  .advice h4 {
    margin-left: 0;
    font-size: 16px;
    padding-top: 10px;

  }
  .advice h5 {
    margin-left: 0;
    font-size: 13px;
    padding-top: 10px;
    margin: 0 16px 0 16px;

  }
  .advice p {
    margin-left: 0;
    font-size: 13px;
    padding-top: 10px;
  }
}
