* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #fff;
    color: #333;
}

/* ================= HEADER ================= */

.header {
    height: 85px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 7%;
    background: white;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #e31b23;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 23px;
}

.logo h1 {
    color: #e31b23;
    font-size: 25px;
}

.logo span {
    color: #333;
    font-size: 11px;
    letter-spacing: 4px;
}

nav {
    display: flex;
    gap: 30px;
}

nav a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    transition: 0.3s;
}

nav a:hover {
    color: #e31b23;
}

.cart-button {
    border: none;
    background: #e31b23;
    color: white;
    padding: 13px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: bold;
}

.cart-button i {
    margin-right: 7px;
}

#cart-count {
    background: white;
    color: #e31b23;
    border-radius: 50%;
    padding: 3px 7px;
    margin-left: 5px;
}


/* ================= HERO ================= */

.hero {
    min-height: 520px;

    background:
        linear-gradient(
            90deg,
            rgba(255,255,255,0.96),
            rgba(255,255,255,0.55),
            rgba(255,255,255,0.1)
        ),
        url("photos/boutique.png");

    background-size: cover;
    background-position: center;

    display: flex;
    align-items: center;

    padding-left: 10%;
}

.hero-content {
    max-width: 600px;
}

.small-title {
    color: #e31b23;
    font-weight: bold;
    letter-spacing: 4px;
    margin-bottom: 15px;
}

.hero h2 {
    font-size: 65px;
    color: #222;
    margin-bottom: 15px;
}

.hero h2 span {
    color: #e31b23;
}

.hero p {
    font-size: 22px;
    line-height: 1.6;
}

.hero-button {
    display: inline-block;
    margin-top: 30px;
    background: #e31b23;
    color: white;
    padding: 16px 28px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

.hero-button:hover {
    transform: translateY(-3px);
    background: #b9161c;
}


/* ================= SERVICES ================= */

.services {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 35px 8%;
    gap: 25px;
    box-shadow: 0 3px 20px rgba(0,0,0,0.06);
}

.service {
    display: flex;
    align-items: center;
    gap: 15px;
}

.service i {
    color: #e31b23;
    font-size: 30px;
}

.service h3 {
    font-size: 15px;
}

.service p {
    color: #777;
    font-size: 13px;
    margin-top: 5px;
}


/* ================= SECTIONS ================= */

.categories,
.products-section,
.order-section {
    padding: 80px 8%;
}

.section-title {
    text-align: center;
    margin-bottom: 45px;
}

.section-title p {
    color: #e31b23;
    font-weight: bold;
    letter-spacing: 2px;
}

.section-title h2 {
    font-size: 38px;
    margin-top: 8px;
}


/* ================= CATEGORIES ================= */

.category-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.category {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 20px;
    text-align: center;
    padding: 35px 20px;
    transition: 0.3s;
}

.category:hover {
    transform: translateY(-8px);
    border-color: #e31b23;
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
}

.category i {
    font-size: 40px;
    color: #e31b23;
    margin-bottom: 18px;
}

.category h3 {
    font-size: 18px;
}


/* ================= PRODUCTS ================= */

.products-section {
    background: #fafafa;
}

.products {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}
.product {
    background: white;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.07);
    transition: 0.3s;
}

.product:hover {
    transform: translateY(-7px);
}

.product-image {
    height: 300px;
    position: relative;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.4s;
}

.product:hover img {
    transform: scale(1.05);
}

.discount,
.new {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 2;
    background: #e31b23;
    color: white;
    padding: 7px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

.favorite {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: white;
    color: #e31b23;
    cursor: pointer;
    font-size: 17px;
}

.product-info {
    padding: 20px;
}

.product-category {
    color: #999;
    font-size: 12px;
}

.product-info h3 {
    margin: 8px 0;
}

.stars {
    color: #f5b400;
    letter-spacing: 2px;
}

.price {
    margin: 15px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.price span {
    font-size: 20px;
    color: #e31b23;
    font-weight: bold;
}

.price del {
    color: #999;
    font-size: 13px;
}

.add-cart {
    width: 100%;
    border: none;
    background: #e31b23;
    color: white;
    padding: 13px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
}

.add-cart:hover {
    background: #b9161c;
}


/* ================= ORDER ================= */

.order-section {
    background: #f8f8f8;
}

.order-box {
    max-width: 900px;
    margin: auto;
    background: white;
    padding: 45px;
    border-radius: 25px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

.input-box {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 0 15px;
    height: 50px;
}

.input-box i {
    color: #e31b23;
    margin-right: 10px;
}

.input-box input,
.input-box select {
    border: none;
    outline: none;
    width: 100%;
    height: 100%;
    background: transparent;
}

.full {
    grid-column: span 2;
}


/* PAYMENT */

.payment {
    margin-top: 30px;
}

.payment h3 {
    margin-bottom: 15px;
}

.payment-option {
    border: 1px solid #eee;
    padding: 15px;
    border-radius: 10px;
    display: block;
}

.payment-option i {
    color: #e31b23;
    margin-right: 10px;
}


/* SUMMARY */

.order-summary {
    margin-top: 30px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.order-summary > div {
    display: flex;
    justify-content: space-between;
    margin: 12px 0;
}

.total {
    font-size: 23px;
    color: #e31b23;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.order-button {
    width: 100%;
    margin-top: 25px;
    padding: 17px;
    background: #e31b23;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
}


/* ================= CART ================= */

.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: none;
    justify-content: flex-end;
    z-index: 2000;
}

.cart-overlay.active {
    display: flex;
}

.cart {
    width: 420px;
    height: 100%;
    background: white;
    padding: 25px;
    display: flex;
    flex-direction: column;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.cart-header h2 {
    color: #e31b23;
}

.cart-header button {
    border: none;
    background: none;
    font-size: 25px;
    cursor: pointer;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px 0;
}

.empty-cart {
    text-align: center;
    color: #999;
    margin-top: 50px;
}
.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
    padding: 15px 0;
}

.cart-item h4 {
    margin-bottom: 5px;
}

.cart-item span {
    color: #e31b23;
    font-weight: bold;
}

.remove-item {
    border: none;
    background: #ffe5e5;
    color: #e31b23;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 22px;
    padding: 20px 0;
}

.cart-total strong {
    color: #e31b23;
}

.checkout-button {
    width: 100%;
    border: none;
    background: #e31b23;
    color: white;
    padding: 15px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
}


/* ================= FOOTER ================= */

footer {
    background: #191919;
    color: white;
    text-align: center;
    padding: 50px 20px 20px;
}

.footer-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.footer-logo h2 {
    color: #e31b23;
}

footer p {
    color: #bbb;
    margin: 15px 0;
}

.social {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 20px;
}

.social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e31b23;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.copyright {
    border-top: 1px solid #333;
    padding-top: 20px;
    color: #777;
}


/* ================= RESPONSIVE ================= */

@media(max-width: 900px) {

    nav {
        display: none;
    }

    .products {
        grid-template-columns: repeat(2, 1fr);
    }

    .category-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .services {
        grid-template-columns: repeat(2, 1fr);
    }

}

@media(max-width: 600px) {

    .header {
        padding: 0 20px;
    }

    .cart-button {
        padding: 10px;
    }

    .hero {
        padding: 40px 25px;
        min-height: 500px;
    }

    .hero h2 {
        font-size: 45px;
    }

    .products {
        grid-template-columns: 1fr;
    }

    .category-container {
        grid-template-columns: 1fr;
    }

    .services {
        grid-template-columns: 1fr;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .full {
        grid-column: span 1;
    }

    .order-box {
        padding: 25px;
    }

    .cart {
        width: 100%;
        
    }
    .form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group select {
    width: 100%;
    padding: 13px 15px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: white;
    font-size: 15px;
    outline: none;
    cursor: pointer;
}

.form-group select:focus {
    border-color: #d94b35;
}
#accueil {
    background-image: url("photos/background.jpg.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 580px;
}



.order-box .form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 24px;
    row-gap: 22px;
    align-items: start;
}

.order-box .form-grid .form-group {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 8px;
    margin: 0 0 16px;
}

.order-box .form-grid .form-group label {
    display: block;
    margin: 0;
    line-height: 1.6;
    font-size: 16px;
    font-weight: 600;
}

.order-box .form-grid .form-group select,
.order-box .form-grid .form-group input {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 10px 12px;
    font-size: 15px;
    line-height: 1.5;
}

.order-box .form-grid .form-group p {
    margin: 8px 0 0;
    line-height: 1.8;
}

.order-box .input-group.full {
    width: 100%;
    margin-top: 16px;
}

@media (max-width: 700px) {
    .order-box .form-grid {
        grid-template-columns: 1fr;
        row-gap: 16px;
    }
}

#orderForm #livraisonType,
#orderForm #prixLivraison {
    width: 100%;
    box-sizing: border-box;
}

#orderForm #prixLivraison {
    margin: 0;
    min-height: 45px;
    display: flex;
    align-items: center;
}

@media (max-width: 768px) {
  body {
    overflow-x: hidden;
  }

  img {
    max-width: 100%;
    height: auto;
  }

  .container {
    max-width: 100%;
  }
}

}