:root {
    --primary-color: #faa61f;
    --primary-dark: #e8951c;
    --primary-light: #fbb44a;
    --secondary-color: #f093fb;
    --accent-color: #4facfe;
    --success-color: #00d4aa;
    --warning-color: #ffd700;
    --danger-color: #ff6b6b;
    --text-dark: #2c3e50;
    --text-light: #ffffff;
    --text-muted: #6c757d;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.15);
    --shadow-xl: 0 20px 40px rgba(0,0,0,0.2);
    --border-radius: 16px;
    --border-radius-lg: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
}

@font-face {
    font-family: 'Abel';
    src: url('../font/Abel.ttf');
}

@font-face {
    font-family: 'Cairo';
    src: url('../font/Cairo.ttf');
}

body {
    
    background-attachment: fixed;
    min-height: 100vh;
    font-family: 'Abel', 'cairo';
    color: var(--text-dark);
    margin: 0;
    padding: 0;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(250, 166, 31, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(251, 180, 74, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(250, 166, 31, 0.2) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

.container-fluid {
    padding: 20px;
}

.form-container {
    background: var(--bg-white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    margin: 0 auto;
    max-width: 1200px;
    position: relative;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
}

.form-header {
    background: url('../img/inscription3.jpg');
    background-size: cover;
    background-position: center;
    background-blend-mode: overlay;
    color: var(--text-light);
    padding: 60px 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 200px;
}

.form-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, hwb(37 12% 2% / 0.385) 0%, rgba(251, 180, 74, 0.7) 100%);
    z-index: 1;
}

.form-header::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
}

@keyframes headerGlow {
    0% { transform: scale(0.8) rotate(0deg); opacity: 0.3; }
    100% { transform: scale(1.2) rotate(10deg); opacity: 0.1; }
}

.form-header h2 {
    margin: 0;
    font-weight: 800;
    font-size: 2rem;
    position: relative;
    z-index: 3;
    text-shadow: 0 4px 8px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    text-shadow: 
        0 4px 8px rgba(0,0,0,0.5),    /* Ombre principale */
        0 2px 4px rgba(0,0,0,0.3),    /* Ombre secondaire */
        0 1px 2px rgba(0,0,0,0.8);    /* Ombre de contour */
}

.form-header h2 i {
    font-size: 2.5rem;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

.form-header p {
    margin: 15px 0 0 0;
    font-weight: 600;
    font-size: 1.2rem;
    position: relative;
    z-index: 3;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
     text-shadow: 
        0 3px 6px rgba(0,0,0,0.4),    /* Ombre principale */
        0 1px 3px rgba(0,0,0,0.2),    /* Ombre secondaire */
        0 1px 1px rgba(0,0,0,0.6);    /* Ombre de contour */
}

.alert {
    border: none;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.alert::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
}

.alert-info {
    background: linear-gradient(135deg, rgba(250, 166, 31, 0.1) 0%, rgba(251, 180, 74, 0.1) 100%);
    color: var(--text-dark);
    border: 1px solid rgba(250, 166, 31, 0.2);
}

.alert-info::before {
    background: linear-gradient(180deg, var(--primary-color), var(--primary-light));
}

.alert-danger {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.1) 0%, rgba(255, 107, 107, 0.05) 100%);
    color: var(--text-dark);
    border: 1px solid rgba(255, 107, 107, 0.2);
}

.alert-danger::before {
    background: var(--danger-color);
}

.progress-container {
    background: var(--bg-white);
    padding: 30px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    position: relative;
    margin-bottom: 20px; /* espace sous la timeline */
}

.steps {
    display: flex;
    justify-content: space-between; /* espace automatique entre chaque étape */
    align-items: center;
    margin-bottom: 25px;
    position: relative;
    gap: 0; /* le spacing est géré par space-between */
    padding: 0 30px; /* marge interne pour ne pas coller les bords */
}

.steps::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: calc(100% - 60px);
    height: 4px;
    background: linear-gradient(90deg, #e9ecef 0%, #e9ecef 100%);
    border-radius: 2px;
    z-index: 1;
    transition: var(--transition);
}

.steps.step-1-complete::before {
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--primary-color) 50%, #e9ecef 50%, #e9ecef 100%);
}

.steps.step-2-complete::before {
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--primary-color) 100%);
}

.circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    position: relative;
    z-index: 2;
    transition: var(--transition);
    border: 3px solid transparent;
    box-shadow: var(--shadow-md);
}

.circle.active {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: var(--text-light);
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(250, 166, 31, 0.5), var(--shadow-lg);
    animation: circleGlow 2s ease-in-out infinite alternate;
}

@keyframes circleGlow {
    0% { box-shadow: 0 0 20px rgba(250, 166, 31, 0.4), var(--shadow-lg); }
    100% { box-shadow: 0 0 40px rgba(250, 166, 31, 0.6), var(--shadow-lg); }
}

.circle.completed {
    background: linear-gradient(135deg, var(--success-color) 0%, #00c9a7 100%);
    color: transparent; /* Masquer le numéro pour éviter les caractères superposés */
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(0, 212, 170, 0.4), var(--shadow-lg);
}

.circle.completed::after {
    content: '\2713'; /* checkmark en échappement Unicode pour éviter les caractères "âœ"" */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--text-light);
    font-size: 24px;
    font-weight: 900;
}

.step-labels {
    display: flex;
    justify-content: space-between; /* aligner sous chaque cercle */
    gap: 0;
    margin-top: 15px;
    padding: 0 30px;
}

.step-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    text-align: center;
    transition: var(--transition);
    position: relative;
}

.step-label.active {
    color: var(--primary-color);
    font-weight: 700;
}

.step-label.completed {
    color: var(--success-color);
}

.form-content {
    padding: 50px;
    background: var(--bg-white);
}

.step {
    display: none;
}

.step.active {
    display: block;
    animation: slideInRight 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideInRight {
    from { 
        opacity: 0; 
        transform: translateX(50px); 
    }
    to { 
        opacity: 1; 
        transform: translateX(0); 
    }
}

.step-title {
    color: transparent;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    font-size: 23px;
    font-weight: 800;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
}

.step-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.subtitle-fr {
    font-family: "Cairo", 'Nunito', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-top: 6px;
}

.form-floating {
    position: relative;
    margin-bottom: 25px;
}

.form-control, .form-select {
    border: 2px solid #CCC;
    border-radius: var(--border-radius);
    padding: 20px 20px;
    font-size: 16px;
    font-weight: 500;
    /* transition: var(--transition);
    background: linear-gradient(var(--bg-light), var(--bg-light)) padding-box,
                linear-gradient(135deg, transparent, transparent) border-box; */
    box-shadow: var(--shadow-sm);
    width: 100%;
    position: relative;
}

.form-control:focus, .form-select:focus {
    outline: none;
    border: 2px solid #CCC;
    /* background: linear-gradient(white, white) padding-box,
                linear-gradient(135deg, var(--primary-color), var(--secondary-color)) border-box;
    box-shadow: 0 0 0 4px rgba(250, 166, 31, 0.1), var(--shadow-md); */
    /* transform: translateY(-2px); */
}

.form-control.is-invalid, .form-select.is-invalid {
    background: linear-gradient(#fff5f5, #fff5f5) padding-box,
                linear-gradient(135deg, var(--danger-color), #ff5252) border-box;
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.form-label {
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
    font-size: 15px;
    display: block;
}

.form-group {
    position: relative;
    margin-bottom: 30px;
}

.form-group::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* background: linear-gradient(135deg, rgba(250, 166, 31, 0.02) 0%, rgba(251, 180, 74, 0.02) 100%); */
    border-radius: var(--border-radius);
    pointer-events: none;
    opacity: 0;
    /* transition: var(--transition); */
}

.form-group:hover::before {
    opacity: 1;
}

.nextprev {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    border: none;
    border-radius: 50px;
    padding: 16px 32px;
    font-weight: 700;
    font-size: 16px;
    color: var(--text-light);
    transition: var(--transition);
    cursor: pointer;
    margin: 0 8px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    min-width: 140px;
}

.nextprev::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: var(--transition);
}

.nextprev:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 30px rgba(250, 166, 31, 0.4);
}

.nextprev:hover::before {
    left: 100%;
}

.nextprev:active {
    transform: translateY(-1px) scale(0.98);
}

.nextprev:disabled {
    background: linear-gradient(135deg, var(--text-muted) 0%, #8e9aaf 100%);
    cursor: not-allowed;
    transform: none;
    box-shadow: var(--shadow-sm);
}

.form-navigation {
    display: flex;
    justify-content: center; /* centrer les boutons */
    align-items: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(0,0,0,0.06);
    text-align: center;
}

/* Annuler le float inline des wrappers de boutons et centrer */
.form-navigation > div {
    float: none !important;
    width: 100%;
    text-align: center;
}

.form-navigation .nextprev {
    margin: 8px 3px; /*  10px  */
}

.navigation-left {
    flex: 1;
}

.navigation-right {
    flex: 1;
    text-align: right;
}

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

/* File Upload Styles */
.file-upload-container {
    position: relative;
    margin-bottom: 30px;
}

.file-upload-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.file-upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 160px;
    padding: 30px;
    border: 2px dashed #CCC;
    border-radius: var(--border-radius);
    /* background: linear-gradient(var(--bg-light), var(--bg-light)) padding-box, */
                /* linear-gradient(135deg, rgba(250, 166, 31, 0.3), rgba(240, 147, 251, 0.3)) border-box; */
    cursor: pointer;
    /* transition: var(--transition); */
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* .file-upload-label::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
     border: 1px dashed #CCC;
    /* transition: var(--transition); */
/* } */ */

.file-upload-label:hover {
    /* transform: translateY(-5px); */
    /* box-shadow: var(--shadow-lg); */
     border: 1px dashed #CCC;
}

.file-upload-label:hover::before {
    left: 100%;
}

.file-upload-label.dragover {
    /* transform: scale(1.02); */
    border: 1px dashed #CCC;
    /* animation: dragPulse 1s ease-in-out infinite alternate; */
}

@keyframes dragPulse {
    0% { box-shadow: 0 0 20px rgba(250, 166, 31, 0.3); }
    100% { box-shadow: 0 0 40px rgba(250, 166, 31, 0.6); }
}

.file-upload-icon {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 15px;
    transition: var(--transition);
}

.file-upload-label:hover .file-upload-icon {
    transform: scale(1.1) rotate(5deg);
    color: var(--primary-light);
}

.file-upload-text {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.file-upload-subtext {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
}

.file-upload-info {
    margin-top: 20px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(250, 166, 31, 0.05) 0%, rgba(240, 147, 251, 0.05) 100%);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.file-preview {
    margin-top: 20px;
    padding: 20px;
    background: linear-gradient(135deg, var(--bg-light) 0%, #f1f3f4 100%);
    border-radius: var(--border-radius);
    border: 1px solid rgba(250, 166, 31, 0.1);
    display: none;
    box-shadow: var(--shadow-sm);
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.file-preview.show {
    display: block;
}

.file-preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.file-preview-view {
    background: linear-gradient(135deg, var(--accent-color) 0%, #68a6ff 100%);
    border: none;
    color: white;
    cursor: pointer;
    font-size: 14px;
    padding: 8px 12px;
    border-radius: 50px;
    font-weight: 700;
    transition: var(--transition);
    margin-right: 8px;
}

.file-preview-view:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(79, 172, 254, 0.4);
}

.file-preview-name {
    font-weight: 600;
    color: var(--text-dark);
    word-break: break-all;
    max-width: 80%;
}

.file-preview-size {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

.file-preview-remove {
    background: linear-gradient(135deg, var(--danger-color) 0%, #ff5252 100%);
    border: none;
    color: white;
    cursor: pointer;
    font-size: 16px;
    padding: 8px 12px;
    border-radius: 50px;
    font-weight: 700;
    transition: var(--transition);
}

.file-preview-remove:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
}

/* Success Message */
.success-message {
    text-align: center;
    padding: 60px 30px;
    background: linear-gradient(135deg, rgba(0, 212, 170, 0.05) 0%, rgba(0, 201, 167, 0.1) 100%);
    border-radius: var(--border-radius);
    margin: 20px 0;
}

.success-message i {
    font-size: 80px;
    color: var(--success-color);
    margin-bottom: 25px;
    animation: successBounce 1s ease-out;
}

@keyframes successBounce {
    0% { transform: scale(0) rotate(180deg); }
    50% { transform: scale(1.2) rotate(10deg); }
    100% { transform: scale(1) rotate(0deg); }
}

.form-check-label {
    font-weight: 500;
    color: var(--text-dark);
    cursor: pointer;
}

/* Modal Styles */
.modal-content {
    border: none;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
    backdrop-filter: blur(10px);
}

.modal-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: var(--text-light);
    border: none;
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
    padding: 25px 30px;
}

.modal-title {
    font-weight: 700;
}

.btn-close {
    filter: invert(1) brightness(2);
    opacity: 0.8;
    transition: var(--transition);
}

.btn-close:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .form-container {
        margin: 10px;
        border-radius: var(--border-radius);
    }
    
    .form-content {
        padding: 30px 20px;
    }
    
    .form-header {
        padding: 40px 20px;
        min-height: 160px;
    }
    
    .form-header h2 {
        font-size: 1.6rem;
        flex-direction: column;
        gap: 10px;
    }
    
    .form-header h2 i {
        font-size: 2rem;
    }
    
    .form-header p {
        font-size: 1rem;
    }
    
    .steps {
        gap: 50px;
    }
    
    .step-labels {
        gap: 50px;
        flex-wrap: wrap;
    }
    
    .step-title {
        font-size: 1.5rem;
    }
    
    .circle {
        width: 50px;
        height: 50px;
        font-size: 16px;
    }
    
    .form-navigation {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .navigation-left,
    .navigation-right,
    .navigation-center {
        flex: none;
        text-align: center;
        width: 100%;
    }
    
    .nextprev {
        width: 100%;
        max-width: 280px;
        margin: 5px 0;
        padding: 18px 24px;
        font-size: 16px;
    }
}

@media (max-width: 576px) {
    .form-header {
        padding: 30px 15px;
        min-height: 140px;
    }
    
    .form-header h2 {
        font-size: 1.4rem;
    }
    
    .form-header h2 i {
        font-size: 1.6rem;
    }
    
    .form-header p {
        font-size: 0.95rem;
    }
    
    .form-content {
        padding: 25px 15px;
    }
    
    .steps {
        gap: 30px;
    }
    
    .step-labels {
        gap: 30px;
        font-size: 12px;
    }
    
    .circle {
        width: 45px;
        height: 45px;
        font-size: 14px;
    }
    
    .file-upload-label {
        min-height: 120px;
        padding: 20px;
    }
    
    .file-upload-icon {
        font-size: 36px;
    }
    
    .nextprev {
        max-width: 100%;
        padding: 20px 24px;
        font-size: 17px;
        font-weight: 600;
        border-radius: 12px;
    }
    
    .step-title {
        font-size: 1.3rem;
    }
    
    .alert {
        margin: 15px;
        padding: 15px;
        font-size: 14px;
    }
}

/* Utilities */
.hide {
    display: none !important;
}

.required {
    color: var(--danger-color);
    font-weight: 700;
}

/* Loading Animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
}

/* Styles pour les champs valides (bordure verte) */
.form-control.is-valid, 
.form-select.is-valid {
    border: 2px solid var(--success-color);
    background: linear-gradient(#f0fff4, #f0fff4) padding-box,
                linear-gradient(135deg, var(--success-color), #00c9a7) border-box;
    box-shadow: 0 0 0 3px rgba(0, 212, 170, 0.15);
    transition: var(--transition);
}

.form-control.is-valid:focus, 
.form-select.is-valid:focus {
    border: 2px solid var(--success-color);
    box-shadow: 0 0 0 4px rgba(0, 212, 170, 0.25);
    outline: none;
}

/* Animation d'apparition de la bordure verte */
@keyframes validPulse {
    0% { 
        box-shadow: 0 0 0 0 rgba(0, 212, 170, 0.4); 
    }
    70% { 
        box-shadow: 0 0 0 6px rgba(0, 212, 170, 0); 
    }
    100% { 
        box-shadow: 0 0 0 0 rgba(0, 212, 170, 0); 
    }
}

.form-control.is-valid, 
.form-select.is-valid {
    animation: validPulse 0.6s ease-out;
}

/* Icône de validation pour les champs valides */
.form-group.valid::after {
    content: none;
}

@keyframes checkmarkAppear {
    0% { 
        opacity: 0; 
        transform: translateY(-50%) scale(0); 
    }
    50% { 
        transform: translateY(-50%) scale(1.2); 
    }
    100% { 
        opacity: 1; 
        transform: translateY(-50%) scale(1); 
    }
}

/* Style pour les labels des champs valides */
.form-group.valid .form-label {
    color: var(--success-color);
    transition: var(--transition);
}

/* Bordure verte pour les zones de upload de fichiers valides */
.file-upload-container.valid .file-upload-label {
    border: 2px solid var(--success-color);
    background: linear-gradient(rgba(0, 212, 170, 0.05), rgba(0, 212, 170, 0.05)) padding-box;
    animation: validPulse 0.6s ease-out;
}

.file-upload-container.valid .file-upload-icon {
    color: var(--success-color);
}

/* Cases à cocher valides */
/*.form-check-input.is-valid {
    background: linear-gradient(135deg, var(--success-color) 0%, #00c9a7 100%);
    border-color: var(--success-color);
    box-shadow: 0 0 8px rgba(0, 212, 170, 0.3);
}*/

/*.form-check-input.is-valid:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: 700;
    font-size: 6px;
}*/

/* Responsive pour mobile */
@media (max-width: 768px) {
    .form-group.valid::after {
        right: 12px;
        font-size: 16px;
    }
}

/* Styles pour les alertes personnalisées */

/* Overlay pour les alertes */
.custom-alert-overlay,
.loading-alert-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.custom-alert-overlay.show,
.loading-alert-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* Alerte personnalisée */
.custom-alert {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    transform: scale(0.8);
    transition: transform 0.3s ease;
    overflow: hidden;
}

.custom-alert-overlay.show .custom-alert {
    transform: scale(1);
}

.custom-alert-header {
    background: linear-gradient(135deg, #00d4aa, #4facfe);
    color: white;
    padding: 20px;
    text-align: center;
    position: relative;
}

.custom-alert-header i {
    font-size: 3rem;
    margin-bottom: 10px;
    display: block;
}

.custom-alert-header h4 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.custom-alert-body {
    padding: 30px 20px;
    text-align: center;
}

.custom-alert-body p {
    margin: 10px 0;
    font-size: 1.1rem;
    color: #333;
}

.custom-alert-footer {
    padding: 20px;
    display: flex;
    gap: 10px;
    justify-content: center;
    background: #f8f9fa;
}

.custom-alert-footer .btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.custom-alert-footer .btn-success {
    background: #00d4aa;
    color: white;
}

.custom-alert-footer .btn-success:hover {
    background: #00b894;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 212, 170, 0.3);
}

.custom-alert-footer .btn-secondary {
    background: #6c757d;
    color: white;
}

.custom-alert-footer .btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

/* Alerte de chargement */
.loading-alert {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    padding: 40px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.loading-alert-overlay.show .loading-alert {
    transform: scale(1);
}

.loading-alert .spinner-border {
    width: 3rem;
    height: 3rem;
    margin-bottom: 20px;
}

.loading-alert h5 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 1.3rem;
}

.loading-alert p {
    margin: 0;
    color: #666;
    font-size: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .custom-alert,
    .loading-alert {
        width: 95%;
        margin: 20px;
    }
    
    .custom-alert-footer {
        flex-direction: column;
    }
    
    .custom-alert-footer .btn {
        width: 100%;
        justify-content: center;
    }
}