/***** 
 * LaKYOBOX® - Base Styles & Reset
 * Fondations CSS du site
 *****/

/* ========== RESET ========== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  font-weight: var(--font-weight-regular);
  font-size: var(--font-size-base);
  line-height: var(--line-height-normal);
  color: var(--text-primary);
  background-color: var(--bg-primary);
  transition: background-color var(--transition-base), color var(--transition-base);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

ul, ol {
  list-style: none;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* ========== TYPOGRAPHY ========== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  color: var(--text-primary);
}

h1 { font-size: clamp(2rem, 5vw, var(--font-size-xxl)); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, var(--font-size-xl)); }
h4 { font-size: var(--font-size-lg); }

p {
  line-height: var(--line-height-relaxed);
  color: var(--text-secondary);
}

/* ========== LAYOUT UTILITIES ========== */
.container {
  width: 100%;
  /* max-width: var(--max-width); */
  margin: auto;
  padding: 40px;
}

.container--narrow {
  max-width: var(--max-width-narrow);
}

.section--alt {
  background-color: var(--bg-secondary);
}

/* ========== SCROLL ANIMATIONS ========== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ========== SELECTION ========== */
::selection {
  background-color: var(--color-green-kyolis);
  color: var(--color-white);
}

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--color-green-kyolis);
  border-radius: var(--border-radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-green-600);
}

/* ========== ACCESSIBILITY ========== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Focus visible for keyboard nav */
:focus-visible {
  outline: 2px solid var(--color-green-kyolis);
  outline-offset: 2px;
}

/* ========== MOBILE RESPONSIVE ========== */
@media (max-width: 640px) {
  .container {
    padding: 0 var(--space-md);
  }

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

/* ========== NOSCRIPT OVERLAY (JavaScript Required) ========== */
.noscript-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-xl);
}

.noscript-content {
  max-width: 500px;
  text-align: center;
  background: white;
  padding: var(--space-3xl);
  border-radius: var(--border-radius-lg);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  border: 2px solid var(--color-green-kyolis);
}

.noscript-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--space-xl);
  background: linear-gradient(135deg, var(--color-green-kyolis), var(--color-green-600));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2.5rem;
}

.noscript-title {
  font-family: var(--font-title);
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-primary);
  margin-bottom: var(--space-md);
}

.noscript-text {
  font-size: var(--font-size-base);
  line-height: var(--line-height-relaxed);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-lg);
}

.noscript-link {
  display: inline-block;
  color: var(--color-green-kyolis);
  text-decoration: underline;
  font-weight: var(--font-weight-semibold);
  transition: color var(--transition-fast);
}

.noscript-link:hover {
  color: var(--color-green-600);
}
