/* ============================= */
/* VERSION MOBILE (max 425px)    */
/* ============================= */
@media (max-width: 426px) {

  /* Général */
  body {
    font-size: 14px;
    line-height: 1.4;
  }

  /* En-tête */
  header {
    padding: 15px 0;
  }

  .top-bar img {
    width: 45px;
    height: 45px;
  }

  .top-bar h1 {
    font-size: 1.6em;
    letter-spacing: 2px;
  }

  .subtitle {
    font-size: 0.9em;
  }

  /* Bouton burger visible */
  .menu-toggle {
    display: block;
  }

  /* Sidebar fermée par défaut sur mobile */
  .sidebar {
    position: fixed;
    top: 0;
    left: -100%; /* cachée */
    height: 100vh;
    width: 200px; /* largeur quand ouverte */
    background-color: #1a1a1a;
    border-right: 1px solid #00ffcc;
    padding-top: 60px; /* espace pour le header/burger */
    transition: left 0.3s ease;
  }

  /* Sidebar ouverte (quand le burger est cliqué) */
  .sidebar.show {
    left: 0;
    width: 200px;
    padding-left: 15px;
    align-items: left;
  }

  .sidebar.show .sidebar-link {
    justify-content: flex-start;
  }

  .sidebar.show .sidebar-link .text {
    opacity: 1;
    margin-left: 55px;
  }

  .search-container {
    align-items: center;
  }

  /* Décalage contenu (pas de sidebar fixe) */
  main, header, aside, footer {
    margin-left: 0px;
  }

  /* Features */
  .features {
    margin: 15px 10px 15px 10px;
    padding: 15px;
    gap: 1rem;
  }

  .feature {
    max-width: 120px;
  }

  .feature-icon {
    width: 40px;
    height: 40px;
  }

  .feature p, .feature h3 {
    font-size: 0.85em;
  }

  /* Main */
  main h2 {
    font-size: 1.4em;
  }

  article {
    padding: 15px;
  }

  article h6 {
    font-size: 0.85em;
  }

  /* Jeux carrousel */
  .games-carousel {
    padding: 15px 20px;
  }

  .game-container {
    width: 200px;
  }

  .game-toolbar button {
    padding: 4px 8px;
    font-size: 12px;
  }

  .Image {
    height: 120px;
  }

  .Titre {
    font-size: 0.9em;
  }

  iframe, #game-frame {
    height: 300px;
  }

  /* Section détail (game.html) */
  .detail-container {
    flex-direction: column; /* pub sous la description */
    gap: 10px;
  }

  .detail {
    max-width: 100%; 
    margin-right: 0;
  }

  .game-ad {
    min-width: 100%; 
  }

  /* Formulaire */
  form {
    padding: 20px 15px;
    margin: 20px auto;
    max-width: 95%;
  }

  form label {
    font-size: 0.9em;
  }

  form input, form textarea {
    font-size: 0.9em;
    padding: 8px;
  }

  form button[type="submit"] {
    padding: 10px;
    font-size: 0.9em;
  }

  /* Mentions légales */
  .mentionsLegales {
    padding: 20px 15px;
    margin: 20px auto;
    max-width: 100%;
  }

  .mentionsLegales > h1 {
    font-size: 1.5em;
  }

  .mentionsLegales article h2 {
    font-size: 1.1em;
  }

  .mentionsLegales article p {
    font-size: 0.9em;
  }

  .mentionsLegales-layout .ads-container {
    display: none;
  }

  /* pub bloc footer*/
  .footer-pub {
    margin-left: 60px;
    margin-right: 10px;
    margin-bottom: 10px;
  }

  /* Footer */
  footer {
    font-size: 0.8em;
    padding: 1.5rem 0.5rem;
  }
}
