/* =========================================================
   ALBUMS PHOTOS PRIVÉS
========================================================= */

.albums-prives-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 22px;
    margin-top: 20px;
}


/* =========================================================
   CARTE ALBUM
========================================================= */

.album-prive-card {
    background: #fff;
    border: 1px solid #e7e7e7;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.album-prive-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.10);
}


/* =========================================================
   COUVERTURE ALBUM
========================================================= */

.album-prive-cover {
    display: flex;
    width: 100%;
    height: 210px;
    overflow: hidden;
    background: #f3f4f6;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.album-prive-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.album-prive-card:hover .album-prive-cover img {
    transform: scale(1.04);
}


/* =========================================================
   ALBUM SANS PHOTO
========================================================= */

.album-prive-cover-empty {
    font-size: 55px;
    color: #999;
}


/* =========================================================
   CONTENU ALBUM
========================================================= */

.album-prive-content {
    padding: 18px;
}

.album-prive-content h3 {
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 1.3;
    color: #222;
}

.album-prive-content p {
    margin: 0 0 15px;
    color: #777;
    font-size: 14px;
}


/* =========================================================
   GALERIE DES PHOTOS
========================================================= */

.galerie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 18px;
    margin-top: 20px;
}


/* =========================================================
   PHOTO
========================================================= */

.galerie-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    background: #f4f4f4;
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.08);
}


/* =========================================================
   LIEN IMAGE
========================================================= */

.galerie-image-link {
    display: block;
    width: 100%;
    height: 230px;
    overflow: hidden;
    background: #eee;
}

.galerie-image-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.galerie-item:hover .galerie-image-link img {
    transform: scale(1.05);
}


/* =========================================================
   BOUTON SUPPRESSION
========================================================= */

.galerie-delete-form {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 5;
}

.galerie-delete-button {
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.18);
    cursor: pointer;
    font-size: 17px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition:
        transform 0.2s ease,
        background 0.2s ease;
}

.galerie-delete-button:hover {
    transform: scale(1.08);
    background: #fff;
}


/* =========================================================
   APERÇU MULTI-UPLOAD
========================================================= */

.galerie-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.galerie-preview img {
    width: 100%;
    height: 110px;
    object-fit: cover;
    border-radius: 10px;
    display: block;
    background: #f1f1f1;
}


/* =========================================================
   UPLOAD
========================================================= */

.galerie-upload-section {
    margin-bottom: 30px;
}

.galerie-upload-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.galerie-upload-form input[type="file"] {
    display: none;
}

.galerie-file-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 90px;
    padding: 20px;
    border: 2px dashed #ccc;
    border-radius: 14px;
    background: #fafafa;
    cursor: pointer;
    transition:
        border-color 0.2s ease,
        background 0.2s ease;
}

.galerie-file-label:hover {
    border-color: #999;
    background: #f5f5f5;
}

.galerie-file-icon {
    font-size: 28px;
}


/* =========================================================
   TEXTE AIDE
========================================================= */

.galerie-help {
    margin: 0;
    font-size: 13px;
    line-height: 1.6;
    color: #777;
}

/* ================================================================
   ACCÈS ALBUMS PRIVÉS
================================================================ */

.bouton-albums-prives {
    display:inline-flex;

    align-items:center;
    justify-content:center;

    gap:6px;

    white-space:nowrap;

    background:rgba(180,100,255,.12);

    border:1px solid rgba(180,100,255,.30);

    color:inherit;
}

.bouton-albums-prives:hover {
    background:rgba(180,100,255,.22);

    border-color:rgba(180,100,255,.50);
}

.bouton-albums-prives.autorisation-active {
    background:rgba(0,200,130,.12);

    border-color:rgba(0,200,130,.30);
}

.bouton-albums-prives.autorisation-active:hover {
    background:rgba(255,80,80,.12);

    border-color:rgba(255,80,80,.35);
}

@media (max-width:700px) {

    .bouton-albums-prives span {
        display:none;
    }

    .bouton-albums-prives {
        width:38px;
        height:38px;

        padding:0;
    }

}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 700px) {

    .albums-prives-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .album-prive-cover {
        height: 160px;
    }

    .album-prive-content {
        padding: 14px;
    }

    .album-prive-content h3 {
        font-size: 16px;
    }

    .galerie-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .galerie-image-link {
        height: 180px;
    }

}


@media (max-width: 430px) {

    .albums-prives-grid {
        grid-template-columns: 1fr;
    }

    .album-prive-cover {
        height: 200px;
    }

    .galerie-grid {
        grid-template-columns: 1fr;
    }

    .galerie-image-link {
        height: 260px;
    }

}