.image-box {
    min-height: 280px;
    background: #f7fbff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
}


.image-box img {
    flex: 1;
    border-radius: .5rem;
    object-fit: contain;
}


@media (min-width: 992px) {
    .equal-height-row {
        align-items: stretch;
    }

    .image-box,
    .question-side {
        height: 100%;
    }
}

/* Pagination Dots */
.question-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 38px;
    margin-bottom: 12px;
}

.dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #c6d6ed;
    transition: background 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(35, 78, 112, 0.07);
    cursor: pointer;
    border: 2px solid transparent;
    display: inline-block;
}

.dot.active {
    background: #2eb371;
    border-color: #109b5f;
    box-shadow: 0 2px 8px rgba(35, 78, 112, 0.21);
}

.dot:focus {
    outline: none;
    border-color: #50a16c;
}

.dot:hover:not(.active) {
    background: #b5c7de;
}

.list-group-item .letter {
    height: 30px;
    width: 30px;
    margin-right: 10px;
    display: inline-flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    background-color: #c6d6ed;
    border-radius: 50%;
    color: black;
}

.multianswer {
    color: green;
    font-weight: 700;
    font-size: 0.7rem;
    margin-left: 5px;
    margin-right: 5px;
}

.audioPlayer {
    background: linear-gradient(200deg, #7cdfe3, #6190ff);
}

.audioPlayer-undo {
    cursor: pointer;
    color: #fff;
    border: 1px solid #fff;
    margin: 0px;
    margin-right: 2px;
    padding: 3px;
    border-radius: 4px;
}

.special-btn {
    display: block;
    background: linear-gradient(80deg, orange, #7070ff);
    padding: 6px 12px;
    border-radius: 4px;
    text-align: center;
    color: white;
    animation: bgloarding 2s infinite linear;
    transition: all 1s linear;
    background-size: 200%;
}

.special-btn:hover {
    padding: 8px 14px;
    color: #000000;
    transition: all 500ms ease-in-out;
}

@keyframes bgloarding {
    0% {
        background-position: 0;
    }

    100% {
        background-position: 200%;
    }
}




.animebox-form {
    min-height: 80vh;
    margin: 0;
    font-family: 'Segoe UI', 'Roboto', sans-serif;
    background: linear-gradient(135deg, #192a56 0%, #8f5ee3 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 0px;
}

.animated-border-wrapper {
    position: relative;
    border-radius: 24px;
    padding: 3px;
    /* pour voir la bordure animée */
    margin: 0 10px;
    width: 100%;
    max-width: 450px;
    box-sizing: border-box;
    /* Pour ombre portée douce sous la carte */
    box-shadow: 0 6px 32px 0 rgba(60, 42, 120, 0.17);
}

.animated-border-wrapper:before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 24px;
    padding: 0;
    z-index: 0;
    background:
        conic-gradient(#8f5ee3,
            #4897f5,
            #41e9f7,
            #8f5ee3);
    animation: spin 3.5s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.form-container {
    position: relative;
    z-index: 1;
    border-radius: 19px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    /* Make content above border animation */
    width: 100%;
    box-sizing: border-box;
}

.form-container h2 {
    color: #fff;
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.6rem;
    letter-spacing: 1px;
}


.form-container label {
    display: block;
    margin-bottom: 0.3rem;
    color: #fff;
    font-weight: 500;
    font-size: 1rem;
}


.form-btn {
    width: 100%;
    padding: 0.5rem 0;
    border: none;
    border-radius: 8px;
    background: linear-gradient(90deg, #8f5ee3 40%, #4897f5 100%);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    margin-top: 6px;
}

.form-btn:hover {
    background: linear-gradient(90deg, #6d31c4 10%, #4897f5 90%);
    transform: translateY(-2px) scale(1.015);
}

/* Pour la bordure animée seulement visible autour du bloc */
.animated-border-wrapper .form-container {
    background-clip: padding-box;
}

.animated-border-wrapper {
    overflow: hidden;
}

.form-container {
    /* Détache bien l'intérieur du bord animé */
    box-shadow: 0 2px 30px 0 rgba(50, 50, 90, 0.08);
}

.back-transparent {
    background: rgba(255, 255, 255, 0.201);
    backdrop-filter: blur(3px);
    padding: 15px;
    box-sizing: border-box;
}

.checkbox-wrap {
    display: flex;
    align-items: center;
    cursor: pointer;
    gap: 0.8rem;
    user-select: none;
    margin-bottom: 1.5rem;
}

.checkbox-custom {
    position: relative;
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: #e2e8f0;
    border: 2px solid #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border 0.2s, background 0.2s;
}

.checkbox-input {
    position: absolute;
    width: 22px;
    height: 22px;
    opacity: 0;
    cursor: pointer;
    margin: 0;
}

.checkbox-input:checked+.checkbox-custom {
    background: #2563eb;
    border-color: #2563eb;
}

.checkbox-custom svg {
    display: none;
}

.checkbox-input:checked+.checkbox-custom svg {
    display: block;
    color: #fff;
}

/* Animation d'apparition/disparition */
.formblock {
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(.4, 2, .4, 1), opacity 0.4s;
    max-height: 900px;
    opacity: 1;
}

.formblock.hide {
    max-height: 0;
    opacity: 0;
    pointer-events: none;
}

@media (max-width: 480px) {
    .form-container {
        padding: 1.1rem 0.5rem;
    }
}


.offerbox {
    line-height: 1.8;
    background: #fff;
    border-radius: 0.8rem;
    box-shadow: 0 4px 16px rgba(40, 42, 50, 0.06);
    max-width: 420px;
    width: 100%;
    padding: 1.45rem 1.2rem 1.2rem 1.2rem;
    font-size: 0.99rem;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.offerbox strong,
.offerbox em {
    font-weight: 700;
    color: #004544;
    font-style: normal;
}

.offerbox-title {
    font-size: 1.09rem;
    font-weight: 700;
    color: #194446;
    margin-bottom: 0.22rem;
    text-align: center;
    letter-spacing: 0.01em;
}

.offerlist {
    list-style: none;
    margin: 0.5rem 0 0.15rem 0;
    padding: 0;
}

.offerlist li {
    margin-bottom: 0.45rem;
    display: flex;
    align-items: flex-start;
    gap: 0.48em;
}

.offernum {
    color: #f7b400;
    font-weight: 700;
    font-size: 0.96em;
    flex-shrink: 0;
    margin-top: 2px;
    min-width: 1.4em;
}

.offerprice {
    display: inline-block;
    background: #f7b400;
    color: #fff;
    font-weight: 700;
    border-radius: 0.4em;
    padding: 0 0.5em;
    font-size: 1.02em;
    letter-spacing: 0.013em;
    margin: 0 2px;
}

.offerstact {
    text-align: center;
    margin-top: 0.4rem;
}

.offerbtn {
    display: inline-block;
    padding: 0.5em 1.4em;
    border-radius: 2em;
    background: #194446;
    color: #fff;
    font-weight: 600;
    font-size: 0.97rem;
    text-decoration: none;
    transition: background .18s;
    margin: .6em auto .25em auto;
    box-shadow: 0 2px 4px rgba(0, 56, 48, 0.06);
}

.offerbtn:hover,
.offerbtn:focus {
    background: #39766e;
}

.offerlc {
    font-size: 0.97em;
    margin-top: 0.51em;
    color: #31575a;
    font-style: italic;
}

@media (max-width: 520px) {
    .offerbox {
        padding: 1rem 0.5rem 1rem 0.5rem;
        max-width: 97vw;
        font-size: 0.97rem;
    }

    .offerbox-title {
        font-size: 1.01rem;
    }
}
