:root { --pink-base: #ff69b4; }

/* --- Page & Wrapper --- */
.projects-page { overflow-y: auto !important; background: #0b0b0b; min-height: 100vh; }
.projects-wrapper { padding: 60px 20px 150px 20px; max-width: 1100px; margin: 0 auto; }

/* --- Filtres --- */
.filter-container { margin: 40px 0; display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.filter-btn { 
    background: rgba(255, 105, 180, 0.05); border: 1px solid rgba(255, 105, 180, 0.3); 
    color: white; padding: 8px 18px; border-radius: 20px; cursor: pointer; transition: 0.3s; text-transform: uppercase; font-size: 0.8rem;
}
.filter-btn.active, .filter-btn:hover { background: var(--pink-base); color: black; box-shadow: 0 0 10px var(--pink-base); }

/* --- Grille de Cartes --- */
.projects-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 30px; }

.project-card { 
    background: #151515; border: 1px solid rgba(255, 105, 180, 0.15); border-radius: 12px; 
    height: 350px; overflow: hidden; display: flex; flex-direction: column; cursor: pointer; transition: 0.3s;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.project-card:hover { transform: translateY(-5px); border-color: var(--pink-base); }

.project-img-container { width: 100%; height: 160px; background: #000; overflow: hidden; }
.project-img-container img { width: 100%; height: 100%; object-fit: cover; opacity: 0.8; transition: 0.3s; }
.project-card:hover .project-img-container img { opacity: 1; transform: scale(1.05); }

.no-img { height: 100%; display: flex; align-items: center; justify-content: center; color: #333; font-size: 0.7rem; letter-spacing: 2px; }

/* --- Contenu Carte --- */
.project-info-minimal { padding: 15px; flex-grow: 1; display: flex; flex-direction: column; }
.project-info-minimal h3 { color: white; font-size: 1rem; text-transform: uppercase; margin-bottom: 5px; line-height: 1.2; }
.project-context-label { color: var(--pink-base); font-size: 0.8rem; font-family: monospace; margin-bottom: auto; }

.card-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; padding-top: 10px; border-top: 1px solid #222; }
.category-tag { font-size: 0.6rem; color: #666; text-transform: uppercase; }
.plus-icon { color: var(--pink-base); font-weight: bold; font-size: 1.2rem; }

/* --- MODALE --- */
.modal { display: none; position: fixed; z-index: 9999; left: 0; top: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.9); backdrop-filter: blur(10px); }
.modal-content { background: #111; margin: 5vh auto; padding: 30px; border: 1px solid var(--pink-base); width: 90%; max-width: 850px; border-radius: 15px; position: relative; color: white; max-height: 85vh; overflow-y: auto; }
.close-modal { position: absolute; right: 20px; top: 10px; font-size: 35px; color: var(--pink-base); cursor: pointer; z-index: 10; }

/* --- Contenu intérieur Modale --- */
.modal-header-block { margin-bottom: 20px; border-left: 3px solid var(--pink-base); padding-left: 15px; }
.modal-title { color: white; text-transform: uppercase; margin-bottom: 5px; }
.modal-meta { font-size: 0.9rem; color: #aaa; }
.modal-skills { color: var(--pink-base) !important; font-family: monospace; }
.modal-description { line-height: 1.7; color: #ddd; margin-bottom: 30px; white-space: pre-wrap; }

/* --- Galerie Média dans Modale --- */
.modal-media-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-top: 20px; }
.media-item { border-radius: 8px; overflow: hidden; border: 1px solid #333; background: #000; box-shadow: 0 10px 20px rgba(0,0,0,0.5); }
.media-item img, .media-item video { width: 100%; display: block; height: auto; object-fit: cover; }

/* Spécifique Vidéo pour ratio 16:9 */
.video-item video { aspect-ratio: 16 / 9; }