/*--------------------------------------------------------------------------mobile*/
body {
  font-family: "Open Sans Condensed", sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f4f4f4;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  max-width: 100%;
  background-image: url("../images/background.jpeg");
}

#no-font-change {
  font-size: inherit !important;
}

.video-fond {
  position: relative;
  top: 0;
  left: 0;
  width: 100%;
  height: 500px;
  z-index: -1;
}

video {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

#kendrick-hero {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 500px;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
}

#kendrick-hero h1 {
  font-family: "Ponomar", system-ui;
  margin-right: 40vw;
  display: flex;
  flex-direction: column;
  text-align: left;
  z-index: 10;
  font-size: 52px;
  color: #ffffff;
  text-shadow: 2px 2px 4px #000000;
  margin: 0px 20px;
}

#kendrick-container {
  max-width: 90%;
  margin-top: 50px;
  margin-bottom: 20px;
  padding: 30px 30px;
  box-shadow: 2px 2px 4px #939393;
  border-radius: 15px;
  background-color: #ffffff;
}

h1 {
  font-family: "Shadows Into Light", cursive;
}

#kendrick-contenu {
  font-family: "Big Shoulders", sans-serif;
  font-size: 1.25rem;
  color: #050505;
  text-align: left;
}

#carouselExample {
  margin-bottom: 10px;
}

/*--------------------------------------------------listing*/
.catalogue {
  margin-top: 50px;
  margin-bottom: 50px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.catalogue-item {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 15px;
  width: 250px;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  background-color: #ffffff;
}

.catalogue-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.catalogue-info {
  margin-top: 10px;
}

.catalogue-info h3 {
  font-size: 1.2em;
  margin-bottom: 10px;
}

.catalogue-info p {
  margin: 5px 0;
  font-size: 0.9em;
}

/*------------------------------------------------admin*/
/*---------------------------------------------------------modifier / supprimer / ajouter*/
.catalogue-item a {
  color: #d70000;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.catalogue-item a:hover {
  color: #720000;
}

.lien {
  display: inline-block;
  color: #d70000;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.2rem;
  padding: 10px 20px;
  border: 2px solid #282828;
  border-radius: 5px;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.lien:hover {
  background-color: #d70000;
  color: #ffffff;
  transform: scale(1.05);
}

/*------------------------------------------------formulaire nouveau et modif*/
form {
  max-width: 600px;
  margin: 10px auto;
  padding: 20px;
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  font-family: "Big Shoulders", sans-serif;
}

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

form input[type="submit"] {
  padding: 10px 20px;
  background-color: #282828;
  color: #ffffff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

form input[type="submit"]:hover {
  background-color: #000000;
  transform: scale(1.05);
}

form label {
  font-size: 1rem;
  font-weight: bold;
  margin-bottom: 5px;
  display: block;
  color: #333333;
}

form select {
  appearance: none;
  background-color: #f9f9f9;
}

form select:focus,
form input:focus {
  outline: none;
  border-color: #282828;
  box-shadow: 0 0 5px rgba(40, 40, 40, 0.5);
}

/*------------------------------------------------formulaire recherche*/
#formRecherche {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
  gap: 10px;
}

#formRecherche input[type="text"],
#barreRecherche {
  padding: 10px;
  width: 100%;
  max-width: 300px;
  border-radius: 5px;
  border: 1px solid #ccc;
}

#formRecherche input[type="submit"],
#btnRecherche {
  padding: 10px;
  border: none;
  background-color: #282828;
  color: white;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#formRecherche input[type="submit"]:hover,
#btnRecherche:hover {
  background-color: #000000;
}

.recherche {
  max-width: 90%;
  margin: 50px auto;
  padding: 20px;
  box-shadow: 2px 2px 4px #939393;
  border-radius: 15px;
  background-color: #ffffff;
  text-align: center;
}

/*---------------------------------------------------------reponse recherche*/
.search-results {
  margin: 50px auto;
  padding: 20px;
  max-width: 80%;
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.search-results h1 {
  font-family: "Shadows Into Light", cursive;
  font-size: 2.5rem;
  color: #333333;
  text-align: center;
  margin-bottom: 20px;
}

.search-results p {
  font-family: "Big Shoulders", sans-serif;
  font-size: 1.2rem;
  color: #555555;
  text-align: center;
  margin-bottom: 30px;
}

.search-results table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 auto;
  margin-top: 20px;
}

.search-results table thead {
  background-color: #333333;
  color: #ffffff;
}

.search-results table thead th {
  padding: 10px;
  text-transform: uppercase;
  font-weight: bold;
  font-size: 14px;
}

.search-results table tbody tr {
  border-bottom: 1px solid #e0e0e0;
}

.search-results table tbody tr:nth-of-type(even) {
  background-color: #f9f9f9;
}

.search-results table tbody tr:hover {
  background-color: #f1f1f1;
}

.search-results table tbody td {
  padding: 10px;
  font-size: 14px;
  text-align: center;
}

.search-results table tbody img {
  max-width: 80px;
  border-radius: 4px;
}

/*---------------------------------------------------------header*/
header {
  font-family: "Archivo Black", sans-serif;
  padding: 15px 0;
  text-align: center;
  width: 100%;
  top: 0;
  left: 0;
  background-color: #ffffff;
  z-index: 10;
}

.navbar-brand {
  font-size: 30px;
  font-weight: bold;
  color: #000000;
}

.navbar-toggler {
  border: none;
}

.navbar-nav .nav-item .nav-link {
  color: #000000;
  font-size: 24px;
  position: relative;
  padding: 4px 0;
  letter-spacing: 2px;
}

.navbar-nav .nav-item .nav-link.active::before {
  content: "";
  width: 50%;
  height: 4px;
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  background: #282828;
}

.navbar-nav {
  display: flex;
  gap: 20px;
}

.navbar-right {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: auto;
}

.image-button a img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

/*------------------------------------------------accessibilité*/
#accessibility-menu {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
}

#toggle-accessibility {
  background-color: #ffffff;
  color: white;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

#toggle-accessibility img {
  width: 24px;
  height: 24px;
}

#accessibility-options {
  background-color: #f9f9f9;
  padding: 20px;
  border-radius: 12px;
  margin-top: 15px;
  display: none;
  position: absolute;
  right: 0;
  bottom: 70px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

#accessibility-options button {
  margin: 8px 0;
  padding: 12px 18px;
  background-color: #333333;
  color: #ffffff;
  border: none;
  cursor: pointer;
  border-radius: 6px;
  width: 100%;
  text-align: left;
  transition: background-color 0.3s, transform 0.3s;
}

#accessibility-options button:hover {
  background-color: #555555;
  transform: scale(1.05);
}

.no-font-change {
  font-size: 16px !important;
}

#accessibility-options {
  width: auto !important;
  height: auto !important;
}

/*------------------------------------------------footer*/
footer {
  font-family: "Archivo Black", sans-serif;
  background-color: #282828;
  color: #fff;
  text-align: center;
  padding: 30px 0;
  width: 100%;
}

.col-md-3,
.col-md-4 {
  display: flex;
  flex-direction: column;
}

.col-md-3 a,
.col-md-4 a {
  color: #fff;
  text-decoration: none;
  margin-bottom: 10px;
}

.col-md-3 a:hover,
.col-md-4 a:hover {
  color: #ccc;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 10px;
}

.footer-social a {
  color: #fff;
  text-decoration: none;
  font-size: 20px;
}

.footer-social a:hover {
  color: #ccc;
}

.footer-bottom {
  width: 100%;
  text-align: center;
  padding-top: 10px;
  border-top: 1px solid #444;
  margin-top: 10px;
}

.footer-bottom p {
  margin: 0;
  font-size: 12px;
  color: #aaa;
}

/*--------------------------------------------------------------------------pc*/
@media (min-width: 576px) {
  body {
    font-size: 18px;
  }

  .video-fond {
    height: 820px;
  }

  #kendrick-hero h1 {
    margin-top: 350px;
    font-size: 160px;
  }

  #kendrick-container {
    max-width: 70%;
    padding: 50px 50px;
  }

  h2 {
    font-size: 2em;
  }

  #kendrick-contenu {
    font-size: 24px;
  }

  .navbar-brand {
    font-size: 28px;
  }

  .navbar-nav .nav-item .nav-link {
    font-size: 20px;
  }

  footer {
    width: 100%;
  }

  table {
    font-size: 18px;
    width: 90%;
  }

  table thead th {
    padding: 12px 15px;
    font-size: 16px;
  }

  table tbody td {
    padding: 12px 15px;
    font-size: 16px;
  }

  table tbody img {
    max-width: 100px;
  }

  #formRecherche {
    flex-direction: row;
    gap: 20px;
  }

  #formRecherche input[type="text"],
  #barreRecherche {
    width: 400px;
  }

  .recherche {
    max-width: 600px;
  }
}

.image-button {
  position: relative;
  right: auto;
  top: auto;
  transform: none;
}

/*---------------------------------------------------------loader*/
#loader-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  background-color: #ffffff;
}

#loader {
  display: block;
  position: relative;
  left: 50%;
  top: 50%;
  width: 150px;
  height: 150px;
  margin: -75px 0 0 -75px;
  border-radius: 50%;
  border: 3px solid transparent;
  border-top-color: #000000;
  animation: spin 2s linear infinite;
}

#loader:before {
  content: "";
  position: absolute;
  top: 5px;
  left: 5px;
  right: 5px;
  bottom: 5px;
  border-radius: 50%;
  border: 3px solid transparent;
  border-top-color: #3f3f3f;
  animation: spin 3s linear infinite;
}

#loader:after {
  content: "";
  position: absolute;
  top: 15px;
  left: 15px;
  right: 15px;
  bottom: 15px;
  border-radius: 50%;
  border: 3px solid transparent;
  border-top-color: #929292;
  animation: spin 1.5s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
