/* ============================================
   PREMIUM BUSINESS MAGAZINE
   Design éditorial haut de gamme
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --font-display: 'Plus Jakarta Sans', -apple-system, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, sans-serif;
  
  --black: #0A0A0A;
  --white: #FFFFFF;
  --gray-50: #FAFAFA;
  --gray-100: #F5F5F5;
  --gray-200: #E5E5E5;
  --gray-300: #D4D4D4;
  --gray-400: #A3A3A3;
  --gray-500: #737373;
  --gray-600: #525252;
  --gray-700: #404040;
  --gray-800: #262626;
  --gray-900: #171717;
  
  --accent: #C9A227;
  --accent-dark: #A68520;
  
  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
  --shadow-xl: 0 24px 60px rgba(0,0,0,0.16);
  
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { 
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  color: var(--black);
}

h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); letter-spacing: -0.03em; font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); letter-spacing: -0.02em; }
h3 { font-size: clamp(1.125rem, 2.5vw, 1.375rem); letter-spacing: -0.01em; }

p { margin-bottom: 1.5rem; }

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

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

@media (max-width: 768px) {
  .container { padding: 0 1.25rem; }
}

/* ============================================
   HEADER
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--gray-100);
  transition: var(--transition);
}

.header.scrolled {
  box-shadow: var(--shadow);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--black);
  letter-spacing: -0.02em;
}

.logo span {
  color: var(--accent);
}

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

.nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-600);
  position: relative;
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: var(--transition);
}

.nav a:hover {
  color: var(--black);
}

.nav a:hover::after {
  width: 100%;
}

.nav-subscribe {
  background: var(--black);
  color: var(--white) !important;
  padding: 0.75rem 1.5rem;
  border-radius: 100px;
  font-weight: 600;
}

.nav-subscribe:hover {
  background: var(--gray-800);
}

.nav-subscribe::after { display: none; }

/* Mobile Menu */
.menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 32px;
  height: 24px;
  position: relative;
}

.menu-btn span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--black);
  transition: var(--transition);
}

.menu-btn span:nth-child(1) { top: 0; }
.menu-btn span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.menu-btn span:nth-child(3) { bottom: 0; }

@media (max-width: 968px) {
  .nav { display: none; }
  .menu-btn { display: block; }
}

/* ============================================
   HERO
   ============================================ */
.hero {
  padding: 140px 0 80px;
  background: linear-gradient(180deg, var(--gray-50) 0%, var(--white) 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 3rem;
}

.hero-main {
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
}

.hero-title {
  margin-bottom: 1.5rem;
}

.hero-excerpt {
  font-size: 1.25rem;
  color: var(--gray-600);
  line-height: 1.8;
  margin-bottom: 2rem;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  color: var(--gray-500);
  font-size: 0.9rem;
}

.hero-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hero-author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 600;
}

.hero-author-name {
  font-weight: 600;
  color: var(--black);
}

.hero-image {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 4/5;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.hero-image:hover img {
  transform: scale(1.02);
}

.hero-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.4) 100%);
}

@media (max-width: 968px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-image {
    aspect-ratio: 16/9;
  }
}

/* ============================================
   SECTIONS
   ============================================ */
section {
  padding: 5rem 0;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 3rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--gray-200);
}

.section-title {
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.section-title::before {
  content: '';
  width: 4px;
  height: 1.5rem;
  background: var(--accent);
  border-radius: 2px;
}

.section-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray-500);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

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

/* ============================================
   ARTICLE CARDS
   ============================================ */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

@media (max-width: 968px) {
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .articles-grid { grid-template-columns: 1fr; }
}

.article-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid var(--gray-100);
}

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

.article-card-image {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
}

.article-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

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

.article-card-category {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--white);
  padding: 0.35rem 0.75rem;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gray-700);
}

.article-card-content {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.article-card-title {
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.article-card-title a:hover {
  color: var(--accent);
}

.article-card-excerpt {
  font-size: 0.9rem;
  color: var(--gray-500);
  line-height: 1.6;
  margin-bottom: 1rem;
  flex: 1;
}

.article-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--gray-400);
}

.article-card-author {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.article-card-author-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gray-200);
}

/* Featured Layout */
.featured-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 2rem;
}

.featured-main .article-card {
  height: 100%;
}

.featured-main .article-card-image {
  aspect-ratio: 16/9;
}

.featured-main .article-card-title {
  font-size: 1.5rem;
}

.featured-side {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.featured-side .article-card {
  flex-direction: row;
}

.featured-side .article-card-image {
  width: 140px;
  flex-shrink: 0;
  aspect-ratio: 1;
}

.featured-side .article-card-content {
  padding: 1rem 1.25rem;
}

.featured-side .article-card-title {
  font-size: 1rem;
}

.featured-side .article-card-excerpt {
  display: none;
}

@media (max-width: 968px) {
  .featured-grid {
    grid-template-columns: 1fr;
  }
  .featured-side {
    flex-direction: row;
    overflow-x: auto;
    gap: 1rem;
    padding-bottom: 1rem;
  }
  .featured-side .article-card {
    flex-direction: column;
    min-width: 280px;
  }
  .featured-side .article-card-image {
    width: 100%;
    aspect-ratio: 16/10;
  }
}

/* ============================================
   NEWSLETTER
   ============================================ */
.newsletter {
  background: var(--black);
  color: var(--white);
  padding: 5rem 0;
}

.newsletter-inner {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.newsletter h2 {
  color: var(--white);
  margin-bottom: 1rem;
}

.newsletter p {
  color: var(--gray-400);
  font-size: 1.125rem;
  margin-bottom: 2rem;
}

.newsletter-form {
  display: flex;
  gap: 1rem;
  max-width: 500px;
  margin: 0 auto;
}

.newsletter-form input {
  flex: 1;
  padding: 1rem 1.5rem;
  border: 1px solid var(--gray-700);
  border-radius: 100px;
  background: var(--gray-900);
  color: var(--white);
  font-size: 1rem;
}

.newsletter-form input::placeholder {
  color: var(--gray-500);
}

.newsletter-form input:focus {
  outline: none;
  border-color: var(--accent);
}

.newsletter-form button {
  background: var(--accent);
  color: var(--white);
  border: none;
  padding: 1rem 2rem;
  border-radius: 100px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.newsletter-form button:hover {
  background: var(--accent-dark);
}

@media (max-width: 640px) {
  .newsletter-form {
    flex-direction: column;
  }
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--gray-50);
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--gray-200);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  color: var(--gray-500);
  font-size: 0.9rem;
  max-width: 300px;
  margin-top: 1rem;
}

.footer h4 {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gray-400);
  margin-bottom: 1.5rem;
}

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

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--gray-600);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--black);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid var(--gray-200);
  font-size: 0.85rem;
  color: var(--gray-500);
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-600);
}

.footer-social a:hover {
  background: var(--black);
  color: var(--white);
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  .footer-brand {
    grid-column: span 2;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }
}

/* ============================================
   UTILITIES
   ============================================ */
.bg-light { background: var(--gray-50); }
.text-center { text-align: center; }
.mt-2 { margin-top: 1rem; }
.mt-4 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 2rem; }
