body {
    background: url('../images/Excelsius_background.gif');
    background-size: cover;
    background-attachment: fixed;
    background-position: 50% 50%;
    font-family: Arial, sans-serif;
}

/* Grille et conteneur principal */
.shopcontainer, .logincontainer {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin: 50px auto;
}

.shopcontainer {
    max-width: 1200px;
    margin: 0 auto;
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}


/* Typographie et titres */
.title {
    color: #003399;
    font-size: 2.5em;
    font-weight: bold;
    margin-bottom: 30px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
}
/* Tables */
.table {
    margin-bottom: 30px;
}

.table th, .table td {
    text-align: center;
    vertical-align: middle;
}

.table th {
    background-color: #003399;
    color: white;
    text-transform: uppercase;
    font-size: 1.1em;
}

.table .form-control {
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* Boutons */
.btnblue, .btn-cart .badge {
    padding: 10px 20px;
    font-size: 1.1em;
    border-radius: 4px;
}

.btnblue {
    background-color: #003399;
    border: none;
    color: white;
    transition: background-color 0.3s ease;
}

.btnblue:hover {
    background-color: #002366;
    transform: scale(1.02);
}

.btn-cart .badge {
    font-size: 0.9em;
    padding: 5px 10px;
}

/* Total container */
.total-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-top: 2px solid #003399;
}

.total-container strong {
    font-size: 1.2em;
    color: #003399;
}

/* Header et logo */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: #f8f9fa;
}


.logo {
    height: auto;
    max-height: 50px;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
}

.modal-content {
    margin: auto;
    display: block;
    width: 70%;
    max-width: 500px;
    animation-name: zoom;
    animation-duration: 0.6s;
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}

.close:hover, .close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

@keyframes zoom {
    from {transform: scale(0)}
    to {transform: scale(1)}
}

/* Confirm status and action icons */
.confirm-status {
    text-align: center;
}

.confirm-status i {
    font-size: 2rem;
}

.action-icons i {
    cursor: pointer;
    font-size: 1.5rem;
    margin: 0 10px;
}

.action-icons .fa-check-circle {
    color: green;
}

.action-icons .fa-trash {
    color: red;
}

/* Styles des cartes */
.card {
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    padding: 0;
    flex: 1 1 calc(33.33% - 20px);
}

.card-body {
    padding: 3px;
}

.card-text {
    font-size: 0.85em;
    margin-bottom: 2px;
}

.card-footer {
    padding: 2px;
}

.input-group {
    margin-bottom: 2px;
}

.card-img-top {
    width: 100%;
    height: auto;
    max-height: 140px;
    object-fit: contain;
}

.card-body {
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.card-title {
    font-size: 0.9em;
    font-weight: bold;
    margin-bottom: 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.card-title .title-line {
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-title .sample-note {
    height: 18px;
    margin-top: 4px;
    color: red;
}

.card-title .sample-note.hidden {
    visibility: hidden;
}

.card-footer {
    margin-top: auto; 
    padding: 10px;
    border-top: 1px solid #ddd;
    background-color: #f8f9fa;
    text-align: center;
}

.card-footer .form-control {
    padding: 5px; 
}

.btnAddToCart {
    width: 100%;
}

.header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}
.header-row .logo-container {
    flex: 1;
}

.header-row .user-info {
    flex: 1;
    text-align: center;
}

.header-row .buttons-container {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.logincontainer {
max-width: 30%;
margin-top: 10%;
}

/* Grand écran */
@media (min-width: 992px) {
    .header-row {
        flex-wrap: nowrap;
    }

    .logincontainer {
    max-width: 30%;
    margin-top: 18%;
    }


    .user-info {
        text-align: center;
    }

    .buttons-container {
        white-space: nowrap;
        justify-content: flex-end;
    }
}

/* Écran moyen */
@media (min-width: 768px) and (max-width: 991.98px) {
    .header-row {
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .user-info {
        text-align: right;
        order: 2;
        width: 100%;
    }

    .buttons-container {
        display: flex;
        justify-content: center;
        order: 1;
        width: 100%;
    }
    .logincontainer {
    max-width: 60%;
    margin-top: 18%;
    }

    .buttons-container a {
        margin: 0 10px;
    }
}

/* Petit écran  */
@media (max-width: 767.98px) {
    .header-row {
        flex-direction: column;
        text-align: center;
    }

    .card {
        flex: 1 1 calc(50% - 10px);
    }
    .logincontainer {
    max-width: 100%;
    margin-top: 18%;
    }

    .user-info {
        margin-bottom: 10px;
    }

    .buttons-container {
        justify-content: center;
        width: 100%;
        display: flex;
        gap: 10px;
    }

    .buttons-container a {
        flex: 1;
        margin-bottom: 0; 
    }

    .dropdown-container {
        margin-top: 10px;
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .dropdown-container .dropdown {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .card-title {
        font-size: 0.9em;
        min-height: 50px;
    }

    .card-img-top {
        max-height: 100px;
    }
    .card {
        flex: 1 1 100%;
    }
}


.table-responsive {
    overflow-x: auto;
}

.txtQty {
    pointer-events: auto;
    user-select: auto;
}

/* Masquer les flèches (spin buttons) des input type=number pour .txtQty */
input.txtQty::-webkit-outer-spin-button,
input.txtQty::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input.txtQty[type=number] {
    appearance: textfield; /* Standard */
    -moz-appearance: textfield; /* Firefox */
}


.input-group .btnMinus, .input-group .btnPlus {
    display: inline-block;
}

.img-fluid {
    max-width: 100%;
    height: auto;
}

.table th, .table td {
    font-size: 0.9em;
    padding: 8px;
}

.table td {
    width: 80px;
}

.filter-container {
    margin-bottom: 15px;
    text-align: center;
}

.btn {
    padding: 0.5rem 0.8rem;
    font-size: 0.9rem;
}

.total-container {
    flex-direction: column;
    text-align: center;
}

.total-container strong {
    margin-bottom: 15px;
}

.btnblue {
    width: 100%;
}

/*Style pour la sélection de couleur */
.color-selector {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 10px;
}

.color-option {
    width: 30px;
    height: 30px;
    display: inline-block;
    margin: 5px;
    border-radius: 50%;
    border: 1px solid #000000;
    cursor: pointer;
}

.selected-color {
    border: 3px solid #003399;
}


.color-option:hover {
    transform: scale(1.2);
    border-color: #003399;
}

.color-option.active {
    border: 2px solid #003399;
    transform: scale(1.2);
}

/*Style pour la définition des largeur de colones pour le panier */
#cartTable th:nth-child(1),
#cartTable td:nth-child(1) {
    width: 40%;
}

#cartTable th:nth-child(2),
#cartTable td:nth-child(2) {
    width: 10%;
}

#cartTable th:nth-child(3),
#cartTable td:nth-child(3) {
    width: 10%;
}

#cartTable th:nth-child(4),
#cartTable td:nth-child(4) {
    width: 10%;
}

#cartTable th:nth-child(5),
#cartTable td:nth-child(5) {
    width: 10%;
}

#cartTable th:nth-child(6),
#cartTable td:nth-child(6) {
    width: 10%;
}

#cartTable th:nth-child(7),
#cartTable td:nth-child(7) {
    width: 10%; 
}


