/*
 Theme Name:   GeneratePress Child
 Theme URI:    https://garantieavie.fr
 Description:  Thème enfant GeneratePress pour garantieavie.fr
 Author:       Julie Bonazzi
 Template:     generatepress
 Version:      1.0.0
*/

@keyframes om-marquee {
	from { transform: translateX(0); }
	to { transform: translateX(-50%); }
}
.ga-marquee-track {
	animation: om-marquee 26s linear infinite;
}
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }
* { box-sizing: border-box; }

/* Fil d'Ariane SEOPress */
.ga-breadcrumb p:empty { display: none; margin: 0; }
.ga-breadcrumb .breadcrumb {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	list-style: none;
	margin: 0;
	padding: 0;
}
.ga-breadcrumb .breadcrumb-item {
	display: flex;
	align-items: center;
	font-family: 'IBM Plex Mono', monospace;
	font-size: 11.5px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #7b8781;
}
.ga-breadcrumb .breadcrumb-item a {
	color: #7b8781;
}
.ga-breadcrumb .breadcrumb-item a:hover {
	color: #0e1310;
	text-decoration: underline;
}
.ga-breadcrumb .breadcrumb-item.active {
	color: #0e1310;
}
.ga-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
	content: '/';
	margin: 0 8px;
	color: #c7cfc9;
}

/* Cartes produit (grille résultats) : image carrée (recadrage), quelle que soit la taille source */
.ga-card-img-wrap .jet-listing-dynamic-image__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Fiche Produit : photo principale au format carré, comme toutes les autres images produit du site. */
.ga-pdp-img-wrap .jet-listing-dynamic-image__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Fiche Produit : les badges "Pays"/"Transmissible" doivent disparaître entièrement quand le
   champ est vide — hide_if_empty ne vide QUE le bloc dynamic-field lui-même, pas la pastille
   statique (fond + bordure) qui l'entoure ; on la masque via :has() quand son contenu est vide. */
.ga-pdp-badge-pays:has(> .ga-pdp-badge-pays-inner:empty),
.ga-pdp-badge-transmissible:has(> .ga-pdp-badge-transmissible-inner:empty) {
	display: none;
}

/* Fiche Produit : puces "Couvert"/"Exclu" en chip plein fond, comme la maquette */
.ga-pdp-couvert .jet-listing-dynamic-repeater__item,
.ga-pdp-exclu .jet-listing-dynamic-repeater__item {
	padding: 13px 16px;
	border-radius: 16px;
	background: #f3f5f2;
	font-size: 14.5px;
	color: #26302b;
}

/* Fiche Produit : liste "Caractéristiques" — les lignes matériau/pays/specs sont écrites en
   HTML brut (style inline) directement dans le corps du template, pas via ces classes. */
.ga-pdp-specs .jet-listing-dynamic-repeater__items {
	display: flex;
	flex-direction: column;
}

/* Barre de filtres JetSmartFilters — reproduit exactement le "facette" de la maquette
   Resultats Produits.dc.html (tour 3a "Signal", ligne ~97-108) : pilule blanche + chevron,
   panneau déroulant blanc en dessous. Règles en feuille de style classique, jamais perdues
   au filtrage AJAX contrairement au CSS GenerateBlocks inline (cf. piège n°10). */
.jet-filter-items-dropdown {
	font-family: Archivo, sans-serif;
}
.jet-filter-items-dropdown__label {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	padding: 10px 16px !important;
	background: #fff;
	border: 1px solid #dfe4dd !important;
	border-radius: 22px !important;
	font-size: 13.5px;
	font-weight: 600;
	color: #0e1310;
	cursor: pointer;
	transition: border-color 0.15s ease;
}
.jet-filter-items-dropdown__label:hover,
.jet-filter-items-dropdown.jet-dropdown-open .jet-filter-items-dropdown__label {
	border-color: #0e1310 !important;
}
.jet-filter-items-dropdown__label:after {
	content: '▼';
	position: static;
	border: none !important;
	font-size: 9px;
	color: #8d9891;
	transform: none;
}
.jet-filter-items-dropdown__body {
	margin-top: 8px !important;
	border: 1px solid #e4e8e3 !important;
	border-radius: 16px !important;
	background: #fff;
	box-shadow: 0 14px 28px rgba(14, 19, 16, 0.11);
	overflow: hidden;
	min-width: 220px;
}
.jet-filter-items-dropdown .jet-checkboxes-list-wrapper {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	row-gap: 2px;
	padding: 10px 8px !important;
}
.jet-checkboxes-list .jet-checkboxes-list__row {
	margin: 0 !important;
	padding: 0 !important;
}
.jet-checkboxes-list .jet-checkboxes-list__item {
	column-gap: 8px;
	padding: 7px 8px;
	border-radius: 10px;
	transition: background 0.12s ease;
}
.jet-checkboxes-list .jet-checkboxes-list__item:hover {
	background: #f3f5f2;
}
.jet-checkboxes-list .jet-checkboxes-list__item .jet-checkboxes-list__decorator {
	width: 16px;
	height: 16px;
	min-width: 16px;
	min-height: 16px;
	margin-top: 0;
	margin-right: 8px;
	border: 1.5px solid #cdd5cf;
	border-radius: 5px;
	background: #fff;
	transition: background 0.15s ease, border-color 0.15s ease;
}
.jet-checkboxes-list .jet-checkboxes-list__item:hover .jet-checkboxes-list__decorator {
	border-color: oklch(0.78 0.19 143);
}
.jet-checkboxes-list__input:checked + .jet-checkboxes-list__button .jet-checkboxes-list__decorator {
	background: oklch(0.78 0.19 143);
	border-color: oklch(0.78 0.19 143);
}
.jet-checkboxes-list .jet-checkboxes-list__item .jet-checkboxes-list__checked-icon {
	color: #0e1310;
}
.jet-checkboxes-list .jet-checkboxes-list__item .jet-checkboxes-list__label {
	font-family: Archivo, sans-serif;
	font-size: 14px;
	color: #1a201c;
}
.jet-filters-counter {
	font-family: 'IBM Plex Mono', monospace;
	font-size: 12px;
	color: #8d9891;
	margin-left: 3px;
}

/* Bloc "filtres actifs" : puces encre foncée + croix verte (ligne ~110-116 de la maquette) —
   on couvre les deux familles de classes possibles (jet-active-filter / jet-active-tag). */
.jet-active-filters__list,
.jet-active-tags__list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	column-gap: 8px;
	row-gap: 8px;
}
.jet-active-filters__title,
.jet-active-tags__title {
	font-family: 'IBM Plex Mono', monospace;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: #8d9891;
}
.jet-active-filter,
.jet-active-tag {
	display: inline-flex;
	align-items: center;
	column-gap: 9px;
	padding: 7px 12px;
	border-radius: 18px;
	background: #0e1310;
	border: none;
	font-family: Archivo, sans-serif;
	font-size: 12.5px;
	font-weight: 600;
	color: #f3f5f2;
}
.jet-active-filter__remove,
.jet-active-tag__remove {
	cursor: pointer;
	color: oklch(0.78 0.19 143);
}
.jet-active-tag--clear {
	background: transparent;
	border-color: transparent;
	font-family: Archivo, sans-serif;
	font-size: 12.5px;
	font-weight: 600;
	color: #6f7c76;
	margin-left: 6px;
	cursor: pointer;
}
