.archives-body {
    background-image: url("/Photos/background.jpg");
    background-repeat: repeat;
    font-family: "DynaPuff", sans-serif;
    padding: 20px;
}

.archives-title {
    text-align: center;
    color: #2a6fba;
    font-size: 32px;
    margin-bottom: 5px;
}

.archives-subtitle {
    text-align: center;
    color: #4a4a4a;
    margin-bottom: 30px;
}

.archives-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 25px;
    padding: 10px;
    align-items: start;
}

.archives-grid .card {
    background: white;
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: 0.2s;
}

.archives-grid .card:hover {
    transform: scale(1.02);
}

.archives-grid .card img {
    width: 100%;
    border-radius: 10px;
}

.archives-grid p {
    margin: 8px 0 4px;
    font-size: 15px;
    color: #333;
}

.archives-grid small {
    color: #666;
}

.archives-retour {
    display: block;
    text-align: center;
    margin-top: 40px;
    color: #2a6fba;
    font-size: 18px;
    text-decoration: none;
}

.archives-retour:hover {
    text-decoration: underline;
}

.archive-separator {
    margin: 40px 0 15px;
    font-size: 26px;
    color: #2a6fba;
    border-left: 6px solid #2a6fba;
    padding-left: 10px;
}

.bsuppr {
    background: rgba(86, 167, 228, 0.5);
    color: black;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    width: fit-content;
    height: 20px;
    margin-left: 5px;
    font-family: "DynaPuff", sans-serif;
}

.btn-vider {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: rgba(86, 167, 228, 0.5);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: 0.2s;
}

.btn-vider:hover {
    background-color: rgba(86, 167, 228, 0.5);
}

.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: none;
    justify-content: center;
    align-items: center;
}

.popup-content {
    background: white;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    width: 300px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    font-family: "DynaPuff", sans-serif;
}

.popup-content button {
    margin: 10px;
    padding: 10px 15px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

#confirm-yes {
    background: #d9534f;
    color: white;
}

#confirm-no {
    background: #aaa;
    color: white;
}

.image-container.dossier {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: rgba(161, 159, 159, 0.3);
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    margin-top: 5px;
}

.dossier-header {
    background-color: rgba(223, 215, 215, 0.5);
    margin: 20px;
    border-radius: 12px;
    box-shadow: inset 0px 4px 4px 4px rgba(0, 0, 0, 0.1);
    width: 200px;
    text-align: center;
}

.dossier-header h3 {
    margin: 0;
}

.dossier-header h4 {
    margin: 0;
    font-weight: normal;
    opacity: 0.7;
}

.dossier-photos {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.photo-card img {
    width: 150px;
    height: auto;
    border-radius: 8px;
}

.archives-grid .image-container img {
    max-width: 200px;
    max-height: 200px;
    width: auto;
    height: auto;
    border-radius: 12px ;
    margin-top : 10px;
    margin-bottom : 10px ;
}

.archives-grid .image-container {
    background-color : rgba(223, 215, 215, 0.5);
    border-radius: 12px ;
    box-shadow : inset 0 4px 10px rgba(0,0,0,0.1) ;
    text-align : center ;
    padding : 12px ;
    width : fit-content ;
}

.archive-separator {
    grid-column: 1 / -1;
}

.dossier-photos .photo-card {
    flex: 0 0 auto ;
}

.archives-grid .image-container.dossier {
    grid-column: 1 / -1;
    max-width : fit-content ;
    max-height : fit-content ;
}

.archives-grid .image-container.dossier img {
    max-width : 200px ;
    max-height : 200px ;
}

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(255,255,255,0.3);
    animation: zoom 0.2s ease;
}

@keyframes zoom {
    from { transform: scale(0.7); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}

.lightbox img {
    transform-origin: center center;
    cursor: grab;
}
.lightbox img:active {
    cursor: grabbing;
}

.archive-saison-separator {
    color : black ;
    margin: 0 ;
    font-size: 20px;
    color: #2a6fba;
    border-left: 6px solid #2a6fba;
    padding : 5px 10px ;
    width : fit-content ;
    display : block ;
}

#popup-block {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
    font-family : "DynaPuff", sans-serif ;
    text-align : center ;
    background-color: rgba(255,255,255,0.5);
    z-index : 999999 ;
}

#popup-block-close {
    height : 50px ;
    width : 100px ;
    background-color :rgba(90, 175, 227, 0.4) ;
    display : block ; 
    margin : 0 auto ;
    font-family : "DynaPuff", sans-serif;
}