/* css/faq.css — bulle d'aide + panneau FAQ
   Charger avant variables.css. z-index volontairement sous .depot-modal et la sidebar mobile. */

.faq-fab{
  position:fixed;
  right:20px;
  bottom:20px;
  z-index:800;
  display:inline-flex;
  align-items:center;
  gap:8px;
  height:48px;
  padding:0 18px 0 14px;
  background:var(--blue);
  color:var(--on-blue);
  border:0;
  border-radius:24px;
  font-size:14px;
  font-weight:600;
  cursor:pointer;
  box-shadow:0 6px 20px rgba(23,48,122,.28);
  transition:background .15s ease,color .15s ease;
}
.faq-fab:hover,
.faq-fab:focus-visible{ background:var(--green); color:var(--blue); outline:none; }
.faq-fab:focus-visible{ box-shadow:0 0 0 3px rgba(40,79,187,.35); }
.faq-fab svg{ flex:none; }

.faq-panel{
  position:fixed;
  right:20px;
  bottom:80px;
  z-index:800;
  width:min(380px,calc(100vw - 40px));
  max-height:min(560px,calc(100vh - 110px));
  display:flex;
  flex-direction:column;
  background:var(--white);
  border:1px solid var(--line);
  border-radius:var(--radius-l);
  box-shadow:0 12px 36px rgba(23,48,122,.22);
  overflow:hidden;
}
.faq-panel[hidden]{ display:none; }

.faq-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:14px 16px;
  background:var(--blue);
  color:var(--white);
}
.faq-head h2{ margin:0; font-size:17px; font-weight:700; }
.faq-close{
  width:32px;
  height:32px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:transparent;
  color:var(--white);
  border:0;
  border-radius:8px;
  font-size:24px;
  line-height:1;
  cursor:pointer;
}
.faq-close:hover,
.faq-close:focus-visible{ background:var(--green); color:var(--blue); outline:none; }

.faq-list{
  flex:1;
  overflow-y:auto;
  overscroll-behavior:contain;
  margin:0;
  padding:6px 0;
  list-style:none;
}
.faq-item + .faq-item{ border-top:1px solid var(--line); }

.faq-q{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:14px 16px;
  background:transparent;
  color:var(--black);
  border:0;
  text-align:left;
  font-size:14px;
  font-weight:600;
  cursor:pointer;
}
.faq-q:hover{ color:var(--blue); }
.faq-q:focus-visible{ outline:2px solid var(--blue); outline-offset:-3px; }
.faq-q svg{ flex:none; color:var(--blue-dark); transition:transform .2s ease; }
.faq-q[aria-expanded="true"] svg{ transform:rotate(180deg); }

.faq-a{
  margin:0;
  padding:0 16px 16px;
  font-size:13.5px;
  line-height:1.55;
  color:var(--muted);
}
.faq-a[hidden]{ display:none; }

.faq-foot{
  padding:12px 16px;
  background:var(--bege);
  border-top:1px solid var(--line);
  font-size:13px;
}
.faq-foot a{ color:var(--blue); font-weight:600; overflow-wrap:anywhere; }

@media(max-width:560px){
  .faq-fab{ right:14px; bottom:14px; }
  .faq-panel{
    right:0;
    left:0;
    bottom:0;
    width:100%;
    max-height:80vh;
    border-radius:var(--radius-l) var(--radius-l) 0 0;
  }
}

@media(prefers-reduced-motion:reduce){
  .faq-q svg{ transition:none; }
}