/* style.css */

/* Style de base */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f2f2f2;
}

h2 {
    color: #333;
    text-align: center;
}

form {
    max-width: 600px;
    margin: 0 auto;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

input[type="text"],
input[type="file"],
textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

textarea {
    height: 100px;
}

input[type="submit"],
button {
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 4px;
}

input[type="submit"]:hover,
button:hover {
    background-color: #0056b3;
}

a {
    color: #007bff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 60px;
}

.video {
    margin: 20px;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 400px;
}

.video h3 {
    color: #333;
    margin-top: 0;
}

.video p {
    color: #666;
}

.video video {
    width: 100%;
    height: auto;
}

/* Navbar */
.navbar {
    background-color: #333;
    overflow: hidden;
}

.navbar a {
    float: left;
    display: block;
    color: white;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
}

.navbar a:hover {
    background-color: #ddd;
    color: black;
}

.active {
    background-color: #4CAF50;
    color: white;
}

/* css_images.css */

.image {
    margin: 20px;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 400px;
}

.image p {
    margin-bottom: 10px;
}

.image img {
    width: 100%;
    height: auto;
}

.image button {
    background-color: #f44336;
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.image button:hover {
    background-color: #d32f2f;
}

/* Pagination */
.pagination {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    background-color: #f1f1f1;
    text-align: center;
    padding: 10px 0;
    border-top: 1px solid #ddd;
}

.pagination a {
    color: black;
    padding: 8px 16px;
    text-decoration: none;
    transition: background-color .3s;
}

.pagination a:hover {
    background-color: #ddd;
}


.pagination .active {
    background-color: #0056b3;
}

@media only screen and (max-width: 600px) {
    .video {
      margin-left: 50px; /* Ajout de la marge à gauche pour les petits écrans */
    }

    .container {
        width: 90%;
    }
    .video,
    .image {
        width: 100%;
    }

    /* Redimensionnement des vidéos */
    .video video {
        width: 100%; /* Ajustement de la largeur à 100% */
        max-width: 300px; /* Largeur maximale de la vidéo sur les téléphones */
    }

    /* Redimensionnement des images */
    .image img {
        width: 100%; /* Ajustement de la largeur à 100% */
        max-width: 300px; /* Largeur maximale de l'image sur les téléphones */
    }   
  }
  
  

  /* Style de base pour les images */
.image {
    position: relative;
    display: inline-block;
    margin: 10px;
}

.image img {
    max-width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

/* Style pour agrandir l'image lorsqu'elle est cliquée */
.image.clicked img {
    transform: scale(1.2);
}   

.btnsupp{
    display: flex;
    justify-content: center; /* Alignement horizontal */
    align-items: center; /* Alignement vertical */
    height: 100px; /* Taille de la div pour centrer verticalement */
}
