/* ==========================================================================
   LexyLab — site vitrine
   Reproduction de site/reference/lexylab-maquette.html
   ========================================================================== */

/* --- Police Lexend, hébergée sur le site (licence SIL OFL, fonts/OFL.txt) --- */

@font-face {
  font-family: 'Lexend';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/lexend-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Lexend';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/lexend-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Identité */
  --blue: #3D7BF5;
  --green: #1FB885;
  --night: #0B1220;
  --card: #111A2E;
  --card-raised: #18233C;
  --gradient: linear-gradient(90deg, var(--blue), var(--green));
  --gradient-diag: linear-gradient(135deg, var(--blue), var(--green));

  /* Textes */
  --text: #EEF2FA;
  --text-body: #D6DDEA;
  --text-soft: #C3CDE0;
  --text-muted: #B9C4D8;
  --text-dim: #A9B5CC;
  --text-faint: #8D9AB5;
  --link: #8EC2FF;
  --link-hover: #B8D8FF;

  /* Teintes des icônes */
  --icon-blue: #8EB4FF;
  --icon-blue-bg: rgba(61, 123, 245, 0.15);
  --icon-green: #5EE0B0;
  --icon-green-bg: rgba(31, 184, 133, 0.15);
  --icon-teal: #7FD2EC;
  --icon-teal-bg: rgba(46, 154, 189, 0.18);

  /* Filets et surfaces translucides */
  --line-faint: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.07);
  --line-faq: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.18);
  --surface: rgba(255, 255, 255, 0.04);
  --surface-chip: rgba(255, 255, 255, 0.05);

  /* Pastilles macOS de la démo */
  --mac-red: #FF5F57;
  --mac-yellow: #FEBC2E;
  --mac-green: #28C840;

  --font: 'Lexend', sans-serif;
  --radius-pill: 999px;
  --container: 1200px;
  --gutter: 24px;
}

/* --- Base ---------------------------------------------------------------- */

/* Modèle de boîte par défaut (content-box), comme la maquette :
   le conteneur fait 1200 px de contenu + 2 × 24 px de marge intérieure. */

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--night);
  color: var(--text);
  font-family: var(--font);
}

a { color: var(--link); }
a:hover { color: var(--link-hover); }

img,
svg { display: block; }

summary { cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 3px;
  border-radius: 6px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  box-sizing: border-box;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  background: var(--green);
  color: var(--night);
  font-family: var(--font);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
  color: var(--night);
}

@media (prefers-reduced-motion: no-preference) {
  .skip-link { transition: transform 0.15s ease; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* --- Fond : halos flous et spirale en filigrane ---------------------------- */

.page {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  background: var(--night);
  color: var(--text);
  font-family: var(--font);
}

.halo {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
}

.halo--blue {
  top: -160px;
  right: -120px;
  width: 620px;
  height: 620px;
  background: var(--blue);
  opacity: 0.18;
}

.halo--green {
  top: 380px;
  left: -200px;
  width: 520px;
  height: 520px;
  background: var(--green);
  opacity: 0.12;
}

.spiral {
  position: absolute;
  top: -120px;
  right: -220px;
  opacity: 0.07;
  pointer-events: none;
}

.container {
  position: relative;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* --- Boutons ------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  font-family: inherit;
  text-decoration: none;
  white-space: nowrap;
}

.btn--primary,
.btn--primary:hover {
  background: var(--green);
  color: var(--night);
  font-weight: 600;
}

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

.btn--outline,
.btn--outline:hover {
  border: 1px solid var(--line-strong);
  color: var(--text);
  font-weight: 500;
}

.btn--outline:hover { background: var(--surface); }

.btn--sm {
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  font-size: 15px;
}

.btn--sm.btn--primary { padding: 0 20px; }

.btn--lg {
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  font-size: 16px;
}

.btn--wide { padding: 0 28px; }
.btn--block { display: flex; padding: 0; }

@media (prefers-reduced-motion: no-preference) {
  .btn { transition: background-color 0.15s ease, filter 0.15s ease; }
}

/* --- Navigation ---------------------------------------------------------- */

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
}

.brand:hover { color: var(--text); }

.brand__name {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.brand__accent { color: var(--green); }

.nav__menu {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 28px;
}

.nav__link {
  color: var(--text-soft);
  font-size: 15px;
  text-decoration: none;
}

.nav__link:hover { color: var(--text); }

.nav__toggle { display: none; }

/* Mobile et tablette : menu hamburger (seulement si JavaScript est actif) */
@media (max-width: 960px) {
  .js .nav { position: relative; }

  .js .nav__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-pill);
    background: transparent;
    color: var(--text);
    cursor: pointer;
  }

  .nav__toggle-bars,
  .nav__toggle-bars::before,
  .nav__toggle-bars::after {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
  }

  .nav__toggle-bars { position: relative; }

  .nav__toggle-bars::before,
  .nav__toggle-bars::after {
    content: "";
    position: absolute;
    left: 0;
  }

  .nav__toggle-bars::before { top: -6px; }
  .nav__toggle-bars::after { top: 6px; }

  .nav__toggle[aria-expanded="true"] .nav__toggle-bars { background: transparent; }
  .nav__toggle[aria-expanded="true"] .nav__toggle-bars::before { top: 0; transform: rotate(45deg); }
  .nav__toggle[aria-expanded="true"] .nav__toggle-bars::after { top: 0; transform: rotate(-45deg); }

  .js .nav__menu {
    position: absolute;
    top: calc(100% - 8px);
    left: 0;
    right: 0;
    z-index: 20;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px;
    border-radius: 18px;
    background: var(--card);
    border: 1px solid var(--line-strong);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
  }

  .js .nav__menu.is-open { display: flex; }

  .js .nav__link {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 0 14px;
    border-radius: 12px;
    font-size: 16px;
  }

  .js .nav__link:hover { background: var(--surface); }

  .js .nav__menu .btn {
    min-height: 48px;
    margin-top: 6px;
    font-size: 16px;
  }
}

@media (max-width: 960px) and (prefers-reduced-motion: no-preference) {
  .nav__toggle-bars,
  .nav__toggle-bars::before,
  .nav__toggle-bars::after { transition: transform 0.2s ease, top 0.2s ease, background-color 0.2s ease; }
}

/* --- Hero ---------------------------------------------------------------- */

.hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 56px;
  padding: 72px 0 104px;
}

.hero__text {
  flex: 1 1 460px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.pill {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--surface);
  font-size: 14px;
  color: var(--text-soft);
}

.pill__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}

.hero__title {
  margin: 0;
  font-size: clamp(42px, 5.6vw, 72px);
  line-height: 1.04;
  font-weight: 600;
  letter-spacing: -0.035em;
}

.text-gradient {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lead {
  margin: 0;
  max-width: 520px;
  font-size: 19px;
  line-height: 1.6;
  font-weight: 300;
  color: var(--text-soft);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 8px;
}

.hero__meta {
  margin: 0;
  font-size: 14px;
  color: var(--text-faint);
}

/* Démo : fenêtre de document + bulle de suggestion */

.demo {
  flex: 1 1 420px;
  min-width: 0;
  position: relative;
  margin: 0;
}

.demo__window {
  border-radius: 18px;
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.demo__titlebar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line-faint);
}

.demo__light {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.demo__light--red { background: var(--mac-red); }
.demo__light--yellow { background: var(--mac-yellow); }
.demo__light--green { background: var(--mac-green); }

.demo__doc-name {
  flex: 1;
  text-align: center;
  font-size: 13px;
  color: var(--text-faint);
}

.demo__body {
  padding: 32px 32px 120px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-body);
  font-weight: 300;
}

.demo__body p { margin: 0; }

.demo__heading {
  font-size: 22px;
  font-weight: 600;
  color: var(--text);
}

.demo__mistake {
  text-decoration: underline wavy var(--green);
  text-underline-offset: 5px;
  text-decoration-thickness: 2px;
}

.demo__faded { color: var(--text-faint); }

.suggestion {
  position: absolute;
  left: 12%;
  bottom: -36px;
  width: min(340px, 84%);
  padding: 18px;
  border-radius: 16px;
  background: var(--card-raised);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.suggestion__label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dim);
}

.suggestion__change {
  font-size: 16px;
  color: var(--text);
}

.suggestion__old {
  text-decoration: line-through;
  color: var(--text-faint);
}

.suggestion__new {
  font-weight: 600;
  color: var(--green);
}

.suggestion__why {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-dim);
}

.suggestion__actions {
  display: flex;
  gap: 8px;
}

.suggestion__btn {
  box-sizing: border-box; /* comme les <button> de la maquette */
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 10px;
  font-size: 14px;
}

.suggestion__btn--accept {
  background: var(--green);
  color: var(--night);
  font-weight: 600;
}

.suggestion__btn--ignore {
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--text);
}

/* --- Bandeau des applis compatibles ------------------------------------- */

.apps {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 14px;
  padding: 40px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.apps__label {
  margin: 0 8px 0 0;
  font-size: 15px;
  font-weight: 400;
  color: var(--text-faint);
}

.apps__list {
  display: contents;
  list-style: none;
}

.apps__chip {
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: var(--surface-chip);
  font-size: 15px;
  color: var(--text-body);
}

/* --- Sections ------------------------------------------------------------ */

.section {
  display: flex;
  flex-direction: column;
}

.section--features { padding: 112px 0 64px; gap: 48px; }
.section--steps { padding: 64px 0 112px; gap: 48px; }
.section--pricing { padding: 0 0 112px; gap: 40px; align-items: center; text-align: center; }
.section--faq { padding: 0 0 112px; gap: 32px; max-width: 800px; }

.section-head {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 640px;
}

.section-head--center {
  align-items: center;
  max-width: none;
}

.eyebrow {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
}

.section-title {
  margin: 0;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.03em;
}

/* Cartes de fonctionnalités */

.features,
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.features { gap: 20px; }
.steps { gap: 40px; }

.card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 32px;
  border-radius: 22px;
  background: var(--card);
  border: 1px solid var(--line);
}

.card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
}

.card__icon--blue { background: var(--icon-blue-bg); color: var(--icon-blue); }
.card__icon--green { background: var(--icon-green-bg); color: var(--icon-green); }
.card__icon--teal { background: var(--icon-teal-bg); color: var(--icon-teal); }

.card__title {
  margin: 0;
  font-size: 21px;
  font-weight: 600;
}

.card__text {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  font-weight: 300;
  color: var(--text-muted);
}

/* Étapes */

.step {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.step__number {
  font-size: 56px;
  font-weight: 600;
  line-height: 1;
  background: var(--gradient-diag);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Tarif */

.price-card {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  max-width: 440px;
  padding: 40px 36px;
  border-radius: 28px;
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 0 1px rgba(31, 184, 133, 0.18), 0 30px 60px rgba(0, 0, 0, 0.35);
  text-align: left;
}

.price-card__head {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.price-card__name {
  margin: 0;
  font-size: 17px;
  font-weight: 500;
  color: var(--text-soft);
}

.price-card__price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0;
}

.price-card__amount {
  font-size: 60px;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
}

.price-card__period {
  font-size: 17px;
  color: var(--text-dim);
}

.price-card__features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 16px;
  font-weight: 300;
  color: var(--text-body);
}

.price-card__features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.price-card__features svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.price-card__login {
  margin: 0;
  font-size: 14px;
  color: var(--text-faint);
  text-align: center;
}

/* FAQ */

.faq {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line-faq);
}

.faq__item {
  padding: 22px 0;
  border-bottom: 1px solid var(--line-faq);
}

.faq__question {
  font-size: 18px;
  font-weight: 500;
}

.faq__answer {
  margin: 14px 0 0;
  font-size: 16px;
  line-height: 1.6;
  font-weight: 300;
  color: var(--text-muted);
}

/* Appel à l'action final */

.cta {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  margin-bottom: 96px;
  padding: 72px 40px;
  border-radius: 32px;
  background: var(--card);
  border: 1px solid var(--line-faq);
  text-align: center;
}

.cta__title {
  margin: 0;
  font-size: clamp(32px, 4.4vw, 52px);
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.cta__text {
  margin: 0;
  max-width: 480px;
  font-size: 18px;
  line-height: 1.6;
  font-weight: 300;
  color: var(--text-soft);
}

/* --- Pied de page -------------------------------------------------------- */

.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 32px 0 48px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--text-faint);
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer__links a {
  color: var(--text-faint);
  text-decoration: none;
}

.footer__links a:hover { color: var(--text); }

/* Fondateur */

.section--founder { padding: 0 0 112px; gap: 40px; }

.founder {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  max-width: 860px;
  padding: 40px;
  border-radius: 22px;
  background: var(--card);
  border: 1px solid var(--line);
}

.founder__photo {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--gradient-diag);
  color: var(--night);
  font-size: 40px;
  font-weight: 600;
  object-fit: cover;
}

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

.founder__story {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 18px;
  font-size: 17px;
  line-height: 1.7;
  font-weight: 300;
  color: var(--text-body);
}

.founder__story p { margin: 0; }

.founder__highlight {
  font-size: 20px;
  font-weight: 500;
  color: var(--text);
}

.founder__name {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.founder__role {
  margin: 0;
  font-size: 15px;
  color: var(--text-faint);
}

/* Bandeau cookies */

.cookie-banner {
  position: fixed;
  z-index: 100;
  left: 50%;
  bottom: 20px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 20px;
  width: calc(100% - 32px);
  max-width: 760px;
  padding: 18px 20px 18px 24px;
  border-radius: 20px;
  background: var(--card-raised);
  border: 1px solid var(--line-strong);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  transform: translateX(-50%);
}

.cookie-banner[hidden] { display: none; }

.cookie-banner__text {
  flex: 1;
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-soft);
}

.cookie-banner__actions {
  display: flex;
  flex: none;
  gap: 10px;
}

.cookie-banner .btn { cursor: pointer; background: transparent; }
.cookie-banner .btn--primary { background: var(--green); border: 0; }

@media (prefers-reduced-motion: no-preference) {
  .cookie-banner { animation: cookie-in 0.4s ease both; }
  @keyframes cookie-in {
    from { opacity: 0; transform: translate(-50%, 16px); }
  }
}

/* --- Petits écrans ------------------------------------------------------- */

@media (max-width: 600px) {
  .hero { padding: 40px 0 88px; gap: 48px; }
  .demo__body { padding: 24px 22px 190px; }
  .suggestion { left: 6%; width: 88%; }
  .section--features { padding-top: 88px; }
  .section--steps { padding-bottom: 88px; }
  .section--pricing,
  .section--faq { padding-bottom: 88px; }
  .card { padding: 28px 24px; }
  .section--founder { padding-bottom: 88px; }
  .founder { flex-direction: column; gap: 24px; padding: 28px 24px; }
  .founder__photo { width: 72px; height: 72px; font-size: 30px; }
  .cookie-banner { flex-direction: column; align-items: stretch; gap: 14px; bottom: 16px; padding: 18px; }
  .cookie-banner__actions .btn { flex: 1; }
  .price-card { padding: 32px 24px; }
  .price-card__amount { font-size: 52px; }
  .cta { margin-bottom: 72px; padding: 56px 24px; border-radius: 26px; }
  .footer { flex-direction: column; align-items: flex-start; }
}

/* --- Apparition au scroll ------------------------------------------------ */
/* Activée par main.js (classe .reveal-ready) uniquement si les animations sont autorisées */

@media (prefers-reduced-motion: no-preference) {
  .reveal-ready .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }

  .reveal-ready .reveal.is-visible {
    opacity: 1;
    transform: none;
  }

  .reveal-ready .features > .reveal:nth-child(2),
  .reveal-ready .steps > .reveal:nth-child(2) { transition-delay: 0.08s; }

  .reveal-ready .features > .reveal:nth-child(3),
  .reveal-ready .steps > .reveal:nth-child(3) { transition-delay: 0.16s; }
}

/* ==========================================================================
   Page de connexion
   ========================================================================== */

.auth {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.auth__header {
  padding: 24px 0;
}

.auth__main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 0 72px;
}

.auth-card {
  box-sizing: border-box;
  width: 100%;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 40px 36px;
  border-radius: 28px;
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 0 1px rgba(31, 184, 133, 0.18), 0 30px 60px rgba(0, 0, 0, 0.35);
}

.auth-card__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.auth-card__title {
  margin: 0;
  font-size: 32px;
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.auth-card__subtitle {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  font-weight: 300;
  color: var(--text-muted);
}

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

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

.field__label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.field__label {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-soft);
}

.field__aside {
  font-size: 14px;
}

.field__input {
  box-sizing: border-box;
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-size: 16px;
  font-weight: 400;
}

.field__input::placeholder { color: var(--text-faint); }

.field__input:hover { border-color: rgba(255, 255, 255, 0.28); }

.field__input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(61, 123, 245, 0.35);
}

.form .btn {
  margin-top: 6px;
  border: none;
  cursor: pointer;
}

.form__status {
  margin: 0;
  min-height: 1.5em;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-soft);
  text-align: center;
}

.form__status:empty { display: none; }

.auth-card__footer {
  margin: 0;
  padding-top: 22px;
  border-top: 1px solid var(--line-faq);
  font-size: 14px;
  color: var(--text-faint);
  text-align: center;
}

.auth__footer {
  padding: 24px 0 40px;
  font-size: 14px;
  color: var(--text-faint);
  text-align: center;
}

@media (max-width: 600px) {
  .auth__main { padding: 8px 0 48px; }
  .auth-card { padding: 32px 22px; border-radius: 24px; }
  .auth-card__title { font-size: 28px; }
}

/* ==========================================================================
   Mon compte
   ========================================================================== */

[hidden] { display: none !important; }

.account {
  margin: 0;
  display: flex;
  flex-direction: column;
}

.account__row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-faq);
  font-size: 15px;
  line-height: 1.5;
}

.account__row dt { color: var(--text-faint); }

.account__row dd {
  margin: 0;
  color: var(--text);
  text-align: right;
  overflow-wrap: anywhere;
}

.account__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.account__actions button.btn {
  cursor: pointer;
  background: transparent;
}

.account__actions button.btn--primary { background: var(--green); border: 0; }

.thanks-steps {
  margin: 0;
  padding-left: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 15px;
  line-height: 1.6;
  font-weight: 300;
  color: var(--text-muted);
}

/* ==========================================================================
   Pages légales
   ========================================================================== */

.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 24px 0 72px;
  font-size: 16px;
  line-height: 1.7;
  font-weight: 300;
  color: var(--text-body);
}

.legal h1 {
  margin: 0 0 8px;
  font-size: 40px;
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--text);
}

.legal h2 {
  margin: 40px 0 8px;
  font-size: 22px;
  font-weight: 600;
  color: var(--text);
}

.legal p, .legal ul { margin: 0 0 12px; }
.legal li { margin-bottom: 6px; }
.legal strong { font-weight: 500; color: var(--text); }

.legal__updated { color: var(--text-faint); font-size: 14px; }

.legal__notice {
  margin: 24px 0 8px;
  padding: 16px 20px;
  border-radius: 16px;
  border: 1px solid rgba(254, 188, 46, 0.45);
  background: rgba(254, 188, 46, 0.08);
  color: var(--text);
  font-weight: 400;
}

.todo { color: #FEBC2E; font-weight: 500; }

@media (max-width: 600px) {
  .legal h1 { font-size: 32px; }
}

/* Groupe de téléchargement par plateforme : sans effet sur la mise en page. */
.downloads { display: contents; }

/* Cases à cocher avant paiement */
.consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  line-height: 1.55;
  font-weight: 300;
  color: var(--text-soft);
  cursor: pointer;
}

.consent input {
  flex: none;
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: var(--green);
  cursor: pointer;
}
