/* JS – 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 JS';
	src: url('../fonts/dancing-script-js-600.woff2') format('woff2');
	font-weight: 600;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'Dancing Script JS';
	src: url('../fonts/dancing-script-js-700.woff2') format('woff2');
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

.js-w {
	--js-pad-x: 0px;
	--js-w-cols: 3;
	--js-w-accent: #4a7326;
	--js-w-accent2: #3e6d2c;
	--js-w-soft: #eaf2df;
	--js-w-title: #000101;
	--js-w-text: #5b6a56;
	--js-w-card: #ffffff;
	--js-w-border: #e4ebdd;

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

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

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

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

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

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

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

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

/* ---------- Mode COLONNES AVEC IMAGE ---------- */
.js-w--media .js-w__cols {
	display: grid;
	grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr);
	gap: 48px;
	align-items: center;
}
.js-w--img-right .js-w__media { order: 2; }
.js-w--img-right .js-w__cols > .js-w__list { order: 1; }
.js-w__media { position: relative; }
.js-w__media-frame {
	display: block;
	border-radius: 22px;
	overflow: hidden;
	box-shadow: 0 18px 44px rgba(0,1,1, .16);
}
.js-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. */
.js-w--img-stretch .js-w__cols { align-items: stretch; }
.js-w--img-stretch .js-w__media { display: flex; flex-direction: column; }
.js-w--img-stretch .js-w__media-frame { flex: 1 1 auto; min-height: 0; }
.js-w--img-stretch .js-w__img { height: 100%; object-fit: cover; }
@media (max-width: 1024px) {
	.js-w--img-stretch .js-w__media { display: block; }
	.js-w--img-stretch .js-w__img { height: auto; }
}

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

/* ---------- Bouton ---------- */
.js-w__actions { text-align: center; margin-top: 34px; }
.js-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;
}
.js-w__btn--plein {
	background: linear-gradient(135deg, var(--js-w-accent), var(--js-w-accent2));
	color: #ffffff;
	box-shadow: 0 8px 20px rgba(62,109,44, .28), inset 0 1px 0 rgba(255, 255, 255, .22);
}
.js-w__btn--plein:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(62,109,44, .34), inset 0 1px 0 rgba(255, 255, 255, .22); color: #ffffff; }
.js-w__btn--contour {
	background: transparent;
	color: var(--js-w-accent2);
	border: 2px solid var(--js-w-accent);
}
.js-w__btn--contour:hover { background: var(--js-w-accent); color: #ffffff; transform: translateY(-2px); }
.js-w--nuit .js-w__btn--contour { color: #c6ea9e; border-color: #c6ea9e; }
.js-w--nuit .js-w__btn--contour:hover { background: #c6ea9e; color: #2f5421; }
.js-w__btn--nuit-or {
	background: #000101;
	color: #c6ea9e;
	box-shadow: inset 0 0 0 1.5px #9fd36d;
}
.js-w__btn--nuit-or:hover { background: #0d1a0b; transform: translateY(-2px); color: #c6ea9e; }
.js-w__btn:focus-visible { outline: 2px solid var(--js-w-title); outline-offset: 3px; }
.js-w--nuit .js-w__btn:focus-visible { outline-color: #ffffff; }

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