/*
Theme Name: Rockwave Festival
Theme URI: https://github.com/maeli/rockwave-festival
Author: Maeli
Author URI: https://maeli.techniques-graphiques.be
Description: Un thème moderne et élégant pour un site d'actualités.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rockwave-festival
*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    color: #1a1a2e;
    background: #f5f5f7;
}

a {
    color: #e11d48;
    text-decoration: none;
}

a:hover {
    color: #be123c;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* --- Header / Navigation --- */
.site-header {
    background: #0f0f1e;
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

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

.site-logo {
    font-size: 1.6rem;
    font-weight: 800;
    color: white;
    text-decoration: none;
    letter-spacing: -0.5px;
    text-transform: uppercase;
}

.site-logo span {
    color: #f59e0b;
}

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

.site-nav a {
    color: #cbd5e1;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.site-nav a:hover,
.site-nav a.active {
    color: #f59e0b;
}

/* ==========================================================================
   Sous-menu déroulant (genres musicaux)
   --------------------------------------------------------------------------
   Les deux jeux de classes suivants permettent au sous-menu de fonctionner
   AUSSI BIEN en HTML statique (classes .has-submenu / .submenu)
   QU'EN mode WordPress (classes .menu-item-has-children / .sub-menu
   générées automatiquement par wp_nav_menu()).
   ========================================================================== */
.site-nav ul li {
    position: relative;
}

.site-nav .submenu,
.site-nav .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #0f0f1e;
    min-width: 180px;
    padding: 0.5rem 0;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    list-style: none;
    gap: 0;
}

/* Zone invisible qui comble le gap entre le parent et le sous-menu
   pour que le hover ne se perde pas quand la souris descend */
.site-nav .has-submenu::before,
.site-nav .menu-item-has-children::before {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 0.75rem;
    display: none;
}

.site-nav .has-submenu:hover::before,
.site-nav .menu-item-has-children:hover::before {
    display: block;
}

.site-nav .has-submenu:hover > .submenu,
.site-nav .menu-item-has-children:hover > .sub-menu {
    display: block;
    margin-top: 0.75rem;
}

.site-nav .submenu li,
.site-nav .sub-menu li {
    display: block;
}

.site-nav .submenu a,
.site-nav .sub-menu a {
    display: block;
    padding: 0.6rem 1.25rem;
    font-size: 0.95rem;
    color: #cbd5e1;
}

.site-nav .submenu a:hover,
.site-nav .sub-menu a:hover {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

/* --- Hero Section --- */
.hero {
    background: linear-gradient(135deg, #0f0f1e 0%, #1e1b4b 50%, #831843 100%);
    color: white;
    padding: 6rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-tagline {
    display: inline-block;
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    padding: 0.5rem 1.25rem;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.hero h1 {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
    text-transform: uppercase;
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2rem;
    opacity: 0.9;
}

.btn-primary {
    display: inline-block;
    background: #f59e0b;
    color: #0f0f1e;
    padding: 1rem 2.5rem;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.4);
    color: #0f0f1e;
}

/* --- Section Programmation --- */
.programmation {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #0f0f1e;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: -1px;
}

.section-header p {
    color: #64748b;
    font-size: 1.1rem;
}

/* --- Grille des Artistes --- */
.artistes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.artiste-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(15, 15, 30, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.artiste-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(15, 15, 30, 0.15);
}

.artiste-card-image {
    position: relative;
    aspect-ratio: 3/2;
    overflow: hidden;
}

.artiste-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.artiste-scene-badge {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    background: rgba(15, 15, 30, 0.85);
    color: white;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    backdrop-filter: blur(8px);
}

.artiste-card-body {
    padding: 1.5rem;
}

.artiste-genre-badge {
    display: inline-block;
    background: #fef3c7;
    color: #b45309;
    padding: 0.3rem 0.85rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
}

.artiste-card-body h3 {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    color: #0f0f1e;
}

.artiste-card-body h3 a {
    color: inherit;
    text-decoration: none;
}

.artiste-card-body h3 a:hover {
    color: #e11d48;
}

.artiste-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    color: #64748b;
    font-size: 0.9rem;
}

/* --- Page Single Artiste --- */
.single-artiste {
    padding: 3rem 1.5rem;
    max-width: 900px;
}

.btn-back {
    display: inline-block;
    color: #64748b;
    font-weight: 500;
    margin-bottom: 2rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: background 0.2s;
}

.btn-back:hover {
    background: #e2e8f0;
    color: #0f0f1e;
}

.single-artiste-header {
    margin-bottom: 2.5rem;
}

.single-artiste-header .artiste-genre-badge {
    margin-bottom: 1rem;
}

.single-artiste-header h1 {
    font-size: 3rem;
    font-weight: 900;
    color: #0f0f1e;
    line-height: 1.1;
    letter-spacing: -1.5px;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.artiste-origine {
    color: #64748b;
    font-size: 1rem;
}

/* --- Infos pratiques (grille) --- */
.artiste-infos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    background: #0f0f1e;
    color: white;
    padding: 2rem;
    border-radius: 16px;
    margin-bottom: 2.5rem;
}

.artiste-info-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    text-align: center;
}

.artiste-info-item .label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #94a3b8;
    font-weight: 600;
}

.artiste-info-item .value {
    font-size: 1.2rem;
    font-weight: 700;
}

.artiste-info-item .value.highlight {
    color: #f59e0b;
    font-size: 1.4rem;
}

/* --- Bio --- */
.artiste-bio,
.artiste-galerie,
.artiste-setlist {
    margin-bottom: 2.5rem;
}

.artiste-bio h2,
.artiste-galerie h2,
.artiste-setlist h2 {
    font-size: 1.8rem;
    font-weight: 800;
    color: #0f0f1e;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

.artiste-bio p {
    margin-bottom: 1rem;
    color: #334155;
}

/* --- Galerie --- */
.galerie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.galerie-grid img {
    width: 100%;
    aspect-ratio: 3/2;
    object-fit: cover;
    border-radius: 12px;
    transition: transform 0.3s;
}

.galerie-grid img:hover {
    transform: scale(1.03);
}

/* --- Setlist (Repeater ACF) --- */
.setlist-list {
    list-style: none;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(15, 15, 30, 0.06);
}

.setlist-item {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.2s;
}

.setlist-item:last-child {
    border-bottom: none;
}

.setlist-item:hover {
    background: #fef3c7;
}

.setlist-num {
    font-size: 1.5rem;
    font-weight: 900;
    color: #f59e0b;
    min-width: 40px;
}

.setlist-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: #0f0f1e;
}

/* --- Footer --- */
.site-footer {
    background: #0f0f1e;
    color: #94a3b8;
    padding: 2rem 0;
    text-align: center;
    margin-top: 4rem;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .hero {
        padding: 4rem 0;
    }
    .hero h1 {
        font-size: 2.5rem;
    }
    .hero p {
        font-size: 1rem;
    }
    .section-header h2 {
        font-size: 2rem;
    }
    .single-artiste-header h1 {
        font-size: 2rem;
    }
    .site-nav ul {
        gap: 1rem;
    }
    .artiste-infos {
        padding: 1.5rem;
    }
}
