/*
Theme Name: Caro VTC Booking
Theme URI: https://caromedia.fr
Author: Caromedia
Author URI: https://caromedia.fr
Description: Thème premium dark pour Caro VTC Booking Plugin — landing page commerciale avec hero animé, sections fonctionnalités, tarifs et contact.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: caro-vtc
*/

/* =========================================================
   RESET & BASE
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --black:    #0A0A0F;
  --dark:     #12131A;
  --card:     #1C1D28;
  --card2:    #16172280;
  --purple:   #7C3AED;
  --violet:   #4F46E5;
  --cyan:     #06B6D4;
  --green:    #10B981;
  --orange:   #F59E0B;
  --pink:     #EC4899;
  --white:    #FFFFFF;
  --gray:     #9CA3AF;
  --light:    #E5E7EB;
  --border:   #2D2E3D;

  --grad-main:   linear-gradient(135deg, var(--purple), var(--cyan));
  --grad-dark:   linear-gradient(135deg, #0A0A0F, #1A0A3B);
  --grad-card:   linear-gradient(135deg, #1C1D28, #1A1B26);

  --font: 'Inter', 'Segoe UI', Arial, sans-serif;
  --radius: 16px;
  --shadow: 0 8px 32px rgba(0,0,0,0.35);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--black);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* =========================================================
   TYPOGRAPHY
   ========================================================= */
.label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 0.75rem;
}

h1, h2, h3 { line-height: 1.15; font-weight: 800; }

h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: 1.2rem; }

.gradient-text {
  background: var(--grad-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* =========================================================
   LAYOUT
   ========================================================= */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section { padding: 6rem 0; position: relative; }

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  border: none;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(124,58,237,0.4); }

.btn-primary {
  background: var(--grad-main);
  color: var(--white);
}
.btn-outline {
  background: transparent;
  color: var(--purple);
  border: 1.5px solid var(--purple);
}
.btn-outline:hover { background: rgba(124,58,237,0.1); }

/* =========================================================
   NAVBAR
   ========================================================= */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.2rem 0;
  transition: background 0.3s, box-shadow 0.3s;
}
#navbar.scrolled {
  background: rgba(10,10,15,0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 24px rgba(0,0,0,0.4);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  font-size: 1.2rem;
}
.nav-logo .logo-icon {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--grad-main);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  font-size: 0.9rem;
  color: var(--gray);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--white); }
.nav-cta { display: flex; gap: 0.75rem; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: 0.3s;
}

/* =========================================================
   HERO
   ========================================================= */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--grad-dark);
  padding-top: 5rem;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}
.glow-1 {
  width: 600px; height: 600px;
  background: rgba(124,58,237,0.25);
  top: -200px; right: -150px;
}
.glow-2 {
  width: 400px; height: 400px;
  background: rgba(6,182,212,0.15);
  bottom: -100px; left: -100px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 4rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(124,58,237,0.15);
  border: 1px solid rgba(124,58,237,0.3);
  border-radius: 50px;
  padding: 0.4rem 1rem;
  font-size: 0.8rem;
  color: var(--purple);
  margin-bottom: 1.5rem;
  animation: fadeInDown 0.6s ease;
}

.hero-title {
  margin-bottom: 1.25rem;
  animation: fadeInUp 0.7s ease 0.1s both;
}

.hero-sub {
  color: var(--gray);
  font-size: 1.1rem;
  max-width: 500px;
  margin-bottom: 2rem;
  animation: fadeInUp 0.7s ease 0.2s both;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
  animation: fadeInUp 0.7s ease 0.3s both;
}
.hero-tag {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 0.3rem 0.9rem;
  font-size: 0.78rem;
  color: var(--gray);
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  animation: fadeInUp 0.7s ease 0.4s both;
}

/* Phone mockup */
.phone-wrap {
  position: relative;
  animation: floatPhone 4s ease-in-out infinite;
}

@keyframes floatPhone {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-16px); }
}

.phone-mockup {
  background: var(--card);
  border: 2px solid rgba(124,58,237,0.5);
  border-radius: 40px;
  padding: 1.5rem;
  box-shadow: 0 0 60px rgba(124,58,237,0.2), var(--shadow);
  position: relative;
}
.phone-notch {
  width: 80px; height: 10px;
  background: rgba(124,58,237,0.4);
  border-radius: 10px;
  margin: 0 auto 1.5rem;
}
.phone-screen-label {
  text-align: center;
  font-size: 0.8rem;
  color: var(--gray);
  margin-bottom: 1rem;
}
.phone-field {
  background: #2D2E3D;
  border-radius: 10px;
  padding: 0.8rem 1rem;
  font-size: 0.85rem;
  color: var(--light);
  margin-bottom: 0.6rem;
}
.phone-vehicles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-bottom: 0.8rem;
}
.phone-vehicle {
  background: #2D2E3D;
  border-radius: 10px;
  padding: 0.65rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--gray);
  cursor: pointer;
  transition: 0.2s;
}
.phone-vehicle.active {
  background: rgba(124,58,237,0.25);
  border: 1px solid var(--purple);
  color: var(--white);
}
.phone-price {
  text-align: center;
  font-size: 0.75rem;
  color: var(--gray);
  margin-bottom: 0.75rem;
}
.phone-price strong {
  color: var(--white);
  font-size: 1.2rem;
}
.phone-btn {
  background: var(--grad-main);
  border-radius: 12px;
  padding: 0.85rem;
  text-align: center;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--white);
  cursor: pointer;
}
.phone-confirm {
  text-align: center;
  margin-top: 0.75rem;
  font-size: 0.75rem;
  color: var(--green);
}

/* =========================================================
   PROBLEM / SOLUTION
   ========================================================= */
#solution {
  background: linear-gradient(135deg, #12131A, #0F172A);
}
.solution-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 2rem;
  align-items: center;
  margin-top: 3rem;
}
.solution-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 2rem;
}
.solution-card.bad  { border: 1px solid rgba(239,68,68,0.4); }
.solution-card.good { border: 1px solid rgba(124,58,237,0.5); background: linear-gradient(135deg,#1A0F2E,#1C1040); }

.solution-card h3 { margin-bottom: 1.25rem; font-size: 1rem; }
.solution-card.bad  h3 { color: #EF4444; }
.solution-card.good h3 { color: var(--green); }

.solution-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--gray);
}
.solution-item:last-child { border-bottom: none; }
.solution-item.good-item { color: var(--light); }

.arrow-center {
  font-size: 2rem;
  background: var(--grad-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.solution-badge {
  text-align: center;
  margin-top: 2.5rem;
  font-size: 0.85rem;
  color: var(--gray);
  font-style: italic;
}

/* =========================================================
   FEATURES
   ========================================================= */
#features { background: var(--black); }

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}
.section-header p {
  color: var(--gray);
  margin-top: 0.75rem;
  font-size: 1.05rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature-card {
  background: var(--grad-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(124,58,237,0.2);
  border-color: rgba(124,58,237,0.4);
}

.feature-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.1rem;
}

.feature-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1rem;
}
.feature-card p {
  font-size: 0.875rem;
  color: var(--gray);
  line-height: 1.6;
}

/* =========================================================
   PROCESS
   ========================================================= */
#process {
  background: linear-gradient(135deg, #0F0A1E, #12131A);
}

.steps-wrap {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  margin-top: 3rem;
  position: relative;
}

/* connector line */
.steps-wrap::before {
  content: '';
  position: absolute;
  top: 38px;
  left: calc(10% + 20px);
  right: calc(10% + 20px);
  height: 3px;
  background: var(--grad-main);
  border-radius: 3px;
  z-index: 0;
}

.step {
  text-align: center;
  position: relative;
  z-index: 1;
}
.step-num {
  width: 76px; height: 76px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  font-weight: 800;
  margin: 0 auto 1.25rem;
  position: relative;
  z-index: 1;
}
.step-card {
  background: var(--card);
  border-radius: 14px;
  padding: 1.25rem 0.75rem;
  border: 1px solid var(--border);
}
.step-card h3 {
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  color: var(--white);
}
.step-card p {
  font-size: 0.78rem;
  color: var(--gray);
}

/* =========================================================
   STATS
   ========================================================= */
#stats {
  background: var(--black);
  padding: 5rem 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}
.stat-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  border: 1px solid var(--border);
  transition: transform 0.25s, border-color 0.25s;
  position: relative;
  overflow: hidden;
}
.stat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.3s;
}
.stat-card:hover { transform: translateY(-4px); }
.stat-card:hover::before { opacity: 1; }

.stat-val {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.5rem;
}
.stat-label {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.35rem;
}
.stat-sub {
  font-size: 0.78rem;
  color: var(--gray);
}

.stats-extras {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 2.5rem;
}
.stats-tag {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 0.4rem 1rem;
  font-size: 0.8rem;
  color: var(--gray);
}

/* =========================================================
   PRICING
   ========================================================= */
#pricing {
  background: linear-gradient(135deg, #0F0A1E, #0A0A0F);
}
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 860px;
  margin: 3rem auto 0;
}
.pricing-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 2.25rem;
  border: 1px solid var(--border);
  position: relative;
}
.pricing-card.featured {
  background: linear-gradient(135deg,#1A0F2E,#1C1040);
  border-color: var(--purple);
  box-shadow: 0 0 40px rgba(124,58,237,0.2);
}
.pricing-badge {
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%);
  background: var(--grad-main);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 1.2rem;
  border-radius: 50px;
  white-space: nowrap;
}
.pricing-name {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.pricing-price {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
}
.pricing-sub {
  font-size: 0.8rem;
  color: var(--gray);
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}
.pricing-items { list-style: none; margin-bottom: 2rem; }
.pricing-items li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0;
  font-size: 0.875rem;
  color: var(--light);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.pricing-items li:last-child { border-bottom: none; }
.pricing-items li .check { color: var(--purple); font-size: 0.85rem; }
.pricing-card.featured .pricing-items li .check { color: var(--cyan); }

.pricing-note {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.85rem;
  color: var(--gray);
  font-style: italic;
}

/* =========================================================
   CONTACT
   ========================================================= */
#contact {
  background: var(--grad-dark);
  text-align: center;
}
.contact-inner { max-width: 600px; margin: 0 auto; }
.contact-inner h2 { margin-bottom: 1rem; }
.contact-inner p { color: var(--gray); margin-bottom: 2.5rem; }

.contact-cards {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}
.contact-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--purple);
  border-radius: 14px;
  padding: 1rem 1.75rem;
  font-size: 0.9rem;
}
.contact-card span {
  display: block;
  font-size: 0.72rem;
  color: var(--purple);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.25rem;
}

.contact-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* =========================================================
   FOOTER
   ========================================================= */
footer {
  background: #080810;
  padding: 2rem 0;
  text-align: center;
  font-size: 0.82rem;
  color: var(--gray);
  border-top: 1px solid var(--border);
}
footer a { color: var(--purple); }

/* =========================================================
   ANIMATIONS
   ========================================================= */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-wrap { grid-template-columns: repeat(3, 1fr); }
  .steps-wrap::before { display: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; }
  .phone-wrap { display: none; }
  .solution-grid { grid-template-columns: 1fr; }
  .arrow-center { transform: rotate(90deg); }
  .pricing-grid { grid-template-columns: 1fr; }
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .steps-wrap { grid-template-columns: 1fr 1fr; }
  .features-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .steps-wrap { grid-template-columns: 1fr; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
}
