/*
Theme Name: Rodolphe Theme
Theme URI: https://rodolphe.oppenheimer.fr
Author: Codex
Author URI: https://rodolphe.oppenheimer.fr
Description: Custom theme for Rodolphe Oppenheimer portfolio, optimized for Elementor Free.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rodolphe-theme
*/

/* ---------------------------------------------------------
   VARIABLES - Rodolphe Oppenheimer
--------------------------------------------------------- */
:root {
    /* Colors */
    --color-bg-dark: #f5f0eb;
    /* Main light beige background */
    --color-bg-darker: #e8e1d5;
    /* Slightly darker beige for contrast areas */
    --color-bg-light: #ffffff;
    /* White or very light for highlights */

    --color-text-main: #111111;
    /* Dark text for readability on light bg */
    --color-text-muted: rgba(17, 17, 17, 0.6);
    /* Muted dark text */
    --color-accent: #c9a96e;
    /* Keep the existing gold accent */
    --color-accent-hover: #b39255;
    /* Slightly darker gold for hover */

    --color-border: rgba(17, 17, 17, 0.1);
    /* Dark border with low opacity */

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-subheading: 'Cormorant Garamond', serif;
    --font-body: 'Inter', sans-serif;
}

/* ---------------------------------------------------------
   RESET & BASICS
--------------------------------------------------------- */
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--color-text-main);
    background-color: var(--color-bg-dark);
    /* Explicitly set to light beige */
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    margin: 0;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-accent);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography globals used widely in Elementor */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--color-text-main);
    /* Ensure dark color */
}

/* ---------------------------------------------------------
   CUSTOM CLASSES FOR ELEMENTOR WIDGETS
--------------------------------------------------------- */
.section-subtitle {
    font-family: var(--font-body) !important;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--color-text-muted);
}

.section-title {
    font-size: 3rem;
}

.section-description {
    color: var(--color-text-muted);
}

/* Buttons */
.btn-primary {
    background-color: var(--color-accent);
    color: var(--color-bg-darker);
    border: 1px solid var(--color-accent);
    padding: 15px 40px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: inline-block;
}

.btn-primary:hover {
    background-color: var(--color-accent-hover);
    border-color: var(--color-accent-hover);
    color: var(--color-bg-darker);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-text-main) !important;
    border: 1px solid var(--color-border);
    padding: 15px 40px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: inline-block;
}

.btn-outline:hover {
    border-color: var(--color-text-main);
}

/* ---------------------------------------------------------
   HEADER
--------------------------------------------------------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 9999;
    border-bottom: 1px solid var(--color-border);
}

.site-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(245, 240, 235, 0.95) 0%, rgba(245, 240, 235, 0.8) 100%);
    backdrop-filter: blur(8px);
    z-index: -1;
    pointer-events: none;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-header .custom-logo {
    max-width: 220px;
    height: auto;
    display: block;
}

.site-navigation ul {
    display: flex;
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-navigation a {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-text-main);
    font-weight: 500;
}

.site-navigation a:hover {
    color: var(--color-accent);
}

/* Burger Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.menu-toggle span {
    width: 100%;
    height: 2px;
    background-color: var(--color-accent);
    transition: all 0.3s ease;
}

.menu-toggle.is-active span:nth-child(1) {
    transform: translateY(9.5px) rotate(45deg);
}

.menu-toggle.is-active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.is-active span:nth-child(3) {
    transform: translateY(-9.5px) rotate(-45deg);
}

/* Responsive Navigation */
@media (max-width: 1024px) {
    .menu-toggle {
        display: flex;
    }

    .site-navigation {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: rgba(245, 240, 235, 0.98);
        /* Light beige overlay */
        z-index: 1000;
        display: none;
        /* Changed from flex to prevent overriding before active */
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
        backdrop-filter: blur(10px);
    }

    .site-navigation.is-active {
        display: flex !important;
        right: 0;
    }

    .site-navigation ul {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }

    .site-navigation a {
        font-size: 1.5rem;
        letter-spacing: 4px;
        color: var(--color-text-main);
        font-weight: 600;
    }

    body.menu-open {
        overflow: hidden;
    }
}


/* Offset body for fixed header */
body:not(.elementor-editor-active) {
    padding-top: 80px;
}

/* ---------------------------------------------------------
   FOOTER
--------------------------------------------------------- */
.site-footer {
    padding: 60px 0;
    background-color: var(--color-bg-darker);
    text-align: center;
    border-top: 1px solid var(--color-border);
    margin-top: auto;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.site-footer .custom-logo {
    max-width: 150px;
    height: auto;
    display: block;
    margin: 0 auto 15px auto;
}

.footer-logo p {
    font-family: var(--font-subheading);
    color: var(--color-text-muted);
    font-style: italic;
    margin: 0;
}

.footer-nav ul {
    display: flex;
    gap: 30px;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-nav a {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-text-main);
    /* Better visibility */
}

.footer-copyright {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    /* Better visibility on beige */
}

/* -----------------------------------------------------------
   SITE MAIN
----------------------------------------------------------- */
.site-main {
    min-height: 100vh;
}

/* -----------------------------------------------------------
   HERO
----------------------------------------------------------- */
.hero-section {
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background: radial-gradient(ellipse at 60% 40%, #2a2218 0%, #0a0a0a 70%),
        url('assets/images/hero-bg.jpg') center/cover no-repeat;
    background-blend-mode: multiply;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.7) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.sacem-logo {
    display: block;
    margin: 0 auto 20px;
    border-radius: 8px;
    /* Rounded corners */
    max-width: 100px;
    height: auto;
}

.hero-subtitle {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 6px;
    color: rgba(255, 255, 255, 0.9) !important;
    /* White for overlay */
    font-weight: 600;
    margin-bottom: 24px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(3.5rem, 8vw, 7rem);
    line-height: 1.05;
    margin-bottom: 30px;
    color: #ffffff !important;
    /* White for overlay */
}

.hero-title span {
    color: var(--color-accent);
}

.hero-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85) !important;
    /* White for overlay */
    max-width: 540px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.scroll-arrow {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    font-size: 2rem;
    color: var(--color-text-muted);
    animation: bounce 2s infinite;
    line-height: 1;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(8px);
    }
}

/* -----------------------------------------------------------
   ALBUM TICKER
----------------------------------------------------------- */
.album-ticker {
    background: var(--color-bg-dark);
    padding: 14px 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    overflow: hidden;
    white-space: nowrap;
}

.ticker-track {
    display: inline-block;
    padding-left: 100%;
    animation: ticker 40s linear infinite;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--color-text-muted);
}

.ticker-track span {
    margin: 0 20px;
}

@keyframes ticker {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* -----------------------------------------------------------
   DISCOGRAPHY
----------------------------------------------------------- */
.discography-section {
    padding: 100px 0 80px;
    background: var(--color-bg-darker);
}

.section-header {
    margin-bottom: 60px;
}

.album-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.album-card {
    cursor: pointer;
    background: var(--color-bg-light);
    /* White card on beige bg */
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    /* Soft shadow */
    border: 1px solid var(--color-border);
}

.album-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.album-card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
    border-bottom: 1px solid var(--color-border);
}

.album-info {
    padding: 10px 15px;
    /* Reduced padding */
    text-align: center;
    /* Center the title */
}

.album-info .album-title {
    display: block;
    font-size: 0.8rem;
    margin-bottom: 5px;
    color: var(--color-text-main);
    font-weight: 600;
}

.album-year {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.section-subtitle {
    color: var(--color-accent);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 3px;
    margin-bottom: 10px;
}

.section-description {
    color: var(--color-text-muted);
    /* Darker muted text */
    max-width: 600px;
    margin-bottom: 40px;
}

.load-more-wrapper {
    margin-top: 60px;
    text-align: center;
}

#load-more-albums {
    min-width: 200px;
    transition: all 0.3s ease;
}

#load-more-albums.loading {
    opacity: 0.6;
    cursor: not-allowed;
}


/* -----------------------------------------------------------
   TRACKLIST
----------------------------------------------------------- */
.tracks-section {
    padding: 0 0 100px;
    background: var(--color-bg-darker);
}

.tracks-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 16px;
    margin-bottom: 10px;
    border-bottom: 1px solid var(--color-border);
}

.tracks-header h2 {
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 1px;
}

.view-all {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-text-muted);
}

.tracks-list {
    display: flex;
    flex-direction: column;
}

.track-item {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid var(--color-border);
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--color-text-main);
    /* Ensure dark text */
}

.track-item:hover {
    color: var(--color-accent);
    padding-left: 10px;
    background-color: rgba(0, 0, 0, 0.02);
    /* Slight light highlight */
}

.track-number {
    width: 36px;
    font-size: 0.75rem;
    color: var(--color-text-muted);
    flex-shrink: 0;
}

.track-name {
    flex: 1;
    font-size: 0.95rem;
}

.track-play {
    flex-shrink: 0;
    opacity: 0;
    transition: opacity 0.2s;
    display: flex;
    align-items: center;
}

.track-play img {
    width: 20px;
    height: auto;
}

.track-item:hover .track-play {
    opacity: 1;
}

/* -----------------------------------------------------------
   VIDÉOS
----------------------------------------------------------- */
.videos-section {
    padding: 100px 0;
    background: var(--color-bg-dark);
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.video-card {
    cursor: pointer;
}

.video-thumbnail {
    position: relative;
    width: 100%;
    padding-bottom: 100%;
    /* 1:1 Square Ratio */
    overflow: hidden;
    margin-bottom: 16px;
    background: #111;
}

.video-thumb-bg {
    position: absolute;
    inset: 0;
    transition: transform 0.8s cubic-bezier(0.2, 1, 0.3, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    background: #111;
    overflow: hidden;
}

.video-thumb-bg .thumb-img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.video-thumb-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-thumbnail::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    transition: background 0.3s;
}

.video-card:hover .video-thumb-bg {
    transform: scale(1.05);
}

.video-card:hover .video-thumbnail::after {
    background: rgba(0, 0, 0, 0.15);
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(201, 169, 110, 0.9);
    /* Use accent color with transparency */
    transition: transform 0.3s, background 0.3s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.play-button img {
    width: 24px;
    height: auto;
    margin-left: 2px;
    /* Small offset for visual balance */
}

.video-card:hover .play-button {
    transform: translate(-50%, -50%) scale(1.1);
    background: var(--color-accent);
}

.video-card {
    display: flex;
    flex-direction: column;
    /* Optional: Add light background to card if needed, currently transparent */
}

.video-card h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    margin-top: 15px;
    margin-bottom: 5px;
    color: var(--color-text-main);
    /* Ensure dark text */
}

.video-card p {
    color: var(--color-text-muted);
    /* Darker muted text */
    font-size: 0.9rem;
}

/* -----------------------------------------------------------
   ABOUT
----------------------------------------------------------- */
.about-section {
    padding: 100px 0;
    background: var(--color-bg-darker);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.about-title {
    font-size: clamp(2rem, 3.5vw, 3rem);
    line-height: 1.2;
    margin-bottom: 28px;
}

.accent-text {
    color: var(--color-accent);
}

.about-text p {
    color: var(--color-text-muted);
    margin-bottom: 18px;
    line-height: 1.8;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.feature-item {
    display: flex;
    gap: 20px;
    padding: 24px;
    background: var(--color-bg-dark);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    transition: border-color 0.3s;
}

.feature-item:hover {
    border-color: var(--color-accent);
}

.feature-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent);
}

.feature-content h3 {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.feature-content p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* -----------------------------------------------------------
   CONTACT
----------------------------------------------------------- */
.contact-section {
    padding: 100px 0;
    background: var(--color-bg-dark);
    border-top: 1px solid var(--color-border);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.contact-title {
    font-size: clamp(2rem, 3vw, 3rem);
    margin-bottom: 20px;
}

.contact-info>p {
    color: var(--color-text-muted);
    margin-bottom: 40px;
    line-height: 1.7;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-detail-item {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

.contact-detail-item svg {
    color: var(--color-accent);
    flex-shrink: 0;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--color-text-muted);
    margin-bottom: 10px;
}

.form-group input,
.form-group textarea {
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--color-border);
    color: #fff;
    padding: 10px 0;
    font-family: var(--font-body);
    font-size: 1rem;
    outline: none;
    resize: none;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-bottom-color: var(--color-accent);
}

.contact-form .btn-primary,
.wpcf7-form .btn-primary {
    align-self: flex-start;
    margin-top: 8px;
}

/* Contact Form 7 Specifics */
.wpcf7-form-control-wrap {
    display: block;
    width: 100%;
}

.wpcf7-not-valid-tip {
    color: #ff4d4d;
    font-size: 0.8rem;
    margin-top: 5px;
    font-family: var(--font-body);
}

.wpcf7-response-output {
    margin: 20px 0 0 0 !important;
    padding: 15px !important;
    border: 1px solid var(--color-accent) !important;
    color: #fff !important;
    font-family: var(--font-body);
    font-size: 0.9rem;
    background: rgba(201, 169, 110, 0.1);
}

.wpcf7-spinner {
    position: absolute;
    bottom: 20px;
    right: 0;
}

/* -----------------------------------------------------------
   RESPONSIVE
----------------------------------------------------------- */
@media (max-width: 1024px) {
    .album-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .video-grid {
        grid-template-columns: 1fr;
    }

    .album-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .album-grid {
        grid-template-columns: 1fr;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
}

/* -----------------------------------------------------------
   STICKY AUDIO PLAYER
----------------------------------------------------------- */
.audio-player-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(245, 240, 235, 0.98);
    /* Light beige background */
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--color-border);
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
    /* Lighter shadow */
    z-index: 9999;
    padding: 15px 0;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: none;
    justify-content: center;
}

.audio-player-container.visible {
    transform: translateY(0);
}

.audio-player-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 20px;
}

.audio-info {
    flex: 1;
    min-width: 0;
}

.audio-title {
    color: var(--color-primary);
    font-family: var(--font-heading);
    font-size: 1.2rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.audio-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.audio-btn {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.audio-btn:hover {
    color: var(--color-primary);
}

.feature-item {
    background: var(--color-bg-light);
    /* White card */
    padding: 30px;
    border-radius: 8px;
    border: 1px solid var(--color-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    /* Light shadow */
}

.audio-btn.play {
    background: var(--color-primary);
    color: var(--color-bg);
    border-radius: 50%;
    width: 45px;
    height: 45px;
    transition: transform 0.3s ease, background 0.3s ease;
}

.audio-btn.play:hover {
    transform: scale(1.05);
    background: #e2c07d;
}

.audio-btn.play svg {
    width: 20px;
    height: 20px;
}

.icon-play {
    margin-left: 3px;
}

.audio-progress-container {
    flex: 2;
    display: flex;
    align-items: center;
    gap: 15px;
}

#audio-time-current,
#audio-time-total {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    font-family: var(--font-body);
    min-width: 45px;
    text-align: center;
}

.audio-progress-bar {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.audio-progress-fill {
    height: 100%;
    background: var(--color-primary);
    width: 0%;
    border-radius: 3px;
    position: relative;
}

.audio-progress-fill::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.2s;
}

.audio-progress-bar:hover .audio-progress-fill::after {
    opacity: 1;
}

.audio-close {
    margin-left: 10px;
}

/* Responsive Audio Player */
@media (max-width: 768px) {
    .audio-player-inner {
        flex-wrap: wrap;
        gap: 10px;
    }

    .audio-info {
        width: calc(100% - 40px);
        flex: none;
    }

    .audio-close {
        position: absolute;
        top: 15px;
        right: 15px;
        margin: 0;
    }

    .audio-controls {
        flex: 1;
        justify-content: center;
    }

    .audio-progress-container {
        width: 100%;
        flex: none;
    }
}

/* -----------------------------------------------------------
   VIDEO LIGHTBOX
----------------------------------------------------------- */
.video-lightbox {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
}

.lightbox-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
}

.lightbox-container {
    position: relative;
    width: 90%;
    max-width: 1200px;
    z-index: 2;
    transform: scale(0.9);
}

.lightbox-content {
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
    box-shadow: 0 0 50px rgba(201, 169, 110, 0.2);
    border: 1px solid rgba(201, 169, 110, 0.3);
}

.lightbox-content iframe,
.lightbox-content video {
    width: 100%;
    height: 100%;
    border: none;
}

.lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s;
}

.lightbox-close:hover {
    color: var(--color-accent);
}

@media (max-width: 768px) {
    .lightbox-close {
        top: -40px;
        font-size: 30px;
    }
}

/* ===================== LEGAL PAGE ===================== */
.legal-page {
    padding: 120px 0 80px;
    background-color: var(--color-bg);
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
}

.legal-content h1 {
    font-size: 3rem;
    color: var(--color-accent);
    margin-bottom: 50px;
    font-family: var(--font-header);
}

.legal-content h2 {
    font-size: 1.5rem;
    color: var(--color-white);
    margin: 40px 0 20px;
    font-family: var(--font-header);
    border-bottom: 1px solid rgba(201, 169, 110, 0.3);
    padding-bottom: 10px;
}

.legal-content h3 {
    font-size: 1.2rem;
    color: var(--color-accent);
    margin: 30px 0 15px;
    font-family: var(--font-body);
}

.legal-content p {
    margin-bottom: 20px;
}

.legal-content a {
    color: var(--color-accent);
    text-decoration: underline;
}

.legal-content section {
    margin-bottom: 60px;
}

/* Footer Legal Link */
.footer-bottom-links {
    margin-top: 10px;
}

.legal-link {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color 0.3s;
}

.legal-link:hover {
    color: var(--color-accent);
}

/* ===================== VIDEO CAROUSEL ===================== */
.video-carousel-container {
    padding: 20px 0 60px;
    /* Space for pagination */
    overflow: hidden;
    /* Important for Swiper */
    position: relative;
}

.video-carousel-container.swiper {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.video-carousel-container .swiper-slide {
    height: auto;
    transition: transform 0.3s ease;
}

/* Swiper Controls Customization */
.video-carousel-container .swiper-button-next,
.video-carousel-container .swiper-button-prev {
    color: var(--color-accent);
    background: rgba(255, 255, 255, 0.8);
    /* Lighter background for arrows */
    width: 50px;
    height: 50px;
    border-radius: 50%;
    transition: all 0.3s ease;
    border: 1px solid rgba(201, 169, 110, 0.3);
    z-index: 10;
}

.video-carousel-container .swiper-button-next:after,
.video-carousel-container .swiper-button-prev:after {
    font-size: 1.2rem;
    font-weight: bold;
}

.video-carousel-container .swiper-button-next:hover,
.video-carousel-container .swiper-button-prev:hover {
    background: var(--color-accent);
    color: var(--color-bg);
    border-color: var(--color-accent);
}

.video-carousel-container .swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.3);
    opacity: 1;
}

.video-carousel-container .swiper-pagination-bullet-active {
    background: var(--color-accent);
}

/* Hide navigation on touch devices if preferred, but usually good to keep */
@media (max-width: 1024px) {

    .video-carousel-container .swiper-button-next,
    .video-carousel-container .swiper-button-prev {
        display: none;
    }
}

/* -----------------------------------------------------------
   LIGHT THEME OVERRIDES FOR PLUGINS & PAGES
----------------------------------------------------------- */
.page-content p,
.elementor-text-editor,
.elementor-widget-text-editor,
.site-main p,
.site-main ul,
.site-main ol {
    color: #000000 !important;
}

.wpcf7 label,
.wpcf7-form label,
.contact-form label {
    color: var(--color-text-main) !important;
    font-weight: 600;
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form textarea {
    background-color: var(--color-bg-light);
    color: var(--color-text-main);
    border: 1px solid var(--color-border);
}

.wpcf7-form input::placeholder,
.wpcf7-form textarea::placeholder {
    color: var(--color-text-muted);
}

/* Hard override for default pages (like Mentions Légales) */
.page-template-default main h1,
.page-template-default main h2,
.page-template-default main h3,
.page-template-default main h4,
.page-template-default main h5,
.page-template-default main h6,
.page-template-default main p,
.page-template-default main a,
.page-template-default main li,
.page-template-default main span,
.page-template-default main div,
.legal-page h1,
.legal-page h2,
.legal-page h3,
.legal-page p,
.legal-page a,
.legal-page li,
.legal-page span,
.legal-page div {
    color: #000000 !important;
}

.footer-copyright a {
    color: var(--color-text-main) !important;
    text-decoration: underline;
}

/* Ensure Hero Text is White on the Home Page */
body.home .hero-title,
body.home .hero-subtitle,
body.home .hero-description {
    color: #ffffff !important;
}