/* 1. Styles de base et variables (garder la section existante) */
:root {
    --primary-purple: #9631FF;
    --text-blue: #8F9BB7;
    --dark: #0D0C10;
    --neutral-white: #F6F6F7;
    --light-purple: #D4AAFF;
    --success-green: #4caf50;
}

/* Style de base commun */
body {
    color: var(--dark);
    font-family: "Inter", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    padding-top: 80px;  /* Hauteur de la navbar */
    overflow-x:hidden;
}

/* Typographie commune */
h1 {
    font-size: 56px;
    font-family: "Bricolage Grotesque", sans-serif;
    font-variation-settings: "wdth" 700;
    color: var(--dark);
}

h3 {
    font-family: "Bricolage Grotesque", sans-serif;
    font-variation-settings: "wdth" 700;
}
.primary-purple{
    color:var(--primary-purple);
}

/* Header des simulateurs */
header {
    color: black;
    padding: 20px 0;
    text-align: center;
}

header p {
    margin: 0 auto;
    max-width: 800px;
}

.header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Navigation commune */
.navbar {
    padding: 1rem 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 30px;
    left: 0;
    right: 0;
    z-index: 1070;
}

.navbar-nav .nav-link {
    color: #0D0C10 !important;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: #6B6B6B;
}
.btn-dark {
    background: #0D0C10;
    color: white !important;
}
.btn {
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 14px;
    text-decoration: none;
    
}
/* Style pour le menu mobile */
@media (max-width: 991px) {
    body {
        overflow-x: hidden; /* Empêche le scroll horizontal */
    }

    .navbar-collapse {
        background: rgba(255, 255, 255, 1);
        padding: 1rem;
        border-radius: 12px;
        margin-top: 1rem;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 1000;
    }

    .dropdown-menu {
        margin-top: 0 !important;
        background: transparent;
        border: none;
        box-shadow: none;
        padding-left: 1rem;
        position: static;
        width: 100%;
    }

    .navbar .container {
        position: relative; /* Pour le positionnement absolu du menu */
    }

    .navbar-nav .nav-item {
        margin: 0.5rem 0;
        text-align: center;
    }

    .navbar-nav .btn {
        width: 100%;
        text-align: center;
        margin-top: 0.5rem;
    }

    /* Assurer que le menu déroulant ne cause pas de scroll horizontal */
    .navbar-collapse, 
    .dropdown-menu {
        max-width: 100vw;
        margin-left: 0;
        margin-right: 0;
    }
}

/* Layout commun */
.container-fluid {
    --bs-gutter-x: 0 !important;
}
.beta-banner {
    background-color: var(--primary-purple);
    color: var(--neutral-white);
    padding: 0.5rem;
    font-size: 0.9rem;
    position: fixed;
    top: 0;
    z-index: 1080;
    width: 100%;
}

/* Section principale commune */
.section-1 {
    background-image: url(../img/bg.png);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Carte principale commune */
.card {
    background-image: url(../img/bg-card.png);
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    border: 1px solid #282D45;
    padding: 2rem;
}

/* Formulaires communs */
.form-control {
    border: none;
    border-bottom: 2px solid var(--text-blue);
    border-radius: 0;
    box-shadow: none;
    transition: border-color 0.3s ease;
    background-color: transparent;
}

.form-control:focus {
    border-bottom: 2px solid var(--success-green);
    outline: none;
    box-shadow: none;
    background-color: transparent;
}

/* Résultats communs */
.result-card {
    background: rgba(255, 255, 255, 0.09);
    border-radius: 16px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.35);
    padding: 2rem;
    text-align: center;
    margin: 0 auto;
    color: white;
}

.result-card h3 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.result-card h4 {
    color: var(--text-blue);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.result-card p {
    margin-bottom: 0.5rem;
}

.result-card strong {
    color: var(--light-purple);
}

.col-result {
    display: flex;
    align-content: center;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Graphique commun */
canvas {
    display: none;
}

/* Style commun pour les graphiques */
.result-card canvas {
    margin-top: 20px;
    width: 100% !important;
    height: 400px !important;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1rem;
    display: block;
}

/* Navigation collante commune */
.sticky-nav {
    position: sticky;
    top: 20px;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.sticky-nav li {
    list-style: none;
    margin-bottom: 10px;
}

.sticky-nav a {
    text-decoration: none;
    color: var(--dark) !important;
    transition: color 0.3s ease;
}

.sticky-nav a:hover {
    color: var(--primary-purple) !important;
}

/* Séparateur commun */
.divider {
    border-left: 2px solid #ddd;
    height: 100%;
    margin: 0 auto;
}

/* Utilitaires communs */
.text-blue { color: var(--text-blue) !important; }
.neutral-white { color: var(--neutral-white) !important; }
.black { color: var(--dark) !important;}
.tag { background-color: var(--light-purple); }
.light-purple {color: var(--light-purple) !important;}
.bold{
    font-weight: 600;
}

a {
    color: var(--primary-purple) !important;
}

/* Responsive commun */
@media (max-width: 768px) {
    .section-1 {
        padding: 1rem !important;
    }
    
    h1 {
        font-size: 40px;
    }
    
    .logo {
        width: 30%;
    }

    .divider {
        display: none;
    }

    .col-result {
        margin-top: 2rem;
    }

    canvas {
        height: 300px !important;
        margin: 1rem 0;
    }

    header p {
        width: 100% !important;
        padding: 0 1rem;
    }

    .result-card {
        padding: 1rem;
        width: 100%;
        overflow-x: auto;
        max-height: none;
        overflow-y: visible;
    }

    #credit-forms {
        grid-template-columns: 1fr !important;
    }

    .home-card {
        padding: 1rem !important;
    }
}

/* Cards des outils et simulateurs */
.tool-card {
    background: rgba(255, 255, 255, 0.09);
    border-radius: 16px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.35);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.12);
}

.tool-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.tool-card p {
    font-size: 1rem;
    line-height: 1.5;
}

/* Styles spécifiques au simulateur de crédit */
#credit-forms {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.credit-form {
    background: rgba(255, 255, 255, 0.09);
    border-radius: 16px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.35);
    padding: 1.5rem;
    position: relative;
}

#add-credit {
    background-color: var(--primary-purple);
    border: none;
}

#add-credit:hover {
    background-color: #7928CC;
}

.remove-credit {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    color: var(--neutral-white);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

/* Style pour les résultats des crédits */
#detailed-results {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.card-result-credit {
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    padding: 1.5rem;

}

/* Style pour un crédit unique */
#detailed-results.single-credit .card-result-credit {
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* Ajuster dans la section media queries */
@media (max-width: 768px) {
    /* ... autres styles ... */
    
    #detailed-results {
        grid-template-columns: 1fr;
    }
    
    .card-result-credit {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding-bottom: 1rem;
        margin-bottom: 1rem;
    }
    
    .card-result-credit:last-child {
        border-bottom: none;
    }
}
/* Ajouter ces styles pour la page d'accueil */
.home-section {
    min-height: calc(100vh - 76px); /* 76px est la hauteur du header */
    display: flex;
    align-items: center;
}

.home-card {
    background-image: url(../img/bg-card.png);
    border-radius: 16px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    border: 1px solid rgba(255, 255, 255, 0.35);
    padding: 3rem;
    margin-top: 2rem;
}

.home-header {
    margin-bottom: 3rem;
}

.home-header h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.home-header p {
    font-size: 1.2rem;
}

/* Style pour les légendes des graphiques */
.chart-legend {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-blue);
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.chart-legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.chart-legend-color {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

/* Media queries pour les graphiques */
@media (max-width: 768px) {
    .result-card {
        padding: 1.5rem;
    }

    .result-card canvas {
        height: 300px !important;
        padding: 0.5rem;
        margin-top: 1rem;
    }

    .chart-legend {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        margin-top: 1rem;
    }
}

/* Style pour les tooltips des graphiques */
#chartjs-tooltip {
    background: rgba(13, 12, 16, 0.95) !important;
    backdrop-filter: blur(5px);
    border-radius: 8px;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 16px;
    font-family: "Inter", sans-serif;
    font-size: 14px;
    pointer-events: none;
    min-width: 200px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

#chartjs-tooltip > div {
    margin-bottom: 8px;
    font-size: 15px;
}

#chartjs-tooltip .tooltip-label {
    color: var(--text-blue);
    font-weight: 500;
    margin-bottom: 4px;
    font-size: 14px;
}

#chartjs-tooltip .tooltip-value {
    color: white;
    font-weight: 500;
    font-size: 16px;
    padding-left: 8px;
}

/* Animation du tooltip */
#chartjs-tooltip {
    transition: all 0.1s ease;
    opacity: 0;
}

#chartjs-tooltip.visible {
    opacity: 1;
}

/* Styles de base pour le dropdown */
.dropdown-menu {
    background: white;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(0) !important;
    position: absolute;
    top: 100%;
}

.dropdown-item {
    color: #0D0C10 !important;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background: rgba(150, 49, 255, 0.1);
    color: #9631FF !important;
}

/* Style pour mobile */
@media (max-width: 991px) {
    .dropdown-menu,
    .mega-menu.dropdown-menu {
        width: 100%;
        min-width: auto;
        position: static;
        transform: none !important;
        margin: 0;
        padding: 0 !important;
        background: transparent;
        border: none;
        box-shadow: none;
        text-align: center;
    }

    .mega-menu .row {
        flex-direction: column;
        gap: 2rem;
    }

    .mega-menu .col-6,
    .mega-menu .col-6:first-child,
    .mega-menu .col-6:last-child {
        width: 100% !important;
        padding-right: 0 !important;
        padding-left: 0 !important;
    }

    .mega-menu .border-start {
        border: none !important;
        padding-left: 0;
    }

    .dropdown-item {
        padding: 0.75rem 1rem;
        border-radius: 8px;
        margin-bottom: 0.5rem;
        
        text-align: center;
    }

    .dropdown-header {
        padding: 1rem 1rem 0.5rem 1rem !important;
        margin-bottom: 0.5rem;
        
        text-align: center;
    }

    .navbar-collapse {
        max-height: calc(100vh - 100px);
        overflow-y: auto;
        text-align: center;
    }

    .mega-menu .dropdown-item:hover {
        background: rgba(150, 49, 255, 0.1);
        transform: translateX(0);
    }

    /* Ajout pour centrer les liens du menu */
    .navbar-nav {
        text-align: center;
    }

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

    .dropdown-header-link {
        text-align: center;
    }
}

/* Mega menu */
.mega-menu.dropdown-menu {
    width: 700px;
    min-width: 600px;
    padding: 2rem !important;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1060;
}

/* État actif du dropdown */
.dropdown-menu.show {
    display: block;
}

/* Styles pour la page parrainage */
.parrainage-container {
    min-height: 500px;
    position: relative;
    z-index: 1;
}

/* Animation des cartes de parrainage modifiée */
.parrainage-container .animated-card {
    transition: opacity 0.4s ease-out;
    opacity: 1;
    position: relative;
    z-index: 1;
}

.parrainage-container .animated-card.hidden {
    opacity: 0;
    visibility: hidden;
    height: 0;
    margin: 0;
    padding: 0;
}

/* Ajustement du conteneur des cartes */
.parrainage-container .row {
    position: relative;
    z-index: 1;
}

/* Ajustement des z-index */
.navbar {
    z-index: 1070;
}

.beta-banner {
    z-index: 1080;
}

/* Responsive */
@media (max-width: 991px) {
    .mega-menu.dropdown-menu {
        width: 100%;
        position: static;
        transform: none;
    }
}

/* Styles spécifiques au mega menu */
.mega-menu {
    width: 700px;
    min-width: 600px;
    padding: 2rem !important;
    background: white;
    border-radius: 12px;
}

.mega-menu .dropdown-header {
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    color: var(--dark);
}

.mega-menu .border-start {
    border-color: #eee !important;
}

/* Responsive */
@media (max-width: 992px) {
    .dropdown-menu,
    .mega-menu.dropdown-menu {
        width: 100%;
        min-width: auto;
        position: static;
        transform: none !important;
        margin: 0;
        padding: 1rem !important;
        background: transparent;
        border: none;
        box-shadow: none;
    }
    

    .dropdown-menu.show,
    .mega-menu.dropdown-menu.show {
        display: block;
        animation: none;
    }
}

/* Style pour le footer */
footer {
    background-color: white;
    font-size: 14px;
}

footer .text-muted {
    color: #6c757d !important;
}

.border-top {
    border-top: 1px solid rgba(0, 0, 0, 0.1) !important;
}

/* Breadcrumbs */
.breadcrumb {
    background: transparent;
    padding: 0.75rem 0;
}

.breadcrumb-item a {
    color: var(--text-blue);
    text-decoration: none;
}

/* Tool cards */
.tool-card-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1rem;
}

.tool-features {
    list-style: none;
    padding-left: 0;
    margin-top: 1rem;
}

.tool-features li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-blue);
}

.tool-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-purple);
}

.dropdown-divider {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    margin: 0.5rem 0;
}

@media (max-width: 768px) {
    .tool-card-header {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .tool-card-header .badge {
        align-self: flex-start;
    }
    
    .tool-card p {
        font-size: 0.9rem;
    }
    
    .tool-features li {
        font-size: 0.85rem;
    }
}

.badge {
    font-weight: 500;
    padding: 0.5rem 1rem;
}

@media (max-width: 768px) {
    .badge {
        padding: 0.35rem 0.75rem;
        font-size: 0.75rem;
    }
}

/* Styles pour le mega menu */
.mega-menu.dropdown-menu {
    width: 700px;
    min-width: 600px;
    padding: 2rem !important;
    position: absolute;
    left: 50%;
    transform: translateX(-50%) !important;
    z-index: 1050;
}

.mega-menu .dropdown-header {
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    color: var(--dark);
    font-size: 1rem;
    padding: 0;
    margin-bottom: 1rem;
}

.mega-menu .dropdown-item {
    color: #666;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.mega-menu .dropdown-item:hover {
    color: var(--primary-purple);
    background: rgba(150, 49, 255, 0.1);
}

.mega-menu .row {
    display: flex;
    justify-content: space-between;
}

.mega-menu .col-6:first-child {
    width: 60%;
    padding-right: 2rem;
}

.mega-menu .col-6:last-child {
    width: 40%;
    padding-left: 2rem;
}

.mega-menu .border-start {
    padding-left: 3rem;
}

.mega-menu .border-start::before {
    display: none;
}

/* Animation à l'ouverture */
.dropdown-menu.show:not(.mega-menu) {
    display: block;
    animation: simpleDropdown 0.2s ease forwards;
}

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

/* Animation spécifique pour le mega menu */
.mega-menu.dropdown-menu.show {
    display: block;
    animation: megaDropdown 0.2s ease forwards;
}

@keyframes megaDropdown {
    from {
        opacity: 0;
        transform: translateY(10px) translateX(-50%);
    }
    to {
        opacity: 1;
        transform: translateY(0) translateX(-50%);
    }
}

/* Responsive */
@media (max-width: 992px) {
    .dropdown-menu,
    .mega-menu.dropdown-menu {
        width: 100%;
        min-width: auto;
        position: static;
        transform: none !important;
        margin: 0;
        padding: 1rem !important;
        background: transparent;
        border: none;
        box-shadow: none;
    }

    .dropdown-menu.show,
    .mega-menu.dropdown-menu.show {
        display: block;
        /*animation: none;*/
    }
}

/* Styles pour la page parrainage */
.filters {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 2rem;
}

.filter-btn {
    padding: 0.5rem 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 50px;
    background: white;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--primary-purple);
    color: white;
    border-color: var(--primary-purple);
}

.parrainage-card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.parrainage-card .card-header {
    background: white;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.parrainage-card .badge {
    border: 1px solid #e0e0e0;
    background: white !important;
    color: #666 !important;
    font-weight: normal;
}

.parrainage-card:hover {
    transform: translateY(-5px);
}

.parrainage-card .card-header {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.partner-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
    border-radius: 10px;
}

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

.parrainage-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

.parrainage-card p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.btn-parrainage {
    display: inline-block;
    color: var(--primary-purple);
    text-decoration: none;
    font-weight: 500;
    transition: transform 0.3s ease;
}

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

@media (max-width: 768px) {
    .filters {
        gap: 0.5rem;
    }
    
    .filter-btn {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }
}

/* 2. Styles de navigation et menu */
.navbar {
    padding: 1rem 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 30px;
    left: 0;
    right: 0;
    z-index: 1070;
}

/* Styles du dropdown et mega menu */
.dropdown-menu {
    background: white;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: absolute;
    top: 100%;
}

.dropdown-item {
    color: #0D0C10 !important;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background: rgba(150, 49, 255, 0.1);
    color: #9631FF !important;
}

/* Mega menu spécifique */
.mega-menu.dropdown-menu {
    width: 700px;
    min-width: 600px;
    padding: 2rem !important;
    position: absolute;
    left: 50%;
    transform: translateX(-50%) !important;
    z-index: 1060;
}

.mega-menu .dropdown-header {
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    color: var(--dark);
}

.mega-menu .border-start {
    border-color: #eee !important;
    padding-left: 3rem;
}

/* 3. Styles pour la page parrainage */
.parrainage-container {
    min-height: 500px;
    position: relative;
    z-index: 1;
}

.parrainage-card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Animation des cartes */
.parrainage-container .animated-card {
    transition: opacity 0.4s ease-out;
    opacity: 1;
    position: relative;
    z-index: 1;
}

.parrainage-container .animated-card.hidden {
    opacity: 0;
    visibility: hidden;
    height: 0;
    margin: 0;
    padding: 0;
}

/* Filtres */
.filters {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 2rem;
}

.filter-btn {
    padding: 0.5rem 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 50px;
    background: white;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--primary-purple);
    color: white;
    border-color: var(--primary-purple);
}

/* 4. Responsive */
@media (max-width: 991px) {
    .dropdown-menu,
    .mega-menu.dropdown-menu {
        width: 100%;
        min-width: auto;
        position: static;
        transform: none !important;
        margin: 0;
        padding: 1rem !important;
        background: transparent;
        border: none;
        box-shadow: none;
    }

    .navbar {
        padding: 0.5rem 0;
    }
    
    .navbar-brand img {
        height: 30px;
    }
    
    .nav-item {
        margin: 0.5rem 0;
    }
}

/* 5. Z-index hierarchy */
.beta-banner { z-index: 1080; }
.navbar { z-index: 1070; }
.mega-menu.dropdown-menu { z-index: 1060; }
.parrainage-container { z-index: 1; }

/* Ajuster la visibilité du mega menu */
.mega-menu.dropdown-menu {
    display: none;
}

.mega-menu.dropdown-menu.show {
    display: block !important;
    opacity: 1;
    visibility: visible;
}

/* Style pour le header cliquable du dropdown */
.dropdown-header-link {
    text-decoration: none;
    display: block;
    transition: all 0.3s ease;
}

.dropdown-header-link:hover .dropdown-header {
    color: var(--primary-purple);
}

.dropdown-header-link .dropdown-header {
    margin: 0;
    transition: color 0.3s ease;
}

/* Ajustement pour mobile */
@media (max-width: 991px) {
    .dropdown-header-link {
        padding: 1rem 1rem 0.5rem 1rem;
    }
}

/* Animation pour les cartes */
.parrainage-card {
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.parrainage-card.hidden {
    opacity: 0;
    transform: translateY(20px); /* Déplacement vers le bas */
    pointer-events: none; /* Empêche les interactions pendant l'animation */
    display: none; /* Assurez-vous que la carte ne prend pas d'espace */
}

