/* Style principal pour Maison Cerëe de Sens */

/* Réinitialisation des styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Variables globales */
:root {
    --primary-color: #ffffff; /* Couleur de fond claire */
    --text-color: #1a1a1a;    /* Couleur de texte principale */
    --accent-color: #000000;  /* Couleur d'accent verte comme les feuilles */
    --menu-bg-color: rgba(245, 245, 230, 0.95);
    --font-primary: var(--font-primary);
    --font-secondary: var(--font-secondary);
}

/* Styles de base */
html, body {
    height: 100%;
    font-family: var(--font-primary);
    color: var(--text-color);
}

body {
    position: relative;
}

/* Conteneur d'arrière-plan */
.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* En-tête */
/* ========== HEADER GLOBAL ========== */

header,
#mainHeader {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px; /* Taille fixe */

  z-index: 100;
  background-color: white;
  border-bottom: 0.5px solid #8d8d8d;
  text-align: center;
  padding: 20px 0 10px;
  /*transition: padding 1s ease, height 1s ease, margin 1s ease-in-out;*/
}

#mainHeader.scrolled {
  padding: 5px 0;
  height: 80px; /* Taille fixe */

}

/* ========== CONTENU DU HEADER ========== */

.header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 80px;
    padding: 0;
    margin: 0;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
  }
  
  .header-content h1 {
    margin: 0;
    padding: 0;
    line-height: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  /* ========== TEXTE DU HEADER ========== */
  
  .header-text {
    text-decoration: none;
    color: black;
    text-transform: uppercase;
    font-size: 1.6rem; /* ajuste ici */
    white-space: nowrap; /* ➤ Forcer une seule ligne */
    /*transition: opacity 0.3s ease, transform 0.3s ease;*/
    z-index: 2;
  }
  
  /* ➤ Quand scrollé : cacher le texte */
  .header-content.scrolled .header-text {
    opacity: 0;
    transform: translateY(-10px);
    visibility: hidden;
  }
  
  /* ========== LOGO ========== */
  
  .header-logo-link {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    opacity: 0;
    /*transition: opacity 0.3s ease, transform 0.3s ease;*/
    z-index: 1;
  }
  
  .header-content.scrolled .header-logo-link {
    opacity: 1;
    /*transform: translate(-50%, -50%) scale(1);*/
  }
  
  .header-logo {
    height: 70px;
    display: block;
  }
  
  /* ========== SOUS-TITRE ========== */
  
  .subtitle {
    margin-top: 5px;
    font-size: 0.7rem;
    opacity: 1;
    visibility: visible;
    /*transition: opacity 0.3s ease, transform 0.3s ease;*/
    text-transform: uppercase;
    font-family: var(--font-secondary);
    margin-top: 8px;
    letter-spacing: 1px;
  }
  
  .header-content.scrolled .subtitle {
    opacity: 0;
    /*transform: translateY(-5px);*/
    visibility: hidden;
  }
    
  

/* Icône du menu hamburger */
.menu-icon {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 30px;
    height: 30px;
    cursor: pointer;
    --primary-color: #000000;
  }
  .menu-close {
    position: absolute;
    top: 30%;
    left: 20px;
    width: 30px;
    height: 30px;
    cursor: pointer;
    --primary-color: #000000;

  }
  .hamburger-menu span {
    display: block;
    height: 3px;
    width: 30px;
    background-color: var(--text-color);
    margin: 5px 0;
    transition: 0.3s ease;
  }

.hamburger-menu span {
    position: absolute;
    left: 20px;
    top: 20px;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
    left: 0;
    transition: all 0.3s ease;
    z-index: 300;
}

.hamburger-menu span:nth-child(1) {
    top: 6px;
}

.hamburger-menu span:nth-child(2) {
    top: 14px;
}

.hamburger-menu span:nth-child(3) {
    top: 22px;
}

.menu-span1.active {
    /* Applique ton style ici */
    transform: rotate(45deg);
    top: 17px !important;
}
.menu-span2.active {
    /* Applique ton style ici */
    display: none;
}
.menu-span3.active {
    /* Applique ton style ici */
    transform: rotate(-45deg);
    top: 17px !important;
}



/* Centrage du contenu */
.header-content h1 {
    font-size: 2.5rem;
    font-family: var(--font-secondary);
    letter-spacing: 2px;
}



/* Menu principal */
.main-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 20%;
    height: 100%;

    backdrop-filter: blur(10px); /* Applique le flou global */
    -webkit-backdrop-filter: blur(10px); /* Pour Safari */

    /* Masque progressif du flou vers la droite */
    -webkit-mask-image: linear-gradient(to right, black 70%, transparent 100%);
    mask-image: linear-gradient(to right, black 70%, transparent 100%);

    background: transparent; /* Couleur semi-transparente pour que le flou soit visible */

    z-index: 15;
    padding: 50px 20px;
    transition: left 0.6s ease;
}

/* ==== SAVE MAIN MENU
.main-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 20%;
    height: 100%;
    backdrop-filter: blur(10px); 
    -webkit-backdrop-filter: blur(10px); 
    z-index: 200;
    padding: 50px 20px;
    transition: left 0.5s ease;
    } 
========= */
.main-menu.active {
    left: 0;
}


.menu-header {
    text-align: center;
    margin-bottom: 40px;
}

.menu-header h2 {
    font-size: 2rem;
    font-weight: normal;
    margin-bottom: 10px;
}

.menu-items {
    list-style: none;
    text-align: left;
    --text-color: rgb(0, 0, 0);
    padding-top: 50%;
}


.menu-items li {
    margin-bottom: 20px;
}

.menu-items a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.menu-items a:hover {
    color: var(--accent-orange);
}

.music_body .menu-items a:hover {
    color: white;
}

.social-links {
    position: absolute;
    bottom: 50px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    --text-color: rgb(0, 0, 0);
    text-align: left;
}

.social-link {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.8rem;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: var(--accent-color);
}
.music_body .social-link:hover {
    color: white;;
}

/* Styles communs pour les pages */
.page-container {
    min-height: 100vh;
    padding: 80px 20px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.page-title {
    text-align: center;
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 40px;
    color: black;

}

.page-content {
    background-color: var(--primary-color);
    padding: 40px;
    margin-bottom: 40px;
}



/* Styles pour la galerie d'inspirations */
.inspiration-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    aspect-ratio: 1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Styles pour les listes d'écoute */
.music-playlists {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.playlist {
    background-color: rgba(255, 255, 255, 0.8);
    padding: 20px;
    border-radius: 5px;
}

.playlist-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.playlist-cover {
    width: 100px;
    height: 100px;
    margin-right: 20px;
}

.playlist-info h3 {
    margin-bottom: 10px;
}

.playlist-tracks {
    list-style: none;
}

.playlist-track {
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}
