﻿:root {
    --bg-color: #f6f3e4;
    /* Light beige from image */
    --text-color: #2c2c2c;
    --accent-color: #a49060;
    /* Gold/brown for "brique après brique" and button */
    --font-serif: "Playfair Display", serif;
    --font-sans: "Inter", sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
}

/* Global styles for smooth scrolling and fixed header offset */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    padding-top: 80px;
    /* Base header height offset */
    font-family: var(--font-sans);
    background-color: #c2ad78;
    /* base légèrement plus sombre */
    background-image:
        radial-gradient(circle at 50% 30%,
            rgba(255, 255, 255, 1.0) 0%,
            rgba(255, 255, 255, 0.95) 25%,
            rgba(130, 100, 50, 0.9) 60%,
            /* plus foncé */
            rgba(90, 70, 35, 0.95) 100%
            /* bord bien plus sombre */
        ),
        radial-gradient(#a8925c 2px, transparent 2px),
        radial-gradient(#a8925c 2px, transparent 2px);
    background-size:
        100% 100%,
        6px 6px,
        6px 6px;
    background-position:
        0 0,
        0 0,
        3px 3px;
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body {
    font-family: var(--font-sans);
    background-color: #b59a5e;
    background-image:
        radial-gradient(circle at 50% 30%,
            rgba(245, 235, 210, 1.0) 0%,
            /* opacité augmentée */
            rgba(230, 215, 180, 0.97) 25%,
            /* opacité augmentée */
            rgba(140, 105, 50, 0.92) 60%,
            rgba(85, 65, 30, 0.97) 100%),
        radial-gradient(#9c8450 2px, transparent 2px),
        radial-gradient(#9c8450 2px, transparent 2px);
    background-size:
        100% 100%,
        6px 6px,
        6px 6px;
    background-position:
        0 0,
        0 0,
        3px 3px;
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body {
    font-family: var(--font-sans);
    background-color: #b59a5e;
    background-image:
        radial-gradient(circle at 50% 30%,
            rgba(245, 235, 210, 1.0) 0%,
            /* opacité augmentée */
            rgba(230, 215, 180, 0.97) 25%,
            /* opacité augmentée */
            rgba(140, 105, 50, 0.92) 60%,
            rgba(85, 65, 30, 0.97) 100%),
        radial-gradient(#9c8450 2px, transparent 2px),
        radial-gradient(#9c8450 2px, transparent 2px);
    background-size:
        100% 100%,
        6px 6px,
        6px 6px;
    background-position:
        0 0,
        0 0,
        3px 3px;
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body {
    font-family: var(--font-sans);
    background-color: #b59a5e;
    background-image:
        radial-gradient(circle at 50% 30%,
            rgba(225, 220, 198, 1.0) 0%,
            /* intermédiaire vers #DCD8C6 */
            rgba(215, 205, 175, 0.97) 25%,
            rgba(140, 105, 50, 0.92) 60%,
            rgba(85, 65, 30, 0.97) 100%),
        radial-gradient(#9c8450 2px, transparent 2px),
        radial-gradient(#9c8450 2px, transparent 2px);
    background-size:
        100% 100%,
        6px 6px,
        6px 6px;
    background-position:
        0 0,
        0 0,
        3px 3px;
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}



.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--accent-color);
}

.logo img {
    height: 30px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    text-decoration: none;
    color: #4a4a4a;
    font-size: 0.95rem;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
}

.cart-icon {
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.cart-icon i {
    font-size: 1.4rem;
    /* Larger icon */
    color: #333;
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -10px;
    background-color: var(--accent-color);
    color: white;
    font-size: 0.75rem;
    width: 19px;
    height: 19px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cart-icon.bounce {
    animation: cartBounce 0.5s ease;
}

@keyframes cartBounce {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.3);
    }

    100% {
        transform: scale(1);
    }
}

/* Header */
header {
    display: flex;
    align-items: center;
    padding: 1.3rem 3rem;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.15)), #b8ad92;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease-in-out;
    /* Smooth hide/show transition */
}

/* Hide header on scroll only for Mobile (max-width: 768px) */
@media (max-width: 768px) {
    .header-hidden {
        transform: translateY(-100%);
        /* Slide it up out of view on mobile only */
    }
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--accent-color);
    margin-right: auto;
    /* Push nav to the right */
    text-decoration: none;
    /* Remove underline from link */
    user-select: none;
    /* Prevent text selection */
    -webkit-user-select: none;
    /* Safari */
    -moz-user-select: none;
    /* Firefox */
    cursor: pointer;
}

.logo img {
    height: 30px;
}

nav {
    margin-right: 2rem;
}


/* ... existing header styles ... */

/* Hero Section */
.hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem 2rem;
    height: 55vh;
    min-height: 420px;
    width: 100%;
    position: relative;
}

/* Subtle overlay for extra depth */
.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin-top: 0;
}

.hero h1 {
    font-family: var(--font-serif);
    font-size: 3rem;
    line-height: 1.1;
    color: #2c2c2c;
    margin-bottom: 1.5rem;
}

.hero .highlight {
    font-size: 3rem;
    color: #a49060;
    /* Same color as logo */
    display: block;
    margin-top: 0.1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    /* Subtle depth */
}

.hero p.subtitle {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 1.75rem;
    line-height: 1.6;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    background-color: #b59a66;
    /* More saturated gold */
    color: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-block;
    box-shadow: 0 4px 12px rgba(164, 144, 96, 0.25);
    /* Add depth to button */
}

.cta-button:hover {
    background-color: #8e7a48;
}

/* Products Section */
.products-section {
    padding: 2.5rem 1.5rem;
    scroll-margin-top: 0px;
    text-align: center;
    background: linear-gradient(180deg, #ddd6c3 0%, #e8e2cf 100%);
    /* Inverted gradient: darker top, lighter bottom */
    width: 100%;
}

.products-section .container {
    max-width: 1300px;
    margin: 0 auto;
    /* Center the content */
}

.products-section h2 {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    /* Slightly smaller */
    color: #222;
    margin-bottom: 0.8rem;
}

.products-section p.subtitle {
    margin-bottom: 2rem;
    /* Reduced margin */
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 2rem;
    justify-content: center;
}

.product-card {
    background-color: #f5f2e8;
    /* Off-white background for cards */
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    text-align: left;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}

.product-image {
    background-color: #fafaf8;
    height: 300px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #ddd;
    font-size: 0.9rem;
    position: relative;
    padding: 0px;
}

.product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.product-image,
.related-img-container {
    overflow: hidden;
}

.product-image img,
.related-img-container img {
    transition: transform 0.6s ease;
}

.product-image img.slide-img,
.related-img-container img.slide-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: contain;
    transform: translateX(100%);
}

.product-specs {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.95rem;
    color: #444;
}

.spec-line {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Same look as the "Moyenne" difficulty badge */
.badge.spec-pill {
    background-color: #d8d2bc;
    color: #555;
}

/* Arrows on product cards (home page + "Complétez votre collection") */
.card-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 34px;
    height: 34px;
    padding: 0;
    border-radius: 50%;
    border: 1px solid rgba(181, 154, 102, 0.3);
    background: rgba(255, 255, 255, 0.9);
    color: #b59a66;
    font-size: 0.85rem;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.card-prev {
    left: 10px;
}

.card-next {
    right: 10px;
}

.product-card:hover .card-nav,
.related-product-card:hover .card-nav {
    opacity: 1;
}

.card-nav:hover {
    background: #b59a66;
    color: #fff;
}

@media (hover: none) {
    .card-nav {
        opacity: 0.85;
    }
}

.product-sold {
    color: #222;
    font-weight: 500;
    font-size: 0.95rem;
    margin: 0.25rem 0 0.75rem 0;
    letter-spacing: 0.3px;
}

.card-details {
    padding: 0.8rem 1rem;
    /* Slightly reduced padding */
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    /* Reduced gap from 0.8rem */
}

.card-details h3 {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    /* Slightly smaller */
    margin-bottom: 0.4rem;
    /* Reduced margin */
    color: #2c2c2c;
    font-weight: 600;
}

.meta-info {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 0.6rem;
    /* Slightly reduced */
    margin-bottom: 0.6rem;
    /* Reduced from 1rem */
    font-size: 0.8rem;
    /* Slightly smaller */
    color: #666;
}

.badge {
    padding: 0.3rem 0.7rem;
    border-radius: 5px;
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
}

.badge.beginner {
    background-color: #ebdfbb;
    color: #555;
}

.badge.intermediate {
    background-color: #d8d2bc;
    color: #555;
}

.badge.hard {
    background-color: #c4bb9d;
    color: #444;
}

.rating {
    margin-bottom: 0.6rem;
    /* Reduced from 0.8rem */
    color: #d4af70;
    display: flex;
    align-items: center;
    gap: 0.4rem !important;
}

.rating i {
    font-size: 0.95rem !important;
    /* Reduced from 1.1rem */
    margin-right: 0.05rem;
}

.rating span {
    color: #777;
    font-size: 0.85rem;
}

.price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

.price {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    /* Reduced from 1.6rem */
    color: #b59a66;
    /* Gold color matching the model */
    font-weight: 700;
}

.add-btn {
    background-color: #b59a66;
    color: white;
    border: 2px solid #b59a66;
    padding: 0.6rem 1.2rem;
    /* Reduced padding */
    border-radius: 10px;
    /* Slightly more compact */
    cursor: pointer;
    font-weight: 700;
    width: 100%;
    margin-top: 1.2rem;
    transition: all 0.3s;
    font-size: 1rem;
    box-shadow: 0 4px 10px rgba(181, 154, 102, 0.15);
}

.add-btn:hover {
    background-color: #a48b59;
    border-color: #a48b59;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(181, 154, 102, 0.25);
}

/* Notre Histoire Section */
.history-section {
    padding: 4.5rem 2rem;
    /* Slightly increased padding */
    background: linear-gradient(180deg, #ddd6c3 0%, #e8e2cf 100%);
    /* Same gradient as products section */
    width: 100%;
    display: flex;
    justify-content: center;
    /* Center horizontally */
    align-items: center;
    /* Center vertically */
}

.history-section .container {
    width: 100%;
    max-width: 1200px;
}

.history-section h2 {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    color: #2c2c2c;
    text-align: center;
    margin-bottom: 1.5rem;
}

.history-box {
    background-color: #e8e4d5;
    /* Light beige box */
    border-radius: 12px;
    padding: 3rem 4rem;
    max-width: 900px;
    margin: 0 auto;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.history-box p {
    font-size: 1rem;
    line-height: 1.8;
    color: #5a5a5a;
    margin-bottom: 1.5rem;
    text-align: left;
}

.history-box .brand-name {
    color: #b59a66;
    /* Golden color matching logo */
    font-weight: 600;
}

.history-box .quote {
    font-style: italic;
    color: #b59a66;
    /* Golden italic text */
    text-align: center;
    font-size: 1.1rem;
    margin-top: 2rem;
    margin-bottom: 0;
}

/* Testimonials Section */
.testimonials-section {
    padding: 3rem 2rem 3.5rem 2rem;
    /* Increased padding top and bottom */
    margin-top: 0;
    /* No extra margin, directly after products */
    background-color: #f5f2e8;
    /* Lighter background */
    width: 100%;
}

.testimonials-section h2 {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    color: #2c2c2c;
    text-align: center;
    margin-bottom: 1rem;
}

.testimonials-section .subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 3rem;
}

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

.testimonial-card {
    background: linear-gradient(135deg, #e8dec8 0%, #ded4be 100%);
    /* Golden gradient background */
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #b59a66;
    /* Golden background */
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 600;
}

.client-info h4 {
    margin: 0;
    font-size: 1rem;
    color: #2c2c2c;
    font-weight: 600;
}

.client-info p {
    margin: 0;
    font-size: 0.85rem;
    color: #888;
}

.testimonial-card .rating {
    color: #d4af70;
    margin-bottom: 1rem;
    display: flex;
    gap: 0.4rem !important;
}

.testimonial-card .rating i {
    font-size: 1.1rem !important;
}

.testimonial-text {
    font-style: italic;
    color: #666;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Contact Section */
.contact-section {
    padding: 3rem 2rem;
    /* Increased padding for more space */
    background-color: #ede9dc;
    /* Slightly darker background */
    width: 100%;
}

.contact-section h2 {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    color: #2c2c2c;
    text-align: center;
    margin-bottom: 1rem;
}

.contact-section .subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 3rem;
}

.contact-form {
    max-width: 800px;
    /* Slightly increased width */
    margin: 0 auto;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    padding: 0.8rem 1rem;
    border: 1px solid #d0c9b5;
    border-radius: 6px;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    background-color: #faf8f4;
    color: #333;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #b59a66;
}

.submit-btn {
    background: linear-gradient(135deg, #c4a76d 0%, #a48850 100%);
    /* Subtle golden gradient */
    color: white;
    padding: 1rem 3.5rem;
    /* Wider button */
    border: none;
    border-radius: 10px;
    /* Less rounded corners to match model */
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    display: block;
    margin: 2rem auto 0;
    box-shadow: 0 4px 12px rgba(181, 154, 102, 0.25);
    /* Add depth */
    letter-spacing: 0.3px;
    position: relative;
    z-index: 1;
}

.submit-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 10px;
    z-index: -1;
}

.submit-btn:hover::after {
    opacity: 0.5;
}

.submit-btn:active::after {
    opacity: 1;
}


/* Newsletter Section */
.newsletter-section {
    background-color: #6D7851;
    /* Exact green from model */
    padding: 3rem 2rem;
    color: white;
    text-align: center;
}

.newsletter-section h2 {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: white;
}

.newsletter-section .subtitle {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto 1rem;
    justify-content: center;
    flex-wrap: wrap;
    /* Allow message to wrap to next line */
}

.newsletter-form input {
    flex: 1;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 8px;
    /* Less rounded, more rectangular */
    font-size: 0.95rem;
    background-color: white;
    color: #333;
}

.newsletter-form button {
    padding: 0.8rem 1.8rem;
    border: none;
    border-radius: 8px;
    /* Less rounded, more rectangular */
    background-color: #b59a66;
    color: white;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.newsletter-form button:hover {
    background-color: #9a8350;
    /* Darker golden on hover */
}

/* Specific styling for newsletter form messages */
.newsletter-form .form-message {
    width: 100%;
    margin-top: 1rem;
    padding: 0.8rem 1.2rem;
    font-size: 0.9rem;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.95);
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.newsletter-form .form-message.error {
    color: #c53030;
}

.newsletter-form .form-message.success {
    color: #8a7345;
}

.privacy-note {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 1rem;
}

/* Footer */
footer {
    background-color: #2c2c2c;
    /* Dark gray/black */
    color: #ccc;
    padding: 2.5rem 2rem 1.5rem;
    /* Reduced top padding */
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    /* Better proportions: wider first column */
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto 2rem;
}

.footer-column h4 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-serif);
    font-size: 1.2rem;
    /* Slightly smaller */
    color: #b59a66;
    margin-bottom: 0.8rem;
    /* Reduced margin */
}

.footer-tagline {
    font-style: italic;
    color: #aaa;
    margin-bottom: 0.3rem;
    /* Reduced margin */
    font-size: 0.9rem;
    /* Slightly smaller */
}

.footer-description {
    color: #999;
    font-size: 0.85rem;
    /* Smaller text */
    line-height: 1.5;
    /* Tighter line height */
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column ul li {
    margin-bottom: 0.7rem;
}

.footer-column ul li a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.footer-column ul li a:hover {
    color: #f6f3e4;
    /* Jaune pâle/Beige très clair */
    text-decoration: underline;
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    /* Reduced margin */
}

.social-icons a {
    color: #aaa;
    font-size: 1.3rem;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: #b59a66;
}

.footer-contact {
    color: #aaa;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-contact a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact a:hover {
    color: #f6f3e4;
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid #3a3a3a;
    padding: 1.2rem 0;
    text-align: center;
}

.footer-bottom p {
    color: #777;
    font-size: 0.85rem;
    margin: 0;
}

/* Copy Notification */
.copy-notification {
    position: absolute;
    background-color: #b59a66;
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    pointer-events: none;
    z-index: 2000;
    transform: translateX(-50%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    animation: fadeIn 0.3s ease;
}

.copy-notification.fade-out {
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* --- Contact Form Messages --- */
.form-message {
    margin-top: 2rem;
    padding: 1.2rem;
    border-radius: 12px;
    font-size: 0.95rem;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: fadeIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    line-height: 1.4;
}

.form-message::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 1.2rem;
}

.form-message.success {
    background-color: #fdfaf3;
    color: #8a7345;
    border: 1px solid rgba(181, 154, 102, 0.2);
}

.form-message.success::before {
    content: "\f00c";
    /* check icon */
    color: #b59a66;
}

.form-message.error {
    background-color: #fff5f5;
    color: #c53030;
    border: 1px solid rgba(197, 48, 48, 0.1);
}

.form-message.error::before {
    content: "\f06a";
    /* exclamation icon */
    color: #e53e3e;
}

.form-message.fade-out {
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.4s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Product Page Specific Styles */
.product-page-body {
    background: #F4F2E9;
    min-height: 100vh;
}

.product-page-main {
    padding-top: 0px;
    /* Space for sticky header */
    padding-bottom: 0;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.breadcrumbs {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 2rem;
}

.breadcrumbs a {
    color: #666;
    text-decoration: none;
}

.breadcrumbs a:hover {
    color: #b59a66;
}

.product-detail-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 4rem;
    background: #F4F2E9;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

/* Gallery */
.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.main-image-wrapper {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    /* Base for arrows */
    cursor: pointer;
}

.main-image-wrapper img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(181, 154, 102, 0.1);
    border: 1px solid rgba(181, 154, 102, 0.3);
    color: #b59a66;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    z-index: 10;
    opacity: 0;
    /* Hidden by default */
}

.main-image-wrapper:hover .gallery-nav {
    opacity: 1;
    background: rgba(255, 255, 255, 0.9);
}

.gallery-nav:hover {
    background: #b59a66 !important;
    color: white;
}

.gallery-prev {
    left: 15px;
}

.gallery-next {
    right: 15px;
}

@media (max-width: 768px) {
    .gallery-nav {
        opacity: 0.8;
        /* Always visible on mobile */
        background: rgba(255, 255, 255, 0.7);
        width: 35px;
        height: 35px;
    }
}

.thumbnail-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

/* --- Real vs brick model comparison --- */
.compare-view {
    position: absolute;
    inset: 0;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 5%;
    cursor: default;
}

.compare-view.active {
    display: flex;
}

.compare-frame {
    --pos: 50%;
    position: relative;
    width: 100%;
    max-height: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 10px;
    overflow: hidden;
    cursor: grab;
    touch-action: pan-y;
    user-select: none;
}
.compare-frame.dragging {
    cursor: grabbing;
}

.main-image-wrapper .compare-frame img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: contain;
    background: #fff;
    transition: none;
    pointer-events: none;
}

.compare-real {
    clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}

.compare-divider {
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--pos);
    width: 3px;
    margin-left: -1.5px;
    background: #fff;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.35);
    pointer-events: none;
}

.compare-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 42px;
    height: 42px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: #fff;
    color: #b59a66;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.compare-label {
    position: absolute;
    bottom: 12px;
    padding: 0.3rem 0.7rem;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 0.8rem;
    pointer-events: none;
}

.compare-label-left {
    left: 12px;
}

.compare-label-right {
    right: 12px;
}

.thumb-compare {
    position: relative;
    width: 80px;
    height: 80px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    background: white;
}

.thumb-compare.active {
    border: 2px solid #c5a028;
}

.thumbnail-grid .thumb-compare img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: none;
    border-radius: 0;
    object-fit: contain;
    background: #fff;
}

.thumb-compare-real {
    clip-path: inset(0 50% 0 0);
}

.thumb-compare-lego {
    clip-path: inset(0 0 0 50%);
}

.thumb-compare-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 26px;
    height: 26px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: #fff;
    color: #b59a66;
    font-size: 0.7rem;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

.thumbnail-grid img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    background: white;
    padding: 5px;
    transition: all 0.2s ease;
}

.thumbnail-grid img.active {
    border: 2px solid #c5a028;
    /* Jaune doré un peu plus soutenu */
    padding: 4px;
}

/* Sidebar Info */
.product-details-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    /* Réduit de 1.5rem pour tout remonter */
}

.product-details-sidebar h1 {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    color: #2c2c2c;
    /* Couleur titre index.html */
    margin: 0;
    font-weight: 600;
}

.product-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    /* Réduit de 0.8rem pour serrer meta/stars/prix */
    margin-bottom: 0.5rem;
    /* Réduit drastiquement pour remonter la description */
}

.product-meta .meta-info {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.95rem;
    /* Augmenté de 0.85rem */
    color: #444;
    /* Un peu plus sombre pour la lisibilité */
    margin-bottom: 0px;
    /* Aligné sur le gap global */
}

.product-meta .badge {
    font-size: 0.9rem;
    /* Agrandissement du badge */
    padding: 0.3rem 0.8rem;
}

.product-meta .rating {
    display: flex;
    align-items: center;
    gap: 0.8rem !important;
    margin-bottom: 0.8rem;
    /* Réduit de 1rem */
    color: #d4af70;
}

#product-stars {
    display: flex;
    gap: 0.4rem !important;
    /* Espacement un peu plus serré pour l'équilibre */
}

#product-stars i {
    font-size: 1.1rem !important;
    /* Réduit de 1.3rem */
}

.product-meta .rating span {
    color: #777;
    font-size: 0.85rem;
    /* Match index .rating span */
}

.product-meta .rating span i {
    color: #d4af70;
    /* Force golden for injected stars */
}

.product-meta .numerical-rating {
    color: #777;
    font-size: 0.85rem;
    /* Match index .rating span */
}

.product-meta .review-count {
    color: #777;
    font-size: 0.85rem;
    /* Match index .rating span */
}

.price-display {
    margin-top: -0.4rem;
    /* Remonter un peu plus le prix */
    margin-bottom: 1.2rem;
    /* Ajouter de l'espace avec la description */
}

.current-price {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    font-weight: 600;
    color: #b59a66;
    display: block;
}

.tax-info {
    font-size: 0.85rem;
    color: #666;
    /* Synchronisé avec meta-info */
}

.product-description-short {
    line-height: 1.6;
    color: #444;
}

.purchase-box {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    padding-top: 1rem;
    /* Réduit de 1.5rem */
    border-top: 1px solid #eee;
}

.quantity-control label {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: #666;
}

.quantity-selector {
    display: flex;
    align-items: center;
    border: 2px solid #b59a66;
    /* Doré foncé affirmé */
    border-radius: 12px;
    /* Plus arrondi, plus doux */
    width: fit-content;
    padding: 0;
    overflow: hidden;
    background: #fff;
    /* Fond blanc pour bien ressortir sur le beige */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    /* Légère ombre pour l'intégration */
}

.quantity-selector button {
    background: #fbfaf5;
    /* Très léger beige */
    border: none;
    width: 35px;
    /* Réduit de 40px */
    height: 40px;
    /* Réduit de 45px */
    cursor: pointer;
    font-size: 1.1rem;
    /* Légèrement réduit */
    color: #b59a66;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.quantity-selector button:hover {
    background: #f0ede0;
}

.quantity-selector input {
    width: 40px;
    /* Réduit de 45px */
    height: 40px;
    /* Réduit de 45px */
    text-align: center;
    border: none;
    font-size: 1rem;
    /* Légèrement réduit */
    font-weight: 700;
    background: #fff;
    appearance: none;
    -moz-appearance: textfield;
    user-select: none;
    pointer-events: none;
    color: #2c2c2c;
}

/* Hide browsers default spin buttons */
.quantity-selector input::-webkit-outer-spin-button,
.quantity-selector input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.quantity-selector input:focus {
    outline: none;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.btn-add-to-cart {
    background: #b59a66;
    border: 2px solid #b59a66;
    color: white;
    padding: 0.8rem 1.8rem;
    /* Padding réduit */
    border-radius: 12px;
    /* Pareil que quantité */
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1.1rem;
    /* Un juste milieu */
    width: auto;
    /* Largeur auto au lieu de 100% */
    min-width: 200px;
    /* Réduit de 250px */
    max-width: 100%;
    box-shadow: 0 4px 10px rgba(181, 154, 102, 0.2);
}

.btn-add-to-cart:hover {
    background: #a48b59;
    border-color: #a48b59;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(181, 154, 102, 0.3);
}

.btn-buy-now {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.3s;
}

.btn-buy-now:hover {
    opacity: 0.9;
}

.shop-pay {
    font-style: italic;
    font-weight: 800;
}

.payment-options {
    text-align: center;
    font-size: 0.85rem;
    color: #666;
    text-decoration: none;
}

.product-extra-info {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #555;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

/* Back to Order button for tracking context */
.back-to-order-container {
    padding: 1.5rem 20px 0.5rem;
    /* Collé au bord de l'écran avec 20px de marge */
    width: 100%;
    display: flex;
    justify-content: flex-start;
}

.back-to-order-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    color: #b59a66;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.6rem 1.2rem;
    border: 2px solid #b59a66;
    border-radius: 12px;
    background: white;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    cursor: pointer;
}

.back-to-order-btn:hover {
    background: #fdfaf3;
    border-color: #a48b59;
    color: #a48b59;
}

.back-to-order-btn i {
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .back-to-order-container {
        padding: 1rem 1.5rem 0;
    }
}

/* Related Products Section */
.related-products-section {
    background: #DCD8C6;
    margin-top: 0;
    padding: 6rem 0;
    text-align: left;
    width: 100%;
    flex: 1;
}

.related-products-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.related-products-section .section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: #224229;
    /* Dark green from image */
    margin-bottom: 2rem;
}

.related-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.related-product-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 1.5rem;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.related-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.related-img-container {
    background: white;
    border-radius: 8px;
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
}

.related-img-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.related-content h3 {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    color: #2c2c2c;
    /* Uniformisé avec index.html */
    margin-bottom: 0.5rem;
    line-height: 1.4;
    font-weight: 600;
}

.related-price {
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: 1.1rem;
    color: #b59a66;
    /* Doré index.html */
}

@media (max-width: 992px) {
    .product-detail-layout {
        grid-template-columns: 1fr;
        padding: 2rem;
        gap: 2rem;
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
    }

    .main-image-wrapper {
        height: 400px;
        width: 100%;
        max-width: 100%;
    }

    .related-products-grid {
        grid-template-columns: 1fr;
    }

    .thumbnail-grid {
        justify-content: center;
        flex-wrap: wrap;
        /* Permet le retour à la ligne si trop large */
        gap: 0.5rem;
    }

    .thumbnail-grid img,
    .thumb-compare {
        width: 70px;
        height: 70px;
    }

    .product-gallery,
    .product-details-sidebar {
        text-align: center;
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }

    .meta-info,
    .spec-line,
    .rating,
    .purchase-box,
    .quantity-selector,
    .action-buttons {
        justify-content: center;
        align-items: center;
        margin-left: auto;
        margin-right: auto;
    }

    .quantity-control label {
        text-align: center;
    }
}

/* Image Visualizer Styles */
.visualizer-overlay {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
}

.visualizer-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 85%;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    animation: zoom 0.3s;
    transition: opacity 0.3s ease;
    user-select: none;
}

.visualizer-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(181, 154, 102, 0.3);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    z-index: 2010;
}

.visualizer-nav:hover {
    background: #b59a66;
    border-color: #b59a66;
}

.visualizer-prev {
    left: 30px;
}

.visualizer-next {
    right: 30px;
}

@media (max-width: 768px) {
    .visualizer-nav {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        background: rgba(0, 0, 0, 0.4);
        border-color: rgba(255, 255, 255, 0.2);
    }

    .visualizer-prev {
        left: 15px;
    }

    .visualizer-next {
        right: 15px;
    }
}

.visualizer-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #fff;
    font-size: 60px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s;
}

.visualizer-close:hover {
    color: var(--accent-color);
}

/* Cart Page Specifics */
.cart-page-body {
    background-color: #f5f2e8 !important;
    background-image: none !important;
}

.cart-main {
    padding: 3rem 0;
    min-height: 70vh;
}

.cart-title {
    font-family: var(--font-serif);
    font-size: 2rem;
    text-align: center;
    margin-bottom: 3rem;
    color: #333;
}

.cart-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 2rem;
    align-items: start;
}

/* Item Section */
.cart-items-section {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.cart-item {
    display: grid;
    grid-template-columns: 100px 3fr 1fr 1fr 50px;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid #eee;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-img {
    width: 100%;
    height: 100px;
    object-fit: contain;
    background: #f9f9f9;
    border-radius: 4px;
}

.cart-item-info h3 {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.cart-item-info .item-price-unit {
    color: #666;
    font-size: 0.9rem;
}

.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid #ddd;
    padding: 0.3rem;
    border-radius: 4px;
    width: fit-content;
}

.cart-item-qty button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    width: 25px;
    color: #444;
}

.cart-item-qty span {
    width: 20px;
    text-align: center;
    font-size: 0.9rem;
}

.cart-item-price {
    font-weight: 600;
    color: #333;
    text-align: right;
}

.cart-item-remove {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 1.2rem;
    transition: color 0.2s;
}

.cart-item-remove:hover {
    color: #ff4444;
}

/* Summary Section */
.cart-summary-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.summary-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    color: #666;
    width: 100%;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid #eee;
    font-size: 1.4rem;
    font-family: var(--font-serif);
    color: #222;
    width: 100%;
}

.checkout-btn {
    width: fit-content;
    min-width: 250px;
    background-color: var(--accent-color);
    color: white;
    border: none;
    padding: 1rem 3.5rem;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 1.5rem;
    transition: background 0.3s;
}

.checkout-btn:hover {
    background-color: #8e7a48;
    /* Slightly darker gold */
}

.guarantee-box {
    background: white;
    padding: 1.2rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 1rem;
    border-left: 4px solid var(--accent-color);
}

.guarantee-box i {
    font-size: 1.5rem;
    color: var(--accent-color);
}

.guarantee-text strong {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
}

.guarantee-text p {
    font-size: 0.8rem;
    color: #666;
    margin: 0;
}

.contact-hint {
    text-align: center;
    background: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    font-size: 0.85rem;
    color: #666;
}

.contact-hint a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
}

.contact-hint a:hover {
    text-decoration: underline;
}

/* Trust Badges */
.trust-badges {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.badge-item {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.badge-item i {
    font-size: 1.5rem;
    color: var(--accent-color);
    width: 30px;
    text-align: center;
}

.badge-text {
    font-size: 0.85rem;
    line-height: 1.4;
}

.back-link {
    display: inline-block;
    margin-top: 2rem;
    color: #666;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: 500;
}

.cart-empty-message {
    text-align: center;
    padding: 4rem 2rem;
}

.cart-empty-message i {
    color: #ddd;
    margin-bottom: 1rem;
}

.continue-shopping {
    display: inline-block;
    margin-top: 1.5rem;
    background: var(--accent-color);
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 5px;
    text-decoration: none;
}

/* Responsive Cart */
@media (max-width: 992px) {
    .cart-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .cart-item {
        grid-template-columns: 80px 1fr 50px;
        grid-template-rows: auto auto;
    }

    .cart-item-qty {
        grid-row: 2;
        grid-column: 2;
    }

    .cart-item-price {
        grid-row: 2;
        grid-column: 3;
    }
}

.cart-actions-secondary {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #f0f0f0;
    text-align: left;
}

.secondary-continue-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #888;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background: transparent;
    transition: all 0.3s ease;
}

.secondary-continue-btn:hover {
    background-color: #f9f9f9;
    color: var(--accent-color);
    border-color: var(--accent-color);
}

.secondary-continue-btn i {
    font-size: 0.75rem;
}

/* Related Products Section Styles */
.related-products-section {
    padding: 4rem 0;
    background-color: #fdfcf9;
}

.related-products-section .section-title {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    color: #222;
    margin-bottom: 3rem;
    text-align: center;
}

.related-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    justify-content: center;
}

.related-product-card {
    background-color: #f5f2e8;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    text-align: left;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.related-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}

.related-img-container {
    background-color: #fafaf8;
    height: 250px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #ddd;
    font-size: 0.9rem;
    position: relative;
    padding: 0px;
}

.related-img-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.related-content {
    padding: 1rem 1.2rem;
}

.related-content h3 {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    color: #2c2c2c;
    font-weight: 600;
}

.related-meta {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: #666;
}

.related-price {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    color: #b59a66;
    font-weight: 700;
    margin-top: auto;
}

/* ==========================================================================
   Responsive Design & Mobile Optimization
   ========================================================================== */

/* Tablets & Small Laptops (Max 1024px) */
@media (max-width: 1024px) {
    header {
        padding: 1rem 1.5rem;
    }

    .hero h1,
    .hero .highlight {
        font-size: 2.8rem;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 2rem;
    }
}

/* Phones & Medium Tablets (Max 768px) */
@media (max-width: 768px) {
    header {
        padding: 0.8rem 1rem;
        width: 100%;
        box-sizing: border-box;
    }

    .cart-icon i {
        font-size: 1.5rem;
        /* Even larger on mobile for thumb accessibility */
    }

    .cart-count {
        width: 17px;
        height: 17px;
        font-size: 0.65rem;
        top: -3px;
        right: -8px;
    }

    nav {
        display: none;
    }

    .logo {
        font-size: 1.1rem;
    }

    .hero {
        height: auto;
        padding: 5rem 1rem 3rem 1rem;
        width: 100vw;
        box-sizing: border-box;
        overflow: hidden;
    }

    .hero-content {
        margin-top: 0;
        width: 100%;
    }

    .hero h1,
    .hero .highlight {
        font-size: 1.8rem;
        word-break: break-word;
    }

    .products-section,
    .history-section,
    .testimonials-section,
    .contact-section,
    .newsletter-section {
        padding: 3rem 1.5rem;
        width: 100%;
        box-sizing: border-box;
    }

    .product-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0;
    }

    .product-image {
        height: 250px;
    }

    .history-box {
        padding: 1.5rem;
        width: 100%;
    }

    .testimonials-grid,
    .form-row {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }

    .newsletter-form {
        flex-direction: column;
        width: 100%;
    }

    .newsletter-form input {
        width: 100%;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-logo,
    .social-icons,
    .footer-contact {
        justify-content: center;
    }

    .submit-btn {
        width: 100%;
        padding: 1rem;
    }
}

/* Extreme Small Screens (Max 480px) */
@media (max-width: 480px) {

    .hero h1,
    .hero .highlight {
        font-size: 1.6rem;
    }

    .price {
        font-size: 1.3rem;
    }

    .product-details-sidebar h1 {
        font-size: 1.5rem;
    }

    .product-detail-layout {
        padding: 1rem;
        border-radius: 0;
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }

    .main-image-wrapper {
        height: 260px;
        /* Réduit pour laisser de la place aux infos */
    }

    .thumbnail-grid img,
    .thumb-compare {
        width: 55px;
        /* Plus petit pour iPhone 14 */
        height: 55px;
    }
}

/* --- Cart Notification --- */
.cart-notification {
    background-color: #fdfaf3;
    border: 1px solid rgba(181, 154, 102, 0.3);
    border-radius: 12px;
    padding: 1.2rem;
    margin-bottom: 2rem;
    animation: slideDown 0.5s ease-out;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #8a7345;
    font-size: 0.95rem;
    line-height: 1.5;
}

.notification-content i {
    font-size: 1.2rem;
    color: #b59a66;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Legal Pages Styles */
.legal-page-main {
    flex: 1;
    padding: 120px 20px 60px;
    background-color: #fff;
    margin: 40px auto;
    max-width: 900px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.legal-container {
    padding: 0 40px;
}

.legal-container h1 {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    color: var(--text-color);
    margin-bottom: 2rem;
    text-align: center;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 1rem;
}

.legal-container h2 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--text-color);
    margin: 2rem 0 1rem;
}

.legal-container p,
.legal-container li {
    font-size: 1rem;
    line-height: 1.7;
    color: #555;
    margin-bottom: 1rem;
}

.legal-container table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    font-size: 0.9rem;
}

.legal-container th,
.legal-container td {
    border: 1px solid #eee;
    padding: 12px 15px;
    text-align: left;
}

.legal-container th {
    background-color: #f9f9f9;
    font-weight: 600;
}

.legal-container .last-update {
    font-style: italic;
    font-size: 0.9rem;
    margin-top: 3rem;
    color: #888;
    text-align: right;
}

@media (max-width: 768px) {
    .legal-page-main {
        padding: 100px 15px 40px;
        margin: 20px;
    }

    .legal-container {
        padding: 0 10px;
    }

    .legal-container h1 {
        font-size: 2rem;
    }

    .legal-container table {
        display: block;
        overflow-x: auto;
    }
}

/* --- Cookies Banner --- */
.cookie-banner {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: 800px;
    /* Widen as requested */
    background-color: rgba(249, 247, 237, 0.98);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(164, 144, 96, 0.25);
    border-radius: 24px;
    padding: 35px 45px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    display: none;
    flex-direction: row;
    /* Horizontal layout on desktop */
    align-items: center;
    gap: 30px;
    text-align: left;
    animation: premiumSlideUp 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes premiumSlideUp {
    from {
        transform: translate(-50%, 60px) scale(0.98);
        opacity: 0;
    }

    to {
        transform: translate(-50%, 0) scale(1);
        opacity: 1;
    }
}

.cookie-banner .cookie-content {
    flex: 1;
}

.cookie-banner .cookie-icon {
    font-size: 2.2rem;
    color: var(--accent-color);
    margin-bottom: 0px;
}

.cookie-banner h3 {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    color: var(--text-color);
    margin-bottom: 8px;
}

.cookie-banner p {
    margin-bottom: 0px;
    font-size: 0.95rem;
    color: #4a4a4a;
    line-height: 1.6;
}

.cookie-banner .cookie-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 220px;
}

.cookie-banner .btn-accept {
    background-color: var(--accent-color);
    color: white;
    border: none;
    padding: 14px 30px;
    border-radius: 40px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(164, 144, 96, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cookie-banner .btn-accept:hover {
    background-color: #8e7a48;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(164, 144, 96, 0.4);
}

.cookie-banner .btn-decline {
    background: transparent;
    color: #666;
    border: 1px solid #ddd;
    padding: 10px 30px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cookie-banner .btn-decline:hover {
    background: rgba(0, 0, 0, 0.03);
    color: var(--text-color);
    border-color: #bbb;
}

/* Responsiveness for banner */
@media (max-width: 850px) {
    .cookie-banner {
        flex-direction: column;
        padding: 30px;
        text-align: center;
        gap: 20px;
    }

    .cookie-banner .cookie-actions {
        width: 100%;
    }

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