/* ========================================
   FORMULAIRE DE CONTACT GES - VERSION COMPLÈTE
   ======================================== */

:root {
    --ges-primary: #e39411;
    --ges-primary-dark: #d68910;
    --ges-blue: #2c5aa0;
    --ges-blue-dark: #1e4080;
    --ges-success: #82C720;
    --ges-warning: #ffc107;
    --ges-danger: #dc3545;
    --ges-light: #f8f9fa;
    --ges-dark: #343a40;

    --border-radius: 8px;
    --border-radius-lg: 15px;
    --box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --box-shadow-lg: 0 4px 25px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

/* Container principal */
.htic-contact-form {
    max-width: 100%;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
}

/* ========================================
   NOUVEAUX STYLES : CARTES DE STATUT CLIENT
   ======================================== */

.status-choice-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin: 30px 0;
}

.status-choice {
    width: 100%;
}

.status-radio-card {
    display: block;
    cursor: pointer;
    width: 100%;
}

.status-radio-content {
    background: white;
    border: 2px solid #e1e5e9;
    border-radius: var(--border-radius-lg);
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: var(--transition);
    position: relative;
}

.status-radio-content:hover {
    border-color: #82C720;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(130, 199, 32, 0.15);
}

.status-radio-card input[type="radio"] {
    display: none;
}

.status-radio-card input[type="radio"]:checked+.status-radio-content {
    border-color: #82C720;
    background: linear-gradient(135deg, #f0fdf4 0%, #e8fff0 100%);
}

.status-radio-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.status-radio-text {
    flex: 1;
}

.status-radio-text h4 {
    color: var(--ges-blue-dark);
    margin: 0 0 8px 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.status-radio-text p {
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
}

.status-radio-check {
    width: 24px;
    height: 24px;
    border: 2px solid #d1d5db;
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
    transition: var(--transition);
}

.status-radio-card input[type="radio"]:checked+.status-radio-content .status-radio-check {
    border-color: #82C720;
    background: #82C720;
}

.status-radio-card input[type="radio"]:checked+.status-radio-content .status-radio-check::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    font-size: 14px;
}

/* Message d'information pour les clients */
.client-info-box {
    margin-top: 15px;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border: 1px solid #2196f3;
    border-radius: var(--border-radius);
    padding: 20px;
    display: none;
}

.client-info-content .info-highlight {
    color: #1565c0;
    margin: 0 0 15px 0;
    line-height: 1.6;
}

.btn-link-create {
    background: none;
    border: none;
    color: var(--ges-primary);
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
    font-size: 0.95rem;
    padding: 0;
    transition: var(--transition);
}

.btn-link-create:hover {
    color: var(--ges-primary-dark);
    text-decoration: none;
}

/* ========================================
   MODAL DE CRÉATION DE COMPTE
   ======================================== */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

body.modal-open {
    overflow: hidden;
}

.modal-container {
    background: white;
    border-radius: var(--border-radius-lg);
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    background: linear-gradient(135deg, #222F46 0%, #57709d 100%);
    padding: 30px;
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
    position: relative;
}

.modal-header h2 {
    color: white;
    margin: 0;
    font-size: 1.6rem;
    font-weight: 600;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.modal-body {
    padding: 40px;
}

.ael-info {
    background: linear-gradient(135deg, #f0fdf4 0%, #e8fff0 100%);
    border: 1px solid #82C720;
    border-radius: var(--border-radius);
    padding: 25px;
    margin-bottom: 30px;
}

.ael-info h3 {
    color: var(--ges-blue-dark);
    margin: 0 0 15px 0;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ael-info p {
    color: #495057;
    margin: 0 0 15px 0;
}

.ael-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ael-info ul li {
    color: #495057;
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
}

.ael-info ul li::before {
    content: '•';
    position: absolute;
    left: 5px;
    color: #82C720;
    font-weight: bold;
}

.account-steps {
    margin: 30px 0;
}

.account-steps h3 {
    color: var(--ges-blue-dark);
    margin: 0 0 15px 0;
    font-size: 1.3rem;
}

.account-steps p {
    color: #495057;
    margin: 0 0 20px 0;
}

.creation-steps {
    list-style: decimal;
    padding-left: 30px;
    margin: 20px 0;
}

.creation-steps li {
    color: #495057;
    padding: 10px 0;
    line-height: 1.6;
}

.creation-steps a {
    color: var(--ges-primary);
    text-decoration: none;
    font-weight: 600;
}

.creation-steps a:hover {
    text-decoration: underline;
}

.account-modes {
    margin: 30px 0;
}

.mode-card {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: var(--border-radius);
    padding: 20px;
}

.mode-icon {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 15px;
}

.mode-card h4 {
    color: var(--ges-blue-dark);
    margin: 0 0 15px 0;
    text-align: center;
}

.mode-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 10px;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    transition: var(--transition);
}

.radio-option:hover {
    background: #e8fff0;
    border-color: #82C720;
}

.radio-option input[type="radio"] {
    width: 18px;
    height: 18px;
}

.important-note {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: var(--border-radius);
    padding: 20px;
    margin: 20px 0;
}

.important-note strong {
    color: #856404;
    display: block;
    margin-bottom: 10px;
}

.important-note p {
    color: #856404;
    margin: 0;
}

.success-message {
    text-align: center;
    margin: 30px 0;
    padding: 20px;
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border-radius: var(--border-radius);
}

.success-message h3 {
    color: #155724;
    margin: 0;
    font-size: 1.4rem;
}

.modal-footer {
    padding: 25px 40px;
    border-top: 1px solid #dee2e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

/* ========================================
   MODAL REDIRECTION CLIENTS
   ======================================== */

.redirect-info {
    text-align: center;
}

.redirect-icon {
    margin: 0 auto 30px auto;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #e8fff0 0%, #f0fdf4 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #82C720;
}

.redirect-info h3 {
    color: var(--ges-blue-dark);
    margin: 0 0 20px 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.redirect-message {
    color: #495057;
    font-size: 1.1rem;
    margin: 0 0 30px 0;
    line-height: 1.6;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 15px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #82C720, #a8d955);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-item span {
    color: var(--ges-blue-dark);
    font-weight: 600;
    font-size: 0.9rem;
}

.redirect-choice {
    margin: 40px 0 20px 0;
}

.redirect-choice h4 {
    color: var(--ges-blue-dark);
    margin: 0 0 25px 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.choice-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-large {
    padding: 18px 30px;
    font-size: 1.1rem;
    min-width: 200px;
    border-radius: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-large .btn-icon {
    font-size: 1.3rem;
}

.btn-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.modal-footer .footer-note {
    font-size: 0.9rem;
    color: #6b7280;
    margin: 0;
    font-style: italic;
    width: 100%;
    text-align: center;
}

/* ========================================
   PROGRESSION ADAPTÉE POUR 4 ÉTAPES
   ======================================== */

.progress-container {
    padding: 20px 0 30px 0;
    background: transparent;
    border-bottom: none;
    margin-bottom: 20px;
}

.progress-bar {
    height: 4px;
    background: #e9ecef;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 25px;
    width: 90%;
    margin-left: auto;
    margin-right: auto;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #82C720, #d0e9ab);
    border-radius: 2px;
    width: 25%;
    /* Changé de 33.33% à 25% pour 4 étapes */
    transition: width 0.5s ease;
}

.progress-steps {
    display: flex;
    justify-content: center;
    gap: 30px;
    /* Réduit de 40px à 30px pour 4 étapes */
    width: 100%;
    margin: 0 auto;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
}

.step-number {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: #e9ecef;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    border: 2px solid #e9ecef;
}

.step.active .step-number {
    background: #82C720;
    border-color: #82C720;
    color: white;
    transform: scale(1.1);
}

.step.completed .step-number {
    background: var(--ges-success);
    border-color: var(--ges-success);
    color: white;
}

.step-label {
    font-size: 0.85rem;
    color: #afb3b7;
    font-weight: 500;
}

.step.active .step-label {
    color: #82C720;
    font-weight: 600;
}

/* Formulaire */
.contact-form {
    position: relative;
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow-lg);
    overflow: hidden;
}

.form-step {
    display: none;
    padding: 40px;
    min-height: 400px;
}

.form-step.active {
    display: block;
    animation: slideIn 0.4s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step-content {
    margin-bottom: 40px;
}

.step-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--ges-blue-dark);
    margin: 0 0 30px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-align: center;
}

.step-icon {
    font-size: 1.6rem;
}

/* Grille de formulaire */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

/* Groupes de champs */
.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    font-weight: 600;
    color: var(--ges-blue-dark);
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.form-label.required::after {
    content: ' *';
    color: var(--ges-danger);
}

.form-control {
    width: 100%;
    padding: 0px 16px;
    border: 2px solid #e1e5e9;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
    background: white;
    font-family: inherit;
    color: var(--ges-dark);
}

.form-control:focus {
    outline: none;
    border-color: var(--ges-primary);
    box-shadow: 0 0 0 3px rgba(227, 148, 17, 0.1);
}

.form-control.error {
    border-color: var(--ges-danger);
    background: #fef2f2;
}

.form-control.success {
    border-color: var(--ges-success);
    background: #f0fdf4;
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* Messages d'erreur */
.error-message {
    display: block;
    color: var(--ges-danger);
    font-size: 0.85rem;
    margin-top: 6px;
    min-height: 20px;
}

/* Zone d'upload */
.upload-area {
    border: 2px dashed #cbd5e0;
    border-radius: var(--border-radius);
    padding: 35px 20px;
    text-align: center;
    background: #fafbfc;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
}

.upload-area:hover {
    border-color: #33cc6a;
    background: #e8fff0;
}

.upload-area.dragover {
    border-color: #33cc6a;
    background: #e8fff0;
    transform: scale(1.01);
}

#file-input {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.upload-content {
    pointer-events: none;
}

.upload-icon {
    font-size: 2.5rem;
    color: #9ca3af;
    margin-bottom: 15px;
    display: block;
}

.upload-text {
    font-size: 1rem;
    color: var(--ges-blue-dark);
    margin: 0 0 10px 0;
    font-weight: 500;
}

.upload-text small {
    color: #6b7280;
    font-weight: normal;
}

.upload-info {
    font-size: 0.8rem;
    color: #6b7280;
    margin: 0;
}

.upload-progress {
    display: none;
}

.upload-progress-bar {
    width: 100%;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.upload-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #82C720, #d0e9ab);
    width: 0%;
    transition: width 0.3s ease;
}

.upload-progress-text {
    color: var(--ges-blue-dark);
    font-weight: 500;
    margin: 0;
}

.upload-success {
    display: none;
}

.upload-success-icon {
    font-size: 2rem;
    color: #82C720;
    display: block;
    margin-bottom: 10px;
}

.upload-success-text {
    color: var(--ges-blue-dark);
    font-weight: 500;
    margin: 0 0 15px 0;
}

.btn-remove-file {
    background: var(--ges-danger);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 0.85rem;
    transition: var(--transition);
}

.btn-remove-file:hover {
    background: #c82333;
}

/* Récapitulatif */
.summary-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6;
    border-radius: var(--border-radius);
    padding: 30px;
    margin-bottom: 30px;
}

.summary-card h4 {
    color: var(--ges-blue-dark);
    margin: 0 0 25px 0;
    font-size: 1.3rem;
    font-weight: 600;
    text-align: center;
}

.summary-section {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #dee2e6;
}

.summary-section:last-child {
    border-bottom: none;
}

.summary-section h5 {
    color: var(--ges-blue-dark);
    margin: 0 0 15px 0;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px solid #e9ecef;
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-label {
    font-weight: 600;
    color: var(--ges-blue-dark);
    min-width: 140px;
}

.summary-value {
    color: #495057;
    text-align: right;
    flex: 1;
    font-weight: 500;
}

/* Cases à cocher */
.checkbox-container {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: 0.95rem;
    line-height: 1.5;
    font-weight: 500;
}

.checkbox-container input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 22px;
    height: 22px;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    position: relative;
    transition: var(--transition);
    flex-shrink: 0;
}

.checkbox-container input:checked+.checkmark {
    background: var(--ges-primary);
    border-color: var(--ges-primary);
}

.checkbox-container input:checked+.checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    font-size: 13px;
}

.checkbox-container a {
    color: var(--ges-primary);
    font-weight: 600;
    text-decoration: none;
}

.checkbox-container a:hover {
    color: var(--ges-primary-dark);
    text-decoration: underline;
}

/* Boutons */
.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    padding: 25px 0 0 0;
    border-top: 1px solid #dee2e6;
}

.btn {
    padding: 14px 28px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    min-width: 140px;
    justify-content: center;
}

.btn-primary {
    box-shadow: 0 3px 12px rgb(130 139 131 / 30%);
    background: #82C720;
    color: white;
    border: 2px solid #82C720;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 3px 12px rgb(130 139 131 / 30%);
}

.btn-primary:disabled {
    background: #6c757d;
    border-color: #6c757d;
    cursor: not-allowed;
    opacity: 0.6;
    transform: none;
    box-shadow: none;
}

.btn-secondary {
    background: #6c757d;
    color: white;
    border: 2px solid #6c757d;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-1px);
}

.btn-success {
    background: linear-gradient(135deg, var(--ges-success), #218838);
    color: white;
    font-size: 1.1rem;
    padding: 16px 32px;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.4);
}

.btn-icon {
    font-size: 1.1rem;
}

.submit-icon {
    font-size: 1.2rem;
}

/* Messages */
.form-messages {
    margin: 20px 0;
}

.message {
    padding: 16px 20px;
    border-radius: var(--border-radius);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
}

.message-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message-error {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Loading state */
.btn.loading {
    opacity: 0.7;
    pointer-events: none;
}

.btn.loading::after {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 8px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Spinner pour l'envoi */
.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s ease-in-out infinite;
}

/* Responsive */
@media (max-width: 768px) {
    .progress-steps {
        gap: 15px;
        /* Encore plus réduit pour mobile avec 4 étapes */
    }

    .step-label {
        font-size: 0.75rem;
        /* Réduit pour s'adapter aux 4 étapes */
    }

    .step-title {
        font-size: 1.5rem;
        flex-direction: column;
        gap: 10px;
    }

    .status-choice-container {
        grid-template-columns: 1fr;
        gap: 15px;
        margin: 30px 0;
    }

    .status-radio-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        padding: 25px 20px;
    }

    .icon-wrapper {
        width: 50px;
        height: 50px;
    }

    .status-radio-text h4 {
        font-size: 1.1rem;
    }

    .status-radio-text p {
        font-size: 0.9rem;
    }

    .banner-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        padding: 25px 20px;
    }

    .banner-icon {
        width: 40px;
        height: 40px;
        margin: 0 auto;
    }

    .banner-text h4 {
        font-size: 1.1rem;
    }

    .banner-text p {
        font-size: 0.9rem;
    }

    .choice-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .btn-large {
        min-width: auto;
        width: 100%;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 15px;
    }

    .feature-item {
        padding: 12px;
    }

    .redirect-choice h4 {
        font-size: 1.1rem;
    }

    .modal-container {
        max-height: 100vh;
        margin: 0;
        border-radius: 0;
    }

    .modal-header {
        border-radius: 0;
    }

    .modal-body {
        padding: 25px;
    }

    .modal-footer {
        flex-direction: column;
        padding: 20px 25px;
    }

    .modal-footer .btn {
        width: 100%;
    }

    .form-step {
        padding: 25px 20px;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .form-actions {
        flex-direction: column;
        gap: 12px;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .summary-item {
        flex-direction: column;
        gap: 6px;
        align-items: flex-start;
    }

    .summary-label {
        min-width: auto;
    }

    .summary-value {
        text-align: left;
    }
}

/* Animations d'entrée */
.form-group {
    animation: fadeInUp 0.4s ease-out;
    animation-fill-mode: both;
}

.form-group:nth-child(1) {
    animation-delay: 0.05s;
}

.form-group:nth-child(2) {
    animation-delay: 0.1s;
}

.form-group:nth-child(3) {
    animation-delay: 0.15s;
}

.form-group:nth-child(4) {
    animation-delay: 0.2s;
}

.form-group:nth-child(5) {
    animation-delay: 0.25s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}




.modern-info-bubble {
    position: relative;
    margin: 24px 0;
    padding: 20px 24px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
}

.modern-info-bubble:hover {
    border-color: #82C720;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.info-bubble-content {
    position: relative;
    z-index: 2;
}

.info-bubble-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.info-bubble-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: linear-gradient(135deg, #82C720 0%, #70ad1a 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(130, 199, 32, 0.2);
}

.info-bubble-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    letter-spacing: -0.025em;
}

.info-bubble-body {
    padding-left: 48px;
}

.info-bubble-description {
    margin: 0 0 16px 0;
    font-size: 0.875rem;
    line-height: 1.6;
    color: #475569;
}

.info-bubble-description strong {
    color: #1e293b;
    font-weight: 600;
}

.info-bubble-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: linear-gradient(135deg, #82C720 0%, #70ad1a 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 2px rgba(130, 199, 32, 0.2);
    letter-spacing: -0.025em;
}

.info-bubble-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(130, 199, 32, 0.4);
    background: linear-gradient(135deg, #70ad1a 0%, #5c8f15 100%);
}

.info-bubble-cta:active {
    transform: translateY(0);
}

.info-bubble-cta:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(130, 199, 32, 0.3);
}

.cta-text {
    font-weight: 500;
}

.info-bubble-cta svg {
    transition: transform 0.2s ease;
}

.info-bubble-cta:hover svg {
    transform: translateX(2px);
}

/* Décoration d'arrière-plan subtile */
.info-bubble-bg-decoration {
    position: absolute;
    top: 0;
    right: 0;
    width: 120px;
    height: 100%;
    background: linear-gradient(135deg, transparent 0%, rgba(130, 199, 32, 0.05) 50%, transparent 100%);
    opacity: 0.6;
    z-index: 1;
    border-radius: 0 12px 12px 0;
}

/* État de focus accessible */
.modern-info-bubble:focus-within {
    border-color: #82C720;
    box-shadow: 0 0 0 3px rgba(130, 199, 32, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .modern-info-bubble {
        margin: 20px 0;
        padding: 16px 18px;
    }

    .info-bubble-body {
        padding-left: 0;
        margin-top: 12px;
    }

    .info-bubble-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .info-bubble-description {
        font-size: 0.8rem;
        margin-bottom: 14px;
    }

    .info-bubble-cta {
        font-size: 0.8rem;
        padding: 7px 12px;
        width: 100%;
        justify-content: center;
    }

    .info-bubble-bg-decoration {
        width: 80px;
    }
}

/* Animation d'apparition */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modern-info-bubble {
    animation: slideUp 0.4s ease-out;
}

/* Effet de pulsation subtil sur l'icône */
.info-bubble-icon {
    animation: subtle-pulse 2s ease-in-out infinite;
}

@keyframes subtle-pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

/* ===========================================
   STYLES POUR UPLOAD MULTIPLE DE FICHIERS
   =========================================== */

.uploaded-files-list {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.uploaded-files-header {
    font-weight: 600;
    color: #28a745;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.uploaded-files-header .upload-success-icon {
    font-size: 1.1em;
}

.uploaded-files-items {
    list-style: none;
    padding: 0;
    margin: 0 0 12px 0;
}

.uploaded-file-item {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    margin-bottom: 8px;
    transition: all 0.2s ease;
}

.uploaded-file-item:hover {
    border-color: #007bff;
    box-shadow: 0 2px 4px rgba(0, 123, 255, 0.1);
}

.uploaded-file-item:last-child {
    margin-bottom: 0;
}

.uploaded-file-item .file-icon {
    font-size: 1.3em;
    margin-right: 10px;
    flex-shrink: 0;
}

.uploaded-file-item .file-name {
    flex: 1;
    font-size: 0.9rem;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.uploaded-file-item .file-size {
    font-size: 0.8rem;
    color: #6c757d;
    margin: 0 12px;
    flex-shrink: 0;
}

.uploaded-file-item .btn-remove-file {
    background: #dc3545;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
    padding: 0;
}

.uploaded-file-item .btn-remove-file:hover {
    background: #c82333;
    transform: scale(1.1);
}

.btn-add-more-files {
    display: block;
    width: 100%;
    padding: 10px;
    margin-top: 12px;
    background: transparent;
    border: 2px dashed #007bff;
    border-radius: 6px;
    color: #007bff;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-add-more-files:hover {
    background: rgba(0, 123, 255, 0.05);
    border-color: #0056b3;
    color: #0056b3;
}

/* Responsive pour les fichiers */
@media (max-width: 576px) {
    .uploaded-file-item {
        flex-wrap: wrap;
        padding: 8px 10px;
    }

    .uploaded-file-item .file-name {
        flex-basis: calc(100% - 80px);
        order: 1;
    }

    .uploaded-file-item .file-icon {
        order: 0;
    }

    .uploaded-file-item .btn-remove-file {
        order: 2;
    }

    .uploaded-file-item .file-size {
        flex-basis: 100%;
        order: 3;
        margin: 5px 0 0 30px;
    }
}