/* ═══════════════════════════════════════════════
   NAWES.FR — Design System · Light Mode
   ═══════════════════════════════════════════════ */

/* ── TOKENS ── */
:root {
  --bg:       #f5f5fb;
  --surface:  #ffffff;
  --surface2: #f0f0f8;
  --border:   #e2e2f0;
  --text:     #0d0d1a;
  --muted:    #8484a0;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.07), 0 2px 6px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 32px rgba(0,0,0,0.10), 0 4px 12px rgba(0,0,0,0.05);

  /* Accent palette — légèrement saturée pour lisibilité sur blanc */
  --accent1: #6c5fe6;   /* violet */
  --accent2: #e8486c;   /* rose */
  --accent3: #1ab87a;   /* vert mint */
  --accent4: #e07a10;   /* ambre */
  --accent5: #2d8bef;   /* bleu */
}

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

/* ── BASE ── */
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Onest', sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── UTILITIES ── */
.text-gradient {
  background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  display: inline-block;
  padding-right: 0.1em; /* prevents italic/overflow clipping, like 'j' */
  padding-bottom: 0.15em;
  margin-bottom: -0.15em;
}



/* ── LAYOUT ── */
.wrapper {
  position: relative;
  z-index: 10;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ── HEADER ── */
header {
  padding: 2.5rem 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}

.logo {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.logo-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent3);
  box-shadow: 0 0 10px var(--accent3);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%       { transform: scale(1.5); opacity: 0.6; }
}

.badge {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--muted);
  background: var(--surface2);
  border: 1px solid var(--border);
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

/* ── HERO ── */
.hero {
  padding: 5rem 0;
  position: relative;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent1);
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.6s ease forwards 0.1s;
}

.hero-label::before {
  content: '';
  display: block;
  width: 20px;
  height: 1.5px;
  background: currentColor;
  border-radius: 2px;
}

.hero h1 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  font-size: clamp(2.6rem, 6.5vw, 5rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin-bottom: 1.8rem;
  color: var(--text);
  opacity: 0;
  animation: fadeUp 0.6s ease forwards 0.2s;
}

.hero h1 em {
  font-style: normal;
  font-weight: 300;
  color: var(--muted);
}

.hero p {
  font-size: 1.05rem;
  color: var(--muted);
  font-weight: 400;
  max-width: 440px;
  line-height: 1.75;
  opacity: 0;
  animation: fadeUp 0.6s ease forwards 0.3s;
}

/* ── TECH NETWORK DECO V3 (Cyber Circuit) ── */
.hero-deco {
  position: absolute;
  right: -5%;
  top: 50%;
  transform: translateY(-45%);
  width: 500px;
  height: 400px;
  opacity: 0;
  pointer-events: none;
  animation: fadeIn 1.5s ease forwards 0.5s;
  z-index: 0;
}

.network-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.tech-track {
  fill: none;
  stroke: #cbd5e1; /* Slightly darker and slightly blueish slate */
  stroke-width: 1.5;
  stroke-dasharray: 3 5; /* More visible dots, smaller gaps */
  opacity: 0.6;
}

.tech-stream {
  fill: none;
  stroke: url(#flow-grad);
  stroke-width: 2.5;
  stroke-linecap: round;
  filter: url(#glow-heavy);
  stroke-dasharray: 100 1500;
}

.s1 { animation: stream-flow 4s linear infinite; }
.s2 { animation: stream-flow 5s linear infinite 1.2s; }
.s3 { animation: stream-flow 3.5s linear infinite 0.5s; }
.s4 { animation: stream-flow 4.8s linear infinite 2s; }
.s5 { animation: stream-flow-short 2s linear infinite 1s; }
.s6 { animation: stream-flow-short 2.5s linear infinite 0.7s; }

@keyframes stream-flow {
  0% { stroke-dashoffset: 1000; opacity: 0; }
  10% { opacity: 1; stroke-dashoffset: 800; }
  90% { opacity: 1; }
  100% { stroke-dashoffset: -500; opacity: 0; }
}

@keyframes stream-flow-short {
  0% { stroke-dashoffset: 200; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { stroke-dashoffset: -100; opacity: 0; }
}

.tech-node {
  fill: var(--surface);
  stroke: #ea580c;
  stroke-width: 1.5;
  transform-box: fill-box;
  transform-origin: center;
}

.ping-1 { animation: tech-ping 3s ease-in-out infinite; }
.ping-2 { animation: tech-ping 3s ease-in-out infinite 0.6s; }
.ping-3 { animation: tech-ping 3s ease-in-out infinite 1.2s; }
.ping-4 { animation: tech-ping 3s ease-in-out infinite 1.8s; }
.ping-5 { animation: tech-ping 3s ease-in-out infinite 2.4s; }

@keyframes tech-ping {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 0px transparent); fill: var(--surface); }
  50% { transform: scale(1.6); filter: drop-shadow(0 0 6px #ea580c); fill: #fff1f2; }
}

/* ── SECTION TITLE ── */
.section-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.6s ease forwards 0.4s;
}

.section-header span {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--muted);
  white-space: nowrap;
}

.section-header::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ── PROJECT GRID ── */
.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.5s;
}

/* ── CARDS ── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  position: relative;
  overflow: hidden;
  transition:
    transform 0.25s cubic-bezier(.35,.6,.4,1),
    box-shadow 0.25s ease,
    border-color 0.25s ease;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

/* Soft color wash on hover */
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
  border-radius: inherit;
}

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

/* ─ Sizes ─ */
.card-large  { grid-column: span 7; min-height: 300px; }
.card-medium { grid-column: span 5; min-height: 300px; }
.card-small  { grid-column: span 4; min-height: 220px; }
.card-wide   { grid-column: span 8; min-height: 220px; }

/* ─ Per-card accent washes ─ */
.card-lunch::before     { background: radial-gradient(ellipse at top left,  rgba(108, 95, 230, 0.08), transparent 65%); }
.card-carrousel::before { background: radial-gradient(ellipse at top right, rgba(26, 184, 122, 0.08), transparent 65%); }
.card-proxy::before     { background: radial-gradient(ellipse at bottom left, rgba(224, 122, 16, 0.08), transparent 65%); }
.card-events::before    { background: radial-gradient(ellipse at bottom right, rgba(45, 139, 239, 0.08), transparent 65%); }
.card-goodies::before   { background: radial-gradient(ellipse at top right, rgba(232, 72, 108, 0.08), transparent 65%); }
.card-coming::before    { background: none; }

.card-lunch:hover     { border-color: rgba(108, 95, 230, 0.3); }
.card-carrousel:hover { border-color: rgba(26, 184, 122, 0.3); }
.card-proxy:hover     { border-color: rgba(224, 122, 16, 0.3); }
.card-events:hover    { border-color: rgba(45, 139, 239, 0.3); }
.card-goodies:hover   { border-color: rgba(232, 72, 108, 0.3); }

/* ─ Tags ─ */
.card-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.28rem 0.72rem;
  border-radius: 999px;
  border: 1px solid;
  width: fit-content;
  font-weight: 500;
}

.tag-active    { color: var(--accent3); border-color: rgba(26,184,122,0.25); background: rgba(26,184,122,0.07); }
.tag-lunch     { color: var(--accent1); border-color: rgba(108,95,230,0.25); background: rgba(108,95,230,0.07); }
.tag-carrousel { color: var(--accent3); border-color: rgba(26,184,122,0.25); background: rgba(26,184,122,0.07); }
.tag-proxy     { color: var(--accent4); border-color: rgba(224,122,16,0.25); background: rgba(224,122,16,0.07); }
.tag-events    { color: var(--accent5); border-color: rgba(45,139,239,0.25); background: rgba(45,139,239,0.07); }
.tag-goodies   { color: var(--accent2); border-color: rgba(232,72,108,0.25); background: rgba(232,72,108,0.07); }
.tag-coming    { color: var(--muted);   border-color: var(--border);          background: var(--surface2); }

.tag-dot { color: inherit; }

/* ─ Card internals ─ */
.card-icon {
  font-size: 2.2rem;
  line-height: 1;
}

.card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.card-title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--text);
}

.card-desc {
  font-size: 0.875rem;
  color: var(--muted);
  font-weight: 400;
  line-height: 1.65;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-meta {
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.card-arrow {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: all 0.25s ease;
  color: var(--muted);
}

.card:hover .card-arrow {
  transform: translate(2px, -2px);
}

.card-lunch:hover     .card-arrow { color: var(--accent1); border-color: var(--accent1); background: rgba(108,95,230,0.07); }
.card-carrousel:hover .card-arrow { color: var(--accent3); border-color: var(--accent3); background: rgba(26,184,122,0.07); }
.card-proxy:hover     .card-arrow { color: var(--accent4); border-color: var(--accent4); background: rgba(224,122,16,0.07); }
.card-events:hover    .card-arrow { color: var(--accent5); border-color: var(--accent5); background: rgba(45,139,239,0.07); }
.card-goodies:hover   .card-arrow { color: var(--accent2); border-color: var(--accent2); background: rgba(232,72,108,0.07); }

/* ─ Coming soon ─ */
.card-coming {
  opacity: 0.55;
  cursor: default;
  background: var(--surface2);
}
.card-coming:hover {
  transform: none;
  box-shadow: var(--shadow-sm);
  border-color: var(--border);
}
.card-coming:hover::before { opacity: 0; }

/* ── STATUS BAR ── */
.status-bar {
  margin-top: 2.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.9rem 1.4rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  opacity: 0;
  animation: fadeUp 0.6s ease forwards 0.7s;
}

.status-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  color: var(--muted);
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent3);
  animation: pulse 2.4s ease-in-out infinite;
}

.status-bar-divider {
  width: 1px;
  height: 14px;
  background: var(--border);
}

.status-count {
  margin-left: auto;
  font-size: 0.75rem;
  color: var(--muted);
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* ── FOOTER ── */
footer {
  padding: 2rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  margin-top: 4rem;
  opacity: 0;
  animation: fadeIn 0.8s ease forwards 0.9s;
}

footer p, footer span {
  font-size: 0.78rem;
  color: var(--muted);
}

footer span {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .card-large, .card-medium { grid-column: span 12; min-height: 260px; }
  .card-small, .card-wide   { grid-column: span 6; }
}

@media (max-width: 600px) {
  .card-large, .card-medium,
  .card-small, .card-wide   { grid-column: span 12; min-height: 200px; }

  .hero h1 { font-size: 2.6rem; }
  .hero-deco { display: none; }

  .status-bar { flex-wrap: wrap; gap: 0.8rem; }
  .status-count { margin-left: 0; }

  footer { flex-direction: column; gap: 0.75rem; text-align: center; }
}

/* ── BACKGROUND ORBS (CLEAN TECH) ── */
.bg-orbs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px); /* Keep it very soft but with enough base pigment */
}

.orb-1 {
  width: 650px; height: 650px;
  top: -100px; left: -100px;
  background: radial-gradient(circle, rgba(45, 139, 239, 0.22), transparent 70%); /* Stronger Blue */
  animation: orb1-anim 25s ease-in-out infinite alternate;
}

.orb-2 {
  width: 550px; height: 550px;
  bottom: -150px; right: -50px;
  background: radial-gradient(circle, rgba(26, 184, 122, 0.18), transparent 70%); /* Stronger Green */
  animation: orb2-anim 30s ease-in-out infinite alternate 2s;
}

.orb-3 {
  width: 400px; height: 400px;
  top: 30%; right: 5%;
  background: radial-gradient(circle, rgba(45, 139, 239, 0.10), transparent 70%);
  animation: orb3-anim 35s ease-in-out infinite alternate 4s;
}

@keyframes orb1-anim {
  0% { transform: scale(0.9) translate(0, 0); opacity: 0; }
  10% { opacity: 0.8; }
  100% { transform: scale(1.1) translate(40px, 40px); opacity: 1; }
}

@keyframes orb2-anim {
  0% { transform: scale(1) translate(0, 0); opacity: 0; }
  15% { opacity: 0.7; }
  100% { transform: scale(1.2) translate(-30px, -50px); opacity: 0.9; }
}

@keyframes orb3-anim {
  0% { transform: scale(1) translate(0, 0); opacity: 0; }
  20% { opacity: 0.6; }
  100% { transform: scale(1.15) translate(20px, -30px); opacity: 0.8; }
}

/* ── SHIMMER ── */
.card-shimmer {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

/* Card children above shimmer */
.card > *:not(.card-shimmer) {
  position: relative;
  z-index: 2;
}

/* Disable JS tilt transition interference during tilt */
.card {
  will-change: transform;
  transform-style: preserve-3d;
}

/* ── Staggered entrance (JS adds .visible) ── */
header,
.hero,
.section-header,
.grid,
.status-bar {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

/* Override: cards inside grid inherit entrance from .grid,
   but also get their own stagger from JS */
.card {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.5s ease,
    transform 0.5s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

header.visible,
.hero.visible,
.section-header.visible,
.grid.visible,
.status-bar.visible,
.card.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Keep coming cards at reduced opacity even when visible */
.card-coming.visible {
  opacity: 0.55;
}
