html, body {
    margin: 0;
    padding: 0;
    background-color: #000;
    color: #ccc;
    font-family: Arial, sans-serif;
}

/* =======================
   EN-TÊTE
======================= */
.site-header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 35px 20px 15px;
}

.site-header h1 {
    margin: 0;
    font-size: 48px;
    font-weight: normal;
    letter-spacing: 4px;
    color: #ddd;
    text-align: center;
}

/* =======================
   GALERIE (FLEXBOX)
======================= */
.gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;        /* CENTRE CHAQUE LIGNE */
    gap: 36px;
    padding: 30px 80px;
    max-width: 1400px;
    margin: 0 auto;
}

.gallery a {
    width: 160px;                   /* largeur fixe des miniatures */
}

.gallery img {
    width: 100%;
    display: block;
    background: #000;
}

/* =======================
   PAGINATION
======================= */
.pagination {
    text-align: center;
    padding: 35px 0 60px;
    font-size: 16px;
}

.pagination a {
    display: inline-block;
    min-width: 36px;
    padding: 10px 16px;
    margin: 0 10px;
    color: #bbb;
    text-decoration: none;
    border: 1px solid #333;
}

.pagination a:hover {
    color: #fff;
    border-color: #666;
}

.pagination a.active {
    color: #fff;
    border-color: #fff;
}

/* =======================
   PAGE PHOTO
======================= */
.photo-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.photo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 40px;
}

.photo-container img {
    max-width: 95%;
    max-height: 80vh;
}

.photo-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 25px 20px 40px;
}

.photo-nav a,
.photo-nav button {
    background: none;
    border: 1px solid #333;
    color: #bbb;
    padding: 8px 16px;
    text-decoration: none;
    font-size: 15px;
    cursor: pointer;
}

.photo-nav a:hover,
.photo-nav button:hover {
    color: #fff;
    border-color: #666;
}

/* =======================
   PLEIN ÉCRAN
======================= */
:fullscreen .photo-container {
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
}

:fullscreen .photo-container img {
    max-width: 100%;
    max-height: 100%;
}
