@import "flashbag.css";

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    background-color: #f9f9f9;
    color: #333;
    line-height: 1.6;
}
main {
    display: flex;
    flex-direction: column;
    width: 97%;
    margin-top: var(--header-height, 100px); /* navbar + subnav */
    padding: 20px;
    position: relative;
    transition: margin-top 0.2s ease;
    z-index: 1; /* inférieur à la sidebar */    
    justify-content: center;
    align-items: center;
}

h1 {
    margin: 10px auto;
}
.alert {
    display: flex;
    flex-direction: row;
    width: 100%;
    justify-content: space-between;
}
.alert .btn-close {
    font-weight: 700;
    padding: 5px;
    cursor: pointer;
}
.alert-success {
    background-color: green;
    color: #fff;
    padding: 10px;
}
.text-center {
    text-align: center;
}
.text-right {
    text-align: right;
}
.text-red {
    color: red;
}
.text-green {
    color: darkgreen;
}
.btn {
    color: #fff;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    margin: 10px;
    display: block;
    width: fit-content;
}
img {
    display: block;
}
.btn-primary {
    background-color: #007bff;
}
.btn-success {
    background-color: green;
}
.btn-warning {
    background-color: orange;
}
.btn-danger {
    background-color: red;
}
.btn-primary:hover {
    background-color: #0056b3;
}
.nickname {
    font-weight: bold;
    color: #8fc5ff;
}
.text-decoration-none {
    text-decoration: none;
}
i {
    margin-right: 5px;
}
.date-italic {
    font-style: italic;
    color: #555;
    text-align: right;
    font-size: 0.9em;
}
ul {
    padding-left: 1rem;
}
.row {
    display: flex;
    flex-direction: row;
}
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #ddd;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: auto;
}
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
.logo {
    /* background-color: #ddd; */
}

.wrapper-quantite {
    display: flex;
    flex-direction: row;
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}
.quantite {
    padding: 5px 10px;
    border-radius: 10px;
    background-color: rgb(83, 83, 83);
    color: #fff;
}
.btn-add-cart {
    margin: 10px auto;
}
.qrCode {
    max-width: 400px;
}
/* Bouton hamburger ☰ → ✖ */
.hamburger {
    width: 30px;
    height: 22px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    background: none;
    border: none;
    z-index: 3000; /* au-dessus de la sidebar */
}

.hamburger span {
    display: block;
    height: 4px;
    width: 100%;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}
