/* ======= GLOBAL ======= */
body {
  background-image: url('image/background.jpg');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  background-attachment: fixed;
  font-family: Arial, sans-serif;
  color: #fff;
  padding-top: 100px;
  margin: 0;
}

/* ======= NAVIGATION ======= */

/* NAVIGATION BAR */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 70px;
  width: 100%;
  padding: 0 40px;
  background: linear-gradient(180deg, #111 0%, #000000cc 100%);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: 'Arial Black', Arial, sans-serif;
  z-index: 1000;
  box-sizing: border-box;
  user-select: none;
}

/* LOGO À GAUCHE */
.logo {
  display: flex;
  align-items: center;
  height: 100%;
}

.logo img {
  height: 200px;  /* tu peux ajuster la taille ici */
  object-fit: contain;
  padding-left: 0;
}

/* LIENS CENTRÉS VISUELLEMENT */
.nav-links {
  display: flex;
  gap: 20px;
  align-items: center;
  margin: 0 auto;
  transform: translateX(-100px);
}


/* LIENS */
.nav-links a {
  color: #eee;
  padding: 10px 24px;
  border-radius: 25px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background-color: transparent;
  text-decoration: none;
  text-shadow: 0 0 3px rgba(0, 0, 0, 0.7);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  text-align: center;
  display: inline-block;
  min-width: 120px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

/* HOVER EFFETS */
.nav-links a:hover {
  background-color: #222;
  color: #fff;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
  border-color: rgba(255, 255, 255, 0.3);
  cursor: pointer;
}

/* EFFETS D’ANIMATION */
.nav-links a::after {
  content: '';
  position: absolute;
  width: 0%;
  height: 2px;
  bottom: 4px;
  left: 0;
  background-color: white;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 2;
}

.nav-links a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(120deg, rgba(255,255,255,0.2), rgba(255,255,255,0.6), rgba(255,255,255,0.2));
  transform: skewX(-25deg);
  transition: left 0.7s ease;
  pointer-events: none;
  z-index: 1;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a:hover::before {
  left: 125%;
}


/* ======= présentation ======= */

.présentationSite {
  margin-left: 2%;
  margin-right: 2%;
  margin-top: 60px;
  background: rgba(5, 10, 20, 0.3);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 15px;
  padding: 25px;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

.présentationSite p {
  font-size: 1.1rem;
  max-width: 100%;
}

/* ======= pages ======= */
.boxpage {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10%;
  padding: 60px;
}

.pages {
  width: 300px;
  height: 500px;
  background: rgba(5, 10, 20, 0.3);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12%;
  padding: 20px 20px 15px 20px;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
  color: white;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  max-width: 100%;
  box-sizing: border-box;
}


/* Hover Zoom */
.pages:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.pages img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
  margin-bottom: 15px;
  padding: 10px;
}


.pages p {
  text-align: left;
  gap: 2%;
}

.boxpage a {
  display: block;
  color: white;
  text-decoration: none;
}
/* ====== Language ====== */
.language-selector {
  display: flex;
  justify-content: flex-end;
  backdrop-filter: blur(8px);
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  border: 1px solid rgba(224, 234, 255, 0.3);
  box-shadow: 0 0 10px rgba(224, 234, 255, 0.2);
  padding: 6px 12px;
  font-size: 1rem;
  color: #e0eaff;
  width: 100px;
  margin: 10px 20px 20px auto;
}

.language-selector select {
  background: transparent;
  border: none;
  color: #e0eaff;
  font-weight: 600;
  font-size: 1rem;
  width: 100%;
  cursor: pointer;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  padding-right: 25px;
  outline: none;
  background-image: url('data:image/svg+xml;utf8,<svg fill="none" stroke="%23e0eaff" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><polyline points="6 9 12 15 18 9"/></svg>');
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 16px 16px;
}

.language-selector select::-ms-expand {
  display: none;
}


/* ======= en cours de prod ======= */

.event {
  margin-left: 2%;
  margin-right: 2%;
  margin-top: 30px;
  background: rgba(5, 10, 20, 0.3);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 15px;
  padding: 25px;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

.event h2 {
  font-size: 1.1rem;
  max-width: 100%;
  text-decoration: underline;
}

.event p {
  margin-top: 1%;
  font-size: 1.1rem;
  max-width: 100%;
}

/* ======= FOOTER ======= */

.footer {
  margin-top: 60px;
  background-color: rgba(5, 10, 20, 0.7);
  backdrop-filter: blur(12px);
  padding: 30px 20px;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
}

.footer p {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 12px 0;
  margin: 0 auto;
  border-radius: 12px;
  color: #fff;
  font-size: 1.1rem;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
  width: 100%;
  max-width: 800px;
  box-sizing: border-box;
}

/* ======= RESPONSIVE DESIGN ======= */

/* Tablettes (<=1024px) */
@media (max-width: 1024px) {
  nav {
    padding: 15px;
    gap: 20px;
    font-size: 0.9rem;
  }

  .présentationSite,
  .event {
    margin: 40px 4%;
    padding: 20px;
  }

  .boxpage {
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
    gap: 40px;
  }

  .pages {
    width: 100%;
    max-width: 320px;
    margin: 0 auto 20px;
    height: auto;
  }
}

/* Petites tablettes et téléphones (<=768px) */
/* Responsive jusqu'à 768px (tablettes et petits écrans) */
/* Responsive jusqu'à 768px (tablettes et petits écrans) */
@media (max-width: 768px) {
   nav {
    position: static;
    height: auto;
    padding: 12px 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
  }

  body {
    padding-top: 0;
  }
  
  .logo {
    display: flex;          /* reste visible */
    margin-bottom: 8px;    /* espace entre logo et liens */
    height: auto;           /* s’adapte */
  }

    .logo img {
    height: 100px; /* réduis la taille du logo */
    padding-left: 0;
  }

    .nav-links {
    transform: none;  /* annule le translateX */
    flex-direction: column;  /* colonne pour les liens */
    align-items: center;     /* centre les liens */
    gap: 15px;               /* espace entre liens */
    margin: 0;               /* annule margin auto */
  }

  nav a {
    width: 90%;
    text-align: center;
    padding: 12px 0;
    border-radius: 20px;
  }

  .nav-links a {
    padding: 8px 16px; /* liens un peu plus petits */
    min-width: auto;
  }


  .boxpage {
    flex-direction: column;
    align-items: center;
    padding: 20px;
    gap: 40px;
  }

  .pages {
    width: 100%;
    max-width: 600px;
    margin: 0 auto 20px;
  }

  .présentationSite,
  .event {
    padding: 16px;
    margin: 30px 4%;
  }

  .footer p {
    font-size: 1rem;
  }
}

/* Responsive smartphones <= 480px */
@media (max-width: 480px) {
  nav {
    flex-direction: column;
    height: auto;
    padding: 15px 0;
    gap: 15px;
    align-items: center;
    justify-content: center;
  }

  .logo {
    margin-bottom: 12px;
  }

  nav a {
    width: 90%;
    max-width: 300px;
    padding: 12px 0;
    min-width: auto;
    text-align: center;
  }

  .boxpage {
    flex-direction: column;
    align-items: center;
    padding: 50px;
    gap: 30px;
  }

  .pages {
    width: 100%;
    max-width: 380px;
    margin: 0 auto 20px;
    padding: 15px;
    border-radius: 18px;
  }

  .pages img {
    width: 90px;
    height: 90px;
    padding: 5px;
    margin-bottom: 10px;
  }

  .pages p {
    font-size: 0.95rem;
  }

  .présentationSite,
  .event {
    padding: 15px;
    margin: 20px 5%;
  }

  .footer {
    padding: 20px 10px;
  }

  .footer p {
    font-size: 0.95rem;
    padding: 10px;
  }
}

