/* =========================================================
   La Berrichonne — Stages : design system
   ========================================================= */

:root {
    /* Club colours — refined palette */
    --brand-red: #B1001A;
    --brand-red-deep: #7A0011;
    --brand-navy: #0B1E3F;
    --brand-navy-soft: #18305A;
    --brand-gold: #F2B705;

    /* Neutrals (warm) */
    --ink: #0F1115;
    --ink-soft: #2A2E38;
    --ink-mute: #6B6F78;
    --line: #E7E2D9;
    --paper: #FAF7F2;
    --paper-2: #F1EBE0;
    --white: #FFFFFF;

    /* Radii & shadow */
    --r-sm: 6px;
    --r-md: 10px;
    --r-lg: 18px;
    --r-xl: 28px;

    --shadow-card: 0 1px 2px rgba(11, 30, 63, 0.04),
                   0 8px 24px -12px rgba(11, 30, 63, 0.18);
    --shadow-lift: 0 2px 4px rgba(11, 30, 63, 0.06),
                   0 24px 48px -18px rgba(11, 30, 63, 0.26);
}

/* Base ---------------------------------------------------- */

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    font-feature-settings: "ss01", "cv11";
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.font-display {
    font-family: 'Oswald', 'Inter', system-ui, sans-serif;
    font-weight: 600;
    letter-spacing: -0.005em;
}

.font-serif-display {
    font-family: 'Fraunces', 'Playfair Display', Georgia, serif;
    font-weight: 500;
}

.tabular { font-variant-numeric: tabular-nums; }

a { transition: color .2s ease; }

/* Selection + focus */
::selection { background: var(--brand-red); color: #fff; }
:focus-visible {
    outline: 2px solid var(--brand-red);
    outline-offset: 3px;
    border-radius: 3px;
}

/* Utilities ----------------------------------------------- */

.container-prose { max-width: 68ch; }
.text-balance   { text-wrap: balance; }
.text-pretty    { text-wrap: pretty; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Oswald', sans-serif;
    font-weight: 500;
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}
.eyebrow::before {
    content: "";
    width: 28px;
    height: 1.5px;
    background: currentColor;
    display: inline-block;
}

/* Grain overlay used on dark hero sections */
.grain::after {
    content: "";
    position: absolute; inset: 0;
    z-index: -1;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.35 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
    opacity: .35;
    mix-blend-mode: overlay;
    pointer-events: none;
}

/* Header -------------------------------------------------- */

.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255,255,255,.88);
    backdrop-filter: saturate(140%) blur(12px);
    -webkit-backdrop-filter: saturate(140%) blur(12px);
    border-bottom: 1px solid rgba(15,17,21,.06);
}
.site-header a.nav-link { position: relative; }
.site-header a.nav-link::after {
    content: "";
    position: absolute; left: 0; right: 0; bottom: -6px;
    height: 2px;
    background: var(--brand-red);
    transform: scaleX(0); transform-origin: left;
    transition: transform .25s ease;
}
.site-header a.nav-link:hover::after,
.site-header a.nav-link.is-active::after { transform: scaleX(1); }

/* Mini-panier (header) ---------------------------------- */
.nav-cart-link {
    color: var(--ink);
    transition: color .15s ease;
    padding: 6px 8px;
    border-radius: 999px;
}
.nav-cart-link:hover { color: var(--brand-red); }
.nav-cart-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--brand-red);
    color: #fff;
    font-family: 'Oswald', sans-serif;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    position: absolute;
    top: -2px;
    right: -4px;
}

/* Primary button ----------------------------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: 'Oswald', sans-serif;
    font-weight: 500;
    font-size: 13px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 14px 22px;
    border-radius: 999px;
    line-height: 1;
    transition: transform .15s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
    white-space: nowrap;
}
.btn svg { width: 14px; height: 14px; }

.btn-primary {
    background: var(--brand-red);
    color: #fff;
    box-shadow: 0 8px 20px -10px rgba(177, 0, 26, .6);
}
.btn-primary:hover { background: var(--brand-red-deep); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0) scale(.99); }

.btn-ghost {
    background: transparent;
    color: var(--ink);
    box-shadow: inset 0 0 0 1.5px var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--paper); }

.btn-light {
    background: rgba(255,255,255,.12);
    color: #fff;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.35);
    backdrop-filter: blur(6px);
}
.btn-light:hover { background: #fff; color: var(--brand-red); }

.btn-lg { padding: 18px 30px; font-size: 14px; }

/* Stage card --------------------------------------------- */

.stage-card {
    position: relative;
    background: var(--white);
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s;
    display: flex;
    flex-direction: column;
    isolation: isolate;
}
.stage-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }

.stage-card .cover {
    position: relative;
    aspect-ratio: 5/3;
    overflow: hidden;
    background: #1a1a1a;
}
.stage-card .cover img,
.stage-card .cover .bg {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    background-size: cover;
    background-position: center;
    transition: transform .7s cubic-bezier(.2,.8,.2,1);
}
.stage-card:hover .cover img,
.stage-card:hover .cover .bg { transform: scale(1.06); }

.stage-card .cover::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(11,30,63,0) 45%, rgba(11,30,63,.65) 100%);
}

.stage-card .badges {
    position: absolute; top: 14px; left: 14px; right: 14px;
    display: flex; flex-wrap: wrap; gap: 6px;
    z-index: 2;
}

.tag {
    display: inline-flex; align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 999px;
    font-family: 'Oswald', sans-serif;
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 500;
    background: rgba(255,255,255,.92);
    color: var(--brand-navy);
    backdrop-filter: blur(4px);
}
.tag.is-red    { background: var(--brand-red); color: #fff; }
.tag.is-navy   { background: var(--brand-navy); color: #fff; }
.tag.is-gold   { background: var(--brand-gold); color: var(--ink); }
.tag.is-outline{ background: transparent; color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.6); }

.stage-card .date-block {
    position: absolute; left: 14px; bottom: 14px; z-index: 2;
    color: #fff;
    font-family: 'Oswald', sans-serif;
    display: flex; align-items: baseline; gap: 8px;
    text-shadow: 0 1px 2px rgba(0,0,0,.35);
}
.stage-card .date-block .day {
    font-size: 42px; line-height: .9; font-weight: 600;
    letter-spacing: -0.02em;
}
.stage-card .date-block .rest {
    font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase;
}

.stage-card .body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.stage-card h3 {
    font-family: 'Oswald', sans-serif;
    font-weight: 500;
    font-size: 22px;
    line-height: 1.15;
    letter-spacing: -0.005em;
    color: var(--ink);
}
.stage-card h3 a:hover { color: var(--brand-red); }
.stage-card .meta {
    display: flex; flex-wrap: wrap; gap: 14px;
    font-size: 13px;
    color: var(--ink-mute);
}
.stage-card .meta span { display: inline-flex; align-items: center; gap: 6px; }
.stage-card .meta svg { width: 14px; height: 14px; stroke: currentColor; }

.stage-card .footer {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px dashed var(--line);
    display: flex; align-items: center; justify-content: space-between;
}
.stage-card .price {
    font-family: 'Oswald', sans-serif;
    font-size: 26px;
    color: var(--brand-red);
    font-weight: 600;
    letter-spacing: -0.01em;
}
.stage-card .price small { font-size: 12px; color: var(--ink-mute); font-weight: 400; margin-left: 4px; }

.stage-card .arrow-cta {
    display: inline-flex; align-items: center; gap: 6px;
    font-family: 'Oswald', sans-serif;
    font-size: 12px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--brand-navy);
}
.stage-card .arrow-cta svg { transition: transform .2s ease; }
.stage-card:hover .arrow-cta svg { transform: translateX(4px); }

.stage-card .sold-out {
    position: absolute; top: 14px; right: 14px; z-index: 3;
    background: var(--ink); color: #fff;
    padding: 6px 12px; border-radius: 999px;
    font-family: 'Oswald', sans-serif;
    font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
}

/* Forms --------------------------------------------------- */

.field { display: flex; flex-direction: column; gap: 6px; }
.field > label {
    font-family: 'Oswald', sans-serif;
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-mute);
}
.field input,
.field select,
.field textarea,
input.input,
select.input,
textarea.input {
    width: 100%;
    padding: 12px 14px;
    border-radius: var(--r-md);
    border: 1.5px solid var(--line);
    background: #fff;
    font: inherit;
    color: var(--ink);
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus,
input.input:focus,
select.input:focus,
textarea.input:focus {
    outline: none;
    border-color: var(--brand-red);
    box-shadow: 0 0 0 4px rgba(177,0,26,.12);
}

.fieldset-card {
    background: #fff;
    border-radius: var(--r-lg);
    padding: 28px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-card);
}
.fieldset-card > legend {
    padding: 0 8px;
    font-family: 'Oswald', sans-serif;
    font-size: 13px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--brand-red);
    background: #fff;
}

/* Alerts -------------------------------------------------- */
.alert {
    border-radius: var(--r-md);
    padding: 14px 16px;
    font-size: 14px;
    border: 1.5px solid transparent;
    display: flex; gap: 10px; align-items: flex-start;
}
.alert-error   { background: #FDECEE; border-color: #F4B9BF; color: #7A0011; }
.alert-success { background: #E7F6EE; border-color: #A7D9BC; color: #0D5C33; }
.alert-info    { background: #EAF0FB; border-color: #B6C7E8; color: var(--brand-navy); }

/* Section dividers --------------------------------------- */
.section-title {
    display: flex; align-items: end; justify-content: space-between;
    gap: 24px;
    margin-bottom: 40px;
}
.section-title h2 {
    font-family: 'Oswald', sans-serif;
    font-size: clamp(32px, 4vw, 56px);
    line-height: 1;
    letter-spacing: -0.02em;
    color: var(--brand-navy);
    font-weight: 600;
}

/* Chip / filter pill ------------------------------------- */

.chip {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 16px;
    border-radius: 999px;
    background: #fff;
    border: 1.5px solid var(--line);
    font-size: 13px;
    color: var(--ink-soft);
    cursor: pointer;
    transition: all .2s ease;
}
.chip:hover { border-color: var(--ink); }
.chip.is-active {
    background: var(--ink);
    color: #fff;
    border-color: var(--ink);
}

/* Marquee / stats band ---------------------------------- */

.stat-band {
    background: var(--brand-navy);
    color: #fff;
    position: relative;
    overflow: hidden;
}
.stat-band .stat {
    display: flex; flex-direction: column; gap: 4px;
}
.stat-band .stat .n {
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    font-size: clamp(40px, 6vw, 72px);
    letter-spacing: -0.02em;
    line-height: 1;
    color: var(--brand-gold);
}
.stat-band .stat .l {
    font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; opacity: .8;
}

/* Hero ---------------------------------------------------- */

.hero {
    position: relative;
    color: #fff;
    isolation: isolate;
    overflow: hidden;
}
.hero-media {
    position: absolute; inset: 0;
    z-index: -2;
}
.hero-media img {
    width: 100%; height: 100%; object-fit: cover;
    transform: scale(1.02);
}
.hero::before {
    content: "";
    position: absolute; inset: 0; z-index: -1;
    background:
        radial-gradient(60% 60% at 20% 30%, rgba(177,0,26,.55), transparent 60%),
        linear-gradient(180deg, rgba(11,30,63,.25) 0%, rgba(11,30,63,.85) 100%);
}
.hero-inner { padding: 100px 0 120px; }
.hero h1 {
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    font-size: clamp(42px, 6.6vw, 92px);
    line-height: .95;
    letter-spacing: -0.02em;
    max-width: 18ch;
    text-wrap: balance;
}
.hero p.lede { max-width: 52ch; font-size: clamp(16px, 1.2vw, 19px); opacity: .92; line-height: 1.55; }

/* Footer -------------------------------------------------- */
.site-footer {
    background: var(--ink);
    color: #D9D7D2;
    position: relative;
    overflow: hidden;
}
.site-footer a { color: #D9D7D2; }
.site-footer a:hover { color: #fff; }
.site-footer .footer-contact p + p { margin-top: 1rem; }
.site-footer h4 {
    font-family: 'Oswald', sans-serif;
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #fff;
}
.site-footer .megatype {
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    font-size: clamp(60px, 12vw, 180px);
    line-height: .85;
    letter-spacing: -0.03em;
    color: rgba(255,255,255,.05);
    white-space: nowrap;
    position: absolute;
    bottom: -18px; left: -2vw; right: 0;
    pointer-events: none;
}

/* Status badges in account table */
.badge {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    font-family: 'Oswald', sans-serif;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 999px; background: currentColor; }
.badge-paid   { background: #E7F6EE; color: #0D5C33; }
.badge-wait   { background: #FEF0DC; color: #8A4B00; }
.badge-cancel { background: #F3F3F3; color: #444; }

/* Prose tweaks ------------------------------------------- */
.prose-ber { color: var(--ink-soft); line-height: 1.7; }
.prose-ber p { margin: 0 0 1em; }
.prose-ber h2 {
    font-family: 'Oswald', sans-serif;
    color: var(--brand-navy);
    font-size: 26px;
    letter-spacing: -0.01em;
    margin: 1.6em 0 0.6em;
}
.prose-ber h3 {
    font-family: 'Oswald', sans-serif;
    color: var(--brand-navy);
    font-size: 20px;
    margin: 1.4em 0 0.5em;
}
.prose-ber ul { list-style: none; padding: 0; margin: 0 0 1em; }
.prose-ber ul li {
    padding-left: 1.4em;
    position: relative;
    margin-bottom: .4em;
}
.prose-ber ul li::before {
    content: "";
    position: absolute; left: 0; top: .65em;
    width: 14px; height: 2px; background: var(--brand-red);
}

/* Image gallery strip */
.strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2px;
}
.strip .cell {
    aspect-ratio: 1/1;
    overflow: hidden;
    background: #222;
}
.strip .cell img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.strip .cell:hover img { transform: scale(1.05); }

/* Table polish */
.table-modern { width: 100%; border-collapse: separate; border-spacing: 0; }
.table-modern thead th {
    text-align: left;
    font-family: 'Oswald', sans-serif;
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-mute);
    padding: 14px 20px;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
}
.table-modern tbody td {
    padding: 18px 20px;
    border-bottom: 1px solid var(--line);
    font-size: 14px;
    color: var(--ink-soft);
}
.table-modern tbody tr:last-child td { border-bottom: 0; }
.table-modern tbody tr:hover td { background: #FBF8F2; }

/* Skip link for a11y */
.skip-link {
    position: fixed;
    top: -100px; left: 12px;
    background: var(--ink); color: #fff;
    padding: 10px 16px; border-radius: 8px;
    z-index: 1000;
    text-decoration: none;
    font-weight: 600;
    transition: top .15s ease;
}
.skip-link:focus-visible { top: 12px; outline: 2px solid var(--brand-gold); outline-offset: 2px; }

/* Bandeau « Aperçu admin » affiché en haut du layout public pour la route /admin/stage-preview/:id */
.admin-preview-bar {
    background: #0B1E3F;
    color: #fff;
    font-size: 13px;
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 40;
    border-bottom: 2px solid #F2B705;
}
.admin-preview-bar__label { display: inline-flex; align-items: center; gap: 8px; }
.admin-preview-bar__icon { width: 16px; height: 16px; }
.admin-preview-bar__label strong { color: #F2B705; font-weight: 700; }
.admin-preview-bar__back {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.25);
}
.admin-preview-bar__back:hover { background: rgba(255,255,255,0.08); }

/* Motion-safe animations */
@media (prefers-reduced-motion: no-preference) {
    .reveal { opacity: 0; transform: translateY(18px); transition: all .7s cubic-bezier(.2,.7,.2,1); }
    .reveal.in { opacity: 1; transform: none; }
}

/* =========================================================
   Stage timeline — central tree / vertical frieze
   ========================================================= */

.stage-timeline {
    position: relative;
    list-style: none;
    margin: 0 auto;
    padding: 72px 0 32px;
    max-width: 1180px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 96px;
    row-gap: 44px;
    align-items: start;
}

/* Central trunk */
.stage-timeline::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 1.5px;
    background: linear-gradient(
        180deg,
        transparent 0,
        var(--line) 56px,
        var(--line) calc(100% - 56px),
        transparent 100%
    );
    transform: translateX(-50%);
    pointer-events: none;
}

/* Week nodes span full width; their dot sits on the axis */
.stage-timeline__node {
    grid-column: 1 / -1;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 18px 0 4px;
    margin-top: 28px;
}
.stage-timeline__node:first-child { margin-top: 0; }

.stage-timeline__dot {
    width: 14px;
    height: 14px;
    border-radius: 999px;
    background: var(--paper);
    box-shadow:
        inset 0 0 0 2px var(--brand-red),
        0 0 0 8px var(--paper);
    position: relative;
    z-index: 2;
}

.stage-timeline__node-label {
    margin-top: 14px;
    background: var(--paper);
    padding: 4px 18px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    text-align: center;
}
.stage-timeline__week-num {
    font-family: 'Oswald', sans-serif;
    font-weight: 500;
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--brand-red);
}
.stage-timeline__week-date {
    font-family: 'Oswald', sans-serif;
    font-weight: 500;
    font-size: 20px;
    letter-spacing: -0.005em;
    color: var(--brand-navy);
}

/* Cards alternate sides. Each card branches off the axis with a thin line. */
.stage-timeline__item {
    position: relative;
    max-width: 460px;
    width: 100%;
}
.stage-timeline__item--left {
    grid-column: 1;
    justify-self: end;
    padding-right: 40px;
}
.stage-timeline__item--right {
    grid-column: 2;
    justify-self: start;
    padding-left: 40px;
}

/* Branch connector */
.stage-timeline__item::before {
    content: "";
    position: absolute;
    top: 56px;
    height: 1.5px;
    width: 40px;
    background: var(--line);
}
.stage-timeline__item--left::before { right: 0; }
.stage-timeline__item--right::before { left: 0; }

/* Small dot where the branch meets the axis, for a clean junction */
.stage-timeline__item::after {
    content: "";
    position: absolute;
    top: 52px;
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: var(--paper);
    box-shadow: inset 0 0 0 1.5px var(--line);
}
.stage-timeline__item--left::after { right: -3.5px; }
.stage-timeline__item--right::after { left: -3.5px; }

/* The card itself */
.stage-timeline__card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 28px 30px 26px;
    box-shadow:
        0 1px 2px rgba(11, 30, 63, .04),
        0 14px 36px -22px rgba(11, 30, 63, .28);
    transition: transform .25s cubic-bezier(.2,.8,.2,1),
                box-shadow .25s ease,
                border-color .25s ease;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.stage-timeline__item:hover .stage-timeline__card {
    transform: translateY(-3px);
    border-color: rgba(11, 30, 63, .18);
    box-shadow:
        0 2px 4px rgba(11, 30, 63, .05),
        0 28px 60px -24px rgba(11, 30, 63, .34);
}

.stage-timeline__card-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
}
.stage-timeline__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Oswald', sans-serif;
    font-weight: 500;
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--brand-red);
}
.stage-timeline__eyebrow::before {
    content: "";
    width: 18px;
    height: 1.5px;
    background: currentColor;
}
.stage-timeline__age {
    font-family: 'Oswald', sans-serif;
    font-weight: 500;
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--ink-mute);
}
.stage-timeline__flag {
    margin-left: auto;
    font-family: 'Oswald', sans-serif;
    font-weight: 500;
    font-size: 10.5px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 999px;
}
.stage-timeline__flag--full { background: var(--ink); color: #fff; }
.stage-timeline__flag--low  { background: var(--brand-gold); color: var(--ink); }

.stage-timeline__title {
    font-family: 'Oswald', sans-serif;
    font-weight: 500;
    font-size: 22px;
    line-height: 1.2;
    letter-spacing: -0.005em;
    color: var(--brand-navy);
    margin: 0;
}
.stage-timeline__title a { color: inherit; }
.stage-timeline__title a:hover { color: var(--brand-red); }

.stage-timeline__bullets {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 9px;
}
.stage-timeline__bullets li {
    position: relative;
    padding-left: 22px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--ink-soft);
}
.stage-timeline__bullets li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    width: 12px;
    height: 1.5px;
    background: var(--brand-red);
}

.stage-timeline__footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-top: 4px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}
.stage-timeline__price {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.stage-timeline__price-value {
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    font-size: 28px;
    letter-spacing: -0.01em;
    color: var(--brand-navy);
    line-height: 1;
}
.stage-timeline__price-label {
    font-family: 'Oswald', sans-serif;
    font-weight: 500;
    font-size: 10.5px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--ink-mute);
}
.stage-timeline__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 2px;
    font-family: 'Oswald', sans-serif;
    font-weight: 500;
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--brand-navy);
    border-bottom: 1.5px solid currentColor;
    transition: color .2s ease, border-color .2s ease;
}
.stage-timeline__cta svg {
    width: 14px;
    height: 14px;
    transition: transform .2s ease;
}
.stage-timeline__cta:hover { color: var(--brand-red); }
.stage-timeline__cta:hover svg { transform: translateX(3px); }
.stage-timeline__cta--muted {
    color: var(--ink-mute);
    border-color: var(--line);
}
.stage-timeline__cta--muted:hover { color: var(--ink); }

/* Tablet — narrower gutters, smaller padding, cards remain alternating */
@media (max-width: 1024px) {
    .stage-timeline {
        column-gap: 48px;
        padding-top: 56px;
    }
    .stage-timeline__item--left  { padding-right: 28px; }
    .stage-timeline__item--right { padding-left: 28px; }
    .stage-timeline__item::before { width: 28px; }
    .stage-timeline__card { padding: 24px 24px 22px; }
    .stage-timeline__title { font-size: 20px; }
}

/* Mobile — single column, axis pinned to the left, cards branch right */
@media (max-width: 720px) {
    .stage-timeline {
        grid-template-columns: 1fr;
        column-gap: 0;
        row-gap: 28px;
        padding: 36px 0 24px 0;
    }
    .stage-timeline::before {
        left: 28px;
        transform: none;
    }
    .stage-timeline__node {
        grid-column: 1;
        align-items: flex-start;
        padding: 8px 0 4px 64px;
        margin-top: 16px;
        min-height: 42px;
    }
    .stage-timeline__dot {
        position: absolute;
        left: 28px;
        top: 14px;
        transform: translateX(-50%);
    }
    .stage-timeline__node-label {
        margin: 0;
        padding: 0;
        background: transparent;
        align-items: flex-start;
        text-align: left;
    }
    .stage-timeline__item,
    .stage-timeline__item--left,
    .stage-timeline__item--right {
        grid-column: 1;
        justify-self: stretch;
        max-width: none;
        padding: 0 0 0 56px;
    }
    .stage-timeline__item::before {
        left: 28px;
        right: auto;
        width: 28px;
        top: 48px;
    }
    .stage-timeline__item::after {
        left: 24.5px;
        right: auto;
        top: 44px;
    }
    .stage-timeline__card { padding: 22px 22px 20px; }
    .stage-timeline__footer {
        flex-wrap: wrap;
        align-items: center;
    }
}

/* =========================================================
   Stage detail — premium product page
   ========================================================= */

.stage-hero {
    position: relative;
    color: #fff;
    isolation: isolate;
    overflow: hidden;
}
.stage-hero__media {
    position: absolute; inset: 0;
    z-index: -2;
}
.stage-hero__media img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center;
}
.stage-hero__overlay {
    position: absolute; inset: 0;
    background:
        linear-gradient(180deg, rgba(11,30,63,.35) 0%, rgba(11,30,63,.82) 55%, var(--brand-navy) 100%);
    z-index: -1;
}
.stage-hero__inner {
    padding: 72px 24px 40px;
}
.stage-hero__crumbs {
    font-size: 12px;
    letter-spacing: 0.08em;
    display: flex;
    gap: 10px;
    align-items: center;
    color: rgba(255,255,255,.7);
    margin-bottom: 32px;
}
.stage-hero__crumbs a {
    color: rgba(255,255,255,.7);
    transition: color .2s ease;
}
.stage-hero__crumbs a:hover { color: #fff; }
.stage-hero__crumbs span[aria-hidden] { opacity: .5; }

.stage-hero__eyebrow {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
    margin-bottom: 18px;
    font-family: 'Oswald', sans-serif;
    font-weight: 500;
    font-size: 12px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(255,255,255,.82);
}
.stage-hero__eyebrow span + span {
    position: relative;
    padding-left: 18px;
}
.stage-hero__eyebrow span + span::before {
    content: "";
    position: absolute; left: 0; top: 50%;
    width: 6px; height: 1.5px;
    background: currentColor;
    transform: translateY(-50%);
    opacity: .6;
}

.stage-hero__title {
    font-family: 'Oswald', sans-serif;
    font-weight: 500;
    font-size: clamp(34px, 5.2vw, 72px);
    line-height: 1;
    letter-spacing: -0.015em;
    max-width: 22ch;
    text-wrap: balance;
    margin: 0 0 44px;
}

/* Qualification ribbon — sits visually linked to the hero */
.stage-qualif {
    background: rgba(255,255,255,.06);
    backdrop-filter: blur(6px);
    border-top: 1px solid rgba(255,255,255,.12);
    border-bottom: 1px solid rgba(255,255,255,.12);
}
.stage-qualif__row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}
.stage-qualif__item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 22px 28px 22px 0;
    border-right: 1px solid rgba(255,255,255,.12);
}
.stage-qualif__item:last-child { border-right: 0; }
.stage-qualif__item:not(:first-child) { padding-left: 28px; }
.stage-qualif__label {
    font-family: 'Oswald', sans-serif;
    font-size: 10.5px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: rgba(255,255,255,.55);
}
.stage-qualif__value {
    font-family: 'Oswald', sans-serif;
    font-size: 17px;
    line-height: 1.25;
    letter-spacing: -0.002em;
    color: #fff;
}
.stage-qualif__value small {
    display: block;
    margin-top: 2px;
    font-size: 13px;
    font-weight: 400;
    color: rgba(255,255,255,.7);
    letter-spacing: 0.02em;
}

/* Main grid -------------------------------------------------- */
.stage-detail {
    padding: 72px 24px 96px;
}
.stage-detail__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 64px;
    /* align-items par défaut = stretch : l'aside prend la hauteur de la main column
       pour que la booking-card en position:sticky ait du scroll à accompagner. */
}
.stage-detail__main { min-width: 0; overflow-wrap: anywhere; }

/* Intro */
.stage-detail__intro { margin-bottom: 56px; }
.stage-detail__intro .eyebrow { margin-bottom: 16px; }
.stage-detail__lede {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 500;
    font-size: clamp(20px, 1.6vw, 24px);
    line-height: 1.5;
    color: var(--ink-soft);
    max-width: 58ch;
}
.stage-detail__lede p { margin: 0 0 .8em; }
.stage-detail__lede p:last-child { margin-bottom: 0; }

/* Editorial section blocks */
.stage-section {
    padding: 36px 0 32px;
    border-top: 1px solid var(--line);
}
.stage-section:first-of-type { border-top: 0; padding-top: 0; }

.stage-section__head {
    display: flex;
    gap: 22px;
    align-items: baseline;
    margin-bottom: 18px;
}
.stage-section__index {
    font-family: 'Oswald', sans-serif;
    font-weight: 500;
    font-size: 14px;
    color: var(--brand-red);
    letter-spacing: 0.06em;
    padding-top: 6px;
    min-width: 28px;
}
.stage-section__eyebrow {
    font-family: 'Oswald', sans-serif;
    font-weight: 500;
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--ink-mute);
    margin: 0 0 6px;
}
.stage-section__title {
    font-family: 'Oswald', sans-serif;
    font-weight: 500;
    font-size: clamp(24px, 2vw, 30px);
    line-height: 1.15;
    letter-spacing: -0.01em;
    color: var(--brand-navy);
    margin: 0;
}
.stage-section__lead {
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink-soft);
    max-width: 62ch;
    margin: 0 0 22px 50px;
}
.stage-section__list {
    list-style: none;
    padding: 0;
    margin: 0 0 0 50px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 40px;
    row-gap: 12px;
}
.stage-section__list li {
    position: relative;
    padding-left: 22px;
    font-size: 15px;
    line-height: 1.5;
    color: var(--ink-soft);
}
.stage-section__list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    width: 12px;
    height: 1.5px;
    background: var(--brand-red);
}
.stage-section__prose { margin-left: 50px; }

/* Booking sidebar ------------------------------------------- */
.stage-detail__aside {
    position: relative;
}
.booking-card {
    position: sticky;
    top: 96px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
    box-shadow:
        0 1px 2px rgba(11, 30, 63, .04),
        0 24px 60px -32px rgba(11, 30, 63, .4);
}
.booking-card__body { padding: 30px 28px 28px; }
.booking-card__eyebrow {
    font-family: 'Oswald', sans-serif;
    font-weight: 500;
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--ink-mute);
    margin: 0 0 6px;
}
.booking-card__price {
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    font-size: 48px;
    line-height: 1;
    letter-spacing: -0.018em;
    color: var(--brand-navy);
    margin: 0 0 6px;
}
.booking-card__meta {
    font-size: 13px;
    color: var(--ink-mute);
    margin: 0 0 22px;
}
.booking-card__list {
    margin: 0 0 22px;
    padding: 22px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.booking-card__list > div {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    font-size: 13.5px;
}
.booking-card__list dt {
    color: var(--ink-mute);
    font-weight: 400;
}
.booking-card__list dd {
    margin: 0;
    color: var(--ink);
    font-weight: 500;
    text-align: right;
}
.booking-card__places {
    margin-bottom: 22px;
}
.booking-card__places-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 13px;
    color: var(--ink-mute);
    margin-bottom: 8px;
}
.booking-card__places-row span:last-child { color: var(--ink); font-weight: 500; }
.booking-card__bar {
    height: 3px;
    border-radius: 999px;
    background: var(--line);
    overflow: hidden;
}
.booking-card__bar-fill {
    height: 100%;
    border-radius: inherit;
    transition: width .6s ease;
}

/* Quantity stepper */
.booking-card__qty {
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}
.booking-card__qty-label {
    font-family: 'Oswald', sans-serif;
    font-weight: 500;
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--ink-mute);
}
.qty-stepper {
    display: inline-flex;
    align-items: center;
    border: 1.5px solid var(--line);
    border-radius: 999px;
    overflow: hidden;
    background: #fff;
}
.qty-stepper__btn {
    width: 36px;
    height: 36px;
    background: transparent;
    border: 0;
    font-size: 18px;
    line-height: 1;
    color: var(--ink);
    cursor: pointer;
    transition: background .15s ease, color .15s ease;
}
.qty-stepper__btn:hover { background: var(--paper-2); color: var(--brand-red); }
.qty-stepper input {
    width: 44px;
    border: 0;
    background: transparent;
    text-align: center;
    font-family: 'Oswald', sans-serif;
    font-weight: 500;
    font-size: 16px;
    color: var(--ink);
    -moz-appearance: textfield;
}
.qty-stepper input::-webkit-outer-spin-button,
.qty-stepper input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.qty-stepper input:focus { outline: none; }

.booking-card__cta {
    width: 100%;
}
.booking-card__waitlist {
    display: block;
    text-align: center;
    margin-top: 12px;
    font-size: 13px;
    color: var(--brand-red);
}
.booking-card__waitlist:hover { text-decoration: underline; }

.booking-card__trust {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: var(--paper);
    color: var(--ink-mute);
    font-size: 12px;
    letter-spacing: 0.08em;
    border-top: 1px solid var(--line);
}

/* Responsive ------------------------------------------------- */

@media (max-width: 1100px) {
    .stage-detail__grid {
        grid-template-columns: minmax(0, 1fr) 340px;
        gap: 48px;
    }
}

@media (max-width: 900px) {
    .stage-hero__inner { padding: 56px 24px 32px; }
    .stage-qualif__row {
        grid-template-columns: repeat(2, 1fr);
    }
    .stage-qualif__item {
        padding: 18px 20px;
        border-right: 1px solid rgba(255,255,255,.12);
        border-bottom: 1px solid rgba(255,255,255,.12);
    }
    .stage-qualif__item:nth-child(2n) { border-right: 0; }
    .stage-qualif__item:nth-last-child(-n+2) { border-bottom: 0; }
    .stage-qualif__item:not(:first-child) { padding-left: 20px; }

    .stage-detail { padding: 48px 24px 80px; }
    .stage-detail__grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    /* Move the booking card up close to the top on mobile */
    .stage-detail__aside { order: -1; }
    .booking-card { position: static; }

    .stage-section__head { gap: 16px; }
    .stage-section__index { padding-top: 4px; }
    .stage-section__lead,
    .stage-section__prose,
    .stage-section__list {
        margin-left: 0;
    }
    .stage-section__list { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
    .stage-qualif__row { grid-template-columns: 1fr; }
    .stage-qualif__item,
    .stage-qualif__item:nth-child(2n) {
        border-right: 0;
        border-bottom: 1px solid rgba(255,255,255,.12);
    }
    .stage-qualif__item:last-child { border-bottom: 0; }
    .stage-qualif__item:not(:first-child) { padding-left: 0; }
    .stage-qualif__item { padding: 16px 0; }

    .stage-hero__title { font-size: clamp(30px, 9vw, 44px); }
    .booking-card__price { font-size: 40px; }
}

/* =========================================================
   Panier / Cart
   ========================================================= */

.cart-head {
    background: #fff;
    border-bottom: 1px solid var(--line);
}
.cart-head__inner {
    padding: 48px 24px 40px;
}

/* Step indicator */
.cart-head__steps {
    margin-bottom: 28px;
}
.cart-head__steps ol {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 10px 22px;
    flex-wrap: wrap;
    align-items: center;
}
.cart-head__steps li {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Oswald', sans-serif;
    font-weight: 500;
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--ink-mute);
    position: relative;
}
.cart-head__steps li:not(:last-child)::after {
    content: "";
    display: inline-block;
    width: 26px;
    height: 1.5px;
    background: var(--line);
    margin-left: 12px;
}
.cart-head__steps .step-num {
    width: 24px; height: 24px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 999px;
    background: var(--paper-2);
    color: var(--ink-mute);
    font-size: 12px;
    letter-spacing: 0;
}
.cart-head__steps .is-current { color: var(--brand-navy); }
.cart-head__steps .is-current .step-num {
    background: var(--brand-navy);
    color: #fff;
}

.cart-head__title {
    font-family: 'Oswald', sans-serif;
    font-weight: 500;
    font-size: clamp(36px, 5vw, 64px);
    line-height: 1;
    letter-spacing: -0.015em;
    color: var(--brand-navy);
    margin: 0 0 16px;
}
.cart-head__subtitle {
    max-width: 58ch;
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink-soft);
    margin: 0;
}

/* Main grid */
.cart-grid {
    margin-top: 44px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 56px;
    align-items: start;
}

.cart-main { min-width: 0; display: flex; flex-direction: column; gap: 32px; }

/* Main booking line */
.cart-booking {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 0;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(11,30,63,.04);
    transition: box-shadow .25s ease, border-color .25s ease;
}
.cart-booking:hover {
    box-shadow: 0 2px 4px rgba(11,30,63,.05), 0 24px 48px -28px rgba(11,30,63,.28);
    border-color: rgba(11,30,63,.15);
}
.cart-booking__media {
    background-size: cover;
    background-position: center;
    background-color: var(--brand-navy);
    min-height: 260px;
    position: relative;
}
.cart-booking__media::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(11,30,63,.0) 40%, rgba(11,30,63,.25) 100%);
}
.cart-booking__content {
    padding: 28px 32px 26px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cart-booking__head { display: flex; flex-direction: column; gap: 6px; }
.cart-booking__eyebrow {
    font-family: 'Oswald', sans-serif;
    font-weight: 500;
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--brand-red);
    margin: 0;
}
.cart-booking__title {
    font-family: 'Oswald', sans-serif;
    font-weight: 500;
    font-size: clamp(22px, 2vw, 28px);
    line-height: 1.15;
    letter-spacing: -0.01em;
    color: var(--brand-navy);
    margin: 0;
}
.cart-booking__title a { color: inherit; }
.cart-booking__title a:hover { color: var(--brand-red); }
.cart-booking__sub {
    margin: 0;
    font-size: 14px;
    color: var(--ink-mute);
}

.cart-booking__meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px 28px;
    margin: 0;
    padding: 18px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.cart-booking__meta > div { display: flex; flex-direction: column; gap: 2px; }
.cart-booking__meta dt {
    font-family: 'Oswald', sans-serif;
    font-size: 10.5px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--ink-mute);
}
.cart-booking__meta dd {
    margin: 0;
    font-size: 14px;
    color: var(--ink);
    line-height: 1.4;
}

.cart-booking__footer {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 16px 28px;
}
.cart-booking__qty { display: flex; flex-direction: column; gap: 6px; }
.cart-booking__qty-label {
    font-family: 'Oswald', sans-serif;
    font-size: 10.5px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--ink-mute);
}
.cart-booking__actions {
    display: flex;
    gap: 18px;
    align-items: center;
}
.cart-booking__link {
    background: transparent;
    border: 0;
    padding: 0;
    font-family: 'Oswald', sans-serif;
    font-weight: 500;
    font-size: 11.5px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink-mute);
    cursor: pointer;
    border-bottom: 1.5px solid transparent;
    transition: color .15s, border-color .15s;
}
.cart-booking__link:hover { color: var(--brand-navy); border-color: var(--brand-navy); }
.cart-booking__link.is-danger:hover { color: var(--brand-red); border-color: var(--brand-red); }

.cart-booking__price {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}
.cart-booking__unit {
    font-size: 11.5px;
    color: var(--ink-mute);
    letter-spacing: 0.02em;
}
.cart-booking__total {
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    font-size: 26px;
    letter-spacing: -0.01em;
    color: var(--brand-navy);
    line-height: 1;
}

/* Add-ons */
.cart-addons {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 32px 32px 28px;
    box-shadow: 0 1px 2px rgba(11,30,63,.04);
}
.cart-addons__head { margin-bottom: 22px; }
.cart-addons__head .eyebrow { margin-bottom: 12px; }
.cart-addons__title {
    font-family: 'Oswald', sans-serif;
    font-weight: 500;
    font-size: clamp(22px, 1.8vw, 28px);
    color: var(--brand-navy);
    letter-spacing: -0.005em;
    margin: 0 0 10px;
}
.cart-addons__lead {
    font-size: 14.5px;
    color: var(--ink-soft);
    line-height: 1.6;
    max-width: 58ch;
    margin: 0;
}

.cart-addons__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
}
.cart-addon {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 20px 32px;
    padding: 20px 0;
    border-top: 1px solid var(--line);
}
.cart-addon:first-child { border-top: 0; }
.cart-addon__main { min-width: 0; }
.cart-addon__title {
    font-family: 'Oswald', sans-serif;
    font-weight: 500;
    font-size: 16px;
    color: var(--brand-navy);
    margin: 0 0 4px;
    letter-spacing: -0.005em;
}
.cart-addon__lead {
    margin: 0;
    font-size: 13.5px;
    color: var(--ink-soft);
    line-height: 1.5;
    max-width: 62ch;
}

/* Neutralise le <p> wrapper du WYSIWYG dans les contextes compacts
   (description d'un addon en ligne, carousel, fiche stage). Le contenu
   éditorial est rendu en raw HTML comme les autres champs _html. */
.wysiwyg-inline > p:first-child { margin-top: 0; }
.wysiwyg-inline > p:last-child  { margin-bottom: 0; }
.wysiwyg-inline p { margin: 0.3em 0; }
.cart-addon__price {
    font-family: 'Oswald', sans-serif;
    font-weight: 500;
    font-size: 18px;
    color: var(--ink);
    white-space: nowrap;
}

/* Compact qty stepper used inside add-ons */
.qty-stepper--compact .qty-stepper__btn { width: 32px; height: 32px; font-size: 16px; }
.qty-stepper--compact input { width: 36px; font-size: 14px; }

/* Toggle switch for binary add-ons */
.cart-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}
.cart-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.cart-toggle__switch {
    width: 40px; height: 22px;
    border-radius: 999px;
    background: var(--line);
    position: relative;
    transition: background .2s ease;
}
.cart-toggle__switch::after {
    content: "";
    position: absolute;
    top: 2px; left: 2px;
    width: 18px; height: 18px;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(11,30,63,.2);
    transition: transform .2s ease;
}
.cart-toggle input:checked + .cart-toggle__switch { background: var(--brand-navy); }
.cart-toggle input:checked + .cart-toggle__switch::after { transform: translateX(18px); }
.cart-toggle input:focus-visible + .cart-toggle__switch {
    box-shadow: 0 0 0 3px rgba(177, 0, 26, .2);
}
.cart-toggle__label {
    font-family: 'Oswald', sans-serif;
    font-weight: 500;
    font-size: 11.5px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink-mute);
}

.cart-main__cta-mobile { display: none; }

/* Summary sidebar ------------------------------------------ */
.cart-summary-wrap { position: relative; }
.cart-summary {
    position: sticky;
    top: 96px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 30px 28px 26px;
    box-shadow:
        0 1px 2px rgba(11,30,63,.04),
        0 24px 60px -32px rgba(11,30,63,.4);
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.cart-summary__eyebrow {
    font-family: 'Oswald', sans-serif;
    font-weight: 500;
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--ink-mute);
    margin: 0;
}
.cart-summary__rows {
    margin: 0;
    padding: 16px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.cart-summary__rows > div {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    font-size: 14px;
    color: var(--ink-soft);
}
.cart-summary__rows dt { margin: 0; }
.cart-summary__rows dt span { color: var(--ink-mute); font-size: 12.5px; margin-left: 6px; }
.cart-summary__rows dd { margin: 0; color: var(--ink); font-weight: 500; }

.cart-summary__total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    font-family: 'Oswald', sans-serif;
    font-weight: 500;
}
.cart-summary__total > span:first-child {
    font-size: 14px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-mute);
}
.cart-summary__total > span:last-child {
    font-size: 32px;
    font-weight: 600;
    letter-spacing: -0.012em;
    color: var(--brand-navy);
    line-height: 1;
}
.cart-summary__note {
    margin: 0;
    font-size: 12.5px;
    color: var(--ink-mute);
}
.cart-summary__cta { width: 100%; }

.cart-summary__trust {
    list-style: none;
    padding: 16px 0 0;
    margin: 0;
    border-top: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.cart-summary__trust li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--ink-soft);
}
.cart-summary__trust svg {
    color: var(--brand-red);
    flex-shrink: 0;
}

.cart-summary__secure {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding-top: 14px;
    border-top: 1px dashed var(--line);
    font-size: 12px;
    color: var(--ink-mute);
    letter-spacing: 0.04em;
}

/* Responsive ------------------------------------------------ */

@media (max-width: 1100px) {
    .cart-grid {
        grid-template-columns: minmax(0, 1fr) 340px;
        gap: 40px;
    }
}

@media (max-width: 900px) {
    .cart-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .cart-summary-wrap { order: -1; }
    .cart-summary { position: static; }

    .cart-booking {
        grid-template-columns: 1fr;
    }
    .cart-booking__media { min-height: 180px; }
    .cart-booking__content { padding: 24px 22px 22px; }

    .cart-booking__meta {
        grid-template-columns: 1fr 1fr;
    }
    .cart-booking__footer {
        grid-template-columns: 1fr;
        align-items: start;
        gap: 20px;
    }
    .cart-booking__price { align-items: flex-start; }

    .cart-addons { padding: 24px 22px 20px; }
    .cart-addon {
        grid-template-columns: 1fr auto;
        grid-template-areas:
            "main main"
            "action price";
        gap: 14px;
    }
    .cart-addon__main   { grid-area: main; }
    .cart-addon__price  { grid-area: price; justify-self: end; align-self: center; }
    .cart-addon__action { grid-area: action; }

    /* Repeat CTA under cart on mobile for easy reach */
    .cart-main__cta-mobile {
        display: block;
        margin-top: 8px;
    }
    .cart-main__cta-mobile .btn { width: 100%; }
}

@media (max-width: 560px) {
    .cart-booking__meta { grid-template-columns: 1fr; }
    .cart-summary__total > span:last-child { font-size: 28px; }
}

/* ============================================================
   Stage detail — photo par section (figure) + booking-card enrichie
   ============================================================ */
.stage-section__media {
    margin: 14px 0 18px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: #f6f4ef;
}
/* Image affichée entière, à la largeur de la colonne (pas de bandeau rogné). */
.stage-section__media img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 640px;
    object-fit: contain;
    margin-inline: auto;
}

/* Booking-card : contenu plus long, autorise le scroll interne si nécessaire */
.booking-card {
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    overflow-x: hidden;
}

/* Sections d'addons dans la booking-card */
.booking-card__addons {
    margin-top: 22px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}
.booking-card__addons + .booking-card__addons {
    margin-top: 16px;
}
.booking-card__addons-title {
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--brand-navy);
    margin: 0 0 12px;
}

/* Un item (option ou produit) dans la booking-card */
.addon-row {
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
}
.addon-row:last-child {
    border-bottom: 0;
}
.addon-row__head {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: space-between;
}
.addon-row__info {
    min-width: 0;
    flex: 1;
}
.addon-row__title {
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.08em;
    color: var(--ink);
    margin: 0;
    line-height: 1.25;
}
.addon-row__price {
    font-size: 13px;
    color: var(--ink);
    margin: 2px 0 0;
}
.addon-row__price small {
    font-size: 10px;
    color: var(--ink-mute);
    margin-left: 2px;
    letter-spacing: 0.12em;
}
.addon-row__details {
    margin-top: 6px;
}
.addon-row__details summary {
    cursor: pointer;
    font-size: 11px;
    color: var(--brand-red);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    list-style: none;
}
.addon-row__details summary::-webkit-details-marker { display: none; }
.addon-row__details[open] summary::after { content: ' ▴'; }
.addon-row__details:not([open]) summary::after { content: ' ▾'; }
.addon-row__desc {
    margin-top: 6px;
    font-size: 12px;
    color: var(--ink-mute);
    line-height: 1.5;
}

/* ============================================================
   Panier — "Complétez votre commande" (carousel produits globaux)
   ============================================================ */
.panier-cross-sell {
    margin-top: 36px;
    padding-top: 28px;
    border-top: 1px solid var(--line);
}
.panier-cross-sell__head { margin-bottom: 16px; }
.panier-cross-sell__title {
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    font-size: 22px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--brand-navy);
    margin: 4px 0 0;
}
.panier-cross-sell__wrap {
    position: relative;
}
.panier-cross-sell__track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 4px 2px 12px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}
.panier-cross-sell__track::-webkit-scrollbar { height: 6px; }
.panier-cross-sell__track::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }
.panier-cross-sell__card {
    flex: 0 0 220px;
    scroll-snap-align: start;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.panier-cross-sell__media {
    width: 100%;
    height: 160px;
    background: #f3efe6;
    overflow: hidden;
}
.panier-cross-sell__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.panier-cross-sell__body {
    padding: 12px 14px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}
.panier-cross-sell__name {
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.04em;
    margin: 0;
    line-height: 1.25;
}
.panier-cross-sell__desc {
    font-size: 12px;
    color: var(--ink-mute);
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.panier-cross-sell__price {
    font-weight: 600;
    color: var(--ink);
    margin-top: auto;
}
.panier-cross-sell__cta { width: 100%; }
.panier-cross-sell__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: #fff;
    font-size: 22px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.panier-cross-sell__nav:hover { background: var(--paper); }
.panier-cross-sell__nav--prev { left: -18px; }
.panier-cross-sell__nav--next { right: -18px; }
@media (max-width: 720px) {
    .panier-cross-sell__nav { display: none; }
    .panier-cross-sell__card { flex: 0 0 70%; }
}

/* =========================================================
   Admin back-office — CMS / operations dashboard
   Scoped under body.admin-body so the shell reads as a tool,
   not a public page.
   ========================================================= */

body.admin-body {
    --admin-bg:       #F4F1EA;
    --admin-surface:  #FFFFFF;
    --admin-surface-2:#FBF8F2;
    --admin-border:   #E2DCCF;
    --admin-border-soft: #EDE7DA;
    --admin-ink:      #14181F;
    --admin-ink-soft: #2B3240;
    --admin-mute:     #6A7180;
    --admin-mute-2:   #9098A6;
    --admin-nav:      #0B1E3F;
    --admin-nav-soft: #122B55;
    --admin-nav-hover:#17356A;
    --admin-accent:   #B1001A;
    --admin-accent-2: #F2B705;
    --admin-good:     #0D6A3B;
    --admin-good-bg:  #E3F3EA;
    --admin-warn:     #8A4B00;
    --admin-warn-bg:  #FDEED4;
    --admin-bad:      #8B0A18;
    --admin-bad-bg:   #FCE4E7;
    --admin-info:     #1E4A8A;
    --admin-info-bg:  #E6EEFB;

    background: var(--admin-bg);
    color: var(--admin-ink);
    font-feature-settings: "ss01", "cv11", "tnum";
}

/* Shell ----------------------------------------------------- */

.admin-shell {
    display: grid;
    grid-template-columns: 248px minmax(0, 1fr);
    min-height: 100dvh;
}

/* Sidebar --------------------------------------------------- */

.admin-side {
    position: sticky;
    top: 0;
    align-self: start;
    height: 100dvh;
    background: var(--admin-nav);
    color: #E9EDF5;
    display: flex;
    flex-direction: column;
    border-right: 1px solid rgba(255,255,255,.06);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,.18) transparent;
}

.admin-side__brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 22px 22px 20px;
    border-bottom: 1px solid rgba(255,255,255,.07);
}
.admin-side__brand img {
    width: 40px; height: 40px;
    border-radius: 10px;
    background: #fff;
    padding: 4px;
    object-fit: contain;
}
.admin-side__brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}
.admin-side__brand-title {
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    letter-spacing: 0.04em;
    font-size: 15px;
    color: #fff;
}
.admin-side__brand-sub {
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255,255,255,.5);
    margin-top: 3px;
}

.admin-side__group { padding: 18px 12px 4px; }
.admin-side__group-label {
    font-family: 'Oswald', sans-serif;
    font-size: 10.5px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(255,255,255,.36);
    padding: 0 10px 10px;
}

.admin-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 0 8px;
}
.admin-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    color: rgba(255,255,255,.78);
    font-size: 14px;
    font-weight: 500;
    transition: background .15s ease, color .15s ease;
    position: relative;
}
.admin-nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.admin-nav a.is-active { background: var(--admin-nav-hover); color: #fff; }
.admin-nav a.is-active::before {
    content: "";
    position: absolute;
    left: 0; top: 10px; bottom: 10px;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: var(--admin-accent);
}
.admin-nav__icon {
    width: 18px; height: 18px;
    flex: 0 0 18px;
    stroke: currentColor;
    stroke-width: 1.6;
    fill: none;
    opacity: .9;
}
.admin-nav__badge {
    margin-left: auto;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.06em;
    background: rgba(255,255,255,.1);
    color: #fff;
    padding: 2px 8px;
    border-radius: 999px;
    font-variant-numeric: tabular-nums;
}
.admin-nav__badge.is-warn { background: var(--admin-accent-2); color: var(--admin-ink); }

.admin-side__foot {
    margin-top: auto;
    padding: 16px;
    border-top: 1px solid rgba(255,255,255,.07);
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.admin-side__user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 4px;
    font-size: 13px;
}
.admin-side__avatar {
    width: 34px; height: 34px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--admin-accent) 0%, #7A0011 100%);
    color: #fff;
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px;
    flex: 0 0 34px;
}
.admin-side__user-name { color: #fff; font-weight: 500; line-height: 1.2; }
.admin-side__user-mail {
    display: block;
    color: rgba(255,255,255,.5);
    font-size: 11.5px;
    margin-top: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 150px;
}
.admin-side__links {
    display: flex;
    gap: 14px;
    font-size: 11.5px;
    padding: 4px 4px 0;
    color: rgba(255,255,255,.55);
}
.admin-side__links a { color: inherit; }
.admin-side__links a:hover { color: #fff; }

/* Main area ------------------------------------------------- */

.admin-main {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 100dvh;
}

.admin-topbar {
    background: rgba(255,255,255,.72);
    backdrop-filter: saturate(140%) blur(12px);
    -webkit-backdrop-filter: saturate(140%) blur(12px);
    border-bottom: 1px solid var(--admin-border);
    position: sticky; top: 0; z-index: 40;
}
.admin-topbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 14px 32px;
}
.admin-crumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    color: var(--admin-mute);
}
.admin-crumbs a { color: var(--admin-mute); }
.admin-crumbs a:hover { color: var(--admin-ink); }
.admin-crumbs__sep { color: var(--admin-mute-2); }
.admin-crumbs__current { color: var(--admin-ink); font-weight: 500; }

.admin-topbar__tools { display: flex; align-items: center; gap: 10px; }
.admin-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--admin-surface);
    border: 1px solid var(--admin-border);
    font-size: 12px;
    color: var(--admin-mute);
}
.admin-pill .dot { width: 7px; height: 7px; border-radius: 999px; background: var(--admin-good); }

.admin-content {
    padding: 32px 40px 64px;
    max-width: 1480px;
    width: 100%;
}

/* Page header ----------------------------------------------- */

.admin-page-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--admin-border);
}
.admin-page-head__left { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.admin-eyebrow {
    font-family: 'Oswald', sans-serif;
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--admin-mute);
}
.admin-page-title {
    font-family: 'Oswald', sans-serif;
    font-weight: 500;
    font-size: clamp(26px, 2.4vw, 34px);
    line-height: 1.1;
    letter-spacing: -0.012em;
    color: var(--admin-ink);
    margin: 0;
}
.admin-page-head__lead {
    font-size: 14px;
    color: var(--admin-mute);
    max-width: 60ch;
    margin: 2px 0 0;
    line-height: 1.55;
}
.admin-page-head__right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

/* Buttons --------------------------------------------------- */

.admin-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 13px;
    letter-spacing: 0.01em;
    line-height: 1;
    border: 1px solid transparent;
    background: transparent;
    cursor: pointer;
    transition: transform .12s ease, background .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
    white-space: nowrap;
    color: var(--admin-ink);
    text-decoration: none;
}
.admin-btn svg { width: 15px; height: 15px; stroke-width: 1.8; fill: none; stroke: currentColor; }
.admin-btn:active { transform: translateY(1px); }
.admin-btn--primary {
    background: var(--admin-ink);
    color: #fff;
    box-shadow: 0 1px 0 rgba(11,30,63,.1), 0 8px 20px -12px rgba(11,30,63,.35);
}
.admin-btn--primary:hover { background: #000; color: #fff; }
.admin-btn--accent {
    background: var(--admin-accent);
    color: #fff;
    box-shadow: 0 1px 0 rgba(177,0,26,.15), 0 10px 20px -12px rgba(177,0,26,.45);
}
.admin-btn--accent:hover { background: #7A0011; color: #fff; }
.admin-btn--ghost {
    background: var(--admin-surface);
    border-color: var(--admin-border);
    color: var(--admin-ink-soft);
}
.admin-btn--ghost:hover { border-color: var(--admin-ink); color: var(--admin-ink); }
.admin-btn--subtle { background: transparent; color: var(--admin-mute); }
.admin-btn--subtle:hover { color: var(--admin-ink); background: var(--admin-border-soft); }
.admin-btn--danger { background: transparent; color: var(--admin-bad); }
.admin-btn--danger:hover { background: var(--admin-bad-bg); color: var(--admin-bad); }
.admin-btn--sm { padding: 7px 12px; font-size: 12px; border-radius: 8px; }

/* KPI cards ------------------------------------------------- */

.admin-kpis {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}
.admin-kpi {
    background: var(--admin-surface);
    border: 1px solid var(--admin-border);
    border-radius: 14px;
    padding: 20px 22px 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: relative;
    transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.admin-kpi:hover {
    border-color: rgba(11,30,63,.16);
    box-shadow: 0 1px 2px rgba(11,30,63,.04), 0 14px 28px -20px rgba(11,30,63,.25);
}
.admin-kpi__label {
    font-family: 'Oswald', sans-serif;
    font-size: 10.5px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--admin-mute);
}
.admin-kpi__value {
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    font-size: 40px;
    line-height: 1;
    letter-spacing: -0.02em;
    color: var(--admin-ink);
    font-variant-numeric: tabular-nums;
    margin-top: 2px;
}
.admin-kpi__value--good   { color: var(--admin-good); }
.admin-kpi__value--warn   { color: var(--admin-warn); }
.admin-kpi__value--accent { color: var(--admin-accent); }
.admin-kpi__foot {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    font-size: 12px;
    color: var(--admin-mute);
}
.admin-kpi__icon {
    position: absolute;
    top: 18px; right: 18px;
    width: 32px; height: 32px;
    border-radius: 10px;
    background: var(--admin-border-soft);
    color: var(--admin-ink-soft);
    display: flex; align-items: center; justify-content: center;
}
.admin-kpi__icon svg { width: 16px; height: 16px; stroke-width: 1.8; fill: none; stroke: currentColor; }

/* Panels ---------------------------------------------------- */

.admin-panel {
    background: var(--admin-surface);
    border: 1px solid var(--admin-border);
    border-radius: 14px;
    overflow: hidden;
}
.admin-panel + .admin-panel { margin-top: 20px; }
.admin-panel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 22px;
    border-bottom: 1px solid var(--admin-border);
    background: var(--admin-surface);
}
.admin-panel__title {
    font-family: 'Oswald', sans-serif;
    font-weight: 500;
    font-size: 15px;
    letter-spacing: 0.02em;
    color: var(--admin-ink);
    margin: 0;
}
.admin-panel__sub {
    font-size: 12.5px;
    color: var(--admin-mute);
    margin: 2px 0 0;
}
.admin-panel__body { padding: 22px; }
.admin-panel__body--flush { padding: 0; }

/* Filter bar ------------------------------------------------ */

.admin-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 12px 16px;
    padding: 16px 22px;
    background: var(--admin-surface);
    border: 1px solid var(--admin-border);
    border-radius: 14px;
    margin-bottom: 16px;
}
.admin-filters__field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 180px;
}
.admin-filters__field label {
    font-family: 'Oswald', sans-serif;
    font-size: 10.5px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--admin-mute);
}
.admin-filters__spacer { flex: 1; }
.admin-filters__actions { display: flex; gap: 8px; align-items: flex-end; }

/* Form controls --------------------------------------------- */

.admin-input,
.admin-select,
.admin-textarea {
    width: 100%;
    padding: 9px 12px;
    min-height: 38px;
    border-radius: 8px;
    border: 1px solid #BDB29A;
    background: var(--admin-surface);
    color: var(--admin-ink);
    font: 400 14px/1.4 'Inter', system-ui, sans-serif;
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
    -webkit-appearance: none;
    appearance: none;
}
.admin-input:hover,
.admin-select:hover,
.admin-textarea:hover { border-color: #8F8566; }
.admin-input:focus,
.admin-select:focus,
.admin-textarea:focus {
    outline: none;
    border-color: var(--admin-nav);
    box-shadow: 0 0 0 3px rgba(11,30,63,.14);
}
.admin-textarea { min-height: 96px; line-height: 1.55; padding-top: 10px; }
.admin-input--mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; letter-spacing: 0; }
.admin-select {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none' stroke='%236A7180' stroke-width='1.8'><path d='M3 4.5 6 7.5 9 4.5'/></svg>");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 34px;
}

.admin-field { display: flex; flex-direction: column; gap: 6px; }
.admin-field > label {
    font-family: 'Inter', sans-serif;
    font-size: 12.5px;
    font-weight: 500;
    color: var(--admin-ink-soft);
    letter-spacing: 0.01em;
}
.admin-field__hint {
    font-size: 12px;
    color: var(--admin-mute);
    line-height: 1.45;
    margin: 0;
}
.admin-field__hint a { color: var(--admin-info); text-decoration: underline; text-underline-offset: 2px; }

.admin-check {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 10px;
    background: var(--admin-surface-2);
    border: 1px solid var(--admin-border);
    font-size: 13px;
    color: var(--admin-ink-soft);
    cursor: pointer;
    user-select: none;
}
.admin-check input { accent-color: var(--admin-accent); width: 16px; height: 16px; }
.admin-check:has(input:checked) { border-color: var(--admin-nav); background: #EEF2FA; color: var(--admin-ink); }

/* Form section (fieldset-style grouping) -------------------- */

.admin-form {
    background: var(--admin-surface);
    border: 1px solid var(--admin-border);
    border-radius: 14px;
    overflow: hidden;
}
.admin-form__section {
    padding: 26px 28px;
    border-top: 1px solid var(--admin-border-soft);
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 32px;
}
.admin-form__section:first-child { border-top: 0; }
.admin-form__section-head { display: flex; flex-direction: column; gap: 4px; }
.admin-form__section-title {
    font-family: 'Oswald', sans-serif;
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0.04em;
    color: var(--admin-ink);
    margin: 0;
    text-transform: uppercase;
}
.admin-form__section-sub {
    font-size: 12.5px;
    color: var(--admin-mute);
    line-height: 1.5;
    max-width: 34ch;
    margin: 0;
}
.admin-form__grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr));
}
.admin-form__grid--one { --cols: 1; }
.admin-form__grid--three { --cols: 3; }
.admin-form__grid .span-2 { grid-column: span 2; }
.admin-form__grid .span-full { grid-column: 1 / -1; }

.admin-form__actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 16px 28px;
    background: var(--admin-surface-2);
    border-top: 1px solid var(--admin-border);
    position: sticky;
    bottom: 0;
}
.admin-form__actions-right { display: flex; gap: 10px; align-items: center; }

/* Editorial block — stage sections (grey cards inside form) - */

.admin-block {
    background: var(--admin-surface-2);
    border: 1px solid var(--admin-border-soft);
    border-radius: 12px;
    padding: 18px 20px 20px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 18px;
}
.admin-block__head {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: -4px;
}
.admin-block__title {
    font-family: 'Oswald', sans-serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--admin-ink);
    margin: 0;
}
.admin-block__chip {
    font-size: 10.5px;
    color: var(--admin-mute);
    letter-spacing: 0.08em;
    padding: 2px 8px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--admin-border);
}
.admin-block__aside { display: flex; flex-direction: column; gap: 6px; }
.admin-block__aside-label {
    font-size: 11px;
    font-weight: 500;
    color: var(--admin-mute);
    letter-spacing: 0.04em;
}
.admin-block__thumb {
    width: 100%;
    height: 110px;
    border-radius: 8px;
    border: 1px solid var(--admin-border);
    background: #F3EFE6 center/cover no-repeat;
    overflow: hidden;
}
.admin-block__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

@media (max-width: 900px) {
    .admin-block { grid-template-columns: 1fr; }
}

/* Ligne « Informations complémentaires » : réutilise la carte grise mais pas sa grille 2 colonnes. */
.admin-block.cf-row { display: block; }
.cf-row [hidden] { display: none; }

/* Data table ------------------------------------------------ */

.admin-table-wrap { overflow-x: auto; }
.admin-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 13.5px;
    color: var(--admin-ink-soft);
}
.admin-table thead th {
    text-align: left;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--admin-mute);
    font-weight: 500;
    padding: 12px 18px;
    background: var(--admin-surface-2);
    border-bottom: 1px solid var(--admin-border);
    white-space: nowrap;
}
.admin-table tbody td {
    padding: 14px 18px;
    border-bottom: 1px solid var(--admin-border-soft);
    vertical-align: middle;
}
.admin-table tbody tr:last-child td { border-bottom: 0; }
.admin-table tbody tr:hover td { background: #FBF8F2; }
.admin-table td.is-num,
.admin-table th.is-num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.admin-table td.is-right,
.admin-table th.is-right { text-align: right; }
.admin-table td.is-actions { text-align: right; white-space: nowrap; }
.admin-table td.is-actions a,
.admin-table td.is-actions button {
    font-size: 12px;
    color: var(--admin-mute);
    margin-left: 10px;
    transition: color .15s ease;
    background: transparent;
    border: 0;
    cursor: pointer;
}
.admin-table td.is-actions a:first-child,
.admin-table td.is-actions button:first-child { margin-left: 0; }
.admin-table td.is-actions a:hover { color: var(--admin-ink); }
.admin-table td.is-actions .danger:hover { color: var(--admin-bad); }
.admin-table td.is-mono,
.admin-table th.is-mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 12px;
    color: var(--admin-ink-soft);
    letter-spacing: 0;
}
.admin-table .cell-title {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.admin-table .cell-title strong {
    color: var(--admin-ink);
    font-weight: 500;
    font-size: 14px;
}
.admin-table .cell-title small {
    color: var(--admin-mute);
    font-size: 11.5px;
    letter-spacing: 0.02em;
}
.admin-table .cell-id {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 11.5px;
    color: var(--admin-mute);
}
.admin-table tr.admin-row--member td { background: #FBF8F2; }
.admin-table tr.admin-row--member.is-hidden { display: none; }
.admin-row-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: 0;
    padding: 0;
    font: inherit;
    color: var(--admin-ink);
    cursor: pointer;
}
.admin-row-toggle__chevron {
    display: inline-block;
    font-size: 10px;
    color: var(--admin-mute);
    transition: transform .15s ease;
}

/* Status pills --------------------------------------------- */

.admin-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px 3px 8px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 500;
    letter-spacing: 0.02em;
    background: var(--admin-border-soft);
    color: var(--admin-ink-soft);
    white-space: nowrap;
}
.admin-status::before {
    content: "";
    width: 6px; height: 6px; border-radius: 999px;
    background: currentColor;
    opacity: .9;
}
.admin-status--good   { background: var(--admin-good-bg);  color: var(--admin-good); }
.admin-status--warn   { background: var(--admin-warn-bg);  color: var(--admin-warn); }
.admin-status--bad    { background: var(--admin-bad-bg);   color: var(--admin-bad); }
.admin-status--info   { background: var(--admin-info-bg);  color: var(--admin-info); }
.admin-status--muted  { background: var(--admin-border-soft); color: var(--admin-mute); }
.admin-status--accent { background: #FDEDEF; color: var(--admin-accent); }

.admin-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 500;
    background: var(--admin-border-soft);
    color: var(--admin-ink-soft);
}
.admin-tag--option  { background: #EAE8FB; color: #3F36B5; }
.admin-tag--produit { background: #FCEFD7; color: #8A4B00; }
.admin-tag--global  { background: var(--admin-border-soft); color: var(--admin-mute); font-style: italic; }

/* Places bar ------------------------------------------------ */

.admin-bar {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 110px;
}
.admin-bar__label {
    font-size: 11.5px;
    color: var(--admin-mute);
    font-variant-numeric: tabular-nums;
}
.admin-bar__track {
    height: 4px;
    border-radius: 999px;
    background: var(--admin-border-soft);
    overflow: hidden;
}
.admin-bar__fill {
    height: 100%;
    background: var(--admin-nav);
    border-radius: inherit;
    transition: width .4s ease;
}
.admin-bar__fill--warn { background: var(--admin-accent-2); }
.admin-bar__fill--bad  { background: var(--admin-accent); }

/* Empty state ----------------------------------------------- */

.admin-empty {
    padding: 56px 24px;
    text-align: center;
    color: var(--admin-mute);
}
.admin-empty__icon {
    width: 44px; height: 44px;
    margin: 0 auto 14px;
    border-radius: 12px;
    background: var(--admin-border-soft);
    display: flex; align-items: center; justify-content: center;
    color: var(--admin-mute);
}
.admin-empty__icon svg { width: 20px; height: 20px; stroke-width: 1.6; fill: none; stroke: currentColor; }
.admin-empty__title {
    color: var(--admin-ink);
    font-family: 'Oswald', sans-serif;
    font-size: 17px;
    font-weight: 500;
    letter-spacing: 0.02em;
    margin: 0 0 4px;
}
.admin-empty__sub { font-size: 13px; margin: 0 0 16px; }

/* Alerts (admin variants) ----------------------------------- */

.admin-alert {
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 13.5px;
    line-height: 1.5;
    border: 1px solid transparent;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 16px;
}
.admin-alert--error   { background: var(--admin-bad-bg);  border-color: #F3BEC4; color: var(--admin-bad); }
.admin-alert--success { background: var(--admin-good-bg); border-color: #B6DEC4; color: var(--admin-good); }
.admin-alert--info    { background: var(--admin-info-bg); border-color: #B8CEF0; color: var(--admin-info); }
.admin-alert ul { margin: 0; padding-left: 18px; }

/* Tabs (filter chips) --------------------------------------- */

.admin-chips {
    display: inline-flex;
    gap: 4px;
    padding: 4px;
    background: var(--admin-border-soft);
    border-radius: 999px;
    flex-wrap: wrap;
}
.admin-chip {
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 12.5px;
    color: var(--admin-mute);
    background: transparent;
    border: 0;
    cursor: pointer;
    transition: background .15s ease, color .15s ease;
    text-decoration: none;
}
.admin-chip:hover { color: var(--admin-ink); }
.admin-chip.is-active {
    background: var(--admin-surface);
    color: var(--admin-ink);
    box-shadow: 0 1px 2px rgba(11,30,63,.08);
}

/* Media library --------------------------------------------- */

.admin-media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 14px;
}
.admin-media {
    background: var(--admin-surface);
    border: 1px solid var(--admin-border);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.admin-media:hover {
    border-color: rgba(11,30,63,.2);
    transform: translateY(-2px);
    box-shadow: 0 1px 2px rgba(11,30,63,.04), 0 10px 24px -16px rgba(11,30,63,.22);
}
.admin-media__thumb {
    aspect-ratio: 4/3;
    overflow: hidden;
    background: #EDE7DA;
}
.admin-media__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.admin-media__body {
    padding: 10px 12px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}
.admin-media__name {
    font-size: 12.5px;
    color: var(--admin-ink);
    font-weight: 500;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.admin-media__meta {
    font-size: 11px;
    color: var(--admin-mute);
}
.admin-media__actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 4px;
    font-size: 11.5px;
    color: var(--admin-mute);
}
.admin-media__actions a { color: var(--admin-ink-soft); }
.admin-media__actions a:hover { color: var(--admin-accent); }
.admin-media__actions button { color: var(--admin-mute); background: transparent; border: 0; cursor: pointer; font-size: inherit; }
.admin-media__actions button:hover { color: var(--admin-bad); }

/* Home-blocks cards ----------------------------------------- */

.admin-blocks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 14px;
}
.admin-block-card {
    background: var(--admin-surface);
    border: 1px solid var(--admin-border);
    border-radius: 12px;
    padding: 16px 18px;
    display: flex;
    gap: 14px;
    transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
    flex-direction: column;
}
.admin-block-card:hover {
    border-color: rgba(11,30,63,.18);
    box-shadow: 0 1px 2px rgba(11,30,63,.04), 0 10px 22px -16px rgba(11,30,63,.2);
}
.admin-block-card__top { display: flex; gap: 14px; }
.admin-block-card__thumb {
    width: 76px; height: 76px;
    border-radius: 10px;
    background: var(--admin-border-soft) center/cover no-repeat;
    border: 1px solid var(--admin-border);
    flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    color: var(--admin-mute-2);
    font-size: 10.5px;
    text-align: center;
    overflow: hidden;
}
.admin-block-card__thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.admin-block-card__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1; }
.admin-block-card__code {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 10.5px;
    letter-spacing: 0.04em;
    color: var(--admin-mute);
    text-transform: uppercase;
}
.admin-block-card__title {
    font-family: 'Oswald', sans-serif;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.01em;
    color: var(--admin-ink);
    line-height: 1.2;
    margin: 2px 0 0;
}
.admin-block-card__sub {
    font-size: 12.5px;
    color: var(--admin-mute);
    line-height: 1.45;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.admin-block-card__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px dashed var(--admin-border);
    font-size: 12px;
}
.admin-block-card__foot a { color: var(--admin-ink-soft); display: inline-flex; align-items: center; gap: 4px; }
.admin-block-card__foot a:hover { color: var(--admin-accent); }

/* Upload zone ----------------------------------------------- */

.admin-upload {
    border: 1.5px dashed var(--admin-border);
    border-radius: 12px;
    padding: 18px;
    background: var(--admin-surface-2);
    transition: border-color .15s ease, background .15s ease;
}
.admin-upload:hover { border-color: var(--admin-mute-2); background: #FCFAF5; }
.admin-upload input[type="file"] {
    font-size: 13px;
    color: var(--admin-ink-soft);
}

/* Media detail layout --------------------------------------- */

.admin-media-detail {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 22px;
    align-items: start;
}
.admin-media-detail__preview {
    background: var(--admin-surface);
    border: 1px solid var(--admin-border);
    border-radius: 14px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.admin-media-detail__preview img {
    width: 100%;
    border-radius: 10px;
    background: var(--admin-border-soft);
    display: block;
}
.admin-media-detail__meta {
    font-size: 12px;
    color: var(--admin-mute);
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 6px 12px;
}
.admin-media-detail__meta code {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    color: var(--admin-ink-soft);
    background: var(--admin-surface-2);
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 11.5px;
    overflow-wrap: anywhere;
}

/* Tags row -------------------------------------------------- */

.admin-tags-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

/* Responsive ------------------------------------------------ */

@media (max-width: 1100px) {
    .admin-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .admin-form__section { grid-template-columns: 1fr; gap: 14px; }
}

@media (max-width: 860px) {
    .admin-shell { grid-template-columns: 1fr; }
    .admin-side {
        position: static;
        height: auto;
        border-right: 0;
        border-bottom: 1px solid rgba(255,255,255,.07);
    }
    .admin-nav { flex-direction: row; overflow-x: auto; padding: 6px 10px 10px; }
    .admin-nav a { flex-shrink: 0; }
    .admin-nav a.is-active::before { display: none; }
    .admin-side__foot { padding: 12px 16px; flex-direction: row; align-items: center; justify-content: space-between; }
    .admin-side__group { padding: 6px 4px 4px; }
    .admin-side__group-label { display: none; }
    .admin-content { padding: 22px 18px 56px; }
    .admin-topbar__inner { padding: 10px 16px; }
    .admin-media-detail { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
    .admin-kpis { grid-template-columns: 1fr; }
    .admin-page-head { flex-direction: column; align-items: flex-start; gap: 14px; }
    .admin-form__actions { flex-direction: column-reverse; align-items: stretch; gap: 10px; }
    .admin-form__actions-right { justify-content: flex-end; }
}

/* Paginator ------------------------------------------------- */
.admin-paginator {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 16px;
    border-top: 1px solid rgba(255,255,255,.06);
    color: rgba(255,255,255,.72);
    font-size: .9rem;
}
.admin-paginator__info strong { color: rgba(255,255,255,.92); }
.admin-paginator__pages {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}
.admin-paginator__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    padding: 5px 10px;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,.08);
    color: rgba(255,255,255,.82);
    text-decoration: none;
    font-size: .85rem;
    transition: background-color .15s ease, border-color .15s ease;
}
.admin-paginator__link:hover { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.16); }
.admin-paginator__link.is-current {
    background: var(--admin-accent, #c4ff3d);
    color: #0a0a0a;
    border-color: transparent;
    font-weight: 600;
}
.admin-paginator__link.is-disabled { opacity: .35; pointer-events: none; }
.admin-paginator__ellipsis { color: rgba(255,255,255,.4); padding: 0 4px; }
.admin-paginator__per-page { display: flex; align-items: center; gap: 8px; }
.admin-select--sm { padding: 4px 8px; font-size: .85rem; }

/* Sortable table headers ----------------------------------- */
.admin-sort { cursor: pointer; }
.admin-sort__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: inherit;
    text-decoration: none;
}
.admin-sort__link:hover { color: rgba(255,255,255,.98); }
.admin-sort.is-active .admin-sort__link { color: var(--admin-accent, #c4ff3d); }
.admin-sort__arrow { font-size: .65rem; opacity: .8; }
.admin-sort.is-num .admin-sort__link { justify-content: flex-end; }

/* Filters: compact chips -------------------------------- */
.admin-filters__search {
    flex: 2;
    min-width: 220px;
}
.admin-filters__field input[type="text"],
.admin-filters__field input[type="date"],
.admin-filters__field input[type="search"] {
    width: 100%;
    padding: 8px 10px;
    border-radius: 6px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    color: rgba(255,255,255,.92);
    font-size: .9rem;
}
.admin-filters__field input:focus {
    outline: none;
    border-color: var(--admin-accent, #c4ff3d);
    background: rgba(255,255,255,.06);
}

/* ------------------------------------------------------------------
   Indicateur de force du mot de passe (public + admin)
   ------------------------------------------------------------------ */
.pwd-strength {
    margin-top: 8px;
    font-size: .85rem;
    line-height: 1.45;
}
.pwd-strength__label {
    margin: 0 0 6px;
    font-weight: 600;
    opacity: .8;
}
.pwd-strength__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 4px;
}
.pwd-strength__list li {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6B6F78;
    transition: color .15s ease;
}
.pwd-strength__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    border-radius: 50%;
    border: 1.5px solid currentColor;
    background: transparent;
    position: relative;
}
.pwd-strength__list li.is-invalid {
    color: #C11E2C;
}
.pwd-strength__list li.is-invalid .pwd-strength__icon::before,
.pwd-strength__list li.is-invalid .pwd-strength__icon::after {
    content: "";
    position: absolute;
    inset: 3px;
    border-top: 1.5px solid currentColor;
    top: 50%;
    left: 3px;
    right: 3px;
    bottom: auto;
    transform-origin: center;
}
.pwd-strength__list li.is-invalid .pwd-strength__icon::before {
    transform: rotate(45deg);
}
.pwd-strength__list li.is-invalid .pwd-strength__icon::after {
    transform: rotate(-45deg);
}
.pwd-strength__list li.is-valid {
    color: #0D7A3A;
}
.pwd-strength__list li.is-valid .pwd-strength__icon {
    background: #0D7A3A;
    border-color: #0D7A3A;
}
.pwd-strength__list li.is-valid .pwd-strength__icon::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 4px;
    height: 7px;
    border-right: 1.5px solid #fff;
    border-bottom: 1.5px solid #fff;
    transform: translate(-50%, -60%) rotate(45deg);
}

/* Variante admin (fond sombre) : on inverse quelques contrastes. */
.admin-page .pwd-strength__list li,
.admin-form .pwd-strength__list li {
    color: rgba(255,255,255,.6);
}
.admin-page .pwd-strength__list li.is-invalid,
.admin-form .pwd-strength__list li.is-invalid {
    color: #ff7a86;
}
.admin-page .pwd-strength__list li.is-valid,
.admin-form .pwd-strength__list li.is-valid {
    color: #7adf9a;
}
.admin-page .pwd-strength__list li.is-valid .pwd-strength__icon,
.admin-form .pwd-strength__list li.is-valid .pwd-strength__icon {
    background: #7adf9a;
    border-color: #7adf9a;
}
.admin-page .pwd-strength__list li.is-valid .pwd-strength__icon::before,
.admin-form .pwd-strength__list li.is-valid .pwd-strength__icon::before {
    border-color: #0b1e3f;
}


/* ------------------------------------------------------------------
 * Switch (toggle) — champs custom type="switch" + usage admin.
 * ------------------------------------------------------------------ */
.cf-switch { position: relative; display: inline-block; width: 42px; height: 24px; }
.cf-switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 2; }
.cf-switch__track {
    position: absolute; inset: 0;
    background: #d8d3c9; border-radius: 999px;
    transition: background 0.15s ease;
}
.cf-switch__thumb {
    position: absolute; left: 3px; top: 3px;
    width: 18px; height: 18px; border-radius: 50%;
    background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,0.2);
    transition: transform 0.15s ease;
}
.cf-switch input:checked + .cf-switch__track { background: #B1001A; }
.cf-switch input:checked + .cf-switch__track .cf-switch__thumb { transform: translateX(18px); }
.cf-switch input:focus-visible + .cf-switch__track { outline: 2px solid #0b1e3f; outline-offset: 2px; }

/* ------------------------------------------------------------------
   Gestion administrative d'un dossier d'inscription
   Grille de cartes d'action (encaissement, relances, note, zone
   sensible) affichée sur la fiche détail.
   ------------------------------------------------------------------ */

.admin-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.admin-action-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px;
    border: 1px solid var(--admin-border-soft);
    border-radius: 10px;
    background: var(--admin-bg);
}
.admin-action-card h3 {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: var(--admin-ink);
}
.admin-action-card__hint {
    margin: 0;
    font-size: 12.5px;
    line-height: 1.5;
    color: var(--admin-ink-soft);
}
.admin-action-card .admin-field { margin: 0; }
.admin-action-card .admin-btn { align-self: flex-start; margin-top: auto; }

.admin-action-card--danger {
    border-color: #F3BEC4;
    background: var(--admin-bad-bg);
}
.admin-action-card--danger h3 { color: var(--admin-bad); }

.admin-field__opt {
    font-weight: 400;
    color: var(--admin-mute);
}

/* Barre d'actions groupées (liste des inscriptions) ---------- */

.admin-bulkbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border: 1px solid var(--admin-border-soft);
    border-radius: 10px;
    background: var(--admin-bg);
    margin-bottom: 12px;
}
.admin-bulkbar__count {
    font-size: 13px;
    font-weight: 600;
    color: var(--admin-ink);
    white-space: nowrap;
}
/* Les selects de la barre ne doivent pas s'étirer : sans cela ils occupent
   toute la ligne et rejettent le bouton d'application en dessous. */
.admin-bulkbar .admin-select {
    flex: 0 0 auto;
    width: auto;
    min-width: 190px;
}
.admin-bulkbar__spacer { flex: 1 1 auto; }
.admin-bulkbar[hidden] { display: none; }

/* Feuille d'émargement (impression) -------------------------- */

.print-sheet {
    max-width: 1000px;
    margin: 0 auto;
    padding: 24px;
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    color: #111;
    background: #fff;
}
.print-sheet__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    border-bottom: 2px solid #111;
    padding-bottom: 12px;
    margin-bottom: 18px;
}
.print-sheet h1 { margin: 0 0 4px; font-size: 20px; }
.print-sheet__meta { margin: 0; font-size: 13px; color: #555; }
.print-sheet table { width: 100%; border-collapse: collapse; font-size: 12px; }
.print-sheet th,
.print-sheet td {
    border: 1px solid #bbb;
    padding: 6px 8px;
    text-align: left;
    vertical-align: top;
}
.print-sheet th { background: #f0f0f0; font-weight: 700; }
.print-sheet .sign-cell { width: 130px; height: 34px; }
.print-sheet .warn { color: #B1001A; font-weight: 600; }
.print-sheet__actions { margin-bottom: 18px; display: flex; gap: 8px; }

/* La page d'impression est servie hors du layout admin : les variables
   --admin-* ne sont pas définies ici, donc on style ses boutons en dur. */
.print-sheet__actions .admin-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 8px;
    border: 1px solid #d5d0c6;
    background: #fff;
    color: #14181F;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}
.print-sheet__actions .admin-btn:hover { background: #f4f1ea; }
.print-sheet__actions .admin-btn--primary {
    background: #B1001A;
    border-color: #B1001A;
    color: #fff;
}
.print-sheet__actions .admin-btn--primary:hover { background: #8f0015; }

@media print {
    .print-sheet__actions { display: none; }
    .print-sheet { padding: 0; max-width: none; }
    .print-sheet table { font-size: 11px; }
    thead { display: table-header-group; }
    tr { break-inside: avoid; }
}
