/* ══════════════════════════════════════════════════════════════
   BASE.CSS — Reset, Typographie, Utilitaires
   Crystal Waters Design System
   ══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@300;400;500;600&family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--body-text);
  background-color: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

a:hover {
  color: var(--pfizer-blue);
}

ul, ol {
  list-style: none;
}

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

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

table {
  border-collapse: collapse;
  width: 100%;
}

/* ═══ TYPOGRAPHIE ═══ */
h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 300;
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--ocean-deep);
  line-height: 1.35;
}

h2 {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  color: var(--dark-text);
}

h3 {
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  color: var(--ocean-deep);
}

h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--dark-text);
}

h5 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--dark-text);
}

h6 {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--medium-gray);
  text-transform: uppercase;
  letter-spacing: 1px;
}

p {
  margin-bottom: 1em;
}

p:last-child {
  margin-bottom: 0;
}

strong {
  font-weight: 600;
  color: var(--dark-text);
}

em {
  font-style: italic;
}

code {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.875em;
  background: var(--pfizer-blue-light);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--pfizer-blue);
}

/* ═══ CLASSES TYPOGRAPHIQUES ═══ */
.text-small {
  font-size: 14px;
}

.text-xs {
  font-size: 12px;
}

.text-label {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--medium-gray);
}

.text-mono {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
}

.text-serif {
  font-family: 'Playfair Display', Georgia, serif;
}

.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-blue {
  color: var(--pfizer-blue);
}

.text-teal {
  color: var(--ocean-teal);
}

.text-deep {
  color: var(--ocean-deep);
}

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

.hidden {
  display: none !important;
}

.visible {
  display: block !important;
}

/* Scroll reveal base state */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.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; }

/* Focus visible */
:focus-visible {
  outline: 2px solid var(--ocean-teal);
  outline-offset: 2px;
}

/* Selection */
::selection {
  background: var(--pfizer-blue-light);
  color: var(--pfizer-blue);
}
