/**
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
*/



.main-header-menu .sub-menu {
	width:auto
}
.main-header-menu .sub-menu .menu-link {
	white-space:nowrap;
	word-break:break-all;
}

.main-header-menu > li:first-child > a {
    padding-left: 0;
    padding-right: 0;
}


/*  bouton search  */
.ast-header-search .astra-search-icon {
    background-color: var(--ast-global-color-0); /* couleur du fond */
    border-radius: 4px;        /* arrondi du bouton */
    padding: 5px 10px;              /* espace autour de l'icône */
    display: inline-flex;      /* pour centrer l'icône */
    align-items: center;
    justify-content: center;
}
.ast-header-search .astra-search-icon .ast-icon {
    color: #ffffff; 
}
.ast-header-search .slide-search .search-form {
  border: 1px solid var(--ast-global-color-0);
}

#secondary .wp-block-social-links li:last-child {
	margin-bottom:0.75em
}


h1.wp-block-heading {
	margin-bottom:30px
}
h1.wp-block-heading:not(.has-text-align-center),
h1.entry-title {
	position: relative;
	display: inline-block !important;
	padding-bottom: 12px; 
	vertical-align: bottom; /* évite les décalages */
}
h1.wp-block-heading:not(.has-text-align-center)::after,
h1.entry-title:after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 60%;     
	height: 2px;    
	background-color: var(--ast-global-color-0);
}

h1:not(.has-text-align-center).has-white-color::after {
	background-color: white;
}
h1:not(.has-text-align-center).has-ast-global-color-2-color::after {
	background-color: var(--ast-global-color-2);
}


h2.wp-block-heading:not(.has-text-align-center)  {
	position: relative;
	display: inline-block;
	padding-bottom: 16px; /* espace entre le texte et le trait */
	vertical-align: bottom; /* évite les décalages */
}
h2.wp-block-heading:not(.has-text-align-center)::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 60%;     
	height: 2px;    
	background-color: var(--ast-global-color-0);
}
h3.wp-block-heading:not(.has-text-align-center)  {
	position: relative;
	display: inline-block;
	padding-bottom: 16px; /* espace entre le texte et le trait */
	vertical-align: bottom; /* évite les décalages */
	/*margin-bottom:20px*/
}
h3.wp-block-heading:not(.has-text-align-center)::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 60%;     
	height: 2px;    
	background-color: var(--ast-global-color-0);
}
/*
h1.wp-block-heading:not(.has-text-align-center)::after,
h2.wp-block-heading:not(.has-text-align-center)::after {
	display: block !important;
}
h1.wp-block-heading:not(.has-text-align-center),
h2.wp-block-heading:not(.has-text-align-center) {
	clear: both !important;
}
*/

.ogs-recent-articles {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
	padding-left:0px; 
	padding-right:0px
}
.ogs-left-article .ogs-left-image {
    margin-bottom: 20px;
}
.ogs-right-article {
    display: flex;
    gap: 20px;
    margin-bottom: 1rem;
    align-items: flex-start;
}

.ogs-right-article .ogs-right-image {
    width: 25%;          /* largeur fixe plus petite */
    flex-shrink: 0;
}

.ogs-right-article .ogs-right-image img {
    width: 100%;
    height: auto;
	padding-right:20px
}

/* Texte à côté de l'image */
.ogs-right-article .ogs-right-text {
    flex: 1; /* prend le reste de la largeur */	
}



table {
  border: 1px solid #ddd; 
}
.wp-block-table th {
  border:0px;
}
.wp-block-table td {
  border-left:0;
  border-right:0;  
  border-top: 1px solid #ddd; 
  border-bottom: 1px solid #ddd; 
}


table .dashicons {
  vertical-align: middle;
  font-size:inherit
}


.livres-disponibles {
	margin-top:30px
}

/****************************************************/
/********         WOOCOMMERCE         ***************/
/****************************************************/

.wc-block-product-template {padding-left:0 !important}
.ogs-filter-form {
	display:grid; 
	grid-template-columns:1fr 1fr; 
	gap:1rem; 
	margin-bottom:30px; 
	border:1px solid #ddd; 
	padding:20px; 
	border-radius:8px;
}
.ogs-filter-form #filtreb { 
	text-align:right;
	margin-top:10px
}
ul.products li.product,
.woocommerce ul.products li.product {
	flex: 1 1 calc(25% - 2rem); /* 4 colonnes */
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	box-sizing: border-box;
}

.ogs-products-loop {
	display: grid;
	grid-template-columns: repeat(4, 1fr); /* 4 colonnes égales */
	gap: 20px;
	justify-items: stretch;
	align-items: stretch; /* force la même hauteur */
}
.ogs-product-item {
	display: flex;
	flex-direction: column;
	justify-content: space-between; /* espace équilibré entre contenu et bas */
	text-align: center;
	box-sizing: border-box;
}
.ogs-product-title {
	padding-top:20px;
	padding-bottom:0;
	text-align:center;
	margin-bottom:3px
}
/*********************************************************/
/********         FIN WOOCOMMERCE         ****************/
/*********************************************************/




/* grands écrans */
@media (min-width: 1200px) {
  .ast-plain-container.ast-no-sidebar #primary {	/* quand il n'y a pas de bannière */
    margin-top: 30px;
    margin-bottom: 60px;
  }
}

@media (max-width: 768px) {
    .entry-content .wp-block-cover:first-child {min-height:150px !important}
	.wp-block-columns.ogs-recent-articles {
        flex-direction: column;
    }
    .ogs-right-article {
        flex-direction: row;
    }
}

/* Responsive : mobile */
@media (max-width: 480px) {	
	.ogs-products-loop {
		grid-template-columns: repeat(2, 1fr); /* 4 colonnes égales */
	}
}




