
:root {
    --primary-color: #2c3e50;
    --secondary-color: #e74c3c;
    --accent-color: #3498db;
    --text-color: #333;
    --light-bg: #ecf0f1;
    --white: #ffffff;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --spacing-unit: 1rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-unit);
}

/* Header et Navigation */
.site-header {
    background: var(--primary-color);
    color: var(--white);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
}

.navbar {
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.navbar-brand .logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--white);
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--secondary-color);
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Boutons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #c0392b;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--accent-color);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: #2980b9;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* Section Hero */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: var(--white);
    padding: 6rem 2rem;
    text-align: center;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

/* Sections */
.styles-section,
.recent-photos {
    padding: 4rem 0;
}

.styles-section h2,
.recent-photos h2,
.newsletter-section h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

/* Grille de styles */
.styles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.style-card {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.style-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.style-card h3 {
    margin-bottom: 0.5rem;
}

.style-card p {
    margin-bottom: 1rem;
}

.photo-count {
    color: var(--accent-color);
    font-weight: bold;
    margin-top: auto;
}

.style-card .btn {
    margin-top: auto;
}

/* Grille de photos */
.photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.photo-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.photo-card:hover {
    transform: scale(1.05);
}

.photo-card img,
.photo-thumbnail img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.photo-thumbnail {
    display: block;
    overflow: hidden;
}

.photo-info {
    padding: 1rem;
}

.photo-info h4 {
    margin-bottom: 0.5rem;
}

.style-tag {
    font-size: 0.9rem;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.rating {
    font-size: 0.9rem;
    color: #f39c12;
}

.stars {
    font-weight: bold;
}

/* Newsletter */
.newsletter-section {
    background: var(--light-bg);
    padding: 3rem 0;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 1.5rem 0;
    flex-wrap: wrap;
}

.newsletter-form input {
    min-width: 300px;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

#newsletter-message {
    text-align: center;
    margin-top: 1rem;
    font-weight: bold;
}

/* Photo Detail */
.photo-detail {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin: 2rem 0;
}

.photo-main {
    display: flex;
    align-items: center;
}

.full-image {
    width: 100%;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.photo-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.photo-sidebar h1 {
    margin-bottom: 1rem;
}

.photo-meta,
.photo-description,
.rating-section {
    padding: 1.5rem;
    background: var(--light-bg);
    border-radius: 8px;
}

.rating-display {
    display: flex;
    gap: 1rem;
    margin: 1rem 0;
}

.rating-stars {
    font-size: 1.5rem;
    font-weight: bold;
    color: #f39c12;
}

.stars-input {
    display: flex;
    gap: 0.5rem;
    margin: 1rem 0;
}

.star-btn {
    font-size: 2rem;
    background: none;
    border: none;
    cursor: pointer;
    color: #ccc;
    transition: color 0.2s ease;
}

.star-btn:hover,
.star-btn.active {
    color: #f39c12;
}

.login-hint {
    font-size: 0.9rem;
    color: var(--accent-color);
    margin-top: 0.5rem;
}

.photo-navigation {
    display: flex;
    gap: 1rem;
}

.photo-navigation .btn {
    flex: 1;
    text-align: center;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin: 2rem 0;
}

.page-info {
    padding: 0.5rem 1rem;
}

/* Footer */
.site-footer {
    background: var(--primary-color);
    color: var(--white);
    margin-top: 4rem;
    padding: 2rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .photo-detail {
        grid-template-columns: 1fr;
    }

    .nav-menu {
        flex-direction: column;
        gap: 1rem;
    }

    .newsletter-form input {
        min-width: auto;
        width: 100%;
    }

    .styles-grid,
    .photos-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }

    .photo-navigation {
        flex-direction: column;
    }
}
