/* ============================================
   MODAL THEME SWITCHER - Styles minimaux
   ============================================ */

/* Modal overlay */
.theme-modal {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

/* Contenu du modal */
.theme-modal-content {
    position: relative;
    background: var(--dgd-orange);
    margin: 10% auto;
    padding: 40px;
    max-width: 600px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}


/* Version compacte (footer) */
.theme-modal-compact {
    max-width: 600px;
    margin: 15% auto;
}

/* Animation d'entrée */
@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header */
.theme-modal-header {
    
}

.theme-modal-header h3 {
    margin: 0;
    font-size: 1.4em;
    color: #fff;
}


/* Body */
.theme-modal-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 30px;
}

.theme-modal-body p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
    color: #fff;
}


/* Boutons de choix */
.theme-switcher-buttons {
    display: flex;
    gap: 30px;
}

.theme-btn {
    flex: 1;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--gris);
    color: var(--gristext);
    background: var(--bg);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9em;
    font-weight: bold;
    font-family: var(--p1);
}

.theme-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.theme-icon {
    width: 30px;
    height: 30px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.theme-btn-light .theme-icon {
    background-image: url('../img/icone-lightmode.png');
}

.theme-btn-dark .theme-icon {
    background-image: url('../img/icone-darkmode.png');
}

/* Note en bas du modal */
p.theme-modal-footer-note {
    padding: 15px;
    font-size: 0.9rem;
}




/* Bouton de fermeture */
.theme-modal-close {
    position: absolute;
    right: 15px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    color: #fff;
    opacity: 0.8;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: opacity 0.3s;
}

.theme-modal-close:hover {
    opacity: 1;
}


/* Bouton footer */
.theme-footer-btn {
    font-family: var(--p1);
    text-transform: uppercase;
    border-radius: 25px;
    border: 1px solid var(--gristext);
    outline: 0;
    padding: 4px 12px;
    font-size: 0.65rem;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--gristext);
    background: var(--bg);
    cursor: pointer;
    transition: all 0.3s ease;
}

.theme-footer-btn:hover {
    color: var(--orange);
}

.theme-icon-current {
    width: 20px;
    height: 20px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

html[data-theme="light"] .theme-icon-current {
    background-image: url('../img/icone-lightmode.png');
}

html[data-theme="dark"] .theme-icon-current {
    background-image: url('../img/icone-darkmode.png');
    filter: invert(1);
}

/* Responsive */
@media (max-width: 768px) {
    .theme-modal-content {
        margin: 20% 15px;
        max-width: none;
        padding: 30px;
    }
    
    .theme-switcher-buttons {
        flex-direction: column;
    }
    
    .theme-footer-btn {
        font-size: 0.85em;
    }

    .theme-modal-body p,
    p.theme-modal-footer-note {
        font-size: 0.8rem;
    }

    .theme-switcher-buttons {
        gap: 10px;
    }

    .theme-btn {
        gap: 20px;
    }

    .theme-icon {
        width: 25px;
        height: 25px;
    }
}