/* Reset et police */
* {
    font-family: "LilyUPC", sans-serif !important;
    
    font-weight: normal; /* Regular */
    
    
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


/* Classes génériques */
.hidden {
    display: none !important;
}

.bg-bordeaux, .bg-bordeaux_succes {
    background-color: #8f0000;
    color: white !important;
}

.br {
    margin-bottom: 50px;
}

.d-flex.justify-content-center {
    margin-top: 20px;
}

#previous-button, #next-button {
    min-width: 120px;
}

.question-space {
    margin-top: 30px;
    margin-bottom: 30px;
}

.modal-dialog {
    max-width: 50%;
    width: 50%;
}

.modal-content {
    overflow: hidden;
}

.modal-body {
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 10px;
}

/* Page questions */
.question-box {
    border: 1px solid #ddd;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    background-color: #f9f9f9;
}

/* Page succès */
body_succes {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #f8f9fa;
}

.card_succes {
    width: 100%;
    max-width: 600px;
    border: none;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    border-radius: 15px;
}

.card_succes-header {
    font-size: 1.5rem;
    text-align: center;
    font-weight: bold;
    padding: 20px;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}

.card_succes-body_succes {
    padding: 30px;
    text-align: center;
    font-size: 1.1rem;
}

/* Page dashboard */
.custom-margin {
    margin-top: -20px;
}


.error-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: auto; /* ne prend plus toute la hauteur */
    background: rgba(0, 0, 0, 0.5); /* fond semi-transparent */
    display: flex;
    align-items: flex-start; /* aligne en haut */
    justify-content: center;
    padding-top: 30px; /* espace entre le haut et le message */
    z-index: 9999;
}

.error-message {
    background: #971d20;
    color: white;
    padding: 20px 30px;
    border-radius: 8px;
    font-size: 18px;
    box-shadow: 0 0 15px rgba(0,0,0,0.3);
    text-align: center;
}




  /* Appliquer à tous les boutons rouges personnalisés */
  .btn-red {
    background-color: #8f0000;
    color: white;
    border: none;
  }

  .btn-red:hover {
    background-color: #b30000; /* Rouge plus clair au survol */
    color: white;
  }

