@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&display=swap');

:root {
    /* Variables du thème global (Clair par défaut) */
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --secondary: #14b8a6;
    --bg-gradient: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.3);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    --text-main: #1e293b;
    --text-muted: #64748b;
}

[data-theme="dark"] {
    --bg-gradient: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
    --glass-bg: rgba(15, 23, 42, 0.6);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    --text-main: #f8fafc;
    --text-muted: #cbd5e1;
}

body {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
    font-family: 'Outfit', sans-serif;
    background: var(--bg-gradient);
    background-attachment: fixed;
    color: var(--text-main);
}

/* Utilitaires Glassmorphism */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: 16px;
}

/* Surcharges pour la Navbar */
.navbar.is-primary {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
}

.navbar.is-primary .navbar-brand>.navbar-item,
.navbar.is-primary .navbar-brand .navbar-link {
    color: var(--primary);
    font-weight: 800;
    font-size: 1.2rem;
}

/* Section Hero */
.hero.is-info {
    background: transparent;
    color: var(--text-main);
}

.hero.is-info .title {
    color: var(--text-main);
    font-weight: 800;
    font-size: 3rem;
    background: -webkit-linear-gradient(45deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.hero.is-info .subtitle {
    color: var(--text-muted);
    font-weight: 300;
}

/* Cartes Outils */
.tool-card {
    height: 100%;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: var(--glass-shadow);
    color: var(--text-main);
}

.tool-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    border-color: var(--primary);
}

.card-icon {
    font-size: 3.5rem;
    background: -webkit-linear-gradient(45deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.tool-card:hover .card-icon {
    transform: scale(1.1);
}

.tool-card .title {
    color: var(--text-main);
    font-weight: 600;
}

.tool-card .subtitle {
    color: var(--text-muted);
}

/* Conteneurs de formulaires et composants */
.box {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: 16px;
    color: var(--text-main);
}

.title,
.label {
    color: var(--text-main);
}

/* Surcharges des inputs Bulma */
.input {
    background-color: rgba(255, 255, 255, 0.5);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-main);
    transition: all 0.3s ease;
}

.input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.25em rgba(99, 102, 241, 0.25);
    background-color: rgba(255, 255, 255, 0.8);
}

.button.is-primary {
    background-color: var(--primary);
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.button.is-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

/* Notifications de résultat */
.notification {
    border-radius: 12px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(5px);
}

.notification.is-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    border: none;
}

.notification.is-primary .title,
.notification.is-primary .heading {
    color: white;
}

.notification .heading {
    font-size: 0.8rem;
    letter-spacing: 1px;
}

/* Styles des tableaux */
.table {
    background-color: transparent;
    color: var(--text-main);
}

.table thead td,
.table thead th {
    color: var(--text-main);
    border-bottom: 2px solid var(--primary);
}

.table td,
.table th {
    border-bottom: 1px solid var(--glass-border);
}

/* Pied de page */
.footer {
    margin-top: auto;
    background: transparent;
    padding: 3rem 1.5rem;
    color: var(--text-muted);
}

.footer strong {
    color: var(--primary);
}