﻿/* Styles pour les cartes de projet */
.project-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

/* Carrousel d'images */
.project-card__image-container {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
    background: #f3f4f6;
}

.project-card__carousel {
    position: relative;
    width: 100%;
    height: 100%;
}

.project-card__slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.project-card__slide.active {
    opacity: 1;
}

.project-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* Navigation dots - visible for automatic carousel */
.project-card__dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 10;
}

.project-card__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    padding: 0;
}

.project-card__dot.active {
    background: #f97316;
    transform: scale(1.3);
}

.project-card__dot:hover {
    background: white;
}

/* Flèches de navigation - visible for automatic carousel */
.project-card__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
    opacity: 0;
}

.project-card__nav:hover {
    background: rgba(249, 115, 22, 0.8);
}

.project-card__image-container:hover .project-card__nav {
    opacity: 1;
}

/* Mobile / touch: pas de hover => on laisse les flèches visibles et cliquables */
@media (max-width: 768px) {
    .project-card__nav {
        opacity: 1;
    }
}

.project-card__nav--prev {
    left: 10px;
}

.project-card__nav--next {
    right: 10px;
}

/* Overlay */
.project-card__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
}

.project-card:hover .project-card__overlay {
    opacity: 1;
}

.project-card:hover .project-card__image {
    transform: scale(1.1);
}

.project-card__overlay-content {
    padding: 20px;
    text-align: center;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    max-height: 80%;
    overflow-y: auto;
}

.project-card:hover .project-card__overlay-content {
    transform: translateY(0);
}

.project-card__title {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 0 2px 12px rgba(0,0,0,0.6);
}

.project-card__category {
    color: #f97316;
    font-weight: 600;
    margin-bottom: 20px;
}

.project-card__link {
    display: inline-flex;
    align-items: center;
    padding: 8px 20px;
    background: #f97316;
    color: white;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.project-card__link:hover {
    background: #ea580c;
    transform: translateY(-3px);
}

.project-card__content {
    padding: 25px;
}

.project-card__description {
    color: #6b7280;
    margin: 15px 0;
    line-height: 1.6;
}

/* Texte dans l'overlay: plus contrasté (évite l'effet "flou") */
.project-card__overlay .project-card__description {
    color: rgba(255, 255, 255, 0.92);
    text-shadow: 0 2px 12px rgba(0,0,0,0.6);
}

.project-card__stats {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.project-stat {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    color: #4b5563;
}

.project-stat i {
    margin-right: 5px;
}

/* Compteur d'images - visible for automatic carousel */
.project-card__count {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 5px;
    z-index: 10;
}

/* Styles pour les témoignages */
.testimonial-card {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.testimonial-card__content {
    flex: 1;
    margin-bottom: 25px;
}

.testimonial-card__rating {
    margin-bottom: 20px;
}

.testimonial-card__text {
    font-style: italic;
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 20px;
    position: relative;
}

.testimonial-card__text::before {
    content: '"';
    font-size: 4rem;
    color: rgba(249, 115, 22, 0.1);
    position: absolute;
    top: -20px;
    left: -15px;
    line-height: 1;
    z-index: 0;
}

.testimonial-card__author {
    display: flex;
    align-items: center;
    margin-top: auto;
}

.testimonial-card__author-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
    border: 2px solid #f97316;
}

.testimonial-card__author-name {
    font-weight: 700;
    color: #111827;
    margin-bottom: 2px;
}

.testimonial-card__author-position {
    color: #6b7280;
    font-size: 0.875rem;
}

/* Motifs de points */
.pattern-dots {
    background-image: radial-gradient(currentColor 1px, transparent 1px);
    background-size: calc(10 * 1px) calc(10 * 1px);
}

/* Responsive */
@media (max-width: 768px) {
    .project-card__content {
        padding: 20px;
    }
    
    .project-card__stats {
        flex-direction: column;
        gap: 10px;
    }
}