/* Site public : accueil, calendrier, événements, résultats, contact. Couleurs alignées sur l'application (app.css). */

:root {
    --pub-accent: #e63338;
    --pub-accent-rgb: 230, 51, 56;
    --pub-accent-hover: #c4262b;
    --pub-accent-soft: #fdecec;
    --pub-dark: #121212;
    --pub-bg: #f5f5f5;
    --pub-grey: #9aa0a6;
    --pub-font-heading: "Montserrat", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --pub-surface: #ffffff;
    --pub-border: #e6e8ec;
    --pub-text: #101828;
    --pub-text-secondary: #344054;
    --pub-muted: #667085;
    --pub-radius: 14px;
    --pub-radius-sm: 10px;
    --pub-shadow-sm: 0 1px 3px rgba(16, 24, 40, .07), 0 1px 2px rgba(16, 24, 40, .04);
    --pub-shadow-md: 0 12px 28px -12px rgba(16, 24, 40, .18);
    --pub-shadow-lg: 0 24px 48px -16px rgba(16, 24, 40, .3);

    --bs-body-font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --bs-body-color: var(--pub-text);
    --bs-body-bg: var(--pub-surface);
    --bs-secondary-color: var(--pub-muted);
    --bs-link-color-rgb: var(--pub-accent-rgb);
    --bs-link-hover-color-rgb: 196, 38, 43;
    --bs-border-color: var(--pub-border);
    --bs-primary-rgb: var(--pub-accent-rgb);
    --bs-focus-ring-color: rgba(var(--pub-accent-rgb), .25);
}

.public-site { font-feature-settings: "cv11", "ss01"; -webkit-font-smoothing: antialiased; }
.public-site h1, .public-site h2, .public-site h3 { font-family: var(--pub-font-heading); letter-spacing: -.02em; }
.text-secondary { color: var(--pub-muted) !important; }

.btn { border-radius: var(--pub-radius-sm); font-weight: 600; }
.btn-primary {
    --bs-btn-bg: var(--pub-accent); --bs-btn-border-color: var(--pub-accent);
    --bs-btn-hover-bg: var(--pub-accent-hover); --bs-btn-hover-border-color: var(--pub-accent-hover);
    --bs-btn-active-bg: var(--pub-accent-hover); --bs-btn-active-border-color: var(--pub-accent-hover);
    --bs-btn-disabled-bg: var(--pub-accent); --bs-btn-disabled-border-color: var(--pub-accent);
}
.btn-outline-primary {
    --bs-btn-color: var(--pub-accent); --bs-btn-border-color: rgba(var(--pub-accent-rgb), .45);
    --bs-btn-hover-bg: var(--pub-accent); --bs-btn-hover-border-color: var(--pub-accent);
    --bs-btn-active-bg: var(--pub-accent-hover); --bs-btn-active-border-color: var(--pub-accent-hover);
}
.btn-outline-secondary { --bs-btn-color: var(--pub-text-secondary); --bs-btn-border-color: var(--pub-border); --bs-btn-hover-bg: #f2f4f7; --bs-btn-hover-color: var(--pub-text); --bs-btn-hover-border-color: #d0d5dd; }
.form-control, .form-select { border-radius: var(--pub-radius-sm); border-color: #d0d5dd; padding: .6rem .85rem; }
.form-control:focus, .form-select:focus { border-color: var(--pub-accent); box-shadow: 0 0 0 3px rgba(var(--pub-accent-rgb), .2); }
.form-label { font-weight: 600; color: var(--pub-text-secondary); font-size: .9rem; }
.form-check-input:checked { background-color: var(--pub-accent); border-color: var(--pub-accent); }
.badge { font-weight: 600; border-radius: 999px; padding: .4em .75em; }
.badge.text-bg-light { background: #f2f4f7 !important; color: var(--pub-text-secondary) !important; }
.badge .bi { margin-right: .2em; }

.skip-link { position: absolute; z-index: 1100; left: 12px; top: 12px; padding: 8px 14px; background: #fff; border-radius: 8px; box-shadow: var(--pub-shadow-md); }

.narrow { max-width: 820px; }
.narrow-lg { max-width: 980px; }

/* ---------- En-tête ---------- */
.site-header { background: rgba(255, 255, 255, .92); backdrop-filter: saturate(180%) blur(10px); border-bottom: 1px solid var(--pub-border); }
.site-header .navbar { padding: .65rem 0; }
.site-brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--pub-font-heading); font-weight: 800; font-style: italic; font-size: 1.05rem; text-transform: uppercase; letter-spacing: -.01em; color: var(--pub-text); text-decoration: none; }
.site-brand img { border-radius: 8px; object-fit: contain; }
.site-brand-light { color: #fff; }
.site-footer-logo { display: inline-block; margin-bottom: 14px; }
.site-footer-logo img { width: 160px; height: auto; }
.site-tagline { margin: 0 0 12px; font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--pub-accent); }
.site-header .nav-link { font-weight: 600; color: var(--pub-text-secondary); border-radius: 8px; padding: .45rem .8rem !important; }
.site-header .nav-link:hover { color: var(--pub-text); background: #f2f4f7; }
.site-header .nav-link.active { color: var(--pub-accent); background: var(--pub-accent-soft); }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section-muted { background: var(--pub-bg); }
.section-heading { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 32px; }
.section-heading h2 { font-weight: 800; font-size: clamp(1.5rem, 2.5vw, 2rem); margin: 0 0 4px; }
.section-heading p { color: var(--pub-muted); margin: 0; }
.section-overline { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--pub-accent); margin-bottom: 12px; }
.display-title { font-weight: 800; font-size: clamp(1.75rem, 3vw, 2.5rem); line-height: 1.15; margin-bottom: 16px; }

.empty-block { text-align: center; padding: 48px 24px; background: var(--pub-bg); border: 1px dashed #d0d5dd; border-radius: var(--pub-radius); color: var(--pub-muted); }
.empty-block > .bi { font-size: 2rem; display: block; margin-bottom: 8px; color: #98a2b3; }
.empty-block p { margin: 0; }

/* ---------- Accueil ---------- */
.hero {
    position: relative; overflow: hidden; color: #fff; padding: 88px 0 96px;
    background:
        radial-gradient(60% 70% at 100% 0%, rgba(var(--pub-accent-rgb), .55), transparent 70%),
        radial-gradient(50% 60% at 0% 100%, rgba(229, 72, 77, .28), transparent 70%),
        var(--pub-dark);
}
.hero::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, #000, transparent 75%);
    mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, #000, transparent 75%);
}
.hero .container { position: relative; }
.hero-overline { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .16); font-size: .85rem; font-weight: 600; margin-bottom: 20px; }
.hero-overline .bi { color: #fdb022; }
.hero-title { font-weight: 800; font-size: clamp(2rem, 4.4vw, 3.4rem); line-height: 1.08; margin-bottom: 20px; }
.hero-lead { font-size: 1.15rem; color: rgba(255, 255, 255, .75); max-width: 620px; margin-bottom: 28px; }
.hero-search { position: relative; display: flex; gap: 8px; max-width: 600px; padding: 6px; background: #fff; border-radius: 14px; box-shadow: var(--pub-shadow-lg); }
.hero-search > .bi { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); color: var(--pub-muted); }
.hero-search input { flex: 1; min-width: 0; border: 0; outline: 0; padding: 10px 10px 10px 40px; font-size: 1rem; color: var(--pub-text); background: transparent; }
.hero-search .btn { padding: 10px 20px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 8px 28px; list-style: none; padding: 0; margin: 28px 0 0; color: rgba(255, 255, 255, .7); }
.hero-stats strong { color: #fff; font-size: 1.25rem; margin-right: 4px; }
.hero-visual { border-radius: 18px; padding: 10px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); box-shadow: var(--pub-shadow-lg); transform: perspective(1200px) rotateY(-8deg) rotateX(3deg); }
.hero-visual img { display: block; width: 100%; height: auto; border-radius: 12px; }

.feature { height: 100%; padding: 24px; border-radius: var(--pub-radius); background: var(--pub-surface); border: 1px solid var(--pub-border); transition: transform .2s, box-shadow .2s; }
.feature:hover { transform: translateY(-3px); box-shadow: var(--pub-shadow-md); }
.feature-icon { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 12px; background: var(--pub-accent-soft); color: var(--pub-accent); font-size: 1.35rem; margin-bottom: 16px; }
.feature h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 6px; }
.feature p { color: var(--pub-muted); margin: 0; font-size: .95rem; }

.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { position: relative; padding: 7px 0 7px 32px; color: var(--pub-text-secondary); }
.check-list li::before { content: "\F26A"; font-family: "bootstrap-icons"; position: absolute; left: 0; top: 6px; color: #12b76a; font-size: 1.1rem; }
.screenshot-frame { padding: 12px; border-radius: 18px; background: var(--pub-bg); border: 1px solid var(--pub-border); box-shadow: var(--pub-shadow-md); }
.screenshot-frame img { border-radius: 10px; }

.faq .accordion-item { border: 1px solid var(--pub-border); border-radius: var(--pub-radius-sm) !important; margin-bottom: 10px; overflow: hidden; }
.faq .accordion-button { font-weight: 600; font-size: 1rem; }
.faq .accordion-button:not(.collapsed) { background: var(--pub-accent-soft); color: var(--pub-text); box-shadow: none; }
.faq .accordion-button:focus { box-shadow: 0 0 0 3px rgba(var(--pub-accent-rgb), .2); }
.faq .accordion-body { color: var(--pub-text-secondary); }

.cta-band { padding: 0 0 72px; }
.section-muted + .cta-band { background: var(--pub-bg); }
.cta-band-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding: 40px; border-radius: 20px; color: #fff; background: radial-gradient(70% 120% at 100% 0%, rgba(255, 255, 255, .18), transparent 60%), linear-gradient(135deg, var(--pub-accent), #8f1418); box-shadow: var(--pub-shadow-md); }
.cta-band h2 { font-weight: 800; margin: 0 0 6px; }
.cta-band p { margin: 0; color: rgba(255, 255, 255, .8); }

/* ---------- Carte d'événement ---------- */
.event-card { position: relative; display: flex; flex-direction: column; height: 100%; background: var(--pub-surface); border: 1px solid var(--pub-border); border-radius: var(--pub-radius); overflow: hidden; transition: transform .2s, box-shadow .2s, border-color .2s; }
.event-card:hover { transform: translateY(-4px); box-shadow: var(--pub-shadow-md); border-color: rgba(var(--pub-accent-rgb), .3); }
.event-card-media { position: relative; display: block; aspect-ratio: 16 / 10; background: var(--pub-bg); overflow: hidden; }
.event-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.event-card:hover .event-card-media img { transform: scale(1.04); }
.event-card-media.is-logo { background: radial-gradient(80% 80% at 50% 40%, #fff, var(--pub-bg)); border-bottom: 1px solid var(--pub-border); }
.event-card-media.is-logo img { object-fit: contain; padding: 20px 84px; }
.event-card-date { position: absolute; left: 14px; top: 14px; display: flex; flex-direction: column; align-items: center; min-width: 54px; padding: 6px 8px; border-radius: 10px; background: #fff; box-shadow: var(--pub-shadow-md); line-height: 1.05; }
.event-card-date .day { font-size: 1.35rem; font-weight: 800; }
.event-card-date .month { font-size: .72rem; font-weight: 700; text-transform: uppercase; color: var(--pub-accent); }
.event-card-body { display: flex; flex-direction: column; flex: 1; padding: 18px 20px 20px; }
.event-card-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.event-card-title { font-size: 1.15rem; font-weight: 700; margin: 0 0 10px; }
.event-card-title a { color: inherit; text-decoration: none; }
.event-card-meta { list-style: none; padding: 0; margin: 0 0 12px; color: var(--pub-muted); font-size: .9rem; }
.event-card-meta li { display: flex; gap: 8px; padding: 2px 0; }
.event-card-distances { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--pub-border); font-weight: 600; color: var(--pub-text-secondary); font-size: .9rem; }

/* ---------- Carte de résultat ---------- */
.result-item { position: relative; display: flex; align-items: center; gap: 16px; height: 100%; padding: 16px 18px; background: var(--pub-surface); border: 1px solid var(--pub-border); border-radius: var(--pub-radius); transition: box-shadow .2s, border-color .2s; }
.result-item:hover { box-shadow: var(--pub-shadow-md); border-color: rgba(var(--pub-accent-rgb), .3); }
.result-item-date { flex: 0 0 64px; display: flex; flex-direction: column; align-items: center; padding: 8px 4px; border-radius: 10px; background: var(--pub-accent-soft); color: var(--pub-accent); line-height: 1.1; }
.result-item-date .day { font-size: 1.4rem; font-weight: 800; }
.result-item-date .month { font-size: .7rem; font-weight: 700; text-transform: uppercase; }
.result-item-body { flex: 1; min-width: 0; }
.result-item-title { font-size: 1rem; font-weight: 700; margin: 0 0 4px; }
.result-item-title a { color: var(--pub-text); text-decoration: none; }
.result-item-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .85rem; color: var(--pub-muted); }
.result-item-winners { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 18px; padding: 0; margin: 8px 0 0; font-size: .85rem; }
.result-item-winners li { display: flex; align-items: center; gap: 6px; }
.result-item-winners .bi-gender-female { color: #dd2590; }
.result-item-winners .bi-gender-male { color: var(--pub-accent); }
.result-item-winners .name { font-weight: 600; }
.result-item-winners .time { color: var(--pub-muted); font-variant-numeric: tabular-nums; }
.result-item-arrow { color: #98a2b3; }

/* ---------- En-tête de page ---------- */
.page-hero { padding: 40px 0 36px; background: var(--pub-bg); border-bottom: 1px solid var(--pub-border); }
.page-hero h1 { font-weight: 800; font-size: clamp(1.75rem, 3.4vw, 2.6rem); margin: 0 0 8px; }
.page-hero h1 .h-sub { font-size: .5em; font-weight: 600; color: var(--pub-muted); letter-spacing: 0; margin-top: 6px; }
.page-hero > .container > p { color: var(--pub-muted); font-size: 1.1rem; margin: 0; max-width: 720px; }
.page-hero-meta { display: flex; flex-wrap: wrap; gap: 6px 20px; list-style: none; padding: 0; margin: 12px 0 0; color: var(--pub-text-secondary); }
.page-hero-meta .bi { color: var(--pub-accent); margin-right: 4px; }
.breadcrumb { font-size: .875rem; margin-bottom: 16px; }
.breadcrumb a { color: var(--pub-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--pub-accent); }
.breadcrumb-light a, .breadcrumb-light .breadcrumb-item.active, .breadcrumb-light .breadcrumb-item + .breadcrumb-item::before { color: rgba(255, 255, 255, .7); }

/* ---------- Filtres ---------- */
.filter-panel { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 14px; margin-bottom: 18px; background: var(--pub-surface); border: 1px solid var(--pub-border); border-radius: var(--pub-radius); box-shadow: var(--pub-shadow-sm); }
.filter-fields { display: flex; flex-wrap: wrap; gap: 10px; flex: 1; justify-content: flex-end; }
.filter-fields .form-select { width: auto; min-width: 170px; }
.input-search { position: relative; flex: 1 1 240px; }
.input-search > .bi { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--pub-muted); pointer-events: none; }
.input-search .form-control { padding-left: 38px; }
.nav-segmented { display: inline-flex; padding: 4px; gap: 2px; border-radius: 12px; background: #f2f4f7; }
.nav-segmented .nav-link { border: 0; border-radius: 9px; padding: 7px 14px; font-weight: 600; font-size: .9rem; color: var(--pub-text-secondary); background: transparent; }
.nav-segmented .nav-link:hover { color: var(--pub-text); }
.nav-segmented .nav-link.active { background: #fff; color: var(--pub-text); box-shadow: var(--pub-shadow-sm); }
.result-count { color: var(--pub-muted); font-size: .9rem; margin-bottom: 18px; }
.pagination { --bs-pagination-color: var(--pub-text-secondary); --bs-pagination-active-bg: var(--pub-accent); --bs-pagination-active-border-color: var(--pub-accent); --bs-pagination-border-radius: 10px; gap: 4px; }
.pagination .page-link { border-radius: 10px !important; min-width: 40px; text-align: center; }

/* ---------- Événement ---------- */
/* Bandeau : bannière nette (comme la fiche de l'administration), sinon affiche floutée, sinon couleur de l'événement */
.event-hero {
    position: relative; isolation: isolate; overflow: hidden; color: #fff; padding: 28px 0 32px;
    display: flex; flex-direction: column; justify-content: flex-end; min-height: 380px;
    background: radial-gradient(70% 90% at 100% 0%, color-mix(in srgb, var(--event-color) 70%, transparent), transparent 70%), var(--pub-dark);
}
.event-hero > .container { display: flex; flex-direction: column; flex: 1; }
.event-hero .breadcrumb { margin-bottom: auto; padding-bottom: 32px; }
.event-hero-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.event-hero.has-poster::before { content: ""; position: absolute; inset: -40px; z-index: -2; background: var(--event-image) center / cover no-repeat; filter: blur(28px) saturate(1.2); opacity: .55; }
.event-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(15, 22, 35, .15) 0%, rgba(15, 22, 35, .55) 45%, rgba(15, 22, 35, .92) 100%); }
.event-hero.has-banner::after { background: linear-gradient(180deg, rgba(10, 15, 25, .25) 0%, rgba(10, 15, 25, .5) 40%, rgba(10, 15, 25, .9) 100%), linear-gradient(90deg, rgba(10, 15, 25, .55), transparent 70%); }
.event-hero-inner { display: flex; align-items: flex-end; gap: 24px; }
.event-hero-logo { flex: none; width: 128px; height: 128px; object-fit: contain; padding: 10px; border-radius: 18px; background: #fff; box-shadow: var(--pub-shadow-lg); }
.event-hero-text { flex: 1; min-width: 0; }
.event-hero-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.event-hero-badge-light { background: rgba(255, 255, 255, .16); color: #fff; border: 1px solid rgba(255, 255, 255, .22); backdrop-filter: blur(6px); }
.event-hero-title { font-weight: 800; font-size: clamp(2rem, 4.2vw, 3.2rem); line-height: 1.08; margin-bottom: 12px; text-shadow: 0 2px 18px rgba(0, 0, 0, .35); overflow-wrap: anywhere; }
.event-hero-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; padding: 0; margin: 0; color: rgba(255, 255, 255, .9); }
.event-hero-meta .bi { margin-right: 6px; color: rgba(255, 255, 255, .65); }
.event-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 28px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .14); }
.event-hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.event-hero-cta .btn-lg { padding: .8rem 1.6rem; box-shadow: 0 10px 24px -8px rgba(var(--pub-accent-rgb), .7); }
.event-hero-cta-note { font-size: .85rem; color: rgba(255, 255, 255, .7); }
.btn-glass { --bs-btn-color: #fff; --bs-btn-hover-color: #fff; --bs-btn-active-color: #fff; --bs-btn-bg: rgba(255, 255, 255, .12); --bs-btn-hover-bg: rgba(255, 255, 255, .22); --bs-btn-active-bg: rgba(255, 255, 255, .26); --bs-btn-border-color: rgba(255, 255, 255, .24); --bs-btn-hover-border-color: rgba(255, 255, 255, .4); backdrop-filter: blur(6px); }
.event-hero .btn-share { color: #fff; border-color: rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .08); }
.event-hero .btn-share:hover { background: rgba(255, 255, 255, .18); color: #fff; }
.event-hero .share-label { color: rgba(255, 255, 255, .7); }

/* Liste des épreuves : une ligne par épreuve, actions à droite */
.race-list { display: grid; gap: 14px; }
.race-item { display: grid; grid-template-columns: 88px minmax(0, 1fr) auto; gap: 20px; align-items: center; padding: 18px 20px; background: var(--pub-surface); border: 1px solid var(--pub-border); border-radius: var(--pub-radius); box-shadow: var(--pub-shadow-sm); transition: border-color .2s, box-shadow .2s; }
.race-item:hover { border-color: rgba(var(--pub-accent-rgb), .3); box-shadow: var(--pub-shadow-md); }
.race-item-time { display: flex; flex-direction: column; align-items: center; padding: 10px 4px; border-radius: 12px; background: var(--pub-accent-soft); color: var(--pub-accent); line-height: 1.1; }
.race-item-time .label { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; opacity: .8; }
.race-item-time .hour { font-size: 1.3rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.race-item-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-bottom: 6px; }
.race-item-title { font-size: 1.15rem; font-weight: 700; margin: 0; }
.race-item-meta { display: flex; flex-wrap: wrap; gap: 4px 18px; list-style: none; padding: 0; margin: 0; color: var(--pub-text-secondary); font-size: .92rem; }
.race-item-meta .bi { color: var(--pub-muted); margin-right: 4px; }
.race-item-categories { font-weight: 600; color: var(--pub-text); }
.race-item-years { font-weight: 400; color: var(--pub-text-secondary); }
.race-prices { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.race-price { display: flex; align-items: center; gap: 10px; padding: 7px 12px 7px 7px; background: var(--pub-bg); border: 1px solid var(--pub-border); border-radius: var(--pub-radius-sm); }
.race-price-amount { flex-shrink: 0; padding: 4px 9px; font-weight: 700; color: var(--pub-accent); white-space: nowrap; background: var(--pub-accent-soft); border-radius: 8px; }
.race-price-label { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; font-size: .9rem; }
.race-price-label strong { font-weight: 600; color: var(--pub-text); }
.race-price-label small { font-size: .78rem; color: var(--pub-muted); }
.race-item-actions { display: flex; flex-direction: column; gap: 8px; min-width: 150px; }
.race-item-actions .btn { white-space: nowrap; }
/* Jauge de remplissage d'une épreuve (registrationGauge()) */
.race-item .reg-gauge { margin-top: 12px; max-width: 360px; }
.reg-gauge-track { height: 8px; overflow: hidden; background: #eaecf0; border-radius: 999px; }
.reg-gauge.is-compact .reg-gauge-track { height: 6px; }
.reg-gauge-bar { height: 100%; border-radius: 999px; background: linear-gradient(90deg, #12b76a 0%, #84cc16 35%, #f79009 65%, #f04438 100%); }
.reg-gauge-text { display: flex; justify-content: space-between; gap: 8px; margin-top: 5px; font-size: .85rem; color: var(--pub-text-secondary); }
.reg-gauge-remaining { font-weight: 600; color: #067647; }
.reg-gauge.is-mid .reg-gauge-remaining { color: #b54708; }
.reg-gauge.is-high .reg-gauge-remaining, .reg-gauge.is-full .reg-gauge-remaining { color: #b42318; }

/* Présentation : repliée au-delà de quelques paragraphes (public.js, [data-collapsible]) */
.event-about { margin-bottom: 48px; }
.event-about-title { font-weight: 800; font-size: clamp(1.5rem, 2.5vw, 2rem); margin: 0 0 14px; }
.event-about-text { position: relative; }
.event-about-text.is-collapsed { max-height: 360px; overflow: hidden; }
.event-about-text.is-collapsed::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 80px; background: linear-gradient(transparent, var(--pub-surface)); }
.event-about-toggle { padding: 6px 0; font-weight: 600; text-decoration: none; }
.event-about-toggle[aria-expanded="true"] .bi { transform: rotate(180deg); }

/* Événement solidaire */
.badge-charity { background: #fff0f1; color: #c4323a; border: 1px solid #fbd5d8; text-decoration: none; }
.event-hero .badge-charity:hover { background: #fff; color: #c4323a; }
.event-charity { scroll-margin-top: 90px; margin-bottom: 48px; padding: 24px; border-radius: var(--pub-radius); background: linear-gradient(135deg, #fff5f6, var(--pub-surface) 70%); border: 1px solid #fbd5d8; box-shadow: var(--pub-shadow-sm); }
.event-charity-head { display: flex; align-items: center; gap: 16px; }
.event-charity-icon { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: #e5484d; color: #fff; font-size: 1.4rem; box-shadow: 0 8px 18px -8px rgba(229, 72, 77, .7); }
.event-charity-title { font-weight: 800; font-size: clamp(1.3rem, 2.2vw, 1.6rem); margin: 0; }
.event-charity-lead { margin: 2px 0 0; color: var(--pub-text-secondary); }
.event-charity-note { margin: 16px 0 0; padding: 10px 14px; border-radius: var(--pub-radius-sm); background: var(--pub-surface); border: 1px dashed #f3a9ae; font-weight: 600; color: var(--pub-text); }
.event-charity-note .bi { color: #e5484d; margin-right: 6px; }
.charity-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin-top: 18px; }
.charity-card { display: flex; flex-direction: column; padding: 16px; border-radius: var(--pub-radius-sm); background: var(--pub-surface); border: 1px solid var(--pub-border); }
.charity-card-name { font-size: 1.05rem; font-weight: 700; margin: 0 0 4px; }
.charity-card-cause { font-size: .9rem; color: var(--pub-muted); margin: 0 0 10px; }
.charity-card-link { margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--pub-border); font-size: .85rem; font-weight: 600; color: var(--pub-text-secondary); text-decoration: none; }
.charity-card-link:hover { background: var(--pub-accent-soft); border-color: rgba(var(--pub-accent-rgb), .3); color: var(--pub-accent); }
@media (max-width: 575.98px) {
    .event-charity { padding: 18px; }
    .charity-grid { grid-template-columns: 1fr; }
}

/* Services sur place */
.service-group + .service-group { margin-top: 36px; }
.service-group-title { display: flex; align-items: center; gap: 8px; font-size: .85rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--pub-muted); margin-bottom: 16px; }
.service-group-title .bi { color: var(--pub-accent); font-size: 1rem; }
.service-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.service-card { display: flex; gap: 16px; padding: 18px; background: var(--pub-surface); border: 1px solid var(--pub-border); border-radius: var(--pub-radius); box-shadow: var(--pub-shadow-sm); transition: border-color .2s, box-shadow .2s; }
.service-card:hover { border-color: rgba(var(--pub-accent-rgb), .3); box-shadow: var(--pub-shadow-md); }
.service-card-media { flex: none; display: flex; align-items: center; justify-content: center; width: 80px; height: 80px; border-radius: 14px; background: #fff; border: 1px solid var(--pub-border); overflow: hidden; }
.service-card-media img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.service-card-media.is-icon { background: var(--pub-accent-soft); border-color: transparent; color: var(--pub-accent); font-size: 2rem; }
.service-card-body { min-width: 0; }
.service-card-type { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--pub-accent); }
.service-card-name { font-size: 1.05rem; font-weight: 700; margin: 2px 0 6px; }
.service-card-schedule { font-size: .88rem; font-weight: 600; color: var(--pub-text-secondary); margin: 0 0 6px; }
.service-card-schedule .bi { color: var(--pub-muted); margin-right: 4px; }
.service-card-text { font-size: .9rem; color: var(--pub-muted); margin: 0; }
.service-card-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.service-card-links a { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--pub-border); font-size: .8rem; font-weight: 600; color: var(--pub-text-secondary); text-decoration: none; }
.service-card-links a:hover { background: var(--pub-accent-soft); border-color: rgba(var(--pub-accent-rgb), .3); color: var(--pub-accent); }
@media (max-width: 575.98px) {
    .service-grid { grid-template-columns: 1fr; }
    .service-card-media { width: 64px; height: 64px; }
}

.event-poster { position: sticky; top: 96px; margin: 0; }
.event-poster a { display: block; border-radius: var(--pub-radius); overflow: hidden; background: var(--pub-bg); border: 1px solid var(--pub-border); box-shadow: var(--pub-shadow-md); transition: transform .2s, box-shadow .2s; }
.event-poster a:hover { transform: translateY(-3px); box-shadow: var(--pub-shadow-lg); }
.event-poster img { display: block; width: 100%; height: auto; }
.event-poster figcaption { margin-top: 10px; font-size: .85rem; color: var(--pub-muted); text-align: center; }
@media (max-width: 991.98px) {
    .event-poster { position: static; max-width: 420px; margin: 0 auto; }
}

/* Bouton d'inscription collé en bas de l'écran sur mobile, affiché quand celui du bandeau n'est plus visible */
.event-mobile-cta { display: none; }
@media (max-width: 767.98px) {
    .event-mobile-cta {
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 1030; display: flex; align-items: center; justify-content: space-between; gap: 12px;
        padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px);
        border-top: 1px solid var(--pub-border); box-shadow: 0 -8px 24px -12px rgba(16, 24, 40, .25);
        transform: translateY(110%); transition: transform .25s;
    }
    .event-mobile-cta.is-visible { transform: none; }
    .event-mobile-cta div { min-width: 0; line-height: 1.2; }
    .event-mobile-cta strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .event-mobile-cta span { font-size: .8rem; color: var(--pub-muted); }
    .event-mobile-cta .btn { flex: none; }
    body:has(.event-mobile-cta) .site-footer { padding-bottom: 96px; }

    .event-hero { min-height: 0; padding-top: 20px; }
    .event-hero .breadcrumb { padding-bottom: 48px; }
    .event-hero-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
    .event-hero-logo { width: 88px; height: 88px; border-radius: 14px; }
    .event-hero-cta, .event-hero-cta .btn { width: 100%; }
    .event-hero-actions > .btn-glass { flex: 1; }

    .race-item { grid-template-columns: 68px minmax(0, 1fr); gap: 14px; padding: 16px; }
    .race-item-time .hour { font-size: 1.1rem; }
    .race-item-actions { grid-column: 1 / -1; flex-direction: row; min-width: 0; }
    .race-item-actions .btn { flex: 1; }
}

.partner-level { margin-bottom: 40px; }
.partner-level-title { font-size: .85rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; text-align: center; color: var(--pub-muted); margin-bottom: 18px; }
.partner-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.partner { display: flex; align-items: center; justify-content: center; width: 160px; height: 100px; padding: 14px; background: #fff; border: 1px solid var(--pub-border); border-radius: 12px; text-decoration: none; color: var(--pub-text-secondary); font-weight: 600; text-align: center; transition: transform .2s, box-shadow .2s; }
a.partner:hover { transform: translateY(-2px); box-shadow: var(--pub-shadow-md); }
.partner img { max-width: 100%; max-height: 100%; object-fit: contain; }
.partner-level-gold .partner { width: 220px; height: 130px; }
.organizer-logo { display: block; width: 120px; height: 120px; margin: 0 auto 16px; padding: 10px; object-fit: contain; background: #fff; border: 1px solid var(--pub-border); border-radius: 18px; box-shadow: var(--pub-shadow-sm); }

/* ---------- Partage ---------- */
.share-bar { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.share-label { font-size: .85rem; font-weight: 600; color: var(--pub-muted); margin-right: 4px; }
.btn-share { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; padding: 0; border-radius: 10px; border: 1px solid var(--pub-border); background: #fff; color: var(--pub-text-secondary); }
.btn-share:hover { background: var(--pub-accent-soft); color: var(--pub-accent); border-color: rgba(var(--pub-accent-rgb), .3); }
.btn-share.copied { background: #ecfdf3; color: #067647; border-color: #abefc6; }

/* ---------- Course et classement ---------- */
.kpi { display: flex; flex-direction: column; height: 100%; padding: 18px; background: var(--pub-surface); border: 1px solid var(--pub-border); border-radius: var(--pub-radius); }
.kpi .bi { color: var(--pub-accent); font-size: 1.15rem; margin-bottom: 6px; }
.kpi strong { font-size: 1.5rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.kpi span { color: var(--pub-muted); font-size: .85rem; }

.live-panel { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 14px 18px; margin-bottom: 20px; border-radius: var(--pub-radius); background: #fef3f2; border: 1px solid #fecdca; color: #912018; }
.live-panel strong { font-variant-numeric: tabular-nums; }
.live-dot, .live-badge::before { width: 10px; height: 10px; border-radius: 50%; background: #e5484d; animation: live-pulse 1.6s infinite; }
.live-badge::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 6px; background: #fff; vertical-align: 1px; }
.live-badge .bi { display: none; }
@keyframes live-pulse { 0% { box-shadow: 0 0 0 0 rgba(229, 72, 77, .55); } 70% { box-shadow: 0 0 0 10px rgba(229, 72, 77, 0); } 100% { box-shadow: 0 0 0 0 rgba(229, 72, 77, 0); } }

.podium { display: grid; grid-template-columns: repeat(3, 1fr); align-items: end; gap: 12px; list-style: none; padding: 0; margin: 0; }
.podium-step { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 20px 12px; border-radius: var(--pub-radius); background: var(--pub-surface); border: 1px solid var(--pub-border); min-width: 0; }
.podium-step strong { font-size: 1rem; overflow-wrap: anywhere; }
.podium-1 { order: 2; padding-top: 32px; padding-bottom: 32px; border-color: #fedf89; background: linear-gradient(180deg, #fffaeb, #fff); box-shadow: var(--pub-shadow-md); }
.podium-2 { order: 1; }
.podium-3 { order: 3; }
.podium-medal { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; font-weight: 800; margin-bottom: 10px; color: #fff; background: #98a2b3; }
.podium-1 .podium-medal { background: linear-gradient(135deg, #fdb022, #dc6803); width: 48px; height: 48px; font-size: 1.2rem; }
.podium-2 .podium-medal { background: linear-gradient(135deg, #d0d5dd, #667085); }
.podium-3 .podium-medal { background: linear-gradient(135deg, #f7b27a, #b54708); }
.podium-club { font-size: .82rem; color: var(--pub-muted); }
.podium-time { margin-top: 6px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--pub-accent); }

.ranking-card { background: var(--pub-surface); border: 1px solid var(--pub-border); border-radius: var(--pub-radius); box-shadow: var(--pub-shadow-sm); overflow: hidden; }
.ranking-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--pub-border); }
.ranking-filters { display: flex; flex-wrap: wrap; gap: 8px; flex: 1; justify-content: flex-end; }
.ranking-filters .form-select { width: auto; }
.ranking-table { font-size: .92rem; }
.ranking-table thead th { position: sticky; top: 0; background: var(--pub-bg); font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--pub-muted); border-bottom: 1px solid var(--pub-border); padding: 10px 12px; white-space: nowrap; }
.ranking-table td { padding: 10px 12px; border-color: #f2f4f7; font-variant-numeric: tabular-nums; }
.ranking-table tbody tr:hover { background: #fafbfc; }
.ranking-table tr.is-match td { background: var(--pub-accent-soft); }
.rank { display: inline-flex; align-items: center; justify-content: center; min-width: 32px; height: 32px; padding: 0 6px; border-radius: 9px; font-weight: 700; background: #f2f4f7; }
.rank-1 { background: #fef0c7; color: #93370d; }
.rank-2 { background: #eaecf0; color: #344054; }
.rank-3 { background: #fbe1cf; color: #772917; }
.ranking-empty { padding: 32px; text-align: center; color: var(--pub-muted); margin: 0; }

/* ---------- Contact ---------- */
.contact-card { padding: 28px; background: var(--pub-surface); border: 1px solid var(--pub-border); border-radius: var(--pub-radius); box-shadow: var(--pub-shadow-sm); }
.form-section { margin: 0 0 28px; padding: 0; border: 0; }
.form-section legend { font-size: 1.05rem; font-weight: 700; padding-bottom: 10px; margin-bottom: 16px; border-bottom: 1px solid var(--pub-border); }
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px 16px; }
.contact-aside { position: sticky; top: 96px; padding: 24px; border-radius: var(--pub-radius); background: var(--pub-bg); border: 1px solid var(--pub-border); }
.steps { list-style: none; counter-reset: step; padding: 0; margin: 16px 0 0; }
.steps li { position: relative; counter-increment: step; padding: 0 0 18px 44px; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--pub-accent); color: #fff; font-weight: 700; font-size: .9rem; }
.steps li:not(:last-child)::after { content: ""; position: absolute; left: 14px; top: 34px; bottom: 4px; width: 2px; background: #d0d5dd; }
.steps strong { display: block; }
.steps span { color: var(--pub-muted); font-size: .9rem; }

.prose h2 { font-size: 1.3rem; font-weight: 700; margin: 32px 0 10px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--pub-text-secondary); line-height: 1.65; }

/* ---------- Pied de page ---------- */
.site-footer { padding: 56px 0 28px; background: var(--pub-dark); color: #fff; }
.footer-title { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: rgba(255, 255, 255, .5); margin-bottom: 14px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { padding: 4px 0; }
.footer-links a { color: rgba(255, 255, 255, .8); text-decoration: none; font-size: .92rem; }
.footer-links a:hover { color: #fff; }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .5); font-size: .85rem; }

/* ---------- Mobile ---------- */
@media (max-width: 767.98px) {
    .section { padding: 48px 0; }
    .hero { padding: 56px 0 64px; }
    .hero-search { flex-direction: column; }
    .hero-search > .bi { top: 28px; }
    .filter-fields { justify-content: stretch; }
    .filter-fields .form-select, .filter-fields .btn, .ranking-filters .form-select { flex: 1 1 100%; width: 100%; }
    .podium { gap: 6px; }
    .podium-step { padding: 14px 6px; }
    .podium-step strong { font-size: .85rem; }
    .cta-band-inner { padding: 28px; }
    .contact-card { padding: 20px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .hero-visual { transform: none; }
}

/* ---------- Impression (classements) ---------- */
@media print {
    .site-header, .site-footer, .no-print, .breadcrumb, .share-bar { display: none !important; }
    .page-hero { background: none; border: 0; padding: 0 0 12px; }
    .section { padding: 0; }
    .ranking-card, .kpi, .podium-step { box-shadow: none; }
    .ranking-table tr { break-inside: avoid; }
    .tab-pane { display: block !important; opacity: 1 !important; }
    .ranking-table .d-none { display: table-cell !important; }
}

/* ---------- Inscriptions en ligne et espace participant ---------- */
.account-bar { background: var(--pub-text); color: rgba(255, 255, 255, .8); font-size: .875rem; padding: 6px 0; }
.account-bar .container { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 10px; }
.account-bar a { color: #fff; text-decoration: none; font-weight: 600; }
.account-bar a:hover { text-decoration: underline; }
.page-hero-compact { padding: 28px 0 24px; }

.registration-races { display: grid; gap: 14px; }
.registration-race { display: grid; grid-template-columns: 84px 1fr auto auto; gap: 18px; align-items: center; padding: 18px 20px; background: var(--pub-surface); border: 1px solid var(--pub-border); border-radius: var(--pub-radius); box-shadow: var(--pub-shadow-sm); }
.registration-race-time { text-align: center; padding: 8px 0; border-radius: 10px; background: var(--pub-bg); }
.registration-race-time .day { display: block; font-size: .8rem; font-weight: 600; color: var(--pub-muted); text-transform: uppercase; }
.registration-race-time .hour { display: block; font-size: 1.25rem; font-weight: 800; }
.registration-race-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; list-style: none; padding: 0; margin: 0; color: var(--pub-text-secondary); font-size: .9rem; }
.registration-race-meta .bi { color: var(--pub-accent); margin-right: 3px; }
.registration-race-prices { text-align: right; }
.registration-race-prices .price { font-size: 1.3rem; font-weight: 800; }
.registration-race-prices .fee { display: block; font-size: .78rem; color: var(--pub-muted); }
.registration-race-action { display: flex; flex-direction: column; gap: 6px; }
@media (max-width: 767.98px) {
    .registration-race { grid-template-columns: 70px 1fr; }
    .registration-race-prices { text-align: left; grid-column: 2; }
    .registration-race-action { grid-column: 1 / -1; }
}

.person-choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.person-choice { display: flex; align-items: center; gap: 12px; padding: 16px; border: 1px solid var(--pub-border); border-radius: var(--pub-radius); background: var(--pub-surface); color: var(--pub-text); text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.person-choice:hover { border-color: var(--pub-accent); box-shadow: var(--pub-shadow-sm); }
.person-choice.disabled { opacity: .55; pointer-events: none; }
.person-choice small { display: block; color: var(--pub-muted); }
.person-choice .icon-circle { width: 42px; height: 42px; flex: none; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: rgba(var(--pub-accent-rgb), .12); color: var(--pub-accent); font-size: 1.2rem; }

.registration-form { padding: 28px; background: var(--pub-surface); border: 1px solid var(--pub-border); border-radius: var(--pub-radius); box-shadow: var(--pub-shadow-sm); }
.registration-form .form-steps { margin: -4px 0 28px; border: 0; border-bottom: 1px solid var(--pub-border); border-radius: 0; background: transparent; }
.registration-form .form-steps .card-body { padding: 0 0 22px; }
.registration-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; padding-top: 20px; border-top: 1px solid var(--pub-border); }
.registration-recap { display: grid; gap: 0; margin: 0 0 12px; border: 1px solid var(--pub-border); border-radius: var(--pub-radius-sm); overflow: hidden; }
.registration-recap > div { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 12px; padding: 10px 14px; }
.registration-recap > div + div { border-top: 1px solid var(--pub-border); }
.registration-recap > div:nth-child(odd) { background: var(--pub-bg); }
.registration-recap dt { font-weight: 600; color: var(--pub-muted); font-size: .9rem; }
.registration-recap dd { margin: 0; font-weight: 600; }
.registration-recap dd span { display: block; font-weight: 400; font-size: .85rem; color: var(--pub-muted); }
.registration-form .btn-group.is-invalid .btn, .price-choices.is-invalid .price-choice { border-color: var(--bs-danger); }
@media (max-width: 575.98px) {
    .registration-form { padding: 20px 16px; }
    .registration-recap > div { grid-template-columns: 1fr; gap: 2px; }
}

/* Suivi par étapes (processSteps() / formSteps(), même rendu que l'administration) */
.form-steps { margin-bottom: 24px; scroll-margin-top: 90px; border: 1px solid var(--pub-border); border-radius: var(--pub-radius); background: var(--pub-surface); }
.form-steps .card-body { padding: 18px 12px 14px; }
.process-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-auto-columns: minmax(0, 1fr); grid-auto-flow: column; gap: 8px; }
.process-step { position: relative; min-width: 0; }
.process-step:not(:last-child)::after { content: ""; position: absolute; top: 17px; left: calc(50% + 24px); right: calc(-50% + 20px); height: 2px; border-radius: 2px; background: var(--pub-border); }
.process-step.is-done:not(:last-child)::after { background: var(--pub-accent); }
.process-step-link { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 0 4px 2px; text-align: center; color: inherit; text-decoration: none; border-radius: var(--pub-radius-sm); }
a.process-step-link:hover .process-step-label { color: var(--pub-accent); }
a.process-step-link:focus-visible { outline: 2px solid rgba(var(--pub-accent-rgb), .5); outline-offset: 2px; }
.process-step-marker { width: 36px; height: 36px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; border: 2px solid #d0d5dd; background: var(--pub-surface); color: var(--pub-muted); font-weight: 700; font-size: .875rem; position: relative; z-index: 1; }
.process-step.is-done .process-step-marker { background: var(--pub-accent); border-color: var(--pub-accent); color: #fff; }
.process-step.is-current .process-step-marker { border-color: var(--pub-accent); color: var(--pub-accent); box-shadow: 0 0 0 4px rgba(var(--pub-accent-rgb), .16); }
.process-step.is-error .process-step-marker, .process-step.has-error .process-step-marker { border-color: var(--bs-danger); color: var(--bs-danger); }
.process-step.has-error .process-step-marker { box-shadow: 0 0 0 4px rgba(220, 53, 69, .16); }
.process-step-body { display: flex; flex-direction: column; min-width: 0; }
.process-step-label { font-weight: 600; font-size: .875rem; line-height: 1.3; }
.process-step.is-todo .process-step-label { color: var(--pub-text-secondary); }
.process-step-hint { color: var(--pub-muted); font-size: .78rem; line-height: 1.35; overflow-wrap: anywhere; }
.process-step.is-current .process-step-hint { color: var(--pub-accent); font-weight: 600; }
.process-step.is-error .process-step-hint, .process-step.has-error .process-step-hint { color: var(--bs-danger); font-weight: 600; }
.has-form-steps .form-step-hidden { display: none !important; }
@media (max-width: 767.98px) {
    .form-steps .card-body { padding: 14px 4px 12px; }
    .process-steps { gap: 2px; }
    .process-step:not(:last-child)::after { top: 15px; left: calc(50% + 18px); right: calc(-50% + 14px); }
    .process-step-link { gap: 4px; padding: 0 1px; }
    .process-step-marker { width: 30px; height: 30px; font-size: .78rem; }
    .process-step-label { font-size: .68rem; }
    .process-step-hint { display: none; }
}

.price-choices { display: grid; gap: 8px; }
.price-choice { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--pub-border); border-radius: 10px; cursor: pointer; }
.price-choice:has(input:checked) { border-color: var(--pub-accent); background: rgba(var(--pub-accent-rgb), .06); }
.price-choice.is-disabled { opacity: .45; cursor: not-allowed; }
.price-choice .form-check-input { margin: 0; flex: none; }
.price-choice-label { flex: 1; }
.price-choice-label small, .price-choice-amount small { display: block; color: var(--pub-muted); font-weight: 400; }
.price-choice-amount { text-align: right; font-weight: 700; }
.item-choice { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--pub-border); }
.item-choice:last-child { border-bottom: 0; }
.item-choice.is-sold-out { opacity: .6; }
.item-choice-body { flex: 1 1 300px; }
.item-choice-input { flex: 0 0 auto; min-width: 180px; }

.cart-lines { display: grid; gap: 12px; }
.cart-line { display: flex; justify-content: space-between; gap: 16px; padding: 16px 18px; background: var(--pub-surface); border: 1px solid var(--pub-border); border-radius: var(--pub-radius); }
.cart-line-total { text-align: right; white-space: nowrap; }
.cart-group { margin-top: 12px; padding: 14px 18px; border: 1px dashed var(--pub-border); border-radius: var(--pub-radius); }
.cart-line-total strong { display: block; font-size: 1.15rem; }
.cart-totals { margin: 0; }
.cart-totals > div { display: flex; justify-content: space-between; padding: 4px 0; }
.cart-totals .total { font-size: 1.3rem; font-weight: 800; border-top: 1px solid var(--pub-border); padding-top: 10px; margin-top: 6px; }
.cart-totals dd { margin: 0; }
.cart-actions { margin-top: 24px; padding: 20px; border-radius: var(--pub-radius); background: var(--pub-bg); border: 1px solid var(--pub-border); }
.confirm-icon { font-size: 3.5rem; line-height: 1; margin-bottom: 12px; }

.account-registrations { display: grid; gap: 12px; }
.account-registration { padding: 16px 18px; background: var(--pub-surface); border: 1px solid var(--pub-border); border-radius: var(--pub-radius); }
.account-registration-head { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.account-registration-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
