/* Déclaration des variables */
:root {
  --bg-color: #121212; /* Couleur de fond générale */
  --text-color: #fff; /* Couleur du texte */
  --accent-color: #00ddfa; /* Couleur de l'accent (pour les liens) */
  --header-footer-bg: #0c1b29; /* Fond bleu nuit des en-têtes et pieds de page */
  --content-bg: #1a2733; /* Fond du contenu */
}

/* Corps de la page */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 0;
  background-color: var(--bg-color);
  color: var(--text-color);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  flex-direction: column;
}

/* En-tête et pied de page */
header, footer {
  background-color: var(--header-footer-bg);
  color: var(--text-color);
  text-align: center;
  padding: 15px 0;
  font-size: 18px;
  width: 100%;
  box-sizing: border-box;
  position: relative;
  animation: backgroundAnimation 1s infinite alternate;
}

/* Style du lien cliquable */
.website-name {
  font-size: 26px;
  font-weight: 600;
  color: var(--accent-color);
  text-decoration: none; /* Retire la sous-ligne par défaut */
  transition: color 0.3s ease, transform 0.3s ease;
}

/* Effet de hover */
.website-name:hover {
  color: #00fae6; /* Changement de couleur au survol */
  text-decoration: underline;
  transform: scale(1.1);
}

/* Animation de fond */
@keyframes backgroundAnimation {
  0% {
      background-color: #0c1b29;
  }
  100% {
      background-color: #1a2b3b;
  }
}

/* Contenu principal */
.container {
  width: 100%;
  max-width: 800px;
  padding: 20px;
  background: var(--content-bg);
  border-radius: 12px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.6);
  margin: 20px;
}

/* Titre principal */
h2 {
  font-size: 28px;
  text-align: center;
  margin-bottom: 15px;
  color: var(--accent-color);
}

/* Tableau des informations */
.details-table {
  width: 100%;
  margin: 20px 0;
  border-collapse: collapse;
}

.details-table th,
.details-table td {
  padding: 12px;
  border: 1px solid #3e4c59;
  text-align: left;
  color: var(--text-color);
}

.details-table th {
  background-color: var(--header-footer-bg);
  font-weight: 700;
}

.details-table tr:nth-child(even) {
  background-color: #2a3b4c;
}

/* Section footer */
footer {
  margin-top: 20px;
}

/* Responsivité mobile first */
@media (max-width: 600px) {
  .website-name {
      font-size: 22px;
  }

  h2 {
      font-size: 24px;
  }

  .details-table th, .details-table td {
      font-size: 14px;
  }
}
