/*
 * LAME — Layout
 * Structure de page, grilles, conteneurs
 */

/* ══════════════════════════════════════════
   CONTENEUR PRINCIPAL (page d'accueil)
══════════════════════════════════════════ */
.wrapper {
  position: relative;
  z-index: 1;
  padding: 0 20px 60px;
  max-width: 540px;
  margin: 0 auto;
}

/* ══════════════════════════════════════════
   PAGES (modules multi-vues)
══════════════════════════════════════════ */
.page {
  display: none;
  flex-direction: column;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}
.page.active { display: flex; }

/* Vue simple (dashboard, stats) */
.view        { display: none; }
.view.active { display: block; }

/* ══════════════════════════════════════════
   PADDING CORPS
══════════════════════════════════════════ */
.body-pad { padding: 18px; flex: 1; }

/* ══════════════════════════════════════════
   FLOUS AMBIANTS (orbes de lumière)
══════════════════════════════════════════ */
.ambient {
  position: fixed;
  pointer-events: none;
  z-index: 0;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .16;
}
.ambient-1 { width: 500px; height: 500px; background: var(--gold);  top: -120px; left: -100px; }
.ambient-2 { width: 400px; height: 400px; background: var(--blue);  bottom: -80px; right: -80px; }
.ambient-3 { width: 280px; height: 280px; background: var(--red);   top: 50%; right: 30%; transform: translateY(-50%); opacity: .05; }

/* ══════════════════════════════════════════
   EN-TÊTE (page d'accueil)
══════════════════════════════════════════ */
header {
  padding: 56px 0 38px;
  text-align: center;
  position: relative;
}

.brand-epee {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 18px;
}

.blade {
  width: 52px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold));
  position: relative;
}
.blade.right { transform: scaleX(-1); }
.blade::after {
  content: '';
  position: absolute;
  right: -1px; top: -4px;
  width: 0; height: 0;
  border-left: 10px solid var(--gold);
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
}

.brand-icon {
  width: 42px; height: 42px;
  border: 1px solid var(--border-gold);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--gold-pale);
}

.main-title {
  font-family: var(--font-display);
  font-size: clamp(48px, 14vw, 78px);
  letter-spacing: 0.06em;
  line-height: 0.92;
  color: var(--text);
}
.main-title em {
  font-style: normal;
  background: linear-gradient(135deg, #d4a94e, #f0d080, #b8923a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.main-sub {
  margin-top: 10px;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  font-weight: 300;
}

.acronym-expanded {
  margin-top: 6px;
  font-size: 9px;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: rgba(232, 237, 242, 0.15);
  font-weight: 300;
}

.header-line {
  width: 1px;
  height: 28px;
  background: linear-gradient(180deg, transparent, var(--border-gold), transparent);
  margin: 22px auto 0;
}

/* ══════════════════════════════════════════
   PIED DE PAGE
══════════════════════════════════════════ */
footer {
  text-align: center;
  padding: 28px 0 0;
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-faint);
  border-top: 1px solid var(--border);
}

.footer-blades {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 10px;
}
.fb {
  width: 24px; height: 1px;
  background: var(--border-gold);
  opacity: .6;
}
.fb.right { transform: scaleX(-1); }

/* ══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */
@media (max-width: 480px) {
  .wrapper { padding: 0 14px 48px; }
  header { padding: 48px 0 28px; }

  .grid-2 { grid-template-columns: 1fr; }
}

@media (min-width: 768px) {
  .wrapper { max-width: 700px; }
}

@media (min-width: 1280px) {
  .wrapper { max-width: 900px; }
}
