/* --------------------------------------------------
   SINGLE CREATION PAGE – MOBILE FIRST PREMIUM DESIGN
   -------------------------------------------------- */

/* Container global */
.single-creation-page {
    padding: 40px 0;
}

.single-creation-page .container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ---------------------------------------
   IMAGE MISE EN AVANT – mobile
--------------------------------------- */
.creation-featured-image {
    animation: fadeIn 0.6s ease-out both;
}

.creation-featured-image img {
    width: 100%;
    height: auto;
    border-radius: 14px;
    object-fit: cover;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}


/* ---------------------------------------
   TITRE – mobile
--------------------------------------- */
.creation-title {
    font-family: "Playfair Display", serif;
    font-size: 1.9rem;
    text-align: center;
    color: var(--color-primary);
    margin: 20px 0 10px;
    animation: slideUp 0.5s ease-out both;
}

/* ---------------------------------------
   BADGES TYPES – mobile
--------------------------------------- */
.creation-types {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
    padding: 0;
    list-style: none;
}

.creation-types li {
    background: rgba(0,0,0,0.05);
    color: var(--color-primary);
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 1.2rem;
    font-weight: 600;
    font-family: "Quicksand", sans-serif;
    animation: fadeIn 0.7s ease-out both;
}

/* ---------------------------------------
   CONTENU – mobile
--------------------------------------- */
.creation-content {
    font-family: "Quicksand", sans-serif;
    color: #4b3f3f;
    line-height: 1.7;
    font-size: 1rem;
    margin-bottom: 35px;
    animation: fadeIn 0.8s ease-out both;
}

/* ---------------------------------------
   BOUTON RETOUR – mobile
--------------------------------------- */
.btn-back {
    display: block;
    text-align: center;
    width: fit-content;
    margin: 0 auto;
    padding: 12px 26px;
    border-radius: 30px;
    font-family: "Quicksand", sans-serif;
    font-weight: 600;
    background: var(--color-primary);
    color: white;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.12);
    transition: transform 0.2s ease, opacity 0.2s ease;
    animation: fadeIn 1s ease-out both;
}

.btn-back:hover {
    transform: translateY(-3px);
    opacity: 0.9;
}

/* ---------------------------------------
   ANIMATIONS
--------------------------------------- */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* —— Images verticales en version SINGLE ——————— */
.creation-featured-image.vertical-img img {
    width: auto;
    max-width: 100%;
    height: auto !important;
    object-fit: contain !important;
    padding: 20px;
    background: #fff;
    border-radius: 18px;
}

/* —— Correction image verticale en DESKTOP —— */
@media (min-width: 1024px) {
    .creation-featured-image.vertical-img img {
        max-height: none !important;
        height: auto !important;
        width: auto;
        max-width: 100%;
        object-fit: contain !important;
        padding: 20px;
    }
}

/* ----- Border-radius en SINGLE CREATION ----- */

/* Images verticales */
.creation-featured-image.vertical-img img {
    border-radius: 18px !important; 
}

/* Wrapper de l'image en page single */
.single-creation .creation-featured-image {
    
    border-radius: 18px;      
    overflow: hidden;        
    box-shadow: 0 10px 30px rgba(0,0,0,0.10);
    margin-bottom: 30px;
}

.creation-featured-image__image {
    border-radius: 18px;
    overflow: hidden;
    display: block;
}

/* L'image elle-même */
.single-creation .creation-featured-image img {

    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 20px !important;
}
