/* ============================================================
   abris-voiture.css — BMS Carports & Abris de voiture
   ============================================================ */

/* --- HERO SECTION --- */
.av-hero {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: var(--clr-primary, #05397c);
  color: #ffffff;
  padding: 5rem 0 4rem;
}

.av-hero-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 1;
  opacity: 0.35;
}

.av-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(5, 57, 124, 0.92) 0%, rgba(5, 57, 124, 0.75) 100%);
  z-index: 2;
}

.av-hero-content {
  position: relative;
  z-index: 3;
  max-width: 800px;
}

.av-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.av-hero-line {
  width: 32px;
  height: 3px;
  background-color: var(--clr-secondary, #fe8028);
  border-radius: 2px;
}

.av-hero-label {
  font-family: var(--ff-mono, "JetBrains Mono", monospace);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 2px;
  color: var(--clr-secondary, #fe8028);
  text-transform: uppercase;
}

.av-hero-title {
  font-family: var(--ff-heading, "IBM Plex Sans", sans-serif);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  color: #ffffff;
  white-space: nowrap;
}

.av-hero-title .highlight {
  color: var(--clr-secondary, #fe8028);
}

.av-hero-desc {
  font-size: 1.125rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
  max-width: 680px;
}

.av-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: center;
}

/* --- AVANTAGES --- */
.av-avantages {
  padding: 3.5rem 0;
  background-color: #ffffff;
  border-bottom: 1px solid var(--clr-surface-container-high, #e2e7ff);
}

.av-avantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}

.av-avantage-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.5rem;
  background: var(--clr-surface, #faf8ff);
  border-radius: 12px;
  border: 1px solid var(--clr-surface-container-high, #e2e7ff);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.av-avantage-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(5, 57, 124, 0.08);
}

.av-avantage-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: rgba(254, 128, 40, 0.12);
  color: var(--clr-secondary, #fe8028);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.av-avantage-icon .material-symbols-outlined {
  font-size: 1.75rem;
}

.av-avantage-item h3 {
  font-family: var(--ff-heading, "IBM Plex Sans", sans-serif);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--clr-primary, #05397c);
  margin-bottom: 0.5rem;
}

.av-avantage-item p {
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--clr-on-surface-variant, #43474f);
}

/* --- CATALOGUE --- */
.av-catalogue {
  padding: 5rem 0;
  background-color: var(--clr-surface, #faf8ff);
}

.av-section-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 3.5rem;
}

.section-title-line {
  display: block;
  width: 45px;
  height: 4px;
  background-color: var(--clr-secondary, #fe8028);
  margin: 0 auto 1rem;
  border-radius: 2px;
}

.av-section-title {
  font-family: var(--ff-heading, "IBM Plex Sans", sans-serif);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--clr-primary, #05397c);
  margin-bottom: 0.75rem;
}

.av-section-title .highlight {
  color: var(--clr-secondary, #fe8028);
}

.av-section-desc {
  font-size: 1.0625rem;
  color: var(--clr-on-surface-variant, #43474f);
}

/* CARTE PRODUIT COMPACTE EN LIGNE */
.av-product-card {
  display: grid;
  grid-template-columns: 280px 1fr 220px;
  gap: 0;
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e0e4f0;
  box-shadow: 0 2px 10px rgba(5, 57, 124, 0.06);
  margin-bottom: 1.5rem;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  align-items: center;
}

.av-product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(5, 57, 124, 0.11);
  border-color: var(--clr-secondary, #fe8028);
}

.av-product-img-wrap {
  position: relative;
  width: 280px;
  height: 210px;
  flex-shrink: 0;
  padding: 0;
  background: #f8f9fc;
  border-right: 1px solid #e0e4f0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.av-product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.4s ease;
}

.contain-img .av-product-img {
  object-fit: contain;
  padding: 0.75rem;
  background: #f8f9fc;
}

.av-product-card:hover .av-product-img {
  transform: scale(1.04);
}

.av-product-badge {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  background: var(--clr-primary, #05397c);
  color: #ffffff;
  font-family: var(--ff-mono, "JetBrains Mono", monospace);
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.18);
  z-index: 2;
}

.av-badge-orange {
  background: var(--clr-secondary, #fe8028);
}

.av-badge-dark {
  background: #1e293b;
}

.av-product-info {
  padding: 1rem 1rem 1rem 1.25rem;
}

.av-product-title {
  font-family: var(--ff-heading, "IBM Plex Sans", sans-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--clr-primary, #05397c);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.av-product-desc {
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--clr-on-surface-variant, #43474f);
  margin-bottom: 0.875rem;
}

.av-product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.av-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
}

.av-tag .material-symbols-outlined {
  font-size: 1rem;
}

.av-tag-blue {
  background: #eef2ff;
  color: var(--clr-primary, #05397c);
}

.av-tag-green {
  background: #ecfdf5;
  color: #047857;
}

.av-product-price-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.25rem;
  background: #f8f9fc;
  border-left: 1px solid #e0e4f0;
  text-align: center;
  height: 100%;
}

.av-price-label {
  font-size: 0.75rem;
  color: var(--clr-on-surface-variant, #43474f);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.2rem;
}

.av-price {
  font-family: var(--ff-heading, "IBM Plex Sans", sans-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--clr-secondary, #fe8028);
  margin-bottom: 0.875rem;
  line-height: 1;
}

.av-btn-devis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  background-color: var(--clr-secondary, #fe8028);
  color: #ffffff;
  font-family: var(--ff-body, "Hanken Grotesk", sans-serif);
  font-weight: 700;
  font-size: 0.9375rem;
  border-radius: 8px;
  text-decoration: none;
  width: 100%;
  max-width: 180px;
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 12px rgba(254, 128, 40, 0.25);
}

.av-btn-devis:hover {
  background-color: #e06c17;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(254, 128, 40, 0.35);
  color: #ffffff;
}

/* --- GALERIE --- */
.av-galerie {
  padding: 4.5rem 0;
  background-color: #ffffff;
}

.av-galerie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.av-galerie-item {
  border-radius: 12px;
  overflow: hidden;
  height: 220px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.av-galerie-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.av-galerie-item:hover img {
  transform: scale(1.08);
}

/* --- CTA FINAL --- */
.av-cta {
  position: relative;
  padding: 5rem 0;
  background: var(--clr-primary, #05397c);
  color: #ffffff;
  text-align: center;
  overflow: hidden;
}

.av-cta-bg {
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(254, 128, 40, 0.18) 0%, rgba(5, 57, 124, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
}

.av-cta-inner {
  position: relative;
  z-index: 2;
  max-width: 720px;
  margin: 0 auto;
}

.av-cta-title {
  font-family: var(--ff-heading, "IBM Plex Sans", sans-serif);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  margin-bottom: 1rem;
  color: #ffffff;
}

.av-cta-title .highlight {
  color: var(--clr-secondary, #fe8028);
}

.av-cta-desc {
  font-size: 1.125rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2.25rem;
}

.av-cta-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

/* --- MEDIA QUERIES RESPONSIVE --- */
@media (max-width: 992px) {
  .av-product-card {
    grid-template-columns: 260px 1fr;
    grid-template-rows: auto auto;
  }

  .av-product-img-wrap {
    width: 260px;
    height: 195px;
  }
  
  .av-product-price-col {
    grid-column: 1 / -1;
    border-left: none;
    border-top: 1px dashed var(--clr-surface-container-high, #e2e7ff);
    flex-direction: row;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
  }

  .av-price {
    margin-bottom: 0;
  }

  .av-btn-devis {
    width: auto;
  }

  .av-product-info {
    padding: 1.5rem 1.5rem 1.5rem 0;
  }
}

@media (max-width: 768px) {
  .av-hero {
    min-height: 400px;
    padding: 4rem 0 3rem;
  }

  .av-hero-actions {
    flex-direction: column;
    align-items: center;
    gap: 0.875rem;
  }

  .av-hero-actions .btn-hero-primary,
  .av-hero-actions .btn-hero-outline {
    width: 280px;
    max-width: 100%;
    justify-content: center;
    font-size: 0.9375rem;
    padding: 0.875rem 1.25rem;
  }

  .av-product-card {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .av-product-img-wrap {
    width: 100%;
    height: 240px;
  }

  .av-product-info {
    padding: 1.5rem;
  }

  .av-product-price-col {
    flex-direction: column;
    gap: 0.75rem;
  }

  .av-btn-devis {
    width: 280px;
    max-width: 100%;
    font-size: 0.9375rem;
    padding: 0.875rem 1.25rem;
  }

  .av-cta-actions {
    flex-direction: column;
    align-items: center;
    gap: 0.875rem;
  }

  .av-cta-actions .btn-cta-primary,
  .av-cta-actions .btn-cta-outline {
    width: 280px;
    max-width: 100%;
    justify-content: center;
    font-size: 0.9375rem;
    padding: 0.875rem 1.25rem;
  }
}
