:root {
    --bg: #f7f4ef;
    --bg-soft: #efe7d8;
    --card: #ffffff;
    --text: #2d241d;
    --text-soft: #5f5145;
    --gold: #AB8056;
    --gold-soft: #D9BD79;
    --gold-light: #FFE498;
    --border: rgba(171, 128, 86, 0.18);
    --shadow: 0 18px 50px rgba(80, 52, 26, 0.10);
    --radius: 22px;
    --container: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Playfair Display', serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
    width: min(100% - 28px, var(--container));
    margin: 0 auto;
}

.site-header {
    background: rgba(247, 244, 239, 0.96);
    border-bottom: 1px solid var(--border);
}
.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    padding: 10px 0 8px;
}

.client-account-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 10px 14px;
    background: #fff;
    color: var(--text);
    box-shadow: 0 10px 24px rgba(80, 52, 26, 0.08);
}
.client-account-link:hover { color: var(--gold); }
.client-account-icon {
    width: 34px; height: 34px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--gold-light); font-size: 1rem;
}
.client-account-text { font-size: 0.94rem; font-weight: 700; }
.brand-logo {
    width: min(100%, 220px);
    height: auto;
}

.sticky-nav {
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(247, 244, 239, 0.96);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}
.sticky-nav-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 18px;
    padding: 10px 0;
    font-size: 0.98rem;
}
.sticky-nav a {
    color: var(--text);
}
.sticky-nav a:hover {
    color: var(--gold);
}
.nav-cta {
    color: var(--gold);
    font-weight: 700;
}

.hero {
    padding: 22px 0 18px;
}
.hero-single {
    display: block;
}
.hero-copy, .service-card, .cta-box {
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.hero-copy {
    background:
        linear-gradient(rgba(18, 15, 13, 0.72), rgba(18, 15, 13, 0.72)),
        url('/site-vitrine/assets/img/atelier-noir-blanc.png') center/cover no-repeat;
    color: #fff;
    padding: 34px 24px;
}
.eyebrow {
    color: var(--gold-soft);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.78rem;
    margin-bottom: 12px;
}
.hero h1, h2, h3 {
    font-family: 'Cinzel', serif;
}
.hero h1 {
    font-size: clamp(2rem, 5vw, 3.6rem);
    line-height: 1.12;
    margin-bottom: 18px;
    max-width: 13ch;
}
.hero-text {
    color: rgba(255,255,255,0.92);
    font-size: 1.05rem;
    max-width: 58ch;
}
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 18px;
    border-radius: 999px;
    font-size: 0.98rem;
    border: 1px solid transparent;
    transition: 0.2s ease;
}
.btn-primary {
    background: var(--gold);
    color: #fff;
}
.btn-primary:hover {
    transform: translateY(-1px);
}
.btn-secondary {
    border-color: rgba(255,255,255,0.35);
    background: rgba(255,255,255,0.06);
    color: #fff;
}
.btn-outline-gold {
    color: var(--gold);
    background: transparent;
    border-color: var(--gold);
}

.services,
.story-highlight,
.craft-section,
.cta-section {
    padding: 22px 0 12px;
}
.section-heading {
    margin-bottom: 18px;
}
.section-heading h2,
.story-copy h2,
.craft-copy h2,
.cta-box h2 {
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    line-height: 1.18;
}
.service-cards {
    display: grid;
    gap: 16px;
}
.service-card {
    background: #efe3cf;
    border: 1px solid rgba(171, 128, 86, 0.24);
    padding: 22px 18px;
}
.service-card h3 {
    font-size: 1.35rem;
    line-height: 1.25;
    margin-bottom: 12px;
}
.service-card p {
    color: var(--text-soft);
}
.text-link {
    display: inline-block;
    margin-top: 14px;
    color: var(--gold);
    font-weight: 700;
}

.story-grid,
.craft-grid {
    display: grid;
    gap: 22px;
    align-items: center;
}
.story-photo-wrap,
.craft-photo-wrap {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.story-portrait,
.craft-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.story-copy,
.craft-copy {
    background: var(--card);
    padding: 24px 20px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}
.story-copy p,
.craft-copy p,
.cta-box p {
    color: var(--text-soft);
}
.story-copy p + p,
.craft-copy p + p {
    margin-top: 12px;
}

/* Histoire.php */
.story-page-hero {
    padding: 24px 0 16px;
}
.story-page-hero-grid,
.story-two-cols,
.story-signature-grid {
    display: grid;
    gap: 20px;
    align-items: center;
}
.story-page-hero-copy,
.story-text-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px 20px;
}
.story-page-hero-copy h1 {
    font-family: 'Cinzel', serif;
    font-size: clamp(1.9rem, 5vw, 3.2rem);
    line-height: 1.15;
    margin-bottom: 16px;
}
.story-lead {
    color: var(--text-soft);
    font-size: 1.08rem;
}
.story-page-hero-photo,
.story-image-card {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.story-page-hero-photo img,
.story-image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.story-section {
    padding: 14px 0;
}
.story-text-card h2 {
    font-family: 'Cinzel', serif;
    font-size: clamp(1.35rem, 4vw, 2.15rem);
    line-height: 1.2;
    margin-bottom: 14px;
}
.story-text-card p {
    color: var(--text-soft);
}
.story-text-card p + p {
    margin-top: 12px;
}
.story-image-stack {
    display: grid;
    gap: 18px;
}
.story-image-card.small img {
    aspect-ratio: 4 / 3;
}
.alt-section {
    background: linear-gradient(180deg, rgba(239, 231, 216, 0.35), rgba(247, 244, 239, 0));
}
.dark-band {
    margin-top: 12px;
    padding: 26px 0;
    background: linear-gradient(135deg, #171310, #241d17);
}
.story-signature-copy {
    color: #fff;
}
.story-signature-copy h2 {
    font-family: 'Cinzel', serif;
    font-size: clamp(1.45rem, 4vw, 2.4rem);
    line-height: 1.2;
    margin-bottom: 14px;
}
.story-signature-copy p {
    color: rgba(255,255,255,0.88);
}
.signature-card {
    background: rgba(255,255,255,0.05);
}
.signature-card img {
    object-fit: contain;
    background: rgba(255,255,255,0.02);
}
.dark-band .btn-secondary {
    color: #fff;
    border-color: rgba(255,255,255,0.35);
    background: transparent;
}

.cta-box {
    background: linear-gradient(135deg, #161311, #27201a);
    color: #fff;
    padding: 28px 22px;
    text-align: center;
}
.cta-box p {
    color: rgba(255,255,255,0.88);
}

.site-footer {
    margin-top: 28px;
    padding: 34px 0 42px;
    background: #13100d;
    color: rgba(255,255,255,0.86);
}
.footer-grid {
    display: grid;
    gap: 22px;
}
.footer-logo {
    width: min(100%, 170px);
    background: #f7f4ef;
    border-radius: 18px;
    padding: 10px;
    margin-bottom: 14px;
}
.site-footer h3 {
    color: var(--gold-soft);
    margin-bottom: 10px;
    font-size: 1.1rem;
}
.site-footer ul {
    list-style: none;
}
.site-footer li + li {
    margin-top: 8px;
}
.site-footer a:hover {
    color: var(--gold-light);
}

@media (min-width: 860px) {
    .header-top {
        justify-content: flex-start;
    }
    .brand-logo {
        width: 185px;
    }
    .sticky-nav-inner {
        justify-content: flex-end;
    }
    .service-cards {
        grid-template-columns: repeat(3, 1fr);
    }
    .story-grid,
    .craft-grid {
        grid-template-columns: 0.9fr 1.1fr;
    }
    .craft-grid {
        grid-template-columns: 1.1fr 0.9fr;
    }
    .footer-grid {
        grid-template-columns: 1.1fr 0.8fr 0.8fr;
    }
    .story-page-hero-grid {
        grid-template-columns: 1.2fr 0.8fr;
    }
    .story-two-cols {
        grid-template-columns: 1.05fr 0.95fr;
    }
    .story-two-cols.reverse {
        grid-template-columns: 0.95fr 1.05fr;
    }
    .story-signature-grid {
        grid-template-columns: 1.1fr 0.9fr;
    }
}

@media (max-width: 640px) {
    .header-top {
        padding: 8px 0 6px;
    }
    .brand-logo {
        width: min(100%, 180px);
    }
    .sticky-nav-inner {
        gap: 8px 14px;
        font-size: 0.92rem;
        padding: 8px 0;
    }
    .hero-copy {
        padding: 26px 18px;
    }
    .hero h1 {
        max-width: none;
        font-size: clamp(1.8rem, 8vw, 2.5rem);
    }
    .story-page-hero {
        padding: 18px 0 10px;
    }
    .story-page-hero-copy,
    .story-text-card {
        padding: 24px 18px;
    }
    .story-page-hero-copy h1 {
        font-size: clamp(1.75rem, 7.2vw, 2.35rem);
        line-height: 1.18;
        margin-bottom: 14px;
    }
    .story-lead,
    .story-text-card p,
    .story-signature-copy p {
        font-size: 1.03rem;
        line-height: 1.78;
    }
    .story-text-card h2,
    .story-signature-copy h2 {
        font-size: clamp(1.25rem, 6vw, 1.7rem);
        line-height: 1.28;
        margin-bottom: 12px;
    }
    .story-section {
        padding: 12px 0;
    }
    .story-page-hero-grid,
    .story-two-cols,
    .story-signature-grid,
    .story-image-stack {
        gap: 16px;
    }
    .dark-band {
        padding: 24px 0 20px;
    }
    .btn {
        width: 100%;
        font-size: 1rem;
        padding: 14px 18px;
    }
    .hero-actions {
        gap: 10px;
    }
    .footer-logo {
        width: min(100%, 145px);
    }
}

/* Galerie */
.page-hero {
    padding: 28px 0 12px;
}
.surtitle {
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.78rem;
    margin-bottom: 10px;
}
.page-intro,
.gallery-heading p {
    color: var(--text-soft);
    max-width: 70ch;
}
.gallery-hero h1 {
    font-family: 'Cinzel', serif;
    font-size: clamp(1.9rem, 5vw, 3.1rem);
    line-height: 1.16;
    margin-bottom: 14px;
}
.gallery-nav-section {
    position: sticky;
    top: 52px;
    z-index: 24;
    padding: 8px 0 8px;
    background: rgba(247, 244, 239, 0.94);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}
.gallery-nav {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
}
.gallery-nav a {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border-radius: 999px;
    background: var(--card);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    color: var(--text);
    font-size: 0.95rem;
    white-space: nowrap;
    transition: transform 0.2s ease, color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.gallery-nav a:hover {
    color: var(--gold);
    transform: translateY(-1px);
}
.gallery-nav a.is-active {
    background: rgba(171, 128, 86, 0.12);
    border-color: rgba(171, 128, 86, 0.42);
    color: var(--gold);
}
.gallery-section {
    padding: 18px 0 10px;
}
.gallery-heading {
    margin-bottom: 18px;
}
.gallery-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.gallery-card {
    display: block;
    background: var(--card);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}
.gallery-card img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    background: #fff;
}
.gallery-card-label {
    display: block;
    padding: 12px 14px 14px;
    color: var(--text-soft);
    font-size: 0.95rem;
}
.lightbox-open {
    overflow: hidden;
}
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(16, 12, 9, 0.88);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    z-index: 100;
}
.lightbox.is-open {
    display: flex;
}
.lightbox-figure {
    max-width: min(92vw, 1100px);
    max-height: 88vh;
    text-align: center;
}
.lightbox-figure img {
    max-width: 100%;
    max-height: 78vh;
    object-fit: contain;
    border-radius: 18px;
    background: #fff;
}
.lightbox-figure figcaption {
    margin-top: 12px;
    color: rgba(255,255,255,0.9);
}
.lightbox-close,
.lightbox-nav {
    position: absolute;
    border: 0;
    border-radius: 999px;
    background: rgba(255,255,255,0.14);
    color: #fff;
    cursor: pointer;
}
.lightbox-close {
    top: 18px;
    right: 18px;
    width: 44px;
    height: 44px;
    font-size: 1.8rem;
    line-height: 1;
}
.lightbox-nav {
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    font-size: 2rem;
    line-height: 1;
}
.lightbox-prev { left: 18px; }
.lightbox-next { right: 18px; }

@media (min-width: 860px) {
    .gallery-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .page-hero {
        padding: 20px 0 8px;
    }
    .gallery-nav-section {
        top: 46px;
    }
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .gallery-card-label {
        font-size: 0.92rem;
    }
    .lightbox {
        padding: 18px 10px;
    }
    .lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 1.6rem;
    }
    .lightbox-prev { left: 8px; }
    .lightbox-next { right: 8px; }
    .lightbox-close {
        top: 10px;
        right: 10px;
    }
}

@media (max-width: 640px) {
    .client-account-text { display: none; }
    .client-account-link { padding: 8px 10px; }
    .client-account-icon { width: 32px; height: 32px; }
}
