/* =====================================================================
   DCT France — feuille de style
   Palette d'origine (bleu nuit, sable, bronze) affinée pour l'accessibilité :
   tous les textes respectent un contraste AA (≥ 4,5:1).
   ===================================================================== */

:root {
    --ink: #1f2a36;
    --ink-soft: #2f3c4b;
    --text: #1d232b;
    --muted: #5b636e;
    --bronze: #7a6142;
    --bronze-light: #c9b48a;
    --sand: #efe6d6;
    --sand-deep: #e2d4ba;
    --ivory: #faf7f2;
    --white: #ffffff;
    --line: #e6dfd3;
    --danger: #a23b2a;
    --success: #2f6b4f;

    --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

    --radius-sm: 6px;
    --radius: 12px;
    --radius-lg: 20px;
    --shadow-sm: 0 1px 2px rgba(31, 42, 54, .06), 0 1px 3px rgba(31, 42, 54, .05);
    --shadow: 0 6px 20px rgba(31, 42, 54, .08);
    --shadow-lg: 0 18px 50px rgba(31, 42, 54, .16);
    --ease: cubic-bezier(.2, .7, .2, 1);
    --header-h: 72px;
}

/* ------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

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

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text);
    background: var(--ivory);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body:has(dialog[open]) { overflow: hidden; }

img, svg { display: block; max-width: 100%; }
img { height: auto; }
button, input, select { font: inherit; color: inherit; }
a { color: var(--bronze); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
ul[class], ol[class] { list-style: none; padding: 0; }
[hidden] { display: none !important; }

:focus-visible {
    outline: 3px solid var(--bronze);
    outline-offset: 3px;
    border-radius: 4px;
}

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

.skip-link {
    position: absolute;
    left: 16px; top: -60px;
    z-index: 2000;
    padding: 12px 18px;
    background: var(--ink);
    color: var(--white);
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 600;
    transition: top .2s;
}
.skip-link:focus { top: 12px; color: var(--white); }

main:focus { outline: none; }

.container { width: min(1200px, 100%); margin-inline: auto; padding-inline: 20px; }
.center { text-align: center; margin-top: 2.5rem; }

/* ------------------------------------------------------------- typographie */
h1, h2, h3 { font-family: var(--font-display); color: var(--ink); line-height: 1.2; font-weight: 600; }

.eyebrow {
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--bronze);
    margin-bottom: .9rem;
}

.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section--tinted { background: var(--white); border-block: 1px solid var(--line); }
.section--center { text-align: center; }
.section--catalogue { padding-top: 2rem; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto clamp(2rem, 4vw, 3rem); }
.section-title { font-size: clamp(1.8rem, 3.2vw, 2.5rem); }
.section-subtitle { color: var(--muted); margin-top: .6rem; font-size: 1.05rem; }
.page-title { font-size: clamp(2rem, 4.5vw, 3rem); }

.prose p + p { margin-top: 1.1rem; }
.prose--narrow { max-width: 680px; margin-inline: auto; }
.lead { font-size: 1.2rem; color: var(--ink); }

/* ------------------------------------------------------------- boutons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    min-height: 48px;
    padding: .75rem 1.6rem;
    border: 1.5px solid transparent;
    border-radius: 999px;
    font-weight: 600;
    font-size: .95rem;
    letter-spacing: .01em;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); color: var(--white); }
.btn-primary:hover { background: var(--ink-soft); color: var(--white); box-shadow: var(--shadow); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--white); }
.btn-block { width: 100%; }
.btn:disabled, .btn.is-disabled, .btn[aria-disabled="true"] {
    background: #d9d4cb; border-color: #d9d4cb; color: #4f5660; cursor: not-allowed; box-shadow: none;
}

/* ------------------------------------------------------------- en-tête */
.site-header { position: sticky; top: 0; z-index: 900; }

.announcement {
    display: flex; flex-wrap: wrap; justify-content: center; gap: .25rem .75rem;
    padding: .45rem 1rem;
    background: var(--ink);
    color: #f2ece1;
    font-size: .8rem;
    letter-spacing: .02em;
    text-align: center;
}

.navbar {
    background: rgba(255, 255, 255, .92);
    backdrop-filter: saturate(160%) blur(10px);
    border-bottom: 1px solid var(--line);
}

.nav-container {
    width: min(1200px, 100%);
    margin-inline: auto;
    padding: 0 20px;
    height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.logo {
    font-family: var(--font-display);
    font-size: 1.55rem;
    font-weight: 700;
    letter-spacing: .08em;
    color: var(--ink);
    text-decoration: none;
    white-space: nowrap;
}
.logo span {
    font-family: var(--font-body);
    font-size: .68rem;
    font-weight: 500;
    letter-spacing: .38em;
    text-transform: uppercase;
    margin-left: .55rem;
    color: var(--bronze);
    vertical-align: middle;
}
.logo:hover { color: var(--ink); }
.logo { display: inline-flex; align-items: center; line-height: 0; }
.logo img { display: block; height: 62px; width: auto; transition: opacity .2s var(--ease); }
.logo:hover img { opacity: .75; }
.logo--light img { height: 84px; }
.logo--light { color: var(--white); }
.logo--light span { color: var(--bronze-light); }

.nav-menu { display: flex; align-items: center; gap: 2rem; margin-left: auto; }

.nav-link {
    position: relative;
    padding: .5rem 0;
    color: var(--text);
    font-weight: 500;
    font-size: .95rem;
    text-decoration: none;
}
.nav-link::after {
    content: '';
    position: absolute; left: 0; right: 0; bottom: 0;
    height: 2px;
    background: var(--bronze);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .25s var(--ease);
}
.nav-link:hover { color: var(--bronze); }
.nav-link:hover::after, .nav-link[aria-current="page"]::after { transform: scaleX(1); }
.nav-link[aria-current="page"] { color: var(--bronze); }

.nav-actions { display: flex; align-items: center; gap: .5rem; }

.cart-button {
    position: relative;
    display: inline-flex; align-items: center; gap: .5rem;
    min-height: 44px;
    padding: .5rem .95rem;
    border: 1.5px solid var(--line);
    border-radius: 999px;
    background: var(--white);
    font-weight: 600;
    font-size: .9rem;
    cursor: pointer;
    transition: border-color .2s, background-color .2s;
}
.cart-button:hover { border-color: var(--ink); }

.cart-count {
    display: inline-grid; place-items: center;
    min-width: 22px; height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--bronze);
    color: var(--white);
    font-size: .75rem;
    font-weight: 700;
    animation: pop .35s var(--ease);
}

.nav-toggle {
    display: none;
    width: 44px; height: 44px;
    border: 0; background: transparent;
    cursor: pointer;
    place-items: center;
}
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
    display: block;
    width: 22px; height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform .25s var(--ease), background-color .2s;
}
.nav-toggle-bar { position: relative; }
.nav-toggle-bar::before, .nav-toggle-bar::after { content: ''; position: absolute; left: 0; }
.nav-toggle-bar::before { top: -7px; }
.nav-toggle-bar::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-7px) rotate(-45deg); }

/* ------------------------------------------------------------- hero */
.hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(1200px 500px at 85% 20%, rgba(255, 255, 255, .55), transparent 60%),
        linear-gradient(135deg, var(--sand) 0%, var(--sand-deep) 100%);
}
.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    align-items: center;
    gap: 2rem;
    min-height: min(640px, 78vh);
    padding-block: clamp(3rem, 8vw, 5.5rem);
}
.hero-title { font-size: clamp(2.3rem, 5.2vw, 4rem); font-weight: 700; letter-spacing: -.01em; }
.hero-subtitle { margin-top: 1.2rem; max-width: 34rem; font-size: clamp(1.02rem, 1.6vw, 1.18rem); color: #3d454f; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2.2rem; }

.hero-visual { position: relative; height: clamp(320px, 42vw, 500px); }
.hero-bottle {
    position: absolute;
    width: 52%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    animation: float 7s ease-in-out infinite;
}
.hero-bottle--1 { left: 0; top: 14%; z-index: 2; }
.hero-bottle--2 { right: 2%; top: 0; width: 46%; animation-delay: -2s; }
.hero-bottle--3 { right: 10%; bottom: 0; width: 40%; z-index: 3; animation-delay: -4s; }

/* ------------------------------------------------------------- réassurance */
.reassurance { background: var(--ivory); border-block: 1px solid var(--line); }
.reassurance-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding-block: 2.4rem;
    list-style: none;
}
.reassurance-list li {
    display: flex; flex-direction: column; align-items: center; text-align: center;
    gap: .35rem; padding-inline: 1.25rem;
}
.reassurance-list li + li { border-left: 1px solid var(--line); }
.reassurance-icon {
    width: 26px; height: 26px; margin-bottom: .45rem;
    fill: none; stroke: var(--bronze); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round;
}
.reassurance-list strong {
    font-size: .74rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink);
}
.reassurance-list span { font-size: .85rem; line-height: 1.5; color: var(--muted); max-width: 22ch; }

/* ------------------------------------------------------------- collections */
.collection-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.collection-card {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3.4;
    overflow: hidden;
    border-radius: var(--radius-lg);
    color: var(--white);
    text-decoration: none;
    isolation: isolate;
    box-shadow: var(--shadow);
}
.collection-card img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    z-index: -2;
    transition: transform .8s var(--ease);
}
.collection-card::after {
    content: '';
    position: absolute; inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(20, 27, 35, 0) 30%, rgba(20, 27, 35, .86) 100%);
}
.collection-card:hover img { transform: scale(1.05); }
.collection-card:hover { color: var(--white); }
.collection-card-body {
    position: absolute; inset: auto 0 0 0;
    display: flex; flex-direction: column; gap: .35rem;
    padding: clamp(1.4rem, 3vw, 2.2rem);
}
.collection-card-count { font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--bronze-light); }
.collection-card-title { font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 600; }
.collection-card-text { max-width: 30rem; color: #e8e3da; font-size: .95rem; }
.collection-card-cta { margin-top: .6rem; font-weight: 600; }
.collection-card-cta span { display: inline-block; transition: transform .25s var(--ease); }
.collection-card:hover .collection-card-cta span { transform: translateX(5px); }

/* ------------------------------------------------------------- formats & étapes */
.format-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.format-card {
    display: flex; flex-direction: column; align-items: center; gap: .4rem;
    padding: 2rem 1.2rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--ivory);
    text-align: center;
    color: var(--muted);
    font-size: .93rem;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.format-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.format-size { font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: var(--ink); text-transform: uppercase; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; counter-reset: step; }
.steps li { padding: 1.8rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.steps h3 { font-size: 1.2rem; margin: .9rem 0 .4rem; }
.steps p { color: var(--muted); font-size: .95rem; }
.step-number {
    display: grid; place-items: center;
    width: 42px; height: 42px;
    border-radius: 50%;
    background: var(--sand);
    color: var(--ink);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.15rem;
}

/* ------------------------------------------------------------- page hero / fil d'ariane */
.page-hero {
    padding: clamp(2.2rem, 5vw, 3.5rem) 0 clamp(1.8rem, 4vw, 2.6rem);
    background: linear-gradient(180deg, var(--sand) 0%, var(--ivory) 100%);
    text-align: center;
}
.breadcrumb ol { display: flex; justify-content: center; gap: .5rem; list-style: none; padding: 0; margin-bottom: 1rem; font-size: .85rem; color: var(--muted); }
.breadcrumb li + li::before { content: '/'; margin-right: .5rem; color: #9a9187; }
.breadcrumb a { color: var(--muted); }

/* ------------------------------------------------------------- filtres */
.filter-bar {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) auto;
    align-items: end;
    gap: 1rem;
    max-width: 860px;
    margin: 0 auto 1rem;
    padding: 1rem;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}
.filter-bar.is-live { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.filter-bar.is-live .filter-submit { display: none; }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field label, .product-format label { font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }

input[type="search"], input[type="text"], input[type="email"], input[type="tel"], input[type="password"],
input[type="number"], input[type="date"], select, textarea {
    width: 100%;
    min-height: 46px;
    padding: .65rem .9rem;
    border: 1.5px solid #d5ccbd;
    border-radius: var(--radius-sm);
    background-color: var(--white);
    font-size: 1rem;
    transition: border-color .2s, box-shadow .2s;
}
select {
    appearance: none;
    padding-right: 2.4rem;
    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 1l5 5 5-5' fill='none' stroke='%231f2a36' stroke-width='1.6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right .9rem center;
    cursor: pointer;
}
input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: none;
    border-color: var(--ink);
    box-shadow: 0 0 0 3px rgba(122, 97, 66, .28);
}
select:disabled { background-color: #f1eee9; color: #6b7179; cursor: not-allowed; }

.results-count { text-align: center; color: var(--muted); font-size: .9rem; margin-bottom: 1.8rem; }
.empty-state { text-align: center; padding: 3rem 1rem; color: var(--muted); }

/* ------------------------------------------------------------- cartes produit */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.5rem; }
.product-grid--center { grid-template-columns: repeat(auto-fit, minmax(250px, 340px)); justify-content: center; }

.product-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    transition: transform .3s var(--ease), box-shadow .3s var(--ease);
    animation: rise .5s var(--ease) both;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.product-media { position: relative; aspect-ratio: 1; background: #f6f3ee; overflow: hidden; }
.product-image { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease), opacity .3s; }
.product-card:hover .product-image { transform: scale(1.04); }
.product-image--empty { display: grid; place-items: center; font-family: var(--font-display); font-size: 4rem; color: var(--sand-deep); }

.product-notes {
    position: absolute; inset: 0;
    padding: 0; border: 0;
    background: var(--white);
    cursor: zoom-in;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s, visibility .3s;
}
.product-notes img { width: 100%; height: 100%; object-fit: cover; }
.show-notes .product-notes { opacity: 1; visibility: visible; }

.notes-toggle {
    position: absolute; right: .7rem; bottom: .7rem;
    z-index: 2;
    display: inline-flex; align-items: center; gap: .35rem;
    min-height: 36px;
    padding: .35rem .8rem;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, .94);
    box-shadow: var(--shadow-sm);
    color: var(--ink);
    font-size: .8rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color .2s, color .2s;
}
.notes-toggle:hover, .notes-toggle[aria-pressed="true"] { background: var(--ink); color: var(--white); }

.product-badges { position: absolute; top: .7rem; left: .7rem; z-index: 2; display: flex; gap: .4rem; }
.badge {
    padding: .25rem .6rem;
    border-radius: 999px;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.badge--new { background: var(--ink); color: var(--white); }
.badge--muted { background: #ece7df; color: #4c535c; }
.badge--pack { background: var(--bronze); color: var(--white); }
.badge--promo { background: var(--danger); color: var(--white); }
.product-price-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: .25rem .6rem; }
.product-compare { color: var(--muted); font-size: .95rem; text-decoration-thickness: 1.5px; }
.product-brand.product-brand--pack { text-transform: none; letter-spacing: .02em; font-size: .82rem; line-height: 1.45; }

.product-body { display: flex; flex-direction: column; flex: 1; padding: 1.1rem 1.15rem 1.25rem; }
.product-brand { font-size: .74rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--bronze); }
.product-name { font-size: 1.22rem; margin-top: .25rem; }
.product-ppm { margin-top: .2rem; font-size: .85rem; color: var(--muted); }

.product-buy { margin-top: auto; padding-top: 1rem; display: grid; grid-template-columns: 1fr; gap: .7rem; }
.product-format { grid-column: 1 / -1; display: flex; flex-direction: column; gap: .3rem; }
.product-format select { min-height: 44px; font-size: .92rem; }
.product-price { font-family: var(--font-display); font-size: 1.45rem; font-weight: 700; color: var(--ink); line-height: 1.1; }
.btn-add { width: 100%; min-height: 44px; padding: .55rem 1.1rem; font-size: .9rem; }
.btn-add.is-added { background: var(--success); border-color: var(--success); color: var(--white); }

.product-card.is-unavailable .product-image { filter: grayscale(.85); opacity: .6; }
.product-card.is-unavailable .product-name,
.product-card.is-unavailable .product-price { color: #6b7179; }

/* ------------------------------------------------------------- présentation */
.story { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.story-text { font-size: 1.06rem; color: #39414b; }
.story-visual img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }

.engagement-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
.engagement-card { padding: 2rem; background: var(--ivory); border: 1px solid var(--line); border-radius: var(--radius); }
.engagement-card h3 { font-size: 1.3rem; margin-bottom: .6rem; padding-left: .9rem; border-left: 3px solid var(--bronze-light); }
.engagement-card p { color: var(--muted); }

.founder-quote { max-width: 760px; margin-inline: auto; text-align: center; }
.founder-quote p { font-family: var(--font-display); font-size: clamp(1.25rem, 2.4vw, 1.6rem); line-height: 1.5; color: var(--ink); }
.founder-quote footer { margin-top: 1.2rem; color: var(--bronze); font-weight: 600; }

/* ------------------------------------------------------------- pied de page */
.site-footer { background: var(--ink); color: #d6d9de; padding-top: clamp(3rem, 6vw, 4.5rem); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1.2fr; gap: 2.5rem; }
.footer-quote { margin-top: 1rem; max-width: 26rem; font-style: italic; color: #b9bec6; }
.footer-title { font-family: var(--font-body); font-size: .8rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--bronze-light); margin-bottom: 1rem; }
.footer-nav ul, .social-list { list-style: none; padding: 0; display: grid; gap: .6rem; }
.site-footer a { color: #e7e9ec; text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.social-link { display: inline-flex; align-items: center; gap: .65rem; min-height: 32px; }
.social-handle { color: #aab0b9; }
.footer-bottom { margin-top: 3rem; padding: 1.4rem 20px; border-top: 1px solid rgba(255, 255, 255, .1); text-align: center; font-size: .85rem; color: #aab0b9; }

/* ------------------------------------------------------------- dialogs */
dialog { padding: 0; border: 0; color: var(--text); }
dialog::backdrop { background: rgba(17, 23, 30, .55); backdrop-filter: blur(3px); }

.dialog-close {
    display: grid; place-items: center;
    width: 44px; height: 44px;
    border: 0; border-radius: 50%;
    background: transparent;
    font-size: 1.8rem; line-height: 1;
    color: var(--ink);
    cursor: pointer;
    transition: background-color .2s;
}
.dialog-close:hover { background: var(--sand); }

.cart-drawer {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(440px, 100vw);
    height: 100dvh;
    max-height: none;
    max-width: 100vw;
    margin: 0;
    background: var(--white);
    box-shadow: var(--shadow-lg);
}
.cart-drawer[open] { animation: slide-in .35s var(--ease); }
.cart-drawer-inner { display: flex; flex-direction: column; height: 100%; }
.cart-header { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.25rem 1rem 1.5rem; border-bottom: 1px solid var(--line); }
.cart-header h2 { font-size: 1.5rem; }
.cart-body { flex: 1; overflow-y: auto; padding: .5rem 1.5rem 1.5rem; overscroll-behavior: contain; }
.cart-footer { padding: 1.2rem 1.5rem 1.5rem; border-top: 1px solid var(--line); background: var(--ivory); display: grid; gap: .9rem; }

.cart-item { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: .6rem; padding: .95rem 0; border-bottom: 1px solid var(--line); }
.cart-item-name { font-weight: 600; color: var(--ink); }
.cart-item-details { font-size: .85rem; color: var(--muted); }
.cart-item-price { font-weight: 600; white-space: nowrap; }
.cart-item-remove {
    display: grid; place-items: center;
    width: 36px; height: 36px;
    border: 0; border-radius: 50%;
    background: transparent;
    color: var(--danger);
    font-size: 1.4rem;
    cursor: pointer;
}
.cart-item-remove:hover { background: #f7e7e3; }
.cart-empty { display: grid; justify-items: center; gap: 1rem; padding: 3rem 0 1rem; color: var(--muted); text-align: center; }

.sample-section { margin-top: 1.4rem; padding: 1.1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--ivory); }
.sample-section legend { display: flex; align-items: center; gap: .6rem; padding: 0 .4rem; font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; color: var(--ink); }
.sample-pill { font-family: var(--font-body); font-size: .72rem; font-weight: 700; padding: .15rem .55rem; border-radius: 999px; background: var(--ink); color: var(--white); }
.sample-help { font-size: .85rem; color: var(--muted); margin-bottom: .8rem; }
.sample-choice { display: grid; gap: .3rem; margin-top: .7rem; }
.sample-choice label { font-size: .85rem; font-weight: 600; }

.cart-total { display: flex; justify-content: space-between; align-items: baseline; font-size: 1.05rem; }
.cart-total strong { font-family: var(--font-display); font-size: 1.6rem; color: var(--ink); }

.cart-progress { display: grid; gap: .5rem; }
.cart-progress-bar { height: 6px; border-radius: 999px; background: #e9e2d6; overflow: hidden; }
.cart-progress-bar span { display: block; height: 100%; width: 0; background: var(--bronze); border-radius: inherit; transition: width .4s var(--ease); }
.cart-progress p { color: var(--danger); font-weight: 600; font-size: .9rem; }

.cart-or { display: flex; align-items: center; gap: .8rem; color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; }
.cart-or::before, .cart-or::after { content: ''; flex: 1; height: 1px; background: var(--line); }

.order-panel h3 { font-family: var(--font-body); font-size: .95rem; font-weight: 700; color: var(--ink); }
.order-panel p { font-size: .88rem; color: var(--muted); margin-top: .2rem; }
.order-socials { display: flex; gap: .5rem; margin-top: .7rem; }
.order-socials a {
    display: grid; place-items: center;
    width: 44px; height: 44px;
    border: 1.5px solid var(--line);
    border-radius: 50%;
    background: var(--white);
    color: var(--ink);
    transition: border-color .2s, background-color .2s, color .2s;
}
.order-socials a:hover { background: var(--ink); border-color: var(--ink); color: var(--white); }

.lightbox { width: min(92vw, 760px); border-radius: var(--radius-lg); overflow: hidden; background: var(--white); }
.lightbox[open] { animation: zoom-in .3s var(--ease); }
.lightbox .dialog-close { position: absolute; top: .6rem; right: .6rem; background: rgba(255, 255, 255, .92); box-shadow: var(--shadow-sm); }
.lightbox img { width: 100%; height: auto; }

/* ------------------------------------------------------------- toasts */
.toast-region { position: fixed; z-index: 3000; right: 20px; bottom: 20px; display: grid; gap: .5rem; pointer-events: none; }
.toast {
    padding: .85rem 1.2rem;
    border-radius: var(--radius-sm);
    background: var(--ink);
    color: var(--white);
    font-size: .92rem;
    box-shadow: var(--shadow-lg);
    animation: toast-in .3s var(--ease);
}
.toast.is-leaving { animation: toast-out .35s var(--ease) forwards; }

/* ------------------------------------------------------------- paiement */
.page-hero--compact { padding-bottom: 1.6rem; }
.stepper { display: flex; justify-content: center; flex-wrap: wrap; gap: .5rem 1.8rem; margin-top: 1.2rem; font-size: .9rem; color: var(--muted); }
.stepper li { display: inline-flex; align-items: center; gap: .5rem; }
.stepper li span { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid #b9b1a4; font-size: .78rem; font-weight: 700; }
.stepper .is-done span { background: var(--success); border-color: var(--success); color: var(--white); }
.stepper .is-current { color: var(--ink); font-weight: 600; }
.stepper .is-current span { background: var(--ink); border-color: var(--ink); color: var(--white); }

.section--checkout { padding-top: 2rem; }
.notice { max-width: 1200px; margin: 0 auto 1.8rem; padding: 1rem 1.2rem; border-radius: var(--radius); font-size: .93rem; }
.notice--info { background: #eef1f5; border: 1px solid #cdd5df; color: var(--ink); }

.checkout-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr); gap: 2rem; align-items: start; }
.checkout-empty { max-width: 520px; margin: 2rem auto; text-align: center; display: grid; gap: 1rem; justify-items: center; }

.checkout-block {
    margin-bottom: 1.4rem;
    padding: 1.5rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
}
.checkout-block legend {
    display: flex; align-items: center; gap: .6rem;
    float: left; width: 100%;
    margin-bottom: 1.2rem;
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--ink);
}
.checkout-block legend + * { clear: both; }
.checkout-step { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--sand); font-family: var(--font-body); font-size: .85rem; font-weight: 700; }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.1rem; }
.form-field { display: grid; gap: .35rem; align-content: start; }
.form-field--full { grid-column: 1 / -1; }
.form-field--note { margin-top: 1.2rem; }
.form-field label { font-size: .9rem; font-weight: 600; color: var(--ink); }
.req { color: var(--danger); }
.optional { font-weight: 400; color: var(--muted); }
.field-hint { font-size: .82rem; color: var(--muted); }
.field-error { font-size: .85rem; font-weight: 600; color: var(--danger); }
.field-error::before { content: '⚠ '; }
[aria-invalid="true"] { border-color: var(--danger) !important; }
textarea { min-height: 90px; resize: vertical; }

.choice-list { display: grid; gap: .7rem; }
.choice {
    display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .9rem;
    padding: 1rem 1.1rem;
    border: 1.5px solid var(--line);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: border-color .2s, background-color .2s;
}
.choice:hover { border-color: #bfb5a5; }
.choice:has(input:checked) { border-color: var(--ink); background: #f7f5f1; }
.choice input { width: 20px; height: 20px; accent-color: var(--ink); }
.choice-body { display: grid; }
.choice-title { font-weight: 600; color: var(--ink); }
.choice-detail { font-size: .85rem; color: var(--muted); }
.choice-price { font-weight: 700; }

.payment-preview { padding: 1.1rem; border: 1.5px dashed #c9bfae; border-radius: var(--radius-sm); background: #fbfaf7; display: grid; gap: 1rem; }
.payment-methods { display: flex; flex-wrap: wrap; gap: .5rem; }
.pm { padding: .3rem .7rem; border: 1px solid var(--line); border-radius: 999px; background: var(--white); font-size: .8rem; font-weight: 600; color: var(--ink); }
.payment-preview input:disabled { background: #f3f1ed; cursor: not-allowed; }
.payment-element { min-height: 120px; }

.checkbox { display: flex; gap: .7rem; align-items: flex-start; margin-top: 1.2rem; font-size: .93rem; cursor: pointer; }
.checkbox input { flex: none; width: 20px; height: 20px; margin-top: .15rem; accent-color: var(--ink); }

.btn-pay { min-height: 56px; font-size: 1.02rem; }
.btn-pay.is-loading { position: relative; color: transparent; }
.btn-pay.is-loading::after {
    content: ''; position: absolute; inset: 0; margin: auto;
    width: 22px; height: 22px;
    border: 2.5px solid rgba(255, 255, 255, .4); border-top-color: var(--white);
    border-radius: 50%;
    animation: spin .8s linear infinite;
}
.secure-note { margin-top: .8rem; text-align: center; font-size: .82rem; color: var(--muted); }

.form-errors, .form-success { margin-bottom: 1.4rem; padding: 1rem 1.2rem; border-radius: var(--radius); font-size: .93rem; }
.form-errors { border: 1.5px solid var(--danger); background: #fbf0ee; color: #6d2418; }
.form-errors p { font-weight: 700; }
.form-errors ul { margin-top: .4rem; padding-left: 1.2rem; }
.form-errors a { color: #6d2418; }
.form-success { border: 1.5px solid var(--success); background: #edf6f1; color: #1f4a36; }
.form-errors:focus, .form-success:focus { outline: 3px solid var(--bronze); outline-offset: 2px; }

.checkout-summary { position: sticky; top: calc(var(--header-h) + 52px); }
.summary-card { padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow-sm); }
.summary-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: .6rem; }
.summary-head h2 { font-size: 1.4rem; }
.link-button { border: 0; background: none; padding: .3rem; color: var(--bronze); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.summary-loading { padding: 1rem 0; color: var(--muted); font-size: .9rem; }
.summary-lines { list-style: none; padding: 0; max-height: 340px; overflow-y: auto; }
.summary-line { display: flex; justify-content: space-between; gap: 1rem; padding: .75rem 0; border-bottom: 1px solid var(--line); }
.summary-line-name { font-weight: 600; color: var(--ink); font-size: .95rem; }
.summary-line-detail { font-size: .82rem; color: var(--muted); }
.summary-line-price { font-weight: 600; white-space: nowrap; }
.summary-samples { margin-top: .9rem; padding: .8rem 1rem; background: var(--ivory); border-radius: var(--radius-sm); font-size: .88rem; }
.summary-samples-title { font-weight: 700; color: var(--ink); }
.summary-samples ul { padding-left: 1.1rem; margin-top: .2rem; color: var(--muted); }
.summary-alert { margin-top: .8rem; padding: .7rem .9rem; border-radius: var(--radius-sm); background: #fbf0ee; color: #6d2418; font-size: .87rem; font-weight: 600; }
.summary-alert--soft { background: #f4efe6; color: #5a4930; }
.summary-totals { margin-top: 1rem; display: grid; gap: .45rem; }
.summary-totals div { display: flex; justify-content: space-between; }
.summary-totals dt { color: var(--muted); }
.summary-totals dd { margin: 0; font-weight: 600; }
.summary-grand { margin-top: .4rem; padding-top: .8rem; border-top: 1px solid var(--line); }
.summary-grand dt { color: var(--ink); font-weight: 700; }
.summary-grand dd { font-family: var(--font-display); font-size: 1.5rem; color: var(--ink); }

.confirmation { display: grid; justify-items: center; gap: .6rem; }
.confirmation-icon { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--success); color: var(--white); font-size: 2rem; }
.confirmation-icon--wait { background: var(--bronze); }

/* ------------------------------------------------------------- animations */
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { transform: scale(.6); } to { transform: scale(1); } }
@keyframes slide-in { from { transform: translateX(100%); } to { transform: none; } }
@keyframes zoom-in { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes toast-out { to { opacity: 0; transform: translateY(12px); } }
@keyframes spin { to { transform: rotate(360deg); } }

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

/* ------------------------------------------------------------- responsive */
@media (max-width: 960px) {
    .nav-toggle { display: grid; }
    .nav-menu {
        position: absolute;
        top: 100%; left: 0; right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: .5rem 20px 1rem;
        background: var(--white);
        border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow);
        transform: translateY(-8px);
        opacity: 0;
        visibility: hidden;
        transition: opacity .2s, transform .25s var(--ease), visibility .2s;
    }
    .nav-menu.is-open { opacity: 1; visibility: visible; transform: none; }
    .nav-link { display: block; padding: .95rem 0; border-bottom: 1px solid var(--line); }
    .nav-menu li:last-child .nav-link { border-bottom: 0; }
    .nav-link::after { display: none; }
    .navbar { position: relative; }

    .hero-grid { grid-template-columns: 1fr; text-align: center; min-height: 0; }
    .hero-subtitle { margin-inline: auto; }
    .hero-buttons { justify-content: center; }
    .hero-visual { width: min(460px, 100%); margin-inline: auto; height: clamp(260px, 70vw, 400px); }
    .reassurance-list { grid-template-columns: repeat(2, 1fr); row-gap: 2rem; }
    .reassurance-list li:nth-child(odd) { border-left: 0; }
    .format-grid { grid-template-columns: repeat(2, 1fr); }
    .steps { grid-template-columns: 1fr; }
    .story { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
    .checkout-grid { grid-template-columns: 1fr; }
    .checkout-summary { position: static; order: -1; }
}

@media (max-width: 640px) {
    :root { --header-h: 64px; }
    .logo { font-size: 1.3rem; }
    .logo span { font-size: .6rem; letter-spacing: .28em; margin-left: .4rem; }
    .logo img { height: 50px; }
    .logo--light img { height: 72px; }
    .cart-button-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
    .cart-button { padding: .5rem .75rem; }
    .announcement-sep, .announcement span:last-child { display: none; }
    .collection-grid, .engagement-grid { grid-template-columns: 1fr; }
    .filter-bar, .filter-bar.is-live { grid-template-columns: 1fr; }
    .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
    .product-body { padding: .85rem .8rem 1rem; }
    .product-name { font-size: 1.02rem; }
    .product-buy { grid-template-columns: 1fr; gap: .55rem; }
    .product-price { font-size: 1.2rem; padding-bottom: 0; }
    .btn-add { width: 100%; padding-inline: .5rem; }
    .notes-toggle { right: .45rem; bottom: .45rem; padding: .3rem .6rem; }
    .footer-grid { grid-template-columns: 1fr; }
    .reassurance-list { padding-block: 1.8rem; }
    .reassurance-list li { padding-inline: .6rem; }
    .toast-region { left: 16px; right: 16px; }
    .form-grid { grid-template-columns: 1fr; }
    .checkout-block { padding: 1.1rem; }
}

@media (max-width: 380px) {
    .product-grid { grid-template-columns: 1fr; }
}
.checkout-dev-note {
  margin-top: .5rem;
  text-align: center;
  font-size: .85rem;
  opacity: .7;
}
[data-checkout-link][disabled] {
  opacity: .5;
  cursor: not-allowed;
}

/* Bandeau d'aperçu d'un thème de saison (administrateur connecté uniquement) */
.theme-preview-bar {
  position: sticky;
  top: 0;
  z-index: 3000;
  display: flex;
  flex-wrap: wrap;
  gap: .4rem 1rem;
  justify-content: center;
  align-items: center;
  padding: .45rem 1rem;
  background: #1f2a36;
  color: #fff;
  font-size: .85rem;
  text-align: center;
}
.theme-preview-bar a { color: #f3d58f; font-weight: 600; }
