/*
Theme Name: GDRIVE34 - VTC Premium Montpellier
Theme URI: https://gdrive34.com
Author: GDRIVE34
Author URI: https://gdrive34.com
Description: Thème WordPress one-page premium pour GDRIVE34, service VTC haut de gamme à Montpellier. Design sombre, élégant avec effets glassmorphism.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: gdrive34
Tags: one-page, dark, custom-background, custom-logo, featured-images

GDRIVE34 - Votre trajet. Une expérience.
*/

/* ============================================
   CSS VARIABLES & RESET
   ============================================ */
:root {
  --bg: hsl(215, 60%, 8%);
  --bg-card: hsl(215, 55%, 11%);
  --fg: hsl(210, 20%, 93%);
  --fg-muted: hsl(210, 10%, 55%);
  --chrome: hsl(210, 30%, 65%);
  --secondary: hsl(215, 45%, 16%);
  --secondary-fg: hsl(210, 15%, 80%);
  --border: hsl(215, 30%, 20%);
  --glass: hsl(215, 50%, 12%);
  --glass-border: hsl(215, 30%, 22%);
  --radius: 0.5rem;
  --accent-blue: hsl(200, 80%, 50%);
  --whatsapp: #25D366;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Montserrat', sans-serif;
  background-color: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

/* ============================================
   UTILITY CLASSES
   ============================================ */
.container {
  max-width: 1152px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-sm {
  max-width: 896px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-md {
  max-width: 1024px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.text-chrome {
  color: var(--chrome);
}

.text-muted {
  color: var(--fg-muted);
}

.section-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--chrome);
  font-weight: 500;
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(1.875rem, 4vw, 2.25rem);
  font-weight: 700;
  margin-bottom: 3rem;
}

.glass-panel {
  background: hsla(215, 50%, 12%, 0.6);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  transition: border-color 0.5s ease;
}

.glass-panel:hover {
  border-color: hsla(210, 30%, 65%, 0.4);
}

.glow-button {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius);
  cursor: pointer;
  border: none;
  font-family: 'Montserrat', sans-serif;
}

.glow-button::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: var(--radius);
  background: radial-gradient(circle at center, hsla(210, 30%, 65%, 0.2) 0%, transparent 70%);
}

.glow-button:hover::after {
  opacity: 1;
}

.glow-button:hover {
  transform: scale(1.05);
}

.btn-primary {
  background: var(--fg);
  color: var(--bg);
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

.btn-outline {
  background: transparent;
  border: 1px solid hsla(210, 20%, 93%, 0.2);
  color: var(--fg);
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
}

.btn-outline:hover {
  border-color: hsla(210, 30%, 65%, 0.6);
}

.btn-cta {
  background: var(--accent-blue);
  color: #fff;
  padding: 1rem 2rem;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  justify-content: center;
  white-space: nowrap;
}

.tag {
  font-size: 0.75rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  background: var(--secondary);
  color: var(--chrome);
  font-weight: 500;
  display: inline-block;
}

.tag-secondary {
  background: var(--secondary);
  color: var(--secondary-fg);
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: all 0.3s ease;
  padding: 0.75rem 0;
}

.site-header.scrolled {
  background: hsla(215, 60%, 8%, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.3);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header .logo {
  height: 3rem;
  width: auto;
  filter: invert(1);
}

@media (min-width: 768px) {
  .site-header .logo {
    height: 3.5rem;
  }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  background: hsla(210, 20%, 93%, 0.1);
  border: none;
  cursor: pointer;
  transition: background 0.2s ease;
}

.header-icon-btn:hover {
  background: hsla(210, 20%, 93%, 0.2);
}

.header-icon-btn svg {
  width: 20px;
  height: 20px;
  color: var(--fg);
}

.header-icon-btn--primary {
  background: hsla(210, 20%, 93%, 0.8);
}

.header-icon-btn--primary:hover {
  background: var(--fg);
}

.header-icon-btn--primary svg {
  color: var(--bg);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--bg), hsla(215, 60%, 8%, 0.7), hsla(215, 60%, 8%, 0.3));
}

.hero__content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 0 1.5rem;
  max-width: 48rem;
}

.hero__logo {
  height: 8rem;
  width: auto;
  filter: invert(1);
  margin: 0 auto 1.5rem;
}
@media (min-width: 768px) {
  .hero__logo { height: 10rem; }
}

.hero__subtitle {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--chrome);
  margin-bottom: 1rem;
  font-weight: 500;
}

.hero__title {
  font-size: clamp(1.875rem, 5vw, 3.75rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero__text {
  font-size: clamp(1.125rem, 2.5vw, 1.25rem);
  color: var(--fg-muted);
  margin-bottom: 2.5rem;
  font-weight: 300;
}

/* Hero Animations */
.hero__content > * {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease-out forwards;
}

.hero__content > *:nth-child(1) { animation-delay: 0.2s; }
.hero__content > *:nth-child(2) { animation-delay: 0.4s; }
.hero__content > *:nth-child(3) { animation-delay: 0.5s; }
.hero__content > *:nth-child(4) { animation-delay: 0.7s; }
.hero__content > *:nth-child(5) { animation-delay: 0.8s; }

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.services {
  padding: 6rem 1.5rem;
}

.services__grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.service-card {
  padding: 2rem 2.5rem;
}

.service-card__icon {
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius);
  background: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.service-card__icon svg {
  width: 24px;
  height: 24px;
  color: var(--chrome);
}

.service-card__title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.service-card__text {
  color: var(--fg-muted);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.service-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

/* ============================================
   VEHICLE SECTION
   ============================================ */
.vehicle {
  padding: 6rem 1.5rem;
}

.vehicle__grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .vehicle__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.vehicle__image {
  border-radius: var(--radius);
  overflow: hidden;
}

.vehicle__image img {
  width: 100%;
  height: 20rem;
  object-fit: cover;
  border-radius: var(--radius);
}

.vehicle__features {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .vehicle__features {
    grid-template-columns: repeat(2, 1fr);
  }
}

.feature-card {
  padding: 1.5rem;
}

.feature-card svg {
  width: 28px;
  height: 28px;
  color: var(--chrome);
  margin-bottom: 0.75rem;
}

.feature-card__title {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.feature-card__text {
  font-size: 0.875rem;
  color: var(--fg-muted);
}

.vehicle__cta {
  text-align: center;
  margin-top: 3rem;
}

/* ============================================
   FLEET SECTION
   ============================================ */
.fleet {
  padding: 6rem 1.5rem;
}

.fleet__grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .fleet__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.fleet-card {
  overflow: hidden;
}

.fleet-card__image {
  overflow: hidden;
}

.fleet-card__image img {
  width: 100%;
  height: 14rem;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.fleet-card:hover .fleet-card__image img {
  transform: scale(1.05);
}

.fleet-card__body {
  padding: 1.5rem;
}

.fleet-card__name {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.fleet-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

/* ============================================
   TESTIMONIALS SECTION
   ============================================ */
.testimonials {
  padding: 6rem 1.5rem;
}

.testimonials__grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .testimonials__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.testimonial-card {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}

.testimonial-card__stars {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1rem;
}

.testimonial-card__stars svg {
  width: 16px;
  height: 16px;
  fill: var(--chrome);
  color: var(--chrome);
}

.testimonial-card__text {
  color: var(--fg-muted);
  font-size: 0.875rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  flex: 1;
}

.testimonial-card__name {
  font-weight: 600;
  font-size: 0.875rem;
}

/* ============================================
   CONTACT / ZONES SECTION
   ============================================ */
.contact {
  padding: 6rem 1.5rem;
}

.zones-list {
  list-style: none;
  padding: 0;
}

.zones-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
  color: var(--fg-muted);
}

.zones-list li svg {
  width: 18px;
  height: 18px;
  color: var(--chrome);
  flex-shrink: 0;
}

/* ============================================
   BOOKING POPUP (MODAL)
   ============================================ */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: hsla(0, 0%, 0%, 0.7);
  backdrop-filter: blur(4px);
  justify-content: center;
  align-items: center;
  padding: 1rem;
}

.modal-overlay.active {
  display: flex;
}

.modal {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  max-width: 48rem;
  width: 100%;
  overflow: hidden;
  position: relative;
}

.modal__grid {
  display: grid;
}

@media (min-width: 768px) {
  .modal__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.modal__image {
  display: none;
  position: relative;
  overflow: hidden;
}

@media (min-width: 768px) {
  .modal__image {
    display: block;
  }
}

.modal__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal__image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, transparent, hsla(215, 55%, 11%, 0.5));
}

.modal__content {
  padding: 2rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--fg-muted);
  cursor: pointer;
  z-index: 10;
  padding: 0.5rem;
  transition: color 0.2s;
}

.modal__close:hover {
  color: var(--fg);
}

.modal__label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--chrome);
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.modal__title {
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.modal__text {
  font-size: 0.875rem;
  color: var(--fg-muted);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  margin-bottom: 0.75rem;
}

.contact-card svg {
  width: 20px;
  height: 20px;
  color: var(--chrome);
  flex-shrink: 0;
}

.contact-card__label {
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--fg-muted);
}

.contact-card__value {
  font-weight: 600;
}

.modal__actions {
  margin-top: 2rem;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  margin-top: 6rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  text-align: center;
}

.site-footer .logo {
  height: 2.5rem;
  width: auto;
  margin: 0 auto;
  filter: invert(1);
  opacity: 0.7;
}

.site-footer__tagline {
  font-size: 0.75rem;
  color: var(--fg-muted);
  font-style: italic;
  margin: 1rem 0 0.5rem;
}

.site-footer__copy {
  font-size: 0.875rem;
  color: var(--fg-muted);
  padding-bottom: 2rem;
}

/* ============================================
   WHATSAPP FAB (Mobile only)
   ============================================ */
.whatsapp-fab {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 50;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 9999px;
  background: var(--whatsapp);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px hsla(142, 70%, 49%, 0.3);
  transition: transform 0.3s ease;
  border: none;
  cursor: pointer;
}

.whatsapp-fab:hover {
  transform: scale(1.1);
}

.whatsapp-fab svg {
  width: 26px;
  height: 26px;
  color: #fff;
}

@media (min-width: 768px) {
  .whatsapp-fab {
    display: none;
  }
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}
