/*
 * King's Cake — feuille de style du site public
 *
 * Construite sur le kit de marque (Kit King's Cake.dc.html) :
 *  - Encre #121110, Or clair #C9A063, Or foncé #8A6620, Crème #F4EFE6
 *  - L'or clair uniquement sur l'encre, l'or foncé uniquement sur la crème ou le blanc
 *  - Rozha One pour le monogramme et les grands titres (jamais sous 24 px)
 *  - Familjen Grotesk pour le reste : nom espacé, parfums, prix, mentions
 *  - Angles droits, filets fins, pas d'ombres ni de dégradés
 */

/* ---------- Tokens ---------- */
:root {
    --ink: #121110;
    --ink-raised: #1C1A18;
    --ink-line: #34302B;
    --cream: #F4EFE6;
    --paper: #FBF8F3;
    --white: #FFFFFF;
    --line: #DDD4C5;
    --line-strong: #C9BCA8;

    --text: #121110;
    --text-2: #4A423C;
    --muted: #6B615A;

    --gold: #C9A063;        /* sur encre uniquement */
    --gold-dark: #8A6620;   /* sur crème / blanc uniquement */
    --gold-text: #74561A;   /* petits textes dorés sur crème */

    --on-ink: #F4EFE6;
    --on-ink-muted: #A3968A;

    --whatsapp: #25D366;
    --error: #9B2C1F;

    --serif: 'Rozha One', Georgia, 'Times New Roman', serif;
    --sans: 'Familjen Grotesk', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

    --container: 1200px;
    --gutter: clamp(16px, 4vw, 40px);
    --header-h: 72px;
    --section-y: clamp(64px, 9vw, 120px);
    --ease: cubic-bezier(0.2, 0, 0, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
    margin: 0;
    background: var(--cream);
    color: var(--text);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body.is-locked { overflow: hidden; }

main { flex: 1 0 auto; }

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

a { color: inherit; text-decoration: none; }

button, input, select, textarea { font: inherit; color: inherit; }

button { cursor: pointer; background: none; border: 0; padding: 0; }

h1, h2, h3, h4, p { margin: 0; }

p { text-wrap: pretty; }

::selection { background: var(--ink); color: var(--cream); }

:focus-visible { outline: 2px solid var(--gold-dark); outline-offset: 3px; }
.on-ink :focus-visible { outline-color: var(--gold); }

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.icon { flex-shrink: 0; display: inline-block; vertical-align: middle; }

.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

/* ---------- Typographie ---------- */
.display {
    font-family: var(--serif);
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: -0.005em;
}

.h1 { font-size: clamp(40px, 4.6vw, 62px); line-height: 1.06; }
.h2 { font-size: clamp(32px, 3.8vw, 48px); line-height: 1.1; }

.label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold-text);
}
.on-ink .label { color: var(--gold); }

.lead {
    font-size: clamp(17px, 1.4vw, 19px);
    line-height: 1.6;
    color: var(--text-2);
    max-width: 34em;
}
.on-ink .lead { color: var(--on-ink-muted); }

/* ---------- Logo (signature horizontale du kit) ---------- */
.logo {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    user-select: none;
}

.logo-mark {
    display: inline-flex;
    align-items: center;
    font-family: var(--serif);
    font-size: 40px;
    line-height: 0.82;
}
.logo-mark .k { position: relative; z-index: 2; color: var(--ink); }
.logo-mark .c { position: relative; z-index: 1; margin-left: -0.24em; color: var(--gold-dark); }

.logo-sep { width: 1px; height: 32px; background: var(--line-strong); }

.logo-text { display: flex; flex-direction: column; gap: 6px; }

.logo-name {
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.28em;
    line-height: 1;
    color: var(--ink);
}

.logo-sub {
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.24em;
    line-height: 1;
    color: var(--gold-dark);
}

.on-ink .logo-mark .k, .on-ink .logo-name { color: var(--on-ink); }
.on-ink .logo-mark .c, .on-ink .logo-sub { color: var(--gold); }
.on-ink .logo-sep { background: #4A3F35; }

/* ---------- Boutons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 50px;
    padding: 0 26px;
    border: 1px solid transparent;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 1;
    white-space: nowrap;
    transition: background-color 200ms var(--ease), color 200ms var(--ease), border-color 200ms var(--ease);
}

.btn-primary { background: var(--ink); color: var(--cream); }
.btn-primary:hover { background: #2B2724; }

.btn-secondary { border-color: var(--ink); color: var(--ink); }
.btn-secondary:hover { background: var(--ink); color: var(--cream); }

.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: #D6B07A; }

.btn-ghost-ink { border-color: rgba(244, 239, 230, 0.35); color: var(--on-ink); }
.btn-ghost-ink:hover { border-color: var(--on-ink); }

.btn-block { width: 100%; }

.btn[disabled] { opacity: 0.6; cursor: wait; }

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    border-bottom: 1px solid currentColor;
    padding-bottom: 2px;
}

/* ---------- En-tête ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(244, 239, 230, 0.96);
    border-bottom: 1px solid var(--line);
}

@supports (backdrop-filter: blur(8px)) {
    .site-header { background: rgba(244, 239, 230, 0.94); backdrop-filter: blur(8px); }
}

.site-header .container {
    height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.site-nav { display: flex; align-items: center; gap: 32px; }

.site-nav a {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-2);
    transition: color 150ms;
}
.site-nav a:hover { color: var(--ink); }
.site-nav a.is-current { color: var(--ink); }

.cart-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    padding: 0 14px;
    border: 1px solid var(--ink);
    font-size: 15px;
    font-weight: 600;
    transition: background-color 150ms, color 150ms;
}
.cart-trigger:hover { background: var(--ink); color: var(--cream); }

.cart-count {
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--ink);
    color: var(--cream);
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
}
.cart-trigger:hover .cart-count { background: var(--cream); color: var(--ink); }
.cart-count[hidden] { display: none; }

@media (max-width: 760px) {
    :root { --header-h: 64px; }
    .site-nav { gap: 20px; }
    .logo-mark { font-size: 34px; }
    .logo-name { font-size: 13px; letter-spacing: 0.24em; }
    .logo-sub { display: none; }
    .logo-sep { height: 26px; }
}

@media (max-width: 1000px) {
    .site-nav a.nav-optional { display: none; }
}

@media (max-width: 420px) {
    .site-nav a.nav-short { display: none; }
}

/* ---------- Sections ---------- */
.section { padding-block: var(--section-y); }
.section + .section { border-top: 1px solid var(--line); }
.section--ink + .section, .section + .section--ink { border-top: 0; }

.section--ink { background: var(--ink); color: var(--on-ink); }
.section--paper { background: var(--paper); }

.section-head {
    display: grid;
    gap: 16px;
    margin-bottom: clamp(40px, 5vw, 64px);
}

@media (min-width: 900px) {
    .section-head {
        grid-template-columns: 1fr 1fr;
        align-items: end;
        gap: 48px;
    }
    .section-head .lead { justify-self: end; }
}

/* ---------- Hero ---------- */
.hero { padding-block: clamp(40px, 6vw, 88px) clamp(56px, 7vw, 104px); }

.hero-grid {
    display: grid;
    gap: clamp(40px, 5vw, 72px);
    align-items: center;
}

@media (min-width: 900px) {
    .hero-grid { grid-template-columns: 1.15fr 1fr; }
}

.hero-copy { display: flex; flex-direction: column; gap: 28px; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 8px; }

.hero-media {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: var(--line);
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 899px) {
    .hero-media { aspect-ratio: 4 / 3; }
}

.facts {
    display: grid;
    grid-template-columns: repeat(3, auto);
    justify-content: start;
    margin: 12px 0 0;
    padding-top: 28px;
    border-top: 1px solid var(--line);
}

.fact { padding-right: 28px; }
.fact + .fact { padding-left: 28px; border-left: 1px solid var(--line); }
.fact dt { font-size: 13px; color: var(--muted); }
.fact dd { margin: 2px 0 0; font-size: 15px; font-weight: 600; }

@media (max-width: 560px) {
    .facts { grid-template-columns: 1fr; gap: 14px; }
    .fact, .fact + .fact { padding: 0; border: 0; }
    .fact { display: flex; justify-content: space-between; gap: 16px; }
    .fact dd { margin: 0; text-align: right; }
}

/* ---------- La carte ---------- */
.menu-group + .menu-group { margin-top: clamp(56px, 7vw, 88px); }

.menu-group-title {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
}
.menu-group-title::after { content: ''; flex: 1; height: 1px; background: var(--line); }

.product-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px 16px;
}

@media (min-width: 760px) {
    .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px 28px; }
}

.product {
    position: relative;
    display: flex;
    flex-direction: column;
}

.product-media {
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: var(--line);
    margin-bottom: 18px;
}
.product-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 700ms var(--ease);
}
.product:hover .product-media img { transform: scale(1.03); }

.product-unit {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 6px;
}

.product-name { font-family: var(--serif); font-weight: 400; font-size: 26px; line-height: 1.1; }

.product-desc {
    margin-top: 10px;
    font-size: 15px;
    line-height: 1.55;
    color: var(--text-2);
}

.product-foot {
    margin-top: auto;
    padding-top: 18px;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.product-price { font-size: 15px; }
.product-price strong { font-weight: 600; }

.product-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    font-weight: 600;
    border-bottom: 1px solid var(--ink);
    padding-bottom: 1px;
}
/* toute la carte est cliquable */
.product-cta::after { content: ''; position: absolute; inset: 0; }

.product.is-unavailable { opacity: 0.55; }
.product.is-unavailable .product-cta { border-bottom-color: transparent; pointer-events: none; }

@media (max-width: 759px) {
    .product-name { font-size: 24px; }
    .product-desc { display: none; }
    .product-foot { flex-direction: column; gap: 8px; padding-top: 10px; }
    .product-media { margin-bottom: 12px; }
}

/* ---------- Sur mesure ---------- */
.split {
    display: grid;
    gap: 48px;
}

@media (min-width: 900px) {
    .split { grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }
}

.split-copy { display: flex; flex-direction: column; gap: 24px; }

.checklist { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink-line); }
.checklist li {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 8px;
    padding: 18px 0;
    border-bottom: 1px solid var(--ink-line);
}
.checklist .num { font-size: 13px; font-weight: 600; color: var(--gold); padding-top: 2px; }
.checklist strong { display: block; font-weight: 600; color: var(--on-ink); }
.checklist span.desc { display: block; color: var(--on-ink-muted); font-size: 15px; }

/* ---------- Commander & livraison ---------- */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li {
    counter-increment: step;
    display: grid;
    grid-template-columns: 48px 1fr;
    padding: 20px 0;
    border-top: 1px solid var(--line);
}
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps li::before {
    content: counter(step, decimal-leading-zero);
    font-size: 13px;
    font-weight: 600;
    color: var(--gold-text);
    padding-top: 3px;
}
.steps strong { display: block; font-weight: 600; }
.steps p { color: var(--text-2); font-size: 15px; }

.zones { width: 100%; border-collapse: collapse; font-size: 15px; }
.zones caption { text-align: left; margin-bottom: 12px; }
.zones th, .zones td { text-align: left; padding: 14px 0; border-top: 1px solid var(--line); vertical-align: top; }
.zones tr:last-child th, .zones tr:last-child td { border-bottom: 1px solid var(--line); }
.zones th { font-weight: 600; white-space: nowrap; padding-right: 20px; }
.zones td.areas { color: var(--text-2); padding-right: 20px; }
.zones td.fee { text-align: right; font-weight: 600; white-space: nowrap; }
.zones td.fee + td.fee, .zones th.fee + th.fee { padding-left: 20px; }
.zones thead th, .zones thead td { border-top: 0; padding-bottom: 8px; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); text-align: right; }

@media (max-width: 560px) {
    .zones tr { display: grid; grid-template-columns: 1fr auto; border-top: 1px solid var(--line); padding: 12px 0; }
    .zones tr:last-child { border-bottom: 1px solid var(--line); }
    .zones th, .zones td, .zones tr:last-child th, .zones tr:last-child td { border: 0; padding: 0; }
    .zones tr { grid-template-columns: 1fr auto auto; column-gap: 16px; }
    .zones thead tr { border-top: 0; padding-bottom: 4px; }
    .zones thead .areas { display: none; }
    .zones tr > :first-child { grid-column: 1; grid-row: 1; }
    .zones td.fee, .zones th.fee { grid-row: 1; padding-left: 0; }
    .zones tr > .fee:nth-last-child(2) { grid-column: 2; }
    .zones tr > .fee:last-child { grid-column: 3; }
    .zones td.fee + td.fee, .zones th.fee + th.fee { padding-left: 0; }
    .zones td.areas { grid-column: 1 / -1; padding-top: 2px; font-size: 14px; }
}

.note-list { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 6px; font-size: 15px; color: var(--text-2); }
.note-list strong { color: var(--text); font-weight: 600; }

/* ---------- Avis ---------- */
.reviews { display: grid; gap: 24px; }
@media (min-width: 760px) { .reviews { grid-template-columns: repeat(3, 1fr); gap: 32px; } }

.review { padding-top: 24px; border-top: 1px solid var(--ink); display: flex; flex-direction: column; gap: 16px; }
.review blockquote { margin: 0; font-size: 17px; line-height: 1.55; }
.review figcaption { font-size: 14px; color: var(--muted); }
.review figcaption strong { color: var(--text); font-weight: 600; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--ink); color: var(--on-ink); padding: clamp(56px, 7vw, 88px) 0 32px; }

.footer-grid { display: grid; gap: 40px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }

.footer-title { font-size: 12px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }

.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; color: var(--on-ink-muted); }
.footer-list a { color: var(--on-ink); transition: color 150ms; }
.footer-list a:hover { color: var(--gold); }

.footer-tagline { margin-top: 20px; color: var(--on-ink-muted); max-width: 26em; font-size: 15px; }

.footer-bottom {
    margin-top: 56px;
    padding-top: 24px;
    border-top: 1px solid var(--ink-line);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px;
    font-size: 13px;
    color: var(--on-ink-muted);
}

/* ---------- Bouton WhatsApp flottant ---------- */
.wa-float {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 20;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--whatsapp);
    color: #FFFFFF;
    box-shadow: 0 6px 18px rgba(18, 17, 16, 0.18);
    transition: transform 200ms var(--ease);
}
.wa-float:hover { transform: translateY(-2px); }

/* ---------- Formulaires ---------- */
.field { display: flex; flex-direction: column; gap: 8px; }
.field + .field { margin-top: 20px; }

.field-label { font-size: 14px; font-weight: 600; color: var(--text); }
.field-hint { font-size: 13px; color: var(--muted); font-weight: 400; }

.input, .select {
    width: 100%;
    height: 50px;
    padding: 0 14px;
    background: var(--white);
    border: 1px solid var(--line-strong);
    border-radius: 0;
    font-size: 16px; /* évite le zoom auto sur iOS */
    color: var(--text);
    transition: border-color 150ms;
    -webkit-appearance: none;
    appearance: none;
}
.input::placeholder { color: #9C9188; }
.input:hover, .select:hover { border-color: var(--muted); }
.input:focus, .select:focus { outline: none; border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }

.select {
    padding-right: 40px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23121110' stroke-width='1.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}

.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice-box {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 12px 14px;
    border: 1px solid var(--line-strong);
    background: var(--white);
    transition: border-color 150ms, box-shadow 150ms;
}
.choice:hover .choice-box { border-color: var(--muted); }
.choice input:checked + .choice-box { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.choice input:focus-visible + .choice-box { outline: 2px solid var(--gold-dark); outline-offset: 2px; }
.choice-title { font-weight: 600; font-size: 15px; }
.choice-meta { font-size: 13px; color: var(--muted); }

.check {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--line-strong);
    background: var(--white);
    cursor: pointer;
    font-size: 15px;
}
.check input { width: 18px; height: 18px; accent-color: var(--ink); margin: 0; }
.check .check-price { margin-left: auto; color: var(--muted); }

.stepper {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--line-strong);
    background: var(--white);
}
.stepper button {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
}
.stepper button:hover { background: var(--cream); }
.stepper output { min-width: 32px; text-align: center; font-weight: 600; }

.stepper--sm button { width: 34px; height: 34px; }
.stepper--sm output { min-width: 24px; font-size: 14px; }

/* ---------- Fenêtre de commande (modale) ---------- */
.overlay {
    position: fixed;
    inset: 0;
    z-index: 40;
    background: rgba(18, 17, 16, 0.55);
    opacity: 0;
    visibility: hidden;
    transition: opacity 250ms var(--ease), visibility 250ms;
}
.overlay.is-open { opacity: 1; visibility: visible; }

.modal {
    position: fixed;
    z-index: 50;
    left: 50%;
    top: 50%;
    width: min(560px, calc(100% - 32px));
    max-height: calc(100vh - 48px);
    display: flex;
    flex-direction: column;
    background: var(--paper);
    transform: translate(-50%, -48%);
    opacity: 0;
    visibility: hidden;
    transition: opacity 250ms var(--ease), transform 250ms var(--ease), visibility 250ms;
}
.modal.is-open { opacity: 1; visibility: visible; transform: translate(-50%, -50%); }

@media (max-width: 559px) {
    .modal {
        left: 0;
        top: auto;
        bottom: 0;
        width: 100%;
        max-height: 92vh;
        transform: translateY(24px);
    }
    .modal.is-open { transform: translateY(0); }
}

.modal-head {
    display: grid;
    grid-template-columns: 72px 1fr auto;
    gap: 16px;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--line);
}
.modal-thumb { width: 72px; height: 72px; object-fit: cover; background: var(--line); }
.modal-title { font-family: var(--serif); font-weight: 400; font-size: 28px; line-height: 1.1; }
.modal-sub { font-size: 14px; color: var(--muted); margin-top: 4px; }

.icon-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    border: 1px solid transparent;
    transition: border-color 150ms;
}
.icon-btn:hover { border-color: var(--line-strong); }

.modal-body { padding: 24px; overflow-y: auto; }
.modal-body .option-group[hidden] { display: none; }
.modal-body .option-group + .option-group:not([hidden]) { margin-top: 20px; }

.qty-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}

.modal-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 24px;
    border-top: 1px solid var(--line);
    background: var(--white);
}
.total-label { display: block; font-size: 13px; color: var(--muted); }
.total-value { font-size: 22px; font-weight: 600; line-height: 1.2; white-space: nowrap; }

/* ---------- Panier latéral ---------- */
.drawer {
    position: fixed;
    z-index: 50;
    top: 0;
    right: 0;
    width: min(420px, 100%);
    height: 100%;
    display: flex;
    flex-direction: column;
    background: var(--paper);
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 300ms var(--ease), visibility 300ms;
}
.drawer.is-open { transform: translateX(0); visibility: visible; }

.drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    height: var(--header-h);
    border-bottom: 1px solid var(--line);
}
.drawer-title { font-size: 18px; font-weight: 600; }
.drawer-title span { color: var(--muted); font-weight: 400; }

.drawer-body { flex: 1; overflow-y: auto; padding: 8px 24px; }

.drawer-foot { padding: 20px 24px 24px; border-top: 1px solid var(--line); background: var(--white); }
.drawer-foot[hidden] { display: none; }
.drawer-total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4px; }
.drawer-total strong { font-size: 20px; font-weight: 600; }
.drawer-note { font-size: 13px; color: var(--muted); margin-bottom: 16px; }

.empty-state { padding: 48px 0; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; color: var(--text-2); }

.line-item {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
}
.line-item:last-child { border-bottom: 0; }
.line-item img { width: 64px; height: 64px; object-fit: cover; background: var(--line); }
.line-item-top { display: flex; justify-content: space-between; gap: 12px; }
.line-item-name { font-weight: 600; }
.line-item-price { font-weight: 600; white-space: nowrap; }
.line-item-meta { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.line-item-msg { font-size: 13px; color: var(--text-2); font-style: italic; margin-top: 2px; }
.line-item-actions { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }

.text-btn { font-size: 13px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.text-btn:hover { color: var(--error); }

/* ---------- Page panier ---------- */
.page-head { padding: clamp(40px, 6vw, 72px) 0 clamp(32px, 4vw, 48px); }
.page-head .lead { margin-top: 12px; }

.checkout-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; padding-bottom: var(--section-y); }
.checkout-panel .select { width: 100%; min-width: 0; }

@media (min-width: 960px) {
    .checkout-grid { grid-template-columns: 1.3fr 1fr; gap: 64px; align-items: start; }
    .checkout-panel { position: sticky; top: calc(var(--header-h) + 24px); }
}

.cart-list { border-top: 1px solid var(--ink); }
.cart-list .line-item { grid-template-columns: 96px minmax(0, 1fr); gap: 20px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.cart-list .line-item:last-child { border-bottom: 1px solid var(--line); }
.cart-list .line-item img { width: 96px; height: 96px; }
.cart-list .line-item-name { font-size: 17px; }

.cart-list-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 20px; font-size: 15px; }

.checkout-panel { background: var(--white); border: 1px solid var(--line); padding: clamp(24px, 3vw, 36px); }
.checkout-panel h2 { font-size: 20px; font-weight: 600; margin-bottom: 24px; }

.summary { margin: 28px 0 24px; padding-top: 20px; border-top: 1px solid var(--line); display: grid; gap: 8px; font-size: 15px; }
.summary-row { display: flex; justify-content: space-between; gap: 16px; color: var(--text-2); }
.summary-row.total { margin-top: 8px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--text); font-size: 18px; font-weight: 600; }

.form-note { margin-top: 14px; font-size: 13px; color: var(--muted); text-align: center; }

/* ---------- Notifications ---------- */
.toast-stack {
    position: fixed;
    z-index: 60;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: min(420px, calc(100% - 32px));
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    background: var(--ink);
    color: var(--cream);
    font-size: 15px;
    pointer-events: auto;
    animation: toast-in 250ms var(--ease);
}
.toast.is-error { background: var(--error); }
.toast button { color: inherit; opacity: 0.7; display: flex; }
.toast button:hover { opacity: 1; }

@keyframes toast-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition-duration: 0ms !important; animation-duration: 0ms !important; }
    html { scroll-behavior: auto; }
}

textarea.input { height: auto; min-height: 96px; padding: 12px 14px; line-height: 1.5; resize: vertical; }
.field[hidden] { display: none; }
.modal > form { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; }
.modal-body { flex: 1 1 auto; min-height: 0; }
fieldset.option-group { border: 0; padding: 0; min-width: 0; }
fieldset.option-group legend { padding: 0; margin-bottom: 8px; }
.modal-body .option-group, .modal-body .option-group + .option-group:not([hidden]) { margin: 0 0 20px; }
.modal-body .qty-row { margin-top: 4px; }
.checklist-title { margin-bottom: 20px; }
.empty-state--page { padding-bottom: var(--section-y); }

/* ---------- Qui sommes-nous ---------- */
.about { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .about { grid-template-columns: 0.9fr 1fr; gap: 80px; } }
.about .split-copy .lead + .lead { margin-top: -8px; }

.about-media { aspect-ratio: 4 / 5; max-height: 560px; overflow: hidden; background: var(--ink); }
.about-media img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 899px) { .about-media { aspect-ratio: 4 / 3; } }

.about-seal {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
    background: var(--ink);
}
.about-seal-mark {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: var(--serif);
    font-size: clamp(96px, 12vw, 150px);
    line-height: 0.8;
}
.about-seal-mark .k { color: var(--gold); }
.about-seal-mark .c { color: var(--on-ink); }
.about-seal-text { font-size: 13px; font-weight: 600; letter-spacing: 0.3em; color: var(--on-ink-muted); text-indent: 0.3em; }

.about-social { font-size: 15px; color: var(--text-2); }
.about-social a { color: var(--text); font-weight: 600; border-bottom: 1px solid currentColor; }

/* ---------- Bannière historique (section sur mesure) ---------- */
.custom-banner { display: block; margin-top: 16px; background: #DFD0CA; }
.custom-banner img { width: 100%; height: auto; transition: opacity 200ms var(--ease); }
.custom-banner:hover img { opacity: 0.92; }

/* ---------- Configurateur « Composez votre gâteau » ---------- */
@font-face {
    font-family: 'KC Script';
    src: url('../fonts/great-vibes.woff2') format('woff2');
    font-weight: 400;
    font-display: swap;
}

.product-tabs { display: flex; gap: 0; margin-bottom: 32px; border-bottom: 1px solid var(--line-strong); overflow-x: auto; }
.product-tab {
    padding: 12px 18px;
    margin-bottom: -1px;
    border-bottom: 2px solid transparent;
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
    color: var(--muted);
}
.product-tab.is-active { color: var(--ink); border-bottom-color: var(--ink); }
.product-tab:hover { color: var(--ink); }
.product-tab.is-disabled, .product-tab.is-disabled:hover { cursor: default; color: var(--muted); }
.product-tab span { margin-left: 4px; font-size: 12px; font-weight: 500; color: var(--muted); }

.composer { display: grid; gap: 32px; padding-bottom: var(--section-y); }

.stage { position: relative; background: var(--paper); border: 1px solid var(--line); }
.stage svg { display: block; width: 100%; height: auto; }
.stage-foot { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 18px; border-top: 1px solid var(--line); }
.stage-label { font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.stage-price { font-size: 20px; font-weight: 600; }

.cstep { padding: 24px 0; border-top: 1px solid var(--line); }
.cstep:first-child { padding-top: 0; border-top: 0; }
.cstep-title { display: flex; align-items: baseline; gap: 12px; margin: 0 0 16px; font-size: 18px; font-weight: 600; }
.cstep-title span { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; color: var(--gold-text); }
.cstep-title small { font-size: 13px; font-weight: 400; color: var(--muted); }
.cstep-sub { margin: 18px 0 8px; font-size: 13px; color: var(--muted); }
.cstep-title + .cstep-sub { margin-top: 0; }

.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.swatch {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    padding: 10px 12px;
    border: 1px solid var(--line-strong);
    background: var(--white);
    text-align: left;
    transition: border-color 150ms, box-shadow 150ms;
}
.swatch:hover { border-color: var(--muted); }
.swatch[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.swatch:focus-visible { outline: 2px solid var(--gold-dark); outline-offset: 2px; }
.swatch .dot { flex: none; width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(18, 17, 16, 0.14); }
.swatch-text { display: flex; flex-direction: column; flex: 1; min-width: 0; line-height: 1.25; }
.swatch-text b { font-size: 14px; font-weight: 600; }
.swatch-text small { font-size: 12px; color: var(--muted); }

.recap-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.recap-list li { display: grid; grid-template-columns: 96px 1fr auto; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.recap-list span { color: var(--muted); }
.recap-list b { font-weight: 500; }
.recap-list em { font-style: normal; color: var(--muted); white-space: nowrap; }
.recap-total { display: flex; justify-content: space-between; align-items: baseline; padding: 16px 0 20px; font-size: 15px; }
.recap-total strong { font-size: 22px; font-weight: 600; }
.recap-actions { display: grid; gap: 10px; }

@media (min-width: 960px) {
    .composer { grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: start; }
    .stage { position: sticky; top: calc(var(--header-h) + 24px); }
}

@media (max-width: 959px) {
    /* Sur mobile, le gâteau reste visible en haut pendant qu'on choisit */
    .stage { position: sticky; top: var(--header-h); z-index: 5; }
    .stage svg { max-height: 36vh; margin-inline: auto; }
    .stage-foot { padding: 8px 14px; }
}

@media (max-width: 559px) {
    .swatches { grid-template-columns: 1fr 1fr; }
    .swatch { padding: 8px 10px; gap: 8px; }
    .recap-list li { grid-template-columns: 84px 1fr; }
    .recap-list em { grid-column: 2; margin-top: -8px; }
}

/* Génoises couche par couche */
.layer-list { list-style: none; margin: 0 0 14px; padding: 0; border-top: 1px solid var(--line); }
.layer-row { display: grid; grid-template-columns: 18px 92px 1fr 1fr 52px; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.layer-swatch { width: 18px; height: 18px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(18, 17, 16, 0.18); }
.layer-name { display: flex; flex-direction: column; line-height: 1.3; }
.layer-name b { font-size: 14px; font-weight: 600; }
.layer-name small { font-size: 12px; color: var(--muted); }
.select--sm { height: 40px; padding: 0 28px 0 10px; font-size: 13px; background-position: right 10px center; min-width: 0; }
.select--sm:disabled { color: var(--muted); background-color: var(--paper); }
.layer-row > span:empty:not(.layer-swatch) { display: none; }
.layer-add { width: 100%; white-space: normal; }
.layer-add[hidden] { display: none; }

@media (max-width: 559px) {
    .layer-row { grid-template-columns: 18px 1fr 1fr; }
    .layer-row .layer-name { grid-column: 2; }
    .layer-row .text-btn { grid-column: 3; grid-row: 1; justify-self: end; }
    .layer-row .select--sm:first-of-type { grid-column: 1 / 3; }
}

/* Animations du gâteau */
.cake-drop { animation: cake-drop 480ms var(--ease) both; }

@keyframes cake-drop {
    from { opacity: 0; transform: translateY(-28px); }
    to { opacity: 1; transform: none; }
}

/* Pack de layercups : un parfum par ligne, avec compteur */
.cup-list { list-style: none; margin: 0 0 12px; padding: 0; border-top: 1px solid var(--line); }
.cup-row { display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 12px; padding: 8px 0 8px 2px; border-bottom: 1px solid var(--line); transition: background 150ms; }
.cup-row.is-in { background: var(--paper); box-shadow: inset 2px 0 0 var(--ink); }
.cup-row .stepper button:disabled { opacity: 0.35; cursor: default; background: none; }
.cup-chip { width: 18px; height: 24px; border-radius: 2px 2px 5px 5px; box-shadow: inset 0 0 0 1px rgba(18, 17, 16, 0.18);
    background: linear-gradient(var(--cream) 0 25%, var(--sponge) 25% 45%, var(--cream) 45% 70%, var(--sponge) 70%); }

/* Bandeau promo (réglé dans l'admin) */
.promo-banner { background: var(--ink); color: var(--cream); font-size: 14px; text-align: center; }
.promo-banner .container { padding-block: 10px; }
.promo-banner p { margin: 0; }
.promo-banner a { display: inline-flex; align-items: center; gap: 6px; color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }

/* Code promo dans le panier */
.promo-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.promo-row .input { text-transform: uppercase; }
.promo-row[hidden], .promo-applied[hidden], .summary-row[hidden] { display: none; }
.promo-applied { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--ink); background: var(--paper); font-size: 15px; }
.promo-applied b { font-weight: 600; letter-spacing: 0.04em; }
.promo-field .form-note:empty { display: none; }
.summary-discount span:last-child { color: var(--gold-dark); font-weight: 600; }

/* Description des parfums de layercups */
.flavor-desc { margin: 8px 0 0; font-size: 14px; line-height: 1.45; color: var(--text-2); }
.flavor-desc:empty { display: none; }
.cup-row .layer-name b i { font-style: normal; font-weight: 500; color: var(--muted); }
.cup-row .layer-name small { margin-top: 2px; line-height: 1.4; }
.cup-row .cup-price { margin-top: 3px; font-style: normal; font-size: 13px; font-weight: 600; color: var(--text); }

/* ---------- Galerie ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.gallery-card { display: grid; gap: 14px; padding: 0; text-align: left; background: none; border: 0; cursor: pointer; color: var(--text); }
.gallery-thumb { display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--line); }
.gallery-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 400ms var(--ease); }
.gallery-card:hover .gallery-thumb img { transform: scale(1.04); }
.gallery-card:focus-visible { outline: 2px solid var(--gold-dark); outline-offset: 4px; }
.gallery-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.gallery-meta b { font-family: 'Rozha One', serif; font-weight: 400; font-size: 24px; }
.gallery-meta small { font-size: 13px; color: var(--muted); white-space: nowrap; }
@media (max-width: 759px) {
    .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
    .gallery-meta b { font-size: 19px; }
}

/* Visionneuse */
.viewer { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 16px 16px 20px; border: 0; background: var(--ink); color: var(--cream); }
.viewer[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 12px; }
.viewer::backdrop { background: rgba(18, 17, 16, .9); }
.viewer-top { display: flex; align-items: center; gap: 16px; max-width: 1100px; width: 100%; margin: 0 auto; }
.viewer-title { margin: 0; font-family: 'Rozha One', serif; font-size: 26px; flex: 1; }
.viewer-count { font-size: 14px; color: var(--on-ink-muted); }
.viewer-close { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; color: var(--cream); background: none; border: 1px solid rgba(244, 239, 230, .3); cursor: pointer; }
.viewer-stage { position: relative; margin: 0; display: grid; grid-template-rows: minmax(0, 1fr) auto; place-items: center; gap: 10px; min-height: 0; }
.viewer-stage img { max-width: min(100%, 1100px); max-height: 100%; object-fit: contain; min-height: 0; }
.viewer-stage figcaption { font-size: 15px; color: var(--on-ink-muted); text-align: center; }
.viewer-nav { position: absolute; top: 50%; transform: translateY(-50%); display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; color: var(--cream); background: rgba(18, 17, 16, .55); border: 1px solid rgba(244, 239, 230, .3); cursor: pointer; z-index: 1; }
.viewer-nav[data-viewer-step="-1"] { left: 0; }
.viewer-nav[data-viewer-step="1"] { right: 0; }
.viewer-nav:hover, .viewer-close:hover { border-color: var(--gold); color: var(--gold); }
.viewer-strip { display: flex; gap: 8px; justify-content: center; overflow-x: auto; padding-bottom: 2px; }
.viewer-strip button { flex: none; width: 64px; height: 64px; padding: 0; border: 1px solid transparent; background: none; cursor: pointer; opacity: .55; }
.viewer-strip button[aria-current="true"] { border-color: var(--gold); opacity: 1; }
.viewer-strip img { display: block; width: 100%; height: 100%; object-fit: cover; }
.viewer.is-single .viewer-nav, .viewer.is-single .viewer-strip { display: none; }
@media (max-width: 759px) {
    .viewer-nav { width: 40px; height: 40px; }
    .viewer-title { font-size: 21px; }
}

/* ---------- Saison des fêtes (body.theme-noel, du 15 nov. au 3 janv.) ----------
 * Noël chic dans la charte : encre, or, neige légère, touches de houx (vert, rouge) sur les illustrations.
 */
:root {
    --noel-red: #B3262E;
    --noel-green: #2F6B47;
}


/* Lien du menu : avec le lien des bûches en plus, le menu se resserre pour tenir sur une ligne */
.theme-noel .site-nav a { white-space: nowrap; }
@media (max-width: 1279px) {
    .theme-noel .site-nav { gap: 24px; }
    .theme-noel .site-nav a.nav-wide { display: none; }   /* restent dans le pied de page */
}
@media (max-width: 760px) {
    .theme-noel .site-nav a.nav-short:not(.nav-noel) { display: none; }
}
.site-nav a.nav-noel { color: var(--gold-dark); font-weight: 600; }
.noel-star { display: inline-block; vertical-align: -2px; margin-right: 7px; }
.site-nav a.nav-noel:hover { color: var(--ink); }

/* Guirlande lumineuse sous l'en-tête : fil doré très fin, ampoules blanc chaud avec halo ;
   une ampoule sur deux scintille doucement, en décalé (coupé si l'utilisateur limite les animations). */
.garland {
    height: 26px;
    margin-bottom: -26px;
    position: relative;
    z-index: 3;
    pointer-events: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='26' viewBox='0 0 300 26'%3E%3Cdefs%3E%3CradialGradient id='g'%3E%3Cstop offset='0' stop-color='%23FFE3A3' stop-opacity='.75'/%3E%3Cstop offset='1' stop-color='%23FFE3A3' stop-opacity='0'/%3E%3C/radialGradient%3E%3C/defs%3E%3Cpath d='M0 4.0 L5 4.7 L10 5.5 L15 6.2 L20 6.8 L25 7.5 L30 8.1 L35 8.7 L40 9.2 L45 9.7 L50 10.1 L55 10.4 L60 10.7 L65 10.8 L70 11.0 L75 11.0 L80 11.0 L85 10.8 L90 10.7 L95 10.4 L100 10.1 L105 9.7 L110 9.2 L115 8.7 L120 8.1 L125 7.5 L130 6.8 L135 6.2 L140 5.5 L145 4.7 L150 4.0 L155 4.7 L160 5.5 L165 6.2 L170 6.8 L175 7.5 L180 8.1 L185 8.7 L190 9.2 L195 9.7 L200 10.1 L205 10.4 L210 10.7 L215 10.8 L220 11.0 L225 11.0 L230 11.0 L235 10.8 L240 10.7 L245 10.4 L250 10.1 L255 9.7 L260 9.2 L265 8.7 L270 8.1 L275 7.5 L280 6.8 L285 6.2 L290 5.5 L295 4.7 L300 4.0' fill='none' stroke='%23A88440' stroke-width='0.9' opacity='.85'/%3E%3Cline x1='22' y1='7.1' x2='22' y2='11.1' stroke='%23A88440' stroke-width='0.8'/%3E%3Ccircle cx='22' cy='16.1' r='9' fill='url(%23g)'/%3E%3Cellipse cx='22' cy='15.6' rx='2.4' ry='3.2' fill='%23FFF6DE' stroke='%23C9A063' stroke-width='0.7'/%3E%3Cline x1='96' y1='10.3' x2='96' y2='14.3' stroke='%23A88440' stroke-width='0.8'/%3E%3Ccircle cx='96' cy='19.3' r='9' fill='url(%23g)'/%3E%3Cellipse cx='96' cy='18.8' rx='2.4' ry='3.2' fill='%23FFF6DE' stroke='%23C9A063' stroke-width='0.7'/%3E%3Cline x1='168' y1='6.6' x2='168' y2='10.6' stroke='%23A88440' stroke-width='0.8'/%3E%3Ccircle cx='168' cy='15.6' r='9' fill='url(%23g)'/%3E%3Cellipse cx='168' cy='15.1' rx='2.4' ry='3.2' fill='%23FFF6DE' stroke='%23C9A063' stroke-width='0.7'/%3E%3Cline x1='241' y1='10.6' x2='241' y2='14.6' stroke='%23A88440' stroke-width='0.8'/%3E%3Ccircle cx='241' cy='19.6' r='9' fill='url(%23g)'/%3E%3Cellipse cx='241' cy='19.1' rx='2.4' ry='3.2' fill='%23FFF6DE' stroke='%23C9A063' stroke-width='0.7'/%3E%3C/svg%3E") repeat-x;
}
.garland::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='26' viewBox='0 0 300 26'%3E%3Cdefs%3E%3CradialGradient id='g'%3E%3Cstop offset='0' stop-color='%23FFE3A3' stop-opacity='.75'/%3E%3Cstop offset='1' stop-color='%23FFE3A3' stop-opacity='0'/%3E%3C/radialGradient%3E%3C/defs%3E%3Cline x1='58' y1='10.6' x2='58' y2='14.6' stroke='%23A88440' stroke-width='0.8'/%3E%3Ccircle cx='58' cy='19.6' r='9' fill='url(%23g)'/%3E%3Cellipse cx='58' cy='19.1' rx='2.4' ry='3.2' fill='%23FFF6DE' stroke='%23C9A063' stroke-width='0.7'/%3E%3Cline x1='131' y1='6.7' x2='131' y2='10.7' stroke='%23A88440' stroke-width='0.8'/%3E%3Ccircle cx='131' cy='15.7' r='9' fill='url(%23g)'/%3E%3Cellipse cx='131' cy='15.2' rx='2.4' ry='3.2' fill='%23FFF6DE' stroke='%23C9A063' stroke-width='0.7'/%3E%3Cline x1='206' y1='10.5' x2='206' y2='14.5' stroke='%23A88440' stroke-width='0.8'/%3E%3Ccircle cx='206' cy='19.5' r='9' fill='url(%23g)'/%3E%3Cellipse cx='206' cy='19.0' rx='2.4' ry='3.2' fill='%23FFF6DE' stroke='%23C9A063' stroke-width='0.7'/%3E%3Cline x1='278' y1='7.1' x2='278' y2='11.1' stroke='%23A88440' stroke-width='0.8'/%3E%3Ccircle cx='278' cy='16.1' r='9' fill='url(%23g)'/%3E%3Cellipse cx='278' cy='15.6' rx='2.4' ry='3.2' fill='%23FFF6DE' stroke='%23C9A063' stroke-width='0.7'/%3E%3C/svg%3E") repeat-x;
}
@media (prefers-reduced-motion: no-preference) {
    .garland::after { animation: garland-twinkle 3.2s ease-in-out infinite; }
}
@keyframes garland-twinkle { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

/* Accueil des fêtes : la photo occupe toute la moitié droite, bord à bord, et se fond dans l'encre
   derrière le texte. Sur mobile, elle passe en haut, pleine largeur. */
.noel-hero {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    min-height: clamp(580px, 44vw, 700px);
    padding-block: clamp(56px, 6vw, 88px);
    background: var(--ink);
    color: var(--on-ink);
}
.noel-hero .container { position: relative; z-index: 2; width: 100%; }
.noel-hero .h1 { color: var(--on-ink); }
.noel-hero-copy { max-width: min(560px, 46vw); }

.noel-hero-media {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 68%;
    margin: 0;
}
@media (min-width: 900px) and (max-width: 1279px) {
    .noel-hero-media { width: 60%; }   /* écrans moyens : la bûche reste à droite du texte */
}
.noel-hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 62% 52%;
    filter: brightness(0.86) saturate(1.05);
}
/* Fondu long, en paliers rapprochés (courbe douce) : pas de coupure nette entre le texte et la photo */
.noel-hero-media::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(to right,
            rgb(18 17 16 / 1) 0%, rgb(18 17 16 / 0.97) 12%, rgb(18 17 16 / 0.9) 22%,
            rgb(18 17 16 / 0.78) 31%, rgb(18 17 16 / 0.62) 39%, rgb(18 17 16 / 0.45) 47%,
            rgb(18 17 16 / 0.29) 55%, rgb(18 17 16 / 0.16) 63%, rgb(18 17 16 / 0.07) 71%, rgb(18 17 16 / 0) 80%),
        linear-gradient(to top, rgb(18 17 16 / 0.75) 0%, rgb(18 17 16 / 0.3) 12%, rgb(18 17 16 / 0) 28%),
        linear-gradient(to bottom, rgb(18 17 16 / 0.45) 0%, rgb(18 17 16 / 0) 18%);
}
.noel-hero-media figcaption {
    position: absolute;
    z-index: 2;
    right: 14px;
    bottom: 10px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.78);
}
.noel-hero .snow { z-index: 1; }

@media (max-width: 899px) {
    .noel-hero { display: block; min-height: 0; padding-block: 0 56px; }
    .noel-hero-media { position: relative; width: 100%; aspect-ratio: 4 / 3; }
    .noel-hero-media::before { background: linear-gradient(to bottom, rgba(18, 17, 16, 0) 55%, var(--ink) 100%); }
    .noel-hero-media figcaption { bottom: 40px; }
    .noel-hero-copy { max-width: none; margin-top: -28px; }
}

.noel-countdown {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    font-size: 15px;
}
.noel-countdown span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: 1px solid var(--ink-line);
    color: var(--on-ink-muted);
}
.noel-countdown b { color: var(--gold); font-weight: 600; }

/* Neige qui tombe doucement (désactivée si l'utilisateur limite les animations) */
.snow { position: absolute; inset: 0; pointer-events: none; }
.snow span {
    position: absolute;
    top: -12px;
    border-radius: 50%;
    background: #FFFFFF;
    animation: snow-fall linear infinite;
}
@keyframes snow-fall {
    from { top: -12px; transform: translateX(0); }
    to { top: 100%; transform: translateX(24px); }
}
@media (prefers-reduced-motion: reduce) {
    .snow span { animation: none; top: auto; }
    .snow { display: none; }
}

/* Catalogue des bûches */
.noel-section { border-top: 1px solid var(--ink-line); }
.noel-section .h2 { color: var(--on-ink); }

.buche-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
    gap: 28px;
}

.buche-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 20px 20px 22px;
    background: var(--ink-raised);
    border: 1px solid var(--ink-line);
    transition: border-color 200ms var(--ease);
}
.buche-card:hover { border-color: var(--gold); }

.buche-media { margin: -6px -6px 14px; }
.buche-media img { width: 100%; height: auto; transition: transform 700ms var(--ease); }
.buche-card:hover .buche-media img { transform: scale(1.03); }

.buche-name { font-family: var(--serif); font-weight: 400; font-size: 28px; line-height: 1.1; color: var(--on-ink); }
.buche-desc { margin-top: 8px; font-size: 15px; line-height: 1.55; color: var(--on-ink-muted); }

.buche-card .product-foot { padding-top: 18px; }
.buche-card .product-price { color: var(--on-ink); }
.buche-card .product-price strong { color: var(--gold); }
.buche-card .product-cta { color: var(--on-ink); border-bottom-color: var(--gold); }

.buche-info {
    display: grid;
    gap: 40px;
    margin-top: clamp(48px, 6vw, 72px);
    padding-top: 40px;
    border-top: 1px solid var(--ink-line);
}
@media (min-width: 900px) { .buche-info { grid-template-columns: 1fr 1fr; gap: 64px; } }

.buche-info .label { margin-bottom: 18px; }
.buche-sizes { list-style: none; margin: 0; padding: 0; }
.buche-sizes li {
    display: grid;
    grid-template-columns: 110px 1fr auto;
    gap: 16px;
    align-items: baseline;
    padding: 14px 0;
    border-bottom: 1px solid var(--ink-line);
}
.buche-sizes b { font-weight: 600; color: var(--on-ink); }
.buche-sizes span { color: var(--on-ink-muted); font-size: 15px; }
.buche-sizes em { font-style: normal; font-weight: 600; color: var(--gold); white-space: nowrap; }
.noel-section .note-list li { color: var(--on-ink-muted); }
.noel-section .note-list strong { color: var(--on-ink); }

@media (max-width: 559px) {
    .buche-sizes li { grid-template-columns: 1fr auto; }
    .buche-sizes span { grid-column: 1 / -1; grid-row: 2; }
}

/* Sous les idées de parfums : commander avec le parfum de son choix */
.buche-more {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px 32px;
    margin-top: 28px;
    padding: 24px 28px;
    border: 1px solid var(--ink-line);
}
.buche-more p { margin: 0; font-size: 17px; color: var(--on-ink); }
@media (max-width: 559px) { .buche-more .btn { width: 100%; white-space: normal; text-align: center; } }

/* Fenêtre de commande : trois tailles sur une ligne */
.choice-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
