
/* Press Section (Ils parlent de nous) - Paper News Design */
.press-section {
    background-color: #f4f4f4;
    padding: 80px 0;
}

.press-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.press-card {
    background: #fdfbf7; /* Paper off-white */
    padding: 30px;
    position: relative;
    box-shadow: 0 10px 20px rgba(0,0,0,0.08), 0 6px 6px rgba(0,0,0,0.05);
    border: 1px solid #e0e0e0;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 300px;
}

/* Paper Fold Effect */
.press-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    border-width: 0 40px 40px 0;
    border-style: solid;
    border-color: #e6e4e0 #f4f4f4; /* Match background for corner */
    box-shadow: -5px 5px 5px rgba(0,0,0,0.05);
    transition: all 0.4s ease;
}

.press-card:hover {
    transform: translateY(-10px) rotate(1deg);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15), 0 10px 10px rgba(0,0,0,0.1);
}

.press-card:hover::before {
    border-width: 0 50px 50px 0;
    border-color: #dcdad6 #f4f4f4;
}

.press-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 2px solid #333;
    padding-bottom: 15px;
}

.press-source {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.4rem;
    color: #333;
    letter-spacing: 1px;
}

.press-date {
    font-size: 0.85rem;
    color: #777;
    font-style: italic;
}

.press-body {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 15px;
}

.press-image {
    height: 40px;
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.press-image img {
    max-height: 100%;
    max-width: 150px;
    object-fit: contain;
    filter: grayscale(100%); /* Newspaper feel */
    opacity: 0.8;
    transition: all 0.3s ease;
}

.press-card:hover .press-image img {
    filter: grayscale(0%);
    opacity: 1;
}

.press-quote {
    font-family: 'Georgia', serif;
    font-size: 1.1rem;
    color: #444;
    line-height: 1.6;
    font-style: italic;
    margin: 0;
    position: relative;
    padding-left: 15px;
    border-left: 3px solid #d32f2f;
}

.press-footer {
    margin-top: auto;
    display: flex;
    justify-content: flex-end;
}

.read-more {
    text-decoration: none;
    color: #333;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    border-bottom: 2px solid #d32f2f;
    padding-bottom: 2px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.read-more:hover {
    color: #d32f2f;
    border-bottom-color: #333;
}

.read-more i {
    font-size: 0.8em;
    transition: transform 0.3s ease;
}

.read-more:hover i {
    transform: translateX(3px);
}

/* Testimonials Section (Ce que nos clients disent de nous) */
.testimonials-section {
    background-color: #fff; /* White Background */
    color: #333;
    padding: 20px 0 0 0;
    position: relative;
}

.testimonials-section .section-header h2 {
    color: #333;
}

.testimonials-section .section-header p {
    color: #666;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.testimonial-card {
    background: linear-gradient(145deg, #ffffff, #f0f0f0); /* Realistic 3D Gradient */
    border-radius: 20px;
    padding: 30px 25px;
    color: #333;
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 250px;
    box-shadow: 5px 5px 15px #d1d1d1, 
                -5px -5px 15px #ffffff; /* Neumorphism Soft Shadow */
    border: 1px solid rgba(255,255,255,0.8);
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: 10px 10px 30px #d1d1d1, 
                -10px -10px 30px #ffffff;
}


.testimonial-text {
    font-size: 0.95rem; /* Slightly smaller text */
    line-height: 1.6;
    color: #555; /* Dark grey text */
    margin-bottom: 20px;
    font-weight: 400;
    font-style: italic;
}

.testimonial-author {
    margin-top: auto;
    border-top: 1px solid #f0f0f0;
    padding-top: 15px;
}

.testimonial-author h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 3px 0;
    color: #222; /* Black text */
}

.testimonial-author span {
    font-size: 0.85rem;
    color: #888; /* Grey text */
    display: block;
}

.testimonial-quote-icon {
    position: absolute;
    top: 20px; /* Moved to top right */
    right: 25px;
    bottom: auto; /* Unset bottom */
    font-size: 2rem; /* Smaller icon */
    color: rgba(255, 71, 87, 0.15); /* Very subtle accent color */
    opacity: 1;
    line-height: 1;
}



.events-tabs-wrapper {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.event-card-wrapper {
    position: relative;
    width: fit-content;
    margin: 40px auto 0; /* Added top margin to separate from buttons */
    display: flex;
    align-items: center;
    justify-content: center;
}

.event-gallery-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    height: 722px; /* Reduced by 5% (760 * 0.95) */
    max-width: 485px;
    width: 485px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    position: relative;
}

.event-gallery-image {
    flex: 1;
    position: relative;
    overflow: hidden;
    background: #fff; /* Changed to white to blend with card */
    display: flex;
    align-items: center;
    justify-content: center;
}

.event-gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Keeps image fully visible */
    transition: transform 0.5s ease;
}

.event-gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1rem;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    z-index: 2;
}

.event-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.9);
    border: none;
    width: 50px; /* Slightly larger for easier clicking */
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.event-nav:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.event-prev { left: -80px; } /* Outside left */
.event-next { right: -80px; } /* Outside right */

/* Gallery Section Colors */
#galerie-images {
    background: #fff !important;
    color: var(--text-dark);
    padding-bottom: 3rem !important;
}

#galerie-images .container {
    max-width: 1600px; /* Enlarged container for wider view */
}

#galerie-videos {
    background: var(--bg-light) !important;
    color: var(--text-dark);
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
}

#galerie-videos .section-header {
    margin-bottom: 2rem;
}

#galerie-images .section-header h2,
#galerie-videos .section-header h2 {
    color: var(--text-dark);
}

#galerie-images .section-header h2::after,
#galerie-videos .section-header h2::after {
    background: var(--gradient-primary);
}

#galerie-images .section-header p,
#galerie-videos .section-header p {
    color: #666;
}

@media (max-width: 768px) {
    .event-card-wrapper {
        width: 100%;
        max-width: 320px;
    }

    .event-gallery-card {
        height: 450px; /* Adjusted mobile height */
        width: 100%;
        max-width: 100%;
    }

    /* Bring buttons back inside/overlay on mobile */
    .event-prev { left: 10px; }
    .event-next { right: 10px; }
    
    .event-nav {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* Gallery Grid System (Restored for Video Wall) */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    padding-bottom: 20px;
}

/* Gallery Carousel System */
.gallery-carousel-container {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    padding: 20px 0;
    overflow: visible; /* Allow buttons to be outside */
}

.gallery-track-viewport {
    overflow: hidden;
    width: 100%;
    padding: 20px 0; /* Space for hover effects/shadows */
}

.gallery-track {
    display: flex;
    gap: 30px;
    transition: transform 0.8s ease-in-out; /* Smooth slide like hero */
    will-change: transform;
}

/* Polaroid Style for Carousel */
.gallery-item.polaroid {
    flex: 0 0 400px; /* Wider - Polaroid Large Format */
    width: 400px;
    background: #fff;
    padding: 20px 20px 80px 20px; /* Increased padding for realistic look */
    box-shadow: 0 10px 25px rgba(0,0,0,0.15); /* Softer, deeper shadow */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Bouncy transition */
    border-radius: 4px; /* Slightly rounded corners like real photo paper */
    height: auto !important;
    min-height: 550px; /* Ensure tall elegant look */
    display: flex;
    flex-direction: column;
    transform: rotate(-1deg); /* Slight natural rotation */
}

.gallery-item.polaroid:nth-child(even) {
    transform: rotate(1deg); /* Alternating rotation */
}

.gallery-item.polaroid:hover {
    z-index: 20;
    transform: translateY(-15px) rotate(0deg) scale(1.05); /* Straighten and lift on hover */
    box-shadow: 0 30px 50px rgba(0,0,0,0.3);
}

.polaroid-inner {
    width: 100%;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.polaroid-image-container {
    width: 100%;
    aspect-ratio: 1 / 1; /* Square for classic Polaroid look */
    background: #f0f0f0;
    overflow: hidden;
    margin-bottom: 25px;
    border: 1px solid rgba(0,0,0,0.1); /* Subtle border around image */
    position: relative;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.05); /* Inner depth */
}

.polaroid-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Crucial: Prevents distortion */
    object-position: center;
    transition: transform 0.5s ease;
    display: block;
}

.gallery-item.polaroid:hover .polaroid-image-container img {
    transform: scale(1.1);
}

.polaroid-caption {
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.polaroid-caption h3 {
    font-size: 1.4rem;
    margin: 0 0 10px 0;
    font-weight: bold;
    color: #222;
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 1px;
}

.polaroid-caption p {
    font-size: 1rem;
    margin: 0;
    color: #666;
    font-family: 'Roboto', sans-serif;
    line-height: 1.4;
}

/* Carousel Navigation */
.gallery-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary-color);
    border: none;
    width: 60px; /* Larger buttons */
    height: 60px; /* Larger buttons */
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    font-size: 1.5rem; /* Larger icon */
    opacity: 1; /* Always visible */
}

.gallery-carousel-container:hover .gallery-nav-btn {
    opacity: 1;
}

.gallery-nav-btn:hover {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4); /* Glow effect with primary color */
    transform: translateY(-50%) scale(1.1);
}

.gallery-prev { left: -80px; }
.gallery-next { right: -80px; }

/* Carousel Dots */
.gallery-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 40px; /* More space */
    padding-bottom: 10px;
}

.gallery-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #e0e0e0;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.gallery-dot:hover {
    background: #ccc;
}

.gallery-dot.active {
    background: var(--primary-color);
    transform: scale(1.3);
    box-shadow: 0 0 10px rgba(255, 107, 53, 0.3);
}



/* Default aspect ratio for video items (square-ish) */
.gallery-item:not(.vertical-card) {
    aspect-ratio: 16/9;
}

/* Vertical Card Style for Images */
.gallery-item.vertical-card {
    height: 450px;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.gallery-item:hover {
    z-index: 10;
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

@media (min-width: 992px) {
    .gallery-item.vertical-card:nth-child(even):hover {
        transform: translateY(45px); /* 50px - 5px hover effect */
    }
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.6) 50%, transparent 100%);
    padding: 30px 20px 20px;
    width: 100%;
    color: white;
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.gallery-overlay h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 1px;
}

.gallery-overlay p {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.9);
    line-height: 1.4;
    margin: 0;
    font-family: 'Roboto', sans-serif;
    font-weight: 300;
}

.gallery-item .play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: rgba(0,0,0,0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    border: 2px solid white;
    transition: background 0.3s ease, transform 0.3s ease;
}

.gallery-item:hover .play-icon {
    background: rgba(220, 53, 69, 0.9);
    transform: translate(-50%, -50%) scale(1.1);
}

/* Film Strip Style for Videos */
.gallery-item.film-strip {
    position: relative;
    background: #0a0c10;
    padding: 35px 0; /* Space for the perforations at top and bottom */
    border-radius: 4px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    flex: 0 0 calc(25% - 25px); /* Display 4 items per row, but larger if container allows */
    min-width: 280px; /* Increased minimum width */
}

.gallery-item.film-strip::before,
.gallery-item.film-strip::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 20px;
    background-image: linear-gradient(to right, 
        rgba(255,255,255,0.9) 0%, 
        rgba(255,255,255,0.9) 60%, 
        transparent 60%
    );
    background-size: 25px 100%;
    background-repeat: repeat-x;
    background-position: 5px 0;
    z-index: 2;
}

.gallery-item.film-strip::before {
    top: 8px;
}

.gallery-item.film-strip::after {
    bottom: 8px;
}

.gallery-item.film-strip img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.gallery-item.film-strip:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.gallery-item.film-strip:hover img {
    opacity: 1;
}

.gallery-item.film-strip .play-icon {
    z-index: 3;
    width: 60px;
    height: 60px;
    font-size: 1.8rem;
}

/* Slider logic for Mur Vidéos */
#galerie-videos .container {
    max-width: 1700px; /* Make the whole section wider to allow larger miniatures */
}

#galerie-videos .gallery-grid-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 0 70px; /* Space for arrows outside */
}

#video-grid-container {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 25px;
    padding: 20px 0 40px;
    scrollbar-width: none; /* Hide scrollbar Firefox */
    -ms-overflow-style: none; /* Hide scrollbar IE/Edge */
    width: 100%;
}

#video-grid-container::-webkit-scrollbar {
    display: none; /* Hide scrollbar Chrome/Safari */
}

.gallery-nav-btn {
    position: absolute;
    top: calc(50% - 10px); /* Adjust for bottom padding of container */
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(220, 53, 69, 0.9);
    color: white;
    border: 2px solid white;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

.gallery-nav-btn:hover {
    background: var(--primary-color);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 0 20px var(--primary-color);
}

.gallery-nav-btn.prev {
    left: 5px;
}

.gallery-nav-btn.next {
    right: 5px;
}

@media (max-width: 768px) {
    .gallery-nav-btn {
        display: none; /* Horizontal scroll is natural on mobile */
    }
    .gallery-item.film-strip {
        flex: 0 0 280px;
    }
}

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    justify-content: center;
    align-items: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    width: auto;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

.lightbox-content iframe {
    width: 80vw;
    height: 45vw; /* 16:9 Aspect Ratio */
    max-width: 1280px;
    max-height: 720px;
    border-radius: 4px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    background: #000;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
    z-index: 10000;
    transition: color 0.3s ease;
}

.lightbox-close:hover {
    color: #dc3545;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.7);
    font-size: 3rem;
    cursor: pointer;
    padding: 20px;
    z-index: 10000;
    transition: color 0.3s ease, transform 0.2s ease;
}

.lightbox-nav:hover {
    color: #fff;
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .lightbox-content iframe {
        width: 95vw;
        height: 53.4vw;
    }
    
    .lightbox-nav {
        font-size: 2rem;
        padding: 10px;
    }
    
    .lightbox-prev { left: 10px; }
    .lightbox-next { right: 10px; }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .gallery-item.polaroid {
        flex: 0 0 280px; /* Smaller on mobile */
        width: 280px;
        min-height: 400px;
        padding: 10px 10px 50px 10px;
    }
}

@media (max-width: 1400px) {
    /* Bring gallery navigation inside on smaller screens */
    .gallery-prev { left: 10px; }
    .gallery-next { right: 10px; }
    
    .gallery-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        background: rgba(255, 255, 255, 0.8);
    }
}
 
 @ m e d i a   ( m a x - w i d t h :   1 4 0 0 p x )   {  
         / *   B r i n g   g a l l e r y   n a v i g a t i o n   i n s i d e   o n   s m a l l e r   s c r e e n s   * /  
         . g a l l e r y - p r e v   {   l e f t :   1 0 p x ;   }  
         . g a l l e r y - n e x t   {   r i g h t :   1 0 p x ;   }  
          
         . g a l l e r y - n a v - b t n   {  
                 w i d t h :   4 0 p x ;  
                 h e i g h t :   4 0 p x ;  
                 f o n t - s i z e :   1 r e m ;  
                 b a c k g r o u n d :   r g b a ( 2 5 5 ,   2 5 5 ,   2 5 5 ,   0 . 8 ) ;  
         }  
 }  
 