:root {
  /* Fonts */
  --font-main: "Brockmann", sans-serif;
  /* Colors */
  --color-white: #ffffff;
  --color-black: #1a1a1a;
  --color-yellow: #ffc121;
  --color-text-primary: #ffffff;
  --color-text-dark: #1a1a1a;
  --color-text-muted: rgba(255, 255, 255, 0.7);
  /* Surfaces */
  --color-bg-light: #ffffff;
  --color-bg-dark: #1a1a1a;
  /* Radius */
  --radius-default: 6px;
  --radius-large: 16px;
  /* Spacing */
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 48px;
  --space-xl: 112px;
  --space-section-top: 150px;
  /* Layout */
  --container-max: 1200px;
  /* Motion */
  --transition-link: 180ms ease;
  --transition-ui: 240ms ease;
}
* {
  box-sizing: border-box;
}
html {
  font-family: var(--font-main);
  background: var(--color-bg-dark);
  color: var(--color-text-primary);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body {
  margin: 0;
  font-family: var(--font-main);
  background: var(--color-bg-dark);
  color: var(--color-text-primary);
  font-size: 16px;
  line-height: 1.4;
}
img,
video,
svg,
canvas {
  display: block;
  max-width: 100%;
}
button,
input,
textarea,
select {
  font: inherit;
}
::selection {
  background: var(--color-yellow);
  color: var(--color-black);
}
/* Layout global */
.section {
  width: 100%;
  padding-top: var(--space-section-top);
  padding-bottom: var(--space-section-top);
}
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
}
.stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}
.stack-large {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}
.row {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}
/* Typography */
.heading-1 {
  margin: 0;
  font-family: var(--font-main);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.04em;
  font-size: 40px;
}
.heading-2 {
  margin: 0;
  font-family: var(--font-main);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.035em;
  font-size: 22px;
}
.body {
  margin: 0;
  font-family: var(--font-main);
  font-weight: 400;
  line-height: 1.4;
}
.text-muted {
  color: var(--color-text-muted);
}
/* Links */
a {
  color: inherit;
  text-decoration: none;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
  transition:
    color var(--transition-link),
    text-decoration-color var(--transition-link);
}
a:hover {
  text-decoration: underline;
}
.link-yellow {
  color: var(--color-yellow);
}
.link-yellow:hover {
  text-decoration: underline;
}
/* Surfaces */
.surface-dark {
  background: var(--color-bg-dark);
  color: var(--color-text-primary);
}
.surface-light {
  background: var(--color-bg-light);
  color: var(--color-text-dark);
}
.card,
.media,
.image-wrapper {
  border-radius: var(--radius-default);
  overflow: hidden;
}
.card {
  background: transparent;
}
.card-highlight {
  background: var(--color-yellow);
  color: var(--color-black);
  border-radius: var(--radius-default);
}
/* Responsive (base) */
@media (max-width: 991px) {
  :root {
    --space-section-top: 96px;
    --space-xl: 72px;
  }
  .container {
    padding-left: 24px;
    padding-right: 24px;
  }
  .row {
    flex-direction: column;
    align-items: flex-start;
  }
}
@media (max-width: 767px) {
  :root {
    --space-section-top: 72px;
    --space-xl: 48px;
  }
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }
  .heading-1 {
    letter-spacing: -0.035em;
  }
  .heading-2 {
    letter-spacing: -0.03em;
  }
}

/* ==========================================================================
   Lucas Studio Dashboard — additions spécifiques à l'application
   Direction : sobre, éditorial, liens soulignés plutôt que boutons,
   jaune en accent ponctuel uniquement, radius 6px, pas de grosses ombres.
   ========================================================================== */

.lsd-body {
  min-height: 100vh;
}

.lsd-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: var(--space-md) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: var(--space-lg);
}

.lsd-header .heading-2 {
  font-size: 18px;
}

.lsd-nav-actions {
  display: flex;
  gap: var(--space-md);
  font-size: 14px;
}

.lsd-page {
  padding-top: var(--space-lg);
  padding-bottom: var(--space-xl);
}

/* Cartes : bordure fine plutôt que fond plein, pas d'ombre */
.lsd-card {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-default);
  padding: var(--space-md);
}

.lsd-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-md);
}

.lsd-site-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.lsd-site-card .site-name {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0;
}

.lsd-site-card .site-url {
  font-size: 12px;
  color: var(--color-text-muted);
}

.lsd-stat-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.lsd-stat-value {
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
}

.lsd-stat-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
}

.lsd-evolution {
  font-size: 13px;
  font-weight: 500;
  text-align: right;
}

.lsd-evolution.is-up {
  color: var(--color-yellow);
}

.lsd-evolution.is-down {
  color: var(--color-text-muted);
}

.lsd-sparkline,
.lsd-year-chart {
  width: 100%;
  height: auto;
}

.lsd-bar {
  fill: var(--color-yellow);
  opacity: 0.9;
}

.lsd-bar-label {
  fill: var(--color-text-muted);
  font-size: 10px;
  text-anchor: middle;
  font-family: var(--font-main);
}

.lsd-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

.lsd-badge {
  font-size: 11px;
  padding: 3px 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-default);
  color: var(--color-text-muted);
  white-space: nowrap;
}

.lsd-badge.is-warning {
  border-color: var(--color-yellow);
  color: var(--color-yellow);
}

.lsd-last-seen {
  font-size: 11px;
  color: var(--color-text-muted);
  margin: 0;
}

.lsd-card-actions {
  display: flex;
  gap: var(--space-md);
  font-size: 13px;
  padding-top: var(--space-xs);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: auto;
}

.lsd-card-actions a {
  text-decoration: underline;
  text-decoration-color: transparent;
}

.lsd-card-actions a:hover {
  text-decoration-color: currentColor;
}

/* Bouton natif qui doit rester une vraie soumission POST (sécurité),
   mais visuellement identique à un lien texte souligné au survol. */
.lsd-linklike {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  color: inherit;
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: transparent;
  transition: text-decoration-color var(--transition-link);
}

.lsd-linklike:hover {
  text-decoration-color: currentColor;
}

/* Formulaires */
.lsd-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: var(--space-sm);
}

.lsd-field label {
  font-size: 13px;
  color: var(--color-text-muted);
}

.lsd-field input[type="text"],
.lsd-field input[type="url"],
.lsd-field input[type="password"],
.lsd-field input[type="file"] {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-default);
  padding: 10px 12px;
  color: var(--color-text-primary);
}

.lsd-field input:focus {
  outline: none;
  border-color: var(--color-yellow);
}

.lsd-submit {
  display: inline-block;
  background: var(--color-yellow);
  color: var(--color-black);
  border: none;
  border-radius: var(--radius-default);
  padding: 10px 20px;
  font-weight: 500;
  cursor: pointer;
  transition: opacity var(--transition-ui);
}

.lsd-submit:hover {
  opacity: 0.85;
  text-decoration: none;
}

.lsd-form-narrow {
  max-width: 420px;
}

.lsd-key-reveal code {
  display: block;
  font-size: 12px;
  background: rgba(255, 255, 255, 0.06);
  padding: 8px 10px;
  border-radius: var(--radius-default);
  word-break: break-all;
  margin-top: 4px;
  cursor: pointer;
}

.lsd-details summary {
  cursor: pointer;
  font-size: 13px;
  color: var(--color-yellow);
}

.lsd-details ul {
  margin: 8px 0 0 18px;
  padding: 0;
  font-size: 13px;
  color: var(--color-text-muted);
}

/* Panneau branding + rendu "branded" par client */
.lsd-branding-panel {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-md);
  margin-top: var(--space-md);
}

.lsd-client-branded {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-large);
  padding: var(--space-lg);
}

.lsd-client-branded .lsd-logo {
  max-height: 64px;
  margin-bottom: var(--space-md);
}

.lsd-year-select {
  display: flex;
  gap: var(--space-sm);
  font-size: 14px;
  margin-bottom: var(--space-sm);
}

.lsd-year-select a.is-active {
  color: var(--color-yellow);
  text-decoration: underline;
}

.lsd-login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lsd-error {
  color: var(--color-yellow);
  font-size: 14px;
}

.lsd-empty {
  color: var(--color-text-muted);
  font-style: italic;
}
