/* ====================================================================
   KEMTAAN Universe — RUN 03 premium slice layer
   Chargée APRÈS style.css. Nomenclature isolée : .kem-r3-*
   Tokens : docs/design/KEMTAAN_WEBSITE_DESIGN_TOKENS_SPEC.md (RUN 02).
   Surfaces (UX-02) : crème chaud pour le commercial / éditorial,
   nuit chaude pour l'univers. Aucune police distante (UX-05).
   ==================================================================== */

:root {
    --r3-cream: #F7F0E3;
    --r3-sand: #EAD9BC;
    --r3-card: #FFFBF4;
    --r3-ink: #1B130D;
    --r3-ink-2: #5A4A3B;
    --r3-night: #16110D;
    --r3-night-2: #221A13;
    --r3-night-blue: #1C2638;
    --r3-on-night: #F7F0E3;
    --r3-on-night-2: #C9BCA6;
    --r3-gold: #D9B25A;
    --r3-ochre: #8A4F1C;
    --r3-action: #B8401A;
    --r3-action-hover: #9A3514;
    --r3-forest: #2F5D46;
    --r3-focus: #1C5FD6;
    --r3-focus-night: #F2C24B;
    --r3-line: rgba(27, 19, 13, 0.14);
    --r3-line-strong: rgba(27, 19, 13, 0.3);
    --r3-line-night: rgba(247, 240, 227, 0.18);

    --r3-font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;

    --r3-gutter: 1rem;
    --r3-container: 75rem;
    --r3-text: 42rem;
    --r3-radius-sm: 4px;
    --r3-radius: 8px;
    --r3-radius-lg: 16px;
    --r3-shadow: 0 1px 2px rgba(43, 28, 14, 0.08), 0 8px 24px rgba(43, 28, 14, 0.08);
    --r3-fast: 160ms;
    --r3-base: 260ms;
    --r3-ease: cubic-bezier(0.2, 0, 0, 1);
    --r3-header-h: 3.5rem; /* mobile : 44px de cible + 2 × 6px */
}

@media (min-width: 48em) {
    :root { --r3-gutter: 1.5rem; --r3-header-h: 4rem; }
}
@media (min-width: 80em) {
    :root { --r3-gutter: 2rem; }
}

/* --------------------------------------------------------------------
   Base des pages du slice (crème). Les pages legacy gardent la V9.
   -------------------------------------------------------------------- */
body.kem-r3-slice,
body.kem-r3-slice .kem-page-aura {
    background: var(--r3-cream);
    color: var(--r3-ink);
}
body.kem-r3-slice {
    /* Surfaces du slice : polices V9 non chargées → variables legacy
       ramenées sur la pile système (les pages legacy gardent la V9). */
    --kem-font-display: var(--r3-font);
    --kem-font-body: var(--r3-font);
    --kem-font-voice: Georgia, "Times New Roman", serif;
    --kem-font-impact: var(--r3-font);
    font-family: var(--r3-font);
    font-size: 1.0625rem;
    line-height: 1.6;
}
body.kem-r3-slice h1,
body.kem-r3-slice h2,
body.kem-r3-slice h3 {
    font-family: var(--r3-font);
    color: inherit;
    letter-spacing: normal;
    text-transform: none;
}
body.kem-r3-slice a {
    color: var(--r3-ochre);
    text-decoration: underline;
    text-underline-offset: 0.18em;
    text-decoration-thickness: 1px;
}
body.kem-r3-slice a:hover {
    color: var(--r3-ink);
    text-decoration-thickness: 2px;
}
body.kem-r3-slice ::selection { background: var(--r3-gold); color: var(--r3-ink); }

body.kem-r3-slice :focus-visible,
.kem-r3-header :focus-visible,
.kem-r3-footer :focus-visible {
    outline: 3px solid var(--r3-focus);
    outline-offset: 3px;
    border-radius: 2px;
}
.kem-r3-section--night :focus-visible,
.kem-r3-product-hero--night :focus-visible,
.kem-r3-footer :focus-visible {
    outline-color: var(--r3-focus-night);
}

#primary:focus { outline: none; }

/* Le lien d'évitement reste au-dessus de l'en-tête collant */
.kem-r3-skip { z-index: 600; }

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

.kem-r3-eyebrow {
    margin: 0 0 0.5rem;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--r3-ink-2);
}

/* --------------------------------------------------------------------
   En-tête global
   -------------------------------------------------------------------- */
.kem-r3-header {
    position: sticky;
    top: 0;
    z-index: 300;
    background: var(--r3-cream);
    color: var(--r3-ink);
    border-bottom: 1px solid var(--r3-line);
    font-family: var(--r3-font);
}
.kem-r3-header.is-scrolled { box-shadow: 0 6px 18px rgba(43, 28, 14, 0.08); }

.kem-r3-header__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 1rem;
    max-width: var(--r3-container);
    min-height: var(--r3-header-h);
    margin-inline: auto;
    padding: 0.375rem var(--r3-gutter);
}
@media (min-width: 48em) {
    .kem-r3-header__inner { padding-block: 0.5rem; }
}

.kem-r3-brand {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    min-height: 44px;
    color: var(--r3-ink);
    text-decoration: none;
    line-height: 1.15;
}
.kem-r3 .kem-r3-brand,
.kem-r3 .kem-r3-brand:hover { color: var(--r3-ink); text-decoration: none; }
.kem-r3-brand__studio {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--r3-ink-2);
}
.kem-r3-brand__portal {
    font-size: 1.125rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

/* Navigation — sans JS : liste visible et utilisable */
.kem-r3-nav { width: 100%; }
.kem-r3-nav__list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}
.kem-r3-nav__link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0.25rem 0.75rem;
    border-radius: var(--r3-radius-sm);
    color: var(--r3-ink);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    white-space: nowrap;
}
.kem-r3 .kem-r3-nav__link { color: var(--r3-ink); text-decoration: none; }
.kem-r3 .kem-r3-nav__link:hover { background: var(--r3-sand); color: var(--r3-ink); }
.kem-r3-nav__link[aria-current="page"] {
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 0.35em;
}

/* Avec JS, sous 64em : panneau plein écran derrière le bouton Menu */
.kem-r3-menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 44px;
    min-width: 44px;
    padding: 0.25rem 0.875rem;
    border: 1px solid var(--r3-line-strong);
    border-radius: var(--r3-radius-sm);
    background: transparent;
    color: var(--r3-ink);
    font: 600 1rem/1 var(--r3-font);
    cursor: pointer;
}
.kem-r3-menu-toggle[hidden] { display: none; }
.kem-r3-menu-toggle__icon,
.kem-r3-menu-toggle__icon span,
.kem-r3-menu-toggle__icon::before,
.kem-r3-menu-toggle__icon::after {
    display: block;
    width: 18px;
    height: 2px;
    background: currentColor;
    border-radius: 1px;
}
.kem-r3-menu-toggle__icon { position: relative; background: transparent; height: 14px; }
.kem-r3-menu-toggle__icon span { position: absolute; top: 6px; }
.kem-r3-menu-toggle__icon::before,
.kem-r3-menu-toggle__icon::after { content: ""; position: absolute; left: 0; }
.kem-r3-menu-toggle__icon::before { top: 0; }
.kem-r3-menu-toggle__icon::after { bottom: 0; }
.kem-r3-menu-toggle[aria-expanded="true"] .kem-r3-menu-toggle__icon span { opacity: 0; }
.kem-r3-menu-toggle[aria-expanded="true"] .kem-r3-menu-toggle__icon::before { top: 6px; transform: rotate(45deg); }
.kem-r3-menu-toggle[aria-expanded="true"] .kem-r3-menu-toggle__icon::after { bottom: 6px; transform: rotate(-45deg); }

@media (max-width: 63.99em) {
    .kem-r3-js .kem-r3-nav {
        display: none;
        position: fixed;
        inset: var(--r3-header-h) 0 0 0;
        width: auto;
        overflow-y: auto;
        background: var(--r3-cream);
        border-top: 1px solid var(--r3-line);
        padding: 1rem var(--r3-gutter) 2rem;
        z-index: 290;
    }
    .kem-r3-js .kem-r3-nav.is-open { display: block; }
    .kem-r3-js .kem-r3-nav__list { flex-direction: column; gap: 0.25rem; }
    .kem-r3-js .kem-r3-nav__link { width: 100%; font-size: 1.125rem; padding: 0.625rem 0.75rem; }
    .kem-r3-js .kem-r3-nav { width: auto; }
    /* Avec JS : marque et bouton Menu sur une seule ligne (la nav est un panneau) */
    .kem-r3-js .kem-r3-header__inner { flex-wrap: nowrap; }
    .kem-r3-brand { min-width: 0; }
    .kem-r3-menu-toggle { flex-shrink: 0; }
    html.kem-r3-menu-open,
    html.kem-r3-menu-open body { overflow: hidden; }
}

@media (max-width: 22.49em) {
    .kem-r3-header__inner { column-gap: 0.5rem; }
    .kem-r3-menu-toggle { padding-inline: 0.625rem; }
}

@media (min-width: 64em) {
    .kem-r3-header__inner { flex-wrap: nowrap; }
    .kem-r3-menu-toggle,
    .kem-r3-js .kem-r3-menu-toggle { display: none; }
    .kem-r3-nav { width: auto; }
    .kem-r3-nav__list { flex-wrap: nowrap; justify-content: flex-end; }
}

/* --------------------------------------------------------------------
   Boutons, badges store
   -------------------------------------------------------------------- */
.kem-r3-actions,
.kem-r3-card__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

.kem-r3-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.625rem 1.125rem;
    border-radius: var(--r3-radius);
    border: 1px solid transparent;
    font: 700 1rem/1.2 var(--r3-font);
    text-decoration: none;
    transition: background-color var(--r3-fast) var(--r3-ease), color var(--r3-fast) var(--r3-ease);
}
.kem-r3 .kem-r3-btn--primary,
body.kem-r3-slice .kem-r3-btn--primary {
    background: var(--r3-action);
    color: #FFFFFF;
    text-decoration: none;
}
.kem-r3 .kem-r3-btn--primary:hover,
body.kem-r3-slice .kem-r3-btn--primary:hover { background: var(--r3-action-hover); color: #FFFFFF; }

.kem-r3 a.kem-r3-store {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    min-height: 44px;
    padding: 0.375rem 1rem;
    border-radius: var(--r3-radius);
    background: var(--r3-ink);
    color: #FFFFFF;
    text-decoration: none;
    line-height: 1.15;
    border: 1px solid var(--r3-ink);
    transition: background-color var(--r3-fast) var(--r3-ease);
}
.kem-r3 a.kem-r3-store:hover { background: #3A2A1D; color: #FFFFFF; }
.kem-r3-store__prefix { font-size: 0.75rem; font-weight: 500; }
.kem-r3-store__name { font-size: 1.0625rem; font-weight: 800; }

body.kem-r3 .kem-r3-section--night a.kem-r3-store,
body.kem-r3 .kem-r3-product-hero--night a.kem-r3-store,
body.kem-r3 .kem-r3-cta-band a.kem-r3-store {
    background: var(--r3-cream);
    color: var(--r3-ink);
    border-color: var(--r3-cream);
    text-decoration: none;
}
body.kem-r3 .kem-r3-section--night a.kem-r3-store:hover,
body.kem-r3 .kem-r3-product-hero--night a.kem-r3-store:hover,
body.kem-r3 .kem-r3-cta-band a.kem-r3-store:hover { background: #FFFFFF; color: var(--r3-ink); }

/* --------------------------------------------------------------------
   Accueil — hero et cartes produit
   -------------------------------------------------------------------- */
.kem-r3-hero {
    padding-block: 0.75rem 2.5rem;
    background:
        radial-gradient(ellipse 70% 60% at 100% 0%, rgba(217, 178, 90, 0.22), transparent 70%),
        var(--r3-cream);
}
.kem-r3-hero__title {
    margin: 0 0 0.5rem;
    max-width: 22ch;
    font-size: clamp(1.5rem, 1.05rem + 2.4vw, 3.25rem);
    line-height: 1.12;
    font-weight: 800;
}
.kem-r3-hero__lead {
    margin: 0 0 0.875rem;
    max-width: 52ch;
    font-size: clamp(1rem, 0.95rem + 0.3vw, 1.1875rem);
    color: var(--r3-ink-2);
}

.kem-r3-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.625rem;
    margin: 0;
    padding: 0;
    list-style: none;
}
@media (min-width: 40em) {
    .kem-r3-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
}
@media (min-width: 64em) {
    .kem-r3-cards { max-width: 56rem; gap: 1.25rem; }
}

.kem-r3-card {
    background: var(--r3-card);
    border: 1px solid var(--r3-line);
    border-radius: var(--r3-radius-lg);
    box-shadow: var(--r3-shadow);
}
.kem-r3-card > article { padding: 0.75rem 1rem 0.875rem; height: 100%; display: flex; flex-direction: column; }
.kem-r3-card--door-daan { border-top: 4px solid var(--r3-action); }
.kem-r3-card--kemtaan { border-top: 4px solid var(--r3-forest); }
.kem-r3-card__type {
    margin: 0;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--r3-ink-2);
}
.kem-r3-card__title { margin: 0.125rem 0 0.25rem; font-size: 1.3125rem; line-height: 1.2; font-weight: 800; }
.kem-r3-card__text { margin: 0 0 0.625rem; font-size: 0.9375rem; line-height: 1.45; color: var(--r3-ink-2); }
.kem-r3-card__status { font-weight: 600; color: var(--r3-forest); }
.kem-r3-card__actions { margin-top: auto; gap: 0.5rem; }
.kem-r3 .kem-r3-card a.kem-r3-store { padding: 0.25rem 0.75rem; }
.kem-r3-card .kem-r3-store__prefix { font-size: 0.6875rem; }
.kem-r3-card .kem-r3-store__name { font-size: 0.9375rem; }

@media (min-width: 64em) {
    .kem-r3-hero { padding-block: 3.5rem 4.5rem; }
    .kem-r3-card > article { padding: 1.5rem; }
}

/* --------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------- */
.kem-r3-section { padding-block: 2.5rem; scroll-margin-top: calc(var(--r3-header-h) + 0.5rem); }
@media (min-width: 64em) { .kem-r3-section { padding-block: 4rem; } }

.kem-r3-section--alt { background: var(--r3-sand); }

.kem-r3-section--night {
    background:
        radial-gradient(ellipse 60% 50% at 0% 0%, rgba(217, 178, 90, 0.12), transparent 70%),
        var(--r3-night);
    color: var(--r3-on-night);
}
.kem-r3-section--night .kem-r3-eyebrow,
.kem-r3-section--night .kem-r3-section__lead { color: var(--r3-on-night-2); }
body.kem-r3-slice .kem-r3-section--night a { color: var(--r3-gold); }

.kem-r3-section__title {
    margin: 0 0 1rem;
    font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.25rem);
    line-height: 1.15;
    font-weight: 800;
}
.kem-r3-section__lead { margin: 0 0 1.5rem; max-width: 60ch; color: var(--r3-ink-2); }

.kem-r3-split { display: grid; gap: 0.5rem 2rem; }
@media (min-width: 64em) {
    .kem-r3-split { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); align-items: start; }
}

.kem-r3-prose { max-width: var(--r3-text); }
.kem-r3-prose p { margin: 0 0 1rem; }

.kem-r3-list { margin: 0; padding-left: 1.25rem; }
.kem-r3-list li { margin-bottom: 0.5rem; }

.kem-r3-worlds,
.kem-r3-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
}
@media (min-width: 48em) {
    .kem-r3-worlds { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .kem-r3-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 64em) {
    .kem-r3-features { grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
}
.kem-r3-world {
    padding: 1.25rem;
    border: 1px solid var(--r3-line-night);
    border-radius: var(--r3-radius-lg);
    background: var(--r3-night-2);
}
.kem-r3-world__name { margin: 0 0 0.5rem; font-size: 1.25rem; font-weight: 800; color: var(--r3-on-night); }
.kem-r3-world p { margin: 0; color: var(--r3-on-night-2); }

.kem-r3-feature {
    padding: 1.25rem;
    border: 1px solid var(--r3-line);
    border-radius: var(--r3-radius-lg);
    background: var(--r3-card);
}
.kem-r3-feature__title { margin: 0 0 0.5rem; font-size: 1.1875rem; font-weight: 800; }
.kem-r3-feature p { margin: 0; color: var(--r3-ink-2); }

/* --------------------------------------------------------------------
   Pages produit (gabarit T02)
   -------------------------------------------------------------------- */
.kem-r3-product-hero { padding-block: 1rem 2.5rem; }
.kem-r3-product-hero--night {
    background:
        radial-gradient(ellipse 60% 70% at 100% 100%, rgba(184, 64, 26, 0.28), transparent 70%),
        var(--r3-night);
    color: var(--r3-on-night);
}
.kem-r3-product-hero--night .kem-r3-eyebrow,
.kem-r3-product-hero--night .kem-r3-product-hero__lead { color: var(--r3-on-night-2); }
.kem-r3-product-hero--night .kem-r3-product-hero__status { color: var(--r3-on-night); }
body.kem-r3-slice .kem-r3-product-hero--night a { color: var(--r3-gold); }

.kem-r3-product-hero--kemtaan {
    background:
        radial-gradient(ellipse 60% 70% at 100% 0%, rgba(47, 93, 70, 0.16), transparent 70%),
        var(--r3-cream);
}

.kem-r3-product-hero__title {
    margin: 0 0 0.75rem;
    font-size: clamp(2rem, 1.4rem + 3vw, 3.5rem);
    line-height: 1.08;
    font-weight: 800;
}
.kem-r3-product-hero__lead { margin: 0 0 0.75rem; max-width: 52ch; font-size: 1.125rem; color: var(--r3-ink-2); }
.kem-r3-product-hero__note { margin: 0 0 0.75rem; font-weight: 600; }
.kem-r3-product-hero__status { margin: 0 0 1rem; font-weight: 700; color: var(--r3-forest); }

@media (min-width: 64em) { .kem-r3-product-hero { padding-block: 1.5rem 4rem; } }

.kem-r3-product-media { margin: 0 auto 1rem; }
.kem-r3-product-media img { display: block; width: 100%; height: auto; border-radius: var(--r3-radius-lg); }

.kem-r3-breadcrumb { margin: 0 0 1.25rem; font-size: 0.875rem; }
.kem-r3-breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 0 0.375rem; margin: 0; padding: 0; list-style: none; }
.kem-r3-breadcrumb li { display: inline-flex; align-items: center; min-height: 44px; }
.kem-r3-breadcrumb li + li::before { content: "›"; margin-right: 0.375rem; opacity: 0.7; }
.kem-r3-breadcrumb a { display: inline-flex; align-items: center; min-height: 44px; }

.kem-r3-facts { margin: 0; max-width: var(--r3-text); }
.kem-r3-facts__row {
    display: grid;
    grid-template-columns: minmax(8rem, 1fr) 2fr;
    gap: 1rem;
    padding-block: 0.75rem;
    border-bottom: 1px solid var(--r3-line-strong);
}
.kem-r3-facts dt { font-weight: 700; }
.kem-r3-facts dd { margin: 0; }

.kem-r3-cta-band {
    padding-block: 2.5rem;
    background: var(--r3-night);
    color: var(--r3-on-night);
    text-align: left;
}
.kem-r3-cta-band--kemtaan { background: var(--r3-forest); }
.kem-r3-cta-band .kem-r3-section__title { color: var(--r3-on-night); }
.kem-r3-cta-band a.kem-r3-store { background: var(--r3-cream); color: var(--r3-ink); border-color: var(--r3-cream); }
.kem-r3-cta-band a.kem-r3-store:hover { background: #FFFFFF; color: var(--r3-ink); }
.kem-r3-cta-band :focus-visible { outline-color: var(--r3-focus-night); }

/* --------------------------------------------------------------------
   Vidéo — façade (video on intent)
   -------------------------------------------------------------------- */
.kem-r3-video {
    position: relative;
    aspect-ratio: 16 / 9;
    max-width: 56rem;
    border-radius: var(--r3-radius-lg);
    overflow: hidden;
    background: var(--r3-night);
}
.kem-r3 .kem-r3-video__trigger {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    height: 100%;
    padding: 1rem;
    color: var(--r3-on-night);
    text-decoration: none;
    text-align: center;
    background: radial-gradient(ellipse 60% 60% at 50% 50%, rgba(217, 178, 90, 0.18), transparent 70%), var(--r3-night);
}
.kem-r3 .kem-r3-video__trigger:hover { color: #FFFFFF; }
.kem-r3-video__icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--r3-cream);
    position: relative;
}
.kem-r3-video__icon::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 54%;
    transform: translate(-50%, -50%);
    border-style: solid;
    border-width: 11px 0 11px 18px;
    border-color: transparent transparent transparent var(--r3-ink);
}
.kem-r3-video__label { font-weight: 700; font-size: 1.0625rem; }
.kem-r3-video__note { font-size: 0.875rem; color: var(--r3-on-night-2); }
.kem-r3-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* --------------------------------------------------------------------
   Pied de page global (nuit chaude)
   -------------------------------------------------------------------- */
.kem-r3-footer {
    background: var(--r3-night);
    color: var(--r3-on-night);
    font-family: var(--r3-font);
    font-size: 1rem;
    line-height: 1.5;
}
.kem-r3-footer__inner {
    max-width: var(--r3-container);
    margin-inline: auto;
    padding: 2.5rem var(--r3-gutter) 1.5rem;
    display: grid;
    gap: 2rem;
}
.kem-r3-footer__studio { margin: 0; font-size: 0.875rem; color: var(--r3-on-night-2); }
.kem-r3-footer__portal { margin: 0; font-size: 1.25rem; font-weight: 800; }
.kem-r3-footer__nav { display: grid; gap: 1.5rem; }
@media (min-width: 48em) {
    .kem-r3-footer__nav { grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); }
}
@media (min-width: 64em) {
    .kem-r3-footer__inner { grid-template-columns: minmax(12rem, 1fr) 3fr; }
}
.kem-r3-footer__title {
    margin: 0 0 0.5rem;
    font-family: var(--r3-font);
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: none;
    color: var(--r3-on-night-2);
}
.kem-r3-footer ul { margin: 0; padding: 0; list-style: none; }
.kem-r3-footer li a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--r3-on-night);
    text-decoration: none;
}
.kem-r3-footer li a:hover { color: var(--r3-gold); text-decoration: underline; }
.kem-r3-footer__bottom {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--r3-line-night);
    font-size: 0.875rem;
    color: var(--r3-on-night-2);
}
.kem-r3-footer__bottom p { margin: 0; }
.kem-r3-motion-toggle {
    min-height: 44px;
    padding: 0.375rem 0.875rem;
    border: 1px solid var(--r3-line-night);
    border-radius: var(--r3-radius-sm);
    background: transparent;
    color: var(--r3-on-night);
    font: 600 0.875rem/1.2 var(--r3-font);
    cursor: pointer;
}
.kem-r3-motion-toggle[hidden] { display: none; }
.kem-r3-motion-toggle[aria-pressed="true"] { background: var(--r3-on-night); color: var(--r3-night); }

/* --------------------------------------------------------------------
   Mouvement réduit : préférence système ou réglage local
   -------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    body.kem-r3-slice *, body.kem-r3-slice *::before, body.kem-r3-slice *::after,
    .kem-r3-header *, .kem-r3-header *::before, .kem-r3-header *::after,
    .kem-r3-footer *, .kem-r3-footer *::before, .kem-r3-footer *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
    }
}
/* Réglage explicite du visiteur (bouton du footer global) : s'applique
   volontairement à tout le site. */
html[data-kem-motion="reduced"] { scroll-behavior: auto; }
html[data-kem-motion="reduced"] *,
html[data-kem-motion="reduced"] *::before,
html[data-kem-motion="reduced"] *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
}
html[data-kem-motion="reduced"] .reveal,
html[data-kem-motion="reduced"] .reveal-stagger > * { opacity: 1; transform: none; filter: none; }

/* --------------------------------------------------------------------
   Contraste renforcé
   -------------------------------------------------------------------- */
@media (prefers-contrast: more) {
    :root {
        --r3-line: rgba(27, 19, 13, 0.4);
        --r3-line-strong: rgba(27, 19, 13, 0.6);
        --r3-ink-2: #3E3228;
    }
}

/* --------------------------------------------------------------------
   Impression
   -------------------------------------------------------------------- */
@media print {
    .kem-r3-header, .kem-r3-footer, .kem-r3-menu-toggle, .kem-r3-actions, .kem-r3-card__actions, .kem-r3-video { display: none !important; }
    body.kem-r3-slice, body.kem-r3-slice .kem-page-aura, .kem-r3-section--night, .kem-r3-product-hero--night { background: #FFFFFF !important; color: #000000 !important; }
}
