/**
 * Confort Cars — Conversion
 *
 * Un seul fichier pour les onze modules. Il n'invente pas de palette : il
 * reprend les variables du theme (--cc-ambre, --cc-encre, --cc-bord…) et pose
 * une valeur de secours pour chacune, afin qu'un module reste lisible meme
 * pose sur une page ou le theme ne les a pas declarees.
 */

:root {
	/* L'accent ne vient PAS de --cc-ambre : le theme l'a repeinte en noir
	   (#111) lors du passage a la charte sombre, alors que l'orange des prix
	   (#c2410c) est reste ecrit en dur. La couleur se regle donc dans
	   « Conversion > Général », et cette valeur n'est qu'un secours. */
	--cc-cv-accent: #c2410c;
	--cc-cv-accent-fonce: #9a3412;
	--cc-cv-encre: var(--cc-encre, #16202b);
	--cc-cv-douce: var(--cc-encre-douce, #5b6773);
	--cc-cv-bord: var(--cc-bord, #e4e7ea);
	--cc-cv-fond: var(--cc-carte, #fff);
	--cc-cv-rayon: var(--cc-rayon, 10px);
}

/* ==========================================================================
   Paliers de quantite (module Lots)
   ========================================================================== */

.cc-lots { margin: 0 0 1.2em; }

/* Le champ de quantite se trouve juste apres les paliers dans le formulaire :
   c'est ce voisinage qui permet de le masquer uniquement la ou les paliers
   l'ont remplace, et nulle part ailleurs (panier, grilles, fiches exclues). */
/* « !important » n'est pas un caprice : sur un produit a variantes, le script
   de WooCommerce rend le bloc visible en ecrivant « display: block » dans
   l'attribut style de l'element a chaque changement de variante. */
.cc-lots--remplace + .quantity,
.cc-lots--remplace + .quantity + .quantity { display: none !important; }
.cc-lots__titre {
	margin: 0 0 .5em;
	font-size: .82rem;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--cc-cv-douce);
}
.cc-lots__paliers {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
	gap: 8px;
}
.cc-lot {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 12px 8px 10px;
	background: var(--cc-cv-fond);
	border: 1px solid var(--cc-cv-bord);
	border-radius: var(--cc-cv-rayon);
	cursor: pointer;
	text-align: center;
	transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.cc-lot:hover { border-color: var(--cc-cv-accent); }
.cc-lot.est-choisi {
	border-color: var(--cc-cv-accent);
	box-shadow: 0 0 0 2px rgba(194, 65, 12, .2);
}
.cc-lot__gain {
	position: absolute;
	top: -9px;
	left: 50%;
	transform: translateX(-50%);
	padding: 1px 7px;
	background: var(--cc-cv-accent);
	color: #fff;
	border-radius: 999px;
	font-size: .7rem;
	font-weight: 700;
	white-space: nowrap;
}
/* ----------------------------------------------------------------------------
   Les cartes de lot du theme
   Sur 18 fiches, la quantite est vendue comme variante (« 1 crochet / lot de 2
   / lot de 4 »), avec les tarifs degressifs du fournisseur -- 10,00 € l'unite
   au lieu de 13,99. Ce sont ces prix-la qu'il faut garder : les paliers du
   module seraient plus chers. On ne remplace donc pas ces cartes, on leur
   donne l'habit des paliers. Le theme leur donne deja la classe « cc-lot », le
   plus gros du style les atteint donc sans rien faire ; restent l'accent de la
   carte choisie et la pastille de remise, posee par le script.
   ---------------------------------------------------------------------------- */
.cc-choix__lots .cc-lot { position: relative; overflow: visible; }
.cc-choix__lots .cc-lot:has( input:checked ) {
	border-color: var(--cc-cv-accent);
	box-shadow: 0 0 0 2px rgba( 194, 65, 12, .2 );
}
.cc-choix__lots .cc-lot__nom { font-size: .82rem; font-weight: 500; color: var(--cc-cv-douce); margin: 0; }
.cc-choix__lots .cc-lot__prix { font-size: 1.02rem; }
.cc-choix__lots .cc-lot__unite { font-size: .7rem; margin: 0; }
/* La premiere carte n'a pas de mention « soit … l'unite » : sans elle, elle
   monte d'un cran et les trois cartes ne s'alignent plus. */
.cc-choix__lots .cc-lot { justify-content: flex-start; }

.cc-lot__etiq { font-size: .82rem; color: var(--cc-cv-douce); }
.cc-lot__prix { font-size: 1.02rem; font-weight: 700; color: var(--cc-cv-encre); }
.cc-lot__prix .amount { font-size: inherit; }
.cc-lot__unite { font-size: .7rem; color: var(--cc-cv-douce); }

/* ==========================================================================
   Pack « souvent achetes ensemble »
   ========================================================================== */

.cc-pack {
	margin: 1.6em 0;
	padding: 16px;
	background: var(--cc-cv-fond);
	border: 1px solid var(--cc-cv-bord);
	border-radius: 14px;
}
.cc-pack .cc-pack__titre { margin: 0 0 .7em; font-size: 1.05rem; line-height: 1.3; }
.cc-pack__lignes {
	display: flex;
	align-items: flex-start;
	flex-wrap: wrap;
	gap: 6px;
}
.cc-pack__plus {
	align-self: center;
	font-size: 1.3rem;
	color: var(--cc-cv-douce);
	padding: 0 2px;
}
.cc-pack__article {
	flex: 1 1 120px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 8px;
	border: 1px solid transparent;
	border-radius: 10px;
	cursor: pointer;
	transition: border-color .15s ease, opacity .15s ease;
}
.cc-pack__article:hover { border-color: var(--cc-cv-bord); }
.cc-pack__article.est-retire { opacity: .38; }
.cc-pack__article--socle { cursor: default; }
.cc-pack__prise {
	display: flex;
	flex-direction: column;
	gap: 4px;
	cursor: pointer;
}
.cc-pack__case { align-self: flex-start; }
.cc-pack__variante {
	width: 100%;
	max-width: 100%;
	margin: 2px 0 0;
	padding: 5px 6px;
	font-size: .76rem;
	border: 1px solid var(--cc-cv-bord);
	border-radius: 7px;
	background: #fff;
}
.cc-pack__vignette img {
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border-radius: 8px;
	background: #f4f5f6;
}
.cc-pack__nom {
	font-size: .8rem;
	line-height: 1.3;
	color: var(--cc-cv-encre);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.cc-pack__prix { font-size: .85rem; font-weight: 700; }
.cc-pack__bilan {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 14px;
	padding-top: 14px;
	border-top: 1px solid var(--cc-cv-bord);
}
.cc-pack__chiffres { margin: 0; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.cc-pack__barre { text-decoration: line-through; color: var(--cc-cv-douce); font-size: .9rem; }
.cc-pack__total { font-size: 1.25rem; font-weight: 800; color: var(--cc-cv-encre); }
.cc-pack__gain {
	font-size: .8rem;
	font-weight: 700;
	color: #1a7f45;
	background: rgba(26, 127, 69, .1);
	padding: 2px 8px;
	border-radius: 999px;
}
.cc-pack__bouton { flex: 0 0 auto; }
.cc-pack__bouton[disabled] { opacity: .5; cursor: not-allowed; }

/* ==========================================================================
   Bande de compléments (module Upsell) — sert aussi au tiroir
   ========================================================================== */

.cc-bande { margin: 1.8em 0; }
.cc-bande .cc-bande__titre { margin: 0 0 .7em; font-size: 1.1rem; line-height: 1.3; }
.cc-bande__liste {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 14px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.cc-bande__item {
	display: flex;
	flex-direction: column;
	gap: 5px;
	margin: 0;
	padding: 10px;
	border: 1px solid var(--cc-cv-bord);
	border-radius: 12px;
	background: var(--cc-cv-fond);
}
.cc-bande__image img {
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border-radius: 8px;
	background: #f4f5f6;
}
.cc-bande__nom {
	font-size: .84rem;
	line-height: 1.35;
	color: var(--cc-cv-encre);
	text-decoration: none;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.cc-bande__prix { font-weight: 700; font-size: .9rem; }
.cc-bande .cc-ajout { margin-top: auto; text-align: center; font-size: .82rem; padding: .5em .8em; }

/* Sur telephone, quatre suggestions empilees faisaient 1 700 px de haut :
   personne ne descend jusqu'a la quatrieme. Elles defilent lateralement,
   comme les rangees d'applications que les visiteurs venus des reseaux
   connaissent deja. */
@media (max-width: 767px) {
	.cc-bande__liste {
		display: flex;
		gap: 10px;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		padding-bottom: 6px;
		scrollbar-width: none;
	}
	.cc-bande__liste::-webkit-scrollbar { display: none; }
	.cc-bande__item {
		flex: 0 0 46%;
		scroll-snap-align: start;
	}

	/* Le pack tient sur une ligne : trois vignettes serrees valent mieux
	   qu'une colonne de 800 px. */
	.cc-pack { padding: 12px; }
	.cc-pack__lignes { flex-wrap: nowrap; align-items: stretch; }
	.cc-pack__article { flex: 1 1 0; min-width: 0; padding: 4px; }
	.cc-pack__plus { font-size: 1rem; padding: 0; }
	.cc-pack__nom { font-size: .72rem; }
	.cc-pack__prix { font-size: .78rem; }
	.cc-pack__variante { font-size: .68rem; padding: 4px; }
	.cc-pack__bouton { width: 100%; }
	.cc-pack__bilan { gap: 8px; }
}

/* Le bouton d'ajout partage, en attendant que WooCommerce lui rende sa classe */
.cc-ajout.added { display: none; }
.cc-ajout + .added_to_cart {
	display: block;
	margin-top: 6px;
	font-size: .78rem;
	text-align: center;
}

/* ==========================================================================
   Tiroir du panier
   ========================================================================== */

/* La colonne : ce qui defile defile, le total et les boutons restent en bas.
   Le mu-plugin les collait en « sticky », ce qui les faisait chevaucher les
   articles des que le contenu s'allongeait. */
/* Le style du tiroir vient d'un mu-plugin qui s'imprime dans « wp_head »
   apres les feuilles mises en file : a specificite egale c'est lui qui
   gagnait. On passe par « .cc-tiroir » pour reprendre la main. */
.cc-tiroir .cc-tiroir__corps {
	display: flex;
	flex-direction: column;
	overflow: hidden;
}
.cc-tiroir .cc-tiroir__corps .widget_shopping_cart,
.cc-tiroir .cc-tiroir__corps .widget_shopping_cart_content {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	min-height: 0;
}
/* La liste des articles est la zone qui defile : les points d'accroche du
   milieu du mini-panier sont a l'interieur du <ul>, donc l'invitation et les
   suggestions defilent avec elle -- ce qui est bien ce qu'on veut. */
.cc-tiroir .cc-tiroir__corps .woocommerce-mini-cart {
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
	/* Les vignettes des suggestions depassaient d'un cheveu : une barre de
	   defilement horizontale apparaissait sous la liste. */
	overflow-x: hidden;
	overscroll-behavior: contain;
}
.cc-tiroir .cc-tiroir__corps .cc-tiroir-invite,
.cc-tiroir .cc-tiroir__corps .cc-tiroir-reco { border-bottom: 0; }
.cc-tiroir .cc-tiroir__corps .woocommerce-mini-cart__total,
.cc-tiroir .cc-tiroir__corps .woocommerce-mini-cart__buttons {
	position: static;
	bottom: auto;
	flex: 0 0 auto;
}
.cc-tiroir .cc-tiroir__corps .woocommerce-mini-cart__total { margin-top: .8em; }

.cc-tiroir-barre { margin: 0 0 14px; }
.cc-tiroir-barre__texte { margin: 0 0 6px; font-size: .84rem; color: var(--cc-cv-encre); }
.cc-tiroir-barre__rail {
	display: block;
	height: 6px;
	border-radius: 999px;
	background: var(--cc-cv-bord);
	overflow: hidden;
}
.cc-tiroir-barre__jauge {
	display: block;
	height: 100%;
	background: var(--cc-cv-accent);
	border-radius: 999px;
	transition: width .4s ease;
}
.cc-tiroir-barre.est-atteint .cc-tiroir-barre__jauge { background: #1a7f45; }
.cc-tiroir-promesse {
	margin: 0 0 12px;
	padding: 8px 10px;
	background: rgba(26, 127, 69, .08);
	color: #14663a;
	border-radius: 8px;
	font-size: .84rem;
	font-weight: 600;
	text-align: center;
}

.cc-tiroir-invite {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 12px 0;
	padding: 10px 12px;
	background: rgba(194, 65, 12, .06);
	border: 1px solid rgba(194, 65, 12, .22);
	border-radius: 10px;
}
.cc-tiroir-invite__texte { margin: 0; font-size: .82rem; line-height: 1.35; }
.cc-tiroir-invite__bouton {
	flex: 0 0 auto;
	padding: 6px 12px;
	border: 0;
	border-radius: 999px;
	background: var(--cc-cv-accent);
	color: #fff;
	font-size: .78rem;
	font-weight: 700;
	cursor: pointer;
}
.cc-tiroir-invite__bouton[disabled] { opacity: .6; cursor: wait; }

.cc-tiroir-reco { margin: 14px 0; }
.cc-tiroir-reco__titre {
	margin: 0 0 8px;
	font-size: .76rem;
	font-weight: 700;
	letter-spacing: .05em;
	text-transform: uppercase;
	color: var(--cc-cv-douce);
}
.cc-tiroir-reco__liste { margin: 0; padding: 0; list-style: none; }
.cc-tiroir-reco__item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 0;
	border-top: 1px solid var(--cc-cv-bord);
}
.cc-tiroir-reco__lien { flex: 0 0 48px; }
.cc-tiroir-reco__lien img {
	width: 48px;
	height: 48px;
	object-fit: cover;
	border-radius: 8px;
	background: #f4f5f6;
}
.cc-tiroir-reco__texte { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.cc-tiroir-reco__texte a {
	font-size: .82rem;
	line-height: 1.3;
	text-decoration: none;
	color: var(--cc-cv-encre);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.cc-tiroir-reco__prix { font-size: .8rem; font-weight: 700; }
.cc-tiroir-reco .cc-ajout {
	flex: 0 0 auto;
	width: 34px;
	height: 34px;
	padding: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	font-size: 1.1rem;
	line-height: 1;
}

/* Le pied doit tenir en deux lignes : dans un tiroir de 500 px de haut,
   chaque pixel qu'il prend est un article qu'on ne voit plus. */
.cc-tiroir-pied {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	flex-wrap: wrap;
	padding: 9px 0 0;
	border-top: 1px solid var(--cc-cv-bord);
	margin-top: 9px;
}
.cc-tiroir-pied__promesses {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 2px 12px;
}
.cc-tiroir-pied__promesses li {
	display: flex;
	align-items: center;
	gap: 4px;
	margin: 0;
	font-size: .72rem;
	line-height: 1.3;
	color: var(--cc-cv-douce);
}
.cc-tiroir-pied__promesses .cc-icone { color: #1a7f45; flex: 0 0 auto; width: 13px; height: 13px; }
.cc-tiroir-pied .cc-paiement { gap: 4px; }
.cc-tiroir-pied .cc-paiement svg { width: 30px; height: 20px; }

/* Le mu-plugin ecrit deja « Livraison offerte · 14 jours » sous le tiroir :
   le pied le redit avec ses pictogrammes, et le tiroir n'a pas la place de
   le dire deux fois. */
.cc-tiroir:has(.cc-tiroir-pied) .cc-tiroir__pied { display: none; }

/* Les deux boutons du tiroir sont un peu hauts pour un petit ecran. */
.cc-tiroir .cc-tiroir__corps .woocommerce-mini-cart__buttons { gap: .45em; }
.cc-tiroir .cc-tiroir__corps .woocommerce-mini-cart__buttons a { padding: .78em 1em; }

/* ==========================================================================
   Barre d'achat collante
   ========================================================================== */

.cc-sticky {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 999;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 10px 16px;
	background: var(--cc-cv-fond);
	border-top: 1px solid var(--cc-cv-bord);
	box-shadow: 0 -6px 22px rgba(0, 0, 0, .12);
	transform: translateY(110%);
	transition: transform .25s ease;
}
.cc-sticky.est-la { transform: none; }
.cc-sticky__produit { display: flex; align-items: center; gap: 10px; min-width: 0; }
.cc-sticky__produit img {
	width: 44px;
	height: 44px;
	object-fit: cover;
	border-radius: 8px;
	flex: 0 0 auto;
	background: #f4f5f6;
}
.cc-sticky__texte { display: flex; flex-direction: column; min-width: 0; }
.cc-sticky__nom {
	font-size: .84rem;
	font-weight: 600;
	color: var(--cc-cv-encre);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 46vw;
}
.cc-sticky__prix { font-size: .82rem; color: var(--cc-cv-douce); }
.cc-sticky__prix del { opacity: .6; }
.cc-sticky__bouton { flex: 0 0 auto; white-space: nowrap; }

/* La barre du bas du telephone (mu-plugin cc-barre-mobile) occupe deja le
   fond de l'ecran : on empile au-dessus d'elle plutot que par-dessus. */
@media (max-width: 767px) {
	.cc-sticky { bottom: var(--cc-barre-hauteur, 58px); }
	.cc-sticky--sans-mobile { display: none; }
}
@media (min-width: 768px) {
	.cc-sticky--sans-bureau { display: none; }
	.cc-sticky { padding: 10px 5vw; }
	.cc-sticky__nom { max-width: 40vw; }
}

/* ==========================================================================
   Badges
   ========================================================================== */

.cc-badge {
	position: absolute;
	top: 10px;
	left: 10px;
	z-index: 2;
	padding: 3px 9px;
	border-radius: 999px;
	font-size: .7rem;
	font-weight: 800;
	letter-spacing: .02em;
	line-height: 1.5;
	color: #fff;
	background: var(--cc-cv-encre);
	white-space: nowrap;
}
.cc-badge--promo { background: var(--cc-cv-accent); }
.cc-badge--rare { background: #c0392b; }
.cc-badge--best { background: #16202b; }
.cc-badge--neuf { background: #1a7f45; }
.cc-badge-fiche { position: relative; }
.cc-badge-fiche .cc-badge { position: static; display: inline-block; margin: 0 0 8px; }
ul.products li.product, .cc-home-produit, .woocommerce div.product div.images { position: relative; }

/* ==========================================================================
   Stock
   ========================================================================== */

.cc-stock { margin: 0 0 1em; }
.cc-stock__texte {
	margin: 0 0 5px;
	font-size: .84rem;
	font-weight: 600;
	color: var(--cc-cv-encre);
}
.cc-stock--bas .cc-stock__texte { color: #c0392b; }
.cc-stock__rail {
	display: block;
	height: 5px;
	background: var(--cc-cv-bord);
	border-radius: 999px;
	overflow: hidden;
	max-width: 260px;
}
.cc-stock__jauge { display: block; height: 100%; background: #1a7f45; border-radius: 999px; }
.cc-stock--bas .cc-stock__jauge { background: #c0392b; }

/* ==========================================================================
   Livraison
   ========================================================================== */

.cc-livraison {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 1em;
	padding: 9px 12px;
	background: rgba(22, 32, 43, .04);
	border-radius: 10px;
	font-size: .86rem;
	color: var(--cc-cv-encre);
}
.cc-livraison .cc-icone { flex: 0 0 auto; color: var(--cc-cv-accent); }
.cc-livraison__texte strong { font-weight: 700; }

/* ==========================================================================
   Points cles et atouts
   ========================================================================== */

.cc-cles { margin: 0 0 1.2em; padding: 0; list-style: none; }
.cc-cles li {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin: 0 0 6px;
	font-size: .88rem;
	line-height: 1.45;
	color: var(--cc-cv-encre);
}
.cc-cles .cc-icone { flex: 0 0 auto; margin-top: 2px; color: #1a7f45; }

.cc-atouts { margin: 2em 0; }
.cc-atouts .cc-atouts__titre { margin: 0 0 .8em; font-size: 1.1rem; line-height: 1.3; }
.cc-atouts__liste {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 14px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.cc-atouts__liste li {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	padding: 14px;
	background: var(--cc-cv-fond);
	border: 1px solid var(--cc-cv-bord);
	border-radius: 12px;
	font-size: .88rem;
	line-height: 1.35;
}
.cc-atouts__liste .cc-icone { flex: 0 0 auto; color: var(--cc-cv-accent); }

/* ==========================================================================
   Confiance et paiement
   ========================================================================== */

.cc-confiance { margin: 1.1em 0 0; }
.cc-confiance__liste {
	/* Quatre promesses sur trois colonnes laissaient la quatrieme seule et
	   cassee en deux lignes : deux colonnes, deux rangees pleines. */
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
	gap: 8px 18px;
	margin: 0 0 10px;
	padding: 0;
	list-style: none;
}
.cc-confiance__liste li {
	display: flex;
	align-items: center;
	gap: 7px;
	margin: 0;
	font-size: .82rem;
	color: var(--cc-cv-douce);
}
.cc-confiance__liste .cc-icone { flex: 0 0 auto; color: #1a7f45; }
.cc-confiance__texte { margin: 0 0 6px; font-size: .78rem; color: var(--cc-cv-douce); }
.cc-paiement {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.cc-paiement li { margin: 0; line-height: 0; }
.cc-paiement svg { display: block; border-radius: 4px; }

/* ==========================================================================
   Stories
   ========================================================================== */

.cc-stories { margin: 1.6em 0; }
.cc-stories .cc-stories__titre { margin: 0 0 .7em; font-size: 1.05rem; line-height: 1.3; }
.cc-stories__bulles {
	display: flex;
	gap: 14px;
	margin: 0;
	padding: 2px 2px 6px;
	list-style: none;
	overflow-x: auto;
	scrollbar-width: none;
}
.cc-stories__bulles::-webkit-scrollbar { display: none; }
.cc-stories__bulle { margin: 0; flex: 0 0 auto; }
.cc-stories__ouvrir {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	width: 84px;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
	line-height: 1.25;
}
/* L'anneau doit rester rond : sans dimensions fixes, il prenait la hauteur
   de la ligne du theme et devenait un ovale. */
.cc-stories__anneau {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 78px;
	height: 78px;
	flex: 0 0 78px;
	padding: 3px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--cc-cv-accent), #f59e5b);
	line-height: 0;
}
.cc-stories__anneau img {
	display: block;
	width: 72px;
	height: 72px;
	object-fit: cover;
	border-radius: 50%;
	border: 2px solid #fff;
	background: #f4f5f6;
}
.cc-stories__nom {
	font-size: .72rem;
	line-height: 1.25;
	text-align: center;
	color: var(--cc-cv-douce);
}

.cc-stories__lecteur {
	position: fixed;
	inset: 0;
	z-index: 100000;
	background: rgba(8, 12, 16, .96);
	display: flex;
	align-items: center;
	justify-content: center;
}
.cc-stories__lecteur[hidden] { display: none; }
.cc-stories__scene {
	position: relative;
	width: min(430px, 100vw);
	height: min(860px, 100vh);
	background: #000;
	overflow: hidden;
}
.cc-stories__jauges {
	position: absolute;
	top: 10px;
	left: 10px;
	right: 10px;
	z-index: 3;
	display: flex;
	gap: 4px;
}
.cc-stories__jauge {
	flex: 1 1 0;
	height: 3px;
	border-radius: 999px;
	background: rgba(255, 255, 255, .3);
	overflow: hidden;
}
.cc-stories__jauge span {
	display: block;
	height: 100%;
	width: 0;
	background: #fff;
}
.cc-stories__fermer {
	position: absolute;
	top: 20px;
	right: 12px;
	z-index: 4;
	width: 36px;
	height: 36px;
	border: 0;
	border-radius: 50%;
	background: rgba(0, 0, 0, .45);
	color: #fff;
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
}
.cc-stories__vue { position: absolute; inset: 0; }
.cc-stories__vue img,
.cc-stories__vue video {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.cc-stories__carte {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 3;
	padding: 26px 18px 20px;
	background: linear-gradient(transparent, rgba(0, 0, 0, .82));
	color: #fff;
}
.cc-stories__carte h3 { margin: 0 0 4px; font-size: 1.05rem; color: #fff; }
.cc-stories__carte p { margin: 0 0 12px; font-size: .95rem; font-weight: 700; }
.cc-stories__actions { display: flex; gap: 8px; }
.cc-stories__actions .button,
.cc-stories__actions .cc-ajout {
	flex: 1 1 auto;
	text-align: center;
	font-size: .85rem;
}
.cc-stories__zone {
	position: absolute;
	top: 60px;
	bottom: 120px;
	width: 34%;
	border: 0;
	background: none;
	cursor: pointer;
	z-index: 2;
}
.cc-stories__zone--avant { left: 0; }
.cc-stories__zone--apres { right: 0; }

/* ==========================================================================
   Sections de vitrine
   ========================================================================== */

.cc-avis { margin: 2.4em 0; }
.cc-avis .cc-avis__titre { margin: 0 0 .8em; font-size: 1.2rem; line-height: 1.3; }
.cc-avis__liste {
	display: flex;
	gap: 14px;
	margin: 0;
	padding: 0 2px 8px;
	list-style: none;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
}
.cc-avis__item {
	flex: 0 0 min(320px, 82vw);
	scroll-snap-align: start;
	margin: 0;
	padding: 16px;
	background: var(--cc-cv-fond);
	border: 1px solid var(--cc-cv-bord);
	border-radius: 12px;
}
.cc-avis__etoiles { color: #f5a623; letter-spacing: .08em; }
.cc-avis__texte {
	margin: 8px 0 10px;
	padding: 0;
	border: 0;
	font-size: .9rem;
	line-height: 1.5;
	font-style: normal;
	color: var(--cc-cv-encre);
}
.cc-avis__signature { margin: 0; font-size: .78rem; color: var(--cc-cv-douce); }

.cc-duo {
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: center;
	gap: 28px;
	margin: 2.4em 0;
}
.cc-duo--droite .cc-duo__image { order: 2; }
.cc-duo__image img { width: 100%; height: auto; border-radius: 14px; display: block; }
.cc-duo__texte h2 { margin: 0 0 .5em; }
.cc-duo__corps { font-size: .95rem; line-height: 1.6; }
.cc-duo__bouton { margin-top: 1em; display: inline-block; }
@media (max-width: 767px) {
	.cc-duo { grid-template-columns: 1fr; gap: 16px; }
	.cc-duo--droite .cc-duo__image { order: 0; }
}

.cc-avap { margin: 2.4em 0; }
.cc-avap .cc-avap__titre { margin: 0 0 .8em; font-size: 1.2rem; line-height: 1.3; }
.cc-avap__scene {
	position: relative;
	overflow: hidden;
	border-radius: 14px;
	user-select: none;
	touch-action: pan-y;
}
.cc-avap__image { display: block; width: 100%; height: auto; }
.cc-avap__volet {
	position: absolute;
	inset: 0;
	width: 50%;
	overflow: hidden;
}
.cc-avap__volet .cc-avap__image {
	position: absolute;
	top: 0;
	left: 0;
	height: 100%;
	width: auto;
	max-width: none;
}
.cc-avap__poignee {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 50%;
	width: 2px;
	background: #fff;
	box-shadow: 0 0 8px rgba(0, 0, 0, .4);
	pointer-events: none;
}
.cc-avap__poignee::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 36px;
	height: 36px;
	transform: translate(-50%, -50%);
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 2px 10px rgba(0, 0, 0, .35);
}
.cc-avap__curseur {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	cursor: ew-resize;
	margin: 0;
}
.cc-avap__etiq {
	position: absolute;
	top: 12px;
	padding: 3px 10px;
	border-radius: 999px;
	background: rgba(0, 0, 0, .55);
	color: #fff;
	font-size: .74rem;
	font-weight: 700;
	pointer-events: none;
}
.cc-avap__etiq--avant { left: 12px; }
.cc-avap__etiq--apres { right: 12px; }

/* ==========================================================================
   Mouvement reduit : on garde l'information, on retire l'animation
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
	.cc-sticky,
	.cc-tiroir-barre__jauge { transition: none; }
	.cc-stories__jauge span { transition: none; }
}
