/* ============================================
   FG Motosport - reconstruction statique
   Palette : noir / blanc / rouge motorsport
   ============================================ */

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

:root {
  --bg-dark: #0e0e0e;
  --bg-darker: #050505;
  --bg-light: #ffffff;
  --bg-soft: #f5f5f5;
  --accent: #d62828;
  --accent-hover: #a51e1e;
  --text-dark: #1a1a1a;
  --text-light: #ffffff;
  --text-muted: #8a8a8a;
  --border: #2a2a2a;
  --border-light: #e5e5e5;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--bg-light);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent-hover); }

h1, h2, h3, h4 {
  font-family: 'Oswald', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  line-height: 1.2;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); margin-bottom: 1rem; }
h3 { font-size: 1.3rem; margin-bottom: .5rem; }
h4 { font-size: 1.05rem; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ===== TOPBAR ===== */
.topbar {
  background: var(--bg-darker);
  color: var(--text-light);
  font-size: .85rem;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.topbar-info { display: flex; gap: 24px; flex-wrap: wrap; }
.topbar-info span { display: flex; align-items: center; gap: 6px; }
.topbar a { color: var(--text-light); }
.topbar a:hover { color: var(--accent); }

/* ===== HEADER / NAV ===== */
.site-header {
  background: var(--bg-dark);
  border-bottom: 3px solid var(--accent);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,.4);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--text-light);
}
.brand img { height: 56px; width: auto; }
.brand-text {
  font-family: 'Oswald', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-light);
}
.brand-text .accent { color: var(--accent); }

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 8px;
  flex-wrap: wrap;
}
.main-nav a {
  color: var(--text-light);
  font-weight: 600;
  font-size: .95rem;
  padding: 8px 14px;
  text-transform: uppercase;
  letter-spacing: .5px;
  border-radius: 2px;
  transition: all .2s;
}
.main-nav a:hover, .main-nav a.active {
  background: var(--accent);
  color: #fff;
}

/* mobile */
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  color: #fff;
  font-size: 1.6rem;
  cursor: pointer;
}
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--bg-dark);
    border-top: 1px solid var(--border);
  }
  .main-nav.open { display: block; }
  .main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 8px 24px;
  }
  .main-nav a { display: block; padding: 12px 0; }
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 540px;
  background: linear-gradient(rgba(0,0,0,.65), rgba(0,0,0,.45)), url('../images/hero.jpg') center/cover no-repeat;
  color: var(--text-light);
  display: flex;
  align-items: center;
  text-align: center;
}
.hero-inner { width: 100%; padding: 80px 0; }
.hero h1 { margin-bottom: 1rem; text-shadow: 0 2px 12px rgba(0,0,0,.6); }
.hero .lead {
  font-size: 1.25rem;
  max-width: 720px;
  margin: 0 auto 2rem;
  font-weight: 300;
  letter-spacing: .5px;
}

.btn {
  display: inline-block;
  padding: 14px 32px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 2px;
  border: 2px solid var(--accent);
  transition: all .2s;
  cursor: pointer;
  font-family: inherit;
  font-size: .95rem;
}
.btn:hover {
  background: transparent;
  color: var(--accent);
}
.btn-outline {
  background: transparent;
  color: #fff;
  border-color: #fff;
  margin-left: 12px;
}
.btn-outline:hover {
  background: #fff;
  color: var(--text-dark);
}

/* ===== PAGE HEADER (banner sur pages internes) ===== */
.page-header {
  background: linear-gradient(rgba(0,0,0,.7), rgba(0,0,0,.6)), url('../images/hero2.jpg') center/cover no-repeat;
  color: var(--text-light);
  padding: 80px 0 60px;
  text-align: center;
}
.page-header h1 { margin-bottom: .5rem; }
.breadcrumb { font-size: .9rem; color: #ccc; }
.breadcrumb a { color: #ccc; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { margin: 0 8px; opacity: .6; }

/* ===== SECTIONS ===== */
section { padding: 70px 0; }
.section-alt { background: var(--bg-soft); }
.section-dark { background: var(--bg-dark); color: var(--text-light); }
.section-dark h2, .section-dark h3 { color: var(--text-light); }

.section-title {
  text-align: center;
  margin-bottom: 50px;
}
.section-title h2 { display: inline-block; position: relative; padding-bottom: 14px; }
.section-title h2::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 60px; height: 3px;
  background: var(--accent);
}
.section-title .subtitle {
  margin-top: 14px;
  color: var(--text-muted);
  font-size: 1rem;
}

/* ===== INTRO BLOCK (homepage) ===== */
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.intro-grid img { border-radius: 4px; box-shadow: 0 8px 30px rgba(0,0,0,.15); }
.intro-text h2 { margin-bottom: 1.2rem; }
.intro-text p { margin-bottom: 1rem; color: #444; }
.intro-features {
  list-style: none;
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.intro-features li {
  padding: 12px 16px;
  background: var(--bg-soft);
  border-left: 3px solid var(--accent);
  font-weight: 600;
  font-size: .95rem;
}
@media (max-width: 800px) {
  .intro-grid { grid-template-columns: 1fr; gap: 30px; }
  .intro-features { grid-template-columns: 1fr; }
}

/* ===== SERVICES GRID ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.service-card {
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0,0,0,.08);
  transition: transform .25s, box-shadow .25s;
  display: flex;
  flex-direction: column;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0,0,0,.18);
}
.service-card-img {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #ddd;
}
.service-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .35s;
}
.service-card:hover .service-card-img img { transform: scale(1.05); }
.service-card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.service-card-body h3 { margin-bottom: .6rem; color: var(--text-dark); }
.service-card-body p { color: #555; font-size: .95rem; flex: 1; margin-bottom: 1rem; }
.service-card-link {
  display: inline-block;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  font-size: .85rem;
  letter-spacing: 1px;
}
.service-card-link::after { content: ' →'; }

/* ===== PORTFOLIO GRID ===== */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}
.portfolio-item {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 3px;
  background: #222;
}
.portfolio-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .35s, opacity .3s;
}
.portfolio-item:hover img { transform: scale(1.08); opacity: .55; }
.portfolio-item-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 16px 18px;
  background: linear-gradient(transparent, rgba(0,0,0,.85));
  color: #fff;
  transform: translateY(100%);
  transition: transform .3s;
}
.portfolio-item:hover .portfolio-item-overlay { transform: translateY(0); }
.portfolio-item-overlay h3 {
  font-size: 1.05rem;
  color: #fff;
  margin: 0;
}
.portfolio-item-overlay span {
  font-size: .8rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ===== MISSION / FEATURES ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 30px;
}
.feature {
  text-align: center;
  padding: 30px 20px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: rgba(255,255,255,.03);
}
.feature-num {
  font-family: 'Oswald', Arial, sans-serif;
  font-size: 3rem;
  color: var(--accent);
  font-weight: 700;
  display: block;
  margin-bottom: 8px;
}
.feature h4 {
  margin-bottom: .8rem;
  text-transform: uppercase;
}
.feature p { color: #ccc; font-size: .92rem; }
.section-dark .feature p { color: #bbb; }

/* ===== MACHINES (parc machines) ===== */
.machines-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}
.machines-grid img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 3px;
}

/* ===== CTA BAND ===== */
.cta-band {
  background: var(--accent);
  color: #fff;
  padding: 50px 0;
  text-align: center;
}
.cta-band h2 { color: #fff; margin-bottom: .5rem; }
.cta-band p { font-size: 1.1rem; margin-bottom: 1.5rem; }
.cta-band .btn {
  background: #fff;
  color: var(--accent);
  border-color: #fff;
}
.cta-band .btn:hover { background: var(--bg-dark); color: #fff; border-color: var(--bg-dark); }

/* ===== SERVICES DETAIL PAGE ===== */
.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}
.service-detail img { border-radius: 4px; box-shadow: 0 8px 28px rgba(0,0,0,.15); }
.service-detail h2 { margin-bottom: 1rem; }
.service-detail .lead { font-size: 1.1rem; color: #555; margin-bottom: 1.4rem; }
.service-detail ul {
  list-style: none;
  padding: 0;
}
.service-detail li {
  padding: 10px 0 10px 28px;
  border-bottom: 1px solid var(--border-light);
  position: relative;
  font-weight: 500;
}
.service-detail li::before {
  content: '►';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: .8rem;
  top: 12px;
}
@media (max-width: 800px) {
  .service-detail { grid-template-columns: 1fr; }
}

/* ===== CONTACT ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 50px;
}
@media (max-width: 800px) {
  .contact-grid { grid-template-columns: 1fr; }
}
.contact-info {
  background: var(--bg-dark);
  color: var(--text-light);
  padding: 36px 30px;
  border-radius: 4px;
}
.contact-info h3 { color: #fff; margin-bottom: 1.2rem; }
.contact-info-item {
  padding: 14px 0;
  border-bottom: 1px solid #2a2a2a;
}
.contact-info-item:last-child { border-bottom: 0; }
.contact-info-item .label {
  display: block;
  text-transform: uppercase;
  font-size: .75rem;
  letter-spacing: 1px;
  color: var(--accent);
  margin-bottom: 4px;
  font-weight: 700;
}
.contact-info-item .value { color: #eee; font-size: 1.05rem; }
.contact-info-item a { color: #eee; }
.contact-info-item a:hover { color: var(--accent); }

.contact-form {
  background: var(--bg-soft);
  padding: 36px 30px;
  border-radius: 4px;
}
.contact-form h3 { margin-bottom: 1.2rem; }
.form-row { margin-bottom: 16px; }
.form-row label {
  display: block;
  font-weight: 600;
  font-size: .9rem;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.form-row input, .form-row textarea, .form-row select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border-light);
  border-radius: 3px;
  font-family: inherit;
  font-size: 1rem;
  background: #fff;
  transition: border-color .2s;
}
.form-row input:focus, .form-row textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.form-row textarea { min-height: 140px; resize: vertical; }

.map-wrap {
  margin-top: 40px;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0,0,0,.1);
}
.map-wrap iframe { width: 100%; height: 380px; border: 0; display: block; }

/* ===== BLOG ===== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}
.blog-card {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 4px;
  overflow: hidden;
  transition: box-shadow .2s, transform .25s;
}
.blog-card:hover { box-shadow: 0 10px 28px rgba(0,0,0,.12); transform: translateY(-4px); }
.blog-card img { aspect-ratio: 16/10; object-fit: cover; }
.blog-card-body { padding: 22px; }
.blog-card-meta {
  font-size: .8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.blog-card h3 { margin-bottom: .8rem; font-size: 1.2rem; }
.blog-card h3 a { color: var(--text-dark); }
.blog-card h3 a:hover { color: var(--accent); }
.blog-card p { color: #555; font-size: .95rem; }

/* ===== FOOTER ===== */
.site-footer {
  background: var(--bg-darker);
  color: #bbb;
  padding: 60px 0 0;
  font-size: .92rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 40px;
}
@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 500px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-grid h4 {
  color: #fff;
  margin-bottom: 1rem;
  font-size: 1rem;
  letter-spacing: 1px;
  position: relative;
  padding-bottom: 8px;
}
.footer-grid h4::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 30px; height: 2px;
  background: var(--accent);
}
.footer-grid ul { list-style: none; padding: 0; }
.footer-grid ul li { margin-bottom: 8px; }
.footer-grid a { color: #bbb; }
.footer-grid a:hover { color: var(--accent); }

.footer-brand img { height: 56px; margin-bottom: 14px; filter: brightness(1.1); }
.footer-brand p { color: #999; }

.footer-newsletter input {
  width: 100%;
  padding: 11px 14px;
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  color: #fff;
  border-radius: 3px;
  margin-bottom: 10px;
  font-family: inherit;
}
.footer-newsletter input:focus { outline: none; border-color: var(--accent); }
.footer-newsletter button {
  width: 100%;
  padding: 11px 14px;
  background: var(--accent);
  border: 0;
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  border-radius: 3px;
  font-family: inherit;
}
.footer-newsletter button:hover { background: var(--accent-hover); }

.footer-bottom {
  border-top: 1px solid #1a1a1a;
  padding: 22px 0;
  text-align: center;
  color: #666;
  font-size: .85rem;
}
.footer-bottom a { color: #888; }

/* ===== SOCIAL ===== */
.social-icons { display: flex; gap: 10px; margin-top: 14px; }
.social-icons a {
  width: 36px; height: 36px;
  display: inline-flex;
  align-items: center; justify-content: center;
  background: #1a1a1a;
  color: #ccc;
  border-radius: 50%;
  font-weight: 700;
  transition: background .2s;
}
.social-icons a:hover { background: var(--accent); color: #fff; }

/* ===== UTILS ===== */
.text-center { text-align: center; }
.mt-4 { margin-top: 2rem; }
.mt-6 { margin-top: 1.5rem; }
.subtitle-light { color: #aaa !important; }
.newsletter-desc { margin-bottom: 14px; color: #999; }
