:root {
    --primary: #FF003C; /* Rouge Néon */
    --primary-dark: #b3002a;
    --white: #FFFFFF;
    --bg: #050505;
    --bg-light: #121212;
    --text-grey: #a0a0a0;
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Rajdhani', sans-serif;
}

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

body {
    background-color: var(--bg);
    color: var(--white);
    font-family: var(--font-body);
    overflow-x: hidden;
    min-height: 100vh;
}

/* Background Effects */
.grid-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -2;
    pointer-events: none;
}

#particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* Navigation */
header {
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
}

.logo {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 24px;
    letter-spacing: 2px;
}

.red-dot {
    color: var(--primary);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

nav a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    font-size: 18px;
    text-transform: uppercase;
    transition: 0.3s;
}

nav a:hover {
    color: var(--primary);
    text-shadow: 0 0 10px var(--primary);
}

.btn-nav {
    border: 1px solid var(--primary);
    padding: 8px 20px;
    color: var(--primary);
}

.btn-nav:hover {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 0 15px var(--primary);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10%;
    position: relative;
}

.hero-content {
    max-width: 600px;
    z-index: 2;
}

h1 {
    font-family: var(--font-heading);
    font-size: 64px;
    line-height: 1.1;
    margin: 10px 0 20px;
    text-transform: uppercase;
}

.highlight {
    color: var(--primary);
    text-shadow: 0 0 20px rgba(255, 0, 60, 0.5);
}

h2.glitch {
    font-size: 20px;
    letter-spacing: 5px;
    color: var(--text-grey);
    position: relative;
}

p {
    font-size: 20px;
    color: var(--text-grey);
    margin-bottom: 40px;
    line-height: 1.6;
}

/* Buttons */
.cta-group {
    display: flex;
    gap: 20px;
}

button {
    cursor: pointer;
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    border: none;
    outline: none;
    position: relative;
    padding: 15px 40px;
    font-size: 16px;
    clip-path: polygon(10% 0, 100% 0, 100% 70%, 90% 100%, 0 100%, 0 30%);
    transition: 0.3s;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--white);
    color: var(--primary);
    box-shadow: 0 0 30px rgba(255, 0, 60, 0.6);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    border-color: var(--white);
    background: rgba(255, 255, 255, 0.1);
}

/* Hero Visual (CPS Counter) */
@media (max-width: 1024px) {

    .hero-visual {
        width: 250px;
        height: 250px;
        margin-top: 30px;
    }

    #cps-display{
        font-size: 50px;
    }

}

.circle-outer {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid rgba(255, 0, 60, 0.3);
    border-radius: 50%;
    border-top: 2px solid var(--primary);
    animation: spin 4s linear infinite;
    box-shadow: 0 0 20px rgba(255, 0, 60, 0.2);
}

.circle-inner {
    position: absolute;
    width: 70%;
    height: 70%;
    border: 1px dashed rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    animation: spin-reverse 8s linear infinite;
}

.cps-counter {
    text-align: center;
    font-family: var(--font-heading);
}

#cps-display {
    display: block;
    font-size: 80px;
    font-weight: 900;
    color: var(--white);
    text-shadow: 0 0 20px var(--white);
}

small {
    color: var(--primary);
    font-size: 24px;
    letter-spacing: 4px;
}

/* Features Section */
.features {
    padding: 100px 10%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    background: var(--bg-light);
    position: relative;
}

.card {
    background: rgba(255, 255, 255, 0.03);
    padding: 40px;
    border-left: 3px solid var(--primary);
    transition: 0.3s;
}

.card:hover {
    transform: translateY(-10px);
    background: rgba(255, 0, 60, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.card-icon {
    font-size: 40px;
    margin-bottom: 20px;
}

.card h3 {
    font-family: var(--font-heading);
    margin-bottom: 10px;
    font-size: 24px;
}

.card p {
    font-size: 16px;
    margin-bottom: 0;
}

footer {
    padding: 40px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-grey);
    font-size: 14px;
}

/* Animations */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes spin-reverse {
    0% { transform: rotate(360deg); }
    100% { transform: rotate(0deg); }
}

/* Central Arrow Button */
.center-arrow-btn {
    position: fixed; /* Changed from absolute to fixed */
    bottom: 50px;    /* Positioned at bottom */
    left: 50%;
    top: auto;       /* Reset top */
    transform: translateX(-50%); /* Center horizontally */
    z-index: 999;    /* Very high z-index to be on top of everything */
    cursor: pointer;
    background: none;
    border: none;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    transition: transform 0.3s;
}

.center-arrow-btn span {
    display: block;
    width: 30px;
    height: 30px;
    border-top: 5px solid var(--white);
    border-right: 5px solid var(--white);
    transform: rotate(-45deg);
    animation: chevron-pulse 2s infinite;
    filter: drop-shadow(0 0 5px var(--primary));
}

.center-arrow-btn span:nth-child(2) {
    animation-delay: 0.2s;
}

.center-arrow-btn span:nth-child(3) {
    animation-delay: 0.4s;
}

.center-arrow-btn:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

.center-arrow-btn:hover span {
    border-color: var(--primary);
    filter: drop-shadow(0 0 15px var(--primary));
}

@keyframes chevron-pulse {
    0% { opacity: 0; }
    50% { opacity: 1; }
    100% { opacity: 0; }
}

@media (max-width: 768px) {

    nav ul {
        display: flex;
        flex-direction: column;
        gap: 10px;
        background: #050505;
        position: absolute;
        top: 70px;
        right: 20px;
        padding: 20px;
    }

}
#retour{

    position: absolute;
    top: 25px;
    left: 210px;
}
#paragraphesCPS{
    position: absolute;
    top: 250px;
    right: 600px;
}
#paragraphesCPS2{
   position:absolute;
    top: 50%;
    right: 0px;
}
/* Autoclicker Status Overlay */
#autoclicker-status {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-heading);
    font-size: 60px;
    font-weight: 900;
    color: var(--primary);
    text-shadow: 0 0 20px var(--primary), 0 0 40px var(--primary);
    border: 5px solid var(--primary);
    padding: 20px 50px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 9999;
    display: none; /* Hidden by default */
    pointer-events: none;
    animation: pulse-status 0.5s infinite alternate;
}

@keyframes pulse-status {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0.8; }
    100% { transform: translate(-50%, -50%) scale(1.1); opacity: 1; }
}

/* Game HUD */
#game-hud {
    position: fixed;
    top: 100px; /* Below header */
    left: 20px;
    z-index: 90;
    background: rgba(0, 0, 0, 0.5);
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    backdrop-filter: blur(5px);
}

.hud-item {
    font-family: var(--font-heading);
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--white);
}

.hud-item span {
    color: var(--primary);
    font-weight: bold;
}

.hud-btn {
    width: 100%;
    padding: 10px;
    background: var(--primary);
    color: var(--white);
    border: none;
    font-family: var(--font-heading);
    cursor: pointer;
    font-weight: bold;
    border: 1px solid var(--primary);
    transition: 0.3s;
}

.hud-btn:hover {
    background: transparent;
    box-shadow: 0 0 15px var(--primary);
}

.hud-btn.disabled {
    background: #333;
    border-color: #555;
    color: #777;
    cursor: not-allowed;
    pointer-events: none;
}

/* Modal */
.modal {
    display: none; 
    position: fixed; 
    z-index: 200; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0,0,0,0.8); 
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: #111;
    margin: 15% auto; 
    padding: 20px;
    border: 2px solid var(--primary);
    width: 80%;
    max-width: 600px;
    text-align: center;
    position: relative;
    box-shadow: 0 0 50px rgba(255, 0, 60, 0.2);
}

.close-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-modal:hover,
.close-modal:focus {
    color: var(--primary);
    text-decoration: none;
    cursor: pointer;
}

.shop-items {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.shop-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border: 1px solid #333;
    border-radius: 10px;
    width: 250px;
    transition: 0.3s;
}

.shop-item:hover {
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(255, 0, 60, 0.2);
}

.item-icon {
    font-size: 50px;
    margin-bottom: 10px;
    filter: sepia(100%) hue-rotate(5deg) brightness(1.2) saturate(200%); /* Golden Effect */
}

.buy-btn {
    width: 100%;
    margin-top: 10px;
    padding: 10px;
    background: #222;
    border: 1px solid var(--primary);
    color: var(--primary);
    cursor: pointer;
    font-family: var(--font-heading);
}

.buy-btn:hover {
    background: var(--primary);
    color: var(--white);
}
/* Conteneur principal */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Colonnes */
.col {
  float: left;
  width: 100%;
  box-sizing: border-box;
  padding: 10px;
}

/* Responsive */
@media (min-width: 768px) {
  .col-2 { width: 50%; }
  .col-3 { width: 33.33%; }
}
@media (min-width: 1024px) {
  .col-2 { width: 50%; }
  .col-3 { width: 33.33%; }
  .col-4 { width: 25%; }
}
.text-center { text-align: center; }
.mt-10 { margin-top: 10px; }
.mb-20 { margin-bottom: 20px; }

.btn {
  display: inline-block;
  padding: 10px 20px;
  background: #007bff;
  color: white;
  border-radius: 5px;
  text-decoration: none;
}
.btn:hover {
  background: #0056b3;
}
@media (max-width: 1024px) {

    header{
        padding:15px;
    }

    .hero{
        flex-direction: column;
        text-align:center;
        padding:120px 20px 40px 20px;
    }

    h1{
        font-size:32px;
    }

    p{
        font-size:16px;
    }

    .cta-group{
        justify-content:center;
    }

    .features{
        grid-template-columns:1fr;
        padding:60px 20px;
    }

}
/* Hamburger (3 barres) */
.hamburger {
  display: none; /* caché sur desktop */
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  z-index: 110;
}

.hamburger span {
  height: 3px;
  width: 30px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.4s ease;
}

/* Menu par défaut */
nav ul {
  display: flex;
  gap: 30px;
  list-style: none;
  align-items: center;
  transition: all 0.5s ease;
}

/* Menu mobile */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

   nav ul {
    flex-direction: column;
    position: fixed;
    top: 0;
    right: -100%; /* hors écran */
    width: 70%;
    height: 100vh;
    background: rgba(5,5,5,0.95);
    padding-top: 100px;
    gap: 30px;
    align-items: center;
    display: flex;
    transition: right 0.5s ease;
    z-index: 100;
  }

  nav ul.show {
    display: flex;
    right: 0;
  }
  nav ul li a {
    font-size: 24px;
  }

  /* Hamburger animation */
  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }
}