/* Ligurie.info - Base Stylesheet */

:root {
  /* Colors */
  --primary: #0066CC;       /* Ocean Ligurien */
  --accent: #FF8844;        /* Coucher soleil */
  --success: #22AA66;       /* Vegetation */
  --dark: #2C3E50;          /* Pierre de Ligurie */
  --light: #F5F1E8;         /* Parchemin */
  --border: #E8E4DC;        /* Gris clair */
  --text: #333;
  --text-light: #666;

  /* Typography */
  --serif: Georgia, 'Times New Roman', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', 'Courier New', monospace;

  /* Spacing */
  --xs: 4px;
  --sm: 8px;
  --md: 16px;
  --lg: 24px;
  --xl: 48px;
  --xxl: 64px;
}

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

/* Body */
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--light);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--serif);
  font-weight: 600;
  margin-bottom: var(--lg);
  color: var(--dark);
}

h1 { font-size: 48px; line-height: 1.2; }
h2 { font-size: 36px; }
h3 { font-size: 28px; }
h4 { font-size: 24px; }
h5 { font-size: 20px; }
h6 { font-size: 16px; }

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

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 200ms ease;
}

a:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--lg);
}

/* Header */
.header {
  background: white;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--lg) 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--md);
  font-size: 20px;
  font-weight: bold;
  color: var(--dark);
}

.logo-emoji {
  font-size: 32px;
}

.logo-text {
  font-family: var(--serif);
  color: var(--primary);
}

/* Navigation */
.nav {
  display: flex;
  gap: var(--xl);
}

.nav-link {
  color: var(--text);
  font-weight: 500;
  transition: color 200ms ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
  text-decoration: underline;
}

/* Language selector */
.lang-selector {
  display: flex;
  gap: var(--md);
  border-left: 1px solid var(--border);
  padding-left: var(--lg);
}

.lang-link {
  color: var(--text-light);
  font-size: 14px;
  transition: color 200ms ease;
}

.lang-link:hover,
.lang-link.active {
  color: var(--primary);
  font-weight: bold;
}

/* Main content */
.main-content {
  min-height: calc(100vh - 200px);
  padding: var(--xxl) 0;
}

/* Footer */
.footer {
  background: var(--dark);
  color: white;
  padding: var(--xxl) 0 var(--xl);
  margin-top: var(--xxl);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--xl);
  margin-bottom: var(--xl);
}

.footer-section h3,
.footer-section h4 {
  color: white;
  margin-bottom: var(--md);
}

.footer-section ul {
  list-style: none;
}

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

.footer-section a {
  color: #ccc;
}

.footer-section a:hover {
  color: var(--accent);
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: var(--lg);
  font-size: 14px;
  color: #999;
}

/* Responsive */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    gap: var(--lg);
  }

  .nav {
    flex-direction: column;
    gap: var(--md);
  }

  .lang-selector {
    border-left: none;
    border-top: 1px solid var(--border);
    padding-left: 0;
    padding-top: var(--lg);
    width: 100%;
  }

  h1 { font-size: 32px; }
  h2 { font-size: 24px; }
  h3 { font-size: 20px; }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  :root {
    --light: #1a1a1a;
    --text: #e8e4dc;
    --text-light: #aaa;
  }

  body {
    background: #0d0d0d;
    color: var(--text);
  }

  .header {
    background: #1a1a1a;
    border-color: #333;
  }
}
