@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Poppins:wght@500;600;700&display=swap');

:root {
    /* Palette de couleurs Modern SaaS */
    --primary: #4f46e5;         /* Indigo vibrant */
    --primary-hover: #4338ca;
    --bg-color: #f8fafc;        /* Gris très clair/bleuté pour le fond */
    --surface: #ffffff;         /* Blanc pur pour les cartes */
    --text-main: #0f172a;       /* Gris très foncé pour une lecture douce */
    --text-muted: #64748b;      /* Gris moyen pour les textes secondaires */
    --border-color: #e2e8f0;    /* Bordures subtiles */

    /* Ombres modernes */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.05), 0 2px 4px -2px rgb(0 0 0 / 0.05);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.08), 0 4px 6px -4px rgb(0 0 0 / 0.04);
    --shadow-hover: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.05);

    /* Arrondis */
    --radius-md: 12px;
    --radius-lg: 16px;
}

body {
    background-color: var(--bg-color) !important;
    color: var(--text-main) !important;
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased; /* Rends la police plus nette */
}

h1, h2, h3, h4, h5, h6, .navbar-brand {
    font-family: 'Poppins', sans-serif;
    color: var(--text-main);
    letter-spacing: -0.5px;
}

/* --- Effet Verre Dépoli (Glassmorphism) pour la Navbar --- */
.modern-navbar {
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.modern-navbar .navbar-brand {
    color: var(--primary) !important;
    font-weight: 700;
    font-size: 1.5rem;
}

.modern-navbar .nav-link {
    color: var(--text-muted) !important;
    font-weight: 500;
    transition: color 0.2s ease, transform 0.2s ease;
}

.modern-navbar .nav-link:hover {
    color: var(--primary) !important;
    transform: translateY(-1px);
}

/* --- Boutons Design --- */
.btn-modern {
    background-color: var(--primary) !important; /* Ajout de !important ici */
    color: white !important;
    border: none !important;
    border-radius: 8px;
    padding: 0.6rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(79, 70, 229, 0.2);
}

.btn-modern:hover {
    background-color: var(--primary-hover) !important; /* Et ici */
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(79, 70, 229, 0.3);
}

/* --- Cartes (Formulaires, Tableaux de bord) --- */
.modern-card {
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.modern-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-3px);
}

/* --- Formulaires Premium --- */
.form-control, .form-select {
    border-radius: 8px;
    border: 1px solid var(--border-color);
    padding: 0.75rem 1rem;
    background-color: #f8fafc;
    transition: all 0.2s ease;
    color: var(--text-main);
}

.form-control:focus, .form-select:focus {
    background-color: var(--surface);
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
    outline: none;
}

/* Customisation des boutons "Oui/Non" générés par Symfony/Bootstrap */
.btn-check:checked + .btn-outline-primary {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
    color: white !important;
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.25) !important;
    transform: scale(1.02); /* Petit effet de grossissement quand cliqué */
}
.btn-outline-primary {
    color: var(--primary);
    border-color: var(--border-color);
    transition: all 0.2s ease;
    background-color: white;
}
.btn-outline-primary:hover {
    background-color: #f1f5f9;
    border-color: var(--primary);
}

/* --- Animations --- */
.fade-in-up {
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    transform: translateY(20px);
}

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