/*
Theme Name: BikerTribe
Theme URI: https://bikertribe.com
Author: BikerTribe
Description: Thème sur mesure dark mode pour l'application BikerTribe. Ultra-rapide, responsive, prêt ACF et CPT.
Version: 2.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bikertribe
*/

/* ==========================================================================
   Design System – Variables CSS
   ========================================================================== */
:root {
	--btk-bg: #111111;
	--btk-bg-soft: #1a1a1a;
	--btk-surface: #1e1e1e;
	--btk-accent: #FF6B35;
	--btk-accent-hover: #e85a28;
	--btk-text: #FFFFFF;
	--btk-text-muted: #b0b0b0;
	--btk-font: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
	--btk-radius: 12px;
	--btk-radius-lg: 20px;
	--btk-container: 1200px;
	--btk-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
	--btk-gradient-radial: radial-gradient(ellipse 80% 50% at 70% 30%, rgba(255, 107, 53, 0.22) 0%, transparent 55%);
	--btk-hero-gradient: linear-gradient(135deg, var(--btk-bg) 0%, var(--btk-bg-soft) 35%, rgba(255, 107, 53, 0.15) 100%);
}

/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--btk-font);
	font-size: 16px;
	line-height: 1.6;
	color: var(--btk-text);
	background: var(--btk-bg);
	-webkit-font-smoothing: antialiased;
}

/* Images responsives par défaut (évite affichage géant sur tous les écrans) */
img,
picture img,
.site-header img,
.btk-hero img,
.btk-hero-cta img,
.btk-phone img,
.btk-feature-card img,
.btk-swiper img,
.site-footer img {
	max-width: 100%;
	height: auto;
	display: block;
	vertical-align: middle;
}
picture { display: block; max-width: 100%; }

a { color: var(--btk-accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
	max-width: var(--btk-container);
	margin: 0 auto;
	padding: 0 1.5rem;
}
.site { min-height: 100vh; display: flex; flex-direction: column; }
.site-content { flex: 1; }

/* Contenu principal (pages, blog) – pas en cartes – espace sous le menu */
.main-content {
	max-width: var(--btk-container);
	margin: 0 auto;
	padding: 5rem 1.5rem 3rem;
}
.main-content .section-title {
	text-align: center;
	margin-bottom: 2rem;
	color: var(--btk-text);
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	z-index: 100;
	padding: 1rem 0;
}
.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}
.site-logo {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	color: var(--btk-text);
	font-weight: 700;
	font-size: 1.5rem;
	text-decoration: none;
}
.site-logo:hover { color: var(--btk-text); text-decoration: none; opacity: 0.9; }
.site-logo .logo-img { height: 48px; width: auto; }
.site-logo .logo-mark {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	background: var(--btk-accent);
	color: #fff;
	font-size: 0.9rem;
	font-weight: 700;
	border-radius: var(--btk-radius);
}
.site-logo .logo-text { font-weight: 700; white-space: nowrap; }
.site-logo .logo-biker { color: var(--btk-text); }
.site-logo .logo-tribe { color: var(--btk-accent); }

/* Navigation desktop */
.main-nav { display: flex; align-items: center; }
.main-nav .nav-menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	align-items: center;
	gap: 2rem;
}
.main-nav .nav-menu a {
	color: var(--btk-text);
	font-weight: 500;
	font-size: 0.95rem;
	text-decoration: none;
}
.main-nav .nav-menu a:hover { color: var(--btk-accent); text-decoration: none; }

/* Bouton Burger (masqué en desktop) */
.burger-btn {
	display: none;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 5px;
	width: 48px;
	height: 48px;
	padding: 0;
	border: none;
	background: rgba(255, 255, 255, 0.06);
	color: var(--btk-text);
	cursor: pointer;
	border-radius: var(--btk-radius);
	transition: background 0.2s;
}
.burger-btn:hover { background: rgba(255, 255, 255, 0.12); }
.burger-btn:focus { outline: 2px solid var(--btk-accent); outline-offset: 2px; }
.burger-line {
	display: block;
	width: 22px;
	height: 2px;
	background: currentColor;
	border-radius: 1px;
	transition: transform 0.25s, opacity 0.25s;
}
.burger-btn[aria-expanded="true"] .burger-line:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}
.burger-btn[aria-expanded="true"] .burger-line:nth-child(2) {
	opacity: 0;
}
.burger-btn[aria-expanded="true"] .burger-line:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

/* Overlay menu mobile */
.nav-overlay {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.6);
	z-index: 98;
	opacity: 0;
	transition: opacity 0.3s;
}

/* ==========================================================================
   Hero Section (Split Screen)
   ========================================================================== */
.btk-hero {
	min-height: 85vh;
	display: flex;
	align-items: center;
	padding: 6rem 0 4rem;
	position: relative;
	overflow: hidden;
	background: var(--btk-hero-gradient);
}
.btk-hero.btk-hero-has-bg {
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}
.btk-hero::before {
	content: '';
	position: absolute;
	inset: 0;
	background: var(--btk-gradient-radial);
	pointer-events: none;
}
.btk-hero-inner {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 4rem;
	align-items: center;
	position: relative;
	z-index: 1;
	width: 100%;
}
.btk-hero-content h1 {
	font-family: var(--btk-font);
	font-size: clamp(2.5rem, 5vw, 3.75rem);
	font-weight: 700;
	line-height: 1.15;
	margin: 0 0 1.5rem;
	color: var(--btk-text);
	max-width: 14ch;
}
.btk-hero-content .btk-hero-cta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1rem;
	margin-top: 0.5rem;
}
.btk-hero-content .btk-hero-cta .btk-cta-badge {
	display: inline-block;
}
.btk-hero-content .btk-hero-cta img {
	height: 56px;
	width: auto;
	transition: transform 0.2s, opacity 0.2s;
}
.btk-hero-content .btk-hero-cta .btk-cta-appstore:not(:has(img)) span {
	display: inline-block;
	padding: 0.5rem 1rem;
	background: var(--btk-surface);
	border-radius: var(--btk-radius);
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--btk-text);
}
.btk-hero-content .btk-hero-cta a:hover img {
	transform: translateY(-3px);
	opacity: 0.95;
}
.btk-hero-mockups {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 0;
	position: relative;
}
.btk-phone {
	width: 260px;
	flex-shrink: 0;
}
.btk-phone:first-child { transform: rotate(-10deg); margin-right: -40px; }
.btk-phone:last-child { transform: rotate(10deg); }
.btk-phone-frame {
	background: var(--btk-bg);
	border-radius: 2.25rem;
	padding: 10px;
	box-shadow: var(--btk-shadow);
	border: 2px solid var(--btk-surface);
}
.btk-phone-screen {
	background: var(--btk-surface);
	border-radius: 1.75rem;
	overflow: hidden;
	aspect-ratio: 9 / 19;
}
.btk-phone-screen img { width: 100%; height: 100%; object-fit: cover; }
.btk-phone-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	background: var(--btk-surface);
	color: var(--btk-text-muted);
	font-size: 0.9rem;
}

/* ==========================================================================
   Section Carrousel (Swiper)
   ========================================================================== */
.btk-carousel {
	padding: 4rem 0;
	background: var(--btk-bg-soft);
}
.btk-carousel .section-title {
	font-size: clamp(1.75rem, 3vw, 2.25rem);
	font-weight: 700;
	text-align: center;
	margin: 0 0 2rem;
	color: var(--btk-text);
}
.btk-swiper {
	padding: 1rem 0 3rem;
	overflow: hidden;
}
.btk-swiper .swiper-slide {
	height: auto;
	display: flex;
	flex-direction: column;
}
.btk-swiper .swiper-slide img {
	width: 100%;
	height: auto;
	border-radius: var(--btk-radius);
	object-fit: cover;
}
.btk-slide-caption {
	margin: 0.75rem 0 0;
	font-size: 0.9rem;
	color: var(--btk-text-muted);
	text-align: center;
}
.btk-swiper-pagination { position: relative; margin-top: 1.5rem; }
.btk-swiper-pagination .swiper-pagination-bullet {
	background: var(--btk-text-muted);
	opacity: 0.6;
}
.btk-swiper-pagination .swiper-pagination-bullet-active {
	background: var(--btk-accent);
	opacity: 1;
}

/* ==========================================================================
   Section Fonctionnalités
   ========================================================================== */
.btk-features {
	padding: 4rem 0;
	background: var(--btk-bg);
}
.btk-features .section-title {
	font-size: clamp(1.75rem, 3vw, 2.25rem);
	font-weight: 700;
	text-align: center;
	margin: 0 0 2.5rem;
	color: var(--btk-text);
}
/* Grille fonctionnalités : 2 colonnes, centrée (jamais 3) */
.btk-features .btk-features-grid,
.btk-features-grid {
	display: grid !important;
	grid-template-columns: repeat(2, 1fr) !important;
	gap: 2rem;
	max-width: 900px;
	margin-left: auto;
	margin-right: auto;
	justify-items: stretch;
}
.btk-features .container {
	display: flex;
	flex-direction: column;
	align-items: center;
}
.btk-features .container .section-title {
	width: 100%;
}
.btk-features .container .btk-features-grid {
	width: 100%;
}
.btk-feature-card {
	background: var(--btk-surface);
	border-radius: var(--btk-radius-lg);
	padding: 2rem;
	border: 1px solid rgba(255, 255, 255, 0.06);
	transition: transform 0.2s, box-shadow 0.2s;
}
.btk-feature-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--btk-shadow);
}
.btk-feature-card .btk-feature-img {
	width: 100%;
	height: auto;
	border-radius: var(--btk-radius);
	margin-bottom: 1rem;
}
.btk-feature-card h3 {
	font-size: 1.25rem;
	font-weight: 700;
	margin: 0 0 0.75rem;
	color: var(--btk-text);
}
.btk-feature-card p {
	margin: 0;
	font-size: 0.95rem;
	line-height: 1.6;
	color: var(--btk-text-muted);
}
.btk-feature-card a {
	color: var(--btk-accent);
	font-weight: 500;
	font-size: 0.9rem;
	margin-top: 1rem;
	display: inline-block;
}
.btk-feature-card a:hover { text-decoration: none; color: var(--btk-accent-hover); }

/* ==========================================================================
   Pages – mise en page classique (pas en cartes)
   ========================================================================== */
.page-entry {
	background: none;
	border: none;
	padding: 0;
	max-width: 720px;
	margin: 0 auto;
}
.page-entry-thumb {
	margin-bottom: 1.5rem;
	border-radius: var(--btk-radius-lg);
	overflow: hidden;
}
.page-entry-thumb img {
	width: 100%;
	height: auto;
}
/* Masquer le titre de page (bannière = titre visuel) – premier h1 du contenu */
.page-entry .page-entry-content > h1:first-child,
.page-entry .page-entry-content > *:first-child > h1 {
	display: none;
}
.page-entry-content {
	font-size: 1.05rem;
	line-height: 1.7;
	color: var(--btk-text-muted);
}
.page-entry-content p {
	margin: 0 0 1.25rem;
}
.page-entry-content h2 {
	font-size: 1.35rem;
	font-weight: 700;
	margin: 2rem 0 0.75rem;
	color: var(--btk-text);
}
.page-entry-content h3 {
	font-size: 1.15rem;
	font-weight: 600;
	margin: 1.5rem 0 0.5rem;
	color: var(--btk-text);
}
.page-entry-content ul,
.page-entry-content ol {
	margin: 0 0 1.25rem;
	padding-left: 1.5rem;
}
.page-entry-content li { margin-bottom: 0.35rem; }
.page-entry-content a { color: var(--btk-accent); }
.page-entry-content .page-links {
	margin-top: 2rem;
	font-size: 0.95rem;
}

/* ==========================================================================
   Zone widgets & Footer
   ========================================================================== */
.btk-widgets {
	padding: 4rem 0;
	background: var(--btk-bg-soft);
}
.btk-widgets .widget { margin-bottom: 2rem; }
.btk-widgets .widget-title { font-size: 1.2rem; font-weight: 700; color: var(--btk-text); margin: 0 0 1rem; }
.btk-widgets p { color: var(--btk-text-muted); }
.btk-widgets a { color: var(--btk-accent); }

.site-footer {
	padding: 2rem 1.5rem;
	text-align: center;
	background: var(--btk-surface);
	color: var(--btk-text-muted);
	font-size: 0.9rem;
	border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.site-footer a { color: var(--btk-accent); }
.site-footer p { margin: 0; }
.footer-social { margin-bottom: 1.5rem; }
/* Icônes réseaux – style « blocs ronds » avec hover marqué */
.site-footer .social-links,
.social-links {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 5rem;
}
.site-footer .social-link,
.social-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 72px;
	height: 72px;
	color: var(--btk-text-muted);
	background: rgba(255, 255, 255, 0.05);
	border-radius: 50%;
	transition: color 0.3s ease, background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.site-footer .social-link:hover,
.social-link:hover {
	color: var(--btk-text);
	background: rgba(255, 255, 255, 0.12);
	transform: translateY(-6px) scale(1.12);
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}
.site-footer .social-link:active,
.social-link:active {
	transform: translateY(-3px) scale(1.05);
}
.site-footer .social-link svg,
.social-link svg {
	width: 40px;
	height: 40px;
	flex-shrink: 0;
	transition: transform 0.3s ease;
}
.site-footer .social-link:hover svg,
.social-link:hover svg {
	transform: scale(1.15);
}
.social-link.social-tiktok:hover { color: #fff; }
.social-link.social-youtube:hover { color: #ff0000; }
.social-link.social-instagram:hover { color: #e4405f; }

/* ==========================================================================
   Responsive – Menu Burger
   ========================================================================== */
@media (max-width: 768px) {
	.burger-btn { display: flex; }
	.main-nav {
		position: fixed;
		top: 0;
		right: 0;
		width: min(300px, 85vw);
		height: 100vh;
		flex-direction: column;
		justify-content: flex-start;
		align-items: stretch;
		padding: 5rem 1.5rem 2rem;
		background: var(--btk-surface);
		border-left: 1px solid rgba(255, 255, 255, 0.08);
		box-shadow: -10px 0 40px rgba(0, 0, 0, 0.4);
		z-index: 99;
		transform: translateX(100%);
		transition: transform 0.3s ease;
		overflow-y: auto;
	}
	.main-nav .nav-menu {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
	}
	.main-nav .nav-menu a {
		display: block;
		padding: 1rem 0;
		font-size: 1.05rem;
		border-bottom: 1px solid rgba(255, 255, 255, 0.06);
	}
	body.menu-open .main-nav { transform: translateX(0); }
	.nav-overlay { display: block; pointer-events: none; }
	body.menu-open .nav-overlay { display: block; pointer-events: auto; opacity: 1; }
	body.menu-open { overflow: hidden; }
}

/* ==========================================================================
   Responsive – Hero, Features, global
   ========================================================================== */
@media (max-width: 900px) {
	.btk-hero-inner {
		grid-template-columns: 1fr;
		text-align: center;
	}
	.btk-hero-content h1 { max-width: none; margin-left: auto; margin-right: auto; }
	.btk-hero-mockups { order: -1; margin-bottom: 1rem; }
	.btk-phone { width: 200px; }
	.btk-phone:first-child { transform: rotate(-8deg); margin-right: -30px; }
	.btk-phone:last-child { transform: rotate(8deg); }
	.btk-features .btk-features-grid,
	.btk-features-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 600px) {
	.site-logo { font-size: 1.25rem; }
	.site-logo .logo-img { height: 40px; }
	.site-logo .logo-mark { width: 38px; height: 38px; font-size: 0.8rem; }
	.btk-hero { min-height: auto; padding: 5rem 0 3rem; }
	.btk-hero-content .btk-hero-cta img { height: 48px; }
	.btk-phone { width: 140px; }
	.btk-phone:first-child { transform: rotate(-6deg); margin-right: -20px; }
	.btk-phone:last-child { transform: rotate(6deg); }
	.btk-phone-frame { padding: 6px; border-radius: 1.5rem; }
	.btk-phone-screen { border-radius: 1.25rem; }
	.btk-features .btk-features-grid,
	.btk-features-grid { grid-template-columns: 1fr !important; gap: 1.5rem; }
	.btk-feature-card { padding: 1.5rem; }
	.btk-carousel, .btk-features { padding: 3rem 0; }
	.container { padding: 0 1rem; }
}

/* ==========================================================================
   Icônes Google Material Icons – front (priorité sur héritage Poppins)
   ========================================================================== */
@font-face {
	font-family: 'Material Icons';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url(https://fonts.gstatic.com/s/materialicons/v145/flUhRq6tzZclQEJ-Vdg-IuiaDsNc.woff2) format('woff2');
}

body .material-icons,
.material-icons,
[class*="icon"].material-icons,
td .material-icons,
li .material-icons,
.widget .material-icons,
.btk-widgets .material-icons,
[class*="origin"] .material-icons,
[class*="pricing"] .material-icons {
	font-family: 'Material Icons' !important;
	font-weight: normal !important;
	font-style: normal !important;
	font-size: 24px;
	line-height: 1;
	letter-spacing: normal;
	text-transform: none;
	display: inline-block;
	white-space: nowrap;
	word-wrap: normal;
	direction: ltr;
	-webkit-font-smoothing: antialiased;
	vertical-align: middle;
}

body .material-symbols-outlined,
.material-symbols-outlined {
	font-family: 'Material Symbols Outlined' !important;
	font-style: normal !important;
	display: inline-block;
	vertical-align: middle;
	line-height: 1;
	letter-spacing: normal;
	white-space: nowrap;
	word-wrap: normal;
	font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}
