/*
  header.css
  Styles du header (vert, orange, violet), desktop et responsive.
  Factorisation des variantes, centralisation des media queries, documentation complète.
*/

/* ================= ICONES RESEAUX SOCIAUX EN BACKGROUND ================= */
.icon-facebook, .icon-instagram, .icon-spotify {
  display: inline-block;
  width: 32px;
  height: 32px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  transition: background-image 0.2s;
}

/* Styles communs pour tous les liens de navigation */
.header-nav-link-green,
.header-nav-link-purple,
.header-nav-link-orange {
  color: #000;
  text-decoration: none;
  transition: color 0.2s;
  display: inline-block;
  font-family: var(--font-nav) !important;
  font-weight: 400;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
}

/* NAV LINKS HEADER - GREEN */
.header-nav-link-green:hover,
.header-nav-link-green.active {
  color: var(--color-green);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  text-decoration-color: var(--color-green);
}

/* NAV LINKS HEADER - PURPLE */
.header-nav-link-purple:hover,
.header-nav-link-purple.active {
  color: var(--color-purple);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  text-decoration-color: var(--color-purple);
}

/* NAV LINKS HEADER - ORANGE */
.header-nav-link-orange:hover,
.header-nav-link-orange.active {
  color: var(--color-orange);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  text-decoration-color: var(--color-orange);
}

/* GREEN */
.header-socialmedia-conteneur-green .icon-facebook {
  background-image: url('/assets/img/reseauxsociaux/green/facebook-gren.png');
}
.header-socialmedia-conteneur-green .icon-facebook:hover {
  background-image: url('/assets/img/reseauxsociaux/green/facebook-gren.png');
}
.header-socialmedia-conteneur-green .icon-instagram {
  background-image: url('/assets/img/reseauxsociaux/green/instagram-gren.png');
}
.header-socialmedia-conteneur-green .icon-instagram:hover {
  background-image: url('/assets/img/reseauxsociaux/green/instagram-gren.png');
}
.header-socialmedia-conteneur-green .icon-spotify {
  background-image: url('/assets/img/reseauxsociaux/green/spotify-gren.png');
}
.header-socialmedia-conteneur-green .icon-spotify:hover {
  background-image: url('/assets/img/reseauxsociaux/green/spotify-gren.png');
}

/* PURPLE */
.header-socialmedia-conteneur-purple .icon-facebook {
  background-image: url('/assets/img/reseauxsociaux/purple/facebook-ppe.png');
}
.header-socialmedia-conteneur-purple .icon-facebook:hover {
  background-image: url('/assets/img/reseauxsociaux/purple/facebook-ppe.png');
}
.header-socialmedia-conteneur-purple .icon-instagram {
  background-image: url('/assets/img/reseauxsociaux/purple/instagram-ppe.png');
}
.header-socialmedia-conteneur-purple .icon-instagram:hover {
  background-image: url('/assets/img/reseauxsociaux/purple/instagram-ppe.png');
}
.header-socialmedia-conteneur-purple .icon-spotify {
  background-image: url('/assets/img/reseauxsociaux/purple/spotify-ppe.png');
}
.header-socialmedia-conteneur-purple .icon-spotify:hover {
  background-image: url('/assets/img/reseauxsociaux/purple/spotify-ppe.png');
}

/* ORANGE */
.header-socialmedia-conteneur-orange .icon-facebook {
  background-image: url('/assets/img/reseauxsociaux/orange/facebook-one.png');
}
.header-socialmedia-conteneur-orange .icon-facebook:hover {
  background-image: url('/assets/img/reseauxsociaux/orange/facebook-one.png');
}
.header-socialmedia-conteneur-orange .icon-instagram {
  background-image: url('/assets/img/reseauxsociaux/orange/instagram-one.png');
}
.header-socialmedia-conteneur-orange .icon-instagram:hover {
  background-image: url('/assets/img/reseauxsociaux/orange/instagram-one.png');
}
.header-socialmedia-conteneur-orange .icon-spotify {
  background-image: url('/assets/img/reseauxsociaux/orange/spotify-one.png');
}
.header-socialmedia-conteneur-orange .icon-spotify:hover {
  background-image: url('/assets/img/reseauxsociaux/orange/spotify-one.png');
}
/* ------------------------------------------------------------------------SECTION----HEADER---GREEN-------------------------------------------------------------- */
/* CSS SECTION HEADER GREEN */
.section-header-desktop-green {
  display: flex;
  flex-direction: var(--header-flex-direction);
  width: 100%;
  min-width: 0;
  max-width: 100%;
  gap: 0;
  padding: 0;
  box-sizing: border-box;
}
/* CSS BLOC RS GREEN */
.header-socialmedia-green {
  padding-top: 20px;
  padding-bottom: 20px;
  width: 100%;
  display: flex;
  flex-direction: row;
  gap: 20px;
  justify-content: flex-end;
  align-items: center;
  background: var(--gradient-principal-grey);
  box-sizing: border-box;
  height: auto;
  min-height: 50px;
}
/* CSS CONTENER RS GREEN */
.header-socialmedia-conteneur-green {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding-left: 20px;
  padding-right: 20px;
  width: fit-content;
  height: fit-content;
}

/* CSS BLOC LOGO + NAV GREEN */
.header-logo-navigation-green {
  background: var(--gradient-principal-grey);
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 135px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  box-sizing: border-box;
}

/* CSS CONTENER LOGO */
.header-logo img {
  width: 125px;
  height: 125px;
  object-fit: contain;
}
.header-logo {
  margin-left: 125px;
}


/* CSS CONTENER NAV GRREEN */
.header-nav-green {
  margin-right: 50px;
  display: flex;
  flex-direction: row;
  gap: 75px;
  align-items: center;
}


/* CSS BLOC SEPARATION GREEN */

 .header-separation-green {
  width: 100%;
  height: 5px;
  background: var(--gradient-secondary-green);
}

/* ------------------------------------------------------------------------SECTION----HEADER---PURPLE-------------------------------------------------------------- */
/* CSS DE LA SECTION HEADER PURPLE */
.section-header-desktop-purple {
  display: var(--header-display);
  flex-direction: var(--header-flex-direction);
  width: 100%;
  min-width: 0;
  max-width: 100%;
  gap: 0;
  padding: 0;
  box-sizing: border-box;
  /* height supprimé pour permettre l'empilement des headers */
}
/* CSS BLOC RS PURPLE */
.header-socialmedia-purple {
  padding-top: 20px;
  padding-bottom: 20px;
  width: 100%;
  display: flex;
  flex-direction: row;
  gap: 20px;
  justify-content: flex-end;
  align-items: center;
  background: var(--gradient-principal-grey);
  box-sizing: border-box;
  height: auto;
  min-height: 50px;
}
/* CSS CONTENER RS PURPLE */
.header-socialmedia-conteneur-purple {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding-left: 20px;
  padding-right: 20px;
  width: fit-content;
  height: fit-content;
}

/* CSS BLOC LOGO + NAV PURPLE */
.header-logo-navigation-purple {
  background: var(--gradient-principal-grey);
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 135px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  box-sizing: border-box;
}


/* CSS CONTENER LOGO OK UP*/

/* CSS CONTENER NAV PURPLE */
.header-nav-purple {
  margin-right: 50px;
  display: flex;
  flex-direction: row;
  gap: 75px;
  align-items: center;
}

/* CSS BLOC SEPARATION PURPLE */
.header-separation-purple {
  width: 100%;
  height: 5px;
  background: var(--gradient-secondary-purple);
}

/* CSS BLOC SEPARATION GREEN */
 .header-separation-green {
  width: 100%;
  height: 5px;
  background: var(--gradient-secondary-green);
}

/* ------------------------------------------------------------------------SECTION----HEADER---ORANGE-------------------------------------------------------------- */
/* CSS DE LA SECTION HEADER ORANGE */
/* Correction largeur pour la page contact : occupe toute la fenêtre */
.section-header-desktop-orange {
  display: var(--header-display);
  flex-direction: var(--header-flex-direction);
  width: 100vw;
  min-width: 0;
  max-width: 100vw;
  gap: 0;
  padding: 0;
  box-sizing: border-box;
  /* height supprimé pour permettre l'empilement des headers */
}
/* CSS BLOC RS ORANGE */
.header-socialmedia-orange {
  padding-top: 20px;
  padding-bottom: 20px;
  width: 100%;
  display: flex;
  flex-direction: row;
  gap: 20px;
  justify-content: flex-end;
  align-items: center;
  background: var(--gradient-principal-grey);
  box-sizing: border-box;
  height: auto;
  min-height: 50px;
}
/* CSS CONTENER RS ORANGE */
.header-socialmedia-conteneur-orange {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding-left: 20px;
  padding-right: 20px;
  width: fit-content;
  height: fit-content;
}

/* CSS BLOC LOGO + NAV ORANGE */
.header-logo-navigation-orange {
  background: var(--gradient-principal-grey);
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 135px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  box-sizing: border-box;
}

/* CSS CONTENER LOGO OK UP */

/* CSS CONTENER NAV ORANGE */
.header-nav-orange {
  margin-right: 50px;
  display: flex;
  flex-direction: row;
  gap: 75px;
  align-items: center;
}

/* Lien Atlantis Designs hover blanc */
.atlantis-link,
.partner-link {
  color: inherit;
  text-decoration: underline;
  transition: color 0.2s;
}
.atlantis-link:hover,
.partner-link:hover {
  color: #fff;
}


/* CSS BLOC SEPARATION ORANGE */
 .header-separation-orange {
  width: 100vw;
  max-width: 100vw;
  height: 5px;
  background: var(--gradient-secondary-orange);
  margin-left: calc(-50vw + 50%);
  margin-right: 0;
  display: block;
  box-sizing: border-box;
}

/* ================= HEADER MOBILE BURGER ================= */
.header-mobile {
  display: flex;
  flex-direction: column;
  width: 100vw;
  background: var(--gradient-principal-grey);

  z-index: 1000;
}
.header-mobile-top {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 18px 0 8px 0;
}
.header-mobile-socials {
  display: flex;
  gap: 24px;
}

/* Icônes réseaux sociaux dans header mobile */
.header-mobile-socials .icon-facebook,
.header-mobile-socials .icon-instagram,
.header-mobile-socials .icon-youtube {
  display: inline-block;
  width: 32px;
  height: 32px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  transition: opacity 0.2s, transform 0.2s;
  /* Fallback : icônes vertes par défaut si JS non chargé */
}


.header-mobile-socials .icon-facebook:hover,
.header-mobile-socials .icon-instagram:hover,
.header-mobile-socials .icon-youtube:hover {
  opacity: 0.8;
  transform: scale(1.1);
}

.social-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-orange);
  transition: color 0.2s;
}
.social-icon:hover {
  color: var(--color-purple);
}
.header-mobile-separation {
  width: 100%;
  height: 5px;
  margin: 0 auto;
  background: var(--gradient-secondary-orange); /* Défaut, surchargé en responsive */
}
.header-mobile-bottom {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 0 12px 0;
}
.header-mobile-logo img {
  width: 90px;
  height: auto;
  margin-bottom: 12px;
}
.header-mobile-burger {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  padding: 0;
}
.burger-bar {
  width: 36px;
  height: 5px;
  background: var(--color-orange);
  border-radius: 3px;
  margin: 4px 0;
  transition: background 0.2s;
}
.header-mobile-nav {
  display: none;
  flex-direction: column;
  align-items: center;
  width: 100vw;
  background: var(--gradient-principal-grey);
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  z-index: 2000;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  justify-content: center;
}
.header-mobile-nav.active {
  display: flex;
}
.header-mobile-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.header-mobile-nav li a {
  color: var(--color-orange);
  font-size: 1.2rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
}
.header-mobile-nav li a:hover {
  color: var(--color-purple);
}
@media (max-width: 899px) {
  #header-mobile, .header-mobile, .page-home #header-mobile {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    pointer-events: auto !important;
    position: relative !important;
    z-index: 9999 !important;
  }
  #header, .section-header-desktop-green, .page-home #header, .page-home .section-header-desktop-green {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    pointer-events: none !important;
    position: absolute !important;
    z-index: 0 !important;
  }
  /* Séparation responsive mobile : couleur dynamique selon la page */
  .header-mobile-separation {
    height: 5px;
    width: 100%;
    margin: 0 auto;
    background: var(--gradient-secondary-orange); /* Valeur par défaut orange */
    border: none;
    display: block;
  }
  /* TOUTES les séparations header mobile : couleurs par page avec priorité */
  body.page-home .header-mobile-separation,
  body.page-association .header-mobile-separation {
    background: var(--gradient-secondary-green) !important;
  }
  body.page-artists .header-mobile-separation,
  body.page-evenements .header-mobile-separation {
    background: var(--gradient-secondary-purple) !important;
  }
  body.page-contact .header-mobile-separation,
  body.page-mentionslegales .header-mobile-separation {
    background: var(--gradient-secondary-orange) !important;
  }
  
  /* TOUTES les séparations header desktop : couleurs par page avec priorité */
  body.page-home .header-separation-green,
  body.page-association .header-separation-green {
    background: var(--gradient-secondary-green) !important;
  }
  body.page-artists .header-separation-purple,
  body.page-evenements .header-separation-purple {
    background: var(--gradient-secondary-purple) !important;
  }
  body.page-contact .header-separation-orange,
  body.page-mentionslegales .header-separation-orange {
    background: var(--gradient-secondary-orange) !important;
  }
  
  .header-mobile-nav {
    position: fixed;
    top: 60px;
    right: 16px;
    left: 16px;
    width: auto;
    max-width: 340px;
    min-width: 220px;
    height: auto;
    background: rgba(255,255,255,0.92);
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2000;
    padding: 32px 24px 24px 24px;
    margin: auto;
    transition: opacity 0.3s, transform 0.3s;
    opacity: 1;
    backdrop-filter: blur(6px);
  }
  .header-mobile-nav {
    background: rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.18);
    backdrop-filter: blur(18px) saturate(180%);
    -webkit-backdrop-filter: blur(18px) saturate(180%);
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.28);
  }
  .header-mobile-nav ul {
    gap: 18px;
  }
  .header-mobile-nav li a {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-orange);
    padding: 8px 0;
    border-radius: 8px;
    transition: box-shadow 0.2s, color 0.2s, background 0.2s;
    background: #f6f6f6;
    box-shadow: 4px 4px 12px #e0e0e0, -4px -4px 12px #ffffff;
  }
  .header-mobile-nav li a:hover {
    background: #f6f6f6;
    color: var(--color-purple);
    box-shadow: 2px 2px 8px #e0e0e0, -2px -2px 8px #ffffff;
  }
  .header-mobile-nav.active {
    display: flex;
    opacity: 1;
    pointer-events: auto;
  }
  .header-mobile-nav {
    display: none;
    opacity: 0;
    pointer-events: none;
  }
  .header-mobile-nav {
    padding-left: 12px;
    padding-right: 12px;
  }
  .header-mobile-nav ul {
    width: 100%;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
  }
  .header-mobile-nav li {
    width: 100%;
    display: flex;
    justify-content: center;
  }
  .header-mobile-nav li a {
    width: 100%;
    max-width: 340px;
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-orange);
    padding: 10px 18px;
    border-radius: 12px;
    transition: box-shadow 0.2s, color 0.2s, background 0.2s;
    background: #f6f6f6;
    box-shadow: 4px 4px 12px #e0e0e0, -4px -4px 12px #ffffff;
    text-align: center;
  }
  .header-mobile-nav li a:hover {
    background: #f6f6f6;
    color: var(--color-purple);
    box-shadow: 2px 2px 8px #e0e0e0, -2px -2px 8px #ffffff;
  }
  .header-mobile-nav li a {
    background: var(--gradient-principal-grey);
    /* autres styles inchangés */
  }
  .header-mobile-nav li a:hover {
    background: var(--gradient-principal-grey);
    /* autres styles inchangés */
  }
}
@media (min-width: 900px) {
  #header-mobile, .header-mobile, .page-home #header-mobile {
    display: none !important;
  }
  #header, .section-header-desktop-green, .page-home #header, .page-home .section-header-desktop-green {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    pointer-events: auto !important;
    position: relative !important;
    z-index: 9999 !important;
  }
}

/* ================= STELLAR EFFECT ================= */
.stellar-canvas-container, .stellar-canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
  position: absolute;
  top: 0; left: 0;
  z-index: 0;
  background: transparent !important;
}
.section-effect-background-green {
  position: relative;
  min-height: 320px;
  background: var(--gradient-secondary-green);
}
.section-effect-background-purple {
  position: relative;
  min-height: 320px;
  background: var(--gradient-secondary-purple);
}
.section-effect-background-orange {
  position: relative;
  min-height: 320px;
  background: var(--gradient-secondary-orange);
}