/**
 * GB — Boutons. Design « premium industriel » GB Couverture.
 * Pilule à bordure blanche intérieure (double anneau), déclinaisons cerne,
 * voile, coupe ronde, trait carmin et pulse urgence.
 * Thème cible : Mediverse.
 * Version: 2.0.3
 */

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

.gb-bt {
	--gb-bt-gap: 14px;
	--gb-bt-px: 30px;
	--gb-bt-py: 13px;
	--gb-bt-radius: 999px;
	--gb-bt-radius-rond: 999px;
	--gb-bt-ico-gap: 10px;
	--gb-bt-encre-page: #1e2a4b;
	--gb-bt-royal: #10529c;
	--gb-bt-marine: #1e2a4b;
	--gb-bt-azur: #4a86cc;
	--gb-bt-carmin: #ca1e1e;
	--gb-bt-royal-vif: color-mix(in srgb, var(--gb-bt-royal) 72%, #6db1ff);
	--gb-bt-azur-vif: color-mix(in srgb, var(--gb-bt-azur) 70%, #ffffff);
	--gb-bt-carmin-vif: color-mix(in srgb, var(--gb-bt-carmin) 68%, #ff8a7a);
	--gb-bt-bordeaux: color-mix(in srgb, var(--gb-bt-carmin) 62%, #300505);
	--gb-bt-ease: cubic-bezier(0.22, 0.7, 0.25, 1);
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--gb-bt-gap);
	overflow-x: clip;
}
.gb-bt--empile { flex-direction: column; align-items: stretch; }
.gb-bt--empile .gb-bt__b { justify-content: center; }

/* ---- Recettes de dégradés (consomment les 4 couleurs de marque) ---- */
.gb-bt__b--g-royal135 {
	--fond: linear-gradient(135deg, var(--gb-bt-royal-vif), var(--gb-bt-royal) 42%, var(--gb-bt-marine));
	--encre: #ffffff;
}
.gb-bt__b--g-crepuscule {
	--fond: linear-gradient(90deg, var(--gb-bt-marine), var(--gb-bt-royal) 48%, var(--gb-bt-azur-vif));
	--encre: #ffffff;
}
.gb-bt__b--g-plongee {
	--fond: linear-gradient(180deg, var(--gb-bt-azur-vif), var(--gb-bt-royal) 52%, var(--gb-bt-marine));
	--encre: #ffffff;
}
.gb-bt__b--g-bicolore {
	--fond: linear-gradient(105deg, var(--gb-bt-royal), var(--gb-bt-marine) 42%, var(--gb-bt-carmin) 60%, #8f1414);
	--encre: #ffffff;
}
.gb-bt__b--g-laque {
	--fond: linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.08) 46%, rgba(255, 255, 255, 0) 60%),
		linear-gradient(135deg, var(--gb-bt-royal), var(--gb-bt-marine));
	--encre: #ffffff;
}
.gb-bt__b--g-brosse {
	--fond: repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.14) 0 2px, rgba(255, 255, 255, 0) 2px 7px),
		linear-gradient(135deg, var(--gb-bt-royal), var(--gb-bt-marine));
	--encre: #ffffff;
}
.gb-bt__b--g-aurore {
	--fond: radial-gradient(130% 150% at 18% 12%, var(--gb-bt-azur-vif), var(--gb-bt-royal) 52%, var(--gb-bt-marine) 100%);
	--encre: #ffffff;
}
.gb-bt__b--g-horizon {
	--fond: linear-gradient(180deg, rgba(0, 0, 0, 0) calc(100% - 5px), var(--gb-bt-carmin) calc(100% - 5px)),
		linear-gradient(180deg, var(--gb-bt-royal) 0 58%, var(--gb-bt-marine) 58%);
	--encre: #ffffff;
}
.gb-bt__b--g-carbone {
	--fond: linear-gradient(0deg, var(--gb-bt-azur) 0 3px, rgba(0, 0, 0, 0) 3px),
		linear-gradient(135deg, #232c4c, #0d1226);
	--encre: #9dc0ef;
}
.gb-bt__b--g-givre {
	--fond: linear-gradient(135deg, #ffffff, #dfe9f7);
	--encre: var(--gb-bt-marine);
}
.gb-bt__b--g-carmin135 {
	--fond: linear-gradient(135deg, var(--gb-bt-carmin-vif), var(--gb-bt-carmin) 45%, var(--gb-bt-bordeaux));
	--encre: #ffffff;
}
.gb-bt__b--g-incendie {
	--fond: linear-gradient(90deg, var(--gb-bt-carmin-vif), var(--gb-bt-carmin) 52%, var(--gb-bt-bordeaux));
	--encre: #ffffff;
}
.gb-bt__b--g-rubis {
	--fond: linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.08) 46%, rgba(255, 255, 255, 0) 60%),
		linear-gradient(135deg, var(--gb-bt-carmin), var(--gb-bt-bordeaux));
	--encre: #ffffff;
}

/* ---- Socle commun ---- */
.gb-bt .gb-bt__b {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: var(--gb-bt-py) var(--gb-bt-px);
	border: 0;
	border-radius: var(--gb-bt-radius);
	font-weight: 700;
	font-size: 0.98rem;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: transform 220ms var(--gb-bt-ease), box-shadow 220ms var(--gb-bt-ease), color 220ms var(--gb-bt-ease), background 220ms var(--gb-bt-ease);
}
.gb-bt .gb-bt__b:focus-visible { outline: 2px solid var(--gb-bt-royal); outline-offset: 3px; }
.gb-bt__in { display: inline-flex; align-items: center; gap: var(--gb-bt-ico-gap); min-width: 0; }
.gb-bt__txt { overflow-wrap: break-word; }
.gb-bt__ico { display: inline-flex; flex: 0 0 auto; }
.gb-bt__ico i, .gb-bt__ico svg { line-height: 1 !important; vertical-align: middle; }
.gb-bt__ico svg { width: 1em; height: 1em; }
.gb-bt__b--t-sm { padding: calc(var(--gb-bt-py) - 4px) calc(var(--gb-bt-px) - 8px); font-size: 0.88rem; }
.gb-bt__b--t-lg { padding: calc(var(--gb-bt-py) + 4px) calc(var(--gb-bt-px) + 10px); font-size: 1.08rem; }
.gb-bt__b--ico-seule { padding: var(--gb-bt-py); border-radius: var(--gb-bt-radius-rond); }

/* ---- Anneau : pilule double anneau (défaut) ---- */
.gb-bt .gb-bt__b--anneau {
	background: var(--fond, linear-gradient(135deg, var(--gb-bt-royal), var(--gb-bt-marine)));
	background-size: 165% 165%;
	background-position: 0% 50%;
	transition: transform 220ms var(--gb-bt-ease), box-shadow 220ms var(--gb-bt-ease), background-position 420ms var(--gb-bt-ease);
	box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.55), 0 14px 30px -16px rgba(16, 82, 156, 0.7);
	color: var(--encre, #ffffff);
}
.gb-bt .gb-bt__b--anneau:hover {
	transform: translateY(-2px);
	background-position: 100% 50%;
	box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.6), 0 20px 36px -16px rgba(16, 82, 156, 0.8);
}

/* ---- Cerne : contour EN DÉGRADÉ, fond transparent ---- */
.gb-bt .gb-bt__b--cerne {
	border: 2px solid transparent;
	background: linear-gradient(var(--gb-bt-surface, #ffffff), var(--gb-bt-surface, #ffffff)) padding-box,
		var(--fond, linear-gradient(135deg, var(--gb-bt-royal), var(--gb-bt-marine))) border-box;
	color: var(--gb-bt-royal);
}
.gb-bt .gb-bt__b--cerne:hover {
	transform: translateY(-2px);
	background: var(--fond, linear-gradient(135deg, var(--gb-bt-royal), var(--gb-bt-marine)));
	box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.55);
	color: var(--encre, #ffffff);
}

/* ---- Voile : translucide, pour photo ---- */
.gb-bt .gb-bt__b--voile {
	background: rgba(255, 255, 255, 0.14);
	backdrop-filter: blur(4px);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
	color: #ffffff;
}
.gb-bt .gb-bt__b--voile:hover {
	transform: translateY(-2px);
	background: var(--fond, linear-gradient(135deg, var(--gb-bt-royal), var(--gb-bt-marine)));
	box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.6);
}

/* ---- Coupe : pilule cerclée bicolore (écho du logo) ---- */
.gb-bt .gb-bt__b--coupe {
	border-radius: 999px;
	background: var(--fond, linear-gradient(135deg, var(--gb-bt-royal), var(--gb-bt-marine)));
	box-shadow: 0 0 0 3px var(--gb-bt-surface, #ffffff), 0 0 0 5px var(--gb-bt-carmin), 0 16px 30px -16px rgba(16, 82, 156, 0.7);
	color: var(--encre, #ffffff);
}
.gb-bt .gb-bt__b--coupe:hover { transform: translateY(-2px); box-shadow: 0 0 0 3px var(--gb-bt-surface, #ffffff), 0 0 0 5px var(--gb-bt-carmin), 0 22px 36px -16px rgba(16, 82, 156, 0.8); }

/* ---- Trait : lien souligné d'un trait carmin ---- */
.gb-bt .gb-bt__b--trait {
	padding: 6px 2px;
	border-radius: 0;
	background: transparent;
	color: var(--gb-bt-royal);
}
.gb-bt .gb-bt__b--trait::after {
	content: '';
	position: absolute;
	left: 0;
	bottom: 0;
	width: 100%;
	height: 3px;
	border-radius: 2px;
	background: #ca1e1e;
	transform: scaleX(0.4);
	transform-origin: left center;
	transition: transform 280ms var(--gb-bt-ease);
}
.gb-bt .gb-bt__b--trait:hover { color: #ca1e1e; }
.gb-bt .gb-bt__b--trait:hover::after { transform: scaleX(1); }

/* ---- Pulse : urgence, halo battant ---- */
.gb-bt .gb-bt__b--pulse {
	background: var(--fond, linear-gradient(135deg, var(--gb-bt-carmin), #8f1414));
	box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.55);
	color: var(--encre, #ffffff);
	animation: gb-bt-pulse 2100ms var(--gb-bt-ease) infinite;
}
.gb-bt .gb-bt__b--pulse:hover { transform: translateY(-2px); animation-play-state: paused; }
@keyframes gb-bt-pulse {
	0%, 100% { box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.55), 0 0 0 0 rgba(202, 30, 30, 0.45); }
	60% { box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.55), 0 0 0 14px rgba(202, 30, 30, 0); }
}

/* Rouges : ombre portée carmin, cerné carmin lisible */
.gb-bt .gb-bt__b--g-carmin135.gb-bt__b--anneau,
.gb-bt .gb-bt__b--g-incendie.gb-bt__b--anneau,
.gb-bt .gb-bt__b--g-rubis.gb-bt__b--anneau { box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.55), 0 14px 30px -16px rgba(202, 30, 30, 0.75); }
.gb-bt .gb-bt__b--g-carmin135.gb-bt__b--cerne { color: var(--gb-bt-carmin); }
.gb-bt .gb-bt__b--g-carmin135.gb-bt__b--cerne:hover { color: #ffffff; }

/* Givre : anneau intérieur marine, ombre douce (sinon blanc sur blanc) */
.gb-bt .gb-bt__b--g-givre.gb-bt__b--anneau { box-shadow: inset 0 0 0 2px rgba(30, 42, 75, 0.28), 0 14px 30px -16px rgba(30, 42, 75, 0.4); }
.gb-bt .gb-bt__b--g-givre.gb-bt__b--anneau:hover { box-shadow: inset 0 0 0 2px var(--gb-bt-carmin), 0 20px 36px -16px rgba(30, 42, 75, 0.5); }

/* ---- Onde au clic ---- */
.gb-bt .gb-bt__b { overflow: clip; }
.gb-bt .gb-bt__onde {
	position: absolute;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0) 62%);
	transform: translate(-50%, -50%) scale(0);
	animation: gb-bt-onde 620ms var(--gb-bt-ease) forwards;
	pointer-events: none;
}
@keyframes gb-bt-onde {
	to { transform: translate(-50%, -50%) scale(1); opacity: 0; }
}

/* ---- Pastille (compteur / info) ---- */
.gb-bt .gb-bt__pastille {
	position: absolute;
	top: 4px;
	right: 8px;
	padding: 2px 8px;
	background: #ca1e1e;
	color: #ffffff;
	border-radius: 999px;
	font-size: 0.7rem;
	font-weight: 800;
	box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.7);
}

/* ---- Balayage (brillance au survol) ---- */
.gb-bt__balayage {
	position: absolute;
	top: 0;
	bottom: 0;
	left: -70%;
	width: 45%;
	background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.4), transparent);
	transform: skewX(-18deg);
	pointer-events: none;
}
.gb-bt--balayage .gb-bt__b:hover .gb-bt__balayage { animation: gb-bt-balaye 700ms var(--gb-bt-ease); }
@keyframes gb-bt-balaye { to { left: 125%; } }

/* ---- Animations d'icône ---- */
.gb-bt__b--ia-glisse:hover .gb-bt__ico { animation: gb-bt-glisse 500ms var(--gb-bt-ease); }
@keyframes gb-bt-glisse { 40% { transform: translateX(6px); } }
.gb-bt__b--ia-sonne:hover .gb-bt__ico { animation: gb-bt-sonne 600ms ease-in-out; }
@keyframes gb-bt-sonne { 20%, 60% { transform: rotate(-14deg); } 40%, 80% { transform: rotate(12deg); } }
.gb-bt__b--ia-pulse:hover .gb-bt__ico { animation: gb-bt-bat 700ms ease-in-out infinite; }
@keyframes gb-bt-bat { 50% { transform: scale(1.25); } }

/* ---- Soulevé global ---- */
.gb-bt--souleve .gb-bt__b:hover { transform: translateY(-3px); }

@media (prefers-reduced-motion: reduce) {
	.gb-bt .gb-bt__b, .gb-bt .gb-bt__b::after, .gb-bt__balayage { transition: none; animation: none !important; }
}
