[hidden] { display: none !important; }

.espace {
  max-width: 28rem;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4.5rem;
}
.espace-large { max-width: 44rem; }

.carte-formulaire {
  display: flex;
  flex-direction: column;
  padding: 2rem;
  border-radius: 24px;
  background: var(--surface);
  border: 1px solid var(--trait);
  box-shadow: 0 24px 60px -30px rgba(43, 59, 232, 0.45);
}
.carte-formulaire h1, .compte-titre h1 { margin: 0 0 0.75rem; font-size: clamp(2rem, 6vw, 2.6rem); font-stretch: 85%; letter-spacing: -0.02em; line-height: 1.05; }
.chapeau { margin: 0 0 1.5rem; color: var(--encre-douce); }

.carte-formulaire label { margin: 0.9rem 0 0.35rem; font-weight: 600; font-size: 0.95rem; }
.carte-formulaire input {
  font: inherit;
  padding: 0.8rem 0.95rem;
  border-radius: 12px;
  border: 1.5px solid var(--trait);
  background: var(--papier);
  color: var(--encre);
}
.carte-formulaire input:focus { outline: none; border-color: var(--outremer); box-shadow: 0 0 0 4px rgba(43, 59, 232, 0.18); }
.carte-formulaire .bouton { margin-top: 1.5rem; border: 0; font: inherit; font-weight: 650; cursor: pointer; }
.carte-formulaire .bouton:disabled { opacity: 0.6; cursor: progress; }

.aide { margin: 0.4rem 0 0; font-size: 0.88rem; color: var(--encre-douce); }
.bascule { margin: 1.25rem 0 0; text-align: center; font-size: 0.95rem; color: var(--encre-douce); }

.message {
  margin: 1rem 0 0;
  padding: 0.75rem 0.95rem;
  border-radius: 12px;
  font-size: 0.95rem;
  background: rgba(255, 61, 110, 0.12);
  color: var(--encre);
  border-left: 4px solid var(--rose);
}
.message[data-ton="info"] { background: rgba(43, 59, 232, 0.1); border-left-color: var(--outremer); }
.message[data-ton="succes"] { background: rgba(28, 170, 110, 0.14); border-left-color: #1caa6e; }

.compte-titre { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.lien-discret { background: none; border: 0; padding: 0; font: inherit; color: var(--encre-douce); text-decoration: underline; cursor: pointer; }

.bloc {
  margin-top: 1.75rem;
  padding: 1.75rem;
  border-radius: 24px;
  background: var(--surface);
  border: 1px solid var(--trait);
}
.bloc h2 { margin: 0 0 0.75rem; font-size: 1.35rem; }
.etat { margin: 0 0 1.25rem; font-size: 1.05rem; }

.choix-formules { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; margin-bottom: 1rem; }
.formule {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.1rem 1.2rem;
  border-radius: 18px;
  border: 1.5px solid var(--trait);
  background: var(--papier);
  color: var(--encre);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s, transform 0.15s;
}
.formule:hover { border-color: var(--outremer); transform: translateY(-2px); }
.formule-phare { border-color: var(--outremer); background: var(--outremer); color: #fff; }
.formule-nom { font-weight: 650; }
.formule-prix { font-size: 1.6rem; font-weight: 800; font-stretch: 80%; font-variant-numeric: tabular-nums; }
.formule-prix small { font-size: 0.85rem; font-weight: 500; opacity: 0.8; }
.bloc > .bouton { border: 0; font: inherit; font-weight: 650; cursor: pointer; }
.test-carte { margin-top: 1rem; }

.appareils { margin: 0; padding: 0; list-style: none; }
.appareils li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.7rem 0; border-top: 1px solid var(--trait); }
.appareils li span { color: var(--encre-douce); font-variant-numeric: tabular-nums; }

@media (max-width: 520px) {
  .carte-formulaire, .bloc { padding: 1.4rem; }
  .choix-formules { grid-template-columns: 1fr; }
}
.aide-droite { text-align: right; }
.aide a { color: var(--outremer); }
