/*
 Theme Name:  Divi Child Theme
 Theme URI:    https://divilife.com
 Description:  Child Theme for Divi
 Author:       Tim Strifler
 Author URI:   https://divilife.com
 Template:     Divi
 Version:      1.0.0
*/

/*****Add any custom CSS below this line*****/

/*  @import url('https://fonts.googleapis.com/css2?family=Questrial&display=swap'); */

@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Questrial&display=swap');


@font-face {
  font-family: 'American Typewriter Regular'; /* nom lisible, peut contenir des espaces si vous le mettez entre quotes */
  src: url('fonts/american_typewriter_regular.woff2') format('woff2'),
       url('fonts/american_typewriter_regular.woff') format('woff'),
       url('fonts/american_typewriter_regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: 'AmericanTypewriter LightA'; /* nom lisible, peut contenir des espaces si vous le mettez entre quotes */
  src: url('fonts/AmericanTypewriter_LightA.woff2') format('woff2'),
       url('fonts/AmericanTypewriter_LightA.woff') format('woff'),
       url('fonts/AmericanTypewriter_LightA.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
}

/***** ALIGNEMENT VERtical ***/

.vertical-align 
{ 
    
	display: flex; 
    flex-direction: column; 
    justify-content: center;
	

} 
.pswp__img {
    max-width: none !important;
    height: auto !important;
}

/*=============*/
:root,
[data-bs-theme="light"] {
  /* Couleurs principales */
  	--color-primary-dark: #324158;      /* Bleu foncé du menu */
  	--color-primary-light: #F9E8CC;     /* Beige rosé de fond général */
  	--color-accent-yellow: #F4D97B;     /* Jaune sable accentué */
  	--color-white: #FFFFFF;
	--color-jaune : #f4d87a;

	--ligne-large-max-width : 1400px; /*1700px;*/
	/* Typos */

  --font-title: 'AmericanTypewriter LightA', sans-serif;
   --font-body: 'Poppins', 'Questrial', 'Mulish', sans-serif;

	
  /* Couleurs typographiques */
  --text-main: #27313D;               /* Gris bleu profond (plus lisible que noir) */
  --text-light: #4F4F4D;              /* Gris doux pour petits textes */
  --text-accent: #B45C5C;             /* Terracotta doux pour titres ou effets */
	--title-color : #395058;
  /* Fond de section */
  --section-bg-light: #FFFFFF;
  --section-bg-warm: #F9E8CC;
  --section-bg-light-yellow : #fbf3e8;
  --section-bg-accent: #F4D97B; /* jaune */
	--section-main-content : #fff; /*#FFF4CD;*/ /* jaune pale */
  --section-bg-dark: #324158;

  /* Boutons et liens */
  --btn-bg-primary: var(--color-accent-yellow);
  --btn-bg-hover: var(--color-primary-dark);
  --btn-text: var(--color-white);

  --link-color: var(--text-accent);
  --link-hover: #8B4513; /* Brun sépia, pour effet rétro chic */

  /* Ombres */
  --shadow-light: 0 4px 6px rgba(0, 0, 0, 0.05);
	
	/* dimension colonnes spécifique */
	--ch-col-max-width : 1280px;
	--ch-col-max-width-small : 1080px;
}

/*======= GENERAL =====*/


/* Texte */
/* body, li, span { */
body {
  font-family: var(--font-body);
	font-size: 18px;
	line-height: 1.5em;
	font-weight: 300;
	color: var(--color-primary-dark);
}
.typo_american {
	font-family :  'AmericanTypewriter LightA';
}
strong {
	font-weight: 400;
}
/* Titres */
h1, h2, h3 {
  font-family: var(--font-title);
	color : var(--title-color);
}
h1, h1.product_title {
	font-size : 42px;
	font-weight: 600;
	line-height: 1.6em;
	font-size: clamp(22px, 3vw, 38px);
}	
h1 span {
	padding-left: 0px; 
	box-sizing: border-box;
	font-size: 70%;
	display:inline-block;
}
h1 span.alt_titre {
  display: inline;
}

/* si h1 contient à la fois du texte ET un span, forcer le span en bloc */
h1:has(span.alt_titre):not(:only-child) span.alt_titre {
  display: block;
  margin-top: 0em;
  font-size: 0.8em; /* exemple si tu veux le réduire */
  color: #555;      /* exemple pour distinguer */
}
h2 {
	font-size : 28px;
	line-height: 1.4em;
	font-weight: 600;
	padding: 10px 0;
	margin: 10px 0;
}

h3 {
	font-size : 24px;
	font-weight: 600;
}

.single-post h2 {
	font-size : 32px;
}
.single-post h3 {
	font-size : 22px;
}
.header-titre {
	text-align: center;
    color: #395058;
}
.header-titre h1 {
	 font-size: 2.2rem;
    margin-bottom: 1rem;
    color: #395058;
}

.header-titre .accroche {
	font-size: 1.125rem;
    font-weight: 400;
    margin: 0;
    color: #395058;
}

.titre_smartphone {
	padding: 20px 0 10px 0px;
}
/*========
 * menu
 * ===============*/
.mobile_menu_bar:before {
	color: #fff!important;
}
/* === Fonds de section === */
  .section-arche-jaune {
  position: relative;
  overflow: hidden;
  z-index: 1;
}
  .colonne_texte {
    margin-top: 0px;
  }

/*=================================
 * 
 * SECTION ARCHE
 * 
 * ===============================*/
 .et_pb_section.section-arche .avis {padding: 20px 0;}
  .avis p {font-size: 16px!important;font-weight: 400;}

/* arche jaune */
.et_pb_section.section-arche {
    background: url('https://www.carrerond.twalmedia.fr/wp-content/uploads/2025/07/53a40f_deae864d1f9445cfbd072ab1c56f1ec9mv2.avif') no-repeat center center !important;
    background-size: cover !important;
}
  .section-arche {
  position: relative;
  overflow: hidden;
  z-index: 1;
}
.section-arche .logo-createur {
                            background: #fff;
                            border-radius: 50%;
                            aspect-ratio: 1 / 1;
                            display: flex;
                            justify-content: center;
                            align-items: center;
                            max-height: 200px;
                            width: 200px;
                            margin: 0;
							margin-top: -20px;
							margin-left: -40px;
							margin-bottom : 40px;
}
.section-arche::before {
  margin-top: 60px;
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 83%;    /* si 200% on dépasse largement pour créer l’effet d’arche */
  height: 100%;   /* la hauteur complète de la section */

  border-top-left-radius: 30% 30%;
  border-top-left-radius: 200px 200px;
	background-clip: content-box;

  z-index: -1;
   animation: fadeInArche 1.5s ease forwards;
  tmp_animation: slideInArche 1.2s ease forwards;
	width: 45%!important;
}
/* effet transition arche jauen , rouge ... */
  @keyframes fadeInArche {
  from { opacity: 0; }
  to   { opacity: 1; }
}
  @keyframes slideInArche {
  from { transform: translateX(50%) scaleX(0); }
  to   { transform: translateX(50%) scaleX(1); }
}
.section-arche.jaune::before {
	  background: #F4D87A;
}
.section-arche.rouge::before
 {
	  background: #A43E2A;
}
.section-arche.rouge .colonne_texte {
	color: #fff!important;
}
  @media(min-width: 2000px){
    .section-arche::before {
       width: 88%; 
		width: 45%!important;

    }
  }
.bg-dark { background-color: var(--section-bg-dark); color: var(--color-white); }
.bg-light { background-color: var(--section-bg-light); }
.bg-warm {
	background-color: var(--section-bg-warm); 
}
.et_pb_section.header-titre, .et-db #et-boc .et-l .et_pb_section.header-titre {
	background-color: #FBEFD9;

}
.bg-accent {
	background-color: var(--section-bg-accent); 
	background-color: var(--section-main-content); 
	
}
.ch-main-content .ch-texte {
	/*background-color : rgb(255,255,255,0.6);
	background-color: #A94F46;
	color: #fff;*/
	/*border-radius : 0px 20px 20px 0px;*/
	/*background-image: url(https://www.carrerond.twalmedia.fr/wp-content/uploads/2025/04/bg-section-main-content.png);
  background-repeat: no-repeat;
  background-attachment: fixed; 
  background-size: 100% 100%;*/
}
.ch-main-content {
	/*background-color: var(--section-bg-light-yellow);
	background : url(https://www.carrerond.twalmedia.fr/wp-content/uploads/2025/04/bg-section-main-content.png);*/
	background-image: url(https://www.carrerond.twalmedia.fr/wp-content/uploads/2025/04/bg-section-main-content.png);
  background-repeat: no-repeat;
  background-attachment: fixed; 
  background-size: 100% 100%;
}
.single-post .ch-main-content {
	background-image: none;
	background-color : var(--section-bg-light-yellow);
}
.et_pb_section.collection-montures {
	background-color: var(--section-bg-warm);
}
.ch-main-content .ch-texte {
	padding: 20px 30px;
	b_order-radius : 10px;
}
.ch-texte.bg_transparent {
	background-color: transparent;
}
.ch-texte.article {
	background-color : #fff;
}
/* === Couleurs de texte === */
.text-main { color: var(--text-main); }
.text-light { color: var(--text-light); }
.text-accent { color: var(--text-accent); }

/* === Boutons === */
.btn-primary {
  background-color: var(--btn-bg-primary);
  color: var(--text-main);
  padding: 0.75em 1.5em;
  border-radius: 4px;
  font-weight: 600;
  transition: background-color 0.3s ease;
}
.btn-primary:hover {
  background-color: var(--btn-bg-hover);
  
	 color: var(--btn-text);
}
/* Boutons */
.btn-primary {
  display: inline-block;
  margin-top: 0.5rem;
  margin-right: 1rem;
  padding: 0.75rem 1.5rem;
  background-color: #a94f46;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 500;
  transition: background 0.2s ease;
}

 .btn-primary:hover {
  background-color: #b0372f;
}
	#top_header_titre a.button_cta {
		margin-top: 60px;
		font-size: 20px;
		background-color:  #fff;
		font-weight: 400;
		
		border: solid 1px;
	}
	#top_header_titre a.button_cta:hover {
		background-color:  #F3A847;
	}
/* === Utilitaires typographiques === */
.text-uppercase { text-transform: uppercase; }
.text-center { text-align: center; }
.mt-2 { margin-top: 1rem; }
.mb-2 { margin-bottom: 1rem; }
.p-2 { padding: 1rem; }

/* === Grille de lunettes === */

body ul.ch_grid, #left-area ul.ch_grid, .entry-content ul.ch_grid {
  display: grid;
  gap: 2rem;
  list-style: none;
	list-style-type: none;
  padding: 0;
	line-height: 1.7em;
}

.woocommerce .products ul.ch_grid::before{
	content: none !important;
}

/* Style des éléments enfants */

/*=====================================
 * 
 * #top_header_titre TOP HEADER TITRE
 * 
 * ===================================*/
#top_header_titre {
	min-height : 70vh;
	padding: 0px!important;
	margin: 0px auto!important;
}
.et_pb_row.ligne_principale.large {
	max-width : var(--ligne-large-max-width)!important;
	width: 90%!important; /* a faire varier selon la dimension écran */
}
/*====== GRADIENT =======*/

#top_header_titre.bg_gradient_50 {
    position: relative;
    background: linear-gradient(90deg, #b05f57 30%, #f4d87b 30%); /* #f4d87b -> jaune vif; #f9e8ca -> pale*/
	background: linear-gradient(90deg, #a63c2f 50%, #f4d87b 50%);
	
    overflow: hidden;
    min-height: 300px; /* utile si vide */
}
#top_header_titre.bg_gradient_50.rouge_bleu {
	background: linear-gradient(90deg, #a63c2f 50%, #324158 50%); /* rouge - bleu */
	background: linear-gradient(90deg, #FAEFD9 50%, #324158 50%);
	
}

/*=== .texte_colonne ===*/
#top_header_titre .smartphone.title {
	padding: 20px 0 10px 0px;
	background-color : #fff;
}
#top_header_titre .texte_colonne {
	background-color : var(--color-jaune);
	padding: 20px;
}
#top_header_titre .image_colonne {
	background-color: #fff;
}


/* créateur */
#top_header_titre .full.short_description {
	padding: 20px 10px 20px 10px;
	text-align: left;
}
#top_header_titre .legende {
	padding : 20px;
}
#top_header_titre .legende h2 {
	margin-top: 0px;
	padding-top: 0px;
}
/*--- RESPONSIVE ---*/
@media(min-width: 2700px){
	#top_header_titre .short_description {
		padding: 20px 100px 20px 100px;
	}
}
@media(min-width: 1400px){
	#top_header_titre {
		padding-top: 30px;
	}
	#top_header_titre .short_description {
		padding: 20px 50px 20px 50px;
	}
	#top_header_titre .texte_colonne {
		border-radius : 150px 0 0 0;
		
	}
	#top_header_titre .image_colonne {
		border-radius : 0 150px 0 0;
		overflow: hidden;
	}
}
@media(max-width: 800px){
	.et_pb_text.small_font, .et_pb_code.small_font {
		font-size: 16px;
	}
	.et_pb_text.small_font h2, et_pb_code.small_font h3 {
		font-size: 20px;
	}
}
/*=============================
 * GRID CREATEURS
 * ===========================*/
.c_reateur-card h3 {
  font-family: var(--font-title);
  font-size: 1.25rem;
  color: var(--text-main);
  margin: 0.5em 0 0.2em;
}

.createur-alt {
  font-style: italic;
  font-size: 0.95em;
  color: var(--text-accent);
  margin-bottom: 0.5em;
}

.createur-accroche {
  font-size: 1em;
  color: var(--text-light);
  margin-bottom: 1em;
	min-height: 50px;
}

.createur-lunettes {
  font-size: 0.9em;
  color: #666;
  margin-bottom: 1.2em;
}

/*===============================
 * 
 * RESPONSIVE
 * 
 * ============================*/
/* Version mobile (par défaut) : 1 colonne */
.nbcol-1 {
 	grid-template-columns: repeat(1, 1fr);
}


/* Variables couleurs client */
:root {
  --color-primary: #a94f46;
  --color-secondary: #b0372f;
  --color-tertiary: #395058;
  --color-bg: #fbefd9;
  --color-accent-light: #FFD1AA;
}



ul.ch_grid_v2 {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Centre les lignes */
    gap: 20px; /* Espacement entre les éléments */

}

ul.ch_grid_v2 li {
    flex: 0 0 calc(33.333% - 20px); /* 3 colonnes par ligne en enlevant l'écart (gap) */
    max-width: calc(33.333% - 20px);
    box-sizing: border-box;
    text-align: center;
	padding : 0px 0;
	padding-bottom: 20px;
	background-color: #fff;
}
/* Colonnes Desktop */
ul.ch_grid_v2.nbcol_4 li {
	 flex: 0 0 calc(25% - 20px); /* 3 colonnes par ligne en enlevant l'écart (gap) */
    max-width: calc(25% - 20px);
}
ul.ch_grid_v2.nbcol_3 li {
	 flex: 0 0 calc(33.333% - 20px); /* 3 colonnes par ligne en enlevant l'écart (gap) */
    max-width: calc(33.333% - 20px);
}
ul.ch_grid_v2.nbcol_2 li {
	 flex: 0 0 calc(50% - 20px); /* 3 colonnes par ligne en enlevant l'écart (gap) */
    max-width: calc(50% - 20px);
}

ul.ch_grid_v2 li .ch_grid_title {
	font-family : var(--font-title);
	font-weight: bold;
	margin : 0 0 20px 0;
	padding : 20px 0;
	font-size: 140%;
}

/* Responsive TABLETTE : 2 colonnes */
@media (max-width: 991px) {
    ul.ch_grid_v2 li {
        flex: 0 0 calc(50% - 20px) !important;
        max-width: calc(50% - 20px) !important;
    }
}

/* Responsive MOBILE : 1 colonne */
@media (max-width: 600px) {
    ul.ch_grid_v2 li {
        flex: 0 0 100% !important;;
        max-width: 100% !important;;
    }
}
/*=== hover effect ====*/
ul.ch_grid_v2 li .ch_grid_cadre_contenu {
	transition: background 0.5s; /* Durée de la transition */
}
ul.ch_grid_v2 li:hover .ch_grid_cadre_contenu {
	 background-color : #F4D87A;
}
ul.ch_grid_v2 li .ch_grid_cadre_image {
	overflow: hidden;
}
ul.ch_grid_v2 li .ch_grid_cadre_image img {
	transition: transform 0.3s ease-in-out;
}
ul.ch_grid_v2 li:hover .ch_grid_cadre_image img {
	transform: scale(1.1); /* Zoom de 10% au survol */
}
/**** fin v2 ====*/
/* Version mobile : 1 colonne */
.nbcol-1 {
  grid-template-columns: repeat(1, 1fr);
}

/* Version tablette et + : 2 à 3 colonnes selon besoin */
@media(min-width: 600px){
  .nbcol-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media(min-width: 900px){
  .nbcol-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/*=====================================
 * 
 * GRID
 * 
 * ==================================*/

/* Style général des éléments de grille */
ul.ch_grid li {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(57, 80, 88, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
  border: none; /* Retirer la bordure épaisse actuelle */
}

ul.ch_grid li:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(57, 80, 88, 0.25);
}
ul.ch_grid li:hover img {
  transform: scale(1.05);
}
/* Image des lunettes */
ul.ch_grid li img {
  width: 100%;
  display: block;
  transition: transform 0.3s ease;
}
ul.ch_grid li .ch_grid_cadre_image {
	overflow: hidden;
}


/* Titre sous l'image */

ul.ch_grid li .ch_grid_title {
  text-align: center;
  font-size: 17px;
  tmp_color: var(--color-bg);
  tmp_background-color: var(--color-primary);
  padding: 10px;
  font-weight: 500;
}
ul.ch_grid li .description {
	text-align: center;
	font-size: 90%;
}
/* Infos sous le titre (métadonnées créateur/couleurs) */
ul.ch_grid li .ch_grid_meta {
  text-align: center;
  font-size: 14px;
  color: var(--color-tertiary);
  padding: 8px;
  background-color: var(--color-accent-light);
}

/* Fond global de la galerie lunettes */
.tmp_galerie-lunettes.ch_grid {
  background-color: var(--color-bg);
  padding: 2rem;
  border-radius: 15px;
}

/* Couleur des sélecteurs déroulants de filtres */
select {
  padding: 8px;
  border-radius: 5px;
  border: 1px solid var(--color-primary);
  color: var(--color-tertiary);
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(57, 80, 88, 0.1);
}

ul.ch_grid.lunette li {
  background-color: #ffffff;
	background-color: transparent;
  border-radius: 0px;
  box-shadow: 0px 0px 0px rgba(57, 80, 88, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
  border: solid 0px; /* Retirer la bordure épaisse actuelle */
}

ul.ch_grid.lunette li .ch_grid_cadre_image {
	aspect-ratio: 1 / 1;
	width: 100%;
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
	border: solid 1px #ededed;
	background-color: #f8f8f8;
	background: linear-gradient(180deg, #f9e8ca 30%, #ffffff 80%);
	background: linear-gradient(180deg, #e1e1df 30%, #ffffff 50%);
	
}
.degrade_lunette {
	 position: relative;    /* crée un nouveau stacking context si nécessaire */
  	isolation: isolate;    /* fait en sorte que la fusion se fasse contre ce fond */
}
.degrade_lunette .wc-product-image-container a{
	 background: transparent !important;
	
}
ul.ch_grid.lunette li .ch_grid_cadre_image img, .wc-product-image-container img {
  height: 100%;
  width: auto;
  object-fit: contain;


}

/*** test transparence **/
/* 1) Isolez la section pour que le mix-blend-mode fusionne avec son background-image */
.et_pb_section_2_tb_body {
  position: relative;    /* nécessaire pour le stacking context */
  isolation: isolate;    /* force la fusion contre le fond de la section */
}

/* 2) Videz tout fond sur le module image et son wrapper */
.et_pb_section_2_tb_body .image-transparence,
.et_pb_section_2_tb_body .image-transparence .et_pb_image_wrap {
  background: transparent !important;
}

/* 3) Appliquez la fusion sur l’image */
.et_pb_section_2_tb_body 
  .image-transparence 
  .et_pb_image_wrap img {
  display: block;               /* supprime l’éventuel espace sous l’image */
  background-color: transparent !important;
  mix-blend-mode: multiply !important;
}

.et_pb_section_4_tb_body  .wc-product-image-container a img.main-product-image {
  filter: url(#whiteToAlpha);
  display: inline-block;
  background: transparent;
}
ul.ch_grid.lunette li:hover .ch_grid_cadre_image img {
	mix-blend-mode: normal;
}
ul.ch_grid.lunette li .ch_grid_cadre_contenu {
	padding: 10px 0px;
}
/*ul.ch_grid.lunette li .ch_grid_title, ul.ch_grid.lunette li .createur {
	text-align: right;
	padding: 0px;
}*/
ul.ch_grid.lunette li .createur, ul.ch_grid li .createur  {
	text-align: center;
	font-size: 80%;
}
/*=====================================
 * 
 * SPLIDE SLIDER
 * 
 * ========================================*/
.splide {
  max-width: 100%;
  margin: 0 auto;
}
/*.splide img {
  width: 100%;
  height: auto;
  display: block;
}*/


/* Image centrée sans déformation */
.slide-wrapper img {
  max-width: none;
  width: auto;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
/* Cadre à ratio 16/9 desktop, 1/1 mobile */
.slide-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9; /* navigateur modernes */
	aspect-ratio: 4 / 3; /* navigateur modernes */
  /* fallback si aspect-ratio non pris en charge */
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #eee;
}
  .slide-wrapper::after {
  content: "";
  position: absolute;
  inset: 0;
    background-image : linear-gradient(#fff0 39%, #00000080);
  tmp_background: rgba(255, 255, 255, 0.3); /* blanc semi-transparent */
  z-index: 2;
  pointer-events: none;
}
  .splide-title {
    text-align: center;
    position: absolute;
    z-index: 5;
    bottom: 10px;
    tmp_background-color: rgba(255, 255, 255, 1);
    padding: 10px;
    left: 30px;
    color: #fff;
    /*left: 50%;
    transform: translateX(-50%);*/
    border-radius : 10px 10px 10px 10px;
}
    /* Ratio carré sur petits écrans */
@media (max-width: 1024px) {
  .slide-wrapper {
    aspect-ratio: 3 / 4;
  }
}
@media (max-width: 768px) {
  .slide-wrapper {
    aspect-ratio: 1 / 1;
  }
}
/*=======================================
 * 
 * CH STYLE 
 * 
 * ===================================*/

/*===========================
 * 
 * WOOCOMMERCE
 * 
 * ===============================*/
/*======
 * Galerie image 
 * ============*/

/* Forcer 4 colonnes dans une galerie Divi */

.et_pb_gallery_items.et_post_gallery {
  display: flex;
  flex-wrap: wrap;
  margin-right: 1rem!important; /* corriger le débordement éventuel */
}

.et_pb_gallery_item {
  width: calc(25% - 1rem) !important;
  margin-right: 1rem !important;
  margin-bottom: 1rem !important;
  box-sizing: border-box;
}

/* Désactiver les classes .et_pb_grid_item imposées par Divi */
.et_pb_grid_item {
  /*width: auto !important;*/
/*  margin-right: 0 !important;
  margin-bottom: 0 !important;*/
}


.et_pb_gallery_item .et_pb_gallery_image, ul.ch_grid.lunette .cadre-image, 
ul.ch_grid_v2 .cadre-image {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  position: relative;
  width: 100%;
  background: #f5f5f5; /* optionnel : couleur de fond en cas d'absence d'image */
 background: url('https://www.carrerond.twalmedia.fr/wp-content/uploads/2025/07/bg-section-main-content.png') no-repeat center center;;
	background-size: contain !important;
	background-size: 100% auto !important;
}
.et_pb_gallery_item .et_pb_gallery_image img, ul.ch_grid.lunette .cadre-image img,  ul.ch_grid_v2 .cadre-image img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: auto;
  height: 100%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  min-width: 100%;
  min-height: 100%;
}

@media (max-width: 1024px) {
  .et_pb_gallery_item {
    width: calc(33.333% - 1rem); /* 3 colonnes en tablette */
  }
}

@media (max-width: 768px) {
  .et_pb_gallery_item {
    width: calc(50% - 1rem)!important; /* 2 colonnes en mobile */
  }
}

@media (max-width: 480px) {
  .et_pb_gallery_item {
    width: 100%; /* 1 colonne en petit écran */
  }
}
/* lighetbox woocommerce */
.pswp__bg {
	background: #FBF2E3;
	background: rgba(251, 242, 227, 1);
}
.woo_product_button {
  display: flex;
  align-items: center; /* vertical align */
  gap: 8px;            /* espace entre le cœur et le bouton */
}
#add_to_fav {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    border: 0px solid #aaa;
    color: #888;
    background-color: transparent;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}
.woo_product_button #add_to_fav {
	position: relative;
	border: 1px solid #aaa;


}
#add_to_fav:hover {
	background-color: #e60023;
	color: white;
	
}
#add_to_fav.fav {
    background-color: #e60023;
    color: white;
    border-color: #e60023;
}


/* woocommerce produit */
/* 1. On centre la galerie dans le conteneur */


/* IMAGE ET GALLERIE */
/*
.woocommerce-product-gallery {
	width: 600px!important;
	 
}
.flex-viewport {
	
  width: 600px !important;
}

.woocommerce-product-gallery__image.flex-active-slide {  
	width: 600px !important;
  	height: 600px !important;

  border-radius: 50%;
  overflow: hidden;
  background-color: #fdf4e6;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  display: flex !important;
  justify-content: center;
  align-items: center;
}

.woocommerce-product-gallery__image.flex-active-slide a {
  display: flex !important;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
}

.woocommerce-product-gallery__image.flex-active-slide img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

*/
/*===========================*/


/* --- WRAPPER GLOBAL (desktop) --- */

/* IMAGE CERCLE A CONCERVER */
/*
.woocommerce-product-gallery,
.woocommerce div.product div.images,
.woocommerce-page div.product div.images {
  width: 600px !important;
  margin: auto;
  float: none;
}
*/
/* --- CERCLE POUR TOUS LES CAS --- */
/*.woocommerce-product-gallery__image,
.woocommerce-product-gallery__image.flex-active-slide,
.main-image.rond
{
  aspect-ratio: 1 / 1;
  width: 100%;
  border-radius: 50%;
  overflow: hidden;
  background-color: #fdf4e6;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  display: flex !important;
  justify-content: center;
  align-items: center;
}
*/
/* --- LIEN + IMAGE CENTRÉE --- *//*
.woocommerce-product-gallery__image a {
  width: 100%;
  height: 100%;
  display: flex !important;
  justify-content: center;
  align-items: center;
	
	
}

.woocommerce-product-gallery__image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}


.woocommerce-product-gallery__image
{
	border: solid 2px #ECDDCB!important; 
	border-radius: 10px!important;
	box-shadow: 0 4px 16px rgba(0,0,0,0.14);
	overflow: hidden;
	
}
*/
/* --- GESTION DES THUMBNAILS --- */
.woocommerce-product-gallery .flex-control-nav {
  display: flex !important;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
	
}

/* --- Moyens écrans (tablettes horizontales) --- */
	/* si cercle 
@media screen and (max-width: 980px) {

  .woocommerce-product-gallery,
  .woocommerce div.product div.images,
  .woocommerce-page div.product div.images {
    width: 500px !important;
  }

}


@media screen and (max-width: 767px) {
	
  .woocommerce-product-gallery,
  .woocommerce div.product div.images,
  .woocommerce-page div.product div.images {
    width: 100%;
    max-width: 400px !important;
  }
}
*/

/*************************
 * PRODUITS
 * =======================*/

/* ATTRIBUTS */
tmp_ul.liste-attributs-produit {

    list-style: none;
    padding: 0;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    
}

tmp_ul.liste-attributs-produit li {
    padding: 8px 14px;
    border: 1px solid #dcdcdc;
    border-radius: 10px;
    background: #ffffff;
    font-size: 12px;
    color: #222;
    font-weight: 400;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: background 0.3s, border-color 0.3s;
}

tmp_ul.liste-attributs-produit li strong {
    color: #000;
    font-weight: 500;
}

tmp_ul.liste-attributs-produit li:hover {
    background: #f7f7f7;
    border-color: #ccc;
}
/*========================================
 * HOME SECTION ACCUEIL
 * ======================================*/
/* SECTION 2 */
.home .section-accueil {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 3rem;
  padding: 3rem 0;
  background-color: #fbefd9;
}

/* Colonne gauche avec l'image ronde */
.home .section-accueil .image-lunette {
  flex: 1 1 400px;
  display: flex;
  justify-content: center;
  align-items: center;
}


/*** nom au dessous de la lunette */
 tmp.home  .lunette-cercle {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #fdf4e6;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

tmp.home .lunette-cercle img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Nom positionné en bas du cercle */
tmp.home .nom-lunette {
  position: absolute;
  bottom: 10px;
 	right: 10px;
  width: 100%;
  background: rgba(57, 80, 88, 0); /* fond sombre translucide */
  tmp_color: #fff;
  tmp_text-align: center;
  font-size: 1rem;
  font-weight: 500;
  tmp_padding: 0.5rem 0;
  box-sizing: border-box;
}

.home .image-lunette > a > .lunette-carre {
    width: 400px;
    height: 250px;
    border: 1px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin-left: 125px;
	position: relative; 
}
.home .lunette-carre img {
    width: 100%;
    height: auto;
    flex-grow: 1;
    object-fit: contain;
}

.home .nom-lunette {
	position: absolute;
	bottom: 10px;
	left: 10px;
left: 50%;
    transform: translateX(-50%);
    background: #fefefe;
    padding: 1px 10px;
    font-size: 14px;
    text-align: center;
	border-radius : 5px;
   	border-radius: 0px;
    box-sizing: border-box;
	    width: 100%;
}

/* HOME IMAGE DANS CADRE */
.home .image-produit {
	text-align: center;
}
.home .image-produit img {
	border: solid 1px #ECDDCB; 
	border-radius: 10px;
	box-shadow: 0 4px 16px rgba(0,0,0,0.24);
	max-width: 350px;

}
/* SLIDER */
.home .image-produit .et_pb_slides {
	border: solid 0px;
}
.home .image-produit .et_pb_slides img{
	
	border: 5px inset #dfd5c8;
	border: 5px ridge #f5ede2; /* Bordure en relief */
	border: solid 2px #e2cdb2;
	padding: 1px;
	background-color: #d5be9f;
	border-radius: 0px;
	box-shadow: 0 4px 16px rgba(0,0,0,0);
}
.home .image-produit .et_pb_slide {
    max-height: 300px;
}
.home .image-produit .et_pb_slide_image {
	margin: 0% 0 0 !important;
}
/* Colonne droite avec le texte */
.home .section-accueil .texte-intro {
  flex: 1 1 400px;
  color: #395058;
}


.home .section-accueil .texte-intro h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  tmp_color: #a94f46;
}

.home .section-accueil .texte-intro p {
  font-size: 1.1rem;
  line-height: 1.6;
}
/* Tablette : 2 colonnes à partir de 768px */

@media screen and (min-width : 481px) {
	tmp_ul.ch_grid li {
  		background: var(--section-bg-light);
  		tmp_box-shadow: var(--shadow-light);
  		tmp_padding: 1rem;
		tmp_border: solid 5px #000; 
  		border-radius: 0px;
  		transition: transform 0.2s ease;
	}
}
@media (min-width: 768px) {
	
	.nbcol-2 {
    	grid-template-columns: repeat(2, 1fr);
	}
	.tmp_et_pb_section {
        padding: 0px 0;
    }

}
@media screen and (max-width: 980px) {
	.no_smartphone {
		display: none;
	}
	.et_pb_row.ligne_principale.large {
		width: 100%!important;
	}
  .pg_lunette.ch_row {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    padding: 2rem 1rem;
  }

  .pg_lunette.image-col,
  .pg_lunette.infos-col {
    width: 100%;
  }

  .pg_lunette.lunette-cercle {
    width: 100%;
    max-width: 300px;
    aspect-ratio: 1 / 1;
  }

  .pg_lunette.infos-col {
    padding: 1rem;
    text-align: center;
  }

  .pg_lunette.infos-col h1 {
    font-size: 1.75rem;
  }

  .pg_lunette .btn-primary {
    display: block;
    margin: 0.5rem auto;
    width: 80%;
    max-width: 320px;
  }
	#top_header_titre .short_description {
		padding : 10px 5px 10px 15px;
		tmp_margin : 10px 5px 10px 15px;
		background-color: #fff;
		background-color: var(--section-bg-accent);
		border-radius: 0px!important;
	}
	#top_header_titre .short_description .et_pb_text_inner {
		padding : 10px 5px 10px 15px;
		background-color: #fff;
		
		border-radius: 10px;
	}
	#top_header_titre .et_pb_button_module_wrapper {
		background-color: var(--section-bg-accent);
	}
	#top_header_titre a.button_cta {
		margin-top: 20px;
		font-size: 16px;
	}
  .reverse {
    display: flex;
    flex-direction: column-reverse;
  }

	/*======== REORGANISATION ====*/
	#top_header_titre {
    	background: #fff!important;
  	}
  	.bloc_titre_principal {
    	display: flex;
		flex-direction: column;
    	flex-wrap: nowrap;
  	}

  	.bloc_titre_principal .et_pb_column {
    	display: contents !important; /* pour que les .item fonctionnent à plat */
  	}

  	.bloc_titre_principal .titre     { 
    	order: 1; 
  		padding: 20px 0 10px 0px;
		background-color : #fff;
  	}
  	.bloc_titre_principal .media     {
		order: 2; 
	}
  .bloc_titre_principal .short_description { 
	  order: 3; 
	  background: yellow;
  }
  .bloc_titre_principal .short_description .et_pb_text_inner{
    margin: 10px;
    background : #fff;
    border-radius : 10px;
  }
  .bloc_titre_principal .et_pb_button_module_wrapper     { 
	  order: 4; 
	}
  .bloc_titre_principal .legende   { 
	  order: 5; 
	}
}
/* Desktop : 3 ou 4 colonnes selon classe */
@media (min-width: 1024px) {
	.home  .lunette-cercle 
	{
  		width: 600px;
  		height: 600px;
	}
	.pg_lunette.lunette-cercle {
 		 max-width: 700px;
		max-height: 700px;
	}

  .nbcol-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .nbcol-4 {
    grid-template-columns: repeat(4, 1fr);
  }
	.nbcol-5 {
    grid-template-columns: repeat(5, 1fr);
  }
}
/*=============================
 * CALL TO ACTION
 * ============================*/
/* CTA V2 */

.cta-product {
   background-color : rgba(250,247,243,0.5);
	border: solid 2px #EAE5DF;
    padding: 25px!important;
    border-radius: 10px;
    text-align: center;
    tmp_box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.15);
    margin-top: 30px!important;
}
.cta-product h2.ch_main_title {
	font-size: 26px!important;
}
.cta-product .et_pb_image_wrap img {
	border: solid 1px #EAE5DF;
    border-radius: 10px;
}
.cta-product-texte-colonne {
	
}
.cta-product-texte-colonne, .tmp_cta-texte-content {
	  background-color: #fff; /* Fond blanc pour une intégration élégante */
    padding: 20px;
    border-radius: 10px;
  	border: solid 1px #EAE5DF;
}

.cta-intro {
    font-style: italic;
    font-size: 1.2em;
    color: #5a4227; /* Marron foncé pour le contraste */
}

.cta-invitation {
    font-weight: bold;
    font-size: 1.4em;
    color: #3b2a1a;
    margin-bottom: 15px;
}

.cta-action {
    font-size: 1.1em;
    color: #3b2a1a;
    margin: 8px 0;
    font-weight: bold;
}

.cta-action a {
    color: #000;
    font-weight: 500;
    text-decoration: none;
}

.cta-action a:hover {
    border-bottom: solid 1px;
}
/* Responsive : miniatures passent sous l’image en mobile */
@media (max-width: 768px) {
    h1 {
	font-size : 22px;
	font-weight: 600;
	line-height: 1.46em;
}
	
    .woocommerce div.product .univers-product-gallery .main-image {
        max-width: 100%!important;
    }

}

/*==================
 * ch_grid max
 * *****************/


ul.ch-grid li {
    tmp_background-color: #ffffff;
    border-radius: 10px;
    tmp_box-shadow: 0 4px 8px rgba(57, 80, 88, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    border: none;
	list-style: none;
}

/* image */
ul.ch-grid .cadre-image {
	border-bottom : solid 0px #F6F1EB;
}
ul.ch-grid li img {
    width: 100%;
    display: block;
    transition: transform 0.3s ease;
}
ul.ch-grid li .createur {
    text-align: center;
    font-size: 80%;
}
ul.ch-grid li .ch_grid_title{
    text-align: center;
    font-size: 17px;

    padding: 10px;
    font-weight: 500;
}
.ch-grid .ch_grid_cadre_contenu {
	text-align: center;
}

ul.ch-grid li:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(57, 80, 88, 0.25);
}
ul.ch-grid li:hover img {
  transform: scale(1.05);
}

.ch-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  align-items: start;
}
.ch-grid::before,
.ch-grid::after {
  content: none !important;
  display: none !important;
}


.term_item.active {
  border: 2px solid #333;
  background: #f9f9f9;
}
.term_item.active img {
  filter: grayscale(100%);
  opacity: 0.7;
  transition: filter 0.3s, opacity 0.3s;
}


