@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,700;0,900;1,400;1,700&family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500;9..40,600;9..40,800&display=swap');

/* ══════════════════════════════════════════════════════════════
   NIGHT KITCHEN · CGV — Dashboard minimaliste
   ══════════════════════════════════════════════════════════════ */

/* ── PAGE ─────────────────────────────────────────────────── */
.cgv-page {
  min-height: 100vh;
  background: var(--bg-page);
  padding-top: 80px;
  padding-bottom: 80px;
}

/* ── HEADER BAND ──────────────────────────────────────────── */
.cgv-header {
  max-width: 1140px;
  margin: 0 auto 48px;
  padding: 0 24px;
}

.cgv-header-inner {
  padding: 44px 52px 40px;
  border-radius: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  position: relative;
  overflow: hidden;
  animation: cgv-reveal 0.6s cubic-bezier(0.22,1,0.36,1) both;
}

.cgv-header-inner::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--accent-line);
}

.cgv-header-inner::after {
  content: '';
  position: absolute;
  bottom: -60px; right: -40px;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16,185,129,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.cgv-eyebrow {
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 3.5px;
  color: var(--g1);
  opacity: 0.65;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cgv-eyebrow-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--g1);
  box-shadow: 0 0 10px rgba(52,211,153,0.6);
  animation: cgv-dot-pulse 2.5s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes cgv-dot-pulse {
  0%, 100% { box-shadow: 0 0 6px rgba(52,211,153,0.4); }
  50%       { box-shadow: 0 0 16px rgba(52,211,153,0.9), 0 0 30px rgba(52,211,153,0.2); }
}

.cgv-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 900;
  color: var(--text-primary);
  letter-spacing: -0.8px;
  line-height: 1.08;
  margin: 0 0 16px;
}

.cgv-title em {
  font-style: italic;
  color: var(--g1);
}

.cgv-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 50px;
  background: var(--bg-element);
  border: 1px solid var(--border-accent);
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--g1);
  letter-spacing: 0.3px;
}

/* ── BODY LAYOUT ──────────────────────────────────────────── */
.cgv-body {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 32px;
  align-items: start;
}

/* ── SIDEBAR ──────────────────────────────────────────────── */
.cgv-sidebar {
  position: sticky;
  top: 96px;
  animation: cgv-reveal 0.6s 0.1s cubic-bezier(0.22,1,0.36,1) both;
}

.cgv-sidebar-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 22px;
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  overflow: hidden;
}

.cgv-sidebar-header {
  padding: 20px 20px 14px;
  border-bottom: 1px solid var(--border-muted);
}

.cgv-sidebar-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 9.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--text-label);
}

.cgv-nav {
  display: flex;
  flex-direction: column;
  padding: 10px 10px;
  gap: 2px;
}

.cgv-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  text-decoration: none;
  transition: background 0.18s, border-color 0.18s, transform 0.18s;
  border: 1px solid transparent;
  cursor: pointer;
}

.cgv-nav-item:hover {
  background: var(--bg-element);
  border-color: var(--border);
  transform: translateX(2px);
}

.cgv-nav-item.cgv-active {
  background: var(--bg-element);
  border-color: var(--border-accent);
}

.cgv-nav-item.cgv-active .cgv-nav-num {
  color: var(--g1);
  text-shadow: 0 0 16px rgba(52,211,153,0.4);
}

.cgv-nav-item.cgv-active .cgv-nav-label {
  color: var(--text-primary);
}

.cgv-nav-num {
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--text-muted);
  min-width: 22px;
  transition: color 0.18s;
}

.cgv-nav-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-secondary);
  line-height: 1.3;
  transition: color 0.18s;
}

/* ── CONTENT ──────────────────────────────────────────────── */
.cgv-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ── ARTICLE CARD ─────────────────────────────────────────── */
.cgv-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 22px;
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  padding: 32px 36px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
  animation: cgv-reveal 0.6s cubic-bezier(0.22,1,0.36,1) both;
}

.cgv-card:nth-child(1) { animation-delay: 0.08s; }
.cgv-card:nth-child(2) { animation-delay: 0.13s; }
.cgv-card:nth-child(3) { animation-delay: 0.18s; }
.cgv-card:nth-child(4) { animation-delay: 0.22s; }
.cgv-card:nth-child(5) { animation-delay: 0.26s; }
.cgv-card:nth-child(6) { animation-delay: 0.30s; }
.cgv-card:nth-child(7) { animation-delay: 0.34s; }
.cgv-card:nth-child(8) { animation-delay: 0.38s; }

.cgv-card::before {
  content: '';
  position: absolute;
  left: 0; top: 18px; bottom: 18px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--g2);
  opacity: 0;
  transition: opacity 0.25s;
}

.cgv-card:hover {
  border-color: var(--border-accent);
  box-shadow: 0 8px 32px rgba(0,0,0,0.12), 0 0 0 1px rgba(52,211,153,0.06);
}

.cgv-card:hover::before,
.cgv-card.cgv-card-active::before {
  opacity: 1;
}

.cgv-card.cgv-card-active {
  border-color: var(--border-accent);
}

/* Numéro décoratif en fond */
.cgv-art-deco {
  position: absolute;
  right: 28px;
  top: 14px;
  font-family: 'Playfair Display', serif;
  font-size: 72px;
  font-weight: 900;
  line-height: 1;
  color: var(--text-primary);
  opacity: 0.025;
  pointer-events: none;
  user-select: none;
  letter-spacing: -4px;
}

.cgv-art-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.cgv-art-num-badge {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--bg-element);
  border: 1px solid var(--border-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cgv-art-num-badge span {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 800;
  color: var(--g1);
  letter-spacing: 0.5px;
}

.cgv-art-title {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.2px;
  margin: 0;
  line-height: 1.3;
}

.cgv-art-body {
  font-family: 'DM Sans', sans-serif;
  font-size: 14.5px;
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.8;
  margin: 0;
  padding-left: 50px;
}

/* ── FOOTER CARD ──────────────────────────────────────────── */
.cgv-footer-card {
  background: var(--bg-element);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  animation: cgv-reveal 0.6s 0.45s cubic-bezier(0.22,1,0.36,1) both;
}

.cgv-footer-text {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  text-align: center;
}

.cgv-footer-sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--text-muted);
  opacity: 0.4;
  flex-shrink: 0;
}

/* ── ANIMATIONS ───────────────────────────────────────────── */
@keyframes cgv-reveal {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}

/* ── MOBILE NAV ───────────────────────────────────────────── */
.cgv-mobile-nav {
  display: none;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  gap: 8px;
  padding: 0 24px 20px;
  max-width: 1140px;
  margin: 0 auto;
}

.cgv-mobile-nav::-webkit-scrollbar { display: none; }

.cgv-mobile-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 50px;
  background: var(--bg-element);
  border: 1px solid var(--border);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.18s, border-color 0.18s;
}

.cgv-mobile-chip:hover,
.cgv-mobile-chip.cgv-active {
  background: var(--bg-element-hov);
  border-color: var(--border-accent);
}

.cgv-mobile-chip-num {
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  font-weight: 800;
  color: var(--g1);
}

.cgv-mobile-chip-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
}

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 860px) {
  .cgv-body {
    grid-template-columns: 1fr;
  }
  .cgv-sidebar { display: none; }
  .cgv-mobile-nav { display: flex; }
  .cgv-header-inner { padding: 32px 28px 28px; }
  .cgv-card { padding: 24px 22px; }
  .cgv-art-body { padding-left: 0; }
  .cgv-art-deco { font-size: 52px; }
}

@media (max-width: 480px) {
  .cgv-page { padding-top: 72px; }
  .cgv-header { margin-bottom: 0; }
  .cgv-title { font-size: 24px; }
  .cgv-card { border-radius: 16px; }
}

/* ══════════════════════════════════════════════════════════
   LIGHT MODE
══════════════════════════════════════════════════════════ */
[data-theme="light"] .cgv-header-inner {
  background: rgba(255,255,255,0.88);
  border-color: rgba(52,211,153,0.22);
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}

[data-theme="light"] .cgv-title { color: #0a1f12; }

[data-theme="light"] .cgv-sidebar-card {
  background: rgba(255,255,255,0.88);
  border-color: rgba(52,211,153,0.18);
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

[data-theme="light"] .cgv-sidebar-title { color: rgba(5,150,105,0.6); }

[data-theme="light"] .cgv-nav-item:hover {
  background: rgba(52,211,153,0.07);
  border-color: rgba(52,211,153,0.2);
}

[data-theme="light"] .cgv-nav-item.cgv-active {
  background: rgba(52,211,153,0.08);
  border-color: rgba(52,211,153,0.28);
}

[data-theme="light"] .cgv-nav-label { color: rgba(10,31,18,0.65); }

[data-theme="light"] .cgv-card {
  background: rgba(255,255,255,0.88);
  border-color: rgba(52,211,153,0.18);
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

[data-theme="light"] .cgv-card:hover {
  border-color: rgba(52,211,153,0.38);
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
}

[data-theme="light"] .cgv-art-num-badge {
  background: rgba(52,211,153,0.10);
  border-color: rgba(52,211,153,0.28);
}

[data-theme="light"] .cgv-art-title { color: #0a1f12; }
[data-theme="light"] .cgv-art-body  { color: rgba(10,31,18,0.70); }
[data-theme="light"] .cgv-art-deco  { color: #0a1f12; }

[data-theme="light"] .cgv-footer-card {
  background: rgba(52,211,153,0.06);
  border-color: rgba(52,211,153,0.18);
}
