/****************************************************************************
* STYLE style.css        						                                        *
*                                                                           *
* Auteur : LorenzoCLA		                                                    *
* Projet : le pense-bête                                                    *
* Date   : jj.mm.aaaa                                                       *
*                                                                           *
* Modifications                                                             *
*   Auteur  : ....................                                          *
*   Date    : ....................                                          *
*   Raisons : ....................							                            *
****************************************************************************/
/****************************************************************************
* PAGES LIÉS AU STYLE                                                       *
*   index.html                                                              *
*   module.html                                                             *
*   demo.html                                                               *
****************************************************************************/

* {
  box-sizing: border-box; /* Permet d'inclure le padding et la bordure dans la largeur totale des éléments pour éviter les décalages de taille */
}

/*************
* INDEX.HTML *
*************/

/* Contour du carré blanc */
body {
  font-family: Arial, sans-serif;
  background: #F4F4F4;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.about-link {
  font-size: 12px;
  font-family: "Quicksand", sans-serif;

  color: #007BFF;

  display: inline-flex;
  align-items: center;
  gap: 6px;

  cursor: pointer;

  font-weight: 500; /* 👈 AJOUT IMPORTANT */

  transition: color 0.2s ease, transform 0.2s ease;
}

/* hover = même logique que ton bouton "Me suivre" */
.about-link:hover {
  color: #0069d9;
  transform: translateY(-2px);
}

.about-link:active {
  transform: translateX(0px);
}

.chevron {
  opacity: 0.7;
}

/* Carré blanc */
.card {
  background: white;
  padding: 20px;
  border-radius: 12px;
  width: 500px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  text-align: center;
}

/* Commentaire sur le code pénal dans la page d'accueil */
.legal {
  text-align: justify; /* uniquement ce bloc */
  font-size: 11px;
  color: #666;
  margin-top: 15px;
}

/* Mise en évidence du texte important dans les mentions légales */
.legal-highlight {
  color: #156082;
}

/* Bouton de sélection des menus */
button {
  display: block;
  width: 100%;
  margin: 10px 0;
  padding: 10px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  background: #007BFF;
  color: white;
  font-size: 16px;
}

/* Bouton Entrer désactivé */
#loginBtn {
  background: #ccc;
  color: #E8E8E8;
}

/* Bouton Entrer activé */
#loginBtn.active {
  background: #007BFF;
  color: white;
}

/* Curseur interdit */
#loginBtn:disabled {
  cursor: not-allowed;
}

/* Bouton Instagram */
.instagram-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  margin-top: 15px;
  padding: 12px 18px;

  background-color: #007BFF;
  color: white;

  border-radius: 10px;
  text-decoration: none;

  font-family: "Quicksand", sans-serif;
  font-size: 18px;
  font-weight: 500;

  transition: transform 0.2s ease, background-color 0.2s ease;
}

/* Icône Instagram dans le bouton */
.instagram-btn img {
  width: 23px;
  height: 23px;
}

/* Effet de survol pour le bouton Instagram */
.instagram-btn:hover {
  background-color: #0069d9;
  transform: scale(1.03);
}

/* Bouton "Quitter ce module" */
.quit-btn {
  background: #3D3D3D;
}

/* Désactive le curseur quand le bouton "Valider la réponse" est grisé */
#validateBtn:disabled {
  cursor: not-allowed;
}

/* Ajoute un ombrage bleu au bouton "Question suivante" */
#validateBtn.next {
  box-shadow:
    0 0 8px rgba(0, 123, 255, 0.85),
    0 0 16px rgba(0, 123, 255, 0.45);
}

/* Affichage du nombre de questions et du score */
.infos {
  display: flex;
  justify-content: space-between;
  margin-top: 15px;
}

/* Zone de saisie du mot de passe */
input {
  width: 100%;
  padding: 10px;
  margin: 10px 0;
  border-radius: 8px;
  border: 1px solid #ccc;
}

/* Focus input */
input:focus {
  background-color: #F5FAFF;
  border: 2px solid #007BFF;
  outline: none;
}

/* Réponses */
.answer {
  background: #eee;
  color: black;
}

.answer:hover {
  background: #D6D6D6;
}

.answer.selected {
  background: #5C84CC;
  color: white;
}

.answer.correct {
  background: #21965E;
  color: white;
}

.answer.wrong {
  background: #DC2D14;
  color: white;
}

.answer.missed {
  background: #63E796;
  color: white;
}

.answer:disabled {
  cursor: not-allowed;
}

/* Bouton valider */
#validateBtn {
  background: #ccc;
  color: #E8E8E8;
}

#validateBtn.active {
  background: #007BFF;
  color: white;
}

/* Question alignée à gauche */
#question {
  text-align: left;
  width: 100%;
}

/* Commentaire multi-lignes */
#comment {
  white-space: pre-line;
  font-size: 14.5px;
  font-style: italic;
  color: #666;
}

/* POPUP */
.popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.popup-content {
  background: white;
  padding: 20px 25px;
  border-radius: 10px;
  text-align: left;
  min-width: 250px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.popup-content button {
  margin-top: 15px;
  width: 100%;
}

.popup-close-btn {
  background: #3D3D3D;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 10px;
  cursor: pointer;
}

.hidden {
  display: none;
}

/* Style pour les éléments importants dans la popup */
.blue {
  color: #4472C4;
}

.blue-bold {
  color: #4472C4;
  font-weight: 700;
}

.popup-content p {
  margin-bottom: 10px;
  line-height: 1.4;
}

.popup-content u {
  text-decoration: underline;
  text-decoration-color: #000;
  text-underline-offset: 2px;
}

.popup-content em {
  font-style: italic;
}

/* =========================
   MOBILE
========================= */
@media (max-width: 768px) {

  /* IMPORTANT : casse le centrage desktop */
  body {
    display: block;
    padding: 12px;
    height: auto;
    min-height: 100vh;
  }

  .card {
    width: 100%;
    max-width: 100%;

    padding: 20px;

    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  }
}