/* =========================================================
   PAT Motors — Page Accueil
   ========================================================= */

/* --- HERO --- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  display: flex;
  align-items: flex-end;
  padding-bottom: 80px;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.7) brightness(0.7);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(8,8,8,0.9) 0%,
    rgba(8,8,8,0.3) 60%,
    transparent 100%
  );
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 780px;
}

.hero__tag {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--rouge);
  margin-bottom: 24px;
  opacity: 0;
}

.hero__tag::before {
  content: '';
  display: block;
  width: 32px; height: 1px;
  background: var(--rouge);
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 7vw, 6.5rem); /* fluid: 36px → 104px */
  font-weight: 300;
  line-height: 1.05;
  color: var(--blanc);
  margin-bottom: 24px;
}

.hero__title .line {
  display: block;
  overflow: hidden;
}

.hero__title em {
  font-style: italic;
  color: var(--rouge);
}

.hero__subtitle {
  font-size: var(--text-md);
  font-weight: 300;
  color: var(--blanc-60);
  max-width: 480px;
  line-height: 1.7;
  margin-bottom: 40px;
  opacity: 0;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  opacity: 0;
}

.hero__badge {
  position: absolute;
  bottom: 40px; right: var(--gutter);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(17,17,17,0.7);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 12px 20px;
  backdrop-filter: blur(8px);
}

.hero__badge-logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--blanc);
}

.hero__badge-logo span { color: var(--rouge); }

.hero__badge-tagline {
  font-size: 0.5rem;
  letter-spacing: var(--tracking-caps-lg);
  text-transform: uppercase;
  color: var(--blanc-30);
}

.hero__scroll {
  position: absolute;
  bottom: 40px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 0.5rem;
  letter-spacing: var(--tracking-caps-lg);
  text-transform: uppercase;
  color: var(--blanc-30);
}

.hero__scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, var(--blanc-30), transparent);
  animation: scrollDown 2s ease-in-out infinite;
}

@keyframes scrollDown {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* --- STATS --- */
.stats-section {
  background: var(--charbon);
  padding: 80px 0;
}

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

.stat-item {
  text-align: center;
  padding: 40px 20px;
  border-right: 1px solid rgba(255,255,255,0.06);
}

.stat-item:last-child { border-right: none; }

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4.5rem); /* fluid: 40px → 72px */
  font-weight: 300;
  color: var(--or);
  line-height: 1;
  margin-bottom: 12px;
}

.stat-label {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
}

@media (max-width: 640px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.06); }
  .stat-item:nth-child(3),
  .stat-item:nth-child(4) { border-bottom: none; }
}

/* --- VÉHICULES VEDETTES --- */
.featured-vehicles {
  background: var(--noir);
  padding: var(--section-py) 0;
}

.featured-vehicles .section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 48px;
}

.swiper-featured {
  overflow: visible;
}

.swiper-featured .swiper-slide {
  width: 420px;
}

.swiper-nav {
  display: flex;
  gap: 12px;
  margin-top: 40px;
}

.swiper-btn {
  width: 48px; height: 48px;
  border: 1px solid rgba(245,16,28,0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  background: transparent;
}

.swiper-btn:hover {
  background: var(--rouge);
  border-color: var(--rouge);
}

.swiper-btn svg {
  width: 18px; height: 18px;
  stroke: var(--blanc);
  fill: none;
}

/* --- MARQUEE MARQUES --- */
.brands-marquee {
  background: var(--rouge);
  padding: 28px 0;
  overflow: hidden;
}

.brands-marquee__track {
  display: flex;
  gap: 60px;
  animation: marqueeScroll 20s linear infinite;
  white-space: nowrap;
}

.brands-marquee__item {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: var(--tracking-caps-lg);
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  flex-shrink: 0;
}

@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* --- NOTRE PROMESSE --- */
.promise-section {
  background: var(--blanc-casse);
  padding: var(--section-py) 0;
}

.promise-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.promise-left .section-tag { color: var(--rouge); }
.promise-left .section-tag::before { background: var(--rouge); }

.promise-pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}

.pillar {
  background: var(--blanc);
  padding: 32px 24px;
  border-top: 2px solid var(--rouge);
  transition: background 0.25s, color 0.25s;
  cursor: default;
}

.pillar:hover {
  background: var(--charbon);
  color: var(--blanc);
}

.pillar__icon {
  width: 40px; height: 40px;
  background: var(--rouge-10);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  transition: background 0.25s;
}

.pillar:hover .pillar__icon { background: rgba(245,16,28,0.2); }

.pillar__icon svg {
  width: 20px; height: 20px;
  stroke: var(--rouge);
  fill: none;
}

.pillar__title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--noir);
  margin-bottom: 8px;
  transition: color 0.25s;
}

.pillar:hover .pillar__title { color: var(--blanc); }

.pillar__text {
  font-size: var(--text-base);
  color: var(--gris-texte);
  line-height: 1.65;
  transition: color 0.25s;
}

.pillar:hover .pillar__text { color: rgba(255,255,255,0.6); }

@media (max-width: 1024px) {
  .promise-layout { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 640px) {
  .promise-pillars { grid-template-columns: 1fr; }
  .featured-vehicles .section-header { flex-direction: column; align-items: flex-start; gap: 16px; }
  .swiper-featured .swiper-slide { width: 85vw; }
}

/* --- GALERIE AMBIANCE --- */
.gallery-section {
  background: var(--noir);
  padding: var(--section-py) 0;
}

.gallery-mosaic {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.2fr;
  gap: 4px;
  height: 520px;
}

.gallery-item {
  overflow: hidden;
  position: relative;
}

.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.2) brightness(0.8);
  transition: filter 0.5s ease, transform 0.5s ease;
}

.gallery-item:hover img {
  filter: saturate(0.85) brightness(0.9);
  transform: scale(1.03);
}

.gallery-item:nth-child(even) { margin-top: 60px; }

@media (max-width: 768px) {
  .gallery-mosaic { grid-template-columns: 1fr; height: auto; }
  .gallery-item:nth-child(even) { margin-top: 0; }
  .gallery-item { height: 240px; }
}

/* --- CTA SHOWROOM --- */
.cta-showroom {
  background: var(--charbon);
  padding: var(--section-py) 0;
  position: relative;
  overflow: hidden;
  text-align: center;
  border-top: 2px solid var(--or-sombre);
}

.cta-showroom__pattern {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 0L24 12L12 24L0 12Z' fill='none' stroke='white' stroke-width='0.5' opacity='0.05'/%3E%3C/svg%3E");
  background-size: 24px;
  pointer-events: none;
}

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

.cta-showroom__title {
  font-size: clamp(2rem, 4vw, 3.5rem);
  margin-bottom: 20px;
}

.cta-showroom__info {
  font-size: var(--text-base);
  color: var(--blanc-60);
  margin-bottom: 8px;
  line-height: 1.8;
}

.cta-showroom__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 36px;
}
