/* Base */
* { font-family: 'Inter', sans-serif; }
body { @apply antialiased; } /* Améliore le rendu du texte */

/* Couleurs et Dégradés */
.bg-main { background: linear-gradient(135deg, #0A0A18 0%, #151525 50%, #202035 100%); } /* Plus profond */
.bg-card {
    background: rgba(25, 25, 40, 0.8); /* Plus opaque et foncé */
    backdrop-filter: blur(15px); /* Moins intense */
    border: 1px solid rgba(255, 255, 255, 0.06); /* Bordure encore plus subtile */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25); /* Ombre affinée */
}
.bg-gradient-primary { background: linear-gradient(135deg, #6C63FF 0%, #A36CFF 100%); } /* Nouvelle palette de dégradé */
.text-gradient {
    background: linear-gradient(135deg, #6C63FF 0%, #A36CFF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Sliders */
.slider {
    -webkit-appearance: none;
    appearance: none;
    height: 6px; /* Plus fin */
    background: linear-gradient(90deg, #6C63FF 0%, #A36CFF 100%);
    border-radius: 10px;
    outline: none;
    opacity: 0.9;
    transition: opacity .2s ease;
}
.slider:hover { opacity: 1; }

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px; /* Taille standard */
    height: 20px;
    background: #A36CFF; /* Couleur du dégradé */
    border-radius: 50%;
    cursor: grab;
    border: 2px solid white; /* Bordure blanche plus fine */
    box-shadow: 0 3px 10px rgba(0,0,0,0.3), inset 0 0 0 1px rgba(255,255,255,0.1); /* Ombre plus subtile */
    transition: all 0.2s ease;
}
.slider::-webkit-slider-thumb:hover {
    transform: scale(1.1); /* Plus léger au survol */
    box-shadow: 0 6px 15px rgba(163, 108, 255, 0.5), inset 0 0 0 2px rgba(255,255,255,0.2);
    cursor: grabbing;
}

/* Metric Cards */
.metric-card {
    @apply bg-card rounded-xl p-4 border border-white/5; /* Arrondis subtils, padding léger */
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex; /* Utilisation de flexbox pour l'alignement */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.metric-card:hover {
    transform: translateY(-3px); /* Moins de décalage */
    border-color: rgba(163, 108, 255, 0.3);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
}

.metric-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 12px;
    padding: 1.5px; /* Halo plus fin */
    background: linear-gradient(135deg, #6C63FF 0%, #A36CFF 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}
.metric-card:hover::before {
    opacity: 1;
}

/* Chart Containers */
.chart-container { position: relative; height: 280px; } /* Hauteur optimisée */

@media (max-width: 768px) {
    .chart-container { height: 220px; }
    .einstein-container { width: 50px; height: 50px; }
    .einstein-quote { font-size: 10px; padding: 6px 8px; }
}

@media (max-width: 640px) {
    .einstein-container { width: 45px; height: 45px; }
    .einstein-quote { font-size: 9px; padding: 4px 6px; }
}

/* Einstein Image Styles */
.einstein-container {
    position: relative;
    width: 75px; /* Plus grand pour desktop */
    height: 75px;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, #6C63FF 0%, #A36CFF 100%);
    padding: 2px;
    box-shadow: 0 6px 20px rgba(163, 108, 255, 0.3);
    transition: all 0.3s ease;
}

.einstein-container:hover {
    transform: scale(1.08); /* Moins prononcé au survol */
    box-shadow: 0 10px 30px rgba(163, 108, 255, 0.5);
}

.einstein-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    filter: brightness(1.05) contrast(1.05); /* Effet plus doux */
}

.einstein-quote {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 6px; /* Espacement plus fin */
    background: rgba(0, 0, 0, 0.85); /* Plus sombre */
    color: white;
    padding: 6px 10px; /* Padding ajusté */
    border-radius: 6px; /* Arrondis plus petits */
    font-size: 10px; /* Taille de police ajustée */
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1000;
}

.einstein-container:hover .einstein-quote {
    opacity: 1;
}

.einstein-quote::before {
    content: '';
    position: absolute;
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent; /* Triangle plus petit */
    border-right: 5px solid transparent;
    border-bottom: 4px solid rgba(0, 0, 0, 0.85);
}

/* Input specific styles */
.input-group label {
    @apply block text-sm text-gray-300 font-medium mb-2; /* Meilleur espacement */
}
.input-value {
    @apply text-xl font-bold text-gray-100; /* Plus de contraste */
}
.input-icon {
    @apply text-gray-400 mr-3; /* Espacement légèrement augmenté */
}