:root {
    --primary: #d22044;
    --secondary: #0B2154;
    --light: #F2F2F2;
    --dark: #111111;
    --primary-rgb: 210, 32, 68;
    --secondary-rgb: 11, 33, 84;
}

@font-face {
    font-family: "Daniel Black";
    src: url("/fonts/Daniel-Black.otf") format("opentype");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

.display-5,
.section-heading {
    font-family: "Daniel Black", "Barlow", sans-serif;
    font-size: 2rem;
}

.fw-medium {
    font-weight: 600 !important;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}

#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}

.btn {
    font-weight: 500;
    text-transform: uppercase;
    transition: .5s;
}

.btn.btn-primary,
.btn.btn-secondary {
    color: #ffffff;
    border-radius: 15px;
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
    border-radius: 2px;
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

.navbar-light .navbar-nav .nav-link {
    position: relative;
    margin-right: 26px;
    padding: 25px 0;
    color: var(--dark);
    font-family: "Daniel Black", "Barlow", sans-serif;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.5px;
    outline: none;
    background-image: linear-gradient(var(--primary), var(--primary));
    background-repeat: no-repeat;
    background-position: bottom center;
    background-size: 0% 2px;
    transition: background-size .3s ease, color .3s ease;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: var(--primary);
    background-size: 70% 2px;
}

@media (max-width: 991.98px) {
    .navbar-light .navbar-nav .nav-link {
        margin-right: 0;
        padding: 10px 0;
        background-position: left bottom;
    }
    .navbar-light .navbar-nav {
        border-top: 1px solid #EEEEEE;
    }
}

.navbar-light .navbar-brand,
.navbar-light a.btn {
    height: 75px;
}

.navbar-light.sticky-top {
    top: -100px;
    transition: .5s;
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        border: none;
        margin-top: 0;
        top: 150%;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
    }
    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}

.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, .7);
    z-index: 1;
}

.carousel-control-prev,
.carousel-control-next {
    width: 10%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
}

@media (max-width: 768px) {
    #header-carousel .carousel-item {
        position: relative;
        min-height: 450px;
    }
    #header-carousel .carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

.page-header {
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

.page-header-inner {
    background: rgba(0, 0, 0, .7);
}

.breadcrumb-item + .breadcrumb-item::before {
    color: var(--light);
}

.fact {
    background: linear-gradient(rgba(0, 0, 0, .7), rgba(0, 0, 0, .7)), url(../img/background-1.jpg);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

.service .nav .nav-link {
    background: var(--light);
    transition: .5s;
}

.service .nav .nav-link.active {
    background: var(--primary);
}

.service .nav .nav-link.active h4 {
    color: #FFFFFF !important;
}

.team-item .team-overlay {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    transform: scale(0);
    transition: .5s;
}

.team-item:hover .team-overlay {
    transform: scale(1);
}

.team-item .team-overlay .btn {
    color: var(--primary);
    background: #FFFFFF;
}

.team-item .team-overlay .btn:hover {
    color: #FFFFFF;
    background: var(--secondary);
}

.testimonial-carousel .owl-item .testimonial-text,
.testimonial-carousel .owl-item.center .testimonial-text * {
    transition: .5s;
}

.testimonial-carousel .owl-item.center .testimonial-text {
    background: var(--primary) !important;
}

.testimonial-carousel .owl-item.center .testimonial-text * {
    color: #FFFFFF !important;
}

.testimonial-carousel .owl-dots {
    margin-top: 24px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.testimonial-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: 15px;
    height: 15px;
    border: 1px solid #CCCCCC;
    transition: .5s;
}

.testimonial-carousel .owl-dot.active {
    background: var(--primary);
    border-color: var(--primary);
}

.timeline_area {
    position: relative;
    left: 25%;
    z-index: 1;
}

.single-timeline-area {
    position: relative;
    z-index: 1;
    padding-left: 180px;
}

@media only screen and (max-width: 575px) {
    .single-timeline-area {
        padding-left: 100px;
    }
}

.single-timeline-area .timeline-date {
    position: absolute;
    width: 180px;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: end;
    -ms-flex-pack: end;
    justify-content: flex-end;
    padding-right: 60px;
}

@media only screen and (max-width: 575px) {
    .single-timeline-area .timeline-date {
        width: 100px;
    }
}

.single-timeline-area .timeline-date::after {
    position: absolute;
    width: 3px;
    height: 100%;
    content: "";
    background-color: #ebebeb;
    top: 0;
    right: 30px;
    z-index: 1;
}

.single-timeline-area .timeline-date::before {
    position: absolute;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background-color: #d22044;
    content: "";
    top: 50%;
    right: 26px;
    z-index: 5;
    margin-top: -5.5px;
}

.single-timeline-area .timeline-date p {
    margin-bottom: 0;
    color: #020710;
    font-size: 13px;
    text-transform: uppercase;
    font-weight: 500;
}

.single-timeline-area .single-timeline-content {
    position: relative;
    z-index: 1;
    padding: 30px 30px 25px;
    border-radius: 6px;
    margin-bottom: 15px;
    margin-top: 15px;
    -webkit-box-shadow: 0 0.25rem 1rem 0 rgba(47, 91, 234, 0.125);
    box-shadow: 0 0.25rem 1rem 0 rgba(47, 91, 234, 0.125);
    border: 1px solid #ebebeb;
}

@media only screen and (max-width: 575px) {
    .single-timeline-area .single-timeline-content {
        padding: 20px;
    }
}

.single-timeline-area .single-timeline-content .timeline-icon {
    -webkit-transition-duration: 500ms;
    transition-duration: 500ms;
    width: 30px;
    height: 30px;
    background-color: #d22044;
    -webkit-box-flex: 0;
    -ms-flex: 0 0 30px;
    flex: 0 0 30px;
    text-align: center;
    max-width: 30px;
    border-radius: 50%;
    margin-right: 15px;
}

.single-timeline-area .single-timeline-content .timeline-icon i {
    color: #ffffff;
    line-height: 30px;
}

.single-timeline-area .single-timeline-content .timeline-text h6 {
    -webkit-transition-duration: 500ms;
    transition-duration: 500ms;
}

.single-timeline-area .single-timeline-content .timeline-text p {
    font-size: 13px;
    margin-bottom: 0;
}

.single-timeline-area .single-timeline-content:hover .timeline-icon,
.single-timeline-area .single-timeline-content:focus .timeline-icon {
    background-color: #d22044;
}

.single-timeline-area .single-timeline-content:hover .timeline-text h6,
.single-timeline-area .single-timeline-content:focus .timeline-text h6 {
    color: #d22044;
}

.inline-childs>* {
    display: inline-block;
}

.contact-form {
    background: #fff;
    margin-top: 10%;
    margin-bottom: 5%;
    width: 70%;
}

.contact-form .form-control {
    border-radius: 1rem;
}

.contact-image {
    text-align: center;
}

.contact-image img {
    border-radius: 6rem;
    width: 11%;
    margin-top: -3%;
    transform: rotate(29deg);
}

.contact-form form {
    padding: 14%;
}

.contact-form form .row {
    margin-bottom: -7%;
}

.contact-form h3 {
    margin-bottom: 8%;
    margin-top: -10%;
    text-align: center;
    color: #0062cc;
}

.contact-form .btnContact {
    width: 50%;
    border: none;
    border-radius: 1rem;
    padding: 1.5%;
    background: #dc3545;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
}

.btnContactSubmit {
    width: 50%;
    border-radius: 1rem;
    padding: 1.5%;
    color: #fff;
    background-color: #0062cc;
    border: none;
    cursor: pointer;
}

div.gallery {
    margin: 5px;
    border: 1px solid #ccc;
    display: inline-block;
    vertical-align: top;
    width: 180px;
}

div.gallery:hover {
    border: 1px solid #777;
}

div.gallery img {
    width: 100%;
    height: auto;
}

div.desc {
    padding: 15px;
    text-align: center;
}

.carousel-background {
    background-size: cover;
    background-position: center;
    min-height: 45vh;
    position: relative;
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
}

.event-card {
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.event-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.7) 100%);
}

.bg-gradient-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.hover-card {
    transition: all 0.3s ease;
}

.hover-card:hover {
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175) !important;
    transform: translateY(-5px);
}

.badge-discret {
    background: linear-gradient(135deg, #1cba1c, #28e028);
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 12px;
    margin-left: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hover-shadow:hover {
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175) !important;
    transform: translateY(-5px);
}

.hover-shadow:hover img {
    transform: scale(1.05);
}

@media (max-width: 991.98px) {
    .navbar-brand {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
        flex: 1;
    }
    .navbar-brand img {
        width: 120px !important;
        max-width: 120px !important;
    }
    .navbar-toggler {
        margin-right: 1rem !important;
    }
    .navbar-nav .btn-primary {
        width: 100%;
        margin: 10px 0 !important;
        height: auto !important;
    }
    .navbar-nav .nav-link {
        padding: 10px 0;
    }
}

@media (min-width: 992px) {
    .navbar-nav .btn-primary {
        margin-left: 15px !important;
    }
}

.navbar-nav .btn-primary {
    background-color: var(--dark);
    border-color: var(--dark);
    color: var(--primary);
    font-family: "Daniel Black", "Barlow", sans-serif;
    text-transform: none;
    font-size: 16px;
}

.navbar-nav .btn-primary:hover,
.navbar-nav .btn-primary:focus,
.navbar-nav .btn-primary:active {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
    color: var(--dark) !important;
}

.link-hover-danger:hover {
    color: #dc3545 !important;
}

.form-control {
    height: 38px;
}

.form-control:focus {
    box-shadow: none;
}

.d-flex {
    gap: 0;
}

.rounded-start {
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
    border-right: none;
}

.rounded-end {
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
}

.spectacle-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.spectacle-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12) !important;
}

.spectacle-image img {
    transition: transform 0.4s ease;
}

.spectacle-card:hover .spectacle-image img {
    transform: scale(1.03);
}

.news-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
}

.news-image-wrapper {
    position: relative;
    overflow: hidden;
    height: 280px;
}

.news-card img {
    transition: transform 0.5s ease;
}

.news-card:hover img {
    transform: scale(1.08);
}

.news-author {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    background: #f8f9fa;
    border-radius: 20px;
    font-size: 0.875rem;
    color: #6c757d;
}

.news-excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-read-more {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-read-more:hover {
    padding-right: 2rem;
}

.btn-read-more i {
    transition: transform 0.3s ease;
}

.btn-read-more:hover i {
    transform: translateX(4px);
}

.contact-form-wrapper {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    padding: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-form-wrapper .form-label {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.contact-form-wrapper .form-control,
.contact-form-wrapper .form-select {
    height: auto;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.contact-form-wrapper .form-control:focus,
.contact-form-wrapper .form-select:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.2rem rgba(var(--bs-primary-rgb), 0.15);
}

.contact-form-wrapper .form-control::placeholder {
    color: #adb5bd;
}

.btn-submit-contact {
    border-radius: 25px;
    padding: 0.75rem 2.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-submit-contact:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(var(--bs-primary-rgb), 0.3);
}

.alert-fade-out {
    animation: fadeOut 0.5s ease-out forwards;
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

#imageTrack::-webkit-scrollbar {
    display: none;
}

.gallery-img {
    max-height: 400px;
    width: auto;
    object-fit: contain;
    transition: transform 0.2s;
}

.gallery-img:hover {
    transform: scale(1.02);
}

#imageTrack {
    min-height: 400px;
}

.flex-shrink-0 {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== Galerie Photo - Grid ===== */
.galerie-photo-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 15px;
}

.galerie-photo-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-top: 20px;
}

.galerie-photo-item {
    display: flex;
    flex-direction: column;
    border-radius: 10px;
    overflow: hidden;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.35s ease;
    cursor: pointer;
}

.galerie-photo-item:hover {
    transform: translateY(-6px);
}

.galerie-photo-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.galerie-photo-overlay {
    padding: 15px;
    color: var(--dark);
    transition: opacity 0.35s ease;
}

.galerie-photo-info h6 {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 6px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.galerie-photo-info p {
    font-size: 13px;
    margin: 0;
    opacity: 0.9;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.galerie-photo-btn-container {
    margin-top: 12px;
    text-align: right;
}

.galerie-photo-btn {
    background: var(--primary);
    color: white;
    padding: 6px 15px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
}

.galerie-photo-btn:hover {
    background: #b81a3a;
    transform: translateY(-1px);
}

/* ===== Lightbox ===== */
.galerie-photo-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.97);
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.galerie-photo-lightbox.active {
    display: flex;
    opacity: 1;
    visibility: visible;
    align-items: center;
    justify-content: center;
}

.galerie-photo-lightbox-content {
    display: flex;
    width: 95vw;
    max-width: 1300px;
    height: 90vh;
    max-height: 850px;
    position: relative;
    background: transparent;
    border-radius: 12px;
    overflow: hidden;
    margin: auto;
}

.galerie-photo-lightbox-image-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    max-width: 70%;
    height: 100%;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 12px 0 0 12px;
}

.galerie-photo-lightbox-image-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    animation: zoomInLightbox 0.4s ease-out;
}

.galerie-photo-lightbox-sidebar {
    flex: 0 0 380px;
    height: 100%;
    padding: 30px;
    background: linear-gradient(135deg, rgba(var(--secondary-rgb), 0.95) 0%, rgba(var(--secondary-rgb), 0.9) 100%);
    color: white;
    display: flex;
    flex-direction: column;
    border-radius: 0 12px 12px 0;
    overflow-y: auto;
}

.galerie-photo-lightbox-sidebar h5 {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 18px 0;
    color: white;
    line-height: 1.2;
}

.galerie-photo-lightbox-sidebar p {
    font-size: 15px;
    margin: 0 0 25px 0;
    opacity: 0.95;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 12;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-grow: 1;
}

.galerie-photo-lightbox-btn {
    background: var(--primary);
    color: white;
    padding: 12px 28px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.galerie-photo-lightbox-btn:hover {
    background: #b81a3a;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.galerie-photo-lightbox-btn i {
    margin-right: 8px;
    font-size: 16px;
}

.galerie-photo-lightbox-btn.disabled {
    background: #6c757d !important;
    cursor: not-allowed !important;
    opacity: 0.9;
    box-shadow: none !important;
    transform: none !important;
}

.galerie-photo-lightbox-close {
    position: fixed;
    top: 25px;
    right: 35px;
    font-size: 32px;
    color: white;
    cursor: pointer;
    z-index: 10002;
    background: rgba(0, 0, 0, 0.6);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}

.galerie-photo-lightbox-close:hover {
    background: rgba(0, 0, 0, 0.85);
    transform: scale(1.05);
}

.galerie-photo-lightbox-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    font-size: 36px;
    color: white;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.6);
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10001;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}

.galerie-photo-lightbox-nav:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

.galerie-photo-lightbox-prev {
    left: 35px;
}

.galerie-photo-lightbox-next {
    right: 35px;
}

.galerie-photo-lightbox-counter {
    position: fixed;
    top: 25px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    background: rgba(0, 0, 0, 0.7);
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 500;
    z-index: 10001;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}

/* --- Modal de filtre --- */
#spectacleFilterModal .modal-content {
    border-radius: 12px;
    overflow: hidden;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

#spectacleFilterModal .modal-header {
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.1) 0%, rgba(var(--secondary-rgb), 0.1) 100%);
    border-bottom: none;
    padding: 20px 25px 15px;
}

#spectacleFilterModal .modal-title {
    color: var(--secondary);
    font-weight: 600;
}

#spectacleFilterModal .modal-body {
    padding: 20px 25px;
    max-height: 60vh;
    overflow-y: auto;
}

#spectacleFilterModal .modal-footer {
    background: rgba(var(--primary-rgb), 0.05);
    border-top: none;
    padding: 15px 25px;
}

#spectacleFilterModal .form-check {
    margin-bottom: 12px;
}

#spectacleFilterModal .form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

#spectacleFilterModal .btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    border-radius: 30px;
    padding: 8px 25px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- Bouton de tri/filtre --- */
.galerie-filter-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10;
}

.dropdown-toggle {
    background-color: var(--primary) !important;
    color: white !important;
    border-color: var(--primary) !important;
    border-radius: 50% !important;
    width: 44px !important;
    height: 44px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2) !important;
    transition: all 0.3s ease !important;
    min-width: auto !important;
    padding: 0 !important;
}

.dropdown-toggle:hover {
    background-color: #b81a3a !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25) !important;
}

.dropdown-toggle i {
    font-size: 18px;
    text-shadow: 0 0 2px rgba(255, 255, 255, 0.5);
}

.dropdown-menu {
    background-color: white;
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15) !important;
    min-width: 220px;
    border-radius: 8px !important;
    overflow: hidden;
    margin-top: 8px !important;
}

.dropdown-header {
    color: var(--secondary) !important;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 8px 15px !important;
    background-color: rgba(var(--primary-rgb), 0.05) !important;
}

.dropdown-item {
    color: var(--dark) !important;
    padding: 8px 15px !important;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background-color: rgba(var(--primary-rgb), 0.1) !important;
    color: var(--primary) !important;
}

.dropdown-item i {
    color: var(--primary) !important;
    margin-right: 8px !important;
    width: 16px;
    text-align: center;
}

/* --- Animations --- */
@keyframes zoomInLightbox {
    from {
        transform: scale(0.95);
        opacity: 0.9;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* --- Responsive --- */
@media (max-width: 1200px) {
    .galerie-photo-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
    .galerie-photo-lightbox-content {
        flex-direction: column;
        height: auto;
        max-height: 95vh;
    }
    .galerie-photo-lightbox-image-container {
        max-width: 100%;
        margin-bottom: 20px;
        border-radius: 12px 12px 0 0;
    }
    .galerie-photo-lightbox-sidebar {
        width: 100%;
        max-height: 400px;
        border-radius: 0 0 12px 12px;
    }
    .galerie-photo-lightbox-sidebar p {
        -webkit-line-clamp: 8;
    }
    .galerie-photo-lightbox-nav {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
    }
    .galerie-photo-lightbox-prev {
        left: 15px;
    }
    .galerie-photo-lightbox-next {
        right: 15px;
    }
}

@media (max-width: 992px) {
    .galerie-photo-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .galerie-photo-lightbox-sidebar {
        padding: 25px;
    }
}

@media (max-width: 768px) {
    .galerie-photo-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .galerie-photo-item {
        flex-direction: column;
        height: auto;
        border: 1px solid #eee;
        border-radius: 8px;
    }
    .galerie-photo-item img {
        height: 200px;
        border-radius: 8px 8px 0 0;
    }
    .galerie-photo-overlay {
        padding: 12px;
        text-align: left;
    }
    .galerie-photo-info h6 {
        color: var(--dark);
        font-size: 15px;
        white-space: normal;
        margin-bottom: 5px;
    }
    .galerie-photo-info p {
        color: #666;
        font-size: 13px;
        white-space: normal;
    }
    .galerie-photo-btn-container {
        margin-top: 10px;
        text-align: right;
    }
    .galerie-photo-btn {
        padding: 6px 12px;
        font-size: 13px;
    }
    .dropdown-toggle {
        width: 40px !important;
        height: 40px !important;
    }
    .galerie-photo-lightbox-nav {
        width: 45px;
        height: 45px;
        font-size: 30px;
    }
    .galerie-photo-lightbox-close {
        top: 15px;
        right: 15px;
        width: 45px;
        height: 45px;
        font-size: 28px;
    }
    .galerie-photo-lightbox-counter {
        top: 15px;
        padding: 8px 16px;
        font-size: 14px;
    }
    .galerie-photo-lightbox-content {
        flex-direction: column !important;
        height: auto !important;
        max-height: none !important;
        padding: 10px;
    }
    .galerie-photo-lightbox-image-container {
        max-width: 100% !important;
        padding: 10px !important;
    }
    .galerie-photo-lightbox-sidebar {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        padding: 20px !important;
    }
    .galerie-photo-lightbox-image-container img {
        max-height: 60vh !important;
        width: auto !important;
        height: auto !important;
    }
    .galerie-photo-lightbox-counter {
        font-size: 13px !important;
        top: 15px !important;
    }
    .galerie-photo-lightbox-nav {
        width: 40px !important;
        height: 40px !important;
        font-size: 28px !important;
    }
}

.spectacle-card-encours {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.spectacle-card-encours:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12) !important;
}
.spectacle-image-encours img {
    transition: transform 0.4s ease;
}
.spectacle-card-encours:hover .spectacle-image-encours img {
    transform: scale(1.03);
}

/* Animation */
@keyframes tpgal-spin {
    to { transform: rotate(360deg); }
}

/* Lightbox */
#tpgal-lightbox-counter {
    position: fixed;
    top: 25px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    background: rgba(0, 0, 0, 0.7);
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 1rem;
    z-index: 10001;
    width: 120px;
    text-align: center;
}

#tpgal-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
    overflow-y: auto;
}

#tpgal-lightbox-img {
    touch-action: none;
}

.tpgal-lightbox-content {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 60px auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
}

.tpgal-lightbox-image-container {
    position: relative;
    width: 100%;
    background: transparent;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

#tpgal-lightbox-loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.tpgal-lightbox-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #d22044;
    animation: tpgal-spin 1s ease-in-out infinite;
}

.tpgal-lightbox-info {
    width: 100%;
    background: rgba(30, 30, 30, 0.95);
    padding: 20px;
    color: white;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

#tpgal-lightbox-legende {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255,255,255,0.9);
    width: 100%;
    text-align: left;
    margin: 0 0 15px 0;
    display: inline;
    white-space: pre-line;
}

#tpgal-voir-plus {
    color: #d22044;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    text-decoration: underline;
    display: inline;
    margin-left: 5px;
}

#tpgal-lightbox-link {
    display: inline-block;
    background: #d22044;
    color: white;
    padding: 8px 18px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    margin-left: auto;
    font-size: 0.9rem;
}

#tpgal-lightbox-link:hover {
    background: #b81a3a;
    transform: translateY(-2px);
}

.tpgal-lightbox-buttons {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Galerie */
.tpgal-galerie-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(50, 50, 50, 0.7);
    padding: 15px;
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#tpgal-apply-filter.disabled {
    pointer-events: none;
    opacity: 0.65 !important;
    cursor: not-allowed !important;
}

.tpgal-gallery-image {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tpgal-gallery-image.loaded {
    opacity: 1;
}

.tpgal-image-placeholder {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    border: 3px solid rgba(210, 32, 68, 0.3);
    border-radius: 50%;
    border-top-color: #d22044;
    animation: tpgal-spin 1s ease-in-out infinite;
}

/* Pagination */
.tpgal-pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.tpgal-pagination-btn {
    background: white;
    border: 2px solid #d22044;
    color: #d22044;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.tpgal-pagination-btn:hover:not(:disabled) {
    background: #d22044;
    color: white;
}

.tpgal-pagination-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.tpgal-pagination-btn.active {
    background: #d22044;
    color: white;
}

.tpgal-pagination-info {
    color: #0B2154;
    font-weight: 600;
    padding: 8px 16px;
}

/* Sélecteur d'affichage */
.tpgal-per-page-selector {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tpgal-per-page-btn {
    background: white;
    border: 2px solid #d22044;
    color: #d22044;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.tpgal-per-page-btn:hover {
    background: rgba(210, 32, 68, 0.1);
}

.tpgal-per-page-btn.active {
    background: #d22044;
    color: white;
}

/* Options de tri */
.tpgal-sort-option-selected {
    background-color: rgba(210, 32, 68, 0.1);
    font-weight: bold;
}


