@font-face {
  font-family: Manrope;
  src: url(manrope.woff) format("woff");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Manrope;
  src: url(manrope-gras.woff) format("woff");
  font-weight: 700;
  font-display: swap;
}
:root {
  --violet: #5529f3;
  --violet-fonce: #421bd1;
  --texte: #191524;
  --secondaire: #625a73;
  --bordure: #e8e3ef;
  --fond: #f8f7fb;
  --lavande: #f1ecff;
  --blanc: #fff;
  --vert: #175b40;
  --rayon: 18px;
  color: var(--texte);
  font: 400 15px/1.55 Manrope, system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--fond); }
[hidden] { display: none !important; }
a { color: var(--violet-fonce); font-weight: 700; text-underline-offset: .22em; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; }
button, a, input { -webkit-tap-highlight-color: transparent; }
svg { width: 20px; height: 20px; flex: 0 0 auto; }
h1, h2, p { margin-top: 0; }
h1, h2 { letter-spacing: -.035em; line-height: 1.17; }
h1 { font-size: clamp(2rem, 3.5vw, 2.65rem); margin-bottom: .6rem; }
h2 { font-size: 1.22rem; margin-bottom: .85rem; }
small { display: block; color: var(--secondaire); font-size: .85rem; }
.secondaire { color: var(--secondaire); }
.secondaire:last-child { margin-bottom: 0; }
.note { font-size: .9rem; margin: .9rem 0 0; }

.bouton {
  display: inline-flex; justify-content: center; align-items: center; gap: .55rem;
  min-height: 46px; padding: .65rem 1.15rem; border-radius: 10px; border: 1px solid transparent;
  font-weight: 700; letter-spacing: -.012em; text-align: center; text-decoration: none;
}
.bouton.principal { background: var(--violet); color: #fff; }
.bouton.principal:hover { background: var(--violet-fonce); }
.bouton.principal:active { background: #3510b8; }
.bouton.principal:disabled { background: #e6ddfa; color: #5d507b; }
.bouton.secondaire-bouton { background: var(--blanc); border-color: var(--bordure); color: var(--texte); }
.bouton.secondaire-bouton:hover { border-color: #bca9f8; background: #faf8ff; }
.bouton.secondaire-bouton:disabled { opacity: .62; }
.pleine-largeur { width: 100%; }
.bouton-texte {
  padding: .2rem 0; border: 0; background: transparent; color: var(--violet-fonce); font-weight: 700;
  text-align: left;
}
.bouton-texte:hover { text-decoration: underline; }
.bouton-texte:disabled { opacity: .68; }

label { display: block; margin: 1rem 0 .35rem; font-weight: 700; }
input, .champ-paiement {
  display: block; min-height: 46px; width: 100%; padding: .65rem .8rem;
  background: var(--blanc); border: 1px solid #d8d0e5; border-radius: 10px; color: var(--texte);
}
input::placeholder { color: #7a7288; }
input + small { margin-top: .4rem; }
input[type="number"] { max-width: 7.5rem; }
.message {
  background: var(--lavande); border: 1px solid #e4d9ff; border-radius: 12px;
  color: #392376; padding: .85rem 1rem; margin: 0 0 1.25rem;
}
.message[data-type="erreur"] { background: #fff0f1; border-color: #f7d2d8; color: #902439; }
.message[data-type="succes"] { background: #eaf8f0; border-color: #cdebd9; color: var(--vert); }
.message-validation { display: flex; align-items: baseline; gap: .6rem 1.1rem; flex-wrap: wrap; justify-content: space-between; font-size: .92rem; }

.marque { display: inline-flex; align-items: center; text-decoration: none; line-height: 1; }
.marque img { object-fit: contain; object-position: left; }
.demarrage { min-height: 90vh; display: grid; place-content: center; justify-items: center; gap: 1rem; color: var(--secondaire); }
.sans-script { padding: 2rem; text-align: center; }

.auth { display: grid; min-height: 100vh; grid-template-columns: minmax(350px, 38%) 1fr; }
.auth-marque {
  position: relative; isolation: isolate; min-width: 0; min-height: 100%; overflow: hidden;
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
  background: #eee8ff; padding: clamp(2.25rem, 5vw, 5.5rem); color: #35246c;
}
.auth-marque > a { position: absolute; top: 2.25rem; }
.auth-titre { margin: 0 0 1rem; color: #211441; font-size: clamp(2.5rem, 4.8vw, 5rem); font-weight: 700; line-height: 1.04; letter-spacing: -.08em; }
.auth-marque p + p { max-width: 28ch; font-size: 1.05rem; margin-bottom: 3rem; }
.auth-decoration { position: absolute; z-index: -1; bottom: -16rem; left: 19%; width: 34rem; height: 34rem; transform: rotate(-24deg); }
.auth-decoration > div { position: absolute; inset: 0; border: 1px solid #d0bffa; border-radius: 30%; }
.auth-decoration > div:nth-child(2) { inset: 2.65rem; }
.auth-decoration > div:nth-child(3) { inset: 5.3rem; }
.auth-contenu { display: grid; place-items: center; padding: 2.5rem 1.5rem; background: var(--blanc); }
.formulaire-auth { width: min(100%, 410px); }
.formulaire-auth h1 { font-size: clamp(2rem, 3vw, 2.55rem); }
.formulaire-auth form { margin-top: 1.5rem; }
.formulaire-auth form > .bouton { margin-top: .7rem; }
.formulaire-auth form > .principal { margin-top: 1.4rem; }
.ligne-libelle { display: flex; align-items: baseline; justify-content: space-between; gap: .4rem; }
.ligne-libelle a { font-size: .85rem; }
.auth-lien { margin: 1.35rem 0 0; text-align: center; color: var(--secondaire); }
.marque-mobile { display: none; }

.espace { display: grid; grid-template-columns: 230px minmax(0, 1fr); min-height: 100vh; }
.barre-laterale {
  position: sticky; top: 0; align-self: start; min-height: 100vh;
  padding: 1.8rem 1rem 1.15rem; background: var(--blanc); border-right: 1px solid var(--bordure);
  display: flex; flex-direction: column;
}
.barre-laterale .marque { margin: 0 .65rem 2.55rem; }
.barre-laterale nav { display: grid; gap: .3rem; }
.barre-laterale nav a, .bouton-deconnexion {
  display: flex; align-items: center; gap: .75rem; padding: .65rem .75rem;
  min-height: 46px; color: var(--secondaire); border-radius: 9px;
  text-align: left; text-decoration: none; font-weight: 700; font-size: .91rem;
}
.barre-laterale nav a:hover, .bouton-deconnexion:hover { background: var(--fond); }
.barre-laterale nav a[aria-current="page"] { background: var(--lavande); color: var(--violet-fonce); }
.bouton-deconnexion { margin-top: auto; border: 0; background: none; }

.barre-superieure {
  padding: .85rem clamp(1.3rem, 4vw, 3.7rem); min-height: 75px;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  background: var(--blanc); border-bottom: 1px solid var(--bordure);
}
.barre-superieure > span { font-weight: 700; color: var(--secondaire); font-size: .9rem; }
.identite { display: flex; align-items: center; gap: .65rem; font-size: .9rem; min-width: 0; }
.identite > div { min-width: 0; }
.identite strong, .identite small { display: block; max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#initiale {
  display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 38px;
  border-radius: 50%; background: var(--lavande); color: var(--violet-fonce); font-weight: 700;
}
.contenu { width: min(100%, 1240px); margin-inline: auto; padding: 2.45rem clamp(1.3rem, 4vw, 3.7rem) 3rem; }
.entete-vue { display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; margin-bottom: 1.8rem; }
.entete-vue > .bouton { flex-shrink: 0; }
.entete-vue p { margin-bottom: 0; max-width: 63ch; }
.indicateurs, .colonnes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.indicateurs { margin-bottom: 1.5rem; }
.indicateur {
  position: relative; display: grid; gap: .28rem; min-width: 0;
  padding: 1.2rem 2.25rem 1.2rem 1.25rem; border: 1px solid var(--bordure);
  border-radius: var(--rayon); background: var(--blanc); color: var(--texte);
  text-decoration: none;
}
.indicateur:hover { border-color: #b9a5f6; }
.indicateur-credits { background: #eee8ff; border-color: #e2d8fd; }
.indicateur > svg { position: absolute; right: 1rem; top: 50%; transform: translateY(-50%); color: var(--violet-fonce); width: 17px; }
.carre-icone {
  display: inline-grid; place-items: center; width: 42px; height: 42px; flex: 0 0 42px;
  border-radius: 11px; background: var(--lavande); color: var(--violet-fonce);
}
.indicateur-credits .carre-icone { background: #fff; }
.nom-indicateur { margin-top: .35rem; }
.indicateur > strong, .montant-solde { font-size: 2.35rem; line-height: 1.2; font-weight: 700; letter-spacing: -.055em; }
.indicateur-credits > strong, .montant-solde { color: var(--violet-fonce); }
.indicateur small { font-weight: 400; }

.panneau { background: var(--blanc); border: 1px solid var(--bordure); border-radius: var(--rayon); overflow: hidden; }
.panneau-interieur { padding: 1.25rem; }
.panneau-interieur > .carre-icone { margin-bottom: .9rem; }
.panneau-interieur > p { max-width: 52ch; }
.entete-panneau {
  min-height: 64px; padding: .85rem 1.25rem;
  display: flex; align-items: center; justify-content: space-between; gap: .6rem 1rem; flex-wrap: wrap;
}
.entete-panneau h2 { margin: 0; }
.entete-panneau a, .retour { display: inline-flex; align-items: center; gap: .25rem; text-decoration: none; font-size: .88rem; }
.entete-panneau a:hover, .retour:hover { text-decoration: underline; }
.entete-panneau a svg, .retour svg { width: 16px; height: 16px; }
.retour { margin-bottom: 1.1rem; }
.tableau { width: 100%; border-collapse: collapse; table-layout: auto; text-align: left; }
.tableau thead { background: #fbfaff; }
.tableau th, .tableau td { padding: .8rem 1.25rem; border-top: 1px solid var(--bordure); }
.tableau th { color: var(--secondaire); font-size: .81rem; font-weight: 700; white-space: nowrap; }
.tableau td { font-size: .91rem; }
.tableau .fin { text-align: right; }
.carte-nom { display: flex; align-items: center; gap: .7rem; font-weight: 700; overflow-wrap: anywhere; }
.carte-nom .carre-icone { border-radius: 10px; }
.carte-nom small { font-size: .83rem; font-weight: 400; }
.etiquette {
  display: inline-block; padding: .22rem .65rem; border-radius: 20px;
  background: #f2eff6; color: #574f64; font-size: .8rem; font-weight: 700;
}
.etiquette.vert { background: #def3e7; color: var(--vert); }
.etiquette.ambre { background: #fff0cf; color: #754712; }
.etiquette.violet { background: var(--lavande); color: #5131a7; }
.vide { padding: 1.4rem 1.25rem; border-top: 1px solid var(--bordure); }
.vide h3 { margin: 0 0 .25rem; }
.vide p { margin-bottom: .9rem; }
.vide .bouton { min-height: 42px; }
.etat-liste, .pied-liste { margin: .8rem 1.25rem 1rem; }

.montant-solde { margin: 0 0 .6rem; }
.details { margin: 0; }
.details > div { display: flex; justify-content: space-between; align-items: baseline; gap: .6rem; border-top: 1px solid var(--bordure); padding: .65rem 0; }
.details dd { margin: 0; font-weight: 700; white-space: nowrap; }
#credits-offre .bouton, .recapitulatif .bouton { margin-top: .8rem; }
.bloc-parrainage { margin-top: 1rem; }
.code-parrain { display: flex; align-items: center; gap: .85rem; flex-wrap: wrap; }
.code-parrain strong { padding: .45rem .75rem; border-radius: 8px; background: var(--lavande); color: var(--violet-fonce); letter-spacing: .06em; }
.colonnes-achat { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); align-items: start; }
.paiement { margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid var(--bordure); }
.champ-paiement { margin: .65rem 0 0; padding-top: .85rem; }
.panneau-confirmation { max-width: 590px; padding: 2rem; margin-inline: auto; text-align: center; }
.panneau-confirmation > p { margin-inline: auto; }
.confirmation-icone { background: #def3e7; color: var(--vert); border-radius: 50%; }

@media (max-width: 920px) {
  .espace { grid-template-columns: 190px minmax(0, 1fr); }
  .colonnes-achat { grid-template-columns: minmax(0, 1fr); }
  .tableau th, .tableau td { padding-inline: .8rem; }
}
@media (max-width: 700px) {
  .auth { grid-template-columns: 1fr; }
  .auth-marque { display: none; }
  .marque-mobile { display: inline-flex; margin-bottom: 1.6rem; }
  .auth-contenu { place-items: start center; padding-top: max(2rem, env(safe-area-inset-top)); }
  .espace { display: block; }
  .barre-laterale { position: static; min-height: auto; padding: .65rem .85rem; border-right: 0; border-bottom: 1px solid var(--bordure); display: grid; grid-template-columns: 1fr auto; gap: .35rem; }
  .barre-laterale .marque { margin: 0 .35rem; }
  .barre-laterale nav { grid-row: 2; grid-column: 1 / -1; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .1rem; }
  .barre-laterale nav a { flex-direction: column; justify-content: flex-start; text-align: center; padding: .35rem .12rem; gap: .16rem; font-size: .74rem; }
  .barre-laterale nav a svg { width: 17px; height: 17px; }
  .bouton-deconnexion { margin: 0; gap: .3rem; min-height: 40px; padding: .4rem .3rem; font-size: .8rem; }
  .bouton-deconnexion svg { width: 16px; height: 16px; }
  .barre-superieure { min-height: 64px; padding: .55rem 1rem; }
  .barre-superieure > span { display: none; }
  .identite { margin-left: auto; }
  .contenu { padding: 1.3rem .9rem 2rem; }
  .entete-vue { flex-direction: column; align-items: flex-start; gap: .9rem; margin-bottom: 1.3rem; }
  .indicateurs { gap: .55rem; }
  .indicateur { padding: .7rem 1.35rem .7rem .75rem; }
  .indicateur > svg { right: .4rem; width: 13px; }
  .indicateur small { font-size: .78rem; }
  .nom-indicateur { font-size: .88rem; }
  .colonnes { grid-template-columns: minmax(0, 1fr); }
  .entete-panneau { padding-inline: .85rem; }
  .tableau th, .tableau td { padding: .65rem .55rem; }
  .carte-nom { gap: .4rem; }
  .carte-nom .carre-icone { display: none; }
}
