/* =================================
   PAGE D'ACCUEIL RESPONSIVE PROPORTIONNELLE
   ================================= */

/* FULLSCREEN & RESETS */
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
background-color: #1d1c13;
}

/* ------------------------------------
   HOME GLOBAL LAYOUT
------------------------------------ */

/* Reset complet */
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100%;
  overflow-x: hidden;
  background-color: #1d1c13;
}

/* Fix du container Kirby (.page) */
.home-page.page {
  max-width: none !important;
  width: 100vw !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Structure principale */
.home-page {
  position: relative;
  width: 100vw;
  overflow-x: hidden;
  /* on enlève le height:100vh pour laisser défiler */
  background-color: #1d1c13;
}


/* ------------------------------------
   BACKGROUND DESKTOP
------------------------------------ */
.home-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
background-color: #1d1c13;
}

/* ------------------------------------
   CONTENU GLOBAL
------------------------------------ */
.home-content {
  position: relative;
  z-index: 10;
  width: 100vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2vh 0;
  box-sizing: border-box;
background-color: #1d1c13;
}

/* ------------------------------------
   DESKTOP ONLY
------------------------------------ */
.desktop-wrapper {
  display: block;
  width: 100%;
  height: 100%;
}

.desktop-wrapper {
  position: relative;
  z-index: 0;
}

.home-content {
  position: relative;
  z-index: 10;
}

.home-lineup {
  position: relative;
  z-index: 20;
}

/* MOBILE PAR DÉFAUT CACHÉ */
.mobile-wrapper {
  display: none;
}

/* LOGO + BLASONS */
.logo-section {
  position: relative;
  width: 38vw;
  height: 38vw;
  max-width: 760px;
  max-height: 760px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.blasons-grid {
  position: absolute;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  width: 100%;
  height: 100%;
  gap: 1vw;
  row-gap: 3vw;
  padding: 2vw;
  z-index: 1;
}

.blason {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1000px;
}

.blason-inner {
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.8s ease;
}

.blason:hover .blason-inner {
  transform: rotateY(180deg) scale(1.05);
}

.blason.reverse:hover .blason-inner {
  transform: rotateY(-180deg) scale(1.05);
}

.blason-front,
.blason-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.blason-back {
  transform: rotateY(180deg);
}

.blason-front img,
.blason-back img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* LOGO CENTRAL (M) */
.main-logo {
  position: absolute;
  z-index: 10;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}


.main-logo img {
  width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 15px rgba(0,0,0,0.5));

}


/* TICKETS DESKTOP */
.tickets-section {
  position: absolute;
  top: 2vw;
  right: 2vw;
  z-index: 20;
  animation: ticketEntrance 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) 0.5s backwards;
}

.tickets-section img {
  width: 5vw;
  max-width: 90px;
  height: auto;
  transition: transform 0.3s ease;
}

.tickets-section img:hover {
  transform: scale(1.1) rotate(5deg);
  filter: drop-shadow(0 8px 20px rgba(255, 140, 0, 0.4));
}

@keyframes ticketEntrance {
  0% {
    opacity: 0;
    transform: translateY(-30px) rotate(-10deg) scale(0.8);
  }
  50% {
    transform: translateY(10px) rotate(5deg) scale(1.05);
  }
  100% {
    opacity: 1;
    transform: translateY(0) rotate(0) scale(1);
  }
}

/* DATE */
.event-date {
  margin-top: 4vh;
  font-size: 2vw;
  font-weight: bold;
  color: #f4e04d;
  text-shadow: 2px 2px 8px rgba(255,255,255,0.3);
  font-family: 'TemposRomanMonoBeta', monospace;
}

/* TEXTE DU BAS */
.bottom-text {
  position: absolute;
  bottom: 2vh;
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 2vw;
  font-size: 1.4vw;
  font-family: 'TemposRomanMonoBeta', monospace;
  color: #f4e04d;
}

.left-text { 
  text-align: left;
  padding-left: 2vw;
}
.center-text { text-align: center; }
.right-text { 
  text-align: right;
  padding-right: 2vw;
}

/* CONTACT SECTION */
.contact-section {
  display: none;
}

.contact-link {
  font-family: 'TemposRomanMonoBeta', monospace;
  font-size: 16px;
  font-weight: bold;
  letter-spacing: 1px;
  color: #fff;
  text-decoration: none;
  padding: 10px 0px;
  border: 0px 0px 1px 0px solid #333;
  background: white;
  display: inline-block;
  transition: all 0.3s ease;
  text-transform: uppercase;
}

.contact-link:hover {
  color: #f4e04d;
  text-decoration: underline;
}

/* ==========================
   MENU TOGGLE HOME PAGE
========================== */

.menu-toggle-home {
  position: fixed;
  top: 30px;
  left: 2vw;
  z-index: 1001;
  background: none;
  border: none;
  color: #fff;
  font-family: 'TemposRomanMonoBeta', monospace;
  font-size: 1.2vw;
  letter-spacing: 1px;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.menu-toggle-home:hover{
    color:#FF5722;
}

/* Desktop : affiche EXPLORE, cache le burger */
.menu-toggle-home .menu-text {
  display: inline;
}

.menu-toggle-home .burger-icon {
  display: none;
}

/* ------------------------------------
   RESPONSIVE DESKTOP → TABLET
------------------------------------ */
@media (max-width: 1200px) {
  .logo-section {
    width: 48vw;
    height: 48vw;
  }
  .event-date {
    font-size: 2.6vw;
  }
  .bottom-text {
    font-size: 1.9vw;
  }
}

/* ------------------------------------
   RESPONSIVE GLOBAL MOBILE
------------------------------------ */
@media (max-width: 768px) {

  /* Réactiver le scroll pour mobile */
  html, body {
    overflow-y: auto;
    overflow-x: hidden;
  }

  .home-page {
    height: auto;
    min-height: 100vh;
    overflow-y: auto;
  }

    .logo-section {
    position: relative;
    width: 90vw;
    height: 90vw;
    }
 

  /* Afficher la version mobile */
  .mobile-wrapper {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
padding: 10vh 5vw;    
      box-sizing: border-box;
  }
    


  /* Date mobile EN HAUT */
  .mobile-wrapper .event-date {
    font-size: 5vw;
    margin: 0 0 2vh 0;
    text-align: center;
    color: #cccccc;
    font-family: 'TemposRomanMonoBeta', monospace;
  }

  /* Texte "Domaine de Gayfié" */
  .mobile-wrapper .bottom-text {
    position: relative;
    top: auto;
    bottom: auto;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0;
    margin: 0 0 4vh 0;
    font-size: 3.5vw;
    color: #cccccc;
      margin-top: 1rem;
    font-family: 'TemposRomanMonoBeta', monospace;
  }

  /* Poster mobile page contact */
  .mobile-poster {
    display: block;
    width: 100%;
    text-align: center;
    margin: 0 0 4vh 0;
  }

  .mobile-poster img {
    width: 85vw;
    max-width: 400px;
    height: auto;
    display: block;
    margin: 0 auto;
  }

  /* Tickets mobile */
  .mobile-tickets {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin: 3vh 0px 3vh 0;
    animation: ticketEntranceMobile 1s cubic-bezier(0.34, 1.56, 0.64, 1) 0.8s backwards;
  }

  .mobile-tickets img {
    width: 20vw;
    max-width: 120px;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
  }

  .mobile-tickets img:active {
    transform: scale(1.15) rotate(5deg);
    }

  @keyframes ticketEntranceMobile {
    0% {
      opacity: 0;
      transform: translateY(40px) scale(0.7);
    }
    60% {
      transform: translateY(-10px) scale(1.08);
    }
    100% {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }

  /* Contact mobile */
  .mobile-contact {
    text-align: center;
    margin-top: 20px;
    padding-bottom: 30px;
  }

  .contact-link-mobile {
    font-family: 'TemposRomanMonoBeta', monospace;
    font-size: 16px;
    font-weight: bold;
    letter-spacing: 1px;
    color: #333;
    text-decoration: none;
    padding: 10px 0px;
    border: 0px 0px 1px 0px solid #333;
    background: white;
    display: inline-block;
    transition: all 0.3s ease;
  }

  .contact-link-mobile:hover {
    color: #333;
    text-decoration: underline;
  }

  /* ==========================
     MOBILE : Burger sur home
  ========================== */

  .menu-toggle-home {
    width: 30px;
    height: 24px;
    text-decoration: none;
    top: 20px;
    font-size: 0 !important;
  }

  /* Cache le texte EXPLORE */
  .menu-toggle-home .menu-text {
    display: none !important;
  }

  /* Affiche le burger */
  .menu-toggle-home .burger-icon {
    display: block !important;
    position: relative;
    width: 30px;
    height: 24px;
  }

  /* Ligne du haut */
  .menu-toggle-home .burger-icon::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 30px;
    height: 2px;
    transition: all 0.3s ease;
  }

  /* Ligne du milieu */
  .menu-toggle-home .burger-icon::after {
    content: "";
    position: absolute;
    top: 11px;
    left: 0;
    width: 30px;
    height: 2px;
    background: #FF5722;
    transition: all 0.3s ease;
  }

  /* Ligne du bas */
  .menu-toggle-home::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    transition: all 0.3s ease;
  }

  /* Animation menu ouvert */
  .menu-toggle-home.active .burger-icon::after {
    opacity: 0;
  }

  .menu-toggle-home.active .burger-icon::before {
    top: 11px;
    transform: rotate(45deg);
  }

  .menu-toggle-home.active::before {
    bottom: 11px;
    transform: rotate(-45deg);
  }
}

.menu-toggle-home .burger-icon::before,
.menu-toggle-home .burger-icon::after,
.menu-toggle-home::before {
  background: #f4e04d
 !important;
}
/* ------------------------------------
   EXTRA SMALL MOBILE
------------------------------------ */
@media (max-width: 480px) {
  .mobile-wrapper .event-date {
    font-size: 6vw;
  }
  .mobile-wrapper .bottom-text {
    font-size: 4.5vw;
  }

  .menu-toggle-home {
    width: 24px;
    height: 20px;
  }

  .menu-toggle-home .burger-icon::before,
  .menu-toggle-home .burger-icon::after,
  .menu-toggle-home::before {
    width: 24px;
  }
}

@media (max-width: 1024px) {
  .contact-section {
    left: 20px;
    top: 20px;
  }
  
  .contact-link {
    font-size: 14px;
    padding: 8px 16px;
  }
}


    

/**/
/* ==========================
   HOME – LINE UP (POSTER)
========================== */

.home-lineup {
  width: 100%;
  background: #1d1c13;
  padding: clamp(4rem, 10vh, 10rem) 0 8rem; /* plus de padding horizontal */
  display: flex;
  justify-content: center;
}

.lineup-inner {
  max-width: 1400px;
  width: 100%;
  padding: 0 6vw; /* padding interne maîtrisé */
  box-sizing: border-box;

  font-family: 'TemposRomanMonoBeta', monospace;
  font-size: clamp(14px, 2vw, 18px);
  line-height: 2.1;
  letter-spacing: 0.08em;
  color: #f4e04d;
  text-align: center;
}


/* Noms des artistes */
.lineup-artist {
  color: #cccccc;
  text-decoration: none;
  transition: opacity 0.25s ease;
  white-space: nowrap;
}

.lineup-artist:hover {
  opacity: 0.6;
color:#f4e04d;
}

/* Séparateur ⬪ */
.lineup-separator {
  margin: 0 0.6em;
  opacity: 0.6;
}

/* Mobile */
@media (max-width: 768px) {
  .home-lineup {
    padding: 4rem 6vw 6rem;
  }

  .lineup-inner {
    font-size: 14px;
    line-height: 2;
  }
}


/* =================================
   HOME – MEMORI FESTIVAL
   Hero fullscreen + scroll + lineup
================================= */

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100%;
  overflow-x: hidden;
  background-color: #1d1c13;
}

/* Fix Kirby container */
.home-page.page {
  max-width: none !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Page */
.home-page {
  position: relative;
  width: 100%;
  overflow-x: hidden;
  background-color: #1d1c13;
}

/* ------------------------------------
   HERO (DESKTOP)
------------------------------------ */

.desktop-wrapper {
  width: 100%;
  height: 100vh; /* hero fullscreen */
  position: relative;
}

/* Background */
.home-background {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
      height: 100vh;

}



/* Content */
.home-content {
  position: relative;
  z-index: 10;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* ------------------------------------
   LOGO
------------------------------------ */

.logo-section {
  position: relative;
  width: 38vw;
  height: 38vw;
  max-width: 760px;
  max-height: 760px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.main-logo {
  width: 100%;
  height: 100%;
}

.main-logo img {
  width: 100%;
  height: auto;
}

/* ------------------------------------
   DATE & LOCATION
------------------------------------ */

.event-date {
  margin-top: 4vh;
  font-size: 2vw;
  color: #cccccc;
  font-family: 'TemposRomanMonoBeta', monospace;
}

.bottom-text {
  position: absolute;
  bottom: 2vh;
  left: 0;
  right: 0;
  padding: 0 2vw;
  display: flex;
  justify-content: space-between;
  font-size: 1.4vw;
  color: #cccccc;
  font-family: 'TemposRomanMonoBeta', monospace;
}

/* ------------------------------------
   LINEUP
------------------------------------ */

.home-lineup {
  width: 100%;
  padding: 8rem 6vw;
  text-align: center;
  background: transparent;
}

.lineup-inner {
  max-width: 1400px;
  margin: 0 auto;
  font-family: 'TemposRomanMonoBeta', monospace;
  font-size: clamp(14px, 2vw, 18px);
  line-height: 2.1;
  letter-spacing: 0.08em;
  color: #cccccc;
}

.lineup-artist {
  color: #cccccc;
  text-decoration: none;
}

.lineup-inner:hover {
  color: #f4e04d;
}



.lineup-separator {
  margin: 0 0.6em;
  opacity: 0.6;
}

/* ------------------------------------
   MOBILE
------------------------------------ */

.mobile-wrapper {
  display: none;
}

@media (max-width: 768px) {

  .desktop-wrapper {
    display: none;
  }

  .mobile-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 4vh 5vw;
  }

  .home-lineup {
    padding: 4rem 6vw;
  }

  .event-date {
    font-size: 5vw;
  }

  .bottom-text {
    position: relative;
    font-size: 3.5vw;
    margin-bottom: 4vh;
  }
}


/* ==========================
   HOME – ANTI OVERFLOW HORIZONTAL
========================== */

.home-page,
.home-page * {
  box-sizing: border-box;
}

.home-page {
  overflow-x: hidden;
}

/* La home ne doit jamais masquer ce qui suit */
.desktop-wrapper {
  position: relative;
  z-index: 0;
}

.home-background {
  position: absolute;
  inset: 0;
}


/*CSSSS a corriger ou ameliorer*/
/* ==========================
   HOME – ALLOW FOOTER & SCROLL
========================== */

body.is-home .home-page {
  height: auto !important;
  min-height: 100vh !important;
  overflow-y: visible !important;
  overflow-x: hidden !important;
}

/* Le hero reste fullscreen */
body.is-home .desktop-wrapper {
  height: 100vh !important;
}

/* Le reste de la page peut exister */
body.is-home .home-lineup,
body.is-home .footer-intro,
body.is-home .memori-footer {
  display: block !important;
  position: relative !important;
  z-index: 10 !important;
}


/* Allow footer to be visible on home */
body.is-home .home-page {
  height: auto !important;
  min-height: 100vh !important;
  overflow: visible !important;
}

body.is-home .home-content {
  height: auto !important;
  min-height: 100vh !important;
}

/* Home must not trap the document flow */
body.is-home main.home-page {
  display: block !important;
}

/* ==========================
   MOBILE – SHOW LOGO SECTION
========================== */

@media (max-width: 768px) {

  /* On laisse le wrapper desktop caché */
  .desktop-wrapper {
    display: none !important;
  }

  /* Mais on réactive uniquement la logo-section */
  .desktop-wrapper .logo-section {
    display: flex !important;
    position: relative;
    width: 80vw;
    height: 80vw;
    max-width: 420px;
    max-height: 420px;
    margin: 4vh auto;
  }

  /* S'assurer que le logo central est visible */
  .desktop-wrapper .main-logo {
    width: 70%;
    height: 70%;
  }

  /* Les blasons restent bien visibles */
  .desktop-wrapper .blasons-grid {
    width: 100%;
    height: 100%;
    padding: 4vw;
    gap: 3vw;
  }
}

/* ==========================
   ARTIST HOVER PREVIEW
========================== */

.artist-hover-preview {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 40vw;
  max-width: 520px;
  aspect-ratio: 3 / 4;
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 0;
  z-index: 40;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.artist-hover-preview img {
  width: 50%;
  height: 50%;
  object-fit: cover;
  filter: contrast(1.05) saturate(1.1);
  box-shadow: 0 30px 80px rgba(0,0,0,0.7);
}

/* When active */
.artist-hover-preview.active {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* Slight movement for life */
.artist-hover-preview.floating {
  transform: translate(-50%, -48%) scale(1.02);
}

/* Disable on mobile */
@media (max-width: 768px) {
  .artist-hover-preview {
    display: none;
  }
}

    
    
    /*Power by home page */
    
    
   .home-powered-by {
    font-size: 1.3rem !important;
    font-family: 'memori';
    text-transform: uppercase;
    letter-spacing: 0.61rem;
    text-align: center;
    margin-top: 5rem;
}

.home-powered-by a {
    font-size: 1.3rem !important;
    font-family: 'memori';
    text-transform: uppercase;
    letter-spacing: 0.61rem;
    text-align: center;
        text-decoration: none;
    color:#cccccc;
}

.home-powered-by-sound a{
    font-size: 1.3rem !important;
    font-family: 'memori';
    text-transform: uppercase;
    letter-spacing: 0.61rem;
    text-align: center;
    margin-top: 2rem;
 color:#cccccc;
text-decoration:none;
}


.home-powered-by-sound a:hover {
    font-size: 2rem !important;
    font-family: 'memori';
    text-transform: uppercase;
    letter-spacing: 0.61rem;
    text-align: center;
    color:#f4e04d;
}


.home-page {
  height: auto !important;
  min-height: 100vh;
  overflow-y: visible;
}

.desktop-wrapper {
  height: 100vh;
}

.home-content {
  min-height: 100vh;
}

.home-lineup {
  position: relative;
  z-index: 10;
}



@media (max-width: 768px) {

  .mobile-wrapper .logo-section {
    width: 80vw;
    height: 80vw;
    max-width: none;
    max-height: none;
  }

  .mobile-wrapper .main-logo {
    width: 100%;
    height: 100%;
  }

  .mobile-wrapper .main-logo img {
    width: 100%;
    height: auto;
  }
}


/* Fix définitif scroll home */
body.is-home .desktop-wrapper {
  height: auto !important;
  min-height: 100vh;
}

body.is-home .home-background {
  height: 100vh;
}

body.is-home .home-content {
  min-height: 100vh;
}

@media (max-width: 768px) {
  .logo-section {
    width: 80vw;
    height: auto;
    aspect-ratio: 1 / 1;
  }
}


