@charset "UTF-8";

/* =========================
   VARIABLES / THEME
========================= */

:root {
    --bg: #f4f7fb;
    --bg-soft: #edf3f9;
    --surface: rgba(255, 255, 255, 0.82);
    --surface-solid: #ffffff;
    --surface-dark: #0f172a;
    --text: #0f172a;
    --text-soft: #475569;
    --text-muted: #64748b;
    --line: rgba(148, 163, 184, 0.22);
    --line-strong: rgba(148, 163, 184, 0.35);

    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --primary-soft: rgba(37, 99, 235, 0.10);

    --accent: #0f172a;
    --success: #15803d;
    --danger: #dc2626;
    --warning: #f59e0b;

    --shadow-sm: 0 8px 22px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 18px 50px rgba(15, 23, 42, 0.10);
    --shadow-lg: 0 26px 80px rgba(15, 23, 42, 0.14);

    --radius-sm: 12px;
    --radius-md: 18px;
    --radius-lg: 26px;

    --transition: 0.24s ease;
}

/* =========================
   BASE
========================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Inter, Arial, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, 0.08), transparent 30%),
        radial-gradient(circle at top right, rgba(15, 23, 42, 0.05), transparent 22%),
        linear-gradient(180deg, #f8fbff 0%, #f3f6fa 100%);
    color: var(--text);
    line-height: 1.6;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

main {
    display: block;
    padding: 32px 0 60px;
}

.container {
    width: min(1320px, calc(100% - 32px));
    margin: 0 auto;
}

.section {
    padding: 0 0 34px;
}

.section.alt {
    padding-top: 6px;
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 16px;
    margin-bottom: 22px;
}

h1,
h2,
h3 {
    margin: 0;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.2rem, 4vw, 4.25rem);
    font-weight: 800;
    margin-bottom: 14px;
}

h2 {
    font-size: clamp(1.7rem, 2.4vw, 2.5rem);
    font-weight: 800;
}

h3 {
    font-size: 1.1rem;
    font-weight: 700;
}

.subtitle {
    margin: 0;
    color: var(--text-soft);
    font-size: 1.05rem;
    line-height: 1.75;
}

.empty-box,
.card,
.hero-main,
.hero-card,
.category-card,
.product-card,
.checkout-form,
.order-summary,
.cart-summary,
.cart-row,
.product-premium__main,
.product-premium__header,
.product-purchase-box,
.product-info-card,
.form-card,
.checkout-choice-section,
.relais-box,
.order-summary-card {
    background: var(--surface);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
}

/* =========================
   HEADER
========================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.85);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.header-top {
    background: linear-gradient(90deg, #0f172a, #1e293b);
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-top-inner {
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.header-top-text {
    margin: 0;
    white-space: nowrap;
}

.header-top-links {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.header-top-links a {
    color: rgba(255, 255, 255, 0.86);
    font-weight: 600;
    transition: var(--transition);
}

.header-top-links a:hover {
    color: #fff;
}

.header-main {
    display: grid;
    grid-template-columns: auto minmax(280px, 1fr) auto;
    align-items: center;
    gap: 20px;
    min-height: 88px;
    padding-top: 14px;
    padding-bottom: 14px;
}

.logo {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
}

.logo img {
    height: 48px;
    width: auto;
}

.header-search {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    align-items: center;
}

.header-search input {
    width: 100%;
    min-width: 0;
    height: 48px;
    padding: 0 16px;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 999px;
    background: rgba(248, 250, 252, 0.96);
    color: var(--text);
    font-size: 14px;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
}

.header-search input:focus {
    outline: none;
    border-color: rgba(37, 99, 235, 0.38);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
    background: #fff;
}

.header-search button {
    height: 48px;
    padding: 0 20px;
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary), #3b82f6);
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 14px 28px rgba(37, 99, 235, 0.20);
}

.header-search button:hover {
    transform: translateY(-1px);
    background: linear-gradient(135deg, var(--primary-hover), #2563eb);
}

.header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.cart-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--primary), #3b82f6);
    color: #fff;
    padding: 12px 16px;
    border-radius: 999px;
    font-weight: 800;
    box-shadow: 0 14px 28px rgba(37, 99, 235, 0.24);
    transition: var(--transition);
    white-space: nowrap;
}

.cart-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 34px rgba(37, 99, 235, 0.30);
}

.cart-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 7px;
    border-radius: 999px;
    background: #fff;
    color: var(--primary);
    font-size: 12px;
    font-weight: 800;
}

.btn-espace {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--accent);
    color: #fff;
    padding: 12px 16px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 800;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-espace:hover {
    background: var(--primary);
    transform: translateY(-1px);
}

.header-nav-wrap {
    border-top: 1px solid rgba(226, 232, 240, 0.8);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    background: rgba(255, 255, 255, 0.72);
}

.header-nav-inner {
    display: flex;
    align-items: center;
    min-height: 58px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    width: 100%;
}

.main-nav a {
    padding: 10px 14px;
    border-radius: 999px;
    color: var(--text-soft);
    font-weight: 700;
    transition: var(--transition);
}

.main-nav a:hover,
.main-nav a.active {
    background: rgba(37, 99, 235, 0.08);
    color: var(--primary);
}

.header-categories-wrap {
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.94), rgba(241, 245, 249, 0.86));
}

.category-strip {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 14px 0 16px;
    scrollbar-width: none;
}

.category-strip::-webkit-scrollbar {
    display: none;
}

.category-strip a {
    flex: 0 0 auto;
    padding: 10px 14px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(255, 255, 255, 0.95);
    border-radius: 999px;
    font-size: 13px;
    color: var(--text-soft);
    font-weight: 700;
    transition: var(--transition);
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}

.category-strip a:hover {
    background: rgba(37, 99, 235, 0.08);
    border-color: rgba(37, 99, 235, 0.18);
    color: var(--primary);
}

@media (max-width: 1024px) {
    .hero-grid,
    .order-layout,
    .product-premium {
        grid-template-columns: 1fr;
    }

    .filters-form {
        grid-template-columns: 1fr 1fr;
    }

    .product-purchase-box {
        position: static;
        top: auto;
    }

    .header-main {
        grid-template-columns: 1fr;
        justify-items: stretch;
    }

    .header-search {
        order: 3;
    }

    .header-actions {
        justify-content: flex-start;
    }

    .header-top-inner {
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        padding-top: 8px;
        padding-bottom: 8px;
    }
}

@media (max-width: 768px) {
    .container {
        width: min(100%, calc(100% - 18px));
    }

    main {
        padding-top: 18px;
    }

    .filters-form,
    .form-grid,
    .footer-grid,
    .form-modern .form-row {
        grid-template-columns: 1fr;
    }

    .product-grid,
    .category-grid {
        grid-template-columns: 1fr 1fr;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn,
    .hero-actions a {
        width: 100%;
    }

    .hero-points {
        grid-template-columns: 1fr;
    }

    .gallery-main img,
    .product-placeholder.large,
    .product-premium__main img {
        height: 300px;
    }

    .cart-row {
        grid-template-columns: 90px 1fr;
        align-items: start;
    }

    .cart-row > div:nth-child(3),
    .cart-row > div:nth-child(4),
    .cart-row > div:nth-child(5) {
        grid-column: 2;
    }

    .sold-overlay {
        font-size: 14px;
        padding: 7px 24px;
    }

    .header-search {
        grid-template-columns: 1fr;
    }

    .header-search button {
        width: 100%;
    }

    .main-nav {
        gap: 8px;
    }

    .header-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .header-actions .cart-link,
    .header-actions .btn-espace {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 540px) {
    .product-grid,
    .category-grid {
        grid-template-columns: 1fr;
    }

    .section-head {
        flex-direction: column;
        align-items: start;
    }

    .header-main {
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .header-top-text {
        white-space: normal;
    }

    .header-top-links {
        gap: 10px;
    }

    .main-nav {
        justify-content: flex-start;
        width: 100%;
    }

    .gallery-thumbs img,
    .thumb,
    .product-premium__thumbs img {
        width: 64px;
        height: 64px;
    }

    .product-premium__header h1 {
        font-size: 28px;
    }

    .hero-main,
    .hero-card,
    .product-card,
    .category-card {
        border-radius: 20px;
    }
}

/* =========================
   HERO / ACCUEIL
========================= */

.hero {
    padding-bottom: 34px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.5fr 0.95fr;
    gap: 22px;
    align-items: stretch;
}

.hero-main,
.hero-card {
    border-radius: var(--radius-lg);
    padding: 30px;
    position: relative;
    overflow: hidden;
}

.hero-main::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, 0.16), transparent 34%),
        radial-gradient(circle at bottom right, rgba(15, 23, 42, 0.08), transparent 28%);
    pointer-events: none;
}

.hero-main > * {
    position: relative;
    z-index: 1;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding: 8px 14px;
    background: rgba(37, 99, 235, 0.10);
    color: var(--primary);
    border: 1px solid rgba(37, 99, 235, 0.12);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.hero-grid p,
.hero-card p,
.hero-card li {
    color: var(--text-soft);
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.hero-points {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 28px;
}

.hero-point {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 18px;
    padding: 18px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.hero-point strong {
    display: block;
    margin-bottom: 6px;
    font-size: 15px;
    color: var(--text);
}

.hero-point span {
    font-size: 13px;
    color: var(--text-muted);
}

.hero-card h2 {
    font-size: 1.35rem;
    margin-bottom: 4px;
}

/* =========================
   FORMULAIRES
========================= */

label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 7px;
    color: var(--text);
}

input,
select,
textarea {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--text);
    font-size: 14px;
    transition: var(--transition);
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: rgba(37, 99, 235, 0.38);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

/* =========================
   BOUTONS
========================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 18px;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 800;
    transition: var(--transition);
    text-decoration: none;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #3b82f6);
    color: #fff;
    box-shadow: 0 14px 28px rgba(37, 99, 235, 0.24);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-hover), #2563eb);
    box-shadow: 0 18px 34px rgba(37, 99, 235, 0.30);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.88);
    color: var(--text);
    border: 1px solid rgba(148, 163, 184, 0.24);
}

.btn-secondary:hover {
    background: #fff;
    border-color: rgba(37, 99, 235, 0.20);
    color: var(--primary);
}

/* =========================
   CATÉGORIES
========================= */

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 18px;
}

.category-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-radius: 22px;
    padding: 22px;
    transition: var(--transition);
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(37, 99, 235, 0.14);
}

.category-card strong {
    font-size: 16px;
}

.category-card span {
    font-size: 13px;
    color: var(--text-muted);
}

/* =========================
   GRILLE PRODUITS
========================= */

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 22px;
}

.product-card {
    display: flex;
    flex-direction: column;
    border-radius: 24px;
    overflow: hidden;
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: rgba(37, 99, 235, 0.12);
}

.product-image-wrap {
    display: block;
    background: linear-gradient(180deg, #f8fafc, #e2e8f0);
    position: relative;
    overflow: hidden;
}

.product-image,
.product-slider img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image {
    transform: scale(1.04);
}

.product-placeholder {
    height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    color: var(--text-muted);
    font-size: 14px;
}

.product-placeholder.large {
    height: 420px;
    border-radius: 14px;
}

.product-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 18px;
}

.product-category {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-bottom: 10px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.06);
    color: var(--text-soft);
    font-size: 12px;
    font-weight: 700;
}

.product-content h3 {
    margin: 0 0 8px;
    font-size: 1.06rem;
}

.product-content p {
    margin: 0 0 10px;
    color: var(--text-soft);
    font-size: 14px;
}

.product-stock {
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 10px;
}

.product-price {
    font-size: 26px;
    font-weight: 900;
    color: var(--primary);
    margin: 12px 0;
    letter-spacing: -0.02em;
}

.product-price.large {
    font-size: 34px;
    margin: 10px 0 18px;
}

.product-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
    padding-top: 10px;
}

.product-actions form {
    margin: 0;
    width: 100%;
}

.product-actions .btn,
.product-actions button {
    flex: 1;
    width: 100%;
}

/* =========================
   PROMOTION DU JOUR
========================= */

.promo-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 16px;
    justify-content: flex-start;
}

.promo-sticker,
.promo-badge {
    display: inline-flex;
    align-self: flex-start;
    background: linear-gradient(135deg, #dc2626, #ef4444);
    color: #fff;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    box-shadow: 0 12px 24px rgba(220, 38, 38, 0.22);
}

.promo-image-wrap {
    display: block;
    border-radius: 18px;
    overflow: hidden;
    background: #f3f4f6;
}

.promo-image {
    width: 100%;
    height: 230px;
    object-fit: cover;
}

.promo-title {
    font-size: 22px;
    margin: 0;
}

.promo-prices,
.product-price-group {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin: 10px 0;
}

.promo-old-price,
.product-old-price {
    color: var(--text-muted);
    text-decoration: line-through;
    font-size: 15px;
}

.promo-price {
    color: var(--danger);
    font-size: 30px;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.product-price.promo {
    color: var(--danger);
    font-weight: 900;
}

.product-price.promo.large {
    font-size: 36px;
}

.promo-empty {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.promo-soon {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-muted);
    text-align: center;
    padding: 10px 0 0;
}

/* =========================
   SOLD OVERLAY
========================= */

.sold-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-12deg);
    background: rgba(220, 38, 38, 0.95);
    color: #fff;
    font-weight: 900;
    font-size: 18px;
    letter-spacing: 2px;
    padding: 8px 38px;
    text-transform: uppercase;
    z-index: 5;
    border-radius: 6px;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
    pointer-events: none;
}

/* =========================
   FILTERS / FORMS PUBLICS
========================= */

.filters-form {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr auto;
    gap: 12px;
    margin-bottom: 22px;
    border-radius: 18px;
    padding: 18px;
}

.form-card {
    max-width: 900px;
    margin: 0 auto;
    padding: 30px;
    border-radius: 24px;
}

.form-card h1 {
    margin-bottom: 10px;
    font-size: 32px;
}

.form-card .subtitle {
    margin-bottom: 24px;
}

.form-modern {
    display: grid;
    gap: 18px;
}

.form-modern .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-modern .form-row.one {
    grid-template-columns: 1fr;
}

.form-modern textarea {
    min-height: 150px;
    resize: vertical;
    line-height: 1.6;
}

.form-section {
    margin-top: 10px;
    padding-top: 6px;
}

.form-section h3 {
    margin: 0 0 16px;
    font-size: 19px;
    color: var(--text);
}

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.checkbox-card {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 58px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--line);
    border-radius: 16px;
    cursor: pointer;
    transition: var(--transition);
}

.checkbox-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.checkbox-card input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    min-width: 22px;
    border: 2px solid #9ca3af;
    border-radius: 6px;
    background: #fff;
    margin: 0;
    position: relative;
    cursor: pointer;
    transition: var(--transition);
}

.checkbox-card input[type="checkbox"]:checked {
    background: var(--primary);
    border-color: var(--primary);
}

.checkbox-card input[type="checkbox"]:checked::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-card span {
    font-size: 15px;
    color: var(--text);
    line-height: 1.35;
}

.form-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.btn.full {
    width: 100%;
    min-height: 52px;
    font-size: 15px;
}

/* =========================
   ALERTES
========================= */

.alert {
    padding: 14px 16px;
    border-radius: 16px;
    margin-bottom: 16px;
    border: 1px solid transparent;
    font-weight: 700;
}

.alert.success {
    background: rgba(22, 163, 74, 0.08);
    border-color: rgba(22, 163, 74, 0.18);
    color: #166534;
}

.alert.error {
    background: rgba(239, 68, 68, 0.08);
    border-color: rgba(239, 68, 68, 0.18);
    color: #991b1b;
}

/* =========================
   PANIER
========================= */

.cart-table {
    display: grid;
    gap: 14px;
}

.cart-row {
    display: grid;
    grid-template-columns: 100px 1.4fr 140px 140px 140px;
    gap: 14px;
    align-items: center;
    border-radius: 18px;
    padding: 16px;
}

.cart-image {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 12px;
}

.cart-summary {
    margin-top: 18px;
    border-radius: 18px;
    padding: 20px;
}

.cart-summary p {
    margin: 0 0 14px;
    font-size: 18px;
    font-weight: 800;
}

/* =========================
   COMMANDE
========================= */

.order-layout {
    display: grid;
    grid-template-columns: 1.3fr 0.8fr;
    gap: 22px;
}

.checkout-form,
.order-summary {
    border-radius: 22px;
    padding: 22px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.order-summary h2 {
    margin-bottom: 16px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.summary-row.total {
    font-size: 18px;
    font-weight: 800;
    border-bottom: 0;
}

.order-summary hr {
    border: 0;
    border-top: 1px solid rgba(226, 232, 240, 0.8);
    margin: 12px 0;
}

.checkout-step {
    display: none;
}

.checkout-step.active {
    display: block;
}

.checkout-nav {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.checkout-choice-section {
    margin-top: 22px;
}

.checkout-choice-section h3 {
    margin-bottom: 12px;
}

.choice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    margin-top: 12px;
}

.choice-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 18px 18px 18px 46px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.88);
    cursor: pointer;
    transition: var(--transition);
    min-height: 110px;
}

.choice-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
    border-color: rgba(37, 99, 235, 0.25);
}

.choice-card input[type="radio"] {
    position: absolute;
    left: 16px;
    top: 20px;
    width: 18px;
    height: 18px;
    margin: 0;
}

.choice-card__title {
    font-weight: 800;
    font-size: 15px;
    color: var(--text);
}

.choice-card__desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.45;
}

.choice-card:has(input[type="radio"]:checked) {
    border-color: rgba(37, 99, 235, 0.35);
    background: rgba(37, 99, 235, 0.08);
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.10);
}

.relais-box,
.order-summary-card {
    margin-top: 18px;
    padding: 18px;
    border-radius: 18px;
}

.relais-note {
    margin-bottom: 12px;
    color: var(--text-soft);
}

.btn-espace {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    padding: 11px 16px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 800;
    margin-left: 8px;
    transition: var(--transition);
}

.btn-espace:hover {
    background: var(--primary);
    transform: translateY(-1px);
}

/* =========================
   PAGE PRODUIT PREMIUM
========================= */

.product-premium {
    display: grid;
    grid-template-columns: minmax(320px, 1fr) 460px;
    gap: 28px;
    align-items: start;
}

.product-premium__gallery,
.product-premium__content {
    min-width: 0;
}

.product-premium__main {
    border-radius: 24px;
    overflow: hidden;
}

.product-premium__main img {
    width: 100%;
    height: 520px;
    object-fit: cover;
}

.product-premium__thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.product-premium__thumbs img {
    width: 78px;
    height: 78px;
    object-fit: cover;
    border-radius: 14px;
    border: 2px solid transparent;
    background: #fff;
    cursor: pointer;
    transition: var(--transition);
}

.product-premium__thumbs img:hover {
    border-color: #cbd5e1;
}

.product-premium__thumbs img.active {
    border-color: var(--primary);
}

.product-premium__header {
    border-radius: 24px;
    padding: 22px;
    margin-bottom: 18px;
}

.product-premium__header h1 {
    font-size: 36px;
    margin: 10px 0 14px;
}

.product-meta-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.meta-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.06);
    color: #374151;
    font-size: 13px;
    font-weight: 700;
}

.meta-badge.in-stock {
    background: rgba(22, 163, 74, 0.08);
    color: #166534;
}

.meta-badge.out-stock {
    background: rgba(239, 68, 68, 0.08);
    color: #991b1b;
}

.product-purchase-box {
    position: sticky;
    top: 20px;
    border-radius: 24px;
    padding: 22px;
    margin-bottom: 18px;
}

.product-price-box {
    margin-bottom: 16px;
}

.product-price-label {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.product-purchase-info {
    display: grid;
    gap: 8px;
    margin-bottom: 18px;
    color: var(--text-soft);
    font-size: 14px;
}

.purchase-form {
    display: grid;
    gap: 16px;
}

.purchase-row {
    display: grid;
    gap: 16px;
}

.purchase-qty input {
    max-width: 120px;
}

.purchase-actions {
    display: grid;
    gap: 10px;
}

.btn-buy {
    min-height: 48px;
    font-size: 15px;
}

.product-info-card {
    border-radius: 24px;
    padding: 22px;
}

.product-info-card h2 {
    margin-bottom: 14px;
}

.product-description.premium {
    border: 0;
    padding: 0;
    margin: 0;
    color: #374151;
    line-height: 1.8;
}

/* =========================
   GALERIE / ZOOM
========================= */

.gallery-main {
    background: #f3f4f6;
    border-radius: 18px;
    overflow: hidden;
}

.gallery-main img {
    width: 100%;
    height: 420px;
    object-fit: cover;
}

.zoomable-image {
    cursor: pointer;
}

.gallery-thumbs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.gallery-thumbs img,
.thumb {
    width: 76px;
    height: 76px;
    object-fit: cover;
    border-radius: 12px;
    border: 2px solid transparent;
    cursor: pointer;
    background: #fff;
    transition: var(--transition);
}

.gallery-thumbs img:hover,
.thumb:hover {
    border-color: #cbd5e1;
}

.gallery-thumbs img.active,
.thumb.active {
    border-color: var(--primary);
}

.image-zoom-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(15, 23, 42, 0.84);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.image-zoom-content {
    position: relative;
    max-width: 95vw;
    max-height: 95vh;
}

.image-zoom-content img {
    max-width: 95vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 14px;
    background: #fff;
}

.image-zoom-close {
    position: absolute;
    top: -12px;
    right: -12px;
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background: #fff;
    color: #111827;
    font-size: 26px;
    cursor: pointer;
}

.no-scroll {
    overflow: hidden;
}

/* =========================
   FOOTER
========================= */

.site-footer {
    margin-top: 44px;
    padding: 36px 0;
    background:
        radial-gradient(circle at top left, rgba(59, 130, 246, 0.12), transparent 20%),
        linear-gradient(180deg, #0f172a, #111827);
    color: #e5e7eb;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr 0.9fr;
    gap: 24px;
}

.site-footer h3 {
    margin-bottom: 12px;
    color: #fff;
}

.site-footer p {
    color: #cbd5e1;
    margin: 0 0 8px;
}

.site-footer a:hover {
    color: #fff;
}

/* =========================
   PAGE CGV
========================= */

.cgv-content h2 {
    margin-top: 28px;
    margin-bottom: 12px;
    font-size: 22px;
    color: var(--text);
}

.cgv-content h3 {
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 18px;
    color: var(--text);
}

.cgv-content p {
    margin: 0 0 14px;
    color: #374151;
    line-height: 1.7;
}

.cgv-content ul {
    margin: 0 0 18px 20px;
    padding: 0;
    color: #374151;
}

.cgv-content li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.cgv-content strong {
    color: var(--text);
}

.cgv-check {
    margin-top: 20px;
    margin-bottom: 20px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.86);
}

.cgv-checkbox {
    align-items: flex-start;
}

.cgv-checkbox input[type="checkbox"] {
    margin-top: 2px;
}

.cgv-checkbox span {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text);
}

.cgv-check a {
    color: var(--primary);
    font-weight: 800;
}

.cgv-check a:hover {
    text-decoration: underline;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1024px) {
    .hero-grid,
    .order-layout,
    .product-premium {
        grid-template-columns: 1fr;
    }

    .filters-form {
        grid-template-columns: 1fr 1fr;
    }

    .product-purchase-box {
        position: static;
        top: auto;
    }

    .header-main {
        flex-wrap: wrap;
    }

    .cart-link {
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    .container {
        width: min(100%, calc(100% - 18px));
    }

    main {
        padding-top: 18px;
    }

    .filters-form,
    .form-grid,
    .footer-grid,
    .form-modern .form-row {
        grid-template-columns: 1fr;
    }

    .product-grid,
    .category-grid {
        grid-template-columns: 1fr 1fr;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn,
    .hero-actions a {
        width: 100%;
    }

    .hero-points {
        grid-template-columns: 1fr;
    }

    .gallery-main img,
    .product-placeholder.large,
    .product-premium__main img {
        height: 300px;
    }

    .cart-row {
        grid-template-columns: 90px 1fr;
        align-items: start;
    }

    .cart-row > div:nth-child(3),
    .cart-row > div:nth-child(4),
    .cart-row > div:nth-child(5) {
        grid-column: 2;
    }

    .main-nav {
        margin-left: 0;
    }

    .sold-overlay {
        font-size: 14px;
        padding: 7px 24px;
    }
}

@media (max-width: 540px) {
    .product-grid,
    .category-grid {
        grid-template-columns: 1fr;
    }

    .section-head {
        flex-direction: column;
        align-items: start;
    }

    .main-nav {
        justify-content: center;
        width: 100%;
    }

    .header-main {
        flex-direction: column;
        align-items: flex-start;
    }

    .cart-link {
        margin-left: 0;
    }

    .gallery-thumbs img,
    .thumb,
    .product-premium__thumbs img {
        width: 64px;
        height: 64px;
    }

    .product-premium__header h1 {
        font-size: 28px;
    }

    .hero-main,
    .hero-card,
    .product-card,
    .category-card {
        border-radius: 20px;
    }
}