/* ==========================================================================
   Brigade Site — Paprika Theme
   Palette: cream/dark/red-orange (inspiré maquette 19-paprika-enhanced)
   ========================================================================== */

:root {
	/* Palette Paprika */
	--font: 'Manrope', sans-serif;
	--dark: #1a0e08;
	--dark-2: #2a1a10;
	--dark-3: #3a2818;
	--cream: #f6f2ed;
	--cream-2: #efe9e0;
	--cream-3: #e8dfd3;
	--surface: #fff;
	--red: #c0301a;
	--red-dark: #a02815;
	--red-light: #d84820;
	--red-rgb: 192, 48, 26;
	--orange: #e86830;
	--amber: #f0a040;
	--grad: linear-gradient(135deg, #c0301a 0%, #d84820 60%, #e86830 100%);
	--text: #1a0e08;
	--text-2: #4a3525;
	--text-3: #806550;
	--text-4: #a89580;
	--border: #ddd5ca;
	--border-light: #e8e0d5;
	--radius: 8px;

	/* Compat aliases (auth pages, brand overrides) */
	--primary: #c0301a;
	--primary-dark: #a02815;
	--primary-light: #d84820;
	--primary-rgb: 192, 48, 26;
	--gray-100: #f6f2ed;
	--gray-200: #e8e0d5;
	--gray-300: #ddd5ca;
	--gray-400: #a89580;
	--gray-500: #806550;
	--gray-600: #4a3525;
	--white: #ffffff;
	--shadow-sm: 0 1px 2px rgba(26, 14, 8, 0.05);
	--shadow: 0 4px 6px -1px rgba(26, 14, 8, 0.08), 0 2px 4px -1px rgba(26, 14, 8, 0.04);
	--shadow-lg: 0 10px 15px -3px rgba(26, 14, 8, 0.08), 0 4px 6px -2px rgba(26, 14, 8, 0.04);
	--shadow-xl: 0 20px 25px -5px rgba(26, 14, 8, 0.1), 0 10px 10px -5px rgba(26, 14, 8, 0.04);
	--transition: all 0.2s ease;
}

/* Reset & Base */
*,
*::before,
*::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	height: 100%;
	scroll-behavior: smooth;
}

body {
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.6;
	color: var(--text);
	background: var(--cream);
	-webkit-font-smoothing: antialiased;
	min-height: 100%;
	display: flex;
	flex-direction: column;
}

::selection {
	background: rgba(192, 48, 26, 0.15);
}

main {
	flex: 1;
	display: flex;
	flex-direction: column;
}

a {
	text-decoration: none;
	color: inherit;
}

/* ==============================
   ANIMATIONS
   ============================== */
@keyframes up { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes pulse { 0%, 100% { opacity: .4; } 50% { opacity: .8; } }
@keyframes slideIn { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: translateX(0); } }

.a { animation: up .5s ease both; }
.a1 { animation-delay: .08s; }
.a2 { animation-delay: .16s; }
.a3 { animation-delay: .24s; }
.a4 { animation-delay: .32s; }
.a5 { animation-delay: .4s; }

/* ==============================
   NAV
   ============================== */
nav.navbar {
	background: var(--dark);
	height: 56px;
	display: flex;
	align-items: center;
	padding: 0 32px;
	position: relative;
	z-index: 10;
}

.nav-c {
	max-width: 1000px;
	width: 100%;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.logo {
	display: flex;
	align-items: center;
	gap: 11px;
	font-size: 18px;
	font-weight: 700;
	color: #fff;
	letter-spacing: -.3px;
}

.logo-mark {
	width: 32px;
	height: 32px;
	background: var(--grad);
	border-radius: var(--radius);
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-size: 14px;
	font-weight: 800;
}

.logo svg {
	height: 28px;
	width: auto;
}

.nav-right {
	display: flex;
	align-items: center;
	gap: 16px;
}

.nav-link {
	font-size: 12px;
	color: rgba(255, 255, 255, .35);
	font-weight: 500;
	transition: color .15s;
	letter-spacing: .2px;
}

.nav-link:hover {
	color: rgba(255, 255, 255, .8);
}

.nav-btn {
	padding: 9px 24px;
	border-radius: var(--radius);
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
	border: none;
	font-family: var(--font);
	background: var(--red);
	color: #fff;
	transition: all .15s;
	letter-spacing: .2px;
	display: inline-block;
}

.nav-btn:hover {
	background: var(--red-dark);
	transform: translateY(-1px);
}

/* ==============================
   HERO
   ============================== */
.hero {
	background: var(--dark);
	padding: 44px 32px 80px;
	text-align: center;
	position: relative;
	overflow: hidden;
}

.hero-dots {
	position: absolute;
	inset: 0;
	background-image: radial-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px);
	background-size: 24px 24px;
	pointer-events: none;
}

.hero-orb {
	position: absolute;
	border-radius: 50%;
	filter: blur(60px);
	pointer-events: none;
}

.hero-orb.o1 {
	width: 300px;
	height: 300px;
	background: rgba(192, 48, 26, .12);
	top: -80px;
	left: 20%;
}

.hero-orb.o2 {
	width: 200px;
	height: 200px;
	background: rgba(232, 104, 48, .08);
	bottom: -40px;
	right: 15%;
}

.hero::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 1px;
	background: linear-gradient(90deg, transparent 5%, rgba(192, 48, 26, .4) 30%, rgba(232, 104, 48, .2) 70%, transparent 95%);
}

.hero-inner {
	position: relative;
	z-index: 1;
	max-width: 640px;
	margin: 0 auto;
}

.hero-tag {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 16px 6px 8px;
	background: rgba(255, 255, 255, .04);
	border: 1px solid rgba(255, 255, 255, .06);
	border-radius: 50px;
	font-size: 11px;
	font-weight: 500;
	color: rgba(255, 255, 255, .45);
	margin-bottom: 28px;
	letter-spacing: .3px;
}

.hero-tag-dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--red);
	animation: pulse 2s ease-in-out infinite;
}

.hero-tag-inner {
	display: flex;
	align-items: center;
	gap: 6px;
}

.hero h1 {
	font-size: 46px;
	font-weight: 800;
	color: rgba(255, 255, 255, .95);
	letter-spacing: -1px;
	line-height: 1.1;
}

.hero h1 span {
	background: var(--grad);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.hero p {
	font-size: 15px;
	color: rgba(200, 170, 130, .5);
	max-width: 400px;
	margin: 18px auto 36px;
	line-height: 1.7;
	font-weight: 400;
}

.hero-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 14px 36px;
	border-radius: var(--radius);
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	border: none;
	font-family: var(--font);
	background: var(--grad);
	color: #fff;
	box-shadow: 0 4px 24px rgba(192, 48, 26, .3);
	transition: all .2s;
	letter-spacing: .2px;
}

.hero-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 32px rgba(192, 48, 26, .4);
}

.hero-btn .arrow {
	transition: transform .2s;
}

.hero-btn:hover .arrow {
	transform: translateX(3px);
}

/* Trust strip */
.hero-trust {
	margin-top: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 24px;
}

.trust-label {
	font-size: 10px;
	color: rgba(255, 255, 255, .18);
	text-transform: uppercase;
	letter-spacing: 1px;
	font-weight: 600;
}

.trust-logos {
	display: flex;
	gap: 20px;
	align-items: center;
}

.trust-logo {
	font-size: 13px;
	font-weight: 600;
	color: rgba(255, 255, 255, .12);
	letter-spacing: .5px;
}

/* ==============================
   FEATURES
   ============================== */
.features {
	max-width: 1000px;
	margin: -40px auto 0;
	padding: 0 32px;
	position: relative;
	z-index: 2;
	flex: 1;
}

.f-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 14px;
}

.f-card {
	background: var(--surface);
	border: 1px solid var(--border-light);
	border-radius: var(--radius);
	padding: 28px 22px;
	transition: all .25s;
	position: relative;
	overflow: hidden;
}

.f-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 32px rgba(26, 14, 8, .07);
	border-color: transparent;
}

.f-bar {
	height: 3px;
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	opacity: .85;
}

.f-card:hover .f-bar {
	opacity: 1;
}

.f-card:nth-child(1) .f-bar { background: var(--red); }
.f-card:nth-child(2) .f-bar { background: var(--red-light); }
.f-card:nth-child(3) .f-bar { background: var(--orange); }
.f-card:nth-child(4) .f-bar { background: var(--dark); }

.f-icon {
	width: 44px;
	height: 44px;
	border-radius: var(--radius);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 17px;
	font-weight: 700;
	color: #fff;
	margin-bottom: 16px;
}

.f-card:nth-child(1) .f-icon { background: var(--red); }
.f-card:nth-child(2) .f-icon { background: var(--red-light); }
.f-card:nth-child(3) .f-icon { background: var(--orange); }
.f-card:nth-child(4) .f-icon { background: var(--dark); }

.f-name {
	font-size: 15px;
	font-weight: 700;
	margin-bottom: 6px;
	letter-spacing: -.2px;
}

.f-desc {
	font-size: 12px;
	color: var(--text-3);
	line-height: 1.65;
}

.f-link {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 11px;
	font-weight: 600;
	margin-top: 14px;
	transition: gap .15s;
}

.f-card:nth-child(1) .f-link { color: var(--red); }
.f-card:nth-child(2) .f-link { color: var(--red-light); }
.f-card:nth-child(3) .f-link { color: var(--orange); }
.f-card:nth-child(4) .f-link { color: var(--dark-2); }
.f-link:hover { gap: 8px; }

/* ==============================
   FOOTER
   ============================== */
footer {
	margin-top: 48px;
	border-top: 1px solid var(--border);
	padding: 20px 32px;
	background: var(--cream);
}

.foot-c {
	max-width: 1000px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.foot-left {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 11px;
	color: var(--text-4);
}

.foot-logo {
	width: 18px;
	height: 18px;
	background: var(--grad);
	border-radius: 4px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-size: 8px;
	font-weight: 800;
}

.foot-links {
	display: flex;
	gap: 18px;
}

.foot-link {
	font-size: 11px;
	color: var(--text-4);
	transition: color .12s;
}

.foot-link:hover {
	color: var(--text-2);
}

/* ==============================
   BUTTONS (generic)
   ============================== */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 28px;
	border-radius: var(--radius);
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	border: none;
	font-family: var(--font);
	transition: all .15s;
	letter-spacing: .2px;
}

.btn-primary {
	background: var(--grad);
	color: #fff;
	box-shadow: 0 4px 24px rgba(192, 48, 26, .2);
}

.btn-primary:hover {
	transform: translateY(-1px);
	box-shadow: 0 8px 32px rgba(192, 48, 26, .3);
}

/* ==============================
   AUTH PAGES
   ============================== */
.auth-page {
	min-height: 100vh;
	display: flex;
	background: var(--cream);
	position: relative;
	overflow: hidden;
}

.auth-page::before {
	content: '';
	position: absolute;
	top: -30%;
	right: -15%;
	width: 60%;
	height: 120%;
	background: radial-gradient(circle, rgba(var(--red-rgb), 0.04) 0%, transparent 60%);
	border-radius: 50%;
	pointer-events: none;
}

.auth-page::after {
	content: '';
	position: absolute;
	bottom: -20%;
	left: -10%;
	width: 40%;
	height: 80%;
	background: radial-gradient(circle, rgba(var(--red-rgb), 0.02) 0%, transparent 60%);
	border-radius: 50%;
	pointer-events: none;
}

.auth-container {
	display: flex;
	width: 100%;
	min-height: 100vh;
	position: relative;
	z-index: 1;
}

.auth-left {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 2rem;
}

.auth-right {
	flex: 1;
	display: none;
	align-items: center;
	justify-content: center;
	background: var(--dark);
	position: relative;
	overflow: hidden;
}

.auth-right::before {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 150%;
	height: 150%;
	background: radial-gradient(circle, rgba(var(--red-rgb), 0.15) 0%, transparent 60%);
	pointer-events: none;
}

.auth-right-content {
	position: relative;
	z-index: 1;
	text-align: center;
	padding: 3rem;
	max-width: 480px;
}

.auth-right-content h2 {
	font-size: 2.5rem;
	font-weight: 700;
	color: var(--white);
	margin-bottom: 1rem;
}

.auth-right-content p {
	font-size: 1.125rem;
	color: var(--text-4);
	line-height: 1.7;
}

.auth-right-content .highlight {
	background: var(--grad);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

@media (min-width: 992px) {
	.auth-right {
		display: flex;
	}
}

.auth-card {
	width: 100%;
	max-width: 420px;
	background: var(--surface);
	border-radius: 16px;
	border: 1px solid var(--border-light);
	box-shadow: var(--shadow-xl);
	padding: 3rem;
}

.auth-card--wide {
	max-width: 640px;
	padding: 2.5rem;
}

.auth-card--wide .auth-header {
	margin-bottom: 1.5rem;
}

.form-section {
	margin-bottom: 1.75rem;
}

.form-section:last-of-type {
	margin-bottom: 0.5rem;
}

.form-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1rem 1.25rem;
}

@media (min-width: 480px) {
	.form-grid {
		grid-template-columns: 1fr 1fr;
	}

	.form-grid .form-group--full {
		grid-column: 1 / -1;
	}
}

.form-section-title {
	font-size: 0.6875rem;
	font-weight: 600;
	color: var(--text-3);
	text-transform: uppercase;
	letter-spacing: 0.08em;
	margin-bottom: 1rem;
	padding-bottom: 0.5rem;
	border-bottom: 1px solid var(--border-light);
}

.form-section-title:not(:first-child) {
	margin-top: 0;
}

.auth-logo {
	display: block;
	margin-bottom: 2rem;
	text-align: center;
}

.auth-logo img {
	height: 40px;
	width: auto;
}

.auth-logo svg {
	height: 36px;
	width: auto;
}

.auth-header {
	text-align: center;
	margin-bottom: 2rem;
}

.auth-header h1 {
	font-size: 1.75rem;
	font-weight: 700;
	color: var(--dark);
	margin-bottom: 0.5rem;
}

.auth-header p {
	font-size: 0.9375rem;
	color: var(--text-3);
}

.auth-form {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}

.form-group {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.form-label {
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--text-2);
}

.form-input {
	width: 100%;
	padding: 0.875rem 1rem;
	font-size: 0.9375rem;
	font-family: var(--font);
	color: var(--dark);
	background: var(--cream);
	border: 2px solid transparent;
	border-radius: var(--radius);
	outline: none;
	transition: var(--transition);
}

.form-input::placeholder {
	color: var(--text-4);
}

.form-input:focus {
	background: var(--surface);
	border-color: var(--red);
	box-shadow: 0 0 0 4px rgba(var(--red-rgb), 0.08);
}

.form-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.form-link {
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--red);
}

.form-link:hover {
	color: var(--red-dark);
	text-decoration: underline;
}

.auth-alert {
	padding: 1rem;
	border-radius: var(--radius);
	font-size: 0.875rem;
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-bottom: 1rem;
}

.auth-alert-error {
	background: rgba(192, 48, 26, 0.08);
	color: var(--red);
	border: 1px solid rgba(192, 48, 26, 0.15);
}

.auth-alert-success {
	background: rgba(34, 197, 94, 0.08);
	color: #16a34a;
	border: 1px solid rgba(34, 197, 94, 0.15);
}

.auth-alert-warning {
	background: rgba(240, 160, 64, 0.08);
	color: #b87a20;
	border: 1px solid rgba(240, 160, 64, 0.15);
}

.auth-alert svg {
	flex-shrink: 0;
}

/* Form field errors */
.auth-form .form-group ul {
	list-style: none;
	padding: 0;
	margin: 0.25rem 0 0;
}

.auth-form .form-group ul li,
.auth-form .form-group .help-text {
	font-size: 0.8125rem;
	color: var(--red);
	line-height: 1.4;
}

.auth-form .form-group .help-text {
	color: var(--text-3);
}

.auth-form .form-input.is-invalid,
.auth-form .form-group:has(ul li) .form-input {
	border-color: var(--red);
	background: rgba(192, 48, 26, 0.03);
}

.auth-form .form-group:has(ul li) .form-input:focus {
	box-shadow: 0 0 0 4px rgba(192, 48, 26, 0.08);
}

.auth-divider {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin: 0.5rem 0;
}

.auth-divider::before,
.auth-divider::after {
	content: '';
	flex: 1;
	height: 1px;
	background: var(--border);
}

.auth-divider span {
	font-size: 0.8125rem;
	color: var(--text-3);
}

.auth-footer {
	text-align: center;
	margin-top: 1.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--border-light);
}

.auth-footer p {
	font-size: 0.875rem;
	color: var(--text-3);
}

.auth-footer a {
	font-weight: 600;
	color: var(--red);
}

.auth-footer a:hover {
	text-decoration: underline;
}

.auth-back-link {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.875rem;
	color: var(--text-3);
	margin-bottom: 1.5rem;
}

.auth-back-link:hover {
	color: var(--red);
}

/* Checkbox */
.form-checkbox-wrapper {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.form-checkbox {
	width: 18px;
	height: 18px;
	accent-color: var(--red);
	cursor: pointer;
}

.form-checkbox-label {
	font-size: 0.875rem;
	color: var(--text-3);
	cursor: pointer;
}

/* Password toggle */
.password-wrapper {
	position: relative;
}

.password-wrapper .form-input {
	padding-right: 3rem;
}

.password-toggle {
	position: absolute;
	right: 0.75rem;
	top: 50%;
	transform: translateY(-50%);
	background: none;
	border: none;
	cursor: pointer;
	padding: 0.25rem;
	color: var(--text-4);
	transition: var(--transition);
	display: flex;
	align-items: center;
	justify-content: center;
}

.password-toggle:hover {
	color: var(--red);
}

/* Auth submit button */
.btn-auth {
	width: 100%;
	padding: 14px;
	border-radius: var(--radius);
	font-size: 15px;
	font-weight: 600;
	font-family: var(--font);
	cursor: pointer;
	border: none;
	background: var(--grad);
	color: #fff;
	box-shadow: 0 4px 16px rgba(192, 48, 26, .2);
	transition: all .2s;
}

.btn-auth:hover {
	transform: translateY(-1px);
	box-shadow: 0 6px 24px rgba(192, 48, 26, .3);
}

/* ==============================
   RESPONSIVE
   ============================== */
@media (max-width: 768px) {
	nav.navbar {
		padding: 0 20px;
		height: 50px;
	}

	.logo {
		font-size: 16px;
	}

	.logo-mark {
		width: 28px;
		height: 28px;
		font-size: 12px;
	}

	.nav-btn {
		padding: 7px 18px;
		font-size: 11px;
	}

	.hero {
		padding: 36px 20px 64px;
	}

	.hero h1 {
		font-size: 30px;
		letter-spacing: -.5px;
	}

	.hero p {
		font-size: 13px;
		margin: 14px auto 28px;
	}

	.hero-btn {
		padding: 12px 28px;
		font-size: 13px;
	}

	.hero-trust {
		flex-direction: column;
		gap: 10px;
		margin-top: 32px;
	}

	.trust-logos {
		gap: 14px;
	}

	.features {
		padding: 0 20px;
		margin-top: -28px;
	}

	.f-grid {
		grid-template-columns: 1fr 1fr;
		gap: 10px;
	}

	.f-card {
		padding: 22px 18px;
	}

	.f-icon {
		width: 36px;
		height: 36px;
		font-size: 14px;
		margin-bottom: 12px;
	}

	.f-name {
		font-size: 14px;
	}

	.f-desc {
		font-size: 11px;
	}

	footer {
		padding: 16px 20px;
		margin-top: 32px;
	}

	.foot-c {
		flex-direction: column;
		gap: 8px;
		text-align: center;
	}
}

@media (max-width: 480px) {
	.hero h1 {
		font-size: 26px;
	}

	.f-grid {
		grid-template-columns: 1fr;
	}

	.hero-tag {
		font-size: 10px;
	}
}
