/* Generated by scripts/build-css.py; edit source stylesheets. */
/* assets/stylesheets/components/gallery.css */
.picture-gallery {
    position: relative;
    padding: var(--spacing) 1rem var(--spacing) 0;
    & > h2 {
        display: none;
    }

    .picture-gallery__track {
        display: flex;
        gap: calc(var(--spacing) / 2);
        padding: 4px calc(var(--spacing) / 2);
        user-select: none;
        overflow-x: auto;
        scrollbar-width: none;
        scroll-snap-type: x mandatory;
        overscroll-behavior-x: contain;
    }

    .picture-gallery__photo {
        flex: 0 0 auto;
        scroll-snap-align: center;
        scroll-margin: var(--spacing);
        border-radius: var(--radius);
        cursor: zoom-in;

        &:focus-visible {
            outline: 2px solid var(--on-background-primary);
            outline-offset: 4px;
        }
    }

    picture {
        display: block;
    }

    .picture-gallery__photo img {
        display: block;
        height: 60vh;
        height: 60svh;
        max-height: calc(400rem / 16);
        object-fit: contain;
        border-radius: var(--radius);
    }
}

.picture-gallery .picture-gallery__navigation {
    position: absolute;
    bottom: calc(var(--spacing) + 1rem);
    display: grid;
    place-items: center;
    width: max(44px, 3rem);
    height: max(44px, 3rem);
    padding: 0;
    border-radius: 50%;
    background: #fff;
    color: #182d2c;
    box-shadow: 0 2px 8px rgb(0 0 0 / 20%);
    font-size: 1.5rem;
    cursor: pointer;

    svg,
    svg * {
        color: inherit;
    }

    &[hidden] {
        display: none;
    }
}

.picture-gallery__navigation--previous {
    left: 2rem;

    .lucide-arrow-right {
        transform: rotate(180deg);
    }
}

.picture-gallery__navigation--next {
    right: 2rem;
}

.picture-gallery__viewer {
    --viewer-spacing: clamp(0.5rem, 2vw, var(--spacing));
    color-scheme: dark;
    max-width: calc(100vw - 2 * var(--viewer-spacing));
    max-height: calc(100vh - 2 * var(--viewer-spacing));
    max-height: calc(100dvh - 2 * var(--viewer-spacing));
    padding: calc(var(--viewer-spacing) / 2);
    border: 0;
    border-radius: var(--radius);
    background: var(--background);

    &::backdrop {
        background: rgb(0 0 0 / 75%);
    }

    form {
        display: flex;
        justify-content: flex-end;
        margin-bottom: calc(var(--spacing) / 4);
    }

    .button {
        min-width: 44px;
        min-height: 44px;
        font-family: inherit;
        font-size: inherit;
        cursor: pointer;
    }

    img {
        display: block;
        width: auto;
        height: auto;
        max-width: 100%;
        max-height: calc(100vh - 3 * var(--viewer-spacing) - 4rem);
        max-height: calc(100dvh - 3 * var(--viewer-spacing) - 4rem);
        object-fit: contain;
        border-radius: calc(var(--radius) / 2);
    }
}

:root:has(.picture-gallery__viewer[open]) {
    overflow: hidden;
}

@media (prefers-reduced-motion: no-preference) {
    .picture-gallery__viewer[open] {
        animation: picture-gallery-open 180ms ease-out;
    }

    .picture-gallery__viewer[open]::backdrop {
        animation: picture-gallery-backdrop-open 180ms ease-out;
    }
}

@keyframes picture-gallery-open {
    from {
        opacity: 0;
        transform: translateY(0.5rem) scale(0.96);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes picture-gallery-backdrop-open {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* assets/stylesheets/pages/home.css */
/* assets/stylesheets/base.css */
/* assets/stylesheets/fonts.css */
/* Quicksand, SIL Open Font License: /assets/fonts/OFL-Quicksand.txt */
@font-face {
    font-family: "Quicksand";
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url("/assets/fonts/quicksand-variable.woff2") format("woff2");
}


/* assets/stylesheets/components/header.css */
#main-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    border-bottom: calc(1rem / 16) solid var(--border);

    & > h1,
    & > .brand-title {
        display: none;
    }

    .important-message {
        box-sizing: border-box;
        background: var(--dimmed-background);
        color: var(--on-dimmed-background);
        margin: 0;
        padding: calc(var(--spacing) / 2);
        width: 100%;
        text-align: center;
        white-space: pre-line;
    }

    & > a {
        display: inline;
        height: calc(130rem / 16);
        margin-top: var(--spacing);

        img {
            height: calc(130rem / 16);
            width: auto;
            max-width: 100%;
        }
    }

    nav {
        ul {
            list-style: none;
            margin: 0;
            display: flex;
            flex-direction: row;
            flex-wrap: wrap;
            justify-content: center;
            gap: calc(20rem / 16);
            padding: var(--spacing);
            li {
                a {
                    text-transform: uppercase;
                    text-decoration: none;
                    font-size: calc(18rem / 16);
                    &.active {
                        font-weight: 600;
                        text-decoration: underline 2px;
                        text-underline-position: under;
                    }
                }
            }
        }
    }
}

/* Shared opening widget: the same status and reservation action on both pages. */
.opening-status {
    color-scheme: light dark;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 1rem;
    width: fit-content;
    max-width: 100%;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--background);
    text-align: left;
    a, a:hover {
        text-decoration: none;
    }
}
.opening-status--undated { grid-template-columns: minmax(0, 1fr) auto; }
.opening-status__date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    align-self: stretch;
    min-width: 4rem;
    padding: .5rem;
    border-radius: .5rem;
    background: var(--dimmed-background);
    font-weight: 700;

    span:first-of-type {
        font-size: calc(30rem / 16);
        line-height: calc(30rem / 16);
    }

    span:nth-child(2) {
        font-size: calc(15rem / 16);
        line-height: calc(15rem / 16);
    }
}

.opening-status__summary { display: flex; flex-direction: column;  }
.opening-status__summary strong { font-size: 1.35rem; color: var(--on-background-primary); }
.opening-status__summary > span { font-size: 1.05rem; }
.opening-status__notice { font-size: .85rem; line-height: 1.45; }
.opening-status__calendar { font-size: .95rem; text-underline-offset: .2em; }
.opening-status__booking { font-size: 1rem; }
#main-header a:focus-visible,
footer a:focus-visible,
.opening-status a:focus-visible {
    outline: 3px solid var(--on-background-primary);
    outline-offset: 4px;
}
@media (max-width: 700px) {
    .opening-status { grid-template-columns: auto minmax(0, 1fr); width: 100%; }
    .opening-status--undated { grid-template-columns: minmax(0, 1fr); }
    .opening-status__booking { grid-column: 1 / -1; }
    #main-header nav a { display: inline-block; padding: .5rem .15rem; }
    #main-header nav ul { gap: .25rem 1rem; }
}

header:not(#main-header) > .opening-status {
    margin-top: 2rem;
}

/* assets/stylesheets/components/footer.css */
footer {
    display: grid;
    grid-template-columns: repeat(3, max-content);
    grid-template-rows: auto 1fr;
    grid-template-areas:
        "logo logo logo"
        "phone formules infos"
        "postal formules infos";
    justify-content: center;
    justify-items: stretch;
    padding: var(--spacing);
    padding: calc(2 * var(--spacing));
    gap: var(--spacing) calc(var(--spacing) * 2);
    background: var(--background);
    border-top: calc(1rem / 16) solid var(--border);

    @media screen and (max-width: 768px) {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas: "logo" "formules" "phone" "postal" "infos";
        text-align: center;
    }

    .logo-footer {
        grid-area: logo;
        height: calc(80rem / 16);
        width: auto;
        max-width: 100%;
        justify-self: center;
    }

    h2 {
        display: none;
    }

    section {
        display: contents;
        article {
            display: flex;
            flex-direction: column;
            gap: calc(8rem / 16);

            h3 {
                margin: calc(4rem / 16) 0 0;
                display: flex;
                flex-direction: column;
                font-size: calc(16rem / 16);
            }

            a,
            p {
                font-size: calc(16rem / 16);
                margin: 0;
            }

            ul {
                list-style: none;
                padding: 0;
                margin: 0;
                display: flex;
                flex-direction: column;
                gap: calc(2rem / 16);
                li {
                }
            }

            &.phone {
                grid-area: phone;
            }
            &.formules {
                grid-area: formules;
            }
            &.postal {
                grid-area: postal;
            }
            &.infos {
                grid-area: infos;
            }
        }
    }
}

/* assets/stylesheets/components/button.css */
button, .button {
    appearance: none;
    border: none;
    color-scheme: only dark;
    display: block;
    text-decoration: none;
    font-weight: 600;
    background: var(--background-primary-light);
    color: var(--on-background-primary-light);
    padding: calc(var(--spacing) / 4) calc(var(--spacing) / 3);
    border-radius: calc(var(--radius) / 2);
    transition: background-color 150ms ease, color 150ms ease;
    text-align: center;
    &:hover {
        background: var(--background-primary);
        color: var(--on-background-primary);
        text-decoration: none;
    }
}


:root {
    color-scheme: light dark;
    --rounded-corner: calc(8rem / 16);
    --inner-rounded-corner: calc(6rem / 16);

    --background: light-dark(#ffffff, #162320);
    --on-background: light-dark(#111c1b, #c3e7e4);
    --on-background-strong: light-dark(#182d2c, #ffffff);

    --background-primary: light-dark(#b4f5d6, #00523e);
    --on-background-primary: light-dark(#00523e, #89eccf);

    --background-primary-light: light-dark(#beffdc, #007957);
    --on-background-primary-light: light-dark(#038162, #ffffff);

    --border: light-dark(#a6c2bc, #437060);

    --dimmed-background: light-dark(#c3e7e4, #304945);
    --on-dimmed-background: light-dark(#111c1b, #c3e7e4);

    --shadow: light-dark(rgba(33, 44, 44, 0.44), rgba(33, 44, 44, 0.44));

    --primary: light-dark(#00523e, #00523e);
    --on-primary: light-dark(#ffffff, #ffffff);
    --secondary: #89eccf;
    --tertiary: #beffdc;
    --spacing: calc(32rem / 16);
    --radius: calc(16rem / 16);

    --picture-gradient: linear-gradient(
        to top,
        var(--primary),
        color-mix(in srgb, var(--primary) 5%, transparent)
    );

    @media (max-width: 657px) {
        font-size: 14px;
        --spacing: calc(24rem / 16);
    }
    scroll-behavior: smooth;
    color: var(--on-background);
}

* {
    box-sizing: border-box;
}

body {
    font-family: "Quicksand", sans-serif;
    font-optical-sizing: auto;
    background: var(--background);
    line-height: 1.4;
    margin: 0;
    text-rendering: optimizeLegibility;
    perspective: 300px;
    transform-origin: center center;
    overflow: auto;
}

body a {
    color: var(--on-background-primary);
    transition: color 150ms ease;
    &:hover {
        color: var(--on-background-primary-light);
    }
}
body a:hover {
    text-decoration: underline;
}

.logo {
    width: 80px;
    height: 80px;
    color: var(--on-background);
}

p,
a {
    font-size: calc(20rem / 16);
}

h2 {
    font-size: calc(32rem / 16);
    margin: 0;
}

picture {
    display: contents;
}

source {
    display: none;
}

h1,
h2,
h3,
strong {
    color: var(--on-background-strong);
}

main {
    background:
        url("/assets/pattern.svg") repeat-x bottom calc(-100rem / 16) center /
            auto calc(720rem / 16),
        var(--background);
    padding-bottom: calc(720rem / 16);
    & > section,
    & > header {
        padding: calc(var(--spacing) * 4) calc(var(--spacing) * 12);

        @media (max-width: 1620px) {
            padding: calc(var(--spacing) * 3) calc(var(--spacing) * 6);
        }
        @media (max-width: 1440px) {
            padding: calc(var(--spacing) * 2) calc(var(--spacing) * 4);
        }
        @media (max-width: 1000px) {
            padding: calc(var(--spacing) * 2);
        }
        @media (max-width: 600px) {
            padding: var(--spacing);
        }
    }
}

/* assets/stylesheets/components/grille-formule.css */
.grille-formules {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    align-items: stretch;
    justify-items: stretch;
    padding: 0;
    gap: var(--spacing);

    .grille-formules__formule:first-of-type {
        grid-row: span 2;
        aspect-ratio: 1 / 1;
    }
    .grille-formules__formule {
        position: relative;
        display: block;
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: 1fr;
        border: 2px solid var(--border);
        padding: 0;
        margin: 0;
        aspect-ratio: 2 / 1;
        border-radius: var(--radius);
        overflow: hidden;
        transform-style: preserve-3d;
        transition: transform 200ms ease;
        transform-origin: center center;
        &:hover {
            transform: scale(calc(1 + (10 / 500)));
        }
        a {
            text-decoration: none;
            color: inherit;
            &::after {
                content: "";
                position: absolute;
                top: 0;
                bottom: 0;
                left: 0;
                right: 0;
            }
        }
        img {
            width: 100%;
            height: 100%;
            aspect-ratio: 2 / 1;
            object-fit: cover;
            grid-column: 1;
            grid-row: 1;
        }
        figcaption {
            grid-column: 1;
            grid-row: 1;
            display: flex;
            flex-direction: column;
            justify-content: end;
            padding: var(--spacing);
            padding-top: 0;
            height: 50%;
            align-self: end;
            color: var(--on-background);
            background: linear-gradient(
                to top,
                var(--background),
                color-mix(in srgb, var(--background) 0%, transparent)
            );
            font-weight: 600;
            font-size: 1rem;
            h3 {
                font-size: 1.3rem;
                margin: 0;
            }
        }
    }
    &.row {
        grid-template-columns: repeat(3, auto);
        .grille-formules__formule {
            grid-row: span 1;
            aspect-ratio: 2 / 1;
        }
    }
}

/* assets/stylesheets/components/avis-visiteur.css */
.avis-visiteur {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: calc(var(--spacing) / 3);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: var(--spacing);
    aspect-ratio: 2 / 1;

    background: var(--background);
    h3 {
        font-size: 1.5rem;
        margin: 0;
    }
    label {
        font-size: 1.2rem;
        margin: 0;
    }
    meter {
        width: 100%;
    }

    blockquote {
        margin: 0;
        display: flex;
        flex-direction: column;

        p {
            width: 100%;
            margin: 0;
            font-size: calc(18rem / 16);
            margin-bottom: calc(var(--spacing) / 3);
            &:last-child {
                margin-bottom: 0;
            }
        }

        details {
            display: flex;
            flex-direction: column;
            gap: calc(var(--spacing) / 3);
        }
    }
}


section > header {
    display: flex;
    flex-direction: column;
    align-items: center;

    h2 {
        font-size: 2.5rem;
    }

    p {
        margin: 0;
        color: var(--on-background-primary);
    }
}

#accueil {
    --cover-image: url("/assets/images/couverture-accueil-1280.webp");
    color-scheme: only dark;
    background:
        var(--picture-gradient),
        var(--cover-image) center / cover;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: var(--spacing);

    h1 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.1; }
    @media (max-width: 700px) {
        --cover-image: url("/assets/images/couverture-accueil-640.webp");
    }
    @media (min-width: 1600px) {
        --cover-image: url("/assets/images/couverture-accueil-1920.webp");
    }

    .slogan {
        font-size: 1.5rem;
        line-height: 1.1;
        font-weight: 900;
    }

    h1,
    p {
        width: 49vw;
        margin: 0;
        color: var(--on-background-strong);
        @media (max-width: 1000px) {
            width: auto;
        }
    }

    p br {
        margin-bottom: 0.5rem;
    }
}

#formules {
    color-scheme: only dark;
    background: var(--background);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: calc(var(--spacing) * 2);
    header p {
        color: var(--tertiary);
    }
}

#lachers-samedi {
    height: calc(700rem / 16);
}

#avis-visiteurs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing);
    background: var(--dimmed-background);
    header {
        grid-column: span 3;
    }
}
