/* ============================================
   Porsche Occasions — Site vitrine
   Palette: #000 (dark), #D5001C (Porsche red), #f5f5f5 (light)
   ============================================ */

:root {
  --red: #D5001C;
  --red-dark: #a8001a;
  --black: #111111;
  --dark: #1a1a1a;
  --text: #2d2d2d;
  --text-light: #6b7280;
  --bg-light: #f5f5f5;
  --white: #ffffff;
  --border: #e5e7eb;
}

/* ---- Base ---- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 70px;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.25;
}

.section-pad {
  padding: 100px 0;
}

.bg-light {
  background-color: var(--bg-light) !important;
}

.section-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.75rem;
}

.section-label.light {
  color: rgba(255,255,255,0.6);
}

.section-heading h2 {
  font-size: 2.4rem;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.section-subtitle {
  color: var(--text-light);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto;
}

.text-porsche-red { color: var(--red); }

/* ---- Navbar ---- */

.navbar {
  padding: 0.9rem 0;
  background-color: transparent;
  transition: background-color 0.3s, box-shadow 0.3s;
}

.navbar.scrolled {
  background-color: rgba(17, 17, 17, 0.97) !important;
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 24px rgba(0,0,0,0.4);
}

.brand-crest {
  margin-right: 10px;
  flex-shrink: 0;
}

.navbar-brand {
  display: flex;
  align-items: center;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--white) !important;
  text-decoration: none;
}

.brand-name {
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.95rem;
}

.brand-occ {
  color: var(--red);
}

.nav-link {
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: rgba(255,255,255,0.85) !important;
  transition: color 0.2s;
  padding: 0.5rem 0.75rem !important;
}

.nav-link:hover,
.nav-link.active {
  color: var(--white) !important;
}

.btn-lang {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.35);
  color: rgba(255,255,255,0.85);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 0.35rem 0.85rem;
  border-radius: 4px;
  transition: all 0.2s;
}

.btn-lang:hover {
  background: rgba(255,255,255,0.1);
  color: var(--white);
  border-color: rgba(255,255,255,0.6);
}

/* ---- Buttons ---- */

.btn-porsche-red {
  background-color: var(--red);
  border-color: var(--red);
  color: var(--white);
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: 3px;
  transition: background-color 0.2s, border-color 0.2s;
}

.btn-porsche-red:hover {
  background-color: var(--red-dark);
  border-color: var(--red-dark);
  color: var(--white);
}

/* ---- Hero ---- */

.hero-section {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(0,0,0,0.82) 0%,
    rgba(0,0,0,0.55) 55%,
    rgba(0,0,0,0.2) 100%
  );
  z-index: 1;
}

.hero-section .container {
  position: relative;
  z-index: 2;
  height: 100%;
}

.hero-section .row {
  height: 100%;
}

.hero-eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1rem;
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 1.25rem;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.8);
  max-width: 500px;
  line-height: 1.7;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--white);
  text-decoration: none;
  padding: 0.55rem 1.2rem;
  border-radius: 6px;
  font-size: 0.88rem;
  font-weight: 500;
  transition: all 0.2s;
}

.store-badge:hover {
  background: rgba(255,255,255,0.2);
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}

.hero-phone-wrap {
  position: relative;
  max-width: 380px;
}

.hero-phone-img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
  transform: perspective(800px) rotateY(-8deg) rotateX(2deg);
}

.hero-scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.hero-scroll-hint a {
  color: rgba(255,255,255,0.5);
  font-size: 1.2rem;
  text-decoration: none;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* ---- Features ---- */

.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2rem 1.75rem;
  height: 100%;
  transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(0,0,0,0.1);
}

.feature-icon {
  width: 52px;
  height: 52px;
  background: #fff0f3;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
  font-size: 1.3rem;
  color: var(--red);
}

.feature-card h4 {
  font-size: 1.05rem;
  margin-bottom: 0.6rem;
}

.feature-card p {
  font-size: 0.92rem;
  color: var(--text-light);
  line-height: 1.65;
  margin: 0;
}

/* ---- Models Band ---- */

.models-band {
  background: var(--black);
  padding: 80px 0;
}

.model-chip {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 6px;
  padding: 0.9rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: rgba(255,255,255,0.85);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: all 0.2s;
  cursor: default;
}

.model-chip:hover,
.model-chip.featured {
  background: rgba(213,0,28,0.15);
  border-color: rgba(213,0,28,0.4);
  color: var(--white);
}

.model-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  flex-shrink: 0;
}

/* ---- App Screens ---- */

.phone-frame {
  display: inline-block;
  background: #111;
  border-radius: 40px;
  padding: 14px 10px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.25), inset 0 0 0 1px rgba(255,255,255,0.1);
  max-width: 260px;
}

.screen-img {
  width: 100%;
  border-radius: 28px;
  display: block;
}

.screen-num {
  display: block;
  font-size: 3rem;
  font-weight: 800;
  color: rgba(213,0,28,0.15);
  letter-spacing: -0.05em;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.screen-points {
  list-style: none;
  padding: 0;
  margin: 0;
}

.screen-points li {
  padding: 0.35rem 0;
  font-size: 0.95rem;
  color: var(--text);
}

/* ---- Stats ---- */

.stats-section {
  background: var(--black);
  padding: 100px 0;
}

.stat-item {
  padding: 1.5rem;
}

.stat-icon {
  font-size: 1.6rem;
  color: var(--red);
  margin-bottom: 0.75rem;
}

.stat-value {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 0.4rem;
}

.stat-label {
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.stats-chart-wrap {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.stats-chart-label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
}

.stats-chart-img {
  width: 100%;
  border-radius: 8px;
}

/* ---- Back-office ---- */

.bo-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2rem 1.75rem;
  height: 100%;
  transition: transform 0.2s, box-shadow 0.2s;
  border-top: 3px solid transparent;
}

.bo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(0,0,0,0.08);
  border-top-color: var(--red);
}

.bo-icon {
  width: 48px;
  height: 48px;
  background: #fff0f3;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.2rem;
  color: var(--red);
}

.bo-card h4 {
  font-size: 1.05rem;
  margin-bottom: 0.6rem;
}

.bo-card p {
  font-size: 0.91rem;
  color: var(--text-light);
  line-height: 1.65;
  margin: 0;
}

.bo-screenshot-wrap {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
  position: relative;
}

.bo-screenshot {
  width: 100%;
  display: block;
}

.bo-screenshot-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0,0,0,0.75);
  color: rgba(255,255,255,0.75);
  font-size: 0.82rem;
  padding: 0.75rem 1.5rem;
  letter-spacing: 0.03em;
}

/* ---- Testimonials ---- */

.testi-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 2.25rem 2rem 1.75rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
}

.testi-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.1);
}

.testi-quote-mark {
  font-size: 5rem;
  line-height: 1;
  color: var(--red);
  font-family: Georgia, serif;
  margin-bottom: -1rem;
  opacity: 0.25;
  user-select: none;
}

.testi-quote {
  font-size: 0.97rem;
  line-height: 1.75;
  color: var(--text);
  font-style: italic;
  flex: 1;
  margin: 0 0 1.75rem;
  border: none;
  padding: 0;
}

.testi-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
}

.testi-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--border);
}

.testi-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.testi-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}

.testi-role {
  font-size: 0.8rem;
  color: var(--text-light);
  line-height: 1.4;
}

/* ---- Contact ---- */

.contact-card {
  background: var(--white);
  border-radius: 12px;
  padding: 3rem;
  box-shadow: 0 12px 48px rgba(0,0,0,0.08);
}

.form-floating .form-control {
  border-color: var(--border);
  border-radius: 6px;
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-floating .form-control:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(213,0,28,0.1);
}

.form-floating label {
  color: var(--text-light);
  font-size: 0.92rem;
}

/* ---- Footer ---- */

.site-footer {
  background: var(--black);
  padding: 3rem 0;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--white);
  font-size: 1rem;
}

.footer-tagline {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
  margin: 0;
}

.footer-links-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

.footer-links-list a {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.2s;
}

.footer-links-list a:hover {
  color: var(--white);
}

.footer-copy {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.35);
  margin: 0;
}

/* ---- Back to top ---- */

.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  background: var(--red);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s, transform 0.3s;
  z-index: 999;
  font-size: 0.85rem;
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--red-dark);
  color: var(--white);
}

/* ---- Responsive ---- */

@media (max-width: 991.98px) {
  .section-heading h2 {
    font-size: 1.9rem;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .section-pad {
    padding: 70px 0;
  }

  .models-band {
    padding: 60px 0;
  }

  .stats-section {
    padding: 70px 0;
  }

  .contact-card {
    padding: 2rem 1.5rem;
  }

  .navbar-collapse {
    background: rgba(17,17,17,0.97);
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 0.5rem;
  }
}

@media (max-width: 575.98px) {
  .hero-section {
    min-height: 100svh;
  }

  .phone-frame {
    max-width: 200px;
  }
}
