/**
 * Theme Name: Blocksy Child
 * Description: Blocksy Child theme
 * Author: Creative Themes
 * Template: blocksy
 * Text Domain: blocksy
 */

.home-grid .elementor-container {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	grid-gap: 35px;
	grid-auto-flow: column;
}

.home-grid .elementor-col-50 {
	width: 100%;
}

@media (max-width: 480px) { /* Téléphones */
	.entry-header .page-title {
		line-height: 1.2em !important;
		margin-top: 10px !important;
	}
}

/* POP-UP MESSAGE PAGE D'ACCUEIL */

#popup-externe{
	position:fixed;
	top:0;
	left:0;
	width:100%;
	height:100%;
	z-index:9999;
}

.popup-overlay{
	position:absolute;
	width:100%;
	height:100%;
	background:rgba(0,0,0,0.6);
}

.popup-content{
	position:absolute;
	top:50%;
	left:50%;
	transform:translate(-50%,-50%);
	background:var(--theme-palette-color-3);
	padding:30px;
	max-width:90%;
	width:600px;
	text-align:center;
	border-radius:10px;
	max-height:45%;
	height:100vh;
}

.popup-close{
	position:absolute;
	top:10px;
	right:15px;
	cursor:pointer;
	font-size:20px;
}

.popup-titre {
	font-size:22px;
	margin-bottom:20px;
}

.popup-texte {
	font-size:18px;
	color:var(--theme-palette-color-9);
	margin-bottom:15px;
	font-weight:600;
}
.popup-actions{
	margin-top:25px;
	text-align:center;
	width:100%;
	max-width:100%;
}

.popup-continuer, .popup-annuler {
	background:var(--theme-palette-color-1);
	color:var(--theme-palette-color-9);
	border:none;
	padding:12px 25px;
	font-size:16px;
	border-radius:6px;
	cursor:pointer;
}

.popup-continuer:hover, .popup-annuler:hover {
	background:var(--theme-palette-color-2);
}

@media (max-width:768px){
	.popup-titre {
		font-size:16px;
		margin-bottom:10px;
	}
	
	.popup-texte {
		font-size:14px;
	}
	.popup-continuer, .popup-annuler {
		padding:10px 20px;
		font-size:10px;
	}
}
	

/* MODIFIER AVIS GOOGLE */

/* Modifier les couleurs des flèches avis google et personnalisation des flèches de navigation */

.ti-widget.ti-goog .ti-widget-container .ti-reviews-container .ti-controls .ti-prev,
.ti-widget.ti-goog .ti-widget-container .ti-reviews-container .ti-controls .ti-next {
    font-size: 15px !important; /* Augmente la taille */
    color: #ffffff !important; /* Change la couleur en blanc */
    background-color: var(--theme-palette-color-1) !important; /* Vert clair standard du site */
    padding: 5px !important; /* Ajoute de l'espace autour */
    border-radius: 50% !important; /* Forme ronde */
    opacity: 1 !important; /* Rend les flèches bien visibles */
}

/* Effet au survol */
.ti-widget.ti-goog .ti-widget-container .ti-reviews-container .ti-controls .ti-prev:hover,
.ti-widget.ti-goog .ti-widget-container .ti-reviews-container .ti-controls .ti-next:hover {
    background-color: var(--theme-palette-color-2) !important; /* Vert foncé standard du site */
}

/**
/* STICKER PROMOTIONNEL
*/

#barre-promo {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(90deg,#ff0033,#cc0000);
	color: var(--theme-palette-color-9);
    text-align: center;
    padding: 3px 40px;
    font-weight: 600;
	font-size: 18px;
    z-index: 99999;
    box-shadow: 0 3px 10px rgba(0,0,0,0.25);
}

#barre-promo a{
	color: var(--theme-palette-color-9);
	text-decoration: none;
}

/* Décaler uniquement pour les visiteurs (pas admin) */
body:not(.admin-bar) #barre-promo{
    top: 32px; /* ajuste selon la hauteur du header de ton thème */
}

/* Décalage du contenu */
body{
    margin-top:40px;
}

/* Décalage contenu si pas admin */
body:not(.admin-bar){
    margin-top:72px; /* top du sticker + hauteur header */
}

#barre-promo .promo-close{
    position:absolute;
    right:20px;
    top:50%;
    transform:translateY(-50%);
    cursor:pointer;
    font-size:18px;
}

body{
    margin-top:40px;
}

@media (max-width:768px){

	#barre-promo{
    	font-size:13px;
    	padding:6px 30px;
	}

	body{
	    margin-top:30px;
	}
	
	/* Décaler uniquement pour les visiteurs (pas admin) */
	body:not(.admin-bar) #barre-promo{
    	top: 10px; /* ajuste selon la hauteur du header de ton thème */
	}

	/* Décalage du contenu */
	body{
    	margin-top:40px;
	}

	/* Décalage contenu si pas admin */
	body:not(.admin-bar){
    	margin-top:72px; /* top du sticker + hauteur header */
	}
}

/**
/* MODIFIER PAGES PROGRAMMES - VIDEOS - MES VIDEOS */
/**

/* MODIFIER PAGE PROGRAMMES VIDEO ELEMENTOR CATEGORIES */

/* Conteneur principal */

.categorie-grid {	
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	height: 100%;
	max-width: 2000px !important;
	margin: 0 auto !important;
	padding: 0;
	list-style: none;
}

.texte-remise{
    text-align:center;
    font-size:20px;
	font-weight:600;
    margin-bottom:30px;
	background-color: var(--theme-palette-color-9);
	color: var(--theme-palette-color-4);
	border:2px solid var(--theme-palette-color-9);
	padding:12px 18px;
	border-radius:6px;
}

/* Chaque catégorie */

.categorie-item {
	display: flex;
    flex-direction: column;
    align-items: center;
	max-width: 200px !important;
	margin: 10px;
    padding: 0px;
    text-align: center;
	flex-grow: 1;
}	

/* Image */

.categorie-image img {
    width: 200px !important;
    height: 200px !important;
    object-fit: cover;
    border-radius: 5px;
}

/* Bouton */

.categorie-button {
    margin-top: 10px; /* Espacement avec l’image */
    width: 100%;
}

.categorie-button .button.custom-btn {
    font-family: "Merriweather", sans-serif;
    font-size: 14px;
	font-weight: 600;
    background-color: var(--theme-palette-color-9);
    color: var(--theme-palette-color-4);
    padding: 10px 15px;
    text-decoration: none;
    border-radius: 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
	min-height: 20px;
	flex-grow: 1;
}

.categorie-button .button.custom-btn svg {
    margin-right: 10px;
	width: 18px;
	height: 18px;
	flex-shrink: 0;
}

.categorie-button .button.custom-btn:hover {
    background-color: var(--theme-palette-color-2);
}

/* Description */

.categorie-description {
    font-family: "Merriweather", serif;
    color: var(--theme-palette-color-9);
    font-size: 12px;
    min-height: 3em; /* Hauteur uniforme */
    margin-top: 5px;
	text-align:left;
}

/**
/* MODIFIER PAGE PROGRAMMES VIDEO ELEMENTOR PROGRAMMES D'UNE CATEGORIE */
/**

/* Centrer l'affichage des produits */

.woocommerce ul.products li.product .woocommerce-loop-product__title {
	min-height: 3em; /* Uniformise la hauteur des titres */
	margin: 0px 0px 14px !important;
}

.woocommerce ul.products {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	max-width: 1280px;
	margin: 0 auto;
}

.woocommerce ul.products li.product {
    max-width: 200px; /* Taille fixe des produits NOMBRE A MODIFIER SELON LE NOMBRE DE PRODUITS A AFFICHER */
}

/* Produit individuel */
.woocommerce-product-details__short-description,
/* Pages catégorie / archive produit */
.woocommerce ul.products li.product .entry-excerpt {
    flex-grow: 1; /* Permet à la description de remplir l’espace disponible */
    min-height: 4em; /* Définit une hauteur minimale pour éviter les écarts */
	max-height: none;
	overflow: visible;
	text-align: left;
	color: var(--theme-palette-color-9) !important;
/*    overflow: hidden; /* Coupe le texte si trop long */
}

[data-products] .product .entry-excerpt {
	text-align: left;
}

.woocommerce ul.products li.product .price {
    align-self: flex-start; /* Aligne tous les prix au même niveau */
    align-self: center; /* Centre le prix horizontalement */
    text-align: center; /* Assure que le texte du prix est bien centré */
}

.message-version {
	display: block;
	background-color: var(--theme-palette-color-2);
	padding: 2px 6px;
	border-radius: 4px;
	margin-top: 4px;
    color: var(--theme-palette-color-9);
	font-family: "Merriweather", serif;
	font-size: 14px;
	font-weight: bold;
}

@media (max-width: 480px) { /* Téléphones */

	.woocommerce ul.products {
		padding: 0 12px !important;
	}
	.woocommerce ul.products,
	.woocommerce ul.products * {
		max-width: none !important;
		width: 100% !important;
	    height: auto !important;
	}
	.woocommerce ul.products li.product .woocommerce-loop-product__title {
		line-height: 1.2em !important;
	}

	.woocommerce span.onsale {
		display: inline-block;
		width: auto;
		max-width: fit-content;
		white-space: nowrap;
        top: 0.1em;
        left: 0.1em;
        font-size: 0.4rem;
        padding: 0.15em 0.3em;
    }
}

@media (max-width: 480px) { /* Téléphones */
	.page-id-4551 .conteneur-categories,
	.page-id-4551 .conteneur-categories * {
		max-width: none !important;
	}
	.page-id-4551 .categorie-image img {
		max-width: none !important;
		width: 100% !important;
	    height: auto !important;
		display: block;
	}
	.page-id-4551 .categorie-button,
	.page-id-4551 .categorie-description {
		max-width: none !important;
		width: 100% !important;
	}
	.page-id-3833 .conteneur-videos-achetees,
	.page-id-3833 .conteneur-videos-achetees * {
		max-width: none !important;
	}
	.page-id-3833 .mes-videos-image img {
		max-width: none !important;
		width: 100% !important;
		height: auto !important;
		display: block;
	}
	.page-id-3833 .mes-videos-button,
	.page-id-3833 .mes-videos-description {
		max-width: none !important;
		width: 100% !important;
	}
}

/**
/* MODIFICATIONS POUR PAGE MES VIDEOS */
/**

/* Conteneur principal */

.mes-videos-grid {	
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	height: 100%;
	max-width: 2000px !important;
	margin: 0 auto !important;
	padding: 0;
	list-style: none;
}

.mes-videos-date1 {
    text-align: center;
    margin-bottom: 10px;
	background-color: var(--theme-palette-color-4);
	color: var(--theme-palette-color-9);
	border:3px solid var(--theme-palette-color-9);
	padding:6px 9px;
	border-radius:12px;
}

.mes-videos-date2 {
    text-align: center;
    font-weight: bold;
    margin-bottom: 10px;
	background-color: var(--theme-palette-color-9);
	color: var(--theme-palette-color-5);
	border:3px solid var(--theme-palette-color-4);
	padding:6px 9px;
	border-radius:12px;
}

.mes-videos-expiry {
    text-align: center;
    font-weight: bold;
    margin-bottom: 10px;
	background-color: var(--theme-palette-color-9);
	color: #ff0000;
	border:3px solid var(--theme-palette-color-4);
	padding:6px 9px;
	border-radius:12px;
}

/* Chaque programme */

.mes-videos-item {
	display: flex;
    flex-direction: column;
	justify-content: space-between;
	height: 100%;
    align-items: center;
	max-width: 200px !important;
	margin: 10px;
    padding: 0px;
    text-align: center;
	flex-grow: 1;
}	

/* Image */

.mes-videos-image img {
    width: 200px !important;
    height: 200px !important;
    object-fit: cover;
    border-radius: 5px;
}

/* Bouton */

.mes-videos-button {
	display: flex;
	height: auto;
	flex-grow: 1;
	min-height: 65px; 
    margin-top: 10px; /* Espacement avec l’image */
    width: 100%;
	height: 100%;
}

.mes-videos-button .button.videos-btn {
    font-family: "Merriweather", sans-serif;
    font-size: 14px;
	font-weight: 600;
    background-color: var(--theme-palette-color-9);
    color: var(--theme-palette-color-4);
    padding: 10px 15px;
    text-decoration: none;
    border-radius: 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
	min-height: 20px;
	flex-grow: 1;
}

.mes-videos-button .button.videos-btn svg {
    margin-right: 10px;
	width: 18px;
	height: 18px;
	flex-shrink: 0;
}

.mes-videos-button .button.videos-btn:hover {
    background-color: var(--theme-palette-color-2);
}

/* Description */

.mes-videos-description {
	font-family: "Merriweather", serif;
    color: var(--theme-palette-color-9);
    font-size: 14px;
    min-height: 3em; /* Hauteur uniforme */
    margin-top: 5px;
}

/**
/* MISE EN PAGE VISIONNAGE PROGRAMME ACHETE */
/**

/* Les vidéos du programme acheté sont dans la page Elementor #4286 */

.page-id-4286 .page-title {
	display: none !important;
}

/* Les composants produits du package acheté sont dans la page Elementor #5912 */

.page-id-5912 .page-title {
	display: none !important;
}

/* Les pages Elementor #4286 et #5912 ont les mêmes structures pour titre, image et description */

.conteneur-4286-5912 {
	display: flex;
	flex-direction: column;
	max-height: 100%;
	width:100%;
}

.conteneur-description-programme {
	position: sticky;
	top: 0;
	z-index: 10;
	max-width: 100%;
	text-align: left;
	margin-top: 10px; */
	flex-shrink: 0; /* garde sa hauteur naturelle */
	min-width: 0;
}

.conteneur-sticky-programme {
	position: fixed;
	top: 100px; /* ou selon la hauteur de ton header fixe */
	max-width: 100%;
	flex-grow: 1;
	flex: 0 0 35% !important;
}

.titre-programme-video {
	text-align: center;
	margin-top: 40px;
	max-width: 100%;
}

.image-programme-video {
	max-width: 100%;
	height: auto;
	max-height: 100%;
	object-fit: contain;
	display: block;
	margin: 0 auto;
	margin-bottom: 20px;
	align-content: center;
}

.description-programme-video {
	font-size: 16px;
	line-height: 1.4;
	color: var(--theme-palette-color-9) !important;
	text-align: left;
	font-family: "Merriweather", serif;
}

.elementor-widget-wrap {
	overflow: visible !important;
	align-items: flex-start;
}

/*  Personnalisation du tableau des vidéos */

.conteneur-tableau-videos {
	max-height: calc(75vh - var(--conteneur-description-programme-height, 200px));
	flex-grow: 1;
	overflow-y: auto;
	width: 100%;
    border-collapse: collapse;
	border: 3px solid var(--theme-palette-color-9);
    margin-top: 5px;
    font-family: Merriweather, sans-serif;
}

/*  Personnalisation du message Nombre de vidéos et Nombre de programmes */

.nombre-videos {
	text-align: center; /* Alignement centré */
	background-color: var(--theme-palette-color-1); /* Vert foncé standard du site */
	color: var(--theme-palette-color-9); /* Texte en blanc standard du site */
	font-family: Merriweather, sans-serif;
	position: sticky;
	top: 0;
	z-index: 2;
}

/* Couleur de fond des en-têtes */

.conteneur-tableau-videos th {
	position: sticky;
	top: 55px;
	z-index: 1;
    background-color: var(--theme-palette-color-2); /* Vert foncé standard du site */
    color: var(--theme-palette-color-9); /* Texte en blanc standard du site */
    font-weight: bold; 
	border-bottom: 4px solid var(--theme-palette-color-9);
    padding: 10px;
    text-align: center; /* Alignement centré */
}

/* Style des cellules */

.conteneur-tableau-videos td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left; /* Alignement du texte à gauche */
    color: var(--theme-palette-color-9); /* Texte en blanc standard du site */
}

.conteneur-tableau-videos th, .conteneur-tableau-videos td {
	border: 3px solid var(--theme-palette-color-9);
}

/* Alternance de couleur pour les lignes */

.conteneur-tableau-videos tr:nth-child(even) {
	background-color: var(--theme-palette-color-4); /* Vert clair standard du site */
}

/* Bouton avec icône */

.btn-video {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 8px 12px;
    background-color: none;
    color: var(--theme-palette-color-9);
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s ease; 
    border: none;
}

.btn-video:hover {
    background-color: var(--theme-palette-color-2);
	color: var(--theme-palette-color-9);
	text-decoration: underline; 
}

/* Icône à gauche du texte */

.btn-video::before {
    content: '▶️'; /* Icône lecture vidéo */
    font-size: 16px;
}

.btn-video::after {
    content: '🎥'; /* Icône caméra */
    font-size: 16px;
}

@media (max-width: 1280px) { /* Petits PC */
	.titre-programme-video {
        font-size: 25px;
		text-align: center;
    }
	.image-programme-video {
		display: block;
		margin-left: auto;
		margin-right: auto;
	}
	.table-videos th {
		font-size: 16px;
    }
	.table-videos td {
		font-size: 15px;
	}
	.btn-video::before {
		font-size: 15px;
	}
	.btn-video::after {
		font-size: 15px;
	}
}

@media (max-width: 768px) { /* Tablettes 768 et petits écrans */
	.titre-programme-video {
        font-size: 25px;
		text-align: center;
    }
	.image-programme-video {
		display: block;
		margin-left: auto;
		margin-right: auto;
	}
	.table-videos th {
		font-size: 16px;
    }
	.table-videos td {
		font-size: 15px;
	}
	.btn-video::before {
		font-size: 15px;
	}
	.btn-video::after {
		font-size: 15px;
	}
}

@media (max-width: 600px) { /* Tablettes portrait & Téléphones */
	.conteneur-sticky-programme {
		position: static;
		top: 100px; /* ou selon la hauteur de ton header fixe */
		max-width: 100%;
	}
	.conteneur-tableau-videos {
		position: static;
		max-height: none !important;
		overflow-y: visible !important;
	}
	.conteneur-tableau-videos th {
		position: static;
		top: 20px;
		z-index: 1;
	}
	.titre-programme-video {
		position: static;
		font-size: 25px;
		text-align: center;
	}
	.image-programme-video {
		position: static;
		display: block;
		margin-left: auto;
		margin-right: auto;
		margin-bottom: 0px;
	}
	.description-programme-video {
		font-size: 20px;
		margin-bottom: 20px;
	}
	.nombre-videos {
		font-size: 20px;
	}
	.table-videos th {
		font-size: 18px;
	}
	.table-videos td {
		font-size: 15px;
	}
	.btn-video::before {
		font-size: 10px;
	}
	.btn-video::after {
		font-size: 10px;
	}
}

@media (max-width: 480px) { /* Téléphones */
	.description-programme-video {
		font-size: 14px;
		margin-bottom: 20px;
	}	
	.nombre-videos {
		font-size: 18px;
	}
	.table-videos th {
		font-size: 14px;
	}
	.table-videos td {
		font-size: 12px;
	}
}

/**
/* MISE EN PAGE VISIONNAGE VIDEO D'UN PROGRAMME ACHETE */
/**

/* Le visionnage de vidéo du programme acheté est dans la page Elementor #4597 */

.image-lecture-video {
	display: flex;
	width: 100%;
	max-width: 100%;
	justify-content: center;
	align-items: center;
	margin-bottom: -100px;
}

.image-lecture-video .fv-player {
	width: 100% !important;
	height: auto !important;
}

.container-btn-liste-video {
	text-align: center;
	margin-top: 5px;
}

.btn-liste-video {
	display: inline-block;
    padding: 10px 20px;
    background-color: var(--theme-palette-color-4);
    color: var(--theme-palette-color-9);
    text-decoration: none;
    border-radius: 6px;
    transition: background-color 0.3s ease; 
    border: none;
	font-size: 16px;
    font-family: Merriweather, sans-serif;
}

.btn-liste-video:hover {
    background-color: var(--theme-palette-color-2);
	color: var(--theme-palette-color-9);
	text-decoration: none; 
}

.titre-programme-lecture {
	border: 6px solid var(--theme-palette-color-2);
	border-radius: 10px;
	padding: 5px;
	display: inline-block;
}

@media (max-width: 3000px) { /* Grands écrans */
	.image-lecture-video {
		width: 600px;
		height: 500px;
	}
}

@media (max-width: 1200px) { /* Tablettes et petits écrans */
    .titre-programme {
		text-align: center;
        font-size: 40px;
    }
	.titre-programme-lecture {
		text-align: center;
        font-size: 30px;
	}
	.btn-liste-video {
		font-size: 20px;
	}
}

@media (max-width: 1024px) { /* Tablettes et petits écrans */
	.image-lecture-video {
		width: 600px;
		height: 500px;
	}
}

@media (max-width: 480px) { /* Téléphones */
    .titre-programme {
		text-align: center;
        font-size: 24px;
    }
	.titre-programme-lecture {
		text-align: center;
        font-size: 20px;
	}
	.btn-liste-video {
		font-size: 12px;
	}
	.image-lecture-video {
		display: flex;
		width: 300px;
		height: 250px;
	}
}

/**
/* MODIFIER PAGES WOOCOMMERCE PANIER, COMPTE ET PAIEMENT */
/**
*/

/* Mini-panier : couleur de l'icône "supprimer" */
.woocommerce-mini-cart .remove svg {
    fill: indianred !important;
}

.woocommerce-mini-cart .remove:hover svg {
    fill: red !important;
}

/* Panier principal */

.woocommerce-cart-form__contents .actions div, .woocommerce-cart-form__contents .actions p {
	font-family: Merriweather, sans-serif !important;
	color: var(--theme-palette-color-9) !important;
    padding: 8px !important;
}

.woocommerce-message {
	font-family: Merriweather, sans-serif !important;
	background-color: var(--theme-palette-color-2) !important;
	color: var(--theme-palette-color-9) !important;	
}

/* Masquer les icônes + et - dans l'écran produit Ajouter au panier */

.quantity[data-type=type-2] .ct-decrease {
	display:none;
}

.quantity[data-type=type-2] .ct-increase {
	display:none;
}

/* Masquer Quantité, Ajouter au panier et changement des couleurs des champs dans la page Panier */

[data-products=type-1] .ct-woo-card-actions {
	display: none;
}

.button[name="update_cart"] {
	display: none !important;
}

.woocommerce-cart .woocommerce form .coupon input#coupon_code {
	background-color: var(--theme-palette-color-2) !important;
    width: 180px !important;
	height: 45px !important;
    font-size: 14px !important;
    padding: 4px !important; /* Ajoutez du padding pour un champ plus grand */
	color: var(--theme-palette-color-9) !important;	
}

.woocommerce-cart-form__contents .actions #coupon_code {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.button[name="apply_coupon"] {
	height: 45px !important;
	font-family: Merriweather, sans-serif !important;
	font-size: 14px !important;
	padding: 4px !important;
}

.button[name="apply_coupon"] hover {
    background-color: var(--theme-palette-color-2);
	color: var(--theme-palette-color-9);
}

[class*=ct-woocommerce] .shop_table .product-quantity {
	display: none;
}

[class*=ct-woocommerce] .shop_table .product-mobile-actions {
	display:none;
}

table.shop_table {
	color: var(--theme-palette-color-9) !important;
}	

.ct-woocommerce-cart-form .cart_totals h2 {
	font-size: 18px !important;
}

table.shop_table .cart-subtotal {
	border-top: 1px  dashed var(--theme-palette-color-2) !important;
	color: var(--theme-palette-color-2) !important; 
}

table.shop_table .order-total {
	font-family: Merriweather, sans-serif;
	border-top: 1px  dashed var(--theme-palette-color-2) !important;
	border-bottom: 1px  dashed var(--theme-palette-color-2) !important;
	color: var(--theme-palette-color-2) !important;
}

.woocommerce-remove-coupon {
	display: none !important;
}

.woocommerce-cart {
	--theme-icon-color: indianred;
	font-size: 60px !important;
}

/* Réduire la largeur de l'image produit dans le panier */
.woocommerce-cart table.cart td.product-thumbnail {
    width: 95px;
}

/* Réduire la taille réelle de l'image */
.woocommerce-cart table.cart td.product-thumbnail img {
    width: 95px;
    height: auto;
}

/* Styliser la description programme et valeurs sous-total */

.ct-woocommerce-cart-form th.product-name {
	font-family: Merriweather, sans-serif !important;
	font-size: 20px !important;
	padding: 50px 30px 15px!important;
}

.ct-woocommerce-cart-form th.product-subtotal {
	font-family: Merriweather, sans-serif !important;
	font-size: 20px !important;
	padding: 50px 30px 15px!important;
}

.ct-woocommerce-cart-form td.product-name {
	font-family: Merriweather, sans-serif !important;
	color: var(--theme-palette-color-9) !important;
	font-size: 16px !important;
	padding: 50px 30px 15px!important;
}

.ct-woocommerce-cart-form td.product-subtotal {
	font-family: Merriweather, sans-serif !important;
	font-size: 16px !important;
}

body.woocommerce-cart .wc-proceed-to-checkout a.button.checkout-button {
	font-family: Merriweather, sans-serif;
}

@media (max-width: 480px) { /* Téléphones */
	[data-prefix="single_page"] .hero-section .page-title {
		margin-bottom: 0px;
	}
}

/* style pour les pages woocommerce de paiement et de compte */

.woocommerce-info {
	background-color: var(--theme-palette-color-2) !important;
	font-family: Merriweather, sans-serif !important;
	font-size: 14px !important;
}

.woocommerce-checkout,
.woocommerce-account,
.page-id-1875 {
	color: var(--theme-palette-color-9) !important;
}

.page-id-1493 {
	color: black;
}

/* Style messages erreur du panier */

/**
/* MODIFIER PAGE WOOCOMMERCE PAIEMENT */
/**

/* Styliser le message paiement quand l'utilisateur n'est pas connecté */

.custom-login-message {
    background: var(--theme-palette-color-1);
    border: 2px solid var(--theme-palette-color-9);
    padding: 15px 20px;
    border-radius: 10px;
    font-size: 16px;
    line-height: 1.5;
    color: var(--theme-palette-color-9);
    margin: 20px 0;
	text-align: center;
}

.custom-login-message p {
    margin: 0;
}

.custom-login-message a {
    color: var(--theme-palette-color-9);
    text-decoration: underline;
    font-weight: bold;
}

.custom-login-message a:hover {
    color: var(--theme-palette-color-2);
    text-decoration: none;
}

/* Changer couleurs page paiement */

.ct-order-review {
	color: var(--theme-palette-color-1);
}

.woocommerce-thankyou-order-details {
	color:white
}

.woocommerce-checkout-review-order-table .cart-subtotal {
	color: var(--theme-palette-color-1);
}

.woocommerce-checkout-review-order-table .order-total {
	color: #52786f;
}

.woocommerce-checkout-payment {
	color: #ffff;
}

.woocommerce-checkout-payment .payment_method_woocommerce_payments label {
	color: #52786f;
}

.order-actions--heading {
	display:none;
} 

.woocommerce-additional-fields {
	display: none !important;
}

/* Aligner astérisques obligatoire à gauche page paiement */

.woocommerce form .form-row label {
    display: flex;
    align-items: center;
	font-weight: 400 !important;
}

.woocommerce form .form-row .required {
    order: -1; /* Déplace l'astérisque à gauche */
    margin-right: 5px; /* Ajoute un espacement entre l'astérisque et le texte */
}

.payment_methods li.wc_payment_method>input[type=radio]:first-child:checked+label:before {
	display:none
}

@media (max-width: 480px) { /* Téléphones */
	.ct-woocommerce-checkout h3 {
		margin-top: 40px;
	}
}

/**
/* MODIFIER PAGE WOOCOMMERCE COMPTE */
/**

/* Styliser la boite modale de l'inscription qui gère le code de validation de l'adresse email */

.email-verification-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* fond semi-transparent */
    z-index: 9999;
	justify-content: center;
    align-items: center;
    font-family: Arial, sans-serif;
}

.email-verification-content {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    width: 90%;
}

.email-verification-content p {
    font-size: 16px;
    color: #333;
    margin-bottom: 20px;
}

.email-verification-content button {
    padding: 10px 20px;
    margin: 5px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 15px;
}

#code-verification-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;       
    justify-content: center;  
    height: 100%;             
    text-align: center;
}

#code-inputs input.code-input {
    width: 40px;
    height: 50px;
    font-size: 24px;
	text-align: center;
	line-height: 50px;
	padding: 0;
    border: 2px solid #ccc;
    border-radius: 4px;
	box-sizing: border-box;
}

.modale-button {
    background-color: var(--theme-palette-color-1);
	font-family: Merriweather, sans-serif;
	color: var(--theme-palette-color-9);
}

.modale-button:hover {
    background-color: var(--theme-palette-color-2);
	color: var(--theme-palette-color-9);
}

.code-error {
    display: none;
    color: white;
    background-color: red;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-left: 10px;
}

.error-message {
    color: red;
    font-size: 14px;
    margin-top: 10px;
    text-align: center;
}

/* On masque le titre de la page affichant le texte de confirmation d'inscription (page 6254) */

#post-6254 .page-title {
	display: none;
}


/* Aligner astérisques obligatoire à gauche page détails du compte */

/* Modifier les couleurs de la page Mon compte */

ul.ct-header-account-dropdown {
	background-color: var(--theme-palette-color-1) !important;
	font-family: Merriweather, sans-serif !important;
	color: var(--theme-palette-color-9) !important;
}

ul.ct-header-account-dropdown a {
	color: var(--theme-palette-color-9) !important;
}

ul.ct-header-account-dropdown a:hover {
	background-color: var(--theme-palette-color-2) !important;
}

.ct-header-account-dropdown .ct-header-account-user-info .ct-menu-link {
	background-color: var(--theme-palette-color-2) !important;
}

.woocommerce-MyAccount-navigation {
	background-color: var(--theme-palette-color-1) !important;
}

.ct-acount-nav {
	background-color: var(--theme-palette-color-1) !important;
}

.woocommerce-MyAccount-navigation ul {
	display: flex;
	flex-direction: column;
	align-items: stretch;
}

.woocommerce-MyAccount-navigation ul li {
	width: 100%;
}

.woocommerce-MyAccount-navigation ul li a {
	display: block;
	width: 100%;
	font-family: Merriweather, sans-serif !important;
	color: var(--theme-palette-color-9) !important;
	padding: 12px 16px;
}

.woocommerce-MyAccount-navigation ul li a:hover {
	background-color: var(--theme-palette-color-2) !important;
}

.woocommerce-MyAccount-navigation ul li.is-active a {
	background-color: var(--theme-palette-color-9) !important;
	color: var(--theme-palette-color-2) !important;
}

.woocommerce a.button {
	font-family: Merriweather, sans-serif !important;
	font-size: 13px !important;
}

.woocommerce-Address .woocommerce-Address-title a {
    color: var(--theme-palette-color-9) !important; /* couleur du lien */
    background-color: var(--theme-palette-color-1); /* fond du lien */
    padding: 6px 12px;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.3s ease;
	font-family: Merriweather, sans-serif !important;
	font-size: 13px !important;
}

.woocommerce-Address .woocommerce-Address-title a:hover {
    background-color: var(--theme-palette-color-2); /* couleur au survol */
    color: var(--theme-palette-color-9) !important;
}

.woocommerce-MyAccount-content form .woocommerce-address-fields button[name="save_address"] {
	font-family: Merriweather, sans-serif !important;
	font-size: 13px !important;
}

.woocommerce-MyAccount-content form.woocommerce-EditAccountForm button[name="save_account_details"] {
	font-family: Merriweather, sans-serif !important;
	font-size: 13px !important;
}

/**
/* AFFICHAGE FORMULAIRE RESERVATION SOINS */
/**

/* Modifications pour le formulaire */

#submit-btn {
    display: inline-block;
    vertical-align: middle;
}

.message-succes {
    background: #80a87b;
    border: dashed;
	border: color #ffff;
	border-radius: 10px;
	color: var(--theme-palette-color-9);
    text-align: center;
}

.message-erreur {
    background: var(--theme-palette-color-9);
    border: dashed;
	border: color red;
	border-radius: 10px;
	color: red;
    text-align: center;
	list-style: none;
}

#bouton_envoyer_formulaire {
    display: block;
	width: 350px;
	margin: 0 auto;
    border: dashed;
	border: color var(--theme-palette-color-9);
	border-radius: 10px;
    color: var(--theme-palette-color-9);
    cursor: pointer;
    padding: 5px;
    font-size: 1.2em;
}

.options-fieldset legend {
    font-size: 14px; /* Taille du texte */
    padding: 5px 10px; /* Espacement interne */
    border: 1px solid #ccc; /* Bordure autour du texte */
    background-color: var(--theme-palette-color-2); /* Couleur de fond */
    border-radius: 5px; /* Coins arrondis */
}

.dispos-fieldset legend {
    font-size: 14px; /* Taille du texte */
    padding: 5px 10px; /* Espacement interne */
    border: 1px solid #ccc; /* Bordure autour du texte */
    background-color: var(--theme-palette-color-2); /* Couleur de fond */
    border-radius: 5px; /* Coins arrondis */
}

.dispos-fieldset > legend + .checkbox-container-dispos legend:first-of-type {
	margin-top: 0px;
}

.checkbox-fieldset {
    border: 2px solid #ccc;
    padding: 10px;
    max-width: 100%; /* S'adapte à la largeur du conteneur parent */
}

.checkbox-fieldset legend {
    padding: 0 5px;
}

.checkbox-container-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px,1fr)); /* Colonnes adaptatives */
    margin-right: 8px;
}

.checkbox-container-options label {
    display: flex;
    align-items: center;
    gap: 8px; /* Espacement entre la case et le texte */
	font-size: 15px; /* Taille du texte */
	white-space: nowrap;
}

.checkbox-container-dispos {
    display: grid;
    margin-right: 8px;
}

.checkbox-container-dispos .empty {
    visibility: hidden;
}

.checkbox-container-dispos legend {
	margin-top: 16px;
	margin-bottom: 16px;
	display: block;
}

.checkbox-row-dispos {
    display: grid;
	grid-template-columns: repeat(4,1fr);
}

.checkbox-row-dispos label {
    display: flex;
	align-items: center;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	gap: 8px; /* Espacement entre la case et le texte */
}

@media (max-width: 1024px) { /* Tablettes portrait et petits écrans */
    .checkbox-container-options {
        grid-template-columns: repeat(2, 1fr); /* Passe à 2 colonnes */
    }
}

@media (max-width: 480px) { /* Téléphones */
    .checkbox-container-options {
        grid-template-columns: repeat(1, 1fr); /* Passe à 1 colonne */
    }
}

@media (max-width: 1024px) { /* Tablettes portrait et petits écrans */
    .checkbox-row-dispos {
        grid-template-columns: repeat(2, 1fr); /* Passe à 2 colonnes */
    }
}

@media (max-width: 480px) { /* Téléphones */
    .checkbox-row-dispos {
		display: grid;
        grid-template-columns: repeat(1, 1fr); /* Passe à 1 colonne */		
		row-gap: 8px;
		margin-bottom: 8px;
	}
	.checkbox-row-dispos label {
		margin: 0;
    }
}
