/* ===============================
   GLOBAL
================================ */
body {
    color: gray;
}

.vh-100 {
    background: white;
}

/* ===============================
   CARTES (Bootstrap override)
================================ */
.card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    word-wrap: break-word;
    background-color: white;
    background-clip: border-box;
    border: 1px solid rgba(0,0,0,.125);
    border-radius: 15px; /* unifié */
}

/* ===============================
   NAVBAR / HEADER
================================ */
.bg-black {
    background-color: #000;
}

#logo {
    width: 30px;
    height: 30px;
    border-radius: 4px;
}

.navbar-brand {
    padding: 14px 20px;
    font-size: 16px;
}

.navbar-nav {
    width: 100%;
}

.nav-item {
    padding: 6px 14px;
    text-align: center;
}

.nav-link {
    padding: 0.75rem 1.25rem;
    padding-bottom: 10px;
}

.v-line {
    background-color: gray;
    width: 1px;
    height: 20px;
}

/* Forcer affichage navbar (ancien Bootstrap) */
.navbar-collapse.collapse.in {
    display: block !important;
}

/* ===============================
   RESPONSIVE NAVBAR
================================ */
@media (max-width: 576px) {
    .nav-item {
        width: 100%;
        text-align: left;
    }

    .v-line {
        display: none;
    }
}



/* ===============================
   PANIER
================================ */
#cart_count {
    font-size: 0.75rem;
    padding: 0.35em 0.55em;
    border-radius: 50%;
}

/* ===============================
   PAIEMENT
================================ */
.payment-options h3 {
    font-weight: bold;
    color: #333;
}

.payment-options .card {
    background-color: #f9f9f9;
    transition: transform 0.2s ease;
}

.payment-options .card:hover {
    transform: translateY(-5px);
}

.payment-options img {
    margin-bottom: 10px;
}

.text-right {
    text-align: right;
}

/* ===============================
   OPTIONS DE PAIEMENT
================================ */
.payment-option {
    cursor: pointer;
    border: 2px solid #ddd;
    transition: all 0.3s ease;
}

.payment-option:hover {
    border-color: #ffc107;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.payment-option input {
    display: none;
}

.payment-option input:checked + img,
.payment-option input:checked + i {
    transform: scale(1.05);
}

.payment-option input:checked ~ h6 {
    font-weight: bold;
}

.payment-option:has(input:checked) {
    border-color: #ffc107;
    background-color: #fff8e1;
}


/* Recherche plus visible */
.search-input {
    max-width: 700px;
    width: 100%;
}

/* Amélioration navigation */
.navbar-nav .nav-link {
    padding: 0.75rem 1.25rem;
}

/* Badge panier */
#cart_count {
    font-size: 0.75rem;
    padding: 0.35em 0.55em;
    border-radius: 60%;
}

.card-title {
    min-height: 48px;          /* hauteur identique pour tous */
    max-height: 48px;
    line-height: 1.2em;
    overflow: hidden;

    display: -webkit-box;
    -webkit-line-clamp: 2;     /* max 2 lignes */
    -webkit-box-orient: vertical;
}
