* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background-color: #f7f6f4;
    color: #1a1a1a;
    font-family: 'Montserrat', sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    padding-top: 160px;
}

/* BANDEAU SUPÉRIEUR FIXE (STICKY HEADER) */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: #e0ddd8;
    border-bottom: 1px solid #d0ccc5;
    padding: 16px 25px 14px 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.header-top-row {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-bottom: 12px;
    min-height: 64px;
}

/* LOGO GAUCHE AGRANDI */
.brand-logo-left {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 72px;
    height: 72px;
    color: #1a1a1a;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.brand-logo-left:hover {
    transform: translateY(-50%) scale(1.05);
}

.brand-logo-left svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* BLOC TITRE + SLOGAN CENTRÉ */
.brand-center-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
}

.brand-title-line {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.brand-title {
    font-size: 27px;
    font-weight: 400;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #1a1a1a;
}

.brand-subtitle {
    font-size: 11px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #55534e;
}

.brand-slogan {
    font-size: 12px;
    font-weight: 400;
    color: #4a4844;
    letter-spacing: 0.8px;
    margin-top: 3px;
}

/* SÉLECTEUR DE LANGUE À DROITE */
.lang-switcher-right {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
}

.lang-btn {
    background: none;
    border: none;
    color: #777470;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    transition: color 0.2s;
}

.lang-btn.active {
    color: #1a1a1a;
    font-weight: 600;
}

.lang-sep { color: #b0aca5; }

/* BARRE DE NAVIGATION GALERIES */
.gallery-nav-row {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-top: 4px;
}

.gallery-nav-row::-webkit-scrollbar {
    display: none;
}

.all-galleries-btn {
    background-color: #55534e;
    color: #ffffff;
    border: none;
    padding: 6px 16px;
    font-size: 11px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    border-radius: 14px;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background-color 0.2s ease;
}

.all-galleries-btn:hover {
    background-color: #33312c;
}

.gallery-menu-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    white-space: nowrap;
}

.gallery-menu-link {
    background: none;
    border: none;
    color: #55534e;
    font-size: 11.5px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
    padding: 4px 2px;
    border-bottom: 2px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.gallery-menu-link:hover {
    color: #1a1a1a;
    border-bottom: 2px solid rgba(0, 0, 0, 0.3);
}

.gallery-menu-link.active {
    color: #1a1a1a !important;
    font-weight: 600;
    border-bottom: 2px solid #1a1a1a !important;
}

/* GRILLE ET COUVERTURES */
.content-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.covers-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    justify-content: center;
}

.cover-card {
    width: 320px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
}

.cover-img-wrapper {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #eae7e2;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cover-img-wrapper img,
.photo-thumb-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 50%;
    transform: scale(0.97);
    transition: transform 0.4s ease;
}

.cover-card:hover .cover-img-wrapper img,
.photo-card-wrapper:hover .photo-thumb-box img {
    transform: scale(1.0);
}

.cover-title-left {
    margin-top: 2px;
}

.cover-title {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #1a1a1a;
}

/* GRILLE DE PHOTOS */
.photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.photo-card-wrapper {
    display: flex;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.photo-thumb-box {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #eae7e2;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-location-box {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 2px;
}

.location-pin-icon {
    width: 12px;
    height: 12px;
    color: #1a1a1a;
    flex-shrink: 0;
    opacity: 0.85;
}

.photo-location-box span {
    font-size: 11px;
    letter-spacing: 1px;
    color: #55534e;
    text-transform: uppercase;
    font-family: 'Montserrat', sans-serif;
}

/* LIGHTBOX */
.lightbox {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(20, 22, 24, 0.97);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.lightbox.active { display: flex; }

.lightbox-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 90vw;
    max-height: 90vh;
}

.lightbox-img {
    max-width: 100%;
    max-height: 82vh;
    object-fit: contain;
}

.lightbox-meta {
    margin-top: 15px;
    font-size: 13px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #ffffff;
    font-weight: 500;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 32px;
    cursor: pointer;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
    padding: 20px;
}

.lightbox-prev { left: 10px; }
.lightbox-next { right: 10px; }

/* FOOTER */
.main-footer {
    text-align: center;
    padding: 30px 20px;
    border-top: 1px solid #e0ddd8;
    margin-top: 40px;
}

.footer-links { display: flex; justify-content: center; align-items: center; gap: 12px; margin-bottom: 10px; }
.footer-link { color: #55534e; text-decoration: none; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; }
.footer-separator { color: #e0ddd8; }
.copyright { font-size: 11px; color: #777470; letter-spacing: 1px; }

.admin-link {
    color: #777470;
    text-decoration: none;
    transition: color 0.2s ease;
}

.admin-link:hover { color: #1a1a1a; }

/* MOBILE RESPONSIVE */
@media (max-width: 768px) {
    body { padding-top: 145px; }
    .main-header { padding: 12px 14px; }
    .brand-logo-left { width: 50px; height: 50px; }
    .brand-title { font-size: 21px; letter-spacing: 2px; }
    .brand-subtitle { font-size: 10px; }
    .brand-slogan { font-size: 11px; max-width: 250px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .gallery-nav-row { justify-content: flex-start; gap: 10px; }
    .all-galleries-btn { padding: 5px 12px; font-size: 11px; }
    .cover-card { width: 100%; max-width: 360px; }
    .photos-grid { grid-template-columns: 1fr; gap: 20px; }
    .photo-thumb-box, .cover-img-wrapper { height: 260px; }
}

@media (max-width: 480px) {
    .brand-slogan { font-size: 11px; }
    .lang-switcher-right, .lang-btn { font-size: 12px; }
}