/* Réinitialisation CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
    text-decoration: none;
}

body {
    background-color: #1b1b1ba8;
    color: #fff;
    font-size: 16px;
    line-height: 1.5;
}

.gallery-container {
    display: flex;
    flex-wrap: wrap;
}

.image {
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
}

.image img {
    width: 100%;
    height: auto;
}

.ranking-table {
    max-width: 100%;
    overflow-x: auto;
}

.ranking-table table {
    width: 100%;
    border-collapse: collapse;
}

.ranking-table th,
.ranking-table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

@media screen and (max-width: 480px) {
    .ranking-table {
        overflow-x: scroll;
    }
}

td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

td:not(:last-child) {
    border-right: 1px solid #ddd;
}


.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    text-align: center;
}

.lightbox img {
    max-width: 80%;
    max-height: 80%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.lightbox:target {
    display: block;
}

.pagination a {
  margin-right: 10px;
}

.background-image {
      position: absolute;
      width: 100%;
      height: 100%;
      background-size: cover;
      background-position: center;
      z-index: -1;
      filter: blur(5px) brightness(50%);
      animation: fadeInOut 30s infinite;
      opacity: 0;
    }
    .background-image:first-child {
      animation-delay: 0s;
      opacity: 1;
    }
    @keyframes fadeInOut {
      0% {
        opacity: 1;
      }
      33% {
        opacity: 0;
      }
      66% {
        opacity: 0;
      }
      100% {
        opacity: 1;
      }
    }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

h1 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 20px;
}

.user-info {
    font-size: 1.25rem;
    margin-bottom: 20px;
}

.user-info p {
    margin-bottom: 10px;
}

.actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.actions a {
    
    background-color: #242424b3;
    color: #fff;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 1.25rem;
    text-align: center;
    transition: background-color 0.3s;

}

.actions a:hover {
    background-color: #3F9142;
}

/* Responsive design pour les appareils mobiles */
@media screen and (max-width: 768px) {
    h1 {
        font-size: 1.75rem;
    }

    .user-info {
        font-size: 1rem;
    }

    .actions a {
        font-size: 1rem;
        padding: 8px 16px;
    }
}
.logo {
    text-align: center;
    margin-bottom: 20px;
}

.logo img {
    width: 250px;
    height: auto;
}
.avatar-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
}


.avatar-image {
    max-width: 150px;
    width: 100%;
    height: auto;
    border-radius: 15%;
    margin: 0 auto; 
}

.button {
     width: 350px;
    background-color: #242424b3;
    color: #fff;
    padding: 10px 20px;
    border-radius: 20px;
    /* font-size: 1.25rem; */
    text-align: center;
    transition: background-color 0.3s;
}

.photo-button {
    background-color: #1c1c1c;
    border: white;
    color: white;
    padding: 10px 16px;
    font-size: 50px;
    cursor: pointer;
    border-radius: 100px;
    }

    .photo-button:hover {
    background-color: #fff0;
}

h1 {
  text-align: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

form label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}

form input[type="text"],
form input[type="email"],
form input[type="number"],
form input[type="file"] {
  display: block;
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

form input[type="submit"] {
  display: block;
  width: 100%;
  padding: 10px;
  margin-top: 20px;
  background-color: #4CAF50;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

@media screen and (max-width: 600px) {
  form label {
    font-size: 0.8rem;
  }
  
  form input[type="text"],
  form input[type="email"],
  form input[type="number"],
  form input[type="file"],
  form input[type="submit"] {
    font-size: 0.8rem;
  }
}
.promotion-image {
    max-width: 150px;
    width: 100%;
}
#messages {
    width: 100%;
    height: calc(100vh - 90px);
    overflow-y: auto;
    margin-bottom: 0px;
    background-color: #00000047;
    color: #fff;
    display: flex;
    flex-direction: column-reverse;
    padding: 5px;
}
.message.new {
  animation: slide-up 0.5s ease;
}
@keyframes slide-up {
  0% {
    transform: translateY(100%);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

.message {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  font-size: 18px;
}

.username {
  font-weight: bold;
  color: #fff;
}

.user-info {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  margin-right: 10px;
  flex-shrink: 0;
}

@media only screen and (max-width: 768px) {
  .avatar {
    width: 40px;
    height: 40px;
    margin-right: 5px;
  }
}

#message-form {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  display: flex;
  align-items: center;
  padding: 10px;
  background-color: #000;
  box-shadow: 0px -1px 5px rgba(0, 0, 0, 0.1);
  z-index: 1;
}

#message {
  flex: 1;
  margin-right: 10px;
  padding: 10px;
  border: none;
  font-size: 16px;
background-color: #ffffff4f;
    color: #000000b5;
}

button[type="submit"] {
  background-color: #007bff;
  color: #fff;
  border: none;
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

button[type="submit"]:hover {
  background-color: #0069d9;
}
.avatar-container {
  display: flex;
  align-items: center;
  margin-right: 10px;
}

.username {
  font-weight: bold;
  color: #fff;
  margin-left: 5px;
}

#my-form {
 position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
background-color: rgb(0 0 0 / 91%);
padding: 10px; /* Reduce padding on small screens */

@media (min-width: 600px) {
    max-width: 600px;
    padding: 60px;
}

#my-form2 {
  position: absolute;
  max-width: 1100px; /* largeur maximale du formulaire */
  background-color: rgba(0, 0, 0, 0.8); /* couleur de fond noire transparente */
  padding: 50px; /* marge intérieure */
}


.bg-dark-alfa:before,
.bg-dark-alfa .YTPOverlay:before{
    content: " ";
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background: rgba(17,17,17, .97);
}
.bg-dark-alfa-30:before,
.bg-dark-alfa-30 .YTPOverlay:before{
    content: " ";
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background: rgba(34,34,34, .3);
}
.bg-dark-alfa-50:before,
.bg-dark-alfa-50 .YTPOverlay:before{
    content: " ";
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background: rgba(34,34,34, .5);
}
.bg-dark-alfa-70:before,
.bg-dark-alfa-70 .YTPOverlay:before{
    content: " ";
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background: rgba(17,17,17, .7);
}
.bg-dark-alfa-90:before,
.bg-dark-alfa-90 .YTPOverlay:before{
    content: " ";
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background: rgba(3,3,3, .9);
}
.bg-light-alfa:before{
    content: " ";
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background: rgba(252,252,252, .97);
}
.bg-light-alfa-30:before,
.bg-light-alfa-30 .YTPOverlay:before{
    content: " ";
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background: rgba(252,252,252, .30);
}
.bg-light-alfa-50:before,
.bg-light-alfa-50 .YTPOverlay:before{
    content: " ";
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background: rgba(252,252,252, .50);
}
.bg-light-alfa-70:before,
.bg-light-alfa-70 .YTPOverlay:before{
    content: " ";
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background: rgba(252,252,252, .7);
}
.bg-light-alfa-90:before,
.bg-light-alfa-90 .YTPOverlay:before{
    content: " ";
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background: rgba(252,252,252, .9);
}
.bg-color{
    background-color: #f1273c;
}
.bg-color-alfa:before,
.bg-color-alfa .YTPOverlay:before{
    content: " ";
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background: #f1273c;
    opacity: .97;
}
.bg-color-alfa-30:before,
.bg-color-alfa-30 .YTPOverlay:before{
    content: " ";
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background: #f1273c;
    opacity: .3;
}
.bg-color-alfa-50:before,
.bg-color-alfa-50 .YTPOverlay:before{
    content: " ";
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background: #f1273c;
    opacity: .5;
}
.bg-color-alfa-70:before,
.bg-color-alfa-70 .YTPOverlay:before{
    content: " ";
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background: #f1273c;
    opacity: .7;
}
.bg-color-alfa-90:before,
.bg-color-alfa-90 .YTPOverlay:before{
    content: " ";
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background: #f1273c;
    opacity: .9;
}
.player {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    filter: blur(10px); /* change this value to increase or decrease the blur */
}