html{
    overflow-x: hidden;
}


@font-face {
    font-family: 'Eolia';
    src: url('fonts/Eolia-HeavyItalic.woff2') format('woff2'),
         url('fonts/Eolia-HeavyItalic.woff') format('woff'),
         url('fonts/Eolia-HeavyItalic.ttf') format('truetype');
    font-weight: bold;
    font-style: italic;
  }
  

/* --- Styles globaux --- */
body {
    margin: 0;
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 100vh;
    background-size: cover;
}


h1, h2 {
    font-family: 'Eolia', sans-serif;
    font-weight: bold;
    font-style: italic;
  }
  


/* --- Image d'accueil --- */
#ImageAccueil {
    width: 100%;
    height: auto;
}

/* --- Conteneur général --- */
.container {
    max-width: 1080px;
    width: 100%;
    margin: 0 auto;
}

/* --- Styles du header --- */
header {
    background-color: rgb(255, 0, 51);
    width: 100%;
    display: flex;
    align-items: center;
    padding: 0 20px;
    height: 80px;
    box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.5);
    z-index: 1;
    position: relative;
}

header .logo {
    margin-right: 20px;
    display: flex;
    align-items: center;
    height: 100%;
}

header img {
    width: auto;
    height: 70%;
    max-height: 100%;
    display: block;
}

/* --- Navigation du header --- */
header nav {
    display: flex;
    justify-content: flex-end;
    flex-grow: 1;
}

header nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
}

header nav ul li {
    position: relative;
    margin: 0;
    padding: 0;
}

header nav ul li a {
    text-decoration: none;
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    padding: 10px 15px;
    transition: background-color 0.3s ease, color 0.3s ease;
    border-radius: 5px;
}

/* --- Effet au survol et page active --- */
header nav ul li a:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: #e3e3e3;
}

header nav ul li a.active {
    background-color: #ff4f4f;
    font-weight: bold;
}

main {
    max-width: 1080px; /* Largeur max pour éviter un dépassement sur grands écrans */
    width: 100%; /* Permet de s'adapter aux petits écrans */
    background-color: white;
    min-height: 100vh;
    height: auto;
    margin: 0 auto; /* Centre bien le main */
    padding: 20px;
    box-sizing: border-box;
    z-index: 0;
}


/* --- Formulaire centré (sans position absolute) --- */
#formulaire {
    background: #fff;
    padding: 20px 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    width: 500px;
    box-sizing: border-box;
    margin: 50px auto; /* Centre le formulaire naturellement */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.container_contact {
    display: flex;
}

/* --- Champs du formulaire --- */
#formulaire h1 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 24px;
    color: #333;
}

#en-tete {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

#nom,
#prenom {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* --- Inputs et textarea --- */
label {
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
}

input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 14px;
    color: #555;
}

textarea {
    resize: none;
    height: 100px;
}

/* --- Bouton d'envoi --- */
input[type="submit"] {
    width: 100%;
    padding: 10px 15px;
    background-color: #ff0000;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

input[type="submit"]:hover {
    background-color: #a80303;
}

/* --- Footer --- */
footer {
    background-color: rgb(255, 0, 51);
    color: #fff;
    text-align: center;
    width: 100%;
    box-shadow: 4px 4px 10px rgba(0, 0, 0, 1);
    z-index: 1;
}

footer .container {
    padding: 20px;
}

.credits-link {
    right: 20px;
    bottom: 10px;
    text-decoration: none;
    color: #ffffff;
    font-weight: bold;
    transition: color 0.3s ease-in-out;
}

.credits-link:hover {
    color: #ff4747;
    text-decoration: underline;
}



/* --- Responsive Design --- */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    nav ul li a {
        font-size: 16px;
    }

    footer .container {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    nav ul li a {
        font-size: 14px;
        padding: 8px 12px;
    }

    footer .container {
        font-size: 12px;
    }
}

table {
    width: 100%;
    border-collapse: collapse; /* Pour que les bordures se rejoignent */
    margin: 20px 0;
}

th, td {
    padding: 10px;
    text-align: left;
    border: 1px solid #ddd; /* Bordure gris clair */
}

th {
    background-color: #f4f4f4;
    font-weight: bold;
}

/* Style global pour le tableau */
#mesDonnees {
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 16px;
    text-align: left;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* En-tête du tableau */
#mesDonnees thead th {
    background-color: #fff;
    color: rgb(0, 0, 0);
    font-weight: bold;
    padding: 12px;
    border: 1px solid #ddd;
}

/* Lignes du tableau */
#mesDonnees tbody tr {
    border: 1px solid #ddd;
    transition: background-color 0.3s ease;
}

#mesDonnees tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

#mesDonnees tbody tr:nth-child(odd) {
    background-color: #fff;
}

/* Survol des lignes */
#mesDonnees tbody tr:hover {
    background-color: #f1f1f1;
}

/* Cellules du tableau */
#mesDonnees td, #mesDonnees th {
    padding: 10px;
    text-align: left;
}

/* Positionnement du "Show entries" */
.dataTables_wrapper .dataTables_length {
    float: left; /* Place "Show entries" à gauche */
    margin: 10px 0; /* Ajoute un espace en haut et en bas */
    display: flex;
    align-items: center; /* Aligne verticalement */
    max-width: 200px; /* Limite la largeur pour éviter de trop occuper l'espace */
}

/* Positionnement de la pagination */
.dataTables_wrapper .dataTables_paginate {
    float: right; /* Place la pagination à droite */
    margin: 10px 0; /* Ajoute un espace en haut et en bas */
    display: flex;
    align-items: center; /* Aligne verticalement avec "Show entries" */
    clear: none; /* Permet de les aligner sur la même ligne */
}

/* Lien pour la pagination de DataTables */
.dataTables_wrapper .dataTables_paginate .paginate_button {
    background-color: #f0f0f0; /* Couleur de fond classique */
    color: #000 !important; /* Couleur du texte noir */
    border: 1px solid #ccc; /* Bordure grise légère */
    border-radius: 4px;
    padding: 6px 12px;
    margin: 2px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background-color: #e0e0e0; /* Couleur plus claire au survol */
    color: #000; /* Texte noir au survol */
}

/* Barre de recherche */
.dataTables_wrapper .dataTables_filter {
    float: right; /* Place la barre de recherche à droite */
    margin-bottom: 10px; /* Ajoute un espace en dessous */
    display: flex;
    align-items: center; /* Aligne verticalement */
}

.dataTables_wrapper .dataTables_filter input {
    margin-left: 5px; /* Ajoute un espace avant l'input */
    padding: 6px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Informations sur les données */
.dataTables_wrapper .dataTables_info {
    margin: 10px 0;
    font-size: 14px;
    color: #555;
    clear: both; /* S'assure que tout reste bien aligné */
}

h1 {
    display: flex;
    justify-content: center; /* Centre horizontalement */
    align-items: center; /* Centre verticalement */
    height: 100%; /* Assurez-vous que le conteneur parent a une hauteur définie */
}

.dt-bottom-bar {
    display: flex
;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}

.dataTables_paginate.paging_simple_numbers {
    margin-top: -35px;

}

.dataTables_info{

    width: 300px;
}

#formulaire {
    background: #fff;
    padding: 20px 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 500px;
    box-sizing: border-box;
    
    /* Centrage horizontal et vertical */
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.container_contact{
    display: flex;
}

#formulaire h1 {
  text-align: center;
  margin-bottom: 20px;
  font-size: 24px;
  color: #333;
}

/* Conteneur pour les champs prénom et nom */
#en-tete {
  display: flex;
  gap: 15px; /* Espacement entre les champs */
  margin-bottom: 15px;
}

#nom,
#prenom {
  flex: 1; /* Chaque champ prend une largeur égale */
  display: flex;
  flex-direction: column;
}

/* Style pour les champs de formulaire */
label {
  font-weight: bold;
  margin-bottom: 5px;
  color: #333;
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  box-sizing: border-box;
  font-size: 14px;
  color: #555;
}

textarea {
  resize: none; /* Désactive le redimensionnement */
  height: 100px;
}

/* Style du bouton d'envoi */
input[type="submit"] {
  width: 100%;
  padding: 10px 15px;
  background-color: #ff0000;
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

input[type="submit"]:hover {
  background-color: #a80303;
}

/* Espacement entre les champs */
span {
  color: #e63946;
}

#bodyformulaire{
    justify-content: center;
}

/* Style pour les messages d'information */
.message-info {
    background-color: #e7f3fe;
    color: #31708f;
    padding: 10px;
    border: 1px solid #bce8f1;
    border-radius: 5px;
    margin-bottom: 15px;
    text-align: center;
}

/* Style pour le fieldset et les boutons radio */
fieldset {
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 15px;
}

legend {
    font-weight: bold;
    color: #333;
}

input[type="radio"] {
    margin-right: 5px;
}

fieldset label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: normal;
}

.animated-mario {
    position: absolute; /* Position absolue pour un placement précis */
    left: -200px; /* Commence en dehors de l'écran à gauche */
    top: 50%; /* Ajuste verticalement */
    transform: translateY(-50%); /* Centre verticalement */
    width: 300px; /* Ajuste la taille de l'image */
    opacity: 0; /* Invisible au départ */
    transition: left 1.5s ease-out, opacity 1s ease-in;
}

/* Animation qui s'active après le chargement */
body.loaded .animated-mario {
    left: 20px; /* Position finale de l'image */
    opacity: 1; /* Rend l'image visible */
}
/* Animation pour les images des petits personnages */
.character-container {
    position: relative;
    width: 100%;
    height: 100px; /* Espace pour les personnages */
    overflow: hidden;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}

.character {
    position: absolute;
    width: 200px; /* Taille ajustable des personnages */
    bottom: 10px;
    left: 100%; /* Débute en dehors de l'écran */
    opacity: 0; /* Invisible au départ */
    visibility: hidden; /* Empêche l'affichage avant animation */
    animation: moveLeft 6s linear infinite, bounce 1s ease-in-out infinite alternate;
}

/* Apparition et disparition identiques */
@keyframes moveLeft {
    0% {
        left: 100%;
        opacity: 0;
        visibility: hidden;
    }
    5% {
        opacity: 1;
        visibility: visible;
    }
    95% {
        opacity: 1;
        visibility: visible;
    }
    100% {
        left: -200px; /* Sortie identique à l'entrée */
        opacity: 0;
        visibility: hidden;
    }
}

@keyframes bounce {
    0% { transform: translateY(0); }
    100% { transform: translateY(5px); } /* Légère oscillation */
}


.credits-link {
    display: inline-block;
    text-decoration: none;
    color: #ffffff; /* Couleur du lien */
    font-weight: bold;
    transition: color 0.3s ease, transform 0.2s ease;
}

.credits-link:hover {
    color: #eb6a6a; /* Changement de couleur au survol */
    transform: scale(1.1); /* Effet de zoom léger */
}

.galerie {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Centre horizontalement */
    align-items: center; /* Centre verticalement */
    gap: 15px;
    width: 100%;
    max-width: 1080px; /* Optionnel : limite la largeur pour éviter un affichage trop large */
    margin: 0 auto; /* Centre la galerie dans son conteneur parent */
    padding: 20px 0; /* Ajoute un peu d'espace en haut et en bas */
    text-align: center;
}

.galerie img {
    width: 400px;
    height: 300px;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.galerie img:hover {
    transform: scale(1.05);
    filter: grayscale(100%);
}



.ImageAccueil{
    width: 100%;
    height: auto;
    border-radius: 5%;
    box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease-in-out;
}

.ImageAccueil:hover {
transform: scale(1.05);
}

.logo {
    position: absolute;
    top: -3px;
    left: 70px;
    transition: transform 0.3s ease-in-out;
}

.logo:hover {
    transform: scale(1.1);
}


/* Conteneur des icônes sociales */
.social-icons {
    display: flex;
    justify-content: space-between; /* Espacement égal entre les icônes */
    gap: 20px; /* Espacement entre les icônes */
    align-items: center;
}

/* Styles des images */
.social-icons a img {
    width: 80px; /* Ajuste la taille des logos */
    height: auto;
    transition: transform 0.3s ease;
}

/* Effet au survol */
.social-icons a img:hover {
    transform: scale(1.2); /* Effet de zoom au survol */
}
