/*
Theme Name: Myriam Djaoud - Sun Flower
Description: Thème WordPress pour l'album Sun Flower de Myriam Djaoud
Version: 1.0
Author: JeremLeOuf
*/

/* Reset et base */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Supprime tous les effets de survol sur les images */
img:hover {
    transform: none !important;
    filter: none !important;
    opacity: 1 !important;
    transition: none !important;
    scale: 1 !important;
}

/* Styles spécifiques à la page d'accueil */

/* Appliquer les styles seulement si on est sur la page d'accueil */
body.home .hero-content,
body.front-page .hero-content {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 40px;
    flex-wrap: wrap;
}

body.home .album-section,
body.front-page .album-section,
body.home .artist-section,
body.front-page .artist-section {
    text-align: center;
    max-width: 400px;
}

body.home .album-cover img,
body.front-page .album-cover img,
body.home .artist-photo img,
body.front-page .artist-photo img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

body.home .hero-text h1,
body.front-page .hero-text h1,
body.home .hero-text h2,
body.front-page .hero-text h2 {
    margin: 15px 0 10px;
}

body.home .hero-description,
body.front-page .hero-description {
    margin-top: 10px;
    font-style: italic;
    font-weight: 500;
    color: #790055;
}

body.home .video-section,
body.front-page .video-section {
    margin: 40px auto;
    max-width: 800px;
}

body.home .description,
body.front-page .description {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
    font-size: 1.1rem;
    line-height: 1.6;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #87CEEB 0%, #FFD700 100%);
    background-attachment: fixed;
    min-height: 100vh;
}
#site-navigation {
  /* largeur adaptée */
  width: fit-content;
}

#primary-menu {
  display: flex;
  gap: 20px;
  padding: 0;
  margin: 0;
  list-style: none;
}

#primary-menu li a {
  text-decoration: none;
  color: #790055;
  font-weight: 600;
  padding: 8px 12px;
  transition: color 0.3s ease;
}

#primary-menu li a:hover,
#primary-menu li a:focus {
  color: #0073aa;
}
/* Header */



.site-header {
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    background-color: rgba(255, 234, 3, 0.146);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.container { justify-content: center !important; }

.site-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    text-decoration: none;
    letter-spacing: -0.5px;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.main-nav a {
    text-decoration: none;
    color: #790055;
    font-weight: 600;
    transition: color 0.3s ease;
}

.main-nav a:hover,
.main-nav a:focus {
    color: #667eea;
    outline: none;
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    flex-wrap: wrap;
    gap: 2rem;
}

.hero-content {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
}

/* Section gauche - Album */
.album-section,
.artist-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: center;
    height: 100%;
    margin: 0; /* RESET marges pour éviter gaps non désirés */
    padding: 0; /* RESET padding */
}

.album-cover,
.artist-photo {
    width: 350px;
    height: 350px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    background-color: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 10px;
    margin-bottom: 1rem; /* Garder un petit espace contrôlé */
}

.album-cover img,
.artist-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    display: block;
}

.hero-text {
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    flex: 1 1 30px;
    text-align: center;
    animation-delay: 0.2s;
}

/* Noms et titres */
.artist-name {
    font-size: 2.5rem;
    font-weight: bold;
    color: #a45b00;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
    margin-bottom: 0.5rem;
    background: linear-gradient(45deg, #a45b00, #ffb347);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.album-title {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #FFD700, #FF6B35);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

.hero-description {
    font-size: 1.1rem;
    opacity: 0.8;
    max-width: 400px;
    font-style: italic;
    line-height: 1.6;
}

/* Main Content */
.main-content {
    padding: 2rem 0;
}

.content-section {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    padding: 3rem;
    margin: 2rem 0;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: fadeInUp 0.6s ease-out;
}

/* Video Section */
.video-section {
    text-align: center;
}

.video-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.video-container iframe {
    width: 100%;
    height: 450px;
    border: none;
}

.video-placeholder {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    padding: 4rem;
    text-align: center;
    font-size: 1.2rem;
    border-radius: 15px;
}

/* Description */
.description {
    text-align: center;
}

.description h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #790055;
    font-weight: 600;
}

.description p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: #790055;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Tracklist */
.tracklist {
  max-width: 600px; /* largeur max raisonnable */
  margin: 20px auto;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #222;
  background: #fafafa80;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgb(0 0 0 / 0.1);
  padding: 16px 24px;
}

.tracklist h3 {
  font-weight: 700;
  font-size: 1.4rem;
  margin-bottom: 16px;
  border-bottom: 2px solid #ccc;
  padding-bottom: 6px;
    color: #790055;
      /* Ajout pour centrer le texte */
  text-align: center;
}

.track-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.track-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 8px;
  border-bottom: 1px solid #e0e0e0;
  transition: background-color 0.25s ease;
  cursor: default;
}

.track-list li:last-child {
  border-bottom: none;
}

.track-list li:hover {
  background-color: #f0f8ff; /* bleu très clair */
}

.play-btn {
  background: transparent;
  border: none;
  color: white;
  font-size: 1.2rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  margin-right: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
}

.play-btn:hover:not(:disabled) {
  background: #b200b52f;
}

.play-btn:disabled {
  background: #888;
  cursor: not-allowed;
  color: #ccc;
}


.track-number {
    font-weight: bold;
    color: #3366ff;
    width: 40px;
}

.track-title {
  flex: 1 1 auto;
  font-weight: 600;
  font-size: 1rem;
  color: #222;
  user-select: none;
}

.track-title em {
  font-style: italic;
  font-weight: 400;
  color: #666;
  margin-left: 4px;
  font-size: 0.9rem;
}

.track-duration {
  flex-shrink: 0;
  margin-left: 16px;
  font-size: 0.9rem;
  color: #555;
  user-select: none;
}

/* Animations */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Footer */
.site-footer {
    background: #222;
    color: #fff;
    padding: 2rem 0;
    text-align: center;
}

.site-footer a {
    color: #fff;
    text-decoration: underline;
}

.site-footer a:hover,
.site-footer a:focus {
    color: #a45b00;
    outline: none;
}

/* Responsive Design */

@media (max-width: 480px) {
  .tracklist {
    padding: 12px 16px;
  }
  
  .track-list li {
    flex-wrap: wrap;
    justify-content: flex-start;
  }
  
  .play-btn {
    margin-bottom: 8px;
  }
  
  .track-title {
    flex-basis: 100%;
    margin-bottom: 4px;
  }
  
  .track-duration {
    margin-left: 0;
  }
}

/* Medium screens */
@media (max-width: 768px) {

    body.home .hero-content,
    body.front-page .hero-content {
        gap: 20px; /* réduire le gap par défaut */
    }

    body.home .album-section,
    body.front-page .album-section,
    body.home .artist-section,
    body.front-page .artist-section {
        max-width: 320px;
        margin: 0; /* supprimer marges inutiles */
        padding: 0;
    }

    body.home .album-cover,
    body.front-page .album-cover,
    body.home .artist-photo,
    body.front-page .artist-photo {
        width: 100%;
        height: auto;
        max-height: 280px;
        margin: 0; /* supprimer marges parasites */
    }
}

/* Petits écrans */
@media (max-width: 600px) {
    body.home .hero-content,
    body.front-page .hero-content {
        display: flex;
        flex-direction: column;
        gap: 16px; /* gap vertical plus serré */
        align-items: center;
        padding: 0 1rem;
        margin: 0;
    }

    body.home .album-section,
    body.front-page .album-section,
    body.home .artist-section,
    body.front-page .artist-section {
        max-width: 320px;
        margin: 0;
        padding: 0;
    }

    body.home .album-cover,
    body.front-page .album-cover,
    body.home .artist-photo,
    body.front-page .artist-photo {
        width: 100%;
        height: auto;
        max-height: 280px;
        margin: 0;
    }

    /* Réduction marges titres pour éviter gaps */
    .album-title {
        margin-bottom: 0.3rem !important;
        font-size: 1.6rem;
    }
    .artist-name {
        margin-bottom: 0.5rem;
        font-size: 2rem;
    }
}

/* ==== PAGE CONCERTS ==== */
.page-concerts {
  min-height: calc(100vh - 160px); /* hauteur minimum pour coller le footer en bas */
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 4rem 1rem;
  background: linear-gradient(120deg, #d1f2eb1f, #fef9d71d); /* même style que l'accueil */
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #790055;
}

.page-concerts .container {
  max-width: 1800px;
  width: 100%;
  background: rgba(255, 255, 255, 0); /* très léger, transparent */
  backdrop-filter: blur(12px); /* effet flou type "frosted glass" */
  -webkit-backdrop-filter: blur(12px);
  border-radius: 1rem;
  padding: 2.5rem 3rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  white-space: normal;
  word-break: break-word; /* utile si un lien est trop long */
  overflow-wrap: break-word;
}

.page-concerts h1 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: #790055;
}

.page-concerts ul {
  padding-left: 1.2rem;
}

.page-concerts li {
  margin-bottom: 1rem;
  font-size: 1.1rem;
  line-height: 1.5;
}

.page-concerts a {
  color: #0066cc;
  text-decoration: underline;
}

.page-concerts a:hover {
  color: #004999;
}


.page-concerts .container {
  transition: all 0.3s ease-in-out;
}

.page-concerts .container:hover {
  background: rgba(255, 255, 255, 0.2);
}

@media screen and (max-width: 600px) {
  .page-concerts .container {
    padding: 1.5rem;
    max-width: 95%;
  }
}



/* ==== FOOTER toujours en bas ==== */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site-content {
  flex: 1;
}

/* Structure globale pour sticky footer */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

#page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site-content {
  flex: 1;
}

/* Footer */
.site-footer {
  background: #111;
  color: #eee;
  text-align: center;
  padding: 1.5rem 0;
  font-size: 0.9rem;
}

.site-footer .footer-content p {
  margin: 0.3rem 0;
}

.footer-nav {
  margin-top: 1rem;
}

.footer-nav ul {
  list-style: none;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.footer-nav a {
  color: #eee;
  text-decoration: none;
}
