/**
Theme Name: Astra Child
Author: Brainstorm Force
Author URI: http://wpastra.com/about/
Description: Astra is the fastest, fully customizable & beautiful theme suitable for blogs, personal portfolios and business websites. It is very lightweight (less than 50KB on frontend) and offers unparalleled speed. Built with SEO in mind, Astra comes with schema.org code integrated so search engines will love your site. Astra offers plenty of sidebar options and widget areas giving you a full control for customizations. Furthermore, we have included special features and templates so feel free to choose any of your favorite page builder plugin to create pages flexibly. Some of the other features: # WooCommerce Ready # Responsive # Compatible with major plugins # Translation Ready # Extendible with premium addons # Regularly updated # Designed, Developed, Maintained & Supported by Brainstorm Force. Looking for a perfect base theme? Look no further. Astra is fast, fully customizable and beautiful theme!
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: astra-child
Template: astra
*/

/** Styles du bandeau du haut des pages par défaut Astra **/
.ast-single-entry-banner {
	border-radius:0 0 20px 20px !important;
}

/** Ajustement du design des blocs PMPro **/
.pmpro_card {
    border-radius: 0 !important; /* Supprime les coins arrondis */
    box-shadow: none !important; /* Supprime l'ombre portée */
    margin: 0 !important; /* Supprime les marges verticales */
}

/* Ajouter une bordure discrète aux champs WooCommerce */
.woocommerce input.input-text, 
.woocommerce textarea, 
.woocommerce select {
    border: 1px solid #ddd; /* Bordure grise discrète */
    border-radius: 4px; /* Coins arrondis pour un design moderne */
    padding: 10px; /* Ajouter un espace intérieur pour un confort visuel */
    box-shadow: none; /* Désactiver toute ombre par défaut */
    outline: none; /* Supprimer le contour bleu lors de la sélection */
}
/* Effet visuel lors du focus */
.woocommerce input.input-text:focus, 
.woocommerce textarea:focus, 
.woocommerce select:focus {
    border-color: #0073aa; /* Couleur de focus (bleu) */
    box-shadow: 0 0 3px rgba(0, 115, 170, 0.5); /* Ajouter une ombre subtile */
}

/** Styles personnalisés pour le champ de recherche bbPress **/
.bbp-search-form input[type="text"],
.bbp-search-form input[type="search"],
.bbp-search-form input#bbp_search {
    border: 1px solid #ccc;     /* Bordure grise légère */
    border-radius: 4px;         /* Angles légèrement arrondis */
    padding: 6px 10px;          /* Espacement interne réduit pour diminuer la hauteur */
    font-size: 14px;            /* Taille de la police réduite */
    margin: 5px 0;              /* Marge verticale autour du champ */
    box-sizing: border-box;     /* Pour inclure la bordure et le padding dans la largeur */
}

/** Styles des éléments dans la colonne de droite **/
#secondary h2 {
    font-size: 1.2rem;
}
#secondary a {
    font-size: 0.8rem;
}
#secondary .logout-link {
    padding: 5px 10px;
}
#secondary li {
    line-height: 1.5em;
    margin-bottom: 0;
}
.pmpro_card .pmpro_logged_in_welcome_wrap {
	margin: 0 !important;
} 


/** Masque l'adresse IP sous l'avatar dans les réponses **/
.bbp-author-ip {
    display: none;
}

/** Ajoute une bordure gauche colorée pour les réponses et les sujets dans les forums **/
#bbp-search-results .type-reply, #bbpress-forums .type-reply {
    border-left: 5px solid #469bbb;
    padding-left: 10px;
}
#bbp-search-results .type-topic, #bbpress-forums .type-topic {
    border-left: 5px solid #F28F16;
    padding-left: 10px;
}


/** Styles communs pour les boutons d'impression dans les forums **/
.bbp-print-button {
    padding: 3px 6px;
    background-color: transparent;
    border: 1px solid var(--ast-global-color-0);
    color: var(--ast-global-color-0);
    cursor: pointer;
    margin-left: 10px;
    font-size: 12px;
    border-radius: 3px;
}

.bbp-print-button:hover {
    background-color: var(--ast-global-color-0);
    color: #ffffff;
}

/** Styles pour l'impression **/
@media print {
    /* Mise en page globale */
    body, html, .site-content, main, .content-area, .container, .primary, 
    .bbpress .bbp-reply-author, .bbpress .bbp-reply-content {
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
        float: none !important;
        display: block !important;
    }

    /* Masquer les éléments non essentiels */
    header, footer, .sidebar, .bbp-print-button, .no-print,
    .site-header, #masthead, .header-main-layout-1, .ast-primary-menu-enabled, 
    .ast-logo-title-inline, .ast-hide-custom-menu-mobile, .ast-builder-menu-toggle-icon, 
    .ast-mobile-header-inline, #secondary, .widget-area, .sidebar-main, 
    #subscription-toggle, #favorite-toggle, .bbp-topic-tags, .bbp-template-notice, 
    .bbp-pagination, .bbp-author-name, .bbp-author-avatar, .bbp-author-role, .bbp-reply-ip, .tc_display,
    .comment-list, .bbp-reply-header, .bbp-meta, 
    .bbp-reply-form, .bbp-footer, .bbp-header, .nav-links,
    .entry-header {
        display: none !important;
    }

    /* Styles spécifiques pour le contenu des forums */
    .bbpress-wrapper h2 {
        display: block !important;
        font-size: 24px !important;
        margin: 0 0 10px !important;
    }

    .bbpress main div.bbp-topic-content, .bbpress main div.bbp-reply-content,
    .bbp-reply-content, .bbp-topic-content, .entry-content {
        padding: 10px !important;
        background-color: #fff !important;
        width: 100% !important;
        border: none !important;
    }

    .bbpress div#bbpress-forums, #bbpress-forums ul.bbp-replies {
        border: none !important;
        padding: 0 !important;
        background: none !important;
    }

    .ast-right-sidebar #primary {
        border: none !important;
    }
}

/* Réduire la hauteur des vignettes (related + upsell) */
.woocommerce .related.products ul.products li.product img,
.woocommerce .upsells.products ul.products li.product img {
  height: 150px;        /* ajustez cette valeur */
  object-fit: cover;    /* recadrage sans déformation */
  object-position: 50% 65%;
}

/* Masquer les étoiles d’avis (related + upsell) */
.woocommerce .related.products .star-rating,
.woocommerce .upsells.products .star-rating {
  display: none !important;
}

/* Supprimer les images dans les cross-sells (upsells du panier uniquement) */
.woocommerce-cart .cross-sells ul.products li.product img {
  display: none !important;
}

/* Réduire taille sous titre single produit */
body.woocommerce .up-sells.upsells.products h2,
body.woocommerce .related.products h2 {
  font-size: 1.63rem;
}