/* ══════════════════════════════════════════════════════
   ui.css – Spinner, conseils, forum CTA, asso card,
            disclaimer, toast de notification
   ══════════════════════════════════════════════════════ */

/* ── Spinner de chargement ──────────────────────────── */
.spin {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  padding: 2.5rem;
}
.spin.on {
  display: flex;
}
.spinner {
  width: 44px;
  height: 44px;
  border: 3px solid var(--pink-lt);
  border-top-color: var(--pink);
  border-radius: 50%;
  animation: rot 0.75s linear infinite;
}
@keyframes rot {
  to {
    transform: rotate(360deg);
  }
}
.spin p {
  font-size: 0.97rem;
  font-weight: 700;
  color: var(--gray);
}

/* ── Conseils de sécurité ───────────────────────────── */
.tip {
  background: var(--white);
  border-radius: var(--r-sm);
  padding: 1.1rem 1.3rem;
  margin-bottom: 0.8rem;
  box-shadow: var(--sh);
  border: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}
.tip-ico {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--pink-lt);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pink);
  margin-top: 0.05rem;
}
.tip-ico svg {
  width: 19px;
  height: 19px;
}
.tip p {
  font-size: 0.93rem;
  color: var(--text-sub);
  line-height: 1.65;
}
.tip strong {
  color: var(--text);
  font-weight: 800;
}

/* ── Forum CTA ──────────────────────────────────────── */
.fcta {
  background: var(--white);
  border-radius: var(--r);
  padding: 1.8rem;
  margin-bottom: 1rem;
  box-shadow: var(--sh);
  border: 1px solid var(--border);
  text-decoration: none;
  transition: all 0.25s;
  display: block;
}
.fcta:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh2);
}
.fcta-ico {
  width: 54px;
  height: 54px;
  border-radius: 15px;
  background: var(--pink-lt);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pink);
  margin-bottom: 1rem;
}
.fcta-ico svg {
  width: 28px;
  height: 28px;
}
.fcta h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.55rem;
  line-height: 1.35;
}
.fcta p {
  font-size: 0.92rem;
  color: var(--gray);
  line-height: 1.6;
  margin-bottom: 1.3rem;
}
.btn-forum {
  display: inline-block;
  background: linear-gradient(135deg, var(--pink), var(--pink-dark));
  color: #fff;
  padding: 0.9rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.97rem;
  box-shadow: 0 5px 18px rgba(231, 39, 117, 0.3);
  transition: all 0.2s;
}
.btn-forum:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(231, 39, 117, 0.4);
}

/* ── Carte association ──────────────────────────────── */
.asso-card {
  background: var(--white);
  border-radius: var(--r);
  box-shadow: var(--sh);
  border: 1px solid var(--border);
  margin-bottom: 1.3rem;
  overflow: hidden;
}
.asso-card-body {
  padding: 1.4rem 1.6rem 1rem;
}
.asso-card-body p {
  font-size: 0.95rem;
  color: var(--text-sub);
  line-height: 1.75;
}
.asso-card-body strong {
  color: var(--text);
  font-weight: 800;
}
.asso-card-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.95rem 1.6rem;
  background: var(--pink-lt);
  color: var(--pink);
  text-decoration: none;
  font-weight: 800;
  font-size: 0.92rem;
  transition: background 0.2s;
  border-top: 1px solid rgba(231, 39, 117, 0.12);
}
.asso-card-link:hover {
  background: rgba(231, 39, 117, 0.18);
}
.asso-card-link svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  stroke-width: 2.5;
}

/* ── Disclaimer ─────────────────────────────────────── */
.disclaimer {
  background: rgba(217, 119, 6, 0.07);
  border: 1.5px solid rgba(217, 119, 6, 0.22);
  border-radius: var(--r-sm);
  padding: 1rem 1.2rem;
  margin-bottom: 1.2rem;
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
}
.disclaimer-ico {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: rgba(217, 119, 6, 0.15);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--warn);
}
.disclaimer-ico svg {
  width: 16px;
  height: 16px;
}
.disclaimer p {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--text-sub);
}
.disclaimer strong {
  color: var(--warn);
}
.disclaimer-home {
  background: var(--white);
  border-radius: var(--r);
  padding: 1.3rem 1.6rem;
  box-shadow: var(--sh);
  border: 1px solid var(--border);
  border-left: 4px solid var(--warn);
  margin-bottom: 1rem;
}
.dh-head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.5rem;
}
.dh-ico {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: rgba(217, 119, 6, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--warn);
  flex-shrink: 0;
}
.dh-ico svg {
  width: 18px;
  height: 18px;
}
.dh-head h3 {
  font-size: 0.97rem;
  font-weight: 800;
  color: var(--warn);
}
.disclaimer-home p {
  font-size: 0.85rem;
  color: var(--text-sub);
  line-height: 1.7;
}

/* ── Toast de notification ──────────────────────────── */
.toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(90px);
  background: var(--text);
  color: #fff;
  padding: 0.8rem 1.5rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 700;
  z-index: 9000;
  transition: transform 0.3s;
  white-space: nowrap;
  max-width: 90vw;
  text-align: center;
}
.toast.on {
  transform: translateX(-50%) translateY(0);
}
.toast.g {
  background: var(--safe);
}
.toast.r {
  background: var(--danger);
}
