* {
    box-sizing: border-box;
}

/* force scrollbar */
html {
    overflow-y: scroll;
}

body {
    font-family: sans-serif;
}

.engagement h2 {
    font-family: 'Playfair Display', serif;
    font-size: 35px;
    margin-bottom: 10px;
    width: 100%;
    text-align: center;
}

.engagement p {
    font-family: 'Playfair Display', serif;
    font-size: 25px;
    margin-bottom: 30px;
    text-align: center;
    font-style: italic;
}

/**** grid ****/

.grid {
    background: white;
}

.grid:after {
    content: '';
    display: block;
    clear: both;
}

.grid-sizer,
.grid-item {
    width: calc(20% - 10px);
    margin-bottom: 10px;
    margin-right: 10px;
}

.grid-item {
    float: left;
}

.grid-item img {
    display: block;
    max-width: 100%;
}

/* Rendre le clic "parlant" */
.grid-item img {
    cursor: pointer;
}

/* Visionneuse */
.lightbox {
    position: fixed;
    inset: 0;
    display: none; /* cachée par défaut */
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    padding: 2rem;
}

.lightbox.open {
    display: flex;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 6px;
}

.lightbox-close {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 32px;
    line-height: 1;
    color: #fff;
    background: transparent;
    border: 0;
    cursor: pointer;
}

.lightbox-close:hover {
    opacity: 0.8;
}

.download-wrapper {
    text-align: center;
    margin: 1.5rem 0;
}

.download-btn {
    position: fixed;
    top: 20px;
    right: 50px;
    background: #ffffffcc; /* blanc légèrement transparent */
    color: #2c2c2c;
    font-family: "Georgia", serif;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    padding: 10px 18px;
    border: 1px solid black;
    border-radius: 30px;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    z-index: 10000;
}

.download-btn:hover {
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}
