/* --------------- Variables --------------- */

:root {
    --header-height: 60px;

    --black: #515151;
    --light-gray: #F7F8FA;
    --dark-blue: #26315f;
    --accent: var(--dark-blue);

    --footer: #2f3647;
    --footer-dark: #252b38;
    --footer-text: #8a9196;

    --body-font: 'Barlow Semi Condensed', sans-serif;
    --title-font: 'Playfair Display', serif;
    --h3-font: 'Barlow Condensed', sans-serif;
}


/* --------------- Reset --------------- */

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Hauteur de la topbar fixe */
}
html:has(dialog[open]) { overflow: hidden; }
sup { font-size: 75%; line-height: 0; position: relative; vertical-align: baseline; top: -.5em; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; }


/* --------------- Commun --------------- */

body {
    font-size: 17px;
    font-family: var(--body-font);
    font-weight: 300;
    line-height: 1.37;
    color: var(--black);
    padding: 0;
    margin: 0;
    position: relative;
    text-align: justify;
    background: #fff;
}

h1, h2, h3 {
    margin: 0;
    line-height: 1.1;
    text-align: left;
    font-family: var(--title-font);
    color: var(--dark-blue);
    font-weight: 400;
}

h1 {
    font-size: 64px;
    margin-top: 45px;
    margin-bottom: 28px;
    position: relative;

    &.title-with-shadow { margin-bottom: 134px; }

    .shadow {
        position: absolute;
        left: -137px;
        opacity: 0.04;
        font-size: 96px;
        bottom: -75px;
        white-space: nowrap;
    }
}

h2 {
    font-size: 48px;
    letter-spacing: 0;
    margin-bottom: 36px;
    position: relative;
    padding-bottom: 12px;

    &:after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 2px;
        height: 2.6px;
        width: 65px;
        background: var(--dark-blue);
    }
}

h3 {
    font-family: var(--h3-font);
    font-size: 28px;
    font-weight: 500;
    margin: 24px 0 12px;
}

strong { color: #222; font-size: 24px; font-weight: 400; }

p { margin-top: 10px; margin-bottom: 10px; }

a:not(.button) { color: #000; }

img { max-width: 100%; height: auto; }

ul, ol, li { list-style: none; }
ul, ol { margin: 0; padding: 0; }
li { margin: 0.6em 0; position: relative; margin-left: 1.6em; }
li:before { content: '•'; left: -.8em; position: absolute; }

.max-width,
.max-width-small,
.max-width-large {
    margin-left: auto;
    margin-right: auto;
    padding-left: 40px;
    padding-right: 40px;
}
.max-width { max-width: 960px; }
.max-width-small { max-width: 830px; }
.max-width-large { max-width: 1240px; }
.centered { text-align: justify; text-align-last: center; }

.page {
    overflow: hidden;
    padding-top: var(--header-height);
}


/* --------------- Blocs avec image à gauche / droite --------------- */

.block {
    background: var(--light-gray);
    padding: 45px 56px;
    margin-top: 70px;

    &.left {
        margin-right: 205px;
        .grid { margin-right: -205px; flex-direction: row-reverse; }
    }
    &.right {
        margin-left: 205px;
        .grid { margin-left: -205px; }
    }
    .small-column img { margin-top: 24px; }
}

.grid {
    display: flex;
    margin-left: -24px;
    margin-right: -24px;
    align-items: stretch;

    & > div {
        width: 61.8%;
        box-sizing: border-box;
        margin-left: 24px;
        margin-right: 24px;
    }
    .small-column { width: 38.2%; }
}


/* --------------- Boutons --------------- */

.button {
    display: inline-block;
    background: var(--dark-blue);
    box-sizing: border-box;
    text-decoration: none;
    padding: 12px 40px;
    margin-top: 1em;
    color: #fff;
    font-family: inherit;
    font-size: 14.8px;
    font-weight: 500;
    line-height: 1.2;
    transition: all 0.2s ease-out;
    cursor: pointer;
    border: 2px solid var(--dark-blue);

    &:hover { background: transparent; color: var(--dark-blue); }

    &.small {
        border-radius: 3px;
        padding: 6px 28px;
        font-size: 13px;
        letter-spacing: 0.4px;
    }
}


/* --------------- Topbar --------------- */

.topbar {
    background: #fff;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 101;
    transition: all 0.2s ease-out;
    box-shadow: 0 0 7px -3px rgba(0, 0, 0, 0);
    text-align: left;

    .max-width-large { display: flex; }
    .logo { opacity: 0; }

    &.small {
        box-shadow: 0 0 7px -3px rgba(0, 0, 0, 0.5);
        .logo { opacity: 1; margin-left: 0; }
        .menu { font-size: 24px; }
    }
}

.logo {
    padding: 7px 20px 7px 0;
    transition: all 0.2s ease-out;
    font-size: 18px;
    font-family: var(--title-font);
    color: var(--dark-blue);
    display: flex;
    align-items: center;
    margin-left: -120px;
    line-height: 18px;
    cursor: pointer;

    img { width: 38px; padding-right: 8px; }
}

.menu {
    font-size: 28px;
    font-family: var(--title-font);
    color: var(--dark-blue);
    line-height: 1.2;
    flex-grow: 1;
    text-align: right;

    a {
        display: inline-block;
        padding: 16px 24px;
        position: relative;
        transition: all 0.2s ease-out;
        color: var(--dark-blue);

        &:hover { color: #777; }
        &:last-child { padding-right: 0; }
    }
}

.menu-bars {
    color: var(--black);
    letter-spacing: 1.5px;
    font-size: 14px;
    font-weight: 700;
    padding: 0 20px;
    display: none;
    align-items: center;
    gap: 6px;
    position: relative;
    z-index: 101;
    margin-right: -20px;

    img { height: 28px; width: auto; display: block; }
}


/* --------------- Menu mobile --------------- */

.mobile-menu {
    position: fixed;
    left: 0;
    right: 0;
    top: -100%;
    background: #fff;
    text-align: center;
    height: 100%;
    overflow: auto;
    z-index: 200;
    transform: scale(0);
    opacity: 0;
    box-sizing: border-box;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;

    &.opened {
        top: 0;
        transform: scale(1);
        opacity: 1;
        transition: transform 0.2s ease-out, opacity 0.2s ease-out;
    }

    .logo {
        padding: 10px 20px;
        display: block;
        margin: 0 auto 40px;
        font-size: 32px;
        text-align: center;
        line-height: 30px;

        img { width: 54px; margin: 0 auto 10px; padding: 0; display: block; }
    }

    .menu {
        margin: 0 auto;
        padding: 0 0 20px;
        max-width: 380px;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;

        a {
            padding-top: 12px;
            padding-bottom: 12px;
            font-size: 32px;

            &:last-child { padding-right: 24px; }
        }
    }

    .coordonnees {
        padding: 20px 0;
        opacity: .65;
        text-align: center;

        a { text-decoration: none; }
    }
}

.menu-close {
    padding: 11px 21px;
    position: absolute;
    top: 0;
    right: 0;
    z-index: 2;

    img { height: 32px; width: auto; display: block; }
}


/* --------------- Contenu --------------- */

.bandeau-accueil img { display: block; }

.evenements {
    margin: 30px auto;
    text-align: left;

    li { border-bottom: 1px solid rgba(0, 0, 0, 0.05); margin: 0; display: flex; padding: 12px 0; align-items: center; }
    li:before { display: none; }
    .date { opacity: 0.4; padding-right: 15px; text-align: center; }
    .day { font-size: 32px; line-height: 30px; }
    .month { font-weight: 500; text-transform: uppercase; }
}

.adresse {
    padding: 1px 27px;
    border-left: 3px solid #ddd;
    cursor: pointer;
    margin: 20px 0;
}

.map-iframe {
    background: var(--light-gray);
    margin-top: 60px;

    iframe { border: 0; width: 100%; display: block; }
}
/* Désactive le zoom molette sur la carte tant qu'on n'a pas cliqué dessus */
.scrolloff { pointer-events: none; }


/* --------------- Popups --------------- */

.popup {
    border: 0;
    padding: 0;
    width: 90%;
    max-width: 960px;
    max-height: 95%;
    box-sizing: border-box;
    background: #fff;
    color: var(--black);

    &::backdrop { background: rgba(0, 0, 0, 0.8); }

    h2 { margin-top: 20px; }
}

.popup-content {
    padding: 25px 40px 40px;

    &:focus { outline: none; }
}

.popup-close {
    position: sticky;
    top: 0;
    float: right;
    margin-right: -25px;
    width: 32px;
    line-height: 32px;
    font-size: 28px;
    text-align: center;
    background: rgba(255, 255, 255, 0.8);
    color: #000;
}


/* --------------- Footer --------------- */

.footer {
    background: var(--footer);
    padding-bottom: 60px;

    &, p, a, h3 { color: var(--footer-text); }

    a {
        text-decoration: none;
        transition: .1s ease-out color;

        &:hover { color: #fff; }
    }

    h3 {
        border-bottom: 1px solid rgba(255, 255, 255, .05);
        padding: 0 0 10px;
        margin: 28px 0 2px;
        color: rgba(255, 255, 255, .9);
        display: inline-block;
        letter-spacing: 2px;
        font-weight: 500;
    }

}

.footer-line {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--footer-dark);
    padding: 11px 40px;
    text-align: center;
    font-size: 13.8px;

    &, a { color: var(--footer-text); }

    a {
        text-decoration: none;
        transition: .2s ease-out color;

        &:hover { color: #fff; }
    }
}


/* --------------- Responsive --------------- */

@media (max-width: 1090px) {
    .max-width, .max-width-large, .max-width-small { padding-left: 20px; padding-right: 20px; }
    .menu a { padding-left: 12px; padding-right: 12px; }
    .topbar.small .logo { width: 230px; }
}

/* Bascule sur le menu mobile */
@media (max-width: 980px) {
    .topbar .menu { display: none; }
    .topbar .menu-bars { display: flex; }
    .topbar .logo { flex-grow: 1; }

    h1.title-with-shadow { margin-bottom: 104px; margin-top: 10px; }
    .bandeau-accueil { margin-bottom: -20px; }
}

@media (max-width: 780px) {
    h2 { margin-bottom: 16px; }
    .block { padding: 30px; }

    .grid { margin-left: -15px; margin-right: -15px; }
    .grid > div { margin-left: 15px; margin-right: 15px; }
    .block.left .grid { margin-right: -250px; }
    .block.right .grid { margin-left: -250px; }

    .popup-content { padding: 20px 24px 30px; text-align: left; }
    .popup-close { margin-right: -12px; }
}

@media (max-width: 650px) {
    .bandeau-accueil { margin: 0 -20px -50px; }
    .grid {
        display: block;
        margin-left: auto;
        margin-right: auto;

        & > div, .small-column { width: auto; margin-left: auto; margin-right: auto; }
    }
    .block.right, .block.left {
        margin-left: auto;
        margin-right: auto;

        .grid { margin-left: auto; margin-right: auto; }
    }
    .block.reservations {
        &, p, h3 { text-align: center; }
    }
    .small-column img { margin: auto; display: block; width: 100%; height: 220px; object-fit: cover; }
}
