/**
 * GB — Pourquoi nous. Design « premium industriel » GB Couverture.
 * Thème cible : Mediverse.
 * Version: 2.0.3
 */

.gb-wy.gb-wy :where(h1, h2, h3, h4, h5, h6, p) { margin: 0; padding: 0; letter-spacing: normal; text-transform: none; }
.gb-wy.gb-wy :where(a, button, input, select, textarea, label) { text-transform: none; letter-spacing: normal; }
.gb-wy [hidden] { display: none !important; }
.gb-wy * { min-width: 0; }

.gb-wy {
	--gb-wy-cols: 3;
	--gb-wy-gap: 26px;
	--gb-wy-pad: 26px;
	--gb-wy-radius: 24px;
	--gb-wy-align: left;
	--gb-wy-or: #10529c;
	--gb-wy-or-clair: #4a86cc;
	--gb-wy-encre: #1e2a4b;
	--gb-wy-gris: #5a6a8a;
	--gb-wy-blanc: #ffffff;
	--gb-wy-creme: #eef4fb;
	--gb-wy-filet: rgba(16, 82, 156, 0.32);
	--gb-wy-titre-sombre: #ffffff;
	--gb-wy-cadre: linear-gradient(135deg, #10529c, #1e2a4b);
	--gb-wy-cadre-ep: 10px;
	--gb-wy-ico: 1.25rem;
	--gb-wy-img-h: 380px;
	--gb-wy-img-part: minmax(0, 0.9fr);
	--gb-wy-ease: cubic-bezier(0.22, 0.7, 0.25, 1);
	overflow-x: clip;
	color: var(--gb-wy-encre);
}

/* ---- Grilles ---- */
.gb-wy__piste {
	display: grid;
	grid-template-columns: repeat(var(--gb-wy-cols), minmax(0, 1fr));
	column-gap: var(--gb-wy-gap);
	row-gap: calc(var(--gb-wy-gap) + 34px);
	align-items: start;
	padding-top: 34px;
}
.gb-wy--i- { display: contents; }
.gb-wy > .gb-wy__colonne,
.gb-wy .gb-wy__cadre { min-width: 0; }
.gb-wy:has(> .gb-wy__colonne) {
	display: grid;
	grid-template-columns: minmax(0, 1fr) var(--gb-wy-img-part) minmax(0, 1fr);
	gap: var(--gb-wy-gap);
	align-items: center;
}
.gb-wy__colonne { display: flex; flex-direction: column; gap: var(--gb-wy-gap); }

/* Photo centrale : coins 24, bordure fine, voile dégradé */
.gb-wy__cadre { position: relative; }
.gb-wy__visuel {
	position: relative;
	height: var(--gb-wy-img-h);
	overflow: hidden;
	border: 1px solid var(--gb-wy-filet);
	border-radius: var(--gb-wy-radius);
	box-shadow: 0 26px 50px -30px rgba(30, 42, 75, 0.45);
	background: var(--gb-wy-creme);
}
.gb-wy__visuel img { width: 100%; height: 100%; min-height: 100%; max-width: none; object-fit: cover; display: block; }
.gb-wy__visuel::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, rgba(16, 82, 156, 0.42), rgba(30, 42, 75, 0.55));
	pointer-events: none;
}

/* ---- Carte ---- */
.gb-wy__carte {
	position: relative;
	padding: var(--gb-wy-pad);
	background: var(--gb-wy-blanc);
	border: 1px solid var(--gb-wy-filet);
	border-radius: var(--gb-wy-radius);
	box-shadow: 0 22px 44px -30px rgba(30, 42, 75, 0.35);
	text-align: var(--gb-wy-align);
	transition: transform 260ms var(--gb-wy-ease), box-shadow 260ms var(--gb-wy-ease);
}
.gb-wy__carte[data-reveal]:hover,
.gb-wy__carte:hover { transform: translateY(-5px); box-shadow: 0 30px 54px -28px rgba(16, 82, 156, 0.45); }
.gb-wy__carte--lien { display: block; color: inherit; text-decoration: none; }

/* Médaillon à cheval sur le bord haut. Il reste DANS le flux de la carte
   (il ne peut pas se détacher) ; le chevauchement est purement visuel,
   par transform sur lui-même. */
.gb-wy .gb-wy__ico {
	position: static;
	transform: translateY(-55%);
	margin-bottom: calc(12px - 1.55em);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: calc(1em * 2.6);
	height: calc(1em * 2.8);
	font-size: var(--gb-wy-ico);
	color: #ffffff;
	background: linear-gradient(135deg, #10529c, #1e2a4b);
	border-radius: 50%;
	transition: transform 320ms var(--gb-wy-ease);
}
.gb-wy__carte:hover .gb-wy__ico { transform: translateY(-55%) scale(1.08); }
.gb-wy .gb-wy__ico i, .gb-wy .gb-wy__ico svg { line-height: 1 !important; vertical-align: middle; }
.gb-wy .gb-wy__ico svg { width: 1em; height: 1em; }
.gb-wy .gb-wy__badge,
.gb-wy .gb-wy__num {
	position: absolute;
	top: 14px;
	right: var(--gb-wy-pad);
	color: rgba(16, 82, 156, 0.22);
	font-size: 1.9rem;
	font-weight: 900;
	line-height: 1;
}
.gb-wy .gb-wy__titre {
	position: relative;
	padding-bottom: 12px;
	margin-bottom: 10px;
	font-size: 1.08rem;
	font-weight: 800;
}
.gb-wy .gb-wy__titre::after {
	content: '';
	position: absolute;
	left: 0;
	bottom: 0;
	width: 0;
	height: 3px;
	border-radius: 2px;
	background: #ca1e1e;
	transition: width 320ms var(--gb-wy-ease);
}
.gb-wy .gb-wy__carte .gb-wy__titre::after { width: 44px; }
.gb-wy .gb-wy__carte:hover .gb-wy__titre::after { width: 78px; }
.gb-wy .gb-wy__texte { color: var(--gb-wy-gris); line-height: 1.6; overflow-wrap: anywhere; }
.gb-wy .gb-wy__fleche { display: inline-flex; margin-top: 12px; color: var(--gb-wy-or); }
.gb-wy .gb-wy__corps { display: block; }

/* ---- Designs ---- */

/* Décalé : colonnes en quinconce (défaut) */
@media (min-width: 901px) {
	.gb-wy--d-decale .gb-wy__piste > .gb-wy__carte:nth-child(3n + 2),
	.gb-wy--d-decale .gb-wy__colonne--droite { transform: translateY(38px); }
	.gb-wy--d-decale .gb-wy__piste > .gb-wy__carte:nth-child(3n + 2):hover { transform: translateY(33px); }
	.gb-wy--d-decale .gb-wy__piste { padding-bottom: 38px; }
}

/* Flottant : structure de base, médaillon rond déjà à cheval */

/* Acier : cartes marines */
.gb-wy--d-acier .gb-wy__carte { background: #1e2a4b; border-color: rgba(141, 180, 232, 0.28); }
.gb-wy--d-acier .gb-wy__titre { color: var(--gb-wy-titre-sombre); }
.gb-wy--d-acier .gb-wy__texte { color: #c9dbf4; }
.gb-wy--d-acier .gb-wy__num { color: rgba(141, 180, 232, 0.25); }

/* Zénith : tout le widget sur photo/dégradé voilé */
.gb-wy--d-zenith {
	background: linear-gradient(135deg, rgba(16, 82, 156, 0.94), rgba(30, 42, 75, 0.97));
	border-radius: var(--gb-wy-radius);
	padding: clamp(24px, 4vw, 44px);
}
.gb-wy--d-zenith .gb-wy__carte { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.3); backdrop-filter: blur(3px); }
.gb-wy--d-zenith .gb-wy__titre { color: #ffffff; }
.gb-wy--d-zenith .gb-wy__texte { color: #d7e4f6; }

/* Trame : filets, sans cartes */
.gb-wy--d-trame .gb-wy__carte { background: transparent; border: 0; border-radius: 0; box-shadow: none; border-top: 3px solid var(--gb-wy-filet); padding-left: 0; padding-right: 0; }
.gb-wy--d-trame .gb-wy__carte:hover { transform: none; box-shadow: none; }
.gb-wy--d-trame .gb-wy__ico { transform: none; margin-bottom: 12px; }
.gb-wy--d-trame .gb-wy__carte:hover .gb-wy__ico { transform: translateY(-55%) scale(1.08); }

/* Esquisse : épuré */
.gb-wy--d-esquisse .gb-wy__carte { background: transparent; border: 0; box-shadow: none; padding: 0; }
.gb-wy--d-esquisse .gb-wy__carte:hover { transform: none; box-shadow: none; }
.gb-wy--d-esquisse .gb-wy__ico { position: static; transform: none; margin-bottom: 12px; background: transparent; color: var(--gb-wy-or); clip-path: none; }

/* ---- Responsive ---- */
@media (max-width: 1024px) {
	.gb-wy:has(> .gb-wy__colonne) { grid-template-columns: minmax(0, 1fr); }
	.gb-wy__visuel { height: 260px; }
}
@media (max-width: 900px) { .gb-wy__piste { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .gb-wy__piste { grid-template-columns: minmax(0, 1fr); } }
