/* Reset and base styles */
* {
  box-sizing: border-box;
  font-family: 'Arial', sans-serif;
  margin: 0;
  padding: 0;
  text-decoration: none;
  font-weight: bold;
  text-align: center;
  align-items: center;
  align-self: center;
  vertical-align: top;
}
/* Hide scrollbar for Chrome, Safari and Opera */
#content-area::-webkit-scrollbar {
  display: none;
}
#content-area {
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */
}

/* Main content area */
#content-area {
  height: fit-content; /* Changed from calc(100vh-120px) to fit-content */
  width: 80%; 
  scroll-behavior: auto;
  position: relative;
  text-align: justify;
  overflow-y: hidden; /* Disable scrolling on content-area */
  background-color: #000333;
  margin-right: 10%;
  margin-left: 10%;
  align-items: center;
}
/* Additional utility classes if needed */
.scrollable-content {
  overflow-y: auto;
  max-height: calc(100vh - 80px);
  padding: 20px;
}

/* Ensure no margin/padding issues */
html, body {
  height: 100%;
  overflow-x: hidden;
  color: #f4f4f4;
  line-height: 1.6;
  padding: 0px;
  margin: 0px;
  font-size: medium;
  background-color: #000333;
}

h1 {
  font-size: xx-large;
  color: #fff;
}

h2 {
  font-size: x-large;
  color: #ff00ff;
}

h3 {
  font-size:larger;
  margin-top: 20px;
  color: #00ffff;
}

/* Header styles */
header {
  background-color: #000333;
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 1);
  z-index: 1000;
  height: 100px;
  max-height: 250px;
  padding: 0 20px;
}

/* Main content section with consistent spacing */
main {
  height: fit-content;
  min-height: auto;
  display: flex;
  flex-direction: column;
  margin-top: 120px;
}
/* Content sections */
.content-section {
  flex: 1;
  min-height: fit-content;
  /* Ensure content doesn't overlap with header */
  margin: 20px;
  /* Make sure content is scrollable */
  max-width: 100%;
  box-sizing: border-box;
}

/* Ensure all page content starts at the same vertical position */
.page-content {
  /* This ensures consistent positioning across all pages */
  padding: 20px;
  margin-top: 20px;
  margin-top: 100px;
}

/* Logo container */
.logo-container {
  margin: 20px;
  display: flex;
  align-items: flex-end;
  z-index: 10;
  background-color: transparent;
}

.logo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 3px solid #ff00ff;
  box-shadow: 0 0 15px rgba(255, 0, 255, 0.7);
  animation: pulse 2s infinite;
}

.logo-text {
  display: block;
  font-size: 28px;
  font-weight: 700;
  background: linear-gradient(to right, #ff00ff, #00ffff);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 10px rgba(255, 0, 255, 0.5);
  padding-left: 10px;
}

/* Full width navigation container with horizontal scrolling */
.nav-container {
  flex: 1;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  /* Ensure full width fit */
  min-width: 0;
  max-width: 100%;
  background-color: transparent;
}

.nav-container::-webkit-scrollbar {
  display: none;
}

/* Navigation menu */
nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  justify-content: flex-start;
  align-items: center;
  white-space: nowrap;
  min-width: fit-content;
  /* Prevent flex item from shrinking */
  flex-shrink: 0;
  /* Ensure full width usage */
  width: 80%;
}

nav ul li {
  margin: 0 10px;
  position: relative;
}

/* Navigation links */
nav ul li a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 18px;
  border-radius: 30px;
  transition: all 0.3s ease;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  padding: 10px 10px;
  min-width: 120px;
  vertical-align: middle;
}
nav ul li a i {
  color: #fff;
  text-decoration: none;
  margin: 5px;   
}
nav ul li a:hover {
  background: linear-gradient(to right, #ff00ff, #00ffff);
  transform: translateY(-5px);
}

nav ul li a::after {
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(to right, #ff00ff, #00ffff);
  transition: width 0.5s ease;
}

nav ul li a:hover::after {
  width: 100%;
}

/* Language selector */
.language-selector {
  display: flex;
  align-items: center;
  z-index: 10;
  background-color: transparent;
}

.language-selector select {
  background-color: transparent;
  color: #fff;
  border: 1px solid #ff00ff;
  padding: 8px 15px;
  border-radius: 30px;
  font-size: 14px;
  cursor: pointer;
  outline: none;
}

.language-selector select option {
  background-color: #000333;
  color: #fff;
}

/* Buttons */
.btn {
  display: inline-block;
  background: linear-gradient(45deg, #ff00ff, #00ffff);
  color: #000000;
  text-decoration: none;
  padding: 10px 10px;
  border-radius: 30px;
  transition: all 0.3s ease;
  animation: pulse 2s infinite;
  margin: 10px;
}

.video-info {
  margin: 50px;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(255, 0, 255, 0.4);
}
.title::after {
  display: block;
  background: linear-gradient(to right, #ff00ff, #00ffff);
  border-radius: 3px;
}

.event-list {
  align-items: center;
  align-self: center;
  align-content: center;
}
/* Event cards */
.event-card {
  display: flex;
  align-items: center;
  align-self: center;
  align-content: center;
  padding: 20px;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.event-card:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(10px);
}

.event-date {
  margin-right: 20px;
}

.event-date .day {
  font-size: 1.8rem;
  color: #ff00ff;
}

.event-date .month {
  font-size: 0.9rem;
  text-transform: uppercase;
  opacity: 0.8;
}

.event-details h4 {
  margin-bottom: 5px;
  color: #00ffff;
}

/* Contact form */
.contact-form a:any-link {
  color: #00ffff;
  text-decoration: none;
  text-align: left;
}

.contact-table {
  width: auto;
  text-align: left;
}

.contact-table tr td {
  width: 50%;
  padding: 0 20px;
  column-gap: 20px;
}

.form-group label {
display: block;
margin-bottom: 5px;
color: #00ffff;
}

.form-group input,
.form-group textarea {
width: 100%;
padding: 12px;
background: rgba(255, 255, 255, 0.1);
border: 1px solid rgba(255, 255, 255, 0.2);
border-radius: 5px;
color: #fff;
font-size: 1rem;
}

.form-group textarea {
height: 150px;
resize: vertical;
}

.track {
  margin-bottom: 20px;
}
/* Footer */
footer {
width: 100%;
position: fixed;
bottom: 0;
box-shadow: 0 10px 100px rgba(0, 0, 0, 1);
background-color: #000333;
}

.social-links a {
display: inline-block;
width: 40px;
height: 40px;
background: rgba(255, 255, 255, 0.1);
border-radius: 50%;
margin: 10px;
padding-top: 10px;
line-height: 40px;
color: #fff;
transition: all 0.3s ease;
}

.social-links a:hover {
background: linear-gradient(to right, #ff00ff, #00ffff);
transform: translateY(-5px);
}

.copyright {
opacity: 0.7;
font-size: 0.9rem;
}

/* Animations */
@keyframes fadeIn {
from {
opacity: 0;
transform: translateY(20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}

@keyframes pulse {
0% {
box-shadow: 0 0 0 0 rgba(255, 0, 255, 0.4);
}
70% {
box-shadow: 0 0 0 10px rgba(255, 0, 255, 0);
}
100% {
box-shadow: 0 0 0 0 rgba(255, 0, 255, 0);
}
}

/* Main content area */
#content-area {
  height: calc(100vh-120px);
  width: 80%; 
  scroll-behavior: auto;
  position: relative; /* Changed from fixed to relative */
  text-align: justify;
  overflow-y: scroll; /* Enable scrolling */
  background-color: #000333;
  margin-right: 10%;
  margin-left: 10%;
  align-items: center;
}

/* Ensure sections are scrollable */
.section {
  display: block;
  opacity: 1;
  transition: opacity 0.5s ease;
  width: 100%;
  box-sizing: border-box;
  /* Remove fixed height to allow content to determine size */
  min-height: fit-content;
}

.section.active {
  display: block;
  opacity: 1;
  animation: fadeIn 0.8s ease-out;
}

.content {
  margin-top: 0px;
  padding-top: 0px;
  padding-bottom: 40px;
}
/* Responsive Design */
@media (max-width: 1320px) {
  #content-area {
    height: calc(100vh-100px);
  }

  header {
    height: 250px;
    flex-direction: column;
        top: 0;
    left: 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 1);
    margin: 0px;
    padding: 0px;
    display: flex;
    align-items: flex-start;        /* Aligne les éléments tout en haut du header */
    background-color: #000333;
    backdrop-filter: blur(10px);
    justify-content: space-between;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 1);
    z-index: 1000;
  }

  .logo-container {
    margin: 20px;
    display: flex;
    align-items: flex-end;
    width: 100%;
    z-index: 10;
    background-color: transparent;
  }

  .nav-container {
    overflow-x: auto;
  }
  .language-selector {
    justify-content: center;
    position: fixed;
    top: 20px;
    right: 20px;
  }
  main {
    margin: 0px;
    padding: 0px;
    margin-top: 270px;
    margin-bottom: 100px;
    min-height: calc(100vh - 230px);
    overflow-y: auto;
    overflow-x: hidden;
  }
  .section {
    margin: 0px;
    padding: 0px;
    min-height: calc(100vh - 230px);
  }
  nav {
    margin: 0px;
    scroll-margin: 100%;
  }
  nav ul {
    justify-content: flex-start;
    min-width: fit-content;
  }
  nav ul li {
    background-color: transparent;
  }
  
  nav ul li a {
    min-width: 80px;
    padding: 8px 12px;
    font-size: 16px;
  }

 /* Hide the text inside the anchor tag */
  nav ul li a span {
    display: none;
  }
 /* Ensure the icon remains visible and centered */
  nav ul li a i {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-size: 20px; /* Make icon slightly bigger for touch targets */
    width: 45px; /* Fixed width to keep spacing even */
  }

  /* Crée et cache l'info-bulle par défaut */
  .tooltip-trigger::after {
    content: attr(data-tooltip); /* Récupère le texte de l'attribut HTML */
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: #fff;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease-in-out;
  }   

  /* Affiche l'info-bulle au survol */
  .tooltip-trigger:hover::after {
    opacity: 1;
  }
  .tooltip-trigger {
    position: relative;
    display: inline-block;
  }
  .logo-container {
    flex-direction: column;
    margin-top: 10px;
    display: flex;
    justify-content: space-between; /* Pousse les deux éléments aux extrémités gauche et droite */
    align-items: flex-start;        /* Aligne les éléments tout en haut du header */
    width: 100%;          
  }
}