@import url("clairval-original.css");
@import url("../css/clairval-moon-tokens.css");

/* ========================================
   CLAIRVAL MOON — Clairval
   Structure = Clairval (Original), palette bleue (ex thème Lune)
   ======================================== */

:root {
    --primary-color: #2aa1ff;
    --secondary-color: #3bb0ff;
    --accent-color: #2aa1ff;
    --success-color: #06d6a0;
    --error-color: #ff6b6b;
    --warning-color: #ffd166;
    --background-primary: #0b0f14;
    --background-secondary: #121821;
    --text-primary: #e8eef4;
    --text-secondary: #8aa0b5;
    --border-color: rgba(42, 161, 255, 0.22);
    --shadow-color: rgba(0, 0, 0, 0.5);
    --glass-bg: rgba(18, 24, 33, 0.72);
    --glass-border: rgba(42, 161, 255, 0.22);
    --glass-highlight: rgba(255, 255, 255, 0.06);
}

html,
body {
    background: linear-gradient(160deg, var(--background-primary) 0%, var(--background-secondary) 100%);
}

::-webkit-scrollbar-thumb {
    background: rgba(42, 161, 255, 0.55);
    border-color: rgba(11, 15, 20, 0.35);
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(42, 161, 255, 0.75);
}

/* Firefox — scrollbar globale (héritée de Original en orange) */
* {
    scrollbar-color: rgba(42, 161, 255, 0.55) rgba(18, 24, 33, 0.25);
}

/* Droplistes — flèche et survol (Original hardcode #f4a261) */
select {
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    background-size: 16px !important;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232aa1ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e") !important;
}

select:focus {
    box-shadow: 0 0 0 2px rgba(42, 161, 255, 0.2) !important;
}

select:hover {
    border-color: rgba(42, 161, 255, 0.3) !important;
}

select option:hover {
    background: rgba(42, 161, 255, 0.1) !important;
}

select option:checked {
    background: rgba(42, 161, 255, 0.2) !important;
}
