/* -------------------------------------------------------
   FONTS & VARIABLES
------------------------------------------------------- */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;700&family=Inter:wght@300;400;500;600&display=swap');

:root {
    --bg-dark: #050609;
    --bg-darker: #020307;
    --gold: #d4af37;
    --text-main: #f5f5f5;
    --text-muted: #b5b5b5;
    --accent: #ffffff;
}

/* -------------------------------------------------------
   RESET
------------------------------------------------------- */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Inter", system-ui, sans-serif;
    background: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

/* -------------------------------------------------------
   TOP HEADER (LIVRAISON GRATUITE)
------------------------------------------------------- */

.top-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 28px;
    line-height: 28px;
    z-index: 9999;
    background: linear-gradient(90deg, #050505, #222222); /* noir / gris */
    color: #ffffff;
    font-size: 0.8rem;
    border-bottom: 1px solid rgba(255,255,255,0.18);
    overflow: hidden;
}

.top-header-inner {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
}

.top-header-marquee {
    display: inline-block;
    padding-left: 100%;
    animation: topbar-marquee 14s linear infinite;
}

@keyframes topbar-marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-100%); }
}

/* -------------------------------------------------------
   NAVBAR
------------------------------------------------------- */

.navbar {
    position: fixed;
    top: 28px; /* sous la top-header */
    left: 0;
    right: 0;
    z-index: 50;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 6vw;
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar-logo {
    display: flex;
    align-items: center;
}

.navbar-logo-img {
    height: 52px;  /* AJUSTE ICI la taille de ton logo */
    width: auto;
    display: block;
}

.navbar-menu {
    display: flex;
    gap: 26px;
    font-size: 0.9rem;
}

.navbar-menu a {
    position: relative;
    color: var(--text-muted);
    transition: 0.2s ease;
    padding-right: 6px; /* petit espace pour le badge panier */
}

.navbar-menu a:hover {
    color: var(--accent);
}

.navbar-menu a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width 0.2s ease;
}

.navbar-menu a:hover::after {
    width: 100%;
}

.navbar-cta {
    padding: 8px 18px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.18);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.12em;
}

/* Badge panier */

.cart-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    border-radius: 999px;
    background: var(--gold);
    color: #000;
    font-size: 0.7rem;
    margin-left: 4px;
    padding: 0 4px;
}

/* -------------------------------------------------------
   BOUTONS (GÉNÉRIQUE)
------------------------------------------------------- */

.btn-primary {
    background: var(--gold);
    color: #000;
    border: none;
    border-radius: 999px;
    padding: 11px 26px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 600;
    cursor: pointer;
}

.btn-secondary {
    background: rgba(0,0,0,0.65);
    border: 1px solid rgba(255,255,255,0.18);
    color: var(--accent);
    border-radius: 999px;
    padding: 11px 22px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
}

/* -------------------------------------------------------
   HERO SECTION (ACCUEIL)
------------------------------------------------------- */

.hero-section {
    padding-top: 120px; /* top-header + navbar */
    padding-bottom: 40px;
    background: radial-gradient(circle at top, #101017, #020307 60%);
}

/* Texte au-dessus de la bannière */

.hero-top-text {
    max-width: 900px;
    margin: 0 auto 20px auto;
    padding: 0 6vw;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(0,0,0,0.6);
    border: 1px solid rgba(212,175,55,0.5);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--gold);
}

.hero-title {
    font-family: "Playfair Display", serif;
    font-size: clamp(2.1rem, 3.3vw, 3.2rem);
    line-height: 1.1;
    margin-top: 14px;
}

.hero-title-center {
    text-align: center;
}

.hero-subtitle {
    max-width: 520px;
    margin: 10px auto 0 auto;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.hero-subtitle-center {
    text-align: center;
}

.hero-actions {
    display: flex;
    gap: 14px;
    margin-top: 16px;
}

.hero-actions-center {
    justify-content: center;
}

/* BANNIÈRE / CARROUSEL */

.hero-wrapper {
    width: 100%;
    max-width: 1200px;
    height: 60vh;
    margin: 0 auto;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    background: #000;
    box-shadow: 0 26px 60px rgba(0,0,0,0.8);
}

.hero-slider {
    position: absolute;
    inset: 0;
}

.slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}
.slide.active {
    opacity: 1;
}

.slide-right {
    object-position: 70% center;
}
.slide-center {
    object-position: center center;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top left, rgba(212,175,55,0.22), transparent 55%),
                radial-gradient(circle at bottom right, rgba(0,0,0,0.8), transparent 50%);
    pointer-events: none;
}

.hero-darken {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.4), rgba(0,0,0,0.9));
    pointer-events: none;
}

/* Texte en bas de la bannière */

.hero-bottom-strip {
    max-width: 900px;
    margin: 18px auto 0 auto;
    padding: 8px 6vw 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 22px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--text-muted);
}

/* Bandeau infos */

.banner-strip {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    border-top: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    background: rgba(0,0,0,0.5);
}

/* -------------------------------------------------------
   SECTIONS GÉNÉRALES
------------------------------------------------------- */

main {
    background: radial-gradient(circle at top, #101017, #020307 60%);
}

.section {
    padding: 72px 6vw;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-family: "Playfair Display", serif;
    font-size: 1.8rem;
    margin-bottom: 12px;
}

.section-subtitle {
    max-width: 540px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* -------------------------------------------------------
   CARTES AVANTAGES
------------------------------------------------------- */

.advantages-grid {
    margin-top: 32px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 24px;
}

.adv-card {
    padding: 20px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
    border: 1px solid rgba(255,255,255,0.06);
}

.adv-label {
    color: var(--gold);
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    margin-bottom: 6px;
}

.adv-title {
    font-size: 1rem;
    margin-bottom: 6px;
}

.adv-text {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* -------------------------------------------------------
   GRILLE PRODUITS (accueil + catalogue)
------------------------------------------------------- */

.product-grid {
    margin-top: 30px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 22px;
}

.product-card {
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.25);
}

.product-img {
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 12px;
}

.product-img img {
    width: 100%;
    display: block;
}

.product-price {
    font-weight: 600;
    margin-top: 8px;
}

.product-actions {
    margin-top: 8px;
}

/* -------------------------------------------------------
   PAGE PRODUIT (layout générique)
------------------------------------------------------- */

.product-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 32px;
    align-items: flex-start;
}

.product-image-large img {
    width: 100%;
    border-radius: 20px;
    display: block;
}

.product-details {
    padding: 8px 0;
}

.product-sizes {
    margin-top: 18px;
}

.size-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.size-pill {
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.25);
    background: transparent;
    color: var(--accent);
    font-size: 0.8rem;
    cursor: pointer;
}

.size-pill-active {
    background: var(--gold);
    color: #000;
    border-color: var(--gold);
}

.product-detail-list {
    margin-top: 6px;
    padding-left: 18px;
    font-size: 0.9rem;
    color: var(--text-muted);
}
.product-detail-list li + li {
    margin-top: 4px;
}

/* -------------------------------------------------------
   PAGE PANIER
------------------------------------------------------- */

.cart-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(260px, 0.8fr);
    gap: 26px;
    align-items: flex-start;
    margin-top: 24px;
}

.cart-items {
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.06);
    padding: 18px;
    background: rgba(255,255,255,0.02);
}

.cart-item {
    display: grid;
    grid-template-columns: 90px minmax(0, 1fr) 110px;
    gap: 14px;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.cart-item-img img {
    width: 100%;
    border-radius: 10px;
    display: block;
}

.cart-item-name {
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.cart-item-price {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
}

.qty-btn {
    width: 24px;
    height: 24px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.3);
    background: transparent;
    color: var(--accent);
    font-size: 0.8rem;
    cursor: pointer;
}

.remove-btn {
    margin-top: 8px;
    font-size: 0.75rem;
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    text-decoration: underline;
}

.cart-summary {
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.06);
    padding: 18px 18px 20px;
    background: rgba(255,255,255,0.02);
}

.cart-total-amount {
    font-size: 1.4rem;
    font-weight: 600;
    margin-top: 4px;
}

/* -------------------------------------------------------
   FOOTER
------------------------------------------------------- */

footer {
    background: var(--bg-darker);
    border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-inner {
    padding: 34px 6vw 26px;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 32px;
}

.footer-logo {
    margin-bottom: 10px;
}

.footer-text {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-title {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    margin-bottom: 12px;
}

.footer-links {
    list-style: none;
    font-size: 0.86rem;
    color: var(--text-muted);
}
.footer-links li + li {
    margin-top: 4px;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 6vw 20px;
    border-top: 1px solid rgba(255,255,255,0.04);
    font-size: 0.74rem;
    color: #797979;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

/* -------------------------------------------------------
   RESPONSIVE
------------------------------------------------------- */

@media (max-width: 900px) {
    .product-layout {
        grid-template-columns: 1fr;
    }
    .cart-layout {
        grid-template-columns: 1fr;
    }
    .cart-item {
        grid-template-columns: 70px minmax(0, 1fr);
        grid-template-rows: auto auto;
    }
}

@media (max-width: 780px) {

    .navbar-menu { display: none; }

    .hero-section {
        padding-top: 104px;
        padding-bottom: 30px;
    }

    .hero-wrapper {
        height: 45vh;
        border-radius: 16px;
    }

    .hero-top-text {
        margin-bottom: 16px;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .footer-inner {
        grid-template-columns: 1fr;
    }
}
