/* =================================================================
   1. EN-TÊTE GLOBAL (Effet bombé / relief sortant)
   ================================================================ */
.container-header, 
.header {
    background-color: #e7ebf0 !important;
    box-shadow: 12px 12px 25px rgba(163, 177, 198, 0.6), 
                -12px -12px 25px rgba(255, 255, 255, 0.9) !important;
    border-radius: 25px !important;
    margin: 20px !important;
    padding: 20px !important;
}

.header .site-title, 
.header a {
    color: #303943 !important;
}

/* =================================================================
   2. FICHES DE RECETTES (CENTRE)
   ================================================================ */
.com-content-article, 
.item-page,
.blog-items > div {
    background-color: #e7ebf0 !important;
    border: 4px double #b93c3c !important;
    border-radius: 25px !important;
    padding: 25px !important;
    position: relative !important;
    padding-bottom: 35px !important;
    box-shadow: 12px 12px 25px rgba(163, 177, 198, 0.6), 
                -12px -12px 25px rgba(255, 255, 255, 0.9) !important;
    margin-bottom: 30px !important;
}

.com-content-article::after, 
.item-page::after,
.blog-items > div::after {
    content: "" !important;
    position: absolute !important;
    bottom: 15px !important;
    left: 5% !important;
    right: 5% !important;
    height: 4px !important;
    background-color: #b93c3c !important;
}

.com-content-article::before, 
.item-page::before,
.blog-items > div::before {
    content: "" !important;
    position: absolute !important;
    bottom: 5px !important;
    left: 10% !important;
    right: 10% !important;
    height: 4px !important;
    background-color: #b93c3c !important;
}

/* =================================================================
   3. BLOC DE GAUCHE (FILTRES)
   ================================================================ */
.com-content-category .sidebar, 
.container-sidebar-left, 
aside {
    background-color: #e7ebf0 !important;
    border-radius: 20px !important;
    padding: 20px !important;
    box-shadow: inset 5px 5px 10px rgba(163, 177, 198, 0.4), 
                inset -5px -5px 10px rgba(255, 255, 255, 0.8) !important;
}

aside a, 
.sidebar a {
    color: #303943 !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
}

aside a:hover, 
.sidebar a:hover {
    color: #0072ff !important;
}

/* =================================================================
   4. BLOC DE DROITE & MODULE DE CONNEXION
   ================================================================ */
.container-sidebar-right, 
.right-sidebar {
    background-color: #e7ebf0 !important;
    border-radius: 20px !important;
    padding: 20px !important;
    box-shadow: inset 5px 5px 10px rgba(163, 177, 198, 0.4), 
                inset -5px -5px 10px rgba(255, 255, 255, 0.8) !important;
}

.container-sidebar-right input[type="text"],
.container-sidebar-right input[type="password"],
.right-sidebar input[type="text"],
.right-sidebar input[type="password"],
.login input[type="text"],
.login input[type="password"],
.well input[type="text"],
.well input[type="password"],
#mod-login-username,
#mod-login-password {
    background-color: #e7ebf0 !important;
    border: none !important;
    border-radius: 12px !important;
    box-shadow: inset 4px 4px 8px rgba(163, 177, 198, 0.6), 
                inset -4px -4px 8px rgba(255, 255, 255, 0.9) !important;
    padding: 10px 15px !important;
    color: #303943 !important;
    outline: none !important;
}

.container-sidebar-right button[type="submit"],
.container-sidebar-right input[type="submit"],
.right-sidebar button[type="submit"],
.right-sidebar input[type="submit"],
.login button[type="submit"],
.login input[type="submit"],
.well button[type="submit"],
.well input[type="submit"],
.login-wrap .btn,
.well .btn {
    background-color: #e7ebf0 !important;
    border: none !important;
    border-radius: 14px !important;
    color: #0072ff !important;
    font-weight: 700 !important;
    box-shadow: 6px 6px 12px rgba(163, 177, 198, 0.6), 
                -6px -6px 12px rgba(255, 255, 255, 0.9) !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    padding: 10px 20px !important;
    width: 100% !important;
}

.container-sidebar-right button[type="submit"]:hover,
.container-sidebar-right input[type="submit"]:hover,
.right-sidebar button[type="submit"]:hover,
.right-sidebar input[type="submit"]:hover,
.login button[type="submit"]:hover,
.login input[type="submit"]:hover,
.well button[type="submit"]:hover,
.well input[type="submit"]:hover,
.login-wrap .btn:hover,
.well .btn:hover {
    color: #ffffff !important;
    background-color: #0072ff !important;
    box-shadow: 0 6px 20px rgba(0, 114, 255, 0.35) !important;
}

/* =================================================================
   5. ZONE DE RECHERCHE (Effet creusé)
   ================================================================ */
input.search-query,
.header input[type="search"],
.header input[type="text"],
.search input[type="search"],
.search input[type="text"] {
    background-color: #e7ebf0 !important;
    border: none !important;
    border-radius: 15px !important;
    box-shadow: inset 4px 4px 8px rgba(163, 177, 198, 0.6), 
                inset -4px -4px 8px rgba(255, 255, 255, 0.9) !important;
    padding: 8px 15px !important;
    color: #303943 !important;
    outline: none !important;
}

.header button, 
.header input[type="submit"],
.search button,
.search input[type="submit"] {
    background-color: #e7ebf0 !important;
    border: none !important;
    border-radius: 12px !important;
    color: #0072ff !important;
    box-shadow: 4px 4px 8px rgba(163, 177, 198, 0.6), 
                -4px -4px 8px rgba(255, 255, 255, 0.9) !important;
    cursor: pointer !important;
    padding: 8px 12px !important;
}

/* =================================================================
   7. NAVIGATION / MENU PRINCIPAL
   Styles historiques retirés : le design « glass » des menus
   (principal + droite) est désormais géré par css/glass-menu.css,
   chargé par index.php (avec js/glass-menu.js).
   ================================================================ */

/* =================================================================
   8. PIED DE PAGE (FOOTER)
   ================================================================ */
.container-footer, 
.footer,
footer {
    background-color: #e7ebf0 !important;
    border-radius: 20px !important;
    margin: 20px 15px !important;
    padding: 20px !important;
    box-shadow: 8px 8px 16px rgba(163, 177, 198, 0.5), 
                -8px -8px 16px rgba(255, 255, 255, 0.8) !important;
    text-align: center !important;
}

.container-footer p,
.container-footer span,
.footer, 
.footer a,
footer a {
    color: #303943 !important;
    text-decoration: none !important;
}

.footer a:hover,
footer a:hover {
    color: #0072ff !important;
}

/* =================================================================
   9. IMPRESSION DIRECTE (Ctrl+P)
   Les regles @media print sont desormais injectees INLINE par le
   template (index.php) : elles arrivent fraiches a chaque chargement
   de page et ne dependent plus du cache navigateur de ce fichier.
   ================================================================ */

/* =================================================================
   10. BLOC DE GAUCHE (SIDEBAR / FILTRES) - Style Neumorphique
   ================================================================ */
.container-sidebar-left, 
.item-sidebar-left,
#aside-left {
    background-color: #e7ebf0 !important;
    border-radius: 20px !important;
    padding: 20px !important;
    box-shadow: 12px 12px 25px rgba(163, 177, 198, 0.6), 
                -12px -12px 25px rgba(255, 255, 255, 0.9) !important;
    margin-bottom: 20px !important;
}

/* Harmonisation des champs de saisie ou listes déroulantes du filtre */
.finder input[type="text"],
.mod-finder input[type="text"],
.finder select,
.mod-finder select {
    background-color: #e7ebf0 !important;
    border: none !important;
    border-radius: 12px !important;
    box-shadow: inset 4px 4px 8px rgba(163, 177, 198, 0.6), 
                inset -4px -4px 8px rgba(255, 255, 255, 0.9) !important;
    padding: 8px 12px !important;
    color: #303943 !important;
    outline: none !important;
}

/* Harmonisation des boutons du filtre */
.finder button,
.mod-finder button,
.finder input[type="submit"],
.mod-finder input[type="submit"] {
    background-color: #e7ebf0 !important;
    border: none !important;
    border-radius: 12px !important;
    color: #0072ff !important;
    font-weight: 700 !important;
    box-shadow: 6px 6px 12px rgba(163, 177, 198, 0.6), 
                -6px -6px 12px rgba(255, 255, 255, 0.9) !important;
    cursor: pointer !important;
    padding: 8px 16px !important;
}
/* Forcer le relief sortant sur le module de gauche */
.container-sidebar-left .t3-module,
.container-sidebar-left .moduletable,
.sidebar .moduletable,
aside .moduletable {
    background-color: #e7ebf0 !important;
    border-radius: 20px !important;
    padding: 20px !important;
    box-shadow: 12px 12px 25px rgba(163, 177, 198, 0.6), 
                -12px -12px 25px rgba(255, 255, 255, 0.9) !important;
}
/* =================================================================
   11. MODULE LATÉRAL (FILTRE D'INGRÉDIENTS) - Style Neumorphique
   ================================================================ */
.sidebar-left.card,
.container-sidebar-left .card {
    background-color: #e7ebf0 !important;
    border: none !important;
    border-radius: 20px !important;
    padding: 15px !important;
    box-shadow: 12px 12px 25px rgba(163, 177, 198, 0.6), 
                -12px -12px 25px rgba(255, 255, 255, 0.9) !important;
    margin-bottom: 25px !important;
}

/* Harmonisation de l'en-tête du bloc "Filtrer par ingrédients" */
.sidebar-left .card-header {
    background-color: transparent !important;
    border-bottom: 2px solid rgba(163, 177, 198, 0.3) !important;
    font-weight: 700 !important;
    color: #303943 !important;
}