body {
    font-family: "Playwrite GB S"; 
    background-color:#e0cfe0;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Titre exercice */
nav {
    width: 100%;
    background-color: #7d5a7b;
    padding: 10px 0; 
    margin: 0; 
    box-sizing: border-box;
    position: relative;
}

nav h1 {
    text-align: center;
    color: white;
    margin: 0;
}

/* Consigne */
.introduction {
    margin: 20px auto;
    padding: 20px;
    max-width: 800px;
    background-color: #f9f0f9;
    border: 2px solid #7d5a7b;
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    font-family: "Playwrite GB S", sans-serif;
    line-height: 1.6;
    color: #4d4d4d;
}

.introduction p {
    text-align: justify;
    margin-bottom: 15px;
}
    /* Container pour l'image de la pyramide */
    #pyramid-container {
      position: relative;  
      width: 500px;                
      height: 600px;               
      margin: 0 auto;              
      background: url("pyramide.svg") no-repeat center/cover; 
      z-index: 1;
    }
    /* Zones droppable */
    .droppable-zone {
      position: absolute; 
      box-sizing: border-box;
      z-index: 2; 
    }
    /* Gérer les tailles des zones individuellement */
    #zone1 {
      top: 70px;
      left: 50%;
      transform: translateX(-50%);
      width: 100px;
      height: 128px;
    }
    #zone2 {
      top: 205px;
      left: 50%;
      transform: translateX(-50%);
      width: 140px;
      height: 130px;
    }
    #zone3 {
      top: 337px;
      left: 50%;
      transform: translateX(-50%);
      width: 230px;
      height: 122px;
    }
    #zone4 {
      top: 464px;
      left: 50%;
      transform: translateX(-50%);
      width: 315px;
      height: 115px;
    }

    /* Voir la zone de drop */
    .droppable-zone.ui-droppable-hover {
      background-color: rgba(0, 81, 255, 0.114);
    }

    /* Grand container pour les images ET la pyramide */
    #main-container {
        display: flex; 
        justify-content: center; /* Centrer les deux container horizontalement */
        align-items: flex-start; 
        gap: 20px; /* Espace entre les conteneurs */
        margin-top: 20px; 
        border: 5px double #ac9ab5;
    }
    
    /* Que le container images */
    #drag-container {
        width: 150px;
        padding: 10px;
        box-sizing: border-box;
        text-align: center;
    }
    
    /* Que le container pyramide */
    #pyramid-container {
        width: 500px;
        height: 600px;
        background: url("pyramide.png") no-repeat center/cover;
    }

    .draggable {
      display: inline-block; 
      margin: 0 10px; 
      cursor: move;         
      position: relative;
      z-index: 3;  
    }

    /* Taille des images à drag */
    .draggable img {
      width: 110px;  
      height: auto;
    }

    /* Les deux boutons */
    .controls {
        margin-top: 30px;
        display: flex;
        justify-content: center;
        gap: 15px; 
        margin-bottom: 30px;
    }
    
    .action-btn {
        background-color: #7d5a7b;
        color: white;
        border: none;
        border-radius: 5px;
        padding: 10px 20px;
        font-size: 14px;
        cursor: pointer;
        transition: background-color 0.3s ease, transform 0.2s;
    }
    
    .action-btn:hover {
        background-color: #9c739c;
        transform: scale(1.05);
    }
    
    .action-btn:active {
        background-color: #6a466a;
    }

    /* Le footer */
    footer {
        background-color: #7d5a7b;
        color: white;
        text-align: center;
        padding: 10px 0;
        font-size: 14px;
        width: 100%;
        box-sizing: border-box;
        margin-top: auto; /* Pousse le footer vers le bas */
    }


/* Styles pour la fenêtre */
.modal {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10000;
  background-color: white;
  border: 2px solid #ccc;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  padding: 20px;
  text-align: center;
  width: 90%;
  max-width: 800px;
}

.modal img {
  max-width: 100%;
  height: auto;
  margin-bottom: 20px;
}

.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 9999;
}

/* Bouton pour fermer la fenêtre */
.close-modal {
  background-color: #7d5a7b;
        color: white;
        border: none;
        border-radius: 5px;
        padding: 10px 20px;
        font-size: 14px;
        cursor: pointer;
        transition: background-color 0.3s ease, transform 0.2s;
}

.close-modal:hover {
  background-color: #9c739c;
        transform: scale(1.05);
}

/* Bouton pour ouvrir la fenêtre */
.theorie-btn {
  background-color: #7d5a7b;
  color: white;
  border: none;
  border-radius: 5px;
  padding: 10px 20px;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s;
  margin-top: -10px;
  margin-bottom: -10px;
}

.theorie-btn:hover {
  background-color: #9c739c;
  transform: scale(1.05);
}

.theorie-btn:active {
  background-color: #6a466a;
}