/* ================================================================
   MUSESUP-BF - REFONTE COMPLETE 2024
   Design moderne basé sur Bootstrap 5
   Charte graphique: Vert #00b300 | Rouge #e60000
   ================================================================ */

:root {
    /* Couleurs principales */
    --primary-green: #00b300;
    --primary-red: #e60000;
    --dark: #1a1a1a;
    --darker: #0d0d0d;
    --light: #f8f9fa;
    --white: #ffffff;
    --text-dark: #2c3e50;
    --text-muted: #6c757d;

    /* Espacements */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Ombres */
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 5px 25px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.2);

    /* Border radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;
    --radius-full: 50px;
}

/* ================================================================
   BASE & TYPOGRAPHY
   ================================================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-dark);
    line-height: 1.7;
    overflow-x: hidden;
    background: var(--white);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h4 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }

p {
    margin-bottom: 1rem;
    color: var(--text-muted);
}

a {
    color: var(--primary-green);
    text-decoration: none;
    transition: var(--transition-normal);
}

a:hover {
    color: var(--primary-red);
}

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

/* ================================================================
   NAVIGATION - DESIGN MODERNE
   ================================================================ */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    transition: var(--transition-normal);
}

.nav--sticky {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.nav__holder {
    padding: 0.6rem 0;
}

.logo img {
    height: 48px;
    width: auto;
    transition: var(--transition-normal);
}

.logo:hover img {
    transform: scale(1.05);
}

.nav__menu {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav__menu li a {
    padding: 0.75rem 1.25rem;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: var(--radius-full);
    transition: var(--transition-normal);
    position: relative;
}

.nav__menu li a::before {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-green), var(--primary-red));
    transition: var(--transition-normal);
}

.nav__menu li a:hover {
    color: var(--primary-green);
    background: rgba(0, 179, 0, 0.05);
}

.nav__menu li a:hover::before {
    width: 30px;
}

/* Mobile Navigation */
.sidenav {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100vh;
    background: var(--white);
    box-shadow: var(--shadow-xl);
    transition: var(--transition-normal);
    z-index: 2000;
    overflow-y: auto;
}

.sidenav.active {
    left: 0;
}

.sidenav__menu {
    list-style: none;
    padding: 2rem 0;
}

.sidenav__menu-link {
    display: block;
    padding: 1rem 2rem;
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition-normal);
    border-left: 3px solid transparent;
}

.sidenav__menu-link:hover {
    background: var(--light);
    border-left-color: var(--primary-green);
    color: var(--primary-green);
    padding-left: 2.5rem;
}

.nav-icon-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

@media (max-width: 991px) {
    .nav-icon-toggle {
        display: block;
    }
}

/* ================================================================
   HERO SLIDER - FOND NOIR TRANSPARENT MODERNE
   ================================================================ */

.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    margin-top: 72px;
}

.hero-slider {
    position: relative;
    height: 100%;
    width: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.hero-slide__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: scale(1);
    transition: transform 15s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-slide.active .hero-slide__bg {
    transform: scale(1.15);
}

/* FOND NOIR TRANSPARENT - Design minimaliste et élégant */
.hero-slide__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(2px);
    z-index: 1;
}

.hero-slide__content {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    z-index: 2;
    padding: 2rem;
}

.hero-slide__inner {
    max-width: 900px;
}

/* Animation d'entrée */
.hero-slide__badge,
.hero-slide__title,
.hero-slide__subtitle,
.hero-slide__actions {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.hero-slide.active .hero-slide__badge {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s;
}

.hero-slide.active .hero-slide__title {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.4s;
}

.hero-slide.active .hero-slide__subtitle {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.6s;
}

.hero-slide.active .hero-slide__actions {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.8s;
}

.hero-slide__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.5rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    letter-spacing: 0.5px;
}

.hero-slide__badge i {
    font-size: 1.1rem;
}

.hero-slide__title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero-slide__title span {
    background: linear-gradient(135deg, var(--primary-green), var(--primary-red));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-slide__subtitle {
    font-size: clamp(1rem, 2vw, 1.4rem);
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.7;
    margin-bottom: 2.5rem;
    max-width: 700px;
}

.hero-slide__actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Boutons Hero modernes */
.btn-hero {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    font-weight: 600;
    font-size: 1rem;
    border-radius: var(--radius-full);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn-hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-hero:hover::before {
    width: 400px;
    height: 400px;
}

.btn-hero i {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.btn-hero:hover i {
    transform: translateX(5px);
}

.btn-hero--primary {
    background: linear-gradient(135deg, var(--primary-green), #009900);
    color: var(--white);
    box-shadow: 0 10px 30px rgba(0, 179, 0, 0.3);
}

.btn-hero--primary:hover {
    box-shadow: 0 15px 40px rgba(0, 179, 0, 0.4);
    transform: translateY(-3px);
}

.btn-hero--outline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
}

.btn-hero--outline:hover {
    background: var(--white);
    color: var(--primary-green);
    border-color: var(--white);
    transform: translateY(-3px);
}

/* Navigation du slider */
.hero-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    color: var(--white);
    font-size: 1.2rem;
}

.hero-nav:hover {
    background: var(--white);
    color: var(--primary-green);
    transform: translateY(-50%) scale(1.1);
}

.hero-nav--prev { left: 2rem; }
.hero-nav--next { right: 2rem; }

/* Dots navigation */
.hero-dots {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.75rem;
    z-index: 10;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: 2px solid var(--white);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.hero-dot:hover {
    background: rgba(255, 255, 255, 0.7);
    transform: scale(1.2);
}

.hero-dot.active {
    background: var(--white);
    width: 40px;
    border-radius: 20px;
}

/* Statistiques sur le slide */
.hero-stats {
    display: flex;
    gap: 3rem;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ================================================================
   SECTIONS COMMUNES
   ================================================================ */

.section {
    padding: 6rem 0;
    position: relative;
}

.section--gray {
    background: var(--light);
}

.section--dark {
    background: var(--dark);
    color: var(--white);
}

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

.section-subtitle {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary-green);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    padding: 0.5rem 1.5rem;
    background: rgba(0, 179, 0, 0.1);
    border-radius: var(--radius-full);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.section--dark .section-title {
    color: var(--white);
}

.section-description {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

/* ================================================================
   CARDS MODERNES
   ================================================================ */

.card-modern {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.card-modern:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.card-modern__image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.card-modern__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-modern:hover .card-modern__image img {
    transform: scale(1.15);
}

.card-modern__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 179, 0, 0.95), rgba(230, 0, 0, 0.9));
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.4s ease;
}

.card-modern:hover .card-modern__overlay {
    opacity: 1;
}

.card-modern__link {
    width: 60px;
    height: 60px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-green);
    font-size: 1.5rem;
    transform: scale(0) rotate(-180deg);
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.card-modern:hover .card-modern__link {
    transform: scale(1) rotate(0deg);
}

.card-modern__content {
    padding: 2rem;
}

.card-modern__icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-green), #009900);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 179, 0, 0.25);
    transition: transform 0.3s ease;
}

.card-modern:hover .card-modern__icon {
    transform: rotateY(360deg);
}

.card-modern__title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.card-modern__text {
    color: var(--text-muted);
    line-height: 1.7;
    margin: 0;
}

/* ================================================================
   BUTTONS MODERNES
   ================================================================ */

.btn-modern {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    font-weight: 600;
    font-size: 1rem;
    border-radius: var(--radius-full);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn-modern i {
    transition: transform 0.3s ease;
}

.btn-modern:hover i {
    transform: translateX(5px);
}

.btn-primary-green {
    background: linear-gradient(135deg, var(--primary-green), #009900);
    color: var(--white);
    box-shadow: 0 8px 25px rgba(0, 179, 0, 0.25);
}

.btn-primary-green:hover {
    box-shadow: 0 12px 35px rgba(0, 179, 0, 0.35);
    transform: translateY(-3px);
    color: var(--white);
}

.btn-outline-green {
    background: transparent;
    color: var(--primary-green);
    border: 2px solid var(--primary-green);
}

.btn-outline-green:hover {
    background: var(--primary-green);
    color: var(--white);
    transform: translateY(-3px);
}

/* ================================================================
   FOOTER MODERNE
   ================================================================ */

.footer-modern {
    background: linear-gradient(135deg, var(--darker) 0%, var(--dark) 100%);
    color: rgba(255, 255, 255, 0.8);
    padding: 4rem 0 2rem;
}

.footer-modern__widget {
    margin-bottom: 2rem;
}

.footer-modern__title {
    color: var(--white);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 1rem;
}

.footer-modern__title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-green), var(--primary-red));
    border-radius: 2px;
}

.footer-modern__link {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    padding: 0.5rem 0;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 1.5rem;
}

.footer-modern__link::before {
    content: '→';
    position: absolute;
    left: 0;
    opacity: 0;
    transition: all 0.3s ease;
    color: var(--primary-green);
}

.footer-modern__link:hover {
    color: var(--white);
    padding-left: 2rem;
}

.footer-modern__link:hover::before {
    opacity: 1;
}

.footer-modern__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    margin-top: 3rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

.footer-modern__bottom a {
    color: var(--primary-green);
    font-weight: 600;
}

.footer-modern__bottom a:hover {
    color: var(--primary-red);
}

/* Réseaux sociaux */
.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--primary-green);
    transform: translateY(-5px);
    color: var(--white);
}

/* ================================================================
   BACK TO TOP
   ================================================================ */

#back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 999;
}

#back-to-top a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-green), #009900);
    color: var(--white);
    border-radius: 50%;
    box-shadow: 0 5px 20px rgba(0, 179, 0, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#back-to-top a:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 30px rgba(0, 179, 0, 0.4);
}

/* ================================================================
   ANIMATIONS
   ================================================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* ================================================================
   RESPONSIVE
   ================================================================ */

@media (max-width: 991px) {
    .hero-section {
        height: 70vh;
        min-height: 500px;
    }

    .hero-slide__title {
        font-size: 2.5rem;
    }

    .hero-nav {
        width: 45px;
        height: 45px;
    }

    .hero-nav--prev { left: 1rem; }
    .hero-nav--next { right: 1rem; }

    .hero-stats {
        gap: 2rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .section {
        padding: 4rem 0;
    }
}

@media (max-width: 767px) {
    .hero-section {
        min-height: 400px;
        margin-top: 70px;
    }

    .hero-slide__content {
        padding: 1rem;
    }

    .hero-slide__title {
        font-size: 2rem;
    }

    .hero-slide__subtitle {
        font-size: 1rem;
    }

    .hero-slide__actions {
        flex-direction: column;
    }

    .btn-hero {
        width: 100%;
        justify-content: center;
    }

    .hero-nav {
        display: none;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 1.5rem;
    }

    .stat-item {
        flex: 1 1 45%;
    }

    .section {
        padding: 3rem 0;
    }

    .section-header {
        margin-bottom: 2.5rem;
    }
}

/* ================================================================
   UTILITIES
   ================================================================ */

.text-gradient {
    background: linear-gradient(135deg, var(--primary-green), var(--primary-red));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient {
    background: linear-gradient(135deg, var(--primary-green), var(--primary-red));
}

.shadow-soft {
    box-shadow: var(--shadow-md);
}

.rounded-modern {
    border-radius: var(--radius-lg);
}

.overflow-hidden {
    overflow: hidden;
}
