/* =============================================================
   03 - COMPONENTS
   Boutons, eyebrow .stg, badges, formulaire, toast.
   Conventions BeRanked : .btn.ba (indigo), .btn.bg (ghost),
   .stg (eyebrow), .dt (dot coloré), .soon (badge orange).
   ============================================================= */

/* ====================== BOUTONS ====================== */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	padding: 10px 24px;
	font-family: var(--fb);
	font-weight: 700;
	font-size: 0.85rem;
	letter-spacing: -0.01em;
	border-radius: var(--Rf);
	border: none;
	cursor: pointer;
	text-decoration: none;
	transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
	white-space: nowrap;
	line-height: 1;
}

/* Bouton accent indigo */
.btn.ba {
	background: var(--a);
	color: #fff !important;
}

.btn.ba:hover {
	background: #3730A3;
	transform: translateY(-2px);
	box-shadow: 0 6px 24px rgba(79, 70, 229, 0.18);
}

/* Bouton ghost (contour) */
.btn.bg {
	background: #fff;
	color: var(--t);
	border: 1px solid var(--b);
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.btn.bg:hover {
	border-color: var(--a);
	color: var(--a);
}

/* Variante large */
.btn.bl {
	padding: 14px 32px;
	font-size: 0.95rem;
}

/* ====================== EYEBROW (.stg) ====================== */

.stg {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 0.7rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.13em;
	color: var(--tm);
	margin-bottom: 20px;
}

.stg .dt {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--a);
	flex-shrink: 0;
}

/* ====================== BADGES ====================== */

/* "Bientôt" — orange clair (charte) */
.soon {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 3px 10px;
	background: rgba(217, 119, 6, 0.10);
	border: 1px solid rgba(217, 119, 6, 0.18);
	border-radius: var(--Rf);
	font-size: 0.62rem;
	font-weight: 700;
	color: var(--o);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	white-space: nowrap;
}

/* Early Access animated badge (utilisé en hero) */
.br-eab {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 5px 14px 5px 7px;
	background: linear-gradient(90deg, var(--ad), rgba(217, 119, 6, 0.08));
	border: 1px solid rgba(79, 70, 229, 0.15);
	border-radius: var(--Rf);
	font-size: 0.74rem;
	font-weight: 700;
	color: var(--a);
	letter-spacing: 0.02em;
	margin-bottom: 28px;
	animation: fU 0.5s ease-out;
}

.br-eab-orange {
	background: linear-gradient(90deg, rgba(217, 119, 6, 0.10), rgba(79, 70, 229, 0.06));
	color: var(--o);
	border-color: rgba(217, 119, 6, 0.20);
}

.br-eab-dot {
	width: 7px;
	height: 7px;
	background: currentColor;
	border-radius: 50%;
	animation: pu 2s ease-in-out infinite;
	flex-shrink: 0;
}

.br-eab-spots {
	display: inline-block;
	padding: 2px 9px;
	background: var(--bg);
	border-radius: var(--Rf);
	font-family: var(--fm);
	font-size: 0.68rem;
	font-weight: 700;
	margin-left: 4px;
	animation: sc 2.5s ease-in-out infinite;
}

/* ====================== FORMULAIRE ====================== */

.br-form {
	width: 100%;
	max-width: 560px;
	margin: 0 auto;
	animation: fU 0.6s ease-out 0.2s both;
}

.br-form-row {
	display: flex;
	gap: 8px;
	background: #fff;
	border: 1px solid var(--b);
	border-radius: var(--Rf);
	padding: 6px;
	box-shadow:
		0 1px 2px rgba(0, 0, 0, 0.04),
		0 8px 32px rgba(0, 0, 0, 0.04);
	transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.br-form-row:focus-within {
	border-color: var(--a);
	box-shadow:
		0 1px 2px rgba(0, 0, 0, 0.04),
		0 8px 32px rgba(79, 70, 229, 0.12),
		0 0 0 4px rgba(79, 70, 229, 0.08);
}

.br-input {
	flex: 1;
	min-width: 0;
	padding: 12px 16px;
	background: transparent;
	border: none;
	outline: none;
	font-size: 0.95rem;
	color: var(--t);
}

.br-input::placeholder {
	color: var(--tm);
}

.br-form-submit {
	flex-shrink: 0;
}

.br-form-submit:disabled {
	opacity: 0.6;
	cursor: not-allowed;
	transform: none !important;
}

.br-form-note {
	margin-top: 14px;
	font-size: 0.78rem;
	color: var(--tm);
	text-align: center;
}

/* Honeypot — invisible mais accessible aux bots */
.br-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
	opacity: 0;
	pointer-events: none;
}

/* ====================== TOAST ====================== */

.br-toast {
	position: fixed;
	bottom: 28px;
	right: 28px;
	z-index: 100000;
	padding: 14px 22px;
	border-radius: var(--R);
	font-size: 0.88rem;
	font-weight: 600;
	max-width: calc(100vw - 56px);
	transform: translateY(120px);
	opacity: 0;
	transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}

.br-toast.show {
	transform: translateY(0);
	opacity: 1;
}

.br-toast.ok {
	background: var(--g);
	color: #fff;
}

.br-toast.err {
	background: var(--r);
	color: #fff;
}

.br-toast.info {
	background: var(--a);
	color: #fff;
}
