/* ============================================================
   FAQ — Design & animations
   Chargé uniquement sur faq.html
   CSS pur — aucune dépendance externe
   ============================================================ */

:root {
  --fq-devis: #00685b;        /* Devis & premier contact (vert MY RENOV) */
  --fq-travaux: #1e8a78;      /* Travaux & chantier (vert clair) */
  --fq-prix: #b76e2e;         /* Prix & financement (terre brûlée) */
  --fq-garanties: #2c7da0;    /* Garanties & sécurité (bleu mer) */
  --fq-zones: #6a4d8c;        /* Zones d'intervention (violet) */
}

/* ===== HERO ===== */
.fq-hero {
  background: linear-gradient(135deg, #0d2520 0%, #1b1c1c 60%, #003832 100%);
  color: #fff;
  padding: 6rem 0 4rem;
  position: relative;
  overflow: hidden;
}
.fq-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 70% 30%, rgba(106, 77, 140, 0.30), transparent 50%),
    radial-gradient(ellipse at 20% 80%, rgba(0, 104, 91, 0.40), transparent 50%);
  pointer-events: none;
}
.fq-hero .container { position: relative; z-index: 2; }
.fq-hero h1 {
  font-family: 'Manrope', sans-serif;
  font-size: clamp(2rem, 4.6vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  margin: 1rem 0 1.5rem;
  color: #fff;
  letter-spacing: -0.025em;
}
.fq-hero h1 .accent { color: #6fcfb8; }
.fq-hero .intro {
  font-size: clamp(1rem, 1.6vw, 1.12rem);
  line-height: 1.65;
  max-width: 720px;
  color: rgba(255, 255, 255, 0.86);
}
.fq-hero .breadcrumb-nav { margin-bottom: 1rem; }
.fq-hero .breadcrumb { display: flex; gap: 0.5rem; list-style: none; padding: 0; margin: 0; font-size: 0.9rem; }
.fq-hero .breadcrumb li { color: rgba(255,255,255,0.6); }
.fq-hero .breadcrumb li + li::before { content: "/"; margin-right: 0.5rem; }
.fq-hero .breadcrumb a { color: rgba(255,255,255,0.85); text-decoration: none; }

/* ===== BARRE DE RECHERCHE LIVE ===== */
.fq-search-wrap {
  position: relative;
  max-width: 640px;
  margin: 2.5rem auto 0;
}
.fq-search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  color: rgba(255, 255, 255, 0.5);
  pointer-events: none;
}
.fq-search {
  width: 100%;
  background: rgba(255, 255, 255, 0.10);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  padding: 1rem 3rem 1rem 3.2rem;
  font: 500 1rem 'Manrope', sans-serif;
  color: #fff;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}
.fq-search::placeholder { color: rgba(255, 255, 255, 0.55); }
.fq-search:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.18);
  border-color: #6fcfb8;
  box-shadow: 0 0 0 4px rgba(111, 207, 184, 0.18);
}
.fq-search-clear {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease;
}
.fq-search-clear:hover { background: rgba(255, 255, 255, 0.3); }
.fq-search-clear svg { width: 18px; height: 18px; }
.fq-search-clear.is-visible { display: inline-flex; }

/* ===== FILTRES CHIPS ===== */
.fq-section {
  padding: 3rem 0 4rem;
  background: linear-gradient(180deg, #fafafa, #ffffff);
}
.fq-filters {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0 0 2.5rem;
}
.fq-chip {
  border: 2px solid #e6e8e7;
  background: #fff;
  color: #1b1c1c;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  font: 600 0.88rem 'Manrope', sans-serif;
  cursor: pointer;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.fq-chip:hover { border-color: #00685b; color: #00685b; }
.fq-chip.is-active {
  background: #00685b;
  border-color: #00685b;
  color: #fff;
  box-shadow: 0 6px 20px -8px rgba(0, 104, 91, 0.55);
}
.fq-chip-swatch {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}
.fq-chip-count {
  background: rgba(0, 0, 0, 0.08);
  color: inherit;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-left: 4px;
}
.fq-chip.is-active .fq-chip-count {
  background: rgba(255, 255, 255, 0.25);
}

/* ===== LISTE FAQ ===== */
.fq-list {
  max-width: 880px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.fq-item {
  background: #fff;
  border: 1.5px solid #ebeded;
  border-radius: 14px;
  overflow: hidden;
  transition: box-shadow 0.3s ease, border-color 0.3s ease, opacity 0.4s ease, transform 0.4s ease;
  opacity: 0;
  transform: translateY(15px);
}
.fq-item.is-revealed { opacity: 1; transform: translateY(0); }
.fq-item[hidden] { display: none; }
.fq-item[open] {
  box-shadow: 0 16px 36px -18px rgba(0, 0, 0, 0.18);
  border-color: var(--fq-color, #00685b);
}
.fq-item[data-cat="travaux"] { --fq-color: var(--fq-travaux); }
.fq-item[data-cat="prix"] { --fq-color: var(--fq-prix); }
.fq-item[data-cat="garanties"] { --fq-color: var(--fq-garanties); }
.fq-item[data-cat="zones"] { --fq-color: var(--fq-zones); }
.fq-item summary {
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  font: 700 1.05rem 'Manrope', sans-serif;
  color: #1b1c1c;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  list-style: none;
  transition: background 0.2s ease;
}
.fq-item summary:hover { background: #fafafa; }
.fq-item summary::-webkit-details-marker { display: none; }
.fq-item-cat {
  font: 700 0.66rem 'Manrope', sans-serif;
  text-transform: uppercase;
  letter-spacing: 1.1px;
  color: var(--fq-color, #00685b);
  padding: 0.28rem 0.7rem;
  background: color-mix(in srgb, var(--fq-color, #00685b) 10%, transparent);
  border-radius: 999px;
  white-space: nowrap;
  margin-right: 0.6rem;
  flex-shrink: 0;
}
.fq-item-question {
  flex: 1;
  line-height: 1.4;
}
.fq-item-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--fq-color, #00685b) 12%, transparent);
  color: var(--fq-color, #00685b);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 0;
}
.fq-item-icon::before { content: "+"; }
.fq-item[open] .fq-item-icon { transform: rotate(45deg); }
.fq-item-body {
  padding: 0 1.5rem 1.4rem 1.5rem;
  color: #444;
  line-height: 1.65;
  font-size: 0.96rem;
}
.fq-item-body p { margin: 0 0 0.8rem; }
.fq-item-body p:last-child { margin-bottom: 0; }
.fq-item-body a { color: var(--fq-color, #00685b); font-weight: 600; }
.fq-item-body strong { color: #1b1c1c; }

/* Highlight texte recherche */
.fq-highlight {
  background: rgba(111, 207, 184, 0.45);
  padding: 0 2px;
  border-radius: 3px;
  color: inherit;
}

/* État "aucun résultat" */
.fq-no-results {
  display: none;
  max-width: 600px;
  margin: 2rem auto;
  padding: 2rem;
  text-align: center;
  background: #fff;
  border: 1.5px dashed #ddd;
  border-radius: 14px;
  color: #666;
}
.fq-no-results.is-visible { display: block; }
.fq-no-results h3 {
  font: 700 1.1rem 'Manrope', sans-serif;
  color: #1b1c1c;
  margin: 0 0 0.5rem;
}

/* ===== ACCESSIBILITÉ ===== */
@media (prefers-reduced-motion: reduce) {
  .fq-item,
  .fq-item-icon {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {
  .fq-hero { padding: 4.5rem 0 3rem; }
  .fq-search { font-size: 0.95rem; padding: 0.85rem 2.8rem 0.85rem 2.8rem; }
  .fq-section { padding: 2.5rem 0 3rem; }
  .fq-item summary { padding: 1rem 1.1rem; font-size: 0.96rem; gap: 0.6rem; }
  .fq-item-cat { font-size: 0.6rem; padding: 0.2rem 0.5rem; margin-right: 0.3rem; }
  .fq-item-icon { width: 28px; height: 28px; font-size: 1.2rem; }
  .fq-item-body { padding: 0 1.1rem 1.1rem; font-size: 0.92rem; }
}
