/********** Template CSS **********/
:root {
    --primary: #cd0009;
    --secondary: #FF6922;
    --light: #EFFDF5;
    --dark: #5170ff;
}

.text-primary {
    color: var(--primary) !important;
}
.page-header-inner {
    background: rgba(15, 23, 43, .7);
}
.page-header {
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}
.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}
body{
    background-color: #fff;
}

/* Style personnalisé pour le header de donation */
.donation-header {
    margin-top: 100px !important;
}

/*** Button ***/
.btn {
    transition: .5s;
}

.btn.btn-primary,
.btn.btn-secondary {
    color: #FFFFFF;
}

.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: 50px;
}


/*** Top Bar ***/
.top-bar {
    background-color: #5170ff !important;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9998;
    margin: 0;
    padding: 0;
    height: 44px;
    display: flex;
    align-items: center;
}

.top-bar .container {
    height: 100%;
    display: flex;
    align-items: center;
}

.top-bar .row {
    width: 100%;
    align-items: center;
}

.top-bar .text-white {
    color: #FFFFFF !important;
}

.top-bar .fa-phone-alt,
.top-bar .fa-envelope {
    color: #FFFFFF !important;
}

.top-bar .fab {
    color: #FFFFFF !important;
    transition: all 0.3s ease;
}

.top-bar .fab:hover {
    color: var(--primary) !important;
    transform: scale(1.1);
}

.top-bar .social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #FFFFFF;
    color: #5170ff !important;
    transition: all 0.3s ease;
    text-decoration: none;
}

.top-bar .social-icon:hover {
    background-color: #5170ff;
    color: #FFFFFF !important;
    transform: scale(1.1);
}

.top-bar .social-icon i {
    font-size: 14px;
    color: #5170ff !important;
}


/*** Navbar ***/
.nav-bar {
    position: fixed;
    top: 44px;
    left: 0;
    right: 0;
    transition: .5s;
    z-index: 9999;
    margin: 0;
    padding: 0;
}

.nav-bar.sticky-top {
    position: sticky;
    padding: 0;
    z-index: 9999;
}

.navbar {
    box-shadow: 0 0 30px rgba(0, 0, 0, .08);
    margin: 0;
    padding: 0;
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 5px;
    transition: .5s;
}

.navbar .dropdown-toggle[aria-expanded=true]::after {
    transform: rotate(-180deg);
}

.navbar-light .navbar-nav .nav-link {
    margin-right: 30px;
    padding: 25px 0;
    color: #FFFFFF;
    font-size: 15px;
    text-transform: uppercase;
    outline: none;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: var(--primary);
}

@media (max-width: 991.98px) {
    .nav-bar {
        margin: 0;
        padding: 0;
    }

    .navbar-light .navbar-nav .nav-link  {
        margin-right: 0;
        padding: 10px 0;
    }

    .navbar-light .navbar-nav {
        border-top: 1px solid #EEEEEE;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        padding: 15px;
    }
    
    .navbar-light .navbar-nav .nav-item {
        text-align: center;
    }
    
    .navbar-light .navbar-nav .dropdown-menu {
        position: static !important;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        box-shadow: none !important;
        border: 1px solid #EEEEEE !important;
        margin-top: 5px !important;
        background: #f8f9fa !important;
    }
    
    .navbar-light .navbar-nav .dropdown-toggle::after {
        display: none;
    }
}

.navbar-light .navbar-brand {
    height: 75px;
}

.navbar-light .navbar-nav .nav-link {
    color: var(--dark);
    font-weight: 500;
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        top: 100%;
        margin-top: 0;
        transform: rotateX(-75deg);
        transform-origin: 0% 0%;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
        
    }

    .navbar .nav-item:hover .dropdown-menu {
        transform: rotateX(0deg);
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}


/*** Header ***/
@media (min-width: 992px) {
    .header {
        margin-top: 20px;
    }
}

@media (max-width: 991.98px) {
    .header {
        margin-top: 120px;
    }
}

.header-carousel .owl-nav {
    position: absolute;
    top: 50%;
    left: -25px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
}

.header-carousel .owl-nav .owl-prev,
.header-carousel .owl-nav .owl-next {
    margin: 7px 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    background: var(--primary);
    border-radius: 40px;
    font-size: 20px;
    transition: .5s;
}

.header-carousel .owl-nav .owl-prev:hover,
.header-carousel .owl-nav .owl-next:hover {
    background: var(--dark);
}

@media (max-width: 768px) {
    .header-carousel .owl-nav {
        left: 25px;
    }
}

.breadcrumb-item + .breadcrumb-item::before {
    color: #DDDDDD;
}


/*** Icon ***/
.icon {
    padding: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #FFFFFF !important;
}


/*** About ***/
.about-img img {
    position: relative;
    z-index: 2;
}

.about-img::before {
    position: absolute;
    content: "";
    top: 0;
    left: -50%;
    width: 100%;
    height: 100%;
    background: var(--primary);
    transform: skew(20deg);
    z-index: 1;
}


/*** Category ***/
.cat-item div {
    background: #FFFFFF;
    border: 1px dashed rgba(245, 163, 39, .3);
    transition: .5s;
}

.cat-item:hover div {
    background: var(--primary);
    border-color: transparent;
}

.cat-item div * {
    transition: .5s;
}

.cat-item:hover div * {
    color: #FFFFFF !important;
}

.cat-item:hover div .fa {
    color: var(--primary) !important;
}


/*** Property List ***/
.nav-pills .nav-item .btn {
    color: var(--dark);
}

.nav-pills .nav-item .btn:hover,
.nav-pills .nav-item .btn.active {
    color: #FFFFFF;
}

.property-item {
    box-shadow: 0 0 30px rgba(0, 0, 0, .08);
}

.property-item img {
    transition: .5s;
}

.property-item:hover img {
    transform: scale(1.1);
}

.property-item .border-top {
    border-top: 1px dashed rgba(245, 163, 39, .3) !important;
}

.property-item .border-end {
    border-right: 1px dashed rgba(245, 163, 39, .3) !important;
}


/*** Team ***/
.team-item {
    box-shadow: 0 0 30px rgba(0, 0, 0, .08);
    transition: .5s;
}

.team-item .btn {
    color: var(--primary);
    background: #FFFFFF;
    box-shadow: 0 0 30px rgba(0, 0, 0, .15);
}

.team-item .btn:hover {
    color: #FFFFFF;
    background: var(--primary);
}

.team-item:hover {
    border-color: var(--secondary) !important;
}

.team-item:hover .bg-primary {
    background: var(--secondary) !important;
}

.team-item:hover .bg-primary i {
    color: var(--secondary) !important;
}


/*** Testimonial ***/
.testimonial-carousel {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

@media (min-width: 576px) {
    .testimonial-carousel {
        padding-left: 4rem;
        padding-right: 4rem;
    }
}

.testimonial-carousel .testimonial-item .border {
    border: 1px dashed rgba(245, 163, 39, .3) !important;
}

.testimonial-carousel .owl-nav {
    position: absolute;
    width: 100%;
    height: 40px;
    top: calc(50% - 20px);
    left: 0;
    display: flex;
    justify-content: space-between;
    z-index: 1;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    background: var(--primary);
    border-radius: 40px;
    font-size: 20px;
    transition: .5s;
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
    background: var(--dark);
}


/*** Footer ***/
.footer .btn.btn-social {
    margin-right: 5px;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light);
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: 35px;
    transition: .3s;
}

.footer .btn.btn-social:hover {
    color: var(--primary);
    border-color: var(--light);
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    font-size: 15px;
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    letter-spacing: 1px;
    box-shadow: none;
}

.footer .form-control {
    border-color: rgba(255,255,255,0.5);
}

.footer .copyright {
    padding: 25px 0;
    font-size: 15px;
    border-top: 1px solid rgba(256, 256, 256, .1);
}

.footer .copyright a {
    color: var(--light);
}

.footer .footer-menu a {
    margin-right: 15px;
    padding-right: 15px;
    border-right: 1px solid rgba(255, 255, 255, .1);
}

.footer .footer-menu a:last-child {
    margin-right: 0;
    padding-right: 0;
    border-right: none;
}


/*** Statistics ***/
.stat-item {
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    transform: translateY(-10px);
}

.stat-item:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    margin: 0 auto;
    border-radius: 50%;
    background: rgba(245, 163, 39, 0.2);
    border: 2px solid rgba(245, 163, 39, 0.3);
    transition: all 0.3s ease;
}

.stat-icon i {
    font-size: 2.5rem;
    line-height: 1;
}

.stat-item:hover .stat-icon {
    background: var(--primary);
    border-color: var(--primary);
    transform: scale(1.1);
}

.stat-item:hover .stat-icon i {
    color: white !important;
}

.stat-item h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.stat-item p {
    font-size: 1rem;
    font-weight: 600;
    color: white;
    margin: 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/*** Statistics Mobile ***/
@media (max-width: 575.98px) {
    .stat-item {
        padding: 15px 8px !important;
        transform: translateY(-5px) !important;
    }
    
    .stat-item:hover {
        transform: translateY(-8px) !important;
    }
    
    .stat-icon {
        width: 50px !important;
        height: 50px !important;
        margin-bottom: 8px !important;
    }
    
    .stat-icon i {
        font-size: 1.5rem !important;
    }
    
    .stat-item h2 {
        font-size: 1.8rem !important;
        margin-bottom: 3px !important;
    }
    
    .stat-item p {
        font-size: 0.75rem !important;
        line-height: 1.2 !important;
    }
}


/*** Call to Action ***/
.icon-box {
    display: inline-block;
    width: 120px;
    height: 120px;
    line-height: 120px;
    border-radius: 50%;
    background: rgba(245, 163, 39, 0.1);
    border: 3px solid var(--primary);
    transition: all 0.3s ease;
}

.icon-box:hover {
    transform: scale(1.1);
    background: var(--primary);
}

.icon-box:hover i {
    color: white !important;
}

.action-content h3 {
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 1rem;
}

.action-content p {
    color: var(--dark);
    font-size: 1.1rem;
    line-height: 1.6;
}

.action-content .btn {
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.action-content .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .action-content .btn {
        width: 100%;
        margin-bottom: 1rem;
    }
}

/*** About Page Styles ***/
.page-header {
    position: relative;
    background-size: cover;
    background-position: center;
    min-height: 400px;
    display: flex;
    align-items: center;
}

.page-header-inner {
    background: rgba(0, 0, 0, 0.6);
    width: 100%;
}

.page-header h1 {
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-header .breadcrumb {
    background: transparent;
    margin-bottom: 0;
}

.page-header .breadcrumb-item {
    color: rgba(255, 255, 255, 0.8);
}

.page-header .breadcrumb-item a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-header .breadcrumb-item a:hover {
    color: var(--primary);
}

.page-header .breadcrumb-item.active {
    color: white;
}

@media (max-width: 575.98px) {
    .page-header {
        min-height: 300px;
        margin-top: 120px;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
}

/*** About Section ***/
.about-img {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.about-img img {
    transition: transform 0.5s ease;
}

.about-img:hover img {
    transform: scale(1.05);
}

.about-img .position-absolute {
    background: rgba(245, 163, 39, 0.9);
    transition: all 0.3s ease;
}

.about-img:hover .position-absolute {
    background: rgba(245, 163, 39, 0.95);
}

/*** Vision & Values ***/
.icon-box {
    display: inline-block;
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
    background: rgba(245, 163, 39, 0.1);
    border: 3px solid var(--primary);
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.icon-box:hover {
    transform: scale(1.1);
    background: var(--primary);
}

.icon-box:hover i {
    color: white !important;
}

.icon-box i {
    font-size: 1.8rem;
}

/*** Statistics Mobile Optimized ***/
@media (max-width: 575.98px) {
    .stat-item {
        padding: 15px 8px !important;
        transform: translateY(-5px) !important;
    }
    
    .stat-item:hover {
        transform: translateY(-8px) !important;
    }
    
    .stat-icon {
        width: 50px !important;
        height: 50px !important;
        margin-bottom: 8px !important;
    }
    
    .stat-icon i {
        font-size: 1.5rem !important;
    }
    
    .stat-item h2 {
        font-size: 1.8rem !important;
        margin-bottom: 3px !important;
    }
    
    .stat-item p {
        font-size: 0.75rem !important;
        line-height: 1.2 !important;
    }
}

/*** Team Section Enhanced ***/
.team-item {
    box-shadow: 0 0 30px rgba(0, 0, 0, .08);
    transition: .5s;
    border-radius: 10px;
    overflow: hidden;
}

.team-item .team-img {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.team-item .team-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.team-item:hover .team-img img {
    transform: scale(1.1);
}

.team-item .team-social {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(245, 163, 39, 0.9);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.team-item:hover .team-social {
    opacity: 1;
}

.team-item .team-social .btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin: 0 5px;
    transition: all 0.3s ease;
}

.team-item .team-social .btn:hover {
    transform: scale(1.1);
    background: white !important;
    color: var(--primary) !important;
}

.team-item .text-center {
    padding: 20px;
}

.team-item:hover {
    border-color: var(--secondary) !important;
    transform: translateY(-10px);
}

/*** CTA Section ***/
.action-content h3 {
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 1rem;
}

.action-content p {
    color: var(--dark);
    font-size: 1.1rem;
    line-height: 1.6;
}

.action-content .btn {
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.action-content .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .action-content .btn {
        width: 100%;
        margin-bottom: 1rem;
    }
}

/*** Responsive About ***/
@media (max-width: 991.98px) {
    .about-img .position-absolute {
        position: relative !important;
        margin-top: 20px;
        background: rgba(245, 163, 39, 0.1);
        border: 2px solid var(--primary);
        border-radius: 10px;
    }
    
    .about-img .position-absolute h3 {
        color: var(--primary);
    }
    
    .about-img .position-absolute p {
        color: var(--dark);
        font-weight: 600;
    }
}

/*** Team Carousel Mobile ***/
@media (max-width: 767.98px) {
    .team-section {
        position: relative;
        overflow: hidden;
    }
    
    .team-section .row {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: hidden;
        scroll-behavior: smooth;
        gap: 1rem;
        padding: 1rem 0;
        scroll-snap-type: x mandatory;
    }
    
    .team-section .col-lg-3 {
        flex: 0 0 auto;
        width: 320px !important;
        max-width: 320px;
        scroll-snap-align: start;
    }
    
    .team-section .team-item {
        height: 100%;
        display: flex;
        flex-direction: column;
    }
    
    .team-section .team-item .team-img {
        height: 220px;
    }
    
    .team-section .team-item .text-center {
        flex: 1;
        padding: 15px;
    }
    
    /* Flèches de navigation */
    .team-carousel-nav {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 40px;
        height: 40px;
        background: var(--primary);
        color: white;
        border: none;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        z-index: 10;
        transition: all 0.3s ease;
        box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    }
    
    .team-carousel-nav:hover {
        background: var(--secondary);
        transform: translateY(-50%) scale(1.1);
    }
    
    .team-carousel-nav.prev {
        left: 10px;
    }
    
    .team-carousel-nav.next {
        right: 10px;
    }
    
    .team-carousel-nav i {
        font-size: 16px;
    }
    
    /* Indicateurs de progression */
    .team-carousel-dots {
        display: flex;
        justify-content: center;
        gap: 8px;
        margin-top: 1rem;
    }
    
    .team-carousel-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: rgba(0,0,0,0.3);
        cursor: pointer;
        transition: all 0.3s ease;
    }
    
    .team-carousel-dot.active {
        background: var(--primary);
        width: 24px;
        border-radius: 4px;
    }
    
    /* Animation de défilement automatique */
    @keyframes autoScroll {
        0% { transform: translateX(0); }
        100% { transform: translateX(-100%); }
    }
    
    .team-section.auto-scroll .row {
        animation: autoScroll 15s linear infinite;
    }
    
    .team-section.auto-scroll .row:hover {
        animation-play-state: paused;
    }
}

@media (max-width: 575.98px) {
    .icon-box {
        width: 100px;
        height: 100px;
        line-height: 100px;
    }
    
    .icon-box i {
        font-size: 2rem;
    }
    
    .team-item .team-img {
        height: 200px;
    }
    
    .team-item .text-center {
        padding: 15px;
    }
    
    .team-section .col-lg-3 {
        width: 280px !important;
        max-width: 280px;
    }
    
    .team-section .team-item .team-img {
        height: 180px;
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.8;
    }
    50% {
        opacity: 0.5;
    }
}

/*** Galerie Styles ***/
.galerie-container {
    padding: 2rem 0;
}

.galerie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
    padding: 1rem;
}

.galerie-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
    aspect-ratio: 1;
    background: #f8f9fa;
    transition: all 0.3s ease;
}

.galerie-item:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    z-index: 10;
}

.galerie-item img,
.galerie-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.galerie-item:hover img,
.galerie-item:hover video {
    transform: scale(1.1);
}

.galerie-item .video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.galerie-item.video .video-overlay {
    opacity: 1;
}

.galerie-item.video:hover .video-overlay {
    opacity: 0.8;
}

.play-button {
    width: 60px;
    height: 60px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    transition: all 0.3s ease;
}

.galerie-item:hover .play-button {
    transform: scale(1.2);
    background: var(--secondary);
}

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
}

.lightbox-content img,
.lightbox-content video {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 10px;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    transition: all 0.3s ease;
    z-index: 10000;
}

.lightbox-nav:hover {
    background: var(--secondary);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-nav.prev {
    left: 20px;
}

.lightbox-nav.next {
    right: 20px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--primary);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s ease;
    z-index: 10000;
}

.lightbox-close:hover {
    background: var(--secondary);
    transform: scale(1.1);
}

.lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    background: rgba(0,0,0,0.7);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
}

/* Filtres */
.galerie-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 20px;
    border: 2px solid var(--primary);
    background: transparent;
    color: var(--primary);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary);
    color: white;
}

.galerie-item.hidden {
    display: none;
}

/* Galerie Responsive */
@media (max-width: 768px) {
    .galerie-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 0.5rem;
        padding: 0.5rem;
    }
    
    .lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .lightbox-nav.prev {
        left: 10px;
    }
    
    .lightbox-nav.next {
        right: 10px;
    }
    
    .lightbox-close {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
}