:root {
    --vert-AL: #006461;
    --vert-AL-dark: #005e5a;
    --orange-AL: #f15d22;
    --orange-AL-light: #f15d2281;
    --bleu-10: rgba(25, 118, 210, 0.1);
    --bleu-30: rgba(25, 118, 210, 0.3);
    --bleu-40: rgba(25, 118, 210, 0.4);
}

/* Reset et base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Quicksand-Regular */
@font-face {
    font-family: 'Quicksand';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../../assets/fonts/Quicksand-Regular.woff2') format('woff2');
}

/* Quicksand-Bold */
@font-face {
    font-family: 'Quicksand';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../../assets/fonts/Quicksand-Bold.woff2') format('woff2');
}

body {
    font-family: 'Quicksand', 'Segoe UI Rounded', 'Arial', sans-serif;
    background: #f5f7fa;
    padding: 20px;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.4;
    color: #003d3d
}

/* Header */
header {
    max-width: 900px;
    margin: 0 auto 40px;
    padding: 30px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.header-content {
    display: flex;
    align-items: center;
    gap: 30px;
}

.logo-site {
    max-width: 120px;
    height: auto;
    flex-shrink: 0;
}

.header-text {
    flex: 1;
    text-align: center;
}

.header-text h1 {
    color: var(--vert-AL);
    margin-bottom: 10px;
    margin-top: 0;
    font-size: 2em;
    text-align: center;
    display: block;
    width: 100%;
}

.header-text .subtitle {
    color: var(--vert-AL);
    font-size: 1.1em;
    margin: 0;
    text-align: center;
    display: block;
    width: 100%;
}

/* Main container */
main {
    max-width: 900px;
    margin: 0 auto;
}

/* Sections */
section {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}

/* Intro section */
.intro h2,
summary {
    color: var(--vert-AL);
    margin-bottom: 20px;
    font-size: 1.5em;
}

.intro ol {
    margin-left: 25px;
    margin-bottom: 20px;
}

.intro ol li {
    margin-bottom: 12px;
    padding-left: 5px;
}

.info-box {
    background: #e84e0810;
    border-left: 4px solid var(--orange-AL);
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.info-box p {
    margin-bottom: 10px;
    font-weight: 600;
}

.info-box ul {
    margin-left: 20px;
    margin-top: 10px;
}

.info-box ul li {
    margin-bottom: 8px;
}

/* Form */
.form-container {
    padding: 40px 30px;
}

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

label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--vert-AL);
    font-size: 1.2em;
}

input[type="text"],
input[type="email"],
select,
textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    transition: all 0.3s ease;
    background: white;
    color: var(--vert-AL);
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #bdc3c7;
    box-shadow: 0 0 0 3px var(--bleu-10);
}

input::placeholder,
textarea::placeholder {
    color: var(--vert-AL);
}

textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.5;
}

small {
    display: block;
    margin-top: 6px;
    color: #7f8c8d;
    font-size: 0.9em;
    font-weight: normal;
}

/* Select styling */
select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}

/* Radio buttons */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.radio-group label {
    font-weight: normal;
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.2s ease;
    background: white;
}

.radio-group label:hover {
    background-color: #f5f7fa;
    border-color: #bdc3c7;
}

.radio-group input[type="radio"] {
    margin-right: 12px;
    width: auto;
    cursor: pointer;
}

.radio-group input[type="radio"]:checked+label,
.radio-group label:has(input[type="radio"]:checked) {
    background-color: #e3f2fd;
    border-color: var(--vert-AL-dark);
}

/* Checkbox */
.checkbox-group {
    background: #f8f9fa;
    padding: 16px;
    border-radius: 8px;
    border: 2px solid #e0e0e0;
}

.checkbox-group label {
    display: flex;
    align-items: flex-start;
    font-weight: normal;
    cursor: pointer;
    font-size: 1em;
}

.checkbox-group input[type="checkbox"] {
    margin-right: 12px;
    margin-top: 4px;
    width: auto;
    cursor: pointer;
    min-width: 18px;
    min-height: 18px;
    accent-color: var(--vert-AL);
}

/* Button */
.form-actions {
    margin-top: 35px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--vert-AL) 0%, var(--vert-AL-dark) 100%);
    color: white;
    border: none;
    padding: 16px 32px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px var(--bleu-30);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--vert-AL-dark) 0%, var(--vert-AL) 100%);
    box-shadow: 0 6px 20px var(--bleu-40);
    transform: translateY(-5px);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px var(--bleu-30);
}

.help-text {
    margin-top: 16px;
    text-align: center;
    color: var(--vert-AL);
    font-size: 0.95em;
    line-height: 1.5;
}

/* Footer */

/* Responsive */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    header {
        padding: 20px 15px;
        margin-bottom: 20px;
    }

    header h1 {
        font-size: 1.5em;
    }

    .subtitle {
        font-size: 1em;
    }

    section {
        padding: 20px 15px;
        margin-bottom: 20px;
    }

    .form-container {
        padding: 20px 15px;
    }

    .intro h2,
    summary {
        font-size: 1.3em;
    }

    .intro ol {
        margin-left: 20px;
    }

    input[type="text"],
    input[type="email"],
    select,
    textarea {
        font-size: 16px;
        /* Évite le zoom sur iOS */
    }

    .btn-primary {
        font-size: 16px;
        padding: 14px 24px;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.3em;
    }

    .subtitle {
        font-size: 0.95em;
    }

    .intro ol {
        margin-left: 15px;
        font-size: 0.95em;
    }

    .info-box {
        padding: 15px;
    }
}

/* Print styles */
@media print {
    body {
        background: white;
    }

    header,
    section,
    footer {
        box-shadow: none;
    }

    .btn-primary {
        display: none;
    }
}

details {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 0.5em 0.5em 0;
    margin-bottom: 10px;
    background: white;
}

details[open] {
    padding: 0.5em;
    border: 2px solid var(--vert-AL);
}

details[open] summary {
    border-bottom: 2px solid var(--vert-AL);
    margin-bottom: 0.5em;
}


/* Supprime les bordures et le padding par défaut du fieldset */
fieldset {
    border: none;
    margin: 0;
    padding: 0;
}

/* Page de téléchargement */
.download-section {
    margin-bottom: 40px;
}

.download-section h3 {
    color: #2c3e50;
    font-size: 1.3em;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0e0e0;
}

.download-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    margin-bottom: 12px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.download-item:hover {
    border-color: var(--vert-AL);
    box-shadow: 0 2px 8px var(--bleu-10);
}

.download-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.download-name {
    font-weight: 600;
    color: #2c3e50;
    font-size: 1.05em;
}

.download-meta {
    font-size: 0.9em;
    color: #7f8c8d;
}

.btn-download {
    background: var(--vert-AL);
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 6px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
    margin-left: 16px;
}

.btn-download:hover {
    background: var(--vert-AL);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--bleu-30);
}

.btn-download:active {
    transform: translateY(0);
}

/* Footer */
footer {
    max-width: 900px;
    margin: 60px auto 0;
    padding: 30px 20px;
    text-align: center;
    border-top: 1px solid #e0e0e0;
    color: #7f8c8d;
}

footer p {color: var(--vert-AL);
    margin: 10px 0;
}

footer a {
    color: var(--vert-AL);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Responsive pour la page de téléchargement */
@media (max-width: 768px) {
    .download-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .btn-download {
        width: 100%;
        margin-left: 0;
    }
}

/* Stylise la légende pour qu'elle ressemble à votre ancien label */
legend {
    display: block;
    width: 100%;
    margin-bottom: 8px;
    /* À ajuster selon vos besoins */
    font-weight: bold;
    /* Souvent le style par défaut des labels */
    color: #333;
}