* {
            margin: 0;
            padding: 0;
            box-sizing: border-box; 
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #1a60ab 0%, #3e7ca2 100%);
    min-height: 100vh;
    padding: 20px;
}

/* Barre de progression */
.progress-container {
    position: fixed;
    top: 0;
    left: 50%; /* Centre horizontalement */
    transform: translateX(-50%); /* Déplace de -50% de sa largeur pour centrer */
    background: transparent; /* Fond transparent */
    padding: 5px 10px; /* Padding réduit */
    display: inline-flex; /* S'adapte à la taille du contenu */
    justify-content: center;
    gap: 5px;
    z-index: 1000;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1); /* Ombre conservée */
}

.progress-square {
    width: 20px;
    height: 20px;
    background: #bdc3c7; /* Gris pour question non répondue */
    border-radius: 4px;
    transition: background 0.3s ease;
    opacity: 0.5;
}

.progress-square.answered {
    background: #27ae60; /* Vert pour question répondue */
    opacity: 0.8;
}

.container {
    max-width: 98%; /*800px;*/
    margin: 2vh auto; /* 2% haut et bas - auto gauche droite
    /* margin: 0 auto; */ /* 0 vertical - auto horizontal */
    background: white;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    overflow: hidden; 
}

.header {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    padding: 30px;
    text-align: center;
}

.header h1 {
    font-size: 2em;
    margin-bottom: 10px;
}

.header p {
    opacity: 0.9;
    font-size: 1.1em;
}

.content {
    padding: 30px; 
}

.tab-buttons {
    display: flex;
    margin-bottom: 30px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.tab-button {
    flex: 1;
    padding: 15px 20px;
    background: #ecf0f1;
    border: none;
    cursor: pointer;
    font-size: 1em;
    font-weight: bold;
    transition: all 0.3s ease;
}

.tab-button.active {
    background: #3498db;
    color: white;
    transform: translateY(-2px);
}

.tab-button:hover {
    background: #bdc3c7;
}

.tab-button.active:hover {
    background: #2980b9;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

#copyright{
    position: fixed;
    top: 5px;
    right: 0; 
    font-size: 0.4em; 
    color: #f1ecec; 
    margin: 0;
    padding: 2px 5px;
    z-index: 999; 
}

/* Formulaire d'informations personnelles */
.user-info-form {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
    color: #2c3e50;
}

.form-group input, .form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid #ecf0f1;
    border-radius: 8px;
    font-size: 1em;
    transition: border-color 0.3s ease;
}

.form-group input:focus, .form-group select:focus {
    outline: none;
    border-color: #3498db;
}

.start-quiz-btn {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    padding: 15px 40px;
    border: none;
    border-radius: 8px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 20px auto;
    display: block;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.start-quiz-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.4);
}

.question-container {
    position: relative;
    background: #f8f9fa;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow:
        /* -3px 3px 0 0 #aad2ee, */
        /* -5px 5px 15px -2px rgba(52, 152, 219, 0.4); */
        -7px 7px 5px -2px rgba(52, 152, 219, 0.4);
        /* -8px 8px 10px -2px rgba(52, 152, 219, 0.4); */ 
}

.question {
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 20px;
    color: #2c3e50;
}

.answers {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.answer-option {
    display: flex;
    align-items: center;
    padding: 15px;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid #ecf0f1;
}

.answer-option:hover {
    background: #e8f4f8;
    border-color: #3498db;
    transform: translateX(5px);
}

.answer-option input[type="radio"],
.answer-option input[type="checkbox"] {
    margin-right: 12px;
    transform: scale(1.2);
}

.submit-btn {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    padding: 15px 40px;
    border: none;
    border-radius: 8px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 30px auto;
    display: block;
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.3);
    text-shadow: 
        2px 2px 5px #00804f,
        -2px -2px 5px #b3cac1;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(46, 204, 113, 0.4);
}

.results {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 30px;
    margin-top: 20px;
}

#scoreSection {
    margin: 20px 0; /* Espacement au-dessus et en-dessous du score */
    text-align: center; /* Centrer le contenu */
}

.score {
    text-align: center;
    margin-bottom: 30px;
}

.score-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2.2em;
    font-weight: bold;
    color: white;
}

.score-excellent { background: linear-gradient(135deg, #27ae60, #2ecc71); }
.score-good { background: linear-gradient(135deg, #f39c12, #e67e22); }
.score-poor { background: linear-gradient(135deg, #e74c3c, #c0392b); }

.correction {
    margin-top: 20px;
}

.correction-item {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
    border-left: 5px solid #e74c3c;
}

.correction-item.correct {
    border-left-color: #27ae60;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.stat-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 2.5em;
    font-weight: bold;
    color: #3498db;
    margin-bottom: 10px;
}

.stat-label {
    color: #7f8c8d;
    font-size: 1.1em;
}

.close-btn {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 20px;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 10px;
}

.close-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
}

.quiz-completed {
    background: #d4edda;
    border: 2px solid #c3e6cb;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    color: #155724;
}

.quiz-completed h2 {
    margin-bottom: 15px;
    color: #155724;
}

/* Effet de fondu sur cloture */
.fade-out {
  opacity: 0;
  transition: opacity 0.8s ease;
}

/* @media (min-width: 1200px) { /* nouvel ajout 
    .container {
        max-height: 90vh; 
        overflow-y: auto; /* ascenseur interne si besoin 
        margin: 2vh auto;
    }
} */

@media (max-width: 768px) {
    .container {
        margin: 10px;
        border-radius: 10px;
    }
    
    .header {
        padding: 20px;
    }
    
    .content {
        padding: 20px;
    }
    
    .tab-buttons {
        flex-direction: column;
    }

    .progress-container {
        padding: 10px;
        flex-wrap: wrap;
        gap: 3px;
    }

    .progress-square {
        width: 15px;
        height: 15px;
    }

    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}


.lock-icon {
  display: none;
  position: fixed;
  top: 40px;
  right: 40px;
  font-size: 24px;
  /*color: #ff4d4d;*/
  /*background: rgba(255, 255, 255, 0); */
  border-radius: 12%;
  padding: 0;
  box-shadow: 0 0 8px rgba(0,0,0,0.2);
  z-index: 9999;
  transition: opacity 0.3s ease;
}