/* css/style.css - Design photographe professionnel */

:root {
    --primary: #1a1a1a;
    --secondary: #2d2d2d;
    --accent: #c9a55a;
    --accent-light: #d4b573;
    --text: #1a1a1a;
    --text-light: #666;
    --text-muted: #999;
    --bg: #ffffff;
    --bg-dark: #0f0f0f;
    --bg-light: #fafafa;
    --border: #e5e5e5;
    --shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.15);
    --transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    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;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    line-height: 1.2;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: var(--transition);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 1px;
}

.logo-icon {
    color: var(--accent);
    font-size: 20px;
}

.logo-text {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 48px;
    align-items: center;
}

.nav-link {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    letter-spacing: 0.5px;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.4s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link-admin {
    color: var(--text-muted);
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
}

.nav-link-admin:hover {
    color: var(--accent);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 100%);
}

.hero-background {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(201, 165, 90, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(201, 165, 90, 0.08) 0%, transparent 50%);
    will-change: transform;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: white;
    max-width: 900px;
    padding: 100px 0;
}

.hero-subtitle {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 24px;
    opacity: 0;
    animation: fadeInUp 1s ease 0.3s forwards;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(48px, 7vw, 80px);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 32px;
    letter-spacing: -1px;
    opacity: 0;
    animation: fadeInUp 1s ease 0.5s forwards;
}

.hero-description {
    font-size: 20px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 48px;
    font-weight: 300;
    opacity: 0;
    animation: fadeInUp 1s ease 0.7s forwards;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 40px;
    background: var(--accent);
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.5px;
    border-radius: 4px;
    transition: var(--transition);
    opacity: 0;
    animation: fadeInUp 1s ease 0.9s forwards;
}

.hero-cta:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(201, 165, 90, 0.3);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
}

.scroll-line {
    width: 100%;
    height: 0;
    background: var(--accent);
    animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
    0%, 100% {
        height: 0;
        transform: translateY(0);
    }
    50% {
        height: 100%;
        transform: translateY(0);
    }
}

/* Albums Section - Version galerie classique */
.albums-section {
    padding: 120px 0;
    background: var(--bg-light);
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(40px, 5vw, 56px);
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-light);
    font-weight: 300;
}

.albums-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 48px;
    max-width: 1400px;
    margin: 0 auto;
}

.album-card {
    background: var(--bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.album-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.album-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.album-image {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: var(--bg-dark);
}

.album-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.album-card:hover .album-image img {
    transform: scale(1.08);
}

.album-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    color: var(--text-muted);
}

.album-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(0, 0, 0, 0.4) 80%,
        rgba(0, 0, 0, 0.8) 100%
    );
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 32px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.album-card:hover .album-overlay {
    opacity: 1;
}

.album-overlay-content {
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
}

.view-text {
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.album-overlay-content svg {
    transition: transform 0.3s ease;
}

.album-card:hover .album-overlay-content svg {
    transform: translateX(6px);
}

.album-details {
    padding: 32px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.album-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
    gap: 16px;
}

.album-title {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.3;
    flex: 1;
}

.album-count {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    background: var(--accent);
    color: white;
    font-weight: 700;
    font-size: 16px;
    border-radius: 50%;
    flex-shrink: 0;
}

.album-description {
    color: var(--text-light);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.album-meta {
    display: flex;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.album-date {
    font-size: 13px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

/* Album Header (page album.php) */
.album-header-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 80px 0 60px;
    text-align: center;
}

.album-header-content {
    max-width: 800px;
    margin: 0 auto;
}

.album-header-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.album-header-description {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 24px;
    line-height: 1.8;
}

.album-header-meta {
    display: flex;
    justify-content: center;
    gap: 16px;
    font-size: 15px;
    opacity: 0.8;
}

/* Gallery Section (page album.php) */
.gallery-section {
    padding: 80px 0;
    background: var(--bg-light);
}

.photos-masonry {
    columns: 3;
    column-gap: 20px;
}

.photo-item {
    break-inside: avoid;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.photo-item:hover {
    transform: scale(1.02);
}

.photo-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    transition: transform 0.5s ease;
}

.photo-item:hover img {
    transform: scale(1.05);
}

.photo-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
    color: white;
    padding: 16px;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.photo-item:hover .photo-caption {
    opacity: 1;
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    animation: fadeIn 0.3s ease;
}

.lightbox-content {
    position: relative;
    z-index: 10000;
    max-width: 90vw;
    max-height: 90vh;
    animation: slideUp 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    color: var(--primary);
    font-size: 32px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10001;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background: white;
    transform: scale(1.1);
}

.lightbox-close {
    top: 20px;
    right: 20px;
}

.lightbox-prev {
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next {
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-image-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.lightbox-image-container img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    transition: opacity 0.3s ease;
}

.lightbox-loader {
    position: absolute;
    color: white;
    font-size: 18px;
}

.lightbox-info {
    text-align: center;
    color: white;
    margin-top: 24px;
    padding: 0 40px;
}

.lightbox-info h3 {
    font-size: 24px;
    margin-bottom: 8px;
}

.lightbox-info p {
    font-size: 16px;
    opacity: 0.8;
    margin-bottom: 12px;
}

.lightbox-info span {
    font-size: 14px;
    opacity: 0.6;
}

/* Empty State */
.empty-gallery {
    text-align: center;
    padding: 120px 20px;
}

.empty-icon {
    margin-bottom: 32px;
    color: var(--text-muted);
    opacity: 0.3;
}

.empty-gallery h2 {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    margin-bottom: 16px;
    color: var(--primary);
}

.empty-gallery p {
    color: var(--text-light);
    font-size: 18px;
}

.btn-primary {
    display: inline-block;
    padding: 14px 32px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(52, 152, 219, 0.4);
}

/* Footer */
.footer {
    background: var(--bg-dark);
    color: rgba(255, 255, 255, 0.8);
    padding: 80px 0 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.footer-logo {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 700;
    color: white;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.6);
    font-size: 15px;
    font-style: italic;
}

.footer-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
}

.footer-links {
    display: flex;
    gap: 40px;
    margin-bottom: 24px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 15px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.4);
    font-size: 13px;
}

/* Responsive */
@media (max-width: 1200px) {
    .albums-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        gap: 40px;
    }
}

@media (max-width: 900px) {
    .albums-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 32px;
    }
    
    .album-title {
        font-size: 26px;
    }
    
    .album-details {
        padding: 28px;
    }
    
    .photos-masonry {
        columns: 2;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    
    .nav-content {
        padding: 20px 0;
    }
    
    .nav-links {
        gap: 24px;
    }
    
    .hero {
        min-height: 80vh;
    }
    
    .hero-content {
        padding: 60px 0;
    }
    
    .albums-section {
        padding: 80px 0;
    }
    
    .section-header {
        margin-bottom: 48px;
    }
    
    .albums-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .album-details {
        padding: 28px;
    }
    
    .album-title {
        font-size: 24px;
    }
    
    .photos-masonry {
        columns: 1;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 48px;
        text-align: center;
    }
    
    .footer-right {
        align-items: center;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 16px;
    }
    
    .lightbox-prev,
    .lightbox-next {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 20px;
    }
    
    .nav-links {
        gap: 16px;
    }
    
    .hero-subtitle {
        font-size: 12px;
    }
    
    .hero-cta {
        padding: 16px 32px;
        font-size: 14px;
    }
    
    .album-details {
        padding: 24px;
    }
    
    .album-title {
        font-size: 22px;
    }
}