/* ========== BODY ========== */

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text-body);
  background-color: var(--color-bg);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-sm);
}

/* ========== SKIP LINK ========== */

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-sm);
  padding: var(--space-xs) var(--space-sm);
  background: var(--color-coral);
  color: var(--color-white);
  border-radius: var(--radius-sm);
  z-index: 1000;
  font-size: var(--text-sm);
}

.skip-link:focus {
  top: var(--space-xs);
}

/* ========== HEADER ========== */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--color-bg);
  padding: var(--space-sm);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0);
  transition: box-shadow 0.25s ease;
}

.header--scrolled {
  box-shadow: var(--shadow-card);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.header__logo-img {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  object-fit: cover;
}

.header__logo-text {
  display: flex;
  flex-direction: column;
}

.header__brand {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-text-dark);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.header__tagline {
  font-size: var(--text-xs);
  color: var(--color-coral);
  font-weight: 600;
}

.header__right {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.header__theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: var(--radius-full);
  background: var(--color-cream-dark);
  color: var(--color-text-dark);
  position: relative;
  z-index: 101;
  transition: background-color 0.2s, transform 0.2s;
}

.header__theme-toggle:hover {
  transform: scale(1.05);
}

.header__theme-toggle:focus-visible {
  outline: 2px solid var(--color-coral);
  outline-offset: 2px;
}

.header__theme-toggle-icon {
  width: 20px;
  height: 20px;
}

.header__theme-toggle-icon--moon {
  display: none;
}

[data-theme="nuit"] .header__theme-toggle-icon--sun {
  display: none;
}

[data-theme="nuit"] .header__theme-toggle-icon--moon {
  display: block;
}

.header__hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-xs);
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--color-cream-dark);
  position: relative;
  z-index: 101;
}

.header__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--color-text-dark);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.header__hamburger--open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.header__hamburger--open span:nth-child(2) {
  opacity: 0;
}

.header__hamburger--open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav overlay */
.header__nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: var(--color-bg);
  z-index: 99;
  padding-top: 80px;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
}

.header__nav--open {
  display: flex;
}

.header__nav-link {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  color: var(--color-text-dark);
  font-weight: 600;
  transition: color 0.2s;
}

.header__nav-link:hover,
.header__nav-link--active {
  color: var(--color-coral);
}

/* ========== FOOTER ========== */

.footer {
  padding: var(--space-lg) var(--space-sm) var(--space-sm);
  background-color: var(--color-bg);
}

.footer__nav {
  display: flex;
  justify-content: space-around;
  max-width: 500px;
  margin: 0 auto var(--space-lg);
}

.footer__nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--text-xs);
  color: var(--color-text-body);
  transition: color 0.2s;
}

.footer__nav-item:hover {
  color: var(--color-coral);
}

.footer__nav-icon {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.footer__social {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  padding-top: var(--space-sm);
  border-top: 1px solid var(--color-border);
}

.footer__social-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  color: var(--color-text-body);
  transition: color 0.2s, border-color 0.2s;
}

.footer__social-link:hover {
  color: var(--color-coral);
  border-color: var(--color-coral);
}

.footer__social-link svg {
  width: 20px;
  height: 20px;
}

.footer__legal {
  text-align: center;
  margin-top: var(--space-sm);
  font-size: var(--text-xs);
  color: var(--color-text-light);
}

.footer__legal a:hover {
  color: var(--color-coral);
}

/* ========== SECTIONS ========== */

.section {
  padding: var(--space-xl) var(--space-sm);
}

.section__label {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-text-coral);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-xs);
}

.section__title {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--color-text-dark);
  line-height: 1.2;
  margin-bottom: var(--space-sm);
}

.section__header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: var(--space-xs);
}

.section__link {
  font-size: var(--text-sm);
  color: var(--color-coral);
  font-weight: 600;
  white-space: nowrap;
}

/* ========== DESKTOP ========== */

@media (min-width: 768px) {
  .container {
    padding: 0 var(--space-lg);
  }

  .section {
    padding: var(--space-2xl) var(--space-lg);
  }

  .footer__nav-icon {
    width: 56px;
    height: 56px;
  }

  .header__hamburger {
    display: none;
  }

  .header__nav {
    display: flex;
    position: static;
    width: auto;
    height: auto;
    background: none;
    padding-top: 0;
    flex-direction: row;
    gap: var(--space-lg);
  }

  .header__nav-link {
    font-size: var(--text-base);
  }
}

@media (min-width: 1024px) {
  .footer__nav {
    max-width: 700px;
  }
}
