        @import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
        
        body {
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            color: var(--text-color);
            background-color: transparent;
            display: none;
            overflow-x: hidden;
            height: 100%;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
            letter-spacing: -0.011em;
            color: #4d1f8c;
                    /* user-select: none; */
        }

        .main {
            display: flex;
            height: auto;
            overflow: hidden;
            gap: 20px; 
            max-width: 1500px; 
            margin: auto;
        }
        
        .aside {
            width: 30%;
            background-color: transparent;

            overflow-y: auto;
            transition: all 0.3s ease;
        }
        
        .section {
            width: 45%;
            background-color: transparent;
            overflow-y: auto;
            padding: 0;
        }
        
        .article {
            width: 25%;
            background-color: transparent;
            overflow-y: auto;
            padding: 1rem;
            overflow: auto;
        }
        
        textarea {
            overflow-y: scroll;
            overflow-x: hidden;
            resize: none;
        }
        
        .modal {
            background-color: rgba(255, 255, 255, 0.8);
        }

        .alert-info{
          color: #ffffff;
        }

          /* Base Styles */
  .home-content {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    width: 90%;
    margin: auto;
    background-color: transparent;
  }

  /* Header Styles */
  .home-header-content {
    background-color: transparent;
    padding: 12px 16px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
  }
        
        .btn {
            font-size: 1em;
            transition: all 0.3s ease;
            border-radius: var(--border-radius);
        }
        
        .btn:focus, .btn:focus-visible {
            background-color: var(--transparent-color);
            color: black;
            box-shadow: 0 0 0 0.25rem rgba(255, 193, 7, 0.5);
        }
        
        .btn-primary {
            background-color: var(--primary-color);
            border-color: var(--primary-color);
        }

        .btn-gradient-primary{
            background: linear-gradient(90deg, #4e31f1 0%, #87dfe2 100%);
            border-color: #4e73df;
            color: white;
        }
        
        .btn-gradient-primary i{
            color: white;
        }

        .btn-warning {
            background-color: var(--secondary-color);
            border-color: var(--secondary-color);
            color: black;
        }
        
        .app-text{
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
            color: var(--text-color);
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
            letter-spacing: 0.02em;
            font-weight: 300;
        }

        .form-group {
            margin: 1rem 0;
        }
        
        .alert-infos{
          color: #00ff88;
        }

        .miniInfo-text{
          color: #ecece8;
        }
        
        .miniInfoBtnClose {
            color: white;
            font-weight: bold;
            font-size: 1.2em;
            position: absolute;
            margin-top: -19px;
            padding-bottom: 25px;
            right: 3px;
            height: 20px;
            width: 15px;
            cursor: pointer;
            border-bottom: 1px solid #f6f69b;
        }
        
        .link-bgblue:hover {
            color: #cebfdc;
        }
        
        section::-webkit-scrollbar, html::-webkit-scrollbar , aside::-webkit-scrollbar, article::-webkit-scrollbar {
            width: 0 !important;
        }

        .video-actions {
    position: absolute;
    right: 15px;
    bottom: 100px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

/* Style pour le conteneur d'avatar */
.video-actions .user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid white;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease;
}

.video-actions .user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-actions .user-avatar::after {
    content: "+";
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background-color: #ff0050;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

/* Style de base pour les boutons d'action */
.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.action-btn i {
    font-size: 24px;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 5px;
    transition: all 0.2s ease;
}

.action-btn span {
    font-size: 12px;
    color: white;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Bootstrap modal-content */
.modal-content {
    background-color: transparent;
    border: none;
    box-shadow: none;
}

/* Effets au hover */
.action-btn:hover {
    transform: scale(1.05);
}

.action-btn:hover i {
    transform: scale(1.1);
}

/*Bottom css for action buttons*/
.bottom-button{
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #4e31f1, #87dfe2);
    color: white;
    border-radius: 18px;
    font-weight: 500;
    padding: 10px 17px;
    border: none;
    position: fixed;
    bottom: 10px;
    z-index: 1000;
    cursor: pointer;
}

/* Animation spéciale pour le like */
.action-btn.liked i {
    color: #ff0050;
    animation: heartBeat 0.6s ease;
}

@keyframes heartBeat {
    0% { transform: scale(1); }
    25% { transform: scale(1.3); }
    50% { transform: scale(1); }
    75% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Style pour le bouton de commentaire actif */
.action-btn.has-comments i {
    color: #08f0ff;
}

/* Style pour le bouton de partage */
.action-btn.share-active i {
    color: #00ff88;
}
        
        /* Responsive adjustments */
        @media (max-width: 992px) {
            .aside {
                width: 30%;
            }
            .section {
                width: 70%;
            }
            .article {
                display: none;
            }

        }
        
        @media (max-width: 768px) {
            .aside {
                width: 100%;
                position: fixed;
                z-index: 1000;
                height: 100vh;
                transform: translateX(-100%);
            }
            .aside.active {
                transform: translateX(0);
            }
            .section {
                width: 100%;
                padding: 0 4px;
            }
            .home-content {
                width: 100%;
            }
        }
        
        @media (max-width: 450px) {
            #bottom-fix {
                display: flex;
                position: fixed;
                bottom: 0;
                left: 0;
                right: 0;
                background: white;
                box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
                z-index: 1000;
                padding: 0.5rem;
                justify-content: space-around;
            }
            
            .aside, .article {
                display: none;
            }
            
            section {
                padding: 0 4px;
                margin-bottom: 60px;
            }
        }
        
        /* Owl Carousel customizations */
        #home_shorcut_content .btn {
            height: 50px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 500;
        }
        
        .owl-theme .owl-controls .owl-page span {
            background-color: var(--primary-color);
        }
        
        #post_sponsor_loading .owl-pagination,
        #owl_home_article_type1 .owl-pagination,
        #imgsp .owl-pagination {
            display: none;
        }
        
        #owl_home_article_type {
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 0.5rem 0;
        }
        
        #owl_home_article_type .item {
            margin: 0.5rem;
            box-shadow: var(--box-shadow);
            border-radius: var(--border-radius);
            transition: transform 0.3s ease;
        }
        
        #owl_home_article_type .item:hover {
            transform: translateY(-3px);
        }
        
        #home_shorcut_content .item {
            margin: 0.5rem;
            box-shadow: var(--box-shadow);
            border-radius: var(--border-radius);
        }
        
        /* Show full image/video modal */
        .show-full-img::-webkit-scrollbar, .show-full-video::-webkit-scrollbar {
          display: none;
          width: 0px;
        }

        .show-full-img, .show-full-video {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            z-index: 99999;
            background-color: rgba(0, 0, 0, 0.9);
            overflow: auto;
        }
        
        .show-full-img-f2, .show-full-video .show-full-img-f2 {
            display: flex;
            align-items: center;
            justify-content: center;
            height: 100%;
            width: 100%;
        }
        
        .show-full-img-f1 {
            max-width: 90%;
            max-height: 90%;
        }
        
        .show-full-img-f1 img {
            max-width: 100%;
            max-height: 90vh;
            object-fit: contain;
        }
        
        .show-full-img-hide {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            background-color: rgba(0, 0, 0, 0.7);
            z-index: 100000;
            padding: 1rem;
            display: flex;
            justify-content: space-between;
        }
        
        /* Notification styles */
        #mini_alert {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            z-index: 9999;
            background-color: var(--primary-color);
            color: white;
            text-align: center;
            padding: 1rem;
            display: none;
            animation: slideDown 0.5s ease;
        }
        
        @keyframes slideDown {
            from { transform: translateY(-100%); }
            to { transform: translateY(0); }
        }
        
        /* Loading indicators */
        #loading {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: rgba(255, 255, 255, 0.8);
            z-index: 999999;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        #myProgress {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
            z-index: 999999;
            background-color: transparent;
        }
        
        #myBar {
            height: 100%;
            background-color: var(--primary-color);
            width: 0;
            transition: width 0.3s ease;
        }
        
        /* Modern modal styles */
        .modal-content {
            border-radius: var(--border-radius);
            border: none;
            box-shadow: var(--box-shadow);
        }
        
        .modal-header {
            background-color: var(--primary-color);
            color: white;
            border-bottom: none;
            border-radius: var(--border-radius) var(--border-radius) 0 0;
        }
        
        .modal-title {
            font-weight: 600;
        }
        
        .btn-close {
            filter: invert(1);
        }
        
        /* Bottom fixed menu for mobile */
        .bottom-fix {
            display: none;
        }
        
        .bottom-fix .btn {
            flex: 1;
            margin: 0 0.5rem;
            padding: 0.75rem;
            font-weight: 500;
        }
        
        /* Partner logos */
        .parhtner-group {
            display: flex;
            justify-content: center;
            align-items: center;
            padding: 1rem;
            background-color: white;
            border-radius: var(--border-radius);
            margin: 1rem auto;
            box-shadow: var(--box-shadow);
        }
        
        .parhtner-group img {
            max-height: 40px;
            transition: transform 0.3s ease;
        }
        
        .parhtner-group img:hover {
            transform: scale(1.1);
        }
        
        /* Special promo button */
        #spp {
            background: linear-gradient(135deg, #ffc107, #ff9800);
            border: none;
            font-weight: 700;
            letter-spacing: 0.5px;
            text-transform: uppercase;
            box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
            transition: all 0.3s ease;
        }
        
        #spp:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(255, 193, 7, 0.4);
        }
        
        /* Chat list loading animation */
        .list-loading-circle {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background-color: #f0f0f0;
        }
        
        .list-loading-rect {
            width: 120px;
            height: 15px;
            background-color: #f0f0f0;
            border-radius: 4px;
        }
        
        .list-loading-rect2 {
            width: 80px;
            height: 10px;
            background-color: #f0f0f0;
            border-radius: 4px;
        }
        
        /* Animation for elements */
        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }
        
        .fade-in {
            animation: fadeIn 0.5s ease forwards;
        }

                .dropdown-menu {
            background: #fff;
            border-radius: 4px;
        }

        .dropdown-menu button {
            width: 100%;
            padding: 8px 16px;
            border: none;
            background: none;
            text-align: left;
            cursor: pointer;
        }

        .dropdown-menu button:hover {
            background-color: #f5f5f5;
        }

  /*Group style*/
        .group-card {
        transition: all 0.2s ease;
        background: white;
        }

        .group-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important;
        }

        .group-card .group-avatar {
        width: 60px;
        height: 60px;
        }

        .group-card .avatar-container {
        width: 100%;
        height: 100%;
        border-radius: 50%;
        overflow: hidden;
        background-color: #f8f9fa;
        }

        .group-card .avatar-container img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        }

        .group-card .group-card .group-name {
        font-size: 1.1rem;
        font-weight: 600; 
        }

        .group-card .group-type, .group-members {
        color: #6c757d;
        }

  .first-option {
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 12px;
  }

  .header-nav {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .profile-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    cursor: pointer;
  }

  .profile-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .post-creation {
    flex-grow: 1;
    background-color: #f1f3f5;
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 14px;
    color: #495057;
    cursor: pointer;
    transition: background-color 0.2s;
  }

  .post-creation:hover {
    background-color: #e9ecef;
  }

  .boutique-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #868e96;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 20px;
    transition: all 0.2s;
  }

  .boutique-btn:hover {
    background-color: #f1f3f5;
  }

  /* Carousel Controls */
  .carousel-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
  }

  .nav-arrows {
    display: flex;
    gap: 16px;
    background-color: #f1f3f5;
    padding: 6px 12px;
    border-radius: 20px;
  }

  .nav-arrows i {
    color: #495057;
    cursor: pointer;
    font-size: 14px;
  }

  .miniatures-btn span {
    background-color: #f1f3f5;
    padding: 6px 12px;
    border-radius: 20px;
    cursor: pointer;
    color: #495057;
    font-size: 14px;
  }

  /* Sponsored Posts */
  #post_sponsor {
    margin-top: 8px;
  }

  .sponsored-carousel {
    display: flex;
    gap: 8px;
  }

  .sponsored-item {
    height: 100px;
    background-color: #f1f3f5;
    border-radius: 8px;
    flex: 1;
  }

  /* Auth Section */
  .auth-section {
    padding: 24px 16px;
    text-align: center;
    background-color: #fff;
    margin: 16px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  }

  .app-title {
    color: #4d1f8c;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
  }

  .auth-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 300px;
    margin: 2px;
  }
  
  .auth-actions .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: 25px;
    font-weight: 500;
    transition: transform 0.2s, box-shadow 0.2s;
  }
  
  .auth-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  }
  
  .auth-actions .signup-btn {
    background: linear-gradient(45deg, #4d1f8c, #6c3cb4);
  }
  
  .auth-actions .login-btn {
    background: linear-gradient(45deg, #dc3545, #ff4757);
  }

  .btn {
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
  }

  .auth-actions .signup-btn {
    background-color: #4d1f8c;
    color: white;
  }

  .auth-actions .login-btn {
    background-color: #dc3545;
    color: white;
  }

  .google-signup {
    display: flex;
    align-items: center;
    background-color: #4285F4;
    color: white;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
  }

  .google-icon {
    background-color: white;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .google-icon img {
    width: 20px;
    height: 20px;
  }

  .google-signup span {
    flex-grow: 1;
    text-align: center;
    padding: 12px;
  }

  /* Main Content */
  .main-content-container {
    padding: 0px;
  }

  .posts-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .hidden-content {
    display: none;
  }

  /* Pagination */
  .pagination-container {
    text-align: center;
    margin: 24px 0;
  }

  .pagination-container button {
    background: transparent;
    border: none;
    cursor: pointer;
  }

  .pagination-container img {
    height: 30px;
  }

  /* Back to Top Button */
  .back-to-top {
    background:linear-gradient(30deg, rgb(238, 143, 65), rgb(209, 243, 170));
    border-radius: 50%;
  }


  .back-to-top i {
    color: white;
    font-size: 18px;
  }

  /* Responsive Adjustments */
  @media (max-width: 768px) {
    .header-nav {
      gap: 8px;
    }
    
    .post-creation, .boutique-btn {
      font-size: 13px;
      padding: 6px 12px;
    }
    
    .auth-section {
      margin: 8px;
    }
  }

  @keyframes likes-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.alert-info{
  color: wheat;
}

/*Media gallery styles*/
.media-flex{
    display:flex;
    flex-wrap:wrap;
    width:100%;
    background:#000;
}
.media-item{
    width:50%;
    aspect-ratio:1/1;
    overflow:hidden;
}
@media(min-width:768px){
    .media-item{
        width:33.33%;
    }
}
.media-item img{
    width:100%;
    height:100%;
    object-fit:cover;
    border: 1px solid rgb(0, 0, 0);
}
.alert-info{
    color: wheat;
}
.b-dark{
    border: 2px solid #000 !important;
}

/*Gain amount styles */
.gain-amount {
    position: absolute;
    pointer-events: none;
    left: 50%;
    transform: translateX(-50%) translateY(0) scale(1);
    white-space: nowrap;
    z-index: 99999;
    font-weight: 700;
    font-size: 1rem;
    color: #fff;
    padding: 6px 10px;
    border-radius: 20px;
    background: linear-gradient(90deg,#28a745,#6be379);
    box-shadow: 0 6px 18px rgba(40,167,69,0.25);
    opacity: 0;
    will-change: transform, opacity;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
/* positive / negative variants */
.gain-amount.positive { background: linear-gradient(90deg,#28a745,#6be379); color:#fff; }
.gain-amount.negative { background: linear-gradient(90deg,#dc3545,#ff7b86); color:#fff; box-shadow: 0 6px 18px rgba(220,53,69,0.22); }
.gain-amount .coin {
    width:18px;
    height:18px;
    border-radius:50%;
    background: radial-gradient(circle at 30% 30%, #fff6, #ffd700 40%, #c68a00 100%);
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    transform-origin: center;
    animation: coinSpin 900ms linear;
}
/* Triggered state: pop then float+fade */
.gain-amount.show {
    animation:
        gainPop 700ms cubic-bezier(.2,.9,.2,1) forwards,
        gainFloat 1200ms ease-out 200ms forwards;
}
/* Value styling */
.gain-amount .value { font-variant-numeric: tabular-nums; }
/* Keyframes */
@keyframes gainPop {
    0%   { opacity:0; transform: translateX(-50%) translateY(8px) scale(.6); }
    60%  { opacity:1; transform: translateX(-50%) translateY(-6px) scale(1.08); }
    100% { opacity:1; transform: translateX(-50%) translateY(0) scale(1); }
}
@keyframes gainFloat {
    0%   { opacity:1; transform: translateX(-50%) translateY(0) scale(1); }
    100% { opacity:0; transform: translateX(-50%) translateY(-46px) scale(.96); }
}
@keyframes coinSpin {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
/* Small sparkle effect */
.gain-amount::after {
    content: "";
    position: absolute;
    right: -6px;
    top: -6px;
    width:8px; height:8px; border-radius:2px;
    background: rgba(255,255,255,0.95);
    box-shadow: 0 0 8px 4px rgba(255,255,255,0.08);
    transform: scale(.4);
    opacity:0;
}
.gain-amount.show::after { animation: sparkle 600ms ease-out forwards; }
@keyframes sparkle {
    0%   { opacity:0; transform: scale(.4) translate(0,0); }
    40%  { opacity:1; transform: scale(1.1) translate(-6px,-8px); }
    100% { opacity:0; transform: scale(.6) translate(-12px,-20px); }
}
/* support stacked notifications (e.g. multiple gains) */
.gain-amount.stack {
    left: auto;
    right: 20px;
    transform: none;
    display: block;
    margin-bottom: 8px;
}
/* Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    .gain-amount, .gain-amount.show, .gain-amount::after { animation: none !important; transition: none !important; opacity: 1 !important; transform: none !important; }
}

@media (max-width: 370px) {
    body{
        font-size: 0.8em;
    }
}


    /* ============================================================
   BOUTON SCROLL TO TOP — WISDAK
   Ciblé par data-target pour fonctionner avec plusieurs conteneurs
   ============================================================ */

.scroll-to-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1 0%, #ec4899 100%);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.35),
                0 4px 12px rgba(236, 72, 153, 0.25);
    z-index: 9999;
    opacity: 0;
    transform: translateY(20px) scale(0.9);
    pointer-events: none;
    transition: opacity 0.3s ease,
                transform 0.3s ease,
                box-shadow 0.3s ease;
    -webkit-tap-highlight-color: transparent;
}

/* État visible (ajouté par JS via toggleClass) */
.scroll-to-top-btn.visible {
    opacity: 1 !important;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

/* Effet hover */
.scroll-to-top-btn:hover {
    box-shadow: 0 12px 32px rgba(99, 102, 241, 0.45),
                0 6px 16px rgba(236, 72, 153, 0.35);
    transform: translateY(-3px) scale(1.05);
}

/* Effet clic */
.scroll-to-top-btn:active {
    transform: translateY(0) scale(0.95);
    transition: transform 0.1s ease;
}

/* ============================================================
   SVG — Anneau de progression
   ============================================================ */
.scroll-progress-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-90deg);
    pointer-events: none;
}

.scroll-progress-ring .ring-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.15);
    stroke-width: 2;
}

.scroll-progress-ring .ring-progress {
    fill: none;
    stroke: url(#scrollGrad);
    stroke-width: 2.5;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.15s ease-out;
    filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.5));
}

/* ============================================================
   Icône flèche (bootstrap-icons)
   ============================================================ */
.scroll-to-top-btn > i.bi-arrow-up {
    color: #ffffff;
    font-size: 20px;
    font-weight: 700;
    pointer-events: none;
    position: relative;
    z-index: 2;
    transform: rotate(0deg);
    transition: transform 0.3s ease;
}

.scroll-to-top-btn:hover > i.bi-arrow-up {
    transform: translateY(-2px);
}

/* ============================================================
   Version mobile — ajustements
   ============================================================ */
@media (max-width: 768px) {
    .scroll-to-top-btn {
        width: 48px;
        height: 48px;
        bottom: 20px;
        right: 20px;
    }

    .scroll-to-top-btn > i.bi-arrow-up {
        font-size: 17px;
    }

    .scroll-progress-ring {
        width: 48px;
        height: 48px;
    }
}

/* ============================================================
   Accessibilité — focus clavier
   ============================================================ */
.scroll-to-top-btn:focus-visible {
    outline: 3px solid #6366f1;
    outline-offset: 3px;
}

/* ============================================================
   Animation d'entrée (pulse subtil quand il apparaît)
   ============================================================ */
@keyframes scrollBtnPulse {
    0%, 100% {
        box-shadow: 0 8px 24px rgba(99, 102, 241, 0.35),
                    0 4px 12px rgba(236, 72, 153, 0.25);
    }
    50% {
        box-shadow: 0 8px 30px rgba(99, 102, 241, 0.55),
                    0 4px 16px rgba(236, 72, 153, 0.4);
    }
}

.scroll-to-top-btn.visible {
    animation: scrollBtnPulse 2s ease-in-out 1;
}


/* ============================================================
   MINI INFO - NOTIFICATION (espacement boutons corrigé)
   ============================================================ */

#miniInfo {
    position: fixed !important;
    bottom: 20px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 999999 !important;
    width: calc(100% - 30px) !important;
    max-width: 500px !important;
    pointer-events: none !important;
}

#miniInfo > .miniInfo-inner {
    pointer-events: auto !important;
    padding: 12px 16px !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3) !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    gap: 15px !important;
    font-size: 0.9rem !important;
    animation: slideUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    border-left: 5px solid transparent !important;
    box-sizing: border-box !important;
    background: #1e293b !important;
    color: #ffffff !important;
}

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

/* ⚡ TEXTE : blanc, HTML supporté */
#miniInfo .miniInfo-text {
    flex: 1 !important;
    word-break: break-word !important;
    line-height: 1.5 !important;
    font-family: sans-serif !important;
    font-size: 14px !important;
    color: #ffffff !important;
}

#miniInfo .miniInfo-text a {
    color: #60a5fa !important;
    text-decoration: underline !important;
}

#miniInfo .miniInfo-text strong {
    color: #ffffff !important;
    font-weight: bold !important;
}

#miniInfo .miniInfo-text code {
    background: rgba(255,255,255,0.15) !important;
    padding: 2px 6px !important;
    border-radius: 4px !important;
    font-family: monospace !important;
    font-size: 12px !important;
}

/* ═══════════════════════════════════════════════════════════
   ⚡ CORRECTION : ESPACEMENT DES BOUTONS
   ═══════════════════════════════════════════════════════════ */
#miniInfo .miniInfo-actions {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 10px !important;            /* ⚡ 10px entre les boutons */
    flex-shrink: 0 !important;
    margin-left: 10px !important;    /* ⚡ 10px de marge à gauche */
    pointer-events: auto !important;
    z-index: 5 !important;
    position: relative !important;
}

/* ⚡ Boutons : taille fixe, pas de chevauchement */
#miniInfo button.miniInfoBtnCopy,
#miniInfo button.miniInfoBtnClose {
    background: rgba(255, 255, 255, 0.15) !important;
    border: none !important;
    color: #ffffff !important;
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;       /* ⚡ Empêche le rétrécissement */
    min-height: 30px !important;
    max-width: 30px !important;
    max-height: 30px !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    display: inline-flex !important;  /* ⚡ inline-flex au lieu de flex */
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s !important;
    font-size: 0.8rem !important;
    padding: 0 !important;
    margin: 0 !important;              /* ⚡ Pas de margin individuelle (gap gère) */
    box-shadow: none !important;
    flex-shrink: 0 !important;         /* ⚡ Ne rétrécit JAMAIS */
    position: relative !important;
    z-index: 10 !important;
    pointer-events: auto !important;
}

#miniInfo button.miniInfoBtnCopy:hover,
#miniInfo button.miniInfoBtnClose:hover {
    background: rgba(255, 255, 255, 0.3) !important;
    transform: scale(1.1) !important;
}

/* Couleurs des bordures selon le type */
#miniInfo.miniInfo-infos > .miniInfo-inner    { border-left-color: #3b82f6 !important; }
#miniInfo.miniInfo-success > .miniInfo-inner  { border-left-color: #22c55e !important; }
#miniInfo.miniInfo-warning > .miniInfo-inner  { border-left-color: #f59e0b !important; }
#miniInfo.miniInfo-error > .miniInfo-inner    { border-left-color: #ef4444 !important; }