

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: #170233;
    background-image: url('asset/bg_ts.png');
    color: #333;
    text-align: center;
  }
  
  header {
    background: #1f0351;
    color: white;
    padding: 1rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
  }

/* Positionner le conteneur en haut à gauche */
header {
    position: relative;
}

.preorder-container {
    position: absolute;
    left: 1rem;
}

.preorder-button {
    /* background-color: rgba(255, 255, 255, 0.5); */
    color: #e7dcc7;
    font-size: 12px;
    /* font-weight: bold; */
    padding: 10px 0.5rem;
    border: 1px solid #e7dcc7;
    border-radius: 20px;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s, transform 0.3s;
}

.preorder-button:hover {
    /*background-color: rgba(255, 255, 255, 0.8);   Rendre le bouton plus opaque au survol */
    transform: scale(1.05);  /* Petit effet de zoom */
}

.preorder-button:focus {
    outline: none;  /* Supprime le contour sur le focus */
}




  
main{
    max-width: 1200px;
    margin: auto;
}
  
  .categories {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin: 2rem auto;
    max-width: 1200px;
  }
  
  .category {
    border: 2px solid #ccc;
    border-radius: 8px;
    padding: 1rem;
    background: #fff;
    width: calc(50% - 1rem); /* 2 catégories sur une rangée */
    box-sizing: border-box;
    text-align: center;
    position: relative;
    overflow: hidden;
    aspect-ratio: 1; /* Maintient un ratio égal entre la largeur et la hauteur */
    cursor: pointer; /* Change le curseur en main pour indiquer que la div est cliquable */
  }

  .category:hover {
    background-color: #f0f0f0; /* Changement léger de fond au survol pour l'interaction visuelle */
  }
  
  .category h2 {
    z-index: 1;
    position: relative;
    visibility: hidden;
    height: auto;
    margin: 0;
    padding: 0;
  }
  
  .category button {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    cursor: pointer;
    border-radius: 4px;
    margin-top: 1rem;
    z-index: 1;
    position: relative;
  }
  
  .category .result {
    margin-top: 0.5rem;
    font-weight: bold;
    color: white;
    z-index: 1;
    position: relative;
  }
  
  .category::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    /*opacity: 0.3;*/
    z-index: 0;
    transition: opacity 0.3s;
  }
  
  .category:hover::before {
    opacity: 0.5;
  }
  
  /* Assign colors and backgrounds per category */
  #lieu {
    border-color: #4CAF50;
    background-color: #01820c81;
  }
  
  #lieu::before {
    background-image: url('asset/lieu-bg.jpg'); /* Remplace par ton image */
  }
  
  #position {
    border-color: #930266;
    background-color: #5a027d7d;
  }
  
  #position::before {
    background-image: url('asset/position-bg.jpg'); /* Remplace par ton image */
  }
  
  #action {
    border-color: #f44336;
    background-color: #88001477;
  }
  
  #action::before {
    background-image: url('asset/action-bg.jpg'); /* Remplace par ton image */
  }
  
  #duree {
    border-color: #FFC107;
    background-color: #7d62027b;
  }
  
  #duree::before {
    background-image: url('asset/duree-bg.jpg'); /* Remplace par ton image */
  }
  
  /* Large screen adjustments */
  @media (min-width: 768px) {
    .category {
      width: calc(25% - 1rem); /* 3 catégories sur une rangée */
    }
  }
  
  @media (min-width: 1024px) {
    .category {
      width: calc(25% - 1rem); /* 4 catégories sur une rangée */
    }
  }


  .question {
    /* display: flex; */
    justify-content: center;
    width: calc(100% - 1rem);
    margin: 1rem auto;
    /* background-color: #f1f1f1; */
    padding: 1rem;
    border-radius: 8px;
    text-align: center;

    /* border: 2px solid #6e00fd; */
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
    cursor: pointer; /* Change le curseur en main pour indiquer que la div est cliquable */
    min-height: 5rem;
}



#question-action {
    background-image: url('asset/question-bg.png'); /* Remplace par ton image */
    background-repeat: no-repeat;
    /* background-size: cover; */
    background-position: center;
  }
  
  
  .question button {
    background: #2196F3;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    cursor: pointer;
    border-radius: 4px;
  }

  .question-content {
    background-color: #f9f9f9;
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem auto;
    border: 2px solid #6e00fd86;
    display: none;
  }
  
  #question-list {
    list-style-type: none;
    padding-left: 0;
  }
  
  #question-list li {
    margin: 0.5rem 0;
    background-color: #fff;
    padding: 1rem;
    border-radius: 4px;
    border: 1px solid #ddd;
  }

  /* .disabled {
    pointer-events: none; /* Empêche les clics *
    opacity: 0.5; /* Rendre la catégorie plus transparente *
} */

#countdown {
    font-size: 30px;
    color: red;
    display: none;
}

/* Style de base du bouton */
#startButton {
    background-color: #e91e63; /* Couleur de fond rouge-rose */
    border: none; /* Pas de bordure */
    color: white; /* Texte en blanc */
    padding: 15px 32px; /* Espacement autour du texte */
    text-align: center; /* Alignement du texte */
    text-decoration: none; /* Pas de soulignement */
    display: inline-block; /* Permet d'utiliser des marges et padding */
    font-size: 16px; /* Taille du texte */
    cursor: pointer; /* Changer le curseur sur hover */
    border-radius: 5px; /* Coins arrondis */
    transition: background-color 0.3s ease, transform 0.3s ease; /* Transition fluide */
}

/* Effet de survol */
#startButton:hover {
    background-color: #e91e91; /* Couleur plus foncée pour le survol */
    transform: translateY(-3px); /* Légère élévation du bouton */
}

/* Effet de clic */
#startButton:active {
    transform: translateY(0); /* Retour à la position originale */
}

/* Effet de focus (quand le bouton est sélectionné avec le clavier) */
#startButton:focus {
    outline: none; /* Supprimer l'effet de focus par défaut */
    box-shadow: 0 0 0 4px rgba(255, 100, 50, 0.5); /* Ombre douce dans une teinte d'amour */
}


/* Animation de glissement et rotation */
@keyframes slideInRotate {
    from {
        transform: translateY(50px) rotate(-10deg);
        opacity: 0;
    }
    to {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
}

.card {
    opacity: 0; /* Initialement cachée */
    transform: translateY(50px) rotate(-10deg); /* Position de départ */
    animation: slideInRotate 0.7s ease-out forwards; /* Animation d'apparition */
}



/* Styles généraux pour la scrollbar */
::-webkit-scrollbar {
    width: 8px; /* Largeur de la barre de défilement */
    background: transparent; /* Fond transparent */
}

::-webkit-scrollbar-thumb {
    background:rgb(38 1 73 / 80%); /* Rouge translucide pour le "thumb" */
    border-radius: 4px; /* Coins arrondis */
    transition: background 0.3s ease; /* Animation fluide au survol */
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(221, 0, 255, 0.8); /* Accentue la couleur au survol */
}

::-webkit-scrollbar-track {
    background: transparent; /* Fond de la piste transparent */
}

/* Pour une meilleure compatibilité */
body {
    scrollbar-width: thin; /* Pour Firefox : mince */
    scrollbar-color: rgb(38 1 73 / 80%) transparent; /* Pour Firefox */
}

/* Menu en haut à droite */
#menu {
    position: fixed; /* Fixe le menu en haut à droite */
    /* top: 2rem; Distance du haut */
    right: 2rem; /* Distance de la droite */
    background-color: transparent; /* Fond transparent pour le menu */
    z-index: 1000; /* Assure que le menu soit au-dessus des autres éléments */
  }
  
  #menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: none; /* Cache les éléments de menu par défaut */
    background-color: rgba(0, 0, 0, 0.7); /* Fond noir transparent */
    position: absolute;
    top: 40px; /* Espace entre le bouton et la liste du menu */
    right: 0;
    border-radius: 5px;
  }
  
  #menu ul li {
    padding: 10px;
    text-align: right;
  }
  
  #menu ul li a {
    color: #f3f3f3; /* Couleur beige clair pour les liens */
    text-decoration: none;
    display: block;
  }
  
  #menu ul li a:hover {
    background-color: rgba(255, 255, 255, 0.1); /* Effet au survol */
  }
  
  /* Bouton transparent pour le menu */
  #menu-toggle {
    background-color: transparent;
    border: none;
    color: #ebe1ca; /* Couleur beige clair pour le bouton */
    font-size: 20px;
    cursor: pointer;
  }
  
  /* Affiche le menu lorsqu'il est activé */
  #menu.open ul {
    display: block;
    width: 150px;
  }
  
  
  /* --- Style des modales --- */
  .modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7); /* Arrière-plan semi-transparent */
  }
  
  .modal-content {
    background-color: #fff;
    margin: 25% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px;
    color: #333;
  }
  
  .modal .close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
  }
  
  .modal .close:hover,
  .modal .close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
  }
  
  /* --- Personnalisation des boutons --- */
  .menu-toggle-btn {
    background-color: transparent;
    color: #fff;
    border: 2px solid #fff;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
  }
  
  .menu-toggle-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
  }
  
  /* Style modal */
.modal {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
  }
  
  /* Modal content */
  .modal-content {
    background-color: white;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px;
    border-radius: 8px;
  }
  
  /* Conteneur vertical */
  .vertical-container {
    margin-bottom: 30px;
  }
  
  /* Boîte de contenu avec logo, titre et sous-titre */
  .content-box {
    text-align: center;
  }
  
  .logo {
    width: 50px;
    height: 50px;
    margin-bottom: -34px;
  }
  
  .title {
    /* font-size: 20px; */
    font-weight: bold;
    color: #333;
    margin: 20 0;
  }
  
  .subtitle {
    /* font-size: 16px; */
    margin: -10px 0;
  }
  
  .subtitle a {
    color: #007BFF;
    text-decoration: none;
  }
  
  .subtitle a:hover {
    text-decoration: underline;
  }
  
  .img{
    width: 100%;
  }

  .titleH2{
    color: #ebe1ca;
    font-family: sans-serif;
    font-style: italic;
  }

  #share-button {
    transition: all 0.3s ease;
}

#share-button:hover {
    background-color: #d83668;
    transform: scale(1.05);
}

.btn-share {
    position: sticky;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: #4f0049;
    color: #fff;
    border: none;
    border-radius: 5%;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    font-size: 19px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-share:hover {
    transform: scale(1.1); /* Agrandit légèrement au survol */
    box-shadow: 0px 6px 10px rgba(0, 0, 0, 0.4);
}

.btn-share:active {
    transform: scale(0.9); /* Réduit légèrement à l'activation */
    box-shadow: 0px 3px 5px rgba(0, 0, 0, 0.2);
}

#refresh-button {
    position: absolute;
    width: 50px;
    height: 50px;
    top: 20%;
    right: 0px;
    padding: 10px 15px;
    font-size: 16px;
    background-color: #ff6347;
    color: white;
    border: none;
    border-radius: 5%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: transform 0.2s, box-shadow 0.2s;
}

#refresh-button:hover {
    transform: scale(1.1);
}

