/* =========================
   RESET / BASE
========================= */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    background-color: #f5f6f8;
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

/* =========================
   NAVBAR
========================= */
.navbar-item-custom a {
    color: #fff;
}

.cart-icon {
    height: 18px;
    padding-left: 20px;
}

/* =========================
   FOOTER
========================= */
.footer-custom {
    width: 100%;
    text-align: center;
    background-color: #dfeaff;
    padding: 25px 0;
    margin-top: 80px;
}

/* =========================
   SECTIONS
========================= */
.section-soft {
    background-color: #f5f6f8;
    padding: 60px 0;
}

/* =========================
   HERO HOME (CUSTOM – SANS BOOTSTRAP)
========================= */
.hero-home {
    width: 100%;
    height: 60vh;
    min-height: 420px;
    position: relative;
    overflow: hidden;
}

.hero-slide {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
}

/* Overlay sombre */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 1;
}

/* Contenu */
.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    max-width: 1100px;
    margin: 0 auto;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    text-align: center;
    color: #fff;
    padding: 0 20px;
}

.hero-content h2 {
    font-size: 38px;
    font-weight: 700;
    margin-bottom: 12px;
}

.hero-content p {
    font-size: 18px;
    max-width: 700px;
}

/* =========================
   HOME – PRODUITS (FLEXBOX)
========================= */
.home-products {
    padding: 60px 40px;
    background-color: #f6f7f9;
}

.products-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    max-width: 1400px;
    margin: 0 auto;
}

/* =========================
   PRODUCT CARD
========================= */
.product-item {
    width: 260px;
    background: #ffffff;
    padding: 20px;
    border-radius: 12px;
    text-align: center;

    display: flex;
    flex-direction: column;

    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(0,0,0,0.12);
}

/* Image produit */
.product-item-img {
    width: 100%;
    height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.product-item-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Texte produit */
.product-item h5 {
    text-transform: uppercase;
    font-size: 14px;
    margin-bottom: 6px;
}

.product-subtitle {
    font-size: 13px;
    color: #666;
    margin-bottom: 10px;
}

.product-price {
    font-size: 15px;
    font-weight: 600;
    margin-top: auto;
}

/* =========================
   PAGE PRODUIT (DETAIL)
========================= */
.product-page-price {
    font-size: 20px;
    font-weight: 600;
}

.product-image-wrapper {
    width: 100%;
    height: 380px;
    background: #ffffff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* =========================
   FORMS / ACCOUNT
========================= */
.block-small {
    max-width: 600px;
    margin: 0 auto;
}

.form-check {
    background-color: #f4f8ff;
    padding: 20px;
    border-radius: 6px;
}

.register-block {
    padding: 20px;
    background-color: #fafafa;
    margin-top: 10px;
}

.col-form-label {
    font-weight: bold;
}

.order-summary {
    background-color: #f4f8ff;
    padding: 20px;
    margin-top: 22px;
    border-radius: 6px;
}

.account-item {
    background-color: #f1f2f6;
    padding: 50px;
    border-radius: 8px;
}

.account-item a {
    text-transform: uppercase;
    font-size: 13px;
    color: #4b6584;
    font-weight: bold;
}

.account-item a:hover {
    color: #778ca3;
    text-decoration: none;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 768px) {
    .home-products {
        padding: 40px 20px;
    }

    .product-item {
        width: 100%;
        max-width: 320px;
    }

    .product-item-img {
        height: 200px;
    }

    .hero-home {
        height: 50vh;
    }

    .hero-content h2 {
        font-size: 26px;
    }

    .hero-content p {
        font-size: 16px;
    }
}
/* =========================
   HERO CAROUSEL (JS)
========================= */
.hero-home {
    position: relative;
    width: 100%;
    height: 60vh;
    min-height: 420px;
    overflow: hidden;
}

/* Slides */
.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

/* Slide actif */
.hero-slide.is-active {
    opacity: 1;
    z-index: 1;
}

/* Overlay */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
}

/* Contenu */
.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    max-width: 1100px;
    margin: 0 auto;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    text-align: center;
    color: #fff;
    padding: 0 20px;
}

.hero-content h2 {
    font-size: 38px;
    font-weight: 700;
    margin-bottom: 12px;
}

.hero-content p {
    font-size: 18px;
    max-width: 700px;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-home {
        height: 50vh;
    }

    .hero-content h2 {
        font-size: 26px;
    }

    .hero-content p {
        font-size: 16px;
    }
}
.navbar {
    position: relative;
    z-index: 1000;
}
body {
    padding-top: 0 !important;
}
/* rendre la card entièrement cliquable */
.product-item-link{
  display:block;
  text-decoration:none;
  color:inherit;
  height:100%;
}

.product-item-link:hover{
  text-decoration:none;
  color:inherit;
}

/* IMPORTANT: dans bootstrap grid, évite width fixe */
.product-item{
  width:100%;
  height:100%;
}