:root {
    --brand-red: #E10600;
    --ink: #111;
    --paper: #fff;
    --soft: #f6f6f6
}

* {
    box-sizing: border-box
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    background: var(--paper);
    color: var(--ink);
    min-height: 100svh;
    display: flex;
    flex-direction: column
}


#horaires {
    margin-bottom: 2em;
}

/* View Transitions (cohérent avec autres pages) */
main {
    view-transition-name: page
}

::view-transition-old(page) {
    animation: page-out .60s ease both;
    transform-origin: 50% 60%
}

::view-transition-new(page) {
    animation: page-in .80s ease both;
    transform-origin: 50% 40%
}

@keyframes page-out {
    from {
        opacity: 1;
        transform: scale(1);
        filter: blur(0)
    }

    to {
        opacity: 0;
        transform: scale(.98);
        filter: blur(2px)
    }
}

@keyframes page-in {
    from {
        opacity: 0;
        transform: scale(1.04);
        filter: blur(6px)
    }

    to {
        opacity: 1;
        transform: scale(1);
        filter: blur(0)
    }
}

.no-vt main {
    transition: opacity .25s ease
}

.no-vt .leaving main {
    opacity: 0
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--paper);
    border-bottom: none;
    backdrop-filter: saturate(120%) blur(2px)
}

.topbar::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 24px;
    pointer-events: none;
    background-image: url('../img/bonhommes_noir.png');
    background-repeat: repeat-x;
    background-position: bottom left;
    margin-bottom: -12px;
    background-size: auto 24px;
}

@media (min-width: 768px) {
    body {
        background:
            url('../img/bonhommes_noir.png') center center / contain no-repeat,
            var(--paper);
    }

    .topbar {
        border-bottom: 1px solid rgba(17, 17, 17, .15);
    }

    .topbar::after {
        display: none;
    }
}

.topbar-inner {
    max-width: 980px;
    margin: 0 auto;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 12px
}

.back {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 999px;
    border: 2px dashed var(--brand-red);
    color: var(--ink);
    text-decoration: none;
    font-weight: 600;
    transition: transform .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease
}

.back:hover {
    transform: translateY(-2px);
    background: var(--brand-red);
    color: #fff;
    box-shadow: 0 10px 22px rgba(225, 6, 0, .18)
}

.brand-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--brand-red)
}

.page {
    max-width: 980px;
    width: min(980px, 92vw);
    margin: 28px auto 48px;
    padding: 0 18px
}

.grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(12, 1fr)
}

.card {
    background: var(--soft);
    border: 2px solid var(--brand-red);
    border-radius: 20px;
    padding: 20px 22px
}

.card p {
    margin: 0 0 12px;
    line-height: 1.6
}

/* Galerie responsive (faux visuels pour l’instant) */
.gallery {
    margin: 18px 0 6px;
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(12, 1fr)
}

.ph {
    grid-column: span 6;
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
    border-radius: 16px;
    border: 2px solid var(--brand-red);
    background: #ddd
}

.ph img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(105%);
    display: block
}

.ph:nth-child(1) {
    grid-column: span 7
}

.ph:nth-child(2) {
    grid-column: span 5
}

.ph:nth-child(3) {
    grid-column: span 5
}

.ph:nth-child(4) {
    grid-column: span 7
}

.ph:nth-child(5) {
    grid-column: span 6;
}

.ph:nth-child(6) {
    grid-column: span 6;
}

.ph:nth-child(7) {
    grid-column: span 6;
}

/* Horaires */
.hours {
    margin-top: 18px;
    display: grid;
    gap: 10px;
    grid-template-columns: 1fr 1fr
}

.hours .block {
    background: var(--paper);
    border: 2px solid var(--brand-red);
    border-radius: 14px;
    padding: 12px 14px
}

.hours h3 {
    margin: 0 0 6px;
    font-size: 16px
}

.cta-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 18px
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 14px;
    border: 2px solid var(--brand-red);
    background: var(--paper);
    color: var(--ink);
    font-weight: 700;
    text-decoration: none;
    transition: transform .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease
}

.btn:hover {
    background: var(--brand-red);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(225, 6, 0, .18)
}

footer {
    margin: 36px 0 26px;
    text-align: center;
    color: #666;
    font-size: 14px
}

@media (max-width:560px) {
    .topbar::after {
        content: none;
    }

    .hours {
        grid-template-columns: 1fr
    }

    .gallery {
        display: flex;
        flex-direction: column;
    }
}
