/* ============================================
   Davos Après-Ski - Alpine Modern Theme
   ============================================ */

:root {
  --bg-dark: #0a0e1a;
  --bg-secondary: #1a2635;
  --bg-tertiary: #2a3a50;
  --text-primary: #f5f7fa;
  --text-secondary: #b8c5d6;
  --accent: #d94141;
  --accent-light: #e65c5c;
  --accent-dark: #b82a2a;
  --gold: #d4af37;
  --ice-blue: #4a9fd8;
  --border: #3a4a60;
  --success: #2ecc71;
  
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  
  --shadow-sm: 0 2px 8px rgba(217, 65, 65, 0.1);
  --shadow-md: 0 8px 16px rgba(217, 65, 65, 0.15);
  --shadow-lg: 0 16px 32px rgba(217, 65, 65, 0.2);
}

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

html, body {
  height: 100%;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin: var(--space-xl) 0 var(--space-md) 0;
  color: var(--text-primary);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p {
  margin: var(--space-md) 0;
  color: var(--text-secondary);
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

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

/* Header */
header {
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
  border-bottom: 2px solid var(--accent);
  padding: var(--space-lg) 0;
  margin-bottom: var(--space-2xl);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-md);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 2px;
}

nav ul {
  display: flex;
  list-style: none;
  gap: var(--space-xl);
}

nav a {
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

nav a:hover {
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 2px;
}

/* Hero */
.hero {
  margin-bottom: var(--space-2xl);
  text-align: center;
  background: linear-gradient(135deg, rgba(217, 65, 65, 0.1), rgba(74, 159, 216, 0.1));
  padding: var(--space-2xl);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: var(--space-lg);
  background: linear-gradient(135deg, var(--accent), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto var(--space-xl);
}

/* Cards Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-xl);
  margin-bottom: var(--space-2xl);
}

.card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: var(--shadow-sm);
}

.card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-lg);
  transform: translateY(-8px);
}

.card-image {
  width: 100%;
  height: 250px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--bg-tertiary), var(--ice-blue));
  position: relative;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.card:hover .card-image img {
  transform: scale(1.05);
}

.card-body {
  padding: var(--space-lg);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-title {
  font-size: 1.3rem;
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
}

.card-meta {
  font-size: 0.9rem;
  color: var(--accent);
  margin-bottom: var(--space-md);
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.card-description {
  flex: 1;
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
  line-height: 1.7;
}

.card-footer {
  padding-top: var(--space-md);
  border-top: 1px solid var(--border);
}

.cta {
  color: var(--accent);
  font-weight: 600;
  transition: color 0.2s ease;
}

.cta:hover {
  color: var(--accent-light);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: var(--space-sm) var(--space-lg);
  background-color: var(--accent);
  color: white;
  border-radius: var(--radius-md);
  font-weight: 600;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
}

.btn:hover {
  background-color: var(--accent-light);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: var(--bg-tertiary);
  color: var(--text-primary);
  border: 2px solid var(--accent);
}

.btn-secondary:hover {
  background-color: var(--accent);
  color: white;
}

/* Detail Page */
.detail-hero {
  position: relative;
  width: 100%;
  height: 500px;
  margin-bottom: var(--space-2xl);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.detail-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-header {
  margin-bottom: var(--space-2xl);
  background: linear-gradient(135deg, rgba(217, 65, 65, 0.05), rgba(74, 159, 216, 0.05));
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.detail-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-xl);
  margin: var(--space-lg) 0;
  font-size: 0.95rem;
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.meta-label {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.meta-value {
  color: var(--text-primary);
  font-weight: 500;
}

/* Footer */
footer {
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
  border-top: 2px solid var(--accent);
  padding: var(--space-2xl) 0;
  margin-top: var(--space-2xl);
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
  box-shadow: var(--shadow-md);
}

/* Responsive */
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  
  .hero h1 { font-size: 2rem; }
  
  .grid {
    grid-template-columns: 1fr;
  }
  
  .detail-hero {
    height: 300px;
  }
  
  .detail-meta {
    grid-template-columns: 1fr;
  }
  
  nav ul {
    gap: var(--space-lg);
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-md);
  }
  
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.25rem; }
  
  .hero h1 { font-size: 1.75rem; }
  
  .logo { font-size: 1.2rem; }
}
