@import 'tailwindcss';

@theme {
    /* Palette : Anthracite, Ardoise et Argent */
    --color-bg: #121212;
    --color-panel: rgba(255, 255, 255, 0.02);
    --color-stroke: rgba(255, 255, 255, 0.05);
    --color-text: #d1d1d1;
    --color-muted: #666666;
    --color-accent: #e5e5e5;
    --color-accent2: #2a2a2a;

    --font-sans: 'Instrument Sans', ui-sans-serif, system-ui;
}

:root {
    --bg: #121212;
    --panel: rgba(255, 255, 255, 0.02);
    --stroke: rgba(255, 255, 255, 0.05);
    --text: #d1d1d1;
    --muted: #666666;
    --accent: #e5e5e5;
    --accent2: #2a2a2a;
}

/* --- Base & Background --- */
body {
    background-color: var(--bg);
    /* Dégradé radial très diffus pour éviter le noir plat */
    background:
        radial-gradient(circle at 50% 0%, #1a1a1a, transparent 80%),
        var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
}

/* --- Composants Glass --- */
.glass {
    background: rgba(25, 25, 25, 0.7);
    border: 1px solid var(--stroke);
    backdrop-filter: blur(15px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* --- Boutons Adoucis --- */
.btn-accent {
    --bs-btn-color: #121212;
    --bs-btn-bg: var(--accent);
    --bs-btn-border-color: var(--accent);
    --bs-btn-hover-bg: #ffffff;
    --bs-btn-border-radius: 0.5rem;
}

.btn-outline-accent {
    --bs-btn-color: var(--accent);
    --bs-btn-border-color: #333333;
    --bs-btn-hover-bg: rgba(255, 255, 255, 0.05);
    --bs-btn-hover-border-color: #444444;
}

/* --- Cartes & Hover --- */
.card-hover {
    transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.card-hover:hover {
    transform: translateY(-5px); /* Élévation plus douce */
    border-color: rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.thumb {
    background: #171717;
    border: 1px solid var(--stroke);
    border-radius: 0.6rem;
    transition: opacity 0.3s ease;
}

/* --- Formulaires discrets & Lisibles --- */
.form-control, .form-select {
    background: #1a1a1a !important;
    border: 1px solid #2a2a2a !important;
    /* Couleur du texte saisi : Blanc pur pour un contraste maximal */
    color: #ffffff !important;
    font-size: 1rem;
}

/* Couleur du texte d'exemple (placeholder) */
.form-control::placeholder {
    color: rgba(255, 255, 255, 0.3) !important;
}

.form-control:focus {
    background: #1f1f1f !important; /* Légère éclaircie au focus */
    border-color: #444444 !important;
    color: #ffffff !important;
    box-shadow: none !important;
}

/* Spécificité pour les inputs de type date (l'icône calendrier) */
input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1); /* Rend l'icône blanche pour être visible sur fond noir */
    cursor: pointer;
}
/* --- Utilitaires --- */
.price {
    color: #ffffff;
    font-weight: 500;
    font-family: var(--font-sans);
}

.muted { color: var(--muted); }
