/* =========================================================
   LYS-MOI — BASE GLOBALE
   ---------------------------------------------------------
   Reset léger, fond commun, typographie, accessibilité,
   classes utilitaires de base.
   ========================================================= */

/* =========================================================
   RESET LÉGER
   ========================================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;

  font-family: var(--font-main);
  color: var(--lm-text-main);

  background:
    linear-gradient(rgba(10, 10, 15, 0.68), rgba(10, 10, 15, 0.86)),
    url("../../images/background.webp");

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
}

img,
picture,
svg,
canvas {
  display: block;
  max-width: 100%;
}

input,
textarea,
select {
  color: var(--lm-text-main);
}

::selection {
  color: var(--lm-accent-dark);
  background: var(--lm-accent);
}

/* =========================================================
   ACCESSIBILITÉ
   ========================================================= */

:focus-visible {
  outline: 2px solid var(--lm-accent);
  outline-offset: 3px;
}

.lm-sr-only,
.sr-only {
  position: absolute !important;

  width: 1px !important;
  height: 1px !important;

  padding: 0 !important;
  margin: -1px !important;

  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;

  white-space: nowrap !important;
  border: 0 !important;
}

.hidden,
.lm-hidden {
  display: none !important;
}

/* =========================================================
   TYPOGRAPHIE COMMUNE
   ========================================================= */

.lm-kicker {
  color: var(--lm-text-muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.lm-title {
  margin: 0;

  color: var(--lm-text-title);
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.lm-subtitle {
  margin: 0;

  color: var(--lm-text-soft);
  line-height: 1.7;
}

.lm-muted {
  color: var(--lm-text-muted);
}

.lm-accent {
  color: var(--lm-accent);
}

/* =========================================================
   LAYOUTS COMMUNS
   ========================================================= */

.lm-page {
  width: min(var(--lm-page-max), calc(100% - 48px));
  margin: 0 auto;
  padding: calc(var(--lm-header-height) + 30px) 0 40px;
}

.lm-page-wide {
  width: min(var(--lm-page-wide), calc(100% - 96px));
  margin: 0 auto;
  padding: calc(var(--lm-header-height) + 12px) 0 40px;
}

.lm-centered-page {
  min-height: 100vh;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: calc(var(--lm-header-height) + 40px) 24px 40px;
}

/* =========================================================
   SURFACES COMMUNES
   ========================================================= */

.lm-glass {
  background: var(--lm-surface);
  border: 1px solid var(--lm-border);
  border-radius: var(--lm-radius-xl);

  backdrop-filter: var(--lm-blur);
  box-shadow: var(--lm-shadow-main);
}

.lm-glass-soft {
  background: var(--lm-surface-soft);
  border: 1px solid var(--lm-border-soft);
  border-radius: var(--lm-radius-lg);
}

.lm-card {
  background: var(--lm-surface-soft);
  border: 1px solid var(--lm-border-soft);
  border-radius: var(--lm-radius-lg);
  box-shadow: var(--lm-shadow-soft);
}

.lm-panel {
  background: var(--lm-surface);
  border: 1px solid var(--lm-border);
  border-radius: var(--lm-radius-xl);

  backdrop-filter: var(--lm-blur);
  box-shadow: var(--lm-shadow-main);
}

/* =========================================================
   ÉTATS VIDES / FEEDBACK
   ========================================================= */

.lm-empty-state {
  padding: 18px;

  color: var(--lm-text-soft);
  line-height: 1.7;

  background: var(--lm-surface-soft);
  border: 1px dashed var(--lm-border-medium);
  border-radius: var(--lm-radius-lg);
}

.lm-feedback {
  min-height: 22px;

  color: var(--lm-accent);
  font-size: 0.92rem;
  line-height: 1.5;
}

.lm-feedback--error {
  color: var(--lm-danger-text);
}

.lm-feedback--success {
  color: var(--lm-success);
}

/* =========================================================
   BADGES / PILLS DE BASE
   ========================================================= */

.lm-pill,
.lm-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: fit-content;

  padding: 6px 10px;

  border-radius: var(--lm-radius-pill);
  border: 1px solid var(--lm-border-soft);

  color: var(--lm-text-muted);
  background: var(--lm-surface-soft);

  font-size: 0.82rem;
  line-height: 1.2;
}

.lm-badge--accent {
  color: var(--lm-accent);
  background: var(--lm-accent-soft);
  border-color: var(--lm-border-gold);
}

.lm-badge--success {
  color: var(--lm-success);
  background: var(--lm-success-soft);
  border-color: var(--lm-success-border);
}

.lm-badge--danger {
  color: var(--lm-danger-text);
  background: var(--lm-danger-soft);
  border-color: var(--lm-danger-border);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 900px) {
  .lm-page,
  .lm-page-wide {
    width: auto;
    padding: calc(var(--lm-header-height) + 18px) 16px 32px;
  }
}

@media (max-width: 560px) {
  body {
    background-attachment: scroll;
  }

  .lm-centered-page {
    padding-left: 14px;
    padding-right: 14px;
  }
}