/* ============================================================================
   REVERENTIA - Distributor Enrollment - presentation.css
   Mobile-first, 3 breakpoints, design tokens, WCAG AA targets.
   Charte preservee : noir #0A0A0A, or #eac880, creme #f5f0eb,
                       Bodoni Moda + Plus Jakarta Sans.
   ============================================================================ */

/* ---------- Bodoni Moda statique 9pt (remplace le chargement Google Fonts) - */
/* Coupes reellement utilisees par cette feuille : Regular et Medium en normal
   (ex. .deck__counter strong, .slide__pyramid-row--luxury), Regular en italique. */
@font-face {
    font-family: 'Bodoni Moda';
    src: url('fonts/bodoni-moda-9pt/BodoniModa9pt-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Bodoni Moda';
    src: url('fonts/bodoni-moda-9pt/BodoniModa9pt-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Bodoni Moda';
    src: url('fonts/bodoni-moda-9pt/BodoniModa9pt-Italic.woff2') format('woff2');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

:root {
    /* ====== COULEURS (charte inchangee) ====== */
    --rev-black:        #0A0A0A;
    --rev-black-soft:   #141414;
    --rev-black-card:   #18181a;
    --rev-gold:         #eac880;
    --rev-gold-soft:    #f0d9a0;
    --rev-gold-dim:     #b89a5e;
    --rev-cream:        #f5f0eb;
    --rev-cream-muted:  rgba(245,240,235,0.78);
    --rev-cream-dim:    rgba(245,240,235,0.52);
    --rev-line:         rgba(234,200,128,0.18);
    --rev-line-strong:  rgba(234,200,128,0.42);
    --rev-error:        #c97a7a;
    --rev-success:      var(--rev-gold);

    --col-saphir:       #1A3A6B;
    --col-rubis:        #8B1A1A;
    --col-emeraude:     #1A5B3A;

    /* ====== TYPOGRAPHIE ====== */
    --font-serif:       'Bodoni Moda', 'Didot', 'Times New Roman', serif;
    --font-sans:        'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
    --font-script:      'Vladimir', 'Brush Script MT', cursive;

    /* Echelles fluides (mobile-first) */
    --type-h1:    clamp(2.4rem, 8vw, 4.6rem);
    --type-h2:    clamp(1.5rem, 4vw, 2.8rem);
    --type-h3:    clamp(1.1rem, 2.5vw, 1.5rem);
    --type-body:  clamp(0.95rem, 1.6vw, 1.05rem);
    --type-lead:  clamp(1rem, 1.8vw, 1.1rem);
    --type-label: 12px;
    --type-input: 16px;   /* >=16px empeche le zoom iOS */
    --type-meta:  0.72rem;
    --type-tag:   0.7rem;

    /* ====== ESPACEMENTS ====== */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 16px;
    --space-4: 24px;
    --space-5: 40px;
    --space-6: 64px;
    --space-7: 80px;

    /* Paddings adaptatifs des slides (defaut = mobile) */
    --slide-pad-x: var(--space-3);
    --slide-pad-y: var(--space-5);
    --slide-max:   1180px;

    /* Hauteurs des barres deck (defaut = mobile) */
    --bar-top-h:    52px;
    --bar-bottom-h: 56px;

    /* ====== TOUCH TARGETS (WCAG 2.1 AA) ====== */
    --touch-min: 44px;
    --touch-rec: 48px;

    /* ====== MOTION ====== */
    --motion-fast:   200ms;
    --motion-normal: 250ms;
    --motion-slow:   350ms;
    --slide-transition: 450ms;

    /* ====== Z-INDEX SYSTEM ====== */
    --z-deck:      1;
    --z-deck-bars: 50;
    --z-toc:       80;
    --z-toc-back:  70;
    --z-toast:     100;
    --z-modal:     120;

    /* ====== FOCUS RING (WCAG 2.4.7) ====== */
    --focus-ring: 0 0 0 2px var(--rev-gold);
}

/* Tablette */
@media (min-width: 600px) {
    :root {
        --slide-pad-x: var(--space-4);
        --slide-pad-y: var(--space-6);
        --bar-top-h:    58px;
        --bar-bottom-h: 58px;
    }
}

/* Desktop */
@media (min-width: 900px) {
    :root {
        --slide-pad-x: var(--space-6);
        --slide-pad-y: var(--space-7);
        --bar-top-h:    64px;
        --bar-bottom-h: 60px;
    }
}

/* ============================================================================
   BASE + UTILS
   ============================================================================ */
*, *::before, *::after { box-sizing: border-box; }

html, body {
    margin: 0; padding: 0;
    background: var(--rev-black);
    color: var(--rev-cream);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow: hidden;
    overscroll-behavior: none;
}
body.is-printing { overflow: visible; }

a { color: var(--rev-gold); text-decoration: none; }
a:hover { color: var(--rev-gold-soft); }

::selection { background: var(--rev-gold); color: var(--rev-black); }

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

/* Focus visible global (WCAG 2.4.7) */
:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
    border-radius: 2px;
}
/* Pour les inputs : focus indique par la border-bottom dore */
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    box-shadow: none;
}

/* ============================================================================
   COUNTRY AUTOCOMPLETE
   ============================================================================ */
.country-autocomplete {
    position: absolute;
    top: 100%; left: 0;
    margin: 4px 0 0;
    padding: 4px 0;
    list-style: none;
    width: 100%;
    max-height: 280px;
    overflow-y: auto;
    background: rgba(10,10,10,0.98);
    border: 1px solid var(--rev-line-strong);
    border-radius: 2px;
    z-index: 10;
    box-shadow: 0 10px 28px rgba(0,0,0,0.55);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.country-autocomplete li {
    padding: 10px 14px;
    cursor: pointer;
    font-size: 0.92rem;
    color: var(--rev-cream-muted);
    display: flex;
    align-items: center;
    gap: var(--space-2);
    min-height: var(--touch-min);
    transition: background var(--motion-fast) ease, color var(--motion-fast) ease;
}
.country-autocomplete li:hover,
.country-autocomplete li.is-active {
    background: rgba(234,200,128,0.08);
    color: var(--rev-cream);
}
.country-autocomplete .ca-code {
    font-family: var(--font-serif);
    font-size: 0.75rem;
    letter-spacing: 0.16em;
    color: var(--rev-gold);
    min-width: 32px;
}
.country-autocomplete .ca-name { flex: 1; }

/* ============================================================================
   CHAMPS CONDITIONNELS
   ============================================================================ */
[data-show-if].is-hidden {
    display: none !important;
}
.show-if-pending {
    /* fallback : pre-applique avant que le JS evalue */
    visibility: hidden;
}

/* ============================================================================
   ACCESSIBILITE : prefers-reduced-motion
   ============================================================================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        transition: none !important;
        animation: none !important;
        scroll-behavior: auto !important;
    }
}

/* ============================================================================
   LAYOUT GLOBAL : deck + barres fixes
   ============================================================================ */
.deck {
    position: fixed;
    inset: 0;
    overflow: hidden;
    /* Utilisation de dvh pour eviter le bug iOS Safari (nav bar dynamique) */
    height: 100dvh;
    z-index: var(--z-deck);
}

/* TOP BAR */
.deck__top {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: var(--z-deck-bars);
    height: var(--bar-top-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-2);
    padding: 0 var(--space-3);
    background: linear-gradient(to bottom, rgba(10,10,10,0.95) 60%, rgba(10,10,10,0) 100%);
    pointer-events: none;
}
.deck__top > * { pointer-events: auto; }
.deck__top-right {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

/* ============================================================================
   LANGUAGE SWITCHER (ComboBox)
   ============================================================================ */
.lang-switch {
    position: relative;
    display: inline-block;
}
.lang-switch__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 32px;
    min-width: 56px;
    padding: 0 12px;
    background: rgba(20,20,20,0.7);
    border: 1px solid var(--rev-line-strong);
    color: var(--rev-cream);
    font-family: var(--font-sans);
    font-size: 0.78rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 16px;
    transition: background var(--motion-normal) ease,
                color var(--motion-normal) ease,
                border-color var(--motion-normal) ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.lang-switch__btn:hover,
.lang-switch__btn:focus-visible,
.lang-switch.is-open .lang-switch__btn {
    background: var(--rev-gold);
    color: var(--rev-black);
    border-color: var(--rev-gold);
}
.lang-switch__caret {
    font-size: 0.7rem;
    line-height: 0;
    transition: transform var(--motion-fast) ease;
}
.lang-switch.is-open .lang-switch__caret { transform: rotate(180deg); }

.lang-switch__menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 100px;
    background: rgba(10,10,10,0.97);
    border: 1px solid var(--rev-line-strong);
    border-radius: 4px;
    list-style: none;
    margin: 0;
    padding: 4px 0;
    box-shadow: 0 10px 28px rgba(0,0,0,0.45);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    transition: opacity var(--motion-normal) ease,
                transform var(--motion-normal) ease;
    z-index: 1;
}
.lang-switch.is-open .lang-switch__menu {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.lang-switch__menu li { margin: 0; padding: 0; }
.lang-switch__item {
    display: block;
    padding: 10px 18px;
    color: var(--rev-cream-muted);
    text-decoration: none;
    font-family: var(--font-sans);
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    min-height: var(--touch-min);
    line-height: 24px;
    transition: background var(--motion-fast) ease,
                color var(--motion-fast) ease;
    position: relative;
}
.lang-switch__item:hover,
.lang-switch__item:focus-visible {
    background: rgba(234,200,128,0.08);
    color: var(--rev-cream);
}
.lang-switch__item.is-current {
    color: var(--rev-gold);
    padding-right: 32px;
}
.lang-switch__item.is-current::after {
    content: '\2713';
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.7rem;
}
@media (min-width: 600px) {
    .lang-switch__btn { font-size: 0.82rem; letter-spacing: 0.2em; height: 34px; min-width: 64px; }
}

/* ============================================================================
   REVIEW SECTION — bouton "Modifier" (slide 35)
   ============================================================================ */
.review-block__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 0 var(--space-3);
    gap: var(--space-2);
}
.review-block__head h4 {
    margin: 0;
    flex: 1;
}
.review-block__edit {
    background: transparent;
    border: 1px solid var(--rev-line-strong);
    color: var(--rev-cream-muted);
    font-family: var(--font-sans);
    font-size: 0.66rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 14px;
    cursor: pointer;
    transition: background var(--motion-fast) ease,
                color var(--motion-fast) ease,
                border-color var(--motion-fast) ease;
    flex-shrink: 0;
    min-height: 32px;
}
.review-block__edit:hover,
.review-block__edit:focus-visible {
    background: var(--rev-gold);
    color: var(--rev-black);
    border-color: var(--rev-gold);
}
.review-block__edit-icon {
    margin-right: 4px;
    font-style: normal;
}

.deck__back {
    font-family: var(--font-sans);
    font-size: 0.66rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--rev-cream-dim);
    padding: var(--space-2) 0;
    border-bottom: 1px solid transparent;
    transition: color var(--motion-normal) ease;
    min-height: var(--touch-min);
    display: inline-flex;
    align-items: center;
}
.deck__back:hover, .deck__back:focus-visible { color: var(--rev-gold); }

.deck__brand {
    font-family: var(--font-serif);
    font-size: 0.95rem;
    letter-spacing: 0.28em;
    color: var(--rev-cream);
    text-transform: uppercase;
    line-height: 1;
}
.deck__brand small {
    display: none; /* cache sur mobile, revient en tablette */
    font-family: var(--font-sans);
    font-size: 0.58rem;
    letter-spacing: 0.26em;
    color: var(--rev-cream-dim);
    margin-top: 3px;
    font-weight: 300;
    text-transform: uppercase;
}

.deck__progress {
    display: none; /* cache mobile, visible en tablette+ */
    flex: 1;
    max-width: 480px;
    height: 2px;
    background: rgba(234,200,128,0.12);
    position: relative;
    margin: 0 var(--space-3);
}
.deck__progress::after {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: var(--progress, 0%);
    background: linear-gradient(to right, var(--rev-gold-dim), var(--rev-gold));
    transition: width var(--motion-slow) ease;
}

.deck__counter {
    font-family: var(--font-serif);
    font-size: 0.78rem;
    color: var(--rev-cream-muted);
    letter-spacing: 0.1em;
    min-width: 56px;
    text-align: right;
    line-height: 1;
}
.deck__counter strong {
    color: var(--rev-gold);
    font-weight: 500;
    font-size: 0.95rem;
}

@media (min-width: 600px) {
    .deck__top { padding: 0 var(--space-4); }
    .deck__brand { font-size: 1.05rem; letter-spacing: 0.32em; }
    .deck__brand small { display: block; }
    .deck__progress { display: block; }
    .deck__counter { font-size: 0.88rem; min-width: 90px; }
    .deck__counter strong { font-size: 1.1rem; }
    .deck__back { font-size: 0.7rem; letter-spacing: 0.22em; }
}
@media (min-width: 900px) {
    .deck__top { padding: 0 var(--space-6); }
}

/* BOTTOM BAR */
.deck__bottom {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: var(--z-deck-bars);
    height: var(--bar-bottom-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-2);
    padding: 0 var(--space-3);
    background: linear-gradient(to top, rgba(10,10,10,0.96) 60%, rgba(10,10,10,0) 100%);
    pointer-events: none;
    /* Safe area iOS (encoche / barre du bas) */
    padding-bottom: env(safe-area-inset-bottom, 0);
}
.deck__bottom > * { pointer-events: auto; }

.deck__nav {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    flex-shrink: 0;
}

.deck__nav-btn {
    width: var(--touch-min);
    height: var(--touch-min);
    border-radius: 50%;
    border: 1px solid var(--rev-line-strong);
    background: rgba(20,20,20,0.85);
    color: var(--rev-cream);
    cursor: pointer;
    font-size: 1.2rem;
    line-height: 1; /* centrage optique de la fleche (etait 0) */
    padding: 0;
    transition: background var(--motion-normal) ease,
                color var(--motion-normal) ease,
                border-color var(--motion-normal) ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
/* Fleche = SVG FontAwesome (centrage parfait via viewBox, herite color). */
.deck__nav-btn .rev-fa-icon { display: block; width: 18px; height: 18px; }
.deck__nav-btn:hover,
.deck__nav-btn:focus-visible {
    background: var(--rev-gold);
    color: var(--rev-black);
    border-color: var(--rev-gold);
}
.deck__nav-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}
.deck__nav-btn:disabled:hover {
    background: rgba(20,20,20,0.85);
    color: var(--rev-cream);
    border-color: var(--rev-line);
}

.deck__autosave {
    font-size: 0.65rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--rev-cream-dim);
    display: none; /* hide sur tres petit mobile */
    align-items: center;
    gap: var(--space-2);
    min-height: var(--touch-min);
}
.deck__autosave::before {
    content: '';
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--rev-gold);
}
.deck__autosave.is-saved::before { background: var(--rev-gold); }
.deck__autosave.is-empty::before { background: var(--rev-cream-dim); }

.deck__pct {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 0.95rem;
    color: var(--rev-gold);
    padding: 0 var(--space-2);
    letter-spacing: 0.05em;
    line-height: 1;
    min-height: var(--touch-min);
    display: inline-flex;
    align-items: center;
}

.deck__tools {
    display: flex;
    gap: var(--space-2);
    flex-shrink: 0;
}

.deck__tool-btn {
    height: 40px;
    padding: 0 var(--space-3);
    border-radius: 20px;
    border: 1px solid var(--rev-line-strong);
    background: rgba(20,20,20,0.7);
    color: var(--rev-cream);
    cursor: pointer;
    font-family: var(--font-sans);
    font-size: 0.66rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    transition: background var(--motion-normal) ease,
                color var(--motion-normal) ease,
                border-color var(--motion-normal) ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    white-space: nowrap;
}
.deck__tool-btn:hover,
.deck__tool-btn:focus-visible {
    background: var(--rev-gold);
    color: var(--rev-black);
    border-color: var(--rev-gold);
}

@media (min-width: 380px) {
    .deck__autosave { display: inline-flex; }
}
@media (min-width: 600px) {
    .deck__bottom { padding: 0 var(--space-4); gap: var(--space-3); }
    .deck__nav { gap: var(--space-3); }
    .deck__tool-btn { font-size: 0.72rem; letter-spacing: 0.18em; padding: 0 var(--space-4); height: 36px; }
    .deck__autosave { font-size: 0.74rem; letter-spacing: 0.16em; }
}
@media (min-width: 900px) {
    .deck__bottom { padding: 0 var(--space-6); }
}

/* ============================================================================
   SLIDES
   ============================================================================ */
.slides {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.slide {
    position: absolute;
    inset: 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    padding: calc(var(--bar-top-h) + var(--space-4))
             var(--slide-pad-x)
             calc(var(--bar-bottom-h) + var(--space-4));
    opacity: 0;
    transform: translateX(20px);
    transition: opacity var(--slide-transition) ease,
                transform var(--slide-transition) ease;
    pointer-events: none;
}
.slide.is-active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}
.slide.is-prev { transform: translateX(-20px); }

@media (min-width: 900px) {
    .slide { transform: translateX(40px); }
    .slide.is-prev { transform: translateX(-40px); }
}

.slide__inner {
    max-width: var(--slide-max);
    margin: 0 auto;
    min-height: calc(100dvh - var(--bar-top-h) - var(--bar-bottom-h) - var(--space-5));
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.slide__chapter {
    font-family: var(--font-sans);
    font-size: 0.66rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--rev-gold);
    margin: 0 0 var(--space-3);
    display: flex;
    align-items: center;
    gap: var(--space-2);
    line-height: 1.4;
}
.slide__chapter::before {
    content: '';
    width: 28px; height: 1px;
    background: var(--rev-gold);
    flex-shrink: 0;
}
@media (min-width: 600px) {
    .slide__chapter { font-size: var(--type-meta); letter-spacing: 0.42em; margin-bottom: var(--space-4); }
    .slide__chapter::before { width: 36px; }
}

.slide__title {
    font-family: var(--font-serif);
    font-weight: 400;
    font-size: var(--type-h2);
    line-height: 1.15;
    color: var(--rev-cream);
    margin: 0 0 var(--space-4);
    letter-spacing: 0.01em;
}
.slide__title em {
    color: var(--rev-gold);
    font-style: italic;
}

.slide__subtitle {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.1rem;
    color: var(--rev-cream-muted);
    margin: 0 0 var(--space-5);
    line-height: 1.45;
    max-width: 760px;
}
@media (min-width: 600px) {
    .slide__subtitle { font-size: 1.25rem; }
}

.slide__lead {
    font-size: var(--type-lead);
    line-height: 1.7;
    color: var(--rev-cream-muted);
    max-width: 780px;
    margin: 0 0 var(--space-4);
}
.slide__lead--narrow { max-width: 640px; }

.slide__body p {
    font-size: var(--type-body);
    line-height: 1.75;
    color: var(--rev-cream-muted);
    margin: 0 0 var(--space-3);
    max-width: 780px;
}
.slide__body strong { color: var(--rev-cream); font-weight: 500; }

.slide__body ul {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--space-4);
}
.slide__body ul li {
    position: relative;
    padding-left: var(--space-4);
    margin-bottom: var(--space-2);
    color: var(--rev-cream-muted);
    line-height: 1.65;
}
.slide__body ul li::before {
    content: '';
    position: absolute;
    left: 0; top: 13px;
    width: 14px; height: 1px;
    background: var(--rev-gold);
}

/* ============================================================================
   TYPES DE SLIDES SPECIAUX
   ============================================================================ */

/* COVER */
.slide--cover .slide__inner {
    align-items: center;
    text-align: center;
}
.slide--cover .slide__brandmark {
    font-family: var(--font-serif);
    font-size: var(--type-h1);
    letter-spacing: 0.18em;
    margin: 0 0 var(--space-2);
    color: var(--rev-cream);
    font-weight: 400;
    line-height: 1;
}
/* Si on remplace par un SVG (Etape 7), prevoir : */
.slide--cover .slide__brand-svg {
    width: clamp(220px, 70vw, 480px);
    height: auto;
    display: block;
    margin: 0 auto var(--space-2);
}
.slide--cover .slide__brand-line {
    width: 80px; height: 1px;
    background: var(--rev-gold);
    margin: var(--space-3) auto var(--space-4);
}
.slide--cover .slide__doc-title {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: clamp(1.2rem, 3vw, 1.9rem);
    color: var(--rev-gold);
    margin: 0 0 var(--space-3);
}
.slide--cover .slide__doc-sub {
    font-size: 0.7rem;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--rev-cream-dim);
}
.slide--cover .slide__cover-meta {
    margin-top: var(--space-6);
    font-size: 0.66rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--rev-cream-dim);
}
@media (min-width: 600px) {
    .slide--cover .slide__brand-line { width: 120px; margin: var(--space-4) auto var(--space-5); }
    .slide--cover .slide__doc-sub { font-size: 0.78rem; letter-spacing: 0.42em; }
}

/* ============================================================================
   CHOICE SCREEN (slide 1 web) — wordmark + boutons de choix (en ligne / PDF / brochure)
   Cohabite avec .slide--cover (reserve au PDF). Tout est scope sous .slide--choice.
   ============================================================================ */
.slide--choice {
    /* Vignette doree subtile sur les bords du noir profond */
    background:
        radial-gradient(ellipse at 50% 35%,
            rgba(234, 200, 128, 0.06) 0%,
            rgba(234, 200, 128, 0) 55%),
        radial-gradient(ellipse at 50% 100%,
            rgba(234, 200, 128, 0.045) 0%,
            rgba(234, 200, 128, 0) 60%),
        var(--rev-black);
    position: relative;
    /* overflow-x clippe la vignette/transitions ; overflow-y AUTO indispensable :
       sinon les 3 boutons d'accueil sont coupés sur petits écrans (pas de scroll). */
    overflow-x: hidden;
    overflow-y: auto;
}
.slide--choice .slide__inner {
    align-items: center;
    text-align: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    max-width: 720px;
    margin: 0 auto;
    padding-top: var(--space-5);
}
.slide--choice .slide__brand-svg {
    width: clamp(220px, 60vw, 420px);
    height: auto;
    display: block;
    margin: 0 auto var(--space-3);
}
.slide--choice .slide__brand-line {
    width: 80px;
    height: 1px;
    background: var(--rev-gold);
    margin: var(--space-3) auto var(--space-4);
}
.slide--choice .slide__choice-welcome {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: clamp(1.4rem, 3.4vw, 2.1rem);
    color: var(--rev-gold);
    font-weight: 400;
    line-height: 1.2;
    margin: 0 0 var(--space-3);
}
.slide--choice .slide__choice-intro {
    font-family: var(--font-sans);
    font-size: clamp(0.95rem, 1.6vw, 1.05rem);
    color: var(--rev-cream-muted);
    line-height: 1.55;
    max-width: 460px;
    margin: 0 auto var(--space-3);
}
.slide--choice .slide__choice-note {
    font-family: var(--font-sans);
    font-size: 0.82rem;
    color: var(--rev-cream-dim);
    line-height: 1.6;
    max-width: 460px;
    margin: 0 auto var(--space-5);
}
.slide--choice .slide__choice-note strong {
    color: var(--rev-gold);
    font-weight: 600;
}
.slide--choice .slide__choice-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-3);
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
}
.slide--choice .slide__choice-btn {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none;
    font-family: var(--font-sans);
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    border-radius: 2px;
    padding: 0 var(--space-4);
    min-height: var(--touch-rec);
    width: 100%;
    transition:
        background var(--motion-fast) ease,
        color var(--motion-fast) ease,
        border-color var(--motion-fast) ease,
        transform var(--motion-fast) ease;
}
.slide--choice .slide__choice-btn--primary {
    background: var(--rev-gold);
    color: var(--rev-black);
    border: 1px solid var(--rev-gold);
    font-size: 0.86rem;
    box-shadow: 0 2px 24px rgba(234, 200, 128, 0.16);
}
.slide--choice .slide__choice-btn--primary:hover {
    background: var(--rev-gold-soft);
    border-color: var(--rev-gold-soft);
    transform: translateY(-1px);
}
.slide--choice .slide__choice-btn--secondary {
    background: transparent;
    color: var(--rev-cream);
    border: 1px solid var(--rev-line-strong);
    font-size: 0.78rem;
}
.slide--choice .slide__choice-btn--secondary:hover {
    border-color: var(--rev-gold);
    color: var(--rev-gold);
}
.slide--choice .slide__choice-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    margin-top: var(--space-3);
    font-family: var(--font-sans);
    font-size: 0.74rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--rev-cream-dim);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    padding-bottom: 2px;
    transition: color var(--motion-fast) ease, border-color var(--motion-fast) ease;
}
.slide--choice .slide__choice-link:hover {
    color: var(--rev-gold);
    border-bottom-color: var(--rev-line-strong);
}
.slide--choice .slide__choice-link-arrow {
    font-size: 0.9em;
    transition: transform var(--motion-fast) ease;
}
.slide--choice .slide__choice-link:hover .slide__choice-link-arrow {
    transform: translate(2px, -2px);
}
.slide--choice .slide__choice-btn:focus-visible,
.slide--choice .slide__choice-link:focus-visible {
    outline: 2px solid var(--rev-gold);
    outline-offset: 3px;
}

@media (min-width: 600px) {
    .slide--choice .slide__brand-line { width: 120px; margin: var(--space-4) auto var(--space-5); }
    .slide--choice .slide__choice-actions { max-width: 420px; }
    .slide--choice .slide__choice-btn--primary { font-size: 0.92rem; }
    .slide--choice .slide__choice-btn--secondary { font-size: 0.82rem; }
}
@media (prefers-reduced-motion: reduce) {
    .slide--choice .slide__choice-btn,
    .slide--choice .slide__choice-link,
    .slide--choice .slide__choice-link-arrow {
        transition: none;
    }
    .slide--choice .slide__choice-btn:hover { transform: none; }
}

/* ============================================================================
   MODAL (ex. "PDF indisponible") — overlay plein ecran, hoiste dans <body>
   ============================================================================ */
.dd-modal { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 24px; }
.dd-modal[hidden] { display: none; }
.dd-modal__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.72); }
.dd-modal__card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
    background: var(--rev-black-soft, #141414);
    border: 1px solid var(--rev-line-strong);
    border-radius: 4px;
    padding: 32px 28px;
    text-align: center;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.55);
}
.dd-modal__title { font-family: var(--font-serif); font-style: italic; color: var(--rev-gold); font-size: 1.4rem; font-weight: 400; margin: 0 0 14px; }
.dd-modal__body { color: var(--rev-cream-muted); line-height: 1.6; font-size: 0.95rem; margin: 0 0 24px; }
.dd-modal__close {
    appearance: none;
    cursor: pointer;
    min-width: 160px;
    min-height: var(--touch-rec);
    padding: 0 28px;
    background: transparent;
    color: var(--rev-cream);
    border: 1px solid var(--rev-line-strong);
    border-radius: 2px;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    transition: border-color var(--motion-fast) ease, color var(--motion-fast) ease;
}
.dd-modal__close:hover { border-color: var(--rev-gold); color: var(--rev-gold); }
body.dd-modal-open { overflow: hidden; }

/* PART DIVIDER */
.slide--divider .slide__inner {
    align-items: center;
    text-align: center;
    justify-content: center;
}
.slide--divider .slide__divider-num {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: clamp(3rem, 9vw, 7rem);
    color: var(--rev-gold);
    line-height: 1;
    margin: 0 0 var(--space-4);
    opacity: 0.85;
}
.slide--divider .slide__divider-title {
    font-family: var(--font-serif);
    font-size: var(--type-h2);
    letter-spacing: 0.06em;
    color: var(--rev-cream);
    margin: 0 0 var(--space-3);
    text-transform: uppercase;
}
.slide--divider .slide__divider-line {
    width: 60px; height: 1px;
    background: var(--rev-gold);
    margin: 0 auto var(--space-4);
}
.slide--divider .slide__divider-tag {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.05rem;
    color: var(--rev-cream-muted);
    max-width: 580px;
    line-height: 1.5;
}
@media (min-width: 600px) {
    .slide--divider .slide__divider-line { width: 80px; }
    .slide--divider .slide__divider-tag { font-size: 1.2rem; }
}

/* QUOTE */
.slide__quote {
    border-left: 1px solid var(--rev-gold);
    padding: var(--space-2) 0 var(--space-2) var(--space-4);
    margin: var(--space-4) 0;
    font-family: var(--font-serif);
    font-style: italic;
    font-size: clamp(1.15rem, 3vw, 1.5rem);
    line-height: 1.4;
    color: var(--rev-cream);
    max-width: 780px;
}
.slide__quote-author {
    display: block;
    margin-top: var(--space-3);
    font-family: var(--font-sans);
    font-style: normal;
    font-size: 0.66rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--rev-cream-dim);
}

/* VALUES (4 cards) */
.slide__values {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-3);
    margin-top: var(--space-3);
}
@media (min-width: 600px) {
    .slide__values {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-4);
    }
}
@media (min-width: 1000px) {
    .slide__values {
        grid-template-columns: repeat(4, 1fr);
    }
}

.slide__value {
    padding: var(--space-4);
    border: 1px solid var(--rev-line);
    background: rgba(245,240,235,0.018);
    border-radius: 2px;
}
.slide__value-head {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    color: var(--rev-gold);
    margin: 0 0 var(--space-3);
}
.slide__value p {
    font-size: 0.92rem;
    color: var(--rev-cream-muted);
    line-height: 1.6;
    margin: 0;
}

/* COLLECTIONS (3 colonnes - empile sur mobile) */
.slide__collections {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-3);
    margin-top: var(--space-4);
}
@media (min-width: 700px) {
    .slide__collections {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-4);
    }
}

.slide__collection {
    border: 1px solid var(--rev-line);
    padding: var(--space-4) var(--space-3);
    text-align: center;
    background: rgba(245,240,235,0.018);
}
.slide__collection-disc {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    margin: 0 auto var(--space-4);
    border: 1px solid rgba(245,240,235,0.18);
}
.slide__collection-disc--saphir   { background: var(--col-saphir);   box-shadow: inset 0 1px 3px rgba(0,0,0,0.35); }
.slide__collection-disc--rubis    { background: var(--col-rubis);    box-shadow: inset 0 1px 3px rgba(0,0,0,0.35); }
.slide__collection-disc--emeraude { background: var(--col-emeraude); box-shadow: inset 0 1px 3px rgba(0,0,0,0.35); }

.slide__collection-name {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    color: var(--rev-cream);
    margin: 0 0 var(--space-1);
    letter-spacing: 0.04em;
}
.slide__collection-tagline {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 0.9rem;
    color: var(--rev-gold);
    margin: 0 0 var(--space-3);
}
.slide__collection-trip {
    font-size: 0.78rem;
    color: var(--rev-cream-dim);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    line-height: 1.5;
}

@media (min-width: 700px) {
    .slide__collection { padding: var(--space-5) var(--space-3); }
    .slide__collection-disc { width: 64px; height: 64px; }
    .slide__collection-name { font-size: 1.5rem; }
}

/* POSITIONING PYRAMID */
.slide__pyramid {
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    gap: var(--space-2);
    margin: var(--space-5) 0;
}
.slide__pyramid-row {
    padding: var(--space-3) var(--space-4);
    border: 1px solid var(--rev-line);
    background: rgba(245,240,235,0.02);
    font-family: var(--font-serif);
    font-size: 0.95rem;
    color: var(--rev-cream-muted);
    text-align: center;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    width: 100%;
}
.slide__pyramid-row--mass    { width: 95%; }
.slide__pyramid-row--prest   { width: 78%; }
.slide__pyramid-row--niche   { width: 60%; color: var(--rev-cream); }
.slide__pyramid-row--luxury  {
    width: 42%;
    color: var(--rev-black);
    background: var(--rev-gold);
    border-color: var(--rev-gold);
    font-weight: 500;
}
@media (min-width: 600px) {
    .slide__pyramid { gap: 10px; margin: var(--space-5) 0; }
    .slide__pyramid-row { font-size: 1.05rem; letter-spacing: 0.12em; }
    .slide__pyramid-row--mass    { width: 80%; }
    .slide__pyramid-row--prest   { width: 64%; }
    .slide__pyramid-row--niche   { width: 48%; }
    .slide__pyramid-row--luxury  { width: 32%; }
}

/* KEY POINTS (chips) */
.slide__chips {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin: var(--space-4) 0;
}
.slide__chip {
    border: 1px solid var(--rev-line-strong);
    padding: 6px var(--space-3);
    font-size: var(--type-tag);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--rev-cream-muted);
    border-radius: 18px;
    background: rgba(245,240,235,0.02);
}

/* TWO-COL LAYOUT */
.slide__two-col {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-5);
    align-items: start;
    margin-top: var(--space-3);
}
@media (min-width: 700px) {
    .slide__two-col {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-6);
    }
}
.slide__col-head {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    color: var(--rev-gold);
    margin: 0 0 var(--space-3);
    padding-bottom: var(--space-2);
    border-bottom: 1px solid var(--rev-line);
}

/* NUMBERED ARGUMENTS */
.slide__numbered {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-3);
    margin-top: var(--space-4);
}
@media (min-width: 600px) {
    .slide__numbered { grid-template-columns: repeat(2, 1fr); gap: var(--space-4); }
}
@media (min-width: 1000px) {
    .slide__numbered { grid-template-columns: repeat(4, 1fr); }
}

.slide__num {
    padding: var(--space-3) var(--space-3) var(--space-3) 56px;
    position: relative;
    border-left: 1px solid var(--rev-line-strong);
}
.slide__num-tag {
    position: absolute;
    left: var(--space-3);
    top: var(--space-3);
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.5rem;
    color: var(--rev-gold);
    line-height: 1;
}
.slide__num h4 {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    color: var(--rev-cream);
    margin: 0 0 var(--space-1);
    font-weight: 400;
}
.slide__num p {
    font-size: 0.88rem;
    color: var(--rev-cream-muted);
    margin: 0;
    line-height: 1.55;
}

/* ============================================================================
   FORM SYSTEM (mobile-first stricte)
   ============================================================================ */

/* Row : 1 colonne mobile, 2 colonnes tablette+, 3 sur demande */
.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
}
@media (min-width: 600px) {
    .form-row {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-4);
        margin-bottom: var(--space-5);
    }
    .form-row--single { grid-template-columns: 1fr; }
    .form-row--three  { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
    .form-row--three { grid-template-columns: repeat(3, 1fr); }
}

.form-field {
    display: flex;
    flex-direction: column;
    min-width: 0; /* evite l overflow grid */
}

.form-field__label {
    font-family: var(--font-sans);
    font-size: var(--type-label);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--rev-gold);
    margin-bottom: 6px;
    font-weight: 300;
    line-height: 1.4;
}
/* Marqueur de champ obligatoire (classe posée par markRequired() depuis REV_DD_REQUIRED) */
.form-field.is-required .form-field__label::after {
    content: " *";
    color: var(--rev-gold);
    font-weight: 600;
}
/* Form V2 : tag « (optionnel) » sur les champs OPTIONNELS (tout le reste est obligatoire, non marqué). */
.form-field__opt {
    color: var(--rev-cream-dim);
    font-size: 0.82em;
    font-weight: 300;
    letter-spacing: 0.04em;
    text-transform: none;
}

/* ===== Pièces jointes (Lot 2) : logo (vignette) + présentation (chip), drag-and-drop ===== */
.dd-attach-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 8px; }
@media (max-width: 640px) { .dd-attach-grid { grid-template-columns: 1fr; } }
.dd-attach { border: 1px solid rgba(234, 200, 128, 0.22); border-radius: 4px; padding: 12px; background: rgba(234, 200, 128, 0.04); }
.dd-attach__head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.dd-attach__title { font-size: 0.86rem; color: var(--rev-cream, #f5f0eb); letter-spacing: 0.04em; }
.dd-attach__hint { font-size: 0.7rem; color: var(--rev-cream-dim, rgba(245, 240, 235, 0.55)); }
.dd-attach__zone { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
    min-height: 92px; padding: 12px; text-align: center; cursor: pointer;
    border: 1px dashed rgba(234, 200, 128, 0.4); border-radius: 3px; color: var(--rev-cream-dim, rgba(245, 240, 235, 0.6));
    transition: border-color 150ms ease, background 150ms ease; }
.dd-attach__zone:hover, .dd-attach__zone:focus-visible, .dd-attach__zone.is-drag {
    border-color: var(--rev-gold, #eac880); background: rgba(234, 200, 128, 0.08); color: var(--rev-cream, #f5f0eb); outline: none; }
.dd-attach__icon { font-size: 1.5rem; color: var(--rev-gold, #eac880); line-height: 1; }
.dd-attach__cta { font-size: 0.78rem; letter-spacing: 0.06em; }
.dd-attach__progress { height: 6px; border-radius: 3px; background: rgba(234, 200, 128, 0.15); overflow: hidden; margin-top: 4px; }
.dd-attach__bar { display: block; height: 100%; width: 0; background: var(--rev-gold, #eac880); transition: width 120ms ease; }
.dd-attach__result { display: flex; align-items: center; gap: 10px; }
.dd-attach__thumb { width: 56px; height: 56px; object-fit: contain; background: #fff; border-radius: 3px; padding: 4px; flex: none; }
.dd-attach__fileicon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 56px; flex: none;
    background: rgba(234, 200, 128, 0.12); border: 1px solid rgba(234, 200, 128, 0.3); border-radius: 3px;
    font-size: 0.64rem; font-weight: 600; color: var(--rev-gold, #eac880); letter-spacing: 0.04em; }
.dd-attach__meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.dd-attach__meta a { color: var(--rev-cream, #f5f0eb); font-size: 0.8rem; text-decoration: none; word-break: break-all; }
.dd-attach__meta a:hover { text-decoration: underline; }
.dd-attach__meta small { color: var(--rev-cream-dim, rgba(245, 240, 235, 0.5)); font-size: 0.68rem; }
.dd-attach__remove { flex: none; width: 26px; height: 26px; border-radius: 50%; border: 1px solid rgba(234, 200, 128, 0.3);
    background: transparent; color: var(--rev-cream-dim, rgba(245, 240, 235, 0.7)); font-size: 1.1rem; line-height: 1; cursor: pointer; }
.dd-attach__remove:hover { border-color: var(--rev-gold, #eac880); color: var(--rev-gold, #eac880); }
.form-field__label small {
    color: var(--rev-cream-dim);
    letter-spacing: 0.1em;
    font-weight: 300;
    text-transform: none;
    margin-left: 6px;
    font-size: 11px;
}

/* Inputs - 16px pour empecher zoom iOS, 44px hauteur */
.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="number"],
.form-field input[type="url"],
.form-field input[type="tel"],
.form-field input[type="date"],
.form-field textarea,
.form-field select {
    width: 100%;
    min-height: var(--touch-min);
    border: none;
    border-bottom: 1px solid var(--rev-line-strong);
    background: transparent;
    color: var(--rev-cream);
    font-family: var(--font-sans);
    font-size: var(--type-input);
    line-height: 1.4;
    padding: 8px 0 12px;
    outline: none;
    transition: border-color var(--motion-normal) ease;
    -webkit-appearance: none;
    appearance: none;
    border-radius: 0;
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
    border-color: var(--rev-gold);
}
.form-field input::placeholder,
.form-field textarea::placeholder {
    color: var(--rev-cream-dim);
    font-style: italic;
    opacity: 1;
}
.form-field input:invalid:not(:placeholder-shown) {
    border-bottom-color: var(--rev-error);
}

.form-field textarea {
    border: 1px solid var(--rev-line-strong);
    padding: 12px var(--space-3);
    min-height: 110px;
    resize: vertical;
    border-radius: 2px;
}

/* Select : appearance custom mais font 16px conserve */
.form-field select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%23eac880' stroke-width='1.5' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 4px center;
    background-size: 12px;
    padding-right: 28px;
}

/* Date input override (iOS bug) */
.form-field input[type="date"]::-webkit-date-and-time-value { text-align: left; }
.form-field input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(0.78) sepia(0.5) saturate(2) hue-rotate(0deg);
    cursor: pointer;
}

/* Le DERNIER textarea d'une slide a un margin-bottom plus grand
   pour pousser le contenu au-dessus du clavier iOS Safari */
.form-row:last-child .form-field textarea {
    margin-bottom: 0;
}
.slide.is-active .form-field textarea:last-of-type {
    /* pas appliqué globalement, juste reservé pour fix iOS */
}

/* ============================================================================
   TABLEAUX REPEATER : table sur desktop, CARDS sur mobile
   ============================================================================ */
.form-table {
    width: 100%;
    border-collapse: collapse;
    margin: var(--space-3) 0 var(--space-4);
    font-size: 0.9rem;
}
.form-table thead { display: none; } /* cache thead sur mobile (cards) */
.form-table tbody { display: block; }
.form-table tr {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-2);
    border: 1px solid var(--rev-line);
    border-left: 2px solid var(--rev-gold);
    background: rgba(245,240,235,0.02);
    padding: var(--space-3);
    margin-bottom: var(--space-3);
    border-radius: 2px;
}
.form-table td {
    display: block;
    padding: 0;
    border: none;
}
.form-table td::before {
    content: attr(data-label);
    display: block;
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--rev-gold);
    margin-bottom: 4px;
    font-weight: 300;
}
.form-table td input,
.form-table td select {
    width: 100%;
    min-height: var(--touch-min);
    border: none;
    border-bottom: 1px solid var(--rev-line-strong);
    background: transparent;
    color: var(--rev-cream);
    font-family: var(--font-sans);
    font-size: var(--type-input);
    padding: 8px 0;
    outline: none;
    border-radius: 0;
    -webkit-appearance: none;
    appearance: none;
}
.form-table td input:focus,
.form-table td select:focus {
    border-bottom-color: var(--rev-gold);
}
.form-table td.row-tools {
    display: flex;
    justify-content: flex-end;
    padding-top: var(--space-2);
}
.form-table td.row-tools::before { display: none; }

.form-table .btn-remove {
    background: transparent;
    border: 1px solid var(--rev-line);
    color: var(--rev-cream-dim);
    width: 36px; height: 36px;
    border-radius: 50%;
    cursor: pointer;
    line-height: 0;
    font-size: 1.1rem;
    transition: all var(--motion-fast) ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.form-table .btn-remove:hover,
.form-table .btn-remove:focus-visible {
    border-color: var(--rev-error);
    color: var(--rev-error);
}

.btn-add-row {
    margin-top: 6px;
    width: 100%;
    min-height: var(--touch-rec);
    padding: 0 var(--space-3);
    border: 1px dashed var(--rev-line-strong);
    background: transparent;
    color: var(--rev-cream-muted);
    font-family: var(--font-sans);
    font-size: 0.74rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all var(--motion-normal) ease;
    border-radius: 2px;
}
.btn-add-row:hover,
.btn-add-row:focus-visible {
    border-color: var(--rev-gold);
    color: var(--rev-gold);
    border-style: solid;
}

/* DESKTOP : tableaux classiques a partir de 900px */
@media (min-width: 900px) {
    .form-table thead { display: table-header-group; }
    .form-table tbody { display: table-row-group; }
    .form-table tr {
        display: table-row;
        grid-template-columns: none;
        gap: 0;
        border: none;
        background: transparent;
        padding: 0;
        margin: 0;
        border-radius: 0;
    }
    .form-table th {
        text-align: left;
        font-family: var(--font-sans);
        font-size: var(--type-tag);
        letter-spacing: 0.2em;
        text-transform: uppercase;
        color: var(--rev-gold);
        font-weight: 300;
        padding: 0 var(--space-3) var(--space-3);
        border-bottom: 1px solid var(--rev-line-strong);
    }
    .form-table td {
        display: table-cell;
        padding: var(--space-2) 6px;
        border-bottom: 1px solid var(--rev-line);
    }
    .form-table td::before { display: none; }
    .form-table td input,
    .form-table td select {
        min-height: 40px;
        padding: var(--space-2);
        font-size: 0.92rem;
        border-bottom: none;
    }
    .form-table td input:focus,
    .form-table td select:focus {
        box-shadow: inset 0 -1px 0 var(--rev-gold);
    }
    .form-table td.row-tools {
        display: table-cell;
        text-align: center;
        padding-top: var(--space-2);
    }
    .btn-add-row { width: auto; min-height: 40px; padding: 0 var(--space-4); }
}

/* ============================================================================
   COMBOBOX (select) — style sombre/or complet (retour client 2026-06-25).
   Avant : fond transparent + texte clair -> les <option> du dropdown
   s'affichaient en clair sur fond blanc systeme = illisible. Ici : box gris
   fonce + bordure or, options fond fonce + texte clair, selection or.
   ============================================================================ */
.form-field select,
.form-table td select {
    background-color: var(--rev-black-card);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%23eac880' stroke-width='1.5' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 11px;
    color: var(--rev-cream);
    border: 1px solid rgba(234, 200, 128, 0.35);
    border-radius: 3px;
    padding: 8px 30px 8px 12px;
    cursor: pointer;
}
.form-field select:hover,
.form-table td select:hover { border-color: rgba(234, 200, 128, 0.6); }
.form-field select:focus,
.form-table td select:focus { border-color: var(--rev-gold); box-shadow: none; }
.form-field select option,
.form-table td select option {
    background-color: var(--rev-black-soft);
    color: var(--rev-cream);
}
.form-field select option:checked,
.form-table td select option:checked {
    background-color: var(--rev-gold);
    color: var(--rev-black);
}

/* ============================================================================
   AUTOCOMPLETE MARQUES (slide 18) — dropdown de recherche (retour client 2026-06-25)
   Element <ul.rev-ac> hoiste dans <body>, positionne sous l'input en JS.
   ============================================================================ */
.rev-ac {
    position: absolute;
    z-index: 9999;
    margin: 0;
    padding: 4px 0;
    list-style: none;
    max-height: 264px;
    overflow-y: auto;
    background-color: var(--rev-black-soft);
    border: 1px solid rgba(234, 200, 128, 0.35);
    border-radius: 3px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
    font-size: 0.85rem;
}
.rev-ac[hidden] { display: none; }
.rev-ac li {
    padding: 7px 12px;
    color: var(--rev-cream);
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.rev-ac li.is-hi,
.rev-ac li:hover {
    background-color: var(--rev-gold);
    color: var(--rev-black);
}

/* ============================================================================
   TABLEAU PRICING (slide 24) — calcul auto Unites × Prix unitaire HT
   ============================================================================ */
/* Cellule prix unitaire (lecture seule, mise en avant or) */
.pricing-cell--price {
    font-variant-numeric: tabular-nums;
    font-weight: 500;
    color: var(--rev-gold-soft);
    letter-spacing: 0.02em;
}
.pricing-cell--dash {
    color: var(--rev-cream-dim);
    text-align: center;
    font-size: 1.1em;
}

/* Inputs readonly CA Retail + Total : affichage calcule, pas saisissable */
.form-table--pricing td input[readonly] {
    cursor: default;
    color: var(--rev-gold);
    font-variant-numeric: tabular-nums;
    background: rgba(234, 200, 128, 0.05);
}
.form-table--pricing td input[readonly]:focus {
    box-shadow: none;
    border-bottom-color: var(--rev-line-strong);
}

/* Ligne TOTAL : separation visuelle + label en or */
.pricing-total-row {
    border-top: 1px solid var(--rev-line-strong);
}
.pricing-total-row__label {
    color: var(--rev-gold);
    font-size: 0.78rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}
.form-table--pricing [data-pricing-total] {
    font-weight: 700;
    font-size: 1.02rem !important;
    color: var(--rev-gold-soft) !important;
}

/* Variante DETAILLEE : 6 colonnes (Code / Produit / Prix public HT / Prix ex-works / Unités / CA) */
.form-table--pricing-detailed thead th:nth-child(1),
.form-table--pricing-detailed tbody td.pricing-cell--sku {
    width: 13ch;
    white-space: nowrap;
}
.form-table--pricing-detailed thead th:nth-child(2) { min-width: 16ch; }
.form-table--pricing-detailed thead th:nth-child(3),
.form-table--pricing-detailed tbody td.pricing-cell--price { width: 10ch; }
.form-table--pricing-detailed thead th:nth-child(4),
.form-table--pricing-detailed tbody td.pricing-cell--exworks { width: 10ch; }
.form-table--pricing-detailed thead th:nth-child(5) { width: 9ch; }
.form-table--pricing-detailed thead th:nth-child(6) { width: 12ch; }

/* Cellule prix ex-works (calcule = prix public HT / coefficient, en avant or) */
.pricing-cell--exworks {
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    color: var(--rev-gold);
    letter-spacing: 0.02em;
    white-space: nowrap;
}

/* Bandeau coefficient ex-works repris de la structure de prix */
.pricing-coef-banner {
    display: flex;
    align-items: baseline;
    gap: 14px;
    flex-wrap: wrap;
    margin: 2px 0 18px;
    padding: 12px 18px;
    border: 1px solid var(--rev-line-strong);
    border-radius: 4px;
    background: rgba(234, 200, 128, 0.06);
}
.pricing-coef-banner__label {
    font-size: 0.68rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--rev-gold);
}
.pricing-coef-banner__value {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    line-height: 1;
    color: var(--rev-gold-soft, #f0d9a0);
    font-variant-numeric: tabular-nums;
}
.pricing-coef-banner__hint { font-size: 0.74rem; color: var(--rev-cream-dim); }
.pricing-coef-banner:not(.is-missing) .pricing-coef-banner__hint { display: none; }
.pricing-coef-banner.is-missing {
    background: rgba(224, 160, 160, 0.06);
    border-color: rgba(224, 160, 160, 0.4);
}
.pricing-coef-banner.is-missing .pricing-coef-banner__label { color: #e0a0a0; }
.pricing-coef-banner.is-missing .pricing-coef-banner__value { color: var(--rev-cream-dim); }

/* ============================================================================
   BON DE COMMANDE EXCEL (slide 24) — barre d'actions + modale d'import
   ============================================================================ */
.order-xlsx {
    margin: 4px 0 22px;
    padding: 18px 20px;
    border: 1px solid var(--rev-line-strong);
    border-radius: 4px;
    background: rgba(245, 240, 235, 0.02);
}
.order-xlsx__head {
    font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase;
    color: var(--rev-gold); margin-bottom: 12px;
}
.order-xlsx__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.order-xlsx__btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 18px; font-size: 0.85rem; letter-spacing: 0.03em;
    color: var(--rev-cream); background: transparent;
    border: 1px solid var(--rev-line-strong); border-radius: 3px; cursor: pointer;
    transition: border-color var(--motion-fast) ease, color var(--motion-fast) ease, background var(--motion-fast) ease;
}
.order-xlsx__btn:hover:not(:disabled) { border-color: var(--rev-gold); color: var(--rev-gold); }
.order-xlsx__btn--primary { border-color: var(--rev-gold); color: var(--rev-gold); }
.order-xlsx__btn--primary:hover:not(:disabled) { background: rgba(234, 200, 128, 0.08); }
.order-xlsx__btn:disabled { opacity: 0.4; cursor: not-allowed; }
.order-xlsx__ico { width: 1em; height: 1em; }
.order-xlsx__gate { color: #e0a0a0 !important; margin-top: 10px; }
.order-xlsx__hint { margin-top: 8px; }

.ox-modal {
    position: fixed; inset: 0; z-index: 3000;
    display: flex; align-items: center; justify-content: center;
    padding: 20px; background: rgba(10, 8, 6, 0.72);
    opacity: 0; transition: opacity var(--motion-fast) ease;
}
.ox-modal.is-open { opacity: 1; }
.ox-modal__box {
    position: relative; width: min(640px, 100%); max-height: 88vh; overflow: auto;
    background: #161310; border: 1px solid var(--rev-line-strong); border-radius: 6px;
    padding: 28px 30px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.ox-modal__close {
    position: absolute; top: 12px; right: 16px; background: none; border: none;
    color: var(--rev-cream-dim); font-size: 1.6rem; line-height: 1; cursor: pointer;
}
.ox-modal__close:hover { color: var(--rev-gold); }
.ox-modal__title { font-family: var(--font-serif); font-size: 1.3rem; color: var(--rev-cream); margin: 0 0 10px; }
.ox-modal__intro { color: var(--rev-cream-muted); font-size: 0.9rem; margin-bottom: 16px; }
.ox-modal__modes { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.ox-modal__modes label { display: flex; align-items: center; gap: 8px; color: var(--rev-cream); font-size: 0.9rem; cursor: pointer; }
.ox-modal__table { margin-bottom: 16px; border: 1px solid var(--rev-line); border-radius: 4px; overflow: hidden; }
.ox-modal__table table { width: 100%; border-collapse: collapse; font-size: 0.84rem; }
.ox-modal__table th, .ox-modal__table td { padding: 8px 10px; text-align: left; border-bottom: 1px solid var(--rev-line); }
.ox-modal__table tr:last-child td { border-bottom: none; }
.ox-modal__table th { color: var(--rev-gold); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; }
.ox-modal__table td { color: var(--rev-cream); font-variant-numeric: tabular-nums; }
.ox-row-choice { display: flex; gap: 12px; }
.ox-row-choice label { display: inline-flex; align-items: center; gap: 4px; color: var(--rev-cream-muted); font-size: 0.8rem; cursor: pointer; }
.ox-modal__news { margin-bottom: 16px; }
.ox-modal__news p { color: var(--rev-gold); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; margin: 0 0 6px; }
.ox-modal__news ul { margin: 0; padding-left: 18px; color: var(--rev-cream-muted); font-size: 0.86rem; }
.ox-modal__actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 8px; }
.ox-btn { padding: 9px 20px; font-size: 0.85rem; border: 1px solid var(--rev-line-strong); border-radius: 3px; background: transparent; color: var(--rev-cream); cursor: pointer; }
.ox-btn:hover { border-color: var(--rev-gold); color: var(--rev-gold); }
.ox-btn--primary { border-color: var(--rev-gold); color: var(--rev-gold); background: rgba(234, 200, 128, 0.1); }
.ox-btn--primary:hover { background: rgba(234, 200, 128, 0.18); }

/* ============================================================================
   REMPLISSAGE AUTO PAR N° DE TVA (slide 3) — carte + modale résultats
   ============================================================================ */
.vat-lookup {
    margin: 0 0 22px;
    padding: 16px 18px;
    border: 1px solid var(--rev-gold);
    border-radius: 4px;
    background: rgba(234, 200, 128, 0.06);
}
.vat-lookup__label {
    font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase;
    color: var(--rev-gold); margin-bottom: 10px;
}
.vat-lookup__row { display: flex; gap: 10px; flex-wrap: wrap; align-items: stretch; }
.vat-lookup__row input[data-vat-input] {
    flex: 1 1 240px; min-width: 0;
    background: rgba(0, 0, 0, 0.18); border: 1px solid var(--rev-line-strong);
    border-radius: 3px; padding: 10px 12px; color: var(--rev-cream);
    font-size: 0.92rem; letter-spacing: 0.04em;
}
.vat-lookup__row input[data-vat-input]:focus { outline: none; border-color: var(--rev-gold); }
.vat-lookup__btn {
    flex: 0 0 auto; padding: 10px 22px; font-size: 0.85rem; letter-spacing: 0.04em;
    color: var(--rev-gold); background: transparent; border: 1px solid var(--rev-gold);
    border-radius: 3px; cursor: pointer; transition: background var(--motion-fast) ease;
}
.vat-lookup__btn:hover:not(:disabled) { background: rgba(234, 200, 128, 0.12); }
.vat-lookup__btn:disabled { opacity: 0.5; cursor: default; }
.vat-lookup__hint { margin-top: 8px; }

.vat-modal__list { display: flex; flex-direction: column; margin-bottom: 18px; }
.vat-modal__item {
    display: grid; grid-template-columns: auto 13ch 1fr; align-items: baseline; gap: 12px;
    padding: 10px 4px; border-bottom: 1px solid var(--rev-line); cursor: pointer;
}
.vat-modal__item:last-child { border-bottom: none; }
.vat-modal__flabel { color: var(--rev-gold); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; }
.vat-modal__fval { color: var(--rev-cream); font-size: 0.9rem; word-break: break-word; }
@media (max-width: 560px) {
    .vat-modal__item { grid-template-columns: auto 1fr; }
    .vat-modal__flabel { grid-column: 2; }
    .vat-modal__fval { grid-column: 2; }
}

.pricing-cell--sku code {
    font-family: 'Courier New', monospace;
    font-size: 0.74rem;
    color: var(--rev-gold-dim, #b89a5e);
    letter-spacing: 0.02em;
}
.pricing-cell--name {
    color: var(--rev-cream);
}
.pricing-cell__ean {
    display: block;
    margin-top: 3px;
    font-family: var(--font-sans);
    font-size: 0.66rem;
    letter-spacing: 0.04em;
    color: var(--rev-cream-dim);
}
.pricing-product-link {
    color: var(--rev-cream);
    text-decoration: none;
    border-bottom: 1px solid var(--rev-line-strong);
    padding-bottom: 1px;
    transition: color var(--motion-fast) ease, border-color var(--motion-fast) ease;
}
.pricing-product-link:hover { color: var(--rev-gold); border-bottom-color: var(--rev-gold); }
.pricing-product-link__arrow { font-size: 0.85em; color: var(--rev-gold); margin-left: 2px; }

/* ============================================================================
   PRICE STRUCTURE (slide 24B) — saisie % + montants calcules + coefficient
   ============================================================================ */
.form-table--ps { table-layout: fixed; }
.form-table--ps th.ps-col-pct,
.form-table--ps td.ps-col-pct { width: 6.5em; text-align: center; }
.form-table--ps th.ps-col-amount,
.form-table--ps td.ps-col-amount { width: 9em; text-align: right; }
.form-table--ps .ps-amount {
    font-variant-numeric: tabular-nums;
    color: var(--rev-cream-muted);
    white-space: nowrap;
}
.form-table--ps .ps-input { display: inline-flex; align-items: center; gap: 2px; }
.form-table--ps .ps-input input {
    width: 4em;
    text-align: right;
    -moz-appearance: textfield;
}
.form-table--ps .ps-input input::-webkit-outer-spin-button,
.form-table--ps .ps-input input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.form-table--ps .ps-input__sign { color: var(--rev-cream-dim); font-size: 0.85em; }
.form-table--ps .ps-row--ref td,
.form-table--ps .ps-row--subtotal td { background: rgba(234, 200, 128, 0.05); }
.form-table--ps .ps-row--subtotal td:first-child,
.form-table--ps .ps-row--total td:first-child,
.form-table--ps .ps-row--export td:first-child { font-weight: 600; color: var(--rev-cream); }
.form-table--ps .ps-row--total td { background: rgba(234, 200, 128, 0.10); }
.form-table--ps .ps-row--total .ps-amount { color: var(--rev-gold-soft, #f0d9a0); font-weight: 600; }
.form-table--ps .ps-row--export td { background: rgba(234, 200, 128, 0.16); }
.form-table--ps .ps-row--export .ps-amount { color: var(--rev-gold); font-weight: 600; }
.form-table--ps-invalid .ps-row--export .ps-amount { color: #e0a0a0; }
.ps-coefficient {
    margin: 24px auto 10px;
    max-width: 420px;
    text-align: center;
    border: 1px solid var(--rev-line-strong);
    border-radius: 4px;
    padding: 20px 24px;
    background: rgba(234, 200, 128, 0.06);
}
.ps-coefficient__label {
    font-size: 0.7rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--rev-gold);
    margin-bottom: 6px;
}
.ps-coefficient__value {
    font-family: var(--font-serif);
    font-size: clamp(2.2rem, 7vw, 3rem);
    line-height: 1;
    color: var(--rev-gold-soft, #f0d9a0);
}
.ps-coefficient__hint { font-size: 0.72rem; color: var(--rev-cream-dim); margin-top: 8px; }
.ps-warning { color: #e0a0a0 !important; }
/* PS : garder un vrai tableau compact (pas le mode "cartes" mobile des form-table) */
.form-table--ps thead { display: table-header-group; }
.form-table--ps tbody { display: table-row-group; }
.form-table--ps tr { display: table-row; }
.form-table--ps th,
.form-table--ps td { display: table-cell; }
.form-table--ps td::before { display: none; }
@media (max-width: 560px) {
    .form-table--ps { font-size: 0.82rem; }
    .form-table--ps th.ps-col-pct,
    .form-table--ps td.ps-col-pct { width: 4.6em; }
    .form-table--ps th.ps-col-amount,
    .form-table--ps td.ps-col-amount { width: 7.2em; }
    .form-table--ps .ps-input input { width: 3.1em; }
    .form-table--ps th, .form-table--ps td { padding-left: 6px; padding-right: 6px; }
}

/* En-tete de categorie (rang en travers du tableau) */
.pricing-cat-header td {
    background: rgba(234, 200, 128, 0.06);
    padding: 10px var(--space-3) !important;
    border-bottom: 1px solid var(--rev-line) !important;
    border-top: 1px solid var(--rev-line);
}
.pricing-cat-header__label {
    color: var(--rev-gold);
    font-size: 0.7rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    font-weight: 500;
}
.pricing-cat-header__count {
    color: var(--rev-cream-dim);
    font-size: 0.66rem;
    letter-spacing: 0.16em;
    margin-left: 12px;
    padding: 2px 8px;
    border: 1px solid var(--rev-line);
    border-radius: 10px;
}

/* Mobile : ajustement du rendu en cards */
@media (max-width: 899px) {
    .pricing-cell--price::before { content: "Prix public HT"; }
    .pricing-cell--exworks::before { content: "Prix ex-works HT"; }
    .pricing-cell--dash::before  { content: "CA Retail (détail)"; }
    .pricing-total-row { border-top: none; background: rgba(234, 200, 128, 0.04); }
    .pricing-total-row__label { font-size: 0.86rem; padding-bottom: 8px; }

    /* Variante detaillee mobile : cards plus tassees, labels en clair */
    .form-table--pricing-detailed .pricing-cell--sku::before  { content: "Code"; }
    .form-table--pricing-detailed .pricing-cell--name::before { content: "Produit"; }
    .form-table--pricing-detailed tr[data-pricing-row] {
        padding: var(--space-2) var(--space-3);
        margin-bottom: 8px;
    }
    .pricing-cat-header { display: block; margin-top: 16px; }
    .pricing-cat-header td { display: block; padding: 8px var(--space-3) !important; }
}

@media (min-width: 900px) {
    /* Centrage prix unitaire + total + col Unites */
    .form-table--pricing td.pricing-cell--price,
    .form-table--pricing td.pricing-cell--exworks,
    .form-table--pricing td.pricing-cell--dash { text-align: center; vertical-align: middle; }
    /* La ligne total occupe toute la largeur des 3 premieres colonnes */
    .pricing-total-row__label {
        text-align: right;
        padding-right: var(--space-3);
        border-bottom: none;
    }
    .pricing-total-row td {
        padding-top: var(--space-3);
        border-bottom: none;
    }
}

.field-hint {
    font-size: 0.78rem;
    color: var(--rev-cream-dim);
    font-style: italic;
    margin-top: var(--space-2);
    line-height: 1.55;
}

/* ============================================================================
   CHECKBOXES (touch-friendly)
   ============================================================================ */
.checkbox-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-2);
    margin: var(--space-3) 0 var(--space-4);
}
@media (min-width: 600px) {
    .checkbox-row { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
    .checkbox-row { grid-template-columns: repeat(3, 1fr); }
}

.checkbox-row label {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-3);
    border: 1px solid var(--rev-line);
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--rev-cream-muted);
    transition: border-color var(--motion-normal) ease,
                background var(--motion-normal) ease,
                color var(--motion-normal) ease;
    border-radius: 2px;
    min-height: var(--touch-rec);
}
.checkbox-row label:hover { border-color: var(--rev-gold-dim); }
.checkbox-row label:has(input:checked) {
    border-color: var(--rev-gold);
    background: rgba(234,200,128,0.06);
    color: var(--rev-cream);
}
.checkbox-row input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--rev-gold);
    flex-shrink: 0;
}

/* ============================================================================
   INFO BLOCK (texte informatif sans saisie)
   ============================================================================ */
.info-block {
    border: 1px solid var(--rev-line);
    padding: var(--space-4);
    background: rgba(234,200,128,0.04);
    border-radius: 2px;
    margin: var(--space-3) 0;
}
.info-block h3 {
    font-family: var(--font-serif);
    color: var(--rev-gold);
    margin: 0 0 var(--space-3);
    font-weight: 400;
    font-size: 1.25rem;
}
.info-block ul {
    list-style: none;
    padding: 0;
    margin: 0;
    columns: 1;
    column-gap: var(--space-5);
}
@media (min-width: 700px) {
    .info-block { padding: var(--space-5) var(--space-5); }
    .info-block h3 { font-size: 1.4rem; }
    .info-block ul { columns: 2; }
}
.info-block ul li {
    position: relative;
    padding-left: var(--space-4);
    margin-bottom: 10px;
    color: var(--rev-cream-muted);
    break-inside: avoid;
    line-height: 1.55;
}
.info-block ul li::before {
    content: '\2022';
    position: absolute;
    left: 0;
    color: var(--rev-gold);
}

/* ============================================================================
   STATUT DE SLIDE (badge "rempli / partiel / vide")
   ============================================================================ */
.slide__status {
    position: absolute;
    top: var(--space-4);
    right: var(--space-3);
    font-size: 0.66rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--rev-cream-dim);
    display: flex;
    align-items: center;
    gap: var(--space-2);
    z-index: 5;
}
.slide__status::before {
    content: '';
    width: 8px; height: 8px;
    border-radius: 50%;
    border: 1px solid var(--rev-cream-dim);
}
.slide__status.is-partial::before { background: var(--rev-gold); border-color: var(--rev-gold); }
.slide__status.is-complete { color: var(--rev-gold); }
.slide__status.is-complete::before { background: var(--rev-gold); border-color: var(--rev-gold); }
@media (min-width: 600px) {
    .slide__status { right: var(--space-4); font-size: 0.7rem; letter-spacing: 0.22em; }
}

/* ============================================================================
   TABLE OF CONTENTS - drawer fullscreen mobile / side panel desktop
   ============================================================================ */
.toc {
    position: fixed;
    top: 0; bottom: 0;
    right: -100vw;
    width: 100vw;
    background: rgba(10,10,10,0.98);
    border-left: 1px solid var(--rev-line-strong);
    z-index: var(--z-toc);
    overflow-y: auto;
    transition: right var(--motion-slow) ease;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    -webkit-overflow-scrolling: touch;
}
.toc.is-open { right: 0; }
@media (min-width: 600px) {
    .toc { width: 360px; right: -360px; max-width: 92vw; }
}
@media (min-width: 900px) {
    .toc { width: 420px; right: -420px; }
}

.toc__head {
    position: sticky;
    top: 0;
    padding: var(--space-4);
    border-bottom: 1px solid var(--rev-line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(10,10,10,0.98);
    z-index: 2;
}
.toc__title {
    font-family: var(--font-serif);
    font-size: 1rem;
    color: var(--rev-gold);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin: 0;
    font-weight: 400;
}
.toc__close {
    background: transparent;
    border: 1px solid var(--rev-line-strong);
    color: var(--rev-cream);
    width: 36px; height: 36px;
    border-radius: 50%;
    cursor: pointer;
    line-height: 0;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.toc__close:hover,
.toc__close:focus-visible {
    background: var(--rev-gold);
    color: var(--rev-black);
    border-color: var(--rev-gold);
}

.toc__list { padding: var(--space-2) 0; }

.toc__group-head {
    padding: var(--space-4) var(--space-4) var(--space-2);
    font-family: var(--font-serif);
    color: var(--rev-gold);
    font-size: 0.72rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
}
.toc__item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: 12px var(--space-4);
    cursor: pointer;
    color: var(--rev-cream-muted);
    font-size: 0.9rem;
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
    border-left: 2px solid transparent;
    transition: background var(--motion-fast) ease,
                color var(--motion-fast) ease,
                border-color var(--motion-fast) ease;
    font-family: var(--font-sans);
    min-height: var(--touch-min);
    line-height: 1.4;
}
.toc__item:hover { color: var(--rev-cream); background: rgba(234,200,128,0.04); }
.toc__item.is-current {
    color: var(--rev-gold);
    border-left-color: var(--rev-gold);
    background: rgba(234,200,128,0.06);
}
.toc__num {
    font-family: var(--font-serif);
    font-style: italic;
    color: var(--rev-gold);
    min-width: 28px;
    font-size: 0.95rem;
    flex-shrink: 0;
}
.toc__dot {
    margin-left: auto;
    width: 7px; height: 7px;
    border-radius: 50%;
    border: 1px solid var(--rev-cream-dim);
    flex-shrink: 0;
}
.toc__item.is-filled .toc__dot { background: var(--rev-gold); border-color: var(--rev-gold); }

.toc-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: var(--z-toc-back);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--motion-slow) ease;
}
.toc-backdrop.is-open { opacity: 1; pointer-events: auto; }

/* ============================================================================
   COMPLETION BANNER (review slide)
   ============================================================================ */
.deck-pct-banner {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-3);
    padding: var(--space-4);
    margin: var(--space-4) 0 var(--space-5);
    background: rgba(234,200,128,0.06);
    border: 1px solid var(--rev-gold-dim);
    border-radius: 2px;
    text-align: center;
}
@media (min-width: 600px) {
    .deck-pct-banner {
        grid-template-columns: auto 1fr auto;
        align-items: center;
        gap: var(--space-4);
        text-align: left;
    }
}

.deck-pct-banner__label {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--rev-gold);
}
.deck-pct-banner__bar {
    height: 4px;
    background: rgba(234,200,128,0.12);
    position: relative;
    overflow: hidden;
    border-radius: 4px;
}
.deck-pct-banner__bar span {
    position: absolute;
    inset: 0 auto 0 0;
    width: 0%;
    background: linear-gradient(to right, var(--rev-gold-dim), var(--rev-gold));
    transition: width 600ms ease;
}
.deck-pct-banner__num {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    color: var(--rev-gold);
    text-align: center;
    line-height: 1;
}
@media (min-width: 600px) {
    .deck-pct-banner__num { min-width: 70px; text-align: right; }
}

/* ============================================================================
   REVIEW BLOCK (recap pre-signature)
   ============================================================================ */
.review-block {
    border: 1px solid var(--rev-line);
    border-left: 2px solid var(--rev-gold);
    padding: var(--space-3);
    margin-bottom: var(--space-3);
    background: rgba(245,240,235,0.02);
    border-radius: 2px;
}
.review-block h4 {
    font-family: var(--font-serif);
    color: var(--rev-gold);
    margin: 0 0 var(--space-3);
    font-weight: 400;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
}
.review-block dl {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    margin: 0;
    font-size: 0.9rem;
}
.review-block dt {
    color: var(--rev-cream-dim);
    font-size: 0.74rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.review-block dd {
    color: var(--rev-cream);
    margin: 0;
    white-space: pre-wrap;
    word-wrap: break-word;
}
.review-block dd.is-empty { color: var(--rev-cream-dim); font-style: italic; }
@media (min-width: 700px) {
    .review-block { padding: var(--space-4); }
    .review-block dl {
        display: grid;
        grid-template-columns: 240px 1fr;
        gap: var(--space-2) var(--space-4);
    }
    .review-block h4 { font-size: 1rem; letter-spacing: 0.18em; }
}

/* ============================================================================
   SIGNATURE FINALE
   ============================================================================ */
.signature-final {
    margin-top: var(--space-5);
    padding: var(--space-4);
    background: rgba(234,200,128,0.07);
    border: 1px solid var(--rev-gold-dim);
    border-radius: 2px;
}
.signature-final h3 {
    font-family: var(--font-serif);
    color: var(--rev-gold);
    margin: 0 0 var(--space-3);
    font-size: 1.3rem;
    font-weight: 400;
}
@media (min-width: 600px) {
    .signature-final { padding: var(--space-5); }
    .signature-final h3 { font-size: 1.4rem; }
}

/* Champ signature : font cursive Vladimir si dispo */
.signature-field input[type="text"] {
    font-family: var(--font-script);
    font-size: 1.6rem;
    color: var(--rev-gold);
    border-bottom: 1px solid var(--rev-gold);
    padding: 12px 0 14px;
    min-height: 50px;
    text-align: left;
}
.signature-field input[type="text"]::placeholder {
    font-family: var(--font-sans);
    font-size: 1rem;
    color: var(--rev-cream-dim);
    font-style: italic;
}

/* CTA principale "Soumettre mon dossier" - presente UNIQUEMENT sur le slide signature */
.signature-cta {
    margin-top: var(--space-5);
    width: 100%;
    min-height: 60px;
    padding: var(--space-3) var(--space-4);
    background: var(--rev-gold);
    color: var(--rev-black);
    border: 1px solid var(--rev-gold);
    border-radius: 2px;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-weight: 500;
    cursor: pointer;
    transition: background var(--motion-normal) ease,
                transform var(--motion-fast) ease;
}
.signature-cta:hover,
.signature-cta:focus-visible {
    background: var(--rev-gold-soft);
}
.signature-cta:active { transform: scale(0.98); }
.signature-cta:disabled {
    background: rgba(234,200,128,0.18);
    color: var(--rev-cream-dim);
    border-color: var(--rev-line-strong);
    cursor: not-allowed;
}
@media (min-width: 600px) {
    .signature-cta {
        font-size: 0.9rem;
        letter-spacing: 0.24em;
        min-height: 64px;
    }
}

/* ============================================================================
   TOAST
   ============================================================================ */
.toast {
    position: fixed;
    bottom: calc(var(--bar-bottom-h) + var(--space-4));
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--rev-gold);
    color: var(--rev-black);
    padding: 12px var(--space-4);
    font-family: var(--font-sans);
    font-size: 0.78rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    z-index: var(--z-toast);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--motion-slow) ease,
                transform var(--motion-slow) ease;
    border-radius: 2px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.55);
    max-width: calc(100vw - var(--space-5));
    text-align: center;
    line-height: 1.4;
}
.toast.is-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ============================================================================
   PRINT STYLESHEET (export PDF cote admin uniquement)
   ============================================================================ */
@media print {
    html, body {
        background: #fff;
        color: #000;
        overflow: visible;
        font-size: 11pt;
        line-height: 1.45;
    }
    .deck__top, .deck__bottom, .toc, .toc-backdrop, .toast { display: none !important; }
    .slides { position: static; }
    .slide {
        position: static !important;
        opacity: 1 !important;
        transform: none !important;
        page-break-after: always;
        padding: 36pt 32pt;
        overflow: visible;
        background: #fff;
        color: #000;
        pointer-events: auto;
        min-height: auto;
    }
    .slide:last-child { page-break-after: avoid; }
    .slide__inner { min-height: 0; display: block; }
    .slide__title, .slide__brandmark, .slide__divider-num, .slide__divider-title,
    .slide__collection-name, .slide__value-head, .slide__col-head, .info-block h3 {
        color: #000;
    }
    .slide__chapter, .slide__subtitle, .slide__doc-title, .slide__doc-sub,
    .slide__cover-meta, .slide__divider-tag, .slide__quote, .slide__quote-author,
    .slide__lead, .slide__body p, .slide__body ul li, .slide__collection-tagline,
    .slide__collection-trip, .slide__chip, .slide__num-tag, .slide__num h4,
    .slide__num p, .form-field__label, .field-hint, .info-block ul li,
    .review-block dt, .review-block dd {
        color: #222;
    }
    .form-field input, .form-field textarea, .form-field select,
    .form-table td input, .form-table td select {
        color: #000;
        border-color: #888;
        background: transparent;
    }
    .form-table th { color: #000; border-color: #888; }
    .slide__chapter::before, .slide__quote, .slide__num,
    .form-field input, .form-field textarea, .form-field select,
    .slide__value, .slide__collection, .info-block, .review-block,
    .slide__pyramid-row, .form-table th, .form-table td {
        border-color: #888;
    }
    .slide__brand-line, .slide__divider-line, .slide__chapter::before { background: #444; }
    .info-block, .signature-final, .review-block { background: #fafafa; border-color: #999; }
    .slide__pyramid-row--luxury { background: #ddd; color: #000; }
    .btn-add-row, .form-table .btn-remove, .slide__status { display: none; }
    a { color: #000; text-decoration: underline; }
}

/* ============================================================================
   ICONES FontAwesome inline (helper rev_icon) — SVG a la demande, herite color
   ============================================================================ */
.rev-fa-icon { display: inline-block; width: 1em; height: 1em; vertical-align: -0.125em; flex: 0 0 auto; }
.dd-attach__icon .rev-fa-icon { width: 1.6em; height: 1.6em; vertical-align: middle; }
.btn-remove .rev-fa-icon { width: 0.9em; height: 0.9em; vertical-align: middle; }
.btn-add-row .rev-fa-icon,
.deck__tool-btn .rev-fa-icon { width: 0.95em; height: 0.95em; vertical-align: -0.1em; margin-right: 0.45em; }
.toc__close .rev-fa-icon { width: 1em; height: 1em; vertical-align: middle; }
.review-block__edit-icon .rev-fa-icon { width: 0.9em; height: 0.9em; vertical-align: -0.08em; }
.dd-attach__remove .rev-fa-icon { width: 0.85em; height: 0.85em; vertical-align: middle; }
