/* ===== Reset & Base ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Playwrite NO", cursive;
    background-color: #f5f5f5;
    color: #333;
    overflow-x: hidden;
}

/* ===== Header Hero ===== */
.hero {
    width: 100%;
    height: 100vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-bottom: 10vh;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 60px 20px 20px;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 700;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    color: #fff;
    letter-spacing: 2px;
}

/* ===== Galerie Container ===== */
.gallery-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 0;
}

.gallery {
    display: flex;
    flex-direction: column;
    gap: 50px;
    padding: 0 15px;
}

/* ===== Photo Item ===== */
.photo-item {
    width: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    background: white;
    border: 10px solid white;
    border-bottom: 0px solid white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.photo-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.photo-item img {
    width: 100%;
    max-height: 85vh;
    object-fit: contain;
    display: block;
    transition: opacity 0.3s ease;
    border-radius: 2px;
}

/* États de chargement */
.loading-img {
    opacity: 0;
}

.loaded-img {
    opacity: 1;
}

/* Skeleton loader pendant le chargement */
.photo-wrapper::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-top-color: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    pointer-events: none;
}

.photo-wrapper:has(.loaded-img)::before {
    display: none;
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ===== Photo Info ===== */
.photo-info {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 15px;
    font-size: 15px;
    color: #000;
    background: white;
    font-style: italic;
    font-weight: 400;
    text-align: center;
}

.photo-info-text {
    display: flex;
    gap: 15px;
    align-items: center;
}

.photo-date,
.photo-age {
    font-style: italic;
}

.photo-info-separator {
    color: #666;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .gallery {
        padding: 0 10px;
        gap: 40px;
    }

    .photo-info {
        font-size: 13px;
        padding: 15px 10px;
    }

    .hero-content h1 {
        font-size: clamp(2rem, 7vw, 4rem);
    }
}

@media (max-width: 480px) {
    .photo-info {
        font-size: 12px;
        padding: 12px 8px;
    }
    
    .photo-info-text {
        gap: 10px;
    }
}

/* ===== Loading State ===== */
.loading {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    font-size: 16px;
}