.atelier-gallery {
    background: var(--color-bg);
    padding: var(--space-xxl) var(--space-xl);
}

/* ===== LAYOUT ===== */
.atelier-gallery__container {
    display: grid;
    grid-template-columns: 420px 1fr;
    
    align-items: stretch; /* 🔥 important pour hauteur égale */
    margin-right: -1px;
}

/* ===== LEFT (AVEC IMAGE BG) ===== */
.atelier-gallery__content {
    position: relative;
    padding: var(--space-xl);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;

    /* IMAGE */
    background: url("https://images.unsplash.com/photo-1606312619070-d48b4c652a52?q=80&w=1200") center/cover no-repeat;

    border:none;
}

/* OVERLAY */
.atelier-gallery__content::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.9),
        rgba(0,0,0,0.7)
    );
}

/* TEXTE AU-DESSUS */
.atelier-gallery__content > * {
    position: relative;
    z-index: 2;
}

/* TEXT STYLE */
.atelier-gallery__content span {
    color: var(--color-primary);
    font-size: var(--fs-sm);
    letter-spacing: 2px;
}

.atelier-gallery__content h2 {
    font-family: var(--font-title);
    font-size: var(--fs-hero);
    margin: var(--space-md) 0;
}

.atelier-gallery__content p {
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: var(--space-md);
}

/* ===== BUTTON ===== */
.atelier-gallery__btn {
    display: inline-block;
    padding: var(--space-sm) var(--space-md);
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.atelier-gallery__btn:hover {
    background: var(--color-primary);
    color: #000;
}

/* ===== GRID ===== */
.atelier-gallery__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 240px 180px 180px;
    gap: 14px;
    border-left: 1px solid var(--color-border);
}

/* ===== IMAGES ===== */
.atelier-gallery__grid .img {
    position: relative;
    overflow: hidden;
}

/* IMAGE */
.atelier-gallery__grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

/* OVERLAY LUXE */
.atelier-gallery__grid .img::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.25);
    transition: background 0.4s;
}

/* HOVER PREMIUM */
.atelier-gallery__grid .img:hover img {
    transform: scale(1.08);
}

.atelier-gallery__grid .img:hover::after {
    background: rgba(0,0,0,0.1);
}

/* ===== MOSAÏQUE ===== */
.img1 {
    grid-column: 1 / 3;
    grid-row: 1 / 2;
}

.img2 {
    grid-column: 3 / 4;
    grid-row: 1 / 2;
}

.img3 {
    grid-column: 1 / 2;
    grid-row: 2 / 4;
}

.img4 {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
}

.img5 {
    grid-column: 3 / 4;
    grid-row: 2 / 3;
}

.img6 {
    grid-column: 2 / 4;
    grid-row: 3 / 4;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {

    .atelier-gallery__container {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
        
    }

    .atelier-gallery__content {
        min-height: 300px;
    }

    .atelier-gallery__grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
        border:none;
    }

    
    .img1 {
        grid-column: span 2;
        grid-row: span 2;
    }

    .img6 {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {

    .atelier-gallery__grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
        border: none;
    }

    /* 🔥 RESET TOTAL DES POSITIONS */
    .atelier-gallery__grid .img {
        grid-column: auto !important;
        grid-row: auto !important;
    }

    /* OPTION : garder une image principale */
    .img1 {
        grid-column: span 2 !important;
    }

    
.atelier-gallery__btn

 {
   
    text-align: center;
}

}