:root {
    --bg-start: #fab15c;
    --bg-end: #139bf0;

    --header-bg: #fd6f15;

    --highlight-fg: #139bf0;
    --highlight-primary: #0c1e2a;
    --highlight-secondary: rgba(0, 87, 186, 0.9);

    /*--fg-color: rgba(255, 255, 255, 0.9);*/
    --fg-color: rgba(0, 0, 0, 0.75);

    --transition: 250ms ease-out;

    --sticky-menu-height: 3em;


}

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}


html {
    color: var(--fg-color);

    font-family: "Oswald", sans-serif;
    font-weight: 200;
    font-size: 18px;

    scroll-padding-top: 7rem;
    scroll-behavior: smooth;

}


body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;

    min-height: 100vh;

    /*padding-top: var(--sticky-menu-height);*/

    height: 100%;

    /* https://cssgradient.io/gradient-backgrounds/ */
    background-image: linear-gradient(to bottom, rgba(73,93,109,1) 4.3%, rgba(49,55,82,1) 96.7% );

}


.logo {
    display: flex;
    align-items: center;
    font-size: 2rem;
}

.logo > img {
    height: 3rem;
    margin-right: 2rem;
}

header {
    display: flex;

    justify-content: space-between;

    padding-left: 1rem;
    text-align: center;
    color: white;
    font-size: 1em;


    /*    overflow: hidden; */
    background-color: var(--header-bg);

    position: fixed; /* Set the navbar to fixed position */
    top: 0; /* Position the navbar at the top of the page */
    width: 100%; /* Full width */

    z-index: 200;


}


a {
    color: var(--fg-color);
    text-decoration: underline;
}

/*** MENU ***/

nav {
    margin: 10px auto;
    width: 40%;
    height: var(--sticky-menu-height);
    /* background: #48435C; */
}

nav > #main-menu {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

nav > #main-menu a {

    padding: 0.25rem 1.25rem;


    transition: color var(--transition), background-color var(--transition);

    display: flex;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    align-items: center;
    justify-content: center;
    height: var(--sticky-menu-height);
    text-decoration: none;
    color: white;
    font-size: 1.1rem;
}

nav > #main-menu a:hover {
    background: var(--highlight-fg);
}

#hamburger, #hamburger-toggle {
    display: none;
}


@media all and (max-width: 991px) {

    .logo {
        display: flex;
      /*  align-items: left; */
        font-size: 1.5rem;
    }

    .logo > img {
        height: 1.5rem;
        margin-right: 0.5rem;
    }

    nav {
        height: 40px;
    }

    nav #main-menu {
        display: none;
        flex-direction: column;
        background: #48435C;
        height: 220px;
    }

    nav #main-menu a {
        width: 50%;
    }

    #hamburger {
        width: 30px;
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 0 auto;
        font-size: 30px;
        color: white;
        cursor: pointer;
    }

    #hamburger-toggle:checked + #main-menu {
        display: flex;
    }
}


/*** FIN MENU ***/


/*****************/

main {
    max-width: 50rem;
    padding: 2rem;
    background-color: white;
}

section {
    /* display: grid; */
    /*  grid-template-columns: 1fr 2fr;
    grid-template-rows: 1fr;*/
    /*  grid-template-areas: "content artwork"; */
    /* place-content: center;*/


    padding-left: 3em;
    padding-right: 3em;
}

section > .content {
    grid-area: content;
    place-self: center stretch;
}

section > .artwork {
    grid-area: artwork;
    place-self: stretch;
}

h1 {
    margin-bottom: 1rem;

    color: var(--highlight-primary);

    font-size: 2.5rem;
    font-weight: 200;
}

h2 {
    color: var(--highlight-primary);
    font-weight: bolder;
    font-size: 4rem;
}

h3 {
    color: var(--highlight-primary);
    font-weight: bolder;
    font-size: 2rem;
}

h4 {
    color: var(--highlight-primary);
    font-weight: normal;
    font-size: 1.5rem;
    margin-top: 1rem;
}

p {
    margin-bottom: 1rem;

    font-size: 1.25rem;
    font-weight: 200;
}

ul {
    margin-bottom: 1rem;
    margin-left: 1em;

    font-size: 1.25rem;
    font-weight: 200;
}

ul li {
    list-style: square inside;
}

/************/

footer {

    margin-top: 4rem;
    margin-bottom: 2rem;
    padding-top: 2rem;

    color: white;
}

footer a {
    color: white;
}

footer {
    position: relative;
}

footer::before {
    content: '';

    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;

    background: linear-gradient(
            90deg,
            transparent,
            var(--highlight-secondary),
            transparent
    );
}

/*** GALLERY 2 ***/
/* Responsive image gallery rules begin*/

.image-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;

    z-index: 100;
}

.image-gallery > li {
    flex: 1 1 auto; /* or flex: auto; */
    height: 100px;
    cursor: pointer;
    position: relative;
    list-style-type: none;
}

.image-gallery::after {
    content: "";
    flex-grow: 999;
}

.image-gallery li img {
    object-fit: cover;
    width: 100%;
    height: 100%;
    vertical-align: middle;
    border-radius: 5px;
}

/*** END GALLERY ***/


/**** LIGHTBOX ****/
input[type='checkbox'] {
    display: none;
}

.lightbox, .grid {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
}

.lightbox {
    z-index: 1;
    min-height: 100%;
    overflow: auto;
    transform: scale(0);
    transition: transform .2s ease-out;
}

.lightbox img {
    position: fixed;
    top: 50%;
    left: 50%;
    max-width: 96%;
    max-height: 96%;
    transform: translate(-50%, -50%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    border: 1px solid black;
    border-radius: 5px;
}

input[type='checkbox']:checked + .lightbox {
    transform: scale(1);
}

input[type='checkbox']:checked ~ .grid {
    opacity: 0.125;
}

/**** END LIGHTBOX ****/

/**** VIDEO ****/
.box {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
}

.box iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
/**** END VIDEO ****/

/**** CONTACT FORM ****/
.contact-form-group {
    margin-bottom: 1rem;
}

.contact-input-group {
    position: relative;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -ms-flex-align: stretch;
    align-items: stretch;
    width: 100%;
}

.contact-form-control {
    display: block;
    width: 100%;
    height: calc(1.5em + 0.75rem + 2px);
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    outline: none;
    border-radius: 0.25rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.contact-form-control:focus {
    border: 1px solid #313131;
}

select.contact-form-control[size], select.contact-form-control[multiple] {
    height: auto;
}

textarea.contact-form-control {
    font-family: -apple-system, Arial, sans-serif;
    height: auto;
}

label.contact-label {
    display: inline-block;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.contact-credit {
    padding-top: 10px;
    font-size: 0.9rem;
    color: #545b62;
}

.contact-credit a {
    color: #545b62;
    text-decoration: underline;
}

.contact-credit a:hover {
    color: #0056b3;
    text-decoration: underline;
}

.contact-btn {
    display: inline-block;
    font-weight: 400;
    color: #212529;
    text-align: center;
    vertical-align: middle;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    background-color: transparent;
    border: 1px solid transparent;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 0.25rem;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

@media (prefers-reduced-motion: reduce) {
    .contact-btn {
        transition: none;
    }
}

.contact-btn:hover {
    color: #212529;
    text-decoration: none;
}

.contact-btn:focus, .contact-btn.focus {
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.contact-btn-primary {
    color: #fff;
    background-color: #007bff;
    border-color: #007bff;
}

.contact-btn-primary:hover {
    color: #fff;
    background-color: #0069d9;
    border-color: #0062cc;
}

.contact-btn-primary:focus, .contact-btn-primary.focus {
    color: #fff;
    background-color: #0069d9;
    border-color: #0062cc;
    box-shadow: 0 0 0 0.2rem rgba(38, 143, 255, 0.5);
}

.contact-btn-lg, .contact-btn-group-lg > .contact-btn {
    padding: 0.5rem 1rem;
    font-size: 1.25rem;
    line-height: 1.5;
    border-radius: 0.3rem;
}

.contact-btn-block {
    display: block;
    width: 100%;
}

.contact-btn-block + .contact-btn-block {
    margin-top: 0.5rem;
}

input[type="submit"].contact-btn-block, input[type="reset"].contact-btn-block, input[type="button"].contact-btn-block {
    width: 100%;
}

/**** END CONTACT FORM ****/

/**** FLAGS ****/
#lang {
    padding: 0.2rem;
}

#lang img {
    border: 1px solid #ccc;
    width: 25px;
    border-radius: 4px;
}

#lang img.active {
    box-shadow: 0 0 2px 1px var(--highlight-primary);
}

#lang img:hover {
    box-shadow: 0 0 2px 1px var(--highlight-fg);
}

/**** END FLAGS ****/


/**** INTRO SECTION ****/
#intro {
    /*
        background: url("images/fond1.jpg") fixed top center no-repeat;
        background-size: cover;


        width: 100%;
        overflow: clip;
    */
        min-height: 800px;
    /* align content */
    display: flex;
    align-items: center;
    justify-content: center;
}

#intro > figure {
    animation: imageAnimation 9s linear 0s infinite;
    backface-visibility: hidden;
    background-size: cover;
    background-position: center center;
    color: transparent;
    height: 100%;
    left: 0;
    opacity: 1;
    position: absolute;
    top: 0;
    width: 100%;
    z-index: -1;
}

#intro > figure:nth-child(1) {
    animation-delay: 0s;
    background-image: url('images/fond1.jpg');
    opacity: 1;
}

#intro > figure:nth-child(2) {
    animation-delay: 3s;
    background-image: url('images/fond2.jpg');
    opacity: 0;
}

#intro > figure:nth-child(3) {
    animation-delay: 6s;
    background-image: url('images/fond3.jpg');
    opacity: 0;
}


@keyframes imageAnimation {
    0% {
        opacity: 0;
    }
    10% {
        animation-timing-function: ease-in-out;
        opacity: 1;
    }
    44% {
        opacity: 1;
    }
    54% {
        animation-timing-function: ease-in-out;
        opacity: 0
    }
    100% {
        opacity: 0;
    }
}


#intro .content {
    background: rgba(0, 0, 0, 0.4);
    padding: 1em;
}

#intro .content .title {
    font-size: 5rem;
    color: white;
    font-weight: 700;
    font-variant: all-petite-caps;
    text-align: center;
    line-height: 0.7;
}

#intro .content .subtitle {
    margin-top: 1rem;
    font-size: 2rem;
    color: white;
    text-align: center;
    line-height: 0.9;
}

#intro .content .arrow {
    text-align: center;
}

#intro .content .arrow a {
    font-size: 2rem;
    color: white;
}

#pub {
    text-align: center;
    font-size: 2rem;
    font-weight: bold;
    padding: 0.5em;
    margin-top: 1em;
    border: 1px solid black;
    background: radial-gradient(circle, rgba(228,185,255,1) 0%, rgba(255,228,153,1) 100%);
}

#pub .pal {
    float: left;
    background-color: transparent;
    margin-right: 0.2em;
}

/**** FIN SECTION INTRO ****/
