/*
 * Héméra — bandeau « Chèques cadeaux » réutilisable
 * Shortcode [hemera_bandeau_cheques page="…"] (mu-plugin hemera-donnees.php)
 * Chargé seulement sur les pages qui contiennent le shortcode (voir functions.php).
 */

.hb-wrap { width: 100%; box-sizing: border-box; padding: 40px 0; font-family: 'Source Sans 3', system-ui, sans-serif; line-height: normal; }
.hb-wrap :where(p) { margin: 0; }

.hb-aside { position: relative; max-width: 1160px; margin: 0 auto; box-sizing: border-box; padding: 28px 32px 28px 28px; border-radius: 24px; background: radial-gradient(90% 140% at 0% 50%, #1B5488 0%, #0E3A66 50%, #0B2F54 100%); color: #FFFFFF; display: flex; flex-wrap: wrap; align-items: center; gap: 24px 32px; overflow: hidden; box-shadow: 0 18px 40px rgba(14, 58, 102, .22); }

/* Pile de chèques */
.hb-visual { position: relative; width: 260px; height: 150px; flex-shrink: 0; }
.hb-ghost { position: absolute; border-radius: 12px; background: #FFFFFF; border-top: 5px solid var(--hb-c, #00849B); box-sizing: border-box; }
.hb-ghost-1 { left: 30px; top: 4px; width: 214px; height: 120px; transform: rotate(9deg); opacity: .55; }
.hb-ghost-2 { left: 22px; top: 10px; width: 220px; height: 122px; transform: rotate(4deg); opacity: .8; }
.hb-badge { position: absolute; right: 2px; top: -8px; z-index: 3; width: 64px; height: 64px; border-radius: 50%; background: #C24E00; color: #FFFFFF; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; box-shadow: 0 8px 18px rgba(0, 0, 0, .3); transform: rotate(8deg); font-family: Montserrat, sans-serif; }
.hb-badge-n { font-weight: 700; font-size: 24px; line-height: 1; }
.hb-badge-t { font-weight: 700; font-size: 9px; letter-spacing: .5px; text-transform: uppercase; line-height: 1.1; }

.hb-chq { position: absolute; left: 4px; top: 14px; width: 236px; height: 124px; display: flex; border-radius: 12px; overflow: hidden; background: #FFFFFF; transform: rotate(-4deg); box-shadow: 0 14px 28px rgba(0, 0, 0, .35); transition: transform .3s ease; }
.hb-chq-bar { position: absolute; top: 0; left: 0; right: 0; height: 5px; z-index: 2; background: var(--hb-c, #E55A00); }
.hb-chq-stub { width: 58px; flex-shrink: 0; border-right: 2px dashed #CBD5E1; display: flex; align-items: center; justify-content: center; }
.hb-chq-stub img { width: 38px; height: 54px; object-fit: contain; }
.hb-chq-body { position: relative; flex: 1; min-width: 0; padding: 14px 12px; display: flex; flex-direction: column; gap: 4px; overflow: hidden; }
.hb-chq-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.6); }
.hb-chq-veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255, 255, 255, .25) 0%, rgba(255, 255, 255, .88) 50%, rgba(255, 255, 255, .97) 100%); }
.hb-chq-label { position: relative; align-self: flex-start; padding: 2px 6px; border-radius: 5px; background: rgba(255, 255, 255, .92); font-family: Montserrat, sans-serif; font-weight: 700; font-size: 9px; letter-spacing: 1px; text-transform: uppercase; color: #C24E00; }
.hb-chq-name { position: relative; margin-top: auto; font-family: Montserrat, sans-serif; font-weight: 700; font-size: 14px; line-height: 1.2; color: #034B7C; }

/* Texte */
.hb-txt { position: relative; flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.hb-eyebrow { font-family: Montserrat, sans-serif; font-weight: 700; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: #F5A66B; }
.hb-title { font-family: Montserrat, sans-serif; font-weight: 700; font-size: 26px; line-height: 1.15; }
.hb-texte { font-size: 16px; line-height: 1.5; color: #D9E2EC; }
.hb-choix { margin-top: 2px; font-size: 15px; line-height: 1.5; color: #CBD5E1; }
.hb-choix strong { color: #FFFFFF; font-weight: 600; }

/* Bouton */
.hb-btn { position: relative; display: inline-flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 8px 0 22px; border-radius: 999px; background: #C24E00; color: #FFFFFF; font-family: Montserrat, sans-serif; font-weight: 700; font-size: 16px; text-decoration: none; box-shadow: 0 10px 22px rgba(194, 78, 0, .35); transition: transform .2s ease; }
.hb-btn:hover, .hb-btn:focus { color: #FFFFFF; transform: translateY(-2px); }
.hb-btn:focus-visible { outline: 3px solid #F2B705; outline-offset: 3px; }
.hb-btn-ico { display: flex; width: 38px; height: 38px; border-radius: 50%; background: #FFFFFF; align-items: center; justify-content: center; }
.hb-aside:hover .hb-chq { transform: rotate(-2deg) translateY(-3px); }

@media (max-width: 720px) {
	.hb-wrap { padding: 24px 0; }
	.hb-aside { padding: 24px 20px 26px; gap: 20px; border-radius: 20px; }
	.hb-visual { width: 100%; height: 150px; }
	.hb-chq { left: 50%; margin-left: -118px; }
	.hb-ghost-1, .hb-ghost-2 { left: 50%; margin-left: -104px; }
	.hb-badge { right: auto; left: 50%; margin-left: 76px; }
	.hb-title { font-size: 22px; }
	.hb-btn { width: 100%; justify-content: center; box-sizing: border-box; }
}

@media (prefers-reduced-motion: reduce) {
	.hb-btn, .hb-chq { transition: none; }
	.hb-btn:hover, .hb-aside:hover .hb-chq { transform: rotate(-4deg); }
	.hb-btn:hover { transform: none; }
}

/* ---------- Version discrète : [hemera_bandeau_cheques format="discret"] ---------- */
.hb-mini { display: flex; align-items: center; gap: 18px; box-sizing: border-box; width: 100%; margin: 32px 0; padding: 14px 22px; border: 1px solid #D7E3EE; border-radius: 14px; background: #F5F9FC; font-family: 'Source Sans 3', system-ui, sans-serif; color: #0E3A66; line-height: 1.4; }
.hb-mini-ico { flex: none; }
.hb-mini .hb-mini-txt { flex: 1; margin: 0; font-size: 17px; }
.hb-mini-txt strong { font-family: Montserrat, system-ui, sans-serif; font-weight: 700; font-size: 16px; }
.hb-mini .hb-mini-lien { flex: none; display: inline-flex; align-items: center; min-height: 44px; font-family: Montserrat, system-ui, sans-serif; font-weight: 700; font-size: 15px; color: #C24E00; text-decoration: underline; text-underline-offset: 4px; white-space: nowrap; }
.hb-mini .hb-mini-lien:hover { color: #0E3A66; }
.hb-mini .hb-mini-lien:focus-visible { outline: 2px solid #0E3A66; outline-offset: 3px; border-radius: 4px; }
@media (max-width: 720px) {
	.hb-mini { flex-wrap: wrap; gap: 6px 14px; padding: 14px 16px; }
	.hb-mini-ico { width: 32px; height: 32px; }
	.hb-mini .hb-mini-txt { flex: 1 1 200px; font-size: 16px; }
	.hb-mini .hb-mini-lien { margin-left: 46px; }
}