/* =========================================
   FRACTYS — Styles officiels
   Version : 1.13 (Header Fix + Compact Hero)
   Auteur : Marc Cedrych
   ========================================= */

/* ------------ VARIABLES ------------ */
:root {
  --bg: #000;
  --fg: #e6fff7;
  --muted: #7abbc6;
  --accent: #7fffd4;
  --card: #0f1016;
  --nav-h: 58px;
}

/* ------------ RESET GLOBAL ------------ */
* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: ui-sans-serif, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  color: var(--fg);
  background: var(--bg);
  scroll-behavior: smooth;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ------------ NAVIGATION ------------ */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 22px;
  background: rgba(0, 0, 0, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 50;
}

.brand { display: flex; align-items: center; gap: 8px; }
.brand img {
  height: 24px;
  width: 24px;
  border-radius: 50%;
  border: 1px solid var(--accent);
}
.brand span {
  font-weight: 600;
  letter-spacing: .3px;
}

nav .links a {
  margin-left: 16px;
  color: var(--accent);
  text-decoration: none;
  opacity: .95;
  transition: 0.2s ease;
}
nav .links a:hover {
  opacity: 1;
  text-shadow: 0 0 6px var(--accent);
}

/* ------------ HERO ------------ */
.hero {
  position: relative;
  height: 280px;
  display: grid;
  gap: 6px;
  justify-content: center;
  align-items: flex-end;
  text-align: center;
  overflow: hidden;
  z-index: 1;
  margin-top: var(--nav-h); /* corrige le chevauchement du header */
}

.fractal-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}
.fractal-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
  filter: brightness(1.8) contrast(1.4) saturate(1.2);
  animation: fractusFloat 30s ease-in-out infinite alternate;
}
.fractal-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.15) 50%, rgba(0, 0, 0, 0.98) 100%);
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
  pointer-events: none;
  padding-bottom: 20px;
}

.hero-inner h1 {
  font-size: 48px;
  margin: 0;
  color: #7fffd4;
  opacity: 0.15;
  text-shadow:
    0 0 30px rgba(127,255,212,0.6),
    0 0 90px rgba(127,255,212,0.35),
    0 0 160px rgba(127,255,212,0.2);
  transition: opacity 0.8s ease;
}
.hero-inner h1:hover { opacity: 0.25; }

.hero-inner .sub {
  font-size: 18px;
  opacity: 0.25;
  color: #9fffe0;
  text-shadow:
    0 0 30px rgba(127,255,212,0.45),
    0 0 80px rgba(127,255,212,0.35);
}

/* ------------ ANIMATIONS ------------ */
@keyframes fractusFloat {
  0% { transform: translateY(0) scale(1); }
  100% { transform: translateY(-8px) scale(1.03); }
}

/* ------------ CONTAINER ------------ */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 24px 24px 48px;
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #000;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
  width: 100%;
}

/* ------------ CARTES ------------ */
.card {
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 10px 30px rgba(0, 255, 255, 0.08);
  transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
  text-align: center;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 25px rgba(127, 255, 212, 0.25);
}
.card h3 {
  color: var(--accent);
  font-weight: 600;
  margin: 0 0 8px;
}
.card p {
  font-size: 15px;
  line-height: 1.5;
  color: var(--fg);
}
.card a {
  text-align: center;
  display: inline-block;
  margin-left: auto;
  margin-right: auto;
}

/* ------------ SOCIAL ICONS ------------ */
.social-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 26px;
  margin-top: 18px;
}
.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(0, 255, 200, 0.05);
  color: #7fffd4;
  transition: all 0.3s ease;
  box-shadow: 0 0 10px rgba(127, 255, 212, 0.15) inset;
}
.social-icons a svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
  flex-shrink: 0;
}
.social-icons a:hover {
  transform: scale(1.1);
  background: rgba(127, 255, 212, 0.15);
  box-shadow:
    0 0 18px rgba(127, 255, 212, 0.45),
    inset 0 0 12px rgba(127, 255, 212, 0.25);
  color: #aaffee;
  text-shadow: 0 0 8px rgba(127,255,212,0.4);
}

/* ------------ BOUTONS ------------ */
.btn {
  display: inline-block;
  padding: 10px 16px;
  border: 1px solid var(--accent);
  color: var(--accent);
  background: rgba(127, 255, 212, 0.08);
  border-radius: 8px;
  font-size: 14px;
  letter-spacing: 0.3px;
  transition: all 0.25s ease;
}
.btn:hover {
  background: var(--accent);
  color: #000;
  box-shadow: 0 0 20px rgba(127, 255, 212, 0.55);
  filter: brightness(1.2);
}

/* ===== AIRDROP BANNER CLEAN ===== */
.airdrop-banner.clean {
  background: radial-gradient(circle at center, rgba(0, 20, 20, 0.35), rgba(0, 0, 0, 1) 80%);
  padding: 60px 0 80px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
  position: relative;
}

.airdrop-banner.clean::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 255, 180, 0.05), rgba(0, 0, 0, 1) 90%);
  z-index: 0;
}

.airdrop-banner.clean .airdrop-content {
  position: relative;
  z-index: 2;
  max-width: 650px;
  padding: 30px;
  background: rgba(15, 18, 22, 0.8);
  border-radius: 18px;
  border: 1px solid rgba(127, 255, 212, 0.12);
  box-shadow: 0 0 25px rgba(127, 255, 212, 0.1);
  backdrop-filter: blur(8px);
}

.airdrop-banner.clean h2 {
  color: #7fffd4;
  font-size: 1.6rem;
  margin-bottom: 12px;
  text-shadow: 0 0 8px rgba(127, 255, 212, 0.4);
}

.airdrop-banner.clean p {
  color: #bfffea;
  font-size: 1rem;
  margin-bottom: 22px;
  line-height: 1.5;
}


/* ------------ FOOTER ------------ */
footer {
  text-align: center;
  color: #9ff;
  font-size: 0.9rem;
  opacity: 0.85;
  margin-top: 60px;
  padding-top: 15px;
  border-top: 1px solid rgba(0, 255, 180, 0.25);
  width: 100%;
  position: relative;
  z-index: 10;
  background: #000;
}

/* ------------ RESPONSIVE ------------ */
@media (max-width: 700px) {
  .hero { height: 200px; margin-top: var(--nav-h); }
  .hero-inner h1 { font-size: 34px; }
  .container { padding-top: 24px; }
  nav {
    flex-direction: column;
    height: auto;
    padding: 10px 0;
  }
}

/* ===== OVERRIDE GLOBAL HERO/BG POUR FRACTUS ACCESS ===== */
.fractus-access .fractal-bg,
.fractus-access .hero,
.fractus-access .hero-inner {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* ------------ AIRDROP BANNER ------------ */
.airdrop-banner {
  text-align: center;
  padding: 80px 20px;
  margin-top: 40px;
  background: radial-gradient(circle at center, rgba(0, 255, 180, 0.08), rgba(0, 0, 0, 1) 90%);
  border-top: 1px solid rgba(127, 255, 212, 0.15);
  border-bottom: 1px solid rgba(127, 255, 212, 0.1);
  box-shadow: 0 0 40px rgba(127, 255, 212, 0.15) inset;
}
.banner-content h2 {
  color: var(--accent);
  margin-bottom: 8px;
  font-size: 1.8rem;
  text-shadow: 0 0 20px rgba(127,255,212,0.4);
}
.banner-content p {
  color: var(--fg);
  opacity: 0.85;
  margin-bottom: 24px;
  font-size: 1rem;
}
.banner-icon {
  font-size: 2.5rem;
  color: var(--accent);
  animation: spinSlow 12s linear infinite;
  margin-bottom: 16px;
  display: inline-block;
}
@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
/* ===== OFFICIAL LINKS CARD WITH X FEED ===== */
.links-card {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.links-card .social-icons {
  display: flex;
  gap: 28px;
  margin-bottom: 20px;
}

.links-card .icon-link {
  font-size: 1.8rem;
  color: #7fffd4;
  background: rgba(127, 255, 212, 0.05);
  border-radius: 50%;
  padding: 10px;
  transition: all 0.25s ease;
}

.links-card .icon-link:hover {
  background: rgba(127, 255, 212, 0.15);
  transform: scale(1.1);
  box-shadow: 0 0 15px rgba(127, 255, 212, 0.25);
}

/* Intégration propre du flux X */
.x-feed {
  width: 100%;
  max-width: 350px;
  margin-top: 8px;
  background: rgba(10, 15, 15, 0.6);
  border-radius: 12px;
  border: 1px solid rgba(127, 255, 212, 0.1);
  box-shadow: 0 0 20px rgba(127, 255, 212, 0.1);
  overflow: hidden;
}

/* ===== LINKS CARD + X TIMELINE ===== */
.links-card { display: flex; flex-direction: column; align-items: center; }
.links-card .social-icons { gap: 26px; margin-bottom: 14px; }
.links-card .x-timeline {
  width: 100%;
  max-width: 380px;
  margin: 6px auto 0;
  border-radius: 12px;
  border: 1px solid rgba(127,255,212,0.10);
  box-shadow: 0 0 22px rgba(127,255,212,0.12);
  overflow: hidden; /* coupe proprement si l'iframe dépasse */
}
.links-card .x-timeline iframe { display: block; width: 100% !important; }
@media (max-width: 700px) {
  .links-card .x-timeline { max-width: 100%; }
}
/* ===== LINKS CARD + X TIMELINE ===== */
.links-card {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.links-card .x-timeline {
  width: 100%;
  max-width: 380px;
  min-height: 420px;
  margin-top: 12px;
  border: 1px solid rgba(127,255,212,0.1);
  border-radius: 12px;
  box-shadow: 0 0 22px rgba(127,255,212,0.12);
  overflow: hidden;
}

.links-card .x-timeline iframe {
  width: 100% !important;
  border-radius: 12px;
}

@media (max-width: 700px) {
  .links-card .x-timeline { max-width: 100%; }
}



