/*  index et body prototype 1 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    width: 100%;
    background-color: #000;
    overflow-x: hidden;
    color: #fff;
    font-family: Arial, sans-serif;
}

/* Prototype menu dynamique  style */

/* Image sur l'index de l'accuiel */
.image-accueil {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 0;
    z-index: 1;
}

.image-accueil img {
    width: 100%;
    max-height: 600px;
    object-fit: cover;
}

.image-accueil .overlay-text {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    padding: 10px 15px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    line-height: 1.4;
    max-width: 90%;
}

/* Pied de page Version 3 */
.footer-container {
    background-color: #111;
    color: #fff;
    padding: 3rem 2rem;
    text-align: center;
    font-size: 1rem;
}

.image-footer {
    margin: 1rem 0;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.image-footer img {
    width: 32px;
    height: 32px;
    transition: transform 0.3s ease;
}

.image-footer img:hover {
    transform: scale(1.2);
}

.contact-info {
    margin: 1rem 0;
}

.contact-info a {
    color: #fff;
    text-decoration: none;
    margin: 0 0.5rem;
}

.contact-info a:hover {
    text-decoration: underline;
}

.contact-info img {
    width: 20px;
    height: 20px;
    vertical-align: middle;
    margin-left: 0.3rem;
}

.info-autre {
    margin: 1rem 0;
    font-size: 0.9rem;
}

.info-autre a {
    color: #ccc;
    text-decoration: none;
    margin: 0 0.5rem;
}

.info-autre a:hover {
    text-decoration: underline;
}

.info-autre a::after {
    content: "|";
    margin-left: 0.5rem;
    color: #555;
}

.info-autre a:last-child::after {
    content: "";
}

.payment-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin: 1rem 0;
}

.payment-icons img {
    height: 30px;
    width: auto;
    transition: transform 0.3s ease;
}

.payment-icons img:hover {
    transform: scale(1.1);
}

/* systeme Version 3 pour le compte utilisateur */
.compte-container {
    max-width: 700px;
    margin: 50px auto;
    padding: 30px;
    background-color: #1a1a1a;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
}

.compte-container h2 {
    font-size: 26px;
    margin-bottom: 5px;
}

.compte-container p {
    color: #ccc;
    margin-bottom: 20px;
}

.compte-container h3 {
    margin: 25px 0 10px;
}

.parametres {
    margin-top: 20px;
    text-align: left;
}

.parametres summary {
    cursor: pointer;
    font-weight: bold;
    margin-bottom: 15px;
}

.parametres form {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.parametres input {
    flex: 1;
    padding: 10px;
    background: #111;
    border: 1px solid #333;
    color: #fff;
    border-radius: 6px;
}

.parametres button {
    padding: 10px 14px;
    background-color: #fff;
    color: #000;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
}

.parametres button:hover {
    background-color: #ddd;
}

.btn-supprimer {
    width: 100%;
    background-color: #c0392b !important;
    color: #fff !important;
}

.btn-supprimer:hover {
    background-color: #e74c3c !important;
}

/* fixation temporaire pour le sous menu*/
@media screen and (max-width: 600px) {
    .image-footer {
        flex-direction: row;
        gap: 1rem;
    }
    .contact-info {
        font-size: 0.9rem;
    }
    .info-autre {
        font-size: 0.8rem;
    }
    .menu-liste {
        flex-direction: column;
        gap: 0;
    }
}
.menu-item:hover > .sous-menu {
    display: block !important;
}
/* Dashboard Back-office */
.dashboard-container {
    max-width: 1000px;
    margin: 40px auto;
    padding: 20px;
    background-color: #111; /* fond noir */
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.6);
    color: #fff;
}

.dashboard-container h1 {
    font-size: 32px;
    margin-bottom: 25px;
    text-align: center;
    color: #fff;
}

.dashboard-container p {
    font-size: 16px;
    margin-bottom: 25px;
    text-align: center;
}

.dashboard-container ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 400px;
    margin: 0 auto 25px auto;
    padding: 0;
}

.dashboard-container ul li a {
    display: block;
    text-decoration: none;
    color: #fff;
    padding: 12px 20px;
    background-color: #222;
    border-radius: 8px;
    font-weight: bold;
    text-align: center;
    transition: 0.3s;
}

.dashboard-container ul li a:hover {
    background-color: #444;
}

/* Bouton création produit */
.dashboard-container .btn-create-product {
    display: block;
    width: 250px;
    margin: 0 auto;
    text-align: center;
    background-color: #008060;
    color: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: bold;
    text-decoration: none;
    transition: 0.3s;
}

.dashboard-container .btn-create-product:hover {
    background-color: #00a070;
}
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 24px;
    margin: 40px 0;
}

.product-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease;
    box-shadow: 0 6px 15px rgba(0,0,0,.08);
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 25px rgba(0,0,0,.12);
}

.product-image img {
    width: 100%;
    height: 260px;
    object-fit: cover;
}

.product-info {
    padding: 15px;
    text-align: center;
}

.product-info h3 {
    font-size: 16px;
    margin: 8px 0;
    color: #111;
}

.price {
    font-size: 15px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #000;
}

.btn-product {
    display: inline-block;
    padding: 8px 14px;
    background: #000;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
}

.btn-product:hover {
    background: #222;
}
/* === STRUCTURE MENU === */
.menu-nav {
    background: #0f1111;
    padding: 10px 20px;
    position: relative;
    z-index: 10000;
}

.menu-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* === MENU CATÉGORIES === */
.menu-liste {
    display: flex;
    list-style: none;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.menu-item {
    position: relative;
}

.menu-item > a {
    color: #fff;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 4px;
    transition: background 0.2s;
}

.menu-item > a:hover {
    background: #222;
}

/* === SOUS-MENUS === */
.sous-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #111;
    list-style: none;
    padding: 6px 0;
    min-width: 180px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.7);
}

.menu-item:hover > .sous-menu {
    display: block;
}

.sous-menu a {
    display: block;
    padding: 8px 14px;
    color: #fff;
    text-decoration: none;
}

.sous-menu a:hover {
    background: #222;
}

.menu-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo centré */
.logo-wrapper {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo img {
    height: 64px;
    display: block;
    margin-top: 10px; /* descend le logo */
}


/* Réseaux sociaux à droite du logo */
.logo-social {
    display: flex;
    gap: 14px;
}

/* Icônes */
.logo-social img {
    width: 26px;
    height: 26px;
    opacity: 0.85;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.logo-social img:hover {
    transform: scale(1.25);
    opacity: 1;
}


/* === BOUTONS COMPTE / PANIER === */
.menu-boutons {
    display: flex;
    gap: 10px;
    align-items: center;
}

.menu-boutons .btn {
    padding: 6px 14px;
    background: #fff;
    color: #000;
    text-decoration: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: bold;
    transition: background 0.2s, transform 0.2s;
}

.menu-boutons .btn:hover {
    background: #ddd;
    transform: translateY(-1px);
}

/* Panier style Amazon */
.menu-boutons .btn-cart {
    background: #ffa41c;
    border: 1px solid #ffa41c;
    color: #000;
}

.menu-boutons .btn-cart:hover {
    background: #ff9900;
}

