/* Palette ENOV */
:root {
    --enov-primary: rgb(38, 45, 90);
    --enov-primary-light: rgb(126, 192, 193);
    --enov-secondary: rgb(215, 104, 47);
    --enov-secondary-light: rgb(231, 153, 91);
}

/* Base */
body {
    font-family: 'Inter', sans-serif;
    background-color: #f9f9f9;
    margin: 0;
    padding: 0;
}

.header {
    background-color: var(--enov-primary);
    color: white;
    padding: 1rem;    
    text-align: center;
}

.logo {
    max-height: 60px;
    margin-bottom: 10px;
}

.back-link {
    display: inline-block;
    margin-top: 0.5rem;
    color: white;
    text-decoration: underline;
}

/* Conteneur */
.container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 1.5rem;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

h1, h2, h3 {
    margin-bottom: 1rem;
    color: var(--enov-secondary);
}

form label {
    display: block;
    margin-top: 1rem;
    font-weight: 600;
}

input[type="text"] {
    width: 100%;
    padding: 0.7rem;
    margin-top: 0.3rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
}

button {
    margin-top: 1.5rem;
    padding: 0.8rem 1.5rem;
    background-color: var(--enov-primary);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: var(--enov-primary);
}

.error {
    background-color: #ffe5e5;
    border-left: 5px solid #f44336;
    padding: 1rem;
    margin-bottom: 1rem;
    color: #b71c1c;
    border-radius: 5px;
}

/* Question bloc */
.question-group {
    margin-top: 2rem;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 10px;
    background-color: #f8fafc;
}

/* Tableaux */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

th, td {
    padding: 0.75rem;
    border: 1px solid #ccc;
    text-align: center;
}

th {
    background-color: var(--enov-primary);
    color: white;
}

tr:nth-child(even) {
    background-color: #f1f5f9;
}

/* Barres de progression */
.progress-bar-container {
    width: 100%;
    background-color: #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
}

.progress-bar {
    height: 20px;
    line-height: 20px;
    text-align: center;
    color: white;
    font-weight: bold;
    transition: width 0.4s ease;
}

.progress-bar.low {
    background-color: #ef4444;
}

.progress-bar.medium {
    background-color: var(--enov-secondary-light);
}

.progress-bar.high {
    background-color: #4ade80;
}

/* Accordéons croisés */
.accordion-toggle {
    cursor: pointer;
    background: none;
    border: none;
    font-size: 1rem;
    font-weight: bold;
    color: var(--enov-secondary);
    transition: transform 0.2s ease;
}

.accordion-toggle:hover {
    transform: scale(1.1);
}

.accordion-content {
    display: none;
    padding-top: 1rem;
    padding-left: 1rem;
    background-color: #f9fbfc;
    border-left: 3px solid var(--enov-secondary);
    border-radius: 6px;
}

.accordion-content.active {
    display: table-row;
}

.accordion-content table {
    margin: 0.5rem 0;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
        width: 95%;
    }

    th, td {
        font-size: 0.9rem;
    }

    .accordion-content {
        padding-left: 0.5rem;
    }

    .download-btn {
        font-size: 0.9rem;
    }
}

/* Bouton export */
.btn-export {
    background-color: var(--enov-secondary);
    color: white;
    padding: 10px 16px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
}

.btn-export:hover {
    background-color: var(--enov-secondary-light);
}

.table-legend {
    font-size: 12px;
    color: #333;
}

.header-logo {
    position: absolute;
    left: 40px;
}

.header-logo img {
    height: 60px;
}

.header-center {
    text-align: center;
    margin: 0 auto;
}

.header-center h1 {
    font-size: 30px;
    font-weight: bold;
    color: #ec6c34;
    margin: 0 0 10px 0;
}

.task-summary p {
    margin: 2px 0;
    font-size: 16px;
    font-weight: 500;
}
