.atelier-form {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2.5rem;
    background-color: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-radius: 12px;
}

.atelier-form h1 {
    font-size: 2rem;
    color: #4A4A4A;
    margin: 0 0 2rem 0;
    font-weight: 600;
    letter-spacing: -0.5px;
    line-height: 1.3;
}

.atelier-form p {
    margin-bottom: 1.5rem;
    color: #4A4A4A;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.atelier-form p strong {
    color: #D4B882;
    font-weight: 600;
    min-width: 80px;
}

.atelier-form fieldset {
    border: none;
    padding: 0;
    margin: 2.5rem 0;
}

.atelier-form legend {
    font-size: 1.3rem;
    color: #4A4A4A;
    font-weight: 600;
    margin-bottom: 1.5rem;
    width: 100%;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #F5F2EF;
}

.form-floating {
    position: relative;
    width: 100%;
    margin-bottom: 2.5rem;
}

.input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    color: #D4B882;
    z-index: 2;
    font-size: 1.4rem;
    pointer-events: none;
}

.input-with-icon {
    width: 100%;
    padding: 1.2rem 1.2rem 1.2rem 3.5rem !important;
    border: 2px solid #E0E0E0;
    border-radius: 10px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    background-color: #FFFFFF;
}

.form-floating label {
    position: absolute;
    top: 0;
    left: 3.5rem;
    padding: 1.2rem;
    pointer-events: none;
    transition: 0.2s ease all;
    color: #757575;
    background: transparent;
    z-index: 1;
    font-size: 1rem;
}

.form-floating input:focus ~ label,
.form-floating input:not(:placeholder-shown) ~ label {
    transform: translateY(-1.5rem) scale(0.85);
    left: 0.5rem;
    color: #D4B882;
    background: white;
    padding: 0 0.5rem;
    z-index: 3;
}

.info-card {
    background: #F9F7F5;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2.5rem;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    position: relative;
    padding: 0 2rem;
}

.step-labels {
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
    margin-bottom: 2rem;
}

.step-label {
    font-size: 0.875rem;
    color: #757575;
    text-align: center;
    width: 100px;
    transition: all 0.3s ease;
}

.step-label.active {
    color: #D4B882;
    font-weight: 500;
}

.step-label.completed {
    color: #4A4A4A;
}

.step {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: #F5F2EF;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4A4A4A;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.step.active {
    background: #D4B882;
    color: white;
}

.step.completed {
    background: #4A4A4A;
    color: white;
}

.progress-line {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: #F5F2EF;
    transform: translateY(-50%);
}

.btn.btn-primary {
    background-color: #D4B882;
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    width: 100%;
    margin-top: 2.5rem;
}

.btn.btn-primary:hover {
    background-color: #4A4A4A;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(74, 74, 74, 0.2);
}

.button-arrow {
    transition: transform 0.3s ease;
}

.btn.btn-primary:hover .button-arrow {
    transform: translateX(5px);
}

.btn-primary.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.8;
}

.btn-primary.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid #fff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

#response-message {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 6px;
    font-weight: 500;
}

#response-message p {
    margin: 0;
}

#response-message p.error {
    background-color: #FFF3F3;
    border: 1px solid #DC3545;
    color: #DC3545;
    padding: 1rem;
    border-radius: 6px;
}

.input-group input.invalid {
    border-color: #DC3545;
}

.input-group input.invalid:focus {
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.2);
}

.error-message {
    color: #D32F2F;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: none;
    position: absolute;
    bottom: -1.5rem;
    left: 0;
    z-index: 2;
}

.success-message {
    text-align: center;
    padding: 2rem 0;
}

.success-icon {
    width: 64px;
    height: 64px;
    background: #D4B882;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
}

.success-message h1 {
    color: #4A4A4A;
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.success-message p {
    color: #757575;
    margin-bottom: 2rem;
}

.success-message .btn.btn-primary {
    max-width: 250px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .atelier-form {
        padding: 1.5rem;
        margin: 1rem;
        max-width: calc(100% - 2rem);
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    }

    .atelier-form h1 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
        text-align: center;
    }
    
    .info-card {
        padding: 1.25rem;
        margin-bottom: 1.5rem;
    }
    
    .form-floating {
        margin-bottom: 1.75rem;
    }
    
    .input-with-icon {
        padding: 1rem 1rem 1rem 3rem !important;
        font-size: 1rem;
        border-radius: 8px;
    }
    
    .input-icon {
        font-size: 1.2rem;
        left: 1rem;
    }
    
    .form-floating label {
        left: 3rem;
        padding: 1rem;
        font-size: 0.9rem;
    }
    
    .btn.btn-primary {
        padding: 0.9rem 1.5rem;
        font-size: 0.9rem;
        margin-top: 1.5rem;
    }
    
    .atelier-form p {
        font-size: 1rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.3rem;
    }
    
    .atelier-form p strong {
        min-width: auto;
    }
    
    .atelier-form legend {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    .progress-steps {
        padding: 0 1rem;
    }
    
    .step {
        width: 1.75rem;
        height: 1.75rem;
        font-size: 0.875rem;
    }
    
    .error-message {
        font-size: 0.8rem;
        position: static;
        margin-top: 0.5rem;
    }
}

@media (max-width: 480px) {
    .atelier-form {
        padding: 1rem;
        margin: 0.5rem;
        max-width: calc(100% - 1rem);
        border-radius: 8px;
    }
    
    .atelier-form h1 {
        font-size: 1.3rem;
        line-height: 1.4;
        word-break: break-word;
    }
    
    .info-card {
        padding: 1rem;
        border-radius: 8px;
    }
    
    .form-floating {
        margin-bottom: 1.5rem;
    }
    
    .input-with-icon {
        padding: 0.9rem 0.9rem 0.9rem 2.8rem !important;
        font-size: 16px; /* Force 16px to prevent zoom on iOS */
        border-width: 1px;
    }
    
    .input-icon {
        font-size: 1.1rem;
        left: 0.9rem;
    }
    
    .form-floating label {
        left: 2.8rem;
        padding: 0.9rem;
        font-size: 0.85rem;
    }
    
    .form-floating input:focus ~ label,
    .form-floating input:not(:placeholder-shown) ~ label {
        transform: translateY(-1.4rem) scale(0.8);
        left: 0.3rem;
    }
    
    .btn.btn-primary {
        padding: 0.8rem 1.2rem;
        font-size: 0.85rem;
        letter-spacing: 0.5px;
        margin-top: 1rem;
        border-radius: 25px;
    }
    
    .button-arrow {
        width: 20px;
        height: 20px;
    }
    
    .progress-steps {
        padding: 0 0.5rem;
    }
    
    .step {
        width: 1.5rem;
        height: 1.5rem;
        font-size: 0.75rem;
    }
    
    .step-labels {
        padding: 0;
        gap: 0.5rem;
    }
    
    .step-label {
        width: auto;
        font-size: 0.7rem;
        flex: 1;
    }
    
    .atelier-form p {
        margin-bottom: 1rem;
        font-size: 0.95rem;
    }
    
    .atelier-form legend {
        font-size: 1rem;
        margin-bottom: 0.75rem;
        padding-bottom: 0.3rem;
    }
    
    .atelier-form fieldset {
        margin: 1.5rem 0;
    }
    
    /* Amélioration pour les petits écrans */
    .form-checkbox {
        margin: 1.5rem 0;
    }
    
    .checkbox-group {
        display: flex;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .checkbox-group input[type="checkbox"] {
        margin-top: 0.2rem;
        min-width: 18px;
        min-height: 18px;
    }
    
    .checkbox-group label {
        font-size: 0.85rem;
        line-height: 1.4;
    }
    
    /* Amélioration de l'alerte */
    .alert {
        padding: 1rem !important;
        font-size: 0.9rem;
        margin-bottom: 1rem !important;
    }
    
    .alert strong {
        display: block;
        margin-bottom: 0.3rem;
    }
    
    .alert p {
        margin: 0;
        font-size: 0.85rem;
    }
}

/* Améliorations supplémentaires pour le responsive */
.atelier-options {
    width: 100%;
    padding: 12px 40px 12px 12px;
    font-size: 16px; /* Empêche le zoom sur iOS */
    border: 2px solid #dfc389;
    border-radius: 8px;
    background-color: #f8f8f8;
}

@media (max-width: 768px) {
    .atelier-options {
        padding: 10px 35px 10px 10px;
        font-size: 16px;
    }
}

/* Amélioration de l'espacement global sur mobile */
@media (max-width: 480px) {
    body {
        padding: 0;
        margin: 0;
    }
    
    /* Container principal avec meilleur espacement */
    .component-content {
        padding: 0;
    }
    
    /* Amélioration du select sur mobile */
    .atelier-options {
        padding: 12px 35px 12px 10px;
        font-size: 16px;
        background-size: 20px;
        background-position: right 8px center;
    }
    
    /* Meilleur espacement des paragraphes d'info */
    .info-card p {
        padding: 0.5rem 0;
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }
    
    .info-card p:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
    
    /* Ajustement du bouton pour mobile */
    .btn.btn-primary span {
        font-size: 0.85rem;
    }
    
    /* Amélioration de la lisibilité */
    .text-danger {
        font-size: 0.9rem;
    }
    
    .text-success {
        font-size: 0.9rem;
    }
}

/* Fix pour éviter le dépassement horizontal */
* {
    box-sizing: border-box;
}

.atelier-form {
    overflow-x: hidden;
}

/* Animation douce pour les transitions */
@media (prefers-reduced-motion: no-preference) {
    .form-floating input,
    .form-floating label,
    .btn,
    .step {
        transition: all 0.3s ease;
    }
}