#gameContainer {
  width: 800px;
  height: 800px;
  margin: 0 auto;
  position: relative;
  background: radial-gradient(circle at center, #175ea0, #1c1d1c);
  border: 3px solid #6d5dfc;
  border-radius: 12px;
  box-shadow: 0 0 30px rgba(109, 93, 252, 0.4);
}
#player {
  width: 40px;
  height: 40px;
  background-image: url("../img/face.png");
  background-size: 100%;
  background-position: center;
  position: absolute;
  z-index: 10000;
}


.coin {
  width: 20px;
  height: 20px;
  background: rgb(199, 199, 197);
  border-radius: 50%;
  position: absolute;
  box-shadow: 0 0 10px gold;
}


#monster {
  width: 80px;
  height: 80px;
  position: absolute;
  top: 300px;
  left: -200px;
  opacity: 0;
  transition: left 0.4s ease, opacity 0.4s ease;
  background-size: 100%;
   z-index: 10000;
}


#gameOverScreen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
  z-index: 9999;
}

#gameOverText {
  color: red;
  font-size: 100px;
  font-family: 'Press Start 2P', monospace;
  margin-bottom: 40px;
  text-shadow: 0 0 20px red;
}

#retryButton {
  background: #6d5dfc;
  color: white;
  font-family: 'Press Start 2P', monospace;
  font-size: 20px;
  border: none;
  padding: 15px 30px;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 0 15px rgba(109, 93, 252, 0.6);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#retryButton:hover {
  transform: scale(1.1);
  box-shadow: 0 0 25px rgba(109, 93, 252, 1);
}


#gameOverScreen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;

  background-image: url("../img/Go.png");
  background-size: cover;       
  background-position: center;  
  background-repeat: no-repeat;

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;

  z-index: 9999;
}




/*style*/
/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* :root est un pseudo-sélecteur CSS qui cible l’élément racine du document.*/
:root {
  --bg-main: #0a0a0f;
  --bg-glass: rgba(255, 255, 255, 0.05);
  --border-glass: rgba(255, 255, 255, 0.1);

  --gradient-main: linear-gradient(135deg, #6a5cff, #00d4ff);
  --gradient-soft: linear-gradient(135deg, rgba(106,92,255,0.2), rgba(0,212,255,0.1));

  --text-main: #ffffff;
  --text-secondary: #b3b3c3;

  --radius: 16px;
}



:root[data-theme="light"] {
  --bg-main: #f5f5f7;
  --bg-glass: rgba(255,255,255,0.8);
  --border-glass: rgba(0,0,0,0.1);

  --text-main: #111122;
  --text-secondary: #555555;

  --gradient-main: linear-gradient(135deg, #6a5cff, #00d4ff);
  
}

/* BODY */
body {
  font-family: 'Inter', sans-serif;
  background: radial-gradient(circle at top, #111122, #050507 70%);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
   font-family: 'Alegreya', serif;
      font-size: 16px;
  line-height: 1.5;
}

/* MAIN */
main {
  max-width: 1200px;
  margin: auto;
  padding: 80px 20px;
    z-index: 1;
}

main::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;

  background-image:
    radial-gradient(2px 2px at 10% 20%, #00d4ff, transparent),
    radial-gradient(2px 2px at 80% 30%, #6a5cff, transparent),
    radial-gradient(2px 2px at 30% 70%, #ff7a00, transparent),
    radial-gradient(2px 2px at 70% 80%, #00d4ff, transparent);

  background-size: 300px 300px;
  animation: floatParticles 25s linear infinite;

  opacity: 0.3;
}

@keyframes floatParticles {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-300px);
  }
}

section {
  margin-bottom: 80px;
  padding: 40px;
  border-radius: var(--radius);

  background: var(--bg-glass);
  border: 1px solid var(--border-glass);

  backdrop-filter: blur(10px);
  transition: 0.3s;
}

section:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 40px rgba(0, 212, 255, 0.1);
}

section a {
    color: #e67e22; 
    text-decoration: none; 
    font-weight: 600; 
    transition: color 0.2s ease;
}

section a:hover {
    color: #d35400; /* couleur au survol */


h1, h2, h3, .navbar, header, footer {
 
    font-family: "MedievalSharp", cursive;
  letter-spacing: 1px;
}
}

h1 {
  font-size: 3rem;
  font-weight: 700;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 20px;
}

h2 {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 15px;
  position: relative;
}

h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 60px;
  height: 3px;
  background: var(--gradient-main);
  border-radius: 2px;
}

p {
  color: var(--text-secondary);
  max-width: 700px;
}


button {
  padding: 12px 24px;
  border-radius: 999px;
  border: none;
  background: var(--gradient-main);
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}

button:hover {
  box-shadow: 0 0 20px rgba(106, 92, 255, 0.6);
  transform: translateY(-2px);
}


/* HEADER */
header {
  position: relative;
  top: 0;
  backdrop-filter: blur(12px);
  background: rgba(10, 10, 15, 0.7);
  border-bottom: 1px solid var(--border-glass);
  padding: 20px 40px;
   z-index: 10;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 20px 40px;

  background: rgba(10, 10, 15, 0.7);
  backdrop-filter: blur(12px);

  border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* LOGO */
.logo {
  font-weight: 700;
  font-size: 1.2rem;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* CONTENEUR DES LIENS */
.nav-links {
  display: flex;
  gap: 30px;
}


.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  position: relative;
  transition: 0.3s;
}

/* HOVER */
.nav-links a:hover {
  color: white;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0%;
  height: 2px;
  background: var(--gradient-main);
  transition: 0.3s;
}

#hero {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;

  position: relative;
  overflow: hidden;

  background: #050507;
  color: white;
}

/* conteneur */
.lines {
  position: absolute;
  inset: 0;
     z-index: 0;
       pointer-events: none;
}


 /* Lignes animation, carrés là */
.lines span {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 0;

  width: 600px;
  height: 600px;

  border-radius: 50%;
  transform: translate(-50%, -50%);

  border: 1px solid;

  border-image: conic-gradient(
    #00d4ff,
    #6a5cff,
    #f87c07,
    transparent
  ) 1;

  opacity: 0.7;
    pointer-events: none;
}

.lines span:nth-child(1) {
  animation: rotate 20s linear infinite;
}

.lines span:nth-child(2) {
  width: 800px;
  height: 800px;
  animation: rotate 30s linear infinite reverse;
}

.lines span:nth-child(3) {
  width: 1000px;
  height: 1000px;
  animation: rotate 40s linear infinite;
}

@keyframes rotate {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}







@keyframes rotate {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}




.nav-links a:hover::after {
  width: 100%;
}

/* FOOTER */
footer {
  margin-top: 100px;
  padding: 40px;

  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;

  background: rgba(10, 10, 15, 0.7);
  backdrop-filter: blur(12px);      

  border-top: 1px solid rgba(255,255,255,0.1); 
  color: var(--text-secondary);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 30px;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  position: relative;
  transition: 0.3s;
}


.footer-links a:hover {
  color: white;
}

.footer-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0%;
  height: 2px;
  background: var(--gradient-main);
  transition: 0.3s;
}


.footer-links a:hover::after {
  width: 100%;
}

#logo {

    width: 3%;
     height: auto;
    position: absolute;
    top: 1px;
    left: 180px;
    
}




/* Fields */
.form-contact .form-field {
  position: relative;
  margin-bottom: 20px;
}


/* Labels */
.form-contact label {
  font-size: 13px;
  color: #94a3b8;
  margin-bottom: 6px;
  font-family: 'Alegreya', serif;
}


.form-contact input,
.form-contact textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.03);
  color: #fff;
  font-size: 14px;
  transition: 2.3s ease;
    font-family: 'Alegreya', serif;
      font-size: 15px;
  
}


.form-contact input:focus,
.form-contact textarea:focus {
  outline: none;
  border-color: #38bdf8;
  box-shadow: 
    0 0 10px rgba(56,189,248,0.6),
    0 0 20px rgba(56,189,248,0.4);
  background: rgba(255,255,255,0.06);
}


.form-contact input::placeholder,
.form-contact textarea::placeholder {
  color: var(--placeholder-color, rgba(255,255,255,0.4));
    font-size: 15px;
}

.form-contact input[type="submit"] {
  margin-top: 10px;

  border: none;
  color: white;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  border-radius: 12px;
  padding: 14px;
  transition: all 0.3s ease;
  box-shadow: 0 0 20px rgba(99,102,241,0.5);
    font-size: 15px;

}


.form-contact input[type="submit"]:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 
    0 0 25px rgba(14,165,233,0.7),
    0 0 40px rgba(99,102,241,0.6);
}


.form-contact input[type="submit"]:active {
  transform: scale(0.98);
}


.form-contact::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 1px;
    pointer-events: none;

  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: borderGlow 60s linear infinite;
}

@keyframes borderGlow {
  0% { filter: hue-rotate(0deg); }
  100% { filter: hue-rotate(360deg); }
}


@media (max-width: 600px) {
  .form-contact {
    margin: 20px;
    padding: 20px;
  }
}

#sun {
  position: absolute;
  top: 25%;
  left: 9%; 
  transform: translate(-50%, -50%);
  width: 300px;
  height: 300px;
  z-index: 10;
  pointer-events: none;
  display: none; 
}


.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none; 
  justify-content: center;
  align-items: center;
  background: rgba(0,0,0,0.6);
    z-index: 999999;
}


.modal-content {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  max-width: 420px;
  width: 90%;
  color: #111;
  box-shadow: 0 0 20px rgba(0,0,0,0.3);
}


.modal-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 15px;
}

.consent-box {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  font-size: 14px;
}


/* --- BURGER BUTTON --- */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 10001;
  color: red;
}

.burger span {
  width: 28px;
  height: 3px;
  background: currentColor;
  transition: 0.3s;
}

/* Animation burger ouvert */
.burger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.burger.active span:nth-child(2) {
  opacity: 0;
}
.burger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* --- MENU MOBILE --- */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -260px;
  width: 260px;
  height: 100vh;
  background: rgba(10,10,15,0.95);
  backdrop-filter: blur(6px);
  display: flex;
  flex-direction: column;
  padding: 30px;
  gap: 20px;
  transition: 0.35s ease;
  z-index: 10000;
}

.mobile-menu a,
.mobile-menu button {
  color: white;
  font-size: 1.2rem;
}

/* Menu ouvert */
.mobile-menu.open {
  right: 0;
}

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
  .nav-links {
    display: none;
  }
  .burger {
    display: flex;
    
  }
}


@media (max-width: 900px) {
  #logo {
    width: 40px;
    left: auto;
    right: 20px;
    top: 10px;
    z-index: 1;
  }
}

@media (max-width: 900px) {

  h1 {
    font-size: 2.2rem;
  }

  h2 {
    font-size: 1.4rem;
  }

  h3 {
    font-size: 1.1rem;
  }
}

@media (max-width: 900px) {
  section {
    padding: 20px;
    margin-bottom: 40px;
  }
}

@media (max-width: 900px) {
  #sun {
    display: none !important;
  }
}


