:root {
  --bg: #111111;
  --surface: #1a1a1a;
  --surface-2: #242424;
  --border: #3a3a3a;
  --text: #e8e8e8;
  --text-muted: #9ca3af;
  --blue: #3b82f6;
  --dark: #0a0a0a;
  --gap: 8px;
  --pad: 10px;
  --radius: 8px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
  color-scheme: dark;
}

body {
  font-family: Poppins, "Segoe UI", system-ui, sans-serif;
  font-size: 14px;
  color: var(--text);
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 10vh;
}

body.is-home,
body.is-compte,
body.is-detail,
body.is-legal {
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  padding-bottom: 0;
  min-height: 100%;
}

body.is-home {
  height: auto;
}

body.is-home .page {
  flex: 1;
  justify-content: center;
  padding-top: 24px;
  padding-bottom: 40px;
}

.site-footer {
  flex-shrink: 0;
  margin-top: auto;
  padding: 10px;
  border-top: 1px solid var(--border);
  background: var(--surface);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
}

.site-footer__nav a {
  font-size: 12px;
  color: var(--text-muted);
  text-decoration: none;
}

.site-footer__nav a:hover,
.site-footer__nav a.is-current {
  color: var(--blue);
}

.site-footer__copy {
  margin: 0;
  font-size: 12px;
  color: var(--text-muted);
}

/* —— Pages légales / contact —— */

.legal-page {
  flex: 1 1 auto;
  width: min(720px, 100%);
  margin: 0 auto;
  padding: 16px 10px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-sizing: border-box;
}

.legal-page__head {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.legal-page__title {
  margin: 0;
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 600;
  color: var(--text);
}

.legal-page__body {
  font-size: 13px;
  line-height: 1.55;
  color: var(--text);
}

.legal-page__body p {
  margin: 0 0 10px;
}

.legal-page__body p:last-child {
  margin-bottom: 0;
}

.legal-page__empty {
  color: var(--text-muted);
}

/* —— Barre site (accueil) —— */

.site-top {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  width: 100%;
}

.site-top__brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  text-decoration: none;
}

.site-top__brand:hover {
  color: #ffffff;
}

.site-top__logo {
  width: 28px;
  height: 28px;
  display: inline-flex;
  flex-shrink: 0;
}

.site-top__logo svg {
  width: 100%;
  height: 100%;
  display: block;
}

.site-top__logo path.a,
.site-top__logo path.s0 {
  fill: #ffffff;
}

.site-top__brand-text {
  white-space: nowrap;
  color: inherit;
}

.site-top__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-user {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-user__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 180px;
  color: var(--text);
  text-decoration: none;
}

.site-user__link:hover {
  color: var(--blue);
}

.site-user__icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  background-color: currentColor;
  -webkit-mask: url("../assets/icones/user.svg") center / contain no-repeat;
  mask: url("../assets/icones/user.svg") center / contain no-repeat;
}

.site-user__name {
  font-size: 12px;
  color: inherit;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn--icon {
  padding: 6px 8px;
  min-width: 32px;
}

.site-logout__icon {
  display: inline-block;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  background-color: currentColor;
  -webkit-mask: url("../assets/icones/deco.svg") center / contain no-repeat;
  mask: url("../assets/icones/deco.svg") center / contain no-repeat;
}

/* .btn { display } écrase sinon l’attribut HTML hidden */
[hidden] {
  display: none !important;
}

.page {
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

@media (min-width: 1000px) {
  .page {
    max-width: 1040px;
  }
}

.intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.intro__logo {
  width: clamp(160px, 28vw, 240px);
  height: clamp(160px, 28vw, 240px);
  display: block;
  flex-shrink: 0;
}

.intro__logo svg {
  width: 100%;
  height: 100%;
  display: block;
}

.intro__logo path.a,
.intro__logo path.s0 {
  fill: #ffffff;
}

.intro__title {
  font-size: clamp(28px, 4.5vw, 36px);
  font-weight: 500;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.intro__tagline {
  margin-top: 14px;
  margin-bottom: 18px;
  font-size: clamp(17px, 2.4vw, 20px);
  font-weight: 400;
  line-height: 1.4;
  color: var(--text-muted);
}

.apps {
  list-style: none;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--gap);
}

.app-tile {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.app-tile > .card {
  flex: 1 1 auto;
}

.app-tile__open {
  text-align: center;
  text-decoration: none;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: var(--pad);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: inherit;
  text-decoration: none;
}

.card:hover {
  border-color: var(--blue);
  background: var(--surface-2);
}

.card__thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 0 2px;
}

.card__thumb::after {
  content: "";
  width: 72px;
  height: 72px;
  background-color: var(--text);
  -webkit-mask: var(--card-icon) center / contain no-repeat;
  mask: var(--card-icon) center / contain no-repeat;
}

.card--atelier {
  --card-icon: url("../assets/icones/create.svg");
}

.card--shape {
  --card-icon: url("../assets/icones/vector.svg");
}

.card--boutique {
  --card-icon: url("../assets/icones/boutique.svg");
}

.card--studio {
  --card-icon: url("../assets/img/logo_DS.svg");
}

.card__name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  text-align: center;
}

.card__desc {
  font-size: 13px;
  line-height: 1.35;
  color: var(--text-muted);
  text-align: center;
}

/* —— Page détail app (plein écran sous la barre site) —— */

body.is-detail {
  display: flex;
  height: 100%;
  overflow: hidden;
}

.detail-shell {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}

.back {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
}

.back:hover {
  color: var(--blue);
}

.detail-main {
  flex: 1 1 auto;
  min-height: 0;
  display: block;
  padding: 0;
  overflow: auto;
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
}

/* Zones du fold : top (titre) / mid (texte+image) / bot (bouton) */
.detail-fold {
  --fold-top: 25%;
  --fold-mid: 56%;
  --fold-bot: 14%;
  height: 100%;
  min-height: 100%;
  width: min(1100px, 100%);
  margin: 0 auto;
  box-sizing: border-box;
  display: grid;
  grid-template-rows: var(--fold-top) var(--fold-mid) var(--fold-bot);
  align-items: stretch;
  justify-items: center;
  gap: 0;
  padding: 8px 12px;
  overflow: hidden;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.detail-fold .detail-hero {
  align-self: end;
  justify-self: center;
  gap: 6px;
  margin: 0;
  padding-bottom: 6px;
}

.detail-fold__row {
  min-height: 0;
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.25fr);
  gap: 18px;
  align-items: center;
}

.detail-fold__visual {
  min-height: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.detail-shots-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  max-height: 100%;
  min-height: 0;
}

.detail-shots {
  position: relative;
  flex: 1 1 auto;
  width: max-content;
  max-width: 100%;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.detail-shot {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 0;
  background: var(--surface);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.detail-shots .detail-shot {
  position: absolute;
  inset: 0;
  margin: auto;
  opacity: 0;
  transition: opacity 0.7s ease;
  pointer-events: none;
}

.detail-shots .detail-shot.is-active {
  position: relative;
  opacity: 1;
  z-index: 1;
}

.detail-shots__dots {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.detail-shots__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface-2);
  cursor: pointer;
}

.detail-shots__dot:hover {
  border-color: var(--blue);
}

.detail-shots__dot.is-active {
  background: var(--blue);
  border-color: var(--blue);
}

.detail-cta {
  align-self: start;
  justify-self: center;
  margin: 0;
  padding-top: 4px;
}

@media (max-width: 720px) {
  .detail-fold {
    --fold-top: 22%;
    --fold-mid: 60%;
    --fold-bot: 18%;
    padding: 8px 10px;
  }

  .detail-fold__row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

.detail-cta__icon {
  display: inline-block;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  background-color: currentColor;
  -webkit-mask: url("../assets/icones/create.svg") center / contain no-repeat;
  mask: url("../assets/icones/create.svg") center / contain no-repeat;
}

.detail-offers {
  position: relative;
  box-sizing: border-box;
  height: 100%;
  min-height: 100%;
  width: 100%;
  margin: 0;
  padding: 10px 10px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.detail-offers .offer-cards {
  width: min(820px, 100%);
  margin-top: auto;
  margin-bottom: auto;
}

.detail-up {
  flex-shrink: 0;
  align-self: center;
  margin-top: 4px;
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.55;
}

.detail-up::before {
  content: "";
  width: 7px;
  height: 7px;
  border-left: 1.5px solid currentColor;
  border-top: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(2px);
}

.detail-up:hover {
  color: var(--blue);
  opacity: 1;
}

.detail-main__inner {
  width: 100%;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.detail-main__inner--offers {
  max-width: 820px;
  gap: 14px;
}

.detail-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  width: 100%;
}

.detail-hero__lead {
  font-size: clamp(14px, 2vw, 16px);
  line-height: 1.45;
  color: var(--text-muted);
  width: max-content;
  max-width: 100%;
}

.detail-hero__slogan {
  margin: 0;
  font-size: clamp(17px, 2.6vw, 22px);
  font-weight: 500;
  line-height: 1.35;
  color: var(--blue);
  max-width: 28em;
}

.detail-hero__slogan::after {
  content: "";
  display: block;
  width: 48px;
  height: 1px;
  margin: 10px auto 0;
  background: var(--border);
}

.detail-fold__copy {
  flex-shrink: 0;
  margin: 0;
  max-width: none;
  font-size: clamp(15px, 2vw, 17px);
  line-height: 1.55;
  color: var(--text-muted);
  text-align: left;
}

.detail-fold__copy strong {
  font-weight: inherit;
  color: var(--blue);
}

.detail-fold .card__thumb--lg {
  padding: 0;
}

.detail-fold .card__thumb--lg::after {
  width: 64px;
  height: 64px;
}

.detail-fold .detail-hero__title {
  font-size: clamp(26px, 4.2vw, 36px);
}

.card__thumb--lg {
  padding: 4px 0;
}

.card__thumb--lg::after {
  width: 96px;
  height: 96px;
}

.detail-hero__title {
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.detail-status {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  padding: 4px 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  white-space: nowrap;
}

.detail-status[data-mode="demo"] {
  color: var(--blue);
  border-color: var(--blue);
}

.detail-status[data-mode="subscribed"] {
  color: #86efac;
  border-color: #22c55e;
}

.offer-cards {
  width: min(860px, 100%);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 50px;
  align-items: stretch;
}

.offer-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 20px 16px 14px;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.offer-card.is-active {
  border-color: var(--blue);
}

.offer-card__title {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--blue);
  text-align: center;
}

.offer-card__price {
  margin: 0 0 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: center;
  text-align: center;
}

.offer-card__price-main {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}

.offer-card__price-alt {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-muted);
}

.offer-card__desc {
  margin: 0 0 16px;
  padding: 10px 12px;
  max-width: none;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-muted);
  text-align: center;
  background: transparent;
  border: 1px solid var(--blue);
  border-radius: var(--radius);
}

.offer-card__list {
  margin: 0 0 16px;
  padding: 14px 0 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.45;
  color: var(--text);
  flex: 1;
  border-top: 1px solid var(--border);
}

.offer-card__list li {
  position: relative;
  padding: 0 0 0 18px;
  color: var(--text-muted);
}

.offer-card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
}

.offer-card__cta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
  padding-top: 4px;
}

.offer-card__cta .btn--lg {
  min-height: 42px;
  font-weight: 600;
}

.offer-card__hint {
  margin: 0;
  font-size: 12px;
  line-height: 1.35;
  color: var(--text-muted);
  text-align: center;
}

@media (max-width: 640px) {
  .offer-cards {
    grid-template-columns: 1fr;
  }
}

.detail-list {
  margin: 0;
  padding: 8px 10px 8px 1.4em;
  width: 100%;
  list-style: disc;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--text-muted);
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.detail-note {
  font-size: 12px;
  line-height: 1.4;
  color: var(--text-muted);
  max-width: 36em;
}

.detail-enter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 4px;
  flex-direction: column;
}

.detail-enter__hint {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  cursor: pointer;
  text-decoration: none;
}

.btn:hover {
  border-color: var(--blue);
}

.btn--main {
  width: fit-content;
  min-width: 200px;
  padding: 12px 20px;
  font-size: 18px;
  font-weight: 600;
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.btn--main:hover {
  filter: brightness(1.08);
}

.btn--lg {
  min-width: 140px;
  padding: 10px 16px;
  font-size: 14px;
}

.btn--primary {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.btn--primary:hover {
  filter: brightness(1.08);
}

.btn--ghost {
  background: transparent;
  font-size: 12px;
  color: var(--text-muted);
}

.detail-dev {
  flex-shrink: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.detail-dev__label {
  font-size: 11px;
  color: var(--text-muted);
}

.btn--block {
  width: 100%;
}

/* —— Modale compte plateforme —— */

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  background: rgba(0, 0, 0, 0.55);
}

.auth-modal[hidden] {
  display: none;
}

.auth-modal__panel {
  position: relative;
  width: 100%;
  max-width: 360px;
  padding: 14px 12px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.auth-modal__close {
  position: absolute;
  top: 6px;
  right: 8px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.auth-modal__title {
  font-size: 16px;
  font-weight: 600;
  padding-right: 24px;
}

.auth-modal__hint {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.35;
}

.auth-modal__form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: var(--text-muted);
}

.auth-field input {
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 13px;
}

.auth-modal__error {
  font-size: 12px;
  color: #f87171;
}

.auth-modal__switch {
  text-align: center;
}

/* —— Page Mon compte —— */

body.is-compte {
  display: flex;
}

.compte-page {
  flex: 1 1 auto;
  width: min(960px, 100%);
  margin: 0 auto;
  padding: 16px 10px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-sizing: border-box;
}

.compte-page__head {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.compte-page__title {
  margin: 0;
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 600;
  color: var(--text);
}

.compte-page__lead {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.4;
}

.compte-dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 10px;
  align-items: start;
}

@media (max-width: 720px) {
  .compte-dashboard {
    grid-template-columns: 1fr;
  }
}

.compte-panel {
  padding: 12px 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.compte-panel[hidden],
.compte-dashboard[hidden] {
  display: none !important;
}

.compte-panel__title {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.compte-panel__lead {
  margin: -4px 0 0;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.35;
}

.compte-form--login {
  width: min(360px, 100%);
  margin: 8px auto 0;
  padding: 12px 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.compte-card {
  padding: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.compte-card[hidden] {
  display: none !important;
}

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

.compte-app {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.compte-app__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.compte-app__name {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

.compte-app__status {
  font-size: 12px;
  color: var(--text-muted);
}

.compte-app__status.is-subscribed {
  color: #86efac;
}

.compte-app__status.is-demo {
  color: var(--blue);
}

.compte-app__status.is-none {
  color: var(--text-muted);
}

.btn--sm {
  padding: 6px 10px;
  font-size: 12px;
  flex-shrink: 0;
}

.auth-field__opt {
  font-style: normal;
  font-weight: 400;
  color: var(--text-muted);
  font-size: 12px;
}

.compte-email-locked {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 8px;
  padding: 8px 10px;
  font-size: 13px;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.compte-email-locked[hidden] {
  display: none !important;
}

.compte-tabs {
  display: flex;
  gap: 4px;
}

.compte-tab {
  flex: 1;
  appearance: none;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text-muted);
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 8px;
  border-radius: var(--radius);
  cursor: pointer;
}

.compte-tab.is-active {
  border-color: var(--blue);
  color: var(--text);
  background: var(--surface-2);
}

.compte-forgot {
  margin: -2px 0 8px;
  text-align: right;
}

.compte-forgot a {
  font-size: 12px;
  color: var(--text-muted);
  text-decoration: none;
}

.compte-forgot a:hover {
  color: var(--blue);
}

.compte-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.compte-form--password {
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.compte-section-title {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.compte-ok {
  margin: 0;
  font-size: 12px;
  color: #86efac;
}

.compte-ok[hidden] {
  display: none !important;
}

.compte-error {
  margin: 0;
  font-size: 12px;
  color: #f87171;
}

.compte-error[hidden] {
  display: none !important;
}

.compte-profile {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.compte-profile__row {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.compte-profile__row dt {
  font-size: 11px;
  color: var(--text-muted);
}

.compte-profile__row dd {
  margin: 0;
  font-size: 14px;
  color: var(--text);
  word-break: break-word;
}

.compte-note {
  margin: 0;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.35;
}

.compte-note[hidden] {
  display: none !important;
}

.compte-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.compte-actions .btn {
  justify-content: center;
  text-align: center;
  text-decoration: none;
}
