/* ============================================
   SUNDAYTIME.FR — Startup Aesthetic
   Inspired by Linear, Arc Browser, Raycast
   ============================================ */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Rubik:wght@400;500;600;700&family=Inter:wght@400;500;600&display=swap');

/* ---------- Custom Properties ---------- */
:root {
  --font-display: 'Rubik', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Palette — startup warm */
  --bg-primary: #0f0f13;
  --bg-secondary: #16161d;
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-card-hover: rgba(255, 255, 255, 0.07);
  --bg-glass: rgba(255, 255, 255, 0.06);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.14);

  --text-primary: #f0ece6;
  --text-secondary: rgba(240, 236, 230, 0.65);
  --text-muted: rgba(240, 236, 230, 0.4);

  --accent: #f59e42;
  --accent-soft: rgba(245, 158, 66, 0.15);
  --accent-gradient: linear-gradient(135deg, #f59e42, #e06b30);
  --gradient-warm: linear-gradient(135deg, rgba(245, 158, 66, 0.08), rgba(224, 107, 48, 0.04));
  --gradient-section: linear-gradient(180deg, transparent, rgba(245, 158, 66, 0.03), transparent);
  --gradient-card: linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 40px rgba(245, 158, 66, 0.08);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
}

/* ---------- Utility ---------- */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

.gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---------- Navigation — Floating Pill ---------- */
.navbar {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  background: rgba(22, 22, 29, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 10px 28px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 28px;
  transition: background 0.3s, box-shadow 0.3s;
}

.navbar:hover {
  background: rgba(22, 22, 29, 0.88);
  box-shadow: var(--shadow-md), var(--shadow-glow);
}

.navbar-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  white-space: nowrap;
}

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

.nav-links { display: flex; gap: 6px; }

.nav-links a {
  font-size: 0.88rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  color: var(--text-secondary);
  transition: color 0.25s, background 0.25s;
}

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

/* Mobile menu button */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 4px;
}

.menu-toggle svg { width: 22px; height: 22px; }

@media (max-width: 768px) {
  .navbar {
    padding: 10px 20px;
    gap: 0;
    justify-content: space-between;
    width: calc(100% - 32px);
    max-width: 420px;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 0; right: 0;
    flex-direction: column;
    background: rgba(22, 22, 29, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 12px;
    box-shadow: var(--shadow-md);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 10px 16px; }
  .menu-toggle { display: block; }
}

/* ---------- Hero / Accroche ---------- */
.hero {
  padding: 140px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(245, 158, 66, 0.1) 0%, transparent 65%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-soft);
  border: 1px solid rgba(245, 158, 66, 0.2);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  margin-bottom: 24px;
  letter-spacing: 0.02em;
}

.hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 3.8rem);
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: -0.03em;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.hero-image {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md), var(--shadow-glow);
  border: 1px solid var(--border-subtle);
}

.hero-image img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

/* ---------- Section Spacing & Gradients ---------- */
section {
  padding: 80px 0;
  position: relative;
}

section + section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-subtle), transparent);
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}

.section-header p {
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto;
  font-size: 1.02rem;
}

/* ---------- Présentation — Glassmorphism Cards ---------- */
.about-section {
  background: var(--gradient-section);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.about-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 32px;
  backdrop-filter: blur(10px);
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}

.about-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

.about-card .icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  font-size: 1.3rem;
}

.about-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.about-card p {
  color: var(--text-secondary);
  font-size: 0.94rem;
  line-height: 1.7;
}

/* ---------- Timeline Articles ---------- */
.timeline-section {
  background: var(--gradient-section);
}

.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

/* Vertical line */
.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: linear-gradient(180deg, transparent, var(--accent), rgba(245, 158, 66, 0.3), transparent);
  transform: translateX(-50%);
}

.timeline-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 48px;
  position: relative;
}

.timeline-item:last-child { margin-bottom: 0; }

/* Alternate left/right */
.timeline-item:nth-child(odd) {
  flex-direction: row-reverse;
  text-align: right;
}

.timeline-item:nth-child(even) {
  text-align: left;
}

/* Dot on the line */
.timeline-dot {
  position: absolute;
  left: 50%;
  top: 24px;
  width: 14px;
  height: 14px;
  background: var(--accent-gradient);
  border-radius: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 16px rgba(245, 158, 66, 0.35);
  z-index: 2;
  flex-shrink: 0;
}

.timeline-dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(245, 158, 66, 0.2);
}

/* Card on each side */
.timeline-card {
  width: calc(50% - 40px);
  background: var(--gradient-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}

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

.timeline-card-image {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  border-bottom: 1px solid var(--border-subtle);
}

.timeline-card-body {
  padding: 24px;
}

.timeline-card-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: var(--radius-sm);
  background: var(--accent-gradient);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.82rem;
  margin-bottom: 12px;
}

.timeline-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  line-height: 1.35;
}

.timeline-card h3 a {
  transition: color 0.25s;
}

.timeline-card h3 a:hover {
  color: var(--accent);
}

.timeline-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.65;
}

.timeline-card-tag {
  display: inline-block;
  margin-top: 14px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
}

/* Mobile: stack to the right */
@media (max-width: 768px) {
  .timeline::before {
    left: 20px;
  }
  .timeline-dot {
    left: 20px;
    top: 18px;
  }
  .timeline-item,
  .timeline-item:nth-child(odd) {
    flex-direction: row;
    text-align: left;
    padding-left: 50px;
  }
  .timeline-card {
    width: 100%;
  }
}

/* ---------- Categories — Bento Grid ---------- */
.categories-section { }

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.bento-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  backdrop-filter: blur(10px);
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
  position: relative;
  overflow: hidden;
}

.bento-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-gradient);
  opacity: 0;
  transition: opacity 0.3s;
}

.bento-card:hover::before { opacity: 1; }

.bento-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

.bento-card .bento-icon {
  font-size: 1.8rem;
}

.bento-card h3 {
  font-size: 1.1rem;
}

.bento-card p {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.6;
}

/* First card spans 2 columns */
.bento-card:first-child {
  grid-column: span 2;
}

@media (max-width: 768px) {
  .bento-grid {
    grid-template-columns: 1fr;
  }
  .bento-card:first-child {
    grid-column: span 1;
  }
}

/* ---------- SEO Text ---------- */
.seo-section {
  background: var(--gradient-section);
}

.seo-content {
  max-width: 720px;
  margin: 0 auto;
}

.seo-content p {
  color: var(--text-secondary);
  font-size: 0.96rem;
  margin-bottom: 20px;
  line-height: 1.8;
}

.seo-content p:last-child { margin-bottom: 0; }

/* ---------- Newsletter CTA ---------- */
.newsletter-section { text-align: center; }

.newsletter-box {
  max-width: 540px;
  margin: 0 auto;
  background: var(--gradient-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  position: relative;
  overflow: hidden;
}

.newsletter-box::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(245, 158, 66, 0.1), transparent 70%);
  pointer-events: none;
}

.newsletter-box h2 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.newsletter-box p {
  color: var(--text-secondary);
  margin-bottom: 28px;
  font-size: 0.94rem;
}

.newsletter-form {
  display: flex;
  gap: 10px;
}

.newsletter-form input[type="email"] {
  flex: 1;
  padding: 12px 18px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  background: var(--bg-card);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.92rem;
  outline: none;
  transition: border-color 0.25s;
}

.newsletter-form input[type="email"]:focus {
  border-color: var(--accent);
}

.newsletter-form button {
  padding: 12px 28px;
  background: var(--accent-gradient);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: opacity 0.25s, transform 0.15s;
  white-space: nowrap;
}

.newsletter-form button:hover { opacity: 0.9; transform: scale(1.02); }

@media (max-width: 480px) {
  .newsletter-form { flex-direction: column; }
  .newsletter-box { padding: 36px 24px; }
}

/* ---------- FAQ ---------- */
.faq-section { }

.faq-list {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: var(--gradient-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.3s;
}

.faq-item:hover { border-color: var(--border-hover); }

.faq-item summary {
  padding: 20px 24px;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.02rem;
  display: flex;
  align-items: center;
  gap: 14px;
  list-style: none;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::before {
  content: '+';
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
  transition: transform 0.3s;
}

.faq-item[open] summary::before {
  content: '−';
  transform: rotate(180deg);
}

.faq-item .faq-answer {
  padding: 0 24px 20px 62px;
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.7;
}

/* ---------- Footer — Gradient ---------- */
.footer {
  padding: 60px 0 30px;
  background: linear-gradient(180deg, var(--bg-primary), rgba(245, 158, 66, 0.04), var(--bg-secondary));
  border-top: 1px solid var(--border-subtle);
  text-align: center;
}

.footer-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 12px;
}

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

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-bottom: 28px;
}

.footer-links a {
  font-size: 0.88rem;
  color: var(--text-secondary);
  transition: color 0.25s;
}

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

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

/* ---------- Article Page (future) ---------- */
.article-page {
  padding: 140px 0 80px;
}

.breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 28px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.breadcrumb a {
  color: var(--text-secondary);
  transition: color 0.25s;
}

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

.breadcrumb .sep { color: var(--text-muted); }

.article-header {
  margin-bottom: 40px;
}

.article-header h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.article-meta {
  display: flex;
  gap: 16px;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.article-cover {
  width: 100%;
  border-radius: var(--radius-lg);
  margin-bottom: 40px;
  aspect-ratio: 21/9;
  object-fit: cover;
  border: 1px solid var(--border-subtle);
}

.article-body {
  max-width: 720px;
  margin: 0 auto;
}

.article-body h2 {
  font-size: 1.5rem;
  margin: 40px 0 16px;
  letter-spacing: -0.01em;
}

.article-body h3 {
  font-size: 1.2rem;
  margin: 32px 0 12px;
}

.article-body p {
  color: var(--text-secondary);
  margin-bottom: 18px;
  line-height: 1.8;
}

.article-body ul, .article-body ol {
  list-style: disc;
  margin: 0 0 18px 24px;
  color: var(--text-secondary);
}

.article-body li {
  margin-bottom: 6px;
  line-height: 1.7;
}

.article-body blockquote {
  border-left: 3px solid var(--accent);
  padding: 16px 24px;
  margin: 24px 0;
  background: var(--accent-soft);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text-secondary);
  font-style: italic;
}

.article-body a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-body a:hover { opacity: 0.8; }

.article-body img {
  border-radius: var(--radius-md);
  margin: 24px 0;
  border: 1px solid var(--border-subtle);
}
