/* ============================================================
   THEME — MYCO — Deep Violet / Myciculture & Champignons
   Compatible avec la structure HTML de référence ice-white
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400;1,700&family=Inconsolata:wght@300;400;500&family=Lato:wght@300;400;700&display=swap');

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

:root {
  --g:  #a855f7;
  --g2: #c084fc;
  --g3: #f3e8ff;
  --bg:  #06020e;
  --bg2: #0a0318;
  --bg3: #0e0520;
  --surface: rgba(255,255,255,0.02);
  --border:  rgba(168,85,247,0.13);
  --border2: rgba(168,85,247,0.3);
  --text:  #faf5ff;
  --muted: rgba(250,245,255,0.44);
  --font-display:   'Cormorant Garamond', serif;
  --font-secondary: 'Lato', sans-serif;
  --font-body:      'Lato', sans-serif;
  --font-mono:      'Inconsolata', monospace;
}

body { background: var(--bg); color: var(--text); font-family: var(--font-body); font-weight: 300; line-height: 1.7; overflow-x: hidden; cursor: none; }
a { text-decoration: none; }

#cursor { position: fixed; width: 10px; height: 10px; background: var(--g); border-radius: 50%; pointer-events: none; z-index: 9999; transform: translate(-50%,-50%); transition: transform 0.12s, background 0.2s; }
#cursor-ring { position: fixed; width: 36px; height: 36px; border: 1.5px solid rgba(168,85,247,0.4); border-radius: 50%; pointer-events: none; z-index: 9998; transform: translate(-50%,-50%); transition: all 0.2s cubic-bezier(0.23,1,0.32,1); }
body:has(a:hover) #cursor { transform: translate(-50%,-50%) scale(2); background: var(--g2); }
body:has(a:hover) #cursor-ring { width: 52px; height: 52px; border-color: rgba(192,132,252,0.55); }

#progress { position: fixed; top: 0; left: 0; height: 3px; z-index: 200; background: linear-gradient(90deg, var(--g), var(--g2)); width: 0%; transition: width 0.1s linear; }

section { position: relative; z-index: 1; }

.nav-logo, .sb-logo { font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; color: var(--g); letter-spacing: 0.01em; font-style: italic; }
.nav-logo span, .sb-logo span { color: var(--text); font-style: normal; }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a { font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-family: var(--font-mono); position: relative; transition: color 0.25s; padding-bottom: 2px; }
.nav-links a::after { content: ''; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px; background: var(--g); transition: width 0.3s; border-radius: 1px; }
.nav-links a.active, .nav-links a:hover { color: var(--g2); }
.nav-links a.active::after, .nav-links a:hover::after { width: 100%; }

#hero { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 2rem 2rem 3rem; overflow: hidden;
  background: radial-gradient(ellipse 90% 65% at 20% 45%, rgba(88,28,135,0.28) 0%, transparent 62%), #06020e; }
.hero-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.28; }
.hero-orb-1 { width: 650px; height: 650px; background: radial-gradient(circle, #581c87, transparent 70%); top: -22%; left: -14%; animation: float1 15s ease-in-out infinite; }
.hero-orb-2 { width: 400px; height: 400px; background: radial-gradient(circle, #a855f7, transparent 70%); bottom: -12%; right: -8%; animation: float2 18s ease-in-out infinite; }
@keyframes float1 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(42px,28px)} }
@keyframes float2 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(-28px,-20px)} }
.hero-grid { position: absolute; inset: 0;
  background-image: linear-gradient(rgba(168,85,247,0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(168,85,247,0.06) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black, transparent); }

.hero-content { position: relative; z-index: 1; max-width: 900px; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(168,85,247,0.09); border: 1px solid var(--border2); padding: 6px 14px; border-radius: 100px; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; color: var(--g2); margin-bottom: 2rem; animation: fadeInDown 0.8s both; }
.badge-dot { width: 6px; height: 6px; background: var(--g2); border-radius: 50%; box-shadow: 0 0 10px var(--g); animation: pulse-dot 2s ease-in-out infinite; }
@keyframes pulse-dot { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.35;transform:scale(0.65)} }

h1 { font-family: var(--font-display); font-weight: 700; font-size: clamp(3rem, 8vw, 7.5rem); line-height: 0.92; letter-spacing: -0.02em; margin-bottom: 1.5rem; color: var(--text); animation: fadeInUp 0.9s 0.2s both; }
.h1-accent { color: var(--g2); display: block; font-style: italic; }
.hero-sub { font-size: clamp(1rem, 2vw, 1.15rem); color: var(--muted); max-width: 560px; margin-bottom: 2.5rem; animation: fadeInUp 0.9s 0.35s both; }
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; animation: fadeInUp 0.9s 0.5s both; }

.btn-primary { display: inline-flex; align-items: center; gap: 10px; background: var(--g); color: #06020e; border: none; padding: 14px 28px; border-radius: 6px; font-family: var(--font-body); font-weight: 700; font-size: 0.9rem; cursor: none; transition: transform 0.2s, box-shadow 0.2s; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(168,85,247,0.4); }
.btn-ghost { display: inline-flex; align-items: center; gap: 10px; background: transparent; color: var(--text); border: 1.5px solid var(--border2); padding: 14px 28px; border-radius: 6px; font-family: var(--font-body); font-weight: 700; font-size: 0.9rem; cursor: none; transition: background 0.2s, border-color 0.2s, transform 0.2s; }
.btn-ghost:hover { background: rgba(168,85,247,0.08); border-color: var(--g); transform: translateY(-2px); }

.hero-metrics { display: flex; gap: 3rem; margin-top: 4rem; padding-top: 2rem; border-top: 1px solid var(--border); animation: fadeInUp 0.9s 0.65s both; flex-wrap: wrap; }
.metric-item { display: flex; flex-direction: column; gap: 4px; }
.metric-val { font-family: var(--font-display); font-size: 2.2rem; font-weight: 700; color: var(--g2); line-height: 1; }
.metric-label { font-size: 0.7rem; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; font-family: var(--font-mono); }

.section-inner { max-width: 1100px; margin: 0 auto; padding: 6rem 2rem; }
.section-tag { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--g2); opacity: 0.8; margin-bottom: 0.75rem; }
.section-tag::before { content: '// '; }
h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 5vw, 3.8rem); line-height: 1.02; letter-spacing: -0.01em; margin-bottom: 1.25rem; color: var(--text); }
.section-lead { font-size: 1.05rem; color: var(--muted); max-width: 600px; margin-bottom: 3rem; line-height: 1.8; }

.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.8s cubic-bezier(0.23,1,0.32,1), transform 0.8s cubic-bezier(0.23,1,0.32,1); }
.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; }

#dream { background: var(--bg2); }
.dream-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.dream-text p { color: var(--muted); margin-bottom: 1.2rem; line-height: 1.85; }
.dream-text strong { color: var(--g2); font-weight: 600; }
.dream-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.dream-stat { background: var(--bg3); padding: 1.5rem; transition: background 0.3s; }
.dream-stat:hover { background: #140828; }
.dream-stat .val { font-family: var(--font-display); font-size: 2.4rem; font-weight: 700; color: var(--g2); line-height: 1; margin-bottom: 6px; }
.dream-stat .lbl { font-size: 0.75rem; color: var(--muted); font-family: var(--font-mono); }

#features { background: var(--bg); }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.feature-card { background: var(--bg3); padding: 2rem; position: relative; overflow: hidden; transition: background 0.3s; }
.feature-card:hover { background: #140828; }
.feature-card::before { display: none; }
.feature-num { font-family: var(--font-mono); font-size: 0.65rem; color: rgba(168,85,247,0.3); letter-spacing: 0.1em; margin-bottom: 1rem; }
.feature-icon { width: 40px; height: 40px; background: rgba(168,85,247,0.1); border: 1px solid var(--border2); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 1rem; color: var(--g2); margin-bottom: 1.2rem; }
.feature-card h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; margin-bottom: 0.5rem; color: var(--text); }
.feature-card p { font-size: 0.85rem; color: var(--muted); line-height: 1.7; }
.feature-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 1rem; }
.tag { font-family: var(--font-mono); font-size: 0.65rem; background: rgba(168,85,247,0.08); border: 1px solid var(--border); color: var(--g2); padding: 3px 8px; border-radius: 4px; }

#tech { background: var(--bg2); position: relative; }
#tech::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--border2), transparent); }
.tech-table-wrapper { overflow-x: auto; border: 1px solid var(--border); border-radius: 10px; background: var(--bg3); }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
thead { background: rgba(168,85,247,0.07); }
thead th { padding: 1rem 1.25rem; text-align: left; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--g2); font-weight: 500; border-bottom: 1px solid var(--border); }
tbody tr { border-bottom: 1px solid var(--border); transition: background 0.2s; }
tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: rgba(168,85,247,0.05); }
tbody td { padding: 1rem 1.25rem; color: var(--muted); }
tbody td:first-child { color: var(--text); font-family: var(--font-mono); font-size: 0.85rem; font-weight: 500; }

#partners { background: var(--bg); }
.partners-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.partner-card { background: var(--bg3); padding: 1.75rem 2rem; display: flex; align-items: center; gap: 1.25rem; transition: background 0.3s; }
.partner-card:hover { background: #140828; }
.partner-avatar { width: 48px; height: 48px; flex-shrink: 0; background: rgba(168,85,247,0.1); border: 1px solid var(--border2); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; font-size: 0.95rem; color: var(--g2); font-style: italic; }
.partner-name { font-family: var(--font-display); font-weight: 600; font-size: 1rem; margin-bottom: 3px; color: var(--text); }
.partner-desc { font-size: 0.8rem; color: var(--muted); line-height: 1.5; margin-bottom: 6px; }
.partner-country { font-family: var(--font-mono); font-size: 0.7rem; color: var(--g2); opacity: 0.7; }

.ticker-wrap { overflow: hidden; padding: 1rem 0; background: rgba(168,85,247,0.04); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.ticker-track { display: flex; gap: 4rem; white-space: nowrap; animation: ticker 32s linear infinite; }
.ticker-item { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(168,85,247,0.42); display: inline-flex; align-items: center; gap: 1rem; }
.ticker-item::before { content: '◆'; font-size: 0.5em; color: var(--g2); }
@keyframes ticker { from{transform:translateX(0)} to{transform:translateX(-50%)} }

footer { background: var(--bg2); border-top: 1px solid var(--border); padding: 3rem 2rem; text-align: center; }
.footer-logo { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; color: var(--g2); margin-bottom: 0.75rem; font-style: italic; }
footer p { color: var(--muted); font-size: 0.85rem; }
footer a { color: var(--g2); }
.footer-divider { width: 60px; height: 1px; background: var(--border2); margin: 1.5rem auto; }
.s-divider { height: 1px; background: linear-gradient(90deg, transparent, var(--border2), transparent); }

.sb-btn { background: transparent; border: 1.5px solid rgba(168,85,247,0.25); color: var(--g2); width: 36px; height: 36px; border-radius: 6px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .2s; flex-shrink: 0; }
.sb-btn:hover { background: rgba(168,85,247,0.1); }
.sb-btn svg { width: 16px; height: 16px; stroke: var(--g2); fill: none; stroke-width: 2; stroke-linecap: round; }
.sb-overlay { position: fixed; inset: 0; background: rgba(6,2,14,0.65); z-index: 998; opacity: 0; pointer-events: none; transition: opacity .3s; }
.sb-overlay.open { opacity: 1; pointer-events: all; }
.sb-drawer { position: fixed; top: 0; left: 0; bottom: 0; width: 280px; background: var(--bg2); border-right: 1px solid var(--border); z-index: 999; transform: translateX(-100%); transition: transform .32s cubic-bezier(0.23,1,0.32,1); display: flex; flex-direction: column; box-shadow: 4px 0 32px rgba(168,85,247,0.1); }
.sb-drawer.open { transform: translateX(0); }
.sb-header { display: flex; align-items: center; justify-content: space-between; padding: 0 1rem; height: 64px; border-bottom: 1px solid var(--border); }
.sb-close { background: transparent; border: none; color: var(--muted); cursor: pointer; font-size: 1.2rem; padding: 4px; }
.sb-body { flex: 1; overflow-y: auto; padding: 0.5rem 0; }
.sb-link { display: flex; align-items: center; gap: 12px; padding: 0.75rem 1.25rem; color: var(--muted); text-decoration: none; font-family: var(--font-body); font-size: 0.875rem; transition: background .2s, color .2s; position: relative; cursor: pointer; }
.sb-link:hover, .sb-link.active { background: rgba(168,85,247,0.07); color: var(--g2); }
.sb-link.active::before { content: ''; position: absolute; left: 0; top: 20%; bottom: 20%; width: 2px; background: var(--g); border-radius: 0 2px 2px 0; }
.sb-link.danger { color: rgba(220,38,38,0.6); }
.sb-link.danger:hover { background: rgba(220,38,38,0.05); color: #dc2626; }
.sb-link svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.75; flex-shrink: 0; }
.sb-badge { margin-left: auto; background: rgba(168,85,247,0.12); color: var(--g2); font-family: var(--font-mono); font-size: 0.65rem; padding: 2px 7px; border-radius: 20px; }
.sb-sep { height: 1px; background: var(--border); margin: 0.5rem 1.25rem; }
.sb-user { display: flex; align-items: center; gap: 10px; padding: 0.75rem 1.25rem; background: rgba(168,85,247,0.04); border-bottom: 1px solid var(--border); }
.sb-avatar { width: 28px; height: 28px; border-radius: 50%; background: rgba(168,85,247,0.12); border: 1.5px solid rgba(168,85,247,0.32); display: flex; align-items: center; justify-content: center; font-size: 0.7rem; color: var(--g2); font-family: var(--font-mono); flex-shrink: 0; }
.sb-username { font-size: 0.825rem; color: var(--text); font-weight: 500; }
.sb-username small { display: block; font-size: 0.7rem; color: var(--muted); font-weight: 300; }
.sb-footer { padding: 0.75rem 0; border-top: 1px solid var(--border); }

@keyframes fadeInDown { from{opacity:0;transform:translateY(-20px)} to{opacity:1;transform:translateY(0)} }
@keyframes fadeInUp { from{opacity:0;transform:translateY(30px)} to{opacity:1;transform:translateY(0)} }

@media (max-width: 768px) {
  .dream-layout { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  #cursor, #cursor-ring { display: none; }
  body { cursor: auto; }
}
@media (max-width: 480px) {
  #hero { padding: 8rem 2rem 4rem; }
  .section-inner { padding: 6rem 1.2rem; }
  .hero-ctas .btn-ghost { display: none; }
}
