/* Styles spécifiques au formulaire d'inscription */
.form-container {
    max-width: 1200px;
    min-height: 70vh;
    margin: 0 auto;
    padding: 40px 20px;
}

.progress-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    position: relative;
    padding: 0 20px;
}

.progress-bar::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 40px;
    right: 40px;
    width: calc(100% - 80px);
    height: 2px;
    background-color: #ddd;
    z-index: 0;
}

.progress-bar-fill {
    position: absolute;
    top: 20px;
    left: 40px;
    height: 2px;
    background-color: var(--blue-primary);
    transition: width 0.3s ease;
    z-index: 1;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
}

.progress-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #ddd;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    transition: all 0.3s ease;
    margin-bottom: 10px;
}

.progress-circle.active {
    background-color: var(--blue-primary);
    color: white;
}

.progress-circle.completed {
    background-color: var(--blue-primary);
    color: white;
}

.progress-label {
    font-size: 0.85rem;
    color: #666;
    text-align: center;
}

.progress-label.active {
    color: var(--blue-primary);
    font-weight: 600;
}

.form-section {
    display: none;
    animation: fadeIn 0.3s ease;
}

.form-section.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--blue-primary);
}

.section-icon {
    font-size: 2rem;
    color: var(--blue-primary);
}

.section-title-form {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--gray-dark);
    margin: 0;
    /*line-height: 1;*/
}

.form-group {
    margin-bottom: 25px;
}

/* Nouvelle classe pour les groupes de champs en ligne */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 0;
}

.form-row .form-group {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--gray-dark);
}

.form-label .required {
    color: var(--red-primary);
}

.form-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--blue-primary);
}

.form-input.error {
    border-color: var(--red-primary);
}

.error-message {
    color: var(--red-primary);
    font-size: 0.85rem;
    margin-top: 5px;
    display: none;
}

.error-message.show {
    display: block;
}

.radio-group, .checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Affichage en ligne sur desktop pour certains groupes */
@media (min-width: 769px) {
    .radio-group.inline-desktop, .checkbox-group.inline-desktop {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .radio-group.inline-desktop .radio-option,
    .checkbox-group.inline-desktop .checkbox-option {
        flex: 0 1 auto;
        min-width: 120px;
    }
}

.radio-option, .checkbox-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.radio-option:hover, .checkbox-option:hover {
    border-color: var(--blue-primary);
    background-color: rgba(32, 141, 204, 0.05);
}

.radio-option input[type="radio"],
.checkbox-option input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.checkbox-option.disabled-option {
    opacity: 0.5;
    cursor: not-allowed;
}

.checkbox-option.disabled-option input[type="checkbox"] {
    cursor: not-allowed;
}

.radio-option.selected {
    border-color: var(--blue-primary);
    background-color: rgba(32, 141, 204, 0.1);
}

.info-box {
    background-color: #e3f2fd;
    border-left: 4px solid var(--blue-primary);
    padding: 15px;
    margin: 20px 0;
    border-radius: 4px;
}

.info-box p {
    margin: 0;
    color: #1565c0;
    font-size: 0.95rem;
}

.warning-box {
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 15px;
    margin: 20px 0;
    border-radius: 4px;
}

.warning-box p {
    margin: 0;
    color: #856404;
    font-size: 0.95rem;
}

.form-actions {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 40px;
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background-color: var(--blue-primary);
    color: white;
}

.btn-primary:hover {
    background-color: #1a7aad;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.textarea {
    min-height: 120px;
    resize: vertical;
    font-family: inherit;
}

.checkbox-validation {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 30px;
    padding: 15px;
    background-color: var(--gray-light);
    border-radius: 5px;
}

.checkbox-validation input[type="checkbox"] {
    margin-top: 3px;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.checkbox-validation label {
    cursor: pointer;
    font-size: 0.95rem;
}

.checkbox-validation a {
    color: var(--blue-primary);
    text-decoration: underline;
}

.type-selection {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.type-card {
    border: 2px solid #ddd;
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.type-card:hover {
    border-color: var(--blue-primary);
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.type-card.selected {
    border-color: var(--blue-primary);
    background-color: rgba(32, 141, 204, 0.1);
}

.type-card-icon {
    font-size: 3rem;
    color: var(--blue-primary);
    margin-bottom: 15px;
}

.type-card-title {
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--gray-dark);
}

.type-card-description {
    font-size: 0.9rem;
    color: #666;
}

@media (max-width: 768px) {
    .progress-bar {
        margin-bottom: 30px;
    }

    .progress-circle {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }

    .progress-label {
        font-size: 0.75rem;
    }

    .section-title-form {
        font-size: 1.2rem;
    }

    .form-actions {
        flex-direction: row;
    }

    .btn {
        flex: 1;
        justify-content: center;
        font-size: 0.9rem;
        padding: 12px 20px;
    }

    .type-selection {
        grid-template-columns: 1fr;
    }
    
    /* Sur mobile, les form-row redeviennent une seule colonne */
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

@media (max-width: 480px) {
    .form-container {
        padding: 20px 10px;
    }

    .progress-circle {
        width: 30px;
        height: 30px;
        font-size: 0.85rem;
    }

    .section-icon {
        font-size: 1.5rem;
    }
}

/* ==================== MODALES ==================== */

.modale-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modale-overlay.active {
    opacity: 1;
}

.modale-container {
    background: var(--white);
    border-radius: 20px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    text-align: center;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modale-overlay.active .modale-container {
    transform: scale(1);
}

.modale-icon {
    font-size: 80px;
    margin-bottom: 20px;
}

.modale-succes .modale-icon {
    color: #28a745;
    animation: successPulse 0.6s ease;
}

.modale-erreur .modale-icon {
    color: var(--red-primary);
    animation: errorShake 0.5s ease;
}

@keyframes successPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes errorShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.modale-titre {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--gray-dark);
}

.modale-succes .modale-titre {
    color: #28a745;
}

.modale-erreur .modale-titre {
    color: var(--red-primary);
}

.modale-message {
    font-size: 16px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 30px;
}

.modale-btn {
    padding: 15px 35px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.modale-btn i {
    font-size: 18px;
}

.modale-btn-primary {
    background: linear-gradient(135deg, var(--blue-primary) 0%, #1a6fa3 100%);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(32, 141, 204, 0.3);
}

.modale-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(32, 141, 204, 0.4);
    background: linear-gradient(135deg, #1a6fa3 0%, var(--blue-primary) 100%);
}

.modale-btn-secondary {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    color: var(--white);
    box-shadow: var(--shadow);
}

.modale-btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 117, 125, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
    .modale-container {
        padding: 30px 20px;
        width: 95%;
    }
    
    .modale-icon {
        font-size: 60px;
    }
    
    .modale-titre {
        font-size: 24px;
    }
    
    .modale-message {
        font-size: 14px;
    }
    
    .modale-btn {
        padding: 12px 25px;
        font-size: 14px;
    }
}

/* Animation de fond pour le succès */
.modale-succes::before {
    content: '';
    position: absolute;
    top: -100px;
    left: -100px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(40, 167, 69, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 3s ease-in-out infinite;
}

.modale-succes::after {
    content: '';
    position: absolute;
    bottom: -100px;
    right: -100px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(40, 167, 69, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 3s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translateY(0) translateX(0); }
    50% { transform: translateY(-20px) translateX(20px); }
}

/* Position relative pour les pseudo-éléments */
.modale-container {
    position: relative;
    overflow: hidden;
}