.over-x {
    overflow-x: scroll;
}
.over-y {
    overflow-y: scroll;
}

.over-x::-webkit-scrollbar{
    height: 4px;
}

.over-y::-webkit-scrollbar{
    width: 2px;
}

.over-x::-webkit-scrollbar-track,
.over-y::-webkit-scrollbar-track{
    box-shadow: inset 0 0 6px transparent;
}

.over-x::-webkit-scrollbar-thumb,
.over-y::-webkit-scrollbar-thumb{
    outline: 1px solid #C4C4C4;
    background: #C4C4C4;
    border-radius: 8px;
}

.light-check {
    opacity: 0.7;
    color: #333;
}

.my-alert {
    border-left:4px solid #dc3232;
    background:#fbeaea;
    color:#222;
    padding: 1rem 1rem;
    border-radius:0;
}

.dropdown-item:focus, .dropdown-item:hover,
.dropdown-item.active, .dropdown-item:active {
    background-color: #e9ecef;
    color: var( --bs-body-color);
}

.bg-danger-hover:hover {
    color: rgb(220, 53, 69);
    background-color: rgba(220, 53, 70, 0.127);
}

.toast {
    z-index: 1500;
}

.no-element {
    background: var(--light) !important;
    padding-top: 40px !important;
    padding-bottom: 40px !important;
}

.shadow-default {
    box-shadow: 0px 8px 13px -3px rgba(0,0,0,.07);
}

.font-montserrat {
    font-family: 'Montserrat', sans-serif;
}

.fw-semibold {
    font-weight: 500 !important;
}

.fw-extralight {
    font-weight: 200 !important;
}

.fs-14 {
    font-size: 14px;
}

.fs-13 {
    font-size: 12px !important;
}

.fs-12 {
    font-size: 12px;
}

.fs-11 {
    font-size: 11px;
}

.fs-10 {
    font-size: 10px !important;
}

.text-justify {
    text-align: justify !important;
}

.text-opacity-70 {
    opacity: 0.7;
}

.table-container {
    min-height: 35vh;
}

#my-table thead tr th {
    text-align: center;
}

.dot-indicator {
    display: inline-block;
    width: 0.7em;
    height: 0.7em;
    border-radius: 50%;
}

.ajax-link {
    color: currentColor !important;
    text-decoration: none !important;
}

a {
    color: currentColor;
    text-decoration: none;
}

.card {
    border: none;
    overflow: hidden;
}

.email-card-container .form-label {
    font-weight: 500;
}

/* style de la page par defaut */
.main-defaut-container {
    color: #000;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Gotham';
}

.hero-container {
    text-align: center;
    max-width: 700px;
    padding: 2rem;
}

.hero-container .logo {
    width: 300px;
    height: auto;
    padding: 0 10px;
    margin-bottom: 2.5rem;
}
.hero-container h1 {
    font-weight: 700;
    font-size: 2.8rem;
    line-height: 1.2;
    margin-bottom: 1rem;
}
.hero-container p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}
.hero-container .btn-lg {
    /* padding: 0.75rem 1.5rem; */
    padding: 0.75rem 4.5rem;
    font-size: 1.1rem;
    border-radius: 50px;
}
.hero-container .btn-pill {
    border-radius: 50px;
    padding: 0.75rem 4.5rem;
    font-size: 1rem;
}

.profile-doc-link:hover {
    text-decoration: underline;
    color: var(--primary);
}

/* =================================================
gestion du profile document
=====================================================*/

/* ====== Zone principale ====== */
.profile-doc {
    position: relative;
    display: flex;
    width: 100%;
    height: 100vh; /* Utilise toute la hauteur de l'écran */
    overflow: hidden; /* Important : empêche scroll global */
}

/* ==== Colonne 1 : FACTURES ==== */
.profile-doc .factures-container {
    /* flex: 0 0 35%;
    max-width: 35%; */
    max-width: 100%;
    height: 100vh;
    /* overflow: scroll; */
    background: #fff;
    padding-top: 30px;
    padding-right: 5px;
    overflow-y: auto;
    scrollbar-width: none; /* Masque scrollbar */
}

/* ==== Colonne 2 : PREVIEW ==== */
.profile-doc .preview-container {
    /* flex: 0 0 45%;
    max-width: 45%; */
    max-width: 100%;
    height: 100vh;
    position: sticky; /* Agit comme fixed mais reste dans le flux */
    top: 0;
    background: #f9f9f9;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    margin-left: 0px;
    border-left: 1px solid #dee2e6;
}

.profile-doc .iframe-box {
    flex-grow: 1;
    overflow-y: auto;
    scrollbar-width: none; /* Masque scrollbar */
}

.iframe-box::-webkit-scrollbar {
    display: none;
}

.iframe-box iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ==== Colonne 3 : INFOS ==== */
.profile-doc .infos-container {
    max-width: 100%;
    height: 100vh;
    position: sticky;
    top: 0;
    background: #fff;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.profile-doc .infos-box {
    padding: 20px;
    padding-right: 0;
    overflow-y: auto;

    scrollbar-width: none;
}

.infos-box::-webkit-scrollbar {
    display: none;
}

/* affichage de la top-bar */
.fixed-to-top {
    width: 100%;
}

/* affichage du modal des nouveautes*/
.my-h-50 {
    max-height: 40vh;
}

.min-vh-80 {
    min-height: 80vh;
}

.feature-restricted {
    opacity: 0.6;
    /* cursor: not-allowed; */
    position: relative;
}

.badge.pro {
    padding: 0.3em 0.5em;
    font-size: 10px !important;
}

.feature-restricted:hover {
    opacity: 0.8;
}

/* 
.feature-restricted::after {
    content: "🔒";
    margin-left: 5px;
    font-size: 0.8em;
} */

#newFeaturesModal .modal-dialog {
    display: flex;
    justify-content: center;
    align-items: center;
}

#newFeaturesModal .modal-content {
    background: #fff;
    max-width: 390px;
    width: 100%;
    border: 1px solid var(--primary);
    box-shadow: 0 12px 30px rgba(74, 144, 226, 0.3);
    padding: 1.5rem 1.8rem;
    text-align: center;
    animation: fadeInScale 0.3s ease forwards;
}

#newFeaturesModal .modal-body {
    padding-top: 0;
}

/* Illustration */
#newFeaturesModal .modal-illustration {
    margin-bottom: 0.7rem;
}

/* Titre */
#newFeaturesModal .modal-title {
    color: #2C3E50;
}

#newFeaturesModal .modal-text {
    color: #4A4A4A;
    margin-bottom: 1rem;
}

#newFeaturesModal .modal-btn {
    margin-top: 0.8rem;
    padding: 0.6rem 2rem;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

/* Features list */
#newFeaturesModal .features-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

#newFeaturesModal .features-list li {
    margin-bottom: 0.5rem;
    padding-left: 1.6rem;
    position: relative;
}

#newFeaturesModal .features-list li h6 {
    color: #4d5358;
    font-weight: 500 !important;
    margin: 0;
    margin-bottom: 0.2rem;
    font-size: 14px !important;
}

#newFeaturesModal .features-list li p {
    margin: 0;
    padding: 0;
    font-size: 11px;
    font-family: 'Montserrat', sans-serif;
}

#newFeaturesModal .features-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-size: 1.8rem;
    line-height: 1;
}

/* last refunds */
.refund-item {
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.refund-status-badge {
    padding: 0.3em 0.5em;
}

.refund-item:hover {
    background-color: #f8f9fa;
    border-left-color: var(--bs-primary);
}

/* Animation d’apparition */
@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

#btn-ajouter-remise-globale {
    text-align: end;
    color: var(--primary);
}


#btn-ajouter-remise-globale:hover {
    text-decoration: underline;
    cursor: pointer;
}

.custom-label {
    font-size: 11px;
    padding: 0;
    margin: 0;
    margin-bottom: .2rem;
}

/* ====  style de la page reglages ==== */
.reglage-sidebar {
    position: relative;
    min-width: 190px;
    min-height: calc(100vh - 170px);
    background-color: #fff;
    padding: 1rem !important;
}

.reglage-group {
    margin-bottom: 0.8rem;
}

.reglage-group .group-title {
    text-transform: uppercase;
    color: var(--secondary-rgb); /* #6c757d */
    margin-bottom: 0.5rem;
    padding-left: 0.5rem;
}

#societeDropdown {
    width: auto;
    max-width: 170px;
    overflow: hidden;
}

#societe_membre {
    width: auto;
    max-width: 250px;
    overflow: hidden;
}

.nav-subitems {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.nav-subitems li a {
    display: flex;
    align-items: center;
    padding: 5px 12px;
    text-decoration: none;
    transition: background-color 0.2s;
}

.nav-subitems li a:hover {
    background-color: #e9ecef;
}

.nav-subitems li.active > a {
    background-color: var(--secondary-rgb);
    color: #fff;
}

.reglage-group .sidebar-icon-label span {
    margin-left: -5px;
}


#societe-card .card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px dashed #dee2e6;
}

#societe-card .card:hover {
    transform: translateY(-2px);
    transition: transform 0.2s ease;
}

#societe-card .modal-content {
    border-radius: 1rem;
    border: none;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

/* Style pour les cellules de remise */
.remise-cellule {
    position: relative;
}

.remise-cellule.d-none {
    display: table-cell !important; /* Toujours occuper l'espace */
}

.remise-cellule.d-none .input-remise,
.remise-cellule.d-none .remise {
    display: none;
}

.remise-cellule.d-none .remise-placeholder {
    display: inline;
    color: var(--secondary-rgb);
    font-style: italic;
}

.remise-cellule:not(.d-none) .remise-placeholder {
    display: none;
}

.remise-cellule:not(.d-none) .input-remise,
.remise-cellule:not(.d-none) .remise {
    display: block;
    width: 80px;
    margin: 0 auto;
}

/* Colonne remise */
.col-remise.d-none {
    display: none !important;
}


.timeline-item {
    border-left: 3px solid var(--primary-dark);
    padding-left: 1rem;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -0.6rem;
    top: 0;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background: var(--primary-dark);
    /* background: var(--bs-primary); */
    border: 3px solid #fff;
}


/* == profil Membre == */

.my-custom-tab .profile-header {
    background: linear-gradient(135deg, var(--blue-dark-bg), var(--bs-primary));
    color: #fff;
    border-radius: 15px;
    margin-top: -80px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.my-custom-tab .avatar-wrapper {
    width: 120px;
    height: 120px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
    border: 4px solid #fff;
    background: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.rounded-full {
    border-radius: 100%;
}

.my-custom-tab .avatar-img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    object-position: center;
    border-radius: 50%;
    display: block;
}

.my-custom-tab .camera-icon {
    right: 6px;
    width: 30px;
    height: 30px;
    background-color: rgba(0, 0, 0, 0.6);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.my-custom-tab .camera-icon-2,
.my-custom-tab .infobulle {
    position: absolute;
    top: -5px;
    right: 12px;
    background-color: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: none;
    width: 15px;
    height: 15px;
    font-size: 8px;
    line-height: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s;
}

.label-infobulle {
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    width: 15px;
    height: 15px;
    font-size: 8px;
    line-height: 0px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s;
}

.label-infobulle:hover,
.my-custom-tab .camera-icon:hover,
.my-custom-tab .infobulle:hover,
.my-custom-tab .camera-icon-2:hover {
    background-color: var(--primary-dark);
    color: #000;
}

.my-custom-tab .infobulle {
    top: -5px;
    right: 30px;
}


.my-custom-tab .stat-card {
    background: #fff;
    border-radius: 12px;
    border: none;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.my-custom-tab .nav-pills .nav-link {
    color: var(--blue-dark-bg);
    border-radius: 8px;
    margin: 0 3px;
    font-weight: 500;
}

.my-custom-tab .nav-pills .nav-link.active {
    background: var(--bs-primary);
    color: #fff;
}

.my-custom-tab .nav-pills .nav-link.expanded {
    background-color: var(--primary-dark);
    color: #fff;
}

.badge-abonnement {
    background: linear-gradient(45deg, #FFD700, #FFA500);
    color: #000;
    font-weight: 600;
}

.my-custom-tab .badge-certified {
    color: white;
    padding: 5px 12px;
    top: 20px;
    right: 20px;
    border-radius: 20px;
    font-weight: 500;
}

.text-blue {
    color: var(--bs-primary) !important;
}

.my-custom-tab .chart-container {
    position: relative;
    height: 250px;
}

.my-custom-tab .transition-width {
    transition: width 0.4s ease;
}

.my-custom-tab .nav-tabs .nav-link {
    border: none;
    border-bottom: 3px solid transparent;
    color: #6c757d;
    font-weight: 500;
    padding: 0.75rem 1.25rem;
    transition: all 0.3s ease;
}

.my-custom-tab .nav-tabs .nav-link:hover {
    border-bottom-color: #dee2e6;
    color: #495057;
}

.my-custom-tab .nav-tabs .nav-link.active {
    border-bottom-color: var(--bs-primary);
    color: var(--bs-primary);
    background: transparent;
}

.my-custom-tab table.profile-fields tr td {
    border: 0;
    border-bottom: 1px solid #eff0f1;
}

.my-custom-tab table.table-sm {
    margin-bottom: 0;
}

.my-custom-tab table.table-sm tr td {
    padding: 0.25rem 0;
}

.my-custom-tab table.table-sm tr:last-child td {
    padding-bottom: 0;
    border: none;
}

.my-custom-tab .image-container {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 5px;
}

.my-custom-tab .image-container img {
    width: 100%;
    height: 100%;
    border-radius: 4px;
}

caption {
    caption-side: top !important;
}


/*========= gestion du overlay sur les icon des documents =======*/
.my-custom-tab .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(59, 69, 81, 0.79);
    display: none;
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s ease;
    border-radius: 6px;
    z-index: 2;
}

.my-custom-tab .rge-container:hover .overlay,
.my-custom-tab .kbis-container:hover .overlay,
.my-custom-tab .assurance-container:hover .overlay,
.my-custom-tab .autre_doc-container:hover .overlay {
    display: flex;
}

.my-custom-tab .overlay a {
    color: #fff;
    font-size: 18px;
}

.wizard-nav .nav-link {
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.wizard-nav .nav-link.active {
    background-color: #0d6efd;
    color: white;
    font-weight: bold;
}


/*========= gestion des credits projets =======*/
.credit-card {
    width: 100%;
    max-width: 220px;
    padding: 16px;
    background: #fff;
    border-radius: 16px;
    border: 2px solid transparent;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
    text-align: center;
}

.credit-card:hover {
    border: 2px solid var(--primary);
    box-shadow: 0 2px 15px rgba(var(--bs-primary-rgb),.3);
}

.credit-card ul {
    text-align: start;
}



/* ============ Cagnotte Card Styles ============= */
.cagnotte-container {
    background: #fff;
    border-radius: 0 8px 8px 0;
    padding: 18px 24px;
    box-shadow: 2px 0 0 rgba(0, 142, 83, 0.475);
    width: 100%;
    max-width: 220px;
    transition: all 0.2s ease-in-out;
}

.cagnotte-container:hover {
    transform: translateY(-5px);
}

.cagnotte-label {
    font-size: 14px;
    color: #888;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.cagnotte-value {
    font-size: 28px;
    font-weight: 600;
    color: #222;
    display: flex;
    align-items: baseline;
    gap: 5px;
}

.cagnotte-unit {
    font-size: 14px;
    font-weight: 400;
    color: #666;
}

@media (max-width: 768px) {
    .my-custom-tab .nav-tabs .nav-link {
        padding: 0.35rem 0.5rem;
        font-size: 13px;
    }
    .my-custom-tab .badge-certified {
        top: 10px;
        right: 10px;
        font-size: 12px;
    }
    .my-custom-tab .avatar-wrapper {
        width: 100px;
        height: 100px;
    }
    .cagnotte-container {
        padding: 12px 24px;
    }
    .cagnotte-value {
        font-size: 24px;
    }
}


@media (max-width: 564px) {
    .my-custom-tab .avatar-wrapper {
        width: 80px;
        height: 80px;
    }
}





















/* ==== Responsive ==== */
@media (max-width: 992px) {
    .infos-container {
        max-height: 30vh;
    }
    .infos-box {
        max-height: 100%;
    }
    .preview-container {
        max-height: 70vh;
    }
    .preview-box {
        max-height: 100%;
    }
}

@media (max-width: 768px) {
    .profile-doc {
        flex-direction: column;
        height: auto;
        width: 100vw;
        max-width: 100%;
    }

    .factures-container {
        max-height: 60vh;
    }

    .infos-container {
        max-height: 20vh;
    }

    .infos-box {
        max-height: 100%;
    }

    .preview-container {
        max-height: 50vh;
    }

    .preview-box {
        max-height: 100%;
    }

    .reglage-sidebar {
        width: 100%;
        min-height: auto;
        height: auto;
        margin-top: 10px !important;
    }
}