/* =============================================================
   CSS commun pour toutes les pages Rubriques-Villes
   Utilisé par : agencement, canapés-fauteuils, convertibles,
                 cuisines, dressing, literie
   ============================================================= */

/* Layout principal */
main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 16px 36px;
}

/* Breadcrumb */
.breadcrumb {
  font-size: 0.95rem;
  margin: 6px 0 16px;
  color: #666;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  list-style: none;
  padding: 0;
  margin: 0;
}

.breadcrumb li {
  display: flex;
  align-items: center;
}

.breadcrumb li:not(:last-child)::after {
  content: "›";
  margin-left: 8px;
  color: #999;
}

.breadcrumb a {
  color: #666;
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb a:hover {
  color: #da532c;
  text-decoration: underline;
}

.breadcrumb li:last-child strong {
  color: #333;
  font-weight: 500;
}

/* Grid header */
.grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 22px;
  align-items: center;
}

@media (max-width: 900px) {
  .grid {
    grid-template-columns: 1fr;
  }
}

header.grid > div{min-width:0}
.image-container{min-width:0}
.image-container img{max-width:100%; height:auto}

/* Sécurise le layout Grid avec <picture> (img_picture helper) */
.grid > div{min-width:0}
.image-container{min-width:0}
.image-container picture{display:block;width:100%}
.image-container img{display:block;width:100%;height:auto}

/* Boutons CTA */
.cta-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn {
  background: #111;
  color: #fff;
  padding: 10px 14px;
  border-radius: 12px;
  text-decoration: none;
  border: 1px solid #222;
  transition: all 0.2s;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn.gold {
  background: linear-gradient(135deg, #d4af37, #b88f21);
  color: #1d1a10;
  border: 1px solid #a8821a;
}

/* Cards */
.card {
  border: 1px solid #eee;
  border-radius: 14px;
  overflow: hidden;
}

.cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 22px;
}

@media (max-width: 900px) {
  .cols {
    grid-template-columns: 1fr;
  }
}

/* Carte Google Maps */
#map {
  width: 100%;
  max-width: 1000px;
  height: 420px;
  margin: 0 auto;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

#itineraire-info {
  text-align: center;
  margin: 12px auto 0;
  font-weight: 700;
  background: #f9f9f9;
  padding: 12px;
  border-radius: 10px;
  max-width: 1000px;
}

figcaption {
  text-align: center;
  font-style: italic;
  max-width: 1000px;
  margin: 14px auto 0;
  line-height: 1.6;
}

/* FAQ */
.faq dt {
  font-weight: 700;
  margin-top: 12px;
}

.faq dd {
  margin: 6px 0 0 0;
  color: #444;
}

/* Bouton "Haut de page" */
.to-top {
  position: fixed;
  right: 16px;
  bottom: 16px;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #111;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
  z-index: 9999;
  transition: all 0.2s;
}

.to-top:hover {
  filter: brightness(0.95);
  transform: translateY(-2px);
}

/* Focus accessible */
.to-top:focus {
  outline: 3px solid #e4a976;
  outline-offset: 3px;
}

.to-top:focus:not(:focus-visible) {
  outline: none;
}

/* Section avantages */
.section-avantages {
  margin: 30px 0;
  padding: 25px;
  background: #f9f9f9;
  border-radius: 12px;
}

.section-avantages ul {
  line-height: 1.8;
  list-style: none;
  padding: 0;
  margin: 15px 0 0;
}

.section-avantages li {
  padding: 8px 0;
  border-bottom: 1px solid #e5e5e5;
}

.section-avantages li:last-child {
  border-bottom: none;
}

/* Conteneur image avec overlay */
.image-container {
  position: relative;
  display: block;
  width: 100%;
  line-height: 0;
  overflow: hidden;
  border-radius: 12px;
}

.image-container img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.image-overlay {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(218, 83, 44, 0.95);
  color: #fff;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 15px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.4);
  z-index: 10;
  pointer-events: none;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .image-overlay {
    font-size: 13px;
    padding: 7px 14px;
    bottom: 8px;
    right: 8px;
  }
}

/* Scroll fluide */
html {
  scroll-behavior: smooth;
}

/* Section showroom */
#showroom-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 34px 0 6px;
  padding: 0 12px;
}