/* ============================================
   VÉLOATELIER – Feuille de style principale
   ============================================ */

/* --- Variables & Reset --- */
:root {
  --bg: #111110;
  --bg2: #1a1918;
  --bg-light: #f5f0eb;
  --text: #f0ebe4;
  --text-muted: #9e9890;
  --accent: #e8622a;
  --accent-hover: #d04f1a;
  --border: rgba(255,255,255,0.08);
  --font-title: 'Bebas Neue', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --radius: 12px;
  --transition: 0.3s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* --- Utilitaires --- */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 680px; }
.section { padding: 100px 0; }
.section-dark { background: var(--bg2); }
.section-accent { background: var(--accent); color: #fff; }
.section-accent .section-sub { color: rgba(255,255,255,0.8); }

.section-title {
  font-family: var(--font-title);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  letter-spacing: 1px;
  line-height: 1;
  margin-bottom: 12px;
}

.section-sub {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 56px;
}

/* --- Boutons --- */
.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 14px 32px;
  border-radius: 6px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-2px); }
.btn-primary.btn-full { width: 100%; text-align: center; font-size: 1.05rem; padding: 16px; }

.btn-ghost {
  display: inline-block;
  color: var(--text);
  padding: 14px 28px;
  border-radius: 6px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid var(--border);
  transition: border-color var(--transition), color var(--transition);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ============================================
   NAVIGATION
   ============================================ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 24px;
  transition: background 0.4s, box-shadow 0.4s;
}

#navbar.scrolled {
  background: rgba(17,17,16,0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  font-family: var(--font-title);
  font-size: 1.6rem;
  letter-spacing: 1px;
  color: var(--text);
  text-decoration: none;
}

.nav-links {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--text); }

.btn-nav {
  background: var(--accent) !important;
  color: #fff !important;
  padding: 9px 22px;
  border-radius: 6px;
}
.btn-nav:hover { background: var(--accent-hover) !important; }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.burger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.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); }

/* ============================================
   HERO
   ============================================ */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 100px 24px 60px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 70% 50%, rgba(232,98,42,0.12) 0%, transparent 70%),
              radial-gradient(ellipse 40% 40% at 20% 80%, rgba(232,98,42,0.06) 0%, transparent 60%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  margin: 0 auto;
  animation: fadeUp 0.9s ease both;
}

.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 16px;
}

.hero-title {
  font-family: var(--font-title);
  font-size: clamp(3.5rem, 9vw, 7rem);
  line-height: 1;
  letter-spacing: 1px;
  margin-bottom: 24px;
}
.hero-title em {
  font-style: normal;
  color: var(--accent);
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Roue animée */
.hero-wheel {
  position: absolute;
  right: -60px;
  top: 50%;
  transform: translateY(-50%);
  width: clamp(280px, 40vw, 520px);
  color: rgba(232,98,42,0.12);
  pointer-events: none;
  animation: spinWheel 18s linear infinite;
  z-index: 1;
}

@keyframes spinWheel {
  from { transform: translateY(-50%) rotate(0deg); }
  to   { transform: translateY(-50%) rotate(360deg); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================
   SERVICES – CARDS
   ============================================ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
  opacity: 0;
  transform: translateY(20px);
}

.card.visible {
  animation: fadeUp 0.6s ease both;
}

.card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: 0 12px 32px rgba(232,98,42,0.15);
}

.card-icon { font-size: 2rem; margin-bottom: 16px; }
.card h3 { font-size: 1.15rem; font-weight: 500; margin-bottom: 10px; }
.card p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; }

/* ============================================
   POURQUOI NOUS – REASONS
   ============================================ */
.reasons-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.reason {
  opacity: 0;
  transform: translateY(20px);
}
.reason.visible { animation: fadeUp 0.6s ease both; }

.reason-number {
  display: block;
  font-family: var(--font-title);
  font-size: 3rem;
  color: var(--accent);
  opacity: 0.5;
  line-height: 1;
  margin-bottom: 12px;
}
.reason h3 { font-size: 1.1rem; font-weight: 500; margin-bottom: 8px; }
.reason p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.65; }

/* ============================================
   TARIFS
   ============================================ */
.tarifs-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.tarif-row {
  display: flex;
  align-items: center;
  padding: 20px 28px;
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
  opacity: 0;
  transform: translateX(-12px);
}
.tarif-row:last-child { border-bottom: none; }
.tarif-row.visible { animation: slideIn 0.5s ease both; }
.tarif-row:hover { background: var(--bg2); }

@keyframes slideIn {
  from { opacity: 0; transform: translateX(-12px); }
  to   { opacity: 1; transform: translateX(0); }
}

.tarif-name { font-weight: 500; font-size: 1rem; flex-shrink: 0; }
.tarif-dots {
  flex: 1;
  height: 1px;
  background: repeating-linear-gradient(to right, var(--border) 0, var(--border) 4px, transparent 4px, transparent 10px);
  margin: 0 16px;
}
.tarif-price { color: var(--accent); font-weight: 500; font-size: 0.95rem; flex-shrink: 0; }

/* ============================================
   CONTACT
   ============================================ */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 40px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.contact-form input,
.contact-form textarea {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 8px;
  padding: 14px 18px;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color var(--transition), background var(--transition);
  resize: none;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: rgba(255,255,255,0.5); }
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.18);
}

.contact-form .btn-primary {
  background: #fff;
  color: var(--accent);
  font-weight: 600;
}
.contact-form .btn-primary:hover { background: #f0e8e0; }

.contact-info {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  justify-content: center;
}
.info-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.85);
}

/* ============================================
   FOOTER
   ============================================ */
footer {
  background: #0c0c0b;
  padding: 28px 24px;
  border-top: 1px solid var(--border);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
footer .logo { font-size: 1.3rem; }
footer p { color: var(--text-muted); font-size: 0.85rem; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .reasons-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-wheel { right: -100px; width: 280px; }
}

@media (max-width: 680px) {
  .burger { display: flex; }

  .nav-links {
    position: fixed;
    top: 68px; left: 0; right: 0;
    background: rgba(17,17,16,0.97);
    backdrop-filter: blur(12px);
    flex-direction: column;
    gap: 0;
    padding: 16px 0 24px;
    transform: translateY(-110%);
    transition: transform 0.4s ease;
    border-bottom: 1px solid var(--border);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links li { width: 100%; text-align: center; }
  .nav-links a { display: block; padding: 14px 24px; font-size: 1.05rem; }
  .btn-nav { margin: 8px 24px 0; border-radius: 6px; }

  .section { padding: 72px 0; }
  .cards-grid { grid-template-columns: 1fr; }
  .reasons-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .form-row { grid-template-columns: 1fr; }

  .hero-wheel { display: none; }
  .contact-info { flex-direction: column; align-items: flex-start; }
  .tarif-row { padding: 16px 18px; }

  .footer-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 420px) {
  .reasons-grid { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn-ghost { text-align: center; }
}