/*
Theme Name: BLS2000
Theme URI: https://www.bls2000.fr
Author: BLS2000
Author URI: https://www.bls2000.fr
Description: Thème WordPress sur mesure pour BLS2000 — Spécialiste des pièces détachées auto d'occasion en Guadeloupe. Design industriel-moderne, optimisé SEO et 100% responsive.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bls2000
Tags: business, automotive, custom-colors, custom-menu, custom-logo, featured-images, threaded-comments, translation-ready, full-width-template, theme-options
*/

/* =========================================================
   RESET & VARIABLES
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --noir: #0d0d0f;
  --noir-2: #17171a;
  --gris: #2a2a2e;
  --gris-clair: #b8b8bd;
  --creme: #f4f1ea;
  --creme-2: #ebe6db;
  --orange: #ff6b1a;
  --orange-fonce: #d9530a;
  --bleu-acier: #2c3e50;
  --rouge: #c0392b;

  --font-titre: 'Anton', 'Impact', sans-serif;
  --font-corps: 'Manrope', system-ui, sans-serif;

  --max: 1280px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-corps);
  background: var(--creme);
  color: var(--noir);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* =========================================================
   ACCESSIBILITÉ
   ========================================================= */
.screen-reader-text {
  border: 0; clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%); height: 1px; margin: -1px;
  overflow: hidden; padding: 0; position: absolute;
  width: 1px; word-wrap: normal !important;
}
.screen-reader-text:focus {
  background-color: var(--creme); clip: auto !important;
  clip-path: none; color: var(--noir); display: block;
  font-size: 1em; height: auto; left: 5px;
  line-height: normal; padding: 15px 23px 14px;
  text-decoration: none; top: 5px; width: auto;
  z-index: 100000;
}

/* =========================================================
   TOPBAR
   ========================================================= */
.topbar {
  background: var(--noir);
  color: var(--creme);
  font-size: 13px;
  padding: 8px 0;
  border-bottom: 1px solid #222;
}
.topbar-inner {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
}
.topbar a { color: var(--creme); transition: color .2s; }
.topbar a:hover { color: var(--orange); }
.topbar-info { display: flex; gap: 24px; flex-wrap: wrap; }
.topbar-info span { display: inline-flex; align-items: center; gap: 6px; }
.topbar-info strong { color: var(--orange); font-weight: 700; }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  background: var(--creme);
  border-bottom: 3px solid var(--noir);
  position: sticky; top: 0; z-index: 100;
}
.header-inner {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 0;
}
.site-logo {
  font-family: var(--font-titre);
  font-size: 32px;
  letter-spacing: 2px;
  color: var(--noir);
  display: inline-block;
}
.site-logo span { color: var(--orange); }
.custom-logo-link img { max-height: 60px; width: auto; }

.main-navigation ul {
  display: flex; gap: 32px; list-style: none;
  font-weight: 600; font-size: 15px;
  text-transform: uppercase; letter-spacing: 1px;
  align-items: center;
}
.main-navigation a {
  transition: color .2s; position: relative; padding: 6px 0;
  display: inline-block;
}
.main-navigation a:hover, .main-navigation .current-menu-item > a { color: var(--orange); }
.main-navigation a::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 0; height: 2px; background: var(--orange);
  transition: width .3s;
}
.main-navigation a:hover::after,
.main-navigation .current-menu-item > a::after { width: 100%; }

.btn-header {
  background: var(--orange) !important;
  color: var(--creme) !important;
  padding: 12px 24px !important;
  font-weight: 700;
  transition: background .2s;
}
.btn-header:hover { background: var(--orange-fonce) !important; }
.btn-header::after { display: none !important; }

/* Menu burger mobile */
.burger {
  display: none; background: none; border: 0;
  cursor: pointer; padding: 6px;
}
.burger span {
  display: block; width: 28px; height: 3px;
  background: var(--noir); margin: 5px 0;
  transition: .3s;
}

/* Sous-menus */
.main-navigation .sub-menu {
  display: none; position: absolute; top: 100%; left: 0;
  background: var(--creme); min-width: 220px;
  padding: 12px 0; border-top: 3px solid var(--orange);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  flex-direction: column; gap: 0;
}
.main-navigation li { position: relative; }
.main-navigation li:hover > .sub-menu { display: flex; }
.main-navigation .sub-menu li { padding: 8px 24px; }
.main-navigation .sub-menu a { font-size: 14px; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  background: var(--noir);
  color: var(--creme);
  padding: 100px 0 120px;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: 
    radial-gradient(circle at 20% 30%, rgba(255,107,26,0.15), transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(255,107,26,0.08), transparent 50%);
}
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background-image: 
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 2; }
.hero-tag {
  display: inline-block;
  background: rgba(255,107,26,0.15);
  color: var(--orange);
  border: 1px solid var(--orange);
  padding: 8px 16px;
  font-size: 13px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  margin-bottom: 32px;
}
.hero h1 {
  font-family: var(--font-titre);
  font-size: clamp(48px, 7vw, 96px);
  line-height: 0.95;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 24px;
  max-width: 900px;
}
.hero h1 .highlight {
  color: var(--orange);
  position: relative;
  display: inline-block;
}
.hero-sub {
  font-size: 19px;
  max-width: 680px;
  margin-bottom: 48px;
  color: #d8d8d8;
  font-weight: 300;
}
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 18px 32px;
  font-weight: 700; font-size: 15px;
  text-transform: uppercase; letter-spacing: 1.5px;
  border: 2px solid; cursor: pointer;
  transition: all .3s;
}
.btn-primary {
  background: var(--orange); color: var(--creme); border-color: var(--orange);
}
.btn-primary:hover {
  background: transparent; color: var(--orange);
  transform: translateY(-3px);
}
.btn-outline {
  background: transparent; color: var(--creme); border-color: var(--creme);
}
.btn-outline:hover {
  background: var(--creme); color: var(--noir);
  transform: translateY(-3px);
}
.btn-dark {
  background: var(--noir); color: var(--creme); border-color: var(--noir);
}
.btn-dark:hover {
  background: transparent; color: var(--noir);
}

/* Stats hero */
.hero-stats {
  margin-top: 80px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 32px;
  border-top: 1px solid #333;
  padding-top: 48px;
}
.stat-num {
  font-family: var(--font-titre);
  font-size: 56px;
  color: var(--orange);
  line-height: 1;
}
.stat-label {
  font-size: 13px; text-transform: uppercase;
  letter-spacing: 2px; color: #aaa;
  margin-top: 8px;
}

/* =========================================================
   SECTIONS GÉNÉRIQUES
   ========================================================= */
section { padding: 100px 0; }
.section-tag {
  display: inline-block;
  color: var(--orange);
  font-size: 13px; font-weight: 700;
  letter-spacing: 3px; text-transform: uppercase;
  margin-bottom: 16px;
  position: relative; padding-left: 40px;
}
.section-tag::before {
  content: ''; position: absolute; left: 0; top: 50%;
  width: 28px; height: 2px; background: var(--orange);
}
h2 {
  font-family: var(--font-titre);
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 24px;
  color: var(--noir);
}
h3 {
  font-family: var(--font-titre);
  font-size: 28px;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-intro { font-size: 18px; max-width: 720px; color: #555; }

/* =========================================================
   POURQUOI
   ========================================================= */
.pourquoi { background: var(--creme); }
.pourquoi-grid {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.feature {
  background: white;
  padding: 40px 32px;
  border-left: 4px solid var(--orange);
  transition: transform .3s, box-shadow .3s;
}
.feature:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}
.feature-icon {
  width: 60px; height: 60px;
  background: var(--noir);
  color: var(--orange);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px;
  font-size: 28px; font-weight: 700;
}
.feature h3 { font-size: 22px; margin-bottom: 12px; }
.feature p { color: #555; font-size: 15px; }

/* =========================================================
   SPÉCIALITÉS
   ========================================================= */
.specialites { background: var(--noir); color: var(--creme); position: relative; overflow: hidden; }
.specialites::before {
  content: 'BLS2000';
  position: absolute;
  top: 40px; right: -50px;
  font-family: var(--font-titre);
  font-size: 200px;
  color: rgba(255,255,255,0.03);
  line-height: 1;
  pointer-events: none;
}
.specialites h2 { color: var(--creme); }
.specialites .section-intro { color: #aaa; }

.spec-grid {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1px;
  background: #2a2a2e;
  border: 1px solid #2a2a2e;
}
.spec-card {
  background: var(--noir-2);
  padding: 48px 32px;
  transition: background .3s;
  position: relative;
  overflow: hidden;
}
.spec-card:hover { background: var(--gris); }
.spec-num {
  font-family: var(--font-titre);
  font-size: 80px;
  color: rgba(255,107,26,0.15);
  line-height: 1;
  position: absolute; top: 16px; right: 24px;
}
.spec-card h3 {
  color: var(--orange);
  font-size: 26px;
  margin-bottom: 16px;
  position: relative;
}
.spec-card p { color: #c0c0c0; font-size: 15px; margin-bottom: 20px; }
.spec-card a {
  color: var(--creme);
  font-size: 13px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  border-bottom: 2px solid var(--orange);
  padding-bottom: 4px;
  transition: color .2s;
}
.spec-card a:hover { color: var(--orange); }

/* =========================================================
   COMMANDER
   ========================================================= */
.commander { background: var(--creme-2); }
.steps {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
}
.step-num {
  font-family: var(--font-titre);
  font-size: 72px;
  color: var(--orange);
  line-height: 1;
  margin-bottom: 16px;
  border-bottom: 3px solid var(--noir);
  padding-bottom: 16px;
  display: inline-block;
  min-width: 80px;
}
.step h3 { font-size: 22px; margin-bottom: 12px; color: var(--noir); }
.step p { color: #555; font-size: 15px; }

/* =========================================================
   CTA BANDEAU
   ========================================================= */
.cta-band {
  background: var(--orange);
  padding: 80px 0;
  color: var(--noir);
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(
    45deg, transparent, transparent 30px,
    rgba(0,0,0,0.04) 30px, rgba(0,0,0,0.04) 31px);
}
.cta-band-inner {
  position: relative; z-index: 2;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 32px;
}
.cta-band h2 { color: var(--noir); margin-bottom: 8px; font-size: clamp(32px, 4vw, 48px); }
.cta-band p { font-size: 18px; font-weight: 600; }

/* =========================================================
   INFOS PRATIQUES
   ========================================================= */
.infos { background: var(--creme); }
.infos-grid {
  margin-top: 64px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.infos-block h3 {
  font-size: 24px;
  color: var(--noir);
  margin-bottom: 24px;
  border-bottom: 3px solid var(--orange);
  padding-bottom: 12px;
  display: inline-block;
}
.horaires { list-style: none; }
.horaires li {
  display: flex; justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px dashed #ccc;
  font-size: 16px;
}
.horaires li.ferme { color: #999; }
.horaires .jour { font-weight: 700; text-transform: uppercase; letter-spacing: 1px; font-size: 14px; }
.horaires .heures { font-weight: 500; }

.contact-list { list-style: none; }
.contact-list li {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 16px 0;
  border-bottom: 1px dashed #ccc;
}
.contact-icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  background: var(--noir);
  color: var(--orange);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 700;
}
.contact-info-label { font-size: 12px; text-transform: uppercase; color: #888; letter-spacing: 1.5px; }
.contact-info-value { font-weight: 600; font-size: 16px; }
.contact-info-value a:hover { color: var(--orange); }

/* =========================================================
   PAGES INTÉRIEURES
   ========================================================= */
.page-header {
  background: var(--noir); color: var(--creme);
  padding: 80px 0;
  position: relative;
  text-align: center;
}
.page-header::before {
  content: ''; position: absolute; inset: 0;
  background-image: 
    radial-gradient(circle at 50% 50%, rgba(255,107,26,0.15), transparent 70%);
}
.page-header h1 {
  font-family: var(--font-titre);
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1; text-transform: uppercase;
  letter-spacing: 1px; position: relative;
}
.breadcrumbs {
  font-size: 13px; color: #aaa;
  letter-spacing: 1px; text-transform: uppercase;
  margin-top: 16px; position: relative;
}
.breadcrumbs a { color: var(--orange); }

.page-content {
  padding: 80px 0;
  background: var(--creme);
}
.page-content article {
  max-width: 820px; margin: 0 auto;
}
.page-content h2 { font-size: 36px; margin: 40px 0 20px; }
.page-content h3 { font-size: 24px; margin: 32px 0 16px; color: var(--orange); }
.page-content p { margin-bottom: 16px; font-size: 17px; line-height: 1.8; }
.page-content ul, .page-content ol {
  margin: 16px 0 16px 24px;
}
.page-content li { margin-bottom: 8px; line-height: 1.7; }
.page-content a { color: var(--orange); border-bottom: 1px solid var(--orange); transition: color .2s; }
.page-content a:hover { color: var(--orange-fonce); }
.page-content blockquote {
  border-left: 4px solid var(--orange);
  padding: 16px 24px;
  background: white;
  margin: 24px 0;
  font-style: italic;
}
.page-content img { margin: 24px 0; }

/* =========================================================
   ARTICLES (BLOG)
   ========================================================= */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  margin-top: 48px;
}
.post-card {
  background: white;
  border-bottom: 4px solid var(--orange);
  transition: transform .3s, box-shadow .3s;
}
.post-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}
.post-card-img {
  aspect-ratio: 16/9; overflow: hidden; background: var(--noir);
}
.post-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s;
}
.post-card:hover .post-card-img img { transform: scale(1.05); }
.post-card-body { padding: 32px 28px; }
.post-card-meta {
  font-size: 12px; color: #999;
  text-transform: uppercase; letter-spacing: 1.5px;
  margin-bottom: 12px;
}
.post-card-title {
  font-family: var(--font-titre);
  font-size: 22px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
  line-height: 1.2;
}
.post-card-title a:hover { color: var(--orange); }
.post-card-excerpt { color: #555; font-size: 15px; margin-bottom: 16px; }
.post-card-link {
  font-size: 13px; font-weight: 700; color: var(--orange);
  text-transform: uppercase; letter-spacing: 2px;
}

/* Pagination */
.pagination {
  margin-top: 64px; text-align: center;
  display: flex; justify-content: center; gap: 8px;
}
.pagination a, .pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  background: white; color: var(--noir);
  font-weight: 700; transition: all .2s;
}
.pagination a:hover, .pagination .current {
  background: var(--orange); color: var(--creme);
}

/* =========================================================
   ARTICLE SINGULIER
   ========================================================= */
.single-post-content {
  max-width: 820px; margin: 0 auto;
}
.post-meta {
  font-size: 13px; color: #999;
  text-transform: uppercase; letter-spacing: 2px;
  margin-bottom: 16px;
}
.post-thumbnail { margin-bottom: 32px; }
.post-thumbnail img { width: 100%; }

/* =========================================================
   COMMENTAIRES
   ========================================================= */
.comments-area {
  max-width: 820px; margin: 64px auto 0;
  padding-top: 48px; border-top: 2px solid var(--noir);
}
.comments-title {
  font-family: var(--font-titre);
  font-size: 28px;
  margin-bottom: 24px;
}
.comment-list { list-style: none; }
.comment-body {
  background: white; padding: 24px;
  margin-bottom: 16px; border-left: 3px solid var(--orange);
}
.comment-author { font-weight: 700; }
.comment-form input, .comment-form textarea {
  width: 100%; padding: 14px 16px;
  border: 2px solid #ddd; background: white;
  font-family: var(--font-corps); font-size: 15px;
  margin-bottom: 12px;
}
.comment-form input:focus, .comment-form textarea:focus {
  outline: 0; border-color: var(--orange);
}
.comment-form .submit, .comment-form input[type="submit"] {
  background: var(--orange); color: var(--creme);
  padding: 14px 32px; border: 0; cursor: pointer;
  font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
  transition: background .2s;
}
.comment-form .submit:hover, .comment-form input[type="submit"]:hover {
  background: var(--orange-fonce);
}

/* =========================================================
   WIDGETS / SIDEBAR
   ========================================================= */
.widget {
  margin-bottom: 32px; background: white; padding: 24px;
}
.widget-title {
  font-family: var(--font-titre);
  font-size: 20px;
  text-transform: uppercase; letter-spacing: 1px;
  margin-bottom: 16px;
  border-bottom: 3px solid var(--orange); padding-bottom: 8px;
}
.widget ul { list-style: none; }
.widget li { padding: 8px 0; border-bottom: 1px dashed #ddd; }
.widget li:last-child { border-bottom: 0; }
.widget a:hover { color: var(--orange); }

/* =========================================================
   404
   ========================================================= */
.error-404 {
  text-align: center; padding: 120px 0;
}
.error-404 h1 {
  font-family: var(--font-titre);
  font-size: clamp(80px, 15vw, 200px);
  color: var(--orange); line-height: 1;
}
.error-404 p { font-size: 20px; margin-bottom: 32px; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: var(--noir);
  color: var(--gris-clair);
  padding: 80px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-logo {
  font-family: var(--font-titre);
  font-size: 36px; letter-spacing: 2px;
  color: var(--creme);
  margin-bottom: 16px;
}
.footer-logo span { color: var(--orange); }
.footer-desc { font-size: 14px; max-width: 320px; }
.site-footer h4 {
  color: var(--creme);
  font-size: 14px; text-transform: uppercase; letter-spacing: 2px;
  margin-bottom: 20px;
  font-weight: 700;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { font-size: 14px; transition: color .2s; }
.footer-links a:hover { color: var(--orange); }
.footer-bottom {
  border-top: 1px solid #222;
  padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
  font-size: 13px;
}
.footer-bottom a:hover { color: var(--orange); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 900px) {
  .main-navigation ul { display: none; }
  .burger { display: block; }
  .main-navigation.toggled ul {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--creme); padding: 24px;
    border-top: 1px solid #ddd;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  }
  .main-navigation.toggled li {
    width: 100%; padding: 12px 0;
    border-bottom: 1px dashed #ccc;
  }
  .infos-grid { grid-template-columns: 1fr; gap: 48px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero { padding: 64px 0 80px; }
  section { padding: 64px 0; }
  .topbar-info { gap: 12px; font-size: 12px; }
  .topbar-inner { justify-content: center; }
}
@media (max-width: 540px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .cta-band-inner { flex-direction: column; text-align: center; }
}

/* =========================================================
   BLOCKS WORDPRESS (Gutenberg)
   ========================================================= */
.alignleft { float: left; margin: 0 24px 16px 0; }
.alignright { float: right; margin: 0 0 16px 24px; }
.aligncenter { display: block; margin: 16px auto; }
.alignwide { max-width: 1100px; margin-left: auto; margin-right: auto; }
.alignfull { width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); }

.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 13px; color: #888; padding: 8px 0; }

/* Gallery */
.wp-block-gallery { margin: 24px 0; }
