 /* ====== REFERENCES PAGE STYLES ====== */
 .references-section {
     padding: 60px 0 80px;
     background: #f9f9f9;
 }

 .reference-cards {
     display: flex;
     flex-wrap: wrap;
     gap: 30px;
     justify-content: center;
     padding: 20px 0;
 }

 .references-intro {
     text-align: center;
     max-width: 900px;
     margin: 0 auto 40px;
     color: var(--text-secondary);
     line-height: 1.8;
     font-size: 1.1rem;
 }

 .references-intro p {
     margin-bottom: 1.5rem;
 }

 .reference-card {
     width: 181px;
     height: 157px;
     position: relative;
     background: #fff;
     border: 1px solid #ddd;
     overflow: hidden;
     transition: box-shadow 0.3s ease;
 }

 .reference-card:hover {
     box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
 }

 .reference-card-inner {
     width: 100%;
     height: 100%;
     position: relative;
     display: flex;
     align-items: center;
     justify-content: center;
     padding: 15px;
 }

 .reference-logo {
     max-width: 100%;
     max-height: 100%;
     object-fit: contain;
     transition: transform 0.3s ease;
 }

 .reference-overlay {
     position: absolute;
     top: 0;
     left: 0;
     width: 100%;
     height: 100%;
     display: flex;
     align-items: center;
     justify-content: center;
     opacity: 0;
     transition: opacity 0.3s ease;
     background: rgba(6, 35, 101, 0.15);
 }

 .reference-card:hover .reference-overlay {
     opacity: 1;
 }

 .voir-plus-btn {
     padding: 5px 10px;
     margin: 0;
     background: #062365;
     color: white;
     border: none;
     cursor: pointer;
     font-size: 12px;
     transition: background 0.3s ease;
     letter-spacing: 4px;
     white-space: nowrap;
     font-family: 'Poppins', sans-serif;
 }

 .voir-plus-btn:hover {
     background: #f97400;
 }

 /* ====== IMAGE MODAL ====== */
 .ref-modal-overlay {
     display: none;
     position: fixed;
     top: 0;
     left: 0;
     width: 100%;
     height: 100%;
     background: rgba(0, 0, 0, 0.85);
     z-index: 9999;
     justify-content: center;
     align-items: center;
     opacity: 0;
     transition: opacity 0.3s ease;
 }

 .ref-modal-overlay.active {
     display: flex;
     opacity: 1;
 }

 .ref-modal-content {
     position: relative;
     max-width: 700px;
     max-height: 80vh;
     background: #fff;
     padding: 20px;
     box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
     animation: modalZoomIn 0.3s ease;
 }

 @keyframes modalZoomIn {
     from {
         transform: scale(0.8);
         opacity: 0;
     }

     to {
         transform: scale(1);
         opacity: 1;
     }
 }

 .ref-modal-content img {
     max-width: 100%;
     max-height: 70vh;
     object-fit: contain;
     display: block;
     margin: 0 auto;
 }

 .ref-modal-close {
     position: absolute;
     top: -15px;
     right: -15px;
     width: 40px;
     height: 40px;
     background: #f97400;
     color: white;
     border: none;
     border-radius: 50%;
     font-size: 1.2rem;
     cursor: pointer;
     display: flex;
     align-items: center;
     justify-content: center;
     transition: background 0.3s ease;
     z-index: 10000;
     box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
 }

 .ref-modal-close:hover {
     background: #062365;
 }

 /* ====== RESPONSIVE ====== */
 @media (max-width: 768px) {
     .reference-cards {
         gap: 15px;
     }

     .reference-card {
         width: 140px;
         height: 120px;
     }

     .ref-modal-content {
         max-width: 90vw;
         padding: 15px;
     }
 }

 @media (max-width: 480px) {
     .reference-card {
         width: 120px;
         height: 105px;
     }

     .voir-plus-btn {
         font-size: 10px;
         letter-spacing: 2px;
         padding: 4px 8px;
     }
 }

 .references-filter-wrap {
     display: flex;
     justify-content: center;
     margin-top: -20px;
 }

 .filter-buttons-grid {
     display: flex;
     flex-wrap: wrap;
     gap: 10px;
     justify-content: center;
 }

 .filter-btn {
     padding: 8px 20px;
     border: 1px solid #062365;
     color: #062365;
     font-size: 13px;
     font-weight: 600;
     text-decoration: none;
     transition: all 0.3s ease;
     border-radius: 4px;
     background: transparent;
 }

 .filter-btn:hover,
 .filter-btn.active {
     background: #062365;
     color: white;
 }

 @media (max-width: 768px) {
     .filter-btn {
         padding: 6px 12px;
         font-size: 11px;
     }
 }

 /* LIGHTBOX STYLES */
 .ref-modal-overlay {
     position: fixed;
     top: 0;
     left: 0;
     width: 100%;
     height: 100%;
     background: rgba(0, 0, 0, 0.95);
     z-index: 9999;
     display: none;
     align-items: center;
     justify-content: center;
     opacity: 0;
     transition: opacity 0.3s ease;
 }

 .ref-modal-overlay.active {
     display: flex;
     opacity: 1;
 }

 .lightbox-container {
     width: 100%;
     max-width: 1200px;
     height: 90vh;
     display: flex;
     flex-direction: column;
     padding: 20px;
 }

 .lightbox-content {
     flex: 1;
     position: relative;
     display: flex;
     align-items: center;
     justify-content: center;
     overflow: hidden;
     border: 1px solid #ffffff;
     /* Solid white border like the image */
 }

 #lightboxImg {
     max-width: 100%;
     max-height: 100%;
     object-fit: contain;
     user-select: none;
 }

 .lightbox-nav {
     position: absolute;
     top: 50%;
     transform: translateY(-50%);
     background: transparent;
     border: none;
     color: white;
     font-size: 2.2rem;
     cursor: pointer;
     padding: 20px;
     transition: all 0.3s ease;
     opacity: 0.8;
     z-index: 10;
 }

 .lightbox-nav:hover {
     opacity: 1;
     transform: translateY(-50%) scale(1.1);
 }

 .lightbox-nav.prev {
     left: 0;
 }

 .lightbox-nav.next {
     right: 0;
 }

 .lightbox-footer {
     display: flex;
     justify-content: space-between;
     align-items: flex-start;
     padding-top: 15px;
     color: white;
 }

 .lightbox-info h4 {
     font-size: 0.95rem;
     font-weight: 700;
     margin: 0;
     color: #ffffff;
 }

 .lightbox-info p {
     font-size: 0.8rem;
     color: #aaaaaa;
     margin: 2px 0 0 0;
 }

 .lightbox-close {
     background: transparent;
     border: none;
     color: #ffffff;
     font-size: 1.8rem;
     cursor: pointer;
     opacity: 0.8;
     padding: 0;
     transition: 0.3s;
 }

 .lightbox-close:hover {
     opacity: 1;
     transform: scale(1.1);
 }

 @media (max-width: 768px) {
     .lightbox-nav {
         font-size: 1.8rem;
         padding: 10px;
     }

     .lightbox-container {
         height: 80vh;
         padding: 10px;
     }
 }