/* Animation du checkmark */

.success-animation {
    display: inline-block;
}

.checkmark {
    width: 100px;
    height: 100px;
    margin: 0 auto;
    display: block;
}

.checkmark__circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 2;
    stroke-miterlimit: 10;
    stroke: #ffffff;
    fill: none;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark__check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    stroke: #ffffff;
    stroke-width: 3;
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.6s forwards;
}

@keyframes stroke {
    100% {
        stroke-dashoffset: 0;
    }
}


/* Animation de la card */

.card {
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Style des étapes */

.step-item {
    transition: all 0.3s ease;
}

.step-item:hover {
    transform: translateX(5px);
    background-color: #e3f2fd !important;
}

.step-number {
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(13, 110, 253, 0.3);
}


/* Responsive */

@media (max-width: 768px) {
    .checkmark {
        width: 80px;
        height: 80px;
    }
    .display-5 {
        font-size: 2rem;
    }
}


/* Coins arrondis */

.rounded-4 {
    border-radius: 1rem !important;
}


/* Ombres */

.shadow-lg {
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, .175) !important;
}

#chargement-stripe {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100vw;
    z-index: 9999999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #ffffffbd;
}

#chargement-stripe i {
    font-size: 25px;
}

/* Listing produits : différenciation visuelle des produits enfants */
.row-produit-enfant {
    background-color: #f8f9fc;
}

.row-produit-enfant > td:first-child {
    position: relative;
    padding-left: 40px !important;
}

.row-produit-enfant > td:first-child::before {
    content: "";
    position: absolute;
    left: 18px;
    top: 0;
    bottom: 50%;
    border-left: 2px solid #d4d8e0;
    border-bottom: 2px solid #d4d8e0;
    width: 12px;
}

.badge-produit-parent {
    background-color: #e1f0ff;
    color: #009ef7;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    margin-left: 8px;
}

/* Select2 : différenciation visuelle parent / enfant dans les dropdowns produits */
.select2-option-produit-parent {
    display: block;
    font-weight: 700;
    color: #5e6278;
    background-color: #f5f8fa;
    padding: 4px 8px;
    margin: -6px -10px;
    border-left: 3px solid #009ef7;
}

.select2-option-produit-enfant {
    display: block;
    padding-left: 18px;
    color: #3f4254;
    position: relative;
}

.select2-option-produit-enfant::before {
    content: "";
    position: absolute;
    left: 4px;
    top: -2px;
    bottom: 50%;
    width: 8px;
    border-left: 1px solid #b5b5c3;
    border-bottom: 1px solid #b5b5c3;
}

/* Select2 : option désactivée (parent) clairement non cliquable */
.select2-results__option[aria-disabled="true"] {
    cursor: not-allowed;
    opacity: 1;
}

/* Aperçu des pièces jointes (contacts) */
.apercu-piece-jointe {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    padding: 12px;
    background-color: #f8f9fc;
    border: 1px solid #e4e6ef;
    border-radius: 8px;
}

.apercu-piece-jointe img {
    max-width: 100%;
    max-height: 420px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.apercu-piece-jointe iframe {
    width: 100%;
    height: 480px;
    border: none;
    border-radius: 6px;
    background-color: #fff;
}

.apercu-piece-jointe .apercu-chargement {
    color: #7e8299;
    font-size: 14px;
}