/* --- THEME NUIT ET JOUR --- */

/* Variables globales du thème clair */
:root {
    --bg-main: #f0f4f8;
    --bg-card: #ffffff;
    --bg-card-2: rgba(255, 255, 255, 1.0);
    --bg-main-avec-flou: rgba(255, 255, 255, 0.8);
    --text-main: #2d3748;
    --text-muted: #718096;
    --accent-red: #e53e3e;
    --accent-blue: #3182ce;
    --border-color: #d5dbe2;
    --border-color-2: rgba(255, 255, 255, 0.5);
    --shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
    --radius: 12px;
    --nav-hover: #8ab7fa;
    --kyoto-orange: rgb(233, 133, 20);
    --text-active: #ffffff;
    --nav-rail-color: rgba(49, 130, 206, 0.2);
    --bouton-active-mobile: rgba(229, 62, 62, 1.0);
    --menu-link-flou: rgba(255, 255, 255, 0.8);
}

/* Variables globales du thème sombre */
[data-theme="dark"] {
    --bg-main: #1a202c;
    --bg-card: #2d3748;
    --bg-card-2: rgb(49, 44, 44);
    --bg-main-avec-flou: rgba(26, 32, 44, 0.8);
    --text-main: #f7fafc;
    --text-muted: #a0aec0;
    --accent-red: #f57070;
    --accent-blue: #63b3ed;
    --border-color: #4a5568;
    --border-color-2: rgba(74, 85, 104, 0.2);
    --nav-hover: #339fe7;
    --kyoto-orange: rgb(255, 149, 28);
    --text-active: #000000;
    --nav-rail-color: rgba(49, 130, 206, 0.4);
    --bouton-active-mobile: rgba(245, 112, 112, 1.0);
    --menu-link-flou: rgba(54, 50, 50, 0.8);
}

/* Le bouton de changement de thème */
/* Bouton de changement de thème */
.theme-btn-header {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    z-index: 10;
}

/* Effet au survol du bouton thème */
.theme-btn-header:hover {
        background: rgba(68, 68, 68, 0.479);
        backdrop-filter: blur(10px);
        color: var(--text-main);
}

/* Texte affiché à côté de l'icône */
.theme-text {
    display: none;
    font-size: 0.9rem;
    margin-left: 8px;
    color: white;
}

/* Desktop : bouton thème plus large */
@media (min-width: 1025px) {
    .theme-btn-header {
        width: auto;
        padding: 0 15px;
        border-radius: 30px;
    }
    .theme-text { display: inline; }
}

/* Mobile : bouton plus compact */
@media (max-width: 600px) {
    .theme-btn-header {
        top: 10px; right: 10px;
        width: 45px; height: 45px;
        background: color-mix(in srgb, var(--bg-card), transparent 99%);
        backdrop-filter: blur(4px);
    }
}
