/* WB – Pourquoi Nous Choisir — v1.1.0
 * Architecture anti-débordement de la suite : racine overflow-x clip,
 * min-width:0 partout, overflow-wrap, pas de vw / marges négatives / largeurs
 * fixes, grilles en minmax(0,…), décors absolus JAMAIS en dépassement
 * horizontal (chevauchements verticaux seulement), défauts responsive des
 * colonnes portés par le plugin (3/2/1), accent en dégradé statique jamais
 * fragmenté (sûr Safari), contrastes AA sur les trois designs.
 */

@font-face {
	font-family: 'Dancing Script WB';
	src: url('../fonts/dancing-script-wb-600.woff2') format('woff2');
	font-weight: 600;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'Dancing Script WB';
	src: url('../fonts/dancing-script-wb-700.woff2') format('woff2');
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

.wb-w {
	--wb-pad-x: 0px;
	--wb-w-cols: 3;
	--wb-w-accent: #35852c;
	--wb-w-accent2: #256b1c;
	--wb-w-soft: #e4f3e2;
	--wb-w-title: #072032;
	--wb-w-text: #5c6972;
	--wb-w-card: #ffffff;
	--wb-w-border: #e6ebef;

	position: relative;
	max-width: 100%;
	overflow-x: clip;
	padding-left: var(--wb-pad-x);
	padding-right: var(--wb-pad-x);
	font-family: 'Noto Sans', sans-serif;
	color: var(--wb-w-text);
}
.wb-w :where(h1, h2, h3, h4, h5, h6, p, ul, li) {
	margin: 0; padding: 0; letter-spacing: normal; text-transform: none; clear: none;
}
.wb-w :where(*) { min-width: 0; }
.wb-w :where(p, span, li) { overflow-wrap: anywhere; }

/* Designs — fond posé sur la racine. */
.wb-w--sauge { background: #eef6ec; border-radius: 26px; padding-top: 54px; padding-bottom: 54px; }
.wb-w--sauge:not([style*="--wb-pad-x"]) { --wb-pad-x: 34px; }
.wb-w--nuit {
	background: linear-gradient(160deg, #072032, #0a2f4a);
	border-radius: 26px;
	padding-top: 54px;
	padding-bottom: 54px;
	color: #b8c4cd;
}
.wb-w--nuit:not([style*="--wb-pad-x"]) { --wb-pad-x: 34px; }

/* ---------- En-tête ---------- */
.wb-w__header { max-width: 760px; margin: 0 auto 34px; text-align: center; }
.wb-w .wb-w__surtitle {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	font-family: 'Dancing Script WB', cursive;
	font-weight: 700;
	font-size: 26px;
	line-height: 1.2;
	color: var(--wb-w-accent);
	margin-bottom: 10px;
}
.wb-w--nuit .wb-w__surtitle { color: #8fd97f; }
.wb-w__decor { display: inline-flex; color: #ffa800; flex: 0 0 auto; }
.wb-w__decor .wb-w__branch { width: 40px; height: 22px; }
.wb-w__decor i, .wb-w__decor svg { font-size: 22px; width: 22px; height: 22px; line-height: 1; }
.wb-w__decor svg { fill: currentColor; }
.wb-w__decor--img img { display: block; height: 30px; width: auto; max-width: 90px; object-fit: contain; }
.wb-w__surtitle-text { min-width: 0; }

.wb-w .wb-w__title {
	font-family: 'Montserrat', sans-serif;
	font-weight: 700;
	font-size: 40px;
	line-height: 1.18;
	color: var(--wb-w-title);
	margin-bottom: 14px;
}
.wb-w--nuit .wb-w__title { color: #ffffff; }
.wb-w__accent {
	background: linear-gradient(180deg, var(--wb-w-accent), var(--wb-w-accent2));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.wb-w--nuit .wb-w__accent { background: linear-gradient(180deg, #a5e88f, #ffa800); -webkit-background-clip: text; background-clip: text; }
.wb-w .wb-w__intro { font-size: 16px; line-height: 1.75; }
.wb-w--nuit .wb-w__intro { color: #b8c4cd; }
@media (max-width: 1024px) { .wb-w .wb-w__title { font-size: 33px; } }
@media (max-width: 767px)  { .wb-w .wb-w__title { font-size: 27px; } .wb-w .wb-w__surtitle { font-size: 23px; } }

/* ---------- Liste commune ---------- */
.wb-w__list { list-style: none; display: grid; gap: 20px; }
.wb-w__item { position: relative; min-width: 0; }
.wb-w__item-body { display: block; min-width: 0; }
.wb-w .wb-w__item-title {
	display: block;
	font-family: 'Montserrat', sans-serif;
	font-weight: 700;
	font-size: 17.5px;
	line-height: 1.3;
	color: var(--wb-w-title);
	margin-bottom: 7px;
}
.wb-w--nuit .wb-w__item-title { color: #ffffff; }
.wb-w .wb-w__item-text { display: block; font-size: 14.5px; line-height: 1.7; }
.wb-w--nuit .wb-w__item-text { color: #b8c4cd; }

/* ---------- Mode CARTES ---------- */
.wb-w--cards .wb-w__list { grid-template-columns: repeat(var(--wb-w-cols), minmax(0, 1fr)); }
.wb-w--cards .wb-w__item {
	background: var(--wb-w-card);
	border: 1px solid var(--wb-w-border);
	border-radius: 18px;
	padding: 26px 22px 24px;
	overflow: hidden; /* le filigrane reste dans la carte */
	box-shadow: 0 3px 14px rgba(7, 32, 50, .06);
	transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}
.wb-w--cards .wb-w__item:hover {
	transform: translateY(-4px);
	border-color: #9fc79a;
	box-shadow: 0 14px 30px rgba(7, 32, 50, .12);
}
.wb-w--nuit.wb-w--cards .wb-w__item {
	background: rgba(255, 255, 255, .05);
	border-color: rgba(255, 255, 255, .1);
}
.wb-w--nuit.wb-w--cards .wb-w__item:hover { border-color: rgba(165, 232, 143, .5); }
.wb-w__num {
	position: absolute;
	top: 6px;
	right: 14px;
	font-family: 'Montserrat', sans-serif;
	font-weight: 700;
	font-size: 52px;
	line-height: 1;
	color: rgba(7, 32, 50, .06);
	pointer-events: none;
}
.wb-w--nuit .wb-w__num { color: rgba(255, 255, 255, .07); }
.wb-w--no-nums .wb-w__num { display: none; }
.wb-w__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border-radius: 15px;
	background: var(--wb-w-soft);
	color: var(--wb-w-accent2);
	font-size: 21px;
	box-shadow: inset 0 0 0 1px rgba(37, 107, 28, .12);
	margin-bottom: 14px !important;
	transition: background .28s ease, color .28s ease, transform .28s ease;
}
.wb-w__icon i, .wb-w__icon i::before, .wb-w__icon svg { line-height: 1 !important; vertical-align: middle; }
.wb-w__icon svg { width: 1em; height: 1em; fill: currentColor; }
.wb-w--cards .wb-w__item:hover .wb-w__icon {
	background: linear-gradient(135deg, var(--wb-w-accent), var(--wb-w-accent2));
	color: #ffffff;
	transform: scale(1.06);
}
.wb-w--nuit .wb-w__icon { background: rgba(74, 171, 61, .16); color: #a5e88f; box-shadow: inset 0 0 0 1px rgba(165, 232, 143, .2); }

/* Défauts responsive PORTÉS PAR LE PLUGIN (3/2/1). */
@media (max-width: 1024px) { .wb-w--cards { --wb-w-cols: 2; } }
@media (max-width: 767px)  { .wb-w--cards { --wb-w-cols: 1; } }

/* ---------- Mode LISTE COCHÉE ---------- */
.wb-w--list .wb-w__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 34px; }
.wb-w--list .wb-w__item { display: flex; align-items: flex-start; padding: 12px 0; }
.wb-w__tick {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border-radius: 999px;
	background: linear-gradient(135deg, var(--wb-w-accent), var(--wb-w-accent2));
	color: #ffffff;
	flex: 0 0 auto;
	margin-right: 14px !important;
	margin-top: 2px;
	box-shadow: 0 4px 10px rgba(37, 107, 28, .25);
}
.wb-w__tick svg { width: 14px; height: 14px; }
@media (max-width: 767px) { .wb-w--list .wb-w__list { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Mode COLONNES AVEC IMAGE ---------- */
.wb-w--media .wb-w__cols {
	display: grid;
	grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr);
	gap: 48px;
	align-items: center;
}
.wb-w--img-right .wb-w__media { order: 2; }
.wb-w--img-right .wb-w__cols > .wb-w__list { order: 1; }
.wb-w__media { position: relative; }
.wb-w__media-frame {
	display: block;
	border-radius: 22px;
	overflow: hidden;
	box-shadow: 0 18px 44px rgba(7, 32, 50, .16);
}
.wb-w__img { display: block; width: 100%; height: auto; object-fit: cover; }
/* Image à la hauteur des raisons : la LISTE fixe la hauteur de rangée, la
 * colonne image s'étire dessus (jamais l'inverse — pas de height circulaire :
 * l'img en height:100% ne contribue plus à la hauteur, c'est l'autre colonne
 * qui la définit). En empilé, retour à la hauteur naturelle. */
.wb-w--img-stretch .wb-w__cols { align-items: stretch; }
.wb-w--img-stretch .wb-w__media { display: flex; flex-direction: column; }
.wb-w--img-stretch .wb-w__media-frame { flex: 1 1 auto; min-height: 0; }
.wb-w--img-stretch .wb-w__img { height: 100%; object-fit: cover; }
@media (max-width: 1024px) {
	.wb-w--img-stretch .wb-w__media { display: block; }
	.wb-w--img-stretch .wb-w__img { height: auto; }
}

/* Pastille : chevauchement VERTICAL uniquement (règle des décors absolus). */
.wb-w__badge {
	position: absolute;
	bottom: -20px;
	left: 26px;
	display: inline-flex;
	flex-direction: column;
	align-items: flex-start;
	background: linear-gradient(135deg, var(--wb-w-accent), var(--wb-w-accent2));
	color: #ffffff;
	border-radius: 16px;
	padding: 14px 20px;
	box-shadow: 0 12px 28px rgba(37, 107, 28, .35);
	max-width: calc(100% - 52px);
}
.wb-w__badge-num { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 27px; line-height: 1.1; }
.wb-w__badge-label { font-size: 12.5px; font-weight: 600; letter-spacing: .4px; opacity: .94; }
.wb-w--media .wb-w__list { grid-template-columns: minmax(0, 1fr); gap: 4px; }
.wb-w--media .wb-w__item { display: flex; align-items: flex-start; padding: 11px 0; }
.wb-w--media .wb-w__icon { width: 46px; height: 46px; font-size: 18px; margin-bottom: 0 !important; margin-right: 15px !important; flex: 0 0 auto; margin-top: 2px; }
.wb-w--media .wb-w__num { display: none; }
@media (max-width: 1024px) {
	.wb-w--media .wb-w__cols { grid-template-columns: minmax(0, 1fr); gap: 44px; }
	.wb-w--img-right .wb-w__media { order: 0; }
	.wb-w--img-right .wb-w__cols > .wb-w__list { order: 0; }
	.wb-w__media { margin-bottom: 8px; } /* la pastille déborde en bas */
}

/* ---------- Bouton ---------- */
.wb-w__actions { text-align: center; margin-top: 34px; }
.wb-w__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	max-width: 100%;
	padding: 15px 32px;
	border-radius: 12px;
	font-family: 'Montserrat', sans-serif;
	font-size: 15.5px;
	font-weight: 700;
	text-decoration: none;
	overflow-wrap: break-word;
	transition: background .25s ease, color .25s ease, transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.wb-w__btn--plein {
	background: linear-gradient(135deg, var(--wb-w-accent), var(--wb-w-accent2));
	color: #ffffff;
	box-shadow: 0 8px 20px rgba(37, 107, 28, .28), inset 0 1px 0 rgba(255, 255, 255, .22);
}
.wb-w__btn--plein:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(37, 107, 28, .34), inset 0 1px 0 rgba(255, 255, 255, .22); color: #ffffff; }
.wb-w__btn--contour {
	background: transparent;
	color: var(--wb-w-accent2);
	border: 2px solid var(--wb-w-accent);
}
.wb-w__btn--contour:hover { background: var(--wb-w-accent); color: #ffffff; transform: translateY(-2px); }
.wb-w--nuit .wb-w__btn--contour { color: #a5e88f; border-color: #a5e88f; }
.wb-w--nuit .wb-w__btn--contour:hover { background: #a5e88f; color: #0d3a06; }
.wb-w__btn--nuit-or {
	background: #072032;
	color: #ffd23f;
	box-shadow: inset 0 0 0 1.5px #ffa800;
}
.wb-w__btn--nuit-or:hover { background: #0a2f4a; transform: translateY(-2px); color: #ffd23f; }
.wb-w__btn:focus-visible { outline: 2px solid var(--wb-w-title); outline-offset: 3px; }
.wb-w--nuit .wb-w__btn:focus-visible { outline-color: #ffffff; }

/* ---------- Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
	.wb-w *, .wb-w *::before, .wb-w *::after { transition: none !important; animation: none !important; }
}
