/* =====================================================
   PAGE MODÈLE — styles spécifiques
   ===================================================== */

/* ---- Fil d'Ariane ---- */
.breadcrumb-bar {
  background: var(--cream);
  border-bottom: 1px solid var(--gray-light);
  padding: 10px 0;
  margin-top: 68px;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--gray);
}
.breadcrumb a {
  color: var(--gray);
  transition: color var(--transition);
}
.breadcrumb a:hover { color: var(--wood-dark); }
.breadcrumb span:last-child { color: var(--charcoal); font-weight: 500; }

/* ---- En-tête modèle ---- */
.modele-page {
  padding: 48px 0 80px;
}

.modele-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.modele-header-text h1 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: normal;
  color: var(--charcoal);
  margin: 10px 0 8px;
  line-height: 1.15;
}
.modele-subtitle {
  font-size: 1rem;
  color: var(--gray);
  max-width: 540px;
  line-height: 1.6;
}

.modele-header-price {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
  flex-shrink: 0;
}
.price-block {
  text-align: right;
}
.price-label {
  display: block;
  font-size: 0.75rem;
  font-style: italic;
  color: var(--gray);
  margin-bottom: 2px;
}
.price-amount {
  display: block;
  font-family: var(--font-head);
  font-size: 2.2rem;
  font-weight: bold;
  color: var(--wood-dark);
  line-height: 1;
}
.price-currency {
  font-size: 1.1rem;
  font-weight: normal;
  color: var(--gray);
}
.price-note {
  display: block;
  font-size: 0.75rem;
  color: var(--gray);
  margin-top: 4px;
}

/* ---- Galerie ---- */
.gallery {
  margin-bottom: 56px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.gallery-main {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 10px;
  overflow: hidden;
  background: var(--cream-dark);
  box-shadow: var(--shadow-lg);
}
.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s ease;
  display: block;
}
.gallery-thumbs {
  display: flex;
  gap: 12px;
}
.thumb {
  flex: 1;
  aspect-ratio: 4/3;
  border: 2px solid transparent;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  padding: 0;
  background: none;
  transition: border-color var(--transition), opacity var(--transition);
  opacity: 0.65;
}
.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.thumb:hover { opacity: 0.85; }
.thumb.active {
  border-color: var(--wood);
  opacity: 1;
}

/* ---- Corps de page ---- */
.modele-body {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 48px;
  align-items: start;
}

/* Specs banner */
.specs-banner {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  background: var(--charcoal);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 40px;
}
.spec-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 18px 12px;
  border-right: 1px solid rgba(255,255,255,0.08);
  gap: 4px;
}
.spec-item:last-child { border-right: none; }
.spec-icon {
  font-size: 1.1rem;
  opacity: 0.5;
  color: var(--white);
  line-height: 1;
}
.spec-val {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: bold;
  color: var(--wood-light);
  line-height: 1.2;
}
.spec-key {
  font-size: 0.68rem;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Sections descriptif */
.desc-section {
  margin-bottom: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--cream-dark);
}
.desc-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
.desc-section h2 {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: normal;
  color: var(--charcoal);
  margin-bottom: 16px;
  padding-left: 14px;
  border-left: 3px solid var(--wood);
}
.desc-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-left: 4px;
}
.desc-list li {
  font-size: 0.92rem;
  color: var(--gray);
  line-height: 1.65;
  padding-left: 20px;
  position: relative;
}
.desc-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--wood);
  font-weight: bold;
}
.desc-list strong { color: var(--charcoal); }

/* ---- Sidebar tarifs ---- */
.modele-sidebar {
  position: sticky;
  top: 84px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.price-card {
  background: var(--white);
  border-radius: 10px;
  padding: 24px;
  box-shadow: var(--shadow);
}
.price-card h3 {
  font-family: var(--font-head);
  font-size: 1.05rem;
  color: var(--charcoal);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--cream-dark);
}

.price-option {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 12px;
}
.price-option-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 4px;
}
.price-option-desc {
  font-size: 0.78rem;
  color: var(--gray);
  line-height: 1.5;
  margin-bottom: 8px;
}
.price-option-amount {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: bold;
  color: var(--wood-dark);
}
.price-option-note {
  font-size: 0.72rem;
  color: var(--gray);
  margin-top: 2px;
}

.price-divider {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray);
  margin: 16px 0 12px;
}

.price-option-extra {
  background: var(--cream-dark);
  border: 1px dashed var(--gray-light);
}
.price-option-extra .price-option-amount {
  font-size: 1.1rem;
  color: var(--wood);
}

.btn-full { width: 100%; text-align: center; margin-top: 8px; }
.price-card-note {
  font-size: 0.75rem;
  color: var(--gray);
  text-align: center;
  margin-top: 12px;
  line-height: 1.6;
}

.price-card-secondary {
  background: var(--cream);
  box-shadow: none;
  border: 1px solid var(--gray-light);
}
.price-card-secondary h3 { border-bottom-color: var(--gray-light); }

.dims-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}
.dims-table tr {
  border-bottom: 1px solid var(--gray-light);
}
.dims-table tr:last-child { border-bottom: none; }
.dims-table td {
  padding: 7px 4px;
  color: var(--gray);
}
.dims-table td:last-child {
  text-align: right;
  color: var(--charcoal);
}

/* ---- Vidéo ---- */
.modele-video {
  margin-top: 72px;
  padding-top: 48px;
  border-top: 1px solid var(--cream-dark);
}
.modele-video h2 {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: normal;
  color: var(--charcoal);
  margin-bottom: 20px;
}
.modele-video video {
  width: 100%;
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
  background: #000;
  display: block;
}

/* ---- Autres modèles ---- */
.other-models {
  margin-top: 72px;
  padding-top: 48px;
  border-top: 1px solid var(--cream-dark);
}
.other-models h2 {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: normal;
  color: var(--charcoal);
  margin-bottom: 24px;
}
.other-models-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.other-model-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 22px;
  background: var(--cream);
  border-radius: 10px;
  border: 1px solid var(--gray-light);
  transition: all var(--transition);
}
.other-model-card:hover {
  background: var(--white);
  border-color: var(--wood);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}
.other-model-name {
  font-family: var(--font-head);
  font-size: 1.1rem;
  color: var(--charcoal);
}
.other-model-price {
  font-size: 0.85rem;
  color: var(--wood-dark);
  font-weight: 600;
}
.other-model-link {
  font-size: 0.78rem;
  color: var(--wood);
  margin-top: 4px;
  font-weight: 600;
}

/* Galerie sans thumbnails (1 photo) */
.gallery-single .gallery-main {
  margin-bottom: 0;
}

/* Galerie avec beaucoup de photos : défilement horizontal */
.gallery-thumbs-many {
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--wood) var(--cream-dark);
  padding-bottom: 6px;
  gap: 8px;
}
.gallery-thumbs-many::-webkit-scrollbar { height: 5px; }
.gallery-thumbs-many::-webkit-scrollbar-track { background: var(--cream-dark); border-radius: 3px; }
.gallery-thumbs-many::-webkit-scrollbar-thumb { background: var(--wood); border-radius: 3px; }

.gallery-thumbs-many .thumb {
  flex: 0 0 100px;
  width: 100px;
  aspect-ratio: 4/3;
}

/* Mention exclusive */
.modele-exclusive {
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--wood-dark), var(--wood));
  color: var(--white);
  padding: 14px 20px;
  border-radius: var(--radius);
  font-size: 0.92rem;
  margin-bottom: 32px;
  font-weight: 500;
}
.modele-exclusive span:first-child {
  font-size: 1.2rem;
  flex-shrink: 0;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 1024px) {
  .specs-banner {
    grid-template-columns: repeat(3, 1fr);
  }
  .spec-item:nth-child(3) { border-right: none; }
  .spec-item:nth-child(4), .spec-item:nth-child(5), .spec-item:nth-child(6) {
    border-top: 1px solid rgba(255,255,255,0.08);
  }
}

@media (max-width: 900px) {
  .modele-body {
    grid-template-columns: 1fr;
  }
  .modele-sidebar {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .other-models-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .modele-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .modele-header-price { align-items: flex-start; }
  .price-block { text-align: left; }
  .gallery-thumbs { gap: 8px; }
  .specs-banner { grid-template-columns: repeat(2, 1fr); }
  .spec-item:nth-child(2) { border-right: none; }
  .spec-item:nth-child(3), .spec-item:nth-child(4) {
    border-top: 1px solid rgba(255,255,255,0.08);
  }
  .modele-sidebar { grid-template-columns: 1fr; }
  .other-models-grid { grid-template-columns: 1fr; }
}
