/* =========================================================
   CLP Why Choose Us — Le Compagnon Leprince
   Vert #1a6bbf · Gris foncé #3a4660
   4 designs · reveals en cascade · polices du thème Modins
   ========================================================= */
.clp-why {
	--clp-accent: #1a6bbf;
	--clp-gris: #3a4660;
	--clp-why-pad-x: 0px;
	--clp-why-gap: 26px;
	padding-left: var(--clp-why-pad-x);
	padding-right: var(--clp-why-pad-x);
}
.clp-why *, .clp-why *::before, .clp-why *::after { box-sizing: border-box; }

/* ---------- En-tête ---------- */
.clp-why__header {
	text-align: center;
	max-width: 760px;
	margin: 0 auto 46px;
}
.clp-why__eyebrow {
	display: inline-flex;
	align-items: center;
	font-family: var(--modins-heading-font-family, inherit);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 3px;
	text-transform: uppercase; /* sans !important */
	color: var(--clp-accent);
	margin-bottom: 14px;
}
.clp-why__eyebrow::before,
.clp-why__eyebrow::after {
	content: '';
	width: 30px;
	height: 2px;
	background: var(--clp-accent);
	border-radius: 2px;
	flex: 0 0 auto;
	opacity: .65;
}
.clp-why__eyebrow::before { margin-right: 12px !important; }
.clp-why__eyebrow::after  { margin-left: 12px !important; }

/* Reset marges/letter-spacing h1-h6 Modins */
.clp-why__title {
	font-family: var(--modins-heading-font-family, inherit);
	font-size: clamp(1.8rem, 3vw, 2.5rem);
	font-weight: 800;
	line-height: 1.16;
	letter-spacing: normal;
	color: var(--clp-gris);
	margin: 0 0 16px;
	text-transform: none;
}
.clp-why__title em {
	font-style: normal;
	color: var(--clp-accent);
	position: relative;
}
.clp-why__title em::after {
	content: '';
	position: absolute;
	left: 0; right: 0; bottom: .02em;
	height: .3em;
	background: var(--clp-accent);
	opacity: .14;
	border-radius: 3px;
	z-index: -1;
}
.clp-why__subtitle {
	font-family: var(--modins-font-sans-serif, inherit);
	font-size: 1.05rem;
	line-height: 1.7;
	color: #59657a;
	margin: 0;
}

/* ---------- Grille ---------- */
.clp-why__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--clp-why-gap);
}

/* ---------- Carte (base commune) ---------- */
.clp-why__card {
	position: relative;
	display: flex;
	align-items: flex-start;
	background: #fff;
	border: 1px solid rgba(58, 70, 96, .10);
	border-radius: 16px;
	padding: 26px 24px;
	transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s ease, border-color .35s ease;
}
.clp-why__card:hover {
	transform: translateY(-6px);
	box-shadow: 0 22px 44px rgba(58, 70, 96, .14);
	border-color: rgba(26, 107, 191, .35);
}

.clp-why__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	flex: 0 0 auto;
	background: rgba(26, 107, 191, .12);
	color: var(--clp-accent);
	border-radius: 14px;
	font-size: 21px;
	margin-right: 16px !important; /* margin, pas gap */
	transition: background .35s ease, color .35s ease, transform .35s ease;
}
.clp-why__card:hover .clp-why__icon {
	background: var(--clp-accent);
	color: #fff;
	transform: scale(1.06) rotate(-4deg);
}
.clp-why__icon i,
.clp-why__icon i::before,
.clp-why__icon svg { line-height: 1 !important; vertical-align: middle; }
.clp-why__icon svg { width: 22px; height: 22px !important; } /* svg{height:auto} contré */

/* Reset des marges h3 imposées par Modins */
.clp-why__r-title {
	font-family: var(--modins-heading-font-family, inherit);
	font-size: 1.08rem;
	font-weight: 800;
	line-height: 1.3;
	letter-spacing: normal;
	color: var(--clp-gris);
	margin: 0 0 7px;
	text-transform: none;
}
.clp-why__r-text {
	font-family: var(--modins-font-sans-serif, inherit);
	font-size: .93rem;
	line-height: 1.62;
	color: #59657a;
	margin: 0;
}

/* ---------------------------------------------------------
   DESIGN 2 — IMAGE CENTRALE
   --------------------------------------------------------- */
.clp-why--central .clp-why__central {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(220px, 340px) minmax(0, 1fr);
	gap: var(--clp-why-gap);
	align-items: center;
}
.clp-why--central .clp-why__col {
	display: flex;
	flex-direction: column;
	justify-content: center;
}
.clp-why--central .clp-why__card {
	background: transparent;
	border: none;
	padding: 16px 6px;
}
.clp-why--central .clp-why__card:hover {
	transform: none;
	box-shadow: none;
}
/* Colonne gauche : alignée à droite vers l'image */
.clp-why--central .clp-why__col--left .clp-why__card {
	flex-direction: row-reverse;
	text-align: right;
}
.clp-why--central .clp-why__col--left .clp-why__icon {
	margin-right: 0 !important;
	margin-left: 16px !important;
}

/* ---------------------------------------------------------
   MÉDAILLON À MASQUE — la photo est ROGNÉE par le cercle.
   La wrap est un cercle en overflow:hidden : rien ne peut en
   déborder, quelle que soit la taille/format de la photo.
   L'image est posée en absolu DANS la lunette et rognée en
   cover ; (0,2,0)+!important pour battre .elementor img.
   --------------------------------------------------------- */
.clp-why__img-wrap {
	position: relative;
	aspect-ratio: 1 / 1;
	padding: 0;
	border-radius: 50%;
	overflow: hidden; /* MASQUE : aucun débordement possible */
	/* Lunette métallique : reflets argent et bleus du logo */
	background:
		radial-gradient(120% 120% at 30% 20%, rgba(255, 255, 255, .5), rgba(255, 255, 255, 0) 45%),
		conic-gradient(from 215deg,
			#10559f, #7cc0f0 18%, #eef2f7 33%, #b6bfcd 50%,
			#eef2f7 67%, #7cc0f0 82%, #10559f 100%);
	box-shadow:
		0 26px 54px rgba(12, 33, 69, .30),
		0 6px 16px rgba(12, 33, 69, .16),
		0 1px 0 rgba(255, 255, 255, .8) inset;
}
/* Repli navigateurs sans aspect-ratio : carré par padding-top */
@supports not (aspect-ratio: 1 / 1) {
	.clp-why__img-wrap::before { content: ''; display: block; padding-top: 100%; }
}
/* La photo : en absolu dans la lunette, rognée en cover.
   Double périmètre + !important : .elementor img{height:auto}
   ne peut plus casser le carré (leçon clp-realisations). */
.clp-why .clp-why__img-wrap .clp-why__img {
	position: absolute;
	top: 14px; left: 14px; /* = épaisseur de la lunette */
	width:  calc(100% - 28px) !important;
	height: calc(100% - 28px) !important;
	max-width: none !important;
	max-height: none !important;
	object-fit: cover !important;
	border-radius: 50%;
	display: block;
	z-index: 1;
}
.clp-why__img-ring-clip {
	position: absolute;
	inset: 0;
	border-radius: 50%;
	overflow: hidden;
	pointer-events: none;
	z-index: 2;
}
/* Reflet lumineux qui tourne SUR la lunette (jamais sur la photo). */
.clp-why__img-ring {
	position: absolute;
	inset: 0;
	border-radius: 50%;
	background: conic-gradient(from 0deg,
		transparent 0 68%, rgba(255, 255, 255, .65) 80%, transparent 92%);
	-webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 15px), #000 calc(100% - 14px));
	mask: radial-gradient(farthest-side, transparent calc(100% - 15px), #000 calc(100% - 14px));
	animation: clpWhySpin 26s linear infinite;
}
@supports not ((mask: radial-gradient(#000, #000)) or (-webkit-mask: radial-gradient(#000, #000))) {
	.clp-why__img-ring { display: none; }
}
@keyframes clpWhySpin { to { transform: rotate(360deg); } }
/* Incrustation : ombre INTERNE posée sur la photo, exactement à son bord. */
.clp-why__img-wrap::after {
	content: '';
	position: absolute;
	inset: 14px;
	border-radius: 50%;
	pointer-events: none;
	z-index: 3;
	box-shadow:
		inset 0 12px 26px rgba(12, 33, 69, .42),
		inset 0 -8px 18px rgba(12, 33, 69, .26),
		inset 0 2px 3px rgba(12, 33, 69, .5),
		inset 0 0 0 1px rgba(12, 33, 69, .28);
}

/* ---------------------------------------------------------
   DESIGN 3 — NUMÉROTÉ ÉDITORIAL
   --------------------------------------------------------- */
.clp-why--numero .clp-why__card {
	background: transparent;
	border: none;
	border-top: 1px solid rgba(58, 70, 96, .16);
	border-radius: 0;
	padding: 24px 8px 8px;
	flex-direction: column;
}
.clp-why--numero .clp-why__card:hover {
	transform: none;
	box-shadow: none;
	border-top-color: var(--clp-accent);
}
.clp-why__num {
	font-family: var(--modins-heading-font-family, inherit);
	font-size: 2.4rem;
	font-weight: 800;
	line-height: 1;
	color: transparent;
	-webkit-text-stroke: 1.5px rgba(26, 107, 191, .55);
	margin-bottom: 14px;
	transition: color .35s ease;
}
.clp-why--numero .clp-why__card:hover .clp-why__num { color: var(--clp-accent); -webkit-text-stroke: 1.5px var(--clp-accent); }
.clp-why--numero .clp-why__icon { display: none; }
.clp-why--numero .clp-why__r-title { font-size: 1.14rem; }

/* ---------------------------------------------------------
   DESIGN 4 — SOMBRE
   --------------------------------------------------------- */
.clp-why--sombre {
	background: linear-gradient(135deg, #273246, #3a4660);
	border-radius: 22px;
	padding: 54px calc(var(--clp-why-pad-x) + 44px);
}
.clp-why--sombre .clp-why__title { color: #fff; }
.clp-why--sombre .clp-why__subtitle { color: rgba(255, 255, 255, .72); }
.clp-why--sombre .clp-why__card {
	background: rgba(255, 255, 255, .05);
	border-color: rgba(255, 255, 255, .10);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
}
.clp-why--sombre .clp-why__card:hover {
	border-color: rgba(26, 107, 191, .55);
	box-shadow: 0 22px 44px rgba(0, 0, 0, .35);
}
.clp-why--sombre .clp-why__icon { background: rgba(26, 107, 191, .2); }
.clp-why--sombre .clp-why__r-title { color: #fff; }
.clp-why--sombre .clp-why__r-text { color: rgba(255, 255, 255, .68); }

/* ---------- CTA ---------- */
.clp-why__cta { text-align: center; margin-top: 40px; }
.clp-why__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-family: var(--modins-heading-font-family, inherit);
	font-size: 16px;
	font-weight: 700;
	line-height: 1.2;
	color: #fff;
	background: var(--clp-accent);
	border: 2px solid var(--clp-accent);
	border-radius: 8px;
	padding: 16px 34px;
	text-decoration: none;
	transition: background .3s ease, transform .25s ease, box-shadow .3s ease;
}
.clp-why__btn:hover {
	background: #10559f;
	border-color: #10559f;
	color: #fff;
	transform: translateY(-2px);
	box-shadow: 0 14px 28px rgba(26, 107, 191, .32);
	text-decoration: none;
}

/* ---------- Reveals (cascade par carte) ---------- */
/* Amélioration progressive : l'état masqué n'existe QUE si le JS a posé .clp-why--js.
   Sans JS (cache, script différé), tout reste visible. */
.clp-why.clp-why--js [data-reveal] {
	opacity: 0;
	transform: translateY(26px);
	transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1);
	transition-delay: calc(var(--clp-why-i, 0) * 90ms);
}
.clp-why.clp-why--js.is-in [data-reveal] { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
	.clp-why.clp-why--js [data-reveal] { opacity: 1; transform: none; transition: none; }
	.clp-why__img-ring { animation: none; }
	.clp-why__card:hover { transform: none; }
}

/* ---------------------------------------------------------
   RESPONSIVE
   --------------------------------------------------------- */
@media (max-width: 1024px) {
	.clp-why__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.clp-why--central .clp-why__central {
		grid-template-columns: minmax(0, 1fr) minmax(180px, 260px) minmax(0, 1fr);
	}
}

@media (max-width: 880px) {
	/* Image centrale : image en haut, raisons empilées dessous */
	.clp-why--central .clp-why__central { grid-template-columns: 1fr; }
	.clp-why--central .clp-why__img-wrap {
		order: 0;
		max-width: 300px;
		margin: 0 auto;
	}
	.clp-why--central .clp-why__col--left { order: 1; }
	.clp-why--central .clp-why__col--right { order: 2; }
	.clp-why--central .clp-why__col--left .clp-why__card {
		flex-direction: row;
		text-align: left;
	}
	.clp-why--central .clp-why__col--left .clp-why__icon {
		margin-left: 0 !important;
		margin-right: 16px !important;
	}
	.clp-why--sombre { padding: 40px calc(var(--clp-why-pad-x) + 22px); }
}

@media (max-width: 640px) {
	.clp-why__grid { grid-template-columns: 1fr; }
	.clp-why__header { margin-bottom: 32px; }
	.clp-why__card { padding: 20px 18px; }
	.clp-why__icon { width: 46px; height: 46px; font-size: 19px; border-radius: 12px; }
	.clp-why__eyebrow::before, .clp-why__eyebrow::after { width: 20px; }
	.clp-why__btn { width: 100%; }
}
