* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
    padding: 20px;
    font-weight: 400;
}

/* Logo */
.logo-container {
    text-align: center;
    margin-bottom: 24px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    justify-content: center;
}

.logo {
    width: 128px;
    height: 128px;
    border-radius: 50%;
    display: block;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04),
                0 0 0 4px rgba(66, 32, 115, 0.2);
}

/* Titres */
.main-title {
    color: #422073;
    font-size: 1.875rem;
    text-align: center;
    margin-bottom: 12px;
    font-weight: 700;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.2;
}

.subtitle {
    color: #666;
    font-size: 1.125rem;
    text-align: center;
    margin-bottom: 48px;
    font-weight: 400;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* Section Notice d'information */
.info-section {
    background-color: #fff;
    border-radius: 1rem;
    margin-bottom: 32px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border: 1px solid #e5e7eb;
    overflow: hidden;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.info-header {
    background-color: #422073;
    color: #fff;
    padding: 16px 24px;
    font-weight: 400;
    border-radius: 1rem 1rem 0 0;
    font-size: 0.95rem;
}

.info-content {
    padding: 24px;
    max-height: 400px;
    overflow-y: auto;
    overflow-x: hidden;
    /* Pour Firefox */
    scrollbar-width: thin;
    scrollbar-color: #422073 #f1f1f1;
}

/* Style de la scrollbar pour info-content (Webkit) */
.info-content::-webkit-scrollbar {
    width: 8px;
}

.info-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.info-content::-webkit-scrollbar-thumb {
    background: #422073;
    border-radius: 4px;
}

.info-content::-webkit-scrollbar-thumb:hover {
    background: #5B3FA8;
}

.info-content h3 {
    color: #422073;
    font-size: 1.1rem;
    margin-top: 20px;
    margin-bottom: 12px;
    font-weight: 700;
}

.info-content h3:first-child {
    margin-top: 0;
}

.info-content p {
    margin-bottom: 12px;
    text-align: justify;
    font-size: 0.9rem;
    line-height: 1.5;
}

.info-content ul {
    margin-left: 20px;
    margin-bottom: 12px;
}

.info-content ul li {
    margin-bottom: 6px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.info-content a {
    color: #422073;
    text-decoration: underline;
}

.contact-info {
    background-color: #f9f9f9;
    padding: 15px;
    border-left: 4px solid #422073;
    margin: 20px 0;
}

.contact-info p {
    margin-bottom: 5px;
}

/* Séparateur */
.separator {
    height: 1px;
    background-color: #e5e7eb;
    margin: 32px 0;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* Formulaire */
.form-section {
    background-color: #fff;
    padding: 30px;
    border-radius: 1rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border: 1px solid #e5e7eb;
    margin-bottom: 30px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.form-title {
    color: #422073;
    font-size: 1.8rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.form-subtitle {
    color: #666;
    margin-bottom: 25px;
    font-size: 1rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
    font-size: 0.95rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: #422073;
    box-shadow: 0 0 0 3px rgba(107, 70, 193, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

input[type="date"] {
    position: relative;
}

/* Radio buttons */
.radio-group {
    display: flex;
    gap: 30px;
    margin-top: 10px;
}

.radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 400;
}

.radio-label input[type="radio"] {
    margin-right: 8px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.radio-label span {
    font-weight: 400;
}

/* Signature */
.signature-container {
    position: relative;
    border: 2px solid #ddd;
    border-radius: 5px;
    background-color: #fff;
    margin-bottom: 10px;
}

#signatureCanvas {
    display: block;
    width: 100%;
    height: 200px;
    cursor: crosshair;
    border-radius: 5px;
}

.btn-clear {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #fff;
    border: 1px solid #ddd;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: background-color 0.3s;
}

.btn-clear:hover {
    background-color: #f5f5f5;
}

.signature-hint {
    color: #666;
    font-size: 0.9rem;
    margin-top: 5px;
}

/* Messages d'erreur */
.errorlist {
    list-style: none;
    padding: 0;
    margin: 8px 0 0 0;
    color: #d32f2f;
    font-size: 0.875rem;
}

.errorlist li {
    margin-bottom: 5px;
    padding: 8px 12px;
    background-color: #ffebee;
    border-left: 3px solid #d32f2f;
    border-radius: 4px;
}

.form-group .form-control.error,
.form-group input.error,
.form-group textarea.error {
    border-color: #d32f2f;
    background-color: #fff5f5;
}

.form-group .form-control.error:focus,
.form-group input.error:focus,
.form-group textarea.error:focus {
    border-color: #d32f2f;
    box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.1);
}

/* Message d'erreur général */
.alert-error {
    background-color: #ffebee;
    color: #d32f2f;
    padding: 15px 20px;
    border-radius: 5px;
    border-left: 4px solid #d32f2f;
    margin-bottom: 25px;
    font-size: 0.95rem;
}

.alert-error strong {
    display: block;
    margin-bottom: 8px;
    font-size: 1rem;
}

.alert-error ul {
    margin: 8px 0 0 20px;
    padding: 0;
}

.alert-error ul li {
    margin-bottom: 5px;
}

/* Checkbox consentement */
.consent-checkbox {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 5px;
    border: 1px solid #ddd;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    gap: 10px;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 3px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    flex-shrink: 0;
}

.checkbox-label span {
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Bouton submit */
.btn-submit {
    width: 100%;
    background-color: #422073;
    color: #fff;
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.1s;
    margin-top: 20px;
}

.btn-submit:hover {
    background-color: #5B3FA8;
    transform: translateY(-2px);
}

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

.btn-whatsapp {
    background-color: #25D366 !important;
}

.btn-whatsapp:hover {
    background-color: #20BA5A !important;
}

/* Footer */
.footer {
    text-align: center;
    padding: 20px 0;
    color: #666;
    font-size: 0.875rem;
    margin-top: 48px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.footer a {
    color: #422073;
    text-decoration: none;
}

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

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s;
}

.modal-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: slideDown 0.3s;
}

.close-modal {
    position: absolute;
    right: 15px;
    top: 15px;
    font-size: 28px;
    font-weight: 700;
    color: #aaa;
    cursor: pointer;
    line-height: 1;
}

.close-modal:hover {
    color: #000;
}

.modal-content h2 {
    color: #422073;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.modal-content p {
    margin-bottom: 25px;
    color: #666;
}

.modal-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.btn-modal {
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-oui {
    background-color: #422073;
    color: #fff;
}

.btn-oui:hover {
    background-color: #5B3FA8;
}

.btn-non {
    background-color: #e0e0e0;
    color: #333;
}

.btn-non:hover {
    background-color: #d0d0d0;
}

/* Sections spéciales */
.jeunesse-section,
.success-section {
    text-align: center;
    padding: 40px;
}

.welcome-text,
.success-message {
    font-size: 1.2rem;
    color: #422073;
    margin-bottom: 20px;
    font-weight: 700;
}

/* Container pour le bouton WhatsApp */
.whatsapp-button-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.whatsapp-button-container .btn-whatsapp {
    max-width: 400px;
    width: 100%;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Responsive */
@media (min-width: 768px) {
    .logo {
        width: 160px;
        height: 160px;
    }
    
    .main-title {
        font-size: 3rem;
    }
    
    .subtitle {
        font-size: 1.25rem;
    }
    
    .info-content {
        padding: 32px;
        max-height: 500px;
    }
}

@media (max-width: 767px) {
    body {
        padding: 16px;
    }

    .main-title {
        font-size: 1.875rem;
    }

    .subtitle {
        font-size: 1.125rem;
    }

    .info-content {
        padding: 24px;
        max-height: 400px;
    }

    .info-content h3 {
        font-size: 1rem;
    }
    
    .logo {
        width: 128px;
        height: 128px;
    }

    .form-section {
        padding: 20px;
    }

    .form-title {
        font-size: 1.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .radio-group {
        flex-direction: column;
        gap: 15px;
    }

    #signatureCanvas {
        height: 150px;
    }

    .modal-content {
        width: 95%;
        margin: 20% auto;
        padding: 20px;
    }

    .modal-buttons {
        flex-direction: column;
    }

    .btn-modal {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 1.5rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }

    .info-content {
        padding: 20px;
        max-height: 400px;
    }
    
    .logo {
        width: 128px;
        height: 128px;
    }

    .form-section {
        padding: 20px;
    }

    .checkbox-label span {
        font-size: 0.85rem;
    }
}

