/* ===== RÉALISATIONS - STYLE PRO (OMBRE VIOLETTE) ===== */

/* Configuration de base */
:root {
    --primary-color: #CF8CD6;
    --text-dark: #333;
    --text-grey: #666;
    --bg-light: #f9fbfc;
    --white: #ffffff;
    --gradient: linear-gradient(135deg, #CF8CD6 0%, #9e6cbd 100%);
}

body {
    background-color: var(--bg-light);
}

.main-content {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* En-tête de page */
.page-header-container {
    text-align: center;
    margin-bottom: 4rem;
}

.page-title {
    font-size: 3rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.page-subtitle {
    color: var(--text-grey);
    font-size: 1.1rem;
}

.title-decoration {
    width: 60px;
    height: 4px;
    background: var(--gradient);
    margin: 1.5rem auto 0;
    border-radius: 2px;
}

/* Filtres */
.filters-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 3.5rem;
}

.filter-btn {
    padding: 0.8rem 1.8rem;
    background: var(--white);
    border: 1px solid #ddd;
    border-radius: 50px;
    color: var(--text-grey);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.filter-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: var(--gradient);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(207, 140, 214, 0.4);
}

/* Grille de projets */
.projects-grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

/* --- CARTE PROJET (OMBRE VIOLETTE) --- */
.project-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;

    /* ICI : Ombre violette bien visible (0.35 d'opacité) */
    box-shadow: 0 10px 25px rgba(207, 140, 214, 0.35);

    /* Bordure violette très légère pour accompagner */
    border: 1px solid rgba(207, 140, 214, 0.2);

    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 1;
}

.project-card:hover {
    transform: translateY(-12px);
    /* Au survol : L'ombre violette devient intense */
    box-shadow: 0 25px 50px rgba(207, 140, 214, 0.5);
    border-color: rgba(207, 140, 214, 0.6);
}

/* Image */
.card-image {
    position: relative;
    height: 240px;
    overflow: hidden;
    border-bottom: 1px solid rgba(207, 140, 214, 0.1);
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .card-image img {
    transform: scale(1.1);
}

/* Overlay */
.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(40, 0, 40, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .card-overlay {
    opacity: 1;
}

.btn-view {
    padding: 0.8rem 1.5rem;
    background: white;
    color: var(--text-dark);
    border: none;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.project-card:hover .btn-view {
    transform: translateY(0);
}

/* Contenu textuel */
.card-content {
    padding: 1.8rem 1.5rem;
    text-align: left;
}

.card-category {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--primary-color);
    font-weight: 700;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 0.5rem;
}

.card-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 600;
}

.card-content p {
    color: var(--text-grey);
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.6;
}

/* MODALS */
.modal {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.modal.active { display: flex; }

.modal-backdrop {
    position: absolute;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(5px);
}

.modal-container {
    position: relative;
    background: white;
    width: 90%; max-width: 600px;
    border-radius: 20px;
    overflow: hidden;
    z-index: 2001;
    animation: slideUp 0.4s ease;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

@keyframes slideUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-close {
    position: absolute;
    top: 15px; right: 15px;
    background: white; border: none;
    width: 40px; height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    z-index: 10;
    transition: transform 0.3s ease;
}

.modal-close:hover { transform: rotate(90deg); }

.modal-image img { width: 100%; height: 300px; object-fit: cover; }

.modal-body { padding: 2rem; }
.modal-body h2 { color: var(--text-dark); margin-bottom: 1rem; }
.modal-tags { margin-top: 1.5rem; }
.modal-tags span {
    display: inline-block;
    padding: 6px 14px;
    background: #f4eaf7;
    border-radius: 15px;
    font-size: 0.85rem;
    margin-right: 8px;
    color: var(--primary-color);
    font-weight: 500;
}

/* Responsive */
@media (max-width: 992px) {
    .projects-grid-container { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .projects-grid-container { grid-template-columns: 1fr; }
    .page-title { font-size: 2.2rem; }
    .filters-container { gap: 0.5rem; }
    .filter-btn { padding: 0.6rem 1.2rem; font-size: 0.85rem; }
}