/* ====================================
   PAGE NIVEAUX D'ÉTUDES - STYLES COMPLETS
   ==================================== */

:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
    --success-color: #27ae60;
    --green-accent: #2ecc71;
    
    /* Couleurs spécifiques aux niveaux */
    --bts-color: #f39c12;
    --licence-color: #3498db;
    --master-color: #9b59b6;
    --ingenieur-color: #e74c3c;
    --pro-color: #16a085;
    --doctorat-color: #2c3e50;
}

/* Reset et base */
.page-niveaux-wrapper {
    background: #f8fafc;
}

/* Hero Section */
.niveaux-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, #08b12d 100%);
    color: white;
    padding: 110px 0 80px;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.niveaux-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23000000" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,186.7C384,213,480,235,576,213.3C672,192,768,128,864,128C960,128,1056,192,1152,192C1248,192,1344,128,1392,96L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-size: cover;
    background-position: bottom;
    opacity: 0.3;
}

.niveaux-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(255,255,255,0.1) 0%, transparent 50%, rgba(255,255,255,0.1) 100%);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
}

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

/* Breadcrumb */
.niveaux-hero .breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 20px;
}

.niveaux-hero .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.niveaux-hero .breadcrumb-item a:hover {
    color: var(--green-accent);
    transform: translateX(5px);
}

.niveaux-hero .breadcrumb-item.active {
    color: white;
    font-weight: 600;
}

.niveaux-hero .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.6);
}

/* Titres Hero */
.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.3rem;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
    opacity: 0.95;
}

/* Navigation chips niveaux */
.niveaux-chips-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    background: #ffffff;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(46, 204, 113, 0.15);
    position: sticky;
    top: var(--header-offset, 90px);
    z-index: 12;
}

.niveau-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 999px;
    background: #f1f5f9;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    border: 1px solid transparent;
    transition: all 0.25s ease;
}

.niveau-chip i {
    font-size: 0.95rem;
}

.niveau-chip:hover,
.niveau-chip.active {
    background: linear-gradient(135deg, var(--secondary-color), var(--green-accent));
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 8px 20px rgba(46, 204, 113, 0.25);
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 24px;
}

.btn-hero-primary,
.btn-hero-secondary {
    border-radius: 999px;
    padding: 12px 24px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-hero-primary {
    background: #ffffff;
    color: var(--primary-color);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    border: 2px solid transparent;
}

.btn-hero-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.25);
    color: var(--primary-color);
}

.btn-hero-secondary {
    background: transparent;
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.7);
}

.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

/* Section Introduction */
.intro-section {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    text-align: center;
    position: relative;
    overflow: hidden;
    border-left: 6px solid var(--green-accent);
}

.intro-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, var(--secondary-color), var(--green-accent));
    border-radius: 0 0 0 100%;
    opacity: 0.05;
}

.intro-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, var(--secondary-color), var(--green-accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.5rem;
    box-shadow: 0 10px 30px rgba(52, 152, 219, 0.3);
}

.intro-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.intro-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    max-width: 900px;
    margin: 0 auto;
}

/* Statistiques rapides */
.quick-stat {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 35px 25px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    position: relative;
    overflow: hidden;
    border-top: 5px solid var(--secondary-color);
}

.quick-stat::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--secondary-color), var(--green-accent));
    border-radius: 0 0 0 100%;
    opacity: 0.05;
    transition: all 0.4s ease;
}

.quick-stat:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    border-top-color: var(--green-accent);
}

.quick-stat:hover::before {
    transform: scale(1.2);
}

.stat-icon-circle {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--secondary-color), var(--green-accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.3);
    transition: all 0.3s ease;
}

.quick-stat:hover .stat-icon-circle {
    transform: scale(1.1) rotate(5deg);
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.stat-desc {
    color: #666;
    font-size: 1rem;
    font-weight: 500;
}

/* Schéma du parcours */
.parcours-schema {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    border-left: 6px solid var(--secondary-color);
}

.schema-title {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 20px;
}

.schema-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color), var(--green-accent));
    border-radius: 2px;
}

.schema-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.flow-item {
    display: flex;
    justify-content: center;
}

.flow-branches {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.flow-badge {
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-align: center;
    white-space: nowrap;
}

.flow-badge:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.flow-badge.bac {
    background: linear-gradient(135deg, #34495e, #2c3e50);
    color: white;
}

.flow-badge.bts {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
}

.flow-badge.licence {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
}

.flow-badge.master {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
    color: white;
}

.flow-badge.ingenieur {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
}

.flow-badge.doctorat {
    background: linear-gradient(135deg, #2c3e50, #1a252f);
    color: white;
}

.flow-badge.work {
    background: linear-gradient(135deg, #16a085, #27ae60);
    color: white;
}

.flow-arrow {
    font-size: 2rem;
    color: var(--secondary-color);
    font-weight: 700;
}

/* Cartes de niveaux */
.niveau-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border-top: 6px solid var(--secondary-color);
    scroll-margin-top: calc(var(--header-offset, 90px) + 16px);
}

.niveau-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, var(--secondary-color), var(--green-accent));
    border-radius: 0 0 0 100%;
    opacity: 0.05;
    transition: all 0.4s ease;
}

.niveau-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    border-top-color: var(--green-accent);
}

.niveau-card:hover::before {
    transform: scale(1.2);
}

/* Header de la carte */
.niveau-header {
    padding: 35px 40px;
    display: flex;
    align-items: center;
    gap: 25px;
    background: rgba(248, 249, 250, 0.5);
    position: relative;
    z-index: 1;
}

.niveau-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.5rem;
    flex-shrink: 0;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.niveau-card:hover .niveau-icon {
    transform: scale(1.1) rotate(5deg);
}

.niveau-icon.bts-color { background: linear-gradient(135deg, #f39c12, #e67e22); }
.niveau-icon.licence-color { background: linear-gradient(135deg, #3498db, #2980b9); }
.niveau-icon.master-color { background: linear-gradient(135deg, #9b59b6, #8e44ad); }
.niveau-icon.ingenieur-color { background: linear-gradient(135deg, #e74c3c, #c0392b); }
.niveau-icon.pro-color { background: linear-gradient(135deg, #16a085, #27ae60); }
.niveau-icon.doctorat-color { background: linear-gradient(135deg, #2c3e50, #1a252f); }

.niveau-title-section {
    flex: 1;
}

.niveau-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.niveau-subtitle {
    color: #666;
    font-size: 1rem;
    margin: 0;
}

.niveau-duration {
    flex-shrink: 0;
}

.duration-badge {
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--secondary-color), var(--green-accent));
    color: white;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

/* Body de la carte */
.niveau-body {
    padding: 40px;
    position: relative;
    z-index: 1;
}

.niveau-toggle {
    display: none;
    align-items: center;
    gap: 8px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #334155;
    border-radius: 999px;
    padding: 8px 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.niveau-toggle i {
    transition: transform 0.2s ease;
}

.niveau-card.is-open .niveau-toggle i {
    transform: rotate(180deg);
}

.comparatif-section {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 32px 36px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border-left: 6px solid var(--green-accent);
}

.comparatif-header {
    margin-bottom: 20px;
}

.comparatif-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 6px;
}

.comparatif-subtitle {
    color: #667085;
    margin: 0;
}

.comparatif-table {
    margin: 0;
    border-collapse: separate;
    border-spacing: 0;
}

.comparatif-table thead th {
    background: #f1f5f9;
    color: var(--primary-color);
    font-weight: 700;
    border: none;
    padding: 14px 16px;
    white-space: nowrap;
    position: sticky;
    top: 0;
    z-index: 2;
}

.comparatif-table tbody td {
    padding: 14px 16px;
    border-top: 1px solid #eef2f7;
    color: #4b5563;
    vertical-align: middle;
}

.comparatif-table tbody tr:hover {
    background: rgba(46, 204, 113, 0.05);
}

.niveau-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.85rem;
    color: #ffffff;
    white-space: nowrap;
}

.niveau-badge.bts { background: var(--bts-color); }
.niveau-badge.licence { background: var(--licence-color); }
.niveau-badge.master { background: var(--master-color); }
.niveau-badge.ingenieur { background: var(--ingenieur-color); }
.niveau-badge.pro { background: var(--pro-color); }
.niveau-badge.doctorat { background: var(--doctorat-color); }

.niveau-key-info {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.key-card {
    background: #f9fbfd;
    border: 1px solid rgba(52, 152, 219, 0.15);
    border-radius: 16px;
    padding: 18px 20px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.key-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

.key-title i {
    color: var(--secondary-color);
}

.key-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.key-list li {
    padding: 6px 0 6px 22px;
    position: relative;
    color: #555;
    line-height: 1.6;
}

.key-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--green-accent);
    font-weight: 700;
}

.info-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.info-title i {
    color: var(--secondary-color);
}

.info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-list li {
    padding: 8px 0 8px 25px;
    position: relative;
    color: #555;
    line-height: 1.6;
}

.info-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--green-accent);
    font-weight: 700;
}

/* Tags de domaines */
.domain-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.domain-tag {
    padding: 8px 16px;
    background: rgba(52, 152, 219, 0.1);
    border: 1px solid rgba(52, 152, 219, 0.2);
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--secondary-color);
    transition: all 0.3s ease;
}

.domain-tag:hover {
    background: var(--secondary-color);
    color: white;
    transform: translateY(-2px);
}

/* Footer de la carte */
.niveau-footer {
    padding: 0 40px 35px;
    position: relative;
    z-index: 1;
}

.btn-niveau {
    background: linear-gradient(135deg, var(--secondary-color), var(--green-accent));
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.btn-niveau:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(46, 204, 113, 0.4);
    color: white;
}

/* Section CTA finale */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #08b12d 100%);
    padding: 60px 50px;
    border-radius: 20px;
    text-align: center;
    color: white;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23000000" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,186.7C384,213,480,235,576,213.3C672,192,768,128,864,128C960,128,1056,192,1152,192C1248,192,1344,128,1392,96L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-size: cover;
    opacity: 0.2;
}

.cta-section > * {
    position: relative;
    z-index: 1;
}

.cta-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    color: var(--green-accent);
}

.cta-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.cta-text {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-cta-primary {
    background: white;
    color: var(--primary-color);
    padding: 14px 35px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

.btn-cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.5);
    color: var(--primary-color);
}

.btn-cta-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 14px 35px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
    border: 2px solid white;
    backdrop-filter: blur(10px);
}

.btn-cta-secondary:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.4);
}

/* Responsive */
@media (max-width: 992px) {
    .schema-flow {
        flex-direction: column;
    }
    
    .flow-arrow {
        transform: rotate(90deg);
    }
    
    .flow-branches {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .niveaux-hero {
        padding: 90px 0 60px;
    }

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

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

    .comparatif-section {
        padding: 24px 20px;
    }

    .comparatif-table thead th,
    .comparatif-table tbody td {
        padding: 10px 12px;
        font-size: 0.9rem;
    }

    .niveaux-chips-nav {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 10px;
    }

    .niveau-chip {
        white-space: nowrap;
    }

    .hero-cta {
        flex-direction: column;
        align-items: stretch;
    }

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

    .intro-section,
    .parcours-schema,
    .niveau-body,
    .cta-section {
        padding: 30px 20px;
    }

    .niveau-key-info {
        grid-template-columns: 1fr;
    }

    .niveau-header {
        flex-direction: column;
        text-align: center;
        padding: 25px 20px;
    }

    .niveau-toggle {
        display: inline-flex;
        margin-top: 12px;
    }

    .niveau-body {
        padding: 0 20px;
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, opacity 0.2s ease, padding 0.2s ease;
    }

    .niveau-card.is-open .niveau-body {
        padding: 24px 20px;
        max-height: 2000px;
        opacity: 1;
    }

    .niveau-footer {
        padding: 0 20px 20px;
    }

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

    .niveau-title {
        font-size: 1.5rem;
    }

    .intro-title,
    .cta-title {
        font-size: 1.6rem;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .btn-cta-primary,
    .btn-cta-secondary {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .flow-badge {
        font-size: 0.85rem;
        padding: 10px 15px;
    }

    .domain-tags {
        gap: 8px;
    }

    .domain-tag {
        font-size: 0.85rem;
        padding: 6px 12px;
    }
}

/* Bouton retour en haut */
.btn-back-top-niveaux {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--secondary-color), var(--green-accent));
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: scale(0);
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.btn-back-top-niveaux.show {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.btn-back-top-niveaux:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

@media (max-width: 768px) {
    .btn-back-top-niveaux {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
        font-size: 1rem;
    }
}

