  /* Style général */
  body {
    margin: 0;
    font-family: 'Orbitron', sans-serif;
    background-size: 100% auto;
    background-attachment: scroll;
    background-position: center top;
    background-repeat: no-repeat;
    color: #ffffff;
    scroll-behavior: smooth;
    background-color: #000000;
  }
  
  /* Empêche tout débordement horizontal */
  html, body {
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    width: 100%;
  }

  /* Navigation */
  header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0); /* noir semi-transparent */
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0);
  }
  
  
  .header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
  }
  
  .logo {
    font-size: 1.8em;
    color: white;
    font-weight: bold;
  }
  
  /* Menu burger */
  #menu-toggle {
    display: none;
  }
  
  .menu-icon {
    font-size: 2em;
    color: #00ffff;
    cursor: pointer;
    z-index: 1001;
  }
  
  /* Menu déroulant (toujours caché sauf si ☰ coché) */
  nav ul {
    list-style: none;
    flex-direction: column;
    background-color:#0b0014a6;
    position: absolute;
    top: 70px;
    right: 0;
    width: 200px;
    display: none;
    padding: 20px;
    margin: 0;
    border-left: 8px solid #00ffff;
    z-index: 1000;
    border-radius: 2px;
  }
  
  #menu-toggle:checked + .menu-icon + nav ul {
    display: flex;
  }
  
  nav ul li {
    margin: 15px 0;
  }
  
  nav a {
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
  }
  
  nav a:hover {
    color: #00bbbb;
  }  
  
  /* Réseaux sociaux */
  .socials {
    display: none;
  }
  
  .socials a {
    margin-left: 10px;
    font-size: 1.2em;
    color: #ffffff;
    text-decoration: none;
  }
  
  .socials a:hover {
    color: #00ffff;
  }
  
  /* Sections */
  #accueil {
    background: radial-gradient(circle at center bottom,
    #FF944D 0%,      /* Orange foncé (soleil couchant) */
    #D1476D 20%,     /* Rose foncé / violet chaud */
    #4B0082 50%,     /* Indigo profond */
    #0D1B2A 80%,     /* Bleu nuit */
    #000000 100%     /* Espace noir */
  );
    text-align: center;
    padding: 100px 30px 60px;
    position: relative;
    min-height: 90vh;
  }

  .planet-image {
    position: absolute;
    top: 100px; /* Ajuste à ta convenance */
    left: 85%;
    transform: translateX(-50%);
    z-index: 10;
    pointer-events: none;
    will-change: transform;
  }

  .planet-image img {
    width: 200px; /* Ajuste la taille ici */
    height: auto;
  }

  .lune-image {
    position: absolute;
    bottom: 60px;
    right: 80%;
    transform: translateX(-50%);
    z-index: 11;
    pointer-events: none;
    will-change: transform;
  }

  .lune-image img {
    width: 250px;
    height: auto;
  }

  .wave-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    line-height: 0;
    overflow: hidden;
    z-index: 10;
    min-height: 40vh;
    padding-bottom: 0;
  }

  .wave-container svg {
    display: block;
    width: 100%;
    height: 110%;
  }

  
  #accueil h1 {
    font-size: 4em;
    margin-bottom: 5px;
  }
  
  #accueil .cta {
    display: inline-block;
    margin-top: 20px;
    background-color: #00ffff;
    color: #000000;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
  }
  
  #accueil .cta:hover {
    background-color: #00bbbb;
  }


  #programmation {
    background: linear-gradient(to bottom, #FF944D, #D1476D, #4B0082);
    padding: 100px 30px 60px;
    min-height: 100vh;
    position: relative; /* Pour contenir la vague inversée */
    padding-top: 80px; /* Pour éviter que le contenu ne soit masqué par la vague */
  }

  .wave-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    line-height: 0;
    overflow: hidden;
    z-index: 10;
    min-height: 20vh;
    height: 80px;
  }

  .wave-top svg {
    display: block;
    width: 100%;
    height: 100%;
  }
  
  #billetterie {
    background: linear-gradient(to bottom, #4B0082, #0D1B2A, #000000);
    padding:100px 60px 30px;
    min-height: 110vh;
    position: relative; /* nécessaire pour que l’image se positionne par rapport à cette section */
    padding-bottom: 200px; /* espace pour ne pas que le contenu masque l’image */
  }

  #festival {
    padding: 100px 60px 30px;
    min-height: 60vh;
    background: linear-gradient(to bottom, #000000, #00010e);
  }

  #actualites {
    padding: 100px 60px 30px;
    min-height: 130vh;
    background: linear-gradient(to bottom, #00010e, #00052c);
    position: relative; /* Nécessaire pour le positionnement de l'astronaute */
    overflow: hidden;   /* Empêche que l'image déborde */
  }

  #Infos-pratiques {
    position: relative;
    min-height: 260vh;
    background: linear-gradient(to bottom, #00052c, #0a1740);
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* espace entre contenu et image */
  }

  .image-fade-container {
    position: relative;
    width: 100%;
    overflow: hidden;
  }

  .image-fade {
    width: 100%;
    height: auto;
    display: block;
    mask-image: linear-gradient(to bottom, transparent 0%, black 30%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 30%);
  }


  /* Footer */
  footer {
    background-color: #000000;
    text-align: center;
    padding: 30px;
    background-color:#0b0014;
    border-top: 6px solid #00bbbb;
  }

  .texte-footer {
    font-size: 14px;
  }
  
  .texte-sponsorts {
    font-size: 25px;
  }

  .texte-devenir-sponsors a {
    font-size: 20px;
    color: #00ffff;
    text-decoration: none;
  }

  .texte-devenir-sponsors a:hover {
    color: rgb(78, 0, 205);
    transition: 0.5s; 
  }

  .sponsors {
    margin-top: 10px;
  }

  .sponsorslogo {
    display: flex;
    gap: 50px;
    justify-content: center;
  }
  
  .sponsors-icon {
    width: 80px;        /* augmente la taille */
    height: 80px;
    object-fit: contain; /* garde les proportions sans déformer */
    transition: transform 0.3s ease;
  }
  
  .sponsors-icon:hover {
    transform: scale(1.1); /* petit effet au survol */
  }

  .menu-right {
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
  }

  .logo-img {
    height: 60px;
  }

  h2 {
    color: #00ffff;
    text-align: center;
    border-bottom: 2px solid #4b0082;
    display: inline-block;
    margin: 0 auto 20px;
    padding-bottom: 5px;
  }

  .socials {
    display: flex;
    gap: 15px;
  }
  
  .social-icon {
    width: 40px;        /* augmente la taille */
    height: 40px;
    object-fit: contain; /* garde les proportions sans déformer */
    transition: transform 0.3s ease;
  }
  
  .social-icon:hover {
    transform: scale(1.1); /* petit effet au survol */
  }

  header.scrolled {
    background-color: #0b0014a6;
    transition: background-color 0.3s ease;
  }

  #compte-a-rebours {
    text-align: center;
    margin-top: 100px;
    font-size: 1em;
    color: #00ffff;
  }
  
  #timer {
    font-size: 2em;
    margin-top: 10px;
    font-weight: bold;
    color:rgb(26, 0, 68)
  }

  #play-planet-sound {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent; /* invisible */
    border: none;
    cursor: pointer;
    z-index: 100;
  }

  /* Effet astronaute */
  .parallax-astro {
    position: absolute;
    top: 1800px;
    left: 0;
    width: 100%;
    pointer-events: none;
    z-index: 5;
    overflow: visible;
  }
  
  .parallax-astro img {
    position: absolute;
    width: 300px; /* Ajuste la taille ici */
    left: 80%;
    transform: translateX(-50%);
    will-change: transform;
  }

  /* Carre pour Programation */
  .artistes {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 50px;
  }

  .artiste {
    background-color: #1e1e3f;
    border-radius: 12px;
    padding: 20px;
    width: 220px;
    transition: transform 0.3s;
  }

  .artiste:hover {
    transform: scale(1.05);
  }

  .artiste img {
    border-radius: 8px;
    width: 100%;
    height: 150px;
    object-fit: cover; /* permet de remplir sans déformer */
  }

  .artiste h3 {
    margin: 15px 0 5px;
    font-size: 20px;
    color: #ffffff;
  }

  .artiste p {
    color: #aaa;
    font-size: 14px;
  }

  .modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
  }

  .modal-content {
    background: #1e1e3f;
    padding: 20px;
    border-radius: 12px;
    max-width: 500px;
    max-height: 80%;
    overflow-y: auto;
    text-align: center;
    position: relative;
    transform: scale(0.7);
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0;
  }

  .modal.show .modal-content {
    transform: scale(1);
    opacity: 1;
  }

  .modal-content img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 15px;
    display: block;
  }

  .close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    color: #ffffff00;
    cursor: pointer;
  }

  .play-btn {
    margin-top: 10px;
    padding: 8px 15px;
    border: none;
    border-radius: 6px;
    background-color: #6c144a;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.5s;
  }

  .play-btn:hover {
    background-color: #aa324e;
  }


  .conteneur {
    display: flex;
    justify-content: center; /* espace entre les carrés */
    flex-wrap: wrap;                /* passe à la ligne si besoin */
    gap: 30px;                      /* espace entre les carrés */
    margin-top: 50px;
  }

  .carre-tarifs {
    background-color: #150025;
    border-radius: 12px;
    padding: 30px;
    max-width: 400px;
  }

  /* Section tarifs */
  .prix {
    text-align: center;
    color: #3e005a;
    width: 100px;
  }

  .btn-disabled {
    background-color: #333;
    color: #aaa;
    padding: 15px 30px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: not-allowed;
    margin-top: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
  }

  .image-saturne {
    position: absolute;
    bottom: -250px; /* l’image déborde de 100px vers la section suivante */
    left: 80%;
    transform: translateX(-50%);
    width: 160%; /* adapte selon ta mise en page */
    z-index: 2;
    pointer-events: none; /* pour que l’image ne gêne pas les clics */
  }


  /* Section Le festival */
  .festival-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 40px;
  }

  .festival .texte {
    flex: 1;
    max-width: 500px;
    font-size: 18px;
    line-height: 1.6;
  }

  /* Section Actualité */
  .actus-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 800px;
    margin: auto;
  }

  .actu-item {
    background-color: #080816;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(164, 189, 255, 0.384);
    transition: transform 0.2s;
  }

  .actu-item:hover {
    transform: translateY(-5px);
  }

  .actu-item h3 {
    margin-top: 0;
    color: #ffffff;
  }

  .actu-item p {
    margin: 10px 0;
    color: #cccccc;
  }

  .actu-item .date {
    font-size: 13px;
    color: #999;
  }

  /* Section Infos pratiques */
  .infos {
    padding: 80px 20px;
    background-color: #0a0a16;
    color: white;
  }

  .infos h2 {
    text-align: center;
    font-size: 36px;
    color: #ff5edb;
    margin-bottom: 50px;
  }

  .infos-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1000px;
    margin: auto;
  }

  .info-bloc {
    background-color: #080816;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(94, 137, 255, 0.336);
  }

  .info-bloc h3 {
    margin-top: 0;
    color: #ffffff;
    margin-bottom: 10px;
  }

  .info-bloc ul {
    padding-left: 20px;
    margin: 0;
  }

  .info-bloc li { 
    margin-bottom: 5px;
    list-style: disc;
    color: #ccc;
  }

  .info-bloc p {
    color: #cccccc;
  }

/* Page du Devenir Sponsors */

  #devenir {
    background: linear-gradient(to bottom, #000000, #20056e, #4B0082);
    padding: 100px 30px 60px;
    min-height: 100vh;
  }

  .planete-container-devenir {
    position: relative;
    min-height: 200px; /* pour donner de la place */
  }

  .planete-devenir {
    position: absolute;
    right: -120px;  /* colle l’image à droite */
    top: -80px;    /* décale un peu vers le bas */
    width: 400px; /* adapte la taille de ton image */
    opacity: 0;
    transform: translateX(100px);
    transition: transform 1.7s ease-out, opacity 2s ease-out;
  }

  .planete-devenir.is-visible {
    opacity: 1;
    transform: translateX(0);
  }

  .fusee {
    position: fixed;
    width: 80px;
    top: 0;
    left: 0;
    opacity: 0;
    transform: translate(-100px, -100px) rotate(0deg);
    transition: transform 5s linear, opacity 2s;
    pointer-events: none;
    z-index: 9999;
    transform-origin: center center; /* pivot central */
  }

  .header-devenir {
    width: 100%;
    position: relative; /* pour positionner le logo à l'intérieur */
    padding: 10px 20px;
    box-sizing: border-box;
  }

  .festival-logo-devenir {
    position: absolute;
    top: 30px;
    left: 30px;  /* espace depuis le bord gauche */
    width: 60px;  /* ajuste la taille selon ton logo */
    height: auto;
  }


  .devenir-titre {
    font-size: 30px;
    color: #00bbbb;
  }
  
  #devenir input,
  #devenir textarea {
    width: 100%;
    padding: 12px;
    margin-top: 8px;
    margin-bottom: 15px;
    border: none;
    border-radius: 10px;
    background: rgba(255,255,255,0.1);
    color: #fff;
    outline: none;
    transition: all 0.3s ease;
  }

  #devenir input:focus,
  #devenir textarea:focus {
    box-shadow: 0 0 10px #c86aff, 0 0 20px #b56aff;
    background: rgba(255,255,255,0.15);
  }

  #devenir button {
    display: block;
    margin: 20px auto 0;
    width: min(420px, 80%);
    max-width: 100%;
    background: linear-gradient(90deg, #8a6aff, #8375ff, #af7eff);
    color: white;
    border: none;
    padding: 14px 20px;
    border-radius: 40px;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 6px 20px rgba(138,106,255,0.18);
  }

  .btn-container {
    display: flex;
    justify-content: center;
  }

  #devenir button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 10px #c36aff, 0 0 30px #7e7eff;
  }

  /* Conteneur des options */
  .sponsor-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 15px 0;
  }

  /* Chaque bouton option */
  .sponsor-options .option {
    position: relative;
    cursor: pointer;
    user-select: none;
  }

  .sponsor-options input {
    display: none; /* on cache la case classique */
  }

  .sponsor-options span {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 8px;
    background: rgba(255,255,255,0.1);
    color: #fff;
    font-weight: bold;
    transition: all 0.3s ease;
    border: 2px solid transparent;
  }

  /* Effet hover */
  .sponsor-options span:hover {
    background: rgba(255,255,255,0.2);
    transform: scale(1.05);
  }

  /* Quand la case est cochée */
  .sponsor-options input:checked + span {
    background: linear-gradient(90deg, #ff6a95, #ff758c, #ff7eb3);
    box-shadow: 0 0 10px #ff6a95, 0 0 20px #ff7eb3;
    border: 2px solid #ff6a95;
    color: #fff;
  }
  
/* Responsive pour petits écrans (téléphones) */
@media screen and (max-width: 768px) {
  /* Navigation */
  .header-container {
    padding: 8px 15px;
  }

  .logo-img {
    height: 35px;
  }

  nav ul {
    top: 60px;
    width: 180px;
    padding: 15px;
    right: -10px;
  }

  /* Section Accueil */
  #accueil {
    padding-top: 120px;
    text-align: center;
  }

  #accueil h1 {
    font-size: 2em;
    margin-bottom: 15px;
  }

  .planet-image {
    top: 60px;
    left: 70%;
  }

  .planet-image img {
    width: 100px;
  }

  .lune-image {
    bottom: 40px;
    right: 20%;
  }

  .lune-image img {
    width: 150px;
  }

  /* Section Programmation */
  .artistes {
    gap: 20px;
    padding: 0 10px;
  }

  .artiste {
    width: calc(100% - 20px);
    margin: 0 auto;
    padding: 15px;
  }

  /* Section Billetterie */
  .conteneur {
    gap: 20px;
    padding: 0 10px;
  }

  .carre-tarifs {
    padding: 20px;
    width: calc(100% - 20px);
  }

  /* Section Actualités */
  .actus-list {
    gap: 20px;
    padding: 0 10px;
  }

  .actu-item {
    padding: 15px;
  }

  /* Section Infos Pratiques */
  .infos-content {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 10px;
  }

  .image-fade {
    mask-image: linear-gradient(to bottom, transparent 0%, black 50%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 50%);
  }

  .image-fade-container {
    width: 100vw; /* largeur réelle de l’écran */
    position: relative;
    left: 50%;
    right: 50%;
    transform: translateX(-50%);
    padding: 0;
    margin: 0;
    overflow: hidden;
    bottom: -40px;
  }

  .image-fade-container img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
  }

  footer {
    padding: 20px;
  }

  .texte-footer {
    font-size: 12px;
  }

  .texte-sponsorts {
    font-size: 18px;
  }

  .sponsors {
    flex-direction: column;
  }

  .sponsorslogo {
    flex-wrap: wrap;
    gap: 30px;
  }

  .sponsors-icon {
    width: 60px;
    height: 60px;
  }

  .menu-right {
    gap: 10px;
  }

  .logo-img {
    height: 40px;
  }

  h2 {
    font-size: 1.2em;
  }

  .socials {
    gap: 10px;
    justify-content: center;
  }

  .social-icon {
    width: 30px;
    height: 30px;
  }

  #compte-a-rebours {
    margin-top: 80px;
    font-size: 0.9em;
  }

  #timer {
    font-size: 1.5em;
  }

    /* Ajustements pour les effets parallax */
  .parallax-astro {
    top: 2000px;
  }

  .parallax-astro img {
    width: 150px;
    left: 60%;
  }

  /* Ajustements pour les vagues */
  .wave-container {
    height: 60px;
  }

  .wave-top {
    height: 40px;
  }
}

/* Breakpoint pour très petits écrans */
@media screen and (max-width: 380px) {
  .logo-img {
    height: 30px;
  }

  #accueil h1 {
    font-size: 1.8em;
  }

  .planet-image img {
    width: 80px;
  }

  .lune-image img {
    width: 120px;
  }

  #timer {
    font-size: 1.5em;
  }

  .sponsors-icon {
    width: 40px;
    height: 40px;
  }
}
