@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    --font-main: 'Plus Jakarta Sans', sans-serif;
    --primary-glow: #6366f1;
    --secondary-glow: #ec4899;
    --bg-dark: #0f172a;
    --text-main: #1e293b;
    --glass-border: rgba(255, 255, 255, 0.5);
    --glass-bg: rgba(255, 255, 255, 0.7);
    --card-shadow: 0 20px 40px -10px rgba(0,0,0,0.05);
}

body {
    font-family: var(--font-main);
    background-color: #f8fafc;
    color: var(--text-main);
    overflow-x: hidden;
    position: relative;
}

/* --- FOND ANIMÉ (AURORA) --- */
.aurora-bg {
    position: fixed;
    top: 0; left: 0; right: 0; height: 100vh;
    z-index: -1;
    overflow: hidden;
    background: radial-gradient(circle at 0% 0%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 100% 0%, rgba(236, 72, 153, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 100% 100%, rgba(56, 189, 248, 0.1) 0%, transparent 50%);
    filter: blur(60px);
}

/* --- NAVBAR FLOTTANTE --- */
.navbar-ultra {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    margin-top: 1.5rem;
    padding: 0.8rem 1.5rem;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
}

/* Navbar Links Hover Effect */
.hover-bg-light:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: #000 !important;
    transition: all 0.2s ease;
}

/* --- MARQUEE INFINI --- */
.marquee-wrapper {
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-content {
    display: inline-flex;
    gap: 4rem;
    animation: scroll 30s linear infinite;
    padding: 1rem 0;
}

.marquee-item {
    font-weight: 600;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@keyframes scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* --- TEXTE & UTILITAIRES --- */
.text-gradient {
    background: linear-gradient(135deg, #1e293b 0%, #4f46e5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-primary-light {
    color: #818cf8;
}

/* --- CARTES ULTRA --- */
.card-ultra {
    background: rgba(255, 255, 255, 0.7); /* Plus opaque */
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 24px;
    box-shadow: var(--card-shadow);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}

/* MODIFICATION : On désactive l'effet de saut au survol */
.card-ultra:hover {
    box-shadow: 0 30px 60px -12px rgba(79, 70, 229, 0.15);
    background: rgba(255, 255, 255, 0.95);
    border-color: #e0e7ff;
    transform: none !important;
}

.shadow-2xl {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* --- BOUTONS --- */
.btn-glow {
    background: #111827;
    color: white;
    border-radius: 100px;
    padding: 12px 32px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 0 0 0 rgba(79, 70, 229, 0.7);
    border: 1px solid transparent;
}

.btn-glow:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px -5px rgba(79, 70, 229, 0.4);
    background: #1f2937;
    color: white;
}

.glow-hover {
    transition: all 0.3s ease;
}
.glow-hover:hover {
    box-shadow: 0 0 20px rgba(79, 70, 229, 0.6);
    transform: translateY(-2px);
}

.btn-glass {
    background: white;
    color: #1f2937;
    border: 1px solid #e5e7eb;
    border-radius: 100px;
    padding: 12px 32px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-glass:hover {
    background: #f9fafb;
    border-color: #d1d5db;
    transform: scale(1.05);
}

/* --- ANIMATIONS ENTREE (Conservées mais désactivées dans le HTML si souhaité) --- */
.fade-up {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    transform: translateY(30px);
}
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }

@keyframes fadeInUp {
    to { opacity: 1; transform: translateY(0); }
}

/* --- FORMULAIRES (MODIFIÉS : Plus solides) --- */
.form-control, .form-select {
    background-color: #ffffff; /* Fond blanc solide */
    border: 2px solid #e2e8f0; /* Bordure plus visible */
    border-radius: 12px;
    padding: 0.8rem 1rem;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    color: var(--text-main);
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.form-control:focus, .form-select:focus {
    background-color: #fff;
    border-color: var(--primary-glow);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
    outline: none;
}

/* Floating Inputs Overrides */
.form-floating > .form-control {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    height: 3.5rem;
    line-height: 1.25;
}
.form-floating > .form-control:focus {
    background-color: #fff;
    border-color: #6366f1;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}
.form-floating > label {
    color: #64748b;
}

.form-label {
    font-weight: 700;
    font-size: 0.9rem;
    color: #334155;
    margin-bottom: 0.5rem;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* --- STYLES CHECKBOX & RADIO (MODIFIÉS) --- */
.form-check-input {
    width: 1.3em;
    height: 1.3em;
    margin-top: 0.15em;
    border: 2px solid #cbd5e1;
    cursor: pointer;
    background-color: white;
}

.form-check-input:checked {
    background-color: var(--primary-glow);
    border-color: var(--primary-glow);
}

.form-check-label {
    font-weight: 500;
    color: #475569;
    cursor: pointer;
    margin-left: 0.5rem;
}

/* Toggle Switch */
.form-switch .form-check-input {
    width: 3em;
    height: 1.5em;
    border-radius: 2em;
    cursor: pointer;
}
.form-switch .form-check-input:checked {
    background-color: #4f46e5;
    border-color: #4f46e5;
}

/* Modalités (Zone de texte conditionnelle) */
.modalite-section {
    transition: all 0.3s ease;
    border-left: 3px solid #4f46e5;
    padding-left: 1.5rem;
    margin-top: 1rem;
    background: #f8fafc;
    border-radius: 0 12px 12px 0;
    padding: 1.5rem;
}

/* Erreurs de validation */
.is-invalid {
    border-color: #dc3545 !important;
    background-image: none !important;
}

/* Section Icons */
.section-icon { width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; border-radius: 12px; font-size: 1.25rem; }
label.required:after { content: " *"; color: #dc3545; margin-left: 0.25rem; }

/* --- ONGLETS (Pills) --- */
.nav-pills .nav-link {
    border-radius: 12px;
    padding: 1rem 1.5rem;
    color: #64748b;
    font-weight: 600;
    transition: all 0.3s ease;
}

.nav-pills .nav-link.active {
    background-color: #1e293b;
    color: white;
    box-shadow: 0 10px 20px -5px rgba(30, 41, 59, 0.3);
}

.nav-pills .nav-link:hover:not(.active) {
    background-color: rgba(255, 255, 255, 0.5);
    color: var(--primary-glow);
}

/* --- BENTO GRID HOVER --- */
.group:hover .bg-opacity-10 {
    background-color: var(--primary-glow) !important;
    color: white !important;
    transition: all 0.3s ease;
}

/* --- TABLES --- */
.table-hover tbody tr:hover {
    background-color: rgba(79, 70, 229, 0.03);
}

/* --- STEPPER / TIMELINE (Ajouté) --- */
.stepper-wrapper {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    position: relative;
}
.stepper-wrapper::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #e9ecef;
    z-index: 0;
}
.stepper-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    z-index: 1;
}
.stepper-item .step-counter {
    width: 35px;
    height: 35px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background: #fff;
    border: 3px solid #e9ecef;
    color: #6c757d;
    font-weight: bold;
    margin-bottom: 6px;
    transition: all 0.3s ease;
}
.stepper-item .step-name {
    font-size: 0.85rem;
    color: #6c757d;
    font-weight: 500;
    text-align: center;
}
.stepper-item.completed .step-counter {
    background-color: #198754;
    border-color: #198754;
    color: #fff;
}
.stepper-item.active .step-counter {
    background-color: #fff;
    border-color: #0d6efd;
    color: #0d6efd;
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.2);
}
.stepper-item.active .step-name {
    color: #0d6efd;
    font-weight: bold;
}
.stepper-item.rejected .step-counter {
    background-color: #dc3545;
    border-color: #dc3545;
    color: white;
}
