body {
  text-shadow: 0 0 4px white, 0 0 8px rgba(255, 255, 255, 0.5);
  background-image: url("bg1.png");
  background-attachment: fixed;
  background-size: cover;
}

.quicksand-<uniquifier> {
  font-family: "Quicksand", serif;
  font-optical-sizing: auto;
  font-weight: <weight>;
  font-style: normal;
}

.zen-kaku-gothic-new-regular {
  font-family: "Zen Kaku Gothic New", serif;
  font-weight: 400;
  font-style: normal;
}

h1 {
  font-family: "Zen Kaku Gothic New", serif;
  margin-left: auto;
  margin-right: auto;
  width: 8em;
}

h2, h3 {
  font-family: "Quicksand", serif;
}

p {
  font-family: "Quicksand", serif;
}

a {
  color: #303030;
}

/*
ul {
  font-family: "Quicksand", serif;
  list-style-type: none;
  margin: 0;
  padding: 0;
  max-width: 325px;
  overflow: hidden;
  border: 1px solid #e7e7e7;
  background-color: #f3f3f3;
  border-radius: 30px;
}

li {
  float: left;
}

li a {
  display: block;
  color: #666;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
}

li a:hover:not(.active) {
  background-color: #ddd;
}
*/


.menu__nav {
  position: sticky;
  top: 20px;
  display: flex;
  flex-direction: row;
  justify-content: center;
  margin: 0 auto;
  width: fit-content;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 32px;
  box-shadow: 0 6px 6px rgba(0, 0, 0, 0.05), 0 0 20px rgba(0, 0, 0, 0.05);
  user-select: none;
  backdrop-filter: blur(4px) saturate(170%) brightness(0.96);
  -webkit-backdrop-filter: blur(4px) saturate(170%) brightness(0.96);
  z-index: 200;
}

.menu__nav-list {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
}

.menu__nav-list li {
  display: flex;
}

.menu__tab {
  padding: 14px 24px;
  white-space: nowrap;
  text-decoration: none;
  font-family: "Quicksand", serif;
  color: #303030;
  transition: color 0.2s ease-in-out;
  cursor: pointer;
  z-index: 20;
}


.menu__tab:hover, .menu__tab.current {
  color: #000;
  font-weight: bold;
}


.menu__lens {
  position: absolute;
  display: none;
  justify-content: center;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 32px;
  box-shadow: rgba(0, 0, 0, 0.1) 0 0 0 0.5px, rgba(0, 0, 0, 0.1) 0 3px 5px;
  transform: scale(0.8);
  transition:
    transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    width 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  pointer-events: none;
  z-index: 0;
  inset: 6px 0;
}

.menu__lens::before {
  content: "";
  position: absolute;
  border-radius: inherit;
  filter: drop-shadow(rgba(0, 0, 0, 0.8) 0 1px 2px);
  inset: 0;
  border: 2px solid rgba(255, 255, 255, 0.05);
}

.menu__lens::after {
  content: "";
  position: absolute;
  top: 6px;
  right: 12px;
  left: 12px;
  height: 8px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  filter: opacity(0.7) blur(2px);
}







/*
.form {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.34);
  max-width: 1000px;
}
*/

.form {

  max-width: 1000px;
  margin: 0 auto; 
  padding: 1rem;

  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  border-radius: 2rem;
  

  box-shadow: 
    0 6px 6px rgba(0, 0, 0, 0.2), 
    0 0 20px rgba(0, 0, 0, 0.1),
    inset 2px 2px 1px 0 rgba(255, 255, 255, 0.5), 
    inset -1px -1px 1px 1px rgba(255, 255, 255, 0.5);

  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.5);
}

.form:hover {
  /* On garde l'arrondi d'origine pour éviter la déformation bizarre */
  border-radius: 2rem; 
  
  /* On rend le verre très légèrement plus "épais" (plus opaque et plus flou) */
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  
  /* L'EFFET MAGIQUE : lévitation vers le haut (-5px) et très léger zoom (1.01) */
  transform: translateY(-5px) scale(1.01);
  
  /* On diffuse l'ombre en dessous pour accentuer la hauteur, et on renforce le reflet lumineux en haut */
  box-shadow: 
    0 15px 30px rgba(0, 0, 0, 0.15), 
    0 5px 15px rgba(0, 0, 0, 0.1),
    inset 2px 2px 3px 0 rgba(255, 255, 255, 0.7), 
    inset -1px -1px 2px 0 rgba(255, 255, 255, 0.3);
}

/*
.footer {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  background-color: black;
  color: white;
  text-align: center;
}
.pdf {
  width: 100%;
  aspect-ratio: 4 / 3;
}

*/


.footer {
  margin: 40px auto 20px auto;
  width: fit-content;
  padding: 10px 30px;
  text-align: center;
  z-index: 100;
  

  color: #303030; 
  

  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 2rem;
  
  box-shadow: 
    0 6px 6px rgba(0, 0, 0, 0.2), 
    0 0 20px rgba(0, 0, 0, 0.1),
    inset 2px 2px 1px 0 rgba(255, 255, 255, 0.5), 
    inset -1px -1px 1px 1px rgba(255, 255, 255, 0.5);
    
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.5);
}

.footer:hover {
  background: rgba(255, 255, 255, 0.1);
  padding: 12px 32px; /* Le bouton "grossit" légèrement */
  box-shadow: 
    0 8px 12px rgba(0, 0, 0, 0.2), 
    0 0 25px rgba(0, 0, 0, 0.1),
    inset 2px 2px 2px 0 rgba(255, 255, 255, 0.6), 
    inset -1px -1px 2px 1px rgba(255, 255, 255, 0.6);
}




/* --- GRILLE DE PROJETS --- */
.projects-grid {
  display: grid;
  /* Crée des colonnes qui s'adaptent automatiquement à la taille de l'écran */
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  padding: 10px 20px;
  margin-top: 20px;
}

/* --- CARTES DE PROJETS (Effet Glass) --- */
.project-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 25px 20px;
  text-decoration: none; /* Enlève le soulignement du lien */
  
  /* Arrière-plan "verre" comme ton formulaire */
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 1.5rem;
  
  /* Ombre et reflets */
  box-shadow: 
    0 4px 6px rgba(0, 0, 0, 0.1),
    inset 1px 1px 2px 0 rgba(255, 255, 255, 0.4), 
    inset -1px -1px 2px 0 rgba(255, 255, 255, 0.2);
    
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.5);
}

/* Espacement du texte dans les cartes */
.project-card h3 {
  margin: 0 0 10px 0;
  font-size: 1.4rem;
}

.project-card p {
  margin: 0;
  font-size: 1rem;
  color: #444; /* Un peu plus gris pour contraster avec le titre */
}

/* Animation au survol de la carte */
.project-card:hover {
  transform: translateY(-8px); /* La carte "saute" un peu vers le haut */
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 
    0 10px 15px rgba(0, 0, 0, 0.15),
    inset 2px 2px 3px 0 rgba(255, 255, 255, 0.6), 
    inset -1px -1px 2px 0 rgba(255, 255, 255, 0.3);
}




@media (max-width: 768px) {

  .menu__tab {
    padding: 12px 10px;
    font-size: 0.9rem;
  }
  
  .menu__nav {
    top: 10px;
  }


  .form {
    margin: 10px;
    padding: 1rem;
    border-radius: 1.5rem;
  }


  .projects-grid {
    grid-template-columns: 1fr;
    padding: 0;
  }


  .footer {
    width: 85%;
    padding: 10px 15px;
    font-size: 0.8rem;
  }


  .pdf {
    aspect-ratio: auto;
    height: 70vh;
  }
}



/* --- CARROUSEL (Effet Liquid Glass) --- */
.carousel-container {
  position: relative;
  width: 100%;
  max-width: 600px; /* Taille maximale du carrousel */
  margin: 20px auto;
  overflow: hidden; /* Cache les images qui dépassent */
  
  /* Reprise de ton effet Glassmorphism */
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 1.5rem;
  box-shadow: 
    0 4px 6px rgba(0, 0, 0, 0.1),
    inset 1px 1px 2px 0 rgba(255, 255, 255, 0.4), 
    inset -1px -1px 2px 0 rgba(255, 255, 255, 0.2);
}

.carousel-track {
  display: flex;
  /* Animation de glissement qui reprend ta courbe cubic-bezier "rebondissante" */
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1); 
}

.carousel-slide {
  min-width: 100%; /* Chaque image prend 100% de la largeur du conteneur */
  height: 300px;   /* Hauteur fixe pour que le carrousel ne saute pas */
  object-fit: cover; /* Coupe l'image proprement si elle ne fait pas la bonne taille */
  border-radius: 1.5rem;
}

/* Boutons Flèches */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  
  /* Effet bouton Glass */
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: #303030;
  cursor: pointer;
  font-size: 1.5rem;
  z-index: 10;
  transition: all 0.3s ease;

  /* --- MODIFICATIONS POUR UN ROND PARFAIT --- */
  padding: 0; /* On enlève le padding qui créait l'ovale */
  width: 45px; /* Largeur fixe */
  height: 45px; /* Hauteur identique = carré parfait */
  border-radius: 50%; /* Arrondit le carré en cercle parfait */
  
  /* Centrage parfait de la flèche au milieu du bouton */
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Placement des boutons à gauche et à droite */
.carousel-btn.prev { left: 10px; }
.carousel-btn.next { right: 10px; }

/* Animation au survol des flèches */
.carousel-btn:hover {
  background: rgba(255, 255, 255, 0.6);
  /* On garde le centrage vertical (-50%) et on ajoute un léger zoom (scale 1.1) */
  transform: translateY(-50%) scale(1.1); 
}


/* --- BOUTON LIQUID GLASS --- */
.glass-btn {
  display: inline-block;
  padding: 12px 36px;
  text-decoration: none;
  color: #303030;
  font-family: "Quicksand", serif;
  font-weight: bold;
  font-size: 1.1rem;
  
  /* Arrière-plan "verre" */
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 2rem;
  
  /* Ombre et reflets */
  box-shadow: 
    0 4px 6px rgba(0, 0, 0, 0.1),
    inset 1px 1px 2px 0 rgba(255, 255, 255, 0.5), 
    inset -1px -1px 2px 0 rgba(255, 255, 255, 0.3);
    
  /* Animation fluide avec rebond */
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.5);
}

/* Animation au survol */
.glass-btn:hover {
  transform: translateY(-5px); /* Fait "sauter" le bouton vers le haut */
  background: rgba(255, 255, 255, 0.2);
  color: #000;
  box-shadow: 
    0 10px 15px rgba(0, 0, 0, 0.15),
    inset 2px 2px 3px 0 rgba(255, 255, 255, 0.6), 
    inset -1px -1px 2px 0 rgba(255, 255, 255, 0.4);
}


/* --- BOUTON RETOUR (Liquid Glass) --- */
.back-btn {
  display: inline-block;
  padding: 8px 20px;
  text-decoration: none;
  color: #303030;
  font-family: "Quicksand", serif;
  font-weight: bold;
  font-size: 1rem;
  
  /* Arrière-plan "verre" */
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  
  /* Ombre et reflets */
  box-shadow: 
    0 4px 6px rgba(0, 0, 0, 0.1),
    inset 1px 1px 2px 0 rgba(255, 255, 255, 0.5), 
    inset -1px -1px 2px 0 rgba(255, 255, 255, 0.3);
    
  /* Animation fluide */
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.5);
}

/* Animation au survol */
.back-btn:hover {
  transform: translateX(-6px); /* Glisse vers la gauche au lieu de sauter vers le haut */
  background: rgba(255, 255, 255, 0.2);
  color: #000;
  box-shadow: 
    0 8px 12px rgba(0, 0, 0, 0.15),
    inset 2px 2px 3px 0 rgba(255, 255, 255, 0.6), 
    inset -1px -1px 2px 0 rgba(255, 255, 255, 0.4);
}




/* --- PAGE LIENS : CONTENEUR DES BOUTONS --- */
.links-container {
  display: flex;
  flex-direction: column; /* Empile les boutons à la verticale */
  align-items: center;    /* Centre les boutons horizontalement */
  gap: 25px;              /* Crée un espace propre entre chaque bouton */
  margin-top: 30px;       /* Un peu d'espace avec le titre "Liens" */
  margin-bottom: 20px;
}