/* =============================================================
   Styles pour les articles de blog - IDEE&CO
   ============================================================= */

/* Layout principal */
main.article {
  max-width: 950px;
  margin: 0 auto;
  padding: 0 16px 60px;
}

/* Breadcrumb structuré */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 1.5em;
  font-size: 0.9rem;
}

.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 span {
  color: #333;
  font-weight: 500;
}

/* Titres */
.article h1 {
  font-size: clamp(26px, 3vw, 40px);
  margin: 0.6em 0 0.4em;
  text-align: center;
  color: #222;
}

.article h2 {
  margin: 1.8em 0 0.5em;
  font-size: clamp(20px, 2.3vw, 28px);
  color: #222;
}

.article h3 {
  margin: 1.2em 0 0.4em;
  font-size: clamp(18px, 2vw, 23px);
  color: #333;
}

/* Paragraphes et contenu */
.article p {
  margin: 0.7em 0;
  line-height: 1.7;
  color: #333;
  font-size: 1.05rem;
}

.article strong {
  color: #000;
}

/* Images */
.article img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  margin: 18px auto;
  display: block;
}

/* Sur ordinateur : image moins "envahissante" */
@media (min-width: 860px) {
  .article img {
    max-width: 760px;
    /* ajuste : 700 / 760 / 820 selon ton goût */
  }
}

/* Listes */
.article ul {
  margin: 1em 0 1em 1.3em;
  line-height: 1.6;
}

/* Bandeau CTA */
.cta-band {
  margin-top: 2.5em;
  text-align: center;
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 12px;
  background: #fafafa;
}

.cta-band h3 {
  margin-top: 0;
}

.cta-band a {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 20px;
  background: linear-gradient(180deg, #e4a976, #da532c);
  color: #fff;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  transition: filter 0.2s;
}

.cta-band a:hover {
  filter: brightness(0.95);
}

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

/* Bouton "Haut de page" */
.to-top {
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  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: filter 0.2s;
}

.to-top:hover {
  filter: brightness(0.95);
}

/* Accessibilité : focus visible pour navigation clavier */
.to-top:focus {
  outline: 3px solid #e4a976;
  outline-offset: 3px;
}

/* Masque le focus pour les clics souris (navigateurs modernes) */
.to-top:focus:not(:focus-visible) {
  outline: none;
}

/* Responsive */
@media (max-width: 768px) {
  .article h1 {
    font-size: 26px;
  }

  .article h2 {
    font-size: 22px;
  }

  .article h3 {
    font-size: 19px;
  }

  .to-top {
    width: 40px;
    height: 40px;
    right: 12px;
    bottom: 12px;
  }
}

/* Carte Google Maps (articles blog avec section showroom) */
#map {
  width: 100%;
  max-width: 1000px;
  height: 420px;
  margin: 0 auto;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(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;
}

@media (max-width:768px) {
  #map {
    height: 360px;
  }
}