/* ====== Variables & Reset ====== */
:root{
  --brand:#f46413;
  --brand-dark:#211666;
  --text:#222;
  --muted:#6b7280;
  --bg:#f7f7fb;
  --card:#ffffff;
  --ring: rgba(244,100,19,0.25);
  --shadow: 0 6px 18px rgba(0,0,0,.08);
}

*{box-sizing:border-box}
html,body{scroll-behavior:smooth}
body{
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
  color:var(--text);
  background:#fff;
}

/* Liens: pas de soulignement partout */
a{ text-decoration:none !important; color:inherit; }
a:hover{ text-decoration:none !important; }

/* ====== Layout global ====== */
.article-detail-container{
  max-width:1200px;
  margin:0 auto;
  padding:24px;
  display:grid;
  grid-template-columns: 1.1fr .9fr;     /* Galerie | Infos */
  gap:28px;
}
@media (max-width: 992px){
  .article-detail-container{
    grid-template-columns: 1fr;
    gap:20px;
  }
}

/* ====== Breadcrumb simple ====== */
.breadcrumb{
  display:flex; gap:8px; align-items:center;
  font-size:.93rem; color:var(--muted);
  margin-bottom:8px;
}
.breadcrumb a{ color:var(--muted); }
.breadcrumb .sep{ opacity:.6; }

/* ====== Galerie ====== */
.article-gallery{ margin-bottom: 10px; }
.article-gallery h1{
  font-size:1.75rem; margin:8px 0 16px; line-height:1.3;
}

.gallery-slider{
  width:100%; overflow:hidden; margin-bottom:12px;
  border-radius:14px; background:#fff; box-shadow: var(--shadow);
  position:relative;
}
.gallery-slide{ display:none; }
.gallery-slide.active{ display:block; }
.gallery-slide img{
  width:100%; max-height:560px; object-fit:contain; display:block;
  transition: transform .35s ease;
  background:#fff;
}
.gallery-slide img:hover{ transform: scale(1.03); }

.gallery-thumbnails{
  display:flex; gap:10px; overflow-x:auto; padding:10px 2px;
  scroll-snap-type:x proximity;
}
.thumbnail{
  width:86px; height:86px; object-fit:cover; border-radius:10px;
  cursor:pointer; border:2px solid transparent; background:#fff;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
  scroll-snap-align:start; box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.thumbnail:hover{ transform: translateY(-2px); }
.thumbnail.active{
  border-color:var(--brand);
  box-shadow: 0 0 0 6px var(--ring);
  transform: scale(1.03);
}

/* ====== Panneau infos produit ====== */
.article-info{
  background: var(--bg);
  padding:22px;
  border-radius:16px;
  box-shadow: var(--shadow);
  position:sticky; top:20px;
}
.article-info .prix{
  font-size:2rem; font-weight:800; color:var(--brand); margin:0 0 8px;
}
.article-info .description{
  font-size:1.04rem; line-height:1.65; color:#333; margin-bottom:14px;
}

/* Labels (ex: disponibilité) – optionnels si tu veux les utiliser */
.pills{ display:flex; flex-wrap:wrap; gap:8px; margin:10px 0 16px; }
.pill{
  padding:6px 10px; border-radius:999px; font-size:.85rem;
  background:#fff; border:1px solid #eee; color:#374151;
}

/* Badges de confiance */
.trust{
  display:grid; grid-template-columns: repeat(3,1fr); gap:10px; margin-top:14px;
}
.trust .t{
  background:#fff; border:1px solid #f1f1f3; border-radius:12px; padding:12px;
  display:flex; align-items:center; gap:10px; font-size:.92rem; color:#374151;
}
.trust .t i{ color:var(--brand); }

/* ====== Boutons ====== */
.btn{
  display:inline-flex; align-items:center; gap:10px;
  font-weight:700; border-radius:10px; padding:12px 18px; border:0;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  box-shadow: 0 8px 16px rgba(244,100,19,.15);
  will-change: transform;
}
.btn:active{ transform: translateY(1px) scale(.99); }

.acheter-btn{
  background: linear-gradient(180deg, var(--brand) 0%, #ea5a08 100%);
  color:#fff;
}
.acheter-btn:hover{
  background: var(--brand-dark);
  color:#fff;
}

.modifier-btn{
  background:#6c757d; color:#fff; box-shadow: 0 8px 16px rgba(0,0,0,.08);
}
.modifier-btn:hover{
  background:#5a6268; color:#fff;
}

.btn-row{ display:flex; flex-wrap:wrap; gap:12px; margin-top:10px; }

/* ====== Articles similaires ====== */
.similar-articles h2{
  font-size:1.4rem; margin:26px 0 16px; color:#111;
  border-bottom:2px solid var(--brand); padding-bottom:6px;
}
.similar-list{
  display:grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap:20px;
}
.similar-card{
  background: var(--card); border-radius:14px; overflow:hidden; box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease;
}
.similar-card:hover{
  transform: translateY(-5px);
  box-shadow: 0 10px 24px rgba(0,0,0,.12);
}
.similar-card img{
  width:100%; height:200px; object-fit:cover; display:block; background:#fff;
}
.similar-card h3{
  font-size:1rem; padding:10px 12px 0; margin:0; color:#1f2937;
}
.similar-card .prix{
  font-size:1.05rem; font-weight:800; color:var(--brand); padding:0 12px 14px; margin:0;
}

/* ====== Sticky action bar (mobile) ====== */
.sticky-bar{
  position:fixed; left:0; right:0; bottom:0; z-index:50;
  background:#fff; border-top:1px solid #eee; padding:10px 12px;
  display:none; align-items:center; justify-content:space-between; gap:10px;
}
.sticky-bar .p{
  font-weight:800; color:var(--brand); font-size:1.25rem;
}
.sticky-bar .btn{ padding:12px 16px; border-radius:12px; }

@media (max-width: 768px){
  .gallery-slide img{ max-height:320px; }
  .similar-list{ grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .sticky-bar{ display:flex; }
}

/* Focus visibles (accessibilité) */
a:focus, button:focus, .thumbnail:focus{
  outline: 3px solid var(--ring);
  outline-offset:2px;
  border-radius:10px;
}
