:root {
    --tp-green: #00b67a;
    --tp-dark: #0d1222;
    --tp-grey: #d8d8d8;
    --bs-primary-rgb: 0, 182, 122;
    --bg-reassurance: #EB5276;
    --bg: #f0c3a8;
    --btn-bg: #EB5276;
    --btn-hover: #fff;
    --btn-border: #EB5276;
    --btn-border-hover: #fff;
    --bs-body-font-family: "Manrope", sans-serif;
    --texte-noir: #000;
    --texte-blanc: #fff;
}

body {
    background-color: var(--bg);
}

.tp-wrap {
    background: var(--tp-dark);
    color: var(--texte-blanc);
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .25rem .5rem;
}

.tp-stars {
    display: flex;
    gap: 2px;
}

.tp-badge {
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    background: var(--tp-green);
}

.tp-badge.tp-half {
    background: linear-gradient(90deg, var(--tp-green) 50%, var(--tp-grey) 0);
}

.tp-star {
    width: 16px;
    height: 16px;
    display: block;
}

.tp-text b {
    font-weight: 700;
}

.tp-text u {
    font-weight: 700;
    text-underline-offset: 3px;
}

.reassurance {
    background-color: var(--bg-reassurance) !important;
}

.reassurance b {
    font-weight: 600;
}

.invalid-feedback {
    color: #dc3545 !important;
}

.logo {
    width: 150px;
}

.progress, .progress-bar {
    border-radius: 0 !important;
}

.progress-bar {
    background-color: var(--tp-green);
    transition: width 0.4s ease-in-out;
}

h1, .h1, h2, .h2, h3, .h3, h4, .h4 {
    font-weight: 900;
    letter-spacing: -1px;
}

.display-5 {
    font-weight: 900;
}

.quiz-step {
    display: none;
}

.quiz-step.active {
    display: block;
    animation: fadeIn 0.5s;
}

.quiz-options {
    max-width: 400px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.btn-primary {
    border: 2px solid var(--btn-border) !important;
    background-color: var(--btn-bg) !important;
    color: var(--texte-blanc) !important;
    font-size: 1.1rem;
}

.btn-primary:hover {
    background-color: var(--btn-hover) !important;
    border: 2px solid var(--btn-border-hover) !important;
    color: var(--texte-noir) !important;
}

.secure {
    width: 230px;
}

.temoignage-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 50%;
}

.info-img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 50%;
}

body.step-7-bg {
    background-color: #f0c3a8;
    transition: background-color 0.5s ease;
}

body.loading-bg {
    background-color: var(--bg);
    transition: background-color 0.5s ease;
}

.loading-bar-container {
    width: 100%;
    max-width: 350px;
    height: 15px;
    background-color: #ffffff;
    border-radius: 5px;
    margin: 2rem auto;
    overflow: hidden;
}

.loading-bar-progress {
    width: 0%;
    height: 100%;
    background-color: var(--tp-dark);
    border-radius: 5px;
    transition: width 0.9s linear;
}

.loading-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.loading-list-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    font-weight: 500;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.5s ease;
}

.loading-list-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.loading-icon-wrapper {
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    border-radius: 50%;
    transition: background-color 0.4s ease-in;
}

.loading-icon-wrapper i {
    color: var(--tp-dark);
    transition: color 0.4s ease-in;
}

.loading-list-item.completed .loading-icon-wrapper {
    background-color: var(--tp-dark);
}

.loading-list-item.completed .loading-icon-wrapper i {
    color: var(--texte-blanc);
}

.loading-testimonial {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.loading-testimonial.visible {
    opacity: 1;
}

.legend {
    display: flex;
    gap: 16px;
    margin-top: 8px;
    font-weight: 600;
    font-size: 14px;
}

.dot {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    margin-right: 6px;
    vertical-align: middle;
}

.dot.green {
    background: #24b47e;
}

.dot.red {
    background: #ff5a5f;
}

.mag {
    height: 60px;
    filter: grayscale(100%);
    opacity: .7;
}

.silhouette-card {
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.silhouette-card:hover {
    background-color: var(--btn-bg);
    color: var(--texte-blanc);
}

.silhouette-img {
    height: 200px;
    object-fit: contain;
}

.result-card {
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, .075);
    border: 1px solid #dee2e6;
}

.imc-gauge {
    height: 35px;
    display: flex;
    border-radius: 9999px;
    overflow: hidden;
    position: relative;
}

.imc-gauge-segment {
    height: 100%;
}

.imc-indicator {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 4px;
    background-color: var(--tp-dark);
    transform: translateX(-50%);
    transition: left 1s ease-out;
}

.countdown-timer {
    background-color: var(--bs-warning);
    color: var(--tp-dark);
    font-weight: 900;
    font-size: 1.6rem;
}

.strikethrough {
    text-decoration: line-through;
    color: #6c757d;
}

.discount-badge {
    background-color: var(--bg-reassurance) !important;
    color: var(--texte-blanc);
    top: 22px;
    right: 120px;
}

.summary-card {
    background-color: white;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    padding: 1rem;
    text-align: center;
}

.summary-card .icon {
    font-size: 2.2rem;
}

.summary-card .label {
    font-size: 0.8rem;
    color: #6c757d;
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.summary-card .value {
    font-size: 2.2rem;
    font-weight: 900;
}

@media (max-width: 991px) {
    .avantapres-card {
        max-width: 400px;
        margin: 0 auto;
    }

    .silhouette-card {
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
        text-align: left !important;
        padding: 1rem !important;
    }

    .silhouette-card .silhouette-img {
        margin-bottom: 0 !important;
        margin-right: 1rem;
    }

    .silhouette-card .fw-bold {
        margin-right: auto;
    }

    .silhouette-card::after {
        content: '\F135';
        font-family: 'bootstrap-icons';
        font-size: 1.5rem;
    }

    .silhouette-card.active {
        background-color: var(--bs-primary) !important;
        color: var(--texte-blanc);
        border-color: var(--bs-primary) !important;
    }

    .silhouette-img {
        height: 120px;
    }

    .discount-badge {
        top: 18px;
        right: 160px;
    }
}

@media (max-width: 767px) {
    .discount-badge {
        top: 14px;
        right: 90px;
    }
}

@media (max-width: 575px) {
    p {
        font-size: .9rem;
    }

    .secure-text {
        font-size: .8rem;
        margin-bottom: 5px !important;
    }

    .reassurance {
        font-size: 0.7rem;
    }

    .tp-wrap {
        background: var(--tp-dark);
        font-size: 12px;
    }

    .tp-badge {
        width: 16px;
        height: 16px;
    }

    .tp-star {
        width: 12px;
        height: 12px;
    }

    .avantapres-card {
        max-width: 300px;
        margin: 0 auto;
    }

    .lead {
        font-size: 1.05rem;
    }

    a#back-btn {
        font-size: .8rem;
    }

    .mag {
        height: 30px;
    }

    .summary-card .value {
        font-size: 1.6rem;
    }

    .countdown-timer {
        font-size: 1rem;
    }

    .discount-badge {
        top: 12px;
        right: 100px;
    }

    .temoignage-img {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 520px) {
    .discount-badge {
        top: 10px;
        right: 80px;
    }
}

@media (max-width: 475px) {
    .discount-badge {
        right: 60px;
    }
}

@media (max-width: 420px) {
    .discount-badge {
        right: 20px;
    }
}
