/* OUCO MOTORS — African Services Plus — feuille de style commune */

:root {
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --noir: #111111;
  --noir-alt: #1a1a1a;
  --noir-header: rgba(17, 17, 17, 0.94);
  --orange: #F5721C;
  --orange-hover: #ff8c42;
  --vert: #1B8A3D;
  --vert-hover: #22a648;
  --bleu: #1C6EDB;
  --bleu-hover: #3A85F5;
  --blanc: #FAFAFA;
  --blanc-card: #FFFFFF;
  --gris: #6B6F76;
  --text-soft: #3a3a3a;
  --text-muted: #5a5a5a;
  --border-light: rgba(17, 17, 17, 0.1);
  --border-light-strong: rgba(17, 17, 17, 0.22);
  --border-dark: rgba(255, 255, 255, 0.12);
  --placeholder-a: #1c1c1c;
  --placeholder-b: #131313;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--blanc);
  color: var(--noir);
}

a { color: var(--orange); text-decoration: none; }
a:hover { color: var(--vert); }
::selection { background: rgba(245, 114, 28, 0.25); }
img { max-width: 100%; display: block; }

.mono-tag {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 14px;
  display: block;
}

.mono-tag.on-dark { color: var(--orange); }

.section-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(26px, 3.5vw, 38px);
  margin: 0 0 44px;
  color: var(--noir);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(20px, 5vw, 64px);
  background: var(--noir-header);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-dark);
}

.logo {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.logo-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.02em;
  color: var(--blanc);
}

.logo-name span { color: var(--orange); }

.logo-sub {
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gris);
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 36px);
}

.nav-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--blanc);
}

.nav-link.active { color: var(--orange); font-weight: 600; }
.nav-link:hover { color: var(--orange); }

.nav-cta {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 14px;
  padding: 11px 22px;
  background: var(--orange);
  color: var(--blanc);
  border-radius: 3px;
}

.nav-cta:hover { background: var(--orange-hover); color: var(--blanc); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--blanc);
  font-size: 26px;
  cursor: pointer;
  padding: 8px;
  line-height: 1;
}

.nav-mobile-panel {
  position: fixed;
  top: 68px; left: 0; right: 0; bottom: 0;
  background: var(--noir);
  z-index: 999;
  padding: 24px;
  display: none;
  flex-direction: column;
  gap: 2px;
  overflow-y: auto;
}

.nav-mobile-panel.open { display: flex; }

.nav-mobile-panel a {
  color: var(--blanc);
  font-size: 17px;
  padding: 16px 8px;
  border-bottom: 1px solid var(--border-dark);
  font-weight: 600;
}

.nav-mobile-panel a.cta { color: var(--orange); }

@media (max-width: 900px) {
  .nav-desktop { display: none; }
  .nav-toggle { display: block; }
}

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

.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: flex-end;
  padding: 0 clamp(20px, 5vw, 64px) 72px;
  overflow: hidden;
  background: repeating-linear-gradient(135deg, var(--placeholder-a) 0px, var(--placeholder-a) 26px, var(--placeholder-b) 26px, var(--placeholder-b) 52px);
}

.hero-slideshow {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.6s ease;
}

.hero-slide.active { opacity: 1; }

.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17,17,17,0.45) 0%, rgba(17,17,17,0.75) 55%, rgba(17,17,17,0.96) 100%);
}

.hero-inner { position: relative; z-index: 2; max-width: 900px; }

.hero-flag-line {
  width: 64px;
  height: 4px;
  border-radius: 2px;
  margin-bottom: 22px;
  background: linear-gradient(90deg, var(--orange) 0%, var(--orange) 32%, #FFFFFF 32%, #FFFFFF 66%, var(--vert) 66%, var(--vert) 100%);
}

.hero-eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 18px;
}

.hero-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.05;
  margin: 0 0 22px;
  color: var(--blanc);
}

.hero-sub {
  font-size: clamp(16px, 2vw, 20px);
  color: #d9d9d9;
  letter-spacing: 0.02em;
  margin: 0 0 36px;
}

.hero-cta-group { display: flex; gap: 16px; flex-wrap: wrap; }

.btn-primary {
  font-family: var(--font-heading);
  background: var(--orange);
  color: var(--blanc);
  border: none;
  padding: 16px 30px;
  border-radius: 3px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: inline-block;
}

.btn-primary:hover { background: var(--orange-hover); color: var(--blanc); }

.btn-secondary {
  font-family: var(--font-body);
  background: transparent;
  color: var(--blanc);
  border: 1px solid rgba(250,250,250,0.5);
  padding: 16px 30px;
  border-radius: 3px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: inline-block;
}

.btn-secondary:hover { border-color: var(--orange); color: var(--orange); }

/* ---------- Intro ---------- */

.intro-section {
  padding: 96px clamp(20px, 5vw, 64px) 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.intro-section p {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.4;
  color: var(--noir);
  max-width: 820px;
  margin: 0;
}

/* ---------- Valeurs (Thermique / Électrique) ---------- */

.values-section {
  padding: 40px clamp(20px, 5vw, 64px) 96px;
  max-width: 1200px;
  margin: 0 auto;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.value-card {
  background: var(--blanc-card);
  border: 1px solid var(--border-light);
  border-radius: 6px;
  padding: 32px 28px;
}

.value-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 18px;
}

.value-icon.flame { background: rgba(245,114,28,0.12); }
.value-icon.hybrid { background: rgba(28,110,219,0.12); }
.value-icon.electric { background: rgba(27,138,61,0.12); }

.value-card h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(18px, 2vw, 20px);
  margin: 0 0 10px;
  color: var(--noir);
}

.value-card p { font-size: 15px; line-height: 1.6; color: var(--text-soft); margin: 0; }

/* ---------- Produits ---------- */

.products-section {
  padding: 0 clamp(20px, 5vw, 64px) 96px;
  max-width: 1200px;
  margin: 0 auto;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.product-card {
  background: var(--blanc-card);
  border: 1px solid var(--border-light);
  border-radius: 6px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.product-card:hover { transform: translateY(-4px); box-shadow: 0 16px 32px rgba(17,17,17,0.12); }

.product-card-image {
  width: 100%;
  height: 200px;
  background-size: cover;
  background-position: center;
  background: repeating-linear-gradient(135deg, #e8e8e8 0px, #e8e8e8 16px, #dedede 16px, #dedede 32px);
}

.product-card-body { padding: 20px; }

.product-card-tag {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
}

.product-card.thermique .product-card-tag { background: rgba(245,114,28,0.12); color: var(--orange); }
.product-card.hybride .product-card-tag { background: rgba(28,110,219,0.12); color: var(--bleu); }
.product-card.electrique .product-card-tag { background: rgba(27,138,61,0.12); color: var(--vert); }

.product-card-name {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(15px, 1.4vw, 18px);
  color: var(--noir);
  margin-bottom: 6px;
}

.product-card-desc { font-size: 13.5px; color: var(--text-muted); line-height: 1.5; margin-bottom: 10px; }

.product-card-price {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  color: var(--noir);
}

/* ---------- Pourquoi ---------- */

.distinguish-section {
  padding: 96px clamp(20px, 5vw, 64px);
  background: var(--noir);
}

.distinguish-inner { max-width: 1200px; margin: 0 auto; }

.distinguish-inner .section-title { color: var(--blanc); }

.points-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.point { border-top: 2px solid var(--orange); padding-top: 18px; }

.point-number {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 13px;
  color: var(--orange);
  margin-bottom: 10px;
}

.point-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 17px;
  color: var(--blanc);
  margin: 0 0 10px;
}

.point-desc { font-size: 14.5px; line-height: 1.6; color: #b8b8b8; margin: 0; }

/* ---------- Galerie ---------- */

.gallery-section { padding: 96px clamp(20px, 5vw, 64px); background: var(--blanc); }
.gallery-inner { max-width: 1200px; margin: 0 auto; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.gallery-card {
  cursor: pointer;
  background: var(--blanc-card);
  border: 1px solid var(--border-light);
  border-radius: 4px;
  overflow: hidden;
  padding: 0;
  text-align: left;
  font-family: inherit;
  color: inherit;
  display: block;
  width: 100%;
  position: relative;
  transition: border-color 0.2s, transform 0.2s;
}

.gallery-card:hover { border-color: var(--orange); transform: translateY(-2px); }

.gallery-card-image {
  aspect-ratio: 4 / 3;
  position: relative;
  background-size: cover;
  background-position: center;
  background: repeating-linear-gradient(135deg, #e8e8e8 0px, #e8e8e8 16px, #dedede 16px, #dedede 32px);
}

.gallery-card-image.is-video::after {
  content: "▶";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--blanc);
  background: rgba(17,17,17,0.35);
}

.gallery-card-media-count {
  position: absolute;
  top: 10px;
  right: 10px;
  font-family: var(--font-body);
  font-size: 10px;
  color: var(--blanc);
  background: rgba(17,17,17,0.65);
  padding: 3px 7px;
  border-radius: 2px;
}

.gallery-card-body { padding: 18px 20px; }

.gallery-card-title {
  font-family: var(--font-heading);
  font-size: 15.5px;
  font-weight: 600;
  color: var(--noir);
}

.gallery-card-desc { font-size: 13.5px; color: var(--text-muted); margin-top: 4px; }

/* ---------- Lightbox ---------- */

.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(17, 17, 17, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.lightbox-overlay.open { display: flex; }

.lightbox-content {
  max-width: 820px;
  width: 100%;
  background: var(--blanc);
  border-radius: 4px;
  overflow: hidden;
}

.lightbox-carousel {
  position: relative;
  height: 440px;
  overflow: hidden;
  background: repeating-linear-gradient(135deg, #1c1c1c 0px, #1c1c1c 20px, #131313 20px, #131313 40px);
}

.lightbox-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.lightbox-slide.active { opacity: 1; pointer-events: auto; }
.lightbox-slide-image { width: 100%; height: 100%; background-size: cover; background-position: center; }
.lightbox-slide-video { width: 100%; height: 100%; object-fit: contain; background: #000; display: block; }

.lightbox-slide-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 13px;
  color: rgba(250,250,250,0.5);
  text-align: center;
  padding: 0 24px;
}

.lightbox-carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  border: none;
  color: var(--blanc);
  font-size: 22px;
  width: 44px;
  height: 44px;
  cursor: pointer;
  z-index: 2;
}

.lightbox-carousel-arrow.prev { left: 16px; }
.lightbox-carousel-arrow.next { right: 16px; }

.lightbox-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}

.lightbox-dots button {
  width: 8px; height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.35);
  cursor: pointer;
  padding: 0;
}

.lightbox-dots button.active { background: var(--orange); }

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(0,0,0,0.5);
  border: none;
  color: var(--blanc);
  font-size: 16px;
  width: 36px;
  height: 36px;
  cursor: pointer;
  z-index: 2;
}

.lightbox-title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 600;
  color: var(--noir);
  padding: 24px 28px 4px;
}

.lightbox-desc { font-size: 14px; line-height: 1.6; color: var(--text-muted); padding: 0 28px 24px; }

/* ---------- Contact ---------- */

.contact-section { padding: 100px clamp(20px, 5vw, 64px) 120px; max-width: 1100px; margin: 0 auto; }

.contact-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(320px, 1.2fr);
  gap: 64px;
}

.contact-info h1 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(28px, 4vw, 42px);
  color: var(--noir);
  margin: 0 0 26px;
}

.contact-info > p {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--text-soft);
  margin: 0 0 40px;
}

.contact-detail { margin-bottom: 22px; }

.contact-detail-label {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 6px;
}

.contact-detail-value {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(16px, 2vw, 18px);
  color: var(--noir);
}

.contact-success {
  background: var(--noir);
  border-radius: 4px;
  padding: 48px 36px;
  display: none;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  justify-content: center;
}

.contact-success.visible { display: flex; }

.contact-success-check {
  width: 44px; height: 44px;
  background: var(--orange);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--noir);
  font-weight: 700;
  font-size: 18px;
}

.contact-success h2 { font-family: var(--font-heading); font-weight: 600; font-size: clamp(19px, 2.2vw, 22px); color: var(--blanc); margin: 0; }
.contact-success p { font-size: 14.5px; color: #c9c9c9; margin: 0; }

.contact-form {
  background: var(--blanc-card);
  border: 1px solid var(--border-light);
  border-radius: 4px;
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border-light-strong);
  border-radius: 3px;
  font-family: var(--font-body);
  font-size: 14.5px;
  color: var(--noir);
  background: var(--blanc);
}

.contact-form textarea { resize: vertical; }

.contact-form button {
  font-family: var(--font-body);
  background: var(--orange);
  border: none;
  color: var(--blanc);
  padding: 15px 24px;
  border-radius: 3px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 8px;
}

.contact-form button:hover { background: var(--orange-hover); }
.contact-form button:disabled { opacity: 0.6; cursor: default; }

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

.site-footer { padding: 40px clamp(20px, 5vw, 64px); background: var(--noir); }

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--blanc);
}

.footer-logo span { color: var(--orange); }

.footer-group-link { font-size: 13px; color: #a8a8a8; }
.footer-group-link a { color: #d9d9d9; border-bottom: 1px solid #555; }

.footer-social {
  display: flex;
  gap: 14px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #d9d9d9;
  transition: color 0.2s;
}

.footer-social a:hover { color: var(--orange); }
.footer-social svg { width: 18px; height: 18px; fill: currentColor; }

.btn-whatsapp {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  color: #25D366;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
}

.btn-whatsapp:hover { color: #1DA851; text-decoration: underline; }
.btn-whatsapp svg { fill: currentColor; }

.footer-copyright { font-size: 13px; color: #7d7d7d; }

/* ---------- Toast ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(20px);
  background: var(--noir);
  border: 1px solid var(--border-dark);
  color: var(--blanc);
  padding: 14px 22px;
  font-size: 14px;
  z-index: 3000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
  border-radius: 3px;
}

.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto; }
.toast.error { border-color: #e15b3f; }
.toast.success { border-color: var(--vert); }

/* ---------- Responsive ---------- */

@media (max-width: 1000px) {
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .points-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .values-grid { grid-template-columns: 1fr; }
  .points-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
}
