/* Animation pour la carte */
.card-box {
    border: none !important; /* Supprime toutes les bordures */
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow:
        0 1px 1px hsl(0deg 0% 0% / 0.075),
        0 2px 2px hsl(0deg 0% 0% / 0.075),
        0 4px 4px hsl(0deg 0% 0% / 0.075),
        0 8px 8px hsl(0deg 0% 0% / 0.075),
        0 16px 16px hsl(0deg 0% 0% / 0.075) !important;
}

/* Bordure animée en dégradé */
.card-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 7px;
    background: linear-gradient(90deg, #EF2B2B, #FCD116, #009E49);
    background-size: 200% 100%;
    animation: gradientShift 3s ease infinite;
}

/* Animation du dégradé */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Effet au survol */
.card-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

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

/* Animation du titre */
.card-title {
    position: relative;
    display: inline-block;
    font-size: 1rem !important;
    padding: 1rem;
}

.card-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--color-yellow);
    transition: width 0.3s ease;
}

.card-box:hover .card-title::after {
    width: 10%;
}

/* Animation des lignes du tableau */
.sect tr {
    transition: all 0.3s ease;
}

.sect tr:hover {
    /*background-color: rgba(0, 158, 73, 0.05);*/
    background-color: rgba(218, 139, 16, 0.05);
}

/* Animation des boutons */
.btn {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    /*background: rgba(255, 255, 255, 0.5);*/
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%, -50%);
    transform-origin: 50% 50%;
}

.btn:hover::after {
    animation: ripple 1s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }
    100% {
        transform: scale(20, 20);
        opacity: 0;
    }
}

.mademande-subtitle {
    color: var(--color-success) !important;
    font-size: 15px;
    text-transform: capitalize;
    text-align: center;
    letter-spacing: 2px;
    font-weight: 500;
    line-height: 1;
}

.mademande-subtitle>span {
    /* Style de base */
    border: 2px solid var(--color-success);
    border-radius: clamp(0.5rem, 1vw, 1rem);
    padding: 0.5rem clamp(1rem, 5vw, 5rem);
    display: inline-block;
    transition: all 0.3s ease;
    box-sizing: border-box;
    text-align: center;
    margin: 0.2rem;

    /* Responsive texte */
    font-size: clamp(0.9rem, 2vw, 1rem);

    /* Pour éviter les débordements */
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Effets interactifs */
.mademande-subtitle>span:hover {
    background-color: #1abc9c20;
}

.mademande-subtitle>span:active {
    transform: scale(0.98);
}

.mademande-td {
    /*font-size: 15px;*/
    font-size: 0.9rem;
    letter-spacing:0px;
    font-weight: 600;
    line-height:1;
    margin-top: 0;
    padding: 0;
}

.sect {
    margin-top: 30px;
}

.my-title-style {
    font-weight: 600;
    letter-spacing: 1px;
    line-height: 1;
    font-size: 16px;
}

.my-title-style p {
    max-width: 250px; /* Ajustez selon vos besoins */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 2px;
}

.nom p {
    max-width: 190px; /* Ajustez selon vos besoins */
    font-size: 0.8rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 3px;
}

.cout {
    font-weight: 500;
}

.date-day {
    /*font-weight: 500;*/
}

.date-time {
    font-size: 0.9rem;
    color: var(--color-gray);
}

.demande-status .status-badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    text-align: center;
    min-width: 100px;
    /*text-transform: uppercase;*/
}

.status-en_cours_de_traitement .status-badge {
    background-color: var(--color-gray);
    border: 2px solid var(--color-gray);
    color: var(--color-white);
}

.status-demande_validee .status-badge {
    background-color: var(--color-success);
    border: 2px solid var(--color-success);
    color: var(--color-white);
}

.status-demande_rejetee .status-badge {
    background-color: var(--color-accent);
    border: 1px solid var(--color-accent);
    color: var(--color-white);
}

.status-brouillon .status-badge {
    background-color: var(--color-white);
    color: var(--color-gray);
    /*border: 1px solid var(--color-gray);*/
    box-shadow: 2px 3px 5px 1px rgba(0, 0, 0, 0.3);
}

.status-en_attente_de_paiement .status-badge {
    background-color: var(--color-yellow) !important;
    border: 1px solid var(--color-yellow);
    color: var(--color-white) !important;
}

/* Boutons d'action */
.btn-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 3px 4px 10px 1px rgba(0, 0, 0, 0.3);
}

.btn-validate {
    background-color: var(--color-success) !important;
    border: 2px solid var(--color-success);
    color: var(--color-white) !important;
}

.btn-validate:hover {
    background-color: #145924 !important;
    transform: translateY(-2px);
    color: var(--color-white) !important;
    box-shadow: 0 10px 20px rgba(46, 204, 113, 0.3);
}

.btn-pay {
    background-color: var(--color-yellow) !important;
    border: 2px solid #e67e22;
    color: var(--color-white) !important;
}

.btn-pay:hover {
    background-color: #e67e22 !important;
    color: var(--color-white) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(241, 196, 15, 0.3);
}

.btn-view {
    background-color: var(--color-primary) !important;
    border: 2px solid #2980b9;
    color: var(--color-white) !important;
}

.btn-view:hover {
    background-color: #2980b9 !important;
    color: var(--color-white) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.3);
}

.numero-demande {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    text-align: center;
    min-width: 100px;
    background-color: var(--color-white);
    color: var(--color-gray);
    /*border: 1px solid var(--color-gray);*/
    box-shadow: 2px 3px 5px 1px rgba(0, 0, 0, 0.3);
}

.notification {
    border: 1px solid;
    padding: 12px 15px;
    border-radius: 4px;
    margin-bottom: 16px;
    position: relative;
    font-size: 1rem;
    animation: fadeIn 0.5s ease-out;
}

.notification-error {
    background-color: #ffebee;
    border-color: #ef5350;
    color: #c62828;
}

.notification-success {
    background-color: #e8f5e9;
    border-color: #66bb6a;
    color: #2e7d32;
}

.notification-info {
    background-color: #e3f2fd;
    border-color: #42a5f5;
    color: #1565c0;
}

.notification-warning {
    background: linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%);
    border: 1px solid #ffd54f;
    color: #ff6f00;
    padding: 14px 16px;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(255,167,38,0.1);
}

.notification-warning:before {
    content: "⚠"; /* Symbole warning */
    margin-right: 8px;
    font-size: 1.1em;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (min-width: 768px) {
    .mademande-td {
        /*font-size: 15px;*/
        font-size: 1rem;
    }
    .card-body {
        padding: 0.5rem 1.5rem 1.5rem 1.5rem !important;
    }
    .card-title {
        font-size: 1.5rem !important;
    }
    .demande-status .status-badge {
        padding: 0.3rem 0.8rem;
        font-size: 0.8rem;
        min-width: 200px;
    }
    .numero-demande {
        padding: 0.3rem 0.8rem;
        font-size: 0.8rem;
        min-width: 200px;
    }
    .nom p {
        max-width: 250px; /* Ajustez selon vos besoins */
        font-size: 0.9rem;
    }
}

@media (min-width: 992px) {
    .mademande-td {
        /*font-size: 15px;*/
        font-size: 1.1rem;
    }
    .card-body {
        padding: 0.5rem 2rem 2rem 2rem !important;
    }
    .card-title {
        font-size: 2rem !important;
    }
    .demande-status .status-badge {
        padding: 0.3rem 0.8rem;
        font-size: 0.8rem;
        min-width: 200px;
    }

    .numero-demande {
        padding: 0.3rem 0.8rem;
        font-size: 0.8rem;
        min-width: 200px;
    }

    .nom p {
        max-width: 300px; /* Ajustez selon vos besoins */
        font-size: 1rem;
    }

}

