/**
 * Les Galeries 27 — page du week-end d'inauguration.
 *
 * Se charge après home.css, dont elle reprend les tokens et la scène du hero.
 * Le reste suit les pages du site (src/components/floor-page.tsx) : fond papier,
 * filets fins, étiquettes mono, grands blancs, et l'enseigne ne colore que le
 * texte. Le corps de texte est simplement un peu plus grand que sur le site,
 * pour rester confortable à lire.
 */

:root {
    --paper-warm: #efe9df;
    --line: rgba(29, 29, 27, 0.14);
    --gold-ink: #a8865f;
    --page: min(100% - 2 * clamp(1.25rem, 4vw, 2.5rem), 80rem);
}

.inauguration {
    background: var(--paper);
    color: var(--ink);
    font-size: 1.0625rem;
    font-weight: 300;
    line-height: 1.65;
}

.inauguration p {
    margin: 0;
}

.level-long {
    display: none;
}

.inauguration a {
    color: inherit;
}

.inauguration ::selection {
    background: var(--ink);
    color: var(--paper);
}

.inauguration :focus-visible {
    outline: 2px solid currentColor;
    box-shadow: none;
}

[id] {
    scroll-margin-top: 2.5rem;
}

sup {
    font-size: 0.65em;
    line-height: 0;
}

/* ─────────────────────────  HERO  ───────────────────────── */

.site-top {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1rem;
    width: var(--page);
    margin: 0 auto;
    padding: clamp(1.25rem, 3vh, 2rem) 0;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(247, 244, 238, 0.9);
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

.site-top-end {
    text-align: right;
}

.site-logo {
    display: block;
    width: clamp(5.5rem, 8vw, 7rem);
    height: auto;
    filter: brightness(0) invert(1) drop-shadow(0 2px 16px rgba(0, 0, 0, 0.55));
}

/* Pas d'enseignes ni de pied de page ici : la devanture peut rester dégagée. */
@media (min-width: 901px) {
    .inauguration .hero-veil {
        background:
            linear-gradient(to bottom, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.15) 150px, transparent 260px),
            linear-gradient(to right, rgba(12, 10, 8, 0.85) 0%, rgba(12, 10, 8, 0.66) 34%, rgba(12, 10, 8, 0.14) 58%, transparent 75%),
            linear-gradient(to top, rgba(12, 10, 8, 0.5) 0%, transparent 25%);
    }
}

.hero-say {
    position: relative;
    z-index: 2;
    width: var(--page);
    margin: auto auto 0;
    padding: 2rem 0 clamp(3rem, 9vh, 6rem);
    text-shadow: 0 2px 28px rgba(0, 0, 0, 0.5);
}

.hero-date {
    margin-top: clamp(1.75rem, 4vh, 2.75rem) !important;
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 2.6vw, 2.1rem);
    font-weight: 400;
    line-height: 1.2;
    color: var(--paper);
}

.hero-lead {
    max-width: 44ch;
    margin-top: clamp(1rem, 2vh, 1.5rem) !important;
    font-size: clamp(1rem, 1.3vw, 1.125rem);
    line-height: 1.65;
    color: rgba(247, 244, 238, 0.92);
}

.hero-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: clamp(2rem, 5vh, 3.25rem);
}

/* ─────────────────────────  COMMUNS  ───────────────────────── */

.cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    min-height: 3.25rem;
    padding: 0.85rem 1.75rem;
    border: 1px solid transparent;
    font-family: var(--font-mono);
    font-size: 11px;
    line-height: 1.5;
    letter-spacing: 0.22em;
    text-align: center;
    text-transform: uppercase;
    text-decoration: none;
    text-shadow: none;
    transition: transform 0.5s var(--ease-silk);
}

.cta:hover,
.cta:focus-visible {
    transform: translateY(-2px);
}

.inauguration .cta-paper {
    background: var(--paper);
    color: var(--ink);
}

.inauguration .cta-ghost {
    border-color: rgba(247, 244, 238, 0.5);
    color: var(--paper);
}

.inauguration .cta-accent {
    background: var(--accent);
    color: var(--paper);
}

.inauguration .cta-ink {
    flex-shrink: 0;
    background: var(--ink);
    color: var(--paper);
}

.text-link {
    align-self: flex-start;
    padding-bottom: 0.2rem;
    border-bottom: 1px solid currentColor;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    text-decoration: none;
}

.label {
    display: inline-block;
    padding-top: 1rem;
    border-top: 1px solid currentColor;
    font-family: var(--font-mono);
    font-size: 11px;
    line-height: 1.5;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: rgba(29, 29, 27, 0.72);
}

.inauguration h2 {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 4.6vw, 3.75rem);
    font-weight: 400;
    line-height: 1.04;
    letter-spacing: -0.01em;
}

.inauguration h2 em {
    display: block;
    color: var(--gold-ink);
}

.inauguration h3 {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(2rem, 3vw, 2.5rem);
    font-weight: 400;
    line-height: 1.05;
}

/* ─────────────────────────  SECTIONS  ───────────────────────── */

.section {
    width: var(--page);
    margin: 0 auto;
    padding: clamp(5rem, 12vw, 10rem) 0 0;
}

.section-grid {
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    gap: clamp(2.5rem, 6vw, 6rem);
}

.section-intro {
    position: sticky;
    top: 2.5rem;
    align-self: start;
}

.section-intro h2,
.section-head h2 {
    margin-top: 1.5rem;
}

.section-intro > p:not(.label),
.section-head > p:not(.label) {
    max-width: 24rem;
    margin-top: 1.5rem;
}

.section-head {
    margin-bottom: clamp(3rem, 7vw, 5.5rem);
}

/* ─────────────────────────  ÉTAGES ET LIEUX  ───────────────────────── */

.floor {
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    gap: clamp(2.5rem, 6vw, 6rem);
    color: var(--accent);
}

.floor-level {
    position: sticky;
    top: 2.5rem;
    align-self: start;
    padding-top: clamp(2rem, 4vw, 3.5rem);
    font-family: var(--font-display);
    font-size: clamp(3.5rem, 7vw, 6rem);
    font-weight: 300;
    line-height: 1;
    letter-spacing: -0.02em;
}

.floor-hours {
    display: block;
    margin-top: 0.85rem;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.place {
    padding: clamp(2rem, 4vw, 3.5rem) 0;
    border-top: 1px solid color-mix(in oklab, var(--accent) 20%, transparent);
    color: var(--accent);
}

.place-text {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    min-width: 0;
}

.place-floor {
    font-family: var(--font-mono);
    font-size: 11px;
    line-height: 1.5;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    opacity: 0.75;
}

.place-tagline {
    margin-top: -0.35rem !important;
    font-family: var(--font-display);
    font-size: clamp(1.25rem, 1.8vw, 1.45rem);
    font-style: italic;
    line-height: 1.25;
}

.place-logo {
    display: block;
    width: auto;
    height: 5rem;
    max-width: 8rem;
    margin-bottom: 0.4rem;
    object-fit: contain;
    object-position: left center;
}


.place-text > p:not(.place-tagline) {
    max-width: 36em;
    font-weight: 400;
}

.place ul {
    margin: 0;
    padding-left: 1.15em;
    font-weight: 400;
    line-height: 1.45;
}

.place li + li {
    margin-top: 0.4rem;
}

.place li::marker {
    color: color-mix(in oklab, var(--accent) 60%, transparent);
}

/* ─────────────────────────  EN UN REGARD  ───────────────────────── */

.intro-drawing {
    display: block;
    width: min(100%, 17rem);
    height: auto;
    margin-top: clamp(2rem, 4vw, 3.5rem);
}

.glance {
    margin: 0;
    padding: 0;
    border-bottom: 1px solid var(--line);
    list-style: none;
}

.glance li {
    border-top: 1px solid var(--line);
    color: var(--ink);
}

.glance a {
    display: grid;
    grid-template-columns: 2.75rem 4.5rem minmax(0, 1fr) auto;
    grid-template-areas:
        "level logo name hours"
        "level logo what hours";
    column-gap: 1.25rem;
    align-content: center;
    align-items: center;
    min-height: 6.5rem;
    padding: 1.1rem 0.75rem 1.1rem 0;
    text-decoration: none;
    transition: background-color 0.4s var(--ease-silk), padding-left 0.4s var(--ease-silk);
}

@media (hover: hover) {
    .glance a:hover {
        padding-left: 0.75rem;
        background: var(--paper-warm);
    }
}

.glance-level {
    grid-area: level;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.1em;
}

.glance img {
    grid-area: logo;
    display: block;
    width: 100%;
    height: 3.75rem;
    object-fit: contain;
}

.glance-name {
    grid-area: name;
    align-self: end;
    font-family: var(--font-display);
    font-size: clamp(1.45rem, 2.2vw, 1.85rem);
    line-height: 1.15;
}

.glance-what {
    grid-area: what;
    align-self: start;
    margin-top: 0.15rem;
    font-size: 1rem;
    line-height: 1.4;
}

.glance-hours {
    grid-area: hours;
    justify-self: end;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-align: right;
}

.glance-tag {
    display: inline-block;
    margin-left: 0.85rem;
    padding: 0.1rem 0.6rem;
    border: 1px solid currentColor;
    font-family: var(--font-mono);
    font-size: 10px;
    line-height: 1.6;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    vertical-align: 0.1em;
    white-space: nowrap;
}

/* ─────────────────────────  RÉSERVER  ───────────────────────── */

.tables {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.table {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
    padding: clamp(2rem, 4vw, 3.5rem) clamp(1.5rem, 4vw, 3.5rem) clamp(2rem, 4vw, 3.5rem) 0;
    color: var(--accent);
}

.table + .table {
    padding-left: clamp(1.5rem, 4vw, 3.5rem);
    border-left: 1px solid var(--line);
}

.table-text {
    max-width: 30em;
    font-weight: 400;
}

.table-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: auto;
}

.inauguration .cta-line {
    border-color: color-mix(in oklab, var(--accent) 45%, transparent);
    color: var(--accent);
}

.cta-soon,
.link-soon {
    opacity: 0.6;
}

.cta-soon:hover {
    transform: none;
}

.place-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.75rem;
    margin-top: 0.35rem;
}

.table > :nth-last-child(2) {
    margin-bottom: 1rem;
}

.how {
    max-width: 44em;
    margin-top: clamp(1.75rem, 3vw, 2.5rem) !important;
    font-weight: 400;
    overflow-wrap: anywhere;
}

.how-help {
    margin-top: 0.75rem !important;
}

.how a {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.25em;
}

/* ─────────────────────────  INFOS PRATIQUES  ───────────────────────── */

.section-last {
    padding-bottom: clamp(5rem, 11vw, 9rem);
}

.facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.5rem clamp(1.5rem, 4vw, 4rem);
    margin: clamp(2.5rem, 5vw, 4rem) 0 0;
}

.facts dt {
    margin-bottom: 0.85rem;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: rgba(29, 29, 27, 0.65);
}

.facts dd {
    margin: 0;
    overflow-wrap: anywhere;
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 400;
    line-height: 1.25;
}

.closing {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    margin-top: clamp(3.5rem, 7vw, 6rem);
    padding-top: clamp(2.5rem, 4vw, 3rem);
    border-top: 1px solid var(--line);
}

.closing p {
    max-width: 30em;
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 2.6vw, 2rem);
    font-style: italic;
    font-weight: 400;
    line-height: 1.2;
}

/* ─────────────────────────  PIED DE PAGE  ───────────────────────── */

.footer {
    padding: clamp(4rem, 8vw, 7rem) 0 2.5rem;
    border-top: 1px solid var(--line);
    background: var(--paper-warm);
    font-size: 1rem;
}

.footer-grid,
.footer-end {
    width: var(--page);
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 5fr) minmax(0, 3fr);
    gap: clamp(3rem, 5vw, 4rem);
}

.footer-name {
    margin-bottom: 1.5rem !important;
    font-family: var(--font-display);
    font-size: clamp(2.25rem, 3.5vw, 3rem);
    font-style: italic;
    font-weight: 400;
    line-height: 1;
}

.footer-claim {
    margin-top: 1.25rem !important;
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-style: italic;
}

.footer-label {
    margin-bottom: 1rem !important;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: rgba(29, 29, 27, 0.65);
}

.footer ul {
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--line);
    list-style: none;
}

.footer li {
    border-bottom: 1px solid var(--line);
}

.footer li a {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-height: 3rem;
    padding: 0.4rem 0;
    font-family: var(--font-display);
    font-size: 1.2rem;
    line-height: 1.2;
    text-decoration: none;
}

.footer li a:hover {
    color: var(--gold-ink);
    font-style: italic;
}

.footer li span {
    flex-shrink: 0;
    width: 2rem;
    font-family: var(--font-mono);
    font-size: 11px;
    font-style: normal;
    color: rgba(29, 29, 27, 0.65);
}

.footer-links {
    display: grid;
    align-content: start;
    gap: 0.75rem;
}

.footer-links .footer-label {
    margin-bottom: 0.25rem !important;
}

.footer-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    min-height: 3rem;
    padding: 0 1rem;
    border: 1px solid var(--line);
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    text-decoration: none;
    transition: border-color 0.4s var(--ease-silk);
}

.footer-links a:hover {
    border-color: var(--ink);
}

.footer-end {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.5rem 1.5rem;
    margin-top: clamp(3rem, 6vw, 5rem);
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(29, 29, 27, 0.65);
}

/* ─────────────────────────  CARTE DANS LA PAGE  ───────────────────────── */

.menu {
    width: min(100% - 4rem, 54rem);
    max-width: none;
    height: calc(100dvh - 4rem);
    max-height: none;
    margin: auto;
    padding: 0;
    border: 0;
    background: var(--paper);
    color: var(--accent);
}

.menu[open] {
    display: flex;
    flex-direction: column;
}

.menu::backdrop {
    background: rgba(8, 6, 4, 0.82);
}

.menu-top {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.35rem 0.5rem 0.35rem 1.5rem;
}

.menu-title {
    font-family: var(--font-display);
    font-size: 1.6rem;
    line-height: 1.1;
}

.menu-close {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 3.25rem;
    height: 3.25rem;
    padding: 0;
    border: 0;
    background: none;
    color: var(--ink);
    cursor: pointer;
}

.menu-close svg {
    width: 1.75rem;
    height: 1.75rem;
}

.menu-pdf {
    flex: 1;
    width: 100%;
    min-height: 0;
    border: 0;
}

/* ─────────────────────────  APPARITION AU SCROLL  ───────────────────────── */

.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.9s var(--ease-silk), transform 0.9s var(--ease-silk);
}

.reveal.is-seen {
    opacity: 1;
    transform: none;
}

@media print {
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* ─────────────────────────  RESPONSIVE  ───────────────────────── */

@media (max-width: 1000px) {
    .section-grid,
    .floor {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
    }

    .section-intro,
    .floor-level {
        position: static;
    }

    .section-intro {
        margin-bottom: 3rem;
    }

    .floor-level {
        padding: 2.5rem 0 1.25rem;
        font-size: 3.5rem;
    }

    .facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 640px) {
    .site-top > span:first-child {
        display: none;
    }

    .site-top {
        grid-template-columns: auto 1fr;
    }

    .tables {
        grid-template-columns: minmax(0, 1fr);
    }

    .table,
    .table + .table {
        padding: 2rem 0;
    }

    .table + .table {
        border-top: 1px solid var(--line);
        border-left: none;
    }

    .glance a {
        grid-template-columns: 3.25rem minmax(0, 1fr);
        grid-template-areas:
            "logo name"
            "logo what";
        column-gap: 1rem;
    }

    .glance-level {
        display: none;
    }

    .glance-tag {
        display: table;
        margin: 0.4rem 0 0;
    }

    .glance img {
        height: 3.25rem;
    }


    .closing {
        flex-direction: column;
        align-items: flex-start;
    }

    .facts {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero-links .cta,
    .table .cta,
    .closing .cta {
        width: 100%;
    }

    .hero-links {
        margin-top: 1.75rem;
    }
}

/* ─────────────────────────  MOBILE : LA PRIORITÉ  ───────────────────────── */

/* Barre fixe en bas d'écran : réserver reste à portée de pouce. */
.book-bar {
    display: none;
}

@media (max-width: 1000px) {
    .inauguration {
        -webkit-text-size-adjust: 100%;
        text-size-adjust: 100%;
        -webkit-tap-highlight-color: transparent;
    }

    /* Le tableau des étages passe avant le dessin : c'est lui qu'on vient lire. */
    .intro-drawing {
        display: none;
    }

    .section-intro {
        margin-bottom: 2rem;
    }

    .book-bar {
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 5;
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: calc(3.75rem + env(safe-area-inset-bottom));
        padding: 0.5rem 1rem calc(0.5rem + env(safe-area-inset-bottom));
        background: var(--ink);
        color: var(--paper) !important;
        font-family: var(--font-mono);
        font-size: 13px;
        letter-spacing: 0.12em;
        text-align: center;
        text-decoration: none;
        text-transform: uppercase;
        transform: translateY(100%);
        visibility: hidden;
        transition: transform 0.45s var(--ease-silk), visibility 0.45s;
    }

    .book-bar.is-visible {
        transform: none;
        visibility: visible;
    }
}

@media (max-width: 640px) {
    .section {
        padding-top: 4.5rem;
    }

    .section-last {
        padding-bottom: 4rem;
    }

    .section-head {
        margin-bottom: 2rem;
    }

    .label,
    .facts dt,
    .footer-label,
    .footer-end {
        font-size: 12px;
        letter-spacing: 0.18em;
    }

    .cta,
    .text-link {
        min-height: 3.5rem;
        font-size: 13px;
        letter-spacing: 0.14em;
    }

    .hero-date {
        text-wrap: balance;
    }

    /* Tableau : logo, étage, nom et action tiennent sur une ligne tactile. */
    .glance a {
        grid-template-columns: 3rem minmax(0, 1fr) 1rem;
        grid-template-areas:
            "logo level arrow"
            "logo name arrow"
            "logo what arrow"
            "logo hours arrow";
        column-gap: 0.9rem;
        min-height: 0;
        padding: 1rem 0;
    }

    .glance a::after {
        content: "→";
        grid-area: arrow;
        justify-self: end;
        color: var(--gold-ink);
    }

    .glance .glance-level {
        display: block;
        margin-bottom: 0.15rem;
        font-size: 12px;
        letter-spacing: 0.14em;
        text-transform: uppercase;
        color: rgba(29, 29, 27, 0.65);
    }

    .glance-name {
        font-size: 1.5rem;
    }

    .glance-what {
        font-size: 1rem;
    }

    .glance-tag {
        font-size: 11px;
    }

    .glance-hours {
        justify-self: start;
        margin-top: 0.3rem;
        letter-spacing: 0.04em;
        text-align: left;
    }

    .level-short {
        display: none;
    }

    .level-long {
        display: inline;
    }

    /* Étages et lieux plus compacts : la page se parcourt au pouce. */
    .floor-level {
        padding: 2.5rem 0 1rem;
        font-size: 2.25rem;
        font-weight: 400;
        letter-spacing: -0.01em;
    }

    .floor-hours {
        margin-top: 0.4rem;
    }

    .place {
        padding: 1.5rem 0 2.25rem;
    }


    .place-logo {
        height: 3.25rem;
        margin-bottom: 0;
    }

    .place-text {
        gap: 0.65rem;
    }

    .place li + li {
        margin-top: 0.5rem;
    }

    .place-links {
        flex-direction: column;
    }

    .table-actions {
        width: 100%;
    }

    .text-link {
        display: flex;
        align-self: stretch;
        align-items: center;
        justify-content: center;
        gap: 0.75rem;
        border: 1px solid currentColor;
    }

    .how a,
    .facts a {
        display: inline-block;
        padding: 0.65rem 0;
    }

    .facts {
        gap: 1.5rem;
    }

    .footer {
        padding-bottom: calc(2.5rem + env(safe-area-inset-bottom));
    }
}

@media print {
    .book-bar {
        display: none;
    }
}
