:root {
  --page-max-width: 1205px;
  --padding-lateral: 60px;
}

.page-orga {
  padding-bottom: 240px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.page-orga header {
  padding: 0 var(--padding-lateral);
  padding-top: calc(var(--navbar-height) + 57.5px);
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 60px;

  background-image: var(--bg-url);
  background-size: cover;
  background-position: center;
  position: relative;
  z-index: 0;
  overflow: hidden;
}

.page-orga header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.85) 5%,
    rgba(255, 255, 255, 0.9) 50.48%,
    #ffffff 100%
  );

  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);

  z-index: -1;
}

.page-orga header .head {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.page-orga header .head .title {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.page-orga header .head .title .logo-container {
  width: 132px;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgb(0, 0, 0, 0.05);
}

.page-orga header .head .title .logo-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-orga header .head .title .nomOrg {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.page-orga header .head .title .nomOrg h1 {
  font-weight: 600;
  font-size: 24px;
  letter-spacing: -1%;
  word-spacing: 1%;
  color: #000000;
}

.page-orga header .head .title .nomOrg .activite {
  font-weight: 400;
  font-size: 16px;
  letter-spacing: -2%;
  word-spacing: 1%;
  color: #000000d9;
}

.page-orga header .head .links {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.page-orga header .head .links a {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  height: 42px;
  gap: 12px;
  padding: 0 24px;
  border-radius: 50px;
  border-width: 1px;
  background: #0000000d;
  border: 1px solid #0000000d;
  font-weight: 400;
  font-size: 15px;
  letter-spacing: -1%;
  word-spacing: 1%;
  color: #000000e5;
  transition: background-color 0.2s ease;
}

.page-orga header .head .links a:hover {
  background: #0000001a;
}

.page-orga header .head .links .decouvrir {
  padding: 0 28px;
  background: #000000;
  color: #ffffff;
  border: none;
}

.page-orga header .head .links .decouvrir:hover {
  background: #000000d4;
}

.page-orga header .head .links a .icon-container {
  width: 17px;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-orga header .head .links .itineraire .icon-container svg {
  width: 17px;
  height: 16px;
  object-fit: contain;
}

.page-orga header .head .links .partager .icon-container svg {
  width: 13px;
  height: 17px;
  object-fit: contain;
}

.page-orga header .head .links .icon-container svg path {
  fill: #000000e5;
}

.page-orga header .nav {
  width: 100%;
  max-width: var(--page-max-width);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.page-orga header .nav .links {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 0 4px;
}

.page-orga header .nav .links .link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  cursor: pointer;
}

.page-orga header .nav .links .link span {
  font-weight: 500;
  font-size: 16px;
  letter-spacing: -2%;
  word-spacing: 1%;
  color: #0f0f0f9e;
  transition: color 0.2s ease;
}

.page-orga header .nav .links .link span:hover {
  color: #0f0f0f;
}

.page-orga header .nav .links .link hr {
  width: 100%;
  height: 2px;
  background-color: #0f0f0f;
  border-radius: 10px;
  border: none;
  opacity: 0;
}

.page-orga header .nav .links .link.active span {
  color: #0f0f0f;
}

.page-orga header .nav .links .link.active hr {
  opacity: 1;
}

.page-orga header .nav .divider {
  width: 100%;
  height: 0.5px;
  background-color: rgb(0, 0, 0, 0.1);
  border-radius: 20px;
  border: none;
}

/******************** Popups ********************/

/* Fond sombre au premier plan */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Classe ajoutée en JS pour afficher la popup */
.popup-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Boîte de la popup */
.popup-content {
  background-color: #ffffff;
  border-radius: 24px;
  padding: 40px 32px;
  width: 90%;
  max-width: 420px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.popup-overlay.active .popup-content {
  transform: translateY(0);
}

.popup-content h2 {
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -1%;
  color: #000000;
  margin: 0;
}

/* Bouton Fermer (Croix) */
.popup-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: #0000000d;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.popup-close:hover {
  background: #0000001a;
}

/* Grille des liens sociaux */
.social-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

/* Style des bulles de réseaux (calqué sur vos boutons existants) */
.social-links .link {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #0000000d;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.social-links .link:hover {
  background: #0000001a;
  transform: scale(1.05);
}

.social-links .link svg {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

/* S'assurer que les icônes prennent la bonne couleur si ce n'est pas géré dans le SVG */
.social-links .link svg path {
  fill: #000000e5;
}

/******************** Widgets ********************/
.empty-widget {
  border: 1px solid rgba(0, 0, 0, 0.1) !important;
  border-radius: 24px !important;
  padding: 32px !important;
  text-align: center !important;
  gap: 4px !important;
  width: 100% !important;
  max-width: 600px !important;
}

.empty-widget .img-container {
  height: 50px !important;
  margin-bottom: 0 !important;
}

.empty-widget svg path {
  fill: #1d1d1f !important;
}

.empty-widget h3 {
  font-weight: 700 !important;
  font-size: 17px !important;
  margin-bottom: 0 !important;
}

.empty-widget p {
  font-size: 14px !important;
  margin-bottom: 0 !important;
  color: rgba(0, 0, 0, 0.5) !important;
}

#evenements-section {
  display: flex;
}

#a-propos-section {
  display: none;
}

/******************** Media queries ********************/

@media (max-width: 1000px) {
  :root {
    --padding-lateral: 30px;
  }
}

@media (max-width: 600px) {
  :root {
    --padding-lateral: 16px !important;
  }

  .page-orga header {
    padding-top: calc(var(--navbar-height) + 28px);
  }

  .page-orga header .head .title .nomOrg .activite {
    font-size: 14px;
  }

  .page-orga header .head .links {
    gap: 12px;
  }

  .page-orga header .head .title .logo-container {
    width: 100px;
  }

  .page-orga header .head .links .itineraire,
  .page-orga header .head .links .partager {
    aspect-ratio: 1;
    padding: 0;
    border-radius: 50%;
  }

  .page-orga header .head .links .itineraire {
    padding-top: 2px;
    padding-left: 2px;
  }

  .page-orga header .head .links a .text {
    display: none;
  }
}
