/**
 * Charte couleur : orange (#da8932) pour les icônes, noir standard pour les
 * écritures.
 *
 * Le thème parent colore de nombreux textes avec var(--superio-theme-color)
 * (css/template.css). Cette feuille repasse ces textes au repos en noir et
 * remet en orange les icônes qu'ils contiennent (sinon elles hériteraient du
 * noir).
 *
 * Restent volontairement orange :
 * - les icônes (.icon, <i>, <svg>, flaticon-*, fa-*, ti-*) ;
 * - les états d'interaction : :hover, :focus, onglet / menu actif, radio
 *   coché, conversation sélectionnée ;
 * - les éléments graphiques ou de signalement : flèches de carrousel, bouton
 *   « retour en haut », croix de suppression, surlignage de recherche,
 *   date du jour du calendrier, badge de statut de candidature (orange =
 *   en attente, vert = accepté, rouge = refusé).
 *
 * Chargée après le thème parent et style.css (voir functions.php).
 */

:root {
    /* Noir des titres du thème (#202124, utilisé ~100 fois dans template.css). */
    --novelstep-text-color: #202124;
}

/* --------------------------------------------------------------------------
   1. Liens et boutons textuels
   -------------------------------------------------------------------------- */
.mobile-sidebar-btn,
.toggle-message-btn,
.read-more,
.btn-readmore,
.more-link,
.entry-link .readmore,
.post-navigation .nav-links .navi,
.register-info a,
.login-info a,
.register-form-wrapper .role-tabs li > a,
.login-form-wrapper .role-tabs li > a,
.widget_apus_instagram .widget-title a,
.btn-login,
.btn-login a,
.btn-theme.btn-outline,
.btn-theme-lighten,
.btn-theme-light,
.btn-app,
.subwoo-inner .add-cart .button,
.subwoo-inner .add-cart .added_to_cart,
.filter-listing-form .advance-search-btn,
.filter-listing-form .toggle-filter-list,
.filter-listing-form .toggle-filter-viewmore,
form.cmb-form .button-secondary,
form.cmb-form .cmb-row[data-fieldtype="wp_job_board_pro_file"] .upload-file-btn {
    color: var(--novelstep-text-color);
}

/* --------------------------------------------------------------------------
   2. Menus : petites étiquettes (« New », « Hot »…)
   -------------------------------------------------------------------------- */
.megamenu .dropdown-menu .text-label,
.mobile-vertical-menu .text-label,
.main-mobile-menu .text-label,
.apus-vertical-menu .text-label {
    color: var(--novelstep-text-color);
}

/* --------------------------------------------------------------------------
   3. Offres, candidats, tableaux de bord
   -------------------------------------------------------------------------- */
.nb-job,
.open-job,
.type-job,
.subwoo-inner .title,
.candidate-archive-layout .candidate-category a,
.candidate-grid .candidate-job,
.candidate-metas .candidate-job,
.candidate-detail-cv,
.candidate-detail-header .tag-candidate,
.candidate-detail-header.v3 .candidate-job,
.search_distance_wrapper .search-distance-label,
.form-group-salary .from-to-wrapper,
.job-table > thead > tr > th,
.job-applicants .inner-result > div,
.select2-container.select2-container--default .select2-selection--multiple .select2-selection__choice {
    color: var(--novelstep-text-color);
}

/* --------------------------------------------------------------------------
   4. Messagerie et réunions
   -------------------------------------------------------------------------- */
.list-replies .yourself-reply .post-content,
.meesage-meeting h5,
.meesage-meeting .date {
    color: var(--novelstep-text-color);
}

/* --------------------------------------------------------------------------
   4b. Menu latéral du tableau de bord (widget « user short profile »)
   Repos : icône orange, texte noir (le parent met les deux en gris #696969).
   Survol / actif : inchangés, le parent met icône + texte en orange sur fond
   orange clair (règles plus spécifiques : li:hover > a, li.active > a).
   -------------------------------------------------------------------------- */
.menu_short_profile li > a {
    color: var(--novelstep-text-color);
}
.menu_short_profile li > a :where(
    i, svg, .fa, .fas, .far, .fab,
    [class^="flaticon-"], [class*=" flaticon-"],
    [class^="fa-"], [class*=" fa-"],
    [class^="ti-"], [class*=" ti-"]
) {
    color: var(--superio-theme-color);
}

/* --------------------------------------------------------------------------
   5. Classes déclarées en !important par le parent
   -------------------------------------------------------------------------- */
.text-theme,
.reamore {
    color: var(--novelstep-text-color) !important;
}

/* --------------------------------------------------------------------------
   6. Icônes : on les garde orange
   -------------------------------------------------------------------------- */

/* Icônes à l'intérieur des éléments ci-dessus (elles hériteraient du noir).
   Seulement au repos : au survol / focus / état actif, le parent passe ces
   éléments en fond orange + texte blanc, l'icône doit alors suivre le texte.
   Spécificité volontairement minimale (0,1,0) grâce à :where(), pour qu'une
   couleur d'icône définie ailleurs reste prioritaire. */
:where(
    .mobile-sidebar-btn, .toggle-message-btn, .read-more, .btn-readmore,
    .more-link, .entry-link .readmore, .post-navigation .nav-links .navi,
    .register-info a, .login-info a, .role-tabs li > a,
    .widget_apus_instagram .widget-title a, .btn-login, .btn-theme.btn-outline,
    .btn-theme-lighten, .btn-theme-light, .btn-app,
    .subwoo-inner .add-cart .button, .subwoo-inner .add-cart .added_to_cart,
    .filter-listing-form .advance-search-btn, .filter-listing-form .toggle-filter-list,
    .filter-listing-form .toggle-filter-viewmore, form.cmb-form .button-secondary,
    form.cmb-form .upload-file-btn, .text-label, .nb-job, .open-job, .type-job,
    .subwoo-inner .title, .candidate-category a, .candidate-job,
    .candidate-detail-cv, .tag-candidate, .search-distance-label,
    .from-to-wrapper, .job-table > thead > tr > th, .job-applicants .inner-result > div,
    .list-replies .yourself-reply .post-content, .meesage-meeting, .text-theme, .reamore
):not(:hover, :focus, .active) :where(
    i, svg, .icon, .fa, .fas, .far, .fab,
    [class^="flaticon-"], [class*=" flaticon-"],
    [class^="fa-"], [class*=" fa-"],
    [class^="ti-"], [class*=" ti-"]
) {
    color: var(--superio-theme-color);
}

/* Survol d'un conteneur parent qui passe le bouton en fond orange :
   l'icône suit le texte blanc. */
:is(.layout-employer, .employer-grid.v1, .employer-grid.v2):hover .open-job :where(i, svg, [class*="flaticon-"], [class*="fa-"]),
:is(.candidate-grid, .candidate-list):hover .btn-theme-lighten :where(i, svg, [class*="flaticon-"], [class*="fa-"]),
.subwoo-inner:hover .add-cart :where(i, svg, [class*="flaticon-"], [class*="fa-"]),
.role-tabs li:is(:hover, :focus, .active) > a :where(i, svg, [class*="flaticon-"], [class*="fa-"]) {
    color: inherit;
}

/* .text-theme est aussi posé directement sur des conteneurs d'icônes
   (div.icon.text-theme, div.stick-icon.text-theme). */
.text-theme:is(
    i, svg, .icon, .stick-icon, .fa, .fas, .far, .fab,
    [class^="flaticon-"], [class*=" flaticon-"],
    [class^="fa-"], [class*=" fa-"],
    [class^="ti-"], [class*=" ti-"]
) {
    color: var(--superio-theme-color) !important;
}
