/* =====================
   BOX-SIZING GLOBAL
   ===================== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    --font-main: 'Jost', sans-serif;
    --color-black: #000000;
    --border-thin: 1px solid #e5e5e5;
}

/* =====================
   BASE
   ===================== */
body {
    margin: 0;
    padding-top: 90px;
    font-family: var(--font-main);
    color: var(--color-black);
    font-weight: 200;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    background-color: #fff;
}

html {
    overflow-x: hidden;
}

/* =====================
   HEADER
   ===================== */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 20px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    z-index: 100;
    border-bottom: var(--border-thin);
}

.logo {
    font-family: var(--font-main);
    font-weight: 100;
    font-size: 50px;
    text-transform: uppercase;
    letter-spacing: 8px;
    color: var(--color-black);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    position: relative;
    z-index: 101;
}

.cart-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: #000;
    color: #fff;
    font-size: 9px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
}

/* =====================
   FOOTER
   ===================== */
footer {
    padding: 30px 20px;
    border-top: var(--border-thin);
    text-align: center;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #666;
    background: #fafafa;
}

/* =====================
   LAYOUTS
   ===================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    box-sizing: border-box;
}

.section-title {
    text-align: center;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin: 60px 0 40px;
    font-weight: 400;
    color: #333;
}

/* =====================
   GRILLE PRODUITS
   ===================== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 40px;
}

.product-card {
    cursor: pointer;
    transition: opacity 0.3s;
}

.product-card:hover {
    opacity: 0.85;
}

.product-img-wrap {
    aspect-ratio: 3/4;
    background: #f5f5f5;
    overflow: hidden;
    margin-bottom: 15px;
    position: relative;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.product-card:hover .product-img {
    transform: scale(1.05);
}

.product-details {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    font-size: 13px;
    padding: 0 5px;
}

.product-name {
    text-transform: uppercase;
    margin-bottom: 5px;
    font-weight: 400;
    letter-spacing: 1px;
    font-size: 12px;
}

.product-price {
    font-weight: 300;
    font-size: 13px;
}

.prix-barre {
    text-decoration: line-through;
    color: #999;
    font-size: 0.9em;
    margin-right: 8px;
}

.prix-actuel {
    font-weight: 400;
}

.badge-promo {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #d93025;
    color: #fff;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    z-index: 10;
}

/* =====================
   DÉTAIL PRODUIT — GRILLE
   ===================== */
.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
}

#detail-images img {
    max-width: 100%;
    height: auto;
    display: block;
}

#d-main-img {
    width: 100%;
    height: 70vh;
    object-fit: cover;
    background: #f5f5f5;
}

#d-gallery {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.gallery-thumb {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
    opacity: 0.6;
}

.gallery-thumb:hover,
.gallery-thumb.active {
    opacity: 1;
    border-color: #000;
}

#detail-info {
    align-self: start;
    padding-top: 20px;
}

.detail-cat {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #999;
    margin-bottom: 25px;
}

.detail-title {
    font-size: 32px;
    font-weight: 300;
    text-transform: uppercase;
    margin: 0 0 15px 0;
    letter-spacing: 2px;
    line-height: 1.2;
}

.detail-price {
    font-size: 22px;
    font-weight: 300;
    margin-bottom: 35px;
    padding-bottom: 25px;
    border-bottom: 1px solid #eee;
}

.detail-desc {
    font-size: 14px;
    color: #555;
    line-height: 1.8;
    margin-bottom: 40px;
    font-weight: 300;
}

/* =====================
   BOUTONS & FORMULAIRES
   ===================== */
.btn-pill {
    display: block;
    width: 100%;
    padding: 18px;
    border: 1px solid #000;
    background: none;
    color: #000;
    text-transform: uppercase;
    text-align: center;
    letter-spacing: 3px;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 25px;
    font-family: var(--font-main);
    font-weight: 500;
}

.btn-pill:hover {
    background: #000;
    color: #fff;
}

select,
input,
textarea {
    width: 100%;
    padding: 14px;
    border: var(--border-thin);
    margin-bottom: 5px;
    font-family: inherit;
    font-size: 14px;
    background: #fafafa;
    transition: border-color 0.3s;
}

select:focus,
input:focus {
    outline: none;
    border-color: #000;
    background: #fff;
}

/* =====================
   COULEURS (sélecteur)
   ===================== */
.color-picker {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.color-option {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #ddd;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.color-option.selected {
    border-color: #000;
    transform: scale(1.15);
}

.color-option:hover {
    transform: scale(1.2);
}

/* =====================
   OVERLAY & DRAWERS
   ===================== */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    opacity: 0;
    pointer-events: none;
    transition: 0.3s;
    z-index: 500;
    backdrop-filter: blur(3px);
}

.overlay.active {
    opacity: 1;
    pointer-events: all;
}

.drawer {
    position: fixed;
    top: 0;
    height: 100%;
    background: #fff;
    z-index: 1000;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 20px 30px;
    display: flex;
    flex-direction: column;
    width: 360px;
    box-shadow: 0 0 30px rgba(0,0,0,0.15);
    overflow-y: auto;
    box-sizing: border-box;
}

.drawer-left {
    left: 0;
    transform: translateX(-100%);
}

.drawer-right {
    right: 0;
    transform: translateX(100%);
}

.drawer.open {
    transform: translateX(0);
}

.close-drawer {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 28px;
    background: none;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.close-drawer:hover {
    transform: rotate(90deg);
}

/* =====================
   MENU NAVIGATION
   ===================== */
.nav-list {
    list-style: none;
    padding: 0;
    margin-top: 60px;
}

.nav-item {
    padding: 20px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 400;
    color: #333;
    transition: color 0.2s;
}

.nav-item:hover {
    color: #000;
}

.sub-menu {
    display: none;
    padding-left: 20px;
    margin-top: 0;
    margin-bottom: 15px;
}

.sub-menu.show {
    display: block;
    animation: slideDown 0.3s ease;
}

.sub-link {
    display: block;
    padding: 12px 0;
    color: #777;
    font-size: 13px;
    text-decoration: none;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color 0.2s;
    border-bottom: 1px solid #f5f5f5;
}

.sub-link:hover {
    color: #000;
    padding-left: 5px;
}

.nav-arrow {
    font-size: 18px;
    font-weight: 300;
    transition: transform 0.3s;
    display: inline-block;
    color: #999;
}

.nav-item.open .nav-arrow {
    transform: rotate(45deg);
    color: #333;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =====================
   PANIER DRAWER
   ===================== */
.cart-items {
    flex-grow: 1;
    overflow-y: auto;
    margin: 30px 0;
    padding-right: 5px;
}

.cart-item {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    font-size: 12px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.cart-item img {
    width: 70px;
    height: 90px;
    object-fit: cover;
    background: #f5f5f5;
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
    font-size: 12px;
}

.cart-item-details {
    color: #888;
    font-size: 11px;
    margin-bottom: 10px;
}

.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-item button.qty-btn {
    width: 24px;
    height: 24px;
    border: 1px solid #ddd;
    background: none;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.cart-item button.qty-btn:hover {
    border-color: #000;
    background: #000;
    color: #fff;
}

.cart-item button.remove-btn {
    background: none;
    border: none;
    color: #bbb;
    cursor: pointer;
    font-size: 18px;
    margin-left: auto;
    transition: color 0.2s;
    padding: 0;
    width: auto;
    height: auto;
}

.cart-item button.remove-btn:hover {
    color: #d93025;
}

/* =====================
   HERO BANNER (5 bandes)
   ===================== */
.hero-bands-container {
    display: flex;
    width: 100%;
    height: 85vh;
    position: relative;
    overflow: hidden;
    background-color: #000;
}

.hero-band {
    flex: 1;
    position: relative;
    height: 100%;
    border-right: 1px solid rgba(255,255,255,0.08);
    overflow: hidden;
}

.hero-band:last-child {
    border-right: none;
}

.hero-band .layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: opacity 2s ease-in-out, transform 8s ease;
    opacity: 0;
    z-index: 1;
}

.hero-band .layer.active {
    opacity: 1;
    z-index: 2;
    transform: scale(1.05);
}

.hero-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    text-align: center;
    pointer-events: none;
    width: 90%;
}

.hero-slogan {
    color: #fff;
    font-size: 3.5rem;
    font-weight: 200;
    text-transform: uppercase;
    letter-spacing: 8px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.6);
    margin: 0;
    animation: fadeInUp 1.5s ease forwards;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =====================
   RÉSEAUX SOCIAUX
   ===================== */
.social-bubbles {
    position: fixed;
    bottom: 25px;
    right: 25px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 999;
}

.bubble {
    background: #fff;
    border: 1px solid #eee;
    color: #000;
    font-size: 20px;
    text-decoration: none;
    line-height: 1;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: all 0.3s;
}

.bubble:hover {
    background: #000;
    color: #fff;
    border-color: #000;
    transform: translateY(-3px);
}

/* =====================
   PAGE PANIER COMPLÈTE
   ===================== */
.cart-wrapper {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}

.page-header {
    text-align: center;
    margin-bottom: 50px;
    border-bottom: 1px solid #eee;
    padding-bottom: 25px;
}

.page-title {
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 4px;
    font-weight: 400;
    margin: 0;
}

.order-date {
    font-size: 11px;
    color: #888;
    margin-top: 12px;
    display: block;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-section {
    margin-bottom: 50px;
}

.form-section .section-title {
    text-align: left;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 3px;
    border-bottom: 1px solid #000;
    padding-bottom: 14px;
    margin-bottom: 30px;
    font-weight: 500;
    margin-top: 0;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.input-group label {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
    color: #555;
    font-weight: 500;
}

.input-field {
    width: 100%;
    padding: 12px 0;
    border: none;
    border-bottom: 1px solid #ddd;
    font-family: 'Jost', sans-serif;
    font-size: 15px;
    background: transparent;
    transition: 0.3s;
    box-sizing: border-box;
    border-radius: 0;
}

.input-field:focus {
    border-bottom-color: #000;
    outline: none;
}

table.cart-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 40px;
}

.cart-table th {
    text-align: left;
    padding: 16px 0;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-bottom: 1px solid #000;
    font-weight: 500;
    color: #333;
}

.cart-table td {
    padding: 24px 0;
    border-bottom: 1px solid #eee;
    font-size: 14px;
    vertical-align: middle;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.item-name {
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
}

.item-details {
    font-size: 12px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-remove {
    background: none;
    border: none;
    color: #bbb;
    cursor: pointer;
    font-size: 20px;
    margin-left: 10px;
    transition: 0.2s;
    line-height: 1;
}

.btn-remove:hover {
    color: #000;
}

.total-section {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 14px;
    margin-bottom: 50px;
}

.total-row {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 400;
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 400px;
}

.total-row span:first-child {
    color: #666;
}

.total-row.total-net {
    font-size: 18px;
    font-weight: 600;
    border-top: 1px solid #000;
    padding-top: 18px;
    margin-top: 5px;
    color: #000;
}

.actions-footer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 10px;
    margin-bottom: 60px;
}

.btn-action {
    padding: 20px 16px;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 2px;
    cursor: pointer;
    transition: 0.3s;
    text-align: center;
    font-family: 'Jost', sans-serif;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid;
}

.btn-print {
    background: #fff;
    color: #000;
    border-color: #ccc;
}

.btn-print:hover {
    border-color: #000;
    background: #f9f9f9;
}

.btn-order {
    background: #000;
    color: #fff;
    border-color: #000;
}

.btn-order:hover {
    background: #222;
}

.client-info {
    font-size: 13px;
    margin-bottom: 30px;
}

.client-info div {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 4px;
    border-left: 3px solid #000;
}

.client-info p {
    margin: 6px 0;
    color: #444;
    font-size: 13px;
}

.client-info strong {
    font-weight: 500;
    color: #000;
}

/* =====================
   TOAST NOTIFICATION
   ===================== */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #000;
    color: #fff;
    padding: 15px 30px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    z-index: 3000;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    white-space: nowrap;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* =====================
   PRINT STYLES
   ===================== */
@media print {
    header, .actions-footer, .btn-remove, .toggle-menu, footer, .social-bubbles, .action-col, .page-header, .drawer, .overlay, .hero-bands-container {
        display: none !important;
    }
    body {
        background: #fff;
        color: #000;
        font-size: 11pt;
        margin: 0;
        padding: 0;
        padding-top: 0 !important;
    }
    .cart-wrapper {
        margin: 0;
        padding: 20px;
        max-width: 100%;
    }
    .form-section {
        margin-bottom: 20px;
    }
    .input-field {
        border: none;
        border-bottom: 1px dotted #ccc;
        padding: 0;
        font-weight: 500;
    }
    .form-grid {
        gap: 15px;
        margin-bottom: 10px;
    }
    .cart-table th {
        border-bottom: 2px solid #000;
    }
    .cart-table td {
        border-bottom: 1px solid #ccc;
        padding: 10px 0;
    }
    #cart-page {
        display: block !important;
        padding-top: 0 !important;
    }
    #main-content, #product-detail, #hero {
        display: none !important;
    }
}

/* =====================
   RESPONSIVE MOBILE
   ===================== */
@media (max-width: 768px) {
    .logo {
        font-size: 32px;
        letter-spacing: 4px;
    }

    .hero-bands-container {
        height: 60vh;
    }

    .hero-slogan {
        font-size: 1.6rem;
        letter-spacing: 4px;
    }

    .detail-grid {
        grid-template-columns: 1fr !important;
        gap: 30px;
    }

    #d-main-img {
        height: 50vh;
    }

    .detail-title {
        font-size: 24px;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .drawer {
        width: 85%;
        max-width: 320px;
        padding: 15px 20px;
    }

    .nav-item {
        padding: 16px 0;
        font-size: 13px;
    }

    .sub-link {
        font-size: 12px;
        padding: 10px 0;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .actions-footer {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .total-row {
        max-width: 100%;
    }

    .container {
        padding: 20px 15px;
    }

    .section-title {
        margin: 30px 0 25px;
        font-size: 12px;
    }

    .social-bubbles {
        bottom: 15px;
        right: 15px;
    }

    .bubble {
        width: 38px;
        height: 38px;
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: 1fr;
    }

    .hero-slogan {
        font-size: 1.3rem;
        letter-spacing: 2px;
    }
}

/* =====================
   SCROLLBAR STYLING
   ===================== */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

::-