/* ===========================
   VARIABLES & RÉINITIALISATIONS
   =========================== */

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

:root {
  --gold: #c9a96e;
  --gold-dark: #8b6f47;
  --gold-pale: #f0e0c0;
  --brown-dark: #1c1410;
  --brown-mid: #3d2b1f;
  --brown-light: #6b5744;
  --black-brown: #0f0b08;
  --cream: #f5f0ea;
  --off-white: #fafaf8;
  --border-radius: 2px;
  --shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
  --transition: all 0.4s ease;
  /* Alias legacy */
  --primary-color: var(--gold);
  --secondary-color: var(--gold-dark);
  --dark-color: var(--black-brown);
  --light-color: var(--cream);
  --text-color: var(--brown-mid);
  --luxury-brown: var(--brown-light);
  --luxury-gold: var(--gold);
  --luxury-dark-gold: var(--gold-dark);
  --luxury-light-gold: var(--gold-pale);
}

html,
body {
  font-family: "Gill Sans", "Optima", Helvetica, Arial, sans-serif;
  color: var(--brown-mid);
  background-color: var(--off-white);
}

h1,
h2,
h3,
h4 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 300;
  letter-spacing: 0.5px;
  color: var(--brown-dark);
}

/* ===========================
   HERO SECTION - LUXE
   =========================== */

.hero {
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin-bottom: 0;
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(107, 83, 68, 0.65) 0%, rgba(139, 111, 71, 0.65) 100%);
  z-index: 1;
}

.hero::before {
  display: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin: 0 auto;
  animation: fadeInDown 1s ease-out;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 300;
  letter-spacing: 2px;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
  color: #f4e4c1;
}

.hero p {
  font-size: 1.3rem;
  margin-bottom: 2.5rem;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
  font-weight: 300;
  letter-spacing: 1px;
  color: #f4e4c1;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===========================
   NAVIGATION
   =========================== */

.navbar {
  background: var(--black-brown);
  color: var(--gold-pale);
  padding: 1.1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(201, 169, 110, 0.15);
}

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

.logo {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.3rem;
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2.5rem;
}

.nav-links a {
  color: var(--gold-pale);
  text-decoration: none;
  font-size: 0.75rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--gold);
}

/* ===========================
   BOUTONS
   =========================== */

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  font-size: 1rem;
}

.btn-primary {
  background-color: var(--gold);
  color: var(--brown-dark);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  border-radius: var(--border-radius);
  padding: 0.85rem 2rem;
}

.btn-primary:hover {
  background-color: var(--gold-pale);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201, 169, 110, 0.25);
}

.btn-secondary {
  background-color: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  border-radius: var(--border-radius);
  padding: 0.85rem 2rem;
}

.btn-secondary:hover {
  background-color: var(--gold);
  color: var(--brown-dark);
  transform: translateY(-2px);
}

.btn-disabled {
  background-color: #ccc;
  color: #666;
  cursor: not-allowed;
}

.btn.large {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

/* ===========================
   SECTION HERO
   =========================== */

.hero {
  background:
    linear-gradient(135deg, rgba(107, 83, 68, 0.9) 0%, rgba(139, 111, 71, 0.9) 100%),
    url("/static/images/van-hero.svg") center/cover no-repeat;
  color: white;
  padding: 8rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  letter-spacing: 2px;
  color: var(--luxury-light-gold);
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.hero-content p {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  color: var(--luxury-light-gold);
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
  letter-spacing: 1px;
}

/* ===========================
   SECTIONS
   =========================== */

section {
  padding: 0;
}

section h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.4rem;
  font-weight: 300;
  margin-bottom: 2rem;
  text-align: center;
  color: var(--brown-dark);
  letter-spacing: 1px;
}

section h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.9rem;
  font-weight: 300;
  margin-bottom: 1.5rem;
  color: var(--brown-dark);
}

.subtitle {
  text-align: center;
  font-size: 1rem;
  color: var(--brown-light);
  letter-spacing: 0.5px;
  margin-bottom: 2rem !important;
}

/* ===========================
   CTA SECTION
   =========================== */

.cta {
  background: var(--black-brown);
  color: var(--gold-pale);
  text-align: center;
  padding: 6rem 2rem;
}

.cta h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 300;
  color: var(--gold-pale);
  margin-bottom: 2rem;
  font-size: 2.4rem;
  letter-spacing: 1px;
}

/* ===========================
   VANS
   =========================== */

.vans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.van-card {
  background: var(--off-white);
  border-radius: 0;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border-top: 2px solid var(--gold);
}

.van-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.van-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.van-image.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  background-color: var(--light-color);
}

.van-info {
  padding: 1.5rem;
}

.van-info h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.description {
  color: #666;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.van-details {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.price {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: 1.1rem;
  color: var(--gold-dark);
  letter-spacing: 1px;
}

/* ===========================
   BADGES
   =========================== */

.badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.badge.available {
  background-color: #d4edda;
  color: #155724;
}

.badge.unavailable {
  background-color: #f8d7da;
  color: #721c24;
}

.badge.large {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
}

/* ===========================
   DÉTAIL VAN
   =========================== */

.van-detail-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 2rem;
}

.van-detail-image img,
.placeholder-large {
  width: 100%;
  border-radius: var(--border-radius);
  object-fit: cover;
}

.placeholder-large {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  background-color: var(--light-color);
  min-height: 400px;
}

.van-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0;
}

.price-large {
  font-size: 2rem;
  font-weight: bold;
  color: var(--primary-color);
}

.features-list {
  margin: 1.5rem 0;
}

.feature-item {
  padding: 0.75rem 0;
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.1rem;
}

.feature-item .icon {
  font-size: 1.5rem;
}

.actions {
  margin-top: 2rem;
}

.back-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  display: inline-block;
  margin-bottom: 2rem;
}

.back-link:hover {
  transform: translateX(-5px);
}

/* ===========================
   FORMULAIRES
   =========================== */

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 2rem;
}

.contact-form {
  background: var(--cream);
  padding: 2rem;
  border-radius: 0;
  border-top: 2px solid var(--gold);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid rgba(201, 169, 110, 0.3);
  border-radius: 0;
  font-family: inherit;
  font-size: 1rem;
  background: var(--off-white);
  color: var(--brown-mid);
}

.form-group textarea {
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(201, 169, 110, 0.15);
}

#formMessage {
  margin-top: 1rem;
}

.success {
  color: #155724;
  background-color: #d4edda;
  padding: 1rem;
  border-radius: var(--border-radius);
  border: 1px solid #c3e6cb;
}

.error {
  color: #721c24;
  background-color: #f8d7da;
  padding: 1rem;
  border-radius: var(--border-radius);
  border: 1px solid #f5c6cb;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.info-item {
  background: var(--light-color);
  padding: 1.5rem;
  border-radius: var(--border-radius);
}

.info-item h3 {
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.no-vans {
  text-align: center;
  padding: 2rem;
  color: #666;
}

/* ===========================
   ABOUT
   =========================== */

.about-content section {
  margin-bottom: 2rem;
}

.about-content p {
  line-height: 1.6;
  margin-bottom: 1rem;
}

.about-content ul {
  list-style: none;
  margin-left: 0;
}

.about-content li {
  padding: 0.5rem 0;
  font-size: 1.1rem;
}

/* ===========================
   FOOTER
   =========================== */

.footer {
  background: var(--black-brown);
  color: var(--brown-light);
  text-align: center;
  padding: 2.5rem 0;
  margin-top: 0;
  border-top: 1px solid rgba(201, 169, 110, 0.2);
  font-size: 0.8rem;
  letter-spacing: 1px;
}

.footer p {
  margin: 0.4rem 0;
}

.footer a {
  color: var(--gold);
  text-decoration: none;
}

/* ===========================
   RESPONSIVE
   =========================== */

@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2rem;
  }

  .nav-links {
    gap: 1rem;
    font-size: 0.9rem;
  }

  .van-detail-content,
  .contact-content {
    grid-template-columns: 1fr;
  }

  section h1 {
    font-size: 2rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .vans-grid {
    grid-template-columns: 1fr;
  }

  .brand-story-values {
    grid-template-columns: 1fr;
  }
}

/* ===========================
   BRAND STORY
   =========================== */

.brand-story {
  padding: 5rem 0;
  background: #faf7f4;
}

.brand-story-inner {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.brand-story-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #d4a574;
  margin-bottom: 1.5rem;
}

.brand-story h2 {
  font-size: 2.6rem;
  font-weight: 300;
  color: #3d2b1f;
  line-height: 1.25;
  margin-bottom: 2.5rem;
  letter-spacing: 0.5px;
}

.brand-story-body {
  text-align: left;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 4rem;
}

.brand-story-body p {
  font-size: 1.05rem;
  line-height: 1.85;
  color: #5a4a3a;
  margin: 0;
}

.brand-story-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  text-align: center;
  border-top: 1px solid rgba(212, 165, 116, 0.3);
  padding-top: 3rem;
}

.brand-value {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}

.brand-value-icon {
  font-size: 1.2rem;
  color: #d4a574;
  display: block;
}

.brand-value strong {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #3d2b1f;
}

.brand-value p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: #7a6a5a;
  margin: 0;
}

@media (max-width: 768px) {
  .brand-story-body {
    grid-template-columns: 1fr;
  }

  .brand-story h2 {
    font-size: 1.9rem;
  }
}
