/* Best360Drone Enhanced Optimized v4.1.0 — mobile first */

:root {
	--bg: #ffffff;
	--text: #000000;
	--text-muted: #666666;
	--border: #e0e0e0;
	--accent: #D4FF00;
	--card-bg: #f5f5f5;
}

@media (prefers-color-scheme: dark) {
	:root {
		--bg: #1a1a1a;
		--text: #ffffff;
		--text-muted: #cccccc;
		--border: #333333;
		--card-bg: #2a2a2a;
	}
}

body.dark-mode {
	--bg: #1a1a1a !important;
	--text: #ffffff !important;
	--text-muted: #cccccc !important;
	--border: #333333 !important;
	--card-bg: #2a2a2a !important;
	background-color: #1a1a1a;
	color: #ffffff;
}

body.light-mode {
	--bg: #ffffff !important;
	--text: #000000 !important;
	--text-muted: #666666 !important;
	--border: #e0e0e0 !important;
	--card-bg: #f5f5f5 !important;
	background-color: #ffffff;
	color: #000000;
}

/* ---------- Header ---------- */
.b360-header {
	background: var(--bg);
	border-bottom: 1px solid var(--border);
	padding: 0.6rem 0;
	position: sticky;
	top: 0;
	z-index: 1000;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.b360-header__inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 1rem;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem 1rem;
}

.b360-logo {
	font-size: 1.25rem;
	font-weight: 900;
	color: var(--text);
	text-decoration: none;
	white-space: nowrap;
}

.b360-nav {
	order: 3;
	flex: 1 0 100%;
	display: flex;
	gap: 1.25rem;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	padding-bottom: 2px;
}

.b360-nav::-webkit-scrollbar { display: none; }

.b360-nav a {
	color: var(--text);
	text-decoration: none;
	font-weight: 500;
	white-space: nowrap;
	padding: 0.35rem 0;
}

.b360-nav a:hover,
.b360-nav a:focus-visible { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 3px; }

.b360-theme-toggle {
	background: none;
	border: 2px solid var(--accent);
	color: var(--text);
	padding: 0.35rem 0.75rem;
	border-radius: 8px;
	cursor: pointer;
	font-size: 1.1rem;
	line-height: 1.2;
	min-height: 40px;
	min-width: 44px;
}

@media (min-width: 769px) {
	.b360-header { padding: 1rem 0; }
	.b360-header__inner { flex-wrap: nowrap; padding: 0 2rem; }
	.b360-logo { font-size: 1.5rem; }
	.b360-nav { order: 0; flex: 1; margin-left: 3rem; gap: 2rem; overflow: visible; }
}

/* ---------- Footer ---------- */
.b360-footer {
	background: var(--card-bg);
	border-top: 1px solid var(--border);
	padding: 2rem 0;
	margin-top: 3rem;
}

.b360-footer__inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 1rem;
	text-align: center;
}

.b360-footer p { color: var(--text); margin: 0 0 1.25rem; }

.b360-footer__links {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 0.75rem 1.5rem;
}

.b360-footer__links a,
.b360-manage-cookies {
	color: var(--text);
	text-decoration: underline;
	text-decoration-color: var(--accent);
	text-decoration-thickness: 2px;
	font-weight: 500;
	font-size: 1rem;
	background: none;
	border: 0;
	padding: 0;
	cursor: pointer;
	font-family: inherit;
}

/* ---------- Animations au scroll (seulement si JS actif) ---------- */
@keyframes b360FadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes b360SlideInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
@keyframes b360SlideInDown { from { opacity: 0; transform: translateY(-30px); } to { opacity: 1; transform: none; } }

.b360-js [data-scroll-animate] { opacity: 0; }
.b360-js [data-scroll-animate].animated { opacity: 1; animation-duration: 0.8s; animation-fill-mode: both; }
.animate-fade-in { animation-name: b360FadeIn; }
.animate-slide-in-up { animation-name: b360SlideInUp; }
.animate-slide-in-down { animation-name: b360SlideInDown; }

@media (prefers-reduced-motion: reduce) {
	.b360-js [data-scroll-animate] { opacity: 1; animation: none !important; }
}

/* ---------- Accordéon FAQ ---------- */
.accordion-content {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.3s ease-out;
}

.hidden { display: none !important; }

/* ---------- Bannière de consentement ---------- */
.b360-cc {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 99999;
	background: #1a1a1a;
	color: #ffffff;
	border-top: 3px solid var(--accent);
	box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.25);
	padding: 1rem;
	max-height: 90vh;
	overflow-y: auto;
	font-size: 0.95rem;
	line-height: 1.5;
}

.b360-cc[hidden] { display: none; }

.b360-cc__inner { max-width: 1100px; margin: 0 auto; }

.b360-cc h2 { font-size: 1.1rem; margin: 0 0 0.5rem; color: #ffffff; }

.b360-cc p { margin: 0 0 0.75rem; color: #ffffff; }

.b360-cc a { color: var(--accent); text-decoration: underline; }

.b360-cc__actions {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	margin-top: 0.75rem;
}

.b360-cc__btn {
	font: inherit;
	font-weight: 600;
	padding: 0.75rem 1rem;
	border-radius: 6px;
	cursor: pointer;
	border: 2px solid var(--accent);
	background: transparent;
	color: #ffffff;
	min-height: 44px;
}

.b360-cc__btn--primary { background: var(--accent); color: #000000; }

.b360-cc__prefs { border-top: 1px solid #444; margin-top: 0.75rem; padding-top: 0.75rem; }

.b360-cc__prefs[hidden] { display: none; }

.b360-cc__cat {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.6rem 0;
	border-bottom: 1px solid #333;
}

.b360-cc__cat strong { display: block; }

.b360-cc__cat small { color: #cccccc; }

.b360-cc__cat input[type="checkbox"] {
	width: 22px;
	height: 22px;
	flex-shrink: 0;
	accent-color: var(--accent);
	margin-top: 0.2rem;
}

@media (min-width: 769px) {
	.b360-cc { padding: 1.5rem; }
	.b360-cc__actions { flex-direction: row; justify-content: flex-end; }
}
