.project-detail-container-wrapper {
  width: 100%; /* Prend toute la largeur disponible au départ */
  max-width: 1175px; /* Limite la largeur à 1200px au maximum */
  margin-left: auto;  /* Centre la div horizontalement */
  margin-right: auto; /* Centre la div horizontalement */
  box-sizing: border-box; /* Optionnel : inclut padding et border dans la largeur totale */
}

/* Detail header */
.detail-header {
    margin-top: 1.5rem;
}

.detail-image {
  position: relative;
  width: 100%;
  height: 33rem;
  overflow: hidden;
  border-radius: 10px;
  margin: 0 auto; /* Centers the image horizontally */
}

.detail-image::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.05);
    pointer-events: none;
}


@media (max-width: 480px) {
    .detail-image {
        height: 20rem;
    }
        
}

.detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.detail-body {
    margin-top: 2.8rem;
    background: white;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.detail-title {
    display: flex;
    /* justify-content: center; */
    align-items: center;
    align-content: center;
    padding-left: 0.5rem;
}

.detail-status {
    display: inline-block;
    margin-left: 1rem;
    padding: 0.3rem 1rem;
    border-radius: 12px;
    font-size: var(--font-size-detail-project-status);
    font-weight: var(--font-weight-regular);
}

.university-container-detail {
    display: flex;
    padding: 0;
    align-items: center;
    /* justify-content: center; */
    flex-shrink: 0; /* Empêche le container de rétrécir */
}

/* @media (max-width: 480px) {
    .detail-title {
        justify-content: center;
        }
    .university-container-detail {
        justify-content: left;
    }
} */



/* Status of projects*/

.status-incoming  { 
  background-color: #FAF3C0;
  color: #6E5E00;
} 

.status-ongoing  { 
  background-color: #e6f7f3; 
  color: #2E6653;
}
.status-finished  { background-color: #fff6e5; }





.university-container-detail {
  display: flex;
  align-items: center;
}

.university-logo-detail {
  width: 48px;
  height: 48px;
  margin-right: 1rem;
  overflow: hidden;
}

.university-logo-detail img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.university-info {
    display: flex;
    flex-direction: column;
}


.university-name-detail {
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-detail-university-name);
}

.authors-detail {
    font-size: var(--font-size-detail-authors);
    font-weight: var(--font-weight-light);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 0.5rem;
}

.info-box {
  background-color: #fafafa;
  border-radius: 10px;
  padding: 2rem;
}

.info-label {
  font-size: var(--font-size-detail-categories-label);
  font-weight: var(--font-weight-light);
  margin-bottom: 1rem;
}

.info-value {
  font-size: var(--font-size-detail-categories-value);
  font-weight: var(--font-weight-regular);
}

/* Responsive design pour les écrans plus petits */
@media (max-width: 768px) {
  .info-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* @media (max-width: 480px) {
  .info-grid {
    grid-template-columns: 1fr;
  }
} */



.detail-description-method {
  width: 100%;
  background-color: #fafafa;
  border-radius: 12px;
  padding: 1.5rem;
}


.detail-methodology {
  background-color: #e9f0f7;
  display: inline-block;
  padding: 0.5rem 1.5rem;
  border-radius: 20px;
  margin-bottom: 1rem;
}

.detail-description p {
  font-size: var(--font-size-detail-method-description);
  font-weight: var(--font-weight-light);
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  margin: 0;
  line-height: 1.6;
}

.detail-section {
    display: none;
    margin-bottom: 5rem;
    background-color: #f2f2f3;
    border-radius: 12px;
    padding: 25px 40px;
    max-width: 100%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    scroll-margin-top: 175px;
}

.detail-section.active {
  display: block; /* Seule la section active est affichée */
}


.detail-section ul {
  list-style-type: disc;
  padding-left: 2rem;
}

.detail-section li {
  margin-bottom: 1rem;
}

.detail-section h4 {
    margin-bottom: 1.5rem;
}

.project-detail-container {
    position: relative;
    top: 0;
    z-index: 100;
    width: 100%;
    background-color: white;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 2rem;
}
  
.project-detail-navbar-wrapper {
    max-width: 100%;
    margin: 0 auto;
    position: relative;
    padding: 0 1rem;
}
  
.project-detail-navbar {
    display: flex;
    justify-content: space-between;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
    gap: 0.5rem;
  
}


  
.project-detail-navbar li {
    position: relative;
}
  
.project-detail-navbar a {
    display: block;
    padding: 1rem 0.75rem;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s, background-color 0.3s;
    position: relative;
    white-space: nowrap;
    font-size: 1.6rem;
    font-weight: var(--font-weight-light);
}
  
.project-detail-navbar a:hover {
    border-radius: 3px;
    color: #4f46e5;
    background-color: #f0f4ff;
  }
  
.project-detail-navbar a.active {
    color: #4f46e5;
    font-weight: 500;
    border-bottom: 2px solid #4f46e5;
}

  

      
@media (max-width: 480px) {
    .project-detail-navbar {
        gap: 0.5rem;
    }
        
    .project-detail-navbar a {
        padding: 0.75rem 0.2rem;
    }

    .detail-section{
        min-height: 10rem;
    }
}
 

.calendar-title {
  margin-bottom: 2rem;
}

.calendar-item {
  display: flex;
  margin-bottom: 2.5rem;
}

.calendar-date {
  width: 15rem;
  font-weight: var(--font-weight-light);
  padding-right: 1.5rem;
  flex-shrink: 0;
}

.calendar-content {
  display: flex;
  align-items: flex-start;
}

.clock-icon {
  margin-right: 1.5rem;
  margin-top: 0.3rem;
  flex-shrink: 0;
}


/* Responsive design */
@media (max-width: 600px) {
  .calendar-item {
      flex-direction: column;
  }
  
  .calendar-date {
      margin-bottom: 0.5rem;
      width: 100%;
  }
}




.team-container {
  /* background-color: f2f2f3;
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 30px; */
  max-width: 100%;
  margin: 0 auto;
}

.team-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.team-member {
  display: flex;
  align-items: center;
  gap: 15px;
}

.avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  flex-shrink: 0;
  background-color: white;
}

.avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: contain;
}

.member-info {
  display: flex;
  flex-direction: column;
}

.member-name {
  font-size: var(--font-size-detail-sections-partners-name);
  font-weight: var(--font-weight-medium);
}

.member-role {
  font-size: var(--font-size-detail-sections-partners-role);
  font-weight: var(--font-weight-light);
}
.profile-link {
  font-size: 1.4rem;
  font-weight: var(--font-weight-medium);
  color: var(--color-primary);
  text-decoration: none;
}

.profile-link:hover {
  color: var(--color-primary-hoover);
}

/* Responsive design */
@media (max-width: 1024px) {
  .team-grid {
      grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .team-grid {
      grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .team-grid {
      grid-template-columns: 1fr;
  }
}



.faq-box {
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 20px;
  margin-bottom: 3rem;
  max-width: 100%;
}

.faq-box h5 {
  margin: 0 0 10px 0;
  font-size: var(--font-size-detail-sections-faq-title);
  font-weight: var(--font-weight-semibold);
}



.interest-form {
  background-color: #e5ebff;
  border-radius: 12px;
  padding: 40px;
  max-width: 100%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}


.form-title {
  margin-bottom: 1.6rem;
}

.form-description {
  margin-bottom: 3rem;
  font-weight: var(--font-weight-light);
}

.form-container {
  display: flex;
  gap: 1.5rem;
}

.email-input {
  flex-grow: 1;
  padding: 15px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 16px;
  outline: none;
}

.email-input:focus {
  border-color: #3949ab;
  box-shadow: 0 0 0 2px rgba(57, 73, 171, 0.1);
}

.submit-button {
  background-color: var(--color-primary);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 15px 30px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
}

.submit-button:hover {
  background-color: var(--color-primary-hoover);
}

/* Responsive design */
@media (max-width: 600px) {
  .form-container {
      flex-direction: column;
  }
  
  .submit-button {
      width: 100%;
  }
}