/* =========================================================
   Popo Gallery — feuille de style principale
   Palette : crème + sépia + ocre + rouge muleta
   ========================================================= */

/* -------- Tokens ----------------------------------------- */
:root {
    --color-bg:        #f5efe4;
    --color-surface:   #fbf7f0;
    --color-text:      #1a1a1a;
    --color-sepia:     #3d2f1f;
    --color-ocre:      #a3603a;
    --color-muleta:    #a52a2a;
    --color-muted:     #6b5d4a;
    --color-line:      #e6dfd2;

    --font-display: 'Cormorant Garamond', 'Times New Roman', Georgia, serif;
    --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --container:   76rem;
    --gutter:      1.5rem;
    --section-y:   6rem;

    --radius-sm: 2px;
    --radius-md: 4px;

    --shadow-soft: 0 10px 30px rgba(61, 47, 31, 0.08);
    --shadow-lift: 0 20px 50px rgba(61, 47, 31, 0.18);

    --easing: cubic-bezier(0.4, 0, 0.2, 1);
}

/* -------- Reset & base ---------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
img, picture, svg, video { display: block; max-width: 100%; height: auto; }
a { color: var(--color-sepia); text-decoration: none; transition: color 0.2s var(--easing); }
a:hover { color: var(--color-ocre); }
button { font: inherit; cursor: pointer; border: 0; background: none; }
ul, ol { padding: 0; margin: 0; list-style: none; }
h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 500;
    color: var(--color-sepia);
    line-height: 1.15;
    margin: 0 0 0.5em;
}

.screen-reader-text {
    position: absolute !important;
    clip: rect(1px, 1px, 1px, 1px);
    width: 1px; height: 1px;
    overflow: hidden;
    word-wrap: normal !important;
}
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--color-sepia);
    color: var(--color-bg);
    padding: 0.75rem 1rem;
    z-index: 100;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* -------- Layout primitives ----------------------------- */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding-inline: var(--gutter);
}
.section {
    padding-block: var(--section-y);
}
.section__header {
    text-align: center;
    margin-bottom: 3rem;
}
.section__eyebrow {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--color-ocre);
    margin: 0 0 0.75rem;
    font-weight: 500;
}
.section__title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin: 0;
}
.section__lead {
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--color-muted);
    max-width: 50ch;
    margin: 1rem auto 0;
}
.section__empty {
    text-align: center;
    color: var(--color-muted);
    padding: 4rem 0;
}

/* -------- Boutons --------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
    padding: 0.9rem 1.75rem;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-radius: var(--radius-sm);
    transition: all 0.25s var(--easing);
    cursor: pointer;
}
.btn--primary {
    background: var(--color-sepia);
    color: var(--color-bg);
}
.btn--primary:hover {
    background: var(--color-muleta);
    color: var(--color-bg);
    transform: translateY(-1px);
}
.btn--ghost {
    border: 1px solid var(--color-sepia);
    color: var(--color-sepia);
}
.btn--ghost:hover {
    background: var(--color-sepia);
    color: var(--color-bg);
}

/* -------- Header --------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(245, 239, 228, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-line);
}
.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding-block: 1rem;
}
.site-header__brand { display: flex; align-items: center; }
.site-header__logo {
    height: 64px;
    width: auto;
    transition: transform 0.3s var(--easing);
}
.site-header__brand:hover .site-header__logo { transform: scale(1.04); }

.site-header__toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--color-sepia);
    padding: 0.5rem;
}

.site-nav { display: flex; align-items: center; gap: 2rem; }
.site-nav__list {
    display: flex;
    gap: 2rem;
    align-items: center;
}
.site-nav__list a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-sepia);
    letter-spacing: 0.02em;
    position: relative;
    padding-block: 0.25rem;
}
.site-nav__list a::after {
    content: '';
    position: absolute;
    left: 0; right: 0;
    bottom: 0;
    height: 1px;
    background: var(--color-ocre);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s var(--easing);
}
.site-nav__list a:hover::after,
.site-nav__list .current-menu-item a::after { transform: scaleX(1); }

.lang-switcher {
    display: flex;
    gap: 0.5rem;
    padding-left: 1rem;
    border-left: 1px solid var(--color-line);
}
.lang-switcher__item a {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--color-muted);
}
.lang-switcher__item.is-current a { color: var(--color-sepia); }

/* -------- Hero ----------------------------------------- */
.hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}
.hero__media {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.hero__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(245, 239, 228, 0.95) 0%, rgba(245, 239, 228, 0.4) 50%, rgba(61, 47, 31, 0.3) 100%);
    z-index: 1;
}
.hero__content {
    position: relative;
    z-index: 2;
    max-width: 36rem;
    padding-block: 6rem;
}
.hero__eyebrow {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: var(--color-ocre);
    margin: 0 0 1rem;
    font-weight: 500;
}
.hero__title {
    font-size: clamp(3rem, 7vw, 5.5rem);
    margin: 0 0 1.5rem;
    color: var(--color-sepia);
}
.hero__subtitle {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--color-muted);
    margin: 0 0 2rem;
    line-height: 1.4;
}

/* =========================================================
   Pelle-mêle des collections (page d'accueil)
   4 styles : polaroid / bento / mur / stack
   3 densités : compact / normal / aere
   Comportement commun : splay éventail des tableaux au survol.
   ========================================================= */
.section--pelle {
    background: var(--color-surface);
    overflow: hidden; /* contient les rotations/splay qui dépassent */
}

.pelle {
    display: grid;
    gap: var(--pelle-gap, 2rem);
    grid-template-columns: repeat(auto-fill, minmax(var(--pelle-min, 280px), 1fr));
    /* Marge intérieure pour absorber le splay au survol des items en bord. */
    padding: var(--pelle-pad, 2.5rem);
    margin-inline: calc(var(--pelle-pad, 2.5rem) * -1);
}

/* Densités ------------------------------------------------ */
.pelle[data-density="compact"] { --pelle-gap: 1.25rem; --pelle-min: 220px; --pelle-pad: 1.5rem; }
.pelle[data-density="normal"]  { --pelle-gap: 2rem;    --pelle-min: 280px; --pelle-pad: 2.5rem; }
.pelle[data-density="aere"]    { --pelle-gap: 3.5rem;  --pelle-min: 320px; --pelle-pad: 3.5rem; }

/* Item commun --------------------------------------------- */
.pelle__item {
    position: relative;
    display: block;
    color: inherit;
    transition: transform 0.45s var(--easing), z-index 0s linear 0.45s;
    will-change: transform;
}
.pelle__item:hover,
.pelle__item:focus-visible {
    z-index: 5;
    transition: transform 0.45s var(--easing), z-index 0s linear 0s;
    color: inherit;
}
.pelle__cover {
    position: relative;
    overflow: hidden;
    background: var(--color-line);
    aspect-ratio: 4 / 3;
}
.pelle__image {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--easing);
}
.pelle__caption {
    padding: 1rem 0.25rem 0;
    text-align: center;
}
.pelle__title {
    font-size: 1.45rem;
    margin: 0 0 0.15rem;
    color: var(--color-sepia);
}
.pelle__count {
    font-size: 0.78rem;
    color: var(--color-muted);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin: 0;
}

/* Splay (éventail au survol) ------------------------------ */
.pelle__splay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    margin: 0;
    padding: 0;
}
.pelle__splay-item {
    position: absolute;
    top: 0;
    left: 50%;
    width: 70%;
    aspect-ratio: 4 / 3;
    background: var(--color-bg);
    box-shadow: var(--shadow-soft);
    opacity: 0;
    transform: translate(-50%, 0) rotate(0deg) scale(0.85);
    transition:
        transform 0.55s var(--easing),
        opacity 0.4s var(--easing);
}
.pelle__splay-image {
    width: 100%; height: 100%;
    object-fit: cover;
}

/* Animation : on déplace 4 vignettes en éventail autour de la cover. */
.pelle__item:hover .pelle__splay-item,
.pelle__item:focus-visible .pelle__splay-item {
    opacity: 1;
}
.pelle__item:hover .pelle__splay-item:nth-child(1) {
    transform: translate(-110%, 8%) rotate(-12deg) scale(0.78);
    transition-delay: 0.05s;
}
.pelle__item:hover .pelle__splay-item:nth-child(2) {
    transform: translate(10%, 8%) rotate(11deg) scale(0.78);
    transition-delay: 0.1s;
}
.pelle__item:hover .pelle__splay-item:nth-child(3) {
    transform: translate(-145%, -22%) rotate(-22deg) scale(0.62);
    transition-delay: 0.15s;
}
.pelle__item:hover .pelle__splay-item:nth-child(4) {
    transform: translate(45%, -22%) rotate(20deg) scale(0.62);
    transition-delay: 0.2s;
}
.pelle__item:hover .pelle__splay-item:nth-child(5) {
    transform: translate(-50%, -50%) rotate(-3deg) scale(0.7);
    transition-delay: 0.25s;
}

/* -------- Style 1 : Polaroïd ---------------------------- */
.pelle[data-style="polaroid"] .pelle__item {
    transform: rotate(var(--rotation, 0deg));
    background: #fff;
    padding: 0.8rem 0.8rem 1.2rem;
    box-shadow: var(--shadow-soft);
}
.pelle[data-style="polaroid"] .pelle__item:hover {
    transform: rotate(0deg) translateY(-6px) scale(1.04);
    box-shadow: var(--shadow-lift);
}
.pelle[data-style="polaroid"] .pelle__cover {
    aspect-ratio: 1 / 1;
    background: #f3ece0;
}
.pelle[data-style="polaroid"] .pelle__caption {
    padding-top: 0.85rem;
}
.pelle[data-style="polaroid"] .pelle__title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-style: italic;
    font-size: 1.3rem;
}
.pelle[data-style="polaroid"] .pelle__splay-item {
    background: #fff;
    padding: 0.4rem 0.4rem 0.7rem;
}

/* -------- Style 2 : Bento ------------------------------- */
.pelle[data-style="bento"] {
    grid-auto-flow: dense;
    grid-auto-rows: minmax(180px, auto);
}
.pelle[data-style="bento"] .pelle__item {
    background: var(--color-bg);
    border: 1px solid var(--color-line);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.pelle[data-style="bento"] .pelle__cover {
    flex: 1;
    aspect-ratio: auto;
    min-height: 0;
}
.pelle[data-style="bento"] .pelle__caption {
    padding: 1rem 1.25rem 1.25rem;
    text-align: left;
}
.pelle[data-style="bento"] .pelle__item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lift);
}
.pelle[data-style="bento"] .pelle__item:hover .pelle__image {
    transform: scale(1.06);
}
/* Rythme bento : tailles variées via nth-child sur 6 emplacements */
.pelle[data-style="bento"] .pelle__item:nth-child(6n+1) { grid-row: span 2; grid-column: span 2; }
.pelle[data-style="bento"] .pelle__item:nth-child(6n+2) { grid-row: span 1; grid-column: span 1; }
.pelle[data-style="bento"] .pelle__item:nth-child(6n+3) { grid-row: span 2; grid-column: span 1; }
.pelle[data-style="bento"] .pelle__item:nth-child(6n+4) { grid-row: span 1; grid-column: span 2; }
.pelle[data-style="bento"] .pelle__item:nth-child(6n+5) { grid-row: span 1; grid-column: span 1; }
.pelle[data-style="bento"] .pelle__item:nth-child(6n+6) { grid-row: span 2; grid-column: span 1; }

/* -------- Style 3 : Mur d'accrochage -------------------- */
.section--pelle:has(.pelle[data-style="mur"]) {
    background:
        linear-gradient(180deg, rgba(245, 239, 228, 0) 0, rgba(61, 47, 31, 0.06) 100%),
        repeating-linear-gradient(
            45deg,
            rgba(163, 96, 58, 0.04) 0 2px,
            transparent 2px 14px
        ),
        var(--color-surface);
}
.pelle[data-style="mur"] {
    padding-top: 4rem;
}
.pelle[data-style="mur"] .pelle__item {
    background: #fff;
    padding: 0.7rem;
    border: 1px solid var(--color-line);
    box-shadow:
        0 14px 28px rgba(61, 47, 31, 0.18),
        0 4px 8px rgba(61, 47, 31, 0.12);
}
.pelle[data-style="mur"] .pelle__item::before {
    /* Cordon de suspension */
    content: '';
    position: absolute;
    top: -28px;
    left: 50%;
    width: 1px;
    height: 28px;
    background: var(--color-sepia);
    transform: translateX(-50%);
    opacity: 0.6;
}
.pelle[data-style="mur"] .pelle__item::after {
    /* Clou */
    content: '';
    position: absolute;
    top: -32px;
    left: 50%;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #cdb78d, #6b5236);
    transform: translateX(-50%);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}
.pelle[data-style="mur"] .pelle__item:hover {
    transform: translateY(-5px) rotate(-0.4deg);
    box-shadow:
        0 22px 38px rgba(61, 47, 31, 0.28),
        0 6px 12px rgba(61, 47, 31, 0.18);
}
.pelle[data-style="mur"] .pelle__caption {
    padding: 0.85rem 0.5rem 0.25rem;
}

/* -------- Style 4 : Cartes empilées --------------------- */
.pelle[data-style="stack"] .pelle__item {
    background: var(--color-bg);
    border: 1px solid var(--color-line);
    box-shadow: var(--shadow-soft);
    transition: transform 0.55s var(--easing), box-shadow 0.45s var(--easing);
}
.pelle[data-style="stack"] .pelle__item::before,
.pelle[data-style="stack"] .pelle__item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--color-bg);
    border: 1px solid var(--color-line);
    z-index: -1;
    transition: transform 0.55s var(--easing), opacity 0.45s var(--easing);
}
.pelle[data-style="stack"] .pelle__item::before {
    transform: translate(8px, 8px) rotate(2deg);
    opacity: 0.85;
}
.pelle[data-style="stack"] .pelle__item::after {
    transform: translate(16px, 16px) rotate(4deg);
    opacity: 0.6;
}
.pelle[data-style="stack"] .pelle__item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lift);
}
.pelle[data-style="stack"] .pelle__item:hover::before {
    transform: translate(-12px, -10px) rotate(-3deg);
    opacity: 1;
}
.pelle[data-style="stack"] .pelle__item:hover::after {
    transform: translate(-22px, 14px) rotate(-1.5deg);
    opacity: 1;
}
.pelle[data-style="stack"] .pelle__cover {
    aspect-ratio: 4 / 5;
}
.pelle[data-style="stack"] .pelle__caption {
    padding: 1rem 1rem 1.25rem;
}

/* Désactive le splay sur très petit écran (gain perf + lisibilité). */
@media (max-width: 600px) {
    .pelle__splay { display: none; }
    .pelle[data-style="polaroid"] .pelle__item { transform: rotate(0deg); }
}

/* Réduit les animations si l'utilisateur le demande. */
@media (prefers-reduced-motion: reduce) {
    .pelle__item,
    .pelle__splay-item,
    .pelle__image,
    .pelle[data-style="stack"] .pelle__item::before,
    .pelle[data-style="stack"] .pelle__item::after {
        transition: none !important;
    }
    .pelle[data-style="polaroid"] .pelle__item { transform: rotate(0deg); }
}

/* -------- About teaser --------------------------------- */
.section--about__inner {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: center;
}
.section--about__media img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
}
.section--about__text { color: var(--color-muted); margin-bottom: 1.5rem; }
.section--about .section__title { text-align: left; }

/* -------- CTA ------------------------------------------ */
.section--cta {
    background: var(--color-sepia);
    color: var(--color-bg);
    text-align: center;
}
.section--cta .section__title { color: var(--color-bg); }
.section--cta .section__lead { color: rgba(245, 239, 228, 0.8); }
.section--cta .btn--primary {
    background: var(--color-bg);
    color: var(--color-sepia);
    margin-top: 1.5rem;
}
.section--cta .btn--primary:hover { background: var(--color-muleta); color: var(--color-bg); }

/* -------- Archive filters ------------------------------ */
.archive-filters {
    margin-bottom: 3rem;
    border-bottom: 1px solid var(--color-line);
    padding-bottom: 1rem;
}
.archive-filters__list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 2rem;
    justify-content: center;
}
.archive-filters__item a {
    font-size: 0.95rem;
    color: var(--color-muted);
    padding-block: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.archive-filters__item.is-current a { color: var(--color-sepia); border-bottom: 1px solid var(--color-ocre); }

/* -------- Tableau grid (masonry via columns) ----------- */
.tableau-grid {
    column-count: 3;
    column-gap: 2rem;
}
@media (max-width: 900px) { .tableau-grid { column-count: 2; } }
@media (max-width: 600px) { .tableau-grid { column-count: 1; } }

.tableau-card {
    break-inside: avoid;
    margin-bottom: 2.5rem;
    page-break-inside: avoid;
}
.tableau-card__link { display: block; color: inherit; }
.tableau-card__media {
    position: relative;
    overflow: hidden;
    background: var(--color-line);
}
.tableau-card__image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s var(--easing);
}
.tableau-card:hover .tableau-card__image { transform: scale(1.04); }
.tableau-card__image--placeholder { aspect-ratio: 1; background: var(--color-line); }

.tableau-card__body { padding: 1rem 0.25rem; }
.tableau-card__title {
    font-size: 1.35rem;
    margin: 0 0 0.25rem;
    color: var(--color-sepia);
}
.tableau-card__meta {
    margin: 0;
    font-size: 0.85rem;
    color: var(--color-muted);
    letter-spacing: 0.04em;
}
.tableau-card__sep { margin-inline: 0.5rem; }

/* -------- Status badge --------------------------------- */
.status-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.4rem 0.75rem;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.95);
    color: var(--color-sepia);
    backdrop-filter: blur(4px);
}
.status-badge--vendu { background: var(--color-muleta); color: var(--color-bg); }
.status-badge--reserve { background: var(--color-ocre); color: var(--color-bg); }

/* -------- Single tableau ------------------------------- */
.tableau-single { padding-block: 4rem; }
.tableau-single__layout {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 4rem;
    align-items: start;
}
.tableau-single__media {
    position: relative;
    background: var(--color-surface);
    padding: 1rem;
    box-shadow: var(--shadow-soft);
}
.tableau-single__image { width: 100%; height: auto; }
.tableau-single__media .status-badge { top: 2rem; right: 2rem; }

.tableau-single__info { position: sticky; top: 6rem; }
.tableau-single__collection {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--color-ocre);
    margin: 0 0 0.5rem;
    font-weight: 500;
}
.tableau-single__title {
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    margin: 0 0 2rem;
    line-height: 1.1;
}
.tableau-single__specs {
    margin: 0 0 2rem;
    border-top: 1px solid var(--color-line);
}
.tableau-single__spec {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--color-line);
}
.tableau-single__spec dt {
    font-size: 0.85rem;
    color: var(--color-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
    margin: 0;
}
.tableau-single__spec dd {
    margin: 0;
    color: var(--color-sepia);
    font-weight: 500;
    text-align: right;
}
.tableau-single__cta { width: 100%; margin-top: 1rem; }

.tableau-single__description {
    max-width: 50rem;
    margin-block: 4rem;
    font-size: 1.1rem;
    color: var(--color-muted);
    line-height: 1.8;
}
.tableau-single__description p { margin: 0 0 1.25em; }

.tableau-single__artwork,
.tableau-single__ambiance,
.tableau-single__related { margin-block: 5rem; }
.tableau-single__artwork .section__title,
.tableau-single__ambiance .section__title,
.tableau-single__related .section__title {
    font-size: 1.75rem;
    text-align: center;
    margin-bottom: 2.5rem;
}

/* Mono-image : on affiche l'œuvre seule en grand, ratio naturel, encadrée. */
.tableau-single__artwork-figure {
    margin: 0 auto;
    max-width: 60rem;
    background: var(--color-surface);
    padding: 1rem;
    box-shadow: var(--shadow-soft);
}
.tableau-single__artwork-image {
    width: 100%;
    height: auto;
    display: block;
}

/* Multi-images : grille ratio naturel. */
.ambiance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr));
    gap: 1.5rem;
}
.ambiance-grid__item { margin: 0; overflow: hidden; }
.ambiance-grid__image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s var(--easing);
}
.ambiance-grid__item:hover .ambiance-grid__image { transform: scale(1.04); }

/* -------- Page (À propos, Contact) --------------------- */
.page-single__hero {
    height: 50vh;
    overflow: hidden;
}
.page-single__hero-image { width: 100%; height: 100%; object-fit: cover; }
.page-single__content {
    max-width: 48rem;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--color-text);
}
.page-single__content p { margin: 0 0 1.5em; }

/* -------- Load more (infinite scroll) ------------------ */
.load-more {
    margin-top: 4rem;
    text-align: center;
    position: relative;
    min-height: 3rem;
}
.load-more__sentinel {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 1px;
    pointer-events: none;
}
.load-more__btn[disabled],
.load-more__btn.is-loading {
    cursor: progress;
    opacity: 0.6;
}
.load-more__btn.is-loading::after {
    content: "";
    display: inline-block;
    width: 0.75em;
    height: 0.75em;
    margin-left: 0.5em;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: popo-spin 0.6s linear infinite;
    vertical-align: -2px;
}
@keyframes popo-spin {
    to { transform: rotate(360deg); }
}

/* -------- Footer --------------------------------------- */
.site-footer {
    background: var(--color-sepia);
    color: var(--color-bg);
    padding-block: 4rem 2rem;
    margin-top: 6rem;
}
.site-footer__inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 2rem;
}
.site-footer__brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
}
.site-footer__brand img {
    width: 110px;
    height: auto;
    filter: invert(1) sepia(0.2) brightness(1.1);
    opacity: 0.9;
}
.site-footer__tagline {
    font-family: var(--font-display);
    font-size: 1.05rem;
    color: rgba(245, 239, 228, 0.7);
    margin: 0;
}
.site-footer__list {
    display: flex;
    gap: 2rem;
}
.site-footer__list a {
    color: rgba(245, 239, 228, 0.85);
    font-size: 0.9rem;
}
.site-footer__list a:hover { color: var(--color-bg); }
.site-footer__copy {
    text-align: right;
    font-size: 0.85rem;
    color: rgba(245, 239, 228, 0.6);
    margin: 0;
}

/* -------- Responsive ---------------------------------- */
@media (max-width: 900px) {
    .site-header__toggle { display: inline-flex; }
    .site-nav {
        position: absolute;
        top: 100%;
        left: 0; right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        padding: 1.5rem var(--gutter);
        background: var(--color-bg);
        border-bottom: 1px solid var(--color-line);
        transform: translateY(-110%);
        transition: transform 0.35s var(--easing);
    }
    .site-nav.is-open { transform: translateY(0); }
    .site-nav__list {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    .lang-switcher { padding-left: 0; border: 0; }

    .tableau-single__layout { grid-template-columns: 1fr; gap: 2rem; }
    .tableau-single__info { position: static; }

    .section--about__inner { grid-template-columns: 1fr; gap: 2rem; }

    .site-footer__inner { grid-template-columns: 1fr; text-align: center; }
    .site-footer__brand { align-items: center; }
    .site-footer__copy { text-align: center; }
    .site-footer__list { justify-content: center; }
}
