/*
 * VelocHost — Feuille de styles principale
 * v0.1.001 : 2026-04-04 — création initiale
 */

/* ============================================================
   VARIABLES & RESET
   ============================================================ */
:root {
  --bg:        #0d0d0d;
  --bg-alt:    #141414;
  --bg-card:   #1a1a1a;
  --accent:    #c8ff00;
  --accent-dim:#a0cc00;
  --text:      #e8e8e8;
  --text-muted:#888;
  --border:    #2a2a2a;
  --font-main: 'Inter', system-ui, sans-serif;
  --font-size-base: 1rem;
  --radius:    4px;
  --max-width: 1200px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-main);
  font-size: var(--font-size-base);
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dim); }

/* ============================================================
   NAVIGATION
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 13, 13, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
}

.nav-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  height: 64px;
}

.nav-logo {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.03em;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--text); }

.btn-client {
  background: var(--accent) !important;
  color: var(--bg) !important;
  padding: 0.45rem 1rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.85rem !important;
  opacity: 0.5;
  cursor: not-allowed;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-dim);
  color: var(--bg);
  border-color: var(--accent-dim);
}

.btn-secondary {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}
.btn-secondary:hover {
  background: var(--accent);
  color: var(--bg);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding: 6rem 2rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(200,255,0,0.07) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
}

.hero-title {
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -0.04em;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.hero-title span {
  color: var(--accent);
}

.hero-sub {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ============================================================
   SECTIONS COMMUNES
   ============================================================ */
.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 6rem 2rem;
}

.section-inner h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 3rem;
}

/* ============================================================
   PRODUITS
   ============================================================ */
.section-produits {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.produits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.produit-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: border-color 0.2s;
}

.produit-card:hover {
  border-color: var(--accent);
}

.produit-card.featured {
  border-color: var(--accent);
  position: relative;
}

.produit-card.featured::before {
  content: 'Populaire';
  position: absolute;
  top: -1px;
  right: 1.5rem;
  background: var(--accent);
  color: var(--bg);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 0 0 var(--radius) var(--radius);
}

.produit-card h3 {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.produit-card p {
  color: var(--text-muted);
  flex: 1;
}

/* ============================================================
   FEATURES
   ============================================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}

.feature {
  border-left: 2px solid var(--accent);
  padding-left: 1.5rem;
}

.feature h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.feature p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ============================================================
   CTA CONTACT
   ============================================================ */
.section-contact-cta {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
}

.section-contact-cta .section-inner {
  text-align: center;
}

.section-contact-cta p {
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

/* ============================================================
   PAGES INTERNES (contact, devis, commander)
   ============================================================ */
.page-section .section-inner {
  max-width: 680px;
}

.page-section h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 2.5rem;
}

/* ============================================================
   FORMULAIRES
   ============================================================ */
.form-velochost {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-group input,
.form-group select,
.form-group textarea {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-main);
  font-size: 1rem;
  padding: 0.75rem 1rem;
  transition: border-color 0.2s;
  outline: none;
  width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
}

.form-group select option {
  background: var(--bg-card);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-brand {
  font-weight: 800;
  color: var(--accent);
  font-size: 1.1rem;
}

.footer-copy {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ============================================================
   ANIMATIONS SCROLL
   ============================================================ */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

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

  .hero-cta {
    flex-direction: column;
  }

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