/* ==========================
   RESET
========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: white;
    background: url('assets/banniere.png') no-repeat center center/cover;
    background-attachment: fixed;
    margin: 0;
}

/* ==========================
   HEADER & NAVIGATION
========================== */
header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 40px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: bold;
    font-size: 22px;
    transition: transform 0.3s ease;
}
.logo:hover { transform: scale(1.05); }
.logo img { height: 40px; margin-right: 8px; }

.white { color: white; }
.blue { color: #00aaff; }

nav a {
    position: relative;
    color: white;
    text-decoration: none;
    margin-left: 20px;
    font-weight: 700;
    padding: 8px 0;
    transition: color 0.3s ease;
}
nav a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: #00aaff;
    border-radius: 2px;
    transition: width 0.4s ease;
}
nav a:hover::after { width: 100%; }
nav a:hover { color: #00aaff; }

/* ==========================
   SECTIONS
========================== */
section { padding: 40px; }

/* ==========================
   HERO
========================== */
.hero {
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: center;
}
.hero .content { max-width: 600px; }
.hero h1 { font-size: 48px; margin-bottom: 20px; }
.hero h1 span { color: #00aaff; }
.hero p { font-size: 18px; margin-bottom: 30px; line-height: 1.6; }

/* ==========================
   BOUTONS
========================== */
button, .btn, .btn-discord, .nav-btn, .btn-play {
    position: relative;
    display: inline-block;
    padding: 12px 25px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 8px;
    background: rgba(0,0,0,0.2);
    overflow: hidden;
    transition: all 0.4s ease;
    cursor: pointer;
}
button, .btn, .btn-discord, .nav-btn { color: #00aaff; border: 2px solid #00aaff; }
button span, .btn span, .btn-discord span, .nav-btn span, .btn-play span { position: relative; z-index: 1; }

.btn-play {
    padding: 12px 30px;
    color: #fff;
    border: 2px solid #00aaff;
    background: rgba(0,0,0,0.25);
    border-radius: 10px;
}
.btn-play::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: rgba(0,170,255,0.1);
    transform: rotate(45deg) scale(0);
    transition: transform 0.5s ease;
    z-index: 0;
}
.btn-play:hover::before { transform: rotate(45deg) scale(1); }
.btn-play:hover { 
    color: #00aaff;
    border-color: #00aaff;
    box-shadow: 0 0 18px #00aaffaa, 0 0 25px #00aaff33 inset;
    transform: scale(1.05);
}

/* ==========================
   ENTREPRISES
========================== */
.entreprises-section {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.entreprises-section h1 {
    display: inline-block;
    background: rgba(0, 0, 0, 0.6);
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 32px;
}
.entreprises-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
    width: 100%;
}
.card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(0,0,0,0.6);
    text-align: left;
    transition: transform 0.3s;
}
.card:hover { transform: scale(1.03); box-shadow: 0 0 15px #ffffff48; }
.card img { width: 100%; height: 150px; object-fit: cover; }
.card .info { padding: 15px; }
.dispo { display: inline-block; padding: 5px 10px; border-radius: 5px; font-size: 12px; margin-bottom: 10px; }
.dispo-ok { background: #00ff99; color: black; }
.dispo-no { background: #ff3333; color: white; }

.entreprises-header h1 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 2rem;
}
.entreprises-header h1 img {
  height: 1.4em;
  width: auto;
}

/* ==========================
   PANNEAU SERVEUR
========================== */
.server-panel {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(6px);
    color: white;
    padding: 15px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    z-index: 9999;
    width: 240px;
    font-family: 'Montserrat', sans-serif;
}
.status-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 5px;
    background-color: gray;
}
.status-dot.online { background-color: #4CAF50; animation: blink 2s infinite; }
.status-dot.offline { background-color: red; }
@keyframes blink { 0%,50%,100% { opacity: 1; } 25%,75% { opacity: 0; } }
.server-status { display: flex; align-items: center; font-weight: bold; margin-bottom: 8px; }
.player-count { font-size: 14px; margin-bottom: 12px; }

/* ==========================
   MUSIQUE
========================== */
.music-control {
    position: fixed;
    bottom: 20px;
    left: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 9999;
}
#volume-icon { font-size: 28px; cursor: pointer; transition: transform 0.2s; }
#volume-icon:hover { transform: scale(1.2); }
#volume-slider {
    opacity: 0;
    width: 0;
    transition: all 0.3s ease;
    cursor: pointer;
}
.music-control:hover #volume-slider { opacity: 1; width: 120px; }
#volume-slider::-webkit-slider-thumb,
#volume-slider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #007BFF;
    cursor: pointer;
}

/* ==========================
   BARRE DE RECHERCHE
========================== */
.entreprises-header {
    display: flex;
    flex-direction: column; /* Pour mettre le titre au-dessus et la barre en dessous */
    align-items: center; /* Centre horizontalement */
    text-align: center;
    gap: 15px; /* espace entre le h1 et la barre */
}

.search-bar {
    width: 100%;
    display: flex;
    justify-content: center; /* Centre l'input */
}

.search-bar input {
    width: 300px; /* largeur de la barre */
    max-width: 80%; /* responsive */
    padding: 10px 40px 10px 15px;
    border-radius: 25px;
    border: 1px solid #ffffff;
    outline: none;
    font-size: 16px;
    color: #ffffff;
    background-color: #000000;
    transition: all 0.3s ease;
}

.search-bar input:focus {
    border-color: #004080;
    box-shadow: 0 0 8px rgba(0,64,128,0.4);
}

.search-bar .search-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    font-size: 18px;
    color: #004080;
}

/* ==========================
   MENUS (Desktop & Mobile)
========================== */
.mobile-only-menu { display: none; }

@media (max-width: 600px) {
  .desktop-menu { display: none; }
  .mobile-only-menu {
    display: flex; 
    justify-content: center;
    gap: 10px;
  }
  .mobile-only-menu a {
    padding: 8px 12px;
    background: #0a0a23;
    color: white;
    border-radius: 6px;
    text-decoration: none;
    font-size: 10px;
  }
  .mobile-only-menu a:hover { background: #1a1a3d; }
  .hero .btn-discord {
    display: block;
    margin: 20px auto; 
    text-align: center;
    max-width: 200px;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 14px;
  }
}
/* ==========================
   MEDIA QUERIES
========================== */
@media (max-width: 1024px) {
    body { background: url('assets/banniere-mobile.png') no-repeat center center/cover; background-attachment: scroll; }
    header { padding: 10px 20px; flex-direction: column; align-items: flex-start; }
    nav a { margin-left: 10px; padding: 6px 10px; font-size: 14px; }
    .hero h1 { font-size: 36px; } .hero p { font-size: 16px; }
    section { padding: 20px; }
    .entreprises-section h1 { font-size: 28px; padding: 8px 16px; }
    .card img { height: 120px; }
    .server-panel { width: 200px; padding: 12px 16px; bottom: 15px; right: 10px; }
    .btn-play, .btn, .btn-discord { padding: 10px 16px; font-size: 14px; }
}
@media (max-width: 600px) {
    header { flex-direction: column; align-items: center; }
    nav a { margin-left: 0; margin-top: 8px; }
    .hero h1 { font-size: 28px; text-align: center; }
    .hero p { font-size: 14px; text-align: center; }
    .entreprises-grid { grid-template-columns: 1fr; gap: 15px; }
    .server-panel { width: 180px; padding: 10px 12px; bottom: 10px; right: 10px; font-size: 12px; }
    .btn-play, .btn, .btn-discord { padding: 8px 12px; font-size: 12px; }
    .card img { height: 100px; }
}
    .overlay {
      position: fixed;
      top: 0; left: 0;
      width: 100%; height: 100%;
      background: rgba(0,0,0,0.6);
      display: none;
      justify-content: center;
      align-items: center;
      z-index: 999;
    }

    /* Fenêtre popup */
    .popup {
      background: #000000bb;
      color: white;
      padding: 35px;
      border-radius: 15px;
      text-align: center;
      max-width: 400px;
      width: 90%;
      box-shadow: 0 0 20px rgba(0, 0, 0, 0.562);
      animation: fadeIn 0.3s ease;
    }

    .popup h2 {
      margin-bottom: 20px;
      font-size: 20px;
      color: #979797;
    }

    .popup p {
      margin-bottom: 25px;
      font-size: 16px;
    }

    /* Boutons */
    .popup-buttons {
      display: flex;
      justify-content: center;
      gap: 15px;
    }

    .popup button {
      padding: 10px 20px;
      border: none;
      border-radius: 8px;
      cursor: pointer;
      font-weight: bold;
      transition: 0.2s;
    }

    .popup .btn-yes {
      background: #4dff82bd;
      color: white;
    }

    .popup .btn-yes:hover {
      background: #1ae847a6;
    }

    .popup .btn-no {
      background: #ff4d4da4;
      color: white;
    }

    .popup .btn-no:hover {
      background: #cc0000a8;
    }

    @keyframes fadeIn {
      from { opacity: 0; transform: scale(0.95); }
      to { opacity: 1; transform: scale(1); }
    }
