/* ===== POLICES GLOBALES ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --accent-color: #38d9a9;
    --accent-hover: #20c997;
    --text-dark: #2d3748;
    --text-light: #718096;
    --border-color: #e2e8f0;
    --success-color: #48bb78;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

/* Appliquer la police à tous les éléments */
body {
    font-family: var(--font-family) !important;
    background: var(--primary-gradient);
    min-height: 100vh;
    padding: 20px 0;
}

/* ===== PROGRESS BAR MULTI-ÉTAPES ===== */
.multi-step-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    /* background: #667eea; */
    background: #667eea;
    padding: 0.5rem 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.container.mt-4 {



    margin-top: 100px !important; /* Espace pour la progress bar fixe */

}

.progress-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.progress-bar-container {
    position: relative;
    height: 4px;
    background: var(--border-color);
    border-radius: 3px;
    margin: 0 40px;
    overflow: hidden;
}

.progress-bar-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #e2e8f0;
}

.progress-bar-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: var(--accent-color);
    border-radius: 3px;
    transition: var(--transition);
    background: linear-gradient(90deg, var(--accent-color), #4fd1c7);
}

.step-indicators {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-top: -12px;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
}

.step-circle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: white;
    border: 3px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.8rem; /* texte du chiffre plus petit */
    color: var(--text-light);
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.step.active .step-circle {
    border-color: var(--accent-color);
    background: var(--accent-color);
    color: white;
    transform: scale(1.1);
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
}

.step.completed .step-circle {
    border-color: var(--accent-color);
    background: var(--accent-color);
    color: white;

}

.step.completed .step-circle::after {
    content: '✓';
    font-weight: bold;
    color: white;
}

.step.completed .step-label {

    color: lime;

}

.step-label {
    margin-top: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    color: white;
    transition: var(--transition);
}

.step.active .step-label {
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
}

/* ===== CARTES ET FORMULAIRES ===== */
.card {

    border: none;
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
    transition: var(--transition);
    min-height: 600px
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px rgba(0,0,0,0.15);
}



.card-body {
    max-height: 75vh;
    overflow-y: auto;
    padding: 1.5rem !important; /* au lieu de 2-3rem */

.welcome-list {
    list-style-type: disc;
    padding-left: 20px; /* espace pour les puces */
    margin: 0;
    text-align: left; /* force l'alignement à gauche */
}

.welcome-list li {
    margin-bottom: 10px;
    font-size: 1rem;
    color: #333;
}


}
.card.text-center {
    padding: 2rem !important; /* Réduit le padding interne */
}

.card-header {
    border-radius: 20px 20px 0 0 !important;
    background: linear-gradient(135deg, #6b7280, #4b5563) !important; /* Gris */
    border: none;
    padding: 1rem  !important;
}

.card-header h1 {
font-size: 2rem !important; /* réduit la police */
    font-family: var(--font-family) !important;
    font-weight: 500 !important;
    color: white !important; /* Assurer que le texte reste blanc */
}

/* ===== CHAMPS DE FORMULAIRE AVEC ICÔNES ===== */
.input-group {
    transition: var(--transition);
}

/* Styles spécifiques pour le texte */
.card-header h1 {
    font-family: var(--font-family) !important;
    font-weight: 600 !important;
}

.input-group-text {
    background: white;
    border: 2px solid var(--border-color);
    border-right: none;
    border-radius: 12px 0 0 12px !important;
    color: var(--text-light);
    transition: var(--transition);
}

.form-control {
    font-family: var(--font-family) !important;
    border-radius: 0 12px 12px 0 !important;
    border: 2px solid var(--border-color);
    border-left: none;
    transition: var(--transition);
    font-size: 1rem;
    padding: 10px 14px;
}

.form-control:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.2rem rgba(56, 217, 169, 0.25);
    transform: translateY(-2px);
}

.form-control:focus + .input-group-text {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

/* ===== BOUTONS AMÉLIORÉS ===== */
.btn {
    font-family: var(--font-family) !important;
    border-radius: 12px;
    font-size: 1.1rem;
    padding: 14px 32px;
    border: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-color), #4fd1c7);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, var(--accent-hover), #38b2ac);
}

.btn-outline-secondary {
    border: 2px solid var(--border-color);
    color: var(--text-light);
}

.btn-outline-secondary:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    background: transparent;
    transform: translateY(-2px);
}

/* ===== BOUTON AVEC SPINNER INTÉGRÉ ===== */
.btn-with-loader {
    position: relative;
}

.btn-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: var(--transition);
}

.btn-spinner .spinner {
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.btn.loading .btn-text {
    opacity: 0;
}

.btn.loading .btn-spinner {
    opacity: 1;
}

/* ===== CHECKBOXES ET RADIOS STYLISÉS ===== */
.form-check-input {
    width: 1.3em;
    height: 1.3em;
    margin-top: 0.3rem !important;
    border: 2px solid var(--border-color);
    transition: var(--transition);
    cursor: pointer;
}

.form-check-input:checked {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    transform: scale(1.1);
}

.form-check-input:focus {
    box-shadow: 0 0 0 0.2rem rgba(56, 217, 169, 0.25);
    border-color: var(--accent-color);
}

.form-check-label {
    cursor: pointer;
    transition: var(--transition);
}

.form-check:hover .form-check-label {
    color: var(--text-dark);
}

/* ===== OVERLAY DE CHARGEMENT AMÉLIORÉ ===== */
.loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    z-index: 9999;
}

.loading-overlay .loading-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    min-width: 300px;
    max-width: 90%;
}

.loading-overlay .spinner-border {
    width: 3rem;
    height: 3rem;
    border-width: 0.2em;
    color: var(--accent-color);
}

.loading-overlay .loading-text {
    font-size: 1.3rem;
    font-weight: 600;
    margin-top: 1.5rem;
    color: var(--text-dark);
}

.loading-overlay .loading-subtext {
    font-size: 1rem;
    margin-top: 0.5rem;
    color: var(--text-light);
}

/* ===== ANIMATIONS DE TRANSITION ENTRE PAGES ===== */
.page-transition-enter {
    opacity: 0;
    transform: translateY(20px);
}

.page-transition-enter-active {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.4s, transform 0.4s;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .step-label {
        font-size: 0.8rem;
    }

    .step-circle {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }

    .progress-bar-container {
        margin: 0 20px;
    }

    .card-header {
        padding: 1.5rem !important;
    }

    .btn {
        padding: 12px 24px;
        font-size: 1rem;
    }
}

/* ===== EFFETS DE SURVOL ===== */
.form-control:hover {
    border-color: #cbd5e0;
}

.btn-hover {
    transition: var(--transition);
}

.btn-hover:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ===== ÉTATS DE VALIDATION ===== */
.form-control.is-valid {
    border-color: var(--success-color);
}

.form-control.is-invalid {
    border-color: #e53e3e;
}
/* Styles pour le texte de bienvenue (page consentement) */
.welcome-content {
    font-family: var(--font-family) !important;
    text-align: center;
    line-height: 1.7;
}

.welcome-title {
    font-size: 2.4rem !important;
    font-weight: 700 !important;
    margin-bottom: 2rem !important;
    color: #2d3748;
    line-height: 1.3;
    font-family: var(--font-family) !important;
}

.welcome-subtitle {
    font-size: 1.5rem !important;
    font-weight: 500 !important;
    margin-bottom: 2rem !important;
    color: #4a5568;
    font-family: var(--font-family) !important;
}

.welcome-text {

    margin: 0 !important;
    padding: 0 !important;

    display: block;

    width: 100% !important;    /* force la largeur */
    white-space: normal;       /* évite les retours forcés */

    font-size: 1.3rem !important;
    font-weight: 400;
    color: #718096;
    text-align: justify;
    text-justify: inter-word;
    max-width: auto;


    font-family: var(--font-family) !important;
}

.welcome-highlight {
    color: #667eea;
    font-weight: 600;
}

.consent-label {
    font-size: 1.25rem !important;
    line-height: 1.6 !important;
    text-align: left;
    font-weight: 500;
    font-family: var(--font-family) !important;
}
2. Mettre à jour la template Page 1
Ajoutez simplement l'import de la police dans le