/* Message "Premier compte-rendu reussi" (v304) : carte Fondateur sous le premier compte-rendu d'un compte Free.
   Bleu nuit comme la carte de Mon compte, orange en accent (pastille, jauge, bouton). */

.fm-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  box-sizing: border-box;
  flex-shrink: 0;
  margin: 16px 0 0;
  padding: 18px 16px 14px;
  border-radius: 20px;
  background: #0f172a;
  color: #ffffff;
  animation: fm-in 0.5s ease-out both;
}

/* Telephone : une seule colonne, les jauges juste sous le titre */
.fm-left,
.fm-right {
  display: contents;
}

.fm-eyebrow {
  order: 1;
}

.fm-title {
  order: 2;
}

.fm-cmp {
  order: 3;
}

.fm-perks {
  order: 4;
}

.fm-foot {
  order: 5;
}

.fm-later {
  order: 6;
}

.fm-icon {
  display: inline-flex;
  flex-shrink: 0;
}

.fm-x {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: #1e293b;
  color: #94a3b8;
  cursor: pointer;
}

.fm-x:hover {
  color: #ffffff;
}

.fm-eyebrow {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  padding-right: 32px;
  font-size: 12px;
  font-weight: 600;
  color: #cbd5e1;
}

.fm-title {
  margin: 0;
  font-size: 21px;
  line-height: 1.18;
  font-weight: 800;
  letter-spacing: -0.035em;
  color: #ffffff;
}

.fm-title span {
  display: block;
  color: #94a3b8;
}

.fm-cmp {
  display: grid;
  grid-template-columns: auto 1fr auto;
  column-gap: 10px;
  row-gap: 9px;
  align-items: center;
  padding: 13px 14px;
  border-radius: 14px;
  background: #1e293b;
}

.fm-lab {
  font-size: 12px;
  font-weight: 600;
  color: #94a3b8;
}

.fm-lab.is-f {
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 700;
  color: #ffffff;
}

.fm-track {
  height: 8px;
  border-radius: var(--radius-pill, 9999px);
  background: #334155;
  overflow: hidden;
}

.fm-track i {
  display: block;
  height: 100%;
  border-radius: var(--radius-pill, 9999px);
  background: #94a3b8;
}

.fm-track.is-f i {
  background: var(--accent-orange, #ff5e3a);
  transform-origin: left;
  animation: fm-grow 1s 0.35s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.fm-val {
  min-width: 34px;
  font-size: 13px;
  font-weight: 700;
  color: #94a3b8;
  text-align: right;
}

.fm-val.is-f {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #ffffff;
}

.fm-perks {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.fm-perks li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  line-height: 1.35;
  color: #e2e8f0;
}

.fm-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid #1e293b;
}

.fm-price {
  margin: 0;
  white-space: nowrap;
  flex-shrink: 0;
}

.fm-price strong {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #ffffff;
}

.fm-price span {
  margin-left: 3px;
  font-size: 12px;
  font-weight: 600;
  color: #cbd5e1;
}

.fm-price small {
  display: block;
  margin-top: 1px;
  font-size: 11px;
  color: #94a3b8;
}

.fm-btn {
  height: 44px;
  min-width: 0;
  padding: 0 14px;
  border: 0;
  border-radius: var(--radius-pill, 9999px);
  background: var(--accent-orange, #ff5e3a);
  color: #ffffff;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: transform var(--transition-fast, 0.15s);
}

.fm-btn:hover {
  transform: translateY(-1px);
}

.fm-btn:focus-visible,
.fm-x:focus-visible,
.fm-later:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

.fm-btn[aria-busy="true"] {
  opacity: 0.6;
  cursor: progress;
}

.fm-later {
  align-self: center;
  padding: 4px 8px;
  border: 0;
  background: none;
  color: #94a3b8;
  font: inherit;
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

/* Ordinateur : texte a gauche, jauges et paiement a droite */
@media (min-width: 1024px) {
  .fm-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 28px;
    row-gap: 10px;
    align-items: center;
    padding: 22px 24px 14px;
  }

  .fm-left,
  .fm-right {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
  }

  .fm-right {
    padding-right: 22px;
  }

  .fm-foot {
    padding-top: 0;
    border-top: 0;
  }

  .fm-btn {
    padding: 0 18px;
    font-size: 13.5px;
  }

  .fm-later {
    grid-column: 1 / -1;
  }
}

@keyframes fm-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes fm-grow {
  from {
    transform: scaleX(0.125);
  }

  to {
    transform: scaleX(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .fm-card,
  .fm-track.is-f i {
    animation: none;
  }
}

@media print {
  .fm-card {
    display: none;
  }
}
