/* --- Font and typographie globale --- */
@font-face {
  font-family: 'Stanford Breath';
  src: url('https://res.cloudinary.com/dfnykaq15/raw/upload/v1751372107/Stanford_Breath_zvyeqv.ttf')
    format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'NY Fat';
  src: url('https://res.cloudinary.com/dfnykaq15/raw/upload/v1751825574/NY_FAT_niulsg.ttf')
    format('truetype');
  font-weight: normal;
  font-style: normal;
}

/* Global box sizing */
*, *::before, *::after {
  box-sizing: border-box;
}

/* Style pour tous les titres */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Stanford Breath', Arial, sans-serif;
  text-transform: lowercase;
}

/* Style du lien titre principal */

.site-title {
  color: black;
  text-decoration: none;
  font-weight: bold;
  font-size: 48px;
  margin: 0.4rem 0rem 0rem 1rem;

  /* Contour jaune net autour du texte */
  text-shadow:
    0 0 5px white,
    0 0 10px #ffe626,
    0 0 30px #fa61de;

  transition: all 0.3s ease;
}

/* Effet sur le survol du titre */
.site-title:hover {
  text-decoration: none;
  text-shadow:
    0 0 5px white,
    0 0 10px #ffe626,
    0 0 30px #fa61de;
  color: #ffe626;
}

/* Transparent backgrounds for overlay visibility */
html,
body,
#root {
  background-color: transparent;
}

/* Mise en page globale du corps */
body {
  font-family: sans-serif;
  margin: 0;
  padding: 1rem;
  padding-top: calc(1rem + env(safe-area-inset-top));
  color: #ffffff;
  overflow-x: hidden;
}

/* Conteneur principal */
main {
  width: 100%;
  margin: 0;
  background-color: rgba(0, 0, 0, 0.6);
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(255, 255, 255, 0.1);
  min-height: calc(100vh - 2rem);
  box-sizing: border-box;
  position: relative;
  z-index: 1;
}

/* Liens de navigation */
nav a {
  margin-right: 1rem;
  color: inherit;
  text-decoration: none;

  font-family: 'Stanford Breath', Arial, sans-serif;
  text-transform: lowercase;

}

/* Style générique des liens */
a {
  color: #9d48ff;
}

a:hover {
  /* Effet au survol des liens */
  text-decoration: underline;
}

nav a:hover {
  text-decoration: underline;
  /* Effet au survol des liens du menu */
}

/* Barre de navigation principale */


.nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;

  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1001;

  background-color: #9d48ff;

  background: linear-gradient(to bottom, #9d48ff, rgba(0, 0, 0, 0));

  color: white;
  padding: 0.5rem 1rem;
  border-radius: 8px 8px 0 0;

}

/* Ensure the nav bar title is vertically centered */
.nav-bar h1 {
  margin: 0;
  display: flex;
  align-items: center;
}

/* Actions affichées dans l'en-tête */
.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0rem 20rm 0rem 0rem;
  font-size: 3rem;
  font-family: 'NY Fat', Arial, sans-serif;
  color: white !important;
  text-decoration: none;
  text-shadow:
    0 0 5px #fa61de,
    0 0 10px #fa61de,
    0 0 30px #fa61de;
}

.header-actions a {
  color: white !important;
  text-decoration: none;
}

.content-wrapper {
  margin: 0 auto;
  max-width: 800px;
  transform-origin: top left;
}

/* Dedicated wrapper for pages that need full width layout, like the map page */
.map-wrapper {
  max-width: none;
  width: 100%;
  padding-left: 0;
  padding-right: 0;
}

/* Map container base size */
.map-container {
  height: 400px;
  width: 100%;
  position: relative;
}

@media (min-width: 769px) {
  .map-container {
    height: 720px; /* 80% bigger on desktop */
  }
}

/* Style commun pour les boutons */
button {
  background-color: transparent;
  color: #ffffff;
  border: none;
  padding: 1rem 1.5rem;
  border-radius: 50%;
  cursor: pointer;
  font-family: 'Stanford Breath', Arial, sans-serif;
  text-transform: lowercase;
  min-height: auto;
  min-width: auto;
  font-size: 1.125rem;
}

/* Effet hover des boutons génériques */
button:hover {
  background-color: #8336cc;
  border-radius: 100%;
  box-shadow:
    0 0 5px white,
    0 0 10px #ffe626,
    0 0 30px #fa61de;

  transition: all 0.3s ease;
}

/* Bouton de connexion/validation */
.login-btn {
  background-color: transparent;
  border: 2px solid #ffe626;
  color: #ffe626;
  border-radius: 100%;
  height: 32px;
  width: 130px;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 1rem 1.5rem;

  text-decoration: none;
  font-family: 'Stanford Breath', Arial, sans-serif;
  text-transform: lowercase;

  font-size: 1.125rem;
  text-align: center;
  font-weight: bold;
  letter-spacing: 1px;
}
/* Effet au survol du bouton de connexion */

.login-btn:hover {
  background-color: #ffe62622;
}

/* Bouton ouvrant le menu déroulant */
.menu-btn {
  background: transparent;
  border: none;
  padding: 0;
  color: black;
  font-family: 'Stanford Breath', Arial, sans-serif;

  font-size: 72px;
  line-height: 1;
  font-weight: bold;
  cursor: pointer;

  text-shadow:
    0 0 5px white,
    0 0 10px #ffe626,
    0 0 30px #fa61de;

  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

/* Conteneur du menu déroulant */
.menu-container {
  position: relative;
}

/* Menu déroulant masqué */
.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;

  width: 525px;
  max-width: 90vw;
  background: rgba(0, 0, 0, 0.8);

  color: #ffffff;
  border: 2px solid #ffe626;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);

  padding: 0.5rem 0;
  margin-top: 0.5rem;

  opacity: 0;
  transform: translateY(-10px);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
  pointer-events: none;
  z-index: 1001;
}

/* État visible du menu */
.dropdown-menu.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Liste dans le menu */
.dropdown-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Séparateur entre les éléments */
.dropdown-menu li + li {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Liens du menu déroulant */
.dropdown-menu a,
.dropdown-menu button {
  display: block;
  padding: 0.5rem 1rem;
  color: #ffffff;
  text-decoration: none;
  font-family: 'Stanford Breath', Arial, sans-serif;
  text-transform: lowercase;
  font-size: 5rem;
  text-shadow: none;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  min-width: unset;
  min-height: unset;
  border-radius: 0;
}

.dropdown-menu a:hover,
.dropdown-menu button:hover {
  background: rgba(255, 255, 255, 0.1);
  text-shadow:
    0 0 5px white,
    0 0 10px #ffe626,
    0 0 30px #fa61de;
  box-shadow: none;
}

.login-btn:hover {
  background-color: #8336cc;
  box-shadow:
    0 0 10px #fa61de,
    0 0 20px #fa61de,
    0 0 40px #9d48ff,
    0 0 80px #9d48ff;

  text-shadow:
    0 0 5px #fa61de,
    0 0 15px #fa61de,
    0 0 30px #fa61de;

  transform: scale(1.05);
}


/* Sections génériques */
section {
  transition: margin-top 0.5s ease;
  width: 100%;
  padding: 1rem 0;
}

/* Section hero (banniere d'accueil) */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
}

/* Image principale de la page d'accueil */
.hero-img {
  object-fit: contain;
  max-width: 100%;
  height: auto;
}

/* Bouton de création de compte */
.signup-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #9d48ff;
  color: #ffffff;
  padding: 1rem 1.5rem;
  border-radius: 100%;
  text-decoration: none;
  font-family: 'Stanford Breath', Arial, sans-serif;
  text-transform: lowercase;
  height: 32px;
  width: 130px;
  font-size: 1.125rem;
  text-align: center;
  font-weight: bold;
  letter-spacing: 1px;
  border: none;

  /* Effet néon */

  text-shadow:
    0 0 5px #fa61de,
    0 0 10px #fa61de,
    0 0 20px #fa61de;

  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}
/* Effet lors du clic sur signup */

.signup-btn:active {
  transform: scale(0.98);
  box-shadow: 0 0 5px #8336cc;
  /* Effet au survol du bouton signup */
}

.signup-btn:hover {
  background-color: #8336cc;
  box-shadow:
    0 0 10px #fa61de,
    0 0 20px #fa61de,
    0 0 40px #9d48ff,
    0 0 80px #9d48ff;

  text-shadow:
    0 0 5px #fa61de,
    0 0 15px #fa61de,
    0 0 30px #fa61de;

  transform: scale(1.05);
}

/* Texte d'accueil */
.welcome-text {
  text-align: center;

  margin-bottom: 4rem;
  font-family: 'Stanford Breath', Arial, sans-serif;
  font-size: 24px;
}

/* Conteneur du formulaire de connexion/inscription */
/* Login container on home page */

.login-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.6);

  position: relative;

  padding: 4rem 1rem 1rem 1rem;
  border: 2px solid #ffe626;
  border-radius: 50%;

  max-height: 100%;

  opacity: 1;
  width: 100%;
  overflow: visible;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  transition:
    padding 0.5s ease-in-out,
    height 0.5s ease-in-out,
    max-height 0.5s ease-in-out,
    transform 0.5s ease-in-out, opacity 0.3s ease;

  box-shadow:
    0 0 5px white,
    0 0 10px #ffe626,
    0 0 30px #fa61de,
    inset 0 0 5px white,
    inset 0 0 10px #ffe626,
    inset 0 0 30px #fa61de;

}
.login-container.login-active {
  max-height: 20rem;
}

.login-container.signup-active {
  max-height: 28rem;
}

.login-container.reset-active {
  max-height: 16rem;
}

.login-container.fading {
  opacity: 0;
}


/* Wrapper for floating auth buttons */
.auth-toggle-wrapper {
  position: absolute;
  top: -3rem;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  display: flex;
  justify-content: center;
  z-index: 2;
  pointer-events: none;
}

.auth-toggle-wrapper button {
  pointer-events: auto;
}

/* Taille des champs agrandie lorsqu'actif */
.login-container.login-active input,
.login-container.signup-active input {
  padding: 0.75rem;
  font-size: 1.1rem;
}

/* Style des champs du formulaire */
.login-container input {
  margin-bottom: 0.5rem;
  width: 100%;
  max-width: 500px;
  padding: 0.5rem;
  border-radius: 4px;
  border: 1px solid #ffe626;
  background-color: rgba(0, 0, 0, 0.6);
  color: #ffffff;
  transition:
    padding 0.3s ease,
    font-size 0.3s ease;
}

/* Zone pour choisir login ou signup */
.auth-toggle {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 10.7rem;
  gap: 25rem;
}
/* Boutons de sélection de mode */

.auth-toggle button {
  display: inline-block;
  padding: 1rem 2rem;

  font-size: 2.5rem;
  font-weight: bold;
  text-align: center;
  color: #fff;
  background: linear-gradient(
    to bottom,
    rgba(255, 102, 204, 0.7),
    rgba(204, 51, 153, 0.7)
  );
  filter: brightness(1.2);
  border: none;
  border-radius: 50%;

  box-shadow:
    inset 0 5px 10px rgba(255, 255, 255, 0.4),
    inset 0 -3px 6px rgba(0, 0, 0, 0.2),
    0 4px 10px rgba(0, 0, 0, 0.3);
  font-family: 'Stanford Breath', Arial, sans-serif;
  text-transform: lowercase;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.auth-toggle button span {
  position: relative;
  z-index: 1;
}

.auth-toggle button.active span {
  display: inline-block;
  position: relative;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.auth-toggle button.active::after {
  content: "";
  position: absolute;
  top: 0%;
 
  left: -50%;
  width: 200%;
  height: 100px;
  background: linear-gradient(to right, transparent, #9D48FF, transparent);
  animation: scan-line 2s linear infinite;
}

@keyframes scan-line {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}




@keyframes auth-text-glow {
  from {
    background-position: -150% 0;
  }
  to {
    background-position: 150% 0;
  }
}

.auth-toggle button:first-child {
  margin-left: 0rem;
}

@keyframes jiggle-hover {
  0%,
  100% {
    transform: scale(1.05) rotate(0deg);
  }
  25% {
    transform: scale(1.05) rotate(-2deg);
  }
  50% {
    transform: scale(1.05) rotate(2deg);
  }
  75% {
    transform: scale(1.05) rotate(-2deg);
  }
}

@keyframes jiggle-active {
  0%,
  100% {
    transform: scale(0.98) rotate(0deg);
  }
  25% {
    transform: scale(0.98) rotate(-2deg);
  }
  50% {
    transform: scale(0.98) rotate(2deg);
  }
  75% {
    transform: scale(0.98) rotate(-2deg);
  }
}

.auth-toggle button.active,
.auth-toggle button:hover {
  background: linear-gradient(
    to bottom,
    rgba(255, 133, 209, 0.8),
    rgba(217, 76, 176, 0.8)
  );

  animation: jiggle-hover 0.3s ease-in-out;
}

.auth-toggle button:active {
  box-shadow:
    inset 0 3px 6px rgba(0, 0, 0, 0.4),
    0 2px 6px rgba(0, 0, 0, 0.2);

  background: linear-gradient(
    to bottom,
    rgba(255, 92, 191, 0.8),
    rgba(194, 40, 143, 0.8)
  );

  animation: jiggle-active 0.3s ease-in-out;
}

/* Message d'erreur */
.error-text {
  color: #ff6b6b;
  margin-bottom: 0.5rem;
}

/* Message d'information */
.info-text {
  color: #ffe626;
  margin-bottom: 0.5rem;
}

/* Mise en page du formulaire */
.login-container form {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

/* Lien pour changer de formulaire */
.form-switch {
  background: none;
  border: none;
  color: #ffffff;
  text-decoration: underline;
  cursor: pointer;
  font-family: 'Stanford Breath', Arial, sans-serif;
  text-transform: lowercase;
  margin-top: 0.5rem;
  font-size: 1rem;
}

.form-switch:hover {
  background: radial-gradient(
  ellipse at center,
  #9d48ff 0%,
  transparent 80%
);
  box-shadow: none;
}

.loading-screen {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #000;
  /* Ensure the loader stays above the sticky navigation bar */
  z-index: 1100;
  padding: 0;
  opacity: 1;
  transition: opacity 1s ease;
}

.loading-screen.fade-out {
  opacity: 0;
}

.loading-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease;
}

.loading-video.show {
  opacity: 1;
}

/* Wrapper for authentication module */
.auth-wrapper-global {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Inner block containing the toggle and form */
.auth-block {
  /* no desktop alterations */
}

@media (max-width: 768px) {
  .auth-wrapper-global {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    width: 100%;
    overflow: hidden;
  }

  .auth-block {
    transform: scale(0.5);
    transform-origin: center center;
  }
}

@media (max-width: 768px) {
  .welcome-text {
    font-size: 12px;
  }
  
  .nav-bar .site-title {
    font-size: 20px;
    padding: 0rem 0rem 0.3rem 0rem;
  }

  .nav-bar .header-actions {
    font-size: 1rem;
  }

  .nav-bar .menu-btn {
    font-size: 28px;
  }

  .nav-bar .dropdown-menu a,
  .nav-bar .dropdown-menu button {
    font-size: 1.65rem;
  }

  /* Reduce dropdown width and balance horizontal spacing on mobile */
  .nav-bar .dropdown-menu {
    width: 70vw;
    margin-left: 1rem;
  }

  .nav-bar .menu-btn {
    width: auto;
    height: auto;
    padding: 0;
    margin: 0;
    border-radius: 50%;
    max-width: 120px;
    max-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* Activity page styles */
.activity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.activity-card {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100px;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid #ffe626;
  border-radius: 8px;
  text-decoration: none;
  color: #ffffff;
  font-family: 'Stanford Breath', Arial, sans-serif;
  text-transform: lowercase;
  transition: background 0.3s ease;
}

.activity-card:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Floating random gif styles */
.random-gif-container {
  position: fixed;
  width: 150px;
  z-index: 1000;
  opacity: 0;
  transition: opacity 1s ease;
}

.random-gif-container.show {
  opacity: 1;
}

.random-gif-container.fade-out {
  opacity: 0;
}

/* Style for poem page */
.poem-text {
  white-space: pre-wrap;
  font-family: 'Courier New', monospace;
  margin-top: 1rem;
}

.poem-title {
  font-family: 'NY Fat', Arial, sans-serif;
}

/* Video embed styles */
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

@media (min-width: 769px) {
  .video-wrapper {
    width: 100%;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .video-wrapper {
    width: 100%;
  }
}

/* Urbanism table styles */
.urbanism-table {
  width: 100%;
  border-collapse: collapse;
  font-family: sans-serif;
  font-size: 1rem;
  margin-top: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.urbanism-table th,
.urbanism-table td {
  padding: 0.75rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.urbanism-table thead th {
  position: sticky;
  top: 0;
  background-color: #111;
  color: #fff;
  z-index: 1;
}

.urbanism-table tbody tr:nth-child(even) {
  background-color: rgba(255, 255, 255, 0.05);
}

.urbanism-table tbody tr:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.urbanism-table td:first-child,
.urbanism-table th:first-child {
  text-align: left;
}

.urbanism-table td:not(:first-child),
.urbanism-table th:not(:first-child) {
  text-align: center;
}

@media (max-width: 768px) {
  .urbanism-table {
    font-size: 0.9rem;
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}

.urbanism-table .highlight-row {
  font-family: 'Stanford Breath', Arial, sans-serif;
  text-transform: lowercase;
  color: black;
  text-decoration: none;
  font-weight: bold;
  font-size: 2rem;
  text-shadow:
    0 0 5px white,
    0 0 10px #ffe626,
    0 0 30px #fa61de;
}

.urbanism-table .center-row td {
  text-align: center;
}


.pin-filter {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.8);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.9rem;
  z-index: 1000;
  font-family: 'Stanford Breath', Arial, sans-serif;
  color: black;
}

.pin-filter label {
  display: flex;
  align-items: center;
  gap: 4px;
}

.pin-filter label + label {
  margin-top: 4px;
}

@media (max-width: 600px) {
  .pin-filter {
    padding: 8px;
  }
}

.district-label {
  font-weight: bold;
  font-size: 12px;
  color: #000;
  text-shadow: 0 0 2px #fff;
}

.filter-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  opacity: 1;
  /* Place the decorative filter behind all interactive content */
  z-index: -1;
  pointer-events: none;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: translateZ(0);
  will-change: transform;
}

