/* =========================================================
   FLP · Pourquoi nous choisir — grille de cartes  [CSS v1.0.0]
   ========================================================= */
.flp-why {
	--flp-why-primary: #597c31;
	--flp-why-accent: #8ab661;
	--flp-why-dark: #28331e;
	--flp-why-light: #f4f7ee;
	--flp-why-muted: #6a7d5c;
	--flp-why-border: rgba(40,51,30,.10);
	--flp-why-font: 'Titillium Web', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	font-family: var(--flp-why-font);
	max-width: 1200px; margin: 0 auto;
	padding: 10px 16px; box-sizing: border-box;
}
.flp-why *, .flp-why *::before, .flp-why *::after { box-sizing: border-box; }

/* En-tête */
.flp-why-header { text-align: center; margin-bottom: 42px; max-width: 720px; margin-left: auto; margin-right: auto; }
.flp-why-eyebrow {
	display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .18em;
	text-transform: uppercase; color: var(--flp-why-primary); margin-bottom: 14px;
	position: relative; padding: 0 18px;
}
.flp-why-eyebrow::before, .flp-why-eyebrow::after { content: ""; position: absolute; top: 50%; width: 24px; height: 1px; background: linear-gradient(90deg, transparent, var(--flp-why-accent)); }
.flp-why-eyebrow::before { right: 100%; transform: scaleX(-1); }
.flp-why-eyebrow::after { left: 100%; }
.flp-why-heading { font-size: clamp(1.8rem, 3.2vw, 2.6rem); line-height: 1.14; color: var(--flp-why-dark); margin: 0 0 14px; font-weight: 800; letter-spacing: -.01em; }
.flp-why-sub { font-size: 1.05rem; line-height: 1.6; color: var(--flp-why-muted); margin: 0; }

/* Grille */
.flp-why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* Carte */
.flp-why-card {
	background: #fff; border: 1px solid var(--flp-why-border); border-radius: 18px;
	padding: 30px 24px; text-align: center; position: relative; overflow: hidden;
	transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
	transform: translateZ(0); backface-visibility: hidden; /* stabilise le rendu au scroll */
}
.flp-why-card::before {
	content: ""; position: absolute; inset: 0 0 auto 0; height: 4px;
	background: linear-gradient(90deg, var(--flp-why-primary), var(--flp-why-accent));
	transform: scaleX(0); transform-origin: left; transition: transform .35s ease;
}
@media (hover: hover) and (pointer: fine) {
	.flp-why-card:hover { transform: translateY(-6px) translateZ(0); box-shadow: 0 22px 44px -24px rgba(10,10,10,.35); border-color: var(--flp-why-accent); }
	.flp-why-card:hover::before { transform: scaleX(1); }
	.flp-why-card:hover .flp-why-icon { background: var(--flp-why-primary); color: #fff; transform: rotate(-6deg) scale(1.06); }
}

/* Pastille d'icône — blindée anti-Garda */
.flp-why-icon {
	width: 64px; height: 64px; margin: 0 auto 20px;
	display: inline-flex !important; align-items: center !important; justify-content: center !important;
	background: var(--flp-why-light); color: var(--flp-why-primary); border-radius: 18px;
	font-size: 26px; line-height: 1 !important;
	transition: background .3s ease, color .3s ease, transform .3s ease;
}
.flp-why-icon svg { width: 1em; height: 1em; display: block; fill: currentColor; }
.flp-why-icon i { font-size: 1em !important; line-height: 1 !important; display: inline-flex !important; align-items: center !important; justify-content: center !important; }
.flp-why-icon i::before { line-height: 1 !important; }

.flp-why-card-title { font-size: 1.2rem; font-weight: 800; color: var(--flp-why-dark); margin: 0 0 10px; line-height: 1.3; }
.flp-why-card-text { font-size: .96rem; line-height: 1.6; color: var(--flp-why-muted); margin: 0; }

/* Responsive */
@media (max-width: 1024px) {
	.flp-why-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
	.flp-why { padding: 10px 18px; }
	.flp-why-grid { grid-template-columns: 1fr; }
	.flp-why-header { margin-bottom: 30px; }
	.flp-why-card { padding: 26px 20px; }
}

@media (prefers-reduced-motion: reduce) {
	.flp-why-card, .flp-why-card::before, .flp-why-icon { transition: none; }
}

/* =========================================================
   VARIANTES DE MISE EN PAGE
   ========================================================= */
.flp-why-body { display: contents; }

/* --- Style : cartes avec numéros --- */
.flp-why--numbered .flp-why-num {
	position: absolute; top: 16px; right: 20px;
	font-size: 2.4rem; font-weight: 800; line-height: 1;
	color: var(--flp-why-light); letter-spacing: -.02em;
	transition: color .3s ease;
}
.flp-why--numbered .flp-why-card { text-align: center; }
@media (hover: hover) and (pointer: fine) {
	.flp-why--numbered .flp-why-card:hover .flp-why-num { color: var(--flp-why-accent); }
}

/* --- Style : cartes alignées à gauche (icône + texte côte à côte) --- */
.flp-why--inline .flp-why-card {
	text-align: left;
	display: grid; grid-template-columns: auto 1fr; align-items: start;
	column-gap: 18px; row-gap: 0;
}
.flp-why--inline .flp-why-icon { margin: 0; grid-row: span 2; }
.flp-why--inline .flp-why-body { display: block; }
.flp-why--inline .flp-why-card-title { margin-top: 4px; }

/* =========================================================
   EFFETS VISUELS
   ========================================================= */

/* --- Effet : fond dégradé vert au survol --- */
@media (hover: hover) and (pointer: fine) {
	.flp-why--fx-gradient .flp-why-card:hover {
		background: linear-gradient(150deg, var(--flp-why-primary), #46621f) !important;
		border-color: transparent;
	}
	.flp-why--fx-gradient .flp-why-card:hover .flp-why-card-title,
	.flp-why--fx-gradient .flp-why-card:hover .flp-why-card-text { color: #fff; }
	.flp-why--fx-gradient .flp-why-card:hover .flp-why-icon { background: rgba(255,255,255,.18); color: #fff; }
	.flp-why--fx-gradient .flp-why-card:hover .flp-why-num { color: rgba(255,255,255,.25); }
}

/* --- Effet : bordure verte épaisse à gauche --- */
.flp-why--fx-border .flp-why-card { border-left: 5px solid var(--flp-why-accent); }
.flp-why--fx-border .flp-why-card::before { display: none; }
@media (hover: hover) and (pointer: fine) {
	.flp-why--fx-border .flp-why-card:hover { border-left-color: var(--flp-why-primary); }
}

/* --- Effet : grande icône en filigrane en fond --- */
.flp-why--fx-ghost .flp-why-card { position: relative; }
.flp-why--fx-ghost .flp-why-icon { position: relative; }
.flp-why--fx-ghost .flp-why-card::after {
	content: ""; position: absolute; right: -10px; bottom: -18px;
	width: 110px; height: 110px; opacity: .06; pointer-events: none;
	background: var(--flp-why-primary);
	-webkit-mask: radial-gradient(circle at center, #000 60%, transparent 62%);
	mask: radial-gradient(circle at center, #000 60%, transparent 62%);
}
