/* Nouvelle feuille de style pour Single Artiste */

:root {
    --primary-color: #e8412f;
    --secondary-color: #333;
    --light-gray: #f5f5f5;
    --medium-gray: #e0e0e0;
    --dark-gray: #444;
    --accent-color: #2c7be5;
}

/* Reset pour la page artiste */
#main {
    padding-top: 0 !important;
}

.modern-artist-profile * {
    box-sizing: border-box;
}

.modern-artist-profile {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* === CORRECTION TITRE EN DOUBLE ET HERO PLEINE LARGEUR === */

/* 1. Masquer le titre WordPress par défaut sur les pages artiste */
.single-artiste .page-title,
.template-moderne .page-title {
    display: none !important;
}

/* 2. Hero Section - Pleine largeur */
.template-moderne .hero-section {
    background-color: var(--primary-color);
    padding: 40px 0;
    color: white;
    text-align: center;
    position: relative;
    margin: 0;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    width: 100vw;
    box-sizing: border-box;
}

.template-moderne .hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.template-moderne .hero-section h1 {
    font-size: 42px;
    margin-bottom: 10px;
    font-weight: 800;
    color: white !important;
    border: none !important;
    padding: 0 !important;
    background: transparent !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    line-height: 1;
}

.artist-status {
    font-size: 18px;
    margin: 0 auto 20px;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.tag {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
}

/* === MAIN CONTENT GRID === */
.template-moderne .main-content-grid {
    display: grid;
    grid-template-columns: 7fr 3fr;
    gap: 30px;
    margin: 40px auto;
    max-width: 1200px;
    padding: 0 20px;
    align-items: start;
    position: relative; /* Important pour le positioning de la sidebar */
}

/* === SIDEBAR CONFIGURATION === */
.template-moderne .artist-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
}

/* === STICKY SIDEBAR - DESKTOP SEULEMENT === */
@media (min-width: 993px) {
    .template-moderne .sticky-sidebar {
        position: sticky;
        top: 100px;
        z-index: 10;
        align-self: flex-start;
        transition: all 0.3s ease;
        max-height: calc(100vh - 120px);
        overflow-y: auto;
    }
    
    /* État quand on atteint la section similaire */
    .template-moderne .sticky-sidebar.reached-bottom {
        position: absolute !important;
        top: auto !important;
        bottom: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-width: none !important;
    }
}

/* Sections */
.section {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.featured-video {
    margin-bottom: 30px;
}

.featured-video iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: block;
}

.section-header {
    background-color: var(--light-gray);
    padding: 15px 20px;
    border-bottom: 1px solid var(--medium-gray);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-header h2 {
    font-size: 20px;
    color: var(--secondary-color) !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    line-height: normal !important;
}

.section-body {
    padding: 20px;
}

/* Bio */
.artist-bio {
    line-height: 1.8;
    margin-bottom: 0;
    position: relative;
    max-height: 125px;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

.artist-bio.expanded {
    max-height: 2000px;
}

.artist-bio:not(.expanded)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1));
    pointer-events: none;
}

.bio-toggle {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 600;
    cursor: pointer;
    padding: 5px 10px;
    margin-bottom: 30px;
    margin-top: 10px;
    border-radius: 4px;
    background-color: #f5f5f5;
    transition: all 0.3s;
}

.bio-toggle:hover {
    background-color: #e0e0e0;
}

/* Stats */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.stat-item {
    background-color: var(--light-gray);
    border-radius: 6px;
    padding: 15px;
    text-align: center;
}

.stat-number {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    color: var(--dark-gray);
}

/* Topics */
.topics-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.topic-item {
    background-color: var(--light-gray);
    border-radius: 6px;
    padding: 15px;
    transition: all 0.3s;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
}

.topic-item:hover {
    background-color: var(--medium-gray);
    transform: translateY(-3px);
}

.topic-icon {
    width: 24px;
    height: 24px;
    color: var(--primary-color);
    font-size: 24px;
    display: inline-block;
    text-align: center;
}

/* === AMÉLIORATION DISPOSITION VIDÉOS 16:9 === */
.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

.video-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background-color: #000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.video-item iframe {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    display: block;
    border: none;
}

/* Documents */
.doc-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
}

.doc-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    background-color: var(--light-gray);
    border-radius: 6px;
    transition: all 0.3s;
}

.doc-item:hover {
    background-color: var(--medium-gray);
}

.doc-icon {
    color: var(--primary-color);
    width: 40px;
    font-size: 24px;
    text-align: center;
}

.doc-info {
    flex-grow: 1;
}

.doc-title {
    font-weight: 600;
    font-size: 15px;
}

.doc-size {
    font-size: 13px;
    color: var(--dark-gray);
}

.download-btn {
    padding: 6px 12px;
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s;
    text-decoration: none;
}

.download-btn:hover {
    background-color: #1a68d4;
}

/* === SIDEBAR CONTENT === */
.artist-photo {
    height: auto;
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.cta-section {
    padding: 15px 25px;
    background-color: var(--primary-color);
    color: white !important;
    border-radius: 8px;
    display: block;
    font-size: 16px;
    margin: 20px 0;
    line-height: 24px;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.3s;
}

.cta-section:hover {
    background-color: var(--secondary-color);
}

.cta-section h3 {
    font-size: 20px;
    color: white;
    line-height: 26px;
    max-width: 200px;
    margin: auto;
}

.info-box {
    padding: 20px;
    background-color: var(--light-gray);
    border-radius: 8px;
}

.info-item {
    display: flex;
    margin-bottom: 10px;
    align-items: flex-start;
}

.info-icon {
    width: 20px;
    color: var(--primary-color);
    margin-right: 10px;
    flex-shrink: 0;
    margin-top: 4px;
}

.info-label {
    font-weight: 600;
    margin-right: 5px;
}

.social-links-container {
    display: flex;
    gap: 15px;
    margin-top: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.social-icon {
    width: 36px;
    height: 36px;
    background-color: var(--light-gray);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s;
    color: var(--primary-color);
    text-decoration: none;
}

.social-icon:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.social-icon span {
    font-size: 18px;
}

/* Gallery */
.gallery-section {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.gallery-item {
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
}

.gallery-img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    transition: transform 0.3s;
}

.gallery-item:hover .gallery-img {
    transform: scale(1.05);
}

.gallery-caption {
    padding: 10px;
    text-align: center;
    font-size: 14px;
}

/* Similar Artists */
.similar-artists {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.similar-grid {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 10px 0;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.similar-grid::-webkit-scrollbar {
    display: none;
}

.similar-artist {
    min-width: 200px;
    scroll-snap-align: start;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s;
}

.similar-artist:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.similar-img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.similar-name {
    padding: 10px;
    text-align: center;
    font-weight: 600;
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 1200px) {
    .videos-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 18px;
    }
}

@media (max-width: 992px) {
    .template-moderne .main-content-grid {
        grid-template-columns: 1fr;
    }
    
    .template-moderne .artist-sidebar {
        order: -1;
    }
    
    .template-moderne .sticky-sidebar {
        position: static !important;
        top: auto !important;
        bottom: auto !important;
        max-height: none !important;
        overflow-y: visible !important;
    }
    
    .artist-photo {
        max-width: 300px;
        margin: 0 auto;
    }
    
    .cta-section, .info-box {
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .template-moderne .hero-section {
        padding: 30px 0;
    }
    
    .template-moderne .hero-section h1 {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .template-moderne .hero-section h1 {
        font-size: 32px;
    }
    
    .topics-container, 
    .stats, 
    .videos-grid, 
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
    
    .videos-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .template-moderne .hero-section {
        padding: 25px 0;
    }
}

@media (max-width: 576px) {
    .template-moderne .hero-section {
        padding: 20px 0;
    }
    
    .template-moderne .hero-section h1 {
        font-size: 28px;
    }
    
    .section-header h2 {
        font-size: 18px;
    }
    
    .social-links-container {
        justify-content: space-around;
    }
    
    .videos-grid {
        margin-top: 10px;
    }
    
    .video-item {
        border-radius: 6px;
    }
}

@media (max-width: 480px) {
    .videos-grid {
        margin-top: 10px;
    }
    
    .video-item {
        border-radius: 6px;
    }
}
