/* Reset et base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1a1a1a;
    --secondary-color: #f5f5f5;
    --accent-color: #c9a664;
    --text-color: #333;
    --light-gray: #e0e0e0;
}

html {
    overflow-x: hidden;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: #fff;
    overflow-x: hidden;
}

/* Header et Navigation */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
}

nav {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 300;
    letter-spacing: 2px;
    color: var(--primary-color);
}

.tagline {
    font-size: 0.85rem;
    color: var(--accent-color);
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 300;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--accent-color);
}

/* Hero Section */
.hero {
    margin-top: 80px;
    height: 70vh;
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)),
                url('images/architecture/peRCeption-Renaud-Couderc_79A7727-HDR-Edit.jpg') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.hero-content h2 {
    font-size: 3.5rem;
    font-weight: 300;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    font-weight: 300;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--accent-color);
    color: white;
    text-decoration: none;
    font-size: 1rem;
    letter-spacing: 1px;
    transition: all 0.3s;
    border: 2px solid var(--accent-color);
}

.cta-button:hover {
    background: transparent;
    border-color: white;
}

/* Galleries Grid */
.galleries-grid {
    max-width: 1400px;
    margin: 6rem auto;
    padding: 0 2rem;
}

.galleries-grid h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 3rem;
    letter-spacing: 2px;
}

.gallery-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.category-card {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s;
}

.category-card:hover {
    transform: translateY(-5px);
}

.category-image {
    height: 400px;
    background-size: cover;
    background-position: center;
    transition: transform 0.3s;
    opacity: 1;
    will-change: opacity;
    position: relative;
}

.category-card:hover .category-image {
    transform: scale(1.05);
}

/* Description de la photo */
.photo-description {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    font-size: 1rem;
    font-weight: 300;
    transition: opacity 0.3s ease-in-out;
    display: none;
}

.photo-description h4 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 400;
    line-height: 1.4;
}

.category-info {
    padding: 1.5rem;
    background: white;
    border: 1px solid var(--light-gray);
    border-top: none;
}

.category-info h3 {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
}

.category-info p {
    color: #666;
    margin-bottom: 1rem;
}

.view-more {
    color: var(--accent-color);
    font-size: 0.9rem;
}

/* Pricing Section */
.pricing-section {
    background: var(--secondary-color);
    padding: 6rem 2rem;
    text-align: center;
}

.pricing-section h2 {
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.pricing-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.pricing-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s;
    position: relative;
}

.pricing-card.featured {
    transform: scale(1.05);
    box-shadow: 0 8px 30px rgba(201, 166, 100, 0.2);
}

.pricing-card:hover {
    transform: translateY(-5px);
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-5px);
}

.badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--accent-color);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
}

.pricing-card h3 {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
}

.size {
    color: #999;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.price {
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--accent-color);
    margin-bottom: 2rem;
}

.features {
    list-style: none;
    text-align: left;
}

.features li {
    padding: 0.5rem 0;
    color: #666;
    font-size: 0.95rem;
}

/* About Section */
.about-section {
    max-width: 900px;
    margin: 6rem auto;
    padding: 0 2rem;
    text-align: center;
}

.about-section h2 {
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 2rem;
    letter-spacing: 2px;
}

.about-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: #555;
}

/* Contact/Order Form */
.contact-section {
    background: var(--secondary-color);
    padding: 6rem 2rem;
}

.contact-section h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.order-form {
    max-width: 700px;
    margin: 0 auto;
    background: white;
    padding: 3rem;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--light-gray);
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    letter-spacing: 1px;
    transition: background 0.3s;
}

.submit-btn:hover {
    background: #b89654;
}

.form-note {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #666;
}

/* Footer */
footer {
    background: var(--primary-color);
    color: white;
    padding: 3rem 2rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-left h3 {
    font-weight: 300;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.footer-left p,
.footer-right p {
    font-size: 0.9rem;
    color: #ccc;
    margin: 0.3rem 0;
}

/* Responsive */
@media (max-width: 768px) {
    nav {
        padding: 1rem 1rem;
        flex-wrap: wrap;
    }

    .logo h1 {
        font-size: 1.3rem;
        letter-spacing: 1px;
    }

    .tagline {
        font-size: 0.7rem;
        letter-spacing: 0.5px;
    }

    .hero-content h2 {
        font-size: 2rem;
    }

    .nav-links {
        gap: 1rem;
        width: 100%;
        justify-content: center;
        margin-top: 0.5rem;
    }

    .nav-links a {
        font-size: 0.8rem;
    }

    .gallery-categories {
        grid-template-columns: 1fr;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .pricing-card.featured {
        transform: scale(1);
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .order-form {
        padding: 2rem;
    }
}

/* Très petit écran (téléphone) */
@media (max-width: 480px) {
    nav {
        padding: 0.8rem 0.5rem;
    }

    .logo h1 {
        font-size: 1.1rem;
        letter-spacing: 0.5px;
    }

    .tagline {
        font-size: 0.65rem;
    }

    .nav-links {
        gap: 0.7rem;
    }

    .nav-links a {
        font-size: 0.75rem;
    }
}

/* Panier de commande */
.cart-container {
    max-width: 800px;
    margin: 0 auto 3rem;
    background: var(--secondary-color);
    padding: 2rem;
    border-radius: 10px;
}

.cart-container h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

#cart-count {
    display: inline-block;
    background: var(--accent-color);
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 50%;
    font-size: 0.9rem;
    margin-left: 0.5rem;
}

.empty-cart {
    text-align: center;
    padding: 2rem;
    color: #666;
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cart-item {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.cart-item-info {
    flex: 1;
}

.cart-item-info strong {
    color: var(--primary-color);
    font-size: 1rem;
}

.cart-item-controls {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.cart-item-format {
    padding: 0.5rem;
    border: 1px solid var(--light-gray);
    border-radius: 5px;
    font-size: 0.9rem;
    min-width: 120px;
}

.cart-item-quantity {
    width: 60px;
    padding: 0.5rem;
    border: 1px solid var(--light-gray);
    border-radius: 5px;
    text-align: center;
    font-size: 0.9rem;
}

.cart-item-remove {
    background: #e74c3c;
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.cart-item-remove:hover {
    background: #c0392b;
}

.cart-summary {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--light-gray);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-total {
    font-size: 1.3rem;
}

.cart-total strong {
    color: var(--primary-color);
}

.cart-total span {
    color: var(--accent-color);
    font-weight: bold;
}

.clear-cart-btn {
    background: transparent;
    border: 1px solid #e74c3c;
    color: #e74c3c;
    padding: 0.6rem 1.2rem;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.clear-cart-btn:hover {
    background: #e74c3c;
    color: white;
}

/* Notification panier */
.cart-notification {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--accent-color);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 10000;
}

.cart-notification.show {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive pour le panier */
@media (max-width: 768px) {
    .cart-item {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .cart-item-controls {
        flex-wrap: wrap;
    }

    .cart-item-format {
        flex: 1;
        min-width: 100px;
    }

    .cart-summary {
        flex-direction: column;
        gap: 1rem;
    }

    .cart-notification {
        bottom: 1rem;
        right: 1rem;
        left: 1rem;
    }
}

/* ====== Cookie Consent Banner ====== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    border-top: 3px solid var(--accent-color);
    padding: 2rem;
    z-index: 2000;
    animation: slideUp 0.3s ease-out;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-banner-content {
    max-width: 1400px;
    margin: 0 auto;
    color: #fff;
}

.cookie-banner-text {
    margin-bottom: 1.5rem;
}

.cookie-banner-text h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.cookie-banner-text p {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.cookie-link {
    background: none;
    border: none;
    color: var(--accent-color);
    cursor: pointer;
    text-decoration: underline;
    font-size: 0.9rem;
    padding: 0;
    font-weight: 500;
}

.cookie-link:hover {
    opacity: 0.8;
}

.cookie-details-panel {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(201, 166, 100, 0.3);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    max-height: 300px;
    overflow-y: auto;
}

.cookie-details-panel h4 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.cookie-type {
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
}

.cookie-type label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    width: 100%;
    gap: 0.75rem;
}

.cookie-type input[type="checkbox"] {
    margin-top: 0.3rem;
    cursor: pointer;
    accent-color: var(--accent-color);
}

.cookie-type input[type="checkbox"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.cookie-label {
    flex: 1;
}

.cookie-label strong {
    display: block;
    color: #fff;
    margin-bottom: 0.2rem;
}

.cookie-label small {
    display: block;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

.cookie-banner-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 0.7rem 1.5rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--accent-color);
    color: #1a1a1a;
}

.btn-primary:hover {
    background: #d4b876;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(201, 166, 100, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .cookie-banner {
        padding: 1.5rem;
    }

    .cookie-banner-text h3 {
        font-size: 1.1rem;
    }

    .cookie-banner-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .cookie-details-panel {
        max-height: 250px;
    }
}

/* Lightbox pour les photos en galerie */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 0;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 95vw;
    max-height: 95vh;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
}

.lightbox img {
    flex: 1;
    object-fit: contain;
    cursor: pointer;
    width: 100%;
    height: 100%;
}

.lightbox-info {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 1.5rem;
    overflow-y: auto;
    max-height: 30vh;
    transition: all 0.3s ease;
}

.lightbox-info.hidden {
    max-height: 0;
    padding: 0;
    overflow: hidden;
}

.lightbox-title {
    font-size: 1.3rem;
    margin: 0 0 1rem 0;
    font-weight: 300;
    letter-spacing: 1px;
}

.lightbox-metadata {
    margin-bottom: 1rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.lightbox-metadata p {
    margin: 0.5rem 0;
}

.order-btn {
    background: var(--accent-color);
    color: #1a1a1a;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    width: 100%;
}

.order-btn:hover {
    background: #d4b876;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(201, 166, 100, 0.3);
}

.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    z-index: 2001;
    transition: all 0.3s ease;
}

.lightbox-close:hover {
    color: var(--accent-color);
    transform: scale(1.2);
}

/* Boutons de navigation */
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(201, 166, 100, 0.7);
    color: #1a1a1a;
    border: none;
    padding: 1rem 1.2rem;
    font-size: 1.8rem;
    cursor: pointer;
    z-index: 2001;
    border-radius: 5px;
    transition: all 0.3s ease;
    display: none;
}

.lightbox-nav:hover {
    background: var(--accent-color);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    left: 1.5rem;
}

.lightbox-next {
    right: 1.5rem;
}

.lightbox-nav.hidden {
    display: none !important;
}

/* Responsive pour mobile */
@media (max-width: 768px) {
    .lightbox-content {
        flex-direction: column;
        height: 100vh;
    }

    .lightbox img {
        flex: 1;
        min-height: 50vh;
    }

    .lightbox-info {
        max-height: 50vh;
        padding: 1rem;
    }

    .lightbox-info.hidden {
        max-height: 0;
        padding: 0;
    }

    .lightbox-close {
        top: 1rem;
        right: 1rem;
        font-size: 1.5rem;
    }

    /* Cacher les boutons de navigation sur mobile */
    .lightbox-nav {
        display: none !important;
    }

    .lightbox-title {
        font-size: 1.1rem;
    }

    .order-btn {
        padding: 0.7rem 1rem;
        font-size: 0.95rem;
    }
}
}

/* Comment Panel */
.comment-panel {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(26, 26, 26, 0.95);
    color: white;
    padding: 1.5rem;
    max-height: 40%;
    overflow-y: auto;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.category-card:hover .comment-panel {
    opacity: 1;
}

.comment-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.photo-name {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.photo-comment {
    font-size: 0.9rem;
    line-height: 1.4;
    color: #f5f5f5;
    font-weight: 300;
}


/* Blog Filters */
.blog-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin: 2rem 0;
    padding: 1rem;
    background: #f9f9f9;
    border-radius: 4px;
}

.filter-btn {
    padding: 0.6rem 1rem;
    background: white;
    color: #1a1a1a;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.filter-btn:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.filter-btn.active {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

/* Blog Post Tags Styling */
.blog-post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin: 1.5rem 0;
    padding: 1rem;
    background: #f9f9f9;
    border-radius: 4px;
}

.blog-tag {
    display: inline-block;
    background: var(--accent-color);
    color: white;
    padding: 0.5rem 0.8rem;
    border-radius: 3px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s;
    white-space: nowrap;
}

.blog-tag:hover {
    opacity: 0.8;
    transform: translateY(-2px);
}

/* ============================================================
   VENTE DÉSACTIVÉE — changer VENTE_ACTIVE dans site-config.js
   ============================================================ */
.vente-disabled .vente-only {
    display: none !important;
}
