/* =========================================
   Généralités du module
   ========================================= */

.km-btn {
	display: flex;
	flex-direction: row;
	justify-content: center;
	align-items: center;
	gap: 20px;
	min-width: 180px;
	height: 55px;
	background: #1C7EE1;
	border-radius: 20px;
	font-family: 'Raleway';
	font-style: normal;
	font-weight: 700;
	font-size: 18px;
	line-height: 21px;
	text-align: center;
	color: #FFFFFF;
	margin: 0 auto;
}

.stl-blog{
	margin-top: 56px;
}

.km-btn:hover {
    background-color: #1a5bb0;
}

/* =========================================
   Page Main (Liste)
   ========================================= */
/* Bloc d'en-tête (bleu clair arrondi) */
.km-header-block {
	    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 60px 114px;
    gap: 23px;
    max-width: 1352px;
    background: #A1C3E5;
    border-radius: 30px;
	margin: 29px auto;
}

/* Badge (Shop the look) */
.km-badge {
	display: flex;
	flex-direction: row;
	justify-content: center;
	align-items: center;
	gap: 10px;
	min-width: 250px;
	height: 50px;
	background: #FFFFFF;
	border-radius: 30px;
	font-family: 'Raleway';
	font-style: normal;
	font-weight: 700;
	font-size: 18px;
	line-height: 21px;
	text-align: center;
	color: #000000;
}

.km-main-title {
	font-family: 'Raleway';
	font-style: normal;
	font-weight: 400;
	font-size: 18px;
	line-height: 21px;
	color: #FFFFFF;
}

/* Carte avec image de fond */
.km-card {
    position: relative;
    height: 450px;
    border-radius: 20px;
    background-size: cover;
    overflow: hidden;
}

/* Couche d'assombrissement pour lire le texte blanc */
.km-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.1) 50%, rgba(0,0,0,0.5) 100%);
    z-index: 1;
}

/* Contenu positionné par-dessus l'image */
.km-card-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    padding: 40px;
    z-index: 2;
    display: flex;
    flex-direction: column;
	  justify-content: space-between; 
    
}

.km-card-title {
	font-family: 'Raleway';
	font-style: normal;
	font-weight: 700;
	font-size: 36px;
	color: #FFFFFF;
}

.km-container-cards{
	width: 1240px;
	margin: 0 auto;
}

/* =========================================
   Pagination
   ========================================= */
.km-pagination .page-item .page-link {
    border: none;
    color: #333333;
    font-weight: bold;
    margin: 0 5px;
    border-radius: 5px;
}

.km-pagination .page-item.active .page-link {
    background-color: #2b7ce9;
    color: white;
}

/* =========================================
   Page Single (Détail)
   ========================================= */
.km-single-container {
	max-width: 1359px;
	background: #F9F9F9;
	border-radius: 20px;
	padding: 38px;
}

.km-single-left {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.km-single-title {
	width: 242px;
	font-family: 'Raleway';
	font-style: normal;
	font-weight: 700;
	font-size: 40px;
	line-height: 47px;
	color: #000000;
}

.km-btn-large {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 10px;
	width: 220px;
	height: 51px;
	background: #1C7EE1;
	border-radius: 18px;
	font-family: 'Raleway';
	font-style: normal;
	font-weight: 700;
	font-size: 16px;
	line-height: 19px;
	color: #FFFFFF;
}

/* Conteneur de l'iframe */
.km-iframe-wrapper {
	
}

.km-iframe-wrapper iframe {
    border-radius: 5px;
}
/* =========================================
   Widget Shop The Look (Page Single - Grid Layout)
   ========================================= */

.km-shop-widget-container {
    max-width: 1350px;
    margin: 50px auto 64px;
}

/* Badge noir "Shop the look" (Fidèle à la maquette) */
.km-badge-dark {
	display: flex;
	flex-direction: row;
	justify-content: center;
	align-items: center;
	gap: 10px;
	width: 250px;
	min-width: 250px;
	height: 50px;
	background: #000000;
	border-radius: 30px;
	font-family: 'Raleway';
	font-style: normal;
	font-weight: 700;
	font-size: 18px;
	line-height: 21px;
	text-align: center;
	color: #FFFFFF;
}

/* * LA GRILLE CSS 
 * Crée 3 colonnes égales. L'écart (gap) est de 20px.
 */
.km-shop-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-items: stretch; /* Pour que les cartes aient la même hauteur */
}

/* * L'image/vidéo principale 
 * Elle force à prendre 2 colonnes sur la première ligne
 */
.km-grid-media {
    grid-column: span 2;
    border-radius: 20px;
    overflow: hidden;
    min-height: 450px;
}

.km-look-img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    border-radius: 20px;
}

/* * SURCHARGES DESIGN POUR LES MINIATURES DE PRODUITS 
 * Adapte le design natif de votre thème pour qu'il ressemble à la maquette
 */

.km-grid-product .product-miniature{
       height: 100% !important;
}

#module-kreabelmagasine-main .stl-blog {
    margin-top: 56px;
}

/* * RESPONSIVE (Tablettes et Mobiles)
 */
@media (max-width: 992px) {
    /* Sur tablette, on passe à 2 colonnes */
    .km-shop-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .km-grid-media {
        grid-column: span 2; /* L'image prend toute la largeur */
        min-height: 350px;
    }
}

@media (max-width: 768px) {
    /* Sur mobile, on passe à 2 colonnes pour afficher 2 produits par ligne */
    .km-shop-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px; /* On réduit un peu l'espacement sur mobile pour que ça respire mieux */
    }
    .km-grid-media {
        grid-column: span 2; /* Le média principal (image/vidéo) prend toute la largeur */
        min-height: 250px;
    }
    
    .km-container-cards {
        width: 100%;
        margin: 0 auto;
    }
.km-header-block {
	border-radius: 20px;
    padding: 30px 20px;
}
.km-badge {
        background: #FFFFFF;
        color: #000000;
        border-radius: 30px;
        padding: 8px 20px;
        font-size: 14px;
        width: max-content;
        min-width: auto;
        height: auto;
    }
	   .km-header-block .km-main-title {
        color: #000000;
        font-size: 16px;
        line-height: 21px;
        margin: 0;
    }
	.km-btn-large{
		
		display: none;
	}
	.km-iframe-wrapper iframe {

    height: 370px;
}
.km-single-title {
        width: 100%;
    font-size: 24px;
    line-height: 34px;         text-align: center;
}
.km-single-container {

    padding: 40px;
    border-radius: 20px;
}
}


/* =========================================
   Bloc SEO (Page Single)
   ========================================= */
.km-seo-block {
    background: #F0F0F0;
    border-radius: 20px;
    padding: 40px;
    max-width: 1350px;
    margin: 72px auto 151px auto;
}

/* Surcharges pour formater proprement le HTML issu de l'éditeur TinyMCE */
.km-seo-block h1, 
.km-seo-block h2, 
.km-seo-block h3 {
	font-family: 'Raleway';
	font-style: normal;
	font-weight: 700;
	font-size: 32px;
	line-height: 38px;
	text-align: center;
	color: #000000;
    margin-bottom: 20px;
}

.km-seo-block p {
	font-family: 'Raleway';
	font-style: normal;
	font-weight: 500;
	font-size: 18px;
	line-height: 21px;
	color: #000000;
}

/* Responsive pour le bloc SEO */
@media (max-width: 768px) {
    .km-seo-block {
		background: #FFF;
        padding: 30px 20px;
        border-radius: 15px;
		margin: 59px auto 0px auto;
    }
    .km-seo-block h2 {
        font-size: 16px;
		line-height: 18px;
		text-align: left !important;
    }
    .km-seo-block p {
        font-size: 14px;
		line-height: 18px;
    }
	    .elementor-3170101 .elementor-element.elementor-element-69cc822 {
        margin-top: 0px;
      
    }
}