/* ================================
   PNEU CIGALOIS - CSS
   ================================ */

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

:root {
  --primary: #E63329;
  --dark: #E63329;
  --gray: #fce8e7;
  --text: #fff;
  --light: #fff;
  --border: #c0201a;
}

body {
  font-family: 'Inter', sans-serif;
  color: #333;
  line-height: 1.6;
  background: #fff;
}

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

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

/* ================================
   HEADER
   ================================ */
header {
  background: var(--dark);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
}

.logo {
  font-size: 1.4rem;
  color: var(--light);
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo strong { color: var(--primary); }

nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

nav a {
  color: #ccc;
  font-size: 0.95rem;
  transition: color 0.2s;
}

nav a:hover { color: var(--light); }

.btn-nav {
  background: var(--primary);
  color: white !important;
  padding: 8px 18px;
  border-radius: 6px;
  font-weight: 600;
  transition: background 0.2s;
}

.btn-nav:hover { background: #c0271e; }

.burger {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  background: #111;
  padding: 16px 20px;
  gap: 16px;
}

.mobile-menu a {
  color: #ccc;
  font-size: 1rem;
}

.mobile-menu.open { display: flex; }

/* ================================
   HERO
   ================================ */
.hero {
  background: linear-gradient(135deg, #E63329 0%, #c0201a 100%);
  color: white;
  padding: 80px 0;
}

.hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.hero-text { flex: 1; }

.hero-text h1 {
  font-size: 3rem;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero-text h1 span { color: var(--primary); }

.hero-text p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 32px;
  max-width: 480px;
}

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

.btn-primary {
  background: var(--primary);
  color: white;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  transition: background 0.2s, transform 0.1s;
  display: inline-block;
}

.btn-primary:hover {
  background: #c0271e;
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: white;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid rgba(255,255,255,0.6);
  transition: border-color 0.2s;
  display: inline-block;
}

.btn-secondary:hover { border-color: white; }

.hero-badge {
  flex-shrink: 0;
}

/* ================================
   HERO RIGHT
   ================================ */
.hero-right {
  flex-shrink: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  align-items: flex-start;
  max-width: 280px;
}

.sub-choices {
  display: none;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  width: 100%;
  animation: fadeIn 0.3s ease;
}

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

/* tailles gérées dans bloc tire-inner */

/* ================================
   VOITURE + PNEUS (ancien - vide)
   ================================ */
.car-container {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  position: relative;
}

.car-wheels {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  position: relative;
  z-index: 2;
}

.wheel-row {
  display: flex;
  gap: 8px;
  position: relative;
}

.car-body {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 130px;
  background: linear-gradient(180deg, #c0201a, #E63329);
  border-radius: 30px;
  z-index: 1;
  box-shadow: 0 0 20px rgba(0,0,0,0.3);
}

.car-container.four-wheels .car-body { display: block; }

.rear-wheels {
  display: none;
  animation: slideDown 0.3s ease;
}

.car-container.four-wheels .rear-wheels { display: flex; }

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

.car-toggle {
  margin-top: 8px;
  cursor: pointer;
  color: rgba(255,255,255,0.8);
  font-size: 0.8rem;
  font-weight: 600;
  transition: color 0.2s;
}
.car-toggle:hover { color: white; }

/* PNEUS */
.tire-badge {
  cursor: pointer;
  text-decoration: none;
  display: block;
}

.tire-outer {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  /* Bande de roulement style pneu */
  background:
    repeating-conic-gradient(
      #111 0deg 9deg,
      #2a2a2a 9deg 10deg,
      #111 10deg 19deg,
      #333 19deg 20deg
    );
  border: 5px solid #050505;
  padding: 15px;
  transition: transform 0.3s ease, box-shadow 0.3s;
  box-shadow:
    0 6px 20px rgba(0,0,0,0.6),
    inset 0 0 0 3px rgba(255,255,255,0.06);
}

.tire-badge:hover .tire-outer {
  transform: rotate(18deg) scale(1.07);
  box-shadow: 0 8px 28px rgba(0,0,0,0.7), 0 0 0 3px rgba(255,255,255,0.35);
}

.tire-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  /* Jante aluminium avec rayons */
  background:
    radial-gradient(circle at 50% 50%, #aaa 0%, #666 18%, transparent 18%),
    conic-gradient(
      from 0deg,
      #777 0deg 10deg, #333 10deg 30deg,
      #888 30deg 40deg, #333 40deg 60deg,
      #777 60deg 70deg, #333 70deg 90deg,
      #888 90deg 100deg, #333 100deg 120deg,
      #777 120deg 130deg, #333 130deg 150deg,
      #888 150deg 160deg, #333 160deg 180deg,
      #777 180deg 190deg, #333 190deg 210deg,
      #888 210deg 220deg, #333 220deg 240deg,
      #777 240deg 250deg, #333 250deg 270deg,
      #888 270deg 280deg, #333 280deg 300deg,
      #777 300deg 310deg, #333 310deg 330deg,
      #888 330deg 340deg, #333 340deg 360deg
    );
  border: 2px solid #1a1a1a;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  box-shadow: inset 0 0 16px rgba(0,0,0,0.7);
  position: relative;
}

/* Centre de jante */
.tire-inner::after {
  content: '';
  position: absolute;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: radial-gradient(circle, #ccc 0%, #888 50%, #555 100%);
  border: 2px solid #333;
  z-index: 0;
}

.tire-icon {
  font-size: 1.3rem;
  margin-bottom: 2px;
  position: relative;
  z-index: 1;
}

.tire-label {
  font-size: 0.67rem;
  line-height: 1.3;
  color: white;
  text-shadow: 0 1px 4px rgba(0,0,0,0.9);
  position: relative;
  z-index: 1;
}
.tire-label strong { color: white; font-size: 0.7rem; }

/* Taille uniforme pour sous-pneus */
.sub-tire .tire-outer { width: 140px !important; height: 140px !important; }
.tire-static .tire-outer { border-color: rgba(255,255,255,0.15); }

/* DEVIS */
.devis {
  padding: 80px 0;
  background: #fff;
}

.devis-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 0.9rem;
  color: #333;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 12px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: #E63329;
}

.badge-circle {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 4px solid white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: rgba(255,255,255,0.15);
}

.badge-top {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.8);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.badge-main {
  font-size: 2rem;
  font-weight: 900;
  color: white;
  line-height: 1;
}

.badge-sub {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.8);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ================================
   SERVICES
   ================================ */
.services {
  padding: 80px 0;
  background: #fff;
}

h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--dark);
}

.section-sub {
  color: #666;
  margin-bottom: 48px;
  font-size: 1.05rem;
}

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

.service-card {
  background: #fff;
  border-radius: 12px;
  padding: 32px 24px;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
  border: 2px solid #E63329;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.service-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.service-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--dark);
}

.service-card p {
  font-size: 0.9rem;
  color: #666;
}

.tarifs-table {
  width: 100%;
  border-collapse: collapse;
}

.tarifs-table td {
  padding: 6px 4px;
  font-size: 0.9rem;
  border-bottom: 1px solid #f0e0e0;
  color: #333;
}

.tarifs-table td:last-child {
  text-align: right;
  color: #E63329;
}

/* ================================
   POURQUOI NOUS
   ================================ */
.why-us {
  background: #E63329;
  color: white;
  padding: 60px 0;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
}

.why-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.why-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
}

.why-item h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.why-item p {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.85);
}

/* ================================
   RDV
   ================================ */
.rdv {
  padding: 80px 0;
  background: #fce8e7;
  text-align: center;
}

.calendly-mock {
  background: white;
  border-radius: 12px;
  padding: 60px 40px;
  max-width: 500px;
  margin: 0 auto;
  border: 2px dashed var(--border);
}

.calendly-mock p {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 12px;
}

/* ================================
   HORAIRES & CONTACT
   ================================ */
.info-section {
  padding: 80px 0;
  background: white;
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.info-block h2 {
  margin-bottom: 24px;
}

.horaires-table {
  width: 100%;
  border-collapse: collapse;
}

.horaires-table td {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}

.horaires-table td:first-child {
  font-weight: 600;
  width: 110px;
}

.horaires-table tr.fermé td {
  color: #aaa;
}

.contact-info p {
  margin-bottom: 12px;
  font-size: 1rem;
}

.contact-info a {
  color: var(--primary);
  font-weight: 600;
}

.map-placeholder {
  margin-top: 20px;
  border-radius: 8px;
  overflow: hidden;
}

/* ================================
   FOOTER
   ================================ */
footer {
  background: #E63329;
  color: rgba(255,255,255,0.9);
  padding: 32px 0;
  text-align: center;
}

.footer-inner p {
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.footer-copy {
  margin-top: 16px !important;
  font-size: 0.8rem !important;
  color: rgba(255,255,255,0.6);
}

/* ================================
   RESPONSIVE
   ================================ */
@media (max-width: 768px) {
  nav { display: none; }
  .burger { display: block; }

  .hero-inner {
    flex-direction: column;
    text-align: center;
  }

  .hero-text h1 { font-size: 2.2rem; }
  .hero-cta { justify-content: center; }
  .hero-badge { display: none; }

  .info-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  h2 { font-size: 1.6rem; }
}
