:root {
    --background: #f0f0f0;
    --background-instagram: radial-gradient(circle farthest-corner at 35% 90%, #fec564, transparent 50%), radial-gradient(circle farthest-corner at 0 140%, #fec564, transparent 50%), radial-gradient(ellipse farthest-corner at 0 -25%, #5258cf, transparent 50%), radial-gradient(ellipse farthest-corner at 20% -50%, #5258cf, transparent 50%), radial-gradient(ellipse farthest-corner at 100% 0, #893dc2, transparent 50%), radial-gradient(ellipse farthest-corner at 60% -20%, #893dc2, transparent 50%), radial-gradient(ellipse farthest-corner at 100% 100%, #d9317a, transparent), linear-gradient(#6559ca, #bc318f 30%, #e33f5f 50%, #f77638 70%, #fec66d 100%);
    --border-radius: .6rem;
    --border-radius-small: 5px;
    --bottom-nav-height: 3.25rem;
    --dark-green: #0b7f5e;
    --main-nav-background: rgba(255, 255, 255, .9);
    --main-nav-height: 4rem;
    --main-nav-height-large: 8rem;
    --primary-color: #449d00;
    /*#118f41;*/
    /* #187c61; */
    --orange: rgba(212, 96, 37, 1);
    --red: #d10000;
    --violet: #BC067E;
}

* {
    box-sizing: border-box;
}

html,
body {
    font-family: "Inter", "Be Vietnam Pro", sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: white;
    height: 100%;
    line-height: 1.5;
    min-height: 100vh;
    padding: var(--main-nav-height) 0 var(--bottom-nav-height);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    line-height: 1.2;
}

a {
    color: var(--primary-color);
}

img {
    max-width: 100%;
}

ul, ol {
    margin: .5rem 0;
    padding: .5rem .5rem .5rem 1em;
}

ol li {
    margin: .5rem 0;
}

nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}


/* Grid */

.grid {
    display: grid;
    grid-gap: 1em;
    grid-template-columns: 1fr 1fr;
}

.grid-2 {
    grid-template-columns: 1fr 1fr;
}

.grid-3 {
    grid-template-columns: 1fr 1fr 1fr;
}

.grid-4 {
    grid-template-columns: 1fr 1fr 1fr 1fr;
}

.grid-5 {
    grid-template-columns: repeat(5 1fr);
}

ul.grid {
    justify-items: stretch;
    margin: 0;
    list-style-type: none;
    padding: 0;
}

ul.grid li {
    align-content: center;
    background-color: white;
    border-radius: .5rem;
    box-shadow: 1px 1px 5px #ccc;
    padding: .3rem;
}


/* Button */

.button {
    background-color: #fff;
    border-radius: 500px;
    color: var(--primary-color) !important;
    display: inline-block;
    font-weight: 600;
    line-height: 1;
    max-width: 100%;
    overflow: hidden;
    padding: .8rem 1.5rem;
    position: relative;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
}

.button.button-no-transform {
    text-transform: none;
}

.button-full-width-small {
    width: 100%;
}

.button small {
    font-weight: normal;
    text-transform: none;
}

.button-dark-green {
    background-color: var(--dark-green);
    color: #fff !important;
}

.button-primary {
    background-color: var(--primary-color);
    color: #fff !important;
}

.button-violet {
    background-color: var(--violet);
    color: #fff !important;
}

.button-white {
    background-color: white;
    color: var(--primary-color);
}

.button-turquoise {
    background-image: linear-gradient(56deg, rgba(60, 211, 173, 0.6) 0px, rgba(76, 184, 196, 0.6) 100%);
    background-color: rgba(76, 184, 196, 0.6);
    color: white !important;
}

.button .fa,
.button .fa-regular,
.button .fa-solid {
    margin-right: 5px;
}


/* Helpers */

.multi-colors {
    background-clip: text;
    background-image: linear-gradient(#000 5%, #059843 70%, #dbd100);
    color: transparent;
}

.title-picto {
    position: relative;
}
.title-picto .picto {
    position: absolute;
    display: inline-block;
    top: .2em;
    right: .2em;
}

.text-center {
    text-align: center;
}

.inline-large,
.hidden-small {
    display: none !important;
}

/* Main Nav */

.main-nav {
    backdrop-filter: blur(5px);
    background-color: var(--main-nav-background);
    height: var(--main-nav-height);
    left: 0;
    position: fixed;
    right: 0;
    top: 0;
    transition: all .25s;
    z-index: 5;
}

.main-nav-container {
    padding: 0 1em;
    height: 100%;
    width: 100%;
}

.main-nav .burger {
    cursor: pointer;
    display: inline-block;
    font-size: 1.2em;
    height: var(--main-nav-height);
    line-height: var(--main-nav-height);
    text-align: center;
    vertical-align: top;
    width: var(--main-nav-height);
    z-index: 5;
}

.main-nav .logo {
    display: inline-block;
}

.main-nav .logo img {
    aspect-ratio: 1;
    max-height: var(--main-nav-height);
    transition: all .25s;
}

.left-nav {
    left: 0;
    justify-content: start;
    margin: var(--main-nav-height) 0 0 -120vw;
    padding: 2rem 0;
    position: absolute;
    text-align: left;
    transition: all 0.2s;
    top: 0;
    width: 100vw;
}

.left-nav a {
    display: block;
    font-weight: 400;
    margin: .2em 0;
    padding: .8em 2rem;
    text-decoration: none;
    text-transform: uppercase;
}

.left-nav a:hover,
.left-nav a.active {
    background-color: rgba(255, 255, 255, .25);
}

.left-nav ul a {
    padding-left: 4rem;
    text-transform: none;
}

.scrolled .main-nav {
    box-shadow: 0px 1px 4px #ccc;
}


/* Main nav active */

.main-nav.active {
    background-color: var(--primary-color);
    height: 100vh;
}

.main-nav.active a {
    border-color: white;
    color: white;
}

.main-nav.active .left-nav {
    margin-left: 0;
}

/* Social nav */

.social-nav {
    align-items: center;
    display: flex;
    height: var(--main-nav-height);
    justify-content: space-evenly;
    position: absolute;
    right: 0;
    top: 0;
    width: calc(50% - 2rem);
}

.social-nav li {
    display: block;
}

.social-nav a {
    align-items: center;
    border: 1px solid var(--primary-color);
    border-radius: 100%;
    display: flex;
    height: 2.4rem;
    justify-content: center;
    text-decoration: none;
    width: 2.4rem;
}


/* Nav photo */

.nav-photo {
    display: grid;
    grid-gap: .5em;
    grid-template-columns: 1fr 1fr;
    list-style-type: none;
    margin: 0;
    min-height: 200px;
    padding: 0;
}

.nav-photo li a {
    background-repeat: no-repeat;
    background-size: cover;
    background-color: var(--background);
    border-radius: var(--border-radius);
    display: block;
    height: 14vh;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.nav-photo a span {
    /* background-color: rgba(255, 255, 255, .3); */
    background-color: rgba(28, 31, 56, .3);
    backdrop-filter: blur(2px);
    /* border-radius: .2em; */
    color: white;
    display: block;
    font-weight: 800;
    padding: .5em;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    text-align: center;
    text-decoration: none;
    text-shadow: 1px 1px 1px #333;
    text-transform: uppercase;
    word-break: normal;
}

.nav-photo li.enf a {
    background-image: url(../images/enf.jpeg);
}

.nav-photo li.loisir a {
    background-image: url(../images/enf.jpg);
}

.nav-photo li.competition a {
    background-image: url(../images/competition.jpg);
    background-position: center center;
}

.nav-photo li.water-polo a {
    background-image: url(../images/water-polo.jpg);
}

.nav-photo li.eau-libre a {
    background-position: center center;
    background-image: url(../images/eau-libre.jpeg);
}

/* Nav photo home */

.bloc-nav-photo-home {
    background: radial-gradient(circle,rgba(2, 0, 36, 1) 0%, rgba(0, 104, 161, 1) 35%, rgba(29, 29, 53, 1) 100%);
    padding: .6rem 0;
}

.nav-photo-home {
    padding: .5em;
}

.nav-photo-home li.competition {
    grid-column: 1 / 3;
}


/* Main content */

main aside {
    padding: .5rem;
}

.main-content,
.aside-content {
    font-size: 0.9rem;
    padding: 1rem;
}

.main-content :first-child,
.aside-content :first-child{
    margin-top: 0;
}

.content-header {
    background-size: cover;
    background-position: top center;
    border-radius: var(--border-radius);
    height: 8rem;
    position: relative;
}

.content-header.center {
    background-position: center center;
}

.content-header h1 {
    bottom: 0;
    display: block;
    color: white;
    font-size: 2rem;
    left: 0;
    letter-spacing: .5rem;
    line-height: 1;
    margin: 0;
    padding: .6rem 1rem;
    position: absolute;
    right: 0;
    text-transform: uppercase;
    text-shadow: 1px 1px 1px #333;
}

.content-header h1 small {
    text-transform: none;
    font-size: 1rem;
    letter-spacing: .1rem;
}

.autres-sections {
    background-color: #f9f9f9;
}

/* Créneaux */

.creneaux {
    overflow-x: scroll;
}

.creneaux ul {
    display: grid;
    gap: .5rem;
    grid-auto-flow: column;
    grid-template-columns: repeat(7, 1fr);
    list-style-type: none;
    margin: 0 0 .5rem 0;
    padding: 0;
    width: 100%;
}

.creneaux.tarifs ul {
    grid-template-columns: repeat(5, 1fr);
}

.creneaux.licence ul {
    grid-template-columns: 3fr 1fr;
}

.creneaux li {
    background-color: var(--background);
    border-radius: var(--border-radius-small);
    color: #333;
    font-size: .9em;
    min-width: 5rem;
    padding: 5px 8px;
    text-align: center;
}

.creneaux li.empty {
    background-color: transparent !important;
}

.creneaux .jours li,
.creneaux .horaires li:first-child {
    background-color: var(--dark-green);
    color: white;
    font-weight: bold;
}

.creneaux .dispo {
    color: var(--red);
    font-size: .8em;
}

/* Membres */

.membres {
    padding: 0;
}

.membres li {
    background: var(--background);
    border-radius: var(--border-radius);
    box-shadow: 0px 2px 3px #ccc;
    display: flex;
    min-height: 5rem;
    margin: 1rem 0;
}

.membres .photo {
    background-color: white;
    background-size: cover;
    background-position: center center;
    border-top-left-radius: var(--border-radius);
    border-bottom-left-radius: var(--border-radius);
    font-size: 2.4rem;
    font-weight: bold;
    line-height: 5rem;
    text-align: center;
    vertical-align: middle;
    min-width: 25%;
}

.membres .infos {
    padding: .5rem 1rem;
}

.membres h3 {
    margin-bottom: .5rem;
}

.membres .fonction {
    color: #666;
    margin: 0;

}

/* Aside content */

.aside-content.instagram {
    background: var(--background-instagram);
    color: white;
    border-radius: var(--border-radius);
}

.title-container {
    align-items: start;
    display: flex;
}

.title-container .picto {
    color: white;
    font-size: 1.6rem;
    margin-left: 2rem;
}

.button-instagram {
    color: #5258cf !important;
}

/* Footer content */

footer {
    margin-top: 2rem;
}

.footer-content {
    background-color: #f6f6f6;
    border-top: 1px solid #e0e0e0;
    font-size: 0.8rem;
    padding: 1.5em 1.5em;
}

.footer-content:first-child {
    border-top-left-radius: var(--border-radius);
    border-top-right-radius: var(--border-radius);
}

.footer-content :first-child {
    margin-top: 0;
}

/* Sponsors */

.sponsors h2 {
    color: var(--orange);
}

.sponsors .grid li {
    border: 1px solid #e0e0e0;
    box-shadow: none;
}

.button-sponsors {
    background-color: var(--orange);
    color: white !important;
    margin-top: 1rem;
}

/* Boutique */

.boutique h2,
.boutique a:not(.button) {
    color: var(--violet);
}

/* Contact */

.contact {
    background-color: var(--primary-color);
    background: linear-gradient(0deg, rgb(68, 157, 0) 85%, rgb(0, 97, 0) 100%);
    color: white;
}

.contact a {
    color: white;
}

.contact .grid {
    grid-gap: .8em;
    align-items: start;
}

.contact .plan {
    border-radius: .5em;
    width: auto;
}

/* Bottom nav */

.bottom-nav {
    background-color: white;
    /* border-top: 1px solid #ddd; */
    bottom: 0;
    left: 0;
    height: var(--bottom-nav-height);
    position: fixed;
    right: 0;

}

.bottom-nav ul {
    display: grid;
    font-size: 1.2em;
    grid-auto-flow: column;
    justify-content: space-evenly;
    margin: 0;
}

.bottom-nav a {
    background-color: #e4fbda;
    border: 3px solid white;
    border-top-left-radius: 50%;
    border-top-right-radius: 50%;
    box-shadow: 0px 1px 4px #ccc;
    display: block;
    height: 4.2rem;
    line-height: 4.2rem;
    /* padding: .8em; */
    position: relative;
    text-align: center;
    top: -0.8rem;
    width: 4.2rem;
}

.bottom-nav a.boutique {
    background-color: #f6f6f6;
    color: var(--violet);
}

.mentions-legales {
    font-size: .8em;
    margin: 2rem 0 1rem;
}

/* Carousel */
.carousel:after {
    content: 'flickity';
    display: none;
}

.carousel-large:after {
    content: '';
}

/* Inscription */

.bloc-inscription .container {
    /* background-image: linear-gradient(56deg, rgba(60, 211, 173, 0.6) 0px, rgba(76, 184, 196, 0.6) 100%); */
    background:url(../images/bg_swimm.jpg) no-repeat transparent center center;
    border-radius: var(--border-radius);
    margin: 1rem auto;
    padding: 1rem;
}

.bloc-inscription .content {
    background-color: rgba(255,255,255,.9);
    border-radius: var(--border-radius);
    padding: 1rem;
}

.bloc-inscription h2 {
    margin-top: 0;
}


/* Mobile landscape */
@media (orientation: landscape) and (min-width: 800px) {
    main.main-container {
        display: grid;
        grid-template-columns: 50% 50%;
    }

    .nav-photo-home {
        grid-column: 1 / 3;
    }
}

/* Desktop / large */
@media (min-width: 1000px) {
    body {
        background-color: var(--background);
        padding: 0;
    }

    .button-full-width-small {
        width: auto;
    }

    .button {
        font-weight: normal;
        padding: 1.2rem 2.4rem;
    }

    .main-nav-container,
    .main-container,
    .container,
    .footer-inner-content {
        margin: 0 auto;
        max-width: 1200px;
    }

    .main-nav {
        position: relative;
        height: var(--main-nav-height-large);
    }

    .scrolled .main-nav {
        background-color: var(--main-nav-background);
        height: var(--main-nav-height);
        position: fixed;
    }

    .main-nav-container {
        align-items: center;
        background: white;
        display: flex;
        position: initial;
    }

    .main-nav .logo img {
        margin-right: 4rem;
        max-height: 7rem;
    }

    .scrolled .main-nav .logo img {
        max-height: var(--main-nav-height);
    }

    .main-nav .burger {
        display: none;
    }

    .left-nav {
        position: initial;
        margin: 0;
        padding: 0;
        display: flex;
        width: 100%;
        align-items: center;
    }

    .left-nav li {
        padding: .5rem 1rem;
        position: relative;
    }

    .left-nav a {
        border-bottom: 2px solid transparent;
        color: #333;
        margin: 0;
        font-size: .9em;
        font-weight: 600;
        padding: .6rem 0;
    }

    .left-nav a.active,
    .left-nav li:hover > a {
        border-bottom: 2px solid var(--primary-color);
        color: var(--primary-color);
        font-weight: bold;
    }

    .left-nav ul {
        background-color: white;
        box-shadow: 2px 2px 12px #ccc;
        display: none;
        position: absolute;
    }

    .left-nav li:hover ul {
        display: block;
    }

    .left-nav ul a,
    .left-nav ul li:hover a,
    .left-nav ul li a.active {
        border: 0;
        padding: .5rem;
    }

    .social-nav {
        justify-content: space-between;
        min-width: 15%;
        position: initial;
        width: auto;
    }

    /* Main content */

    .main-container {
        background-color: white;
        border-radius: 1rem;
        box-shadow: 0 5px 3px #ddd;
        margin-top: 2rem;
    }

    main.main-container {
        display: grid;
        grid-template-columns: 65% 35%;
    }

    .content-header {
        height: 16rem;
    }

    .content-header h1 {
        bottom: 0;
        display: block;
        color: white;
        font-size: 5rem;
        left: 0;
        letter-spacing: .5rem;
        line-height: .9;
        margin: 0;
        padding: .5rem 2rem;
        position: absolute;
        right: 0;
        text-transform: uppercase;
        text-shadow: 1px 1px 1px #333;
    }

    .content-header h1 small {
        text-transform: none;
        font-size: 1.4rem;
        letter-spacing: .1rem;
    }

    .membres li {
        min-height: 8rem;
    }

    .membres .photo {
        line-height: 8rem;
    }

    /* Aside */

    main aside {
        /* border-left: 3px solid var(--background); */
        padding: 1rem;
    }

    .aside-content.instagram {
        background: white;
        box-shadow: 0 0 5px #ccc;
    }

    .instagram .title-container h2 {
        background: var(--background-instagram);
        background-clip: text;
        color: transparent;
    }

    .instagram .title-container .picto {
        background: var(--background-instagram);
        border-radius: 10px;
        color: white;
        padding:    5px;
    }

    .button-instagram {
        background: var(--background-instagram);
        color: white !important;
        font-weight: bold;
    }

    /* Footer */

    .footer-content {
        border: none;
        font-size: 1rem;
        padding: 0;
    }

    .footer-inner-content {
        padding: 5rem 15rem;
    }

    .footer-content h2 {
        font-size: 2rem;
    }

    .boutique {
        background-color: white;
    }

    .contact {
        font-size: .9rem;
    }

    .contact .footer-inner-content {
        padding: 5rem 5rem 1rem 5rem;
    }

    .contact-container {
        display: grid;
        grid-gap: 2rem;
        grid-template-columns: 1fr 1fr;
    }

    /* Nav photo */

    .nav-photo li,
    .nav-photo li a {
        height: 100%;
        transition: all .2s;
    }

    .nav-photo li:hover {
        box-shadow: 0 2px 60px rgba(255,255,255,.5);
    }

    /* Nav photo home */

    .bloc-nav-photo-home {
        padding: 2rem 0;
    }

    .nav-photo-home {
        grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
        height: 150px;
        min-height: 150px;
    }

    .nav-photo-home li.competition {
        grid-column: auto;
    }

    .nav-photo :nth-child(1) {
        border-bottom-left-radius: var(--border-radius);
    }

    .nav-photo :last-child {
        border-top-right-radius: var(--border-radius);
    }

    .bottom-nav {
        display: none;
    }

    /* Helpers */
    .hidden-large {
        display: none;
    }

    .hidden-small,
    .inline-large {
        display: initial !important;
    }

    /* Carousel */
    .carousel-large:after {
        content: 'flickity';
    }
    .carousel-cell {
        background-color: var(--background);
        border-radius: var(--border-radius);
        margin-right: 10px;
        min-height: 600px;
        padding: 4rem;
        width: 100%;
    }
}