body {
    font-family: Palatino, URW Palladio L, serif;
    line-height: 1.5;
    margin: 0 auto;
    padding: 0;
    background-color: #121212!important;
    color: #000000;
    max-width: 100%; /* Réduit la largeur à 100% pour les écrans plus petits */
    padding: 0;
}

.background-admin {
    background: #121212!important;
}

.logo {
    height: 40px !important; /* Ajuste la taille ici */
    width: auto !important; /* Garde les proportions */
}

/* Centrer le texte et ajuster la taille du footer */
footer {
    text-align: center;
    padding: 1rem 0;
    font-size: 0.9rem;
    z-index: 10;
}

footer p1 {
    margin: 0;
}

/* Style du header */
header {
    position: relative;
    background: #111;
    color: #fff;
    padding: 3rem 5%; /* Utilisation de pourcentage pour la largeur */
    border-radius: 15px;
    box-shadow: 0 0 15px rgba(255, 0, 255, 0.5), 0 0 25px rgba(0, 255, 255, 0.5);
    text-shadow: 0 0 10px rgba(255, 0, 255, 0.5), 0 0 20px rgba(255, 0, 255, 0.5);
    transition: all 0.3s ease;
}

header:hover {
    background: #222;
    box-shadow: 0 0 35px rgba(0, 255, 255, 0.8), 0 0 45px rgba(0, 255, 255, 0.8);
    text-shadow: 0 0 15px rgba(0, 255, 255, 1), 0 0 25px rgba(0, 255, 255, 0.8);
}

/* Style de base des images */
img {
    width: 100%;
    height: auto;
    object-fit: cover;
    position: center;
}

/* Style pour les liens du menu */
.nav-link .btn-link {
    font-size: 1.5rem;
    color: #c8c8c8;
    padding: 0;
    border: none;
}

.nav-link .btn-link:hover {
    color: #86117b;
    text-decoration: underline;
}


/* Style du logo */
.logo {
    position: absolute;
    height: 80px; /* Ajuste la taille pour une icône */
    width: 80px; /* Rend l'image carrée */
    object-fit: contain; /* Garde la qualité */
    left: 100px;
    border-radius: 50%; /* Arrondi l'image si besoin */
}

/* Style du footer */
footer {
    background: #111;
    color: #fff;
    padding: 3rem 5%; /* Utilisation de pourcentage pour la largeur */
    border-radius: 15px;
    position: relative;
    box-shadow: 0 0 15px rgba(255, 0, 255, 0.5), 0 0 25px rgba(0, 255, 255, 0.8);
    text-shadow: 0 0 10px rgba(255, 0, 255, 0.5), 0 0 20px rgba(255, 0, 255, 0.5);
    transition: all 0.3s ease;
}

footer:hover {
    background: #222;
    box-shadow: 0 0 35px rgba(0, 255, 255, 0.8), 0 0 45px rgba(0, 255, 255, 0.8);
    text-shadow: 0 0 15px rgba(34, 122, 122, 0.8), 0 0 25px rgba(34, 122, 122, 0.8);
}

/* Effet sur les textes */
h1 {
    font-size: 3rem; /* Taille initiale du texte */
    text-align: center;
    padding: 3rem 0;
}

h1, p {
    font-family: Palatino, URW Palladio L, serif;
    font-size: 3rem; /* Taille initiale du texte */
    text-align: center;
    padding: 3rem 0;
    color: #ffffff; /* Texte en blanc */
    text-transform: uppercase;
    text-shadow: 0 0 5px #ffffff, 0 0 10px #ffffff, 0 0 20px #ffffff; /* Modification du texte de néon */
    opacity: 0;
    animation: neonDraw 2s ease-in-out forwards;
}



@keyframes neonDraw {
    0% {
        opacity: 0;
        text-shadow: 0 0 5px #ffffff, 0 0 10px #ffffff, 0 0 20px #ffffff;
    }
    25% {
        opacity: 0.5;
        text-shadow: 0 0 8px rgba(238, 100, 238, 0.3), 0 0 15px rgba(238, 100, 238, 0.3);
    }
    50% {
        opacity: 1;
        text-shadow: 0 0 15px rgba(238, 100, 238, 0.5), 0 0 25px rgba(238, 100, 238, 0.5);
    }
    75% {
        opacity: 1;
        text-shadow: 0 0 20px #3c99d2, 0 0 35px #3c99d2;
    }
    100% {
        opacity: 1;
        text-shadow: 0 0 30px #3c99d2, 0 0 50px #3c99d2, 0 0 70px #3c99d2;
    }
}

/* Applique l'animation */
.texte-neon {
    animation-name: neonDraw;
    animation-duration: 8s;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
}

/* Images containers */
.image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem; /* Plus petit espacement pour mobile */
    padding: 2rem;
    overflow: hidden;
    flex-wrap: wrap; /* Permet aux éléments de passer à la ligne si nécessaire */
}

.image-wrapper {
    position: relative;
    width: 100%;
    max-width: 300px; /* Limite la largeur maximale */
    height: auto;
    border-radius: 15px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
}

.image-wrapper:hover {
    transform: scale(1.05);
}

.image-wrapper img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: opacity 0.3s ease-out;
}

.info-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    color: #fff;
    font-size: 14px;
    text-align: center;
    width: 100%;
    padding: 5px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
    transition: opacity 0.3s ease-in-out;
}

.image-wrapper:hover .info-text {
    opacity: 1;
}

/* Utiliser des media queries pour rendre le site responsive */
@media (max-width: 768px) {
    body {
        padding: 1rem;
    }

    header, footer {
        padding: 1rem 5%;
    }

    h1 {
        font-size: 2rem; /* Réduction de la taille du titre */
    }

    .image-wrapper {
        width: 100%;
        max-width: 250px; /* Limiter la largeur des images */
    }

    .nav-link .btn-link {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    h1, p {
        font-size: 2rem; /* Réduction de la taille du texte */
    }

    .image-wrapper {
        width: 100%;
        max-width: 200px; /* Limiter la largeur des images sur les petits écrans */
    }

    .image-container {
        flex-direction: column;
        gap: 1rem; /* Espacement plus petit pour les petits écrans */
    }

    footer {
        font-size: 0.8rem; /* Réduire la taille du texte du footer */
    }
}


.admin table {
    margin: 0 auto !important;
}

/* Centrer le tableau */
table {
    margin: 20px auto; /* Centré avec un peu d'espace autour */
    width: 90%; /* Largeur ajustée à 90% de la page */
    max-width: 1200px; /* Limite de la largeur du tableau pour les grands écrans */
    border-collapse: collapse;
    background-color: #222;
    color: #fff;
    border-radius: 10px;
    overflow: hidden;
}

/* Images dans le tableau */
td img {
    width: 100%; /* S'adapte à la largeur de la cellule */
    max-width: 150px; /* Largeur max pour les images */
    height: auto;
    object-fit: cover; /* Garder les proportions de l'image */
    border-radius: 5px; /* Arrondi les bords de l'image */
}

/* Pour les petits écrans */
@media (max-width: 768px) {
    table {
        width: 100%; /* Pour que le tableau prenne toute la largeur sur les petits écrans */
    }

    td img {
        max-width: 100px; /* Réduit la taille des images */
    }
}

@media (max-width: 480px) {
    table {
        font-size: 0.9rem; /* Réduit la taille du texte du tableau sur les petits écrans */
    }

    td img {
        max-width: 80px; /* Réduit encore la taille des images */
    }
}


.button-container {
    text-align: center; /* Centre les liens */
    margin-top: 20px;
}

.button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #b86eda;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    margin: 5px;
    transition: background 0.3s;
}

.button:hover {
    background-color: #3d71a8;
}


         /* Style pour la section des vignettes */
         .vignettes-container {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            justify-content: center; /* Centre les vignettes horizontalement */
        }

        .vignette {
            width: 150px;
            height: 150px;
            overflow: hidden;
            border: 2px solid #ccc;
            border-radius: 10px;
            position: relative; /* Nécessaire pour positionner le texte au-dessus */
            cursor: pointer;
            transition: transform 0.3s ease-in-out; /* Effet de zoom lors du survol */
        }

        .vignette img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: opacity 0.3s ease-in-out;
        }

        /* Le texte qui va apparaître au survol */
        .vignette .nom {
            position: absolute;
            bottom: 10px; /* Positionné en bas de l'image */
            left: 50%;
            transform: translateX(-50%);
            color: white;
            font-size: 18px;
            font-weight: bold;
            opacity: 0; /* Invisible par défaut */
            transition: opacity 0.3s ease-in-out; /* Animation d'apparition */
            padding: 5px;
            background-color: rgba(0, 0, 0, 0.5); /* Fond semi-transparent */
            border-radius: 5px;
        }

        /* Animation de survol */
        .vignette:hover {
            transform: scale(1.1); /* Agrandissement de l'image */
        }

        .vignette:hover .nom {
            opacity: 1; /* Le texte devient visible */
        }


/* pour le formulaire d'ajout*/

/* Conteneur principal */
.search-container {
    width: 400px;  /* Formulaire plus compact */
    margin: 50px auto;
    padding: 30px;
    background-color: #332d5f;  /* Bleu clair */
    border-radius: 12px;  /* Coins arrondis */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1); /* Ombre portée plus marquée pour modernité */
    transition: box-shadow 0.3s ease;
}


/* Lien de retour */
a {
    display: block;
    text-align: right;
    color: #232628;
    text-decoration: none;
    margin-bottom: 20px;
    font-size: 16px;
    transition: color 0.3s ease;
}

a:hover {
    text-decoration: underline;
    color: #31567d;
}

/* Labels */
form label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
}

/* Champs du formulaire */
form input[type="text"],
form input[type="number"],
form input[type="image"] {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 2px solid #007BFF;  /* Bord bleu clair */
    border-radius: 8px;  /* Coins arrondis */
    box-sizing: border-box;
    font-size: 16px;
    transition: border 0.3s ease, box-shadow 0.3s ease;
}

/* Effet au focus sur les champs */
form input[type="text"]:focus,
form input[type="number"]:focus {
    border-color: #00bcd4;  /* Changement de couleur de bord lors du focus */
    box-shadow: 0 0 5px rgba(0, 188, 212, 0.7);
    outline: none;
}

/* Bouton de soumission */
input[type="submit"] {
    width: 100%;
    padding: 12px;
    background-color: #6e276c;  /* Bleu clair */
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

input[type="submit"]:hover {
    background-color: #0097a7;  /* Bleu plus foncé lors du survol */
    transform: translateY(-2px);  /* Légère élévation du bouton lors du survol */
}

/* Centrer le bouton d'envoi */
input[type="submit"] {
    text-align: center;
}

/* Effet au survol de l'input image */
input[type="image"] {
    width: auto;
    height: 50px;  /* Taille réduite de l'image */
    border-radius: 8px;
    transition: opacity 0.3s ease;
}

/* Style de l'input file image */
form input[type="image"]:hover {
    opacity: 0.8;
}

