/* ============================================
   HAPPYMONSTR — Main stylesheet
   Imports must come first per CSS spec.
   ============================================ */

@import "sections/hero.css";
@import "sections/about.css";
@import "sections/projects.css";
@import "sections/contact.css";
@import "sections/footer.css";

/* ============================================
   HAPPYMONSTR — Design System
   ============================================ */

:root {
  /* ─────────────── COLORS ─────────────── */

  /* Evergreen — verts profonds */
  --color-evergreen-dark: #000d05; /* Plus sombre que le base — utilisé pour les sapins */
  --color-evergreen-base: #001a0a; /* Background principal du site */
  --color-evergreen-mid: #072810; /* Hover / depth */
  --color-evergreen-light: #0d3518; /* Surface — cartes, blocs élevés */

  /* Gold — accents dorés */
  --color-gold-base: #ffdf6b;
  --color-gold-base-15: rgba(255, 223, 107, 0.15);
  --color-gold-dim: #bfa84f; /* Accent secondaire */

  /* Bone — crèmes et textes clairs */
  --color-bone-base: #e3dac9; /* Body text par défaut sur fond sombre */
  --color-bone-dim: #b8b0a1; /* Texte muted */
  --color-bone-light: #f0ebe1; /* Bg section "À propos" */

  /* Semantic — alias par usage (à utiliser dans les composants) */
  --color-bg: var(--color-evergreen-base);
  --color-cta: var(--color-gold-base);
  --color-cta-text: var(--color-evergreen-base);

  /* ─────────────── TYPOGRAPHY ─────────────── */
  --font-display: "Pirata One", cursive;
  --font-body: "Alegreya Sans", sans-serif;

  /* ─────────────── SPACING ─────────────── */
  --sp-0: 0px;
  --sp-4: 4px;
  --sp-8: 8px;
  --sp-12: 12px;
  --sp-16: 16px;
  --sp-24: 24px;
  --sp-32: 32px;
  --sp-48: 48px;
  --sp-64: 64px;
  --sp-80: 80px;
  --sp-96: 96px;
  --sp-128: 128px;
  --sp-256: 256px;

  /* ─────────────── BORDER RADIUS ─────────────── */
  --radius-none: 0px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-full: 999px;

  /* ─────────────── LAYOUT ─────────────── */
  --width-desktop: 1440px;
  --width-tablet: 728px;
  --width-phone: 360px;
}

/* ─────────────── classes typographiques ─────────────── */
/* DISPLAY · Pirata One */
.t-display-hero {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(35px, calc(2.5vw + 30px), 72px);
  line-height: clamp(40px, calc(3vw + 33px), 80px);
  letter-spacing: 0.5px;
}

.t-display-section {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 48px;
  line-height: 56px;
  letter-spacing: 0.3px;
}
@media (max-width: 1024px) {
  .t-display-section {
    font-size: 40px;
    line-height: 48px;
  }
}

.t-display-stat {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 32px;
  line-height: 40px;
  letter-spacing: 0.3px;
}

.t-display-card {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 24px;
  line-height: 32px;
  letter-spacing: 0.2px;
}
@media (min-width: 425px) and (max-width: 1024px) {
  .t-display-card {
    font-size: 20px;
    line-height: 24px;
  }
}

.t-display-button {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 18px;
  line-height: 24px;
  letter-spacing: 0.3px;
}

.t-display-nav-logo {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 26px;
  line-height: 32px;
  letter-spacing: 0.3px;
}

/* BODY · Alegreya Sans */
.t-body-large {
  font-family: var(--font-body);
  font-weight: 500; /* Medium */
  font-size: 18px;
  line-height: 24px;
  letter-spacing: 0.1px;
}

.t-body-regular {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 20px;
  letter-spacing: 0;
}

.t-label-uppercase {
  font-family: var(--font-body);
  font-weight: 500; /* Medium */
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 3px;
  text-transform: uppercase;
}
@media (max-width: 1024px) {
  .t-label-uppercase {
    font-size: 10px;
    line-height: 12px;
  }
}

.t-color-gold {
  color: var(--color-gold-base);
}

.t-color-evergreen {
  color: var(--color-evergreen-base);
}

.t-color-bone {
  color: var(--color-bone-base);
}

/* --- Reset --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-evergreen-base);
  color: var(--color-bone-base);
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: var(--sp-64) var(--sp-96);
  max-width: var(--width-desktop);
  margin: auto;
}

@media (max-width: 1440px) {
  .section {
    padding: var(--sp-64) var(--sp-96);
  }
}
@media (max-width: 1024px) {
  .section {
    padding: var(--sp-48) var(--sp-64);
  }
}
@media (max-width: 425px) {
  .section {
    padding: var(--sp-64) var(--sp-32);
  }
}

.section-full-width {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: 0;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
  white-space: nowrap;
  border-radius: var(--radius-sm);
}

.btn:hover {
  transform: translateY(-3px);
}

.btn--primary {
  background-color: var(--color-gold-base);
  color: var(--color-evergreen-base);
  padding: var(--sp-16) var(--sp-32);
}
@media (max-width: 480px) {
  .btn--primary {
    min-width: unset;
    width: 100%;
  }
}

.btn--primary:hover {
  background-color: var(--color-bone-base);
}

.btn--outline {
  background: transparent;
  color: var(--color-gold-base);
  padding: var(--sp-16) var(--sp-32);
  border: 1px solid var(--color-gold-base);
}

.btn--outline:hover {
  border: 1px solid var(--color-bone-light);
  color: var(--color-bone-light);
}

.btn--ghost {
  background: transparent;
  color: var(--color-bone-base);
  padding: var(--sp-16) 0;
  border: none;
}

.btn--ghost:hover {
  color: var(--color-gold-base);
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-24) var(--sp-96) var(--sp-0);
  width: 100%;
  max-width: var(--width-desktop);
  margin: auto;
}

@media (max-width: 1440px) {
  .nav {
    padding: var(--sp-32) var(--sp-96) var(--sp-0);
  }
}
@media (max-width: 1024px) {
  .nav {
    padding: var(--sp-32) var(--sp-64) var(--sp-0);
  }
}
@media (max-width: 425px) {
  .nav {
    padding: var(--sp-24) var(--sp-32);
  }
}

.nav__logo {
  font-family: var(--font-display);
  font-size: 32px;
  color: var(--color-gold-base);
  white-space: nowrap;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--sp-64);
}
@media (max-width: 1024px) {
  .nav__links {
    gap: var(--sp-24);
  }
}
.nav__link {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  color: var(--color-bone-base-dim);
  white-space: nowrap;
  transition: color 0.25s ease;
}

.nav__link:hover {
  color: var(--color-gold-base);
}

/* Burger (mobile) */
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav__burger span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-gold-base);
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}

/* ─── Nav Responsive ─── */

@media (max-width: 768px) {
  .nav__links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: var(--sp-24);
    background-color: var(--color-evergreen-base);
    padding: var(--sp-32) var(--sp-24);
    border-bottom: 1px solid var(--color-gold-base-15);
  }

  .nav__links.is-open {
    display: flex;
  }

  .nav__burger {
    display: flex;
  }
}
