#projects > p {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.2em;
    margin-bottom: 60px;
}

/* Grid Simplifié */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(20em, 48%));
    gap: 2em;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
}

/* Cards minimalistes */
.card {
    background: #1a1a1a;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.card:hover:not(.expanded) {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.card.expanded {
    grid-column: 1 / -1;
}

/* Image/Vidéo */
.card-image {
    aspect-ratio: 16 / 9;
    width: 100%;
    overflow: hidden;
    position: relative;
    background: #0a0a0a;
}

.card-image img,
.card-image video {
    width: 100%;
    height: 100%;
}

/* Carousel */
.media-carousel {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.4s ease;
}

.media-item {
    min-width: 100%;
    height: 100%;
}

/* Navigation carousel */
.carousel-nav {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 3;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card-image:hover .carousel-nav {
    opacity: 1;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: white;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 35px;
    height: 35px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    font-size: 1.2em;
    z-index: 3;
    transition: all 0.3s ease;
    opacity: 0;
}

.card-image:hover .carousel-arrow {
    opacity: 1;
}

.carousel-arrow:hover {
    background: rgba(255, 255, 255, 0.2);
}

.carousel-arrow.prev {
    left: 15px;
}

.carousel-arrow.next {
    right: 15px;
}

.card-image .fallback-icon {
    font-size: 5em;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

/* Content */
.card-content {
    padding: 2em;
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
}

.category {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    font-size: 0.75em;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1em;
    width: fit-content;
}

.card h3 {
    font-size: 1.8em;
    margin-bottom: 0.8em;
    font-weight: 700;
    color: white;
    line-height: 1.3;
}

.card.expanded h3 {
    font-size: 2.5em;
}

.short-description {
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.6;
    font-size: 1em;
    margin-bottom: 1.5em;
}

.card.expanded .short-description {
    display: none;
}

/* Details - Style minimaliste */
.card-details {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.5s ease;
}

.card.expanded .card-details {
    max-height: 4000px;
    opacity: 1;
    margin: 2em 0;
}

.card-details h4 {
    font-size: 1.2em;
    color: white;
    margin: 2em 0 1em;
    font-weight: 600;
}

.card-details p {
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.7;
    font-size: 1em;
    margin-bottom: 1.5em;
}

.card-details ul {
    list-style: disc;
    padding-left: 1.5em;
    margin: 0.5em 0;
}

.card-details li {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    font-size: 0.95em;
    margin-bottom: 0.5em;
}

/* Actions */
.card-actions {
    display: flex;
    gap: 12px;
    margin-top: auto;
    padding-top: 2em;
    flex-wrap: wrap;
}

.card button,
.card .link-btn {
    display: inline-block;
    padding: 12px 30px;
    background: white;
    color: #000;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.95em;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.card button:hover,
.card .link-btn:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

.btn-detail {
    display: inline-block;
    padding: 12px 30px;
    background: white;
    color: #000;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.95em;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-close {
    display: none !important;
    padding: 12px 30px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.95em;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-close:hover {
    background: rgba(255, 255, 255, 0.15);
}

.card.expanded .btn-detail {
    display: none !important;
}

.card.expanded .btn-close {
    display: inline-flex !important;
}

/* Close Icon */
.icon-close {
    position: absolute;
    top: 1em;
    right: 1em;
    width: 35px;
    height: 35px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.5em;
    color: white;
    transition: all 0.3s ease;
    opacity: 0;
    pointer-events: none;
    z-index: 10;
}

.card.expanded .icon-close {
    opacity: 1;
    pointer-events: all;
}

.icon-close:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(90deg);
}

/* Responsive */
@media (max-width: 768px) {
    .grid {
        grid-template-columns: 1fr;
        gap: 1.5em;
    }

    .card-content {
        padding: 1.5em;
    }

    .card h3 {
        font-size: 1.5em;
    }

    .card.expanded h3 {
        font-size: 2em;
    }
}