body {
    font-family: 'Sansation', sans-serif;
    background-color: #F4F4F4;
    margin: 0;
    padding: 0;
}

header {
    background-color: #fda707;
    padding: 10px;
    text-align: center;
    position: relative;
    user-select: none;
}

header img {
    max-width: 700px;
    width: 100%;
}

.login-button {
    position: absolute;
    right: 20px;
    top: 20px;
    padding: 10px 20px;
    background-color: #333;
    color: white;
    text-decoration: none;
    border-radius: 5px;
}

.login-button:hover {
    background-color: #575757;
}

nav {
    display: flex;
    justify-content: space-around;
    background-color: #333;
    color: white;
    padding: 10px 0;
}

nav a {
    color: white;
    text-decoration: none;
    padding: 14px 20px;
    font-weight: bold;
}

nav a:hover {
    background-color: #fda707;
    color: #333;
}

main {
    display: flex;
    flex-wrap: wrap;
    margin: 20px;
}

.sidebar {
    background-color: #fda707;
    padding: 20px;
    margin-right: 20px;
    height: 100%;
}

.sidebar ul {
    list-style-type: none;
    padding: 0;
}

.sidebar ul li {
    margin: 10px 0;
    font-size: 16px;
}

.sidebar ul li a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    padding: 10px;
    display: block;
}

.sidebar ul li a:hover {
    background-color: #0003ad;
    color: #339e44;
    border-radius: 5px;
}

.welcome {
    height: 800px;
    flex: 3;
    background: linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.5)),
        url('../image/welcome.png');
    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat;
    padding: 20px;
    font-size: 18px;
    border: 3px solid #fda707;
    text-align: center;
    line-height: 1.6;
}

.welcome h2 {
    font-size: 50px;
    background-color: #fda707;
    color: #333;
    font-weight: bold;
    text-transform: uppercase;
    margin-top: 10px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.welcome h1 {
    font-size: 40px;
    color: #333;
    font-weight: bold;
    text-transform: uppercase;
    margin-top: 2px;
    margin-bottom: 2px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.welcome p {
    font-size: 30px;
    color: #333;
    font-weight: bold;
    margin-top: 20px;
    margin-bottom: 2px;
}

.quality-info {
    height: 800px;
    flex: 3;
    background: linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.5)),
        url('../image/quality-info.png');
    /* Replace with your image path */
    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat;
    padding: 20px;
    font-size: 18px;
    border: 3px solid #fda707;
    text-align: center;
    line-height: 1.6;
}

.quality-info h2 {
    font-size: 50px;
    background-color: #fda707;
    color: #333;
    font-weight: bold;
    text-transform: uppercase;
    margin-top: 10px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.quality-info h1 {
    font-size: 40px;
    color: #333;
    font-weight: bold;
    text-transform: uppercase;
    margin-top: 2px;
    margin-bottom: 2px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.quality-info p {
    font-size: 30px;
    color: #333;
    font-weight: bold;
    margin-top: 10px;
    margin-bottom: 2px;
}

.delivery-info {
    height: 800px;
    flex: 3;
    background: linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.5)),
        url('../image/delivery-info.png');
    /* Replace with your image path */
    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat;
    padding: 20px;
    font-size: 18px;
    border: 3px solid #fda707;
    text-align: center;
    line-height: 1.6;
}

.delivery-info h2 {
    font-size: 50px;
    background-color: #fda707;
    color: #333;
    font-weight: bold;
    text-transform: uppercase;
    margin-top: 10px;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}



.delivery-info h1 {
    font-size: 40px;
    color: #333;
    font-weight: bold;
    text-transform: uppercase;
    margin-top: 2px;
    margin-bottom: 2px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.delivery-info p {
    font-size: 25px;
    color: #333;
    font-weight: bold;
    margin-top: 1px;
    margin-bottom: 1px;
}

.contact-info {
    height: 800px;
    flex: 3;
    background: linear-gradient(rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.7)),
        url('../image/contact-info.png');
    /* Replace with your image path */
    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat;
    padding: 20px;
    font-size: 18px;
    border: 3px solid #fda707;
    text-align: center;
    line-height: 1.6;
}

.contact-info h2 {
    font-size: 50px;
    background-color: #fda707;
    color: #333;
    font-weight: bold;
    text-transform: uppercase;
    margin-top: 10px;
    margin-bottom: 5px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.contact-info h1 {
    font-size: 40px;
    color: #333;
    font-weight: bold;
    text-transform: uppercase;
    margin-top: 2px;
    margin-bottom: 2px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.contact-info p {
    font-size: 25px;
    color: #333;
    font-weight: bold;
    margin-top: 1px;
    margin-bottom: 1px;
}

.repair-info {
    position: relative;
    flex: 3;
    background: linear-gradient(rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.7)),
        url('../image/repair.png');
    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat;
    padding: 20px;
    font-size: 18px;
    border: 3px solid #fda707;
    text-align: center;
    line-height: 1.6;
}

.repair-info h2 {
    font-size: 50px;
    background-color: #fda707;
    color: #333;
    font-weight: bold;
    text-transform: uppercase;
    margin-top: 10px;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.repair-info h1 {
    font-size: 40px;
    color: #333;
    font-weight: bold;
    text-transform: uppercase;
    margin-top: 2px;
    margin-bottom: 2px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.repair-info a {
    position: absolute;
    bottom: 10px;
    right: 10px;
    font-size: 16px;
    color: #333;
    text-align: right;

}

.repair-info a:hover {
    background-color: #fda707;
    color: white;
}

.products {
    flex: 3;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    overflow-y: auto;
    padding: 10px;
    border: 1px solid #ddd;
}

.no-scroll {
    overflow: hidden;
}

.product {
    padding: 20px;
    text-align: center;
    position: relative;
    cursor: pointer;
}

.highlight {
    color: white;
    background-color: red;
    padding-left: 5px;
    padding-right: 5px;
    padding-top: 2px;
    padding-bottom: 2px;
    display: inline-block;
    font-size: 20px;
}

.productPromo {
    position: absolute;
    top: -1px;
    left: -1px;
    max-width: 120px;
    height: auto;
}

.product img {
    width: 100%;
    max-height: 220px;
    object-fit: contain;
    background-color: #ffffff;
}

.product p {
    margin: 2px 0;
    font-size: 14px;
    line-height: 1.2;
}

.product:hover {
    transform: scale(1.01);
}


.edit {
    max-width: 100px;
    height: auto;
    margin-bottom: 0px;
    position: relative;
    cursor: pointer;
}

.modal-button {
    position: relative;
    padding: 10px 20px;
    background-color: #333;
    color: white;
    text-decoration: none;
    border-radius: 5px;
}

.modal-button:hover {
    background-color: #575757;
    cursor: pointer;
}

.modalinput input,
.modalinput select {
    width: 100%;
    padding: 10px;
    margin: 5px 0 10px;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.modalinput button {
    background-color: #333;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
}

.modalinput button:hover {
    background-color: #575757;
    cursor: pointer;
}

footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 10px 0;
    margin-top: 20px;
}

.social-icon {
    width: 30px;
    height: 30px;
    margin: 0 10px;
    vertical-align: middle;
    transition: transform 0.3s ease;
}

.social-icon:hover {
    transform: scale(1.2);
}

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.modal.active {
    display: block;
    opacity: 1;
    transform: scale(1);
}

.modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 20px;
    border: none;
    width: 100%;
    max-width: 900px;
    padding-left: 20px;
    display: flex;
    flex-wrap: nowrap;
    gap: 20px;
    box-sizing: border-box;
    transition: transform 0.4s ease;
    align-items: flex-start;
    border-radius: 15px;
}

label {
    display: block;
    margin: 10px 0 5px;
    font-weight: bold;
}

input[type="number"] {
    width: 100%;
    padding: 10px;
    margin: 5px 0 10px;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 5px;
    max-width: 75px;
}

.modal-content2 {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 20px;
    border: none;
    width: 100%;
    max-width: 900px;
    padding-left: 20px;
    align-items: flex-start;
    border-radius: 15px;
}


.modal-content2 {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 50%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    text-align: center;
}

.btnValider {
    background-color: #fda707;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
}

.btnValider:hover {
    background-color: #ffa600;
    transform: scale(1.009);
}

.btnSupp {
    background-color: #e91414;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
}

.btnSupp:hover {
    background-color: #ff0000;
    transform: scale(1.009);
}

.rienPanier {
    text-align: center;
    font-size: 20px;
    margin-top: 20px;
}

.modal-images-container {
    display: grid;
    grid-template-columns: 1, 1fr;
    gap: 10px;
    width: 50%;
}

.modal-image {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.modal-info {
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    margin-top: 0;
}

.modal-info p {
    margin: 5px 0;
}

.modal-info h3 {
    margin-top: 0;
    margin-bottom: 10px;
    padding: 0;
}

.main-image {
    width: 100%;
    height: auto;
    object-fit: contain;
    margin-bottom: 20px;
}

#modalPanier {
    position: absolute;
    bottom: 300px;
    right: 50px;
    width: 350px;
    background-color: white;
    border: 1px solid #ccc;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: none;
    z-index: 1000;
    overflow-y: auto;
    overflow-x: hidden;
    /* Correction ici */
    height: 500px;
}

#modalPanier.active {
    display: block;
}

#modalPanier .close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
}

.thumbnail-container {
    display: flex;
    gap: 10px;
    justify-content: space-around;
    margin-top: 10px;
    margin-bottom: 20px;
}

.panierImg:hover {
    transform: scale(1.1);
    cursor: pointer;
}

.nb-produit {
    background-color: red;
    padding: 5px;
    border-radius: 24px;
    color: white;
    position: absolute;
    top: -20px;
    right: 20px;
}

.thumbnail {
    width: 20%;
    height: auto;
    cursor: pointer;
    border: 2px solid transparent;
    object-fit: contain;
    transition: border 0.3s ease;
}

.thumbnail:hover {
    border: 2px solid #ccc;
}

.close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    padding-left: 10px;
    padding-right: 10px;
    padding-bottom: 5px;
    padding-top: 5px;
    cursor: pointer;
    background-color: #fda707;
    border-radius: 90px;
    user-select: none;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
    zoom: 1.009;
}

.product-info-table {
    width: 100%;
    border-collapse: collapse;
    border: 2px solid #ddd;
    font-size: 16px;
    margin-top: 10px;
    background-color: white;
}

.product-info-table th,
.product-info-table td {
    text-align: left;
    padding: 8px 12px;
    border-bottom: 1px solid #ddd;
}

.product-info-table th {
    background-color: #fda707;
    font-weight: bold;
}

.product-info-table td {
    color: #333333;
}

@media (max-width: 1200px) {
    .products {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 950px) {

    .modal {
        display: none;
        position: fixed;
        z-index: 1;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        overflow: auto;
        background-color: rgba(0, 0, 0, 0.4);
        opacity: 0;
        transform: scale(0.9);
        transition: opacity 0.4s ease, transform 0.4s ease;
        padding: 0;
    }

    .modal.active {
        display: block;
        opacity: 1;
        transform: scale(1);
    }

    .modal-content {
        background-color: #fefefe;
        margin: 10% auto;
        padding: 10px;
        border: none;
        width: 90%;
        padding: 10px;
        max-width: 900px;
        display: flex;
        flex-wrap: nowrap;
        gap: 20px;
        box-sizing: border-box;
        align-items: flex-start;
        transition: transform 0.4s ease;
    }

    .modal-images-container {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
        width: 50%;
    }

    .modal-image {
        width: 100%;
        height: auto;
        object-fit: cover;
    }

    .modal-info {
        width: 50%;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
    }

    .product-info-table {
        width: 100%;
        border-collapse: collapse;
        font-size: 16px;
        margin-top: 10px;
    }

    .product-info-table th,
    .product-info-table td {
        text-align: left;
        padding: 8px 12px;
        border-bottom: 1px solid #ddd;
    }

    .product-info-table th {
        background-color: #fda707;
        font-weight: bold;
    }

    .product-info-table td {
        color: #333333;
    }

    .thumbnail-container {
        display: flex;
        gap: 10px;
        justify-content: space-around;
        margin-top: 10px;
        margin-bottom: 20px;
    }


    .product-img {
        left: -8px;
    }

    .thumbnail {
        width: 20%;
        height: auto;
        cursor: pointer;
        border: 2px solid transparent;
        object-fit: contain;
        transition: border 0.3s ease;
    }

    .thumbnail:hover {
        border: 2px solid #ccc;
    }

    .close {
        position: absolute;
        top: 10px;
        right: 10px;
        font-size: 24px;
        cursor: pointer;
    }

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


    @media (max-width: 950px) {
        .modal-content {
            flex-direction: column;
            width: 90%;
            margin: 5% auto;
            padding: 15px;
        }

        .modal-images-container {
            width: 100%;
        }

        .modal-info {
            width: 100%;
            margin-top: 15px;
        }

        .thumbnail {
            width: 24%;
        }

        .main-image {
            width: 100%;
        }

        .product-info-table {
            font-size: 14px;
        }
    }

    nav {
        flex-direction: column;
        text-align: center;
    }

    nav a {
        font-size: 14px;
        padding: 4px 8px;
    }

    main {
        flex-direction: column;
        margin: 10px;
    }

    .sidebar {
        margin-right: 0;
        margin-bottom: 20px;
        width: 100%;
    }

    .products {
        grid-template-columns: 1fr;
    }

    .login-button {
        position: absolute;
        right: 2px;
        top: 2px;
        padding: 5px 5px;
        background-color: #333;
        color: white;
        text-decoration: none;
        border-radius: 5px;
    }

    .welcome {
        flex: 3;
        background: linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.5)),
            url('../image/welcome.png');
        background-size: cover;
        background-position: center bottom;
        background-repeat: no-repeat;
        padding: 20px;
        font-size: 18px;
        border: 3px solid #fda707;
        text-align: center;
        line-height: 1.6;
    }

    .quality-info {
        position: relative;
        flex: 3;
        background-image: none;
        background-size: cover;
        background-position: center bottom;
        background-repeat: no-repeat;
        padding: 20px;
        font-size: 18px;
        border: 3px solid #fda707;
        text-align: center;
        line-height: 1.6;
    }

    .delivery-info {
        position: relative;
        flex: 3;
        background-image: none;
        background-size: cover;
        background-position: center bottom;
        background-repeat: no-repeat;
        padding: 20px;
        font-size: 18px;
        border: 3px solid #fda707;
        text-align: center;
        line-height: 1.6;
    }

    .contact-info {
        position: relative;
        flex: 3;
        background-image: none;
        background-size: cover;
        background-position: center bottom;
        background-repeat: no-repeat;
        padding: 20px;
        font-size: 18px;
        border: 3px solid #fda707;
        text-align: center;
        line-height: 1.6;
    }

    .contact-info img {
        max-width: 50%;
    }

    .repair-info {
        position: relative;
        flex: 3;
        background-image: none;
        background-size: cover;
        background-position: center bottom;
        background-repeat: no-repeat;
        padding: 20px;
        font-size: 18px;
        border: 3px solid #fda707;
        text-align: center;
        line-height: 1.6;
    }

    .welcome h1,
    .quality-info h1,
    .delivery-info h1,
    .contact-info h1,
    .repair-info h1 {
        font-size: 20px;
    }

    .welcome h2,
    .quality-info h2,
    .delivery-info h2,
    .contact-info h2,
    .repair-info h2 {
        font-size: 30px;
    }

    .welcome p,
    .quality-info p,
    .delivery-info p,
    .contact-info p,
    .repair-info p {
        font-size: 15px;
    }

    .welcome a,
    .quality-info a,
    .delivery-info a,
    .contact-info a,
    .repair-info a {
        font-size: 10px;
        /* Réduire la taille du lien dans la section réparation */
        text-align: center;
    }

    /* Footer icons */

    footer .social-icon {
        width: 20px;
        height: 20px;
    }

    .sidebar {
        display: none;
        position: absolute;
        width: 90%;
        top: 60px;
        left: 0;
        z-index: 1000;
        box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
        min-height: fit-content;
    }

    .toggle-sidebar {
        font-weight: bold;
        margin-bottom: 20px;
        margin-top: 10px;
        display: block;
        background-color: #fda707;
        color: #333;
        font-size: 18px;
        padding: 10px;
        border: none;
        cursor: pointer;
        text-align: center;
        width: 100%;
    }

    .sidebar.open {
        display: block;
        background-color: #fda707;
        color: #333;
        font-size: 18px;
        padding: 10px;
        border: none;
        cursor: pointer;
        text-align: center;
        width: 95%;
        height: auto;
    }

    .sidebar ul {
        padding: 10px;
    }

    .sidebar ul li {
        padding: 10px 0;
        border-bottom: 1px solid #ddd;
    }

    .sidebar ul li a {
        color: #333;
        text-decoration: none;
        display: block;
    }
}