/*
 Theme Name: Divi Child
 Theme URI: https://www.komogo.net
 Description: Child theme pour Komogo, basé sur Divi
 Author: Manu
 Template: Divi
 Version: 1.0
*/

/* Tu peux ajouter du CSS ici si tu veux */

/* Newake – police principale */
@font-face {
    font-family: 'Newake';
    src: url('../fonts/Newake-Font-Regular.otf') format('otf'),
         url('../fonts/Newake-Font-Regular.ttf') format('ttf');
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Newake', system-ui, sans-serif;
    font-weight: 400;
    letter-spacing: 0.08em;
}

html, body {
    font-family: 'Newake', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 400;
}



/* --- Styles Mosaïque Radio v5 & Favoris --- */

.radio-page-container {
    padding-top: 30px;
    padding-bottom: 50px;
}

.radio-section {
    margin-bottom: 50px;
}

.radio-section-title {
    color: #fff;
    border-bottom: 2px solid #BF1A1A;
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-size: 1.5em;
    font-weight: 300;
    text-transform: uppercase;
}

/* Grille */
.radio-mosaic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 8px;
}

/* Carte Globale */
.radio-card {
    display: block;
    text-decoration: none !important;
    background-image: radial-gradient(circle at top, #292929 0%, #151515 100%);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #333;
    position: relative;
    height: 100%; /* Important pour l'alignement */
}

.radio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    border-color: #BF1A1A;
}

.radio-card-inner {
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    min-height: 150px; /* Hauteur min pour uniformité */
}

/* Images */
.radio-logo-wrapper {
    width: 100%;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    /*margin-bottom: 10px;*/
}

.radio-logo-wrapper img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    object-fit: contain;
}

/* Textes */
.radio-name {
    color: #e0e0e0;
    font-size: 0.85em;
    font-weight: 600;
    text-align: center;
    text-transform: uppercase;
    line-height: 1.2;
    /*margin-top: auto;*/
}

/* Badge NEW */
.radio-badge-new {
    position: absolute;
    top: 0;
    right: 0;
    background-color: #BF1A1A;
    color: white;
    font-size: 0.6em;
    font-weight: bold;
    padding: 3px 8px;
    border-bottom-left-radius: 8px;
    z-index: 10;
}

/* --- FAVORIS SPÉCIFIQUE --- */

.fav-section .radio-section-title {
    border-color: #444; /* Gris pour différencier des catégories */
    color: #eee;
}

.fav-display {
    border-color: #BF1A1A; /* Bordure rouge par défaut pour les favs */
}

/* Boutons Actions (Rouage / Croix) */
.fav-actions {
    position: absolute;
    top: 5px;
    right: 5px;
    z-index: 20;
    display: flex;
    gap: 3px;
    opacity: 0; /* Caché par défaut */
    transition: opacity 0.2s;
}

.radio-card:hover .fav-actions {
    opacity: 1; /* Visible au survol */
}

.btn-edit-fav, .btn-del-fav {
    background: rgba(0,0,0,0.6);
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 12px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background 0.3s;
}
.btn-edit-fav:hover { background: #BF1A1A; }
.btn-del-fav:hover { background: #444; }

.fav-link-wrapper {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: 100%;
}

/* Carte Vide */
.fav-empty {
    border: 2px dashed #444;
    background: transparent;
    cursor: pointer;
}
.fav-empty:hover {
    border-color: #BF1A1A;
    background: rgba(255,255,255,0.02);
}
.plus-icon {
    font-size: 40px;
    color: #555;
    margin-bottom: 5px;
}
.fav-empty:hover .plus-icon { color: #fff; }
.justify-center { justify-content: center !important; }

/* Mode Édition */
.fav-edit {
    background: #222;
    border: 1px solid #BF1A1A;
}
.fav-select {
    width: 100%;
    background: #333;
    color: #fff;
    border: 1px solid #555;
    padding: 5px;
    border-radius: 4px;
    margin-bottom: 10px;
}
.fav-buttons { display: flex; gap: 5px; width: 100%; }
.btn-save-fav, .btn-cancel-fav {
    flex: 1;
    border: none;
    padding: 6px;
    border-radius: 4px;
    cursor: pointer;
    color: #fff;
    font-size: 0.8em;
}
.btn-save-fav { background: #BF1A1A; }
.btn-cancel-fav { background: #444; }

/* Mobile */
@media only screen and (max-width: 768px) {
    .radio-mosaic-grid {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
        gap: 10px;
    }
    .radio-logo-wrapper { height: 70px; }
    .fav-actions { opacity: 1; } /* Toujours visible sur mobile */
    .radio-name {
    margin-top: 20px;
}
}

/* --- Correctif Liste Déroulante --- */
.fav-select {
    background: #2c2c2c !important;
    color: #ffffff !important;
    border: 1px solid #555;
    padding: 8px;
    border-radius: 4px;
    outline: none;
    margin-bottom: 15px;
}

.fav-select option {
    background: #2c2c2c;
    color: #ffffff;
    padding: 5px;
}

/* Ajout pour forcer la couleur rouge Komogo au survol (et à la sélection) des options de dates et listes */
.ks-date-select option:hover,
.ks-date-select option:focus,
.ks-date-select option:checked,
.fav-select option:hover,
.fav-select option:focus,
.fav-select option:checked,
select option:hover,
select option:focus,
select option:checked {
    background-color: #BF1A1A !important;
    background: #BF1A1A !important;
    color: #ffffff !important;
}

/* Icône de titre de section */
.section-title-icon {
    height: 30px;        /* Taille de l'icône */
    width: auto;         /* Largeur auto pour garder les proportions */
    vertical-align: middle;
    margin-right: 12px;  /* Espace entre l'icône et le texte */
    margin-bottom: 5px;  /* Petit ajustement pour l'alignement vertical */
}