*{
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: "Poppins", sans-serif;
}

/* === BODY === */
body {
    background: #3b1e60; 
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 100vh;
}

/* === HEADER === */
.header {
    width: 100%;
    text-align: center;
    padding: 2rem 1rem;
    position: relative;
    background: rgba(0, 0, 0, 0.5); 
    border-radius: 12px;
    backdrop-filter: blur(4px);
    margin-bottom: 2rem;
}

.header h1 {
    font-size: 2rem;
    color: #ffb7ff;
    text-shadow: 0 0 8px #cb6ce6;
}

/* Bouton retour */
.back-btn {
    position: absolute;
    top: 15px;
    left: 20px;
    text-decoration: none;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: bold;
    font-size: 0.9em;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.back-btn:hover {
    opacity: 0.85;
    transform: scale(1.05);
}

/* === MAIN CONTENT GRID === */
.content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    padding: 2rem;
    width: 100%;
    max-width: 1200px;
    justify-items: center;
}

/* === CARTE === */
.cadre {
    border-radius: 12px;
    background: rgba(0,0,0,0.5);
    width: 220px;
    padding: 1rem;
    text-align: center;
    box-shadow: 0 6px 20px rgba(59, 30, 96, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cadre:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 8px 25px rgba(203, 108, 230, 0.6);
}

/* === IMAGE === */
.cadre img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cadre img:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(203, 108, 230, 0.7);
}

/* === BOUTONS === */
.cadre .btn {
    display: inline-block;
    background: linear-gradient(135deg, #ff00ff, #7a4ebf);
    color: #fff;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-weight: bold;
    text-decoration: none;
    border: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.3s ease;
}

.cadre .btn:hover {
    transform: scale(1.08);
    box-shadow: 0 4px 15px rgba(203, 108, 230, 0.6);
    background: linear-gradient(135deg, #7a4ebf, #ff00ff);
}

/* === RESPONSIVE === */
@media (max-width: 700px) {
    .header h1 {
        font-size: 1.5rem;
    }
    .back-btn {
        position: static;
        margin-bottom: 1rem;
    }
    .content {
        grid-template-columns: 1fr;
        padding: 1rem;
    }
    .cadre {
        width: 90%;
        max-width: 300px;
    }
}
