/* =========================================
   LE MONDE D'ACHILLE — FEUILLE DE STYLE
   Style : Fun & Futuriste 🚀
   ========================================= */

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

:root {
  --cyan:    #00f5ff;
  --purple:  #b000ff;
  --pink:    #ff0080;
  --green:   #00ff88;
  --yellow:  #ffe000;
  --orange:  #ff6600;
  --dark:    #05050f;
  --dark2:   #0b0b22;
  --card-bg: rgba(8, 8, 35, 0.88);
}

/* ===== BODY ===== */
body {
  background: radial-gradient(ellipse at 60% 0%, #0d0728 0%, #050510 60%);
  background-attachment: fixed;
  color: #dde0ff;
  font-family: 'Exo 2', 'Segoe UI', sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Orbitron', monospace;
  letter-spacing: 0.04em;
}

/* ===== NAVBAR ===== */
.site-nav {
  background: rgba(5, 5, 20, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 245, 255, 0.18);
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 200;
}

.site-nav .logo {
  font-family: 'Orbitron', monospace;
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--cyan);
  text-shadow: 0 0 12px var(--cyan), 0 0 30px rgba(0,245,255,0.3);
  text-decoration: none;
  letter-spacing: 0.1em;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--cyan);
  text-decoration: none;
  font-family: 'Orbitron', monospace;
  font-size: 0.78rem;
  font-weight: 600;
  border: 1px solid rgba(0, 245, 255, 0.5);
  padding: 0.45rem 1.1rem;
  border-radius: 30px;
  transition: all 0.25s;
  letter-spacing: 0.08em;
}
.back-btn:hover {
  background: var(--cyan);
  color: var(--dark);
  box-shadow: 0 0 18px var(--cyan);
}

/* ===== HOME ===== */
.home-hero {
  min-height: calc(100vh - 65px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem 2rem;
  text-align: center;
}

.home-title {
  font-size: clamp(2.2rem, 7vw, 4.5rem);
  font-weight: 900;
  background: linear-gradient(135deg, var(--cyan) 0%, var(--purple) 50%, var(--pink) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.4rem;
  animation: glow-title 3s ease-in-out infinite;
}

@keyframes glow-title {
  0%, 100% { filter: drop-shadow(0 0 8px rgba(0,245,255,0.5)); }
  50%       { filter: drop-shadow(0 0 22px rgba(0,245,255,0.9)); }
}

.home-subtitle {
  color: rgba(180, 185, 255, 0.65);
  font-size: 1.05rem;
  margin-bottom: 3rem;
  letter-spacing: 0.05em;
}

/* ===== TILES GRILLE ACCUEIL ===== */
.tiles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 780px;
  width: 100%;
}

.tile {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 4/3;
  text-decoration: none;
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid rgba(255,255,255,0.08);
}
.tile:hover { transform: translateY(-6px) scale(1.02); }

.tile-bg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.38) saturate(0.7);
  transition: filter 0.35s;
}
.tile:hover .tile-bg { filter: brightness(0.5) saturate(1.3); }

.tile-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(0,0,10,0.85) 0%, transparent 60%);
}

.tile-icon { font-size: 2.8rem; margin-bottom: 0.5rem; line-height: 1; }
.tile-name {
  font-family: 'Orbitron', monospace;
  font-size: clamp(0.95rem, 2.5vw, 1.3rem);
  font-weight: 700;
  text-align: center;
  text-shadow: 0 0 18px currentColor;
}

.tile-jeux  { box-shadow: 0 0 18px rgba(0,245,255,0.25); }
.tile-jeux:hover  { box-shadow: 0 0 40px rgba(0,245,255,0.5); }
.tile-jeux  .tile-overlay { color: var(--cyan); }
.tile-jeux  .tile-name { text-shadow: 0 0 20px var(--cyan); }

.tile-musique  { box-shadow: 0 0 18px rgba(255,0,128,0.25); }
.tile-musique:hover  { box-shadow: 0 0 40px rgba(255,0,128,0.5); }
.tile-musique  .tile-overlay { color: var(--pink); }
.tile-musique  .tile-name { text-shadow: 0 0 20px var(--pink); }

.tile-lego  { box-shadow: 0 0 18px rgba(255,224,0,0.25); }
.tile-lego:hover  { box-shadow: 0 0 40px rgba(255,224,0,0.5); }
.tile-lego  .tile-overlay { color: var(--yellow); }
.tile-lego  .tile-name { text-shadow: 0 0 20px var(--yellow); }

.tile-anime  { box-shadow: 0 0 18px rgba(0,255,136,0.25); }
.tile-anime:hover  { box-shadow: 0 0 40px rgba(0,255,136,0.5); }
.tile-anime  .tile-overlay { color: var(--green); }
.tile-anime  .tile-name { text-shadow: 0 0 20px var(--green); }

.tile-cuisine  { box-shadow: 0 0 18px rgba(255,102,0,0.25); }
.tile-cuisine:hover  { box-shadow: 0 0 40px rgba(255,102,0,0.5); }
.tile-cuisine  .tile-overlay { color: var(--orange); }
.tile-cuisine  .tile-name { text-shadow: 0 0 20px var(--orange); }

.tile-jeuxsociete  { box-shadow: 0 0 18px rgba(176,0,255,0.25); }
.tile-jeuxsociete:hover  { box-shadow: 0 0 40px rgba(176,0,255,0.5); }
.tile-jeuxsociete  .tile-overlay { color: var(--purple); }
.tile-jeuxsociete  .tile-name { text-shadow: 0 0 20px var(--purple); }

/* ===== HERO SECTION PAGES ===== */
.section-hero {
  position: relative;
  min-height: 38vh;
  display: flex;
  align-items: flex-end;
  padding: 2rem 2rem 2.5rem;
  overflow: hidden;
}

.section-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: blur(4px) brightness(0.25) saturate(1.2);
}

.section-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5,5,15,0.97) 0%, transparent 70%);
}

.section-hero-content {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.section-label {
  font-size: 0.72rem;
  font-family: 'Orbitron', monospace;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  opacity: 0.8;
}

.section-title {
  font-size: clamp(2rem, 5.5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.1;
  text-shadow: 0 0 30px currentColor;
}

.section-tagline {
  font-size: 1rem;
  max-width: 550px;
  margin-top: 0.7rem;
  opacity: 0.8;
}

/* ===== CONTENU ===== */
.section-content {
  padding: 2.5rem 1.5rem 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* ===== GRILLE CARTES ===== */
.items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

/* ===== CARTE ITEM ===== */
.item-card {
  background: var(--card-bg);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.07);
  transition: transform 0.3s, box-shadow 0.3s;
  animation: fadeUp 0.4s ease both;
}
.item-card:hover { transform: translateY(-5px); }

.item-card:nth-child(1) { animation-delay: 0.05s; }
.item-card:nth-child(2) { animation-delay: 0.12s; }
.item-card:nth-child(3) { animation-delay: 0.19s; }
.item-card:nth-child(4) { animation-delay: 0.26s; }
.item-card:nth-child(5) { animation-delay: 0.33s; }

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

.card-img-wrap {
  position: relative;
  height: 210px;
  overflow: hidden;
  background: linear-gradient(135deg, #0d0a28, #1a0835);
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-img-wrap .fallback-emoji {
  font-size: 4rem;
  opacity: 0.3;
  pointer-events: none;
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.4s;
  position: absolute;
  inset: 0;
}
.item-card:hover .card-img { transform: scale(1.06); }

.card-body { padding: 1.4rem 1.4rem 1.6rem; }

.card-title {
  font-family: 'Orbitron', monospace;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.7rem;
}

.card-desc {
  font-size: 0.9rem;
  line-height: 1.7;
  opacity: 0.85;
  margin-bottom: 0.9rem;
}

/* ===== ENCADRÉS INFOS & ASTUCES ===== */
.info-box {
  border-left: 3px solid;
  border-radius: 0 8px 8px 0;
  padding: 0.85rem 1rem;
  margin: 0.9rem 0;
  background: rgba(0,0,0,0.35);
  font-size: 0.875rem;
  line-height: 1.65;
}

.info-box .box-label {
  font-family: 'Orbitron', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.55rem;
  font-weight: 700;
}

.info-box ul {
  list-style: none;
  padding: 0;
}
.info-box ul li {
  padding: 0.2rem 0 0.2rem 1.3rem;
  position: relative;
}
.info-box ul li::before {
  content: '▶';
  position: absolute;
  left: 0;
  font-size: 0.55rem;
  top: 0.45rem;
}

/* ===== VIDEO EMBED ===== */
.video-wrap {
  margin: 1rem 0;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  background: rgba(0,0,0,0.5);
  border: 1px solid rgba(0,245,255,0.2);
}
.video-wrap iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
}
.video-label {
  font-family: 'Orbitron', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* ===== BADGES ===== */
.tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.9rem; }
.tag {
  font-family: 'Orbitron', monospace;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 0.22rem 0.7rem;
  border-radius: 20px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.15);
}

/* ===== THÈMES COULEURS PAR SECTION ===== */
/* Jeux */
.theme-jeux .section-title,
.theme-jeux .card-title,
.theme-jeux .section-label { color: var(--cyan); }
.theme-jeux .item-card { border-color: rgba(0,245,255,0.15); }
.theme-jeux .item-card:hover { box-shadow: 0 8px 32px rgba(0,245,255,0.18); border-color: rgba(0,245,255,0.35); }
.theme-jeux .info-box.facts { border-color: var(--cyan); }
.theme-jeux .info-box.facts .box-label { color: var(--cyan); }
.theme-jeux .info-box.facts ul li::before { color: var(--cyan); }
.theme-jeux .info-box.tips { border-color: var(--purple); }
.theme-jeux .info-box.tips .box-label { color: var(--purple); }
.theme-jeux .info-box.tips ul li::before { color: var(--purple); }

/* Musique */
.theme-musique .section-title,
.theme-musique .card-title,
.theme-musique .section-label { color: var(--pink); }
.theme-musique .item-card { border-color: rgba(255,0,128,0.15); }
.theme-musique .item-card:hover { box-shadow: 0 8px 32px rgba(255,0,128,0.18); border-color: rgba(255,0,128,0.35); }
.theme-musique .info-box.facts { border-color: var(--pink); }
.theme-musique .info-box.facts .box-label { color: var(--pink); }
.theme-musique .info-box.facts ul li::before { color: var(--pink); }
.theme-musique .info-box.tips { border-color: var(--purple); }
.theme-musique .info-box.tips .box-label { color: var(--purple); }
.theme-musique .info-box.tips ul li::before { color: var(--purple); }

/* Lego */
.theme-lego .section-title,
.theme-lego .card-title,
.theme-lego .section-label { color: var(--yellow); }
.theme-lego .item-card { border-color: rgba(255,224,0,0.15); }
.theme-lego .item-card:hover { box-shadow: 0 8px 32px rgba(255,224,0,0.18); border-color: rgba(255,224,0,0.35); }
.theme-lego .info-box.facts { border-color: var(--yellow); }
.theme-lego .info-box.facts .box-label { color: var(--yellow); }
.theme-lego .info-box.facts ul li::before { color: var(--yellow); }
.theme-lego .info-box.tips { border-color: var(--orange); }
.theme-lego .info-box.tips .box-label { color: var(--orange); }
.theme-lego .info-box.tips ul li::before { color: var(--orange); }

/* Anime */
.theme-anime .section-title,
.theme-anime .card-title,
.theme-anime .section-label { color: var(--green); }
.theme-anime .item-card { border-color: rgba(0,255,136,0.15); }
.theme-anime .item-card:hover { box-shadow: 0 8px 32px rgba(0,255,136,0.18); border-color: rgba(0,255,136,0.35); }
.theme-anime .info-box.facts { border-color: var(--green); }
.theme-anime .info-box.facts .box-label { color: var(--green); }
.theme-anime .info-box.facts ul li::before { color: var(--green); }
.theme-anime .info-box.tips { border-color: var(--cyan); }
.theme-anime .info-box.tips .box-label { color: var(--cyan); }
.theme-anime .info-box.tips ul li::before { color: var(--cyan); }

/* ===== FOOTER ===== */
.site-footer {
  text-align: center;
  padding: 2rem;
  color: rgba(180, 185, 255, 0.28);
  font-size: 0.8rem;
  border-top: 1px solid rgba(255,255,255,0.04);
  margin-top: 2rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {
  .tiles-grid { grid-template-columns: 1fr; max-width: 360px; }
  .tile { aspect-ratio: 16/9; }
  .items-grid { grid-template-columns: 1fr; }
  .site-nav { padding: 0.8rem 1rem; }
  .section-hero { min-height: 28vh; }
}

@media (min-width: 601px) and (max-width: 900px) {
  .tiles-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .items-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
}

/* ===== SCANLINE EFFECT (déco futuriste) ===== */
.section-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    rgba(0,0,0,0) 0px,
    rgba(0,0,0,0) 3px,
    rgba(0,0,0,0.12) 3px,
    rgba(0,0,0,0.12) 4px
  );
  pointer-events: none;
  z-index: 1;
}
