/* =====================================
   VARIABLES CSS
===================================== */
:root {
  --bg: #1a1a1a;
  --bg-hover: #222;
  --header-bg: #111;
  --neon: #8a2be2;
  --neon-light: #8e2de2;
  --accent: #6a0dad;
  --text: #fff;
  --text-muted: #ccc;
  --transition: 0.3s;
  --font-primary: 'Orbitron','Audiowide',sans-serif;
}

/* =====================================
   OPTION BONUS - Fond toujours plein et transitions stables
===================================== */
html, body {
  height: 100%;
}

/* =====================================
   RESET / GLOBAL
===================================== */
* { margin:0; padding:0; box-sizing:border-box; }

body {
  font-family: var(--font-primary);
  background: #000; /* Fond noir par défaut */
  color: var(--text);
  text-align:center;
  line-height:1.6;
  padding-top:150px; /* espace sous le header fixe */
  scroll-behavior:smooth;
  transition: background-color 0.6s ease, box-shadow 0.6s ease, padding-top var(--transition);
}

/* Fond actif quand la souris est dans la fenêtre */
body.active {
  background: var(--bg);
  box-shadow: inset 0 0 50px rgba(138, 43, 226, 0.3);
}

body.hide-cursor, body.hide-cursor * { cursor:none !important; }

a {
  color: inherit;
  text-decoration:none;
  transition: color var(--transition), text-shadow var(--transition);
}

/* =====================================
   HEADER
===================================== */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--header-bg);
  padding: 15px 30px;
  z-index: 1000;
  box-shadow: 0 0 15px var(--neon);
  transition: all var(--transition);
  will-change: transform;
  -webkit-transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

header.shrink {
  padding: 8px 20px;
}

/* HEADER LEFT : Logo + Texte */
.header-left {
  flex-shrink: 0;
  min-width: fit-content;
}

/* Conteneur logo + texte */
.logo-container {
  display: flex;
  align-items: center; /* aligne verticalement texte et logo */
  gap: 10px;           /* espace entre logo et texte */
  text-decoration: none;
}

/* Image du logo */
.artist-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--neon);
  box-shadow: 0 0 10px var(--neon);
  transition: transform var(--transition), box-shadow var(--transition);
}

.artist-icon:hover {
  transform: scale(1.1);
  box-shadow: 0 0 20px #fff;
}

/* Texte "Pascal Gracia" */
.logo-text {
  color: var(--neon);
  font-size: 1.8rem;
  font-family: var(--font-primary);
  margin: 0;
  white-space: nowrap; /* empêche le retour à la ligne */
  text-shadow: 0 0 10px var(--neon);
}

/* HEADER NAVIGATION */
.header-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
  transition: var(--transition);
}

.header-nav a {
  color: var(--text);
  margin: 0 15px;
  font-weight: bold;
  transition: var(--transition);
}

.header-nav a:hover {
  color: var(--neon);
  text-shadow: 0 0 10px var(--neon);
}

/* HEADER RIGHT : Lang Switch */
.header-right {
  display: flex;
  align-items: center; /* centre verticalement le select */
  gap: 10px; /* espace éventuel entre les éléments si tu ajoutes autre chose */
}

.lang-switch select {
  padding: 5px 8px;
  border-radius: 5px;
  border: none;
  background: #222;
  color: #fff;
  font-weight: bold;
  cursor: pointer;
}

/* Menu hamburger : alignement vertical */
.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center; /* centre verticalement les barres */
  gap: 4px;
  cursor: pointer;
  align-items: center; /* centre horizontalement chaque barre */
}

/* Les barres du hamburger */
.menu-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background: var(--neon);
  border-radius: 2px;
  transition: 0.3s;
}

/* =====================================
   SECTIONS / HERO / BOUTONS
===================================== */
section {
  min-height:100vh;
  padding:60px 20px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
}

h1,h2 {
  color: var(--neon);
  text-shadow:0 0 10px var(--neon);
  animation: neonGlow 1.5s ease-in-out infinite alternate;
}
h1 { font-size:2.5rem; margin-bottom:20px; }
h2 { font-size:2rem; margin-bottom:20px; }

@keyframes neonGlow {
  from { text-shadow:0 0 5px var(--neon),0 0 10px var(--neon),0 0 20px var(--neon); }
  to { text-shadow:0 0 20px #fff,0 0 30px var(--neon),0 0 40px var(--neon); }
}

.section-text, .hero-text p {
  max-width:700px;
  margin:0 auto 20px;
  font-size:1.1rem;
  line-height:1.6;
}

.hero img.hero-image {
  max-width:400px;
  width:100%;
  border-radius:10px;
  margin-top:20px;
}

.btn {
  display:inline-block;
  background: var(--neon);
  color:#fff;
  padding:10px 25px;
  margin:10px;
  border-radius:5px;
  text-decoration:none;
  font-weight:bold;
  transition:var(--transition);
}
.btn:hover {
  background:#fff;
  color: var(--neon);
  box-shadow:0 0 10px var(--neon);
}

.iframe-container {
  width:100%;
  max-width:400px;
  aspect-ratio:1/1;
  margin:20px auto;
  overflow:hidden;
}
.iframe-container iframe { width:100%; height:100%; border:none; }

/* =====================================
   DISCOGRAPHIE - Boutons futuristes glitch
===================================== */
.discography ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 20px;
  padding: 0;
  list-style: none;
  justify-items: center;
  margin-top: 20px;
}

.discography li {
  font-family: 'Orbitron', 'Audiowide', sans-serif;
  background: linear-gradient(145deg, #111, #1a1a1a);
  color: #fff;
  border: 2px solid #8a2be2;
  border-radius: 16px;
  padding: 8px 50px;
  width: 100%;
  max-width: 420px;
  text-align: center;
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 1.8px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  transition: all 0.3s ease-in-out;
  box-shadow:
    0 0 5px #8a2be2,
    0 0 15px #8e2de2,
    0 0 25px #8a2be2 inset;
  animation: neonPulse 2s infinite alternate;
}

/* Néon pulsé */
@keyframes neonPulse {
  0% { box-shadow: 0 0 8px #8a2be2, 0 0 16px #8e2de2, 0 0 24px #8a2be2 inset; }
  50% { box-shadow: 0 0 12px #8a2be2, 0 0 28px #8e2de2, 0 0 36px #8a2be2 inset; }
  100% { box-shadow: 0 0 10px #8a2be2, 0 0 20px #8e2de2, 0 0 30px #8a2be2 inset; }
}

/* Reflet de lumière */
.discography li::before {
  content: "";
  position: absolute;
  top: 0; left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(120deg,
    rgba(255,255,255,0.05),
    rgba(255,255,255,0.5),
    rgba(255,255,255,0.05)
  );
  transform: skewX(-25deg);
  transition: all 0.5s ease-in-out;
}

.discography li:hover::before { left: 125%; }

.discography li:hover {
  color: #fff;
  box-shadow:
    0 0 25px #fff,
    0 0 50px #8a2be2,
    0 0 75px #8e2de2,
    0 0 20px #fff inset,
    0 0 40px #8a2be2 inset;
  transform: scale(1.1) rotate(-1deg);
  animation: neonPulse 1.5s infinite alternate, glitch 0.5s infinite;
}

/* Glitch léger */
@keyframes glitch {
  0% { text-shadow: 2px 0 #8a2be2, -2px 0 #ff0080; }
  20% { text-shadow: -2px 0 #8a2be2, 2px 0 #ff0080; }
  40% { text-shadow: 2px 2px #8a2be2, -2px -2px #ff0080; }
  60% { text-shadow: -2px 2px #8a2be2, 2px -2px #ff0080; }
  80% { text-shadow: 2px -2px #8a2be2, -2px 2px #ff0080; }
  100% { text-shadow: 2px 0 #8a2be2, -2px 0 #ff0080; }
}

/* Responsive adjustments */
@media (max-width: 500px) {
  .discography li {
    padding: 6px 20px;
    font-size: 1rem;
    max-width: 100%;
  }
}

/* =====================================
   SOCIAL LINKS
===================================== */
.social-links {
  display:flex;
  justify-content:center;
  flex-wrap:wrap;
  gap:20px;
  margin-top:20px;
}
.social-links img {
  width:50px; height:50px;
  transition:var(--transition);
}
.social-links img:hover {
  transform:scale(1.2) rotate(10deg);
  filter:drop-shadow(0 0 10px var(--neon));
}

/* =====================================
   FOOTER
===================================== */
footer.footer-neon {
  display:flex;
  justify-content:space-between;
  align-items:center;
  background: var(--header-bg);
  padding:20px 30px;
  color:#fff;
  box-shadow:0 0 15px var(--neon);
  flex-wrap:wrap;
  font-size:0.9rem;
}
.footer-left{text-align:left;}
.footer-right{text-align:right;}
footer.footer-neon a{ color:#fff; font-weight:bold; text-decoration:none; }
footer.footer-neon a:hover{ text-shadow:0 0 10px var(--neon); }

/* =====================================
   CURSEUR FUTURISTE
===================================== */
#cursor {
  position: fixed;
  width: 20px;
  height: 20px;
  border: 2px solid var(--neon);
  border-radius: 50%;
  pointer-events: none; /* ← essentiel pour ne pas bloquer les clics */
  transform: translate(-50%, -50%);
  box-shadow: 0 0 15px var(--neon), 0 0 30px var(--neon);
  transition: transform 0.1s ease, opacity 0.2s ease, box-shadow 0.2s ease;
  z-index: 10000; /* ← au-dessus visuel mais clics possibles */
  opacity: 1;
}

#cursor.hover {
  transform: translate(-50%, -50%) scale(1.5);
  box-shadow: 0 0 25px #fff, 0 0 50px var(--neon);
}

/* =====================================
   MODAL
===================================== */
.modal {
  display:none;
  position:fixed;
  top:0; left:0;
  width:100%; height:100%;
  background:rgba(0,0,0,0.85);
  justify-content:center;
  align-items:center;
  z-index:10000;
}
.modal-content {
  background: var(--bg);
  color: #fff;
  padding:20px;
  border-radius:10px;
  max-width:500px;
  text-align:center;
  position:relative;
}
.modal-content .close {
  position:absolute;
  top:10px; right:15px;
  font-size:2rem;
  cursor:pointer;
}

/* =====================================
   MENU HAMBURGER MOBILE
===================================== */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width:28px;
  height:22px;
  cursor:pointer;
  background:none;
  border:none;
  z-index:1001;
}
.menu-toggle span {
  display:block;
  height:3px;
  width:100%;
  background: var(--neon);
  border-radius:2px;
  transition:0.3s;
}
.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.menu-toggle.active span:nth-child(2) { opacity:0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(6px,-6px); }

/* ==============================
   RESPONSIVE HEADER MOBILE
============================== */
@media (max-width: 768px) {
  header {
    height: 65px;
    justify-content: center;
    padding: 0 20px;
  }

  /* Header left centré */
  .header-left {
  position: absolute;
  top: 50%;                /* centre verticalement */
  left: 50%;
  transform: translate(-50%, -50%); /* centre horizontal + vertical */
  display: flex;
  align-items: center;
  gap: 8px;
}

  .logo-text {
    font-size: 1.4rem;
  }

  .artist-icon {
    width: 45px;
    height: 45px;
  }

  /* Header right positionné */
 .header-right {
  position: absolute;
  top: 50%;                /* centre verticalement */
  left: 15px;              /* ou ajuste selon design */
  transform: translateY(-50%);
  display: flex;
  align-items: center;
}

  /* Menu hamburger */
  .menu-toggle {
  display: flex;
  position: absolute;
  top: 50%;                /* centre verticalement */
  right: 15px;             /* ou ajuste selon design */
  transform: translateY(-50%);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
}


  .header-nav {
    position: absolute;
    top: 65px;
    left: 0; right: 0;
    background: var(--header-bg);
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.3s ease;
  }

  .header-nav.show {
    max-height: 100vh;
    opacity: 1;
  }

  .header-nav a {
    display: block;
    width: 100%;
    padding: 15px 0;
    font-size: 1.1rem;
  }
}

/* Fix header iOS */
@supports (-webkit-touch-callout: none) {
  header { position: fixed; }
}

body {
  padding-top: 80px; /* ajuste selon la hauteur réelle du header */
}

/* =====================================
   FOND GRIS QUAND LA SOURIS SORT DE LA FENÊTRE
===================================== */
body.pointer-out {
  background-color: #222222;
  transition: background-color 0.6s ease;
}

/* =====================================
   BOUTON YOUTUBE MUSIC
===================================== */
.iframe-container {
  text-align: center;
  overflow: visible !important;
  position: relative;
  z-index: 1;
}

.ytmusic-wrapper {
  margin-top: 18px;
  text-align: center;
}

.ytmusic-btn {
  display: inline-block;
  padding: 12px 28px;
  background: var(--neon);
  color: var(--text);
  text-decoration: none;
  border-radius: 40px;
  font-weight: 600;
  font-family: 'Orbitron', sans-serif;
  box-shadow: 0 0 12px var(--neon-light);
  transition: all 0.3s ease;
  position: relative;
  z-index: 5;
}

.ytmusic-btn:hover {
  background: var(--neon-light);
  color: #fff;
  box-shadow: 0 0 20px var(--neon-light);
  transform: scale(1.05);
}

/* ==============================
   BOUTON PWA NEON (version mobile toujours visible)
============================== */
#install-btn {
  display: inline-flex !important; /* visible par défaut, géré ensuite par JS */
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  background: #111;
  border: 2px solid var(--neon);
  border-radius: 12px;
  color: var(--neon);
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  text-transform: uppercase;
  box-shadow: 0 0 10px var(--neon), 0 0 20px var(--neon), 0 0 40px var(--neon);
  transition: all 0.3s ease-in-out;
  z-index: 9999;
}

#install-btn:hover {
  color: #fff;
  box-shadow: 0 0 15px #fff, 0 0 30px var(--neon);
  transform: translateY(-2px);
}

#install-btn .btn-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--neon);
  box-shadow: 0 0 5px var(--neon), 0 0 10px var(--neon);
}

#install-btn .btn-text {
  display: inline-block;
  font-family: var(--font-primary);
  letter-spacing: 1px;
}

/* Version mobile responsive */
@media (max-width: 768px) {
  #install-btn {
    position: relative;
    margin: 20px auto;
    font-size: 0.9rem;
    padding: 0.6rem 1rem;
    gap: 0.4rem;
  }

  #install-btn .btn-icon {
    width: 24px;
    height: 24px;
  }
}

/* ==============================
   NOTICE INSTALLATION iOS
============================== */
.ios-install-notice {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
}

.ios-install-notice .notice-content {
  background: #111;
  border: 2px solid var(--neon);
  border-radius: 16px;
  padding: 1.5rem;
  text-align: center;
  color: var(--neon);
  font-family: 'Orbitron', 'Audiowide', sans-serif;
  box-shadow: 0 0 20px var(--neon), 0 0 40px var(--neon);
}

.ios-install-notice .notice-content p {
  margin-bottom: 1rem;
  font-size: 1rem;
  line-height: 1.5;
}

.ios-install-notice .close-notice {
  background: transparent;
  border: 2px solid var(--neon);
  color: var(--neon);
  padding: 0.4rem 1rem;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.ios-install-notice .close-notice:hover {
  color: #fff;
  box-shadow: 0 0 10px var(--neon), 0 0 30px var(--neon);
}

/* ==============================
   BANNIÈRE CONFIRMATION INSTALLATION PWA
============================== */
.install-banner {
  position: fixed;
  bottom: -100px; /* cachée au départ */
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--text);
  padding: 14px 26px;
  border-radius: 1.2em;
  box-shadow: 0 0 15px var(--neon), 0 0 30px var(--neon-light);
  font-family: var(--font-primary);
  font-weight: 600;
  letter-spacing: 1px;
  text-shadow: 0 0 8px var(--neon-light);
  opacity: 0;
  z-index: 99999;
  transition: all 0.6s ease-in-out;
}

/* Quand la bannière est affichée */
.install-banner.show {
  bottom: 40px; /* remonte en douceur */
  opacity: 1;
}

/* Cacher complètement (JS ajoute/enlève cette classe) */
.hidden {
  display: none;
}

/* Effet responsive sur mobile */
@media (max-width: 768px) {
  .install-banner {
    width: 90%;
    font-size: 0.9rem;
    text-align: center;
  }
}

/* =====================================
   ADRESSE DE CONTACT CENTREE SUR MOBILE
===================================== */
@media (max-width: 768px) {
  .footer-neon {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px 0;
    background: transparent; /* ou une couleur si besoin */
    z-index: 1000;
  }

  .footer-left {
    font-size: 13px;
    margin-bottom: 4px;
    color: #fff; /* adapte à ton design */
  }

  .footer-right {
    width: 100%;
    text-align: center;
  }

  .footer-right a {
    color: #fff; /* ou une autre couleur selon ton fond */
    font-size: 14px;
    text-decoration: none;
  }

  .footer-right a:hover {
    text-decoration: underline;
  }
}


