/* ============================================
   MAIN.CSS — Design System Portfolio TB1
   Variables, Reset, Typographie, Utilitaires
   ============================================ */

/* --- Google Font Import --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* --- CSS Custom Properties (Design Tokens) --- */
:root {
  /* Couleurs principales (thème clair) */
  --color-bg: #FFFFFF;
  --color-bg-alt: #F5F5F5;
  --color-bg-card: #FFFFFF;
  --color-bg-hover: #F0F0F0;
  --color-surface: #F5F5F5;
  --color-text: #111111;
  --color-text-muted: #666666;
  --color-text-inv: #EAEAEA;
  --color-border: #E0E0E0;
  --color-border-light: #D0D0D0;

  /* Accents */
  --color-accent: #CC0000;
  /* Rouge — Notes TB, accents  */
  --color-accent-soft: #FF3333;
  /* Rouge plus vif pour hover  */
  --color-star: #F5C518;
  /* Jaune — Étoiles RPG        */
  --color-gain: #22AA44;
  /* Vert  — +1 compétences     */
  --color-loss: #CC0000;
  /* Rouge — -1 compétences     */
  --color-blue: #0055A4;
  /* Bleu — Pack     */


  /* Nouvelles couleurs pour TB1, Notes et CTAs */
  --color-gold: #F5C518;
  --color-gold-hover: #E5B300;
  --color-silver: #C0C0C0;
  --color-bronze: #CD7F32;
  --color-gold-soft: #f5c51821;
  --color-silver-soft: #c0c0c01c;
  --color-bronze-soft: #cd7f3230;
  --color-gold-hard: #e3b510;
  --color-silver-hard: #7b7b7b;
  --color-bronze-hard: #cd7f32;


  /* Typographie */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-size-xs: 0.75rem;
  /* 12px */
  --font-size-sm: 0.875rem;
  /* 14px */
  --font-size-base: 1rem;
  /* 16px */
  --font-size-md: 1.125rem;
  /* 18px */
  --font-size-lg: 1.25rem;
  /* 20px */
  --font-size-xl: 1.5rem;
  /* 24px */
  --font-size-2xl: 2rem;
  /* 32px */
  --font-size-3xl: 2.5rem;
  /* 40px */
  --font-size-4xl: 3rem;
  /* 48px */

  /* Espacement */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* Layout */
  --max-width: 1100px;
  --nav-height: 64px;
  --border-radius: 8px;
  --border-radius-lg: 12px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;
}

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

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

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

a:hover {
  color: var(--color-accent-soft);
}

ul,
ol {
  list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1 {
  font-size: var(--font-size-3xl);
}

h2 {
  font-size: var(--font-size-2xl);
}

h3 {
  font-size: var(--font-size-xl);
}

h4 {
  font-size: var(--font-size-lg);
}

@media (min-width: 768px) {
  h1 {
    font-size: var(--font-size-4xl);
  }

  h2 {
    font-size: var(--font-size-3xl);
  }

  h3 {
    font-size: var(--font-size-2xl);
  }
}

p {
  margin-bottom: var(--space-md);
}

blockquote {
  border-left: 3px solid var(--color-accent);
  padding-left: var(--space-lg);
  margin: var(--space-xl) 0;
  font-style: italic;
  color: var(--color-text-muted);
  font-size: var(--font-size-md);
}

hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: var(--space-2xl) 0;
}

strong {
  color: var(--color-text);
}

/* --- Utilitaires --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-sm);
  }
}

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

.section--promo {
  background-color: #9b0c0cd8;
  color: #fff;
}

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

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

.text-muted {
  color: var(--color-text-muted);
}

.text-accent {
  color: var(--color-accent);
}

.text-gold {
  color: var(--color-gold);
}

.text-silver {
  color: var(--color-silver);
}

.text-bronze {
  color: var(--color-bronze);
}

.text-star {
  color: var(--color-star);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --- Animations --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp var(--transition-slow) ease both;
}

/* --- Margins --- */
.mt-0 {
  margin-top: 0 !important;
}

.mt-xs {
  margin-top: var(--space-xs);
}

.mt-sm {
  margin-top: var(--space-sm);
}

.mt-md {
  margin-top: var(--space-md);
}

.mt-lg {
  margin-top: var(--space-lg);
}

.mt-xl {
  margin-top: var(--space-xl);
}

.mb-0 {
  margin-bottom: 0 !important;
}

.mb-xs {
  margin-bottom: var(--space-xs);
}

.mb-sm {
  margin-bottom: var(--space-sm);
}

.mb-md {
  margin-bottom: var(--space-md);
}

.mb-lg {
  margin-bottom: var(--space-lg);
}

.mb-xl {
  margin-bottom: var(--space-xl);
}

/* --- Text / Interaction --- */
.no-underline {
  text-decoration: none !important;
}

.color-inherit {
  color: inherit !important;
}

/* --- Layout --- */
.mx-auto {
  margin-left: auto !important;
  margin-right: auto !important;
}

.max-w-md {
  max-width: 600px;
}

.max-w-lg {
  max-width: 700px;
}

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