/* ═══════════════════════════════════════════════════════════════════
   TROPIC45 · CSS
   Design system éditorial. Variables CSS pour faciliter le theming.
   ═══════════════════════════════════════════════════════════════════ */

:root {
    --bg: #F5EFE6;
    --bg-warm: #EFE5D4;
    --ink: #1A1410;
    --ink-soft: #44362B;
    --ink-muted: #7A685A;
    --orange: #E8782D;
    --orange-deep: #C25A1F;
    --leaf: #2D4A3E;
    --leaf-light: #4A6B5C;
    --gold: #C89860;
    --cream: #FAF6F0;
    --border: rgba(26, 20, 16, 0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
    background: var(--bg);
    color: var(--ink);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.display { font-family: 'Fraunces', Georgia, serif; }

/* ════════ TOP BAR ════════ */
.topbar {
    background: var(--leaf);
    color: var(--cream);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 8px 0;
    text-align: center;
}

/* ════════ HEADER ════════ */
header {
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    background: rgba(245, 239, 230, 0.92);
}
.header-inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 20px 48px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 32px;
}
.nav-primary {
    display: flex;
    gap: 36px;
    list-style: none;
    font-size: 14px;
    font-weight: 500;
}
.nav-primary a {
    color: var(--ink);
    text-decoration: none;
    position: relative;
    padding-bottom: 4px;
    transition: color 0.2s;
}
.nav-primary a:hover { color: var(--orange); }

/* Bouton menu mobile (hamburger) — masqué sur desktop, affiché ≤1024px */
.nav-left { display: flex; align-items: center; gap: 12px; }
.nav-toggle-btn { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 6px; }
.nav-toggle-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.2s ease;
}

.logo {
    font-family: 'Fraunces', serif;
    font-weight: 700;
    font-size: 28px;
    letter-spacing: -0.02em;
    text-align: center;
    color: var(--ink);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
}
.logo small {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 500;
    font-size: 9px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--ink-muted);
    margin-top: 4px;
}

.nav-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 20px;
    font-size: 14px;
}
.cart-link {
    color: var(--ink);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 6px;
    transition: background 0.2s;
}
.cart-link:hover { background: var(--bg-warm); }
.cart-badge {
    background: var(--orange);
    color: white;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 99px;
    font-weight: 600;
    min-width: 22px;
    text-align: center;
}
.cart-badge--empty { background: var(--ink-muted); }

/* ════════ HERO ════════ */
.hero {
    max-width: 1440px;
    margin: 0 auto;
    padding: 60px 48px 100px;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    align-items: center;
    min-height: calc(100vh - 110px);
}
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--orange);
    font-weight: 600;
    margin-bottom: 28px;
}
.hero-eyebrow::before {
    content: '';
    width: 32px;
    height: 1px;
    background: var(--orange);
}
.hero h1 {
    font-family: 'Fraunces', serif;
    font-weight: 500;
    font-size: clamp(48px, 7vw, 92px);
    line-height: 0.98;
    letter-spacing: -0.025em;
    color: var(--ink);
    margin-bottom: 32px;
}
.hero h1 em {
    font-style: italic;
    color: var(--orange);
    font-weight: 400;
}
.hero p {
    font-size: 18px;
    line-height: 1.65;
    color: var(--ink-soft);
    max-width: 480px;
    margin-bottom: 40px;
}
.hero-cta {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-flex;
    background: var(--ink);
    color: var(--cream);
    padding: 18px 36px;
    border-radius: 999px;
    border: none;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.05em;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.3s;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}
.btn-primary:hover {
    background: var(--orange);
    transform: translateY(-1px);
}
.btn-large { padding: 20px 40px; font-size: 15px; }
.btn-full { width: 100%; justify-content: center; }

.btn-ghost {
    background: transparent;
    color: var(--ink);
    padding: 18px 28px;
    border: none;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.05em;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-thickness: 1px;
    transition: color 0.2s;
    display: inline-flex;
    align-items: center;
}
.btn-ghost:hover { color: var(--orange); }

.hero-visual {
    position: relative;
    aspect-ratio: 4/5;
    border-radius: 4px;
    overflow: hidden;
    background: linear-gradient(135deg, #C89860 0%, #8B5A2B 60%, #4A2F1A 100%);
}
.hero-visual::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(255, 200, 120, 0.4) 0%, transparent 35%),
        radial-gradient(circle at 80% 70%, rgba(232, 120, 45, 0.3) 0%, transparent 40%);
    z-index: 1;
}
.hero-visual-content {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    color: var(--cream);
}
.hero-visual-leaf {
    font-size: 180px;
    opacity: 0.9;
    transform: rotate(-15deg);
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.3));
}
.hero-badge {
    position: absolute;
    bottom: 32px;
    left: 32px;
    background: var(--cream);
    color: var(--ink);
    padding: 16px 24px;
    border-radius: 4px;
    z-index: 3;
    max-width: 240px;
}
.hero-badge-title {
    font-family: 'Fraunces', serif;
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 4px;
}
.hero-badge-sub {
    font-size: 11px;
    color: var(--ink-muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.hero-meta {
    margin-top: 48px;
    display: flex;
    gap: 60px;
    font-size: 13px;
    color: var(--ink-muted);
}
.hero-meta-item {
    display: flex;
    flex-direction: column;
}
.hero-meta-item strong {
    font-family: 'Fraunces', serif;
    font-size: 32px;
    color: var(--ink);
    font-weight: 500;
    line-height: 1;
    margin-bottom: 6px;
}

/* ════════ MARQUEE ════════ */
.marquee {
    background: var(--ink);
    color: var(--cream);
    padding: 24px 0;
    overflow: hidden;
    border-top: 1px solid var(--ink-soft);
    border-bottom: 1px solid var(--ink-soft);
}
.marquee-track {
    display: flex;
    gap: 60px;
    animation: marquee 30s linear infinite;
    white-space: nowrap;
    font-family: 'Fraunces', serif;
    font-style: italic;
    font-size: 24px;
    font-weight: 300;
}
.marquee-track span { display: inline-flex; align-items: center; gap: 60px; }
.marquee-track .dot {
    width: 6px;
    height: 6px;
    background: var(--orange);
    border-radius: 50%;
    display: inline-block;
}
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ════════ SECTIONS ════════ */
.section { padding: 120px 48px; max-width: 1440px; margin: 0 auto; }
.section-header {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: end;
    margin-bottom: 64px;
    gap: 40px;
}
.section-eyebrow {
    font-size: 11px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--orange);
    font-weight: 600;
    margin-bottom: 16px;
}
.section-title {
    font-family: 'Fraunces', serif;
    font-weight: 500;
    font-size: clamp(36px, 5vw, 64px);
    line-height: 1;
    letter-spacing: -0.02em;
    max-width: 700px;
}
.section-title em {
    font-style: italic;
    color: var(--orange);
    font-weight: 400;
}
.section-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
    text-decoration: none;
    border-bottom: 1px solid var(--ink);
    padding-bottom: 4px;
    white-space: nowrap;
    transition: color 0.2s;
}
.section-link:hover { color: var(--orange); border-color: var(--orange); }

/* ════════ CATEGORIES ════════ */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.category-card {
    aspect-ratio: 3/4;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: transform 0.4s ease;
    text-decoration: none;
    color: var(--cream);
}
.category-card:hover { transform: translateY(-6px); }
.category-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,0.7) 100%);
    z-index: 2;
}
.category-icon {
    position: absolute;
    top: 24px;
    right: 24px;
    font-size: 48px;
    z-index: 2;
    opacity: 0.85;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.2));
}
.category-content {
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 24px;
    z-index: 3;
}
.category-name {
    font-family: 'Fraunces', serif;
    font-weight: 500;
    font-size: 22px;
    line-height: 1.15;
    margin-bottom: 4px;
}
.category-count {
    font-size: 12px;
    opacity: 0.85;
}

/* ════════ PRODUITS ════════ */
.products-section {
    background: var(--bg-warm);
    padding: 120px 48px;
}
.products-inner { max-width: 1440px; margin: 0 auto; }
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}
.product-card {
    background: var(--cream);
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(26, 20, 16, 0.12);
}
.product-card--in-store { opacity: 0.92; }

.product-image {
    aspect-ratio: 1;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}
.product-image-emoji {
    font-size: 100px;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.08));
}

.product-tag {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--ink);
    color: var(--cream);
    font-size: 10px;
    padding: 6px 12px;
    border-radius: 99px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 600;
    z-index: 2;
}
.tag-nouveau, .tag-frais { background: var(--orange); }
.tag-rare { background: var(--leaf); }
.product-tag--store {
    top: auto;
    bottom: 16px;
    left: 16px;
    background: var(--cream);
    color: var(--ink);
    border: 1px solid var(--border);
}

.product-info { padding: 20px; }
.product-origin {
    font-size: 11px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--orange);
    font-weight: 600;
    margin-bottom: 8px;
}
.product-name {
    font-family: 'Fraunces', serif;
    font-weight: 500;
    font-size: 18px;
    line-height: 1.3;
    margin-bottom: 6px;
}
.product-name a {
    color: var(--ink);
    text-decoration: none;
}
.product-name a:hover { color: var(--orange); }

.product-meta {
    font-size: 12px;
    color: var(--ink-muted);
    margin-bottom: 14px;
    line-height: 1.5;
}
.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}
.product-price {
    font-family: 'Fraunces', serif;
    font-weight: 600;
    font-size: 20px;
}
.product-price small {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 11px;
    color: var(--ink-muted);
    font-weight: 400;
}
.btn-add, .btn-store {
    background: var(--ink);
    color: var(--cream);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    text-decoration: none;
}
.btn-add:hover { background: var(--orange); transform: scale(1.1); }
.btn-store {
    background: transparent;
    color: var(--ink);
    border: 1px solid var(--border);
    font-size: 14px;
}
.btn-store:hover { background: var(--leaf); color: var(--cream); border-color: var(--leaf); }

/* ════════ STORY ════════ */
.story {
    padding: 140px 48px;
    background: var(--ink);
    color: var(--cream);
    position: relative;
    overflow: hidden;
}
.story::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(232, 120, 45, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}
.story-inner {
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}
.story-quote {
    font-family: 'Fraunces', serif;
    font-weight: 300;
    font-size: clamp(28px, 3.5vw, 44px);
    line-height: 1.2;
}
.story-quote em { font-style: italic; color: var(--orange); }
.story-quote::before {
    content: '"';
    font-size: 80px;
    line-height: 0.5;
    color: var(--orange);
    display: block;
    margin-bottom: 20px;
}
.story-signature {
    margin-top: 32px;
    font-size: 14px;
    color: var(--gold);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.story-content p {
    font-size: 16px;
    line-height: 1.75;
    color: rgba(250, 246, 240, 0.85);
    margin-bottom: 24px;
}
.story-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid rgba(250, 246, 240, 0.15);
}
.stat strong {
    font-family: 'Fraunces', serif;
    font-size: 36px;
    color: var(--orange);
    display: block;
    line-height: 1;
    margin-bottom: 8px;
}
.stat span {
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(250, 246, 240, 0.6);
}

/* ════════ SHOP (catalogue) ════════ */
.shop-header {
    background: var(--bg-warm);
    padding: 80px 48px;
}
.shop-header-inner {
    max-width: 1440px;
    margin: 0 auto;
}
.shop-title {
    font-family: 'Fraunces', serif;
    font-weight: 500;
    font-size: clamp(42px, 6vw, 72px);
    line-height: 1;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}
.shop-title em { font-style: italic; color: var(--orange); font-weight: 400; }
.shop-count {
    color: var(--ink-muted);
    font-size: 14px;
}

.shop {
    max-width: 1440px;
    margin: 0 auto;
    padding: 60px 48px 120px;
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 60px;
    align-items: start;
}
.shop-filters {
    position: sticky;
    top: 100px;
}
.shop-filters h3 {
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 16px;
    color: var(--ink);
}
.shop-filters ul {
    list-style: none;
}
.shop-filters li { margin-bottom: 4px; }
.shop-filters a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    color: var(--ink-soft);
    text-decoration: none;
    font-size: 14px;
    border-radius: 6px;
    transition: all 0.2s;
}
.shop-filters a:hover {
    background: var(--bg-warm);
    color: var(--ink);
}
.shop-filters a.active {
    background: var(--ink);
    color: var(--cream);
    font-weight: 500;
}
.filter-icon { font-size: 16px; }
.shop-empty {
    padding: 60px;
    text-align: center;
    color: var(--ink-muted);
    background: var(--cream);
    border-radius: 8px;
}

/* Catalogue : grille un peu plus dense */
.shop-products .products-grid {
    grid-template-columns: repeat(3, 1fr);
}

/* ════════ FICHE PRODUIT ════════ */
.product-detail {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 48px 120px;
}
.breadcrumb {
    font-size: 13px;
    color: var(--ink-muted);
    margin-bottom: 40px;
}
.breadcrumb a {
    color: var(--ink-muted);
    text-decoration: none;
}
.breadcrumb a:hover { color: var(--orange); }
.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}
.product-detail-image {
    aspect-ratio: 1;
    border-radius: 8px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.product-detail-emoji {
    font-size: 200px;
    filter: drop-shadow(0 12px 30px rgba(0,0,0,0.12));
}
.product-detail-name {
    font-family: 'Fraunces', serif;
    font-weight: 500;
    font-size: 42px;
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin: 12px 0 16px;
}
.product-detail-short {
    font-size: 17px;
    color: var(--ink-soft);
    line-height: 1.55;
    margin-bottom: 32px;
}
.product-detail-price {
    font-family: 'Fraunces', serif;
    font-weight: 600;
    font-size: 36px;
    margin-bottom: 28px;
}
.product-detail-price small {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 14px;
    color: var(--ink-muted);
}
.product-detail-cta { margin-bottom: 24px; }
.product-shipping-info, .product-store-only, .product-hours {
    padding: 16px 20px;
    background: var(--bg-warm);
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 16px;
    line-height: 1.6;
}
.product-store-only {
    background: var(--leaf);
    color: var(--cream);
}
.product-store-only .btn-ghost {
    color: var(--cream);
    padding: 8px 0;
    margin-top: 12px;
}
.product-detail-description {
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}
.product-detail-description h3 {
    font-family: 'Fraunces', serif;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
}
.product-detail-specs {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 14px;
}
.product-detail-specs strong {
    color: var(--ink-muted);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.1em;
    display: inline-block;
    width: 90px;
}

/* ════════ PANIER ════════ */
.cart-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 48px 120px;
}
.cart-title {
    font-family: 'Fraunces', serif;
    font-weight: 500;
    font-size: 48px;
    margin-bottom: 48px;
}
.cart-empty {
    text-align: center;
    padding: 80px 20px;
    background: var(--cream);
    border-radius: 8px;
}
.cart-empty p { margin-bottom: 24px; color: var(--ink-muted); }
.cart-grid {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 60px;
    align-items: start;
}
.cart-line {
    display: grid;
    grid-template-columns: 100px 1fr auto auto;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
    align-items: center;
}
.cart-line-image {
    width: 100px;
    height: 100px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    overflow: hidden;
    flex-shrink: 0;
}
.cart-line-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.cart-line-info h3 {
    font-family: 'Fraunces', serif;
    font-weight: 500;
    font-size: 18px;
    margin-bottom: 4px;
}
.cart-line-meta {
    font-size: 13px;
    color: var(--ink-muted);
    margin-bottom: 8px;
}
.link-button {
    background: none;
    border: none;
    color: var(--ink-muted);
    font-size: 12px;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
    font-family: inherit;
}
.cart-line-qty input {
    width: 60px;
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: 6px;
    text-align: center;
    font-family: inherit;
    font-size: 14px;
}
.cart-line-total {
    font-family: 'Fraunces', serif;
    font-weight: 600;
    font-size: 18px;
}
.cart-summary {
    background: var(--cream);
    padding: 32px;
    border-radius: 8px;
    position: sticky;
    top: 100px;
}
.cart-summary h3 {
    font-family: 'Fraunces', serif;
    font-size: 22px;
    margin-bottom: 24px;
}
.cart-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    font-size: 14px;
    border-bottom: 1px solid var(--border);
}
.cart-shipping {
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 13px;
    margin: 16px 0;
}
.cart-shipping--ok { background: #E8F0E5; color: #2D4A3E; }
.cart-shipping--warn { background: #FEF3C7; color: #92400E; }
.cart-shipping--error { background: #FEE2E2; color: #991B1B; }

/* ════════ ABOUT ════════ */
.about {
    padding: 80px 48px 120px;
}
.about-inner {
    max-width: 800px;
    margin: 0 auto;
}
.about h1 {
    font-family: 'Fraunces', serif;
    font-weight: 500;
    font-size: clamp(42px, 6vw, 72px);
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin-bottom: 48px;
}
.about h1 em { font-style: italic; color: var(--orange); }
.about-content p {
    font-size: 18px;
    line-height: 1.75;
    color: var(--ink-soft);
    margin-bottom: 24px;
}
.about-info {
    margin-top: 60px;
    padding-top: 60px;
    border-top: 1px solid var(--border);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}
.about-info h3 {
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--orange);
    margin-bottom: 12px;
}
.about-info p {
    font-size: 14px;
    line-height: 1.7;
}

/* ════════ INFO STRIP & FOOTER ════════ */
.info-strip {
    background: var(--leaf);
    color: var(--cream);
    padding: 60px 48px;
}
.info-inner {
    max-width: 1440px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}
.info-icon { font-size: 28px; margin-bottom: 8px; }
.info-title {
    font-family: 'Fraunces', serif;
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 6px;
}
.info-desc {
    font-size: 13px;
    color: rgba(250, 246, 240, 0.75);
    line-height: 1.5;
}

footer {
    background: var(--bg-warm);
    padding: 80px 48px 32px;
}
.footer-inner { max-width: 1440px; margin: 0 auto; }
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 80px;
    margin-bottom: 60px;
}
.footer-brand h3 {
    font-family: 'Fraunces', serif;
    font-weight: 600;
    font-size: 28px;
    margin-bottom: 16px;
}
.footer-brand p {
    font-size: 14px;
    color: var(--ink-soft);
    margin-bottom: 20px;
    max-width: 380px;
}
.footer-address {
    font-size: 13px;
    color: var(--ink-soft);
    line-height: 1.7;
}
.footer-col h4 {
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 20px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a {
    color: var(--ink-soft);
    text-decoration: none;
    font-size: 14px;
}
.footer-col a:hover { color: var(--orange); }
.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 32px;
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--ink-muted);
}
.footer-bottom a {
    color: var(--ink-muted);
    text-decoration: none;
    margin-left: 24px;
}

/* ════════ RESPONSIVE ════════ */
@media (max-width: 1024px) {
    .hero { grid-template-columns: 1fr; gap: 60px; }
    .categories-grid, .shop-products .products-grid { grid-template-columns: repeat(2, 1fr); }
    .products-grid { grid-template-columns: repeat(2, 1fr); }
    .story-inner, .product-detail-grid, .cart-grid { grid-template-columns: 1fr; gap: 40px; }
    .info-inner { grid-template-columns: repeat(2, 1fr); }
    .footer-grid, .about-info { grid-template-columns: 1fr 1fr; gap: 40px; }
    .shop { grid-template-columns: 1fr; }
    .shop-filters { position: static; }

    /* Menu mobile : hamburger visible, nav repliée en panneau déroulant */
    .nav-toggle-btn { display: flex; }
    .nav-primary {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        background: var(--cream);
        border-bottom: 1px solid var(--border);
        padding: 4px 24px 12px;
        box-shadow: 0 14px 28px rgba(0, 0, 0, 0.07);
    }
    #nav-toggle:checked ~ .nav-left .nav-primary { display: flex; }
    .nav-primary li { border-top: 1px solid var(--border); }
    .nav-primary a { display: block; padding: 14px 2px; }
    /* hamburger → croix quand ouvert */
    #nav-toggle:checked ~ .nav-left .nav-toggle-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    #nav-toggle:checked ~ .nav-left .nav-toggle-btn span:nth-child(2) { opacity: 0; }
    #nav-toggle:checked ~ .nav-left .nav-toggle-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
@media (max-width: 640px) {
    .header-inner, .hero, .section, .products-section, .story,
    .info-strip, footer, .shop, .shop-header, .product-detail,
    .cart-page, .about { padding-left: 24px; padding-right: 24px; }
    .categories-grid, .products-grid, .shop-products .products-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .info-inner, .footer-grid, .about-info { grid-template-columns: 1fr; }
    .section-header { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    /* Téléphones étroits : produits et catégories en 1 colonne (cartes plus lisibles) */
    .categories-grid, .products-grid, .shop-products .products-grid { grid-template-columns: 1fr; }
}

/* ════════ ANIMATIONS ════════ */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.8s ease forwards; }
.delay-1 { animation-delay: 0.1s; opacity: 0; }
.delay-2 { animation-delay: 0.2s; opacity: 0; }

/* ════════ PHOTOS RÉELLES (override l'emoji fallback) ════════ */
.product-image-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.product-detail-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

/* ════════ ADMIN ════════ */
.admin-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 48px 120px;
}
.admin-header { margin-bottom: 48px; }
.admin-header h1 {
    font-family: 'Fraunces', serif;
    font-weight: 500;
    font-size: clamp(38px, 5vw, 56px);
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}
.admin-header h1 em { font-style: italic; color: var(--orange); }
.admin-intro {
    font-size: 15px;
    color: var(--ink-soft);
    line-height: 1.6;
    max-width: 600px;
}
.admin-intro code {
    background: var(--bg-warm);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 13px;
}
.admin-form {
    background: var(--cream);
    padding: 32px;
    border-radius: 8px;
    margin-bottom: 32px;
}
.form-row { margin-bottom: 24px; }
.form-row label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
}
.form-row input[type="text"] {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-family: 'Plus Jakarta Sans', monospace;
    font-size: 13px;
    background: white;
}
.hint {
    display: block;
    margin-top: 6px;
    color: var(--ink-muted);
    font-size: 12px;
}
.hint code {
    background: var(--bg-warm);
    padding: 1px 5px;
    border-radius: 3px;
}
.form-options {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
    padding: 20px;
    background: var(--bg-warm);
    border-radius: 6px;
}
.checkbox {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
    align-items: start;
    cursor: pointer;
    font-size: 14px;
}
.checkbox input { margin-top: 3px; }
.checkbox span { font-weight: 500; }
.checkbox small {
    grid-column: 2;
    color: var(--ink-muted);
    font-size: 12px;
    line-height: 1.4;
}
.checkbox--danger span { color: #B91C1C; }

.alert {
    padding: 16px 20px;
    border-radius: 6px;
    margin-bottom: 24px;
    font-size: 14px;
}
.alert--error { background: #FEE2E2; color: #991B1B; }
.alert--success { background: #DCFCE7; color: #166534; }

.import-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}
.summary-card {
    background: var(--cream);
    padding: 20px;
    border-radius: 6px;
    border: 1px solid var(--border);
}
.summary-label {
    font-size: 11px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--ink-muted);
    margin-bottom: 8px;
}
.summary-value {
    font-family: 'Fraunces', serif;
    font-size: 28px;
    font-weight: 600;
}
.summary-value small {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 12px;
    font-weight: 400;
    color: var(--ink-muted);
}
.summary-value--ok { color: var(--leaf); }
.summary-value--warn { color: #B45309; }
.summary-value--muted { color: var(--ink-muted); }

.warnings {
    background: #FEF3C7;
    border-radius: 6px;
    padding: 16px 20px;
    margin-bottom: 24px;
}
.warnings summary {
    cursor: pointer;
    font-weight: 600;
    color: #92400E;
}
.warnings ul {
    margin-top: 12px;
    padding-left: 20px;
    color: #78350F;
    font-size: 13px;
}
.warnings li { margin-bottom: 4px; }

.admin-actions {
    display: flex;
    gap: 16px;
    margin-top: 32px;
}

@media (max-width: 768px) {
    .import-summary { grid-template-columns: 1fr 1fr; }
}

/* ════════ REVUE IMAGES IA ════════ */
.admin-page--wide { max-width: 1200px; }

.alert--info { background: #DBEAFE; color: #1E40AF; }

.review-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 32px;
}
.review-filters a {
    font-size: 13px;
    padding: 8px 14px;
    border-radius: 99px;
    text-decoration: none;
    color: var(--ink-soft);
    background: var(--bg-warm);
    transition: all 0.2s;
}
.review-filters a:hover { background: var(--gold); color: white; }
.review-filters a.active { background: var(--ink); color: var(--cream); }

.review-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}
.review-card {
    background: var(--cream);
    border-radius: 8px;
    padding: 16px;
    border: 1px solid var(--border);
    display: grid;
    grid-template-columns: 140px 1fr;
    grid-template-areas:
        "original info"
        "original result";
    gap: 16px;
    align-items: start;
}
.review-original { grid-area: original; }
.review-info { grid-area: info; }
.review-result { grid-area: result; }

.original-img, .candidate-img {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 6px;
    display: block;
}
.original-placeholder {
    width: 140px;
    height: 140px;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.9);
}
.original-placeholder span { font-size: 56px; }
.original-placeholder small {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 4px;
    opacity: 0.8;
}
.review-original-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--ink-muted);
    text-align: center;
    margin-top: 6px;
}
.review-product-name {
    font-family: 'Fraunces', serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 1.2;
}
.review-product-meta {
    font-size: 12px;
    color: var(--ink-muted);
    margin-top: 2px;
}

.review-candidate { position: relative; margin-bottom: 10px; }
.candidate-badge {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--orange);
    margin-top: 6px;
    font-weight: 600;
}
.candidate-badge--ok { color: var(--leaf); }

.review-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}
.btn-small {
    font-size: 12px;
    padding: 7px 12px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    transition: all 0.2s;
}
.btn-restore { background: var(--bg-warm); color: var(--ink); }
.btn-restore:hover { background: var(--gold); color: white; }
.btn-regen { background: var(--bg-warm); color: var(--ink); }
.btn-regen:hover { background: var(--leaf); color: white; }
.btn-accept { background: var(--leaf); color: white; }
.btn-accept:hover { background: #1f3a2e; }
.btn-reject { background: transparent; color: var(--ink-muted); }
.btn-reject:hover { color: #B91C1C; }

.review-error {
    font-size: 12px;
    color: #B91C1C;
    background: #FEE2E2;
    padding: 8px 10px;
    border-radius: 6px;
    margin-bottom: 8px;
}

/* Indicateur de chargement HTMX : caché par défaut, visible pendant la requête */
.htmx-indicator { display: none; }
.htmx-request.htmx-indicator { display: inline; }
.htmx-request .htmx-indicator { display: inline; }
.spinner { color: var(--ink-muted); font-size: 12px; }

@media (max-width: 768px) {
    .review-grid { grid-template-columns: 1fr; }
}

/* ════════ RÉPARTITION PAR FAMILLE (import) ════════ */
.checkbox--primary span { color: var(--orange); }

.breakdown {
    background: var(--cream);
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 24px;
}
.breakdown h3 {
    font-family: 'Fraunces', serif;
    font-size: 18px;
    margin-bottom: 16px;
}
.breakdown-bars { display: flex; flex-direction: column; gap: 10px; }
.breakdown-row {
    display: grid;
    grid-template-columns: 200px 1fr 48px;
    align-items: center;
    gap: 12px;
    font-size: 13px;
}
.breakdown-label { font-weight: 500; }
.breakdown-bar-track {
    background: var(--bg-warm);
    border-radius: 99px;
    height: 14px;
    overflow: hidden;
}
.breakdown-bar-fill {
    background: linear-gradient(90deg, var(--orange), var(--orange-deep));
    height: 100%;
    border-radius: 99px;
    transition: width 0.4s ease;
}
.breakdown-count {
    text-align: right;
    font-family: 'Fraunces', serif;
    font-weight: 600;
}
.breakdown-fallback {
    margin-top: 16px;
    padding: 12px 16px;
    background: #FEF3C7;
    color: #92400E;
    border-radius: 6px;
    font-size: 13px;
    line-height: 1.5;
}
.breakdown-fallback code {
    background: rgba(0,0,0,0.06);
    padding: 1px 5px;
    border-radius: 3px;
}

@media (max-width: 640px) {
    .breakdown-row { grid-template-columns: 120px 1fr 36px; }
}

/* ════════ Promotions & rupture de stock ════════ */
.product-tag--sale {
    background: var(--orange-deep);
    color: #fff;
    font-weight: 700;
}
.product-tag--sold {
    background: rgba(26, 20, 16, 0.72);
    color: #fff;
}

/* Prix promo : prix actuel mis en avant + ancien prix barré */
.price-now { color: var(--orange-deep); font-weight: 700; }
.price-was {
    margin-left: 8px;
    color: var(--ink-muted);
    text-decoration: line-through;
    font-size: 0.85em;
    font-weight: 400;
}
.price-save {
    display: inline-block;
    margin-left: 10px;
    color: var(--orange-deep);
    font-size: 0.8em;
    font-weight: 600;
}

/* Carte épuisée : image légèrement atténuée */
.product-card--sold .product-image { opacity: 0.78; }
.btn-sold {
    display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; border-radius: 50%;
    background: var(--bg-warm); color: var(--ink-muted);
    font-size: 18px; cursor: not-allowed;
}

/* Bloc « épuisé » sur la fiche produit */
.product-sold-out {
    background: var(--bg-warm);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px 18px;
    margin: 18px 0;
}
.product-sold-out strong { color: var(--ink); }
.product-sold-out p { margin: 6px 0 0; color: var(--ink-muted); font-size: 14px; }

/* ════════ Comptes clients (auth) ════════ */
.nav-actions { display: flex; align-items: center; gap: 18px; }
.account-link {
    font-size: 14px; font-weight: 600; color: var(--ink-soft); text-decoration: none;
}
.account-link:hover { color: var(--orange-deep); }
.logout-form { margin: 0; }
.logout-btn {
    background: none; border: none; cursor: pointer; padding: 0;
    font: inherit; font-size: 13px; color: var(--ink-muted);
}
.logout-btn:hover { color: var(--orange-deep); }

.auth-page {
    max-width: 480px; margin: 48px auto; padding: 0 20px;
}
.auth-card, .account-panel {
    background: var(--cream); border: 1px solid var(--border);
    border-radius: 16px; padding: 32px 28px;
}
.auth-card h1, .account-panel h1 {
    font-family: 'Fraunces', serif; font-size: 28px; margin: 0 0 22px; color: var(--ink);
}
.form-field { margin-bottom: 16px; display: flex; flex-direction: column; }
.form-row { display: flex; gap: 14px; }
.form-row .form-field { flex: 1; }
.form-field label { font-size: 13px; font-weight: 600; color: var(--ink-soft); margin-bottom: 6px; }
.auth-card input[type=text],
.auth-card input[type=email],
.auth-card input[type=password] {
    width: 100%; padding: 11px 13px; border: 1px solid var(--border);
    border-radius: 9px; font-size: 15px; background: #fff; color: var(--ink);
    box-sizing: border-box;
}
.auth-card input:focus { outline: none; border-color: var(--orange); }
.field-error { color: #B91C1C; font-size: 12px; margin-top: 4px; }
.auth-error {
    background: #FEE2E2; color: #991B1B; padding: 11px 13px;
    border-radius: 9px; font-size: 14px; margin-bottom: 18px;
}
.auth-check {
    display: flex; align-items: center; gap: 8px;
    font-size: 14px; color: var(--ink-soft); margin: 6px 0 18px;
}
.auth-submit { width: 100%; }
.auth-alt { text-align: center; font-size: 14px; margin: 14px 0 0; color: var(--ink-muted); }
.auth-alt a { color: var(--orange-deep); font-weight: 600; }
.account-panel .muted { color: var(--ink-muted); font-size: 14px; }
.account-panel form { margin-top: 22px; }

/* ════════ Espace compte — mes commandes ════════ */
.account-page { max-width: 760px; margin: 40px auto; padding: 0 20px; }
.account-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.account-head h1 { font-family: 'Fraunces', serif; font-size: 28px; margin: 0; color: var(--ink); }
.account-section-title { font-size: 18px; color: var(--ink-soft); margin: 0 0 16px; }
.account-empty {
    background: var(--cream); border: 1px solid var(--border); border-radius: 14px;
    padding: 32px; text-align: center;
}
.account-empty p { margin: 0 0 16px; color: var(--ink-muted); }

.cust-order {
    background: var(--cream); border: 1px solid var(--border);
    border-radius: 14px; padding: 16px 18px; margin-bottom: 14px;
}
.cust-order-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.cust-order-num { font-weight: 700; color: var(--ink); }
.cust-order-date { color: var(--ink-muted); font-size: 13px; }
.cust-order-total { margin-left: auto; font-family: 'Fraunces', serif; font-weight: 600; color: var(--orange-deep); }
.cust-order-lines { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.cust-order-lines li {
    display: flex; justify-content: space-between; padding: 4px 0;
    border-bottom: 1px dashed var(--border);
}
.cust-order-lines li:last-child { border-bottom: none; }

.status-badge { font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; }
.status-pending    { background: #FEF3C7; color: #92400E; }
.status-paid       { background: #DBEAFE; color: #1E40AF; }
.status-preparing  { background: #E0E7FF; color: #3730A3; }
.status-shipped    { background: #CFFAFE; color: #155E75; }
.status-delivered  { background: #DCFCE7; color: #166534; }
.status-cancelled  { background: #FEE2E2; color: #991B1B; }

/* ════════ Popup détail commande ════════ */
.account-head-actions { display: flex; align-items: center; gap: 12px; }
.cust-order-detail {
    margin-top: 10px; background: none; border: none; cursor: pointer; padding: 0;
    font: inherit; font-size: 13px; font-weight: 600; color: var(--orange-deep);
}
.cust-order-detail:hover { text-decoration: underline; }

.modal-overlay {
    position: fixed; inset: 0; z-index: 1000;
    background: rgba(26, 20, 16, 0.55);
    display: flex; align-items: center; justify-content: center; padding: 20px;
    animation: modal-fade 0.15s ease-out;
}
@keyframes modal-fade { from { opacity: 0; } to { opacity: 1; } }
.modal-box {
    position: relative; background: var(--cream); border-radius: 16px;
    width: 100%; max-width: 560px; max-height: 88vh; overflow-y: auto;
    padding: 28px; box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}
.modal-close {
    position: absolute; top: 14px; right: 16px; background: none; border: none;
    font-size: 26px; line-height: 1; cursor: pointer; color: var(--ink-muted);
}
.modal-close:hover { color: var(--ink); }
.modal-head { display: flex; align-items: center; gap: 12px; }
.modal-head h2 { font-family: 'Fraunces', serif; font-size: 22px; margin: 0; color: var(--ink); }
.modal-date { color: var(--ink-muted); font-size: 13px; margin: 4px 0 18px; }
.modal-lines { width: 100%; border-collapse: collapse; font-size: 14px; margin-bottom: 16px; }
.modal-lines th {
    text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em;
    color: var(--ink-muted); padding: 6px 8px; border-bottom: 1px solid var(--border);
}
.modal-lines td { padding: 8px; border-bottom: 1px solid var(--border); }
.modal-totals { border-top: 2px solid var(--border); padding-top: 12px; }
.modal-totals > div { display: flex; justify-content: space-between; padding: 3px 0; font-size: 14px; }
.modal-total-final {
    border-top: 1px solid var(--border); margin-top: 6px; padding-top: 10px !important; font-size: 16px;
}
.modal-total-final strong { color: var(--orange-deep); font-family: 'Fraunces', serif; }
.modal-block { margin-top: 18px; }
.modal-block h3 { font-size: 14px; margin: 0 0 6px; color: var(--ink-soft); }
.modal-block p { margin: 2px 0; }

/* ════════ Page profil ════════ */
.profile-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 8px; }
.back-link { font-size: 13px; color: var(--ink-muted); text-decoration: none; }
.back-link:hover { color: var(--orange-deep); }
.profile-section {
    font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em;
    color: var(--ink-muted); margin: 22px 0 12px; padding-bottom: 6px;
    border-bottom: 1px solid var(--border);
}
.field-hint { color: var(--ink-muted); font-size: 12px; margin-top: 4px; }
.auth-success {
    background: #DCFCE7; color: #166534; padding: 11px 13px;
    border-radius: 9px; font-size: 14px; margin-bottom: 18px;
}

/* Bouton facture dans la popup */
.modal-actions { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--border); }
.btn-invoice {
    display: inline-block; background: var(--orange); color: #fff;
    padding: 11px 18px; border-radius: 9px; text-decoration: none;
    font-size: 14px; font-weight: 600;
}
.btn-invoice:hover { background: var(--orange-deep); }

/* ════════ Tunnel de commande (checkout) ════════ */
.checkout-page { max-width: 960px; margin: 40px auto; padding: 0 20px; }
.checkout-title { font-family: 'Fraunces', serif; font-size: 30px; margin: 0 0 24px; color: var(--ink); }
.checkout-grid { display: grid; grid-template-columns: 1fr 340px; gap: 28px; align-items: start; }
.checkout-section {
    font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em;
    color: var(--ink-muted); margin: 0 0 14px; padding-bottom: 6px; border-bottom: 1px solid var(--border);
}
.checkout-form .checkout-section:not(:first-child) { margin-top: 26px; }
.checkout-form input {
    width: 100%; padding: 11px 13px; border: 1px solid var(--border);
    border-radius: 9px; font-size: 15px; background: #fff; box-sizing: border-box;
}
.checkout-form input:focus { outline: none; border-color: var(--orange); }
.checkout-submit { width: 100%; margin-top: 22px; }
.checkout-note { text-align: center; font-size: 12px; color: var(--ink-muted); margin-top: 8px; }

.checkout-summary {
    background: var(--cream); border: 1px solid var(--border); border-radius: 14px; padding: 20px;
    position: sticky; top: 20px;
}
.checkout-lines { list-style: none; margin: 0 0 14px; padding: 0; font-size: 14px; }
.checkout-lines li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 5px 0; }
.checkout-line-product { display: flex; align-items: center; gap: 10px; min-width: 0; }
.checkout-line-thumb {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}
.checkout-line-thumb--emoji {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}
.checkout-totals { border-top: 1px solid var(--border); padding-top: 12px; }
.checkout-totals > div { display: flex; justify-content: space-between; padding: 4px 0; font-size: 14px; }
.checkout-total-final { border-top: 1px solid var(--border); margin-top: 6px; padding-top: 10px !important; font-size: 17px; }
.checkout-total-final strong { color: var(--orange-deep); font-family: 'Fraunces', serif; }
.checkout-ship-info { font-size: 12px; color: var(--ink-muted); margin-top: 12px; }

.btn-disabled { opacity: 0.5; pointer-events: none; cursor: not-allowed; }

/* Confirmation */
.confirm-page { max-width: 560px; margin: 56px auto; padding: 0 20px; }
.confirm-card {
    background: var(--cream); border: 1px solid var(--border); border-radius: 18px;
    padding: 40px 32px; text-align: center;
}
.confirm-check {
    width: 64px; height: 64px; border-radius: 50%; background: #DCFCE7; color: #166534;
    font-size: 34px; line-height: 64px; margin: 0 auto 18px;
}
.confirm-card h1 { font-family: 'Fraunces', serif; font-size: 26px; margin: 0 0 8px; color: var(--ink); }
.confirm-number { font-size: 15px; margin: 0 0 6px; }
.confirm-lines { list-style: none; margin: 22px 0 0; padding: 16px 0 0; border-top: 1px solid var(--border); text-align: left; font-size: 14px; }
.confirm-lines li { display: flex; justify-content: space-between; padding: 4px 0; }
.confirm-total { display: flex; justify-content: space-between; border-top: 1px solid var(--border); margin-top: 8px; padding-top: 12px; font-weight: 600; }
.confirm-total strong { color: var(--orange-deep); font-family: 'Fraunces', serif; }
.confirm-actions { display: flex; gap: 12px; justify-content: center; margin-top: 26px; flex-wrap: wrap; }

@media (max-width: 820px) { .checkout-grid { grid-template-columns: 1fr; } }

/* Prix promo dans le panier */
.cart-price-was { text-decoration: line-through; color: var(--ink-muted); margin-right: 5px; }
.cart-price-now { color: var(--orange-deep); font-weight: 600; }

.confirm-paid { color: #166534; font-weight: 600; margin: 0 0 4px; }

/* Widget Mondial Relay */
.mr-widget {
    min-height: 420px; border: 1px solid var(--border); border-radius: 12px;
    overflow: hidden; background: #fff; margin-bottom: 10px;
}
.relay-selected { font-size: 14px; margin: 6px 0 0; min-height: 20px; }
.relay-selected.relay-ok { color: #166534; font-weight: 600; }

/* Choix du mode de livraison */
.delivery-modes { display: flex; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.delivery-mode {
    flex: 1 1 160px; display: flex; align-items: center; gap: 10px;
    padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px;
    cursor: pointer; background: #fff;
}
.delivery-mode:has(input:checked) { border-color: var(--orange); background: var(--cream); }
.delivery-mode-label { display: flex; flex-direction: column; font-size: 14px; line-height: 1.4; }
.delivery-mode-label strong { color: var(--orange-deep); font-size: 15px; }

/* ════════ RECETTES ════════ */
.recipes-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
    max-width: 1280px; margin: 0 auto; padding: 0 48px;
}
.recipe-card {
    display: flex; flex-direction: column; text-decoration: none; color: inherit;
    background: var(--cream); border: 1px solid var(--border); border-radius: 14px;
    overflow: hidden; transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.recipe-card:hover { transform: translateY(-4px); box-shadow: 0 16px 32px rgba(0,0,0,.07); }
.recipe-card-img {
    aspect-ratio: 4 / 3; background: var(--bg-warm);
    display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.recipe-card-img img { width: 100%; height: 100%; object-fit: cover; }
.recipe-card-emoji { font-size: 56px; }
.recipe-card-body { padding: 18px 20px 22px; }
.recipe-card-body h3 { font-family: 'Fraunces', serif; font-weight: 600; font-size: 20px; margin: 0 0 6px; }
.recipe-card-body p { color: var(--ink-soft); font-size: 14px; line-height: 1.5; margin: 0 0 10px; }
.recipe-meta { display: flex; gap: 16px; color: var(--ink-muted); font-size: 13px; }
.recipe-meta--lg { gap: 24px; font-size: 15px; margin-top: 12px; }

.recipe-detail { max-width: 880px; margin: 0 auto; padding: 32px 48px 80px; }
.recipe-head h1 { font-family: 'Fraunces', serif; font-weight: 600; font-size: clamp(32px, 5vw, 52px); letter-spacing: -0.02em; margin: 8px 0 0; }
.recipe-intro { font-size: 18px; color: var(--ink-soft); line-height: 1.6; margin: 16px 0 0; }
/* Photo entière, quel que soit son format (portrait 4:5 des publications, paysage…) : jamais recadrée. */
.recipe-hero { margin: 32px 0; border-radius: 14px; overflow: hidden; display: flex; justify-content: center; background: rgba(0,0,0,.04); }
.recipe-hero img { display: block; width: auto; max-width: 100%; height: auto; max-height: 640px; object-fit: contain; }
.recipe-description { font-size: 16px; line-height: 1.7; color: var(--ink-soft); margin-bottom: 32px; white-space: pre-line; }
.recipe-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 48px; align-items: start; }
.recipe-grid h2 { font-family: 'Fraunces', serif; font-weight: 600; font-size: 24px; margin: 0 0 16px; }
.recipe-ingredients ul { list-style: none; padding: 0; margin: 0; }
.recipe-ingredients li { padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 15px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.ingredient-link { font-size: 12px; color: var(--orange-deep); text-decoration: none; border: 1px solid var(--orange); border-radius: 20px; padding: 2px 12px; white-space: nowrap; }
.ingredient-link:hover { background: var(--orange); color: #fff; }
.recipe-steps ol { padding-left: 22px; margin: 0; }
.recipe-steps li { padding: 8px 0; font-size: 16px; line-height: 1.6; color: var(--ink-soft); }
.recipe-shop { margin-top: 56px; }
.recipe-shop h2 { font-family: 'Fraunces', serif; font-weight: 600; font-size: 26px; margin: 0 0 24px; }

@media (max-width: 1024px) {
    .recipes-grid { grid-template-columns: repeat(2, 1fr); }
    .recipe-grid { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 640px) {
    .recipes-grid { grid-template-columns: 1fr; padding: 0 24px; gap: 20px; }
    .recipe-detail { padding: 24px 24px 64px; }
}

/* ─── Bandeaux boutique (annonce / pause commandes) ─── */
.shop-banner { text-align:center; padding:12px 20px; font-size:14px; font-weight:600; line-height:1.5; }
.shop-banner--info { background:#2D4A3E; color:#FAF6F0; }
.shop-banner--paused { background:#E8782D; color:#FFFFFF; }

/* ─── Bandeau consentement cookies (Analytics) ─── */
.cookie-consent { position:fixed; left:16px; right:16px; bottom:16px; max-width:720px; margin:0 auto; background:#1A1410; color:#FAF6F0; padding:16px 20px; border-radius:12px; display:flex; gap:16px; align-items:center; justify-content:space-between; flex-wrap:wrap; z-index:1000; font-size:14px; box-shadow:0 10px 30px rgba(0,0,0,.25); }
.cookie-consent-actions { display:flex; gap:10px; }
.cookie-consent button { padding:8px 16px; border-radius:999px; border:none; background:#E8782D; color:#fff; font-weight:600; cursor:pointer; }
.cookie-consent button.ghost { background:transparent; color:#FAF6F0; text-decoration:underline; }

/* ─── Carte rayon avec image générée ─── */
.category-card--img { background-size:cover; background-position:center; position:relative; }
.category-card--img::before { content:""; position:absolute; inset:0; background:linear-gradient(to top, rgba(20,16,12,.62), rgba(20,16,12,.08)); }
.category-card--img .category-content { position:relative; z-index:1; color:#FAF6F0; }

/* ─── DDM (date de durabilité minimale) ─── */
.product-bbd { font-size: 12px; font-weight: 600; margin: -6px 0 12px; }
.product-bbd--soon { color: #92400E; }
.product-bbd--expired { color: #B91C1C; }
.bbd-notice { border-radius: 8px; padding: 14px 16px; margin: 18px 0; font-size: 14px; line-height: 1.5; }
.bbd-notice p { margin: 6px 0 0; }
.bbd-notice ul { margin: 8px 0 0 18px; }
.bbd-notice--soon { background: #FEF3C7; color: #92400E; border: 1px solid #FCD34D; }
.bbd-notice--expired { background: #FEE2E2; color: #7F1D1D; border: 1px solid #FCA5A5; }
.bbd-accept { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; font-weight: 600; cursor: pointer; }
.bbd-accept input { margin-top: 3px; }
