/* ============================================
   BENETEAU - Editorial Design
   AD Strasbourg
   ============================================ */

/* --- Sections --- */
.bn-section { padding: 55px 0; }
.bn-section-alt { background: #f7f8fa; }

/* --- Titres --- */
.bn-heading {
  text-align: center;
  margin-bottom: 40px;
}
.bn-heading h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1a2e40;
  display: inline-block;
  position: relative;
}
.bn-heading h2::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background: #1977bc;
  margin: 10px auto 0;
}
.bn-model-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: #1a2e40;
  margin-bottom: 4px;
}
.bn-model-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

/* --- Intro --- */
.bn-intro {
  font-size: 1.08rem;
  color: #555;
  line-height: 1.85;
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}

/* --- Hero image (1 grande photo par modele) --- */
.bn-hero-img {
  margin-bottom: 30px;
  border-radius: 8px;
  overflow: hidden;
}
.bn-hero-img img {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  display: block;
  cursor: pointer;
  transition: transform 0.4s ease;
}
.bn-hero-img:hover img {
  transform: scale(1.015);
}

/* --- Thumbnail strip (galerie horizontale) --- */
.bn-thumb-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 8px 0 12px;
  scrollbar-width: thin;
  scrollbar-color: #1977bc #eee;
  margin-top: 20px;
}
.bn-thumb-strip::-webkit-scrollbar { height: 4px; }
.bn-thumb-strip::-webkit-scrollbar-thumb { background: #1977bc; border-radius: 2px; }
.bn-thumb-strip img {
  height: 90px;
  border-radius: 5px;
  flex-shrink: 0;
  cursor: pointer;
  opacity: 0.85;
  transition: opacity 0.2s, transform 0.2s;
}
.bn-thumb-strip img:hover {
  opacity: 1;
  transform: scale(1.04);
}
.bn-thumb-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 90px;
  min-width: 70px;
  background: #1a2e40;
  color: #fff;
  border-radius: 5px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s;
}
.bn-thumb-count:hover { background: #1977bc; }

/* --- Description & text --- */
.bn-description {
  font-size: 0.95rem;
  color: #444;
  line-height: 1.85;
  margin-bottom: 15px;
}

/* --- Highlights (feature list) --- */
.bn-highlights {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
}
.bn-highlights li {
  position: relative;
  padding: 7px 0 7px 22px;
  font-size: 0.9rem;
  color: #444;
  line-height: 1.6;
}
.bn-highlights li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #1977bc;
}
.bn-highlights li strong {
  color: #1a2e40;
}

/* --- Architect --- */
.bn-architect {
  font-size: 0.85rem;
  color: #888;
  font-style: italic;
  margin-top: 6px;
}

/* --- Table specs --- */
.bn-specs {
  width: 100%;
  border-collapse: collapse;
  margin: 15px 0;
}
.bn-specs tr {
  border-bottom: 1px solid #eaecf0;
}
.bn-specs tr:last-child {
  border-bottom: none;
}
.bn-specs td {
  padding: 9px 0;
  font-size: 0.9rem;
  vertical-align: top;
}
.bn-specs td:first-child {
  font-weight: 600;
  color: #333;
  width: 45%;
  padding-right: 12px;
}
.bn-specs td:last-child {
  color: #555;
}

/* --- Price --- */
.bn-price {
  font-size: 1.3rem;
  font-weight: 700;
  color: #1977bc;
  margin: 12px 0 5px;
}

/* --- Plans (scroll horizontal) --- */
.bn-plans {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
  margin-top: 15px;
}
.bn-plans::-webkit-scrollbar { height: 4px; }
.bn-plans::-webkit-scrollbar-thumb { background: #1977bc; border-radius: 2px; }
.bn-plans img {
  height: 150px;
  border-radius: 5px;
  flex-shrink: 0;
  cursor: pointer;
}

/* --- Badges --- */
.bn-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.bn-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 3px;
  font-size: 0.73rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}
.bn-badge-new { background: #1977bc; }
.bn-badge-award { background: #b89a3d; }
.bn-badge-info { background: #2c7a5c; }

/* --- Gamme Cards (page landing) --- */
.bn-gamme-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.bn-gamme-card {
  position: relative;
  display: block;
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.bn-gamme-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  color: #fff;
  text-decoration: none;
}
.bn-gamme-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.bn-gamme-card:hover img {
  transform: scale(1.05);
}
.bn-gamme-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 50px 20px 18px;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
}
.bn-gamme-overlay h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff !important;
  margin: 0 0 3px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}
.bn-gamme-overlay span {
  font-size: 0.82rem;
  opacity: 0.9;
}

/* --- Model Cards (compact, sans photo) --- */
.bn-card {
  background: #fff;
  border: 1px solid #e8ecf0;
  border-radius: 8px;
  padding: 20px;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.bn-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}
.bn-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1a2e40;
  margin-bottom: 5px;
}
.bn-card-dims {
  font-size: 0.85rem;
  color: #999;
  margin-bottom: 8px;
}
.bn-card-desc {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 10px;
}
.bn-card .bn-badges {
  margin-top: auto;
}

/* --- Image Cards (avec vignette) --- */
.bn-img-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  height: 100%;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.bn-img-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 22px rgba(0,0,0,0.1);
}
.bn-img-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}
.bn-img-card-body {
  padding: 18px;
}
.bn-img-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1a2e40;
  margin-bottom: 5px;
}

/* --- Overlay Cards (modeles avec image) --- */
.bn-overlay-card {
  position: relative;
  display: block;
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  margin-bottom: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.bn-overlay-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  color: #fff;
  text-decoration: none;
}
.bn-overlay-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.bn-overlay-card:hover img {
  transform: scale(1.04);
}
.bn-overlay-card .bn-overlay-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px 18px 16px;
  background: linear-gradient(transparent, rgba(0,0,0,0.75));
}
.bn-overlay-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 4px;
}
.bn-overlay-card .bn-overlay-specs {
  font-size: 0.82rem;
  opacity: 0.85;
}

/* --- Features (avantages) --- */
.bn-feature {
  text-align: center;
  padding: 25px 15px;
}
.bn-feature i {
  font-size: 2rem;
  color: #1977bc;
  margin-bottom: 15px;
  display: block;
}
.bn-feature h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1a2e40;
  margin-bottom: 8px;
}
.bn-feature p {
  font-size: 0.88rem;
  color: #666;
  line-height: 1.6;
}

/* --- ADN Cards --- */
.oc-adn-card {
  background: #fff;
  border-radius: 10px;
  padding: 0;
  height: 100%;
  overflow: hidden;
  box-shadow: 0 1px 6px rgba(0,0,0,0.06);
  border: 1px solid #eaecf0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.oc-adn-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
.oc-adn-bar {
  height: 4px;
  background: #1977bc;
}
.oc-adn-body {
  padding: 30px 24px 28px;
}
.oc-adn-body i {
  font-size: 1.6rem;
  color: #1977bc;
  display: block;
  margin-bottom: 16px;
}
.oc-adn-body h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #1a2e40;
  margin-bottom: 10px;
}
.oc-adn-body p {
  font-size: 0.86rem;
  color: #666;
  line-height: 1.75;
  margin: 0;
}

/* --- CTA --- */
.bn-cta {
  padding: 45px 0;
  text-align: center;
}

/* --- Profil images --- */
.bn-profil img {
  max-width: 100%;
  border-radius: 5px;
}

/* --- Lightbox --- */
.bn-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.93);
  z-index: 99999;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.bn-lightbox.active { display: flex; }
.bn-lightbox img {
  max-width: 90vw;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 3px;
  transition: opacity 0.2s ease;
}
.bn-lb-close {
  position: absolute;
  top: 16px;
  right: 22px;
  color: #fff;
  font-size: 1.8rem;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
  z-index: 100000;
  line-height: 1;
}
.bn-lb-close:hover { opacity: 1; }
.bn-lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  font-size: 2.2rem;
  cursor: pointer;
  padding: 15px;
  opacity: 0.6;
  transition: opacity 0.2s;
  user-select: none;
  line-height: 1;
}
.bn-lb-nav:hover { opacity: 1; }
.bn-lb-prev { left: 8px; }
.bn-lb-next { right: 8px; }
.bn-lb-counter {
  position: absolute;
  bottom: 16px;
  color: #fff;
  font-size: 0.8rem;
  opacity: 0.6;
  letter-spacing: 1px;
}

/* --- Responsive --- */
@media (max-width: 991px) {
  .bn-gamme-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .bn-hero-img img {
    aspect-ratio: 16 / 9;
  }
}
@media (max-width: 767px) {
  .bn-gamme-grid {
    grid-template-columns: 1fr;
  }
  .bn-section { padding: 35px 0; }
  .oc-adn-body { padding: 24px 18px 22px; }
  .bn-model-title { font-size: 1.3rem; }
  .bn-plans img { height: 120px; }
  .bn-hero-img img { aspect-ratio: 16 / 10; }
  .bn-thumb-strip img { height: 65px; }
  .bn-feature-card { padding: 30px 20px 28px; }
}
