:root {
    --pop-blood: #e11d48;
    --pop-toxic: #84cc16;
    --pop-white: #ffffff;
    --pop-dark: #0f172a;
}

/* --- Container Principal (Bord à bord) --- */
.pop-nav-container {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 5rem;
    /* 80px */
    background: var(--pop-white);

    /* Coins supérieurs arrondis uniquement */
    border-top-left-radius: 2.5rem;
    border-top-right-radius: 2.5rem;

    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.05);
    z-index: 9999;
    display: block;
}

/* Affichage sur tous les écrans (Desktop + Mobile) */
/*
@media (min-width: 768px) {
    .pop-nav-container {
        display: none !important;
    }
}
*/

.pop-nav-list {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 0 1rem;
    margin: 0;
    list-style: none;
}

.pop-nav-item {
    width: 3rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Container spécifique pour le bouton large */
.center-item-container {
    flex-grow: 1;
    /* Prend l'espace disponible */
    height: 100%;
    display: flex;
    align-items: flex-end;
    /* Aligne le bouton en bas */
    justify-content: center;
    position: relative;
}

.center-item-container .pop-center-btn {
    position: relative;
    top: -1.5rem;
    /* Fait dépasser le bouton vers le haut */
}

.pop-nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.3s ease;
}

.pop-nav-link.active {
    color: var(--pop-blood);
}

.pop-nav-link svg {
    width: 24px;
    height: 24px;
}

/* --- Bouton Central Rectangulaire --- */
.pop-center-btn {
    height: 3.5rem;
    /* 56px - matches h-14 */
    min-width: 130px;
    /* Critical for visibility */
    padding: 0 1.25rem;
    /* px-5 */
    border-radius: 1rem;
    /* rounded-2xl */

    border: 4px solid var(--pop-white);
    background: linear-gradient(135deg, var(--pop-blood), #991b1b);
    color: white;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    /* gap-2 */

    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;

    /* Ensure visibility */
    position: relative;
    z-index: 10;
}

.pop-center-btn:hover {
    transform: scale(1.05);
}

.pop-center-btn:active {
    transform: scale(0.95);
}

.btn-text {
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

/* Gestion des icônes */
.pop-center-btn svg {
    width: 20px;
    height: 20px;
}

.pop-center-btn .icon-vote,
.pop-center-btn .icon-reserve {
    display: none;
}

/* --- MODE VOTE (Vert) --- */
.pop-center-btn.mode-vote {
    background: linear-gradient(135deg, var(--pop-toxic), #4d7c0f);
}

.pop-center-btn.mode-vote .icon-default,
.pop-center-btn.mode-vote .icon-reserve {
    display: none;
}

.pop-center-btn.mode-vote .icon-vote {
    display: block;
}

/* --- MODE RESERVER (Bleu/Violet) --- */
.pop-center-btn.mode-reserve {
    background: linear-gradient(135deg, #6366f1, #4338ca);
}

.pop-center-btn.mode-reserve .icon-default,
.pop-center-btn.mode-reserve .icon-vote {
    display: none;
}

.pop-center-btn.mode-reserve .icon-reserve {
    display: block;
}

/* --- MODE SAVE (Orange/Jaune) --- */
.pop-center-btn.mode-save {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.pop-center-btn.mode-save .icon-default {
    display: block;
}

.pop-center-btn.mode-save .icon-vote,
.pop-center-btn.mode-save .icon-reserve {
    display: none;
}

/* Animation Pulse seulement si pas d'action spécifique */
.pop-center-btn:not(.mode-vote):not(.mode-reserve):not(.mode-save) {
    animation: pulse-red 2s infinite;
}

@keyframes pulse-red {
    0% {
        box-shadow: 0 0 0 0 rgba(225, 29, 72, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(225, 29, 72, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(225, 29, 72, 0);
    }
}

/* --- Badges --- */
.icon-wrapper {
    position: relative;
}

.badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--pop-blood);
    color: white;
    font-size: 9px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--pop-white);
}

/* Fix for scroll issue: Add padding to body so content isn't hidden behind fixed navbar */
body {
    padding-bottom: 100px !important;
}