/* ---- Hero Banner & Recherche — Charte Tikéli Officielle ---- */
.hero-banner {
    background: radial-gradient(circle at 10% 15%, rgba(255, 74, 13, 0.22) 0%, transparent 45%),
        radial-gradient(circle at 90% 85%, rgba(255, 74, 13, 0.12) 0%, transparent 50%),
        linear-gradient(145deg, #000000 0%, #0e0e0e 60%, #1a1a1a 100%);
    color: #ffffff;
    padding: clamp(2rem, 5vw, 3.5rem) clamp(1.25rem, 4vw, 2.5rem);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    margin-bottom: 2rem;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-banner .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading, 'Outfit', sans-serif);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--tikeli-orange, #FF4A0D);
    background: rgba(255, 74, 13, 0.12);
    border: 1px solid rgba(255, 74, 13, 0.35);
    padding: 6px 16px;
    border-radius: 9999px;
    margin: 0 auto 1.25rem;
    box-shadow: 0 2px 10px rgba(255, 74, 13, 0.15);
}

.hero-banner h1 {
    color: #ffffff;
    font-family: var(--font-heading, 'Outfit', sans-serif);
    font-size: clamp(1.65rem, 4.8vw, 3rem);
    font-weight: 900;
    margin: 0 auto 0.75rem;
    letter-spacing: -0.03em;
    line-height: 1.18;
    text-align: center;
    max-width: 800px;
    overflow-wrap: break-word;
}

.hero-banner p {
    color: #737373;
    font-size: clamp(0.88rem, 1.8vw, 1.05rem);
    max-width: 640px;
    margin: 0 auto 1.75rem;
    line-height: 1.55;
    text-align: center;
    overflow-wrap: break-word;
}

.search-box-wrapper {
    background: #ffffff;
    border: 1.5px solid var(--eventia-border, #E5E5E5);
    border-radius: 16px;
    padding: 0.5rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    max-width: 880px;
    margin: 0 auto;
    box-shadow: 0 14px 35px rgba(6, 19, 41, 0.28);
    align-items: center;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.search-box-wrapper:focus-within {
    border-color: #FF4A0D;
    box-shadow: 0 18px 42px rgba(6, 19, 41, 0.35), 0 0 0 4px rgba(255, 74, 13, 0.22);
}

.search-input-field {
    flex: 1;
    min-width: 180px;
    display: flex;
    align-items: center;
    padding: 0.5rem 0.85rem;
    border-right: 1px solid #F5F5F5;
    gap: 0.5rem;
    transition: transform 0.2s ease;
}

.search-input-field:last-of-type {
    border-right: none;
}

.search-input-field i {
    color: var(--eventia-amber-dark, #FF4A0D);
    font-size: 0.95rem;
    flex-shrink: 0;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.2s ease;
}

.search-input-field:focus-within i {
    transform: scale(1.22);
}

.search-input-field input,
.search-input-field select {
    width: 100%;
    border: none;
    outline: none;
    padding: 0.35rem 0;
    font-size: 0.92rem;
    font-family: var(--font-body, 'Inter', sans-serif);
    color: var(--eventia-navy, #000000);
    background: transparent;
    font-weight: 500;
}

.search-box-wrapper .btn-submit-hero {
    background: var(--tikeli-orange, #FF4A0D);
    color: #ffffff;
    font-family: var(--font-heading, 'Outfit', sans-serif);
    font-weight: 800;
    font-size: 0.95rem;
    padding: 0.75rem 1.65rem;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 4px 14px rgba(255, 74, 13, 0.35);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
    position: relative;
}

.search-box-wrapper .btn-submit-hero:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(224, 62, 8, 0.5);
}

.search-box-wrapper .btn-submit-hero:active {
    transform: scale(0.96);
}

@media (max-width: 768px) {
    .search-box-wrapper {
        flex-direction: column;
        gap: 0.35rem;
        padding: 0.75rem;
    }

    .search-input-field {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #F5F5F5;
        padding: 0.65rem 0.5rem;
    }

    .search-input-field:last-of-type {
        border-bottom: none;
        margin-bottom: 0.35rem;
    }

    .search-box-wrapper .btn-submit-hero {
        width: 100%;
        padding: 0.85rem;
    }
}

/* ---- Cartes Événements, Cotisations et Concours (Animations Swiss Modern) ---- */
@keyframes cardFadeUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.event-card-item {
    background: #ffffff;
    border: 1px solid var(--eventia-border, #E5E5E5);
    border-radius: var(--eventia-radius-lg, 14px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.05);
    text-align: left;
    animation: cardFadeUp 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.event-card-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px -6px rgba(15, 23, 42, 0.12), 0 0 0 1px rgba(255, 74, 13, 0.3);
    border-color: #FF4A0D;
}

.event-card-item .event-poster {
    transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.event-card-item:hover .event-poster {
    transform: scale(1.045);
}

.event-card-item:nth-child(1) {
    animation-delay: 0.04s;
}

.event-card-item:nth-child(2) {
    animation-delay: 0.08s;
}

.event-card-item:nth-child(3) {
    animation-delay: 0.12s;
}

.event-card-item:nth-child(4) {
    animation-delay: 0.16s;
}

.event-card-item:nth-child(5) {
    animation-delay: 0.20s;
}

.event-card-item:nth-child(6) {
    animation-delay: 0.24s;
}

.event-card-item h3 {
    font-family: var(--font-heading, 'Outfit', sans-serif);
    font-weight: 700;
    color: var(--eventia-navy, #000000);
    overflow-wrap: break-word;
    word-break: normal;
    line-height: 1.25;
}

.event-card-item p {
    overflow-wrap: break-word;
    word-break: normal;
}

.event-poster {
    height: 190px;
    width: 100%;
    object-fit: cover;
    object-position: center 25%;
    background: #0f172a;
    display: block;
    transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.event-category-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--tikeli-black, #000000);
    color: var(--tikeli-orange, #FF4A0D);
    font-family: var(--font-heading, 'Outfit', sans-serif);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--eventia-radius-pill, 9999px);
    border: 1px solid rgba(255, 74, 13, 0.35);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    max-width: calc(100% - 96px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    z-index: 2;
}

.event-date-chip {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: #ffffff;
    color: var(--eventia-navy, #000000);
    font-family: var(--font-body, 'Inter', sans-serif);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: var(--eventia-radius-sm, 8px);
    border: 1px solid var(--eventia-border, #E5E5E5);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    max-width: calc(100% - 24px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    z-index: 2;
}

.ticket-tier-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    background: #F5F5F5;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 0.85rem 1.1rem;
    margin-bottom: 0.65rem;
    transition: var(--transition);
    overflow: hidden;
}

.ticket-tier-row:hover {
    border-color: var(--primary-light);
    background: #ffffff;
}

.ticket-tier-info {
    flex: 1 1 190px;
    min-width: 0;
    overflow-wrap: break-word;
}

.ticket-tier-info strong {
    display: block;
    color: var(--navy);
    font-size: 0.95rem;
    overflow-wrap: break-word;
    word-break: normal;
    line-height: 1.35;
}

.ticket-tier-info small,
.ticket-tier-info span {
    overflow-wrap: break-word;
}

.ticket-qty-control {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-shrink: 0;
}

.ticket-qty-btn {
    width: 32px;
    height: 32px;
    border: 1px solid var(--line);
    background: #ffffff;
    border-radius: 6px;
    display: grid;
    place-items: center;
    cursor: pointer;
    font-weight: bold;
    font-size: 1rem;
    color: var(--navy);
    transition: var(--transition);
}

.ticket-qty-btn:hover {
    background: var(--primary-soft);
    border-color: var(--primary);
    color: var(--primary);
}

.ticket-qty-input {
    width: 48px;
    text-align: center;
    padding: 0.35rem 0.2rem;
    border: 1px solid var(--line);
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.95rem;
}

/* Bulles de catégories (Carousel fluide & moderne) */
.category-chips {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 4px 2px 14px;
    margin-top: 1.25rem;
    margin-bottom: 1.75rem;
    scroll-snap-type: x mandatory;
}

.category-chips::-webkit-scrollbar {
    display: none;
}

@keyframes chipActivePulse {
    0% {
        transform: scale(0.95);
    }

    60% {
        transform: scale(1.03);
    }

    100% {
        transform: scale(1);
    }
}

.category-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 1rem;
    background: #ffffff;
    border: 1px solid var(--eventia-border, #E5E5E5);
    border-radius: 9999px;
    color: var(--eventia-navy, #000000);
    font-family: var(--font-heading, 'Outfit', sans-serif);
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    scroll-snap-align: start;
    box-shadow: 0 1px 3px rgba(11, 29, 58, 0.04);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    flex-shrink: 0;
}

.category-chip i {
    color: var(--eventia-navy-light, #000000);
    font-size: 0.85rem;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.2s ease;
}

.category-chip:hover {
    background: #FFF7ED;
    border-color: #FED7AA;
    transform: translateY(-2px);
    color: var(--tikeli-orange, #FF4A0D);
    box-shadow: 0 4px 14px rgba(255, 74, 13, 0.16);
}

.category-chip:hover i {
    transform: scale(1.22) rotate(-6deg);
    color: var(--tikeli-orange, #FF4A0D);
}

.category-chip:active {
    transform: scale(0.96);
}

.category-chip.active {
    background: var(--tikeli-orange, #FF4A0D);
    color: #ffffff;
    border-color: var(--tikeli-orange, #FF4A0D);
    box-shadow: 0 4px 14px rgba(255, 74, 13, 0.32);
    animation: chipActivePulse 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.category-chip.active i {
    color: #ffffff;
}

/* ===== Bouton like (cœur) sur les cartes ===== */
.event-like-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 5px 12px;
    background: rgba(255, 255, 255, 0.92);
    border: none;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 800;
    font-family: inherit;
    color: var(--navy);
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transition: var(--transition);
    z-index: 2;
}

.event-like-btn i {
    color: #737373;
    transition: var(--transition);
}

.event-like-btn:hover {
    transform: scale(1.08);
}

.event-like-btn:hover i {
    color: #000000;
}

.event-like-btn.liked i {
    color: #000000;
}

.event-like-btn.liked {
    color: #000000;
}

/* ===== Choix de place : plan interactif ===== */
.ticket-tier-row {
    flex-wrap: wrap;
}

.seat-choice-block {
    width: 100%;
    margin-top: 0.85rem;
    padding: 0.85rem 1rem;
    background: #FFF7ED;
    border: 1.5px solid #FED7AA;
    border-radius: 10px;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.seat-choice-block:hover {
    border-color: #FF4A0D;
    box-shadow: 0 4px 14px rgba(255, 74, 13, 0.12);
}

.direct-seat-btn {
    padding: 5px 9px;
    font-size: 0.74rem;
    font-weight: 700;
    border: 1px solid #E5E5E5;
    background: #ffffff;
    border-radius: 6px;
    cursor: pointer;
    color: #000000;
    transition: all 0.15s ease;
}

.direct-seat-btn:hover {
    border-color: #FF4A0D;
    background: #FFF2ED;
    color: #FF4A0D;
}

.direct-seat-btn.selected {
    background: #FF4A0D !important;
    color: #ffffff !important;
    border-color: #FF4A0D !important;
    font-weight: 800;
}

.seat-map-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: var(--radius-full);
    color: var(--ink);
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.seat-map-toggle i {
    color: var(--primary);
}

.seat-map-toggle strong {
    color: var(--primary);
}

.seat-map-toggle:hover,
.seat-map-toggle.active {
    border-color: var(--primary);
    background: var(--primary-soft);
}

.seat-choice-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.84rem;
    color: #0F172A;
    cursor: pointer;
    font-weight: 600;
    width: 100%;
    min-width: 0;
}

.seat-choice-text-wrap {
    flex: 1;
    min-width: 0;
}

.seat-choice-title-row {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.seat-choice-3d-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #FF4A0D;
    color: #FFFFFF;
    font-size: 0.68rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.seat-choice-title {
    color: #0F172A;
    font-weight: 800;
    font-size: 0.86rem;
}

.seat-choice-fee {
    display: inline-block;
    background: #FFF2ED;
    color: #FF4A0D;
    border: 1px solid #FFD8CC;
    padding: 1px 7px;
    border-radius: 6px;
    font-size: 0.74rem;
    font-weight: 800;
}

.seat-choice-desc {
    display: block;
    color: #64748B;
    font-size: 0.76rem;
    line-height: 1.4;
    margin-top: 3px;
}

.seat-choice-label span {
    flex: 1;
    min-width: 0;
    overflow-wrap: break-word;
    word-break: normal;
    line-height: 1.45;
}

.seat-choice-label input {
    accent-color: #FF4A0D;
    width: 18px;
    height: 18px;
    cursor: pointer;
    margin-top: 2px;
    flex-shrink: 0;
}

.seat-choice-label strong {
    color: #0F172A;
    overflow-wrap: break-word;
}

.seat-choice-label small {
    color: #64748B;
    font-weight: 500;
    display: block;
    overflow-wrap: break-word;
}

/* ==========================================================================
       VUE DE SCÈNE INTERACTIVE & CHOIX DE PLACE RESPONSIVE
       ========================================================================== */
@keyframes sceneCardSlideDown {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.scene-view-card {
    margin-top: 0.85rem;
    background: #0F172A;
    border: 1.5px solid #334155;
    border-radius: 12px;
    padding: 0.85rem 1rem;
    color: #F8FAFC;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    animation: sceneCardSlideDown 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.scene-view-card[hidden] {
    display: none !important;
}

.scene-stage-banner {
    background: linear-gradient(180deg, #1E293B 0%, #0F172A 100%);
    border: 1px solid rgba(255, 74, 13, 0.35);
    border-radius: 8px;
    padding: 0.55rem 0.85rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.scene-stage-podium {
    font-size: clamp(0.72rem, 2vw, 0.82rem);
    font-weight: 800;
    letter-spacing: 1px;
    color: #FF4A0D;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}

.scene-stage-sub {
    font-size: 0.7rem;
    color: #94A3B8;
    margin-top: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

/* Bouton Rendu 3D Scène Interactive — Visibilité & Contraste Maximaux */
@keyframes btnSceneGlowPulse {

    0%,
    100% {
        box-shadow: 0 4px 18px rgba(255, 74, 13, 0.32), 0 0 0 0 rgba(255, 74, 13, 0.35);
        border-color: #FF4A0D;
    }

    50% {
        box-shadow: 0 6px 26px rgba(255, 74, 13, 0.55), 0 0 0 5px rgba(255, 74, 13, 0.16);
        border-color: #FF6633;
    }
}

.btn-scene-interactive {
    width: 100%;
    min-height: 52px;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
    color: #FFFFFF;
    border: 2px solid #FF4A0D;
    border-radius: 10px;
    font-weight: 800;
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    cursor: pointer;
    box-shadow: 0 4px 18px rgba(255, 74, 13, 0.32), 0 2px 6px rgba(0, 0, 0, 0.15);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    animation: btnSceneGlowPulse 2.8s infinite ease-in-out;
    box-sizing: border-box;
}

.btn-scene-interactive:hover {
    background: linear-gradient(135deg, #1E293B 0%, #0F172A 100%);
    border-color: #FF6633;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 74, 13, 0.45), 0 4px 10px rgba(0, 0, 0, 0.2);
    animation-play-state: paused;
}

.btn-scene-interactive:hover .btn-scene-icon-box i {
    transform: rotate(12deg) scale(1.15);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-scene-interactive:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(255, 74, 13, 0.25);
}

.btn-scene-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    text-align: left;
}

.btn-scene-icon-box {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: rgba(255, 74, 13, 0.2);
    border: 1.5px solid rgba(255, 74, 13, 0.5);
    color: #FF4A0D;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
    box-shadow: 0 0 10px rgba(255, 74, 13, 0.25);
}

.btn-scene-labels {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.btn-scene-main-text {
    color: #FFFFFF;
    font-size: clamp(0.82rem, 2.2vw, 0.92rem);
    font-weight: 800;
    letter-spacing: 0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-scene-sub-text {
    color: #94A3B8;
    font-size: 0.72rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.scene-tag-badge {
    background: #FF4A0D;
    color: #FFFFFF;
    font-size: 0.74rem;
    font-weight: 800;
    padding: 5px 12px;
    border-radius: 9999px;
    white-space: nowrap;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 2px 10px rgba(255, 74, 13, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.scene-selected-summary {
    background: #1E293B;
    border: 1px solid #334155;
    border-radius: 8px;
    padding: 0.75rem 0.85rem;
    font-size: 0.8rem;
}

.seat-hint {
    display: block;
    width: 100%;
    margin-top: 0.55rem;
    font-size: 0.78rem;
    color: var(--muted);
    font-weight: 600;
}

.seat-hint strong {
    color: var(--primary);
}

.s3d-modal-overlay[hidden] {
    display: none !important;
}

.s3d-modal-overlay {
    z-index: 100000;
    background: rgba(3, 7, 18, 0.94);
    backdrop-filter: blur(8px);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.s3d-modal-window {
    background: #0F172A;
    border: 1.5px solid #334155;
    border-radius: 18px;
    width: 100%;
    max-width: 1200px;
    height: 92vh;
    height: 92dvh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85);
    position: relative;
}

/* Header */
.s3d-header {
    padding: 0.75rem 1.25rem;
    background: #0F172A;
    border-bottom: 1px solid #1E293B;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    flex-shrink: 0;
}

.s3d-header-main {
    min-width: 0;
    flex: 1 1 240px;
}

.s3d-header-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.s3d-badge-3d {
    background: rgba(255, 74, 13, 0.15);
    color: #FF4A0D;
    border: 1.5px solid rgba(255, 74, 13, 0.45);
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.s3d-event-title {
    margin: 0;
    font-size: clamp(0.95rem, 2.5vw, 1.15rem);
    color: #F8FAFC;
    font-weight: 800;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.s3d-venue-subtitle {
    font-size: 0.76rem;
    color: #94A3B8;
    margin-top: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.s3d-header-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.s3d-tabs {
    display: flex;
    gap: 4px;
    background: #1E293B;
    padding: 4px;
    border-radius: 10px;
    border: 1px solid #334155;
}

.studio-tab-btn {
    background: transparent;
    border: 1px solid transparent;
    color: #94A3B8;
    padding: 0.45rem 0.85rem;
    border-radius: 7px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.studio-tab-btn:hover {
    color: #FFFFFF;
    background: #334155;
}

.studio-tab-btn.active {
    background: #FF4A0D !important;
    border-color: #FF4A0D !important;
    color: #FFFFFF !important;
    font-weight: 800;
    box-shadow: 0 2px 12px rgba(255, 74, 13, 0.5);
}

.studio-tab-btn.active i {
    color: #FFFFFF !important;
}

.s3d-cameras-group {
    display: flex;
    align-items: center;
    gap: 6px;
}

.s3d-cameras {
    display: flex;
    gap: 4px;
}

.s3d-cam-btn {
    background: #1E293B;
    color: #F8FAFC;
    border: 1px solid #334155;
    font-size: 0.78rem;
    padding: 0.4rem 0.75rem;
    border-radius: 7px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.s3d-cam-btn:hover {
    background: #FF4A0D;
    border-color: #FF4A0D;
    color: #FFFFFF;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(255, 74, 13, 0.35);
}

.s3d-cam-btn:hover i {
    color: #FFFFFF !important;
}

.s3d-cam-reset {
    color: #FF4A0D;
    background: rgba(255, 74, 13, 0.12);
    border-color: rgba(255, 74, 13, 0.35);
}

.s3d-close-btn {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.5);
    color: #EF4444;
    border-radius: 8px;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.s3d-close-btn:hover {
    background: #EF4444;
    color: #FFFFFF;
    border-color: #EF4444;
}

/* Body */
.s3d-body {
    display: flex;
    flex: 1;
    min-height: 0;
    overflow: hidden;
    position: relative;
}

.s3d-canvas-panel {
    flex: 1;
    min-width: 0;
    position: relative;
    background: #0B0F19;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.s3d-canvas-panel canvas {
    width: 100%;
    height: 100%;
    display: block;
    touch-action: none;
}

.s3d-tariff-bar {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    display: flex;
    gap: 6px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
    z-index: 10;
    scrollbar-width: none;
}

.s3d-tariff-bar::-webkit-scrollbar {
    display: none;
}

.studio-filter-btn {
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(8px);
    border: 1px solid #334155;
    color: #E2E8F0;
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.15s ease;
}

.studio-filter-btn:hover {
    border-color: #FF4A0D;
    color: #FFFFFF;
    background: #1E293B;
}

.studio-filter-btn.active {
    background: #FF4A0D;
    color: #FFFFFF;
    border-color: #FF4A0D;
    font-weight: 800;
    box-shadow: 0 2px 12px rgba(255, 74, 13, 0.5);
}

.s3d-touch-hint {
    position: absolute;
    top: 48px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(15, 23, 42, 0.9);
    color: #CBD5E1;
    font-size: 0.72rem;
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    pointer-events: none;
    white-space: nowrap;
    opacity: 0.95;
    z-index: 5;
}

.s3d-legend {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(8px);
    border: 1px solid #334155;
    padding: 0.45rem 0.85rem;
    border-radius: 8px;
    display: flex;
    gap: 0.75rem;
    align-items: center;
    font-size: 0.74rem;
    color: #F8FAFC;
    z-index: 10;
    pointer-events: none;
}

.s3d-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.s3d-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.dot-libre {
    background: #22C55E;
}

.dot-selected {
    background: #FF4A0D;
    box-shadow: 0 0 6px #FF4A0D;
}

.dot-occupe {
    background: #64748B;
}

/* Other panels */
.s3d-plan-panel,
.s3d-photos-panel {
    flex: 1;
    display: none;
    background: #0B0F19;
    padding: 1.25rem;
    overflow-y: auto;
}

.s3d-plan-panel {
    text-align: center;
}

.s3d-photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

/* Sidebar / Drawer */
.s3d-sidebar {
    width: 320px;
    flex-shrink: 0;
    background: #0F172A;
    border-left: 1px solid #1E293B;
    padding: 1.15rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow-y: auto;
    box-sizing: border-box;
}

.s3d-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.s3d-sidebar-title {
    font-weight: 800;
    color: #F8FAFC;
    font-size: 0.88rem;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 6px;
}

.s3d-seats-badge {
    background: rgba(255, 74, 13, 0.2);
    color: #FF4A0D;
    font-size: 0.74rem;
    padding: 3px 9px;
    border-radius: 10px;
    font-weight: 800;
    border: 1px solid rgba(255, 74, 13, 0.4);
}

.s3d-mobile-toggle-btn {
    display: none;
    background: rgba(255, 74, 13, 0.15);
    color: #FF4A0D;
    border: 1px solid rgba(255, 74, 13, 0.4);
    border-radius: 6px;
    padding: 4px 9px;
    font-size: 0.74rem;
    font-weight: 700;
    cursor: pointer;
}

.s3d-selected-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 220px;
    overflow-y: auto;
    margin-bottom: 0.85rem;
    padding-right: 2px;
}

.s3d-empty-msg {
    color: #94A3B8;
    font-size: 0.78rem;
    font-style: italic;
    text-align: center;
    padding: 1.25rem 0;
}

.s3d-sightline-box {
    background: #1E293B;
    border: 1px solid #334155;
    border-radius: 8px;
    padding: 0.75rem 0.85rem;
    margin-bottom: 0.85rem;
}

.s3d-sightline-title {
    font-size: 0.72rem;
    font-weight: 700;
    color: #FF4A0D;
    text-transform: uppercase;
    margin-bottom: 3px;
}

.s3d-sightline-desc {
    font-size: 0.76rem;
    color: #F8FAFC;
    line-height: 1.35;
}

.s3d-sidebar-footer {
    flex-shrink: 0;
}

.s3d-total-card {
    background: #1E293B;
    border: 1px solid #334155;
    border-radius: 10px;
    padding: 0.85rem 1rem;
    margin-bottom: 0.85rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.s3d-total-label {
    font-size: 0.72rem;
    color: #94A3B8;
    text-transform: uppercase;
    display: block;
    font-weight: 700;
}

.s3d-sub-count {
    color: #FF4A0D;
    font-weight: 700;
    font-size: 0.75rem;
}

.s3d-total-amount {
    color: #FF4A0D;
    font-size: 1.15rem;
    font-weight: 800;
}

.s3d-btn-validate {
    width: 100%;
    margin: 0;
    background: #FF4A0D;
    font-size: 0.88rem;
    padding: 0.75rem 1rem;
    min-height: 44px;
    border-radius: 8px;
    font-weight: 800;
    box-shadow: 0 4px 16px rgba(255, 74, 13, 0.4);
}

.s3d-btn-cancel {
    width: 100%;
    margin-top: 6px;
    background: transparent;
    border: none;
    color: #94A3B8;
    font-size: 0.78rem;
    cursor: pointer;
    text-decoration: underline;
    padding: 4px;
}

/* ===== ADAPTATIONS MOBILES (< 992px & < 640px) ===== */
@media (max-width: 991px) {
    .s3d-modal-overlay {
        padding: 0 !important;
    }

    .s3d-modal-window {
        width: 100% !important;
        max-width: 100% !important;
        height: 100vh !important;
        height: 100dvh !important;
        border-radius: 0 !important;
        border: none !important;
    }

    .s3d-body {
        flex-direction: column !important;
    }

    .s3d-canvas-panel {
        flex: 2 1 auto !important;
        min-height: 55vh !important;
        height: auto !important;
    }

    .s3d-sidebar {
        width: 100% !important;
        border-left: none !important;
        border-top: 1px solid #334155 !important;
        padding: 0.75rem 1rem !important;
        max-height: 28vh !important;
        flex: 0 0 auto !important;
        background: #0F172A !important;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5) !important;
        overflow-y: auto !important;
    }

    .s3d-mobile-toggle-btn {
        display: inline-flex !important;
        align-items: center;
        gap: 4px;
    }

    /* Mode rétracté sur mobile pour voir le canvas */
    .s3d-sidebar.is-collapsed .s3d-sidebar-content {
        display: none !important;
    }

    .s3d-selected-list {
        max-height: 110px !important;
    }
}

@media (max-width: 640px) {
    .s3d-header {
        padding: 0.5rem 0.75rem !important;
        gap: 0.4rem !important;
    }

    .s3d-header-controls {
        width: 100% !important;
        justify-content: space-between !important;
    }

    .s3d-venue-subtitle {
        display: none !important;
    }

    .s3d-touch-hint {
        display: none !important;
    }

    .s3d-legend {
        bottom: 6px !important;
        left: 6px !important;
        padding: 0.25rem 0.5rem !important;
        font-size: 0.65rem !important;
        gap: 0.4rem !important;
    }

    .s3d-cam-btn span {
        display: none !important;
    }

    .s3d-cam-btn {
        padding: 0.35rem 0.5rem !important;
    }

    .s3d-total-card {
        padding: 0.5rem 0.75rem !important;
        margin-bottom: 0.5rem !important;
    }

    .s3d-total-amount {
        font-size: 1.05rem !important;
    }

    .s3d-photos-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)) !important;
        gap: 0.5rem !important;
    }
}

/* ===== Onglets principaux (Segmented Control Pro) ===== */
.main-tabs {
    display: flex;
    gap: 0.35rem;
    margin: 0 auto 1.75rem;
    background: #ffffff;
    border: 1px solid var(--eventia-border, #E5E5E5);
    border-radius: 9999px;
    padding: 5px;
    box-shadow: 0 4px 15px rgba(11, 29, 58, 0.06);
    width: fit-content;
    max-width: 100%;
    justify-content: center;
    box-sizing: border-box;
}

@keyframes tabActivePop {
    0% {
        transform: scale(0.96);
    }

    60% {
        transform: scale(1.02);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes tabIconBounce {
    0% {
        transform: scale(0.85);
    }

    50% {
        transform: scale(1.25) rotate(-6deg);
    }

    100% {
        transform: scale(1) rotate(0deg);
    }
}

.main-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.55rem 1.25rem;
    border-radius: 9999px;
    color: var(--eventia-muted, #737373);
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: var(--font-heading, 'Outfit', sans-serif);
    white-space: nowrap;
    position: relative;
}

.main-tab i {
    transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.main-tab:hover {
    color: var(--eventia-navy, #000000);
    background: #F5F5F5;
    transform: translateY(-2px);
}

.main-tab:hover i {
    transform: scale(1.15);
}

.main-tab:active {
    transform: scale(0.96);
}

.main-tab.active {
    background: var(--eventia-navy, #000000);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(11, 29, 58, 0.28);
    animation: tabActivePop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.main-tab.active i {
    animation: tabIconBounce 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    color: #FF4A0D;
}

.main-tab-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 800;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    background: #F5F5F5;
    color: var(--eventia-navy, #000000);
    margin-left: 0.35rem;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.main-tab.active .main-tab-badge {
    background: var(--eventia-amber, #FF4A0D);
    color: #ffffff;
    animation: badgeBounce 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@media (max-width: 640px) {
    .main-tabs {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 2px;
        padding: 4px;
        border-radius: 14px;
    }

    .main-tab {
        padding: 0.55rem 0.35rem;
        font-size: 0.78rem;
        border-radius: 10px;
        flex-direction: column;
        gap: 3px;
        text-align: center;
    }

    .main-tab-badge {
        font-size: 0.68rem;
        min-width: 18px;
        height: 18px;
        margin-left: 0;
        padding: 0 4px;
    }
}

/* ===== Section Cotisations ===== */
.cotisation-card {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    max-width: 640px;
    margin: 0 auto;
}

.cotisation-amounts {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.cotisation-amount-btn {
    padding: 0.5rem 1.1rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-full);
    background: #ffffff;
    color: var(--ink);
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: var(--transition);
}

.cotisation-amount-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* ===== Section Voter : classement des événements ===== */
.vote-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 0.9rem 1.1rem;
    margin-bottom: 0.65rem;
    transition: var(--transition);
}

.vote-rank {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #F5F5F5;
    color: var(--muted);
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 0.9rem;
}

.vote-rank.top1 {
    background: #FFF2ED;
    color: #FF4A0D;
}

.vote-rank.top2 {
    background: #E5E5E5;
    color: #737373;
}

.vote-rank.top3 {
    background: #FFF2ED;
    color: #FF4A0D;
}

.vote-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 1rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-full);
    background: #ffffff;
    color: var(--ink);
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: var(--transition);
    flex-shrink: 0;
}

.vote-btn i {
    color: #737373;
}

.vote-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.vote-btn.voted {
    background: var(--primary);
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(255, 74, 13, 0.3);
}

.vote-btn.voted i {
    color: #ffffff;
}

/* ===== Choix multiples & Candidats du vote payant ===== */
.candidats-vote-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: 310px;
    overflow-y: auto;
    padding-right: 4px;
    margin-bottom: 1.25rem;
}

.candidats-vote-list::-webkit-scrollbar {
    width: 5px;
}

.candidats-vote-list::-webkit-scrollbar-thumb {
    background: #E5E5E5;
    border-radius: 999px;
}

.candidat-choice-card {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    padding: 0.85rem 1rem;
    border: 2px solid var(--line);
    border-radius: 10px;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    user-select: none;
}

.candidat-choice-card:hover {
    border-color: #FFF2ED;
    background: #F5F5F5;
    transform: translateY(-1px);
}

.candidat-choice-card.selected {
    border-color: var(--primary);
    background: linear-gradient(135deg, #FFF2ED 0%, #FFF2ED 100%);
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.15);
}

.candidat-checkbox {
    margin-top: 4px;
    transform: scale(1.3);
    accent-color: var(--primary);
    cursor: pointer;
    flex-shrink: 0;
}

.candidat-choice-photo {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid var(--line);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.candidat-choice-card.selected .candidat-choice-photo {
    border-color: var(--primary);
    transform: scale(1.05);
    box-shadow: 0 3px 8px rgba(13, 148, 136, 0.25);
}

.candidat-choice-info {
    flex: 1;
    min-width: 0;
}

.candidat-choice-nom {
    font-weight: 700;
    color: var(--navy);
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    overflow-wrap: break-word;
    word-break: normal;
}

.candidat-choice-desc {
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.45;
    margin: 0;
    transition: color 0.2s ease;
    overflow-wrap: break-word;
    word-break: normal;
}

.candidat-choice-card.selected .candidat-choice-desc {
    color: #000000;
}

.candidat-badge-selected {
    font-size: 0.72rem;
    background: #FF4A0D;
    color: #ffffff;
    padding: 2px 7px;
    border-radius: 999px;
    font-weight: 700;
    display: none;
}

.candidat-choice-card.selected .candidat-badge-selected {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

/* ==============================================================================
       BOUTONS D'ACTION (PARTAGER & DÉTAILS) SUR LES CARTES
       ============================================================================== */
.btn-card-share {
    display: none !important;
}

.btn-card-detail {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.5rem 0.9rem;
    border-radius: 8px;
    border: 1px solid var(--line, #E5E5E5);
    background: #ffffff;
    color: var(--navy, #0F172A);
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.btn-card-detail:hover {
    background: #F8FAFC;
    border-color: #CBD5E1;
    transform: translateY(-1px);
}

.btn-share-floating {
    display: none !important;
}

/* Highlight flash pour deep-link */
@keyframes deepLinkPulse {
    0% {
        outline: 3px solid transparent;
        box-shadow: 0 0 0 0 rgba(255, 74, 13, 0.7);
    }

    50% {
        outline: 3px solid #FF4A0D;
        box-shadow: 0 0 0 10px rgba(255, 74, 13, 0.15);
    }

    100% {
        outline: 3px solid transparent;
        box-shadow: 0 0 0 0 transparent;
    }
}

.card-highlight-pulse {
    animation: deepLinkPulse 2.5s ease-out;
}

/* ==============================================================================
       MODALE DE DÉTAILS ÉTENDUE & MODALE DE PARTAGE (SWISS DESIGN)
       ============================================================================== */
.client-modal-box-lg {
    max-width: 680px !important;
    max-height: 90vh;
    overflow-y: auto;
    padding: 1.75rem !important;
}

.detail-banner-box {
    width: 100%;
    height: 220px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    margin-bottom: 1.25rem;
    border: 1px solid var(--line, #E5E5E5);
}

.detail-banner-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.detail-metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.detail-metric-card {
    background: #F8FAFC;
    border: 1px solid var(--line, #E5E5E5);
    border-radius: 10px;
    padding: 0.75rem 0.9rem;
}

.detail-metric-card small {
    color: var(--muted, #64748B);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    display: block;
    margin-bottom: 3px;
}

.detail-metric-card strong {
    color: var(--navy, #0F172A);
    font-size: 1.05rem;
    font-weight: 800;
    display: block;
}

.detail-candidate-grid {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-top: 0.85rem;
}

.detail-candidate-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    background: #ffffff;
    border: 1px solid var(--line, #E5E5E5);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.detail-candidate-card:hover {
    border-color: #FF4A0D;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.detail-candidate-card.targeted {
    border-color: #FF4A0D;
    background: #FFF2ED;
    box-shadow: 0 0 0 2px #FF4A0D;
}

/* Grille de partage multicanal */
.share-link-box {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    background: #F8FAFC;
    border: 1px solid var(--line, #E5E5E5);
    border-radius: 10px;
    padding: 0.45rem;
    align-items: center;
}

.share-link-input {
    flex: 1;
    border: none;
    background: transparent;
    font-family: 'Space Mono', monospace, sans-serif;
    font-size: 0.84rem;
    color: var(--navy, #0F172A);
    padding: 0.45rem 0.65rem;
    outline: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.btn-copy-link {
    padding: 0.55rem 1.1rem;
    background: #0F172A;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.84rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-copy-link:hover {
    background: #FF4A0D;
}

.btn-copy-link.copied {
    background: #10B981 !important;
}

.share-channels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.share-channel-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.86rem;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    text-align: center;
    font-family: inherit;
}

.share-wa {
    background: #25D366;
    color: #ffffff;
}

.share-wa:hover {
    background: #1EBE5B;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.35);
}

.share-fb {
    background: #1877F2;
    color: #ffffff;
}

.share-fb:hover {
    background: #1464D2;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(24, 119, 242, 0.35);
}

.share-tw {
    background: #000000;
    color: #ffffff;
}

.share-tw:hover {
    background: #262626;
    color: #ffffff;
    transform: translateY(-2px);
}

.share-sms {
    background: #475569;
    color: #ffffff;
}

.share-sms:hover {
    background: #334155;
    color: #ffffff;
    transform: translateY(-2px);
}

.share-native {
    background: #F1F5F9;
    color: #0F172A;
    border: 1px solid #CBD5E1;
}

.share-native:hover {
    background: #E2E8F0;
    transform: translateY(-2px);
}

/* ==========================================================================
       BOUTON DE FERMETURE UNIVERSEL ULTRA-LISIBLE (MODALES CLIENTS)
       ========================================================================== */
.client-modal-close {
    position: absolute !important;
    top: 14px !important;
    right: 14px !important;
    width: 42px !important;
    height: 42px !important;
    border-radius: 50% !important;
    border: 2px solid rgba(255, 255, 255, 0.65) !important;
    background: rgba(15, 23, 42, 0.88) !important;
    color: #ffffff !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.25rem !important;
    cursor: pointer !important;
    z-index: 99999 !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4) !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.client-modal-close:hover {
    background: #FF4A0D !important;
    border-color: #FF4A0D !important;
    color: #ffffff !important;
    transform: scale(1.12) rotate(90deg) !important;
    box-shadow: 0 4px 20px rgba(255, 74, 13, 0.5) !important;
}

.client-modal-close i {
    font-size: 1.25rem !important;
    line-height: 1 !important;
}

/* ==========================================================================
       SUITE D'ANIMATIONS DYNAMIQUES & MICRO-INTERACTIONS SUISSES
       ========================================================================== */

/* 1. Entrée cinéma des modales */
.client-modal:not([hidden]) {
    animation: modalBackdropIn 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
}

.client-modal:not([hidden]) .client-modal-box {
    animation: modalBoxPop 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
}

@keyframes modalBackdropIn {
    from {
        opacity: 0;
        backdrop-filter: blur(0px);
        -webkit-backdrop-filter: blur(0px);
    }

    to {
        opacity: 1;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }
}

@keyframes modalBoxPop {
    0% {
        opacity: 0;
        transform: scale(0.92) translateY(24px);
    }

    70% {
        transform: scale(1.01) translateY(-2px);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* 2. Feedback au clic sur tous les boutons d'action */
.btn-card-share,
.btn-card-detail,
.vote-btn,
.btn-submit,
.btn-copy-link,
.share-channel-btn {
    transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease !important;
}

.btn-card-share:active,
.btn-card-detail:active,
.vote-btn:active,
.btn-submit:active,
.share-channel-btn:active {
    transform: scale(0.95) !important;
}

/* 3. Rebond dynamique du pouce de vote (Voté) */
@keyframes voteThumbsBounce {
    0% {
        transform: scale(1);
    }

    35% {
        transform: scale(1.35) rotate(-14deg);
    }

    70% {
        transform: scale(0.9) rotate(8deg);
    }

    100% {
        transform: scale(1) rotate(0deg);
    }
}

.vote-btn.voted i {
    display: inline-block;
    animation: voteThumbsBounce 0.45s cubic-bezier(0.16, 1, 0.3, 1);
    color: #FF4A0D;
}

/* 4. Pulsation et halo au clic sur Copier le lien */
@keyframes copySuccessPulse {
    0% {
        transform: scale(1);
    }

    45% {
        transform: scale(1.08);
        box-shadow: 0 0 18px rgba(16, 185, 129, 0.6);
    }

    100% {
        transform: scale(1);
    }
}

.btn-copy-link.copied {
    animation: copySuccessPulse 0.42s cubic-bezier(0.16, 1, 0.3, 1) !important;
    background: #10B981 !important;
    color: #ffffff !important;
}

/* 5. Jauge de cotisation : flux scintillant et remplissage fluide */
@keyframes progressShimmerFlow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

#cotisationDetailBar {
    background: linear-gradient(90deg, #FF4A0D 0%, #EA580C 35%, #F59E0B 70%, #FF4A0D 100%) !important;
    background-size: 200% 100% !important;
    animation: progressShimmerFlow 3.5s ease infinite !important;
    transition: width 0.9s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* 6. Cascade d'apparition des candidats */
@keyframes candidateSlideIn {
    from {
        opacity: 0;
        transform: translateX(-14px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.detail-candidate-card {
    animation: candidateSlideIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.detail-candidate-card:hover {
    transform: translateX(6px) !important;
    border-color: #FF4A0D !important;
    box-shadow: 0 4px 16px rgba(255, 74, 13, 0.14) !important;
}

/* 7. Cascade d'apparition des billets dans la modale d'événement */
.detail-ticket-item {
    animation: candidateSlideIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.detail-ticket-item:hover {
    transform: translateX(5px) !important;
    border-color: #FF4A0D !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08) !important;
}

/* 8. Micro-animation sur les onglets principaux */
.main-tab {
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.main-tab:hover {
    transform: translateY(-2px);
}

.main-tab.active .main-tab-badge {
    animation: badgeBounce 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes badgeBounce {
    0% {
        transform: scale(0.8);
    }

    50% {
        transform: scale(1.18);
    }

    100% {
        transform: scale(1);
    }
}

/* 9. Menu Modale de Réservation Dédié Mobile (Bottom-Sheet fluide) */
@media (max-width: 768px) {
    #clientEventModal {
        padding: 0 !important;
        align-items: flex-end !important;
    }

    #clientEventModal .client-modal-box {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        border-bottom-left-radius: 0 !important;
        border-bottom-right-radius: 0 !important;
        border-top-left-radius: 20px !important;
        border-top-right-radius: 20px !important;
        max-height: 88vh !important;
        padding: 1.25rem 1rem 1.75rem !important;
        box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.28) !important;
        animation: mobileModalSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) both !important;
    }

    @keyframes mobileModalSlideUp {
        from {
            transform: translateY(100%);
            opacity: 0.5;
        }

        to {
            transform: translateY(0);
            opacity: 1;
        }
    }

    #clientEventModal .client-modal-close {
        top: 12px;
        right: 12px;
        width: 34px;
        height: 34px;
    }

    .event-poster {
        height: 195px;
    }
}

/* ==============================================================================
       10. CARROUSEL HORIZONTAL DES CANDIDATS & MODALE DÉTAILS CANDIDATE (SWISS DESIGN)
       ============================================================================== */
.vote-cands-section {
    margin: 1.25rem 0 1rem;
}

.vote-cands-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.vote-cands-header-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--navy, #0F172A);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.vote-cands-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.vote-carousel-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid var(--line, #E2E8F0);
    color: var(--navy, #0F172A);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.vote-carousel-btn:hover {
    background: var(--navy, #0F172A);
    color: #ffffff;
    border-color: var(--navy, #0F172A);
    transform: scale(1.06);
}

.vote-cands-carousel-wrap {
    position: relative;
    width: 100%;
}

.vote-cands-horizontal-track {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    padding: 4px 4px 14px;
    scrollbar-width: thin;
    scrollbar-color: #CBD5E1 transparent;
}

.vote-cands-horizontal-track::-webkit-scrollbar {
    height: 5px;
}

.vote-cands-horizontal-track::-webkit-scrollbar-track {
    background: #F1F5F9;
    border-radius: 999px;
}

.vote-cands-horizontal-track::-webkit-scrollbar-thumb {
    background: #CBD5E1;
    border-radius: 999px;
}

.vote-cands-horizontal-track::-webkit-scrollbar-thumb:hover {
    background: #94A3B8;
}

/* Carte de candidat dans le carrousel horizontal */
.vote-cand-card {
    flex: 0 0 215px;
    width: 215px;
    scroll-snap-align: start;
    background: #ffffff;
    border: 1px solid var(--line, #E2E8F0);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.vote-cand-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px -4px rgba(15, 23, 42, 0.12);
    border-color: #CBD5E1;
}

.vote-cand-photo-wrap {
    position: relative;
    width: 100%;
    height: 190px;
    background: #0f172a;
    overflow: hidden;
    cursor: pointer;
}

.vote-cand-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
    display: block;
}

.vote-cand-card:hover .vote-cand-photo {
    transform: scale(1.05);
}

.vote-cand-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    font-family: 'Space Mono', monospace;
    font-size: 0.72rem;
    font-weight: 700;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(4px);
    color: #ffffff;
    padding: 2px 7px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 2;
}

.vote-cand-badge.top-1 {
    background: #FF4A0D;
    border-color: transparent;
}

.vote-cand-body {
    padding: 10px 12px 12px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.vote-cand-nom {
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--navy, #0F172A);
    margin: 0 0 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.25;
}

.vote-cand-stats {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 0.74rem;
    font-family: 'Space Mono', monospace;
    font-weight: 700;
    margin-bottom: 4px;
}

.vote-cand-gauge-bg {
    height: 5px;
    background: #E2E8F0;
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 9px;
}

.vote-cand-gauge-fill {
    height: 100%;
    background: linear-gradient(90deg, #FF4A0D, #FF7A3D);
    border-radius: 999px;
    transition: width 0.4s ease;
}

.vote-cand-actions {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 6px;
    margin-top: auto;
}

.btn-cand-detail {
    background: #F8FAFC;
    color: var(--navy, #0F172A);
    border: 1px solid #CBD5E1;
    font-weight: 700;
    font-size: 0.74rem;
    padding: 6px 4px;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    transition: all 0.15s ease;
    text-decoration: none;
}

.btn-cand-detail:hover {
    background: #E2E8F0;
    color: var(--navy, #0F172A);
}

.btn-cand-vote {
    background: #FF4A0D;
    color: #ffffff;
    border: none;
    font-weight: 700;
    font-size: 0.74rem;
    padding: 6px 4px;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    transition: all 0.15s ease;
    text-decoration: none;
}

.btn-cand-vote:hover {
    background: #E03E05;
    transform: translateY(-1px);
}

.btn-cand-vote.voted {
    background: #0F172A;
    color: #ffffff;
}

/* Modale Dédiée Détails Candidat */
.candidat-modal-box {
    max-width: 520px !important;
    width: 100% !important;
    max-height: 88vh !important;
    max-height: 88dvh !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    padding: 0 !important;
    border-radius: 16px !important;
}

.candidat-detail-hero {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    align-items: center;
}

.candidat-detail-photo-wrap {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    background: #0F172A;
    border: 1px solid var(--line, #E2E8F0);
}

.candidat-detail-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.candidat-detail-meta {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    min-width: 0;
}

.candidat-detail-nom {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--navy, #0F172A);
    margin: 0 0 0.25rem;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.candidat-detail-event {
    font-size: 0.8rem;
    color: var(--muted, #64748B);
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 0.4rem;
}

.candidat-detail-kpi-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.candidat-detail-kpi {
    background: #F8FAFC;
    border: 1px solid var(--line, #E2E8F0);
    border-radius: 8px;
    padding: 0.55rem 0.75rem;
}

.candidat-detail-kpi small {
    display: block;
    font-size: 0.68rem;
    text-transform: uppercase;
    color: var(--muted, #64748B);
    font-weight: 700;
    letter-spacing: 0.04em;
}

.candidat-detail-kpi strong {
    font-family: 'Space Mono', monospace;
    font-size: 1.15rem;
    font-weight: 900;
    color: var(--navy, #0F172A);
}

.candidat-detail-desc-box {
    background: #F8FAFC;
    border: 1px solid var(--line, #E2E8F0);
    border-radius: 10px;
    padding: 0.85rem 1rem;
    margin-bottom: 1.15rem;
    max-height: 140px;
    overflow-y: auto;
}

.candidat-detail-desc-box h4 {
    margin: 0 0 0.35rem;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted, #64748B);
    font-weight: 800;
}

.candidat-detail-desc-text {
    font-size: 0.88rem;
    line-height: 1.55;
    color: #334155;
    margin: 0;
    white-space: pre-line;
}

@media (max-width: 600px) {
    .vote-cand-card {
        flex: 0 0 185px;
        width: 185px;
    }

    .vote-cand-photo-wrap {
        height: 165px;
    }

    .candidat-detail-hero {
        display: flex;
        align-items: center;
        gap: 0.85rem;
    }

    .candidat-detail-photo-wrap {
        width: 80px;
        height: 80px;
    }
}

/* Modale Vote Événement : Focus Prioritaire sur les Candidats */
.vote-modal-box {
    max-width: 860px !important;
    width: min(96vw, 860px) !important;
    max-height: 92vh;
    padding: 1.25rem clamp(1rem, 3vw, 1.5rem) !important;
    overflow-y: auto;
    overflow-x: hidden;
}

.vote-modal-compact-hero {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 0.85rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid var(--line, #E2E8F0);
}

.vote-modal-hero-thumb {
    width: 68px;
    height: 68px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid var(--line, #E2E8F0);
    background: #0F172A;
}

.vote-modal-title {
    margin: 0.15rem 0 0.35rem;
    font-size: clamp(1.15rem, 2.4vw, 1.4rem);
    color: var(--navy, #0F172A);
    font-weight: 800;
    line-height: 1.25;
}

.vote-modal-meta-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.vote-meta-pill {
    background: #F8FAFC;
    border: 1px solid var(--line, #E2E8F0);
    border-radius: 999px;
    padding: 2px 9px;
    font-size: 0.76rem;
    color: var(--navy, #0F172A);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

@media (max-width: 550px) {
    .vote-modal-compact-hero {
        align-items: flex-start;
    }

    .vote-modal-hero-thumb {
        width: 52px;
        height: 52px;
    }
}

/* Boutons Partager flottants supprimés à la demande utilisateur */
.poster-floating-share-btn {
    display: none !important;
}