/*
Theme Name: PhotoDiscover Pro
Theme URI: https://votresite.com
Description: Thème WordPress minimaliste inspiré de Pexels pour photos premium
Version: 2.0.3
Author: Votre Nom
Author URI: https://votresite.com
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: photodiscover
Tags: photography, gallery, minimalist, clean, pexels

Ce thème nécessite WordPress 5.0 ou supérieur.
*/

:root {
    --primary-color: #05a081;
    --primary-dark: #048c6f;
    --accent-color: #07bc9a;
    --text-dark: #2d2d2d;
    --text-gray: #666666;
    --text-light: #999999;
    --border-color: #e0e0e0;
    --bg-white: #ffffff;
    --bg-light: #fafafa;
    --bg-overlay: rgba(0, 0, 0, 0.3);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.12);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'SF Pro Display', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

.container-narrow {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header - Style Pexels */
header.site-header {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: var(--transition);
}

header.site-header .header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    max-width: 1920px;
    margin: 0 auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.logo:hover {
    color: var(--primary-color);
}

nav.main-nav ul {
    display: flex;
    list-style: none;
    gap: 32px;
    align-items: center;
}

nav.main-nav a {
    text-decoration: none;
    color: var(--text-gray);
    font-weight: 500;
    font-size: 15px;
    transition: var(--transition);
}

nav.main-nav a:hover {
    color: var(--text-dark);
}

.user-badge {
    background: var(--bg-light);
    color: var(--text-dark);
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid var(--border-color);
}

.user-badge .icon {
    font-size: 16px;
}

/* Hero Section - Style Pexels */
.hero-section {
    margin-top: 57px;
    min-height: 65vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.4));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 0 24px;
}

.hero-content h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 24px;
    line-height: 1.2;
    letter-spacing: -1px;
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 32px;
    opacity: 0.95;
    font-weight: 400;
}

/* Search Bar */
.search-bar {
    max-width: 680px;
    margin: 0 auto;
    position: relative;
}

.search-bar input {
    width: 100%;
    padding: 18px 24px;
    padding-right: 120px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    box-shadow: var(--shadow-lg);
}

.search-bar input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(5, 160, 129, 0.2);
}

.search-bar button {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.search-bar button:hover {
    background: var(--primary-dark);
}

/* Buttons - Minimaliste */
.btn {
    padding: 12px 28px;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: inherit;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.btn-secondary {
    background: transparent;
    color: var(--text-dark);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--text-dark);
}

.btn-ghost {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-ghost:hover {
    background: white;
    color: var(--text-dark);
}

.btn-large {
    padding: 16px 36px;
    font-size: 16px;
}

/* Categories Section */
.categories-section {
    padding: 32px 0 24px;
    border-bottom: 1px solid var(--border-color);
}

.discover-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 0 8px;
}

.cta-text {
    font-size: 14px;
    color: var(--text-gray);
}

.cta-link {
    font-size: 14px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.cta-link:hover {
    color: var(--primary-dark);
}

/* Categories Bar */
.categories-bar {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    justify-content: center;
}

.categories-bar::-webkit-scrollbar {
    display: none;
}

/* Masonry Grid - Style Pexels */
.masonry-grid {
    column-count: 3;
    column-gap: 24px;
    padding: 48px 0;
}

.masonry-item {
    break-inside: avoid;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.masonry-item:hover {
    transform: translateY(-4px);
}

.masonry-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.masonry-item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.6));
    opacity: 0;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    color: white;
}

.masonry-item:hover .masonry-item-overlay {
    opacity: 1;
}

.masonry-item-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.masonry-item-author {
    font-size: 14px;
    font-weight: 500;
}

.masonry-item-actions {
    display: flex;
    gap: 8px;
}

.icon-btn {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.icon-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.category-chip {
    padding: 8px 20px;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-gray);
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition);
}

.category-chip:hover,
.category-chip.active {
    background: var(--text-dark);
    color: white;
    border-color: var(--text-dark);
}

/* Single Photo Page */
.photo-single {
    margin-top: 57px;
    min-height: 100vh;
}

.photo-hero {
    max-height: 80vh;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
}

.photo-hero img {
    max-width: 100%;
    max-height: 75vh;
    width: auto;
    height: auto;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
}

.photo-info {
    padding: 32px 0;
}

.photo-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.photo-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.photo-author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-light);
}

.photo-author-info h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
}

.photo-author-info p {
    font-size: 14px;
    color: var(--text-light);
}

.photo-actions {
    display: flex;
    gap: 12px;
}

.photo-meta {
    display: flex;
    gap: 32px;
    padding: 24px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.photo-meta-item span {
    display: block;
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 4px;
}

.photo-meta-item strong {
    font-size: 15px;
    color: var(--text-dark);
}

.photo-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.photo-tag {
    padding: 6px 16px;
    background: var(--bg-light);
    border-radius: 6px;
    font-size: 14px;
    color: var(--text-gray);
    text-decoration: none;
    transition: var(--transition);
}

.photo-tag:hover {
    background: var(--bg-light);
    color: var(--text-dark);
    border-color: var(--text-dark);
}

/* Pricing Section - Minimaliste */
.pricing-section {
    padding: 80px 24px;
    background: var(--bg-white);
}

.section-title {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-dark);
    letter-spacing: -0.5px;
}

.section-subtitle {
    text-align: center;
    font-size: 18px;
    color: var(--text-gray);
    margin-bottom: 64px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    transition: var(--transition);
}

.pricing-card:hover {
    border-color: var(--text-dark);
    box-shadow: var(--shadow-md);
}

.pricing-card.featured {
    border-color: var(--primary-color);
    background: linear-gradient(to bottom, rgba(5, 160, 129, 0.03), var(--bg-white));
}

.pricing-badge {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
}

.pricing-card h3 {
    font-size: 24px;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.pricing-price {
    font-size: 48px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.pricing-price small {
    font-size: 18px;
    font-weight: 400;
    color: var(--text-gray);
}

.pricing-period {
    color: var(--text-gray);
    margin-bottom: 32px;
    font-size: 15px;
}

.pricing-features {
    list-style: none;
    margin-bottom: 32px;
    text-align: left;
}

.pricing-features li {
    padding: 12px 0;
    color: var(--text-gray);
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.pricing-features li::before {
    content: '✓';
    color: var(--primary-color);
    font-weight: 700;
    font-size: 18px;
}

/* Modal/Popup - Clean */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: white;
    border-radius: 12px;
    padding: 48px;
    max-width: 500px;
    width: 90%;
    box-shadow: var(--shadow-lg);
    text-align: center;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        transform: scale(0.95);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal h2 {
    font-size: 28px;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.modal p {
    color: var(--text-gray);
    margin-bottom: 32px;
    line-height: 1.6;
}

/* Footer - Simple */
footer.site-footer {
    background: var(--bg-white);
    border-top: 1px solid var(--border-color);
    padding: 64px 24px 32px;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.footer-nav a {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
}

.footer-nav a:hover {
    color: var(--text-dark);
}

.footer-copyright {
    color: var(--text-light);
    font-size: 14px;
}

.footer-by {
    color: var(--text-light);
    font-size: 13px;
    margin-top: 8px;
    font-style: italic;
}

/* Responsive - Mobile First */
@media (max-width: 768px) {
    .masonry-grid {
        column-count: 2;
        column-gap: 16px;
    }
    
    .masonry-item {
        margin-bottom: 16px;
    }
    
    .hero-content h1 {
        font-size: 32px;
    }
    
    nav.main-nav ul {
        flex-direction: column;
        gap: 16px;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .photo-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .photo-meta {
        flex-direction: column;
        gap: 16px;
    }
    
    .categories-bar {
        justify-content: flex-start;
        padding-bottom: 12px;
    }
    
    .discover-cta {
        flex-direction: column;
        gap: 8px;
        padding: 12px 0 0;
    }
}

@media (max-width: 480px) {
    .masonry-grid {
        column-count: 1;
    }
    
    .hero-content h1 {
        font-size: 28px;
    }
    
    .search-bar input {
        padding: 14px 18px;
        padding-right: 100px;
    }
    
    .categories-section {
        padding: 24px 0 16px;
    }
    
    .cta-text {
        font-size: 13px;
        text-align: center;
    }
    
    .cta-link {
        font-size: 13px;
    }
}

/* Animations - Subtiles */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease;
}

/* Utilities */
.text-center {
    text-align: center;
}

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.mb-5 { margin-bottom: 48px; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mt-5 { margin-top: 48px; }

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

