/* =====================================================
   m3mora — Design System & Styles
   Theme: Dark Premium / Glassmorphism
   ===================================================== */

/* ---- CSS Custom Properties ---- */
:root {
  --font-sans: 'Inter', system-ui, sans-serif;
  --font-display: 'Outfit', 'Inter', sans-serif;

  /* Dark theme (default) */
  --bg: #080d14;
  --bg-2: #0d1520;
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-card-hover: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.16);
  --text: #f0f4ff;
  --text-muted: #7c8faa;
  --text-faint: rgba(255, 255, 255, 0.25);

  /* Brand */
  --accent-purple: hsl(262, 83%, 68%);
  --accent-teal: hsl(175, 70%, 52%);
  --accent-amber: hsl(38, 95%, 58%);
  --accent-rose: hsl(340, 82%, 62%);

  /* Univers colors */
  --decodia: hsl(262, 83%, 68%);
  --decodia-glow: hsla(262, 83%, 68%, 0.18);
  --cuisine: hsl(25, 90%, 58%);
  --cuisine-glow: hsla(25, 90%, 58%, 0.18);
  --voyage: hsl(195, 85%, 52%);
  --voyage-glow: hsla(195, 85%, 52%, 0.18);
  --tech: hsl(140, 70%, 48%);
  --tech-glow: hsla(140, 70%, 48%, 0.18);
  --others: hsl(38, 95%, 58%);
  --others-glow: hsla(38, 95%, 58%, 0.18);

  --radius: 1rem;
  --radius-sm: 0.5rem;
  --radius-lg: 1.5rem;
  --shadow-card: 0 4px 32px rgba(0,0,0,0.35);
  --shadow-glow: 0 0 40px rgba(139, 92, 246, 0.18);

  --header-h: 68px;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] {
  --bg: #f6f8fb;
  --bg-2: #edf0f7;
  --bg-card: rgba(255, 255, 255, 0.85);
  --bg-card-hover: rgba(255, 255, 255, 0.98);
  --border: rgba(0, 0, 0, 0.08);
  --border-hover: rgba(0, 0, 0, 0.18);
  --text: #0f1422;
  --text-muted: #5a6478;
  --text-faint: rgba(0, 0, 0, 0.2);
  --decodia-glow: hsla(262, 83%, 68%, 0.1);
  --cuisine-glow: hsla(25, 90%, 58%, 0.1);
  --voyage-glow: hsla(195, 85%, 52%, 0.1);
  --tech-glow: hsla(140, 70%, 48%, 0.1);
  --others-glow: hsla(38, 95%, 58%, 0.1);
}

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

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

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; }

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  color: inherit;
}

input {
  font-family: inherit;
}

/* ---- Utility ---- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent-purple) 0%, var(--accent-teal) 60%, var(--accent-amber) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* =====================================================
   HEADER
   ===================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(8, 13, 20, 0.75);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

[data-theme="light"] .site-header {
  background: rgba(246, 248, 251, 0.8);
}

.site-header.scrolled {
  background: rgba(8, 13, 20, 0.95);
  box-shadow: 0 4px 24px rgba(0,0,0,0.4);
}

[data-theme="light"] .site-header.scrolled {
  background: rgba(246, 248, 251, 0.98);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: var(--header-h);
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -0.03em;
  flex-shrink: 0;
  transition: var(--transition);
}

.logo:hover { opacity: 0.85; }

.logo-mark {
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-teal));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo-3 {
  background: linear-gradient(135deg, var(--accent-teal), var(--accent-amber));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo-text {
  color: var(--text);
  font-weight: 700;
}

/* Main nav */
.main-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex: 1;
}

.nav-link {
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition);
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--text);
  background: var(--bg-card);
}

/* Header actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

.btn-search,
.btn-theme-toggle {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: var(--transition);
}

.btn-search:hover,
.btn-theme-toggle:hover {
  color: var(--text);
  background: var(--bg-card);
}

.btn-theme-toggle .icon-moon { display: none; }
[data-theme="light"] .btn-theme-toggle .icon-sun { display: none; }
[data-theme="light"] .btn-theme-toggle .icon-moon { display: block; }

/* Mobile menu toggle */
.btn-menu {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.btn-menu span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-muted);
  border-radius: 2px;
  transition: var(--transition);
}

.btn-menu:hover span { background: var(--text); }

/* Mobile nav */
.mobile-nav {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 99;
}

.mobile-nav.open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.mobile-nav-link {
  display: block;
  padding: 0.85rem 1.5rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition);
}

.mobile-nav-link:hover {
  color: var(--text);
  background: var(--bg-card);
}

/* Search overlay */
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(8, 13, 20, 0.92);
  backdrop-filter: blur(16px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 20vh;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.search-overlay.open {
  opacity: 1;
  visibility: visible;
}

.search-inner {
  width: 100%;
  max-width: 640px;
  padding: 0 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: center;
}

.search-input {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.5rem;
  font-size: 1.1rem;
  color: var(--text);
  outline: none;
  transition: var(--transition);
}

.search-input:focus {
  border-color: var(--accent-purple);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}

.search-close {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: var(--transition);
  flex-shrink: 0;
}

.search-close:hover { color: var(--text); }

/* =====================================================
   BUTTONS
   ===================================================== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, var(--accent-purple), hsl(220, 80%, 60%));
  color: #fff;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(139, 92, 246, 0.5);
}

.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--bg-card);
  color: var(--text);
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid var(--border);
  transition: var(--transition);
}

.btn-ghost:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-1px);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  background: transparent;
  color: var(--text);
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid var(--border-hover);
  transition: var(--transition);
}

.btn-outline:hover {
  background: var(--bg-card);
  border-color: var(--accent-purple);
  color: var(--accent-purple);
}

/* =====================================================
   HERO
   ===================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: var(--header-h);
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: radial-gradient(ellipse at 60% 20%, hsla(262, 83%, 68%, 0.12) 0%, transparent 60%),
              radial-gradient(ellipse at 20% 70%, hsla(175, 70%, 52%, 0.08) 0%, transparent 55%),
              radial-gradient(ellipse at 80% 80%, hsla(38, 95%, 58%, 0.06) 0%, transparent 50%);
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  animation: orb-float 8s ease-in-out infinite;
}

.hero-orb-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, hsla(262, 83%, 68%, 0.25) 0%, transparent 70%);
  top: -100px;
  right: -100px;
  animation-delay: 0s;
}

.hero-orb-2 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, hsla(175, 70%, 52%, 0.2) 0%, transparent 70%);
  bottom: 100px;
  left: -80px;
  animation-delay: -3s;
}

.hero-orb-3 {
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, hsla(38, 95%, 58%, 0.18) 0%, transparent 70%);
  top: 40%;
  right: 25%;
  animation-delay: -6s;
}

@keyframes orb-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(20px, -30px) scale(1.05); }
  66% { transform: translate(-15px, 20px) scale(0.97); }
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 50px 50px;
  opacity: 0.4;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding-top: 4rem;
  padding-bottom: 6rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: 99px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  animation: fade-up 0.6s ease forwards;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-teal);
  box-shadow: 0 0 8px var(--accent-teal);
  animation: pulse 2s ease infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px var(--accent-teal); }
  50% { opacity: 0.6; box-shadow: 0 0 16px var(--accent-teal); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.04em;
  max-width: 800px;
  animation: fade-up 0.6s ease 0.1s both;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text-muted);
  max-width: 580px;
  line-height: 1.7;
  animation: fade-up 0.6s ease 0.2s both;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  animation: fade-up 0.6s ease 0.3s both;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-top: 1rem;
  animation: fade-up 0.6s ease 0.4s both;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}

.stat-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-teal));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.stat-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.stat-sep {
  width: 1px;
  height: 36px;
  background: var(--border);
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, transparent, var(--accent-purple));
  animation: scroll-line 2s ease infinite;
}

@keyframes scroll-line {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* =====================================================
   SECTION HEADERS
   ===================================================== */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-purple);
  margin-bottom: 0.5rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
}

.section-desc {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.7;
}

/* =====================================================
   UNIVERS SECTION
   ===================================================== */
.univers-section {
  padding: 6rem 0;
  background: var(--bg-2);
  position: relative;
  overflow: hidden;
}

.univers-section::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0; right: 0;
  height: 100px;
  background: linear-gradient(to bottom, var(--bg), transparent);
  pointer-events: none;
}

.univers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

/* Univers Card */
.univers-card {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-card);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
}

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

.card-bg-glow {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 100%;
  opacity: 0;
  transition: var(--transition);
  pointer-events: none;
}

.univers-card--decodia .card-bg-glow {
  background: radial-gradient(ellipse at 50% 0%, var(--decodia-glow) 0%, transparent 70%);
}
.univers-card--cuisine .card-bg-glow {
  background: radial-gradient(ellipse at 50% 0%, var(--cuisine-glow) 0%, transparent 70%);
}
.univers-card--voyage .card-bg-glow {
  background: radial-gradient(ellipse at 50% 0%, var(--voyage-glow) 0%, transparent 70%);
}
.univers-card--tech .card-bg-glow {
  background: radial-gradient(ellipse at 50% 0%, var(--tech-glow) 0%, transparent 70%);
}
.univers-card--others .card-bg-glow {
  background: radial-gradient(ellipse at 50% 0%, var(--others-glow) 0%, transparent 70%);
}

.univers-card:hover .card-bg-glow { opacity: 1; }

.card-inner {
  position: relative;
  z-index: 1;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  height: 100%;
}

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  transition: var(--transition);
}

.univers-card--decodia .card-icon { color: var(--decodia); border-color: var(--decodia-glow); }
.univers-card--cuisine .card-icon { color: var(--cuisine); border-color: var(--cuisine-glow); }
.univers-card--voyage .card-icon { color: var(--voyage); border-color: var(--voyage-glow); }
.univers-card--tech .card-icon { color: var(--tech); border-color: var(--tech-glow); }
.univers-card--others .card-icon { color: var(--others); border-color: var(--others-glow); }

.univers-card:hover .card-icon {
  transform: scale(1.08);
}

.card-badge {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  padding: 0.25rem 0.65rem;
  border-radius: 99px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: rgba(52, 211, 153, 0.12);
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.25);
}

.card-badge--soon {
  background: rgba(251, 191, 36, 0.1);
  color: var(--others);
  border-color: rgba(251, 191, 36, 0.25);
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

.card-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
  flex: 1;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.card-tag {
  padding: 0.2rem 0.6rem;
  border-radius: 99px;
  font-size: 0.7rem;
  font-weight: 600;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.card-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.55rem 1rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  margin-top: 0.5rem;
  align-self: flex-start;
}

.univers-card--decodia .card-cta { color: var(--decodia); background: var(--decodia-glow); }
.univers-card--cuisine .card-cta { color: var(--cuisine); background: var(--cuisine-glow); }
.univers-card--voyage .card-cta { color: var(--voyage); background: var(--voyage-glow); }
.univers-card--tech .card-cta { color: var(--tech); background: var(--tech-glow); }

.card-cta--notify {
  color: var(--others);
  background: var(--others-glow);
}

.card-cta:hover {
  filter: brightness(1.15);
  transform: translateX(2px);
}

.univers-card--soon {
  opacity: 0.8;
}

.univers-card--soon:hover {
  opacity: 1;
}

/* =====================================================
   ARTICLES SECTION
   ===================================================== */
.articles-section {
  padding: 6rem 0;
  position: relative;
}

/* Filter tabs */
.articles-filters {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
  padding: 0.375rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  width: fit-content;
}

.filter-btn {
  padding: 0.45rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: var(--transition);
  white-space: nowrap;
}

.filter-btn:hover {
  color: var(--text);
  background: var(--bg-card-hover);
}

.filter-btn--active {
  color: var(--text);
  background: var(--bg-2);
  box-shadow: 0 1px 6px rgba(0,0,0,0.2);
}

[data-theme="light"] .filter-btn--active {
  background: white;
  box-shadow: 0 1px 6px rgba(0,0,0,0.1);
}

/* Articles grid */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

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

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

/* Featured article: spans 2 columns */
.article-card--featured {
  grid-column: span 2;
}

.article-img-wrap {
  position: relative;
  overflow: hidden;
}

.article-img {
  height: 180px;
  width: 100%;
  transition: transform 0.5s ease;
  position: relative;
}

.article-card--featured .article-img {
  height: 240px;
}

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

.article-img--decodia {
  background: linear-gradient(135deg, hsl(262, 50%, 12%) 0%, hsl(262, 60%, 25%) 60%, hsl(262, 83%, 35%) 100%);
}

.article-img--cuisine {
  background: linear-gradient(135deg, hsl(25, 50%, 12%) 0%, hsl(25, 60%, 25%) 60%, hsl(25, 80%, 38%) 100%);
}

.article-img--voyage {
  background: linear-gradient(135deg, hsl(195, 50%, 12%) 0%, hsl(195, 60%, 25%) 60%, hsl(195, 75%, 35%) 100%);
}

.article-img--tech {
  background: linear-gradient(135deg, hsl(140, 50%, 10%) 0%, hsl(140, 55%, 20%) 60%, hsl(140, 65%, 28%) 100%);
}

/* Decorative patterns on images */
.article-img--decodia::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='20' cy='20' r='1' fill='rgba(255,255,255,0.06)'/%3E%3C/svg%3E");
}

.article-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 60%);
}

.article-univers-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: 99px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.article-univers-badge--decodia { background: rgba(139, 92, 246, 0.25); color: hsl(262, 83%, 80%); border: 1px solid rgba(139,92,246,0.3); }
.article-univers-badge--cuisine { background: rgba(234, 108, 31, 0.25); color: hsl(25, 90%, 80%); border: 1px solid rgba(234,108,31,0.3); }
.article-univers-badge--voyage { background: rgba(14, 165, 233, 0.25); color: hsl(195, 85%, 80%); border: 1px solid rgba(14,165,233,0.3); }
.article-univers-badge--tech { background: rgba(34, 197, 94, 0.25); color: hsl(140, 70%, 75%); border: 1px solid rgba(34,197,94,0.3); }

.article-body {
  padding: 1.25rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 1;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.75rem;
  color: var(--text-faint);
}

.article-read-time {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.article-read-time::before {
  content: '·';
}

.article-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

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

.article-title a:hover {
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-teal));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.article-excerpt {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
}

.article-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-purple);
  transition: var(--transition);
  margin-top: auto;
}

.article-link:hover {
  color: var(--accent-teal);
  gap: 0.55rem;
}

/* Hidden article (filter) */
.article-card.hidden {
  display: none;
}

.articles-more {
  text-align: center;
  margin-top: 3rem;
}

/* =====================================================
   NEWSLETTER
   ===================================================== */
.newsletter-section {
  padding: 5rem 0;
  background: var(--bg-2);
}

.newsletter-card {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  padding: 3.5rem;
  text-align: center;
}

.newsletter-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 50%, hsla(262, 83%, 68%, 0.1) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 50%, hsla(175, 70%, 52%, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.newsletter-content {
  position: relative;
  z-index: 1;
  max-width: 540px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.newsletter-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(139,92,246,0.2), rgba(52,211,153,0.2));
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-purple);
}

.newsletter-title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.newsletter-desc {
  font-size: 0.925rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.newsletter-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.newsletter-input-wrap {
  display: flex;
  gap: 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
  padding: 0.25rem;
  transition: var(--transition);
}

.newsletter-input-wrap:focus-within {
  border-color: var(--accent-purple);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}

.newsletter-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 0.65rem 0.75rem;
  font-size: 0.9rem;
  color: var(--text);
  min-width: 0;
}

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

.newsletter-submit {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 1.25rem;
  background: linear-gradient(135deg, var(--accent-purple), hsl(220, 80%, 60%));
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  transition: var(--transition);
}

.newsletter-submit:hover {
  filter: brightness(1.1);
}

.newsletter-legal {
  font-size: 0.75rem;
  color: var(--text-faint);
}

.newsletter-legal a {
  color: var(--accent-purple);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Success state */
.newsletter-success {
  display: none;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.25);
  border-radius: var(--radius);
  color: #34d399;
  font-size: 0.9rem;
  font-weight: 500;
}

.newsletter-success.show { display: flex; }
.newsletter-success.show + .newsletter-form { display: none; }

/* =====================================================
   ABOUT SECTION
   ===================================================== */
.about-section {
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-desc {
  color: var(--text-muted);
  line-height: 1.8;
  font-size: 0.95rem;
  margin-top: 1rem;
}

.about-desc strong { color: var(--text); }

.about-values {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 2rem;
}

.value-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.value-icon {
  font-size: 1rem;
  color: var(--accent-purple);
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.value-item strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.value-item p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* About visual */
.about-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-orb-wrap {
  position: relative;
  width: 300px;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-orb {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--border);
  animation: about-spin linear infinite;
}

.about-orb-1 {
  width: 300px;
  height: 300px;
  border-color: rgba(139, 92, 246, 0.2);
  animation-duration: 20s;
}

.about-orb-2 {
  width: 220px;
  height: 220px;
  border-color: rgba(52, 211, 153, 0.2);
  animation-duration: 15s;
  animation-direction: reverse;
}

.about-orb-3 {
  width: 140px;
  height: 140px;
  border-color: rgba(251, 191, 36, 0.2);
  animation-duration: 10s;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.08) 0%, transparent 70%);
}

@keyframes about-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.about-orb-1::before,
.about-orb-2::before {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
}

.about-orb-1::before { background: var(--accent-purple); box-shadow: 0 0 12px var(--accent-purple); }
.about-orb-2::before { background: var(--accent-teal); box-shadow: 0 0 12px var(--accent-teal); }

.about-center {
  position: relative;
  z-index: 2;
}

.about-logo-mark {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 900;
}

/* =====================================================
   FOOTER
   ===================================================== */
.site-footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
}

.footer-top {
  padding: 4rem 0 2rem;
}

.footer-top-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-tagline {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 200px;
}

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

.footer-col-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text);
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-col a {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: var(--transition);
}

.footer-col a:hover { color: var(--text); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 1.25rem 0;
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-faint);
}

.footer-domain {
  color: var(--accent-purple);
}

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

.social-link {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.social-link:hover {
  color: var(--text);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

/* =====================================================
   MODAL
   ===================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(8, 13, 20, 0.85);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal-box {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  max-width: 420px;
  width: 100%;
  position: relative;
  animation: modal-in 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@keyframes modal-in {
  from { transform: scale(0.9) translateY(20px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: var(--transition);
}

.modal-close:hover {
  color: var(--text);
  background: var(--bg-card);
}

.modal-icon {
  font-size: 2.5rem;
  line-height: 1;
}

.modal-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.modal-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.modal-input {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  color: var(--text);
  outline: none;
  transition: var(--transition);
  text-align: left;
}

.modal-input:focus {
  border-color: var(--accent-purple);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}

.modal-submit {
  width: 100%;
  justify-content: center;
}

/* =====================================================
   ANIMATIONS
   ===================================================== */
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Intersection Observer animations */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 1024px) {
  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .article-card--featured {
    grid-column: span 2;
  }
  .about-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .about-visual {
    order: -1;
  }
  .about-orb-wrap {
    width: 240px;
    height: 240px;
  }
  .about-orb-1 { width: 240px; height: 240px; }
  .about-orb-2 { width: 175px; height: 175px; }
  .about-orb-3 { width: 110px; height: 110px; }
}

@media (max-width: 768px) {
  .main-nav { display: none; }
  .btn-menu { display: flex; }

  .articles-grid {
    grid-template-columns: 1fr;
  }
  .article-card--featured {
    grid-column: span 1;
  }

  .footer-top-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer-links {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
  }

  .newsletter-card {
    padding: 2rem 1.5rem;
  }
  .newsletter-input-wrap {
    flex-direction: column;
    border-radius: var(--radius);
    gap: 0.5rem;
  }
  .newsletter-submit {
    justify-content: center;
  }

  .hero-stats {
    gap: 1.25rem;
  }

  .univers-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 540px) {
  .univers-grid {
    grid-template-columns: 1fr;
  }
  .articles-filters {
    width: 100%;
    justify-content: center;
  }
  .footer-links {
    grid-template-columns: 1fr;
  }
}

/* =====================================================
   SCROLLBAR
   ===================================================== */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--border-hover);
}
