/* ===================== */
/* RESET */
/* ===================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===================== */
/* GLOBAL */
/* ===================== */
body {
    font-family: 'Segoe UI', Tahoma, sans-serif;
    background: linear-gradient(135deg, #667eea, #764ba2);
    min-height: 100vh;
    color: #333;
}

/* ===================== */
/* NAVBAR */
/* ===================== */
.navbar {
    display: flex;
    justify-content: center;
    gap: 25px;
    padding: 15px;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
}

.navbar a {
    color: white;
    font-weight: bold;
    text-decoration: none;
    transition: 0.3s;
}

.navbar a:hover {
    transform: scale(1.05);
    text-decoration: underline;
}

/* ===================== */
/* CONTAINER */
/* ===================== */
.container {
    display: grid;
    grid-template-columns: 15% 70% 15%;
    grid-template-rows: auto;
    margin: 5px ;
    gap: 5px;
}

#classement{
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    animation: fadeIn 0.6s ease-in-out;
    margin: 40px;
}

/* ===================== */
/* TITRES */
/* ===================== */
h1, h2, h3 {
    text-align: center;
    margin-bottom: 20px;
}

/* ===================== */
/* INPUTS */
/* ===================== */
input, select {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border-radius: 8px;
    border: 1px solid #ccc;
    transition: 0.3s;
}

input:focus, select:focus {
    border-color: #667eea;
    box-shadow: 0 0 5px #667eea;
    outline: none;
}

/* ===================== */
/* BOUTONS */
/* ===================== */
button {
    background: linear-gradient(135deg,#667eea,#764ba2);
    color: white;
    padding: 12px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    margin-top: 10px;
    font-weight: bold;
    transition: 0.3s;
}

button:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* ===================== */
/* ACTIONS */
/* ===================== */
.actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

/* ===================== */
/* IMAGES */
/* ===================== */
img {
    border-radius: 10px;
    margin: 10px 0;
    height: auto;
    width: 100%;
    transition: 0.3s;
}

img:hover {
    transform: scale(1.05);
}

/* ===================== */
/* PHOTO CARD */
/* ===================== */
.photo-card {
    padding: 15px;
    border-radius: 10px;
    background: #f9f9f9;
    margin-bottom: 20px;
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
}


/* ===================== */
/* RESULTAT STYLE */
/* ===================== */
.result-box {
    text-align: center;
    padding: 30px;
    border-radius: 15px;
    margin: 20px 0;
    background: linear-gradient(135deg, #f0f4ff, #e0e7ff);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    animation: pop 0.5s ease;
}

.score {
    font-size: 60px;
    font-weight: bold;
    margin-bottom: 10px;
}

/* couleurs dynamiques */
.score.good {
    color: #27ae60;
}

.score.medium {
    color: #f39c12;
}

.score.bad {
    color: #e74c3c;
}

/* message */
.result-message {
    font-size: 20px;
    margin-top: 10px;
}

/* ===================== */
/* TABLE */
/* ===================== */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

th, td {
    padding: 12px;
    text-align: center;
}

th {
    background: #667eea;
    color: white;
}

tr:nth-child(even) {
    background: #f2f2f2;
}

tr:hover {
    background: #ddd;
}

/* ===================== */
/* ADMIN */
/* ===================== */
.admin-section {
    margin-top: 30px;
    padding: 25px;
    border-radius: 15px;
    background: #f4f6ff;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

/* ===================== */
/* ANIMATIONS */
/* ===================== */
@keyframes fadeIn {
    from {opacity: 0; transform: translateY(20px);}
    to {opacity: 1; transform: translateY(0);}
}

@keyframes pop {
    0% {transform: scale(0.8); opacity: 0;}
    100% {transform: scale(1); opacity: 1;}
}

/* ===================== */
/* RESPONSIVE */
/* ===================== */
@media (max-width: 600px) {
    .container {
        width: 95%;
    }

    .score {
        font-size: 40px;
    }
}
