/* ==========================================================================
   RedDrive — Feuille de style principale
   Charte : rouge #C8102E / fond sombre #0F0F10 / accent clair #F4F4F4
   ========================================================================== */

/* ---------- Reset & variables ---------- */
:root {
  --rd-red: #C8102E;
  --rd-red-hover: #E21A3C;
  --rd-dark: #0F0F10;
  --rd-dark-2: #1A1A1C;
  --rd-grey: #6B6B6B;
  --rd-grey-light: #A8A8A8;
  --rd-light: #F4F4F4;
  --rd-white: #FFFFFF;
  --rd-border: #2A2A2C;
  --rd-success: #22C55E;
  --rd-error: #EF4444;
  --rd-radius: 8px;
  --rd-radius-lg: 12px;
  --rd-transition: 0.2s ease;
  --rd-shadow: 0 4px 24px rgba(0,0,0,0.4);
  --rd-maxwidth: 1200px;
  --rd-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--rd-font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--rd-light);
  background: var(--rd-dark);
  overflow-x: hidden;
}

a {
  color: var(--rd-red);
  text-decoration: none;
  transition: color var(--rd-transition);
}

a:hover {
  color: var(--rd-red-hover);
}

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

/* ---------- Container ---------- */
.container {
  max-width: var(--rd-maxwidth);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Typographie ---------- */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--rd-white);
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  margin-bottom: 1.5rem;
}

h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

p {
  margin-bottom: 1rem;
  color: var(--rd-grey-light);
}

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

.lead {
  font-size: 1.2rem;
  color: var(--rd-light);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 15, 16, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rd-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--rd-white);
  letter-spacing: -0.02em;
}

.logo:hover {
  color: var(--rd-white);
}

.logo .logo-red {
  color: var(--rd-red);
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--rd-red);
  border-radius: 8px;
  margin-right: 10px;
  font-size: 1.1rem;
  color: var(--rd-white);
  font-weight: 900;
}

/* Navigation desktop */
.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.main-nav a {
  color: var(--rd-light);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color var(--rd-transition);
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--rd-red);
}

.nav-cta {
  background: var(--rd-red);
  color: var(--rd-white) !important;
  padding: 10px 20px;
  border-radius: var(--rd-radius);
  font-weight: 600;
  transition: background var(--rd-transition);
}

.nav-cta:hover {
  background: var(--rd-red-hover);
  color: var(--rd-white) !important;
}

/* Burger menu (mobile) */
.burger {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
  color: var(--rd-white);
}

.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--rd-white);
  margin: 5px 0;
  transition: var(--rd-transition);
}

.burger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger.open span:nth-child(2) {
  opacity: 0;
}

.burger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 900px) {
  .main-nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--rd-dark-2);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 16px 0;
    border-bottom: 1px solid var(--rd-border);
    transform: translateY(-120%);
    transition: transform 0.3s ease;
  }

  .main-nav.open {
    transform: translateY(0);
  }

  .main-nav a {
    padding: 14px 24px;
    border-bottom: 1px solid var(--rd-border);
  }

  .main-nav a:last-child {
    border-bottom: 0;
  }

  .nav-cta {
    margin: 8px 24px;
    text-align: center;
  }

  .burger {
    display: block;
  }
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: var(--rd-radius);
  font-weight: 600;
  font-size: 1rem;
  border: 0;
  cursor: pointer;
  text-align: center;
  transition: all var(--rd-transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--rd-red);
  color: var(--rd-white);
}

.btn-primary:hover {
  background: var(--rd-red-hover);
  color: var(--rd-white);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(200, 16, 46, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--rd-light);
  border: 2px solid var(--rd-border);
}

.btn-outline:hover {
  border-color: var(--rd-red);
  color: var(--rd-red);
}

.btn-block {
  display: block;
  width: 100%;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 120px 0 80px;
  background: linear-gradient(135deg, var(--rd-dark) 0%, var(--rd-dark-2) 50%, var(--rd-dark) 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(200, 16, 46, 0.2) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero h1 {
  margin-bottom: 1.5rem;
}

.hero .lead {
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---------- Sections ---------- */
section {
  padding: 80px 0;
}

.section-alt {
  background: var(--rd-dark-2);
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  margin-bottom: 0.75rem;
}

.section-title p {
  max-width: 600px;
  margin: 0 auto;
}

/* ---------- Grille services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.service-card {
  background: var(--rd-dark-2);
  border: 1px solid var(--rd-border);
  border-radius: var(--rd-radius-lg);
  padding: 32px;
  transition: all var(--rd-transition);
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  border-color: var(--rd-red);
  transform: translateY(-4px);
  box-shadow: var(--rd-shadow);
}

.service-icon {
  width: 56px;
  height: 56px;
  background: rgba(200, 16, 46, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.5rem;
}

.service-card h3 {
  color: var(--rd-white);
}

.service-card p {
  flex: 1;
  margin-bottom: 1.5rem;
}

.service-card a {
  color: var(--rd-red);
  font-weight: 600;
  font-size: 0.95rem;
}

.service-card a::after {
  content: ' →';
  transition: transform var(--rd-transition);
  display: inline-block;
}

.service-card a:hover::after {
  transform: translateX(4px);
}

/* ---------- Features (2 colonnes) ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

@media (max-width: 768px) {
  .two-col {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.feature-list {
  list-style: none;
}

.feature-list li {
  padding: 16px 0;
  border-bottom: 1px solid var(--rd-border);
  display: flex;
  align-items: flex-start;
  gap: 16px;
  color: var(--rd-light);
}

.feature-list li:last-child {
  border-bottom: 0;
}

.feature-list .check {
  color: var(--rd-red);
  flex-shrink: 0;
  font-weight: 700;
  font-size: 1.2rem;
}

.feature-list strong {
  color: var(--rd-white);
  display: block;
  margin-bottom: 4px;
}

/* ---------- Process (étapes) ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  margin-top: 40px;
}

.step {
  text-align: center;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--rd-red);
  color: var(--rd-white);
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 16px;
}

.step h3 {
  color: var(--rd-white);
  margin-bottom: 8px;
}

/* ---------- Tarifs / price box ---------- */
.price-box {
  background: var(--rd-dark-2);
  border: 1px solid var(--rd-border);
  border-radius: var(--rd-radius-lg);
  padding: 24px;
  text-align: center;
}

.price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--rd-red);
  margin: 8px 0;
}

.price-unit {
  color: var(--rd-grey-light);
  font-size: 0.9rem;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--rd-red) 0%, #8B0A20 100%);
  padding: 60px 0;
  text-align: center;
}

.cta-band h2,
.cta-band p {
  color: var(--rd-white);
}

.cta-band .btn {
  background: var(--rd-white);
  color: var(--rd-red);
  margin-top: 24px;
}

.cta-band .btn:hover {
  background: var(--rd-light);
  color: var(--rd-red);
}

/* ---------- Formulaire ---------- */
.form-wrap {
  max-width: 720px;
  margin: 0 auto;
  background: var(--rd-dark-2);
  border: 1px solid var(--rd-border);
  border-radius: var(--rd-radius-lg);
  padding: 40px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--rd-light);
  font-weight: 500;
  font-size: 0.95rem;
}

.form-group .req {
  color: var(--rd-red);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--rd-dark);
  border: 1px solid var(--rd-border);
  border-radius: var(--rd-radius);
  color: var(--rd-light);
  font-family: var(--rd-font);
  font-size: 1rem;
  transition: border var(--rd-transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--rd-red);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
  font-size: 0.9rem;
  color: var(--rd-grey-light);
}

.form-check input {
  width: auto;
  margin-top: 4px;
}

.form-check a {
  color: var(--rd-red);
  text-decoration: underline;
}

/* Messages */
.form-message {
  padding: 16px;
  border-radius: var(--rd-radius);
  margin-top: 20px;
  display: none;
}

.form-message.success {
  display: block;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid var(--rd-success);
  color: var(--rd-success);
}

.form-message.error {
  display: block;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid var(--rd-error);
  color: var(--rd-error);
}

/* ---------- Footer ---------- */
.site-footer {
  background: #0A0A0B;
  padding: 60px 0 30px;
  border-top: 1px solid var(--rd-border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

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

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-col h4 {
  color: var(--rd-white);
  font-size: 1rem;
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 10px;
}

.footer-col a {
  color: var(--rd-grey-light);
  font-size: 0.95rem;
  transition: color var(--rd-transition);
}

.footer-col a:hover {
  color: var(--rd-red);
}

.footer-contact p {
  margin-bottom: 8px;
  color: var(--rd-grey-light);
}

.footer-contact strong {
  color: var(--rd-white);
  display: block;
  margin-bottom: 4px;
}

.social-links {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--rd-dark-2);
  border: 1px solid var(--rd-border);
  border-radius: 50%;
  color: var(--rd-light);
  transition: all var(--rd-transition);
  opacity: 0.5;
  pointer-events: none;
}

.social-links a.active {
  opacity: 1;
  pointer-events: auto;
}

.social-links a.active:hover {
  background: var(--rd-red);
  border-color: var(--rd-red);
  color: var(--rd-white);
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--rd-border);
  text-align: center;
  color: var(--rd-grey);
  font-size: 0.9rem;
}

.footer-bottom a {
  color: var(--rd-grey-light);
}

/* ---------- Page heading ---------- */
.page-header {
  padding: 80px 0 60px;
  background: linear-gradient(180deg, var(--rd-dark-2) 0%, var(--rd-dark) 100%);
  text-align: center;
}

.page-header h1 {
  margin-bottom: 16px;
}

.page-header p {
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.1rem;
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  font-size: 0.9rem;
  color: var(--rd-grey);
  margin-bottom: 24px;
}

.breadcrumb a {
  color: var(--rd-grey-light);
}

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-2 { margin-top: 1rem; }
.mt-4 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 2rem; }

/* ---------- Mentions légales ---------- */
.legal-content h2 {
  font-size: 1.4rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--rd-white);
}

.legal-content p,
.legal-content li {
  color: var(--rd-grey-light);
  margin-bottom: 0.75rem;
}

.legal-content ul {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}
