/* SWAN-ID - CSS Global */
/* Système de couleurs par section */

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Couleurs globales */
  --white: #ffffff;
  --black: #0a0a0a;
  --charcoal: #2c2c2c;
  --gray: #666666;
  --light-gray: #f5f5f5;
  
  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;
  --space-4xl: 8rem;
  
  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  
  /* Transitions */
  --transition: all 0.3s ease;
  
  /* Header */
  --header-height: 80px;
}

/* Variables par section */
body.home {
  --section-color: #0a0a0a;
  --section-color-light: #f5f5f5;
  --section-color-accent: #fafafa;
  --section-text: #ffffff;
}

body.outils {
  --section-color: #9b89b3;
  --section-color-light: #c4b5d8;
  --section-color-dark: #7a6a94;
  --section-color-accent: #e8dff5;
  --section-text: #ffffff;
  --section-text-alt: #4a3d5c;
}

body.blog {
  --section-color: #9caf88;
  --section-color-light: #c5d4b5;
  --section-color-dark: #7a8f6e;
  --section-color-accent: #e8f0e0;
  --section-text: #ffffff;
  --section-text-alt: #3d4a35;
}

body.radio {
  --section-color: #c17c74;
  --section-color-light: #dfa89f;
  --section-color-dark: #a05e56;
  --section-color-accent: #f5e6e3;
  --section-text: #ffffff;
  --section-text-alt: #5a2f2a;
}

body.club {
  --section-color: #6b7c93;
  --section-color-light: #9daab8;
  --section-color-dark: #4d5a6d;
  --section-color-accent: #e3e8ed;
  --section-text: #ffffff;
  --section-text-alt: #2a3441;
}

body.services {
  --section-color: #f4ede4;
  --section-color-dark: #d4c7b8;
  --section-color-darker: #b8a896;
  --section-text: #2c2c2c;
}

/* Typography */
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--charcoal);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Headings */
.title-hero {
  font-size: clamp(3rem, 10vw, 11rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-xl);
}

.title-section {
  font-size: clamp(2rem, 5vw, 5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-lg);
}

.title-large {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.title-medium {
  font-size: clamp(1.2rem, 2vw, 1.8rem);
  font-weight: 700;
  line-height: 1.3;
}

/* Text sizes */
.text-large {
  font-size: 1.3rem;
  line-height: 1.6;
}

.text-body {
  font-size: 1.1rem;
  line-height: 1.7;
}

.text-small {
  font-size: 0.9rem;
  line-height: 1.5;
}

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

/* Text outline */
.text-outline {
  color: transparent;
  -webkit-text-stroke: 2px currentColor;
  text-stroke: 2px currentColor;
}

/* Eyebrow */
.eyebrow {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray);
  margin-bottom: var(--space-md);
}

/* Utilities */
.opacity-90 { opacity: 0.9; }
.opacity-80 { opacity: 0.8; }
.opacity-70 { opacity: 0.7; }

.mb-1 { margin-bottom: var(--space-sm); }
.mb-2 { margin-bottom: var(--space-md); }
.mb-3 { margin-bottom: var(--space-lg); }
.mt-2 { margin-top: var(--space-md); }

/* Container */
.container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Section */
.section {
  padding: var(--space-4xl) 0;
}

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

.section-bg-light {
  background: var(--light-gray);
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: var(--white);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  z-index: 1000;
  transition: var(--transition);
}

.header.colored {
  background: var(--section-color);
  color: var(--section-text);
  border-bottom: none;
}

.header-inner {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  text-decoration: none;
  color: inherit;
  letter-spacing: -0.02em;
}

.nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  text-decoration: none;
  color: inherit;
  font-weight: 500;
  position: relative;
  transition: var(--transition);
}

.nav-link:hover {
  opacity: 0.7;
}

/* Hero */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
  padding-bottom: var(--space-4xl);
}

.hero.colored {
  background: var(--section-color);
  color: var(--section-text);
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  border-radius: 30px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  font-size: 1rem;
  font-family: inherit;
}

.btn-primary {
  background: var(--section-color);
  color: var(--section-text);
}

.btn-primary:hover {
  background: var(--section-color-dark);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: var(--section-color);
  border: 2px solid var(--section-color);
}

.btn-secondary:hover {
  background: var(--section-color);
  color: var(--section-text);
}

.btn-ghost {
  background: transparent;
  color: var(--section-color);
}

.btn-ghost:hover {
  opacity: 0.7;
}

.btn-lg {
  padding: 1.2rem 2.5rem;
  font-size: 1.1rem;
}

/* Cards */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-highlight {
  background: var(--section-color-accent);
}

.card-dark {
  background: var(--section-color);
  color: var(--section-text);
}

.card-bordered {
  border: 1px solid var(--section-color);
}

/* Grid */
.grid {
  display: grid;
  gap: var(--space-xl);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.grid-auto {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* Tags */
.tag {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  background: var(--section-color-accent);
  color: var(--section-color-dark);
  border-radius: 15px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* Footer */
.footer {
  background: var(--charcoal);
  color: var(--white);
  padding: var(--space-4xl) 0 var(--space-xl);
}

.footer.colored {
  background: var(--section-color);
  color: var(--section-text);
}

.footer-grid {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-4xl);
  margin-bottom: var(--space-xl);
}

.footer-brand {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: var(--space-md);
  letter-spacing: -0.02em;
}

.footer-tagline {
  opacity: 0.8;
  line-height: 1.7;
}

.footer-section h4 {
  font-weight: 700;
  margin-bottom: var(--space-md);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: var(--space-sm);
}

.footer-links a {
  color: inherit;
  text-decoration: none;
  opacity: 0.8;
  transition: var(--transition);
}

.footer-links a:hover {
  opacity: 1;
}

.footer-bottom {
  max-width: 1600px;
  margin: 0 auto;
  padding: var(--space-xl) 2rem 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  opacity: 0.7;
}

/* Menu burger */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 0.5rem;
}

.burger span {
  width: 25px;
  height: 3px;
  background: currentColor;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.burger.active span:nth-child(1) {
  transform: rotate(45deg) translate(7px, 7px);
}

.burger.active span:nth-child(2) {
  opacity: 0;
}

.burger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Responsive */
@media (max-width: 1024px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
  
  .burger {
    display: flex;
  }
  
  .nav {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--white);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    flex-direction: column;
    gap: 1.5rem;
    z-index: 999;
  }
  
  .header.colored .nav {
    background: var(--section-color);
  }
  
  .nav.active {
    display: flex;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }
}

@media (max-width: 768px) {
  :root {
    --space-4xl: 4rem;
  }
  
  .container {
    padding: 0 1.5rem;
  }
  
  .hero {
    min-height: 70vh;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: var(--space-sm);
    text-align: center;
  }
}
