/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* BASE */
body {
    font-family: Arial, sans-serif;
    background: #ffffff;
    scroll-behavior: smooth;
}

/* HEADER */
header {
    background: #0076B6;
    color: white;
    text-align: center;
    padding: 30px 15px;
}

header h1 {
    font-size: 32px;
    letter-spacing: 1px;
}

header p {
    margin-top: 8px;
    font-size: 16px;
}

/* NAV */
nav {
    background: #005a8c;
    text-align: center;
    padding: 12px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav a {
    color: #F9A61A;
    margin: 0 12px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

nav a:hover {
    color: white;
}

/* HERO */
.hero {
    background:
        linear-gradient(rgba(0,118,182,0.75), rgba(249,166,26,0.35)),
          /* url('https://images.unsplash.com/photo-1501004318641-b39e6451bec6') 				
	url('https://images.unsplash.com/photo-1544943910-4c1dc44aab44') 
	url('https://images.unsplash.com/photo-1601584115197-04ecc0da31d7') */
	url('https://images.unsplash.com/photo-1606787366850-de6330128bfc')center/cover no-repeat;
	
    height: 450px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    padding: 20px;
}

.hero h2 {
    font-size: 28px;
    margin-bottom: 10px;
}

.hero p {
    font-size: 18px;
}

/* BUTTON */
.btn {
    background: #F9A61A;
    color: #0076B6;
    padding: 12px 22px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    margin-top: 15px;
    display: inline-block;
    transition: 0.3s;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: #e69510;
    color: white;
}

/* SECTIONS */
section {
    padding: 60px 20px;
    text-align: center;
}

section h2 {
    color: #0076B6;
    margin-bottom: 20px;
}

/* CARDS (style Jumia amélioré) */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    max-width: 1100px;
    margin: auto;
}

.card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.card img {
	
	width: 100%;
    height: 180px;
    object-fit: cover;
	cursor: pointer;
}

.card h3 {
    color: #0076B6;
    margin-bottom: 10px;
}

.card p {
    padding: 0 10px 15px;
}

/* FOOTER */
footer {
    background: #0076B6;
    color: #F9A61A;
    text-align: center;
    padding: 20px;
    font-weight: bold;
}

/* RESPONSIVE */
@media(max-width:768px){
    header h1 {
        font-size: 26px;
    }

    .hero h2 {
        font-size: 22px;
    }

    nav a {
        display: inline-block;
        margin: 6px;
    }
}
/*
.card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
	cursor: pointer;

}
*/

/* CONTENT */
.card-content {
    padding: 15px;
}

.card-content p {
	color: #333;
    margin: 8px 0;
    font-weight: bold;
}

/* QTE, ADR , LIV */
.card input {
    width: 90%;
    padding: 8px;
    margin: 5px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.card select {
    width: 90%;
    padding: 8px;
    margin: 5px 0;
    border-radius: 5px;
    border: 1px solid #ccc;
}
/* + - PANIER */
#cart-items button {
    padding: 3px 8px;
    margin: 0 3px;
    border: none;
    background: #0076B6;
    color: white;
    border-radius: 4px;
    cursor: pointer;
}

#cart-items button:hover {
    background: #005a8c;
}
/* PANIER */
#cart-box {
    position: fixed;
    right: 10px;
    bottom: 10px;
    width: 280px;
    background: white;
    border: 2px solid #0076B6;
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    z-index: 9999;
}

#cart-box {
    display: none;
    transform: translateX(100%);
    transition: 0.4s ease;
}

#cart-box.show {
    display: block;
    transform: translateX(0);
}
#cart-box h2 {
    font-size: 18px;
    color: #0076B6;
    margin-bottom: 10px;
}

#cart-items {
    list-style: none;
    padding: 0;
    max-height: 120px;
    overflow-y: auto;
}

#cart-items li {
    font-size: 13px;
    margin-bottom: 5px;
}

#order-modal {
    display: none;
    position: fixed;
    z-index: 99999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    padding: 20px;
    border-radius: 10px;
    width: 300px;
    text-align: center;
}

.modal-content input,
.modal-content select {
    width: 90%;
    margin: 8px 0;
    padding: 8px;
}

.close-modal {
    float: right;
    font-size: 25px;
    cursor: pointer;
}
/* LIGHTBOX */
#lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

#lightbox img {
    max-width: 90%;
    max-height: 80%;
}

.close {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 40px;
    color: white;
    cursor: pointer;
}

#final-modal {
    display: none;
    position: fixed;
    z-index: 99999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    justify-content: center;
    align-items: center;
}

@keyframes fadeInOut {
    0% { opacity: 0; transform: translate(-50%, 20px); }
    20% { opacity: 1; transform: translate(-50%, 0); }
    80% { opacity: 1; }
    100% { opacity: 0; transform: translate(-50%, 20px); }
}


/* reduire panier */
#min-cart-btn {
    background: #0076B6;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    margin-bottom: 10px;
}

#cart-box.minimized {
    height: 40px;
    overflow: hidden;
}

#cart-box.minimized ul,
#cart-box.minimized p,
#cart-box.minimized button {
    display: none;
}


/* ouvrir panier */
#open-cart-btn {
    position: fixed;
    right: 10px;
    bottom: 10px;
    background: #0076B6;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 50px;
    cursor: pointer;
    z-index: 10000;
    display: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

