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

:root {
  --green-: #7bc74d;
  --black-: #222831;
  --greenContrast-: #cdf3b6;
  --gray-: #393e46;
}
/* Remove horizontal scrolling */
html,
body {
  max-width: 100% !important;
  overflow-x: hidden !important;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
}

/* Body */
body {
  min-height: 100vh !important;
  max-height: max-content;
  display: flex;
  flex-direction: column;
}
/* Header fixed at the top of the page */
header {
  width: 100%;
  height: 20.5vh;
  background-color: var(--black-);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
}

/* Top navigation bar */
.navBarTop {
  display: flex;
  justify-content: space-between;
  background-color: inherit;
  align-items: center;
  padding: 1rem 2rem;
  width: 100%;
  height: 100%;
  color: var(--green-);
}

/* logo container */
.logoContainer {
  position: relative;
  height: 100%;
  width: auto;
  top: 0;
}

/* Styles for the logo link */
.logoContainer a {
  height: 100%;
  width: auto;
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--green-);
}

/* Size of the logo */
.logoContainer img {
  width: auto;
  height: 80%;
}

/* Text of the logo */
#aptahr,
#defLogo {
  font-weight: 600;
  color: var(--green-);
}

/* Styles for the first title of the logo */
#aptahr {
  font-size: clamp(16px, 1.2vw, 30px);
  margin: 7px 0 5px;
  font-weight: 600;
  margin-bottom: 0.5em;
}

/* Styles pour le deuxième titre du logo */
#defLogo {
  font-size: clamp(12px, 1vw, 26px);
  font-weight: 500;
}

/* Bouton de bascule de la navigation mobile */
.nav_toggle_input {
  display: none;
  margin-right: 1.9vw;
}

/*  Toggle button for mobile navigation */
.nav_toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 21px;
  cursor: pointer;
  margin-right: 30px;
}

/* Toggle icon lines */
.burger {
  width: 100%;
  height: 3px;
  background-color: var(--green-); /* Custom variable for green color */
  border-radius: 5px;
  transition: all 0.3s ease-in-out;
}

/* Navigation menu */
.nav_menu {
  display: flex;
  align-items: center;
  flex: 1;
  z-index: 999; /* Ensure menu stays above blurred background */
}

/* List of navigation items */
.nav_list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  justify-content: space-around;
  align-items: center;
}

/* Menu item */
.menu_item {
  position: relative;
  display: flex;
  align-items: center;
}

/* Navigation link */
.nav_link {
  padding: 1rem;
  cursor: pointer;
  text-decoration: none;
  color: var(--green-); /* Custom variable for green color */
  text-transform: uppercase;
  font-weight: 600;
  font-size: clamp(14px, 1vw, 30px);
}

/* Hover style for navigation links */
.nav_link:hover,
.nav_link:focus {
  color: var(--greenContrast-); /* Custom variable for contrasting green */
  scale: 1.1;
}

/* Dropdown menu */
.dropdown__menu {
  display: none;
  position: absolute;
  background-color: var(--gray-); /* Custom variable for gray color */
  top: 100%;
  left: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  width: 350px;
}

/* Link style for dropdown menu */
.dropdown__menu .dropdown_link {
  display: block;
  padding: 1rem;
  text-decoration: none;
  font-weight: 700;
  font-size: clamp(14px, 1vw, 26px);
  color: var(--green-); /* Custom variable for green color */
  transition: background-color 0.3s;
}
/* Hover style for dropdown menu links */
.dropdown__menu .dropdown_link:hover {
  background-color: var(--green-); /* Custom variable for green color */
  color: var(--black-); /* Custom variable for black color */
  scale: 1.1;
}

/* Display dropdown menu on hover */
.menu_item:hover .dropdown__menu {
  display: block;
}

/* Wrapper for main content */
.content-wrapper {
  position: relative;
}

/* Blur and opacity effect */
.content-wrapper.blur::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(
    205,
    243,
    182,
    0.8
  ); /* Semi-transparent greenish background */
  backdrop-filter: blur(8px);
  pointer-events: none;
  z-index: 1;
}

/* Ensure main content is below blur effect */
.mainContent {
  position: relative;
  z-index: 0;
}

/* ##############################################################
   ##   Main
   ################################################################# */

/* Styles for alerts */

.alert {
  padding: 15px;
  margin-bottom: 20px;
  border: 1px solid transparent;
  border-radius: 0.25rem;
}

.alert-success {
  background-color: #d4edda;
  color: #155724;
  border-color: #c3e6cb;
}

.alert-danger {
  background-color: #f8d7da;
  color: #721c24;
  border-color: #f5c6cb;
}

.alert-info {
  background-color: #d1ecf1;
  color: #0c5460;
  border-color: #bee5eb;
}

.alert-warning {
  background-color: #fff3cd;
  color: #856404;
  border-color: #ffeeba;
}

/* Styles for main content */
.mainContent {
  width: 100%;
  min-height: 70vh;
  height: max-content;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 20vh;
  flex: 1;
}
/* Make the main content container flexible */
.flexible-container {
  display: flex;
  flex-direction: column;
  flex: 1 0 auto;
}
/* Blur overlay */
.blur-overlay {
  position: fixed;
  top: 20.5vh; /* Below the header */
  left: 0;
  width: 100%;
  height: calc(100vh - 20.5vh); /* Total height - header - footer */
  background: rgba(
    205,
    243,
    182,
    0.8
  ); /* Semi-transparent greenish background */
  backdrop-filter: blur(8px);
  pointer-events: none; /* Allows clicking through the overlay */
  z-index: 999;
  display: none;
}

/* Display overlay when blur-active class is added */
.mainContent.blur-active .blur-overlay {
  display: block;
}

/* Separator */
.separator {
  width: 50%;
  border: 1px solid var(--gray-); /* Custom variable for gray color */
  box-shadow: 2px 2px 1px var(--green-); /* Custom variable for green color */
  margin: 50px auto;
  opacity: 0.6;
}
.page {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 5rem 0;
}

.page h1,
.adminSpace h1 {
  font-size: clamp(24px, 2.2vw, 50px);
  line-height: 150%;
  margin-bottom: 3rem;
  color: var(--gray-);
  text-align: center;
}

/* Container for the page description */
.page .descriptionPage {
  width: 70%;
  height: auto;
  border: 40px solid var(--greenContrast-);
  display: flex;
  align-items: center; 
  justify-content: center;
  border-radius: 10px;
}

.page .textDescription {
  width: auto;
  height: auto;
  padding: 15px;
  border-radius: 10px;
  font-size: clamp(14px, 1.4vw, 32px);
  color: var(--black-);
  line-height: 150%;
  
}

.page .textDescription ul, .page .textDescription ol {
  width: 100%;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  background-color: transparent !important;
  margin: 0 !important;
  padding-left: 30px !important;
  padding-bottom: 5px !important;
}

.page .textDescription li {
  list-style-type: square;
  font-size: clamp(14px, 1.4vw, 32px);
  color: var(--black-);
  line-height: 150%;
  text-align: left;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
  margin-bottom: 3px !important;
}
.textArticle li p {
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}

.page .textDescription a,
.page .textDescription li a {
  text-decoration: none;
  font-size: clamp(14px, 1.4vw, 32px);
  font-weight: 700;
  text-align: left;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}




/* ##############################################################
   ##   Footer
   ################################################################# */

/* Styles for footer */
footer {
  width: 100%;
  height: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  background-color: var(--gray-); /* Custom variable for gray color */
  color: var(--greenContrast-); /* Custom variable for contrasting green */
  font-weight: 700;
  position: relative;
  z-index: 10;
  bottom: 0;
  left: 0;
  flex-shrink: 0; /* Prevent the footer from shrinking */
}

/* Styles for bottom navigation bar */
.navBottom {
  width: 100%;
  height: 8vh;
  position: relative;
  top: 0.5rem;
  padding: 0 50px;
  background-color: var(--black-); /* Custom variable for black color */
  display: flex;
  align-items: center;
  justify-content: space-around;
}

/* Styles for bottom menu */
.bottomMenu {
  width: 100%;
  height: 100%;
  position: relative;
  top: 0;
  left: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: space-around;
  list-style: none;
  text-decoration: none;
}

.bottomMenu img {
  width: clamp(35px, 2.2vw, 60px);
  height: auto;
}

.bottomMenu li a {
  font-size: clamp(14px, 1vw, 30px);
  font-weight: 600;
  color: var(--green-); /* Custom variable for green color */
  text-decoration: none;
}

.bottomMenu li a:hover{
  scale: 1.2;
  padding: 2px;
  color: var(--greenContrast-);
}


/* Styles for footer text */

.footer{
  width: 100%;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.footerTxt {
  text-align: center;
  font-size: clamp(10px, 0.8vw, 16px);
  margin: auto;
}


/* Class for invisible element */
.p_invisible {
  display: none;
}




/* Media queries */
 @media screen and (max-width: 1700px) {
  .dropdown__menu {
    width: 250px;
  }
  .page .descriptionPage {
    width: 80%;
  }
}
@media screen and (max-width: 1300px) {
  .page {
    padding-top: 3rem;
  }
}
@media screen and (max-width: 1100px) {
  
  .navBottom {
    padding: 0 40px;
  }
}

@media screen and (max-width: 800px) {
  .nav_toggle {
    display: flex;
  }
  .nav_menu {
    display: none;
    width: 50%;
    background-color: var(--gray-); 
    position: absolute;
    top: 130px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999;
  }
  .nav_list {
    flex-direction: column;
    width: 100%;
  }
  .menu_item {
    display: flex;
    flex-direction: column;
    width: 100%;
  }
  .nav_link {
    width: 100%;
    text-align: center;
  }
  .dropdown__menu {
    width: fit-content;
    position: relative;
  }
  .dropdown_link {
    color: var(--green-); 
    opacity: 0.7;
  }
  .nav_toggle_input:checked + .nav_toggle + .nav_menu {
    display: flex;
  }
  .nav_toggle_input:checked + .nav_toggle .burger:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .nav_toggle_input:checked + .nav_toggle .burger:nth-child(2) {
    opacity: 0;
  }
  .nav_toggle_input:checked + .nav_toggle .burger:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
  .dropdown__menu {
    position: static;
  }
  .menu_item:hover .dropdown__menu {
    display: none;
  }
  .menu_item.active .dropdown__menu {
    display: block;
    width: 100%;
  }
  

  .page h1 {
    font-size: clamp(24px, 2.2vw, 50px);
    line-height: 150%;
    margin-bottom: 3rem;
  }
}

@media screen and (max-width: 600px) {
  .nav_menu {
    display: none;
    width: 100%;
    background-color: var(--gray-); 
    position: absolute;
    top: 130px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999;
  }
  .nav_toggle_input {
    margin-right: 15px;
  }
  .nav_toggle {
    margin-right: 15px;
  }
  .page .descriptionPage {
    width: 100%;
    border: none;
    background-color: var(--greenContrast-);
  }
}

@media screen and (max-width: 500px) {
  
  .navBottom {
    padding: 0 30px;
  }
 
  .bottomMenu img {
    width: 30px;
  }
 
}

@media screen and (max-width: 400px) {
  
  .navBottom {
    padding: 0 10px;
  }
 
 
}

@media screen and (max-width: 380px) {
  .nav_toggle_input {
    margin-right: 10px;
  }
  .nav_toggle {
    margin-right: 10px;
  }
} 


