/* =========================================================
   ENDER CORP — FEUILLE DE STYLE
   Organisation : bases, thème, navigation, contenu,
   composants, accueil, téléchargements, responsive.
   ========================================================= */

/* 1. Variables et réglages généraux
   --------------------------------------------------------- */

:root {
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;

  --shadow-1: 0 10px 30px rgba(0, 0, 0, 0);
  --shadow-2: 0 16px 50px rgba(0, 0, 0, 0);

  --bg: #0b0f1a;
  --val-platform: #222;
  --surface: #0f1524c5;
  --text: #e9edf7;
  --muted: #a7b1c8;
  --line: #252d3b;

  --primary: #7c5cff;
  --accent: #2de2e6;
  --warm: #ff7a59;
  --grad-1: linear-gradient(
    135deg,
    var(--primary),
    var(--accent) 60%,
    var(--warm) 110%
  );

  --chip-bg: #eef0ff;
  --glass: rgba(255, 255, 255, 0.65);
  --backdrop: blur(12px);

  --header-h: 64px;
  --container-w: 1100px;
  --gutter: 4vw;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
}

html,
body {
  display: flex;
  flex-direction: column;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: Arial, sans-serif;
  transition: background-color 0.3s, color 0.3s;
}

main {
  flex: 1;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 2px 12px #0001;
}

/* 2. Titres et textes communs
   --------------------------------------------------------- */

h1 {
  font-family: 'Poppins', sans-serif;
  font-size: 40px;
  font-weight: 700;
}

h1 .accentuated,
p .accentuated {
  background: linear-gradient(90deg, #6a5cff, #4ecdc4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-desc {
  margin-left: 1%;
  color: #bbb;
  font-family: 'Roboto', sans-serif;
  font-size: 18px;
}

.section-title-brand {
  margin-left: 1%;
  font-family: 'Poppins', sans-serif;
  font-size: 28px;
  font-weight: 700;
}

/* 3. Navigation
   --------------------------------------------------------- */

nav ul {
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 14px;
  background: #222;
  list-style: none;
}

nav a {
  margin-left: 30px;
  padding: 8px 12px;
  border-radius: 4px;
  color: white;
  text-decoration: none;
}

nav a:hover {
  background: #555;
}

.buttons-nav {
  display: flex;
  align-items: center;
  margin-left: 20%;
}

button#toggle-theme {
  width: 175px;
  margin: auto;
}

.menu-toggle {
  display: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
}

/* 4. Pied de page
   --------------------------------------------------------- */

footer {
  padding: 15px;
  background-color: #222;
  color: #ddd;
  text-align: center;
  font-size: 14px;
}

footer a {
  color: #4e4caf;
  font-weight: bold;
  text-decoration: none;
}

footer a:hover {
  color: #8188c7;
  text-decoration: underline;
}

/* 5. Formulaires et éléments de saisie
   --------------------------------------------------------- */

label {
  display: block;
  margin-top: 16px;
  font-weight: 600;
}

input,
textarea {
  width: 100%;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
}

textarea {
  min-height: 140px;
  resize: vertical;
}

form {
  display: grid;
  gap: 8px;
}

.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* Styles conservés pour les éventuels boutons classiques du site. */
button {
  width: 100%;
  margin-top: 16px;
  padding: 10px;
  border: 0;
  border-radius: 8px;
  background: #5865f2;
  color: white;
  font: inherit;
  cursor: pointer;
}

button:hover {
  background: #4752c4;
}

.slider-btn:hover {
  background-color: #4e4caf;
}

/* 6. Éléments de conversation / messages
   --------------------------------------------------------- */

#conversation {
  margin-top: 24px;
}

.message {
  margin: 10px 0;
  padding: 12px;
  border-radius: 8px;
  background: #eef0ff;
  overflow-wrap: anywhere;
}

.message small {
  display: block;
  margin-bottom: 4px;
  color: #555;
}

#status {
  color: #555;
}

/* 7. Sections et cartes du site
   --------------------------------------------------------- */

.mid-page {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  max-width: 90%;
  margin: 0 auto;
}

.contact-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-2);
}

.val-plateform {
  background: var(--val-platform);
}

.btn--grad {
  border: 0;
  background: var(--grad-1);
  color: #000;
  text-decoration: none;
}

.btn {
  appearance: none;
  padding: 10px 14px;
  border: 0;
  border-radius: 12px;
  font-weight: 700;
  box-shadow: var(--shadow-1);
  text-decoration: none;
  cursor: pointer;
}

/* 8. Images et réseaux sociaux
   --------------------------------------------------------- */

.logo-Youtube {
  width: auto;
  height: 70px;
  margin: 0;
  border-radius: 400px;
  vertical-align: middle;
  text-align: left;
}

.banniere-chaine-youtube {
  width: 100%;
}

.g-ytsubscribe {
  background-color: rgb(252, 249, 249);
}

.reseaux-icon {
  width: 100px;
  height: 100px;
  margin-right: 5px;
  border-radius: 400px;
  vertical-align: middle;
}

.reseaux {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 250px;
  margin-bottom: 20px;
  padding: 15px;
  border-radius: 10px;
  background-color: var(--surface);
}

.lien-reseaux {
  -webkit-background-clip: text;
  -webkit-text-fill-color: var(--text);
  background-clip: text;
}

.mes-reseaux {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 30px;
  width: 100%;
  margin-top: 30px;
  margin-left: 0;
}

/* 9. Page d'accueil
   --------------------------------------------------------- */

.accueil {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100vh;
  overflow: hidden;
  text-align: center;
}

.accueil::after {
  position: absolute;
  inset: 0;
  content: "";
}

.fond-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contenu {
  position: relative;
  z-index: 1;
  padding: 2rem;
  font-size: 3rem;
}

.red-accentuated {
  background: linear-gradient(90deg, #ff5c5c, var(--text));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* 10. Section de téléchargement du jeu
   --------------------------------------------------------- */

#game-download {
  padding: 60px 20px;
}

#game-download .download-section > h2 {
  color: white;
  font-family: 'Orbitron', sans-serif;
  text-align: center;
  letter-spacing: 3px;
}

#game-download .download-section > p {
  margin: 15px 0;
  color: var(--muted);
  text-align: center;
}

#game-download .cards {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
}

#game-download .card {
  width: 290px;
  padding: 35px 25px;
  border: 1px solid #343c60;
  border-radius: 18px;
  background: linear-gradient(145deg, #171d32, #101423);
  text-align: center;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

#game-download .card:hover {
  transform: translateY(-8px);
  border-color: #00eaff;
  box-shadow: 0 0 25px #00eaff25;
}

#game-download .platform-icon {
  margin-bottom: 15px;
  font-size: 50px;
}

#game-download .card h3 {
  margin-bottom: 15px;
  color: #00eaff;
  font-family: 'Orbitron', sans-serif;
  font-size: 22px;
}

#game-download .card p {
  min-height: 45px;
  color: #aeb6ce;
}

#game-download .version {
  display: block;
  margin: 20px 0;
  color: #9b80ff;
  font-size: 13px;
  letter-spacing: 2px;
}

#game-download .download-button {
  display: block;
  padding: 15px;
  border-radius: 8px;
  background: #34394b;
  color: white;
  text-decoration: none;
  font-family: 'Orbitron', sans-serif;
  font-size: 11px;
  font-weight: bold;
}

#game-download .download-button.disabled {
  background: #34394b;
  color: #929bb3;
  cursor: not-allowed;
  opacity: 0.7;
}

#game-download .download-button:not(.disabled) {
  background: linear-gradient(90deg, #6345ff, #008cff);
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
}

#game-download .download-button:not(.disabled):hover {
  transform: scale(1.04);
  box-shadow: 0 0 20px #00eaff;
}

/* 11. Mise en page pour les écrans moyens et mobiles
   --------------------------------------------------------- */

@media (min-width: 769px) {
  .title {
    margin-top: 30px;
    margin-left: 44%;
    font-family: 'Poppins', sans-serif;
    font-size: 40px;
    font-weight: 700;
  }
}

@media (max-width: 768px) {
  nav ul {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
    padding: 0;
    background: #333;
  }

  nav ul.show {
    display: flex;
  }

  .menu-toggle {
    display: block;
    padding: 10px;
    background: #333;
  }

  .buttons-nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
    margin-left: 0;
  }

  nav ul.show .buttons-nav {
    padding: 8px 0;
  }

  nav ul.show a {
    display: block;
    width: 100%;
    margin-left: 0;
    padding: 14px 16px;
  }

  nav ul.show li {
    width: 100%;
  }

  nav ul.show button#toggle-theme {
    align-self: flex-start;
    width: auto;
    margin: 8px 16px 16px;
  }

  .mid-page {
    flex-direction: column;
  }

  .row {
    grid-template-columns: 1fr;
  }

  .title {
    margin-left: 0;
    text-align: center;
  }

  main h1,
  main p {
    margin: 0 8%;
  }
}
