* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    line-height: 1.6;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

h1, h2, h3 { font-family: var(--font-title); font-weight: 600; margin: 0 0 0.6em; }

.btn {
    display: inline-block;
    padding: 0.85em 1.8em;
    border-radius: 999px;
    font-family: var(--font-body);
    font-weight: 600;
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 0.95rem;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--color-accent); color: var(--color-white); }
.btn-primary:hover { background: var(--color-accent-dark); }
.btn-outline { background: transparent; border-color: var(--color-accent); color: var(--color-accent-dark); }
.btn-outline:hover { background: var(--color-accent); color: var(--color-white); }
.btn-small { padding: 0.55em 1.3em; font-size: 0.85rem; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* Header / nav */
.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.2rem 2rem;
    max-width: var(--max-width);
    margin: 0 auto;
    position: relative;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: var(--color-accent-dark);
}
.brand-logo {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
}
.brand-name {
    font-family: var(--font-script);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--color-accent-dark);
}
.brand-dot { color: var(--color-text); }

.site-nav { display: flex; align-items: center; gap: 1.8rem; }
.site-nav a {
    text-decoration: none;
    font-weight: 500;
    color: var(--color-text);
    padding-bottom: 4px;
    border-bottom: 2px solid transparent;
}
.site-nav a.active,
.site-nav a:hover { border-bottom-color: var(--color-accent); color: var(--color-accent-dark); }
.nav-instagram { display: inline-flex; color: var(--color-accent-dark); }

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 20;
}
.nav-toggle span {
    display: block;
    height: 2px;
    background: var(--color-accent-dark);
    border-radius: 2px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

main { max-width: var(--max-width); margin: 0 auto; padding: 0 2rem 4rem; }

/* Hero */
.hero {
    text-align: center;
    padding: 2rem 1rem 3.5rem;
}
.hero-logo { width: 190px; margin: 0 auto 1.2rem; }
.hero h1 { font-size: 2.1rem; max-width: 640px; margin-left: auto; margin-right: auto; }
.hero-tagline { color: var(--color-accent-dark); font-size: 1.1rem; margin-bottom: 1.6rem; }
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* Intro */
.intro { padding: 2rem 0; }
.intro-text {
    background: var(--color-card);
    border-radius: var(--radius);
    padding: 2.2rem 2.4rem;
    max-width: 720px;
    margin: 0 auto;
    box-shadow: var(--shadow);
}
.intro-text h2 { text-align: center; }
.signature { font-family: var(--font-script); font-size: 1.4rem; color: var(--color-accent-dark); text-align: right; margin-top: 1rem; }

/* Highlights */
.highlights { text-align: center; padding: 3rem 0 1rem; }
.highlights-lead { max-width: 520px; margin: 0 auto 2rem; color: var(--color-text); }
.highlights-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.highlight-card {
    background: var(--color-card-alt);
    border-radius: var(--radius);
    padding: 1.5rem 1rem;
    text-decoration: none;
    color: var(--color-text);
    box-shadow: var(--shadow);
    transition: transform 0.15s ease;
}
.highlight-card:hover { transform: translateY(-4px); }
.highlight-card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 10px; margin-bottom: 0.8rem; }
.highlight-card h3 { margin: 0; font-size: 1.05rem; }

/* Page header (Galerie / Boutique / Contact) */
.page-header { text-align: center; padding: 2.5rem 0 1.5rem; }
.page-header p { max-width: 560px; margin: 0 auto; }

/* Filters */
.filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 2rem;
}
.filter-btn {
    background: var(--color-card);
    border: none;
    border-radius: 999px;
    padding: 0.5em 1.3em;
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--color-text);
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}
.filter-btn.active, .filter-btn:hover { background: var(--color-accent); color: var(--color-white); }

/* Grids */
.grid {
    display: grid;
    gap: 1.2rem;
}
.gallery-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.grid-item {
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    aspect-ratio: 1 / 1;
}
.grid-item img { width: 100%; height: 100%; object-fit: cover; }

.shop-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.product-card {
    background: var(--color-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
}
.product-photo { display: block; aspect-ratio: 1 / 1; overflow: hidden; }
.product-photo img { width: 100%; height: 100%; object-fit: cover; }
.product-info { padding: 1rem 1.2rem 1.3rem; text-align: center; }
.product-info h3 { font-size: 1.05rem; margin-bottom: 0.3rem; }
.product-link { text-decoration: none; color: inherit; }
.product-link:hover { color: var(--color-accent-dark); }
.product-price { color: var(--color-accent-dark); font-weight: 600; margin-bottom: 0.9rem; }
.product-card[hidden] { display: none; }

/* Product detail page */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: start;
    padding-top: 1rem;
}
.product-detail-main {
    aspect-ratio: 1 / 1;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
    display: block;
    width: 100%;
}
.product-detail-main img { width: 100%; height: 100%; object-fit: cover; }
.product-detail-thumbs { display: flex; gap: 0.7rem; margin-top: 0.8rem; flex-wrap: wrap; }
.product-detail-thumbs button {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    overflow: hidden;
    padding: 0;
    border: 2px solid transparent;
    cursor: pointer;
    background: none;
}
.product-detail-thumbs button.active { border-color: var(--color-accent); }
.product-detail-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.product-detail-info .breadcrumb { font-size: 0.85rem; color: var(--color-accent-dark); margin-bottom: 0.4rem; }
.product-detail-info .breadcrumb a { text-decoration: none; color: inherit; }
.product-detail-info h1 { font-size: 1.7rem; margin-bottom: 0.3rem; }
.product-detail-info .product-price { font-size: 1.2rem; }
.product-detail-info .product-description { white-space: pre-line; margin-bottom: 1.5rem; }

@media (max-width: 780px) {
    .product-detail { grid-template-columns: 1fr; }
}

.empty-state { text-align: center; color: var(--color-accent-dark); padding: 2rem 0; }

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(92, 74, 58, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    z-index: 50;
}
.lightbox img { max-height: 85vh; border-radius: 8px; }
.lightbox-close {
    position: absolute;
    top: 1.2rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: var(--color-white);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}
.lightbox[hidden] { display: none; }

/* Modal (Acheter) */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(92, 74, 58, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    z-index: 50;
}
.modal-content {
    background: var(--color-bg-alt);
    border-radius: var(--radius);
    padding: 2rem;
    max-width: 420px;
    width: 100%;
    position: relative;
    box-shadow: var(--shadow);
}
.modal-close {
    position: absolute;
    top: 0.8rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.6rem;
    cursor: pointer;
    color: var(--color-accent-dark);
    line-height: 1;
}
.modal-note {
    font-size: 0.85rem;
    color: var(--color-accent-dark);
    background: var(--color-card);
    border-radius: 8px;
    padding: 0.6em 0.9em;
}
.modal[hidden] { display: none; }

/* Forms */
form p { margin: 0 0 1rem; display: flex; flex-direction: column; gap: 0.4rem; }
label { font-size: 0.9rem; font-weight: 600; }
input[type="text"], input[type="email"], input[type="tel"], textarea {
    font-family: var(--font-body);
    font-size: 1rem;
    padding: 0.7em 0.9em;
    border-radius: 8px;
    border: 1px solid var(--color-card-alt);
    background: var(--color-white);
    color: var(--color-text);
}
input:focus, textarea:focus { outline: 2px solid var(--color-accent); outline-offset: 1px; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-success {
    background: var(--color-card-alt);
    color: var(--color-accent-dark);
    padding: 1.5em 1em;
    border-radius: 8px;
    font-size: 1rem;
    text-align: center;
}
.form-error {
    background: #F5DEDA;
    color: #9C3B2B;
    padding: 0.8em 1em;
    border-radius: 8px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.contact-section {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 2.5rem;
    align-items: start;
    padding-top: 1rem;
}
.contact-aside {
    background: var(--color-card);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
}
.contact-logo { width: 100px; margin: 0 auto 1rem; border-radius: 50%; }

/* Livre d'or */
.guestbook-success { max-width: 560px; margin: 0 auto 2rem; text-align: center; }
.guestbook-form-section { max-width: 560px; margin: 0 auto 3rem; }
.guestbook-form { background: var(--color-card); border-radius: var(--radius); padding: 2rem; }
.guestbook-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.2rem;
}
.guestbook-card {
    background: var(--color-white);
    border-radius: var(--radius);
    padding: 1.4rem 1.6rem;
    box-shadow: var(--shadow);
}
.guestbook-message { margin: 0 0 0.8rem; }
.guestbook-author { margin: 0; font-family: var(--font-script); font-size: 1.3rem; color: var(--color-accent-dark); text-align: right; }

/* Footer */
.site-footer {
    text-align: center;
    padding: 3rem 2rem 2.5rem;
    color: var(--color-accent-dark);
}
.footer-logo { width: 56px; margin: 0 auto 0.8rem; border-radius: 50%; }
.footer-copy { font-size: 0.8rem; color: var(--color-text); opacity: 0.7; margin-top: 1rem; }

/* Responsive */
@media (max-width: 860px) {
    .highlights-grid { grid-template-columns: 1fr; max-width: 320px; margin: 0 auto; }
    .contact-section { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
    .nav-toggle { display: flex; }
    .site-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color-bg-alt);
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        box-shadow: var(--shadow);
        transition: max-height 0.25s ease;
    }
    .site-nav.open { max-height: 320px; padding: 0.5rem 0; }
    .site-nav a, .site-nav .nav-instagram {
        padding: 0.9rem 2rem;
        width: 100%;
        border-bottom: none !important;
    }
    main { padding: 0 1.2rem 3rem; }
    .site-header { padding: 1rem 1.2rem; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 1.6rem; }
    .intro-text { padding: 1.6rem 1.4rem; }
    .hero-actions { flex-direction: column; align-items: stretch; }
}
