/* =========================================================
   FG Dev — Stylesheet
   Direction : dark tech, bleu électrique, sobriété éditoriale
   ========================================================= */

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

:root {
  /* Palette */
  --bg: #0a0e1a;
  --bg-elevated: #111827;
  --bg-card: #131b2e;
  --border: #1f2937;
  --border-strong: #2a3650;

  --text: #e5e7eb;
  --text-muted: #9ca3af;
  --text-dim: #6b7280;

  --accent: #3b82f6;
  --accent-bright: #60a5fa;
  --accent-glow: rgba(59, 130, 246, 0.4);

  --success: #10b981;

  /* Typo */
  --font-sans: 'Manrope', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  /* Layout */
  --container-wide: 1100px;
  --container-text: 760px;

  /* Transitions */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  font-weight: 400;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(ellipse 800px 600px at 20% 0%, rgba(59, 130, 246, 0.08), transparent 60%),
    radial-gradient(ellipse 600px 400px at 80% 10%, rgba(96, 165, 250, 0.05), transparent 60%);
  background-attachment: fixed;
}

/* Selection */
::selection {
  background: var(--accent);
  color: var(--bg);
}

/* =========================================================
   NAVIGATION
   ========================================================= */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 14, 26, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}

.nav-brand img {
  height: 36px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  align-items: center;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s var(--ease);
  position: relative;
}

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

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-strong);
  color: var(--text);
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
}

@media (max-width: 720px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 16px 24px;
    gap: 14px;
  }
  .nav-links.open {
    display: flex;
  }
  .nav-toggle {
    display: block;
  }
}

/* =========================================================
   HERO
   ========================================================= */

.hero {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 100px 24px 80px;
  position: relative;
}

.hero-logo {
  display: block;
  max-width: 380px;
  width: 100%;
  height: auto;
  margin-bottom: 40px;
  filter: drop-shadow(0 0 40px rgba(59, 130, 246, 0.35));
  animation: logoFadeIn 1s var(--ease) backwards;
}

@keyframes logoFadeIn {
  from {
    opacity: 0;
    transform: scale(0.96);
    filter: drop-shadow(0 0 0 rgba(59, 130, 246, 0));
  }
  to {
    opacity: 1;
    transform: scale(1);
    filter: drop-shadow(0 0 40px rgba(59, 130, 246, 0.35));
  }
}

@media (max-width: 600px) {
  .hero-logo {
    max-width: 280px;
    margin-bottom: 32px;
  }
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent-bright);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 24px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.hero-eyebrow::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--success);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 28px;
  max-width: 900px;
}

.hero h1 .accent {
  color: var(--accent-bright);
  font-style: italic;
  font-weight: 500;
}

.hero-tagline {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-muted);
  max-width: 620px;
  line-height: 1.6;
  margin-bottom: 40px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-dim);
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.hero-meta div span {
  display: block;
  color: var(--text);
  margin-top: 6px;
  font-size: 0.95rem;
}

/* =========================================================
   SECTIONS
   ========================================================= */

.section {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 80px 24px;
}

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

.section-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  max-width: 700px;
}

/* =========================================================
   PRODUITS GRID
   ========================================================= */

.products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 32px 28px;
  text-decoration: none;
  color: inherit;
  transition: all 0.35s var(--ease);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: 0 20px 40px -20px var(--accent-glow);
}

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

.product-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-bright));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 1rem;
  color: var(--bg);
}

.product-name {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.product-tagline {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.55;
  margin-bottom: 24px;
  flex-grow: 1;
}

.product-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--accent-bright);
  letter-spacing: 0.02em;
}

.product-link::after {
  content: '→';
  transition: transform 0.25s var(--ease);
}

.product-card:hover .product-link::after {
  transform: translateX(4px);
}

/* =========================================================
   TEXT PAGES (CGV, Confidentialité, Mentions)
   ========================================================= */

.text-page {
  max-width: var(--container-text);
  margin: 0 auto;
  padding: 80px 24px 120px;
}

.text-page .page-header {
  margin-bottom: 56px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.text-page .page-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.text-page h1 {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 16px;
}

.text-page .page-meta {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-dim);
}

.text-page h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-top: 48px;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
  color: var(--text);
  scroll-margin-top: 100px;
}

.text-page h2 .num {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent);
  margin-right: 12px;
  font-weight: 500;
}

.text-page h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-top: 28px;
  margin-bottom: 10px;
  color: var(--text);
}

.text-page p,
.text-page ul,
.text-page ol {
  color: var(--text-muted);
  margin-bottom: 16px;
  font-size: 0.98rem;
  line-height: 1.75;
}

.text-page ul,
.text-page ol {
  padding-left: 24px;
}

.text-page li {
  margin-bottom: 8px;
}

.text-page strong {
  color: var(--text);
  font-weight: 600;
}

.text-page a {
  color: var(--accent-bright);
  text-decoration: underline;
  text-decoration-color: rgba(96, 165, 250, 0.4);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s var(--ease);
}

.text-page a:hover {
  text-decoration-color: var(--accent-bright);
}

/* Tables */
.text-page table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  font-size: 0.92rem;
}

.text-page th,
.text-page td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.text-page th {
  background: var(--bg-elevated);
  color: var(--text);
  font-weight: 600;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.text-page tr:last-child td {
  border-bottom: none;
}

.text-page td {
  color: var(--text-muted);
}

.text-page td a {
  color: var(--accent-bright);
}

/* Highlight callouts */
.callout {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(96, 165, 250, 0.04));
  border: 1px solid var(--border-strong);
  border-left: 3px solid var(--accent);
  padding: 18px 22px;
  border-radius: 8px;
  margin: 24px 0;
  font-size: 0.92rem;
}

.callout strong {
  color: var(--accent-bright);
}

.placeholder {
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
  padding: 2px 8px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.85em;
  font-weight: 500;
  border: 1px dashed rgba(245, 158, 11, 0.4);
}

/* Table of contents on text pages */
.toc {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 22px 26px;
  margin-bottom: 48px;
}

.toc-title {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.toc ol {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
  columns: 2;
  column-gap: 32px;
}

.toc li {
  margin-bottom: 6px;
  break-inside: avoid;
}

.toc a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  display: flex;
  gap: 10px;
}

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

.toc .num {
  font-family: var(--font-mono);
  color: var(--text-dim);
  font-size: 0.82rem;
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .toc ol {
    columns: 1;
  }
}

/* =========================================================
   CONTACT FORM
   ========================================================= */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 32px;
}

@media (max-width: 720px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.contact-info-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px 26px;
  margin-bottom: 16px;
}

.contact-info-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.contact-info-value {
  color: var(--text);
  font-size: 1rem;
  line-height: 1.6;
}

.contact-info-value a {
  color: var(--accent-bright);
  text-decoration: none;
}

.contact-info-value a:hover {
  text-decoration: underline;
}

.contact-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent);
  color: var(--bg);
  padding: 14px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  margin-top: 16px;
  transition: all 0.25s var(--ease);
  border: 1px solid var(--accent);
}

.contact-cta:hover {
  background: var(--accent-bright);
  border-color: var(--accent-bright);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -10px var(--accent-glow);
}

/* =========================================================
   FOOTER
   ========================================================= */

.footer {
  border-top: 1px solid var(--border);
  margin-top: 80px;
  padding: 56px 24px 32px;
  background: var(--bg-elevated);
}

.footer-inner {
  max-width: var(--container-wide);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}

@media (max-width: 760px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

.footer-brand img {
  height: 40px;
  margin-bottom: 14px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 280px;
}

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
  font-weight: 500;
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col li {
  margin-bottom: 10px;
}

.footer-col a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.92rem;
  transition: color 0.2s var(--ease);
}

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

.footer-bottom {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-dim);
}

.footer-bottom span {
  letter-spacing: 0.04em;
}

/* =========================================================
   ANIMATIONS
   ========================================================= */

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero > * {
  animation: fadeUp 0.7s var(--ease) backwards;
}

.hero-eyebrow { animation-delay: 0.05s; }
.hero h1 { animation-delay: 0.15s; }
.hero-tagline { animation-delay: 0.25s; }
.hero-meta { animation-delay: 0.35s; }

.product-card {
  animation: fadeUp 0.6s var(--ease) backwards;
}
.product-card:nth-child(1) { animation-delay: 0.1s; }
.product-card:nth-child(2) { animation-delay: 0.2s; }
.product-card:nth-child(3) { animation-delay: 0.3s; }
.product-card:nth-child(4) { animation-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
