.simplefavorite-button {
    background: transparent;
    color: #401800;
    border: 1px solid #401800;
    border-radius: 4px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.simplefavorite-button:hover {
    background: #401800;
    color: #ffffff;
    border-color: #401800;
}

.simplefavorite-button.active {
    background: #C8943E;
    color: #ffffff;
    border-color: #C8943E;
}
/* Liste des favoris - MCH Académie */

ul.mch-liste-favoris {
    list-style: none !important;
    padding: 0 !important;
    margin: 20px 0 !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 20px !important;
}

ul.mch-liste-favoris > li.mch-favori {
    list-style: none !important;
    margin: 0 !important;
    padding: 22px 24px !important;
    background: rgba(255,255,255,0.75) !important;
    border: 1px solid rgba(64,24,0,0.18) !important;
    border-radius: 10px !important;
    box-shadow: 0 3px 12px rgba(64,24,0,0.06) !important;
}

ul.mch-liste-favoris > li.mch-favori a {
    display: block !important;
    color: #401800 !important;
    font-size: 17px !important;
    font-weight: 500 !important;
    text-decoration: none !important;
}

ul.mch-liste-favoris > li.mch-favori a:hover {
    color: #C8943E !important;
}

@media (max-width: 767px) {
    ul.mch-liste-favoris {
        grid-template-columns: 1fr !important;
    }
}
.mch-favori:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(64, 24, 0, 0.10);
    border-color: #C8943E;
}
.mch-favori img {
    display: block !important;
    margin: 0 auto 8px auto !important;
}
.mch-favori img {
    display: block !important;
    float: none !important;
    clear: both !important;
    margin: 0 auto 10px auto !important;
}
.mch-liste-favoris {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 22px !important;
    justify-content: start !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.mch-favori {
   width: auto !important;
    background: rgba(255,255,255,0.88) !important;
    border: 1px solid rgba(64,24,0,0.18) !important;
    border-radius: 10px !important;
    padding: 20px 18px !important;
    text-align: center !important;
    box-shadow: 0 3px 12px rgba(64,24,0,0.06) !important;
}

.mch-image-favori img {
    width: 150px !important;
    height: 150px !important;
    object-fit: cover !important;
    display: block !important;
    margin: 0 auto 10px !important;
    float: none !important;
}

.mch-type-favori {
    color: #C8943E !important;
    font-size: 13px !important;
    margin-bottom: 8px !important;
}

.mch-titre-favori a {
    color: #401800 !important;
    text-decoration: none !important;
    font-size: 16px !important;
}

.mch-acces-favori {
    margin-top: 8px !important;
}

.mch-acces-favori a {
    color: #401800 !important;
    text-decoration: none !important;
    font-size: 15px !important;
}

.mch-bouton-favori {
    margin-top: 10px !important;
}

@media (max-width: 767px) {
    .mch-liste-favoris {
        grid-template-columns: 1fr !important;
    }

    .mch-favori {
        width: 100% !important;
        max-width: 240px !important;
        margin: 0 auto !important;
    }
}
/* FORCER 3 FAVORIS PAR LIGNE - MCH */

ul.mch-liste-favoris {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 20px !important;
    width: 100% !important;
}

ul.mch-liste-favoris > li.mch-favori {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
}

/* Tablette */
@media (max-width: 1024px) {
    ul.mch-liste-favoris {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

/* Mobile */
@media (max-width: 767px) {
    ul.mch-liste-favoris {
        grid-template-columns: 1fr !important;
    }
}

/* Bouton déconnexion - MCH Académie */

.mch-deconnexion {
    display: inline-block;
    background: #C8943E;
    color: #ffffff !important;
    text-decoration: none !important;
    padding: 12px 24px;
    border-radius: 24px;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid #C8943E;
}

.mch-deconnexion:hover {
    background: #401800;
    border-color: #401800;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(64, 24, 0, 0.12);
}

.mch-profil {
    width: 100%;
    max-width: 900px;
}

.mch-profil-grille {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 20px;
}

.mch-profil-champ {
    margin: 0;
}

.mch-profil-champ label {
    display: block;
    margin-bottom: 6px;
    color: #401800;
    font-size: 13px;
    font-weight: 600;
}

.mch-profil-champ input {
    width: 100%;
    box-sizing: border-box;
    background: rgba(255,255,255,0.65);
    color: #401800;
    border: 1px solid rgba(64,24,0,0.20);
    border-radius: 6px;
    padding: 10px 12px;
    font-size: 14px;
}

.mch-profil-champ input:focus {
    outline: none;
    border-color: #C8943E;
    box-shadow: 0 0 0 2px rgba(200,148,62,0.10);
}

.mch-profil-champ input[readonly] {
    opacity: 0.75;
    cursor: not-allowed;
}

.mch-profil-bouton {
    margin-top: 16px;
    background: #C8943E !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 6px !important;
    padding: 10px 16px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
}

.mch-profil-bouton:hover {
    background: #401800 !important;
}

@media (max-width: 767px) {
    .mch-profil-grille {
        grid-template-columns: 1fr;
    }
}

/* MON ESPACE - VERSION COMPACTE MCH */

.mch-profil {
    width: 100%;
    max-width: 760px;
}

.mch-profil form {
    width: 100%;
}

.mch-profil-grille {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 18px;
    row-gap: 12px;
}

.mch-profil-champ {
    margin: 0;
}

.mch-profil-champ label {
    display: block;
    margin-bottom: 4px;
    color: #401800;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
}

.mch-profil-champ input {
    width: 100%;
    height: 38px;
    box-sizing: border-box;
    background: rgba(255,255,255,0.55);
    color: #401800;
    border: 1px solid rgba(64,24,0,0.18);
    border-radius: 5px;
    padding: 0 10px;
    font-size: 13px;
    line-height: 38px;
    box-shadow: none;
}

.mch-profil-champ input:focus {
    outline: none;
    border-color: #C8943E;
    box-shadow: 0 0 0 2px rgba(200,148,62,0.08);
}

.mch-profil-champ input[readonly] {
    background: rgba(64,24,0,0.035);
    color: rgba(64,24,0,0.65);
    cursor: default;
}

.mch-profil-bouton {
    margin-top: 14px;
    background: #C8943E !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 5px !important;
    padding: 9px 14px !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    min-height: auto !important;
    box-shadow: none !important;
}

.mch-profil-bouton:hover {
    background: #401800 !important;
}

@media (max-width: 767px) {
    .mch-profil-grille {
        grid-template-columns: 1fr;
    }
}

.mch-bonjour {
    font-family: "Cormorant Garamond", serif;
    color: #401800;
    font-size: 38px;
    font-weight: 500;
    line-height: 1.1;
    margin: 0;
}

/* =========================================
   RECHERCHE MCH ACADÉMIE
   ========================================= */

/* Champ de recherche */
.ast-search-menu-icon .search-form,
.ast-search-menu-icon .search-field,
.ast-search-box.full-screen,
.ast-search-box.header-cover {
    font-family: "Cormorant Garamond", serif !important;
}

/* Champ */
.ast-search-menu-icon input[type="search"],
.ast-search-box input[type="search"] {
    background: #F7F2EA !important;
    color: #401800 !important;
    border: 1px solid #C8943E !important;
    border-radius: 4px !important;
    box-shadow: none !important;
    font-size: 17px !important;
}

/* Texte indicatif */
.ast-search-menu-icon input[type="search"]::placeholder,
.ast-search-box input[type="search"]::placeholder {
    color: rgba(64, 24, 0, 0.55) !important;
}

/* Zone des résultats */
.ast-search-box .search-results,
.ast-search-menu-icon .search-results {
    background: #F7F2EA !important;
    border: 1px solid rgba(200, 148, 62, 0.35) !important;
    box-shadow: 0 8px 25px rgba(64, 24, 0, 0.12) !important;
}

/* Titre "Pages" */
.ast-search-box .search-results h4,
.ast-search-menu-icon .search-results h4 {
    color: #C8943E !important;
    font-family: "Cormorant Garamond", serif !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
}

/* Résultats */
.ast-search-box .search-results a,
.ast-search-menu-icon .search-results a {
    color: #401800 !important;
    font-family: "Cormorant Garamond", serif !important;
    font-size: 20px !important;
    text-decoration: none !important;
}

/* Survol des résultats */
.ast-search-box .search-results a:hover,
.ast-search-menu-icon .search-results a:hover {
    color: #C8943E !important;
}

/* Icône loupe */
.ast-search-icon,
.ast-icon.icon-search {
    color: #C8943E !important;
}
/* FORCER LA COULEUR DES RÉSULTATS DE RECHERCHE MCH */

.ast-search-menu-icon .search-results a,
.ast-search-box .search-results a,
.search-results a,
.search-results a:visited,
.search-results a:link {
    color: #401800 !important;
    text-decoration: none !important;
}

/* Au survol */
.ast-search-menu-icon .search-results a:hover,
.ast-search-box .search-results a:hover,
.search-results a:hover {
    color: #C8943E !important;
}
/* LIENS LIVE SEARCH ASTRA - MCH */

.ast-live-search-results a,
.ast-live-search-results a:link,
.ast-live-search-results a:visited,
.ast-live-search-result a,
.ast-live-search-result a:link,
.ast-live-search-result a:visited,
.ast-search-wrapper .ast-live-search-results a {
    color: #401800 !important;
    text-decoration: none !important;
}

/* Survol */
.ast-live-search-results a:hover,
.ast-live-search-result a:hover,
.ast-search-wrapper .ast-live-search-results a:hover {
    color: #C8943E !important;
}
/* MCH - Arrière-plan uniquement sur les pages réservées */

/* Visiteur non connecté */
body.mch-page-membre:not(.logged-in) {
    background-size: cover !important;
}

/* Membre connecté */
body.mch-page-membre.logged-in {
    background-size: contain !important;
}