/*RESET DE BASE*/

/*Supprime les marges et espacements par défaut des éléments et définit un modèle de boîte cohérent*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif; /*Police principale*/
  line-height: 1.6; /* Espacement vertical entre les lignes*/
  background-color: #111; /*Couleur d’arrière-plan (noir foncé)*/
  color: #eee; /*Couleur du texte (gris clair) */
}

/*HEADER ET BARRE DE NAVIGATION*/

header {
  background: #c00; /*Rouge principal du site*/
  color: white;
  padding: 20px 0;
  text-align: center; /*Centrage du contenu */
  box-shadow: 0 2px 3000px rgba(255, 0, 0, 0.8); /*Halo rouge diffus sous le header*/
}

header h1 {
  margin-bottom: 10px;
  text-transform: uppercase; /* Met en majuscules*/
  letter-spacing: 2px; /* Espacement entre les lettres*/
}

nav ul {
  list-style: none; /*Supprime les puces de liste*/
  display: flex; /*Affiche les liens sur une seule ligne*/
  justify-content: center; /*Centre horizontalement*/
  gap: 20px; /*Espacement entre les éléments*/
}

nav ul li a {
  color: white;
  text-decoration: none; /*Supprime le soulignement*/
  font-weight: bold;
  transition: 0.3s; /*Animation fluide*/
}

nav ul li a:hover {
  color: #ff5252; /*Rouge plus clair au survol*/
  text-decoration: underline;
}

/*SECTIONS GÉNÉRALES*/

main {
  max-width: 1000px; /*Largeur maximale du content*/
  margin: 20px auto; /*Centre horizontalement*/
  padding: 20px;
}

section {
  margin-bottom: 50px;
}

h2 {
  margin-bottom: 15px;
  border-left: 5px solid #c62828; /*Bande rouge à gauche du titre*/
  padding-left: 10px;
  font-size: 1.6em;
  color: #ff5252;
  text-transform: uppercase;
}

/*FUN FACTS*/

#funfacts ol {
  list-style: none; /*Supprime les numéros de la liste ordonnée*/
  padding-left: 0;
}

#funfacts li {
  margin-bottom: 12px;
  background: #1a1a1a; /*Gris très foncé pour contraster*/
  padding: 12px;
  border-radius: 8px; /*Coins arrondis*/
  box-shadow: 0 2px 5px rgba(0,0,0,0.7);
  border-left: 4px solid #c62828; /*Ligne rouge décorative à gauche*/
}

/*GALERIE D’IMAGES*/

.galerie {
  display: grid; /*Grille responsive*/
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); /*Colonnes adaptatives*/
  gap: 15px;
}

.galerie img {
  width: 100%;
  border-radius: 10px;
  transition: transform 0.3s, box-shadow 0.3s; /*Animation sur zoom et ombre*/
  box-shadow: 0 2px 8px rgba(0,0,0,0.8);
}

.galerie img:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(198,40,40,0.7);
}

/*FORMULAIRE DE CONTACT*/

#contact form {
  display: flex;
  flex-direction: column; /*Empile les champs verticalement*/
  gap: 15px;
  background: #1a1a1a;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.7);
  border: 1px solid #333;
}

#contact label {
  font-weight: bold;
  color: #ff5252;
}

#contact input,
#contact textarea {
  padding: 10px;
  border: 1px solid #444;
  border-radius: 8px;
  font-size: 1em;
  width: 100%;
  background: #111;
  color: #eee;
}

#contact input:focus,
#contact textarea:focus {
  border-color: #c62828; /*Changement de couleur lors du focus*/
  outline: none;
}

#contact button {
  padding: 12px;
  background: #c62828;
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}

#contact button:hover {
  background: #ff5252;
  transform: scale(1.05);
}

/*FOOTER*/

footer {
  background: #000;
  color: #999;
  text-align: center;
  padding: 15px;
  font-size: 0.9em;
  border-top: 2px solid #c62828;
}

/*ANIMATION "EXPLOSION"*/

@keyframes explode {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(2.5);
    opacity: 0.7;
    background: #ff5252;
    box-shadow: 0 0 20px #ff0000, 0 0 40px #ff5252;
  }
  100% {
    transform: scale(5);
    opacity: 0;
  }
}

.explode {
  animation: explode 0.8s forwards; /*Lance l'animation une fois*/
}

/*TABLEAU DES MODÈLES*/

#modeles table {
  width: 100%;
  border-collapse: collapse; /*Fusionne les bordures*/
  margin: 20px 0;
  font-size: 16px;
  text-align: center;
  background: #111;
  color: #eee;
  border: 2px solid #c00;
}

#modeles th, 
#modeles td {
  padding: 12px 15px;
  border: 1px solid #c00;
}

#modeles thead {
  background: #c00;
  color: white;
}

#modeles tbody tr:nth-child(even) {
  background: #222; /*Alternance de couleurs pour les lignes*/
}

#modeles tbody tr:hover {
  background: #400; /*Légère surbrillance au survol*/
  transition: 0.3s;
}

/*TABLEAUX STATISTIQUES*/

main section {
  margin: 30px 0;
}

main h2 {
  margin-bottom: 15px;
  color: #c00;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: #111;
  color: #eee;
  margin-bottom: 20px;
  border: 2px solid #c00;
}

th, td {
  padding: 12px;
  border: 1px solid #c00;
  text-align: center;
}

thead {
  background: #c00;
  color: white;
}

tbody tr:nth-child(even) {
  background: #222;
}

tbody tr:hover {
  background: #400;
  transition: 0.3s;
}
