.badge-item .icon-box {
    box-shadow: 0px 0 25px 0 rgba(0, 0, 0, 0.1);
    padding: 50px 30px;
    transition: all ease-in-out 0.4s;
    background: #fff;
}
.badge-item .icon-box h4 {
    font-weight: 500;
    margin-bottom: 15px;
    font-size: 24px;
}

.badge-item .icon-box h4 a {
    color: #96235a;
    transition: ease-in-out 0.3s;
}

.badge-item .icon-box p {
    line-height: 24px;
    font-size: 14px;
    margin-bottom: 0;
}

.badge-item .icon-box:hover {
    transform: translateY(-10px);
}

.badge-item .icon-box:hover h4 a {
    color: #96235a;
}

.badge-item .icon-box {
    position: relative;
}
.badge-item .icon-box .badge-etape {
    position: absolute;
    right: 10px;
    top: 10px;
}


.icon {
    position: relative;
    display: inline-block;
}

.icon img {
    display: block;
    width: 100%;
}

/* Image de surimpression générique */
.icon::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    width: 25%; /* proportionnel à la largeur de l'image principale */
    aspect-ratio: 1 / 1; /* conserve le ratio carré */
    background-size: contain;
    background-repeat: no-repeat;
    background-position: bottom right;
    background-image: none; /* par défaut */
}

/* Surimpression spécifique */
.badge-valid::after {
    background-image: url('https://preprod1.msesud.fr/themes/la-rhf/assets/img/badge/badge-valid.png');
}

.badge-revoque::after {
    background-image: url('https://preprod1.msesud.fr/themes/la-rhf/assets/img/badge/badge-revoque.png');
}

.badge-echu::after {
    background-image: url('https://preprod1.msesud.fr/themes/la-rhf/assets/img/badge/badge-echu.png');
}

.badge-enattente::after {
    background-image: url('https://preprod1.msesud.fr/themes/la-rhf/assets/img/badge/badge-enattente.png');
}
.drop-zone {
    border: 2px dashed #B2105A;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    background-color: #f8f9fa;
    color: #6c757d;
    transition: background-color 0.3s, border-color 0.3s;
}

.drop-zone.dragover {
    background-color: #e2e6ea;
    border-color: #B2105A;
}
.demande-list .card {
    width: 100%;
    background-color: #fff;
    color: #989898;
    margin-bottom: 10px;
    border-radius: 4px;
    position: relative;
    padding-left: 0px;
    display: inline-table;
}

.demande-list .card+.card {
    /* margin-left: 2% */
}


.demande-list .no-demande {
    display: table-cell;
    width: 35%;
    position: relative;
    text-align: center;
    border-right: 2px dashed #dadde6;
    background-color: #dadde61c;
    padding: 0px;
}


.demande-list .badge {
    display: table-cell;
    width: 35%;
    position: relative;
    text-align: center;
    border-right: 2px dashed #dadde6;
    background-color: #dadde61c;
    padding: 0px;
}


.demande-list .badge:before {
    content: "";
    display: block;
    width: 30px;
    height: 30px;
    background-color: white;
    position: absolute;
    top: -15px;
    right: -15px;
    z-index: 1;
    border-radius: 50%;
    border-bottom: 1px solid #dadde6; /* ✅ bord uniquement en bas */
}

.demande-list .badge:after {
    content: "";
    display: block;
    width: 30px;
    height: 30px;
    background-color: white;
    position: absolute;
    bottom: -15px;
    right: -15px;
    z-index: 1;
    border-radius: 50%;
    border-top: 1px solid #dadde6; /* ✅ bord uniquement en haut */
}

.demande-list .badge:after {
    top: auto;
    bottom: -15px
}

.demande-list .badge .icon {
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
}


.demande-list .badge .icon img {
    display: block;
    width: 100%;
}

@keyframes clignote {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
}


/* Image de surimpression générique */
.overlay-icon {
    position: absolute;
    top: 50%;
    left: 55%;
    transform: translate(-55%, -50%);
    font-size: 3.5em;
    color: black;
    z-index: 2;
    pointer-events: none; /* pour que l'icône ne gêne pas les clics */
    animation: clignote 2s infinite; /*  clignotement toutes les secondes */
}

.demande-list .card-cont {
    display: table-cell;
    width: 75%;
    font-size: 85%;
    padding: 10px 10px 30px 20px;
}

.demande-list .card-cont h3 {
    color: #3C3C3C;
    font-size: 130%;
    margin: 10px 0px;
}

.demande-list .card-cont .demande-date,
.demande-list .card-cont .demande-info,
.demande-list .card-cont .demande-detail {
    margin-top: 15px;
}

.demande-list .card-cont .demande-detail {
    text-align: center;
}

@media screen and (max-width: 860px) {
    .demande-list .card {
        display: block;
        float: none;
        width: 100%;
        margin-bottom: 10px
    }
    .demande-list .card+.card {
        margin-left: 0
    }
    .demande-list .card-cont .demande-date,
    .demande-list .card-cont .demande-info,
    .demande-list .card-cont .demande-detail  {
        font-size: 75%
    }
}
#historique-badge-list .card {
    width: 100%;
    padding-right: 0px;
}
#historique-badge-list .valid .badge{
    background-color: white;
    border-right: none;
}

#historique-badge-list .refus .card-cont {
    background-color: #dadde61c;
}
#justificatifs-demande .list-group-item {
    border-radius: 0.3rem;
    background-color: #f9f9f9;
}

#justificatifs-demande .list-group-item:hover {
    background-color: #f1f1f1;
}
.detail-demande {
    position: relative;
    height: 100%;
}

.col-sm-4.detail-demande {
    min-height: 150px;
}

.detail-demande .icon
{
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
}


.detail-demande .icon img {
    display: block;
    width: 100%;
}

.detail-demande .icon img.archive {
    filter: grayscale(100%) opacity(40%);
}

.detail-demande .valid .icon img.archive
{
    filter: grayscale(0%) opacity(60%);
}
.overlay-icon-valid {
    position: absolute;
    top: 50%;
    left: 55%;
    transform: translate(-55%, -50%);
    font-size: clamp(1rem, 7vw, 5.5em);
    color: green;
    z-index: 2;
    pointer-events: none; /* pour que l'icône ne gêne pas les clics */
}

.overlay-icon-refus {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: clamp(1rem, 7vw, 5.5em);
    color: red;
    z-index: 2;
    pointer-events: none; /* pour que l'icône ne gêne pas les clics */
}
.ui.vertical.menu .niveau2  {
    font-size: 15px;
    margin-left: 29px;
    margin-bottom: 2px;
    margin-top: 10px;
}
#map {
    padding: 5px;
    height: 600px;
    box-shadow: 0 0 10px #9999992e;
}

#map .info-bulle .lien {
    text-align: right;
}

#listing-of {
    max-height: 600px;
    overflow-y: scroll;
    padding-left: 5px;
}

/* Scrollbar stylée pour Chrome, Edge et Safari */
#listing-of::-webkit-scrollbar {
    width: 8px;
}

#listing-of::-webkit-scrollbar-track {
    background: #f1f1f1;
}

#listing-of::-webkit-scrollbar-thumb {
    background-color: #B2105A;
    border-radius: 4px;
}

/* Pour Firefox */
#listing-of {
    scrollbar-width: thin;
    scrollbar-color: #B2105A #f1f1f1;
}

#listing-of i{
    color: #B2105A;
}

.organisme-section .card-team-img {
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    overflow: hidden;
    background-color: white;
    border: 3px solid #dee2e6;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 200px;
    height: 200px;
    margin: auto;
    transition: transform 0.3s ease;
}

.organisme-section .card-team-img img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* Effet de survol */

.organisme-section .card-team-img:hover {
    transform: scale(1.05);
}

/* Tailles adaptatives type Bootstrap */

/* XS: <576px */
@media (max-width: 575.98px) {
    .organisme-section .card-team-img {
        width: 100px;
        height: 100px;
    }
}

/* SM: ≥576px */
@media (min-width: 576px) and (max-width: 767.98px) {
    .organisme-section .card-team-img {
        width: 120px;
        height: 120px;
    }

    .organisme-section .info-organisme {
        padding-left: 20px;
    }
}

/* MD: ≥768px */
@media (min-width: 768px) and (max-width: 991.98px) {
    .organisme-section .card-team-img {
        width: 160px;
        height: 160px;
    }
}

/* LG: ≥992px */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .organisme-section .card-team-img {
        width: 180px;
        height: 180px;
    }
}

/* XL: ≥1200px */
@media (min-width: 1200px) {
    .organisme-section .card-team-img {
        width: 200px;
        height: 200px;
    }
}


.organisme-section .info-organisme {
    padding-left: 50px;
}

.organisme-section .info-organisme .card-text {
    padding: 7px 0px;
}

.organisme-section .info-general .card-text {
    padding: 5px 0px;
}

.badge-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    padding: 0.75rem;
    margin-bottom: 0.75rem;
    background-color: #f8f9fa;
}

.badge-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

#map-organisme {
    padding: 5px;
    height: 600px;
    box-shadow: 0 0 10px #9999992e;
}

#map-organisme .info-bulle .lien {
    text-align: right;
}
