/* CM Coques par prix */
.cm-cpp {
	--cm-cpp-accent: #1570ef;
	--cm-cpp-track: #e3e3e3;
	--cm-cpp-border: #e6e6e6;
	--cm-cpp-muted: #666;
	--cm-cpp-sale: #c62828;
	--cm-cpp-sticky-top: 0px;
	margin: 1.5em 0 2.5em;
}

/* ---------- Filtres ---------- */
.cm-cpp__filters {
	background: #fff;
	border: 1px solid var(--cm-cpp-border);
	border-radius: 12px;
	padding: 16px 18px 12px;
	margin-bottom: 18px;
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
	gap: 14px 28px;
	align-items: start;
}
.cm-cpp--sticky .cm-cpp__filters {
	position: sticky;
	top: var(--cm-cpp-sticky-top);
	z-index: 20;
	box-shadow: 0 4px 14px rgba(0, 0, 0, .06);
}
.cm-cpp__label {
	display: block;
	font-size: .8em;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: var(--cm-cpp-muted);
	margin-bottom: 4px;
}
.cm-cpp__price-head {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 10px;
}
.cm-cpp__values {
	font-size: 1.15em;
	font-weight: 700;
	white-space: nowrap;
}

/* Double curseur : deux input range superposés */
.cm-cpp__slider {
	position: relative;
	height: 34px;
	margin: 6px 0 30px;
}
.cm-cpp__track {
	position: absolute;
	left: 0;
	right: 0;
	top: 50%;
	height: 6px;
	margin-top: -3px;
	background: var(--cm-cpp-track);
	border-radius: 3px;
	background-image: repeating-linear-gradient(to right, transparent 0, transparent calc(5% - 1px), #cfcfcf calc(5% - 1px), #cfcfcf 5%);
}
.cm-cpp__fill {
	position: absolute;
	top: 0;
	bottom: 0;
	background: var(--cm-cpp-accent);
	border-radius: 3px;
}
.cm-cpp__range {
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 34px;
	margin: 0;
	padding: 0;
	background: none;
	border: 0;
	box-shadow: none;
	pointer-events: auto;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
	z-index: 3;
}
.cm-cpp__range:focus { outline: none; }
.cm-cpp__range::-webkit-slider-runnable-track { background: none; border: 0; height: 34px; }
.cm-cpp__range::-moz-range-track { background: none; border: 0; }
.cm-cpp__range::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	pointer-events: auto;
	width: 26px;
	height: 26px;
	margin-top: 4px;
	border-radius: 50%;
	background: #fff;
	border: 3px solid var(--cm-cpp-accent);
	box-shadow: 0 1px 4px rgba(0, 0, 0, .25);
	cursor: grab;
}
.cm-cpp__range::-moz-range-thumb {
	pointer-events: auto;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #fff;
	border: 3px solid var(--cm-cpp-accent);
	box-shadow: 0 1px 4px rgba(0, 0, 0, .25);
	cursor: grab;
}
.cm-cpp__range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px rgba(0, 0, 0, .2); }
.cm-cpp__range:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 4px rgba(0, 0, 0, .2); }

.cm-cpp__crans {
	position: absolute;
	left: 0;
	right: 0;
	top: 32px;
	height: 18px;
	pointer-events: none;
}
.cm-cpp__cran {
	position: absolute;
	transform: translateX(-50%);
	font-size: .72em;
	color: var(--cm-cpp-muted);
	white-space: nowrap;
}
.cm-cpp__cran::before {
	content: "";
	position: absolute;
	left: 50%;
	top: -8px;
	width: 1px;
	height: 5px;
	background: #c4c4c4;
}
.cm-cpp__cran:first-child { transform: none; }
.cm-cpp__cran:first-child::before { left: 0; }
.cm-cpp__cran:last-child { transform: translateX(-100%); }
.cm-cpp__cran:last-child::before { left: 100%; }

.cm-cpp__presets {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}
.cm-cpp .cm-cpp__preset {
	margin: 0;
	padding: 6px 12px;
	min-height: 0;
	line-height: 1.3;
	font-size: .85em;
	font-weight: 500;
	text-transform: none;
	letter-spacing: 0;
	color: #222;
	background: #f4f4f4;
	border: 1px solid #e0e0e0;
	border-radius: 999px;
	cursor: pointer;
}
.cm-cpp .cm-cpp__preset:hover { background: #eaeaea; }
.cm-cpp .cm-cpp__preset.is-active {
	background: var(--cm-cpp-accent);
	border-color: var(--cm-cpp-accent);
	color: #fff;
}

.cm-cpp__selects {
	display: grid;
	grid-template-columns: 1fr;
	gap: 10px;
}
.cm-cpp__field { display: block; margin: 0; }
.cm-cpp__field select {
	width: 100%;
	margin: 0;
	height: 42px;
	border-radius: 8px;
}

.cm-cpp__count {
	grid-column: 1 / -1;
	margin: 0;
	padding-top: 10px;
	border-top: 1px solid var(--cm-cpp-border);
	font-weight: 600;
}

/* ---------- Grille ---------- */
.cm-cpp__grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
	gap: 16px;
	transition: opacity .15s;
}
.cm-cpp.is-loading .cm-cpp__grid { opacity: .55; }
.cm-cpp__item { margin: 0; padding: 0; list-style: none; }
/* Flatsome decale chaque <li> du contenu de 1.3em (.entry-content ul li) :
   la grille se retrouvait poussee vers la droite. Specificite plus forte, sans !important. */
.cm-cpp .cm-cpp__grid { margin: 0; padding: 0; list-style: none; }
.cm-cpp .cm-cpp__grid > .cm-cpp__item { margin: 0; padding: 0; list-style: none; }
.cm-cpp .cm-cpp__grid > .cm-cpp__item::before,
.cm-cpp .cm-cpp__grid > .cm-cpp__item::marker { content: none; display: none; }
.cm-cpp__card {
	display: flex;
	flex-direction: column;
	height: 100%;
	color: inherit;
	text-decoration: none;
	border: 1px solid var(--cm-cpp-border);
	border-radius: 10px;
	overflow: hidden;
	background: #fff;
	transition: box-shadow .15s, transform .15s;
}
.cm-cpp__card:hover {
	box-shadow: 0 6px 18px rgba(0, 0, 0, .08);
	transform: translateY(-2px);
	color: inherit;
}
.cm-cpp__img {
	display: block;
	aspect-ratio: 1 / 1;
	background: #f7f7f7;
}
.cm-cpp__img img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	margin: 0;
}
.cm-cpp__name {
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	padding: 10px 12px 4px;
	font-size: .88em;
	line-height: 1.35;
}
.cm-cpp__pricetag {
	margin-top: auto;
	padding: 4px 12px 12px;
	font-weight: 700;
	font-size: 1.05em;
}
.cm-cpp__pricetag del { color: var(--cm-cpp-muted); font-weight: 400; font-size: .85em; }
.cm-cpp__pricetag ins { color: var(--cm-cpp-sale); text-decoration: none; }
.cm-cpp__from { font-weight: 400; font-size: .85em; color: var(--cm-cpp-muted); }

.cm-cpp__empty {
	padding: 24px;
	text-align: center;
	background: #fafafa;
	border-radius: 10px;
}
.cm-cpp__more-wrap {
	text-align: center;
	margin-top: 20px;
	min-height: 1em;
}
.cm-cpp .cm-cpp__more { margin: 0; }
.cm-cpp__loader { color: var(--cm-cpp-muted); }
.cm-cpp__sentinel { height: 1px; }
.cm-cpp [hidden] { display: none !important; }

/* ---------- Mobile ---------- */
@media (max-width: 849px) {
	.cm-cpp__filters {
		grid-template-columns: 1fr;
		padding: 14px 14px 10px;
	}
	.cm-cpp__selects { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 549px) {
	.cm-cpp__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
	}
	.cm-cpp__name { font-size: .82em; padding: 8px 9px 2px; }
	.cm-cpp__pricetag { padding: 4px 9px 10px; }
	.cm-cpp__selects { grid-template-columns: 1fr; }
}



/* ---------- Habillage des rangees Flatsome de la page ----------
   Le contenu est en [row]/[col] : l'aspect « carte » est pose sur .col-inner,
   donc la page reste modifiable dans UX Builder sans aucun HTML de mise en page. */
.cm-cpp-cartes h3,.cm-cpp-faq-row h3,.cm-cpp-bas h2,
.cm-cpp-cartes + .cm-cpp-cartes h3{font-family:Archivo,Lato,sans-serif}

/* les quatre tranches de prix : une carte par colonne */
.cm-cpp-cartes{margin-bottom:20px}
.cm-cpp-cartes .col{padding-bottom:16px}
.cm-cpp-cartes .col-inner{border:1px solid #E2E5EA;border-radius:14px;background:#fff;
	padding:20px 22px;height:100%}
.cm-cpp-cartes h3{font-weight:700;font-size:18px;line-height:1.35;margin:0 0 8px;
	color:#1B1F24;background:none;border:0;padding:0}
.cm-cpp-cartes p{margin:0;font-size:16px;line-height:1.7;color:#40474F}
.cm-cpp-cartes a{color:#1570EF}
.cm-cpp-cartes a:hover{color:#0B4FB3}

/* la FAQ : une seule carte, un filet entre les questions */
.cm-cpp-faq-row{margin-bottom:36px}
.cm-cpp-faq-row .col{padding-bottom:0}
.cm-cpp-faq-row .col-inner{border:1px solid #E2E5EA;border-radius:14px;background:#fff;padding:4px 20px}
.cm-cpp-faq-row h3{font-weight:600;font-size:17px;line-height:1.35;margin:16px 0 8px;
	color:#101418;background:none;border:0;padding:0}
.cm-cpp-faq-row h3 ~ h3{border-top:1px solid #E2E5EA;padding-top:16px}
.cm-cpp-faq-row p{margin:0 0 16px;font-size:16px;line-height:1.7;color:#40474F}
.cm-cpp-faq-row a{color:#1570EF}

/* les titres restes hors rangee prennent la meme typographie que le reste de la page */
.page-id-110759 .entry-content h2{font-family:Archivo,Lato,sans-serif;font-weight:800;font-size:26px;
	line-height:1.25;color:#1B1F24;background:none;border:0;padding:0;margin:0 0 16px}
.page-id-110759 .entry-content h1{margin-bottom:14px}
.cm-cpp-texte{margin-bottom:36px}
.cm-cpp-texte .col{padding-bottom:0}
.cm-cpp-texte p{margin:0;font-size:16px;line-height:1.7;color:#40474F}
.cm-cpp-texte a{color:#1570EF}
.cm-cpp-texte a:hover{color:#0B4FB3}

/* ---------- Bandeau « Une coque pas chere protege-t-elle bien ? » ----------
   Texte a gauche sur deux colonnes, cale sur la meme marge que les cartes du haut.
   La photo deborde du bloc gris, en haut comme en bas. */
/* Flatsome pose 30 px de padding horizontal sur une [section] : les rangees n'en ont pas,
   le texte du bandeau se retrouvait decale de 30 px vers la droite. */
.cm-cpp-bandeau{margin:64px 0 36px;border-radius:14px;overflow:visible}
/* Flatsome : .row .section{padding:0 30px} — plus specifique que .cm-cpp-bandeau seul,
   d'ou les 30 px de decalage du texte par rapport aux cartes du haut. */
.row .cm-cpp-bandeau,.container .cm-cpp-bandeau{padding-left:0;padding-right:0}
.cm-cpp-bandeau .col{padding-bottom:0}
/* 23 et non 22 : les cartes du haut ont une bordure d'un pixel */
.cm-cpp-bandeau-texte>.col-inner{padding:24px 23px 34px}
.cm-cpp-bandeau h2{font-family:Archivo,Lato,sans-serif;font-weight:800;font-size:26px;line-height:1.25;
	margin:0 0 18px;color:#1B1F24;background:none;border:0;padding:0}
.cm-cpp-bandeau p{margin:0;font-size:16px;line-height:1.7;color:#40474F}
.cm-cpp-bandeau a{color:#1570EF}
.cm-cpp-bandeau a:hover{color:#0B4FB3}

/* la photo sort du cadre : calee a droite, elle depasse de 34 px en haut et en bas */
/* la rangee principale cale la photo en bas, mais les deux colonnes de texte
   doivent demarrer en haut, a la meme hauteur */
.cm-cpp-bandeau>.section-content>.row{align-items:flex-end}
.cm-cpp-bandeau .row .row{align-items:flex-start}
.cm-cpp-bandeau-photo{padding:0}
.cm-cpp-bandeau-photo>.col-inner{padding:0}
/* marges negatives plutot qu'un positionnement absolu : la photo deborde
   du bloc gris sans dependre de la hauteur du parent */
.cm-cpp-bandeau-photo .img{width:100%!important;margin:-58px 0 0}
.cm-cpp-bandeau-photo img{display:block;width:100%;height:auto;max-width:none}

/* sous 850 px, tout revient dans le flux */
@media (max-width:849px){
	.cm-cpp-bandeau{overflow:hidden}
	.cm-cpp-bandeau-texte>.col-inner{padding:26px 22px 12px}
	.cm-cpp-bandeau .col:not(.cm-cpp-bandeau-photo){padding-bottom:14px}
	/* empilee : la photo revient dans le flux, sans debordement */
	.cm-cpp-bandeau-photo .img{margin:0;width:100%!important}
	.cm-cpp-bandeau-photo img{height:auto;width:100%;max-height:340px;object-fit:contain;object-position:50% 100%}
}

/* ---------- Ligne du bas : texte a droite sur une image de fond ---------- */
.cm-cpp-bas-fond{margin:0 0 36px;border-radius:14px;overflow:hidden}
.row .cm-cpp-bas-fond,.container .cm-cpp-bas-fond{padding-left:0;padding-right:0}
.cm-cpp-bas-fond .col{padding-bottom:0}
/* le texte ne touche pas le bord droit du bloc */
.cm-cpp-bas-fond .col:last-child>.col-inner{padding-right:46px}
.cm-cpp-bas-fond h2{font-family:Archivo,Lato,sans-serif;font-weight:800;font-size:30px;line-height:1.2;
	margin:0 0 16px;color:#343748;background:none;border:0;padding:0}
.cm-cpp-bas-fond p{margin:0;font-size:16px;line-height:1.7;color:#343748}
.cm-cpp-bas-fond a{color:#1570EF}
@media (max-width:849px){
	/* empilee : la colonne vide disparait, le fond s'efface pour garder le texte lisible */
	.cm-cpp-bas-vide{display:none}
	.cm-cpp-bas-fond .section-bg{background-image:none!important}
}

/* ---------- Livraison : texte clair sur la photo ---------- */
.cm-cpp-livraison{margin:0 0 36px;border-radius:14px;overflow:hidden}
.row .cm-cpp-livraison,.container .cm-cpp-livraison{padding-left:23px;padding-right:23px}
.cm-cpp-livraison .col{padding-bottom:0}
.cm-cpp-livraison p:last-child{margin-bottom:0}
.cm-cpp-livraison h2{font-family:Archivo,Lato,sans-serif;font-weight:800;font-size:30px;line-height:1.2;
	margin:0 0 16px;color:#fff;background:none;border:0;padding:0;
	text-shadow:0 1px 10px rgba(0,0,0,.55)}
.cm-cpp-livraison p{margin:0 0 12px;font-size:16px;line-height:1.7;color:#F2F4F6;
	text-shadow:0 1px 8px rgba(0,0,0,.6)}
.cm-cpp-livraison a{color:#9CC6FF;text-decoration:underline;text-underline-offset:3px}
.cm-cpp-livraison a:hover{color:#fff}
@media (max-width:849px){
	.row .cm-cpp-livraison,.container .cm-cpp-livraison{padding-left:22px;padding-right:22px}
	.cm-cpp-livraison .col{padding-bottom:14px}
}
