/* Tikehub — Design system public */
:root {
    --th-navy: #1a2b48;
    --th-navy-dark: #121f35;
    --th-orange: #f29124;
    --th-orange-hover: #e07d0f;
    --th-orange-light: #fff4e8;
    --th-surface: #ffffff;
    --th-bg: #f6f7f9;
    --th-border: #e8eaef;
    --th-text: #1f2937;
    --th-text-muted: #6b7280;
    --th-radius: 12px;
    --th-shadow-nav: 0 1px 0 rgba(26, 43, 72, 0.05), 0 4px 24px rgba(26, 43, 72, 0.07);
    --th-font: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
    font-family: var(--th-font);
    color: var(--th-text);
}

/* ——— Header public ——— */
#site-navbar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 9999 !important;
    background: rgba(255, 255, 255, 0.96) !important;
    border-bottom: 1px solid var(--th-border) !important;
    box-shadow: var(--th-shadow-nav) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    opacity: 1 !important;
}

#site-navbar .th-nav-logo-mark {
    background: linear-gradient(135deg, var(--th-orange) 0%, #f5a623 100%);
    padding: 0.45rem 0.5rem;
    border-radius: 10px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#site-navbar a.group:hover .th-nav-logo-mark,
#mobile-sidebar .th-nav-logo-mark {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(242, 145, 36, 0.35);
}

#site-navbar .th-nav-logo-text {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--th-navy);
}

#site-navbar .th-nav-link,
#mobile-sidebar .th-nav-link {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--th-navy);
    text-decoration: none;
    transition: color 0.2s ease, background 0.2s ease;
    white-space: nowrap;
}

#site-navbar .th-nav-link:hover,
#mobile-sidebar .th-nav-link:hover {
    color: var(--th-orange);
    background: var(--th-orange-light);
}

#site-navbar .th-nav-link.is-active,
#mobile-sidebar .th-nav-link.is-active {
    color: var(--th-orange);
    background: var(--th-orange-light);
}

#site-navbar .th-nav-link--compact {
    padding: 0.4rem 0.5rem;
    font-size: 0.8125rem;
}

@media (min-width: 1280px) {
    #site-navbar .th-nav-link--compact {
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
    }
}

#site-navbar #visitor-country {
    max-width: 9.5rem;
    font-size: 0.8125rem;
}

#mobile-sidebar #visitor-country {
    width: 100%;
    max-width: none;
}

#site-navbar .th-nav-link--contest:hover,
#mobile-sidebar .th-nav-link--contest:hover {
    color: #7c3aed;
    background: #f5f3ff;
}

#site-navbar .th-nav-link--contest.is-active,
#mobile-sidebar .th-nav-link--contest.is-active {
    color: #6d28d9;
    background: #f5f3ff;
}

#site-navbar .th-nav-link--fundraising:hover,
#mobile-sidebar .th-nav-link--fundraising:hover {
    color: #059669;
    background: #ecfdf5;
}

#site-navbar .th-nav-link--fundraising.is-active,
#mobile-sidebar .th-nav-link--fundraising.is-active {
    color: #047857;
    background: #ecfdf5;
}

#site-navbar .th-nav-ghost {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--th-navy);
    text-decoration: none;
    transition: color 0.2s ease, background 0.2s ease;
}

#site-navbar .th-nav-ghost:hover,
#mobile-sidebar .th-nav-ghost:hover {
    color: var(--th-orange);
    background: var(--th-orange-light);
}

#site-navbar .th-nav-cta,
#mobile-sidebar .th-nav-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 1.25rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 700;
    color: #fff !important;
    background: var(--th-orange);
    box-shadow: 0 4px 14px rgba(242, 145, 36, 0.35);
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

#site-navbar .th-nav-cta:hover,
#mobile-sidebar .th-nav-cta:hover {
    background: var(--th-orange-hover);
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(242, 145, 36, 0.4);
}

#site-navbar .th-nav-outline,
#mobile-sidebar .th-nav-outline {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 9999px;
    font-weight: 600;
    color: var(--th-orange) !important;
    background: #fff;
    border: 2px solid var(--th-orange);
    text-decoration: none;
    transition: background 0.2s ease;
}

#site-navbar .th-nav-outline:hover,
#mobile-sidebar .th-nav-outline:hover {
    background: var(--th-orange-light);
    color: var(--th-orange-hover) !important;
}

#site-navbar #resources-menu-button {
    cursor: pointer;
    border: none;
    background: transparent;
}

#site-navbar #resources-dropdown {
    border-radius: var(--th-radius);
    border: 1px solid var(--th-border);
    box-shadow: var(--th-shadow-nav);
    overflow: hidden;
}

#site-navbar #resources-dropdown a {
    display: flex;
    align-items: center;
    padding: 0.65rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--th-navy);
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}

#site-navbar #resources-dropdown a:hover,
#site-navbar #resources-dropdown a.is-active {
    background: var(--th-orange-light);
    color: var(--th-orange);
}

#site-navbar .th-nav-actions {
    flex-shrink: 0;
}

#site-navbar .th-nav-mobile-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    min-width: 2.75rem !important;
    min-height: 2.75rem !important;
    flex-shrink: 0;
    padding: 0;
    color: var(--th-navy);
    background: var(--th-orange-light);
    border: 2px solid var(--th-orange);
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

#site-navbar .th-nav-mobile-toggle i {
    font-size: 1.35rem;
    line-height: 1;
    pointer-events: none;
}

#site-navbar .th-nav-mobile-toggle:hover,
#site-navbar .th-nav-mobile-toggle:focus-visible {
    color: #fff;
    background: var(--th-orange);
    border-color: var(--th-orange-hover);
    outline: none;
}

@media (max-width: 1023px) {
    #site-navbar .th-nav-mobile-toggle {
        display: inline-flex;
    }

    #site-navbar .th-nav-cta--compact,
    #site-navbar .th-nav-ghost--compact {
        width: 2.75rem;
        height: 2.75rem;
        min-width: 2.75rem !important;
        min-height: 2.75rem !important;
        padding: 0 !important;
        flex-shrink: 0;
        justify-content: center;
    }

    #site-navbar .th-nav-cta--compact span,
    #site-navbar .th-nav-ghost--compact span {
        display: none !important;
    }

    #site-navbar .th-nav-cta--compact i,
    #site-navbar .th-nav-ghost--compact i {
        margin: 0 !important;
        font-size: 1.1rem;
    }
}

@media (min-width: 1024px) {
    #site-navbar .th-nav-mobile-toggle {
        display: none !important;
    }
}

/* Sidebar mobile */
#mobile-sidebar {
    border-right: 1px solid var(--th-border);
}

#mobile-sidebar .th-nav-logo-text {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--th-navy);
}

#mobile-sidebar .th-nav-link {
    display: flex;
    width: 100%;
    border-radius: var(--th-radius);
    padding: 0.75rem 1rem;
}

#mobile-sidebar nav a.th-nav-link {
    font-size: 0.9375rem;
}

#mobile-sidebar .ml-8 .th-nav-link {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
}

@media (min-width: 1024px) {
    #site-navbar .hidden.lg\:flex {
        gap: 0.15rem;
    }
}

/* Sélecteur de pays — popup & bouton flottant */
.th-country-overlay {
    position: fixed;
    inset: 0;
    z-index: 200000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(26, 43, 72, 0.65);
    backdrop-filter: blur(4px);
}

.th-country-overlay.hidden {
    display: none !important;
}

.th-country-modal {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-radius: 1rem;
    padding: 2rem 1.75rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    text-align: center;
}

.th-country-modal__icon {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--th-orange), #e67e22);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.75rem;
}

.th-country-modal__title {
    font-size: 1.375rem;
    font-weight: 800;
    color: var(--th-navy);
    margin-bottom: 0.5rem;
}

.th-country-modal__text {
    font-size: 0.9375rem;
    color: #64748b;
    margin-bottom: 1.25rem;
    line-height: 1.5;
}

.th-country-modal__form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.th-country-modal__select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 0.5rem;
    font-size: 1rem;
    color: var(--th-navy);
    background: #fff;
}

.th-country-modal__select:focus {
    outline: none;
    border-color: var(--th-orange);
    box-shadow: 0 0 0 3px var(--th-orange-light);
}

.th-country-modal__btn {
    width: 100%;
    padding: 0.875rem 1rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, var(--th-orange), #e67e22);
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.th-country-modal__btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(242, 145, 36, 0.35);
}

.th-country-fab {
    position: fixed;
    bottom: 1.25rem;
    left: 1.25rem;
    z-index: 99990;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 9999px;
    background: var(--th-navy);
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 600;
    box-shadow: 0 8px 24px rgba(26, 43, 72, 0.35);
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease;
}

.th-country-fab:hover {
    background: #243a5e;
    transform: scale(1.03);
}

.th-country-fab i {
    font-size: 1.125rem;
    color: var(--th-orange);
}

.th-country-fab__label {
    max-width: 7rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 480px) {
    .th-country-fab__label {
        display: none;
    }

    .th-country-fab {
        width: 3rem;
        height: 3rem;
        padding: 0;
        justify-content: center;
        border-radius: 50%;
    }
}

/* Checkout billets */
.th-checkout-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 600;
    color: #fff;
    background: var(--th-orange);
    border: none;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
}

.th-checkout-btn:hover {
    background: var(--th-orange-hover);
    color: #fff;
}

.th-checkout-btn--full {
    width: 100%;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

.th-checkout-input:focus {
    outline: none;
    border-color: var(--th-orange);
    box-shadow: 0 0 0 2px var(--th-orange-light);
}

.th-checkout-hint {
    font-size: 0.875rem;
    color: var(--th-navy);
    margin-top: 0.25rem;
    opacity: 0.9;
}

.th-checkout-hint i {
    color: var(--th-orange);
}
