/*
Theme Name: GalerieAuto Theme V0.2.3
Theme URI: https://lagalerieautomobiles.fr/
Author: La Galerie Automobiles
Author URI: https://lagalerieautomobiles.fr/
Description: Thème WordPress premium sur mesure pour La Galerie Automobiles, compatible Gutenberg et dédié à la vente, au dépôt-vente et à la recherche personnalisée de véhicules.
Version: 0.2.3
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: galerieauto
Tags: custom-logo, custom-menu, featured-images, block-styles, wide-blocks, one-column, two-columns
*/

:root {
	--ga-black: #121212;
	--ga-ink: #1f1b18;
	--ga-white: #ffffff;
	--ga-beige: #c8a67a;
	--ga-beige-dark: #9d7448;
	--ga-cream: #f8f4ee;
	--ga-light: #f5f5f5;
	--ga-gray: #726b64;
	--ga-border: rgba(18, 18, 18, 0.1);
	--ga-shadow: 0 28px 70px rgba(18, 18, 18, 0.12);
	--ga-radius: 28px;
	--ga-max: 1200px;
	--ga-title: "Cormorant Garamond", Georgia, serif;
	--ga-text: Poppins, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	color: var(--ga-ink);
	background: var(--ga-white);
	font-family: var(--ga-text);
	font-size: 16px;
	line-height: 1.75;
	-webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--ga-beige); }
img { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; }
.screen-reader-text { border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; }
.container, .ga-container { width: min(var(--ga-max), calc(100% - 48px)); margin-inline: auto; }

.site-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 50;
	color: var(--ga-white);
	background: transparent;
	border-bottom: 1px solid rgba(255, 255, 255, 0.16);
	transition: background 0.28s ease, color 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}
.site-header.is-scrolled, .site-header.is-menu-open {
	color: var(--ga-black);
	background: rgba(255, 255, 255, 0.94);
	backdrop-filter: blur(18px);
	border-color: rgba(18, 18, 18, 0.08);
	box-shadow: 0 12px 30px rgba(18, 18, 18, 0.07);
}
.header-inner { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.site-branding { display: flex; align-items: center; gap: 14px; font-weight: 700; letter-spacing: 0.02em; }
.brand-mark { width: 46px; height: 46px; border: 1px solid currentColor; display: grid; place-items: center; color: var(--ga-beige); font-weight: 700; }
.brand-title { font-size: 1rem; text-transform: uppercase; }
.brand-tagline { display: block; color: currentColor; opacity: 0.72; font-size: 0.72rem; font-weight: 400; text-transform: none; letter-spacing: 0; }
.main-navigation ul { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.main-navigation a { position: relative; font-size: 0.86rem; font-weight: 500; letter-spacing: 0.01em; }
.main-navigation a::after { content: ""; position: absolute; left: 0; bottom: -8px; width: 0; height: 1px; background: var(--ga-beige); transition: width 0.2s ease; }
.main-navigation a:hover::after { width: 100%; }
.nav-toggle { display: none; background: var(--ga-black); color: var(--ga-white); border: 0; padding: 11px 14px; }
.header-cta { border: 1px solid currentColor; padding: 11px 18px; font-size: 0.86rem; font-weight: 600; transition: background 0.2s ease, color 0.2s ease; }
.header-cta:hover { background: var(--ga-beige); border-color: var(--ga-beige); color: var(--ga-black); }

.button, .wp-block-button__link, .ga-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 52px;
	border: 1px solid var(--ga-black);
	background: var(--ga-black);
	color: var(--ga-white) !important;
	padding: 14px 24px;
	font-weight: 600;
	letter-spacing: 0.02em;
	transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}
.ga-button:hover, .button:hover { transform: translateY(-2px); background: var(--ga-beige); border-color: var(--ga-beige); color: var(--ga-black) !important; box-shadow: 0 18px 35px rgba(200, 166, 122, 0.26); }
.ga-button--gold { background: var(--ga-beige); border-color: var(--ga-beige); color: var(--ga-black) !important; }
.ga-button--gold:hover { background: var(--ga-white); border-color: var(--ga-white); }
.ga-button--glass { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.42); color: var(--ga-white) !important; backdrop-filter: blur(12px); }
.ga-button--outline { background: transparent; color: var(--ga-black) !important; }
.ga-button--outline:hover { background: var(--ga-black); border-color: var(--ga-black); color: var(--ga-white) !important; }

.hero { position: relative; min-height: 100vh; display: grid; align-items: end; overflow: hidden; color: var(--ga-white); background: var(--ga-black); }
.hero-media { position: absolute; inset: 0; background-image: linear-gradient(90deg, rgba(10, 10, 10, 0.86) 0%, rgba(10, 10, 10, 0.58) 42%, rgba(10, 10, 10, 0.18) 100%), url('https://images.unsplash.com/photo-1503736334956-4c8f8e92946d?auto=format&fit=crop&w=2200&q=82'); background-position: center; background-size: cover; transform: scale(1.04); animation: heroZoom 16s ease-out forwards; }
.hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 75% 24%, rgba(200, 166, 122, 0.3), transparent 32%), linear-gradient(0deg, rgba(18, 18, 18, 0.62), transparent 42%); pointer-events: none; }
.hero-inner { position: relative; z-index: 2; padding: 190px 0 110px; max-width: 820px; margin-inline: 0 auto; }
.hero h1, .page-title, .section-title, .final-cta h2 { font-family: var(--ga-title); font-weight: 600; letter-spacing: -0.045em; }
.hero h1 { margin: 0 0 28px; font-size: clamp(4.2rem, 8vw, 8.7rem); line-height: 0.88; }
.hero p { max-width: 680px; margin: 0 0 38px; color: rgba(255, 255, 255, 0.82); font-size: clamp(1.05rem, 1.5vw, 1.28rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }
.hero-signature { position: absolute; right: 6vw; bottom: 54px; z-index: 2; color: rgba(255, 255, 255, 0.42); font-family: var(--ga-title); font-size: clamp(2.2rem, 5vw, 5.4rem); font-style: italic; pointer-events: none; }
.eyebrow { display: inline-block; color: var(--ga-beige); text-transform: uppercase; letter-spacing: 0.22em; font-size: 0.74rem; font-weight: 700; margin-bottom: 20px; }

.section { padding: 128px 0; }
.section--intro { padding-top: 150px; }
.section--light { background: var(--ga-cream); }
.section--showcase { background: var(--ga-white); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 44px; margin-bottom: 54px; }
.section-title { margin: 0; font-size: clamp(2.8rem, 5vw, 5.7rem); line-height: 0.94; color: var(--ga-black); }
.section-text { color: var(--ga-gray); max-width: 650px; }
.lead-text { font-size: 1.08rem; }
.intro-grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 80px; align-items: start; }
.grid { display: grid; gap: 28px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card { background: var(--ga-white); border: 1px solid var(--ga-border); padding: 36px; box-shadow: none; }
.premium-card { min-height: 330px; position: relative; overflow: hidden; transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease; }
.premium-card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(200, 166, 122, 0.16), transparent 42%); opacity: 0; transition: opacity 0.28s ease; }
.premium-card:hover { transform: translateY(-10px); border-color: rgba(200, 166, 122, 0.42); box-shadow: var(--ga-shadow); }
.premium-card:hover::before { opacity: 1; }
.premium-card h3, .commitment h3 { position: relative; margin: 34px 0 14px; font-family: var(--ga-title); font-size: 2rem; line-height: 1; }
.premium-card p, .commitment p { position: relative; color: var(--ga-gray); margin: 0; }
.icon-line { position: relative; display: inline-grid; place-items: center; width: 54px; height: 54px; border: 1px solid rgba(200, 166, 122, 0.55); color: var(--ga-beige-dark); font-size: 1.35rem; }

.vehicle-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.vehicle-card { background: var(--ga-white); border: 1px solid var(--ga-border); overflow: hidden; transition: transform 0.28s ease, box-shadow 0.28s ease; position: relative; }
.vehicle-card:hover { transform: translateY(-8px); box-shadow: var(--ga-shadow); }
.vehicle-thumb { aspect-ratio: 4/3; background: #ddd; overflow: hidden; }
.vehicle-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.vehicle-card:hover .vehicle-thumb img { transform: scale(1.06); }
.vehicle-body { padding: 26px; }
.vehicle-title { font-family: var(--ga-title); font-size: 1.65rem; line-height: 1; margin: 0 0 12px; }
.vehicle-price { font-weight: 800; font-size: 1.25rem; color: var(--ga-black); }
.vehicle-meta { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 18px 0; color: var(--ga-gray); font-size: 0.9rem; }
.vehicle-status { position: absolute; top: 14px; left: 14px; z-index: 2; background: var(--ga-beige); color: var(--ga-black); padding: 7px 10px; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; }
.vehicle-status.vendu { background: var(--ga-black); color: var(--ga-white); }
.vehicle-status.reserve { background: var(--ga-white); color: var(--ga-black); }
.empty-state { padding: 36px; background: var(--ga-cream); color: var(--ga-gray); }

.section--split { padding-top: 0; }
.split-panel { display: grid; grid-template-columns: 0.95fr 1.05fr; min-height: 720px; background: var(--ga-black); color: var(--ga-white); }
.split-image { min-height: 560px; background-image: linear-gradient(180deg, rgba(18, 18, 18, 0.08), rgba(18, 18, 18, 0.5)), url('https://images.unsplash.com/photo-1492144534655-ae79c964c9d7?auto=format&fit=crop&w=1400&q=82'); background-position: center; background-size: cover; }
.split-content { padding: clamp(48px, 7vw, 96px); align-self: center; }
.split-content .section-title, .final-cta .eyebrow { color: var(--ga-white); }
.check-list { list-style: none; margin: 42px 0 0; padding: 0; display: grid; gap: 24px; }
.check-list li { display: grid; grid-template-columns: 32px 1fr; gap: 16px; color: rgba(255, 255, 255, 0.72); }
.check-list li::before { content: ""; width: 10px; height: 10px; margin-top: 10px; background: var(--ga-beige); transform: rotate(45deg); }
.check-list strong { display: block; color: var(--ga-white); font-size: 1.02rem; }
.check-list span { display: block; }

.commitments-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(18, 18, 18, 0.12); border-left: 1px solid rgba(18, 18, 18, 0.12); }
.commitment { min-height: 300px; padding: 34px; border-right: 1px solid rgba(18, 18, 18, 0.12); border-bottom: 1px solid rgba(18, 18, 18, 0.12); background: rgba(255, 255, 255, 0.52); transition: background 0.24s ease, transform 0.24s ease; }
.commitment:hover { background: var(--ga-white); transform: translateY(-6px); }
.commitment span { color: var(--ga-beige-dark); font-weight: 700; letter-spacing: 0.16em; }

.testimonials-section { background: var(--ga-white); }
.testimonial-placeholder { min-height: 220px; display: grid; place-items: center; border: 1px dashed rgba(18, 18, 18, 0.18); background: linear-gradient(135deg, rgba(200, 166, 122, 0.09), rgba(248, 244, 238, 0.45)); color: var(--ga-gray); font-family: var(--ga-title); font-size: 2rem; text-align: center; }
.final-cta-section { padding-top: 0; }
.final-cta { position: relative; overflow: hidden; padding: clamp(56px, 9vw, 110px); min-height: 560px; display: grid; align-content: end; color: var(--ga-white); background: linear-gradient(90deg, rgba(18, 18, 18, 0.92), rgba(18, 18, 18, 0.54)), url('https://images.unsplash.com/photo-1493238792000-8113da705763?auto=format&fit=crop&w=1800&q=82') center/cover; }
.final-cta h2 { max-width: 820px; margin: 0 0 24px; color: var(--ga-white); font-size: clamp(3.4rem, 6vw, 7rem); line-height: 0.9; }
.final-cta p { max-width: 660px; margin: 0 0 34px; color: rgba(255, 255, 255, 0.78); }

.filters { background: var(--ga-white); border: 1px solid var(--ga-border); padding: 24px; margin-bottom: 34px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.filters label { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
.filters input, .filters select, .form-field input, .form-field textarea { width: 100%; border: 1px solid var(--ga-border); background: var(--ga-white); padding: 12px 13px; margin-top: 6px; }
.filters .filter-actions { display: flex; align-items: end; gap: 10px; }
.contact-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.info-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.info-list strong { display: block; color: var(--ga-beige); text-transform: uppercase; font-size: 0.75rem; letter-spacing: 0.12em; }
.site-footer { background: var(--ga-black); color: var(--ga-white); padding: 70px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 42px; }
.site-footer h2, .site-footer h3 { font-family: var(--ga-title); }
.site-footer a { color: rgba(255, 255, 255, 0.78); }
.site-footer p, .site-footer li { color: rgba(255, 255, 255, 0.68); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.12); margin-top: 42px; padding-top: 24px; font-size: 0.88rem; color: rgba(255, 255, 255, 0.55); display: flex; justify-content: space-between; gap: 20px; }
.page-hero { background: var(--ga-black); color: var(--ga-white); padding: 150px 0 80px; }
.page-title { font-size: clamp(3.2rem, 7vw, 7.4rem); line-height: 0.9; }
.content-area { padding: 86px 0; }
.vehicle-single { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 42px; }
.gallery-main { background: var(--ga-light); margin-bottom: 14px; }
.gallery-main img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.gallery-thumbs img { aspect-ratio: 1; object-fit: cover; cursor: pointer; }
.specs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 26px 0; }
.spec { border-bottom: 1px solid var(--ga-border); padding: 12px 0; }
.spec span { display: block; color: var(--ga-gray); font-size: 0.8rem; }
.spec strong { font-size: 1rem; }
.single-sidebar { position: sticky; top: 112px; align-self: start; border: 1px solid var(--ga-border); padding: 32px; background: var(--ga-white); box-shadow: var(--ga-shadow); }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.form-field--full { grid-column: 1 / -1; }
.notice { padding: 15px 18px; background: #eef8ef; border-left: 4px solid #2c8a43; margin-bottom: 20px; }
.wp-block-image.alignwide, .alignwide { max-width: var(--ga-max); margin-inline: auto; }
.alignfull { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); max-width: 100vw; width: 100vw; }

[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1); } }

@media (max-width: 1040px) {
	.grid-3, .vehicle-grid, .commitments-grid { grid-template-columns: repeat(2, 1fr); }
	.intro-grid, .split-panel { grid-template-columns: 1fr; }
	.split-panel { min-height: 0; }
}
@media (max-width: 920px) {
	.site-header { color: var(--ga-black); background: rgba(255, 255, 255, 0.96); border-color: rgba(18, 18, 18, 0.08); }
	.nav-toggle { display: block; }
	.main-navigation { display: none; position: absolute; left: 0; right: 0; top: 88px; background: var(--ga-white); border-bottom: 1px solid var(--ga-border); padding: 22px 24px; }
	.main-navigation.is-open { display: block; }
	.main-navigation ul { display: grid; gap: 18px; }
	.header-cta { display: none; }
	.grid-2, .vehicle-single, .contact-panel, .footer-grid { grid-template-columns: 1fr; }
	.filters { grid-template-columns: repeat(2, 1fr); }
	.section-head { display: block; }
	.hero h1 { font-size: clamp(3.7rem, 14vw, 6.5rem); }
	.hero-signature { display: none; }
}
@media (max-width: 620px) {
	.container, .ga-container { width: min(100% - 30px, var(--ga-max)); }
	.header-inner { min-height: 76px; }
	.main-navigation { top: 76px; }
	.hero-inner { padding: 150px 0 72px; }
	.section { padding: 84px 0; }
	.grid-3, .vehicle-grid, .commitments-grid, .filters, .form-grid, .specs { grid-template-columns: 1fr; }
	.brand-tagline { display: none; }
	.footer-bottom { display: block; }
}


/* Dépôt-Vente page - simple premium layout */
.dv-hero {
	position: relative;
	min-height: 78vh;
	display: grid;
	align-items: end;
	overflow: hidden;
	color: var(--ga-white);
	background: var(--ga-black);
}
.dv-hero__image {
	position: absolute;
	inset: 0;
	background-image: linear-gradient(90deg, rgba(18, 18, 18, 0.9), rgba(18, 18, 18, 0.52), rgba(18, 18, 18, 0.2)), url('https://images.unsplash.com/photo-1492144534655-ae79c964c9d7?auto=format&fit=crop&w=2200&q=82');
	background-size: cover;
	background-position: center;
	transform: scale(1.03);
}
.dv-hero__content {
	position: relative;
	z-index: 2;
	max-width: 850px;
	padding: 180px 0 92px;
}
.dv-hero h1 {
	margin: 0 0 26px;
	font-family: var(--ga-title);
	font-size: clamp(3.4rem, 7vw, 7.5rem);
	font-weight: 600;
	line-height: 0.9;
	letter-spacing: -0.045em;
}
.dv-hero p {
	max-width: 690px;
	margin: 0 0 34px;
	color: rgba(255, 255, 255, 0.82);
	font-size: clamp(1.02rem, 1.4vw, 1.22rem);
}
.dv-intro__grid {
	display: grid;
	grid-template-columns: 0.95fr 1.05fr;
	gap: 78px;
	align-items: start;
}
.dv-steps {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
}
.dv-step {
	background: var(--ga-white);
	border: 1px solid var(--ga-border);
	overflow: hidden;
	transition: transform 0.28s ease, box-shadow 0.28s ease;
}
.dv-step:hover {
	transform: translateY(-8px);
	box-shadow: var(--ga-shadow);
}
.dv-step img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}
.dv-step div {
	padding: 30px;
}
.dv-step span {
	color: var(--ga-beige-dark);
	font-weight: 700;
	letter-spacing: 0.18em;
}
.dv-step h3 {
	margin: 20px 0 12px;
	font-family: var(--ga-title);
	font-size: 2.1rem;
	line-height: 1;
}
.dv-step p {
	margin: 0;
	color: var(--ga-gray);
}
.dv-benefits {
	display: grid;
	grid-template-columns: 0.95fr 1.05fr;
	gap: 70px;
	align-items: center;
}
.dv-benefits__image img {
	width: 100%;
	min-height: 560px;
	object-fit: cover;
}
.dv-checks {
	list-style: none;
	margin: 38px 0 0;
	padding: 0;
	display: grid;
	gap: 18px;
}
.dv-checks li {
	position: relative;
	padding-left: 34px;
	color: var(--ga-gray);
}
.dv-checks li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.7em;
	width: 10px;
	height: 10px;
	background: var(--ga-beige);
	transform: rotate(45deg);
}
.dv-final {
	background-image: linear-gradient(90deg, rgba(18, 18, 18, 0.94), rgba(18, 18, 18, 0.6)), url('https://images.unsplash.com/photo-1503736334956-4c8f8e92946d?auto=format&fit=crop&w=1800&q=82');
}
@media (max-width: 1040px) {
	.dv-intro__grid, .dv-benefits { grid-template-columns: 1fr; }
	.dv-steps { grid-template-columns: repeat(2, 1fr); }
	.dv-benefits__image img { min-height: 420px; }
}
@media (max-width: 720px) {
	.dv-hero { min-height: 680px; }
	.dv-hero__content { padding: 150px 0 72px; }
	.dv-steps { grid-template-columns: 1fr; }
	.dv-benefits { gap: 36px; }
	.dv-benefits__image img { min-height: 300px; }
}
