﻿/* ------------------------
    SITE.MASTER - PAGE HERO
    ------------------------ */

.page-hero {
    position: relative;
}

.page-hero--photo {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-size: cover;
    background-position: center;
}

.page-hero--photo::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 12, 0.55);
    pointer-events: none;
}

/* the cookie banner sits on top of everything (z-index:9999, see .cookie__panel) so it's
   never hidden behind the hero — but on a hero with enough content to reach the bottom of
   the viewport (eyebrow + title + text + CTA, e.g. dutyfreeops.aspx), that put the banner
   right over the CTA button and swallowed its clicks. Reserve space matching the banner's
   height while it's still showing so hero content never renders underneath it. */
body:has(.cookie__panel:not(.cookie__panel-hide)) .page-hero--photo {
    padding-bottom: 15rem;
}

.page-hero--photo header {
    position: relative;
    z-index: 1;
}

/* header's z-index:1 above normally creates its own stacking context, which traps
   .nav__menu's z-index:9996 inside it — that trapped value can never outrank the
   sibling .page-hero__content (also z-index:1, later in DOM order so it wins ties).
   Lift header above it while the mobile menu is open so the nav overlay isn't painted
   under the hero title/eyebrow text. */
.page-hero--photo:has(#nav__toggle:checked) header {
    z-index: 9998;
}

.page-hero--photo .nav__bar::after {
    display: none;
}

.page-hero__content {
    position: relative;
    z-index: 1;
}

.page-hero--photo .page-hero__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem 1.5rem 4rem 1.5rem;
    color: var(--heroText);
}

/* --------------------
    SITE.MASTER - MENU
    ------------------- */

header {
    background-color: #f4f4f5;
}

.page-hero--photo header {
    background-color: transparent;
}

.nav__bar {
    position: relative;
    max-width: 1200px;
    margin: auto;
}

.nav__bar::after {
    content: '';
    display: block;
    height: 0.75rem;
    width: 100vw;
    max-width: 1200px;
    background: linear-gradient(transparent, var(--logoBlue));
}

.nav__header {
    display: grid;
    grid-template-columns: 1fr 2fr;
    grid-template-rows: repeat(1fr);
    grid-template-areas: 
        "header_left header_right"
        "header_left header_center";
}

.nav__logo-ctn {
    display: flex;
    justify-content: center;
    align-items: center;
    grid-area: header_left;
}

.nav__logo {
    width: 75%;
    max-width: 14rem;
    margin: 1rem;
}

.nav__slogan-ctn {
    display: none;
    justify-content: center;
    align-items: center;
    text-align: center;
    grid-area: header_center;
}

.nav__slogan {
    position: relative;
    font-size: calc(12px + 100vw / 70);
    font-weight: 600;
    color: var(--logoBlue);
}

.nav__slogan::after {
    content: '';
    position: absolute;
    top: 0.5rem;
    left: 0;
    height: 80%;
    width: 100%;
    background: var(--logoOrange);
    opacity: 0.15;
    z-index: -1;
}

.nav__button-ctn {
    grid-area: header_right;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
    /* leaves room so the icons sit to the left of the hamburger (below) instead of
       being covered by it — both used to sit fixed at the exact same top-right corner.
       The hamburger itself occupies 3.1rem from the edge (right: 1rem + width: 2.1rem),
       so this needs to clear that by a visible margin, not just barely exceed it. */
    padding-right: 4rem;
    /* on mobile this row sits alone at the top of its own grid row (unlike desktop,
       where it's vertically centered against the logo in a single flex row), so it
       needs its own top spacing to match the logo's margin instead of hugging the
       very top edge of the header */
    padding-top: 1rem;
}

.icon-stack {
    position: relative;
    display: inline-block;
    width: 2.1rem;
    height: 2.1rem;
    flex-shrink: 0;
}

.nav__mail-closed,
.nav__mail-open,
.admin__button,
.admin__login {
    position: absolute;
    top: 0;
    left: 0;
    width: 2.1rem;
    transition: all 300ms ease-in-out;
}

.nav__mobile {
    width: 2.1rem;
    transition: all 300ms ease-in-out;
    flex-shrink: 0;
}

.nav__mobile:hover {
    animation: ease 50ms translate_x10 infinite;
}

@keyframes translate_x10 {
    0% { transform: translateX(1px); }
    50% { transform: translateX(-1px); }
    100% { transform: translateX(0); }
}

.nav__mail-open {
    opacity: 0;
}

.nav__mail-open:hover {
    opacity: 1;
}

.admin__login {
    opacity: 0;
}

.admin__login:hover {
    opacity: 1;
}

.nav__menu {
    position: fixed;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    top:0;
    height: 100%;
    width: 100vw;
    background-color: var(--menuBackground);
    margin: 0;
    padding: 2rem 0;
    /* safety net if the link list ever gets taller than the screen (e.g. a small phone
       in landscape) — the menu itself scrolls instead of the page underneath */
    overflow-y: auto;
    transition: all 500ms ease-in-out;
    transform: translateX(-100%);
    z-index: 9996;
}

/* the menu is a full-screen overlay, so the page behind it shouldn't scroll while it's
   open — otherwise its own content (hero title, footer) shows through and the page
   scrollbar fights with the menu, both of which happened before this rule existed */
body:has(#nav__toggle:checked) {
    overflow: hidden;
}

.nav__links {
    display: block;
    padding: 1rem;
    text-decoration: none;
    text-transform: uppercase;
    color: var(--logoOrange);
    font-size: 1.3rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    border-top: 1px solid var(--logoOrange);
    width: 100%;
    text-align: center;
    opacity: 0;
    transform: translateX(-1rem);
    transition: 250ms ease-in;
}

.nav__links:last-child {
    border-bottom: 1px solid var(--logoOrange);
}

.nav__links.appear {
    opacity: 1;
    transform: translateX(0);
}

.nav__links1 {
    transition-delay: 100ms;
}

.nav__links2 {
    transition-delay: 200ms;
}

.nav__links3 {
    transition-delay: 300ms;
}

.nav__links4 {
    transition-delay: 400ms;
}

.nav__links5 {
    transition-delay: 500ms;
}

.nav__links6 {
    transition-delay: 600ms;
}

.nav__links7 {
    transition-delay: 700ms;
}

.nav__links:hover {
    color: var(--logoSilver);
}

.nav__bar input[type=checkbox] {
    display: none;
}

.nav__toggle {
    /* anchored to .nav__bar (which is position:relative) instead of the viewport, so it
       scrolls away with the rest of the header instead of floating over the page forever */
    position: absolute;
    top: 1.125rem;
    right: 1rem;
    /* fixed equal width/height (instead of padding sized off the icon) so the button is
       always a true square regardless of the icon's own box — matches .icon-stack's
       2.1rem so it lines up with the mail/mobile/login icons beside it */
    width: 2.1rem;
    height: 2.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    /* same black-fill / orange-border language as the mail/mobile/login icons next to it,
       so the button reads as one family instead of a bare, contextually-recolored icon */
    background-color: var(--heroBackground);
    border: 1px solid var(--logoOrange);
    border-radius: 0.5rem;
    z-index: 9997;
    transition: border-color 300ms ease;
}

.nav__toggle:hover {
    border-color: var(--logoOrangeHov);
}

.nav__icon,
.nav__icon::before,
.nav__icon::after {
    content: '';
    display: block;
    /* same orange as the icon strokes beside it; the button now carries its own dark
       background, so the bars no longer need to change with the page behind them */
    background-color: var(--logoOrange);
    height: 1px;
    width: 1.5rem;
    position: relative;
}

.nav__icon::before,
.nav__icon::after {
    position: absolute;
}

.nav__icon::before {
    transform: translateY(8px);
}

.nav__icon::after {
    transform: translateY(-8px);
}

.nav__toggle:checked ~ .nav__menu {
    transform: translateX(0%);
}

.nav__toggle:checked ~ .nav__toggle {
    transition-delay: 300ms;
}

.nav__toggle:checked ~ .nav__toggle .nav__icon {
    background-color: transparent;
}

.nav__toggle:checked ~ .nav__toggle .nav__icon::before,
.nav__toggle:checked ~ .nav__toggle .nav__icon::after {
    height: 1px;
    width: 1.65rem;
}

.nav__toggle:checked ~ .nav__toggle .nav__icon::before {
    animation: ease 750ms translate_rotate1 forwards;
}

.nav__toggle:not(:checked) ~ .nav__toggle .nav__icon::before {
    animation: ease 750ms rotate_translate1 forwards;
}

.nav__toggle:checked ~ .nav__toggle .nav__icon::after {
    animation: ease 750ms translate_rotate2 forwards;
}

.nav__toggle:not(:checked) ~ .nav__toggle .nav__icon::after {
    animation: ease 750ms rotate_translate2 forwards;
}

@keyframes translate_rotate1 {
    0% {
        transform: translateY(8px);
      }
      50% {
        transform: rotate(0);
      }
      100% {
        transform: rotate(45deg);
      }
}

@keyframes translate_rotate2 {
    0% {
        transform: translateY(-8px);
      }
      50% {
        transform: rotate(0);
      }
      100% {
        transform: rotate(-45deg);
      }
}

@keyframes rotate_translate1 {
    0% {
        transform: rotate(-45deg);
      }
      50% {
        transform: rotate(0);
      }
      100% {
        transform: translateY(-8px);
      }
}

@keyframes rotate_translate2 {
    0% {
        transform: rotate(45deg);
      }
      50% {
        transform: rotate(0);
      }
      100% {
        transform: translateY(8px);
      }
}

@media screen and (min-width: 1200px) {
    .nav__toggle {
        display: none;
    }

    .nav__bar {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        padding: 0.5rem 0;
    }

    .nav__bar::after {
        flex-basis: 100%;
    }

    .nav__header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex: 1;
    }

    .nav__logo-ctn {
        flex-shrink: 0;
    }

    .nav__logo-ctn .nav__logo {
        width: 10rem;
    }

    .nav__button-ctn {
        position: relative;
        top: auto;
        right: auto;
        display: flex;
        align-items: center;
        gap: 1.25rem;
        padding-top: 0;
    }

    .nav__menu {
        position: static;
        transform: none;
        display: flex;
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
        width: auto;
        height: auto;
        background-color: transparent;
        margin-left: 2rem;
        margin-top: 0;
        padding: 0;
        flex-shrink: 0;
    }

    .nav__menu > .nav__logo {
        display: none;
    }

    .nav__links,
    .nav__links:last-child {
        position: relative;
        border: none;
    }

    .nav__links {
        width: auto;
        white-space: nowrap;
        padding: 0.5rem 0.65rem;
        font-size: 0.95rem;
        font-weight: 300;
        letter-spacing: 0.06em;
        transition: 50ms ease-in;
        text-transform: inherit;
    }

    .nav__links:before {
        content: '';
        height: 1px;
        background: var(--logoOrange);
        position: absolute;
        top: 0.15rem;
        left: 0.65rem;
        right: 0.65rem;
        transform: scaleX(0);
        transform-origin: right;
        transition: transform ease-in-out 300ms;
    }

    .nav__links:hover:before {
        transform: scaleX(1);
        transform-origin: left;
    }
}

/* ----------------------
    SITE.MASTER - FOOTER
    --------------------- */

footer {
    background-color: var(--heroBackground);
    display: flex;
    justify-content: center;
    width: 100vw;
}

.foot__container {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: repeat(4, auto);
    grid-template-areas: "foot_l" "foot_cl" "foot_cr" "foot_r";
    max-width: 1200px;
    padding: 3rem 1.5rem;
    gap: 2rem;
}

.foot__nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
}

.foot__menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    grid-area: foot_l;
}

.foot__opening {
    display: flex;
    flex-direction: column;
    align-items: center;
    grid-area: foot_cl;
}

.foot__opening-hours {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--menuText);
}

.foot__subscribe {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 2rem;
    grid-area: foot_cr;
}

.foot__subscribe-text {
    text-align: justify;
    color: var(--menuText);
}

.foot__subscribe-input {
    width: 100%;
    padding: 0.5rem 0;
    display: flex;
    flex-direction: row;
}

#TextBox_Subscribe {
    font-size: 0.9rem;
    height: 2.42rem;
    margin-right: 0.5rem;
    color: var(--menuText);
    border: 1px solid var(--logoSilver);
    outline: none;
    background-color: transparent;
    transition: all 300ms ease-in-out;
}

#TextBox_Subscribe:focus,
#TextBox_Subscribe:hover {
    border: 1px solid var(--logoOrange);
}

.foot__map {
    grid-area: foot_r;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.foot__map-img {
    padding: 0 2rem 1rem 2rem;
    width: 100%;
    height: 220px;
    filter: grayscale(1) contrast(1.1) brightness(0.9);
    transition: filter 300ms ease-in-out;
}

.foot__map-img:hover {
    filter: none;
}

.foot__title {
    margin: 0 0 1rem 0;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--logoSilver);
}

.foot__menu {
    margin: 0;
    padding: 0;
}

.foot__links {
    text-decoration: none;
    color: var(--menuText);
    transition: all 200ms ease-in-out;
}

.foot__links:hover {
    text-decoration: underline;
    color: var(--logoSilver);
}

.foot__bottom {
    display: block;
    text-align: center;
    color: var(--logoSilver);
    padding: 1rem 0;
    background-color: var(--heroBackground);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.foot__bottom .foot__links {
    color: var(--logoSilver);
}

@media screen and (min-width: 740px) {
    .foot__container {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 2fr;
        grid-template-areas: "foot_l foot_cl" "foot_cr foot_r";
    }
}

@media screen and (min-width: 1200px) {
    .foot__container {
        grid-template-columns: 1fr 2fr 2fr 2fr;
        grid-template-rows: 1fr;
        grid-template-areas: "foot_l foot_cl foot_cr foot_r";
    }

    .foot__menu {
        align-items: flex-start;
    }

    .foot__opening-hours {
        align-items: flex-start;
    }
}

/*  --------------
    COOKIE WARNING
    -------------- */

.cookie__panel {
    position: sticky;
    bottom: 0;
    width: 100%;
    max-width: 1200px;
    margin: auto;
    height: 15rem;
    background-color: var(--cookieWarning);
    display: flex;
    justify-content: center;
    transition: 250ms ease;
    /* on a photo-hero page, .page-hero__content (z-index:1) spans the full viewport
       height and otherwise paints — and captures clicks — above this panel, since a
       sticky element with no z-index of its own still only stacks at level 0. Sit
       above everything, including an open mobile menu, so the panel is never covered
       and its button always receives clicks. */
    z-index: 9999;
}

.cookie__panel-hide {
    transform: translateY(100%);
}

.cookie__label,
.cookie__buttons,
.cookie__ReadMore {
    position: absolute;
}

.cookie__label {
    width: 21rem;
    height: 10rem;
    color: var(--menuText);
    text-align: justify;
    padding: 1rem;
}

.cookie__ReadMore {
    color: var(--menuText);
    bottom: 4rem;
    text-decoration: none;
}

.cookie__ReadMore:hover {
    text-decoration: underline;
    color: var(--logoSilver);
}

.cookie__buttons {
    left: 50%;
    bottom: 1rem;
    width: max-content;
    max-width: calc(100vw - 2rem);
    transform: translateX(-50%);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.cookie__button {
    width: auto;
    min-width: 9rem;
    border: none;
    cursor: pointer;
    font: inherit;
    text-decoration: none;
    text-transform: uppercase;
    text-align: center;
    padding: 0.5rem 1.5rem;
    /* same gradient treatment as the site's primary .button (e.g. ENVOYER, Discuter
       d'un projet) so every button on the site reads as one consistent family */
    background-image: linear-gradient(135deg, var(--logoOrange) 0%, var(--logoBlue) 100%);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
    color: var(--menuText);
    font-weight: 600;
    transition: transform 150ms ease, box-shadow 250ms ease, filter 250ms ease;
}

.cookie__button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
    filter: brightness(1.08) saturate(1.1);
}

/* same size/weight as .cookie__button (accept) so declining is just as easy and
   just as visible — only the fill changes, to a plain outline */
.cookie__button--secondary {
    background-image: none;
    background-color: transparent;
    border: 2px solid var(--menuText);
    box-shadow: none;
}

.cookie__button--secondary:hover {
    background-color: rgba(255, 255, 255, 0.15);
    box-shadow: none;
}
