/* ═══════════════════════════════════════
   CLOCHETTES CARS — style.css
   ═══════════════════════════════════════ */

:root {
  --black:       #0a0a0a;
  --dark:        #111111;
  --border:      #2a2a2a;
  --mid:         #333333;
  --muted:       #888888;
  --accent:      #e63946;
  --accent-dim:  rgba(230,57,70,0.12);
  --accent-glow: rgba(230,57,70,0.25);
  --white:       #ffffff;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: #e8e8e8;
  font-family: 'Barlow', sans-serif;
  font-weight: 300;
  overflow-x: hidden;
}

/* ─────────────────────────────────────
   HEADER
───────────────────────────────────── */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(10,10,10,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: border-color 0.3s;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.header-logo img {
  height: 42px;
  width: auto;
  object-fit: contain;
  display: block;
}

.header-logo span {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.04em;
  color: var(--white);
  text-transform: uppercase;
}

.header-logo span em {
  color: var(--accent);
  font-style: normal;
}

.header-nav {
  display: flex;
  gap: 32px;
  align-items: center;
}

.header-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.header-nav a:hover { color: var(--white); }

.header-nav .cta-nav {
  background: var(--accent);
  color: var(--white);
  padding: 9px 20px;
  border-radius: 4px;
  font-weight: 600;
}

.header-nav .cta-nav:hover { background: #ff4f5e; }

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  width: 40px;
  height: 40px;
}

.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s;
}

.burger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--dark);
  border-top: 1px solid var(--border);
  padding: 0 24px 20px;
}

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

.mobile-nav a {
  color: #e8e8e8;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  letter-spacing: 0.04em;
}

.mobile-nav a:last-child { border-bottom: none; }

.mobile-nav .mobile-cta {
  color: var(--accent);
  font-weight: 600;
  margin-top: 4px;
}

/* ─────────────────────────────────────
   HERO — image fixe, texte par-dessus
───────────────────────────────────── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 560px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.25) 0%,
    rgba(0,0,0,0.05) 35%,
    rgba(0,0,0,0.6)  70%,
    rgba(0,0,0,0.9)  100%
  );
}

.hero-content {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(230,57,70,0.15);
  border: 1px solid rgba(230,57,70,0.3);
  color: var(--white);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.badge-dot {
  width: 7px;
  height: 7px;
  background: #22c55e;
  border-radius: 50%;
  flex-shrink: 0;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(1.4); }
}

.hero-content h1 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: clamp(36px, 7vw, 80px);
  line-height: 0.95;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 14px;
}

.hero-content h1 span {
  color: var(--accent);
  display: block;
}

.hero-content p {
  font-size: 15px;
  color: rgba(255,255,255,0.65);
  max-width: 500px;
  line-height: 1.7;
  margin-bottom: 28px;
}

.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 32px;
  border-radius: 4px;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
  background: #ff4f5e;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--accent-glow);
}

/* ─────────────────────────────────────
   SECTION BASE
───────────────────────────────────── */
.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 90px 24px;
}

.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.section-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: clamp(30px, 5vw, 52px);
  text-transform: uppercase;
  line-height: 1;
  color: var(--white);
  margin-bottom: 48px;
}

.light .section-title { color: #111; }

/* ─────────────────────────────────────
   SERVICES
───────────────────────────────────── */
#services { background: #fff; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* Carte avec photo */
.service-card {
  border-radius: 10px;
  border: 1px solid #e8e8e8;
  overflow: hidden;
  background: #fff;
  transition: box-shadow 0.25s, transform 0.25s;
  position: relative;
}

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

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}

.service-card:hover::before { transform: scaleX(1); }

.service-photo {
  width: 100%;
  height: 180px;
  overflow: hidden;
}

.service-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.service-card:hover .service-photo img { transform: scale(1.05); }

.service-body {
  padding: 24px 22px;
}

/* Carte sans photo — fond légèrement teinté */
.service-card:not(.has-photo) {
  background: #fafafa;
}

.service-card:not(.has-photo) .service-body {
  padding: 32px 24px;
}

.service-icon {
  font-size: 32px;
  display: block;
  margin-bottom: 14px;
}

.service-card h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #111;
  margin-bottom: 8px;
}

.service-card p {
  font-size: 14px;
  color: #777;
  line-height: 1.6;
}

/* ─────────────────────────────────────
   À PROPOS
───────────────────────────────────── */
.about-section {
  background: #fff;
  border-top: 1px solid #e8e8e8;
  border-bottom: 1px solid #e8e8e8;
}

.about-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 90px 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.about-text p {
  font-size: 16px;
  color: #555;
  line-height: 1.8;
  margin-bottom: 14px;
}

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

.stat-box {
  background: #f5f5f5;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 28px 20px;
  text-align: center;
  transition: border-color 0.3s;
}

.stat-box:hover { border-color: var(--accent); }

.stat-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 38px;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 11px;
  color: #888;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ─────────────────────────────────────
   RDV
───────────────────────────────────── */
.rdv-section { background: #f8f8f8; }

.rdv-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 90px 24px;
}

.calendly-wrap {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  overflow: hidden;
}

.calendly-wrap iframe { display: block; }

/* ─────────────────────────────────────
   CONTACT
───────────────────────────────────── */
.contact-section {
  background: #fff;
  border-top: 1px solid #e8e8e8;
}

.contact-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 90px 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 0;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  background: #f8f8f8;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  transition: border-color 0.25s;
}

.contact-item:hover { border-color: var(--accent); }

.contact-item-icon {
  width: 40px;
  height: 40px;
  background: var(--accent-dim);
  border: 1px solid rgba(230,57,70,0.2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.contact-item-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #999;
  margin-bottom: 3px;
}

.contact-item-value {
  font-size: 15px;
  color: #111;
  line-height: 1.5;
}

.contact-item-value a {
  color: var(--accent);
  text-decoration: none;
}

.contact-item-value a:hover { text-decoration: underline; }

.map-wrap {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #e8e8e8;
  height: 100%;
  min-height: 380px;
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  min-height: 380px;
  display: block;
}

/* ─────────────────────────────────────
   FOOTER
───────────────────────────────────── */
footer {
  background: var(--black);
  border-top: 1px solid var(--border);
  padding: 28px 24px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-logo {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.footer-copy { font-size: 12px; color: var(--mid); }

.footer-links { display: flex; gap: 24px; }

.footer-links a {
  font-size: 12px;
  color: var(--mid);
  text-decoration: none;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.2s;
}

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

/* ─────────────────────────────────────
   SCROLL REVEAL
───────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─────────────────────────────────────
   RESPONSIVE — TABLETTE (≤ 960px)
───────────────────────────────────── */
@media (max-width: 960px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-inner,
  .contact-inner {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 72px 24px;
  }

  .map-wrap,
  .map-wrap iframe { min-height: 300px; }
}

/* ─────────────────────────────────────
   RESPONSIVE — MOBILE (≤ 640px)
───────────────────────────────────── */
@media (max-width: 640px) {
  /* Header */
  .header-nav { display: none; }
  .burger { display: flex; }
  .header-inner { padding: 0 16px; }

  /* Hero */
  .hero { height: 100svh; min-height: 500px; }

  .hero-content { padding: 0 16px 64px; }

  .hero-content h1 { font-size: 36px; }
  .hero-content p  { font-size: 14px; }

  /* Section */
  .section { padding: 60px 16px; }
  .section-title { font-size: 28px; margin-bottom: 28px; }

  /* Services — 1 colonne */
  .services-grid { grid-template-columns: 1fr; gap: 14px; }

  .service-photo { height: 200px; }

  /* About */
  .about-inner { padding: 60px 16px; gap: 36px; }

  .stats-grid { gap: 10px; }
  .stat-num { font-size: 32px; }

  /* RDV */
  .rdv-inner { padding: 60px 16px; }
  .calendly-wrap iframe { height: 580px; }

  /* Contact */
  .contact-inner { padding: 60px 16px; }
  .contact-item { padding: 14px; }

  /* Footer */
  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  .footer-links { justify-content: center; }
}
/* ═══════════════════════════════════════
   OPTIMISATIONS MOBILES — CORRECTIONS
═══════════════════════════════════════ */
@media (max-width: 640px) {

  /* Évite que le header recouvre le contenu */
  body {
    padding-top: 68px;
  }

  /* Empêche tout débordement horizontal */
  html, body {
    overflow-x: hidden;
  }

  /* Empêche les textes de déborder */
  p, h1, h2, h3 {
    word-break: break-word;
  }

  /* Services : padding plus cohérent */
  .service-card:not(.has-photo) .service-body {
    padding: 24px;
  }

  /* Contact : map plus petite */
  .map-wrap iframe {
    height: 300px;
  }

  /* Stats : meilleure lisibilité */
  .stats-grid {
    gap: 12px;
  }
}
