body {
    font-family: 'Roboto', sans-serif;
    /* background: linear-gradient(135deg, #f5f7fa, #c3cfe2); */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.navbar {
    /* background: rgba(255, 255, 255, 0.9); */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-radius: 0 0 15px 15px;
}

.img-responsive-fiche {
    margin-top: 0em;
    position: relative;
    max-height: 150px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    border-bottom-right-radius: 0px;
    border-bottom-left-radius: 0px;
}

.container-main {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
}

.quote-box {
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 40px 30px;
    max-width: 600px;
    text-align: center;
    animation: fadeIn 1s ease;
    z-index: 1;
}

h1 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    margin-bottom: 30px;
    color: #333;
}

.quote {
    font-size: 1.5rem;
    font-weight: 500;
    color: #555;
    margin-bottom: 0px;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav-item button,
.nav-item select {
    margin-left: 10px;
}

button {
    border-radius: 50px;
    padding: 6px 18px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: transform 0.2s ease;
}

button:hover {
    transform: scale(1.05);
}

select {
    border-radius: 10px;
    padding: 5px 10px;
}

/* --- Animation et effet de prise en main --- */
#quoteBox {
    transition: transform 0.25s ease, opacity 0.25s ease;
    touch-action: pan-y;
    will-change: transform;
}

.swiping {
    transition: none;
    /* On désactive les transitions pendant le mouvement */
}

.swipe-up {
    transform: translateY(-100%);
    opacity: 0;
}

.swipe-down {
    transform: translateY(100%);
    opacity: 0;
}

/* Animation like */
.main-heart.exploding {
    animation: explode 0.6s ease-out forwards;
}

@keyframes explode {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.8);
        opacity: 0.8;
    }

    100% {
        transform: scale(0);
        opacity: 0;
    }
}

.small-heart {
    position: fixed;
    font-size: 30px;
    color: #dc3545;
    pointer-events: none;
    z-index: 5;
    animation: fly-away 3s ease-out forwards;
}

@keyframes fly-away {
    0% {
        transform: translate(0, 0) scale(0) rotate(0deg);
        opacity: 1;
    }

    30% {
        transform: translate(var(--tx), var(--ty)) scale(1.3) rotate(var(--rotation));
        opacity: 1;
    }

    70% {
        transform: translate(calc(var(--tx) * 1.8), calc(var(--ty) * 1.8)) scale(1) rotate(calc(var(--rotation) * 1.5));
        opacity: 1;
    }

    100% {
        transform: translate(calc(var(--tx) * 2), calc(var(--ty) * 2)) scale(0) rotate(calc(var(--rotation) * 2));
        opacity: 0;
    }
}

/* Style pour la modal bottom sheet */
.modal.bottom-sheet .modal-dialog {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0;
    max-width: 100%;
    transform: translateY(100%);
    transition: transform 0.3s ease-out;
}

.modal.bottom-sheet.show .modal-dialog {
    transform: translateY(0);
}

.modal.bottom-sheet .modal-content {
    border-radius: 20px 20px 0 0;
    border: none;
    box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.1);
    bottom: 0;
    position: absolute;
    max-height: 90vh !important;
}

/* Poignée de drag visuelle (optionnel) */
.modal.bottom-sheet .modal-header::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 4px;
    background-color: #ddd;
    border-radius: 2px;
}

.modal.bottom-sheet .modal-header {
    border-bottom: none;
    padding-top: 20px;
    position: relative;
}

/* Backdrop personnalisé */
.modal.bottom-sheet .modal-backdrop {
    background-color: rgba(0, 0, 0, 0.5);
}

@media (max-width: 575px) {
    .quote {
        font-size: 1.2rem;
    }
}