﻿/* ─── Design tokens ─────────────────────────────── */
:root {
    --td-bg: #ffffff;
    --td-surface: #ffffff;
    --td-border: #e8e3dc;
    --td-ink: #1a1a1a;
    --td-ink-muted: #6b7280;
    --td-accent: #111111;
    --td-accent-h: #333333;
    /* Accent de marque — bleu pétrole / teal */
    --td-gold: #1b7a99;
    --td-gold-h: #15677f;
    --td-gold-ink: #ffffff;
    --td-gold-soft: #e3f1f5;
    --td-topbar-bg: #111111;
    --td-topbar-ink: #f3f3f3;
    --td-radius-sm: 8px;
    --td-radius: 12px;
    --td-radius-lg: 16px;
    --td-shadow: 0 4px 24px rgba(0,0,0,.07);
    --td-shadow-md: 0 8px 40px rgba(0,0,0,.11);
    --td-topbar-h: 60px;
    /* Échelle d'espacement cohérente */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 24px;
    --space-6: 48px;
    font-size: 15px;
}

/* ─── Reset ─────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    margin: 0; padding: 0;
    font-family: "Urbanist", "Inter", "Segoe UI", sans-serif;
    background: var(--td-bg);
    color: var(--td-ink);
    min-height: 100%;
}

a {
    color: var(--td-accent);
}

/* ─── Typographie ───────────────────────────────── */
body {
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

h1, h2, h3 {
    line-height: 1.15;
    letter-spacing: -0.015em;
    color: var(--td-ink);
}

h1 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
}

h2 {
    font-size: clamp(1.25rem, 2vw, 1.6rem);
    font-weight: 700;
}

h3 {
    font-size: 1.15rem;
    font-weight: 700;
}

/* ─── Shell layout ───────────────────────────────── */
.td-shell {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ─── Top bar ────────────────────────────────────── */
.td-topbar {
    position: sticky;
    top: 0;
    z-index: 200;
    background: var(--td-topbar-bg);
    border-bottom: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 2px 12px rgba(0,0,0,.18);
}

.td-topbar-inner {
    display: flex;
    align-items: center;
    gap: 0;
    height: var(--td-topbar-h);
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ─── Brand ──────────────────────────────────────── */
.td-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
    margin-right: 2rem;
}

.td-logo-small {
    width: 34px;
    height: 34px;
    object-fit: contain;
    border-radius: 7px;
}

.td-brand-name {
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: .03em;
    white-space: nowrap;
}

/* ─── Desktop nav ────────────────────────────────── */
.td-nav-desktop {
    display: flex;
    align-items: center;
    gap: 2px;
    flex: 1;
}

    .td-nav-desktop .td-nav-link {
        display: flex;
        align-items: center;
        gap: 6px;
        padding: 6px 14px;
        color: rgba(255,255,255,.72);
        text-decoration: none;
        font-size: 0.88rem;
        font-weight: 500;
        border-radius: 6px;
        border-bottom: 2px solid transparent;
        transition: background .15s, color .15s, border-color .15s;
        white-space: nowrap;
    }

        .td-nav-desktop .td-nav-link:hover,
        .td-nav-desktop .td-nav-link.active {
            background: rgba(255,255,255,.09);
            color: #ffffff;
            border-bottom-color: var(--td-gold);
        }

/* ─── Top-bar right (cart + hamburger) ───────────── */
.td-topbar-right {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
    flex-shrink: 0;
}

.td-cart-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,.82);
    text-decoration: none;
    font-size: 1.3rem;
    padding: 6px 8px;
    border-radius: 6px;
    transition: background .15s, color .15s;
}

    .td-cart-btn:hover {
        background: rgba(255,255,255,.09);
        color: #fff;
    }

.td-cart-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: #e74c3c;
    color: white;
    border-radius: 999px;
    min-width: 17px;
    height: 17px;
    font-size: 0.62rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
    pointer-events: none;
}

/* ─── Hamburger (hidden on desktop) ─────────────── */
.td-hamburger-label {
    display: none;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,.85);
    font-size: 1.6rem;
    padding: 4px 6px;
    cursor: pointer;
    border-radius: 6px;
    transition: background .15s, color .15s;
}

    .td-hamburger-label:hover {
        background: rgba(255,255,255,.09);
        color: #fff;
    }

.navbar-toggler {
    display: none !important;
}

/* ─── Mobile drawer ──────────────────────────────── */
.td-mobile-drawer {
    display: none;
    flex-direction: column;
    background: #111111;
    border-top: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height .25s ease, padding .25s ease, border-color .25s ease;
}

#td-nav-toggle:checked ~ .td-mobile-drawer {
    max-height: 600px;
    padding: 8px 0 12px;
    border-top: 1px solid rgba(255,255,255,.08);
}

.td-drawer-link {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 10px 20px;
    color: rgba(255,255,255,.8);
    text-decoration: none;
    font-size: 0.92rem;
    border-left: 3px solid transparent;
    transition: background .15s, color .15s, border-color .15s;
}

    .td-drawer-link:hover,
    .td-drawer-link.active {
        background: rgba(255,255,255,.07);
        color: #fff;
        border-left-color: var(--td-gold);
    }

/* ─── Main content ───────────────────────────────── */
.td-main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.td-content {
    flex: 1;
    padding: 2rem 2.5rem;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

/* ─── Footer ─────────────────────────────────────── */
.td-footer {
    padding: 1rem 2.5rem;
    font-size: 0.8rem;
    color: var(--td-ink-muted);
    border-top: 1px solid var(--td-border);
    text-align: center;
}

.td-footer-sep {
    margin: 0 .4rem;
    color: var(--td-border);
}

/* ─── Hero ───────────────────────────────────────── */
.hero-panel {
    background: linear-gradient(135deg, #111111 0%, #2a2a2a 100%);
    border-radius: 16px;
    padding: 2.5rem;
    color: white;
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--td-shadow-md);
}

    .hero-panel img {
        border-radius: 12px;
    }

    .hero-panel h1 {
        margin: 0 0 .6rem;
        font-size: clamp(1.5rem, 2.8vw, 2.4rem);
        font-weight: 800;
        line-height: 1.1;
        color: white;
    }

.hero-kicker {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--td-gold);
    font-weight: 700;
    margin: 0 0 .5rem;
}

.hero-copy {
    margin: 0;
    color: rgba(255,255,255,.8);
    font-size: .95rem;
    max-width: 60ch;
}

/* ─── Influencer grid ────────────────────────────── */
.influencer-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 1.25rem;
}

.influencer-card {
    background: var(--td-surface);
    border: 1px solid var(--td-border);
    border-radius: 16px;
    padding: 1.25rem;
    box-shadow: var(--td-shadow);
    transition: box-shadow .2s;
}

    .influencer-card:hover {
        box-shadow: var(--td-shadow-md);
    }

.influencer-header {
    display: flex;
    align-items: center;
    gap: .9rem;
    padding-bottom: .9rem;
    border-bottom: 1px solid var(--td-border);
    margin-bottom: .9rem;
}

    .influencer-header img {
        width: 64px;
        height: 64px;
        border-radius: 12px;
        object-fit: cover;
    }

    .influencer-header h2 {
        margin: 0;
        font-size: 1.05rem;
        font-weight: 700;
    }

    .influencer-header p {
        margin: .2rem 0 0;
        color: var(--td-ink-muted);
        font-size: .85rem;
    }

.detail-reviews {
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
    margin: 1rem 0;
}

.detail-review-link {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .45rem .9rem;
    border: 1.5px solid var(--td-gold);
    border-radius: var(--td-radius);
    color: var(--td-gold);
    text-decoration: none;
    font-size: .88rem;
    font-weight: 500;
    transition: background .15s, color .15s;
}

.detail-review-link:hover {
    background: var(--td-gold);
    color: #fff;
}

.detail-review-icon {
    width: 1.1em;
    height: 1.1em;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.influencer-socials {
    display: flex;
    gap: .6rem;
    margin-top: .4rem;
    flex-wrap: wrap;
}

.influencer-social-link {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    font-size: .8rem;
    color: var(--td-gold);
    text-decoration: none;
    font-weight: 500;
}

.influencer-social-link:hover {
    text-decoration: underline;
}

.influencer-social-icon {
    width: 1em;
    height: 1em;
    font-size: 1rem;
}

/* ─── Item list ──────────────────────────────────── */
.item-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

    .item-list li {
        border-radius: 8px;
        transition: background .15s;
    }

        .item-list li:hover {
            background: #f5f3ef;
        }

        .item-list li strong {
            color: var(--td-accent);
            font-weight: 600;
            font-size: .9rem;
            white-space: nowrap;
        }

/* ─── Badges ─────────────────────────────────────── */
.td-badge {
    background: #e74c3c;
    color: white;
    border-radius: 999px;
    min-width: 18px;
    height: 18px;
    font-size: 0.68rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

/* ─── Buttons ────────────────────────────────────── */
.btn-primary, .btn.btn-primary {
    background: var(--td-accent);
    border-color: var(--td-accent);
    color: white;
    border-radius: var(--td-radius-sm);
    font-weight: 600;
    transition: background .15s, transform .1s, box-shadow .15s;
}

    .btn-primary:hover {
        background: var(--td-accent-h);
        border-color: var(--td-accent-h);
    }

    .btn-primary:active {
        transform: translateY(1px);
    }

.btn-outline-primary, .btn-outline-secondary {
    border-radius: 0;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.btn-outline-primary {
    border-color: var(--td-accent);
    color: var(--td-accent);
    transition: background .15s, color .15s, box-shadow .15s, transform .1s;
}

.btn-block {
    width: 100%;
}

    .btn-outline-primary:hover {
        background: var(--td-accent);
        color: white;
        box-shadow: 0 4px 14px rgba(0,0,0,.15);
    }

    .btn-outline-primary:active {
        transform: translateY(1px);
    }

/* Bouton doré (call-to-action de marque) */
.btn-gold {
    background: var(--td-gold);
    border: none;
    color: var(--td-gold-ink);
    border-radius: var(--td-radius-sm);
    font-weight: 700;
    transition: background .15s, transform .1s, box-shadow .15s;
}

    .btn-gold:hover {
        background: var(--td-gold-h);
        color: var(--td-gold-ink);
    }

    .btn-gold:active {
        transform: translateY(1px);
    }

/* ─── Cards / surfaces ───────────────────────────── */
.td-card {
    background: var(--td-surface);
    border: 1px solid var(--td-border);
    border-radius: var(--td-radius);
    box-shadow: var(--td-shadow);
    padding: 1.25rem;
}

/* ─── Form controls ──────────────────────────────── */
.form-control, .form-select {
    border: 1px solid var(--td-border);
    border-radius: var(--td-radius-sm);
    font-size: .9rem;
    padding: 8px 12px;
    transition: border-color .15s, box-shadow .15s;
}

    .form-control:focus {
        border-color: var(--td-accent);
        box-shadow: 0 0 0 3px rgba(17,17,17,.12);
        outline: none;
    }

/* ─── Blazor error UI ────────────────────────────── */
#blazor-error-ui {
    background: #fff3cd;
    border-top: 1px solid #ffc107;
    padding: 8px 16px;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: none;
    z-index: 1000;
    font-size: .85rem;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        float: right;
    }

/* ─── Policy pages ───────────────────────────────── */
.td-policy {
    max-width: 820px;
    margin: 0 auto;
    padding-bottom: 3rem;
}

    .td-policy h1 {
        font-size: 1.8rem;
        font-weight: 800;
        color: var(--td-accent);
        margin-bottom: .25rem;
    }

.td-policy-date {
    font-size: .82rem;
    color: var(--td-ink-muted);
    margin-bottom: 2rem;
}

.td-policy h2 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--td-accent);
    margin: 2rem 0 .5rem;
    border-left: 3px solid var(--td-gold);
    padding-left: .6rem;
}

.td-policy p, .td-policy li, .td-policy address {
    line-height: 1.75;
    color: var(--td-ink);
    font-size: .92rem;
}

.td-policy ul {
    padding-left: 1.4rem;
}

    .td-policy ul li {
        margin-bottom: .35rem;
    }

.td-policy address {
    font-style: normal;
    line-height: 1.9;
}

.td-policy-divider {
    border: none;
    border-top: 2px solid var(--td-gold);
    margin: 3rem 0;
    opacity: .5;
}

.td-policy-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .88rem;
    margin-top: .75rem;
}

    .td-policy-table th {
        background: var(--td-accent);
        color: white;
        padding: 8px 12px;
        text-align: left;
        font-weight: 600;
    }

    .td-policy-table td {
        padding: 8px 12px;
        border-bottom: 1px solid var(--td-border);
        vertical-align: top;
    }

    .td-policy-table tr:nth-child(even) td {
        background: var(--td-gold-soft);
    }

.td-policy-warning {
    background: #fff8e1;
    border: 1.5px solid var(--td-gold);
    border-left: 5px solid #e67e22;
    border-radius: var(--td-radius);
    padding: 1rem 1.25rem;
    margin-top: .5rem;
}

    .td-policy-warning p {
        margin: 0 0 .75rem;
    }

    .td-policy-warning ul {
        padding-left: 1.4rem;
    }

        .td-policy-warning ul li {
            margin-bottom: .4rem;
        }

/* ─── Catalogue (pages influenceur / catégorie / marque) ─── */
.catalogue-main {
    padding: 20px;
    max-width: 1200px;
    margin: auto;
}

.catalogue-back {
    margin-bottom: 16px;
}

.catalogue-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 20px 0 24px;
}

    .catalogue-header h2 {
        margin: 0;
    }

.catalogue-header-avatar {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 50%;
}

.catalogue-header-img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 8px;
}

.catalogue-header-icon {
    font-size: 2.5rem;
    color: var(--td-ink-muted);
}

.catalogue-desc {
    margin: 4px 0 0;
    color: var(--td-ink-muted);
    font-size: 0.9rem;
}

.catalogue-count {
    font-size: 0.82rem;
    color: var(--td-ink-muted);
}

.catalogue-sommaire-link {
    display: block;
    margin-top: 2px;
    font-size: 0.78rem;
    color: var(--td-ink-muted);
    text-decoration: underline;
}

    .catalogue-sommaire-link:hover {
        color: var(--td-gold);
    }

.catalogue-search {
    margin-bottom: 20px;
    max-width: 480px;
}

/* ─── Product grid + cards (réutilisable) ────────── */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 16px;
}

.product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--td-surface);
    border: 1px solid var(--td-border);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform .18s ease, box-shadow .18s ease;
}

    .product-card:hover {
        transform: translateY(-4px);
        box-shadow: var(--td-shadow-md);
    }

.product-card-media {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

    .product-card-media img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform .35s ease;
    }

.product-card:hover .product-card-media img {
    transform: scale(1.05);
}

.product-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1f2a30 0%, #0f1417 100%);
    color: var(--td-gold);
    font-size: 2.6rem;
}

.product-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: .02em;
    padding: 3px 9px;
    border-radius: 999px;
    line-height: 1.4;
}

.product-badge-featured {
    background: var(--td-gold);
    color: var(--td-gold-ink);
}

.product-badge-out {
    background: #6b7280;
    color: #fff;
}

.product-card.is-out {
    opacity: .9;
}

.product-card-body {
    padding: 10px 12px 12px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-card-company {
    font-size: 0.72rem;
    color: var(--td-ink-muted);
}

.product-card-name {
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--td-ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-card-pricelabel {
    font-size: 0.64rem;
    font-weight: 400;
    color: var(--td-ink-muted);
    line-height: 1.2;
    margin-top: 6px;
}

.product-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 2px;
}

.product-card-price {
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--td-ink);
}

.product-card-cta {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    border-radius: 0;
    background: var(--td-gold);
    color: var(--td-gold-ink);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: background .15s, box-shadow .15s;
}

    .product-card-cta .bi {
        transition: transform .15s;
    }

.product-card:hover .product-card-cta {
    background: var(--td-gold-h);
    box-shadow: 0 4px 14px rgba(0,0,0,.18);
}

.product-card:hover .product-card-cta .bi-arrow-right {
    transform: translateX(2px);
}

.product-card.is-out .product-card-cta {
    background: #ebe7df;
    color: var(--td-ink-muted);
}

/* ─── Checkout ───────────────────────────────────── */
.checkout-main {
    max-width: 1080px;
    margin: auto;
    padding: 20px;
}

/* Disposition 2 colonnes : formulaire à gauche, panier à droite */
.checkout-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 32px;
    align-items: start;
}

.checkout-col-form {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
}

.checkout-col-cart {
    grid-column: 2;
    grid-row: 1;
    position: sticky;
    top: calc(var(--td-topbar-h) + 16px);
}

@media (max-width: 860px) {
    .checkout-grid {
        grid-template-columns: 1fr;
    }

    .checkout-col-form,
    .checkout-col-cart {
        grid-column: 1;
        grid-row: auto;
    }

    .checkout-col-cart {
        position: static;
    }
}

.checkout-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

    .checkout-head h2 {
        margin: 0;
    }

.checkout-continue {
    font-size: 0.9rem;
    color: #6b7280;
    text-decoration: none;
}

.checkout-empty {
    color: #6b7280;
}

.field-error {
    font-size: 0.83rem;
    color: #ef4444;
}

.form-control.invalid,
.form-control.modified.invalid {
    border-color: #ef4444;
    box-shadow: 0 0 0 0.2rem rgba(239, 68, 68, 0.25);
}

.td-honeypot {
    position: absolute;
    left: -9999px;
    top: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.td-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.address-row {
    display: flex;
    gap: 8px;
}

    .address-row .form-control {
        flex: 1;
        min-width: 0;
    }

.address-apt {
    flex: 0 0 96px !important;
    max-width: 96px;
}

/* Confirmation commande */
.checkout-success {
    padding: 14px 16px;
    border-radius: 8px;
    background: #d4edda;
    color: #155724;
    margin-bottom: 20px;
}

.checkout-success-title {
    font-weight: 700;
    margin-bottom: 4px;
}

.checkout-success-text {
    margin: 0;
    font-size: 0.88rem;
    color: #1a5c31;
}

/* Confirmation Stripe */
.stripe-confirm {
    padding: 16px 20px;
    border: 2px solid #635bff;
    border-radius: 10px;
    background: #f5f4ff;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.stripe-confirm-text {
    font-weight: 600;
    color: #4338ca;
}

/* Instructions Interac */
.interac-box {
    padding: 20px 24px;
    border: 2px solid #f59e0b;
    border-radius: 10px;
    background: #fffbeb;
    margin-bottom: 20px;
}

.interac-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.interac-emoji {
    font-size: 1.4rem;
}

.interac-title {
    font-weight: 700;
    font-size: 1.05rem;
    color: #92400e;
}

.interac-text {
    margin: 0 0 10px;
    font-size: 0.95rem;
    color: #78350f;
}

.interac-email-row {
    display: flex;
    align-items: center;
    gap: 10px;
    background: white;
    border: 1px solid #fde68a;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 10px;
}

.interac-email-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

.interac-email {
    font-weight: 700;
    font-size: 1.05rem;
    color: #1e40af;
    letter-spacing: 0.3px;
}

.interac-copy {
    background: none;
    border: 1px solid #93c5fd;
    border-radius: 6px;
    padding: 3px 10px;
    font-size: 0.78rem;
    color: #1e40af;
    cursor: pointer;
    transition: background .15s;
}

    .interac-copy:hover {
        background: #eff6ff;
    }

.interac-note {
    margin: 0;
    font-size: 0.83rem;
    color: #92400e;
}

/* Liste panier */
.checkout-cart {
    border: 1px solid #e6e6e6;
    border-radius: 6px;
    margin-bottom: 20px;
    overflow: hidden;
}

.checkout-cart-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.checkout-cart-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    align-items: center;
    padding: 12px;
    border-bottom: 1px solid #f5f5f5;
}

.checkout-item-link {
    color: inherit;
    text-decoration: none;
    transition: color .15s;
}

    .checkout-item-link:hover {
        color: var(--td-gold-h);
    }

.checkout-thumb {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
    cursor: pointer;
    transition: opacity .15s;
}

    .checkout-thumb:hover {
        opacity: .75;
    }

.checkout-item-info {
    flex: 1;
    min-width: 0;
}

.checkout-item-name {
    font-weight: 600;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.td-name-mobile {
    display: none;
    flex: 0 0 100%;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.td-size-desktop {
    font-size: 0.85rem;
    color: #6b7280;
}

.td-size-mobile {
    display: none;
    font-size: 0.8rem;
    color: #6b7280;
    text-align: center;
}

.td-qty-block {
    display: flex;
    align-items: center;
    gap: 6px;
}

.checkout-qty-controls {
    display: flex;
    align-items: center;
    gap: 6px;
}

.checkout-qty-btn {
    width: 28px;
    height: 28px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    background: white;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
}

    .checkout-qty-btn:disabled {
        border-color: #fecaca;
        background: #fff5f5;
        cursor: not-allowed;
        color: #d1d5db;
    }

.checkout-qty-count {
    min-width: 24px;
    text-align: center;
    font-weight: 600;
}

.checkout-line-total {
    min-width: 70px;
    text-align: right;
    font-weight: 600;
}

/* Récapitulatif */
.checkout-summary {
    display: flex;
    justify-content: flex-end;
    padding: 12px 14px;
    background: #f9fafb;
}

.checkout-summary-col {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.checkout-summary-sub {
    font-size: 0.88rem;
    color: #6b7280;
}

.checkout-summary-ship {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    background: #fff4e0;
    color: #9a6300;
    padding: 5px 11px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    margin: 4px 0;
}

.checkout-summary-ship-note {
    font-size: 0.74rem;
    font-weight: 400;
    font-style: normal;
    color: #b5852f;
}

.checkout-summary-free {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #e7f7ee;
    color: #15803d;
    padding: 5px 11px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    margin: 4px 0;
}

/* En-têtes de tableau triables (admin) */
.sortable-th {
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
}

    .sortable-th:hover {
        color: var(--td-gold-h);
    }

.ship-progress {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    width: 100%;
    max-width: 260px;
    margin: 2px 0 6px;
}

.ship-progress-bar {
    height: 7px;
    border-radius: 999px;
    background: #e5e7eb;
    overflow: hidden;
}

.ship-progress-fill {
    height: 100%;
    border-radius: 999px;
    background: var(--td-gold);
    transition: width .35s ease;
}

.ship-progress-label {
    font-size: 0.78rem;
    color: #9a6300;
    text-align: right;
}

.checkout-summary-total {
    font-size: 1.1rem;
    font-weight: 700;
}

.checkout-summary-count {
    font-size: 0.75rem;
    color: #9ca3af;
}

.checkout-pickup-toggle {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin-top: 10px;
    font-size: 0.75rem;
    color: #9ca3af;
}

/* Notice révision */
.checkout-notice {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px 16px;
    background: var(--td-gold-soft);
    border: 1px solid #bfeaf2;
    border-left: 3px solid var(--td-gold);
    border-radius: var(--td-radius-sm);
    margin-bottom: 20px;
    font-size: 0.88rem;
    color: #334155;
}

.checkout-notice-icon {
    font-size: 1.15rem;
    flex-shrink: 0;
    margin-top: 1px;
    color: var(--td-gold-h);
}

.checkout-notice-text {
    margin: 0;
    line-height: 1.55;
}

    .checkout-notice-text strong {
        color: #0f172a;
    }

/* Consentements */
.checkout-consents {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.checkout-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 0.92rem;
}

.checkout-consent-box {
    margin-top: 2px;
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: var(--td-accent);
}

.checkout-consent-opt {
    color: #6b7280;
    font-size: 0.85rem;
}

.checkout-consent-req {
    color: #ef4444;
    font-size: 0.85rem;
}

.checkout-terms-link {
    color: var(--td-accent);
    font-weight: 600;
}

.checkout-terms-error {
    font-size: 0.83rem;
    color: #ef4444;
    margin-top: -8px;
}

/* Paiement */
.checkout-pay-wrap {
    margin-top: 28px;
}

.checkout-pay-btn {
    width: 100%;
    padding: 16px 24px;
    background: var(--td-accent);
    color: white;
    border: none;
    border-radius: 0;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    transition: background .15s, box-shadow .15s, transform .1s;
}

    .checkout-pay-btn:hover:not(:disabled) {
        background: var(--td-accent-h);
        box-shadow: 0 4px 14px rgba(0,0,0,.18);
    }

    .checkout-pay-btn:active:not(:disabled) {
        transform: translateY(1px);
    }

    .checkout-pay-btn:disabled {
        opacity: .6;
        cursor: not-allowed;
    }

.checkout-pay-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px 12px;
    margin-top: 12px;
}

.checkout-secure-note {
    font-size: 0.78rem;
    color: var(--td-ink-muted);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.checkout-card-icons {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.checkout-card-icon {
    height: 22px;
    border-radius: 4px;
}

/* Séparateur « ou » */
.checkout-or {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 18px 0;
}

    .checkout-or::before,
    .checkout-or::after {
        content: "";
        flex: 1;
        height: 1px;
        background: var(--td-border);
    }

    .checkout-or span {
        font-size: 0.75rem;
        color: var(--td-ink-muted);
        text-transform: uppercase;
        letter-spacing: .08em;
    }

.checkout-interac-btn {
    width: 100%;
    background: none;
    border: 1px solid var(--td-border);
    border-radius: 0;
    padding: 14px 20px;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--td-ink);
    cursor: pointer;
    transition: border-color .15s, background .15s, box-shadow .15s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

    .checkout-interac-btn:hover:not(:disabled) {
        border-color: var(--td-ink-muted);
        background: #f9fafb;
        box-shadow: 0 4px 14px rgba(0,0,0,.10);
    }

    .checkout-interac-btn:disabled {
        opacity: .6;
        cursor: not-allowed;
    }

.checkout-interac-img {
    height: 22px;
    object-fit: contain;
}

/* Formulaire Stripe */
.stripe-form {
    padding: 24px;
    border: 2px solid #635bff;
    border-radius: 12px;
    background: #f5f4ff;
    margin-bottom: 20px;
}

.stripe-form-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.stripe-form-title {
    font-weight: 700;
    font-size: 1.05rem;
    color: #3730a3;
}

.stripe-form-amount {
    font-size: 0.9rem;
    color: #374151;
    margin: 0 0 18px;
}

.stripe-form-amount-val {
    font-size: 1.1rem;
    color: #3730a3;
}

.stripe-element {
    margin-bottom: 18px;
}

.stripe-error {
    color: #ef4444;
    font-size: 0.88rem;
    margin-bottom: 12px;
}

.stripe-pay-btn {
    width: 100%;
    padding: 16px 28px;
    background: var(--td-accent);
    color: white;
    border: none;
    border-radius: var(--td-radius);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s, transform .1s;
}

    .stripe-pay-btn:hover {
        background: var(--td-accent-h);
    }

    .stripe-pay-btn:active {
        transform: translateY(1px);
    }

.checkout-back-btn {
    margin-bottom: 12px;
}

.checkout-error {
    margin-top: 12px;
    padding: 10px;
    border-radius: 6px;
    background: #f8d7da;
    color: #721c24;
}

@media (max-width: 600px) {
    .td-name-mobile {
        display: block !important;
    }

    .td-name-desktop {
        display: none !important;
    }

    .td-qty-block {
        flex-direction: column;
        align-items: center;
        gap: 4px;
    }

    .td-size-mobile {
        display: block;
    }

    .td-size-desktop {
        display: none;
    }

    .td-form-grid {
        grid-template-columns: 1fr;
    }
}

/* ─── Skeletons (chargement) ─────────────────────── */
.skeleton {
    position: relative;
    overflow: hidden;
    background: #ece9e3;
}

    .skeleton::after {
        content: "";
        position: absolute;
        inset: 0;
        transform: translateX(-100%);
        background: linear-gradient(90deg, transparent, rgba(255,255,255,.65), transparent);
        animation: skeleton-shimmer 1.4s ease-in-out infinite;
    }

@keyframes skeleton-shimmer {
    100% {
        transform: translateX(100%);
    }
}

.product-card-skeleton {
    border: 1px solid var(--td-border);
    border-radius: var(--td-radius);
    overflow: hidden;
    background: var(--td-surface);
}

.skeleton-media {
    aspect-ratio: 1 / 1;
}

.skeleton-line {
    height: 12px;
    border-radius: 6px;
    margin: 10px 12px;
}

    .skeleton-line.short {
        width: 45%;
    }

    .skeleton-line.price {
        width: 30%;
        height: 16px;
        margin-bottom: 14px;
    }

/* ─── Animations ─────────────────────────────────── */
@keyframes rise-in {
    from {
        transform: translateY(12px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.rise-in {
    animation: rise-in .4s ease-out;
}

/* ─── Responsive ─────────────────────────────────── */
@media (max-width: 860px) {
    .td-content {
        padding: 1.2rem;
    }

    .hero-logo {
        display: none;
    }

    .hero-panel {
        flex-direction: column;
        padding: 1.5rem;
        gap: 1rem;
    }

    .influencer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    :root {
        --td-topbar-h: 46px;
    }

    .td-logo-small {
        width: 26px;
        height: 26px;
    }

    .td-brand-name {
        font-size: 0.88rem;
    }

    .td-nav-desktop {
        display: none;
    }

    .td-hamburger-label {
        display: flex;
    }

    .td-mobile-drawer {
        display: flex;
    }
}

/* ── Impression : masquer la navigation et le pied de page ── */
@media print {
    .td-topbar,
    .td-footer,
    #blazor-error-ui {
        display: none !important;
    }

    .td-main,
    .td-content {
        padding: 0 !important;
        margin: 0 !important;
    }
}
