* {
    box-sizing: border-box;
}

body {
    margin: 0;
    overflow-x: hidden;
        background-color: #FAF8FB;

}
body{
    background-color: #FAF8FB;
}
h1{
    text-align:center;
    margin-top:40px;
    font-weight:700;
}

.about-section {
    background-color: #FAF8FB;
    padding: 100px 0;

}

.about-container {
    max-width: 1200px;
    margin: auto;
    display: flex;
    align-items: center;
    gap: 60px;
    padding: 0 20px;
    flex-direction: row-reverse;
}

.about-image {
    flex: 1;
}

.about-image img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    height: 450px;
}

.about-content {
    flex: 1;
}

.about-content h2 {
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 20px;
    color: #111;
}

.about-content p {
    font-size: 17px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 20px;
}

.about-btn {
    display: inline-block;
    padding: 14px 32px;
    background: #5A39C9;
    color: #fff;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s;
}

.about-btn:hover {
    background: #A783FF;
}




.hero {
    width: 100%;
    height: 600px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-overlay{
    position:absolute;
    width:100%;
    height:100%;
}


.slides span {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: fadeSlider 6s infinite;
}

.slides span:nth-child(1) {
    background-image: url('../images/electronic-back4.jpg');
    animation-delay: 0s;
}
.slides span:nth-child(2) {
    background-image: url('../images/electronic-back9.jpg');
    animation-delay: 2s;
}
.slides span:nth-child(3) {
    background-image: url('../images/electronic-back6.jpg');
    animation-delay: 4s;
}

@keyframes fadeSlider {
    0% { opacity: 0; }
    10% { opacity: 1; }
    30% { opacity: 1; }
    40% { opacity: 0; }
    100% { opacity: 0; }
}

.hero-content{
    position:relative;
    text-align:center;
    color:white;
    max-width:650px;
}

.hero-content h1{
    font-size:48px;
    font-weight:800;
}

.hero-content p{
    font-size:18px;
    margin-top:10px;
    opacity:0.9;
}

.hero-btn{
    margin-top:20px;
    padding:12px 28px;
    /* background:#0d6efd; */
    background:#000000;
    color:white;
    border:none;
    border-radius:30px;
    font-size:18px;
    transition:0.3s;
}
.hero-btn:hover{
    background: transparent;
}

.hero-btn a{
    color: white;
    text-decoration: none;
}




.allcategory{
    background: #fff;
    padding-top: 30px;
    padding-left: 120px;

}
 .titre-category{
    text-align: center;
    font-size: 36px;
    font-weight: 800;
    color: #111;
}
.lignecategory1{
    display: flex;
    gap: 20px;
    padding-top: 25px;
}
.lignecategory2{
    display: flex;
    margin-top: 15px;
    gap: 25px;
}
.cart{
    width: 350px;
    height: 300px;
    border-radius: 20px;
    cursor: pointer;
}
.casque{
    background-image: url('https://st4.depositphotos.com/3123063/22187/i/450/depositphotos_221874312-stock-photo-wireless-white-headphones-yellow-background.jpg'); 
    background-color: rgba(81, 80, 0, 0.4); 
    background-blend-mode: darken;  
}
.clavier{
    background-image:url('https://www.cybertek.fr/blog/wp-content/uploads/2022/12/Comment-ajouter-de-nouveaux-effets-RGB-sur-son-clavier-PC.jpeg');
    background-color: rgba(0,0,0,0.4); 
    background-blend-mode: darken;  
}
.laptop{
    background-image:url('https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcRDFtQFWZxb5Shtmcdch4sVBGdrwrb7rngLdkAIMh5Bt_--IYZrElgqRp9D2b-D2Ivl8Wo&usqp=CAU');
    background-color: rgba(93, 52, 0, 0.4); 
    background-blend-mode: darken;  
}
.souris{
    background-image: url('https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSbeIjHAZspvunRbkiij_AGC5YPjg-y64rWUQ&s');
    background-color: rgba(0, 62, 78, 0.4); 
    background-blend-mode: darken;  
}
.tablette{
    background-image: url('https://media.ouest-france.fr/v1/pictures/MjAyMzA2OWIxNTQyMjgwMzc0N2QzMWExM2UyZDRiZWI1MGI2YjY?width=1260&height=708&focuspoint=50%2C25&cropresize=1&client_id=bpeditorial&sign=9938ad4a347bf7c648e0345f279d2aac49ccf29e9050709d0fb4da044a189a56');
    background-color: rgba(6, 75, 0, 0.4); 
    background-blend-mode: darken;  
}
.cartlong{
    width: 550px;
    height: 300px;
    border-radius: 20px;
    cursor: pointer;
}
.cart, .cartlong {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.phone{
    background-image: url('https://image-cdn.hypb.st/https%3A%2F%2Fhypebeast.com%2Fimage%2F2023%2F02%2Fiphone-15-pro-max-dark-red-color-details-info-001.jpg?q=75&w=800&cbr=1&fit=max');
    background-color: rgba(53, 0, 0, 0.4); 
    background-blend-mode: darken;  
}

.cart p{
    color: #fff;
    font-weight: bolder;
    font-size: 60px;
    padding-left:30px;
    padding-top: 70px;
}
.cartlong p{
    color: #fff;
    font-weight: bolder;
    font-size: 70px;
    padding-left:30px;
    padding-top: 70px;
}
.cart-btn {
    padding: 13px 20px;
    color: #111;
    font-size: 15px;
    font-weight: 500;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: 0.3s ease;
    margin-left: 30px;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(6px);
    width: 150px;
    text-decoration: none;
}

.cart-btn:hover {
    transform: translateY(-2px);
}
/* meilleure vente */
.best-seller {
    margin-top: 60px;
    background: #ffffff;
    /* padding: 40px ; */
}

.section-title {
    text-align: center;
    font-size: 36px;
    font-weight: 800;
    padding-top: 70px;
    /* margin-bottom: 60px; */
    color: #111;
}

.best-seller-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    max-width: 1300px;
    margin: auto;
    padding-top: 40px;
}

.product-card {
    background: #fff;
    border: 1px solid #eee;
    padding: 25px;
    text-align: center;
    transition: 0.3s ease;
}

.product-image img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    margin-bottom: 20px;
}
.product-image :hover{
    transform: translateY(-8px)scale(1.05);
}

.product-title {
    font-size: 16px;
    font-weight: 500;
    color: #222;
    margin-bottom: 15px;
}

.product-price {
    display: flex;
    justify-content: center;
    gap: 10px;
    align-items: center;
}

.price-current {
    font-size: 18px;
    font-weight: 700;
    color: #7b2cff; 
}

.price-old {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
}

.see-all {
    text-align: center;
    margin-top: 60px;
}

.see-all-btn {
    display: inline-block;
    padding: 14px 40px;
    background: #7b2cff;
    color: white;
    font-size: 16px;
    font-weight: 600;
    border-radius: 30px;
    text-decoration: none;
    transition: 0.3s;
}

.see-all-btn:hover {
    background: #5a39c9;
}

/* ===== PROMOTION BANNER ===== */
.fiche-promo {
    display: flex;
    background: #fff;
    margin-top: 80px;
    height: 500px;
    overflow: visible; 
    position: relative;
}

.promo-image {
    position: relative;
    width: 60%;
    clip-path: polygon(0 0, 85% 0, 100% 100%,0 100%);
    overflow: visible;

}

.promo-image img {
    width: 100%;
    height: 100%;
    
}

.promo-badge {
    position: absolute;
    top: 30%;
    left: calc(80% - 80px); 
    transform: translateY(-50%) rotate(-15deg);
    width: 130px;
    height: 130px;
    background: #e02020;
    color: white;
    font-weight: 700;
    font-size: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    z-index: 50;
}

.promo-content {
    width: 40%;
    padding: 80px 60px;
}

.promo-content h4 {
    font-size: 24px;
    font-weight: 600;
}

.promo-content h4 span {
    font-size: 90px;
    font-weight: 700;
    
}

.promo-desc {
    font-size: 22px;
    line-height: 1.5;
    margin-bottom: 10px;
}

.promo-note {
    font-size: 14px;
    color: #777;
    margin-bottom: 40px;
}
.promo-btn {
    display: inline-block;
    padding: 16px 48px;
    background: #7b2cff;
    color: white;
    font-size: 18px;
    font-weight: 600;
    border-radius: 30px;
    text-decoration: none;
    transition: 0.3s;
}

.promo-btn:hover {
    background: #5a39c9;
}

/* livraison */
.livraison{
    display: flex;
    background-color: #fff;
    margin-top: 40px;

}
.content-livraison{
    display: flex;
    margin-top: 40px;
    margin-left: 70px;
    margin-bottom: 50px;
    gap: 25px;
    
}
.content-livraison svg{
    width:10%;
    fill: #9a63f9;
    padding-top: 10px;
}
.content-livraison p{
    padding-top: 20px;
    font-size: 20px;
    font-weight: bold;
}


/* ===== 2 PICTURES ===== */
.two-picture {
    display: flex;
    gap: 40px;
    /* margin: 60px; */
    margin-top: 60px;
    margin-bottom: 60px;
    margin-left: 50px;
    margin-right: 50px;
}


.picture1,
.picture2 {
    position: relative;
    width: 50%;
    height: 500px;
    padding: 60px;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.picture1 {
    background-image: url("https://static.wixstatic.com/media/c22c23_e140bfa8cd6f4cb2ac5ee6e204f64073~mv2.jpg");
}

.picture2 {
    background-image: url("https://static.wixstatic.com/media/c837a6_d84a631864a442a496670bc2d787c6a0~mv2.jpg");
}

.label {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 10px;
}

.picture1 h3,
.picture2 h3 {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}

.desc {
    font-size: 18px;
    margin-bottom: 40px;
}

.picture-btn {
    width: fit-content;
    padding: 14px 36px;
    background: white;
    color: #111;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: 0.3s ease;
}

.picture-btn:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
}



/* =========================
   RESPONSIVE GLOBAL
========================= */

/* ===== TABLETTE (= 1024px) ===== */
@media (max-width: 1024px) {

    .hero {
        height: 450px;
    }

    .hero-content h1 {
        font-size: 36px;
    }

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

    .about-image img {
        height: auto;
    }

    .allcategory {
        padding-left: 40px;
        padding-right: 40px;
    }

    .lignecategory1,
    .lignecategory2 {
        flex-wrap: wrap;
        justify-content: center;
    }

    .cart,
    .cartlong {
        width: 100%;
        max-width: 500px;
    }

    .fiche-promo {
        flex-direction: column;
        height: auto;
    }

    .promo-image,
    .promo-content {
        width: 100%;
    }

    .promo-badge {
        left: 70%;
    }

    .livraison {
        flex-wrap: wrap;
        justify-content: center;
    }

    .content-livraison {
        margin-left: 20px;
        width: 45%;
    }

    .two-picture {
        flex-direction: column;
    }

    .picture1,
    .picture2 {
        width: 100%;
    }
}

/* ===== MOBILE (= 768px) ===== */
@media (max-width: 768px) {

    .hero {
        height: 380px;
        padding: 20px;
    }

    .hero-content h1 {
        font-size: 28px;
    }

    .hero-content p {
        font-size: 15px;
    }

    .hero-btn {
        font-size: 16px;
    }

    .about-section {
        padding: 60px 0;
    }

    .about-content h2 {
        font-size: 28px;
    }

    .titre-category {
        font-size: 28px;
    }

    .cart p,
    .cartlong p {
        font-size: 42px;
    }

    .best-seller-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 20px;
    }

    .product-image img {
        height: 160px;
    }

    .promo-content h4 span {
        font-size: 60px;
    }

    .content-livraison {
        width: 100%;
        margin-left: 0;
        justify-content: center;
    }

    .content-livraison p {
        font-size: 16px;
    }

    .two-picture {
        margin: 30px 20px;
    }

    .picture1 h3,
    .picture2 h3 {
        font-size: 34px;
    }
}

/* ===== PETIT MOBILE (= 480px) ===== */
@media (max-width: 480px) {

    .hero-content h1 {
        font-size: 22px;
    }

    .hero-content p {
        font-size: 14px;
    }

    .cart p,
    .cartlong p {
        font-size: 32px;
    }

    .best-seller-grid {
        grid-template-columns: 1fr;
    }

    .promo-badge {
        width: 90px;
        height: 90px;
        font-size: 14px;
        left: 65%;
    }

    .picture1,
    .picture2 {
        height: 380px;
        padding: 30px;
    }
}

/* ===== GRAND ÉCRAN (= 1400px) ===== */
@media (min-width: 1400px) {

    .hero {
        height: 700px;
    }

    .hero-content h1 {
        font-size: 56px;
    }

    .best-seller-grid {
        max-width: 1500px;
    }

    .about-container {
        max-width: 1400px;
    }
}




