* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    display: flex;
    flex-direction: column;
}


body {
    font-family: Arial, sans-serif;
    background-color: #181818;
    color: white;
}

.content {
    flex: 1;
}


header {
    background-color: #222;
    padding: 20px;
    text-align: center;
}

.tabs {
    display: flex;
    justify-content: center;
}

.tab {
    background-color: #333;
    color: white;
    border: 1px solid #444;
    padding: 10px 20px;
    margin: 0 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.tab:hover {
    background-color: #555;
}

.tab-content {
    display: none;
    padding: 20px;
}

#accueil {
    display: block;
}

.grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 20px;
    margin-top: 20px;
}

.item {
    height: 200px; /* Ajuste la hauteur pour bien voir les images */
    background-color: #2a2a2a;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s;
}

.item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cela permet à l'image de remplir le div tout en conservant ses proportions */
}

.item:hover {
    transform: scale(1.1);
}

.rect1 {
    background-color: #2e3a8c;
}

.rect2 {
    background-color: #415bb4;
}

.rect3 {
    background-color: #2e3a8c;
}

.rect4 {
    background-color: #3b5d8f;
}

.rect5 {
    background-color: #415bb4;
}

.rect6 {
    background-color: #2e3a8c;
}

.rect7 {
    background-color: #3b5d8f;
}

.rect8 {
    background-color: #415bb4;
}

.langages-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.langage-card {
    background: linear-gradient(145deg, #1e1e1e, #1a1a1a);
    border: 1px solid #2c2c2c;
    border-radius: 15px;
    width: 150px;
    height: 170px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px rgba(0, 0, 255, 0.2);
    transition: transform 0.3s, box-shadow 0.3s;
}

.langage-card:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(0, 119, 255, 0.6);
}

.langage-card img {
    width: 60px;
    height: 60px;
    margin-bottom: 10px;
}

.langage-card span {
    color: #00aaff;
    font-weight: bold;
    font-size: 1.1em;
}

.contact-container {
    background-color: #1e1e1e;
    border: 1px solid #333;
    border-radius: 15px;
    padding: 20px;
    max-width: 600px;
    margin: 30px auto;
    box-shadow: 0 0 20px rgba(0, 170, 255, 0.2);
    color: #ccc;
}

.contact-container p {
    margin: 15px 0;
    font-size: 1.1em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-container a {
    color: #4fc3f7;
    text-decoration: none;
}

.contact-container a:hover {
    text-decoration: underline;
    color: #00bfff;
}

.discord-tag {
    background-color: #5865F2;
    color: white;
    padding: 5px 10px;
    border-radius: 8px;
    font-family: monospace;
}


footer {
    background-color: #111;
    color: #4fc3f7;
    text-align: center;
    padding: 1rem;
    margin-top: 0; /* Retiré pour le sticky bottom */
}

@media screen and (max-width: 1024px) {
  .grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media screen and (max-width: 768px) {
  .tabs {
    flex-direction: column;
    gap: 10px;
  }

  .grid {
    grid-template-columns: repeat(2, 1fr);
    padding: 0 10px;
  }

  .langage-card {
    width: 120px;
    height: 150px;
  }

  .contact-container {
    margin: 20px;
    padding: 15px;
  }
}

@media screen and (max-width: 480px) {
  .grid {
    grid-template-columns: 1fr;
  }

  .tab {
    width: 100%;
    box-sizing: border-box;
  }

  .langage-card {
    width: 100px;
    height: 130px;
  }

  .contact-container {
    margin: 15px;
    font-size: 0.95em;
  }

  footer {
    font-size: 0.9em;
  }
}
