/* album.css - Design ultra-premium pour photographe d'exception */

/* Variables raffinées */
:root {
    --primary: #0a0a0a;
    --secondary: #1a1a1a;
    --tertiary: #2a2a2a;
    --accent: #d4af37;
    --accent-dark: #b8941f;
    --accent-light: #f0d98c;
    --text: #0a0a0a;
    --text-light: #5a5a5a;
    --text-muted: #8a8a8a;
    --bg: #ffffff;
    --bg-dark: #0a0a0a;
    --bg-light: #fafafa;
    --bg-cream: #faf8f5;
    --border: #e8e8e8;
}

/* Reset et fondations */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.7;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Container */
.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 48px;
}

/* Navigation élégante */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 28px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 14px;
    font-family: 'Playfair Display', serif;
    font-size: 26px;
    font-weight: 700;
    color: var(--primary);
}

.logo-icon {
    color: var(--accent);
    font-size: 22px;
    transform: rotate(45deg);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo:hover .logo-icon {
    transform: rotate(225deg);
}

.nav-links {
    display: flex;
    gap: 48px;
    align-items: center;
}

.nav-link {
    color: var(--text-light);
    font-weight: 500;
    font-size: 15px;
    display: flex;
    align-items: center;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.4s ease;
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link:hover::before {
    width: 100%;
}

/* Hero spectaculaire avec effets dynamiques */
.album-hero {
    position: relative;
    background: 
        linear-gradient(165deg, 
            #0a0a0a 0%,
            #1a1a1a 20%,
            #2a2a2a 40%,
            #1a1a1a 60%,
            #151515 80%,
            #0a0a0a 100%
        );
    padding: 200px 0 120px;
    margin-top: 84px;
    overflow: hidden;
}

/* Ligne dorée supérieure animée */
.album-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--accent) 30%, 
        var(--accent-light) 50%, 
        var(--accent) 70%, 
        transparent 100%
    );
    animation: lineSlide 4s ease-in-out infinite;
}

@keyframes lineSlide {
    0% { left: -100%; opacity: 0.4; }
    50% { left: 0%; opacity: 1; }
    100% { left: 100%; opacity: 0.4; }
}

/* Dégradé de transition vers le bas */
.album-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to bottom, transparent, var(--bg-cream));
    pointer-events: none;
}

/* Overlay avec effets lumineux complexes */
.album-hero-overlay {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 800px 600px at 25% 40%, rgba(212, 175, 55, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse 600px 800px at 75% 60%, rgba(212, 175, 55, 0.1) 0%, transparent 55%),
        radial-gradient(circle 500px at 50% 50%, rgba(255, 255, 255, 0.04) 0%, transparent 60%);
    animation: overlayBreath 20s ease-in-out infinite;
}

@keyframes overlayBreath {
    0%, 100% { 
        opacity: 1;
        transform: scale(1);
    }
    50% { 
        opacity: 0.8;
        transform: scale(1.05);
    }
}

/* Particules lumineuses flottantes */
.album-hero-overlay::before,
.album-hero-overlay::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
}

.album-hero-overlay::before {
    top: 15%;
    right: 20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
    opacity: 0.08;
    animation: float1 25s ease-in-out infinite;
}

.album-hero-overlay::after {
    bottom: 20%;
    left: 15%;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, var(--accent-light) 0%, transparent 70%);
    opacity: 0.06;
    animation: float2 22s ease-in-out infinite;
}

@keyframes float1 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(40px, -30px) rotate(120deg); }
    66% { transform: translate(-30px, 40px) rotate(240deg); }
}

@keyframes float2 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(-40px, 35px) rotate(-120deg); }
    66% { transform: translate(35px, -40px) rotate(-240deg); }
}

/* Contenu du hero */
.album-hero-content {
    position: relative;
    z-index: 10;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    color: white;
    animation: heroReveal 1.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes heroReveal {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Breadcrumb élégant */
.album-breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 36px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 2.5px;
    font-weight: 600;
}

.album-breadcrumb a {
    color: rgba(255, 255, 255, 0.5);
    position: relative;
    transition: color 0.3s ease;
}

.album-breadcrumb a::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.4s ease;
}

.album-breadcrumb a:hover {
    color: var(--accent);
}

.album-breadcrumb a:hover::after {
    width: 100%;
}

.breadcrumb-separator {
    color: rgba(255, 255, 255, 0.2);
}

/* Titre majestueux avec effet lumineux */
.album-hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(52px, 8vw, 84px);
    font-weight: 700;
    line-height: 1.05;
    margin-bottom: 32px;
    letter-spacing: -0.04em;
    color: white;
    text-shadow: 
        0 4px 30px rgba(0, 0, 0, 0.6),
        0 0 50px rgba(212, 175, 55, 0.2);
    position: relative;
    animation: titleGlow 4s ease-in-out infinite;
}

@keyframes titleGlow {
    0%, 100% { text-shadow: 0 4px 30px rgba(0, 0, 0, 0.6), 0 0 50px rgba(212, 175, 55, 0.2); }
    50% { text-shadow: 0 4px 30px rgba(0, 0, 0, 0.6), 0 0 70px rgba(212, 175, 55, 0.3); }
}

.album-hero-title::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent), var(--accent-light), var(--accent), transparent);
    animation: lineExpand 3s ease-in-out infinite;
}

@keyframes lineExpand {
    0%, 100% { opacity: 0.6; width: 100px; }
    50% { opacity: 1; width: 150px; }
}

/* Description raffinée */
.album-hero-description {
    font-size: 20px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 44px;
    font-weight: 300;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Métadonnées premium */
.album-hero-meta {
    display: flex;
    justify-content: center;
    gap: 56px;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.65);
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.5px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 30px;
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
}

.meta-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(212, 175, 55, 0.3);
    transform: translateY(-2px);
}

.meta-item svg {
    opacity: 0.6;
}

/* === GALERIE PHOTOGRAPHE PROFESSIONNEL === */
.gallery-section {
    padding: 140px 0;
    background: linear-gradient(180deg, var(--bg-cream) 0%, #ffffff 100%);
    position: relative;
}

/* Layout Masonry sophistiqué */
.photos-masonry {
    columns: 3;
    column-gap: 32px;
}

/* Carte photo premium */
.photo-item {
    break-inside: avoid;
    margin-bottom: 32px;
    position: relative;
    cursor: pointer;
    background: var(--bg);
    border-radius: 0;
    overflow: hidden;
    transition: all 0.7s cubic-bezier(0.19, 1, 0.22, 1);
    
    /* Ombre élégante multicouche */
    box-shadow: 
        0 1px 2px rgba(0, 0, 0, 0.02),
        0 2px 4px rgba(0, 0, 0, 0.03),
        0 4px 8px rgba(0, 0, 0, 0.04),
        0 8px 16px rgba(0, 0, 0, 0.05);
}

/* Bordure subtile */
.photo-item::before {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid rgba(0, 0, 0, 0.04);
    pointer-events: none;
    z-index: 3;
    transition: all 0.7s ease;
}

/* Accent doré qui apparaît au hover */
.photo-item::after {
    content: '';
    position: absolute;
    inset: -3px;
    background: linear-gradient(135deg,
        rgba(212, 175, 55, 0) 0%,
        rgba(212, 175, 55, 0.4) 20%,
        rgba(240, 217, 140, 0.6) 40%,
        rgba(212, 175, 55, 0.4) 60%,
        rgba(184, 148, 31, 0.4) 80%,
        rgba(212, 175, 55, 0) 100%
    );
    opacity: 0;
    z-index: -1;
    filter: blur(8px);
    transition: all 0.7s ease;
}

/* État hover spectaculaire */
.photo-item:hover {
    transform: translateY(-16px) scale(1.01);
    z-index: 100;
    
    box-shadow: 
        0 8px 16px rgba(0, 0, 0, 0.08),
        0 16px 32px rgba(0, 0, 0, 0.12),
        0 24px 48px rgba(0, 0, 0, 0.16),
        0 32px 64px rgba(212, 175, 55, 0.2);
}

.photo-item:hover::before {
    border-color: rgba(212, 175, 55, 0.3);
}

.photo-item:hover::after {
    opacity: 1;
    inset: -6px;
}

/* Image avec traitement professionnel */
.photo-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: all 0.8s cubic-bezier(0.19, 1, 0.22, 1);
    filter: contrast(1.01) saturate(1.02);
}

.photo-item:hover img {
    transform: scale(1.02);
    filter: contrast(1.04) saturate(1.08) brightness(1.01);
}

/* Overlay dégradé élégant au hover */
.photo-item img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        transparent 0%,
        transparent 60%,
        rgba(0, 0, 0, 0.02) 100%
    );
    opacity: 0;
    transition: opacity 0.7s ease;
    pointer-events: none;
}

.photo-item:hover img::after {
    opacity: 1;
}

/* Caption avec design moderne */
.photo-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    
    /* Dégradé sophistiqué */
    background: linear-gradient(to top,
        rgba(10, 10, 10, 0.95) 0%,
        rgba(10, 10, 10, 0.9) 30%,
        rgba(10, 10, 10, 0.7) 60%,
        rgba(10, 10, 10, 0.3) 85%,
        transparent 100%
    );
    
    backdrop-filter: blur(12px);
    
    color: white;
    padding: 60px 24px 24px;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.6;
    letter-spacing: 0.3px;
    
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.7s cubic-bezier(0.19, 1, 0.22, 1);
    z-index: 10;
}

/* Ligne décorative dorée */
.photo-caption::before {
    content: '';
    position: absolute;
    top: 24px;
    left: 24px;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), transparent);
    transition: all 0.7s ease 0.1s;
}

.photo-item:hover .photo-caption {
    opacity: 1;
    transform: translateY(0);
}

.photo-item:hover .photo-caption::before {
    width: 60px;
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.4);
}

/* Lightbox premium */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.97);
    backdrop-filter: blur(50px);
}

.lightbox.active {
    display: flex;
    animation: lightboxFadeIn 0.5s ease;
}

@keyframes lightboxFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.lightbox-overlay {
    position: absolute;
    inset: 0;
    cursor: pointer;
}

.lightbox-content {
    position: relative;
    z-index: 10000;
    max-width: 92vw;
    max-height: 92vh;
    animation: lightboxZoom 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes lightboxZoom {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(40px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.lightbox-image-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
}

/* Boutons lightbox premium avec bordure dorée */
.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(212, 175, 55, 0.2);
    color: var(--primary);
    font-size: 24px;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10001;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background: white;
    border-color: var(--accent);
    color: var(--accent);
    transform: scale(1.1);
    box-shadow: 
        0 12px 48px rgba(0, 0, 0, 0.3),
        0 0 30px rgba(212, 175, 55, 0.2);
}

.lightbox-close {
    top: 32px;
    right: 32px;
}

.lightbox-prev {
    left: 32px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-prev:hover {
    transform: translateY(-50%) scale(1.1);
}

.lightbox-next {
    right: 32px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next:hover {
    transform: translateY(-50%) scale(1.1);
}

/* Image lightbox avec cadre */
.lightbox-image-container img {
    max-width: 100%;
    max-height: 82vh;
    border-radius: 4px;
    box-shadow: 
        0 50px 120px rgba(0, 0, 0, 0.7),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        0 0 60px rgba(212, 175, 55, 0.15);
    transition: opacity 0.4s ease;
}

.lightbox-loader {
    position: absolute;
    color: white;
    font-size: 18px;
}

/* Informations lightbox */
.lightbox-info {
    text-align: center;
    color: white;
    margin-top: 40px;
    padding: 0 48px;
}

.lightbox-info h3 {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 12px;
}

.lightbox-info p {
    font-size: 17px;
    opacity: 0.75;
    margin-bottom: 16px;
    line-height: 1.7;
}

.lightbox-info span {
    font-size: 13px;
    opacity: 0.5;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}

/* État vide */
.empty-gallery {
    text-align: center;
    padding: 180px 20px;
}

.empty-icon {
    margin-bottom: 40px;
    color: var(--text-muted);
    opacity: 0.15;
}

.empty-gallery h2 {
    font-family: 'Playfair Display', serif;
    font-size: 40px;
    margin-bottom: 20px;
    color: var(--primary);
}

.empty-gallery p {
    color: var(--text-light);
    font-size: 19px;
    margin-bottom: 44px;
}

.btn-primary {
    display: inline-block;
    padding: 18px 44px;
    background: linear-gradient(135deg, var(--primary), var(--accent-dark));
    color: white;
    border-radius: 4px;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.4s ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(212, 175, 55, 0.3);
}

.btn-primary:hover::before {
    opacity: 1;
}

/* Footer premium */
.footer {
    background: linear-gradient(180deg, var(--bg-dark) 0%, #000 100%);
    color: rgba(255, 255, 255, 0.7);
    padding: 120px 0 60px;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(212, 175, 55, 0.4), 
        rgba(240, 217, 140, 0.6),
        rgba(212, 175, 55, 0.4), 
        transparent
    );
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    align-items: center;
}

.footer-logo {
    font-family: 'Playfair Display', serif;
    font-size: 34px;
    font-weight: 700;
    color: white;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.5);
    font-size: 17px;
    font-style: italic;
    font-weight: 300;
}

.footer-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 36px;
}

.footer-links {
    display: flex;
    gap: 52px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 16px;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.4s ease;
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-links a:hover::after {
    width: 100%;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.3);
    font-size: 14px;
}

/* Responsive premium */
@media (max-width: 1200px) {
    .photos-masonry {
        columns: 2;
        column-gap: 28px;
    }
    
    .photo-item {
        margin-bottom: 28px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 24px;
    }
    
    .album-hero {
        padding: 160px 0 90px;
    }
    
    .photos-masonry {
        columns: 1;
        column-gap: 0;
    }
    
    .photo-item {
        margin-bottom: 24px;
    }
    
    .lightbox-close,
    .lightbox-prev,
    .lightbox-next {
        width: 52px;
        height: 52px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 60px;
        text-align: center;
    }
    
    .footer-right {
        align-items: center;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 24px;
    }
}

@media (max-width: 480px) {
    .album-hero {
        padding: 140px 0 70px;
    }
}