/* Base */
*,
*::before,
*::after {
  box-sizing: border-box;
}
body {
    font-family: 'Inter', 'Lucida Sans', sans-serif;
    background: #f4f6f8;
    margin: 0;
    padding: 0;
}
header {
    text-align: center;
}

header img {
    width: 140px;
}

h1, h2 {
    text-align:center;
}

section {
    max-width: 900px;
    margin: 2rem auto;
    padding: 1.5rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}
.section {
    margin-bottom: 1rem;
}
.instructions {
    font-weight: 600;
    color: #225367;
}
.grid-container {
    display: grid;
    gap: 20px;
    margin-bottom: 3rem;
}

.grid-row {
    display: grid;
    grid-template-columns: 1fr auto; /* question à gauche, radios à droite */
    align-items: center;
    gap: 20px;
    border: 1px solid black;
    padding: 1rem;
}

/* Question text */
.question-text {
    font-weight: 500;
}

/* Radios */
.radio-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.radio-group label {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid #ccc;
    cursor: pointer;
    background: #f0f0f0;
    font-weight: bold;
    transition: all 0.2s ease;
}

.radio-group input[type="radio"] {
    display: none;
}

.radio-group input[type="radio"]:checked + span {
    background-color: #225367;
    color: #fff;
    border-color: #225367;
}

.radio-group span {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

/* Textareas */
textarea {
    width: 100%;
    padding: 14px;
    border-radius: 8px;
    border: 1px solid #ccc;
    margin-top: 10px;
    font-size: 1rem;
    resize: vertical;
}

input[type="text"] {
    padding: 5px;
  border-radius: 8px;
  border: 1px solid #ccc;
  margin-top: 10px;
  font-size: 1rem;
}

/* Bouton submit */
button[type="submit"] {
    margin-top: 25px;
    background-color: #225367;
    color: #fff;
    border: none;
    padding: 18px;
    border-radius: 8px;
    font-size: 1.3rem;
    width: 100%;
    cursor: pointer;
    transition: background 0.2s ease;
}

button[type="submit"]:hover {
    background-color: #0056b3;
}

/* Responsive : question au-dessus des radios */
@media (max-width: 768px) {
    .grid-row {
        grid-template-columns: 1fr; /* tout sur une colonne */
    }

    .radio-group {
        justify-content: flex-start;
        margin-top: 10px;
    }
    .radio-group label {
        height: 35px;
        width: 35px;
    }
}


/* Base tableau */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    font-family: 'Inter', sans-serif;
    background: #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    border-radius: 8px;
    overflow: hidden;
}

thead {
    background-color: #225367;
    color: #fff;
}

thead th {
    padding: 12px;
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
}

tbody td {
    padding: 10px;
    text-align: center;
    font-size: 0.9rem;
    border-bottom: 1px solid #eee;
}

tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* Les cellules avec texte long */
tbody td pre {
    white-space: pre-wrap; /* permet le retour à la ligne */
    word-wrap: break-word;
    text-align: left;
    margin: 0;
}

/* Survol d’une ligne */
tbody tr:hover {
    background-color: #e6f0f5;
}


table.consult_eval {
    width: 90%;
    margin: auto;
}

.filters_container {
    margin-bottom: 2rem;
    margin-left: 5rem;
}

footer {
    display: flex;
    align-items: center;
    padding: 1rem 0;
    justify-content: center;
}
