@import url('https://fonts.googleapis.com/css2?family=Baskervville:ital@0;1&family=Cedarville+Cursive&family=IM+Fell+English:ital@0;1&family=Pacifico&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Baskervville:ital@0;1&family=Bebas+Neue&family=Cedarville+Cursive&family=IM+Fell+English:ital@0;1&family=Pacifico&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Sofia+Sans:wght@400;700&display=swap');

:root {
  /* Palette Astrolune */
  --bg: #C5D6FB;      /* light blue */
  --ink: #21295C;     /* dark navy for text */
  --muted: #5e6a79;   /* keep muted for readability */
  --panel: #21295C;   /* dark background panels */
  --accent: #C4B0FF;  /* lavender accent */
  --white: #ffffff;
  --yellow: #FFE347;
  --maxw: 1100px;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

/* ===== FOND COSMIQUE GLOBAL ===== */
.cosmic-bg {
  position: fixed;
  inset: 0;
  z-index: -10;
  overflow: hidden;
  isolation: isolate;
}

.cosmic-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(1200px 600px at 80% 10%, rgba(196,176,255,.25), transparent 60%),
    radial-gradient(900px 500px at 15% 20%, rgba(111,86,255,.22), transparent 55%),
    linear-gradient(180deg, #1a1740 0%, #151233 40%, #0e0b24 100%);
}

/* Étoiles fixes qui bougent lentement */
.cosmic-bg .stars {
  position: absolute;
  inset: 0;
  background-repeat: repeat;
  background-image:
    radial-gradient(2px 2px at 20% 30%, rgba(255,255,255,.9) 40%, transparent 41%),
    radial-gradient(1px 1px at 70% 60%, rgba(255,255,255,.8) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 40% 80%, rgba(255,255,255,.85) 50%, transparent 51%),
    radial-gradient(1px 1px at 85% 25%, rgba(255,255,255,.8) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 10% 70%, rgba(255,255,255,.85) 50%, transparent 51%);
  background-size: 400px 400px, 420px 420px, 360px 360px, 500px 500px, 380px 380px;
  animation: driftStars 46s linear infinite;
  opacity: .9;
}

/* Petites étoiles qui scintillent */
.cosmic-bg .twinkles {
  position: absolute;
  inset: 0;
  background-repeat: repeat;
  background-image:
    radial-gradient(2px 2px at 30% 40%, rgba(255,255,255,1) 40%, transparent 41%),
    radial-gradient(2px 2px at 60% 20%, rgba(255,255,255,1) 40%, transparent 41%),
    radial-gradient(2px 2px at 80% 75%, rgba(255,255,255,1) 40%, transparent 41%);
  background-size: 520px 520px, 600px 600px, 480px 480px;
  animation: twinkle 2.6s ease-in-out infinite;
  opacity: .7;
  mix-blend-mode: screen;
}

/* Étoile filante */
.cosmic-bg .shooting {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.cosmic-bg .shooting::before {
  content: "";
  position: absolute;
  top: 22%;
  left: -12%;
  width: 160px;
  height: 2px;
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, #fff 40%, rgba(255,255,255,0) 100%);
  border-radius: 2px;
  filter: drop-shadow(0 0 6px rgba(255,255,255,.95));
  transform: rotate(11deg);
  animation: shooting 7s cubic-bezier(.2,.6,.2,1) infinite;
}

/* ===== Animations ===== */
@keyframes driftStars {
  0% { transform: translateY(0) }
  100% { transform: translateY(-40px) }
}

@keyframes twinkle {
  0%, 100% { opacity: .35; transform: scale(1) }
  50% { opacity: 1; transform: scale(1.07) }
}

@keyframes shooting {
  0%   { transform: translate3d(0,0,0) rotate(12deg); opacity:0 }
  8%   { opacity:1 }
  40%  { transform: translate3d(120vw, 22vh, 0) rotate(12deg); opacity:0 }
  100% { opacity:0 }
}

/* Désactive les animations si "réduire les mouvements" est activé */
@media (prefers-reduced-motion: reduce) {
  .cosmic-bg .stars,
  .cosmic-bg .twinkles,
  .cosmic-bg .shooting::before {
    animation: none !important;
  }
}

/* ===== HEADER ===== */
header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(197, 214, 251, 0.85); /* ta couleur bleue avec transparence */
  backdrop-filter: saturate(120%) blur(6px); /* effet verre */
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.container{max-width:var(--maxw);margin-inline:auto;padding:14px 20px;}
header .container{padding:24px 20px;}
.header-inner{display:flex;align-items:center;justify-content:space-between;gap:20px}
.brand{display:flex;align-items:center;gap:14px;}
.brand img{height:80px;width:auto;display:block}
nav ul{list-style:none;margin:0;padding:0;display:flex;gap:32px}
nav a{color:#20304F;text-decoration:none;font-weight:600;font-size:18px}
nav a:hover{opacity:.9;text-decoration:underline}
@media (max-width: 980px){
  nav a{font-size:16px}
}

/* Masquer la croix par défaut (desktop) */
.menu-close { display: none; }

/* ===== HERO ===== */
.hero {
  color: white;
  padding: 60px 20px;
}
.hero-inner {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 200px;
}
.hero-box { width: 356px; max-width: 22%; }
.hero-inner img {
  width: 400px;
  height: auto;
  display: block;
  align-self: center;
  margin-top: 0;
}
/* Taille spécifique pour l'image du hero (desktop) */
.hero-inner img.hero-box { width: 416px; margin-bottom: 80px; }
.hero-text { 
  max-width: 500px; 
  text-align: center;
}
.hero-text .title {
  font-family: var(--font-main);
  font-weight: 800;
  font-size: 64px;
  margin: 0 0 20px 0;
  text-align: center;
}
.subtitle {
  font-family: var(--font-main);
  font-weight: 800;
  font-size: 36px;
  margin: 0 0 20px 0;
  text-align: center;
}
.subtitle .protect { color: #FFE347; }
.subtitle .attack { color: var(--accent); }
.desc {
  font-family: var(--font-main);
  font-weight: 300;
  font-size: 20px;
  margin-bottom: 30px;
  text-align: center;
  text-align-last: center;
}
.btn-game {
  display: inline-block;
  background: var(--accent);
  color: white;
  padding: 14px 28px;
  border-radius: 8px;
  font-family: "Sofia Sans", sans-serif;
  font-weight: 800;
  font-size: 24px;
  text-decoration: none;
  transition: background 0.25s, transform 0.25s;
}
.btn-game:hover {
  background: #FFE347;
  transform: translateY(-2px);
}

/* ===== FEATURES ===== */
.features {     /* fond sombre */
  padding: 60px 20px;
  color: var(--white);         /* texte blanc */
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.features-inner {
  width: 100%;
  margin: 0 auto 80px auto;
  display: grid;
  grid-template-rows: auto auto;      
  grid-template-columns: repeat(3, 1fr);
  justify-items: center;
  align-items: center;
  row-gap: 24px;
}
.features-inner .feat-icon {
  grid-row: 1;
  width: 100px;
  height: auto;
  filter: brightness(0) invert(1); /* rend icônes blanches */
  transition: transform 0.3s ease;
}
.features-inner .feat-icon:hover { transform: scale(1.1); }
.features-inner .feat-text {
  grid-row: 2;
  font-family: var(--font-inter);
  font-weight: 700;
  font-size: 36px;
  margin: 0;
  white-space: nowrap;
  color: var(--white); /* texte en blanc */
}

/* Bouton équipe centré */
/* Bouton équipe centré */
.team-button { text-align: center; }

.btn-team {
  display: inline-block;
  background: var(--accent); /* comme btn-game */
  color: white;
  padding: 14px 28px;
  border-radius: 8px;
  font-family: "Sofia Sans", sans-serif;
  font-weight: 800;
  font-size: 24px;
  text-decoration: none;
  transition: background 0.25s, transform 0.25s;
  margin-top: 20px;
}

.btn-team:hover {
  background: #FFE347; /* jaune au hover */
  color: var(--ink);   /* texte foncé pour lisibilité */
  transform: translateY(-2px);
}


/* ===== Footer ===== */
.footer { background: var(--bg); color: var(--ink); margin-top: 0; border-top: 1px solid rgba(0,0,0,.06); }
.footer-content { max-width: var(--maxw); margin-inline: auto; padding: 32px 20px; display: flex; align-items: flex-start; justify-content: space-between; gap: 32px; }
.footer-brand { margin-left: calc((100vw - var(--maxw)) / 2 * -1); }
.footer-brand img { height: 150px; width: auto; display: block; filter: drop-shadow(0 6px 18px rgba(0,0,0,.35)); }
.footer-section h2 { margin: 0 0 14px; font-size: 16px; letter-spacing: .6px; text-transform: uppercase; color: #203041; }
.footer-section ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.menu-nav { margin-left: 40px; }
.footer a { color: var(--ink); text-decoration: none; opacity: .9; transition: opacity .2s ease, transform .2s ease; }
.footer a:hover { opacity: 1; text-decoration: underline; }
.menu-nav ul li a { font-weight: 600; }
.contact-list li { display: flex; align-items: center; gap: 5px; }
.contact-list li span { font-size: 18px; display: inline-block; width: 22px; text-align: center; }
.contact-list li span i { color: #EAE8FF; }
.footer-bottom { max-width: var(--maxw); margin: 0 auto; padding: 14px 20px; border-top: 1px solid rgba(255,255,255,.08); color: rgba(255,255,255,.7); font-size: 13px; }
.footer-bottom p { margin: 0; color: #1b2036; }
@media (max-width: 980px) {
  .footer-brand { margin-left: 0; }
  .menu-nav { margin-left: 0; }
}
@media (max-width: 780px) {
  .footer-content { flex-direction: column; gap: 20px; }
  .footer-brand img { height: 72px; }
}

/* ===== FOOTER — COSMIC (full-bleed) ===== */
.footer {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-top: 0;
  border-top: none;
  background: transparent; /* on gère le fond via couches */
}
.footer-wave {
  position: absolute;
  top: -1px; left: 0; width: 100%; height: 72px;
  display: block; z-index: 0;
}
.footer-wave path {
  fill: rgba(197, 214, 251, 0.85);
  opacity: 1;
}  
.footer--cosmic::before,
.footer--cosmic::after {
  content:"";
  position: absolute; inset: 0;
  z-index: -2;
}
.footer--cosmic::before {
  background:
    radial-gradient(1200px 600px at 80% 10%, rgba(196,176,255,.30), transparent 60%),
    radial-gradient(900px 500px at 15% 20%, rgba(111,86,255,.25), transparent 55%),
    linear-gradient(180deg, #1a1740 0%, #151233 40%, #0e0b24 100%);
}
.footer--cosmic::after {
  pointer-events: none;
  background: radial-gradient(60% 80% at 50% -10%, rgba(196,176,255,.35), transparent 60%);
  mix-blend-mode: screen;
  opacity:.8;
}
.sky { position: absolute; inset: 0; z-index: -1; }
.footer .sky .stars, .footer .sky .twinkles {
  position: absolute; inset: 0;
  background-repeat: repeat;
  transform: translateZ(0);
}
.footer .sky .stars {
  background-image:
    radial-gradient(2px 2px at 20% 30%, rgba(255,255,255,.9) 40%, transparent 41%),
    radial-gradient(1px 1px at 70% 60%, rgba(255,255,255,.8) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 40% 80%, rgba(255,255,255,.85) 50%, transparent 51%),
    radial-gradient(1px 1px at 85% 25%, rgba(255,255,255,.8) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 10% 70%, rgba(255,255,255,.85) 50%, transparent 51%);
  background-size: 400px 400px, 420px 420px, 360px 360px, 500px 500px, 380px 380px;
  animation: driftStars 45s linear infinite;
  opacity:.9;
}
.footer .sky .twinkles {
  background-image:
    radial-gradient(2px 2px at 30% 40%, rgba(255,255,255,1) 40%, transparent 41%),
    radial-gradient(2px 2px at 60% 20%, rgba(255,255,255,1) 40%, transparent 41%),
    radial-gradient(2px 2px at 80% 75%, rgba(255,255,255,1) 40%, transparent 41%);
  background-size: 520px 520px, 600px 600px, 480px 480px;
  animation: twinkle 2.6s ease-in-out infinite;
  opacity:.7;
  mix-blend-mode: screen;
}
.footer .sky .shooting {
  position: absolute; inset: 0; overflow: visible; pointer-events: none;
}
.footer .sky .shooting::before {
  content:"";
  position: absolute;
  top: 20%; left: -10%;
  width: 140px; height: 2px;
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, #fff 40%, rgba(255,255,255,0) 100%);
  border-radius: 2px;
  filter: drop-shadow(0 0 6px rgba(255,255,255,.9));
  transform: rotate(12deg);
  animation: shooting 6.5s cubic-bezier(.2,.6,.2,1) infinite;
}
.footer-content {
  position: relative; z-index: 1;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 72px 20px 36px;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 40px;
  color: var(--white);
}
.footer .footer-section h2 { color: #C4B0FF; letter-spacing: .6px; }
.footer a { color: #EAE8FF; opacity: .95; text-decoration: none; }
.footer a:hover { opacity: 1; text-decoration: underline; }
.footer-brand img {
  height: 160px; width: auto; display: block;
  filter: drop-shadow(0 10px 28px rgba(196,176,255,.35));
}
.footer--cosmic .footer-brand { margin-left: 0; }
.footer-bottom {
  position: relative; z-index: 1;
  max-width: var(--maxw); margin: 0 auto; padding: 16px 20px 28px;
  border-top: 1px solid rgba(255,255,255,.15);
}
.footer-bottom p { margin: 0; color: #E0DEFF; }

@media (max-width: 980px) {
  .footer-content { flex-direction: column; gap: 24px; padding: 64px 20px 28px; }
  .footer-brand img { height: 96px; }
  .menu-nav { margin-left: 0; }
}

/* Animations */
@keyframes driftStars { 0% { transform: translateY(0) } 100% { transform: translateY(-40px) } }
@keyframes twinkle { 0%, 100% { opacity:.35; transform: scale(1) } 50% { opacity:1; transform: scale(1.08) } }
@keyframes shooting { 0%{transform:translate3d(0,0,0) rotate(12deg);opacity:0} 8%{opacity:1} 40%{transform:translate3d(120vw,22vh,0) rotate(12deg);opacity:0} 100%{opacity:0} }

@media (prefers-reduced-motion: reduce){
  .footer .sky .stars, .footer .sky .twinkles, .footer .sky .shooting::before { animation: none !important }
}

/* ===== MENU BURGER ===== */
.burger-menu {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 30px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.burger-menu span {
  width: 100%;
  height: 3px;
  background: #20304F;
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.burger-menu[aria-expanded="true"] span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.burger-menu[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.burger-menu[aria-expanded="true"] span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* ===== RESPONSIVE TOUS IPHONES ===== */
@media (max-width: 1024px) {

  html, body {
    overflow-x: hidden !important;
    width: 100%;
    max-width: 100vw;
    position: relative;
  }
  
  /* Header responsive */
  .container { padding: 12px 16px; max-width: 100vw; overflow-x: hidden; }
  header .container { padding: 16px 16px; max-width: 100vw; overflow-x: hidden; }
  .brand img { height: 60px; }
  
  /* Menu burger responsive */
  .burger-menu {
    display: flex;
  }
  
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(26, 23, 64, 0.95);
    backdrop-filter: blur(10px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    transition: right 0.3s ease;
    z-index: 1000;
    list-style: none;
    margin: 0;
    padding: 0;
    overflow-y: auto;
    overflow-x: hidden;
  }
  
  .nav-menu.active {
    right: 0;
  }
  
  /* Bouton de fermeture (croix) */
  .menu-close {
    position: fixed;
    top: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 1px solid rgba(234, 232, 255, 0.28);
    background: rgba(234, 232, 255, 0.08);
    color: #EAE8FF;
    font-size: 26px;
    line-height: 1;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1002;
    backdrop-filter: blur(6px);
  }
  .nav-menu.active + .menu-close {
    display: flex;
  }
  .menu-close:active { transform: scale(0.98); }
  
  .nav-menu li a {
    color: #EAE8FF;
    font-size: 24px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
    padding: 10px 20px;
    border-radius: 8px;
  }
  
  .nav-menu li a:hover,
  .nav-menu li a.active {
    color: #C4B0FF;
    background: rgba(196, 176, 255, 0.1);
  }
  
  /* Hero section responsive */
  .hero { padding: 40px 16px; }
  .hero-inner { 
    flex-direction: column; 
    gap: 30px; 
    text-align: center;
  }
  .hero-box { width: 360px; }
  /* Agrandit l'image du hero sur mobile avec une règle plus spécifique */
/* Agrandit davantage l’image du hero sur mobile */
/* Image encore plus grande sur mobile (presque plein écran) */
.hero-inner img.hero-box {
  width: min(740px, 50vw); /* jusqu’à 740px mais ne dépasse pas la largeur d’écran */
  max-width: 100%;
  height: auto;
  display: block;
  margin-inline: auto;
  margin-bottom: 0;
}

.hero-inner img.hero-box {
  display: block;
  margin-inline: auto;
}

  .hero-text .title { 
    font-size: 42px; 
    margin-bottom: 16px;
  }
  .subtitle { 
    font-size: 24px; 
    margin-bottom: 16px;
  }
  .desc { 
    font-size: 16px; 
    margin-bottom: 24px;
  }
  .btn-game { 
    font-size: 18px; 
    padding: 12px 24px;
  }
  
  /* Features section responsive */
  .features { padding: 40px 16px; }
  .features-inner { 
    grid-template-columns: repeat(3, 1fr); 
    gap: 20px; 
    column-gap: 8px;
    margin-bottom: 40px;
    row-gap: 16px;
    padding: 0 8px;
  }
  .features-inner .feat-icon { 
    width: 60px; 
    margin-bottom: 8px;
  }
  .features-inner .feat-text { 
    font-size: 14px; 
    margin-bottom: 16px;
    white-space: nowrap;
    max-width: 100%;
  }
  .btn-team { 
    font-size: 18px; 
    padding: 12px 24px;
  }
  
  /* Footer responsive */
  .footer-content { 
    flex-direction: column; 
    gap: 20px; 
    padding: 40px 16px 24px;
    align-items: center;
    justify-content: center;
    text-align: center;
  }
  .footer-section ul { align-items: center; }
  .menu-nav { margin-left: 0; }
  .footer-bottom { text-align: center; }
  .footer-brand { display: flex; justify-content: center; }
  .footer-brand img { height: 80px; }
  .footer-section h2 { font-size: 14px; }
  .footer-section ul { gap: 8px; }
  .footer a { font-size: 14px; }
  .contact-list li span { font-size: 16px; }
  .footer-bottom { padding: 12px 16px 20px; }
  .footer-bottom p { font-size: 12px; }
}

/* ===== SECTION SIGNE ASTRAL (STYLE IDENTIQUE SECTION ÉQUIPE) ===== */
.astro-sign {
  padding: 60px 20px;
  color: var(--white);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: none; /* comme la section équipe, pas de fond sombre */
}

.astro-inner {
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

/* TITRE — même style que titre équipe */
.astro-title {
  font-family: "Sofia Sans", sans-serif;
  font-weight: 800;
  font-size: 48px;
  margin: 0 0 10px 0;
  color: var(--white);
  text-align: center;
}

/* TEXTE — même style que sous-texte équipe */
.astro-text {
  font-family: Inter, sans-serif;
  font-size: 20px;
  color: var(--white);
  opacity: 0.95;
  max-width: 620px;
  margin: 0 auto 10px;
  line-height: 1.6;
  text-align: center;
}

/* BOUTON — même style que le bouton équipe mais en version astro */
.btn-astro {
  display: inline-block;
  background: var(--accent);
  color: white;
  padding: 14px 28px;
  border-radius: 8px;
  font-family: "Sofia Sans", sans-serif;
  font-weight: 800;
  font-size: 24px;
  text-decoration: none;
  transition: background 0.25s, transform 0.25s;
}

.btn-astro:hover {
  background: var(--yellow);
  color: var(--ink);
  transform: translateY(-2px);
}

/* ===== RESPONSIVE — même logique que section équipe ===== */
@media (max-width: 1024px) {
  .astro-title { font-size: 32px; }
  .astro-text { font-size: 16px; }
  .btn-astro {
    font-size: 18px;
    padding: 12px 22px;
  }
}

/* ===== Effet de traînée d'étoiles au curseur ===== */
.cursor-star {
  position: fixed;
  width: 6px;
  height: 6px;
  background: white;
  border-radius: 50%;
  pointer-events: none;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.9);
  animation: starFade 0.8s forwards;
  z-index: 9999;
}

@keyframes starFade {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(0.2);
    opacity: 0;
  }
}