/* ═════════════ Constellation des banques (page Comptes, état « aucune banque reliée ») ═════════════
   Même scène que la page d'accueil (css/landing.css, « .constellation ») : deux anneaux de vignettes blanches qui tournent
   lentement en sens inverse autour de l'icône de la marque, chaque vignette contre-tournant pour rester droite. Reprise ici
   avec des noms propres à la page (préfixe .cst-) pour ne rien partager avec le site vitrine. */

.cst {
  position: relative;
  width: 100%;
  max-width: 520px;
  aspect-ratio: 1;
  margin: var(--space-md) auto 0;
  container-type: size;
  overflow: visible;
}
.cst__halo {
  position: absolute; left: 50%; top: 50%; width: 62%; height: 62%; transform: translate(-50%, -50%); border-radius: 999px;
  background: radial-gradient(closest-side, rgba(115, 111, 182, .22) 0%, rgba(115, 111, 182, 0) 100%);
}
.cst__orbite {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); border-radius: 999px;
  border: 1px solid rgba(115, 111, 182, .16);
}
.cst__orbite--1 { width: 48%; height: 48%; }
.cst__orbite--2 { width: 80%; height: 80%; border-color: rgba(115, 111, 182, .10); }
.cst__coeur {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 16cqmin; height: 16cqmin; border-radius: 4.6cqmin; display: inline-flex; align-items: center; justify-content: center;
  background: var(--brand-gradient-diag, linear-gradient(135deg, #2b2060, #6a5bb5));
  box-shadow: 0 18px 34px -16px rgba(43, 32, 96, .6);
}
.cst__coeur img { width: 50%; height: 50%; }

.cst__anneau { position: absolute; left: 50%; top: 50%; width: 0; height: 0; }
.cst__anneau--int { animation: cst-orbite 150s linear infinite; }
.cst__anneau--ext { animation: cst-orbite 210s linear infinite reverse; }
@keyframes cst-orbite { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes cst-contre { from { transform: translate(-50%, -50%) rotate(calc(-1 * var(--a))); } to { transform: translate(-50%, -50%) rotate(calc(-1 * var(--a) - 360deg)); } }

.cst__bras { position: absolute; left: 0; top: 0; width: 0; height: 0; transform: rotate(var(--a)) translateX(var(--r)); }
.cst__anneau--int .cst__banque { animation: cst-contre 150s linear infinite; }
.cst__anneau--ext .cst__banque { animation: cst-contre 210s linear infinite reverse; }

/* Tout est exprimé en cqmin (1 % du côté de la scène) : les vignettes et les rayons grandissent et rétrécissent ENSEMBLE, donc
   l'écart entre deux anneaux reste toujours supérieur à la diagonale d'une vignette. Aucune vignette ne peut toucher une
   voisine, quel que soit l'angle des deux anneaux (vérifié sur 630 positions, bureau, tablette et téléphones). */
.cst__anneau--int .cst__bras { --r: 20cqmin; }
.cst__anneau--ext .cst__bras { --r: 42cqmin; }
.cst__orbite--1 { width: 40%; height: 40%; }
.cst__orbite--2 { width: 84%; height: 84%; border-color: rgba(115, 111, 182, .10); }

.cst__banque {
  position: absolute; left: 0; top: 0; box-sizing: border-box; min-width: 9.6cqmin; height: 9.6cqmin; padding: 0 2.2cqmin; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center; background: #fff;
  border: 1px solid #e6e3de;
  box-shadow: 0 1px 2px rgba(30, 28, 40, .08), 0 8px 18px -10px rgba(30, 28, 40, .3);
}
.cst__banque img { display: block; flex: 0 0 auto; max-width: 12cqmin; max-height: 5.4cqmin; width: auto; height: auto; object-fit: contain; }

@media (prefers-reduced-motion: reduce) {
  .cst__anneau, .cst__banque { animation: none !important; }
  .cst__banque { transform: translate(-50%, -50%) rotate(calc(-1 * var(--a))); }
}
/* Téléphone : la scène est plus petite, les vignettes un peu plus grosses (logos lisibles), anneaux resserrés en conséquence. */
@media (max-width: 560px) {
  .cst { max-width: 100%; }
  .cst__coeur { width: 13.5cqmin; height: 13.5cqmin; border-radius: 4cqmin; }
  .cst__banque { min-width: 11cqmin; height: 11cqmin; padding: 0 1.9cqmin; }
  .cst__banque img { max-width: 11.5cqmin; max-height: 5.6cqmin; }
  .cst__anneau--int .cst__bras { --r: 20.5cqmin; }
  .cst__anneau--ext .cst__bras { --r: 41.5cqmin; }
  .cst__orbite--1 { width: 42%; height: 42%; }
  .cst__orbite--2 { width: 82%; height: 82%; }
}

/* ── Bandeau « nous utilisons Powens » : une ligne sobre sous la scène ── */
.cpt-prestataire {
  display: flex; align-items: center; gap: 22px; margin: var(--space-lg) auto 0; padding: 16px 22px; max-width: 760px;
  background: #fff; border: 1px solid #e6e3de; border-radius: 12px; box-shadow: 0 1px 2px rgba(30, 28, 40, .05);
}
.cpt-prestataire__marque {
  flex: 0 0 auto; padding-right: 22px; border-right: 1px solid #e6e3de;
  font-size: 22px; font-weight: 700; letter-spacing: -.02em; color: #4a4f5c;
}
.cpt-prestataire__texte { flex: 1 1 auto; margin: 0; font-size: 14px; line-height: 1.5; color: #4a4f5c; }
.cpt-prestataire__logos { flex: 0 0 auto; display: flex; align-items: center; gap: 22px; margin: 0; padding: 0; list-style: none; }
.cpt-prestataire__logos img { display: block; height: 20px; width: auto; max-width: 92px; filter: grayscale(1) opacity(.65); }
@media (max-width: 720px) {
  .cpt-prestataire { flex-wrap: wrap; gap: 12px 16px; padding: 14px 16px; }
  .cpt-prestataire__marque { padding-right: 0; border-right: 0; }
  .cpt-prestataire__texte { flex-basis: 100%; }
}

/* ── « Nous restons vigilants » : panneau violet à sonar, liste à droite ── */
.cpt-vigilant {
  display: grid; grid-template-columns: minmax(220px, 34%) minmax(0, 1fr); margin: var(--space-xl) 0 0;
  background: #fff; border: 1px solid #e6e3de; border-radius: 18px; overflow: hidden;
  box-shadow: 0 1px 2px rgba(30, 28, 40, .05), 0 22px 40px -30px rgba(30, 28, 40, .30);
}
.cpt-vigilant__scene { position: relative; min-height: 300px; background: #413a8c; display: grid; place-items: center; }
.cpt-vigilant__point { width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 7px rgba(255,255,255,.18), 0 0 0 8px rgba(255,255,255,.7); }
.cpt-vigilant__onde { position: absolute; left: 50%; top: 50%; width: 150px; height: 150px; margin: -75px 0 0 -75px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .22); animation: cpt-sonar 4.2s ease-out infinite; }
.cpt-vigilant__onde:nth-child(2) { animation-delay: 1.4s; }
.cpt-vigilant__onde:nth-child(3) { animation-delay: 2.8s; }
@keyframes cpt-sonar { 0% { transform: scale(.35); opacity: .9; } 100% { transform: scale(1.25); opacity: 0; } }
.cpt-vigilant__corps { padding: 28px 0 8px; }
.cpt-vigilant__texte { padding: 0 32px 22px; color: #3f4450; }
.cpt-vigilant__texte svg { display: block; margin-bottom: 14px; color: #413a8c; }
.cpt-vigilant__texte h2 { margin: 0 0 8px; font-size: 17px; font-weight: 500; color: #2b2f3a; }
.cpt-vigilant__texte p { margin: 0; font-size: 14.5px; line-height: 1.6; color: #4a4f5c; max-width: 34em; }
.cpt-vigilant__liste { list-style: none; margin: 0; padding: 0; }
.cpt-vigilant__liste li { padding: 13px 32px; border-top: 1px solid #e6e3de; font-size: 14.5px; color: #3f4450; }

/* ── Fin de page : le grand bouton, puis le bandeau Powens ── */
.cpt-fin { display: grid; gap: 18px; margin: var(--space-xl) 0 0; max-width: none; }
.cpt-cta--large {
  width: 100%; justify-content: center; gap: 12px; padding: 0 24px; min-height: 56px; font-size: 16px; font-weight: 500; border-radius: 999px;
  /* Le dégradé de la marque (celui du logo, des bandeaux et du bouton de la connexion), pas un bleu à part. */
  background: linear-gradient(110deg, var(--brand-3) 0%, var(--brand-4) 55%, var(--brand-5) 100%); color: #fff;
  box-shadow: 0 14px 28px -16px rgba(66, 55, 122, .75);
}
.cpt-cta--large:hover { filter: brightness(1.06); box-shadow: 0 18px 32px -14px rgba(66, 55, 122, .85); }
.cpt-cta--large .cpt-cta__plus { margin-left: 4px; }
.cpt-fin .cpt-prestataire { margin-top: 0; max-width: none; }
.cpt-fin--haut { margin-top: var(--space-lg); }
@media (max-width: 720px) {
  .cpt-vigilant { grid-template-columns: 1fr; }
  .cpt-vigilant__scene { min-height: 200px; }
  .cpt-vigilant__texte, .cpt-vigilant__liste li { padding-left: 20px; padding-right: 20px; }
}
@media (prefers-reduced-motion: reduce) { .cpt-vigilant__onde { animation: none; opacity: .5; } }

/* ── Plusieurs banques : onglets, mention de banque, épargne ── */
.cpt-onglets { display: flex; flex-wrap: wrap; gap: 8px; max-width: var(--largeur-bandeau); margin: 0 auto var(--space-md); }
.cpt-onglets[hidden] { display: none; }
.cpt-onglet {
  appearance: none; cursor: pointer; padding: 9px 18px; border-radius: 999px; font: inherit; font-size: 14px; font-weight: 500;
  color: #4a4f5c; background: #fff; border: 1px solid #e6e3de; transition: background .15s, color .15s, border-color .15s;
}
.cpt-onglet:hover { border-color: var(--brand-4); color: var(--brand-3); }
.cpt-onglet[aria-selected="true"] { background: linear-gradient(110deg, var(--brand-3), var(--brand-4)); border-color: var(--brand-3); color: #fff; }
.cpt-onglet:focus-visible { outline: 2px solid var(--action-focus); outline-offset: 2px; }
.cpt-avoir__banque { display: block; margin-top: 2px; font-size: 12px; font-weight: 400; color: var(--ink-muted-80); }
.cpt-autres__famille { margin: var(--space-sm) 0 4px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted-80); }
.cpt-autres__famille:first-child { margin-top: 0; }
.cpt-infos__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--space-sm); }
.cpt-retirer { color: #b3261e; }
@media (max-width: 560px) { .cpt-onglets { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; } .cpt-onglet { flex: 0 0 auto; } }

.cpt-autres { margin-top: var(--space-md); padding-top: var(--space-md); border-top: 1px solid #e6e3de; }
.cpt-autres__titre { margin: 0 0 var(--space-xs); font-size: 15px; font-weight: 600; color: var(--brand-1); }

/* Petit logo bancaire en tête du bandeau « aucune banque reliée » */
.cpt-accueil__logo {
  display: inline-grid; place-items: center; width: 52px; height: 52px; margin-bottom: var(--space-sm); border-radius: 50%; color: #fff;
  background: rgba(255, 255, 255, .16); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .38), 0 10px 24px -12px rgba(20, 14, 60, .55);
}
@media (max-width: 560px) { .cpt-accueil__logo { width: 44px; height: 44px; } .cpt-accueil__logo svg { width: 22px; height: 22px; } }
