/* =======================
   Styles globaux
======================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: #fff;
    text-align: center;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 20px;
}

/* =======================
   Conteneur principal
======================= */
.container {
    max-width: 800px;
    margin: 30px auto;
    background: rgba(0, 0, 0, 0.6);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}

/* =======================
   Titres et textes
======================= */
h1, h2 {
    text-shadow: 2px 2px 5px rgba(0,0,0,0.5);
    margin-bottom: 25px;
}

p {
    font-size: 1.1em;
    margin-bottom: 20px;
}

/* =======================
   Formulaire pseudo
======================= */
form input[type="text"] {
    padding: 12px;
    width: 80%;
    border-radius: 8px;
    border: none;
    margin-bottom: 15px;
    font-size: 16px;
}

form input[type="text"]:focus {
    outline: none;
    box-shadow: 0 0 8px #ff6f61;
}

/* =======================
   Boutons
======================= */
button, .btn {
    background: #ff6f61;
    border: none;
    padding: 12px 25px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    font-size: 16px;
    margin: 10px 0;
}

button:hover, .btn:hover {
    background: #ff3b2e;
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(0,0,0,0.4);
}

/* =======================
   Options quiz
======================= */
#options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 20px 0;
}

.btn-option {
    background: #007BFFb0;
    padding: 10px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: 0.3s;
}

.btn-option:hover {
    background: #0056b3;
    transform: scale(1.05);
}

/* =======================
   Timer
======================= */
#timer {
    font-size: 20px;
    font-weight: bold;
    color: #ffd700;
    margin-bottom: 20px;
}

/* =======================
   Barre de progression
======================= */
.progress-bar {
    width: 100%;
    height: 15px;
    background: rgba(255,255,255,0.3);
    border-radius: 10px;
    overflow: hidden;
    margin-top: 20px;
}

.progress {
    height: 100%;
    width: 0%;
    background: #ff6f61;
    transition: width 0.3s ease;
}

/* =======================
   Images container
======================= */
.images-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
}

.images-container img {
    width: 200px;
    height: auto;
    border-radius: 12px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.images-container img:hover {
    transform: scale(1.1) rotate(2deg);
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}

/* =======================
   Page résultat
======================= */
#message {
    font-size: 1.3em;
    margin: 20px 0;
}

.Hornel img {
    width: 300px;
    height: auto;
    margin: 20px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}

/* =======================
   Responsive
======================= */
@media (max-width: 768px) {
    .images-container img {
        width: 150px;
    }

    form input[type="text"] {
        width: 100%;
    }
}
