/* =============================================
   CHALLENGE MBS — Stylesheet
   Palette: Orange #FF6A00 / Noir #1a1a1a / Blanc
   Fonts: Barlow Condensed (titres) + Barlow (corps)
   ============================================= */

:root {
  --orange: #FF6A00;
  --orange-dark: #d95800;
  --orange-light: #fff0e6;
  --black: #1a1a1a;
  --black-soft: #2c2c2c;
  --gray: #f5f5f5;
  --gray-mid: #e0e0e0;
  --text: #333;
  --text-muted: #777;
  --white: #ffffff;
  --radius: 10px;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --transition: 0.2s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Barlow', sans-serif;
  color: var(--text);
  background: var(--white);
  font-size: 16px;
  line-height: 1.7;
}

h1, h2, h3, h4 {
  font-family: 'Barlow Condensed', sans-serif;
  line-height: 1.2;
}

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

/* ---- NAVBAR ---- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--black);
  transition: box-shadow var(--transition);
}
.navbar.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.4); }
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.nav-logo {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--orange);
  text-decoration: none;
  letter-spacing: 2px;
}
.nav-logo span { color: var(--white); }
.nav-links { display: flex; gap: 1.5rem; }
.nav-links a {
  color: #aaa;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--orange); }
.nav-cta {
  background: var(--orange);
  color: var(--white);
  padding: 9px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: background var(--transition);
}
.nav-cta:hover { background: var(--orange-dark); }
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}
.nav-mobile {
  display: none;
  flex-direction: column;
  background: var(--black-soft);
  padding: 1rem 2rem;
}
.nav-mobile a {
  color: #ccc;
  text-decoration: none;
  padding: 10px 0;
  font-size: 15px;
  border-bottom: 1px solid #333;
}
.nav-mobile .mobile-cta {
  margin-top: 12px;
  background: var(--orange);
  color: var(--white);
  text-align: center;
  padding: 12px;
  border-radius: 6px;
  font-weight: 600;
  border: none;
}
.nav-mobile.open { display: flex; }

/* ---- HERO ---- */
.hero {
  min-height: 100vh;
  background: var(--black);
  display: flex;
  align-items: center;
  position: relative;
  padding: 100px 2rem 4rem;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 70% 50%, rgba(255,106,0,0.12) 0%, transparent 60%),
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 40px,
      rgba(255,106,0,0.03) 40px,
      rgba(255,106,0,0.03) 41px
    );
}
.hero-content {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
}
.hero-tag {
  display: inline-block;
  background: var(--orange);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 1.25rem;
}
.hero h1 {
  font-size: clamp(42px, 7vw, 72px);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1rem;
  letter-spacing: -1px;
}
.hero h1 em {
  color: var(--orange);
  font-style: normal;
}
.hero p {
  color: #999;
  font-size: 17px;
  max-width: 520px;
  margin-bottom: 2rem;
}
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-primary {
  background: var(--orange);
  color: var(--white);
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: background var(--transition), transform var(--transition);
  display: inline-block;
}
.btn-primary:hover { background: var(--orange-dark); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--white);
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  border: 1.5px solid #444;
  transition: border-color var(--transition);
}
.btn-ghost:hover { border-color: var(--orange); color: var(--orange); }
.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: #555;
  font-size: 20px;
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ---- STATS ---- */
.stats-bar {
  background: var(--orange);
  padding: 1.75rem 2rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat-item {
  text-align: center;
  padding: 0 1rem;
  border-right: 1px solid rgba(255,255,255,0.25);
}
.stat-item:last-child { border-right: none; }
.stat-num {
  display: block;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}
.stat-num small {
  font-size: 18px;
  font-weight: 400;
}
.stat-label {
  display: block;
  color: rgba(255,255,255,0.8);
  font-size: 12px;
  margin-top: 4px;
}

/* ---- SERVICES ---- */
.services {
  padding: 5rem 0;
  background: var(--gray);
}
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}
.section-header.light h2 { color: var(--white); }
.section-tag {
  display: inline-block;
  color: var(--orange);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.section-header h2 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  color: var(--black);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--gray-mid);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  position: relative;
  transition: border-color var(--transition), transform var(--transition);
}
.service-card:hover { border-color: var(--orange); transform: translateY(-3px); }
.service-card.featured { border: 2px solid var(--orange); }
.service-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--orange);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 14px;
  border-radius: 20px;
  white-space: nowrap;
  letter-spacing: 0.5px;
}
.service-icon { font-size: 32px; margin-bottom: 1rem; }
.service-card h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 0.75rem;
}
.service-card p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.6;
}
.service-list {
  list-style: none;
  margin-bottom: 1.25rem;
}
.service-list li {
  font-size: 13px;
  color: var(--text);
  padding: 4px 0;
  padding-left: 16px;
  position: relative;
}
.service-list li::before {
  content: '✓';
  color: var(--orange);
  position: absolute;
  left: 0;
  font-weight: 700;
}
.service-link {
  color: var(--orange);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: letter-spacing var(--transition);
}
.service-link:hover { letter-spacing: 0.5px; }

/* ---- ETAPES ---- */
.etapes {
  background: var(--black);
  padding: 5rem 0;
}
.etapes-grid {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  justify-content: center;
}
.etape {
  flex: 1;
  max-width: 280px;
  text-align: center;
}
.etape-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 56px;
  font-weight: 700;
  color: rgba(255,106,0,0.25);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.etape h4 {
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.5rem;
}
.etape p {
  font-size: 14px;
  color: #777;
  line-height: 1.6;
}
.etape-arrow {
  color: var(--orange);
  font-size: 28px;
  padding-top: 1.5rem;
  flex-shrink: 0;
}

/* ---- FORMULAIRE DEVIS ---- */
.devis-section {
  padding: 5rem 0;
  background: var(--white);
}
.devis-wrapper {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  align-items: start;
}
.devis-intro .section-tag { margin-bottom: 8px; display: block; }
.devis-intro h2 {
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 700;
  color: var(--black);
  margin-bottom: 1rem;
}
.devis-intro p {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}
.devis-guarantees { display: flex; flex-direction: column; gap: 8px; }
.guarantee {
  font-size: 14px;
  color: var(--black);
  font-weight: 500;
}
.guarantee { color: var(--orange); }

.devis-form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full { grid-column: 1 / -1; }
.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--black);
  letter-spacing: 0.3px;
}
.form-group input,
.form-group select,
.form-group textarea {
  border: 1.5px solid var(--gray-mid);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 14px;
  font-family: 'Barlow', sans-serif;
  color: var(--text);
  background: #fafafa;
  outline: none;
  transition: border-color var(--transition);
  width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--orange);
  background: var(--white);
}
.form-group textarea { resize: vertical; min-height: 80px; }
.btn-submit {
  background: var(--orange);
  color: var(--white);
  border: none;
  padding: 14px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  font-family: 'Barlow Condensed', sans-serif;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--transition);
  width: 100%;
}
.btn-submit:hover { background: var(--orange-dark); }
.btn-submit:disabled { background: #ccc; cursor: not-allowed; }
.form-legal {
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.5;
}
.form-message {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
}
.form-message.success { background: #e6f9ed; color: #1a6e35; border: 1px solid #a3d9b5; }
.form-message.error { background: #fdecea; color: #8b1a1a; border: 1px solid #f5b8b8; }

/* ---- ACTUALITES ---- */
.actus-section {
  padding: 5rem 0;
  background: var(--gray);
}
.actus-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.actu-card {
  background: var(--white);
  border: 1px solid var(--gray-mid);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--transition), border-color var(--transition);
  text-decoration: none;
  color: inherit;
  display: block;
}
.actu-card:hover { transform: translateY(-3px); border-color: var(--orange); }
.actu-thumb {
  height: 160px;
  background: var(--black);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.actu-thumb img { width: 100%; height: 100%; object-fit: cover; }
.actu-thumb-placeholder {
  width: 100%;
  height: 100%;
  background: var(--black-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
}
.actu-body { padding: 1.25rem; }
.actu-tag {
  font-size: 10px;
  color: var(--orange);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.actu-body h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--black);
  margin: 6px 0 8px;
  line-height: 1.4;
}
.actu-body p { font-size: 12px; color: var(--text-muted); }
.actu-loading { color: var(--text-muted); font-size: 14px; padding: 2rem; text-align: center; grid-column: 1/-1; }
.actus-footer { text-align: center; }
.btn-outline {
  display: inline-block;
  border: 2px solid var(--orange);
  color: var(--orange);
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: background var(--transition), color var(--transition);
  font-family: 'Barlow Condensed', sans-serif;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.btn-outline:hover { background: var(--orange); color: var(--white); }

/* ---- CONTACT ---- */
.contact-section {
  padding: 5rem 0;
  background: var(--white);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.contact-info .section-tag { display: block; margin-bottom: 8px; }
.contact-info h2 {
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 700;
  color: var(--black);
  margin-bottom: 2rem;
}
.contact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.25rem;
}
.contact-icon { font-size: 22px; flex-shrink: 0; }
.contact-item strong { display: block; font-size: 14px; color: var(--black); margin-bottom: 2px; }
.contact-item p { font-size: 14px; color: var(--text-muted); }
.contact-cta {
  background: var(--black);
  border-radius: var(--radius);
  padding: 2.5rem;
  text-align: center;
}
.contact-cta p {
  color: #aaa;
  font-size: 16px;
  margin-bottom: 1.5rem;
}

/* ---- FOOTER ---- */
.footer { background: var(--black); padding: 4rem 0 2rem; }
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid #333;
}
.footer-logo {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--orange);
  letter-spacing: 2px;
  margin-bottom: 0.75rem;
}
.footer-logo span { color: var(--white); }
.footer-brand p { color: #666; font-size: 13px; line-height: 1.6; }
.footer-links h4 {
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.footer-links a {
  display: block;
  color: #666;
  text-decoration: none;
  font-size: 13px;
  padding: 4px 0;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--orange); }
.footer-bottom { text-align: center; }
.footer-bottom p { color: #444; font-size: 12px; }

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: flex; }
  .services-grid, .actus-grid { grid-template-columns: 1fr; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.15); padding-bottom: 1rem; }
  .stat-item:nth-child(3), .stat-item:nth-child(4) { border-bottom: none; }
  .devis-wrapper { grid-template-columns: 1fr; gap: 2rem; }
  .form-row { grid-template-columns: 1fr; }
  .etapes-grid { flex-direction: column; align-items: center; }
  .etape-arrow { transform: rotate(90deg); padding: 0; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
}

/* ---- MOYENS DE TRANSPORT ---- */
.moyens-section { padding: 5rem 0; background: #fff; }
.moyens-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 1.5rem; }
.moyen-card { border-radius: var(--radius); overflow: hidden; position: relative; }
.moyen-card img { width: 100%; height: 180px; object-fit: cover; display: block; }
.moyen-label { background: rgba(26,26,26,0.85); color: #fff; font-size: 12px; font-weight: 600; padding: 8px 12px; text-align: center; }
.moyens-desc { font-size: 14px; color: var(--text-muted); line-height: 1.7; max-width: 800px; margin: 0 auto; text-align: center; }
@media (max-width: 900px) { .moyens-grid { grid-template-columns: repeat(2, 1fr) !important; } }
@media (max-width: 480px) { .moyens-grid { grid-template-columns: 1fr !important; } .moyen-card img { height: 220px; } }
