body {
    margin: 0;
    font-family: 'Orbitron', sans-serif;
    background: radial-gradient(circle at top, #c8f0ff, #e0f7ff);
    color: #004466;
    padding-top: 130px;
    background-image: url('A3LPCk-1587457026.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: center;
    
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    line-height: 60px;
    background: rgba(30, 171, 241, 0.8);
    backdrop-filter: blur(5px);
    z-index: 1000;
    padding: 0;
    text-align: center;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.25);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
  align-items: center;
  justify-content: center;

}


nav {
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    background: rgba(153, 221, 255, 0.75);
    display: flex;
    justify-content: center;
    gap: 30px;
    z-index: 999;
    padding: 10px 0;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center
}




nav a {
    text-decoration: none;
    color: #003366;
    font-weight: bold;
    padding: 8px 14px;
    border-radius: 12px;
    background: linear-gradient(to bottom, #ffffff88, #99ddff);
    box-shadow: inset 0 0 4px #ffffffaa, 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    line-height: 1;
    padding: 10px 14px;
}

nav a:hover {
    background: linear-gradient(to bottom, #ffffffcc, #66ccff);
    transform: scale(1.05);
}

.nav-button {
    background: linear-gradient(to bottom, #ffffff88, #99ddff);
    border-radius: 12px;
    box-shadow: inset 0 0 4px #ffffffaa, 0 2px 4px rgba(0, 0, 0, 0.2);
    padding: 8px 14px;
    font-weight: bold;
    font-size: 16px;
    color: #003366;
    text-decoration: none;
    transition: all 0.3s ease;
    /* pas de halo par défaut */
    line-height: 1;
    padding: 10px 14px;
  }
  
  .nav-button:hover {
    box-shadow: 0 0 20px 6px rgba(255, 255, 100, 0.9); /* halo jaune visible au hover */
    background: linear-gradient(to bottom, #ffffffcc, #66ccff);
    transform: scale(1.05);
  }
  
  
  
  
.gallery {
    padding: 30px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    backdrop-filter: blur(4px);
    box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.4);
    
}

section {
    padding: 40px;
    background: rgba(255, 255, 255, 0.5);
    margin: 30px;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 128, 255, 0.2);
}
.gallery img {
    width: 180px;
    border-radius: 12px;
    box-shadow: 0 0 15px rgba(0, 191, 255, 0.6), 0 0 30px rgba(0, 191, 255, 0.4);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    animation: float 6s ease-in-out infinite;
    position: relative;
    z-index: 1;
  }
  
  .gallery img:hover {
    animation: floatZoom 6s ease-in-out infinite;
    transform: scale(1.15);
    box-shadow: 0 0 20px rgba(0, 191, 255, 0.8), 0 0 40px rgba(0, 191, 255, 0.6);
    z-index: 10;
  }
  
.definition span:first-child {
    font-size: 56px;
    font-weight: bold;
    color: #005580;
    text-shadow: 1px 1px 1px white;
}

.definition span.word {
    font-size: 24px;
    font-weight: bold;
}

.definition span.definition-text {
    font-size: 14px;
    opacity: 0.85;
}

.gallery {
    position: relative;
    height: 1600px;
    /* hauteur fixe ou auto-ajustable via JS */
    background: rgba(255, 255, 255, 0.2);
    overflow: hidden;
}

.gallery a {
    position: absolute;
    display: block;
    z-index: 1; /* sous header/nav */
    margin-top: 130px; 
}

.gallery a:hover {
    z-index: 15;
  }
  

  @keyframes floatZoom {
    0%   { transform: translateY(0) scale(1.15); }
    50%  { transform: translateY(-10px) scale(1.15); }
    100% { transform: translateY(0) scale(1.15); }
  }
  @keyframes float {
    0%   { transform: translateY(0); }
    50%  { transform: translateY(-10px); }
    100% { transform: translateY(0); }
  }
  

.gallery {
    position: relative;
    height: 1600px;
    max-width: 100%;
    overflow: hidden;
}

@media (max-width: 768px) {
    .gallery img {
        width: 90px;
    }
}

@media (max-width: 480px) {
    .gallery img {
        width: 70px;
    }
}



.bubbles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    /* les bulles ne gênent pas les clics */
    overflow: hidden;
    z-index: 0;
    /* sous les images */
}

.bubbles span {
    position: absolute;
    bottom: -60px;
    width: 20px;
    height: 20px;
    background: rgba(173, 216, 230, 0.4);
    border-radius: 50%;
    animation: rise 12s linear infinite;
    box-shadow: 0 0 10px rgba(173, 216, 230, 0.8);
}

@keyframes rise {
    0% {
        transform: translateY(0) scale(0.5);
        opacity: 0.3;
    }

    50% {
        opacity: 0.7;
    }

    100% {
        transform: translateY(-1200px) scale(1);
        opacity: 0;
    }
}
header h1 {
    font-size: 48px;
    font-style: italic;
    font-weight: 700; /* garde le gras si tu veux le conserver */
    color: #c8f0ff;
    text-shadow:
    -1px -1px 0 #003366,
     1px -1px 0 #003366,
    -1px  1px 0 #003366,
     1px  1px 0 #003366;
  }
  
  @media (max-width: 768px) {
    header h1 {
      font-size: 28px;
      padding: 0 10px;
    }
  
    nav {
      flex-wrap: wrap;
      gap: 10px;
      padding: 10px;
      height: auto;
    }
  
    .nav-button {
      font-size: 14px;
      padding: 6px 10px;
      white-space: nowrap; /* évite retour à la ligne dans le lien */
    }
  }
  
  @media (max-width: 480px) {
    header h1 {
      font-size: 22px;
    }
  
    .nav-button {
      font-size: 12px;
      padding: 4px 8px;
    }
  }
  
  