@import url('https://fonts.googleapis.com/css2?family=Advent+Pro:ital,wght@0,100..900;1,100..900&family=Dancing+ Script:wght@400..700&display=swap');


@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Ubuntu:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap');


html,body{
  scroll-behavior: smooth;
  padding-top: 0;
  margin:0;
  overflow-x: hidden;
  height: 100%; /* Assure une hauteur cohérente */
}

/* Éviter le double scroll html/body */
html {
  overflow: hidden; /* Empêche le scroll sur html */
}

/* Container global pour toutes les pages */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh; /* Hauteur minimale pour pousser le footer vers le bas */
  padding-top: 80px; /* Décalage pour que le contenu commence après la navbar */
  overflow-x: hidden; /* Supprime le scroll horizontal */
  overflow-y: auto; /* Seul le body peut scroller verticalement */
}

h3, h4, h5 {
  font-weight: normal !important;
}

.majuscule {
  text-transform: uppercase;
    font-size: clamp(1em, 2vw, 2em);
    font-weight: bold;
}

.italique {
  font-style: italic;
}



ul{
    margin: 0;
    padding: 0;


}
li{
    list-style-type: none;
}






/***************** Scrollbar*****************/
::-webkit-scrollbar {
  width: 10px;
  background: transparent;
}


::-webkit-scrollbar-track {
  background:transparent;
  border-radius: 6px;
}


::-webkit-scrollbar-thumb {
  background:rgba(183, 24, 21, 0.777);
  border-radius: 8px;
}


/*************************NAVBAR SIMPLE*******************/
/* Base navbar styles */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  height: 70px;
  background-color: #423e3a;
  z-index: 1001;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
}

/* Desktop navigation - hidden on mobile */
.navbar ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
  gap: 20px;
}

.navbar ul li {
  position: relative;
}

.navbar ul li a {
  color: white;
  text-decoration: none;
  padding: 10px 15px;
  display: block;
  transition: background-color 0.3s ease;
}

.navbar ul li a:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Logo */
#logo img {
  height: 50px;
  width: auto;
}

/* Burger menu - hidden on desktop */
.nav-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.burger {
  width: 25px;
  height: 3px;
  background: white;
  margin: 3px 0;
  transition: 0.3s;
}

/* Mobile styles */
@media (max-width: 900px) {
  .navbar ul {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background-color: #423e3a;
    flex-direction: column;
    padding: 20px 0;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    height: calc(100vh - 70px);
    overflow-y: auto;
  }
  
  .navbar ul.active {
    transform: translateY(0);
  }
  
  .navbar ul li {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .navbar ul li:last-child {
    border-bottom: none;
  }
  
  .navbar ul li a {
    padding: 15px 20px;
    width: 100%;
    text-align: left;
  }
  
  .nav-toggle {
    display: flex;
  }
  
  /* Burger animation */
  .nav-toggle.active .burger:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
  }
  
  .nav-toggle.active .burger:nth-child(2) {
    opacity: 0;
  }
  
  .nav-toggle.active .burger:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
  }
  
  /* Dropdown styles for mobile */
  .navbar ul li.has-dropdown ul.dropdown {
    position: static;
    background-color: rgba(255, 255, 255, 0.1);
    display: none;
    padding: 10px 0;
  }
  
  .navbar ul li.has-dropdown.active ul.dropdown {
    display: block;
  }
  
  .navbar ul li.has-dropdown ul.dropdown li a {
    padding-left: 40px;
    font-size: 0.9em;
  }
  
  .navbar ul li.has-dropdown > a::after {
    content: " ▼";
    font-size: 0.8em;
  }
  
  .navbar ul li.has-dropdown.active > a::after {
    content: " ▲";
  }
}

/* Desktop navigation styles */
.navbar ul li ul.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  display: none;
  min-width: 250px;
  z-index: 1002;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  padding: 8px 0;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.navbar ul li:hover > ul.dropdown {
  display: block;
}

.navbar ul li ul.dropdown li {
  float: none;
}

.navbar ul li ul.dropdown li a {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  color: #2c3e50;
  white-space: nowrap;
  font-weight: 500;
  font-size: 0.9em;
  text-decoration: none;
  transition: all 0.3s ease;
  border-radius: 8px;
  margin: 2px 8px;
}

.navbar ul li ul.dropdown li a:hover {
  background: linear-gradient(135deg, #f75f1d, #ff7a3d);
  color: white;
}

/* Correction des conflits */
  
  /* Navigation responsive */
  header li {
    font-size: 0.85em; /* Texte plus petit sur tablette */
  }
  
  header li a {
    padding: 12px 10px; /* Moins de padding sur tablette */
  }
  
  /* Logo responsive */
  #logo a {
    height: 50px;
    padding: 4px 12px;
  }
  
  #logo img {
    max-width: 120px;
    max-height: 40px;
  }
}
a{
    text-decoration: none;
    color: white;
}
#logo a{
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 16px;
  padding-right: 16px;
  height: 60px;
  display: flex;
  align-items: center;
}  

#logo img {
  max-height: 100%;
  width: auto;
  max-width: 150px;
  transition: all 0.3s ease;
}

#logo{
  float: left;
}
 
header li{
    float: right;
    font-size: clamp(0.8em, 2.5vw, 1em); /* Responsive font size */
    font-family: 'Inter:ital', sans-serif;


}
header li a{
    text-decoration: none;
    display: block;
    text-align: center;
    padding: 18px 16px;
    position: relative; /* Important pour le positionnement de la flèche */
}


/*********************Menu deroulant projet**************** */
.navbar ul {
    overflow: visible;
    background-color: #423e3a;
    position: fixed;
    width: 100%;
    opacity: 0.9;
    z-index: 1001; /* Z-index élevé pour la navbar principale */
   
}




.navbar ul li ul.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: auto;
    background-color: rgba(255, 255, 255, 0.95); /* Fond plus moderne avec transparence */
    backdrop-filter: blur(10px); /* Effet de flou moderne */
    display: none;
    min-width: 250px; /* Largeur augmentée pour les icônes */
    z-index: 1002; /* Z-index élevé pour le dropdown */
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12); /* Ombre plus moderne */
    padding: 8px 0;
    border-radius: 16px; /* Coins plus arrondis */
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: slideDown 0.3s ease-out;
}

/* Logique pour empêcher le débordement à droite */
.navbar ul li:nth-last-child(-n+3) ul.dropdown,
.navbar ul li.has-dropdown:nth-last-child(-n+3) ul.dropdown {
    left: auto;
    right: 0;
    transform-origin: top right;
}

/* Détection automatique du débordement avec JavaScript alternatif en CSS */
@media (max-width: 1200px) {
  .navbar ul li:nth-child(n+4) ul.dropdown {
    left: auto;
    right: 0;
  }
}

@media (max-width: 900px) {
  .navbar ul li ul.dropdown {
    /* En mobile, retour au comportement normal car les dropdowns sont dans le flux */
    left: auto;
    right: auto;
    position: static;
  }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.navbar ul li:hover > ul.dropdown {
    display: block;
}


.navbar ul li ul.dropdown li {
    float: none;
}


.navbar ul li ul.dropdown li a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: #2c3e50;
    white-space: nowrap;
    opacity: 1;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 0.9em;
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 8px;
    margin: 2px 8px;
    position: relative;
}

/* Ajout d'icônes avec pseudo-éléments */
.navbar ul li ul.dropdown li a::before {
    content: "";
    width: 18px;
    height: 18px;
    margin-right: 12px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

/* Icônes spécifiques pour le dropdown PROJET */
.navbar ul li.has-dropdown:nth-of-type(1) ul.dropdown li:nth-child(1) a::before {
    content: "📋"; /* Description */
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.navbar ul li.has-dropdown:nth-of-type(1) ul.dropdown li:nth-child(2) a::before {
    content: "🧪"; /* Engineering */
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.navbar ul li.has-dropdown:nth-of-type(1) ul.dropdown li:nth-child(3) a::before {
    content: "💻"; /* Software */
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.navbar ul li.has-dropdown:nth-of-type(1) ul.dropdown li:nth-child(4) a::before {
    content: "⚙️"; /* Hardware */
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.navbar ul li.has-dropdown:nth-of-type(1) ul.dropdown li:nth-child(5) a::before {
    content: "📊"; /* Measurement */
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.navbar ul li.has-dropdown:nth-of-type(1) ul.dropdown li:nth-child(6) a::before {
    content: "🌿"; /* Plant */
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.navbar ul li.has-dropdown:nth-of-type(1) ul.dropdown li:nth-child(7) a::before {
    content: "📈"; /* Results */
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Icônes spécifiques pour le dropdown HUMAN PRACTICES */
.navbar ul li.has-dropdown:nth-of-type(2) ul.dropdown li:nth-child(1) a::before {
    content: "🌍"; /* Overview/Global Impact */
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.navbar ul li.has-dropdown:nth-of-type(2) ul.dropdown li:nth-child(2) a::before {
    content: "🤝"; /* Integrated Human Practices */
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.navbar ul li.has-dropdown:nth-of-type(2) ul.dropdown li:nth-child(3) a::before {
    content: "�"; /* Education */
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.navbar ul li.has-dropdown:nth-of-type(2) ul.dropdown li:nth-child(4) a::before {
    content: "♿"; /* Inclusivity */
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.navbar ul li.has-dropdown:nth-of-type(2) ul.dropdown li:nth-child(5) a::before {
    content: "🔒"; /* Safety & Security */
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.navbar ul li.has-dropdown:nth-of-type(2) ul.dropdown li:nth-child(6) a::before {
    content: "♻️"; /* Sustainability */
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Icônes spécifiques pour le dropdown ENTREPRENEURSHIP */
.navbar ul li.has-dropdown:nth-of-type(3) ul.dropdown li:nth-child(1) a::before {
    content: "💼"; /* Business Plan */
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.navbar ul li.has-dropdown:nth-of-type(3) ul.dropdown li:nth-child(2) a::before {
    content: "💰"; /* Financial Model */
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.navbar ul li.has-dropdown:nth-of-type(3) ul.dropdown li:nth-child(3) a::before {
    content: "�"; /* Market Analysis */
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.navbar ul li.has-dropdown:nth-of-type(3) ul.dropdown li:nth-child(4) a::before {
    content: "🎯"; /* Implementation */
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Icônes spécifiques pour le dropdown AWARDS/JUDGING */
.navbar ul li.has-dropdown:nth-of-type(4) ul.dropdown li:nth-child(1) a::before {
    content: "🏆"; /* Achievements */
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.navbar ul li.has-dropdown:nth-of-type(4) ul.dropdown li:nth-child(2) a::before {
    content: "🎖️"; /* Excellence */
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.navbar ul li.has-dropdown:nth-of-type(4) ul.dropdown li:nth-child(3) a::before {
    content: "📝"; /* Documentation */
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.navbar ul li.has-dropdown:nth-of-type(4) ul.dropdown li:nth-child(4) a::before {
    content: "�"; /* Scientific Merit */
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Icônes spécifiques pour le dropdown SCIENCE/EXPERIMENTS */
.navbar ul li.has-dropdown:nth-of-type(5) ul.dropdown li:nth-child(1) a::before {
    content: "🧬"; /* Experiments */
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.navbar ul li.has-dropdown:nth-of-type(5) ul.dropdown li:nth-child(2) a::before {
    content: "📓"; /* Notebook */
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.navbar ul li.has-dropdown:nth-of-type(5) ul.dropdown li:nth-child(3) a::before {
    content: "🔍"; /* Protocols */
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.navbar ul li.has-dropdown:nth-of-type(5) ul.dropdown li:nth-child(4) a::before {
    content: "📊"; /* Results */
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Icônes spécifiques pour le dropdown CONTRIBUTION */
.navbar ul li.has-dropdown:nth-of-type(6) ul.dropdown li:nth-child(1) a::before {
    content: "🔗"; /* Parts */
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.navbar ul li.has-dropdown:nth-of-type(6) ul.dropdown li:nth-child(2) a::before {
    content: "�️"; /* Tools */
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.navbar ul li.has-dropdown:nth-of-type(6) ul.dropdown li:nth-child(3) a::before {
    content: "📋"; /* Protocols */
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.navbar ul li.has-dropdown:nth-of-type(6) ul.dropdown li:nth-child(4) a::before {
    content: "🎁"; /* Collaboration */
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}


.navbar ul li ul.dropdown li a:hover {
    background: linear-gradient(135deg, #f75f1d, #ff7a3d);
    color: white;
    opacity: 1;
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(247, 95, 29, 0.3);
}

.navbar ul li ul.dropdown li a:hover::before {
    opacity: 1;
    transform: scale(1.1);
}
.navbar ul li.has-dropdown {
    position: relative;
    line-height: 1.4em;
}

.navbar ul li.has-dropdown > a {
    padding-right: 35px !important; /* Assure un espace suffisant pour la flèche */
}

.navbar ul li.has-dropdown > a::after {
    content: "";
    width: 8px;
    height: 8px;
    border-right: 2px solid white;
    border-bottom: 2px solid white;
    transform: rotate(45deg);
    position: absolute;
    top: 50%;
    right: 8px; /* Positionné depuis la droite pour éviter le chevauchement */
    margin-top: -4px;
    transition: all 0.3s ease;
    opacity: 0.8;
}

.navbar ul li.has-dropdown:hover > a::after {
    transform: rotate(225deg);
    margin-top: 0px;
    opacity: 1;
}




/* *****************HOME PAGE CONTENT**************************************** */


html, body {
  margin: 0;
  height: 100%;
  overflow-x: hidden;
    }


body {
  background: #fffbe9;
}




.travel_back {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  text-align: center;
  padding-bottom: 0;
  position: relative;
  min-height: 0;
  overflow: hidden;
  background: #000;
  margin-top: 0; /* Supprimé pour coller au haut de la page */
}
.travel_back video {
  width: 100%;
  height: auto;
  max-width: 100vw;
  max-height: 100vh;
  display: block;
  position: static;
  object-fit: contain;
  background: #000;
  margin: 0 auto;
}
@media (max-width: 900px) {
  .travel_back {
    margin-top: 0; /* Supprimé pour coller au haut de la page sur mobile */
  }
}
@media (max-width: 768px) {
  .travel_back {
    margin-top: 0; /* Supprimé pour coller au haut de la page sur très petit mobile */
  }
  .travel_back video {
    width: 100vw;
    height: auto;
    max-width: 100vw;
    max-height: 60vh;
    min-height: 200px;
    object-fit: contain;
    margin: 0 auto;
    display: block;
  }
}




/* ******************Home_Content********************* */
.home_content {
  background-image: url('https://static.igem.wiki/teams/toulouse-insa-ut/logo/background.webp');
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: top center;
  background-attachment: scroll;
  width: 100vw;
  aspect-ratio: 1366/4101;
  height: auto;
  min-height: 0;
  overflow: hidden;
  background-size: 100% 100%!important;
}
/* ***************************BACK TO PAST******************** */
.back_to_past {
  height: 50vw;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  position: relative;
  font-weight:normal;
}


.back_to_past_content {
  position: relative;
  width: 100%;
  height: 100%;
  font-weight:normal;
}
 


.back_to_past_text-row {
  position: absolute;
  top: 15vw;
  left: 30vw;
  width: 60vw;
  max-width: 48vw;
  min-width: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 10vw;
  font-weight:normal;
}

.back_to_past_text-row .h4-container {
  position: absolute;
  top:5.5vw;
  width: 70vw;
  left:-2vw;
  text-align: center;
  text-transform: uppercase;
  font-size: clamp(0.2em, 1.8vw, 1.8em);
   font-family: 'Poppins', sans-serif;
  font-weight:normal;
}
.back_to_past_text-row .h5-container {
  position: absolute;
  top:9.2vw;
  width: 46vw;
  left:10.1vw;
  text-align: center;
  font-family: 'Poppins', sans-serif;
  color: #760a05;
  font-size: clamp(0.2em, 1.8vw, 1.8em);
  font-weight:normal;
}
.back_to_past_caption {
  position: absolute;
  top: 20vw;
  left: -10vw;
  width: 70vw;
  font-size: clamp(0.2em, 1.7vw, 1.7em);
  color: #222;
  font-family: 'Poppins', sans-serif;
  font-weight: normal;
  z-index: 4;
  text-align: center;
  margin: 0;
}

.affiches-group-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.affiches-group {
  position: relative;
  width: 800px;
  height: 400px;
  margin-left: 5vw;
  margin-top: 0vw;
  margin-right: auto;
  top: 25vh;
  left: 4vh;
  max-width: 900px;
}


.affiches-group .affiche {
  position: absolute;
  left: 0;
  top: 0;
  box-shadow: 2px 2px 8px rgba(0,0,0,0.15);
  border-radius: 8px;
  transition: box-shadow 0.3s;
  max-width: 100%;
  height: auto;
}


.affiches-group .affiche:nth-child(1) {
  z-index: 1;
  left: 0vw;
  --final-rotate: -10deg;
  width: 40vw;
  max-width: 320px;
  height: auto;
  top: 0vw;
}


.affiches-group .affiche:nth-child(2) {
  left: 28%;
  top: 30%;
  z-index: 2;
  --final-rotate: 10deg;
  width: 28vw;
  max-width: 230px;
  height: auto;
}


.affiche.reveal {
  height: auto;
  max-width: 100%;
  display: inline-block;
  opacity: 0;
  transform: translateY(40px);
}


.affiche.reveal.visible {
  animation: stickToWall 1.4s cubic-bezier(.5,1.5,.5,1) forwards;
  opacity: 1;
  transform: none;
  animation-delay: var(--delay, 0s);
}


.affiche:nth-child(1) { --i: 0; }
.affiche:nth-child(2) { --i: 1; }


@keyframes stickToWall {
  0% {
    transform: rotate(-18deg) scale(0.6) translateY(-80px);
    opacity: 0;
  }
  80% {
    transform: rotate(8deg) scale(1.1) translateY(5px);
    opacity: 1;
  }
  100% {
    transform: rotate(var(--final-rotate,0deg)) translateY(0);
    opacity: 1;
  }
}
/* ***************************************NINETIES**************************** */
.nineties {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  position: relative;
}

.nineties_text-row {
  height:40vw;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 100vw;
  margin: -2vw auto;
  gap: 0;
  padding-top: 8vw;
  box-sizing: border-box;
  margin-left: 0vw;
  }

.nineties_text-row .h4-container {
  width: 40vw;
  text-align: center;
  font-family: 'Poppins', cursive;
   font-size: clamp(0.2em, 1.8vw, 1.8em);
   margin-bottom: -2vw;
  
}
.nineties_text-row .h5-container {
  width: 70vw;
  text-align: center;
  font-family: 'Poppins', cursive;
  color:rgb(124, 20, 150);
  font-size: clamp(0.2em, 2.3vw, 2.3em);
  margin-bottom: -2vw;
  margin-left: 5vw;
  position: relative;
  top: 0vw;
  text-transform: uppercase;
  }
.nineties_caption {
  width: 80vw;;
  font-size: clamp(0.2em, 1.7vw, 1.7em);
  color: #222;
  font-family: 'Poppins', sans-serif;
  font-weight: normal;
  text-align: center;
  margin: 0;
  margin-top: 0vw;
  margin-left: 2vw;
}
/* ********************************************NOW*************************** */

.now {

  display: flex;
  flex-direction: column;
  justify-content: flex-start;
    position: relative;
}




.now_text-row {
  height: 45vw;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 100vw;
  margin: -2vw auto;
  gap: 0;
  padding-top: 11vw;
  box-sizing: border-box;
  margin-left: -9vw;
  }

.now_text-row .h4-container {
  width: 50vw;
  text-align: center;
  font-family: 'Poppins', cursive;
  font-size: clamp(0.2em, 1.8vw, 1.8em);
  
  
}
.now_text-row .h5-container {
  width: 70vw;
  text-align: center;
  font-family: 'Poppins', cursive;
  color:rgb(9, 148, 125);
  font-size: clamp(0.2em, 1.8vw, 1.8em);
  margin-bottom: 0vw;
  margin-left: 7vw;
  position: relative;
  top: -4vw;
  text-transform: uppercase;
  }


.now_caption {
  width: 55vw;;
  font-size: clamp(0.2em, 1.7vw, 1.7em);
  color: #222;
  font-family: 'Poppins', sans-serif;
  font-weight: normal;
  text-align: center;
  margin: 0;
  margin-top: -5.5vw;
  margin-left: -2vw;
}
/* ***************************************PFAS DEFINITION***************************** */
.PFAS_definition {
  
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  position: relative;
}


.PFAS_definition_text-row {
  height: auto;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 100vw;
  margin: 0vw auto;
  gap: 0;
  padding-top: 9vw;
  box-sizing: border-box;
  margin-left: -18vw;
  color:#095768;
  }

.PFAS_definition_text-row .h4-container {
  width: 55vw;
  text-align: center;
  font-family: 'Poppins', cursive;
  font-size: clamp(0.2em, 1.7vw, 1.7em);
  font-weight: normal;
  
  
}
/* *********************************IMPACTS************************ */
.impacts {
  
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  position: relative;
  font-family: 'Poppins', cursive;
}



.impacts_text-row {
  height: auto;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: left;
  width: 100%;
  max-width: 70vw;
  margin: 3vw auto;
  gap:0;
  padding-top: 6vw;
  box-sizing: border-box;
  margin-left: 31vw;
  color:#0b0a0a;
  font-size: clamp(0.2em, 1.7vw, 1.7em);
  font-family: 'Poppins', cursive;
  }
.impacts_text-row .h4-container {
  width: 80vw;
  text-align: left;
  font-family: 'Poppins', cursive;
  font-size: clamp(0.2em, 1.8vw, 1.8em);
  color:#0d0c0c;
 
}
.impacts_caption {
  width: 80vw;
  text-align: center;
  font-family: 'Poppins', cursive !important;
  font-size: clamp(0.2em, 1.5vw, 1.5em);
  color:#0d0c0c;
  margin-left: 10vw;
  margin:-4vw auto;
  font-weight: normal;
 
}
/* ***************************OUR MISSION***************** */

.Our_mission {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  position: relative;
  padding-top: 50vw;
}

.Our_mission_text-row {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  width: 100%;
  max-width: 100vw;
  margin: 0 auto;
  gap: 2vw;
  box-sizing: border-box;
  padding: 6vw 5vw;
  margin-bottom: 7vw;
}

.Our_mission_text-row .h4-container {
  width: 30%;
  text-align: center;
  font-family: 'Poppins', cursive;
  font-size: clamp(0.2em, 1.6vw, 1.6em);
  display: flex;
  align-items: baseline;
  justify-content: center;
  min-height: 0;
}

.Our_mission_text-row .h3-container {
  width: 50%;
  text-align: center;
  font-family: 'Poppins', cursive;
  font-size: clamp(0.2em, 1.4vw, 1.4em);
  display: flex;
  align-items: baseline;
  justify-content: center;
  min-height: 0;
}

.Our_mission_text-row .h5-container {
  width: 30%;
  text-align: center;
  font-family: 'Poppins', cursive;
  font-size: clamp(0.2em, 1.9vw, 1.9em);
  display: flex;
  align-items: baseline;
  justify-content: center;
  min-height: 0;
}

.logo-container {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 10vw 0 2vw 0;
  padding: 0;
  position: static;
}

.caption-container {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: -35vw 0;
  padding: 0;
  position: static;
}

.Our_mission_caption {
  width: 80vw;
  text-align: center;
  font-family: 'Poppins', cursive;
  font-size: clamp(0.2em, 1.8vw, 1.8em);
  padding: 0;
  margin: 0;
  color:#f75f1d;
  text-transform: uppercase;
  font-weight: normal;
}

.mission-logo {
  height: clamp(40px, 20vw, 500px);
  width: auto;
  object-fit: contain;
  opacity: 1;
  transform: scale(1) rotate(0deg);
  transition: all 0.8s ease;
}

.mission-logo.animate {
  animation: logoSpinAndStop 0.8s ease-out forwards;
}

@keyframes logoSpinAndStop {
  0% {
    transform: scale(1) rotate(0deg);
  }
  50% {
    transform: scale(1.2) rotate(360deg);
  }
  100% {
    transform: scale(1) rotate(720deg);
  }
}
/* *****************END OF HOME PAGE CONTENT************************* */


/* ******************+CSS GLOBAL POUR TOUTES LES SIDENAVAS */
.project-description-picture{
  height: auto; /* Hauteur automatique selon l'image */
  min-height: 300px; /* Hauteur minimale décente pour l'image */
  max-height: 50vh; /* Hauteur maximale pour éviter qu'elle prenne tout l'écran */
  margin-top: 0; /* Supprimé pour coller au haut de la page */
  margin-bottom: 0; /* Pas d'espace en bas */
  background-image: url('https://static.igem.wiki/teams/toulouse-insa-ut/logo/project-description-picture.webp');
  background-size: cover; /* Couvre tout l'espace sans déformation */
  background-repeat: no-repeat;
  background-position: center center; /* Centre l'image */
  width: 100%; /* Utilise toute la largeur */
  display: flex; /* Pour permettre l'alignement du contenu si nécessaire */
  align-items: center; /* Centre le contenu verticalement */
  justify-content: center; /* Centre le contenu horizontalement */
}
/* Container principal de la page avec sidenav - RESPONSIVE */
.full_container_project {
  display: block; /* Change en block car la sidenav est maintenant fixed */
  width: 100%;
  min-height: calc(100vh - 80px); /* Hauteur minimale pour le contenu */
  margin-top: 0; /* Supprime le margin négatif pour un espacement normal */
  padding-top: 0; /* Supprime le padding-top pour un espacement normal */
  background-color: #fffbe9;
  position: relative; /* Position relative pour le contexte */
  overflow-x: hidden; /* Supprime uniquement le scroll horizontal */
  overflow-y: visible; /* Permet le scroll vertical normal */
}

/* Sidebar navigation - FIXED RESPONSIVE */
/* Sidebar navigation - FIXED RESPONSIVE */
.aside_project {
  width: 10%; /* Largeur proportionnelle : 10% de l'écran */
  min-width: 50px; /* Largeur minimale pour garder la lisibilité */
  max-width: 250px; /* Largeur maximale pour éviter qu'elle soit trop large */
  background-color: #f8f5f0;
  border-right: 2px solid #ddd;
  position: fixed; /* Position fixe pour rester toujours visible */
  top: 80px; /* Distance du haut = hauteur de la navbar */
  left: 0; /* Collée au bord gauche */
  height: calc(100vh - 80px); /* Hauteur = écran total - navbar */
  padding: 15px;
  box-shadow: 2px 0 10px rgba(0,0,0,0.1);
  overflow-y: hidden; /* Empêche le scroll interne - forcer l'adaptation */
  overflow-x: hidden; /* Supprime le scroll horizontal */
  z-index: 998; /* Sous la navbar mais au-dessus du contenu */
  display: flex; /* Utilise flexbox pour la disposition interne */
  flex-direction: column; /* Disposition verticale */
}

.sidenav-wrapper {
  width: 100%; /* Prend toute la largeur de son container */
  height: 100%; /* Prend toute la hauteur disponible */
  display: flex; /* Utilise flexbox */
  flex-direction: column; /* Disposition verticale */
}

.sidenav {
  list-style: none;
  margin: 0;
  padding-top: 1vw;
  flex: 1; /* Prend tout l'espace disponible */
  display: flex; /* Utilise flexbox */
  flex-direction: column; /* Disposition verticale */
  justify-content: flex-start; /* Alignement en haut */
}

.sidenav-header {
  background-color: #423e3a;
  color: white;
  border-radius: 8px;
  margin-bottom: 20px;
  
  
}

.sidenav-header h3 {
  margin: 20px;
  font-size: clamp(0.7em, 1.8vw, 1.1em); /* Plus adaptatif pour les petits écrans */
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  text-align: center;
}

.nav-item {
  margin-bottom: clamp(8px, 1.2vw, 15px); /* Espacement adaptatif */
  flex-shrink: 0; /* Empêche la compression */
}

.nav-link {
  display: block;
  padding: clamp(8px, 1vw, 12px) clamp(12px, 1.2vw, 16px) clamp(6px, 0.8vw, 10px);
  color: #333;
  text-decoration: none;
  border-radius: 10px;
  font-family: 'Poppins', sans-serif;
  font-size: clamp(0.6em, 1.3vw, 0.85em); /* Plus adaptatif pour les petits écrans */
  transition: all 0.3s ease;
  border-left: 10px solid transparent;
  transform: scale(1);
  border-right: 10px;
  line-height: 1.3; /* Ligne légèrement plus espacée pour la lisibilité */
  white-space: normal; /* Permet le retour à la ligne */
  overflow: visible; /* Affiche tout le contenu */
  text-overflow: inherit; /* Supprime les pointillés */
  word-wrap: break-word; /* Coupe les mots longs si nécessaire */
  hyphens: auto; /* Césure automatique pour une meilleure présentation */
}

.nav-link:hover {
  background-color: #423e3a;
  color: white;
  border-left-color: #f75f1d;
  transform: translateX(5px) scale(1.05);
  font-weight: 600;
}

.nav-link:active,
.nav-link.active {
  background-color: #f75f1d;
  color: white;
  border-left-color: #423e3a;
  transform: translateX(8px) scale(1.05);
  font-weight: 700;
  /* font-size supprimé - garde la taille normale */
}

/* Animation pour le clic */
.nav-link:active {
  animation: clickPulse 0.2s ease-out;
}

@keyframes clickPulse {
  0% {
    transform: translateX(8px) scale(1.05);
  }
  50% {
    transform: translateX(9px) scale(1.1);
  }
  100% {
    transform: translateX(8px) scale(1.05);
  }
}


/* Contenu principal - RESPONSIVE CSS */
.main_content_project {
  width: calc(100% - 250px); /* Largeur dynamique basée sur la largeur max de la sidenav */
  margin-left: 250px; /* Marge égale à la largeur max de la sidenav */
  min-width: 0; /* Permet au contenu de se rétrécir si nécessaire */
  margin-right: 0; /* Aucune marge à droite pour toucher le bord */
  padding: 20px 0 40px 20px; /* Padding normal sans espace excessif */
  height: auto; /* Hauteur automatique selon le contenu */
  min-height: calc(100vh + 200px); /* Hauteur minimale plus grande pour garantir le scroll */
  overflow-x: hidden; /* Supprime uniquement le scroll horizontal */
  overflow-y: visible; /* Pas de scroll vertical propre */
  box-sizing: border-box; /* Inclut padding dans la largeur */
  position: relative; /* Position relative pour les éléments enfants */
}

.content-section {
  margin-bottom: clamp(40px, 6vw, 80px); /* Responsive margin: min 40px, preferred 6vw, max 80px */
  padding: clamp(20px, 4vw, 40px) clamp(15px, 3vw, 30px) clamp(20px, 4vw, 40px) clamp(20px, 4vw, 40px); /* Responsive padding */
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  scroll-margin-top: 100px; /* Ajusté pour la hauteur max navbar + marge */
  opacity: 0.95;
  transition: opacity 0.3s ease;
  width: 100%; /* Largeur relative au parent */
  box-sizing: border-box; /* Inclut padding et border dans la largeur */
  height: auto; /* Hauteur s'adapte automatiquement au contenu */
  min-height: fit-content; /* Hauteur minimale selon le contenu réel */
}

.content-section:hover {
  opacity: 1;
}

.content-section h2 {
  color: #423e3a;
  font-family: 'Poppins', sans-serif;
  font-size: clamp(0.2em, 1.8vw, 1.8em); /* Responsive: min 1.5rem, preferred 4vw, max 2.5rem */
  margin-bottom: 20px;
  border-bottom: 3px solid #f75f1d;
  padding-bottom: 10px;
  font-weight: 600;
}

.content-section p {
  color: #555;
  font-family: 'Poppins', sans-serif;
  font-size: clamp(0.2em, 1.8vw, 1.8em); /* Responsive: min 1rem, preferred 2.5vw, max 1.25rem */
  line-height: 1.6;
  margin-bottom: 15px;
}

.content-section h3 {
  color: #423e3a;
  font-family: 'Poppins', sans-serif;
  font-size: clamp(0.2em, 1.8vw, 1.8em); /* Responsive: min 1.2rem, preferred 3vw, max 1.8rem */
  margin-bottom: 15px;
  font-weight: 600;
}

.content-section h4 {
  color: #423e3a;
  font-family: 'Poppins', sans-serif;
  font-size: clamp(0.2em, 1.8vw, 1.8em); /* Responsive: min 1.1rem, preferred 2.8vw, max 1.5rem */
  margin-bottom: 12px;
  font-weight: 500;
}

/* Responsive design */
@media (max-width: 1024px) {
  .full_container_project {
    display: block; /* Assure le block sur tablette */
    margin-top: 0; /* Supprimé pour coller à l'image */
    position: relative;
    min-height: calc(100vh - 70px - 50vh); /* Ajusté pour le footer */
  }
  
  .aside_project {
    width: 10%; /* Largeur proportionnelle : 10% sur tablette */
    min-width: 160px; /* Largeur minimale réduite pour tablette */
    max-width: 200px; /* Largeur maximale réduite pour tablette */
    position: fixed; /* Position fixe maintenue sur tablette */
    top: 80px; /* Commence juste après la navbar */
    left: 0;
    height: calc(100vh - 80px); /* Hauteur = écran total - navbar */
    overflow-y: hidden; /* Pas de scroll - adaptation forcée */
    overflow-x: hidden;
    display: flex; /* Même structure flexbox qu'en desktop */
    flex-direction: column;
    border-right: 2px solid #ddd;
    border-bottom: none;
  }
  
  .main_content_project {
    width: calc(100% - 200px); /* Largeur dynamique basée sur la largeur max de la sidenav sur tablette */
    margin-left: 200px; /* Marge égale à la largeur max de la sidenav sur tablette */
    margin-right: 0; /* Collé au bord droit sur tablette */
    min-width: 0; /* Permet au contenu de se comprimer si nécessaire */
    padding: clamp(15px, 3vw, 25px) 0 clamp(15px, 3vw, 25px) clamp(10px, 2vw, 20px); /* Même padding qu'en desktop */
  }
  
  .content-section {
    padding: clamp(15px, 3vw, 25px) clamp(10px, 2vw, 20px) clamp(15px, 3vw, 25px) clamp(15px, 3vw, 25px); /* Responsive tablet padding */
    margin-bottom: clamp(30px, 5vw, 50px); /* Responsive tablet margin */
    width: 100% !important; /* Force toujours la largeur complète sur tablette */
    max-width: none !important; /* Supprime toute limitation de largeur maximale */
    min-width: 100% !important; /* Force la largeur minimale à 100% */
  }
}

@media (max-width: 768px) {
  .full_container_project {
    display: block; /* Assure le block sur mobile */
  }
  
  .navbar {
    height: 65px; /* Légèrement plus petit sur très petits écrans mais toujours visible */
    background-color: #423e3a; /* Background visible sur mobile */
    opacity: 0.95; /* Légère transparence */
  }
  
  .nav-toggle {
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(66, 62, 58, 0.9); /* Background pour le burger */
    border-radius: 4px;
    padding: 6px;
  }
  
  .navbar ul {
    top: 65px; /* Ajusté à la nouvelle hauteur */
  }
  
  /* Navigation très responsive sur mobile */
  header li {
    font-size: 0.75em; /* Texte encore plus petit sur mobile */
  }
  
  header li a {
    padding: 8px 6px; /* Padding minimal sur mobile */
  }
  
  .aside_project {
    width: 10%; /* Largeur proportionnelle : 10% sur mobile */
    min-width: 140px; /* Largeur minimale encore plus réduite pour mobile */
    max-width: 180px; /* Largeur maximale réduite pour mobile */
    padding: 10px; /* Padding réduit pour mobile */
    position: fixed; /* Position fixe maintenue sur mobile */
    top: 70px; /* Commence juste après la navbar mobile (70px) */
    left: 0; /* Collée au bord gauche */
    height: calc(100vh - 70px); /* Hauteur = écran total - navbar mobile */
    overflow-y: hidden; /* Pas de scroll - adaptation forcée */
    overflow-x: hidden;
    display: flex; /* Même structure flexbox qu'en desktop */
    flex-direction: column;
  }
  
  /* Image responsive sur mobile */
  .project-description-picture {
    min-height: 200px; /* Plus petite sur mobile */
    max-height: 35vh; /* Moins haute sur mobile */
    margin-top: 0; /* Supprimé pour coller au haut de la page sur mobile */
  }
  
  .main_content_project {
    width: calc(100% - 180px); /* Largeur dynamique basée sur la largeur max de la sidenav sur mobile */
    margin-left: 180px; /* Marge égale à la largeur max de la sidenav sur mobile */
    margin-right: 0; /* Collé au bord droit sur mobile */
    min-width: 0; /* Permet au contenu de se comprimer si nécessaire */
    padding: clamp(10px, 2vw, 20px) 0 clamp(10px, 2vw, 20px) clamp(8px, 1.5vw, 15px); /* Même padding qu'en desktop */
  }
  
  .sidenav-header h3 {
    font-size: clamp(0.8em, 1.8vw, 1em); /* Plus petit sur mobile */
  }
  
  .nav-link {
    padding: 8px 10px;
    font-size: clamp(0.6em, 1.3vw, 0.8em); /* Plus petit sur mobile */
    line-height: 1.3; /* Ligne légèrement plus espacée pour la lisibilité */
    white-space: normal; /* Permet le retour à la ligne sur mobile aussi */
    overflow: visible; /* Affiche tout le contenu sur mobile */
    word-wrap: break-word; /* Coupe les mots longs si nécessaire */
    hyphens: auto; /* Césure automatique */
  }
  
  .content-section {
    padding: clamp(15px, 3vw, 25px) clamp(10px, 2vw, 15px) clamp(15px, 3vw, 25px) clamp(15px, 3vw, 25px); /* Responsive mobile padding */
    margin-bottom: clamp(30px, 5vw, 50px); /* Responsive mobile margin */
    width: 100% !important; /* Force toujours la largeur complète sur mobile */
    max-width: none !important; /* Supprime toute limitation de largeur maximale */
    min-width: 100% !important; /* Force la largeur minimale à 100% */
  }
  
  .content-section h2 {
    font-size: clamp(0.2em, 1.8vw, 1.8em); /* Mobile responsive: plus petit range */
  }
  
  .content-section p {
    font-size: clamp(0.2em, 1.8vw, 1.8em); /* Mobile responsive: plus petit range */
  }
  
  /* Logo encore plus petit sur mobile */
  #logo a {
    height: 45px;
    padding: 4px 8px;
  }
  
  #logo img {
    max-width: 100px;
    max-height: 35px;
  }
}

/* *****************END OF DESCRIPTION PAGE CONTENT *******************/
/* ****************************FOOTER******************* */
footer {
  height: 50vh !important; /* Force la hauteur sur toutes les pages */
  min-height: 400px; /* Hauteur minimale pour la consistance */
  background-color: #423e3a;
  color: white;
  padding: 20px;
  text-align: center;
  flex-shrink: 0; /* Empêche le footer de se rétrécir dans un contexte flexbox */
  margin-top: auto; /* Pousse le footer vers le bas */
}


#deuxiemetrait{
    height:1.5px ;
    width: 50%;
    background-color: white;
    margin: 60px auto;


}
#copyrighteticons{
    display: flex;
    margin-bottom: 20px;
    padding: 0 10%;
}
#copyright{
    width: 50%;
    text-align:left;
    color:white;
}
#icons{
    width: 50%;
    text-align: right;


}
#icons a{
    display: inline-block;
    margin: 0 15 px;
    font-size: 1.3em;
    color: white;
}
#icons a:hover{
transform: scale(1.5);
transition: 0.1s;
color :rgb(242, 175, 18);
}


.footer-scroller {
  width: 100%;
  overflow: hidden;
  position: relative;
  height: 100px;
  background: transparent;
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.footer-scroller[data-spee="fast"]{
    --_animation-duration: 35s;
}
.footer-scroller[data-direction]{
    --_animation-direction: reverse;
}
.scroller_item {
  display: inline-block;
  margin-right: 40px;
  vertical-align: middle;
}
.footer-logo {
  height: 50px;
  width: auto;
  display: inline-block;
  vertical-align: middle;
  animation: scroll-logos 15s linear infinite;
}
.footer-logo:hover {
  transform: scale(1.1);
  transition: 0.2s;
}
@keyframes scroll-logos {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-1800px);
  }
}

