/**
 * Expo — collecte stand, palette alignée site principal
 * (#5D8467 #442210 #70D080 — #70D08 complété #C3B09D #C6C6C4)
 */
:root {
    --font-display: 'Cormorant Garamond', 'Georgia', serif;
    --font-ui: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --brand-sage: #5d8467;
    --brand-brown: #442210;
    --brand-mint: #70d080;
    --brand-sand: #c3b09d;
    --brand-gray: #c6c6c4;

    --primary-50: #eef4f0;
    --primary-100: #dce9df;
    --primary-200: #bcd4c2;
    --primary-300: #9aba9f;
    --primary-500: #5d8467;
    --primary-600: #4e7358;
    --primary-700: #3f5f48;
    --primary-800: #344c3c;

    --accent-gold: #c3b09d;
    --accent-gold-soft: #dcd2c6;
    --accent-peach: #70d080;
    --accent-plum: #442210;
    --accent-mint: #70d080;

    --neutral-50: #faf9f7;
    --neutral-100: #f3f1ed;
    --neutral-200: #e8e4de;
    --neutral-300: #d4ccc3;
    --neutral-500: #8a8278;
    --neutral-600: #6b6158;
    --neutral-700: #574d44;
    --neutral-800: #442210;
    --neutral-900: #2a1509;

    --success-500: #5d8467;
    --error-500: #dc2626;
    --radius-xl: 1rem;
    --radius-2xl: 1.35rem;
    --shadow-lg: 0 12px 28px -8px rgba(68, 34, 16, 0.1), 0 4px 12px -4px rgba(68, 34, 16, 0.06);
    --shadow-card: 0 8px 32px rgba(68, 34, 16, 0.06), 0 2px 8px rgba(68, 34, 16, 0.04);
    --safe-bottom: env(safe-area-inset-bottom, 0);
}

* {
    box-sizing: border-box;
}

html {
    -webkit-tap-highlight-color: transparent;
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
}

body.expo-body {
    margin: 0;
    width: 100%;
    max-width: 100%;
    min-height: 100dvh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    font-family: var(--font-ui);
    background: linear-gradient(
        165deg,
        #faf9f7 0%,
        #f3f1ed 22%,
        #eef4f0 48%,
        #f5f3f0 72%,
        #f8faf8 100%
    );
    color: var(--neutral-800);
    font-size: 1.05rem;
    padding-bottom: 0;
    overflow-x: hidden;
}

.expo-main {
    flex: 1 1 auto;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

/* Pied de page pleine largeur, ancré en bas de la vue */
.expo-footer {
    flex-shrink: 0;
    width: 100%;
    box-sizing: border-box;
    border-top: 1px solid rgba(195, 176, 157, 0.55);
    background: linear-gradient(180deg, rgba(250, 249, 247, 0.98) 0%, #eef4f0 55%, #e8e4de 100%);
    padding: 0.85rem clamp(0.75rem, 3vw, 2rem);
    padding-bottom: calc(0.85rem + var(--safe-bottom));
}

.expo-footer-inner {
    width: 100%;
    max-width: none;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem 1.5rem;
    text-align: center;
    font-size: 0.8rem;
    color: var(--neutral-600);
}

.expo-footer-line {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 600;
    color: var(--neutral-700);
}

.expo-footer-line .bi {
    color: var(--primary-600);
    font-size: 0.95rem;
    filter: drop-shadow(0 1px 0 rgba(201, 162, 77, 0.4));
}

.expo-footer-meta {
    font-size: 0.75rem;
    color: var(--neutral-500);
}

.expo-topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    flex-shrink: 0;
    width: 100%;
    box-sizing: border-box;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.97) 0%, rgba(250, 249, 247, 0.96) 100%);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(195, 176, 157, 0.55);
    box-shadow: 0 4px 20px rgba(68, 34, 16, 0.06);
    padding: 0.75rem clamp(0.75rem, 2.5vw, 1.75rem);
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 0.75rem;
}

.expo-topbar-datetime {
    grid-column: 1;
    justify-self: start;
    min-width: 0;
    max-width: 100%;
    text-align: left;
    line-height: 1.2;
}

.expo-topbar-datetime time {
    display: block;
}

.expo-topbar-date {
    display: block;
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: capitalize;
    color: var(--neutral-500);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: min(200px, 32vw);
}

.expo-topbar-clock {
    display: block;
    margin-top: 0.12rem;
    font-size: clamp(0.78rem, 2.1vw, 0.95rem);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.03em;
    color: var(--accent-plum);
    white-space: nowrap;
}

.expo-topbar-actions {
    grid-column: 3;
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Bloc étape + barre (header) — centré, Hub à droite */
.expo-progress-wrap {
    grid-column: 2;
    justify-self: center;
    min-width: 0;
    width: min(280px, 42vw);
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 0.3rem;
}

@media (max-width: 420px) {
    .expo-progress-wrap {
        width: min(200px, 72vw);
    }
}

.expo-step-label {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--accent-plum);
    text-align: center;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (min-width: 480px) {
    .expo-step-label {
        font-size: 0.75rem;
    }
}

.expo-progress {
    width: 100%;
    height: 8px;
    background: linear-gradient(90deg, var(--primary-100), var(--neutral-200));
    border-radius: 99px;
    overflow: hidden;
    box-shadow: inset 0 1px 2px rgba(68, 34, 16, 0.08);
}

.expo-progress > span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--primary-600), var(--accent-peach), var(--accent-gold));
    border-radius: 99px;
    transition: width 0.4s cubic-bezier(0.33, 1, 0.68, 1);
    box-shadow: 0 0 12px rgba(93, 132, 103, 0.35);
}

.expo-error-bar {
    margin: 0;
    padding: 0.65rem 1rem;
    background: linear-gradient(90deg, #fef2f2, #ffedd5);
    border-bottom: 1px solid #fecaca;
    width: 100%;
}

/* Étapes wizard : pleine largeur viewport, marges latérales fluides */
.expo-wrap {
    width: 100%;
    max-width: none;
    margin: 0;
    box-sizing: border-box;
    padding: clamp(0.75rem, 2vw, 1.25rem) clamp(0.75rem, 3vw, 2.5rem) clamp(1.5rem, 3vw, 2.75rem);
}

/* Sur l’accueil, le conteneur des autres étapes est vide visuellement : on le retire du flux
   pour que la zone welcome puisse occuper toute la hauteur jusqu’au footer */
body.expo-welcome-active .expo-wrap {
    display: none;
}

@media (min-width: 768px) {
    body.expo-body {
        font-size: 1.1rem;
    }
}

/* ——— Accueil pleine largeur ——— */
.expo-step--welcome {
    width: 100%;
    max-width: none;
}

.expo-welcome-full {
    width: 100%;
    box-sizing: border-box;
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    background:
        radial-gradient(ellipse 120% 80% at 20% 0%, rgba(112, 208, 128, 0.22) 0%, transparent 55%),
        radial-gradient(ellipse 100% 70% at 85% 30%, rgba(93, 132, 103, 0.18) 0%, transparent 50%),
        radial-gradient(ellipse 80% 50% at 50% 100%, rgba(195, 176, 157, 0.35) 0%, transparent 45%),
        linear-gradient(168deg, #faf9f7 0%, #f3f1ed 35%, #eef4f0 70%, #f7fcf9 100%);
    padding: clamp(1.25rem, 4vw, 2.5rem) clamp(0.75rem, 3vw, 2rem) clamp(2rem, 5vw, 3rem);
}

.expo-step--welcome.is-active .expo-welcome-full {
    border-bottom: none;
}

.expo-welcome-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    max-width: none;
    margin: 0 auto;
    text-align: center;
    box-sizing: border-box;
}

.expo-welcome-brand {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: clamp(1rem, 3vw, 2rem);
    margin-bottom: 1.5rem;
    width: 100%;
}

.expo-welcome-brand-sep {
    display: none;
    width: 2px;
    height: 56px;
    background: linear-gradient(180deg, transparent, var(--accent-gold-soft), transparent);
    border-radius: 2px;
    flex-shrink: 0;
    opacity: 0.85;
}

@media (min-width: 540px) {
    .expo-welcome-brand-sep {
        display: block;
    }
}

.expo-mcc-logo,
.expo-siam-logo {
    display: block;
    width: auto;
    height: auto;
    max-height: clamp(72px, 12vw, 100px);
    max-width: min(260px, 42vw);
    object-fit: contain;
    margin: 0;
}

.expo-siam-logo {
    max-width: min(220px, 40vw);
    max-height: clamp(64px, 11vw, 92px);
}

.expo-welcome-title {
    margin: 0 0 1rem;
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 5vw, 2.45rem);
    font-weight: 700;
    letter-spacing: 0.02em;
    background: linear-gradient(120deg, var(--accent-plum) 0%, var(--primary-600) 45%, var(--accent-gold) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 2px 12px rgba(68, 34, 16, 0.12));
}

/* Grille carrée dashboards — pas de max-width sur les tuiles (évite le rendu en « pastilles ») */
.expo-dash-grid {
    display: grid;
    width: 100%;
    max-width: none;
    margin: 0 auto 1.75rem;
    padding: 0;
    gap: 0.75rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-items: stretch;
    align-items: stretch;
}

@media (min-width: 640px) {
    .expo-dash-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1rem;
    }
}

.expo-dash-tile {
    box-sizing: border-box;
    width: 100%;
    margin: 0;
    min-width: 0;
    min-height: 100px;
    aspect-ratio: 1 / 1;
    border-radius: var(--radius-xl);
    border: 2px solid rgba(255, 255, 255, 0.95);
    background: linear-gradient(155deg, rgba(255, 255, 255, 0.95), rgba(238, 244, 240, 0.85));
    backdrop-filter: blur(10px);
    box-shadow: 0 6px 20px rgba(68, 34, 16, 0.1), 0 1px 0 rgba(255, 255, 255, 0.8) inset;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.35rem 0.5rem;
    cursor: not-allowed;
    font: inherit;
    color: var(--neutral-700);
    transition: transform 0.15s;
    -webkit-tap-highlight-color: transparent;
    -webkit-appearance: none;
    appearance: none;
}

.expo-dash-tile:disabled {
    opacity: 0.92;
}

a.expo-dash-tile--link {
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

a.expo-dash-tile--link:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(68, 34, 16, 0.14);
}

a.expo-dash-tile--link:active {
    transform: translateY(0);
}

.expo-dash-tile:nth-child(6n + 1) {
    background: linear-gradient(150deg, #eef4f0, #dce9df);
    border-color: rgba(93, 132, 103, 0.35);
}
.expo-dash-tile:nth-child(6n + 1) .bi {
    color: #4e7358;
}

.expo-dash-tile:nth-child(6n + 2) {
    background: linear-gradient(150deg, #f3efe8, #e8dfd4);
    border-color: rgba(195, 176, 157, 0.55);
}
.expo-dash-tile:nth-child(6n + 2) .bi {
    color: #6b5344;
}

.expo-dash-tile:nth-child(6n + 3) {
    background: linear-gradient(150deg, #ecf8ee, #d4f0da);
    border-color: rgba(112, 208, 128, 0.45);
}
.expo-dash-tile:nth-child(6n + 3) .bi {
    color: #3d8a4a;
}

.expo-dash-tile:nth-child(6n + 4) {
    background: linear-gradient(150deg, #f2f2f1, #e4e4e3);
    border-color: rgba(198, 198, 196, 0.65);
}
.expo-dash-tile:nth-child(6n + 4) .bi {
    color: #5c5c5a;
}

.expo-dash-tile:nth-child(6n + 5) {
    background: linear-gradient(150deg, #f5efe8, #e8dccf);
    border-color: rgba(68, 34, 16, 0.2);
}
.expo-dash-tile:nth-child(6n + 5) .bi {
    color: #5d4030;
}

.expo-dash-tile:nth-child(6n + 6) {
    background: linear-gradient(150deg, #e8f0ea, #d5e4d9);
    border-color: rgba(93, 132, 103, 0.3);
}
.expo-dash-tile:nth-child(6n + 6) .bi {
    color: #3f5f48;
}

.expo-dash-tile .bi {
    font-size: clamp(1.5rem, 5vw, 2.15rem);
    line-height: 1;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 4px rgba(61, 44, 36, 0.12));
}

.expo-dash-tile span {
    font-size: clamp(0.7rem, 2.2vw, 0.82rem);
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    color: var(--neutral-800);
    word-break: break-word;
    hyphens: auto;
}

.expo-welcome-cta {
    align-self: stretch;
    width: 100%;
    margin: 0 0 1.5rem;
    display: flex;
    justify-content: center;
}

.expo-btn-hero {
    min-height: 56px;
    padding: 0.95rem 1.75rem;
    font-size: 1.05rem;
    border-radius: 1.25rem;
    box-shadow: 0 8px 28px rgba(93, 132, 103, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.2) inset;
}

/* CTA accueil : pleine largeur, reflet animé + halo pour guider le visiteur */
.expo-btn-welcome-cta {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    width: 100%;
    max-width: none;
    min-height: 58px;
    padding: 1rem 1.35rem;
    font-size: clamp(1.02rem, 3.4vw, 1.18rem);
    font-weight: 700;
    letter-spacing: 0.03em;
    border-radius: 1.35rem;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: linear-gradient(
        125deg,
        var(--primary-700) 0%,
        var(--primary-600) 22%,
        var(--brand-mint) 52%,
        var(--primary-500) 100%
    );
    color: #fff;
    box-shadow:
        0 10px 36px rgba(68, 34, 16, 0.45),
        0 0 0 1px rgba(255, 255, 255, 0.12) inset,
        0 -2px 14px rgba(255, 255, 255, 0.1) inset;
    animation: expoWelcomeCtaGlow 2.6s ease-in-out infinite;
}

.expo-btn-welcome-cta::before {
    content: '';
    position: absolute;
    top: -70%;
    left: -30%;
    width: 48%;
    height: 240%;
    background: linear-gradient(
        118deg,
        transparent 0%,
        rgba(255, 255, 255, 0) 40%,
        rgba(255, 255, 255, 0.55) 50%,
        rgba(255, 255, 255, 0) 60%,
        transparent 100%
    );
    transform: rotate(20deg) translateX(-140%);
    animation: expoWelcomeCtaShine 3.4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes expoWelcomeCtaShine {
    0%,
    12% {
        transform: rotate(20deg) translateX(-140%);
    }
    42%,
    100% {
        transform: rotate(20deg) translateX(320%);
    }
}

@keyframes expoWelcomeCtaGlow {
    0%,
    100% {
        box-shadow:
            0 10px 36px rgba(68, 34, 16, 0.42),
            0 0 0 1px rgba(255, 255, 255, 0.12) inset,
            0 0 18px rgba(93, 132, 103, 0.38);
    }
    50% {
        box-shadow:
            0 14px 48px rgba(68, 34, 16, 0.55),
            0 0 0 1px rgba(255, 255, 255, 0.2) inset,
            0 0 36px rgba(112, 208, 128, 0.45);
    }
}

.expo-btn-welcome-cta-inner {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.expo-btn-welcome-cta .bi-play-fill {
    font-size: 1.22em;
    line-height: 1;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.55));
}

.expo-btn-welcome-cta:hover {
    filter: brightness(1.07);
}

.expo-btn-welcome-cta:active {
    filter: brightness(0.97);
}

@media (prefers-reduced-motion: reduce) {
    .expo-btn-welcome-cta {
        animation: none;
        box-shadow: 0 10px 32px rgba(68, 34, 16, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.15) inset;
    }

    .expo-btn-welcome-cta::before {
        animation: none;
        opacity: 0;
    }
}

.expo-step {
    display: none;
    animation: expoFade 0.28s ease;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.expo-step.is-active {
    display: block;
}

/* Accueil : occupe toute la hauteur disponible du main (jusqu’au footer) */
.expo-step--welcome.is-active {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
}

@keyframes expoFade {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.expo-card {
    background: linear-gradient(165deg, #ffffff 0%, #faf9f7 100%);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(195, 176, 157, 0.55);
    padding: 1.35rem clamp(1rem, 2.5vw, 1.75rem);
    margin-bottom: 1rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.expo-card--center {
    text-align: center;
}

.expo-card h2 {
    margin: 0 0 0.35rem;
    font-family: var(--font-display);
    font-size: clamp(1.35rem, 3.2vw, 1.6rem);
    font-weight: 700;
    color: var(--accent-plum);
    letter-spacing: 0.02em;
}

.expo-card .expo-lead {
    margin: 0 0 1.25rem;
    color: var(--neutral-600);
    font-size: 0.95rem;
    line-height: 1.45;
}

.expo-lead--tight {
    margin-bottom: 0.75rem !important;
}

.expo-hr {
    border: 0;
    border-top: 1px solid var(--neutral-200);
    margin: 1.25rem 0;
}

.expo-choice-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.85rem;
}

@media (min-width: 520px) {
    .expo-choice-grid.cols-2 {
        grid-template-columns: 1fr 1fr;
    }
}

.expo-choice {
    display: block;
    width: 100%;
    text-align: left;
    padding: 1.15rem 1.2rem;
    border-radius: var(--radius-xl);
    border: 2px solid var(--neutral-200);
    background: linear-gradient(145deg, var(--neutral-50), #fff);
    cursor: pointer;
    transition: border-color 0.25s, background 0.25s, transform 0.15s, box-shadow 0.25s;
    font: inherit;
    color: inherit;
}

.expo-choice:hover {
    border-color: var(--primary-300);
    background: #fff;
    box-shadow: 0 6px 20px rgba(93, 132, 103, 0.1);
}

.expo-choice:active {
    transform: scale(0.99);
}

.expo-choice.is-selected {
    border-color: var(--primary-600);
    background: linear-gradient(145deg, var(--primary-50), #fff);
    box-shadow: 0 0 0 3px rgba(93, 132, 103, 0.2), 0 8px 24px rgba(68, 34, 16, 0.12);
}

.expo-choice strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
    color: var(--neutral-900);
}

.expo-choice small {
    color: var(--neutral-600);
    font-size: 0.88rem;
    line-height: 1.35;
}

.expo-label {
    display: block;
    font-weight: 600;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--neutral-600);
    margin-bottom: 0.35rem;
}

.expo-field {
    margin-bottom: 1rem;
}

.expo-field-hint {
    display: block;
    margin-top: 0.35rem;
    color: var(--neutral-600);
    font-size: 0.85rem;
}

.expo-input,
.expo-select,
.expo-textarea {
    width: 100%;
    padding: 0.75rem 0.9rem;
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-xl);
    font: inherit;
    background: #fff;
    min-height: 48px;
}

.expo-textarea {
    min-height: 100px;
    resize: vertical;
}

.expo-input:focus,
.expo-select:focus,
.expo-textarea:focus {
    outline: none;
    border-color: var(--primary-500);
    box-shadow: 0 0 0 3px rgba(93, 132, 103, 0.15);
}

.expo-actions-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1.25rem;
}

.expo-actions-row--center {
    justify-content: center;
}

.expo-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.8rem 1.2rem;
    min-height: 48px;
    border-radius: var(--radius-xl);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: background 0.2s, transform 0.15s;
}

.expo-btn:active {
    transform: scale(0.98);
}

.expo-btn-primary {
    background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-700) 55%, var(--accent-plum) 100%);
    color: #fff;
    box-shadow: 0 4px 16px rgba(93, 132, 103, 0.35);
}

.expo-btn-primary:hover {
    filter: brightness(1.05);
    box-shadow: 0 6px 22px rgba(93, 132, 103, 0.4);
}

.expo-btn-primary:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
}

.expo-btn-secondary {
    background: #fff;
    color: var(--neutral-800);
    border: 1px solid rgba(195, 176, 157, 0.9);
    box-shadow: 0 2px 8px rgba(61, 44, 36, 0.06);
}

.expo-btn-ghost {
    background: transparent;
    color: var(--primary-700);
    font-weight: 600;
}

.expo-badge {
    display: inline-block;
    padding: 0.25rem 0.65rem;
    border-radius: 99px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: linear-gradient(135deg, var(--primary-100), var(--primary-50));
    color: var(--primary-800);
    border: 1px solid rgba(93, 132, 103, 0.35);
    margin-left: 0.35rem;
}

.expo-badge--inline {
    margin-left: 0;
    vertical-align: middle;
}

.expo-scan-zone {
    border: 2px dashed rgba(93, 132, 103, 0.35);
    border-radius: var(--radius-xl);
    padding: 1.25rem;
    text-align: center;
    background: linear-gradient(160deg, var(--primary-50), #fff);
    margin-bottom: 1rem;
}

.expo-scan-zone input[type='file'] {
    margin-top: 0.5rem;
    max-width: 100%;
}

.expo-ocr-preview {
    font-size: 0.85rem;
    color: var(--neutral-600);
    text-align: left;
    margin-top: 0.75rem;
    padding: 0.75rem;
    background: #fff;
    border-radius: var(--radius-xl);
    border: 1px solid var(--neutral-200);
    font-family: ui-monospace, monospace;
    white-space: pre-wrap;
    word-break: break-word;
    max-height: 120px;
    overflow: auto;
}

.expo-summary dl {
    margin: 0;
}

.expo-summary dt {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--neutral-500);
    margin-top: 0.65rem;
}

.expo-summary dt:first-child {
    margin-top: 0;
}

.expo-summary dd {
    margin: 0.15rem 0 0;
    font-weight: 600;
    color: var(--neutral-900);
}

.expo-error {
    color: var(--error-500);
    font-size: 0.9rem;
    font-weight: 600;
}

.expo-done-icon {
    font-size: 3rem;
    text-align: center;
    color: var(--success-500);
    margin-bottom: 0.5rem;
    filter: drop-shadow(0 4px 12px rgba(5, 150, 105, 0.35));
}

.expo-check-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
}

@media (min-width: 480px) {
    .expo-check-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.expo-check {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.65rem 0.75rem;
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-xl);
    background: var(--neutral-50);
    cursor: pointer;
    min-height: 48px;
}

.expo-check input {
    width: 1.15rem;
    height: 1.15rem;
    accent-color: var(--primary-600);
}

.expo-link-backhub {
    font-size: 0.88rem;
    color: var(--neutral-600);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.expo-link-backhub:hover {
    color: var(--primary-600);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.expo-root-notice {
    font-size: 0.9rem;
    color: var(--primary-800);
    background: linear-gradient(90deg, var(--primary-50), var(--neutral-100));
    border: 1px solid rgba(93, 132, 103, 0.35);
    border-radius: var(--radius-xl);
    padding: 0.85rem 1.1rem;
    margin-bottom: 1rem;
    line-height: 1.45;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.expo-root-notice .bi {
    flex-shrink: 0;
    margin-top: 0.1rem;
    font-size: 1.1rem;
}

.expo-step-icon {
    color: var(--primary-600);
    margin-right: 0.35rem;
    vertical-align: -0.12em;
    font-size: 1.05em;
}

.expo-choice--tile {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    text-align: left;
    min-height: 88px;
    padding: 1.1rem 1.25rem;
}

.expo-choice-ico {
    flex-shrink: 0;
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 1rem;
    background: linear-gradient(145deg, #fff, var(--primary-50));
    border: 1px solid rgba(195, 176, 157, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.65rem;
    color: var(--primary-600);
}

.expo-choice.is-selected .expo-choice-ico {
    background: var(--primary-50);
    border-color: var(--primary-500);
    color: var(--primary-700);
}

.expo-choice-text {
    display: block;
    min-width: 0;
}

.expo-choice-text strong {
    font-size: 1.15rem;
}

.expo-choice-text small {
    font-size: 0.9rem;
}

@media (min-width: 520px) {
    .expo-choice--tile {
        min-height: 96px;
        padding: 1.2rem 1.35rem;
    }

    .expo-choice-ico {
        width: 3.5rem;
        height: 3.5rem;
        font-size: 1.75rem;
    }
}

.expo-card--qual {
    padding: 1.5rem 1.25rem 1.75rem;
}

.expo-qual-intro {
    margin-bottom: 1.5rem !important;
    font-size: 1rem;
}

.expo-qual-block {
    margin-bottom: 1.75rem;
}

.expo-qual-block:last-of-type {
    margin-bottom: 0.5rem;
}

.expo-qual-block-title {
    margin: 0 0 0.35rem;
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--accent-plum);
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.expo-qual-block-title .bi {
    color: var(--primary-600);
    font-size: 1.15rem;
}

.expo-qual-hint {
    margin: 0 0 1rem;
    font-size: 0.88rem;
    color: var(--neutral-600);
    line-height: 1.45;
}

.expo-qual-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

@media (min-width: 600px) {
    .expo-qual-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.85rem;
    }
}

.expo-qual-tile {
    position: relative;
    display: block;
    margin: 0;
    cursor: pointer;
    border-radius: var(--radius-xl);
}

.expo-qual-tile input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    margin: 0;
    pointer-events: none;
}

.expo-qual-tile-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.35rem;
    padding: 1.1rem 0.75rem;
    min-height: 118px;
    border: 2px solid var(--neutral-200);
    border-radius: var(--radius-xl);
    background: var(--neutral-50);
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.expo-qual-tile:hover .expo-qual-tile-inner {
    border-color: var(--neutral-300, #d4d4d4);
    background: #fff;
}

.expo-qual-tile input:focus-visible + .expo-qual-tile-inner {
    outline: 3px solid var(--primary-500);
    outline-offset: 2px;
}

.expo-qual-tile input:checked + .expo-qual-tile-inner {
    border-color: var(--primary-600);
    background: var(--primary-50);
    box-shadow: 0 0 0 3px rgba(93, 132, 103, 0.2);
}

.expo-qual-ico {
    font-size: 1.85rem;
    line-height: 1;
    margin-bottom: 0.15rem;
}

.expo-qual-ico--hot {
    color: #ea580c;
}

.expo-qual-ico--warm {
    color: #ca8a04;
}

.expo-qual-ico--cold {
    color: #2563eb;
}

.expo-qual-ico--pri-high {
    color: #dc2626;
}

.expo-qual-ico--pri-mid {
    color: var(--primary-600);
}

.expo-qual-ico--pri-low {
    color: var(--neutral-500);
}

.expo-qual-tile-title {
    font-weight: 800;
    font-size: 1rem;
    color: var(--neutral-900);
    line-height: 1.2;
}

.expo-qual-tile-sub {
    font-size: 0.8rem;
    color: var(--neutral-600);
    line-height: 1.3;
    max-width: 12rem;
}

@media (min-width: 600px) {
    .expo-qual-tile-inner {
        min-height: 132px;
        padding: 1.25rem 0.65rem;
    }

    .expo-qual-ico {
        font-size: 2rem;
    }

    .expo-qual-tile-title {
        font-size: 1.05rem;
    }
}

.expo-check--icon {
    gap: 0.75rem;
}

.expo-check-label {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex: 1;
    font-weight: 500;
}

.expo-check-label .bi {
    font-size: 1.25rem;
    color: var(--primary-600);
    flex-shrink: 0;
}

.expo-action-list {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.expo-action-list .expo-check {
    min-height: 54px;
}

/* ——— Page visiteur (sans connexion agent) ——— */
.expo-visitor-doc {
    scroll-behavior: smooth;
}

.expo-visitor-body .expo-main {
    flex: 1 1 auto;
}

.expo-topbar--visitor {
    grid-template-columns: 1fr auto 1fr;
}

.expo-topbar-visitor-tagline {
    grid-column: 2;
    justify-self: center;
    margin: 0;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--primary-700);
    text-align: center;
    line-height: 1.2;
    max-width: min(200px, 40vw);
}

@media (min-width: 480px) {
    .expo-topbar-visitor-tagline {
        font-size: 0.78rem;
        max-width: none;
    }
}

.expo-visitor-main {
    width: 100%;
    max-width: 100%;
    padding: clamp(1rem, 3vw, 1.75rem) clamp(0.75rem, 3vw, 1.75rem) clamp(2rem, 5vw, 3rem);
    box-sizing: border-box;
    background:
        radial-gradient(ellipse 90% 60% at 50% -10%, rgba(195, 176, 157, 0.35) 0%, transparent 45%),
        radial-gradient(ellipse 120% 80% at 20% 0%, rgba(112, 208, 128, 0.18) 0%, transparent 55%),
        radial-gradient(ellipse 100% 70% at 85% 25%, rgba(93, 132, 103, 0.16) 0%, transparent 50%),
        linear-gradient(168deg, #faf9f7 0%, #f3f1ed 38%, #eef4f0 72%, #f9faf7 100%);
}

/* Landing visiteur : hero + grille dense */
.expo-visitor-landing {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
}

.expo-visitor-hero {
    position: relative;
    text-align: center;
    margin-bottom: clamp(1.75rem, 4vw, 2.5rem);
    padding: clamp(0.5rem, 2vw, 1rem) 0 0.25rem;
}

.expo-visitor-hero-backdrop {
    position: absolute;
    left: 50%;
    top: 42%;
    transform: translate(-50%, -50%);
    width: min(100%, 520px);
    height: min(70vw, 280px);
    background: radial-gradient(ellipse at center, rgba(93, 132, 103, 0.2) 0%, rgba(195, 176, 157, 0.15) 40%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.expo-visitor-hero .expo-visitor-brand,
.expo-visitor-hero .expo-visitor-hero-eyebrow,
.expo-visitor-hero .expo-visitor-hero-title,
.expo-visitor-hero .expo-visitor-tagline,
.expo-visitor-hero .expo-visitor-hero-cta-wrap {
    position: relative;
    z-index: 1;
}

.expo-visitor-hero-eyebrow {
    margin: 0 0 0.4rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent-gold);
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}

.expo-visitor-text-link {
    color: var(--primary-700);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: rgba(93, 132, 103, 0.35);
    text-underline-offset: 3px;
}

.expo-visitor-text-link:hover {
    color: var(--primary-800);
}

.expo-visitor-footer-link {
    color: inherit;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.expo-visitor-footer-link:hover {
    color: var(--primary-700);
}

.expo-visitor-brand {
    margin-bottom: 1.15rem;
    filter: drop-shadow(0 8px 24px rgba(68, 34, 16, 0.08));
    animation: expoVisitorLogoIn 0.85s ease-out both;
}

@keyframes expoVisitorLogoIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .expo-visitor-brand {
        animation: none;
    }
}

.expo-visitor-hero-title {
    margin-bottom: 0.55rem;
}

.expo-visitor-tagline {
    margin: 0 auto 1.35rem;
    max-width: 26rem;
    font-size: clamp(0.92rem, 2.6vw, 1.02rem);
    line-height: 1.58;
    color: var(--neutral-600);
    font-weight: 500;
}

.expo-visitor-hero-cta-wrap {
    max-width: 22rem;
    margin: 0 auto;
}

.expo-visitor-hero-cta {
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 100%;
}

.expo-visitor-hero-cta-note {
    margin: 0.7rem 0 0;
    font-size: 0.8rem;
    color: var(--neutral-500);
    line-height: 1.45;
}

.expo-visitor-hero-below-note {
    width: 100%;
    margin-top: 1rem;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    font-weight: 600;
}

.expo-visitor-discover {
    width: 100%;
    max-width: 920px;
    margin: 0 auto;
    padding-bottom: 0.5rem;
    scroll-margin-top: 4.5rem;
}

.expo-visitor-discover-title {
    margin: 0 0 0.35rem;
    font-family: var(--font-display);
    font-size: clamp(1.35rem, 4vw, 1.75rem);
    font-weight: 700;
    text-align: center;
    color: var(--accent-plum);
    letter-spacing: 0.02em;
}

.expo-visitor-discover-sub {
    margin: 0 0 1.25rem;
    text-align: center;
    font-size: 0.9rem;
    color: var(--neutral-500);
    font-weight: 500;
}

.expo-visitor-wizard-shortcuts {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.65rem;
    margin: 0 auto 1.35rem;
    max-width: 920px;
}

.expo-visitor-shortcut {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 52px;
    padding: 0.45rem 0.85rem 0.45rem 0.55rem;
    border-radius: 14px;
    border: 1px solid rgba(195, 176, 157, 0.65);
    background: rgba(255, 255, 255, 0.88);
    color: var(--accent-plum);
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(68, 34, 16, 0.06);
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    flex: 1 1 auto;
    min-width: min(100%, 200px);
    max-width: 280px;
    box-sizing: border-box;
}

.expo-visitor-shortcut:hover {
    border-color: rgba(93, 132, 103, 0.55);
    box-shadow: 0 6px 20px rgba(68, 34, 16, 0.1);
    background: #fff;
}

.expo-visitor-shortcut--accent {
    border-color: rgba(93, 132, 103, 0.45);
    background: linear-gradient(155deg, rgba(250, 249, 247, 0.98), rgba(238, 244, 240, 0.95));
}

.expo-visitor-shortcut--ghost {
    background: rgba(255, 255, 255, 0.45);
    max-width: 100%;
}

.expo-visitor-shortcut-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 10px;
    background: rgba(238, 244, 240, 0.95);
    color: #4e7358;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.expo-visitor-shortcut-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.08rem;
    text-align: left;
    line-height: 1.2;
}

.expo-visitor-shortcut-text strong {
    font-size: 0.88rem;
    font-weight: 700;
}

.expo-visitor-shortcut-text small {
    font-size: 0.68rem;
    font-weight: 500;
    color: var(--neutral-500);
}

.expo-visitor-nav {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.85rem;
    max-width: 520px;
    margin: 0 auto 2.25rem;
}

.expo-visitor-nav--dense {
    max-width: 920px;
    margin-bottom: 1.75rem;
    gap: 0.75rem;
}

.expo-visitor-nav--dense .expo-visitor-nav-card {
    padding: 1rem 0.7rem;
    min-height: 108px;
    justify-content: center;
}

.expo-visitor-nav--dense .expo-visitor-nav-ico {
    font-size: 1.75rem;
}

.expo-visitor-nav--dense .expo-visitor-nav-label {
    font-size: 0.95rem;
}

.expo-visitor-nav--dense .expo-visitor-nav-hint {
    font-size: 0.72rem;
    line-height: 1.25;
}

@media (min-width: 480px) {
    .expo-visitor-nav--dense {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 720px) {
    .expo-visitor-nav--dense {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.9rem;
    }
}

.expo-visitor-nav-card--accent {
    border-color: rgba(201, 162, 77, 0.55);
    background: linear-gradient(155deg, rgba(250, 249, 247, 0.98), rgba(238, 244, 240, 0.92));
    box-shadow: 0 8px 28px rgba(201, 162, 77, 0.15), 0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

.expo-visitor-nav-card--accent .expo-visitor-nav-ico {
    color: #4e7358;
}

.expo-visitor-nav-card--accent:hover {
    border-color: rgba(201, 162, 77, 0.85);
}

.expo-visitor-bottom-cta {
    text-align: center;
    margin-top: auto;
    padding-top: 1.5rem;
    padding-bottom: 0.25rem;
}

.expo-visitor-bottom-cta-text {
    margin: 0 0 0.55rem;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--neutral-600);
}

.expo-visitor-bottom-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    text-decoration: none;
    padding: 0.65rem 1.2rem;
    border-radius: var(--radius-xl);
}

/* Ancienne variante « boutons seuls » (si réutilisée) */
.expo-visitor-main--buttons-only {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1 1 auto;
    min-height: 0;
}

.expo-visitor-main--buttons-only .expo-visitor-nav {
    margin-bottom: 1.25rem;
}

.expo-visitor-cta-register {
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    text-align: center;
}

.expo-visitor-cta-register .expo-btn-welcome-cta {
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.expo-visitor-cta-hint {
    margin: 0.65rem 0 0;
    font-size: 0.82rem;
    color: var(--neutral-500);
    line-height: 1.4;
}

@media (min-width: 520px) {
    .expo-visitor-nav:not(.expo-visitor-nav--dense) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1rem;
        max-width: 640px;
    }
}

button.expo-visitor-nav-card {
    font: inherit;
    cursor: pointer;
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
}

.expo-visitor-nav-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.35rem;
    padding: 1.15rem 1rem;
    border-radius: var(--radius-xl);
    text-decoration: none;
    color: inherit;
    background: linear-gradient(155deg, rgba(255, 255, 255, 0.96), rgba(238, 244, 240, 0.88));
    border: 2px solid rgba(255, 255, 255, 0.95);
    box-shadow: 0 8px 26px rgba(68, 34, 16, 0.1), 0 1px 0 rgba(255, 255, 255, 0.85) inset;
    transition: transform 0.18s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.expo-visitor-nav-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 36px rgba(68, 34, 16, 0.14), 0 1px 0 rgba(255, 255, 255, 0.9) inset;
    border-color: rgba(93, 132, 103, 0.45);
}

.expo-visitor-nav-card:focus-visible {
    outline: 3px solid rgba(93, 132, 103, 0.45);
    outline-offset: 3px;
}

.expo-visitor-nav-card:active {
    transform: translateY(-1px);
}

.expo-visitor-nav-ico {
    font-size: 2rem;
    line-height: 1;
    color: var(--primary-600);
    filter: drop-shadow(0 2px 6px rgba(93, 132, 103, 0.2));
}

.expo-visitor-nav-label {
    font-weight: 700;
    font-size: 1.02rem;
    color: var(--accent-plum);
}

.expo-visitor-nav-hint {
    font-size: 0.78rem;
    color: var(--neutral-500);
    font-weight: 500;
}

.expo-visitor-sections {
    max-width: 40rem;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.expo-visitor-section {
    padding: 1.25rem 1.15rem;
    border-radius: var(--radius-2xl);
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.94) 0%, #faf9f7 100%);
    border: 1px solid rgba(195, 176, 157, 0.55);
    box-shadow: var(--shadow-card);
    scroll-margin-top: 5.5rem;
}

.expo-visitor-section h2 {
    margin: 0 0 0.75rem;
    font-family: var(--font-display);
    font-size: clamp(1.2rem, 3.2vw, 1.45rem);
    font-weight: 700;
    color: var(--accent-plum);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    flex-wrap: wrap;
    text-align: center;
}

.expo-visitor-section p {
    margin: 0 0 0.65rem;
    font-size: 0.95rem;
    line-height: 1.55;
    color: var(--neutral-700);
}

.expo-visitor-section p:last-child {
    margin-bottom: 0;
}

.expo-visitor-tip {
    margin-top: 0.75rem !important;
    padding: 0.65rem 0.85rem;
    border-radius: var(--radius-xl);
    background: linear-gradient(90deg, rgba(238, 244, 240, 0.9), rgba(243, 241, 237, 0.95));
    border: 1px solid rgba(195, 176, 157, 0.5);
    font-size: 0.88rem !important;
    color: var(--neutral-600) !important;
}

.expo-visitor-tip .bi {
    color: var(--primary-600);
    margin-right: 0.25rem;
}

.expo-visitor-quote {
    margin: 1rem 0 0;
    padding: 1rem 1.1rem;
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-style: italic;
    font-weight: 600;
    line-height: 1.45;
    color: var(--primary-800);
    background: linear-gradient(135deg, rgba(238, 244, 240, 0.65), rgba(195, 176, 157, 0.35));
    border-radius: var(--radius-xl);
    border-left: 4px solid var(--accent-gold);
}

.expo-visitor-quote cite {
    display: block;
    margin-top: 0.6rem;
    font-family: var(--font-ui);
    font-size: 0.8rem;
    font-style: normal;
    font-weight: 600;
    color: var(--neutral-500);
}

.expo-visitor-tip-inline {
    margin-top: 0.75rem !important;
    padding: 0.55rem 0.75rem;
    border-radius: var(--radius-xl);
    background: rgba(238, 244, 240, 0.85);
    border: 1px solid rgba(195, 176, 157, 0.45);
    font-size: 0.88rem !important;
    color: var(--neutral-600) !important;
}

.expo-visitor-quote--modal {
    margin-top: 0.75rem;
    font-size: 1.05rem;
}

.expo-visitor-modal[hidden] {
    display: none !important;
}

.expo-visitor-modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    box-sizing: border-box;
}

.expo-visitor-modal-scrim {
    position: absolute;
    inset: 0;
    background: rgba(42, 27, 21, 0.45);
    backdrop-filter: blur(6px);
    cursor: pointer;
}

.expo-visitor-modal-panel--story {
    max-width: min(28rem, 96vw) !important;
    max-height: min(88vh, 640px) !important;
}

.expo-visitor-story-figure {
    margin: 0 0 0.75rem;
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid rgba(195, 176, 157, 0.55);
    box-shadow: 0 6px 18px rgba(61, 44, 36, 0.08);
    background: #faf8f6;
}

.expo-visitor-story-thumb {
    display: block;
    width: 100%;
    height: auto;
    max-height: 168px;
    object-fit: cover;
    object-position: top center;
}

.expo-visitor-story-lead {
    margin: 0 0 0.75rem !important;
    font-size: 0.78rem !important;
    line-height: 1.45 !important;
    color: var(--neutral-500) !important;
}

.expo-visitor-story-h3 {
    margin: 0.85rem 0 0.4rem;
    padding-left: 0.65rem;
    border-left: 3px solid var(--accent-gold);
    font-family: var(--font-display);
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--accent-plum);
    line-height: 1.25;
}

.expo-visitor-modal-body .expo-visitor-story-h3:first-of-type {
    margin-top: 0.35rem;
}

.expo-visitor-story-values-title {
    margin: 0.75rem 0 0.4rem !important;
    font-size: 0.88rem !important;
    font-weight: 700 !important;
    color: var(--neutral-800) !important;
}

.expo-visitor-story-values {
    margin: 0 0 0.5rem !important;
    padding-left: 1.2rem !important;
    font-size: 0.88rem;
    line-height: 1.45;
    color: var(--neutral-700);
}

.expo-visitor-story-values li {
    margin-bottom: 0.4rem;
}

.expo-visitor-story-values li:last-child {
    margin-bottom: 0;
}

.expo-visitor-modal-panel {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: min(26rem, 94vw);
    max-height: min(85vh, 560px);
    overflow-y: auto;
    padding: 1.35rem 1.25rem 1.15rem;
    border-radius: var(--radius-2xl);
    background: linear-gradient(168deg, #faf9f7 0%, #eef4f0 100%);
    border: 1px solid rgba(195, 176, 157, 0.65);
    box-shadow: 0 24px 48px rgba(61, 44, 36, 0.18);
}

.expo-visitor-modal-title {
    margin: 0 0 0.75rem;
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--accent-plum);
    text-align: center;
}

.expo-visitor-modal-body {
    font-size: 0.92rem;
    line-height: 1.55;
    color: var(--neutral-700);
}

.expo-visitor-modal-body p {
    margin: 0 0 0.65rem;
}

.expo-visitor-modal-body p:last-child {
    margin-bottom: 0;
}

.expo-visitor-modal-body ul {
    margin: 0 0 0.65rem;
    padding-left: 1.15rem;
}

.expo-visitor-contact-list {
    list-style: none;
    padding: 0 !important;
    margin: 0 0 0.75rem !important;
}

.expo-visitor-contact-list li {
    margin-bottom: 0.45rem;
    padding: 0.4rem 0;
    border-bottom: 1px solid rgba(232, 213, 207, 0.8);
}

.expo-visitor-contact-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.expo-visitor-modal-link {
    color: var(--primary-700);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid rgba(93, 132, 103, 0.25);
}

.expo-visitor-modal-link:hover {
    color: var(--primary-800);
    border-bottom-color: var(--primary-600);
}

.expo-visitor-modal-actions {
    margin: 0.85rem 0 0 !important;
    text-align: center;
}

.expo-visitor-modal-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.65rem 1.15rem;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--accent-plum);
    text-decoration: none;
    border-radius: var(--radius-xl);
    border: 2px solid rgba(201, 162, 77, 0.55);
    background: linear-gradient(180deg, #fffefb, #fff8f0);
    box-shadow: 0 4px 14px rgba(201, 162, 77, 0.15);
    transition: transform 0.15s, box-shadow 0.2s;
}

.expo-visitor-modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(201, 162, 77, 0.22);
}

.expo-visitor-modal-btn--primary {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(125deg, var(--primary-700), var(--primary-600), var(--brand-mint));
    box-shadow: 0 6px 20px rgba(68, 34, 16, 0.3);
}

.expo-visitor-modal-btn--primary:hover {
    filter: brightness(1.05);
    box-shadow: 0 10px 28px rgba(68, 34, 16, 0.38);
}

.expo-visitor-modal-close {
    width: 100%;
    margin-top: 1.1rem;
    justify-content: center;
}

/* ——— Pages reporting agent (stats, leads jour, export) ——— */
.expo-report-body {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(168deg, #faf9f7 0%, #f3f1ed 45%, #eef4f0 100%);
}

.expo-report-header {
    padding: clamp(1rem, 3vw, 1.5rem) clamp(0.75rem, 3vw, 1.5rem);
    border-bottom: 1px solid rgba(195, 176, 157, 0.55);
    background: rgba(255, 255, 255, 0.92);
}

.expo-report-back {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--primary-700);
    text-decoration: none;
    margin-bottom: 0.65rem;
}

.expo-report-back:hover {
    text-decoration: underline;
}

.expo-report-title {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
    color: var(--accent-plum);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.expo-report-sub {
    margin: 0.4rem 0 0;
    font-size: 0.92rem;
    color: var(--neutral-600);
    max-width: 40rem;
    line-height: 1.45;
}

.expo-report-main {
    flex: 1;
    padding: clamp(1rem, 3vw, 1.75rem) clamp(0.75rem, 3vw, 1.5rem) 2.5rem;
    max-width: 960px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.expo-dashboard-page .expo-dash-grid {
    max-width: 920px;
    margin-left: auto;
    margin-right: auto;
}

.expo-dashboard-foot {
    text-align: center;
    margin-top: 2rem;
    padding-bottom: 0.5rem;
    font-size: 0.86rem;
}

.expo-link-muted {
    color: var(--neutral-500);
    text-decoration: none;
    font-weight: 500;
}

.expo-link-muted:hover {
    color: var(--neutral-700);
    text-decoration: underline;
}

.expo-report-filter {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 1.5rem;
}

.expo-report-filter label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--neutral-600);
}

.expo-report-input {
    padding: 0.45rem 0.65rem;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(195, 176, 157, 0.85);
    font: inherit;
    min-width: 8rem;
    max-width: 12rem;
}

.expo-report-error {
    padding: 0.85rem 1rem;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: var(--radius-xl);
    color: #991b1b;
    font-size: 0.9rem;
}

.expo-report-empty,
.expo-report-meta {
    color: var(--neutral-600);
    font-size: 0.92rem;
}

.expo-report-kpis {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.85rem;
    margin-bottom: 1.75rem;
}

.expo-report-kpi {
    padding: 1rem 1.1rem;
    border-radius: var(--radius-xl);
    background: linear-gradient(155deg, #fff, #f3f1ed);
    border: 1px solid rgba(195, 176, 157, 0.55);
    box-shadow: var(--shadow-card);
    text-align: center;
}

.expo-report-kpi--accent {
    background: linear-gradient(155deg, #eef4f0, #dce9df);
    border-color: rgba(93, 132, 103, 0.35);
}

.expo-report-kpi-value {
    display: block;
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-700);
    line-height: 1.1;
}

.expo-report-kpi-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--neutral-600);
    margin-top: 0.35rem;
    display: block;
}

.expo-report-block {
    margin-bottom: 1.75rem;
}

.expo-report-h2 {
    margin: 0 0 0.75rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--accent-plum);
}

.expo-report-bars {
    list-style: none;
    margin: 0;
    padding: 0;
}

.expo-report-bar-row {
    display: grid;
    grid-template-columns: minmax(0, 7.5rem) 1fr 2.5rem;
    gap: 0.5rem 0.65rem;
    align-items: center;
    margin-bottom: 0.55rem;
    font-size: 0.82rem;
}

@media (max-width: 480px) {
    .expo-report-bar-row {
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }

    .expo-report-bar-count {
        justify-self: start;
    }
}

.expo-report-bar-label {
    font-weight: 600;
    color: var(--neutral-800);
    word-break: break-word;
}

.expo-report-bar-track {
    height: 10px;
    border-radius: 99px;
    background: rgba(232, 213, 207, 0.65);
    overflow: hidden;
}

.expo-report-bar-fill {
    height: 100%;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--primary-600), var(--accent-peach));
    min-width: 0;
    transition: width 0.35s ease;
}

.expo-report-bar-fill--muted {
    background: linear-gradient(90deg, #059669, #34d399);
}

.expo-report-bar-fill--agent {
    background: linear-gradient(90deg, #7c3aed, #a78bfa);
}

.expo-report-bar-count {
    font-weight: 700;
    color: var(--primary-700);
    text-align: right;
}

.expo-report-table-wrap {
    overflow-x: auto;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(195, 176, 157, 0.55);
    background: #fff;
    box-shadow: var(--shadow-card);
}

.expo-report-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
}

.expo-report-table th,
.expo-report-table td {
    padding: 0.55rem 0.5rem;
    text-align: left;
    border-bottom: 1px solid rgba(232, 213, 207, 0.9);
}

.expo-report-table th {
    background: linear-gradient(180deg, #f3f1ed, #eef4f0);
    font-weight: 700;
    color: var(--accent-plum);
    white-space: nowrap;
}

.expo-report-table tbody tr:hover {
    background: rgba(238, 244, 240, 0.5);
}

.expo-report-export-card {
    padding: 1.35rem 1.25rem;
    border-radius: var(--radius-2xl);
    background: linear-gradient(165deg, #fff, #faf9f7);
    border: 1px solid rgba(195, 176, 157, 0.55);
    box-shadow: var(--shadow-card);
    max-width: 28rem;
}

.expo-report-export-count {
    margin: 0 0 0.65rem;
    font-size: 1rem;
    color: var(--neutral-800);
}

.expo-report-export-note {
    margin: 0 0 1.1rem;
    font-size: 0.85rem;
    color: var(--neutral-600);
    line-height: 1.45;
}

.expo-report-download-btn {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}
