/* ODAM Buttons — structural styles only. Colors, spacing, typography etc.
   are all generated by Elementor's own Style tab controls (scoped to
   {{WRAPPER}}), so this file intentionally stays out of their way: no
   !important, no high-specificity selectors, easy to override from the
   widget's own "CSS personnalisé" field or a theme stylesheet. */

.odam-btn-group {
	display: flex;
	list-style: none;
	margin: 0;
	padding: 0;
}

.odam-btn-item {
	position: relative;
	display: flex;
	align-items: center;
}

/* Divider between items (only when the "Séparateurs" style toggle is on) */
.odam-btn-group--dividers-yes .odam-btn-item:not(:last-child)::after {
	content: '';
	display: block;
	align-self: center;
	margin-left: 10px;
	flex: none;
}

.odam-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	cursor: pointer;
	box-sizing: border-box;
	line-height: 1.2;
	white-space: nowrap;
}

.odam-btn--icon-top {
	flex-direction: column;
}

.odam-btn-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
	flex: none;
}

.odam-btn-icon svg {
	display: block;
	fill: currentColor;
}

.odam-btn-text {
	display: inline-block;
}

/* Badge — small pinned chip (count, "New", etc.) */
.odam-btn-badge {
	position: absolute;
	min-width: 16px;
	height: 16px;
	padding: 0 4px;
	border-radius: 20px;
	font-weight: 700;
	line-height: 16px;
	text-align: center;
	pointer-events: none;
}
.odam-badge--top-right .odam-btn-badge { top: -6px; right: -6px; }
.odam-badge--top-left .odam-btn-badge  { top: -6px; left: -6px; }

/* Reminder bubble — hidden by default, JS toggles .is-visible on a cycle */
.odam-btn-bubble {
	position: absolute;
	left: 50%;
	transform: translateX(-50%) translateY(4px) scale(0.9);
	white-space: nowrap;
	padding: 5px 10px;
	border-radius: 6px;
	pointer-events: none;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.25s ease, transform 0.25s ease;
	z-index: 20;
}
.odam-btn-bubble--top    { bottom: 100%; margin-bottom: 10px; }
.odam-btn-bubble--bottom { top: 100%; margin-top: 10px; }

.odam-btn-bubble.is-visible {
	opacity: 1;
	visibility: visible;
	transform: translateX(-50%) translateY(0) scale(1);
}

.odam-bubble-arrow--yes .odam-btn-bubble::after {
	content: '';
	position: absolute;
	left: 50%;
	width: 8px;
	height: 8px;
	background: inherit;
	transform: translateX(-50%) rotate(45deg);
}
.odam-bubble-arrow--yes .odam-btn-bubble--top::after    { bottom: -4px; }
.odam-bubble-arrow--yes .odam-btn-bubble--bottom::after { top: -4px; }

/* Bubble animation variants, applied only while .is-visible */
.odam-btn-bubble--anim-bounce.is-visible { animation: odam-btn-bounce 0.5s ease; }
.odam-btn-bubble--anim-pulse.is-visible  { animation: odam-btn-pulse 1s ease infinite; }
.odam-btn-bubble--anim-fade.is-visible   { animation: none; }

@keyframes odam-btn-bounce {
	0%   { transform: translateX(-50%) translateY(4px) scale(0.9); }
	60%  { transform: translateX(-50%) translateY(-4px) scale(1.05); }
	100% { transform: translateX(-50%) translateY(0) scale(1); }
}
@keyframes odam-btn-pulse {
	0%, 100% { transform: translateX(-50%) translateY(0) scale(1); }
	50%      { transform: translateX(-50%) translateY(0) scale(1.06); }
}

/* Per-button responsive visibility (independent of Elementor's own
   widget-level responsive visibility, which only hides the whole widget) */
@media (min-width: 1025px) {
	.odam-btn-item--hide-desktop { display: none !important; }
}
@media (min-width: 768px) and (max-width: 1024px) {
	.odam-btn-item--hide-tablet { display: none !important; }
}
@media (max-width: 767px) {
	.odam-btn-item--hide-mobile { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
	.odam-btn-bubble,
	.odam-btn-bubble--anim-bounce.is-visible,
	.odam-btn-bubble--anim-pulse.is-visible {
		animation: none;
		transition: opacity 0.25s ease;
	}
}
