/* Generated by scripts/build-css.py; edit source stylesheets. */
/* assets/stylesheets/pages/formules.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;
        }
    }
}


header#formules {
    --cover-image: url("/assets/images/couverture-formules-1280.webp");
    color-scheme: only dark;
    background:
        var(--picture-gradient),
        var(--cover-image) center / cover;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    @media (max-width: 700px) {
        --cover-image: url("/assets/images/couverture-formules-640.webp");
    }
    @media (min-width: 1600px) {
        --cover-image: url("/assets/images/couverture-formules-1920.webp");
    }
    h1 {
        font-size: 3rem;
        margin: 0;
    }
    p {
        font-size: 1.5rem;
        margin: 0;
        color: var(--on-background-strong);
    }
    nav.nav-menu {
        border: 2px solid var(--on-background-strong);
        padding: calc(var(--spacing) / 6);
        border-radius: calc(var(--spacing) * 2);
        margin-top: calc(var(--spacing) * 2);
        ul {
            list-style: none;
            margin: 0;
            padding: 0;
            display: flex;
            justify-content: center;
            li {
                a {
                    text-decoration: none;
                    display: block;
                    color: inherit;
                    font-weight: 600;
                    transition:
                        color 300ms ease,
                        background 300ms ease;
                    padding: calc(var(--spacing) / 3) calc(var(--spacing) / 2);
                    color: var(--on-background-strong);
                    border-radius: calc(var(--spacing) * 2);
                    &:hover,
                    &:target {
                        background: var(--on-background-strong);
                        color: var(--background);
                    }
                }
            }
        }

        /* Responsive design for smaller screens */
    }
}

@media screen and (max-width: 768px) {
    .nav-menu ul {
        flex-direction: column;
        align-items: center;
    }

    .nav-menu li {
        padding: 0.5rem 0;
    }
}
.pricing-table {
    border-collapse: separate;
    border-spacing: 0;
    td,
    th {
        border: calc(1rem / 16) solid var(--border);
        border-right: none;
        border-bottom: none;
        padding: calc(var(--spacing) / 2);
        line-height: 1.2;
        &.empty {
            border: none;
        }
        &:last-child {
            border-right: calc(1rem / 16) solid var(--border);
        }
    }
    th {
        span {
            font-weight: 400;
            display: block;
        }
    }
    thead {
        th.empty + th {
            border-radius: var(--radius) 0 0 0;
        }
        th:not(.empty) {
            background-color: var(--background-primary);
            color: var(--on-background-primary);
            &:last-of-type {
                border-radius: 0 var(--radius) 0 0;
            }
        }
    }
    tbody {
        tr {
            &:first-of-type th {
                border-radius: var(--radius) 0 0 0;
            }
            &:last-of-type {
                th {
                    border-radius: 0 0 0 var(--radius);
                }
                td,
                th {
                    border-bottom: calc(1rem / 16) solid var(--border);
                }
                td:last-of-type {
                    border-radius: 0 0 var(--radius) 0;
                }
            }
        }

        th {
            background-color: var(--background-primary);
            color: var(--on-background-primary);
            border-right: none;
        }
        td {
            text-align: center;
            font-size: x-large;
            font-weight: 500;
            color: var(--on-background-primary);
            span {
                font-size: medium;
                display: block;
                color: var(--on-background);
                font-weight: 400;
            }
        }
    }
}
.pricing-figure-paragraph {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: var(--spacing);

    .pricing-figure {
        display: inline-block;
        padding: calc(var(--spacing) / 2);
        border-radius: var(--radius);
        margin: 0;
        text-align: center;
        font-size: x-large;
        font-weight: 500;
        color: var(--on-background-primary);
        border: 3px solid var(--on-dimmed-background);
        figcaption {
            font-size: medium;
            display: block;
            color: var(--on-background-primary-light);
            font-weight: 400;
        }
    }
}

main {
    section {
        display: flex;
        flex-direction: column;
        align-items: center;
        h3 {
            font-size: 2rem;
            margin-top: var(--spacing);
            margin-bottom: calc(var(--spacing) / 2);
        }
    }
}

#etang-a-reserver {
    background: var(--dimmed-background);
    color: var(--on-dimmed-background);
}
