/* ============================================
   Station-Accueil.com — Design System
   Modern, fast, sexy static site
   ============================================ */

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

:root {
  --primary: #0f172a;
  --primary-light: #1e293b;
  --accent: #3b82f6;
  --accent-light: #60a5fa;
  --accent-glow: rgba(59, 130, 246, 0.3);
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --text: #f8fafc;
  --text-muted: #94a3b8;
  --text-dark: #0f172a;
  --text-dark-muted: #64748b;
  --bg: #020617;
  --bg-card: #0f172a;
  --bg-card-hover: #1e293b;
  --border: #1e293b;
  --border-light: #334155;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(0,0,0,0.3);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.4);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Inter', system-ui, -apple-system, sans-serif;
  --max-width: 1200px;
  --header-h: 72px;
}

html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--accent-light); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { padding-left: 1.5em; }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

/* --- Utility --- */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.text-gradient {
  background: linear-gradient(135deg, var(--accent-light), #a78bfa, var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.text-center { text-align: center; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.mb-6 { margin-bottom: 48px; }

/* --- Header --- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: rgba(2, 6, 23, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  transition: background var(--transition);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.logo {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo svg { width: 32px; height: 32px; }
.logo span { color: var(--accent-light); }

.nav-links { display: flex; gap: 8px; align-items: center; list-style: none; padding: 0; }
.nav-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 8px;
  transition: all var(--transition);
}
.nav-links a:hover { color: var(--text); background: var(--bg-card); }

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown > a::after { content: ' ▾'; font-size: 0.7em; }
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 260px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 8px;
  box-shadow: var(--shadow-lg);
  z-index: 100;
}
.nav-dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu a {
  display: block;
  padding: 10px 16px;
  font-size: 0.85rem;
  border-radius: 8px;
  color: var(--text-muted);
}
.dropdown-menu a:hover { background: var(--primary-light); color: var(--text); }

/* Mobile menu */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 8px;
}
@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .nav-links {
    display: none;
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0; bottom: 0;
    background: var(--bg);
    flex-direction: column;
    padding: 24px;
    gap: 4px;
    overflow-y: auto;
  }
  .nav-links.open { display: flex; }
  .nav-dropdown > a::after { content: ''; }
  .dropdown-menu {
    display: block;
    position: static;
    transform: none;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0 0 0 16px;
    min-width: auto;
  }
}

/* --- Hero Section --- */
.hero {
  padding: calc(var(--header-h) + 80px) 0 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(ellipse at 50% 0%, var(--accent-glow) 0%, transparent 60%);
  pointer-events: none;
  animation: heroGlow 8s ease-in-out infinite alternate;
}
@keyframes heroGlow {
  0% { opacity: 0.4; transform: scale(1); }
  100% { opacity: 0.7; transform: scale(1.1); }
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  margin-bottom: 20px;
  position: relative;
}
.hero .subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto 36px;
  position: relative;
}

/* CTA Buttons */
.cta-group { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; position: relative; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-decoration: none;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 20px var(--accent-glow);
}
.btn-primary:hover {
  background: var(--accent-light);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--accent-glow);
}
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-light);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent-light);
  transform: translateY(-2px);
}

/* --- Sections --- */
section { padding: 80px 0; }
.section-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-light);
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  margin-bottom: 16px;
}
.section-desc {
  color: var(--text-muted);
  max-width: 650px;
  margin-bottom: 48px;
  font-size: 1.05rem;
}
.section-header { margin-bottom: 48px; }

/* --- Cards Grid --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(59, 130, 246, 0.1);
}
.card-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--accent), #7c3aed);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 20px;
}
.card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}
.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 16px;
}
.card-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-light);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.card-link:hover { gap: 10px; }
.card-link::after { content: '→'; transition: inherit; }

/* Feature cards (horizontal) */
.feature-card {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  margin-bottom: 24px;
  transition: all var(--transition);
}
.feature-card:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 32px rgba(59, 130, 246, 0.08);
}
.feature-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--accent);
  opacity: 0.3;
  line-height: 1;
  min-width: 60px;
}
@media (max-width: 600px) {
  .feature-card { flex-direction: column; gap: 16px; padding: 24px; }
}

/* --- Comparison Table --- */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 32px 0;
  font-size: 0.95rem;
}
.comparison-table thead { background: var(--bg-card); }
.comparison-table th, .comparison-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.comparison-table th {
  font-weight: 600;
  color: var(--accent-light);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.comparison-table tbody tr { transition: background var(--transition); }
.comparison-table tbody tr:hover { background: var(--bg-card); }
.check { color: var(--success); }
.cross { color: var(--danger); opacity: 0.5; }
@media (max-width: 700px) {
  .comparison-table { font-size: 0.82rem; }
  .comparison-table th, .comparison-table td { padding: 10px 12px; }
}

/* --- Article Content --- */
.article-hero {
  padding: calc(var(--header-h) + 60px) 0 50px;
  text-align: center;
  position: relative;
}
.article-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 100%;
  background: radial-gradient(ellipse at 50% 0%, var(--accent-glow) 0%, transparent 70%);
  opacity: 0.3;
  pointer-events: none;
}
.article-hero .breadcrumb {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  position: relative;
}
.article-hero .breadcrumb a { color: var(--accent-light); }
.article-hero h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  max-width: 800px;
  margin: 0 auto 16px;
  position: relative;
}
.article-hero .article-meta {
  color: var(--text-muted);
  font-size: 0.9rem;
  position: relative;
}

.article-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}
.article-content h2 {
  font-size: 1.8rem;
  margin: 48px 0 20px;
  padding-top: 16px;
}
.article-content h3 {
  font-size: 1.35rem;
  margin: 36px 0 16px;
}
.article-content p {
  margin-bottom: 20px;
  color: var(--text-muted);
  font-size: 1.05rem;
}
.article-content ul, .article-content ol {
  margin-bottom: 20px;
  color: var(--text-muted);
}
.article-content li { margin-bottom: 8px; }
.article-content strong { color: var(--text); }
.article-content a { text-decoration: underline; text-underline-offset: 3px; }

/* Info box */
.info-box {
  background: var(--bg-card);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 24px 28px;
  margin: 32px 0;
}
.info-box.tip { border-left-color: var(--success); }
.info-box.warning { border-left-color: var(--warning); }
.info-box h4 { font-size: 1rem; margin-bottom: 8px; color: var(--text); }
.info-box p { margin-bottom: 0; font-size: 0.95rem; }

/* TOC */
.toc {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  margin: 0 0 40px;
}
.toc h4 { font-size: 1rem; margin-bottom: 16px; color: var(--text); }
.toc ol { padding-left: 1.2em; }
.toc li { margin-bottom: 8px; }
.toc a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color var(--transition);
}
.toc a:hover { color: var(--accent-light); }

/* --- Product Card --- */
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 32px;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 32px;
  align-items: start;
  transition: all var(--transition);
}
.product-card:hover { border-color: var(--border-light); }
.product-card .product-img {
  background: var(--primary-light);
  border-radius: var(--radius);
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}
.product-card h3 { font-size: 1.3rem; margin-bottom: 8px; }
.product-card .product-rating { color: var(--warning); margin-bottom: 12px; font-size: 0.9rem; }
.product-card .product-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.spec-tag {
  background: var(--primary-light);
  color: var(--text-muted);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
}
.product-card .product-desc { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 20px; }
.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 20px; }
.pros li::marker { color: var(--success); }
.cons li::marker { color: var(--danger); }
@media (max-width: 700px) {
  .product-card { grid-template-columns: 1fr; }
  .pros-cons { grid-template-columns: 1fr; }
}

/* --- Sidebar layout --- */
.content-with-sidebar {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px 80px;
}
.sidebar { position: sticky; top: calc(var(--header-h) + 24px); }
.sidebar-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 20px;
}
.sidebar-card h4 {
  font-size: 0.95rem;
  margin-bottom: 16px;
  color: var(--text);
}
.sidebar-card ul { list-style: none; padding: 0; }
.sidebar-card li { margin-bottom: 8px; }
.sidebar-card a {
  color: var(--text-muted);
  font-size: 0.9rem;
  display: block;
  padding: 6px 0;
  transition: color var(--transition);
}
.sidebar-card a:hover { color: var(--accent-light); }
@media (max-width: 900px) {
  .content-with-sidebar { grid-template-columns: 1fr; }
  .sidebar { position: static; }
}

/* --- FAQ --- */
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}
.faq-question {
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text);
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  font-family: inherit;
  padding: 0;
}
.faq-question::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--accent-light);
  transition: transform var(--transition);
}
.faq-question.active::after { content: '−'; }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.faq-answer.open { max-height: 500px; padding-top: 16px; }

/* --- Contact Form --- */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
}
.form-group { margin-bottom: 24px; }
.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--text);
}
.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  padding: 14px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color var(--transition);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.form-group textarea { min-height: 150px; resize: vertical; }

/* --- Footer --- */
.site-footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 60px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand p { color: var(--text-muted); font-size: 0.9rem; margin-top: 12px; max-width: 300px; }
.footer-col h5 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; padding: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: var(--text-muted); font-size: 0.9rem; }
.footer-col a:hover { color: var(--accent-light); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 12px;
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* --- Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Stats Banner --- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 40px 0;
}
.stat-item { text-align: center; }
.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent-light);
  line-height: 1;
}
.stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 8px;
}
@media (max-width: 600px) {
  .stats { grid-template-columns: 1fr 1fr; }
}

/* --- Tags / Badges --- */
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.badge-blue { background: rgba(59,130,246,0.15); color: var(--accent-light); }
.badge-green { background: rgba(16,185,129,0.15); color: var(--success); }
.badge-purple { background: rgba(139,92,246,0.15); color: #a78bfa; }
.badge-orange { background: rgba(245,158,11,0.15); color: var(--warning); }

/* --- Newsletter / CTA Banner --- */
.cta-banner {
  background: linear-gradient(135deg, var(--primary-light), var(--bg));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px;
  text-align: center;
  margin: 48px 0;
}
.cta-banner h3 { font-size: 1.6rem; margin-bottom: 12px; }
.cta-banner p { color: var(--text-muted); margin-bottom: 24px; max-width: 500px; margin-left: auto; margin-right: auto; }

/* --- Related Articles --- */
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 32px;
}
.related-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: all var(--transition);
}
.related-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.related-card h4 { font-size: 1rem; margin-bottom: 8px; }
.related-card p { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 12px; }

/* Obfuscated links */
[data-obf] { cursor: pointer; }
.nav-links [data-obf], .footer-col [data-obf] {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color var(--transition);
}
.nav-links [data-obf]:hover, .footer-col [data-obf]:hover { color: var(--accent-light); }
.nav-links [data-obf] {
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 8px;
  display: block;
}
.nav-links [data-obf]:hover { background: var(--bg-card); color: var(--text); }

/* Article hero image */
.article-hero-img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin: 32px auto 0;
  max-width: var(--max-width);
  display: block;
}
.article-content img {
  width: 100%;
  border-radius: var(--radius);
  margin: 24px 0;
}
.hero-img-home {
  width: 100%;
  max-height: 340px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin: 40px auto 0;
  max-width: 900px;
  display: block;
  position: relative;
}

/* Print */
@media print {
  .site-header, .site-footer, .cta-banner, .sidebar { display: none; }
  body { color: #000; background: #fff; }
  .article-content p, .article-content li { color: #333; }
}
