/* ═══════════════════════════════════════════
   cta-aide.css — Styles CTA flottant + Popup aide
   Dokatel Audit — fichier indépendant
═══════════════════════════════════════════ */

/* ── CTA AIDE LIEN ────────────────────────── */
.cta-aide-link {
  font-family: 'Roboto', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(74,140,255,0.4);
  letter-spacing: .02em;
  cursor: pointer;
  transition: color 0.2s, text-decoration-color 0.2s;
}
.cta-aide-link:hover {
  color: var(--accent-h);
  text-decoration-color: var(--accent-h);
}

/* ── TEXTE GUIDE AIDE ─────────────────────── */
.cta-aide-text {
  font-family: 'Roboto', sans-serif;
  font-size: 16px;
  color: white;
  line-height: 1.7;
  text-align: center;
  max-width: 95%;
  width: 100%;
  margin: 8px auto 0;
  padding: 0 24px;
  box-sizing: border-box;
}

/* ── POPUP AIDE ──────────────────────────── */
.aide-card {
  background: var(--card-bg) !important;
  border: 1px solid rgba(74,140,255,0.2);
  color: var(--white) !important;
  max-width: 420px !important;
  padding: 32px 32px 28px !important;
  border-radius: 20px !important;
  position: relative;
  text-align: left !important;
}
.aide-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255,255,255,0.06);
  border: none;
  color: var(--muted);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.aide-close:hover { background: rgba(255,255,255,0.12); color: var(--white); }
.aide-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.aide-icon-wrap {
  width: 46px;
  height: 46px;
  background: var(--accent-dim);
  border: 1px solid rgba(74,140,255,0.25);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}
.aide-eyebrow {
  font-family: 'Roboto', sans-serif;   /* ← ajout */
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 3px;
}
.aide-title {
  font-family: 'Roboto', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  margin: 0;
  letter-spacing: -0.01em;
}
.aide-desc {
  font-size: 14px;
  color: var(--text);
  line-height: 1.65;
  margin-bottom: 22px;
}
.aide-card .field { margin-bottom: 14px; }
.aide-card label { color: #C8D8EE; }
.btn-aide-submit {
  width: 100%;
  margin-top: 20px;
  padding: 13px 24px;
  background: var(--accent);
  border: none;
  border-radius: var(--radius);
  color: #fff;
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .04em;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 18px rgba(74,140,255,0.25);
}
.btn-aide-submit:hover {
  background: var(--accent-h);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(74,140,255,0.35);
}
.aide-success-icon {
  width: 52px;
  height: 52px;
  background: var(--accent-dim);
  border: 1px solid rgba(74,140,255,0.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 22px;
  color: var(--accent);
  font-weight: 700;
}
.aide-success-title {
  font-family: 'Roboto', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}
.aide-success-sub {
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  color: var(--text);
  line-height: 1.65;
  margin: 0 !important;
}

.aide-card h2 {
  color: #F0F4FF !important;
}
/* ─── ÉTAT DE CHARGEMENT (Loading) ─── */

.btn-loading {
  pointer-events: none; /* Empêche les doubles clics */
  opacity: 0.8;
  cursor: not-allowed;
}

.loader-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff; /* Couleur de la partie qui tourne */
  display: inline-block;
  animation: spin 0.8s linear infinite;
  margin-right: 8px;
  vertical-align: middle;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ── RESPONSIVE TABLETTE (max 768px) ────────── */
@media (max-width: 768px) {
  .cta-aide-text {
    font-size: 15px;
    max-width: 100%;
    padding: 0 20px;
    margin: 12px auto 0;
  }

  .aide-card {
    max-width: 92vw !important;
    padding: 28px 24px 24px !important;
  }

  .aide-title {
    font-size: 18px;
  }
}

/* ── RESPONSIVE MOBILE (max 480px) ──────────── */
@media (max-width: 480px) {
  .cta-aide-text {
    font-size: 14px;
    max-width: 100%;
    padding: 0 16px;
    margin: 10px auto 0;
    line-height: 1.65;
  }

  .cta-aide-link {
    font-size: 14px;
  }

  .aide-card {
    max-width: 100% !important;
    width: 100% !important;
    padding: 24px 18px 20px !important;
    border-radius: 16px !important;
  }

  .aide-header {
    gap: 10px;
    margin-bottom: 12px;
  }

  .aide-icon-wrap {
    width: 38px;
    height: 38px;
    border-radius: 10px;
  }

  .aide-title {
    font-size: 17px;
  }

  .aide-eyebrow {
    font-size: 9px;
  }

  .aide-desc {
    font-size: 13px;
    margin-bottom: 16px;
  }

  .btn-aide-submit {
    padding: 12px 20px;
    font-size: 13px;
    margin-top: 16px;
  }

  .aide-success-title {
    font-size: 18px;
  }

  .aide-success-sub {
    font-size: 13px;
  }
}

/* --- BARRE STICKY (Bas de page) --- */
.cta-sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(45, 55, 72, 0.95); /* Gris-bleu très sombre translucide */
  backdrop-filter: blur(10px); /* Flou derrière la barre */
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 15px 20px;
  z-index: 9000;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: 'DM Sans', sans-serif;
}

.cta-sticky-container {
  max-width: 1100px;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.cta-sticky-text {
  color: #e2e8f0;
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
}


.cta-sticky-btn {
  background: #4A8CFF; /* Le violet de l'image */
  color: #fff;
  border: none;
  padding: 10px 24px;
  border-radius: 10px; /* Très arrondi */
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  white-spce: nowrap;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(94, 66, 166, 0.3);
}

.cta-sticky-btn:hover {
  background: var(--accent-h);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(74,140,255,0.35);
}

/* --- MODAL (POUR LE POPUP) --- */
.modal-backdrop {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex; align-items: center; justify-content: center;
  z-index: 10000;
}

.aide-card {
  background: white;
  padding: 30px;
  border-radius: 20px;
  width: 90%;
  max-width: 400px;
  position: relative;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .cta-sticky-container {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
  .cta-sticky-bar {
    padding: 20px;
  }
}