@charset "UTF-8";

@font-face {
  font-family: 'Ilan';
  src: url('/fonts/ilan.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

html, body {
  font-family: 'Ilan', sans-serif !important;
}

* {
  font-family: 'Ilan', sans-serif !important;
  color: var(--red);
}

:root {
  --yellow: #ffed00;
  --green: #009640;
  --red: #e20e17;
  --filter-size: calc((100vw - (var(--margin) * 4)) / 3);
  --activity-height: calc(90dvh - (var(--margin) * 3));
  --margin: 15px;
  --smallSize: calc(
    (100vw - (var(--margin) * 2)) -
      ((var(--activity-height) - 2 * var(--margin)) / 3 + var(--margin)) -
      (var(--margin) * 1)
  );
}
/* -------------------------------------------------------
------------------- Activity Selection -------------------
------------------------------------------------------- */
.activity-selection {
  display: flex;
  justify-content: center;
  position: relative;
}

.activity-selection::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border: 3px solid var(--red);
  pointer-events: none;
}

.no-scroll {
  overflow: hidden;
}

/* -------------------------------
------------ Activity ------------
---------------------------------- */

.activity-container {
  /* height: 300dvh; */
  width: calc(100% - (var(--margin) * 2));
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  /* align-items: center; */
  /* justify-content: center;s */
  gap: var(--margin);
  /* padding: var(--margin); */
  margin: var(--margin) 0;
  justify-content: space-between;
}

.activity-container .activity {
  width: calc((100vw - (var(--margin) * 3)) / 2);
  height: calc((100vw - (var(--margin) * 3)) / 2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: width 0.3s ease-in-out, height 0.3s ease-in-out,
    background-color 0.3s ease-in-out;
  opacity: 0;
  display: none;
  position: relative;
  overflow: hidden;
  outline: 3px solid var(--red);
  outline-offset: -3px;
}

.activity img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
}

.activity.active {
  width: calc((100vw - (var(--margin) * 2)));
  height: calc((100vw - (var(--margin) * 2)));
  background-color: var(--green);
  outline: 5px solid var(--yellow);
  outline-offset: -5px;
}

.activity.filtered {
  opacity: 1;
  display: block;
}



/* -------------------------------
------------- filter -------------
---------------------------------- */

.filter-container {
  width: 100dvh;
  height: 100dvh;
  position: fixed;
  /* background-color: rgb(255, 0, 221); */
  top: 0;
  left: 0;
  pointer-events: none;
}

.filter-bg {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 25vw;
  height: 25vw;
  margin: var(--margin);
  background-color: var(--red);
  transition: all 0.1s ease-in-out;
}

.filter-bg.active {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  height: 100dvh;
  margin: 0;
}

.filter-btn {
  border: 4px solid var(--yellow);
  position: fixed;
  bottom: 0;
  left: 0;
  width: var(--filter-size);
  height: var(--filter-size);
  background-color: var(--yellow);
  margin: var(--margin);
  pointer-events: all;
  cursor: pointer;
}

.filter-options {
  position: fixed;
  top: 0%;
  left: 50%;
  transform: translate(-50%, 00%);
  width: 100vw;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: var(--margin);
  justify-content: center;
  align-self: start;
  padding: var(--margin) 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease-in-out;
}

.filter-options.active {
  opacity: 1;
  pointer-events: all;
}

.filter-options .filter {
  background-color: var(--yellow);
  width: var(--filter-size);
  height: var(--filter-size);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.filter-options .filter img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
}

.activity span,
.filter-options .filter span {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 8px;
  background-color: white;
  opacity: 0.8;
  font-size: 0.8rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;

}

.activity span .fr,
.filter-options .filter span .fr {
  animation: fadeInOut 4s infinite;
  color: var(--red);
  text-shadow: 1px 1px 2px rgba(255, 255, 255, 1);
}

.activity span .de,
.filter-options .filter span .de {
  animation: fadeInOut 4s infinite reverse;
  color: var(--red);
}

@keyframes fadeInOut {
  0%, 45% {
    opacity: 1;
  }
  50%, 95% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

/* -------------------------------------------------------
------------------- Activity Selected --------------------
------------------------------------------------------- */

.activity-selected {
  display: flex;
  align-items: center;
  flex-direction: column;
  height: 100dvh;
  width: 100vw;
  position: fixed;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  top: 0;
  background-color: white;
  transition: opacity 0.3s ease-in-out;
}

.activity-selected.active {
  opacity: 1;
  pointer-events: all;
}

*{
  background-size: cover;
}
/* -------------------------------
------------ Activity ------------
---------------------------------- */

.activity-info-container {
  /* background-color: var(--green); */
  width: calc((100dvw - (var(--margin) * 2)));
  padding-top: var(--margin);
  height: var(--activity-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ------------- image ------------- */

.image-container {
  width: calc((var(--activity-height) - 1 * var(--margin)) / 3 + var(--margin));
  height: calc(var(--activity-height));
  display: flex;
  flex-direction: column;
  justify-content: space-between;

  /* background-color: violet;; */
}

.image-container .image {
  width: calc((var(--activity-height) / 3) - (var(--margin) * 2 / 3));
  height: calc((var(--activity-height) / 3) - (var(--margin) * 2 / 3));
  aspect-ratio: 1 / 1;
  background-color: var(--red);
  outline: 4px solid var(--red);
  outline-offset: -4px;
  cursor: pointer;
  background-size: cover;
  background-position: center;
  transition: transform 0.3s ease;
}

.image-container .image:hover {
  transform: scale(1.02);
}

/* ------------- info ------------- */

.info-container {
    height: 100%;
      width: calc((100vw - (var(--margin) * 2)) - ((var(--activity-height) - 2 * var(--margin)) / 3 + var(--margin)));
      display: flex;
      flex-direction: column;
      align-items: end;
      justify-content: start;
      /* background: darkblue; */
      gap: var(--margin);
}

.info-close {
  width: var(--smallSize);
  aspect-ratio: 1 / 1;
  background-color: var(--yellow);
  max-width: 120px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  border: 3px solid var(--yellow);
}

.info-day,
.info-time,
.info-place {
  width: var(--smallSize);
  max-width: 120px;
  aspect-ratio: 1 / 1;
  border: 3px solid var(--red);
  /* background-color: var(--red); */
  display: flex;
  justify-content: center;
  text-align: center;
  align-items: center;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.info-place:hover {
  background-color: var(--yellow);
}

/* -------------------------------
------------- button -------------
---------------------------------- */

.inscription-container {
  width: calc(100% - var(--margin) * 2);
  height: calc(100dvh - var(--activity-height) - (var(--margin) * 1));
  /* background-color: var(--green); */
  display: flex;
  justify-content: center;
  align-items: center;
}
.inscription-button {
  height: calc(100% - (var(--margin) * 2));
  width: calc(100%);
  background-color: var(--yellow);
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease-in-out;
}

.phone-popup.active {
  opacity: 1;
  pointer-events: all;
}

.phone-popup-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  aspect-ratio: 1 / 1;
  background-color: white;
  padding: 1.5rem;
  position: relative;
  width: 76%;
  max-width: 400px;
}

.phone-popup-close {
  position: absolute;
  background-color: var(--yellow);
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  aspect-ratio: 1 / 1;
  top: 10px;
  right: 10px;
  cursor: pointer;
  font-size: 1rem;
  color: var(--red);
}

.phone-popup h2 {
  margin-bottom: 1.5rem;
  text-align: center;
  color: var(--red);
}

#phone-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

#phone-form input {
  padding: 0.8rem;
  border: 3px solid var(--red);
  border-radius: 0;
  font-size: 0.8rem;
  font-family: 'Ilan', sans-serif;
}

#phone-form button {
  padding: 0.8rem;
  background-color: var(--yellow);
  color: var(--red);
  border: none;

  font-size: 1rem;
  font-family: 'Ilan', sans-serif;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#phone-form button:hover {
  background-color: var(--red);
  color: var(--yellow);
}

/* Bandeau de bienvenue */
.welcome-banner {
  width: 100%;
  height: 40px;
  background-color: white;
  overflow: hidden;
  position: relative;
}

.welcome-text {
  position: absolute;
  white-space: nowrap;
  animation: scrollText 20s linear infinite;
  font-size: 1.2rem;
  color: var(--red);
  padding: 8px 0;
  display: flex;
  gap: 50px;
  align-items: center;
}

.welcome-text span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.walking-gif {
  height: 30px;
  width: auto;
  vertical-align: middle;
  transform: scaleX(-1);
}

@keyframes scrollText {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Bandeau de titre */
.title-banner {
  width: 100%;
  height: 80px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-bottom: 3px solid var(--red);
}

.title-text {
  text-align: center;
  font-size: 2rem;
  color: var(--red);
  display: flex;
  gap: 20px;
}
