.projects-header {
    padding-top: 120px;
    text-align: center;
    margin-bottom: 3rem;
    background-color: var(--secondary-color);
    padding: 120px 2rem 3rem;
}

.projects-header h1 {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.project-filters {
    max-width: 1200px;
    margin: 0 auto 2rem;
    padding: 0 var(--spacing-unit);
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.8rem 1.5rem;
    border: none;
    background: var(--primary-color);
    color: var(--text-color);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.filter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    background: var(--secondary-color);
}

.filter-btn.active {
    background: var(--accent-color);
    color: var(--primary-color);
}

.filter-btn.active:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    background: var(--accent-color);
    opacity: 0.9;
}

/* Ajout d'un effet de soulignement au survol */
.filter-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.filter-btn:hover::after {
    width: 100%;
}

.filter-btn.active::after {
    display: none;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 2rem auto;
    max-width: 1200px;
    padding: 0 var(--spacing-unit);
}

.project-card {
    background: var(--primary-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

/* Ajustements pour le mode sombre */
[data-theme="dark"] .project-card {
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-color);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.project-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    width: 100%;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .project-image {
        aspect-ratio: 1 / 1;  /* Force le ratio carré sur mobile */
        width: 100%;
    }
    
    .project-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

.project-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1.5rem;
}

.project-info h3 {
    color: var(--accent-color);
    margin-bottom: 0.8rem;
    font-size: 1.2rem;
}

.project-info .description {
    color: var(--text-color);
    margin-bottom: 1.2rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.project-details {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    color: var(--text-color);
    opacity: 0.8;
}

.project-details span {
    padding: 0.3rem 0.8rem;
    background-color: var(--secondary-color);
    border-radius: 4px;
}

.start-project {
    background-color: var(--secondary-color);
    padding: 4rem var(--spacing-unit);
    margin-top: 4rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
}

.start-project-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.start-project h2 {
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-size: 2rem;
}

.start-project p {
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.cta-buttons .btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    z-index: -1;
}

.cta-buttons .btn-primary:hover::before {
    width: 800px;
    height: 800px;
}

/* Mode sombre pour les boutons primaires */
[data-theme="dark"] .cta-buttons .btn-primary::before {
    background: rgba(0, 0, 0, 0.2);
}

/* Popup styles */
.project-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
    overflow-y: auto;
}

.popup-content {
    background: var(--primary-color);
    max-width: 1200px;
    width: 90%;
    border-radius: 8px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    position: relative;
    padding: 2rem;
    margin: 20px auto;
    max-height: 90vh;
    overflow-y: auto;
}

.popup-gallery {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.popup-image-container {
    width: 100%;
    aspect-ratio: 1 / 1;
    margin-bottom: 1rem;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.popup-main-image {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    object-fit: cover;
    display: block;
    position: relative;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
}

/* Navigation */
.popup-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    opacity: 0;
    transition: all 0.3s ease;
}

.popup-nav.prev { 
    left: 10px;
}

.popup-nav.next { 
    right: 10px;
}

.popup-nav svg {
    width: 24px;
    height: 24px;
    color: white;
}

/* Vignettes */
.popup-thumbnails {
    display: flex;
    gap: 10px;
    margin-top: 1rem;
    padding: 10px;
    background: var(--secondary-color);
    border-radius: 8px;
    flex-wrap: wrap;
    align-content: flex-start;
    width: 100%;
}

.popup-thumbnail {
    width: 70px;
    height: 70px;
    aspect-ratio: 1 / 1;
    flex-shrink: 0;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s ease;
    border: 2px solid transparent;
}

.popup-thumbnail:hover {
    opacity: 0.8;
}

.popup-thumbnail.active {
    opacity: 1;
    border-color: var(--accent-color);
}

/* Ajustements pour mobile */
@media (max-width: 768px) {
    .popup-content {
        display: flex;
        flex-direction: column;
        width: 100%;
        margin: 0;
        padding: 1rem;
    }
    
    .popup-info {
        padding: 0 !important; /* Forcer la suppression du padding */
    }
}

.popup-info h2 {
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.popup-description {
    margin: 1rem 0;
    line-height: 1.6;
}

.popup-details {
    margin: 1rem 0;
}

.popup-details p {
    margin: 0.2rem 0;
}

.popup-features {
    margin: 1rem 0;
}

.popup-features h3 {
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.popup-features ul {
    list-style: none;
    padding: 0;
    margin-top: 0.5rem;
}

.popup-features li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 1.5rem;
    margin: 0;
}

.popup-features li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

.close-popup {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-color);
    cursor: pointer;
    z-index: 2;
}

/* Pagination styles */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.pagination-btn {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    background: var(--primary-color);
    color: var(--text-color);
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.pagination-btn:hover {
    background: var(--secondary-color);
}

.pagination-btn.active {
    background: var(--accent-color);
    color: var(--primary-color);
    border-color: var(--accent-color);
}

/* Responsive design */
@media (max-width: 950px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 660px) {
    .projects-grid {
        grid-template-columns: 1fr;
        padding: 1rem;
    }
}

@media (max-width: 768px) {
    .project-filters {
        margin: 0 auto 1rem;
        padding: 0 1rem;
    }

    .filter-buttons {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.8rem;
        padding: 1rem 0;
    }

    .filter-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
        flex: 0 0 auto;
        text-align: center;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .cta-buttons .btn {
        width: 100%;
    }

    .project-popup {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.8);
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 1000;
        padding: 20px;
        overflow-y: auto;
    }

    .popup-content {
        display: flex;
        flex-direction: column;
        width: 100%;
        margin: 0;
        padding: 1rem;
    }
    .popup-info {
        padding: 0 !important; /* Forcer la suppression du padding */
    }

    .close-popup {
        position: absolute;
        top: 1.5rem;
        right: 1.5rem;
        background: rgba(255, 255, 255, 0.6);
        border: none;
        font-size: 1.5rem;
        color: black;
        cursor: pointer;
        z-index: 2;
        width: 2rem;
        height: 2rem;
        border-radius: 50%; /* Cercle parfait */
        backdrop-filter: blur(5px); /* Effet de flou léger pour un rendu plus moderne */
        box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.1); /* Ajoute une légère ombre */
        line-height: 0;
    }

    .pagination {
        gap: 0.25rem;
    }

    .pagination-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }
}

.project-tags {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.project-tags .tag {
    background-color: var(--secondary-color);
    color: var(--text-color);
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.85rem;
    opacity: 0.8;
}

/* Mode sombre */
[data-theme="dark"] .project-tags .tag {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
    .project-tags {
        margin-bottom: 0.8rem;
    }
    
    .project-tags .tag {
        padding: 0.2rem 0.6rem;
        font-size: 0.8rem;
    }
}

/* Styles pour la galerie d'images sur les cartes projet */
.image-gallery {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.pagination-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 2;
    padding: 5px 10px;
    border-radius: 15px;
    background-color: rgba(0, 0, 0, 0.3);
}

.pagination-dots .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.pagination-dots .dot.active {
    width: 8px;
    height: 8px;
    background-color: white;
    transform: scale(1.2);
}

.main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    user-select: none;
    -webkit-user-drag: none;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    opacity: 0;
    transition: all 0.3s ease;
}

.gallery-nav.prev {
    left: 10px;
}

.gallery-nav.next {
    right: 10px;
}

.gallery-nav svg {
    width: 24px;
    height: 24px;
    color: white;
}

@media (hover: hover) {
    .project-card:hover .gallery-nav {
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .gallery-nav {
        opacity: 1;
    }
}

/* Ajustements pour le mode sombre */
[data-theme="dark"] .gallery-nav {
    background: rgba(255, 255, 255, 0.7);
}

[data-theme="dark"] .gallery-nav svg {
    color: black;
}

.arrow-left, .arrow-right {
    opacity: 0;
    transition: opacity 0.3s ease;
}

@media (hover: hover) {
    .slider:hover .arrow-left,
    .slider:hover .arrow-right {
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .arrow-left,
    .arrow-right {
        opacity: 1;
    }
}

/* Nouveau conteneur pour le bouton */
.project-button-container {
    margin-top: auto; /* Pousse le bouton vers le bas */
    padding-top: 1rem; /* Espace au-dessus du bouton */
}

/* Ajouter cette classe pour le body */
body.popup-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}

/* Masquer les boutons de navigation sur les appareils tactiles */
@media (hover: none) and (pointer: coarse) {
    .popup-nav {
        display: none;
    }
}

/* Masquer les boutons de navigation sur les appareils tactiles */
@media (hover: none) and (pointer: coarse) {
    .gallery-nav {
        display: none;
    }
}

/* Mise à jour du style des flèches de navigation dans les popups */
.popup-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    opacity: 0;
    transition: all 0.3s ease;
}

.popup-nav.prev { 
    left: 10px;
}

.popup-nav.next { 
    right: 10px;
}

.popup-nav svg {
    width: 24px;
    height: 24px;
    color: white;
}

/* Ajustements pour le mode sombre */
[data-theme="dark"] .popup-nav {
    background: rgba(255, 255, 255, 0.7);
}

[data-theme="dark"] .popup-nav svg {
    color: black;
}

/* Afficher les flèches au survol sur desktop */
@media (hover: hover) {
    .popup-content:hover .popup-nav {
        opacity: 1;
    }
}

/* Toujours afficher les flèches sur mobile */
@media (max-width: 768px) {
    .popup-nav {
        opacity: 1;
    }
}

/* Masquer les boutons de navigation sur mobile */
@media (max-width: 768px) {
    .gallery-nav-container {
        display: none;
    }
}

/* Masquer les flèches de navigation sur mobile dans les popups */
@media (max-width: 768px) {
    .project-popup .popup-nav {
        display: none;
    }
}

/* Alternative plus précise si vous voulez cibler spécifiquement les appareils tactiles */
@media (hover: none) and (pointer: coarse) {
    .project-popup .popup-nav {
        display: none;
    }
}
/* Style pour que le bouton Commander prenne toute la largeur */
.btn.btn-primary.popup-contact {
    width: 100%;
    margin-top: 1rem;
    display: block;
    text-align: center;
}

/* Style pour le projet expérimental (Gravures & Expérimentations) */
.experimental-project {
    grid-column: 1 / -1; /* Prend toute la largeur de la grille */
    display: grid;
    grid-template-columns: 1fr 2fr; /* Image à gauche (1/3) et contenu à droite (2/3) */
    gap: 2rem;
}

.experimental-project .project-image {
    height: 100%;
    aspect-ratio: 1 / 1; /* Assure un ratio carré pour l'image */
}

.experimental-project .project-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.experimental-project h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.experimental-project .description {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Media query spécifique pour les écrans entre 660px et 950px */
@media (min-width: 660px) and (max-width: 950px) {
    .experimental-project {
        grid-template-columns: 1fr 1fr; /* Ajustement pour donner plus d'espace à l'image */
        gap: 1.5rem;
    }
    
    .experimental-project .project-image {
        aspect-ratio: 1 / 1; /* Maintient le ratio carré */
        width: 100%;
        height: auto;
    }
    
    .experimental-project .project-info {
        padding-right: 1rem; /* Réduit légèrement le padding pour optimiser l'espace */
    }
    
    .experimental-project h3 {
        font-size: 1.5rem; /* Réduit légèrement la taille du titre */
    }
    
    .experimental-project .description {
        font-size: 1rem; /* Réduit légèrement la taille du texte */
    }
}

/* Responsive pour le projet expérimental */
@media (max-width: 660px) {
    .experimental-project {
        grid-template-columns: 1fr; /* Empiler sur mobile */
        display: flex; /* Revenir à l'affichage standard des cartes */
        flex-direction: column; /* Empiler verticalement comme les autres cartes */
        grid-column: auto; /* Ne pas prendre toute la largeur */
        gap: 0; /* Utiliser l'espacement standard */
    }
    
    .experimental-project .project-image {
        aspect-ratio: 1 / 1; /* Même ratio que les autres cartes */
        height: auto; /* Hauteur automatique */
    }
    
    .experimental-project .project-info {
        padding: 1.5rem; /* Même padding que les autres cartes */
    }
    
    .experimental-project h3 {
        font-size: 1.2rem; /* Même taille que les autres cartes */
        margin-top: 0;
        margin-bottom: 0.8rem; /* Même marge que les autres cartes */
    }
    
    .experimental-project .description {
        font-size: 0.95rem; /* Même taille que les autres cartes */
        line-height: 1.5; /* Même interligne que les autres cartes */
        margin-bottom: 1.2rem; /* Même marge que les autres cartes */
    }
    
    .experimental-popup .popup-info h2 {
        font-size: 1.8rem;
    }
    
    .experimental-badge {
        font-size: 0.8rem;
        padding: 0.2rem 0.6rem;
    }
}

/* Styles pour le popup du projet expérimental */
.experimental-popup .popup-content {
    background: var(--secondary-color);
    /* Suppression de la bordure */
    /* border: 2px solid var(--accent-color); */
}

.experimental-popup .popup-info h2 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    position: relative;
    display: inline-block;
}

.experimental-badge {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--primary-color);
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.experimental-note {
    margin-top: 2rem;
    padding: 1rem;
    background-color: rgba(var(--accent-color-rgb), 0.1);
    border-left: 3px solid var(--accent-color);
    border-radius: 4px;
    font-style: italic;
}

.experimental-popup .popup-thumbnails {
    background-color: var(--primary-color);
    padding: 15px;
    border-radius: 8px;
}

/* Suppression du style des étoiles */
/* .experimental-popup .popup-features li::before {
    content: '★';
    font-size: 1.2rem;
} */

.experimental-popup .btn.btn-primary.popup-contact {
    background-color: var(--accent-color);
    border: none;
    padding: 1rem;
    margin-top: 2rem;
    font-weight: bold;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.experimental-popup .btn.btn-primary.popup-contact:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(var(--accent-color-rgb), 0.3);
}

/* Ajouter cette classe pour le body */
body.popup-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}

/* Styles pour le bouton loupe */
.search-toggle {
    padding: 0.8rem 1.5rem !important;
    border: none;
    background: var(--primary-color) !important;
    color: var(--text-color) !important;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    height: auto !important;
}

.search-toggle svg {
    width: 18px;
    height: 18px;
}

/* Ajouter l'effet de soulignement comme les autres boutons */
.search-toggle::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.search-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    background: var(--secondary-color) !important;
}

.search-toggle:hover::after {
    width: 100%;
}

/* Styles pour le popup de recherche */
.search-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 100px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.search-popup.active {
    opacity: 1;
    visibility: visible;
}

.search-popup-content {
    background: var(--primary-color);
    padding: 2rem;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    position: relative;
    transform: translateY(-20px);
    transition: all 0.3s ease;
}

.search-popup.active .search-popup-content {
    transform: translateY(0);
}

.search-popup h2 {
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    text-align: center;
}

.search-container {
    display: flex;
    gap: 10px;
    margin-bottom: 1.5rem;
}

.search-container input {
    flex: 1;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
    background: var(--primary-color);
    color: var(--text-color);
}

.search-container input:focus {
    outline: none;
    border-color: var(--accent-color);
}

.search-button {
    background: var(--accent-color);
    border: none;
    padding: 0 20px;
    border-radius: 4px;
    cursor: pointer;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.search-button svg {
    width: 20px;
    height: 20px;
}

.search-button:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.close-search {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-color);
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-search:hover {
    color: var(--accent-color);
    transform: scale(1.1);
}

.search-results {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 10px;
}

.search-results::-webkit-scrollbar {
    width: 8px;
}

.search-results::-webkit-scrollbar-track {
    background: var(--secondary-color);
    border-radius: 4px;
}

.search-results::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 4px;
}

.results-count {
    margin: 0 0 1rem;
    padding: 0.5rem;
    background: var(--secondary-color);
    border-radius: 4px;
    text-align: center;
    color: var(--text-color);
    font-size: 0.9rem;
}

.search-result-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.search-result-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
}

.search-result-info {
    flex: 1;
    overflow: hidden;
}

.search-result-info h3 {
    margin: 0 0 0.5rem;
    color: var(--accent-color);
    font-size: 1.1rem;
}

.search-result-info .description {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-color);
    opacity: 0.8;
    line-height: 1.4;
}

.no-results {
    text-align: center;
    padding: 2rem;
    color: var(--text-color);
    font-style: italic;
    opacity: 0.8;
}

/* Style pour les liens clients */
.project-tags a, .popup-details a {
    color: var(--text-color);
    text-decoration: none;
    position: relative;
    transition: all 0.3s ease;
}

.project-tags a::after, .popup-details a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 50%;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
    transform: translateX(-50%);
}

.project-tags a:hover, .popup-details a:hover {
    color: var(--accent-color);
}

.project-tags a:hover::after, .popup-details a:hover::after {
    width: 100%;
}