/* ============================================================
   FLAMMEBOIS — home.css
   Styles spécifiques à la page d'accueil
============================================================ */

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 93vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
}
.hero-img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  display: block;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0,0,0,.08) 0%,
    rgba(0,0,0,.5) 50%,
    rgba(0,0,0,.88) 100%
  );
}
/* Fallback si l'image ne charge pas */
.hero-bg:not(:has(img[src])) {
  background: linear-gradient(145deg, #1c0900 0%, #2e1100 45%, #0d0d0d 100%);
}

.hero-content {
  position: relative; z-index: 2;
  padding: 0 24px;
  max-width: 1160px; margin: 0 auto; width: 100%;
}

/* Bulle blanche arrondie — style original */
.hero-bubble {
  background: rgba(255, 252, 248, .97);
  backdrop-filter: blur(6px);
  border-radius: 28px 28px 0 0;
  padding: 40px 44px 36px;
  max-width: 840px;
  box-shadow: 0 -24px 80px rgba(0,0,0,.18);
}

/* Badge live */
.live-badge {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(255,85,0,.1); border: 1px solid rgba(255,85,0,.22);
  color: var(--fire); font-size: .72rem; font-weight: 700;
  padding: 5px 13px; border-radius: var(--radius-pill);
  letter-spacing: .08em; text-transform: uppercase; margin-bottom: 18px;
}
.live-dot {
  width: 7px; height: 7px; background: var(--green);
  border-radius: 50%; animation: liveBlink 1.5s infinite;
}
@keyframes liveBlink { 0%,100%{opacity:1} 50%{opacity:.25} }

.hero-bubble h1 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--coal); line-height: 1.06; margin-bottom: 14px;
}
.hero-bubble h1 em { font-style: normal; color: var(--fire); }
.hero-bubble > p {
  color: #666; font-size: 1rem; line-height: 1.58;
  margin-bottom: 24px; max-width: 560px;
}

/* ── CONFIGURATEUR ── */
.configurator {
  background: var(--coal); border-radius: 18px; padding: 22px;
}
.cfg-header { margin-bottom: 14px; }
.flash-pill {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--fire); color: #fff;
  font-size: .68rem; font-weight: 700;
  padding: 4px 11px; border-radius: var(--radius-pill);
  letter-spacing: .06em;
}
.cfg-label {
  font-size: .67rem; color: #888;
  text-transform: uppercase; letter-spacing: .07em;
  margin-bottom: 8px; margin-top: 12px;
}
.cfg-tabs {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 6px; margin-bottom: 16px;
}
.ctab {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.09);
  border-radius: 9px; padding: 8px 4px; text-align: center;
  font-size: .68rem; color: #aaa; cursor: pointer;
  transition: all .2s; font-family: var(--font-body);
}
.ctab:hover, .ctab.active {
  background: var(--fire); border-color: var(--fire); color: #fff;
}

.cfg-row {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 12px; margin-bottom: 16px;
}
.cfg-field { display: flex; flex-direction: column; gap: 5px; }
.cfg-lbl { font-size: .67rem; color: #888; text-transform: uppercase; letter-spacing: .06em; }

.qty-box {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px; padding: 10px 12px;
  display: flex; align-items: center; justify-content: space-between;
}
.qty-btn {
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(255,85,0,.14); border: 1px solid rgba(255,85,0,.28);
  color: var(--fire); font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  transition: all .2s; cursor: pointer;
}
.qty-btn:hover { background: var(--fire); color: #fff; }
.qty-val {
  font-family: var(--font-display); font-weight: 800;
  font-size: 1.35rem; color: #fff; min-width: 24px; text-align: center;
}

.cfg-input {
  width: 100%; background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1); border-radius: 10px;
  padding: 10px 14px; color: #fff; font-size: .9rem;
  font-family: var(--font-body); outline: none; transition: border-color .2s;
  height: 100%;
}
.cfg-input:focus { border-color: rgba(255,85,0,.44); }
.cfg-input::placeholder { color: #555; }

.price-display {
  background: linear-gradient(135deg, rgba(255,85,0,.12), rgba(255,85,0,.04));
  border: 1px solid rgba(255,85,0,.22); border-radius: 13px;
  padding: 14px 16px; margin-bottom: 13px;
}
.price-main { display: flex; align-items: baseline; gap: 6px; margin-bottom: 4px; }
.price-per {
  font-family: var(--font-display); font-weight: 800;
  font-size: 2rem; color: var(--fire); line-height: 1;
}
.price-unit { font-size: .8rem; color: #999; }
.price-sub { font-size: .77rem; color: #999; }

.btn-add-cart {
  width: 100%; background: linear-gradient(135deg, var(--fire), var(--fire-dark));
  border: none; border-radius: 13px; padding: 14px;
  font-family: var(--font-display); font-weight: 700; font-size: .95rem; color: #fff;
  box-shadow: 0 6px 22px rgba(255,85,0,.36); transition: all .22s; cursor: pointer;
}
.btn-add-cart:hover { transform: translateY(-1px); box-shadow: 0 10px 32px rgba(255,85,0,.5); }

.trust-row {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 7px; margin-top: 12px;
}
.trust-pill {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08);
  border-radius: 8px; padding: 6px 8px;
  display: flex; align-items: center; justify-content: center; gap: 5px;
  font-size: .63rem; color: #777; text-align: center; line-height: 1.3;
}
.trust-pill img { width: 13px; height: 13px; flex-shrink: 0; filter: invert(.5); }

/* ── RESPONSIVE HERO ── */
@media (max-width: 768px) {
  .hero { min-height: 88vh; }
  .hero-bubble { padding: 28px 22px 24px; border-radius: 22px 22px 0 0; max-width: 100%; }
  .hero-bubble h1 { font-size: clamp(1.65rem, 7vw, 2.2rem); }
  .hero-bubble > p { font-size: .92rem; }
  .cfg-row { grid-template-columns: 1fr; }
  .trust-row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .hero-bubble { padding: 22px 16px 20px; border-radius: 18px 18px 0 0; }
  .cfg-tabs { grid-template-columns: repeat(3, 1fr); gap: 4px; }
  .ctab { font-size: .62rem; padding: 7px 2px; }
}

/* ============================================================
   COMPLÉMENT HOMEPAGE — FAQ, carrousel d'avis, chat
   (regroupé ici pour ne plus avoir de <style> dupliqué en page)
============================================================ */

.hero-img-real { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; z-index: 0; }
.other-bg { background: linear-gradient(145deg, #e8f5e8, #c0e0b8); }
.btn-outline { background: transparent; border: 1.5px solid var(--fire); color: var(--fire); }
.btn-outline:hover { background: var(--fire); color: #fff; }

/* ── AVIS / CARROUSEL ── */
.reviews-section { background: #111; padding: 80px 0; overflow: hidden; }
.carousel-track-wrap { overflow: hidden; position: relative; margin-bottom: 16px; cursor: grab; }
.carousel-track-wrap:active { cursor: grabbing; }
.carousel-track-wrap::before, .carousel-track-wrap::after { content: ''; position: absolute; top: 0; bottom: 0; width: 80px; z-index: 10; pointer-events: none; }
.carousel-track-wrap::before { left: 0; background: linear-gradient(90deg, #111, transparent); }
.carousel-track-wrap::after { right: 0; background: linear-gradient(-90deg, #111, transparent); }
.carousel-track { display: flex; gap: 14px; width: max-content; transition: transform .3s ease; }
.carousel-track.ltr { animation: scrollLTR 40s linear infinite; }
.carousel-track.rtl { animation: scrollRTL 40s linear infinite; }
.carousel-track.paused, .carousel-track-wrap:hover .carousel-track { animation-play-state: paused; }
@keyframes scrollLTR { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
@keyframes scrollRTL { 0% { transform: translateX(-50%); } 100% { transform: translateX(0); } }
.av-rose { background: linear-gradient(135deg, #f43f5e, #be123c); }
.av-indigo { background: linear-gradient(135deg, #6366f1, #4338ca); }
.av-lime { background: linear-gradient(135deg, #84cc16, #4d7c0f); }

/* ── FAQ ── */
.faq-section { background: var(--cream); padding: 72px 24px; }
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 36px; }
.fi { background: var(--cream); border: 1px solid rgba(0,0,0,.06); border-radius: 14px; overflow: hidden; transition: border-color .2s; break-inside: avoid; margin-bottom: 12px; display: block; }
.fi:hover { border-color: rgba(255,85,0,.2); }
.fq { padding: 16px 20px; font-weight: 600; font-size: .88rem; color: var(--coal); cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; transition: background .15s; user-select: none; }
.fq:hover { background: rgba(255,85,0,.04); }
.fi.open .fq { color: var(--fire); background: rgba(255,85,0,.04); }
.fi-ico { font-size: 1.1rem; color: #aaa; flex-shrink: 0; transition: transform .25s; font-style: normal; line-height: 1; }
.fi.open .fi-ico { transform: rotate(45deg); color: var(--fire); }
.fa { display: none; padding: 0 20px 16px; font-size: .84rem; color: #666; line-height: 1.7; }
.fi.open .fa { display: block; }

/* ── TRUST BAR (variante bt-*) ── */
.bt-inner { max-width: 1160px; margin: 0 auto; display: flex; align-items: center; justify-content: space-around; flex-wrap: wrap; gap: 8px; }
.bt-item { display: flex; align-items: center; gap: 7px; font-size: .72rem; color: #aaa; white-space: nowrap; }
.bt-item strong { color: #fff; font-size: .76rem; }
.bt-item .bt-ico { font-size: 1rem; flex-shrink: 0; }

/* ── CHAT (styles additionnels spécifiques homepage — le widget commun est dans main.css) ── */
.chat-input-row { display: flex; gap: 8px; border-top: 1px solid rgba(0,0,0,.07); padding-top: 12px; }
.chat-input { flex: 1; background: #f9f9f9; border: 1px solid rgba(0,0,0,.1); border-radius: 10px; padding: 9px 12px; font-size: .82rem; outline: none; font-family: var(--font-body); transition: border-color .2s; }
.chat-input:focus { border-color: rgba(255,85,0,.4); }
.chat-send { background: var(--fire); border: none; border-radius: 10px; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; transition: all .2s; }
.chat-send:hover { background: var(--fire-dark); }
.chat-powered { text-align: center; font-size: .67rem; color: #ccc; padding: 8px; }

@media (max-width: 768px) {
  .faq-grid { grid-template-columns: 1fr; }
  .faq-section { padding: 56px 16px; }
  .bt-inner { gap: 6px; }
  .bt-item span:not(strong) { display: none; }
}
