/*
Theme Name: Luxury Motors
Theme URI: https://luxurymotors.eu
Author: Luxury Motors Dev Team
Description: Thème sur-mesure pour Luxury Motors — Véhicules de prestige
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 8.0
License: Proprietary
Text Domain: luxury-motors
*/

/* =============================================================================
   VARIABLES CSS GLOBALES — PALETTE LUXURY MOTORS
   ============================================================================= */

:root {
	/* Couleurs principales */
	--lm-noir:            #0A0A0A;
	--lm-anthracite:      #1A1A1A;
	--lm-anthracite-2:    #2D2D2D;
	--lm-anthracite-3:    #3D3D3D;

	/* Accent principal — Or luxe */
	--lm-dore:            #DAB455;
	--lm-dore-dark:       #B09040;
	--lm-dore-light:      #E5C97A;
	--lm-dore-pale:       #F0DFAA;
	--lm-argent:          #A9A9A9;

	/* Textes */
	--lm-blanc:           #F5F5F5;
	--lm-gris-texte:      #B0B0B0;
	--lm-gris-moyen:      #666666;

	/* Statuts véhicule */
	--lm-disponible:      #00A550;
	--lm-reserve:         #DAB455;
	--lm-vendu:           #666666;

	/* Typographie */
	--lm-font:            'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
	--lm-font-display:    'Cormorant Garamond', Georgia, serif;

	/* Espacements */
	--lm-radius:          4px;
	--lm-radius-lg:       8px;
	--lm-transition:      0.3s cubic-bezier(0.4, 0, 0.2, 1);
	--lm-transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);

	/* Header */
	--lm-header-h:        80px;
}

/* =============================================================================
   RESET CSS MINIMAL
   ============================================================================= */

*, *::before, *::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
}

body {
	background-color: var(--lm-noir);
	color: var(--lm-blanc);
	font-family: var(--lm-font);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
}

img, video {
	max-width: 100%;
	height: auto;
	display: block;
}

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

ul, ol {
	list-style: none;
}

button {
	cursor: pointer;
	border: none;
	background: none;
	font-family: inherit;
}

input, textarea, select {
	font-family: inherit;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--lm-font-display);
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: -0.02em;
}

/* =============================================================================
   UTILITAIRES FRONT
   ============================================================================= */

.lm-container {
	width: 100%;
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 24px;
}

@media (min-width: 768px) {
	.lm-container { padding: 0 40px; }
}

@media (min-width: 1280px) {
	.lm-container { padding: 0 60px; }
}

.lm-section {
	padding: 80px 0;
}

@media (min-width: 1024px) {
	.lm-section { padding: 120px 0; }
}

/* Boutons */
.lm-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 14px 28px;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	border-radius: var(--lm-radius);
	transition: all var(--lm-transition);
	cursor: pointer;
	white-space: nowrap;
}

.lm-btn-primary {
	background: var(--lm-dore);
	color: #0A0A0A;
	border: 2px solid var(--lm-dore);
}

.lm-btn-primary:hover {
	background: var(--lm-dore-dark);
	border-color: var(--lm-dore-dark);
	transform: translateY(-1px);
	box-shadow: 0 8px 24px rgba(218, 180, 85, 0.35);
}

.lm-btn-outline {
	background: transparent;
	color: var(--lm-blanc);
	border: 2px solid rgba(245, 245, 245, 0.4);
}

.lm-btn-outline:hover {
	border-color: var(--lm-blanc);
	background: rgba(245, 245, 245, 0.05);
	transform: translateY(-1px);
}

/* Badges statut */
.lm-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 12px;
	border-radius: 100px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.lm-badge-disponible {
	background: rgba(0, 165, 80, 0.15);
	color: var(--lm-disponible);
	border: 1px solid rgba(0, 165, 80, 0.3);
}

.lm-badge-reserve {
	background: rgba(218, 180, 85, 0.15);
	color: var(--lm-dore);
	border: 1px solid rgba(218, 180, 85, 0.3);
}

.lm-badge-vendu {
	background: rgba(102, 102, 102, 0.15);
	color: var(--lm-gris-moyen);
	border: 1px solid rgba(102, 102, 102, 0.3);
}

/* Animations scroll */
.fade-up, .fade-left, .fade-right {
	opacity: 0;
	transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up        { transform: translateY(40px); }
.fade-left      { transform: translateX(-40px); }
.fade-right     { transform: translateX(40px); }

.fade-up.visible,
.fade-left.visible,
.fade-right.visible {
	opacity: 1;
	transform: none;
}

/* =============================================================================
   SCROLL INDICATOR — PULSE DORÉ
   ============================================================================= */

@keyframes lmScrollBounce {
	0%, 100% { transform: translateX(-50%) translateY(0); }
	50%       { transform: translateX(-50%) translateY(6px); }
}

@keyframes lmChevronPulse {
	0%, 100% {
		opacity: 0.5;
		filter: drop-shadow(0 0 0px rgba(218,180,85,0));
	}
	50% {
		opacity: 1;
		filter: drop-shadow(0 0 8px rgba(218,180,85,0.9));
	}
}

.lm-scroll-indicator {
	animation: lmScrollBounce 2.6s ease-in-out infinite;
}

.lm-scroll-chevron {
	animation: lmChevronPulse 2.6s ease-in-out infinite;
}

/* Ligne décorative titre */
.lm-section-title {
	font-size: clamp(28px, 4vw, 48px);
	font-family: var(--lm-font-display);
	font-weight: 600;
	color: var(--lm-blanc);
	margin-bottom: 16px;
	letter-spacing: -0.01em;
}

.lm-section-title span {
	color: var(--lm-dore);
}

.lm-section-title.gold-accent span {
	color: var(--lm-dore);
}

.lm-section-line {
	width: 48px;
	height: 2px;
	background: var(--lm-dore);
	margin-bottom: 48px;
	transform: scaleX(0);
	transform-origin: left center;
	transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.lm-section-line.visible {
	transform: scaleX(1);
}

.lm-section-line.gold {
	background: var(--lm-dore);
}

/* =============================================================================
   STYLES ADMIN WORDPRESS — PRÉFIXE .lm-admin-*
   ============================================================================= */

.lm-admin-wrap {
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.lm-admin-metabox-header {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 15px;
	font-weight: 600;
	color: #1d2327;
}

.lm-admin-field-group {
	margin-bottom: 18px;
}

.lm-admin-field-group label {
	display: block;
	font-weight: 600;
	margin-bottom: 5px;
	color: #1d2327;
	font-size: 13px;
}

.lm-admin-field-group input[type="text"],
.lm-admin-field-group input[type="number"],
.lm-admin-field-group textarea,
.lm-admin-field-group select {
	width: 100%;
	padding: 8px 12px;
	border: 1px solid #8c8f94;
	border-radius: 4px;
	font-size: 14px;
	color: #1d2327;
	background: #fff;
	transition: border-color 0.15s;
}

.lm-admin-field-group input:focus,
.lm-admin-field-group textarea:focus,
.lm-admin-field-group select:focus {
	outline: none;
	border-color: #DAB455;
	box-shadow: 0 0 0 2px rgba(218, 180, 85, 0.2);
}

.lm-admin-field-description {
	margin-top: 4px;
	font-size: 12px;
	color: #6c757d;
	font-style: italic;
}

.lm-admin-field-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

@media (max-width: 782px) {
	.lm-admin-field-row {
		grid-template-columns: 1fr;
	}
}
