/* HEL Performance France — feuille de style partagée */

@import url('https://fonts.googleapis.com/css2?family=Work+Sans:wght@300;400;500;600;700&display=swap');

:root {
  --red: #ED1C24;
  --red-dark: #c8151c;
  --yellow: #F7D414;
  --ink: #1a1a1a;
  --charcoal: #2b2b2e;
  --charcoal-2: #3a3a3e;
  --paper: #ffffff;
  --grey: #6b6b6f;
  --grey-light: #f4f4f5;
  --border: #e4e4e6;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Work Sans', sans-serif;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

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

h1, h2, h3 {
  font-weight: 300;
  line-height: 1.15;
  margin: 0 0 16px;
}

h1 { font-size: clamp(32px, 5vw, 48px); }
h2 { font-size: clamp(26px, 4vw, 36px); }
h3 { font-size: 20px; font-weight: 500; }

p { line-height: 1.7; color: var(--grey); margin: 0 0 16px; }

strong { font-weight: 600; color: var(--ink); }
.text-red { color: var(--red); }

/* ---------- Boutons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); }

.btn-outline-white { background: transparent; color: #fff; border-color: #fff; }
.btn-outline-white:hover { background: #fff; color: var(--ink); }

.btn-dark { background: var(--charcoal); color: #fff; }
.btn-dark:hover { background: #000; }

.btn-yellow { background: var(--yellow); color: var(--ink); }
.btn-yellow:hover { background: #e0bf00; }

/* ---------- Top bar ---------- */

.topbar {
  background: var(--grey-light);
  font-size: 13px;
  border-bottom: 1px solid var(--border);
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  padding-bottom: 8px;
  flex-wrap: wrap;
  gap: 8px;
}
.topbar a.call { font-weight: 600; color: var(--ink); }
.topbar .tag { color: var(--grey); }

/* ---------- Header ---------- */

.site-header {
  background: var(--red);
  position: relative;
  z-index: 50;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
  gap: 24px;
}
.logo img { height: 40px; width: auto; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.main-nav a {
  color: #fff;
  font-weight: 500;
  font-size: 15px;
  opacity: 0.92;
}
.main-nav a:hover, .main-nav a.active { opacity: 1; text-decoration: underline; text-underline-offset: 6px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 26px;
  cursor: pointer;
}

@media (max-width: 780px) {
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--red-dark);
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 24px 24px;
    gap: 16px;
    display: none;
  }
  .main-nav.open { display: flex; }
  .site-header .container { position: relative; }
  .nav-toggle { display: block; }
  .main-nav .btn { width: 100%; text-align: center; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  color: #fff;
  min-height: 560px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.45) 55%, rgba(0,0,0,0.15) 100%);
}
.hero .container { position: relative; z-index: 1; }
.hero-content { max-width: 560px; }
.hero p { color: rgba(255,255,255,0.88); font-size: 17px; }
.hero .actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 28px; }

/* ---------- Sections génériques ---------- */

section { padding: 72px 0; }
.section-tight { padding: 56px 0; }

.text-center { text-align: center; }
.lead {
  max-width: 720px;
  margin: 0 auto 8px;
  font-size: 18px;
}

.section-dark {
  background: var(--charcoal);
  color: #fff;
}
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark p { color: rgba(255,255,255,0.72); }

.section-red {
  background: var(--red);
  color: #fff;
}
.section-red h2 { color: #fff; }
.section-red p { color: rgba(255,255,255,0.9); }

.section-grey { background: var(--grey-light); }

/* ---------- Grille catégories ---------- */

.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 40px;
}
.cat-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 32px 24px;
  text-align: center;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.cat-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.cat-card .icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--grey-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
}
.cat-card h3 { margin-bottom: 8px; }
.cat-card p { font-size: 14px; margin-bottom: 18px; }
.cat-card .link { color: var(--red); font-weight: 600; font-size: 14px; }
.cat-card .link:hover { text-decoration: underline; }
.cat-card .link.disabled { color: var(--grey); cursor: default; }
.cat-card .link.disabled:hover { text-decoration: none; }

/* ---------- Deux colonnes image/texte ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.split img { border-radius: 16px; height: auto; }
@media (max-width: 800px) {
  .split { grid-template-columns: 1fr; }
}
.split.reverse .split-media { order: 2; }

/* ---------- Liens véhicules (maillage boutique) ---------- */

.model-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(8, auto);
  grid-auto-flow: column;
  gap: 4px 32px;
  margin-top: 32px;
}
.model-links a {
  display: block;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  transition: color 0.15s ease, padding-left 0.15s ease;
}
.model-links a:hover {
  color: var(--red);
  padding-left: 4px;
}
@media (max-width: 900px) {
  .model-links { grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(15, auto); }
}
@media (max-width: 560px) {
  .model-links { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-flow: row; }
}

/* ---------- Vidéo showcase ---------- */

.video-showcase {
  margin-top: 32px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #000;
}
.video-showcase video {
  width: 100%;
  height: auto;
  display: block;
}

/* ---------- Logos partenaires ---------- */

.partners {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 56px;
  flex-wrap: wrap;
  margin-top: 40px;
}
.partners img { height: 64px; width: auto; filter: grayscale(0%); }

/* ---------- Bandeau CTA ---------- */

.cta-banner {
  background: var(--charcoal-2);
  color: #fff;
  border-radius: 18px;
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-banner h3 { margin: 0 0 4px; color: #fff; }
.cta-banner p { margin: 0; color: rgba(255,255,255,0.7); }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--charcoal);
  color: rgba(255,255,255,0.7);
  padding: 64px 0 0;
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
@media (max-width: 700px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.site-footer h4 {
  color: #fff;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 18px;
  font-weight: 600;
}
.site-footer p { color: rgba(255,255,255,0.65); margin: 0 0 6px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 0;
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  flex-wrap: wrap;
  gap: 8px;
}

/* ---------- Formulaires ---------- */

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 700px) {
  .form-grid { grid-template-columns: 1fr; }
}
label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--ink);
}
input, textarea, select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 15px;
  background: #fff;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--red);
}
textarea { resize: vertical; min-height: 140px; }
.form-note { font-size: 13px; color: var(--grey); margin-top: 8px; }
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-status { font-size: 14px; margin-top: 16px; display: none; }
.form-status.show { display: block; }
.form-status.ok { color: #1c8a4c; }
.form-status.err { color: var(--red); }

/* ---------- Page header (sous-pages) ---------- */

.page-hero {
  background: var(--charcoal);
  color: #fff;
  padding: 56px 0;
}
.page-hero h1 { color: #fff; margin-bottom: 8px; }
.breadcrumb { font-size: 13px; color: rgba(255,255,255,0.55); margin-bottom: 14px; }
.breadcrumb a { color: rgba(255,255,255,0.8); }
.breadcrumb a:hover { text-decoration: underline; }

.info-list { list-style: none; margin: 0 0 24px; padding: 0; }
.info-list li {
  padding-left: 26px;
  position: relative;
  margin-bottom: 10px;
  color: var(--grey);
}
.info-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  background: var(--red);
  border-radius: 50%;
}
