/* ============================================================
   ALARM DISCOUNT — Template CSS
   Couleurs : Jaune #FFC107 | Gris #212529
   Framework : Bootstrap 5
   ============================================================ */

/* ── VARIABLES ── */
:root {
  --yellow: #FFC107;
  --yellow-dark: #e0a800;
  --dark: #212529;
  --dark2: #2c3034;
  --gray: #6c757d;
  --light-bg: #f8f9fa;
}

/* ── RESET & BASE ── */
* { box-sizing: border-box; }
body { font-family: 'Inter', sans-serif; color: var(--dark); background: #fff; }
a { text-decoration: none; color: inherit; }
section { padding: 64px 0; }

/* ── UTILITAIRES TEXTE / COULEURS ── */
.text-yellow { color: var(--yellow); }
.bg-yellow   { background: var(--yellow); }

/* ── LOGO / BRAND ── */
.brand-text    { font-size: 1.3rem; font-weight: 800; color: #fff; }
.brand-text-sm { font-size: 1.1rem; font-weight: 800; color: #fff; }

/* ── NAV LINKS DESKTOP ── */
.nav-link-desktop { color: #fff; font-size: .88rem; font-weight: 600; transition: color .2s; }
.nav-link-desktop:hover { color: var(--yellow); }
.chevron-sm { font-size: .7rem; }

/* ── CART ICON WITH RELATIVE ── */
.nav-icon--cart { position: relative; }

/* ── OFFCANVAS MOBILE ── */
.offcanvas-mobile { background: var(--dark); color: #fff; }

/* ── HERO CONTAINER ── */
.hero-container { position: relative; z-index: 2; padding-top: 3rem; padding-bottom: 3rem; }

/* ── SECTIONS ── */
.section-light    { background: var(--light-bg); }
.section-no-pt    { padding-top: 0; }

/* ── PRODUCT REVIEWS COUNT ── */
.p-reviews { font-size: .75rem; color: var(--gray); margin-left: 4px; }

/* ── CATEGORY CARD DASHED ── */
.cat-card--dashed { border-style: dashed; }

/* ── TRUST BANNER TYPOGRAPHY ── */
.trust-label     { font-size: .82rem; font-weight: 700; color: var(--dark); }
.trust-count     { font-size: 2rem; font-weight: 800; color: var(--dark); }
.trust-count-sub { font-size: 1rem; font-weight: 600; }
.trust-verified  { font-size: .82rem; margin-top: 8px; color: rgba(0,0,0,.6); }

/* ── FOOTER EXTRAS ── */
.footer-rating { font-size: .78rem; color: rgba(255,255,255,.35); margin-top: .75rem; }
.footer-bottom a { color: var(--yellow); }

/* ── BTN CTA BLOCK (mobile menu) ── */
.btn-cta--block { width: 100%; display: block; text-align: center; padding: 12px; }



/* ── ANNOUNCEMENT BAR ── */
.announcement-bar {
  background: var(--yellow);
  color: var(--dark);
  font-size: .82rem;
  font-weight: 600;
  text-align: center;
  padding: 8px 16px;
}
.announcement-bar a {
  color: var(--dark);
  text-decoration: underline;
}

/* ── NAVBAR ── */
.navbar-main {
  background: var(--dark);
  padding: 12px 0;
  position: sticky;
  top: 0;
  z-index: 1030;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .35);
}
.navbar-main .navbar-brand img { height: 42px; }

.search-wrap { position: relative; }
.search-wrap .bi-search {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, .45);
  font-size: .85rem;
  pointer-events: none;
}

.search-bar-nav {
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 6px;
  color: #fff;
  padding: 7px 14px 7px 38px;
  font-size: .88rem;
  transition: background .2s;
  width: 100%;
}
.search-bar-nav::placeholder { color: rgba(255, 255, 255, .45); }
.search-bar-nav:focus {
  background: rgba(255, 255, 255, .14);
  outline: none;
  border-color: var(--yellow);
}

.nav-icon {
  color: #fff;
  font-size: 1.25rem;
  position: relative;
  transition: color .2s;
}
.nav-icon:hover { color: var(--yellow); }

.cart-badge {
  position: absolute;
  top: -6px;
  right: -8px;
  background: var(--yellow);
  color: var(--dark);
  font-size: .6rem;
  font-weight: 700;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-signin {
  background: var(--yellow);
  color: var(--dark);
  font-weight: 700;
  font-size: .82rem;
  border: none;
  border-radius: 6px;
  padding: 7px 16px;
  transition: background .2s;
  white-space: nowrap;
}
.btn-signin:hover {
  background: var(--yellow-dark);
  color: var(--dark);
}

/* ── HERO ── */
.hero {
  background: linear-gradient(135deg, var(--dark) 60%, #2c3034 100%);
  min-height: 480px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('/themes/captainv3/assets/images/fondaccueil_fonce.jpg');
  background-size: cover;
  background-position: center;
  opacity: .12;
}
.hero-label {
  display: inline-block;
  background: var(--yellow);
  color: var(--dark);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  border-radius: 4px;
  padding: 4px 12px;
  margin-bottom: 16px;
}
.hero h1 {
  color: #fff;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.2;
}
.hero h1 span { color: var(--yellow); }
.hero-sub {
  color: rgba(255, 255, 255, .65);
  font-size: 1rem;
  margin-top: 12px;
}

/* Vehicle selector */
.vehicle-selector {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 10px;
  padding: 20px;
  margin-top: 28px;
}
.vehicle-selector label {
  color: rgba(255, 255, 255, .6);
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 6px;
  display: block;
}
.vehicle-selector select {
  background: var(--dark2);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 6px;
  padding: 10px 14px;
  font-size: .9rem;
  width: 100%;
}
.vehicle-selector select:focus {
  border-color: var(--yellow);
  outline: none;
}

.btn-go {
  background: var(--yellow);
  color: var(--dark);
  font-weight: 800;
  font-size: .95rem;
  border: none;
  border-radius: 6px;
  padding: 11px 28px;
  transition: background .2s, transform .15s;
  cursor: pointer;
  width: 100%;
}
.btn-go:hover {
  background: var(--yellow-dark);
  transform: translateY(-1px);
}

/* ── REASSURANCE BAR ── */
.reassurance-bar {
  background: var(--dark);
  padding: 20px 0;
  border-top: 3px solid var(--yellow);
}
.reassurance-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
}
.reassurance-item i {
  font-size: 1.5rem;
  color: var(--yellow);
  flex-shrink: 0;
}
.reassurance-item .rtitle {
  font-weight: 700;
  font-size: .9rem;
}
.reassurance-item .rsub {
  font-size: .78rem;
  color: rgba(255, 255, 255, .55);
}

/* ── SECTION TITLES ── */
.section-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -.02em;
}
.section-title span { color: var(--yellow); }
.section-sub {
  color: #666;
  font-size: .85rem;
  font-weight: 500;
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.section-divider {
  width: 48px;
  height: 4px;
  background: var(--yellow);
  border-radius: 2px;
  margin: 14px 0;
}

/* ── PRODUCT CARD ── */
.product-card {
  border: 1px solid #e9ecef;
  border-radius: 10px;
  overflow: hidden;
  transition: box-shadow .2s, transform .2s;
  background: #fff;
}
.product-card:hover {
  box-shadow: 0 8px 28px rgba(0, 0, 0, .12);
  transform: translateY(-3px);
}
.product-card .badge-promo {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--yellow);
  color: var(--dark);
  font-weight: 700;
  font-size: .72rem;
  border-radius: 4px;
  padding: 3px 8px;
}
.product-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  object-position: center;
  background: #f8f9fa;
  transition: transform .35s ease;
}
.product-card:hover img { transform: scale(1.04); }
.product-card .card-body { padding: 14px 16px; }
.product-card .p-brand {
  font-size: .72rem;
  font-weight: 600;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.product-card .p-name {
  font-size: .92rem;
  font-weight: 700;
  color: var(--dark);
  margin: 4px 0 8px;
  line-height: 1.35;
}
.product-card .p-stars {
  color: var(--yellow);
  font-size: .8rem;
}
.product-card .p-stars span,
.product-card .p-stars div {
  color: #6c757d;
  font-size: .72rem;
  font-weight: 500;
}
.product-card .p-price {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--dark);
}
.product-card .p-price-old {
  font-size: .82rem;
  color: var(--gray);
  text-decoration: line-through;
  margin-left: 6px;
}
.btn-add {
  background: var(--dark);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: .82rem;
  font-weight: 700;
  padding: 10px 16px;
  width: 100%;
  transition: background .2s, transform .15s;
  margin-top: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  text-align: center;
}
.btn-add:hover {
  background: var(--yellow);
  color: var(--dark);
  transform: translateY(-1px);
}

/* ── CATEGORY CARD (ancienne version icon — conservée si besoin) ── */
.cat-card {
  border: 1px solid #e9ecef;
  border-radius: 10px;
  padding: 24px 16px;
  text-align: center;
  transition: border-color .2s, box-shadow .2s, transform .2s;
  cursor: pointer;
  display: block;
}
.cat-card:hover {
  border-color: var(--yellow);
  box-shadow: 0 6px 20px rgba(255, 193, 7, .15);
  transform: translateY(-2px);
}
.cat-card i {
  font-size: 2rem;
  color: var(--yellow);
  display: block;
  margin-bottom: 12px;
}
.cat-card .cat-name { font-weight: 700; font-size: .9rem; color: var(--dark); }
.cat-card .cat-count { font-size: .75rem; color: var(--gray); margin-top: 4px; }
.cat-card--dashed { border-style: dashed; }

/* ── CATEGORY IMAGE CARD ── */
.cat-img-card {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  height: 200px;
  background-size: cover;
  background-position: center;
  text-decoration: none;
  transition: transform .3s ease;
}
.cat-img-card:hover { transform: translateY(-3px); }

/* Images locales par catégorie */
.cat-img--anti-demarrage { background-image: url('https://projet-dev.captainlinux.com/template_ia/images/index/cat-anti-demarrage.jpg'); }
.cat-img--alarmes        { background-image: url('https://projet-dev.captainlinux.com/template_ia/images/index/cat-alarmes.jpg'); }
.cat-img--telecommandes  { background-image: url('https://projet-dev.captainlinux.com/template_ia/images/index/cat-telecommandes.jpg'); }
.cat-img--cablage        { background-image: url('https://projet-dev.captainlinux.com/template_ia/images/index/cat-cablage.jpg'); }
.cat-img--capteurs       { background-image: url('https://projet-dev.captainlinux.com/template_ia/images/index/cat-capteurs.jpg'); }
.cat-img--catalogue      { background-image: url('https://projet-dev.captainlinux.com/template_ia/images/index/cat-catalogue.jpg'); }


/* Overlay sombre — s'éclaircit au hover */
.cat-img-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .62);
  transition: background .35s ease;
  border-radius: 10px;
}
.cat-img-card:hover .cat-img-overlay {
  background: rgba(0, 0, 0, .25);
}

/* Texte centré par-dessus l'overlay */
.cat-img-body {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 16px;
  z-index: 1;
}
.cat-img-name {
  font-size: .95rem;
  font-weight: 800;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: .06em;
  line-height: 1.2;
}
.cat-img-explore {
  font-size: .72rem;
  font-weight: 600;
  color: rgba(255, 255, 255, .65);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-top: 4px;
  transition: color .25s, letter-spacing .25s;
}
.cat-img-card:hover .cat-img-explore {
  color: var(--yellow);
  letter-spacing: .12em;
}

/* Trait jaune en bas — apparaît au hover */
.cat-img-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--yellow);
  border-radius: 0 0 0 10px;
  transition: width .35s ease;
  z-index: 2;
}
.cat-img-card:hover::after {
  width: 100%;
}


/* ── TRUST SCORE ── */
.trust-banner {
  background: var(--yellow);
  border-radius: 10px;
  padding: 24px 28px;
}
.trust-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--dark);
  line-height: 1;
}
.trust-stars i {
  color: var(--dark);
  font-size: 1.1rem;
}

/* ── REVIEWS ── */
.review-card {
  background: var(--dark);
  color: #fff;
  border-radius: 10px;
  padding: 22px;
}
.review-card .r-stars {
  color: var(--yellow);
  font-size: .85rem;
  margin-bottom: 10px;
}
.review-card .r-text {
  font-size: .88rem;
  color: rgba(255, 255, 255, .8);
  line-height: 1.6;
}
.review-card .r-author {
  font-size: .78rem;
  font-weight: 700;
  color: var(--yellow);
  margin-top: 14px;
}
.review-card .r-verified {
  font-size: .72rem;
  color: rgba(255, 255, 255, .4);
}

/* ── BLOG CARD ── */
.blog-card {
  border: 1px solid #e9ecef;
  border-radius: 10px;
  overflow: hidden;
  transition: box-shadow .2s;
}
.blog-card:hover { box-shadow: 0 6px 20px rgba(0, 0, 0, .1); }
.blog-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.blog-card .blog-body { padding: 16px; }
.blog-tag {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--yellow);
  letter-spacing: .06em;
}
.blog-title {
  font-size: .92rem;
  font-weight: 700;
  color: var(--dark);
  margin: 6px 0 10px;
  line-height: 1.4;
}
.blog-date {
  font-size: .75rem;
  color: var(--gray);
}
.read-more {
  font-size: .8rem;
  font-weight: 700;
  color: var(--dark);
  border-bottom: 2px solid var(--yellow);
  padding-bottom: 1px;
  display: inline-block;
  margin-top: 12px;
}

/* ── CTA BAND ── */
.cta-band {
  background: var(--dark);
  border-radius: 12px;
  padding: 40px;
}
.cta-band h2 {
  color: #fff;
  font-weight: 800;
  font-size: 1.6rem;
}
.cta-band p { color: rgba(255, 255, 255, .65); }
.btn-cta {
  background: var(--yellow);
  color: var(--dark);
  font-weight: 800;
  border: none;
  border-radius: 8px;
  padding: 14px 32px;
  font-size: 1rem;
  transition: background .2s, transform .15s;
  display: inline-block;
}
.btn-cta:hover {
  background: var(--yellow-dark);
  color: var(--dark);
  transform: translateY(-2px);
}

/* ── FOOTER ── */
footer {
  background: var(--dark);
  color: rgba(255, 255, 255, .75);
  padding: 56px 0 0;
}
footer h6 {
  color: #fff;
  font-weight: 700;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 16px;
}
footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
footer ul li { margin-bottom: 8px; }
footer ul li a {
  color: rgba(255, 255, 255, .55);
  font-size: .85rem;
  transition: color .2s;
}
footer ul li a:hover { color: var(--yellow); }

.footer-desc {
  font-size: .83rem;
  color: rgba(255, 255, 255, .5);
  margin-top: 14px;
  line-height: 1.7;
}
.social-link {
  color: rgba(255, 255, 255, .5);
  font-size: 1.2rem;
  transition: color .2s;
}
.social-link:hover { color: var(--yellow); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .08);
  margin-top: 40px;
  padding: 20px 0;
  font-size: .78rem;
  color: rgba(255, 255, 255, .35);
}
.footer-bottom a { color: var(--yellow); }
.payment-icon {
  font-size: 1.5rem;
  color: rgba(255, 255, 255, .3);
}

/* ── UTILITAIRES ── */
.bg-yellow { background: var(--yellow); }
.text-yellow { color: var(--yellow); }

/* ── RESPONSIVE ── */
@media (max-width: 767px) {
  section { padding: 40px 0; }
  .hero { min-height: 400px; }
  .vehicle-selector { padding: 16px; }
  .cta-band { padding: 28px 20px; }
  .section-title { font-size: 1.3rem; }
  .trust-number { font-size: 2.2rem; }

  /* ── Footer Accordion Mobile ── */
  .ft-accordion-col { border-bottom: 1px solid rgba(255,255,255,.08); padding-bottom: 0; }
  .ft-accordion-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 14px 0;
    margin-bottom: 0 !important;
    user-select: none;
  }
  .ft-chevron {
    font-size: .7rem;
    transition: transform .25s;
    color: rgba(255,255,255,.35);
  }
  .ft-accordion-toggle.ft-open .ft-chevron { transform: rotate(180deg); }
  .ft-accordion-body { padding-bottom: 14px; }
}

/* Desktop: hide chevrons */
@media (min-width: 768px) {
  .ft-chevron { display: none; }
}

/* ── Mobile product cards ── */
@media (max-width: 575px) {
  .product-card img {
    aspect-ratio: 1 / 1;
  }
  .product-card .card-body {
    padding: 10px 12px;
  }
  .product-card .p-name {
    font-size: .78rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 2px 0 6px;
  }
  .product-card .p-brand { font-size: .65rem; }
  .product-card .p-stars {
    font-size: .7rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px 4px;
  }
  .product-card .p-stars span,
  .product-card .p-stars div {
    font-size: .62rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .product-card .p-stars span.ms-2,
  .product-card .p-stars #avis {
    margin-left: 0 !important;
  }
  .product-card .p-price { font-size: .95rem; }
  .product-card .p-price-old { font-size: .72rem; }
  .product-card .badge-promo {
    font-size: .62rem;
    padding: 2px 6px;
    top: 8px; left: 8px;
  }
  .btn-add {
    font-size: .72rem;
    padding: 8px 10px;
    margin-top: 8px;
  }
  .section-title { font-size: 1.2rem; }
  .section-sub { font-size: .75rem; }
}
