:root {
  --primaire: #007bff;
  --secondaire: #6c757d;
  --succes: #28a745;
  --information: #17a2b8;
  --exclamation: #ffc107;
  --dangereux: #dc3545;
  --blanc: #f8f9fa;
  --sombre: #343a40;
  --bg: #e3e4e8;
  --fg: #2e3138;
  --primary: #255ff4;
}
#loaderprincipal {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.8); /* semi-transparent */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  display: none;
}

.hourglass,
.hourglass:before,
.hourglass:after {
  animation-duration: 4s;
  animation-iteration-count: infinite;
}
.hourglass {
  --polygonH: polygon(
    0% 0%,
    100% 0%,
    100% 5.55%,
    95% 5.55%,
    95% 28%,
    60% 46%,
    60% 54%,
    95% 72%,
    95% 94.45%,
    100% 94.45%,
    100% 100%,
    0% 100%,
    0% 94.45%,
    5% 94.45%,
    5% 72%,
    40% 54%,
    40% 46%,
    5% 28%,
    5% 5.55%,
    0% 5.55%
  );
  animation-name: flip;
  animation-timing-function: ease-in-out;
  background-image: linear-gradient(
    var(--primary) 0.5em,
    #737a8c55 0.5em 8.5em,
    var(--primary) 8.5em
  );
  clip-path: var(--polygonH);
  -webkit-clip-path: var(--polygonH);
  overflow: hidden;
  position: relative;
  width: 5em;
  height: 9em;
  z-index: 0;
}
.hourglass:before,
.hourglass:after {
  animation-timing-function: linear;
  content: "";
  display: block;
  position: absolute;
}
.hourglass:before {
  --polygonB1: polygon(
    0% 0%,
    100% 0%,
    100% 24%,
    50% 47%,
    50% 47%,
    50% 47%,
    50% 47%,
    50% 47%,
    50% 47%,
    50% 47%,
    50% 47%,
    0% 24%
  );
  --polygonB2: polygon(
    0% 4%,
    100% 4%,
    100% 24%,
    55% 45%,
    55% 100%,
    55% 100%,
    55% 100%,
    45% 100%,
    45% 100%,
    45% 100%,
    45% 45%,
    0% 24%
  );
  --polygonB3: polygon(
    0% 24%,
    100% 24%,
    100% 24%,
    55% 45%,
    55% 80%,
    100% 100%,
    100% 100%,
    0% 100%,
    0% 100%,
    45% 80%,
    45% 45%,
    0% 24%
  );
  --polygonB4: polygon(
    45% 45%,
    55% 45%,
    55% 45%,
    55% 45%,
    55% 58%,
    100% 76%,
    100% 100%,
    0% 100%,
    0% 76%,
    45% 58%,
    45% 45%,
    45% 45%
  );
  --polygonB5: polygon(
    50% 53%,
    50% 53%,
    50% 53%,
    50% 53%,
    50% 53%,
    100% 76%,
    100% 100%,
    0% 100%,
    0% 76%,
    50% 53%,
    50% 53%,
    50% 53%
  );
  animation-name: fill;
  background-color: var(--fg);
  background-size: 100% 3.6em;
  clip-path: var(--polygonB1);
  -webkit-clip-path: var(--polygonB1);
  top: 0.5em;
  left: 0.5em;
  width: 4em;
  height: 8em;
  z-index: 1;
}
.hourglass:after {
  animation-name: glare;
  background: linear-gradient(
        90deg,
        #0000 0.5em,
        #0003 0.5em 1.5em,
        #0000 1.5em 3.5em,
        #fff3 3.5em 4.5em,
        #fff0 4.5em 6.5em,
        #0003 6.5em 7.5em,
        #0000 7.5em
      )
      0 0 / 100% 0.5em,
    linear-gradient(
        90deg,
        #0000 0.75em,
        #0003 0.75em 1.25em,
        #0000 1.25em 3.75em,
        #fff3 3.75em 4.25em,
        #fff0 4.25em 6.75em,
        #0003 6.75em 7.25em,
        #0000 7.25em
      )
      0 0.5em / 100% 8em,
    linear-gradient(
        90deg,
        #0000 0.5em,
        #0003 0.5em 1.5em,
        #0000 1.5em 3.5em,
        #fff3 3.5em 4.5em,
        #fff0 4.5em 6.5em,
        #0003 6.5em 7.5em,
        #0000 7.5em
      )
      0 100% / 100% 0.5em;
  background-repeat: repeat-x;
  top: 0;
  left: -3em;
  width: 200%;
  height: 100%;
  z-index: 2;
}
/* Animations */
@keyframes fill {
  from {
    clip-path: var(--polygonB1);
    -webkit-clip-path: var(--polygonB1);
  }
  10% {
    clip-path: var(--polygonB2);
    -webkit-clip-path: var(--polygonB2);
  }
  45% {
    clip-path: var(--polygonB3);
    -webkit-clip-path: var(--polygonB3);
  }
  80% {
    clip-path: var(--polygonB4);
    -webkit-clip-path: var(--polygonB4);
  }
  85%,
  to {
    clip-path: var(--polygonB5);
    -webkit-clip-path: var(--polygonB5);
  }
}
@keyframes glare {
  from,
  90% {
    transform: translateX(0);
  }
  to {
    transform: translateX(3em);
  }
}
@keyframes flip {
  from,
  90% {
    transform: rotate(0);
  }
  to {
    transform: rotate(180deg);
  }
}
/* Set the global font to Poppins */
body,
html {
  width: 100%;
  font-family: "Poppins", sans-serif;
  padding: 1rem 0;
}
body,
p {
  color: #777;
  font: 400 1rem/1.75rem "Poppins", sans-serif;
}
body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}
body .container {
  max-width: 600px;
}
.price-tag-container {
  display: inline-block;
  position: relative;
  width: 100%;
}
.alert-animation {
  position: fixed;
  bottom: -100px;
  right: 2%;
  z-index: 1050;
  transition: bottom 0.5s ease, opacity 0.5s ease;
  opacity: 0;
}

.alert-animation.show {
  bottom: 30px;
  opacity: 1;
}

.alert-animation.hide {
  bottom: -100px;
  opacity: 0;
}
#schoolResults .list-group-item:hover {
  background-color: #f3f3f3;
  transition: background-color 0.3s ease-in-out;
  cursor: pointer;
}

.alert {
  z-index: 1200;
  min-height: 67px;
  width: 500px;
  max-width: 90%;
  border-radius: 12px;
  padding: 16px 22px 17px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  bottom: 5%;
  right: 3%;
}
.alert.alert-warning {
  background-color: var(--exclamation) !important;
}
.alert-success {
  background-color: var(--succes) !important;
}
.alert-primary {
  background-color: var(--primaire) !important;
}
.alert-dark {
  background-color: var(--sombre) !important;
}
.alert.alert-danger {
  background-color: var(--dangereux) !important;
}
.alert .icon__wrapper {
  height: 34px;
  width: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.253);
  display: flex;
  align-items: center;
  justify-content: center;
}
.alert .icon__wrapper span {
  font-size: 21px;
  color: #fff;
}
.alert p {
  color: #fff;
  font-family: Verdana;
  margin-left: 10px;
}
.alert p a,
.alert p a:visited,
.alert p a:active {
  color: #fff;
}
.alert .open {
  margin-left: auto;
  margin-right: 5px;
}
.alert .close,
.alert .open {
  color: #fff;
  transition: transform 0.5s;
  font-size: 18px;
  cursor: pointer;
}
.alert .close:hover,
.alert .open:hover {
  transform: scale(1.3);
}

.price-tag {
  position: absolute;
  top: -10px;
  right: -15px;
  background-color: #ffc107;
  color: #fff;
  padding: 5px 10px;
  font-size: 0.75rem;
  font-weight: bold;
  border-radius: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  white-space: nowrap;
  transform: rotate(-10deg);
}

.btn:focus {
  outline: none;
  box-shadow: none;
}
.btn:hover {
  background-color: #007bff !important; /* A deeper blue */
  color: white !important; /* Text becomes white */
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.4); /* Blue glow effect */
  border: 2px solid #0056b3; /* Darker blue border */
  transition: all 0.3s ease; /* Smooth transition */
}

/* Fade Animation For Image Lightbox - Magnific Popup */
@-webkit-keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.fadeIn {
  -webkit-animation: fadeIn 0.6s;
  animation: fadeIn 0.6s;
}

@-webkit-keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

.fadeOut {
  -webkit-animation: fadeOut 0.8s;
  animation: fadeOut 0.8s;
}
/* end of fade animation for details lightbox - magnific popup */

/*************************/
.icon-atom {
  width: 80px; /* Largeur */
  height: 80px; /* Hauteur */
  filter: invert(26%) sepia(82%) saturate(2462%) hue-rotate(201deg)
    brightness(97%) contrast(91%);
  /* Utilise 'filter' pour simuler une couleur (ici bleu) */
}
/*     02. Preloader     */
/*************************/
.spinner-wrapper {
  position: fixed;
  z-index: 999999;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: #f7fafd;
}

.spinner {
  position: absolute;
  top: 50%; /* centers the loading animation vertically one the screen */
  left: 50%; /* centers the loading animation horizontally one the screen */
  width: 3.75rem;
  height: 1.25rem;
  margin: -0.625rem 0 0 -1.875rem; /* is width and height divided by two */
  text-align: center;
}

.spinner > div {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  border-radius: 100%;
  background-color: #ff556e;
  -webkit-animation: sk-bouncedelay 1.4s infinite ease-in-out both;
  animation: sk-bouncedelay 1.4s infinite ease-in-out both;
}

.spinner .bounce1 {
  -webkit-animation-delay: -0.32s;
  animation-delay: -0.32s;
}

.spinner .bounce2 {
  -webkit-animation-delay: -0.16s;
  animation-delay: -0.16s;
}

@-webkit-keyframes sk-bouncedelay {
  0%,
  80%,
  100% {
    -webkit-transform: scale(0);
  }
  40% {
    -webkit-transform: scale(1);
  }
}

@keyframes sk-bouncedelay {
  0%,
  80%,
  100% {
    -webkit-transform: scale(0);
    -ms-transform: scale(0);
    transform: scale(0);
  }
  40% {
    -webkit-transform: scale(1);
    -ms-transform: scale(1);
    transform: scale(1);
  }
}
/* Bande défilante catalogue produits - version pure CSS */
/* Conteneur principal du catalogue */
.catalogue-container {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  position: relative;
}

/* Bouton trigger pour ouvrir/fermer */
.catalogue-trigger {
  background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
  border: none;
  border-radius: 1.5rem;
  padding: 1rem 2rem;
  color: white;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.catalogue-trigger:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(102, 126, 234, 0.4);
}

.catalogue-trigger .icon {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.catalogue-trigger.active .icon {
  transform: rotate(180deg);
}

/* Fenêtre déroulante */
.catalogue-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 1.5rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(20px);
  height: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  overflow: hidden;
  transform: translateY(-10px) scale(0.95);
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
  margin-top: 0.5rem;
}

.catalogue-dropdown.active {
  height: auto;
  transform: translateY(0) scale(1);
  opacity: 1;
  visibility: visible;
}

/* Header du dropdown */
.catalogue-header {
  padding: 1.5rem 2rem 1rem;
  border-bottom: 1px solid rgba(102, 126, 234, 0.1);
  background: linear-gradient(
    135deg,
    rgba(102, 126, 234, 0.05) 0%,
    rgba(118, 75, 162, 0.05) 100%
  );
}

.catalogue-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #2d3748;
  margin: 0 0 0.5rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.catalogue-subtitle {
  font-size: 0.95rem;
  color: #718096;
  margin: 0;
  font-weight: 400;
}

/* Contenu du marquee */
.catalogue-marquee-container {
  padding: 2rem 1rem 3rem;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(102, 126, 234, 0.3) transparent;
}

.catalogue-marquee-container::-webkit-scrollbar {
  width: 4px;
  height: 6px;
}

.catalogue-marquee-container::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
  border-radius: 3px;
}

.catalogue-marquee-container::-webkit-scrollbar-track {
  background: transparent;
}

.catalogue-marquee {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5rem;
  padding: 0 1.5rem;
  flex-wrap: nowrap;
  min-width: max-content;
}

.catalogue-item {
  width: 120px;
  min-width: 120px;
  height: 120px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 8px 32px rgba(102, 126, 234, 0.15);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  text-decoration: none;
  display: block;
  border: 2px solid rgba(255, 255, 255, 0.8);
}

.catalogue-item span {
  position: absolute;
  bottom: -35px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.9rem;
  font-weight: 600;
  color: #4a5568;
  text-align: center;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.9);
}

.catalogue-item img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  transition: all 0.3s ease;
  display: block;
}

.catalogue-item:hover {
  transform: translateY(-8px) scale(1.1);
  box-shadow: 0 16px 48px rgba(102, 126, 234, 0.25);
  border-color: rgba(102, 126, 234, 0.3);
}

/* Animation d'entrée pour les items */
.catalogue-item {
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
  transform: translateY(20px);
}

.catalogue-item:nth-child(1) {
  animation-delay: 0.1s;
}
.catalogue-item:nth-child(2) {
  animation-delay: 0.2s;
}
.catalogue-item:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .catalogue-container {
    max-width: 95vw;
  }

  .catalogue-trigger {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    border-radius: 1rem;
  }

  .catalogue-dropdown {
    border-radius: 1rem;
  }

  .catalogue-header {
    padding: 1.25rem 1.5rem 0.75rem;
  }

  .catalogue-title {
    font-size: 1.1rem;
  }

  .catalogue-marquee-container {
    padding: 1.75rem 1rem 2.5rem;
  }

  .catalogue-marquee {
    gap: 2.5rem;
  }

  .catalogue-item {
    width: 100px;
    min-width: 100px;
    height: 100px;
  }

  .catalogue-item span {
    font-size: 0.8rem;
    bottom: -30px;
    padding: 0.3rem 0.8rem;
  }
}
