/**
 * fparent-mode-selector.css
 * Emplacement : /wp-content/themes/VOTRE-THEME-ENFANT/css/fparent-mode-selector.css
 */

/* Conteneur principal */
.fparent-mode-selector {
    margin: 1.5em 0;
    font-family: inherit;
}

.fparent-mode-label {
    font-size: 1em;
    font-weight: 600;
    margin-bottom: 0.75em;
    color: inherit;
}

/* Grille des deux options */
.fparent-mode-options {
    display: flex;
    gap: 1em;
    flex-wrap: wrap;
}

/* Chaque carte option */
.fparent-mode-option {
    display: flex;
    align-items: center;
    gap: 0.6em;
    padding: 0.85em 1.25em;
    border: 2px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
    background-color: #fafafa;
    flex: 1;
    min-width: 180px;
    user-select: none;
}

.fparent-mode-option:hover {
    border-color: #aaa;
    background-color: #f5f5f5;
}

/* État sélectionné */
.fparent-mode-option.fparent-mode-selected {
    border-color: #2c6e49;       /* ← adaptez à la couleur principale de votre thème */
    background-color: #edf7f1;
    box-shadow: 0 0 0 3px rgba(44, 110, 73, 0.15);
}

/* Masquer le radio natif */
.fparent-mode-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

/* Icône */
.fparent-mode-icon {
    font-size: 1.4em;
    line-height: 1;
}

/* Texte */
.fparent-mode-text {
    font-size: 0.95em;
    font-weight: 500;
    line-height: 1.3;
}

/* Responsive mobile */
@media ( max-width: 480px ) {
    .fparent-mode-options {
        flex-direction: column;
    }
    .fparent-mode-option {
        min-width: unset;
        width: 100%;
    }
}
