:root {
    --pink: #E769C3;
    --darker-pink: #D428A3;
    --pink-transparent: #E769C35b;
    --blue: #69C3E7;
    --darker-blue: #29A6D8;
    --blue-transparent: #69C3E75b;
    --green: #82E769;
    --darker-green: #5DB347;
    --green-transparent: #82E7695b;
    --purple: #B48CEB;
    --darker-purple: #8C3EF7;
    --purple-transparent: #B48CEB5b;
    --yellow: #E7E369;
    --darker-yellow: #CAC526;
    --yellow-transparent: #E7E3695b;
    --teal: #69E7CC;
    --darker-teal: #3DA08B;
    --teal-transparent: #69E7CC5b;
    /* --pink: #FF94D8;
    --darker-pink: #FF61C5;
    --blue: #94A3FF;
    --darker-blue: #6177FF;
    --green: #94FFBB;
    --darker-green: #61FF9B;*/
    /*--pink: #F7A8B2;
    --darker-pink: #F37989;
    --blue: #C5A8F7;
    --darker-blue: #A679F3;
    --green: #A8F7ED;
    --darker-green: #79F3E3; */

    --light-font: #DBCDC7;
    --regular-text-color: #4d3933;
    --dark-font: #403C3A;
    --red-invalid: #FF4C4C;
    --green-valid: #4CFF52;
    --yellow-warning: #dcdf7c;
    --light-black: #4e4946;
    --default-background: #FFEDE5;
    --default-background-darker: #ffe5da;
    --footer-background-color: #69C3E7;
    --calendar-background-color: #ffe1d5;
    --calendar-cell-active: #FFEDE5;
    --calendar-cell-unactive: #e9a5d130;
    --calendar-cell-current-day: #a5afe980;
    --panel-color: #B48CEB
        /*#E9A5D1*/
    ;
    --tranparent: #00000000;
    --specialFont: lilitaOne;
    --cursor-image: url('/images/svgs/right-arrow.svg');

    --regular-text: Cabin;
    --animation-behavior-fast-to-slow: cubic-bezier(.07, .86, .48, .99);
    --animation-behavior-slow-to-fast: cubic-bezier(1, 0, .76, .88);
}

/* square{
    height: fit-content;
    width: fit-content;
    padding: 1.5rem;
    top: 50%;
    left: 50%;
    position: fixed;
    top: 50%; 
    mix-blend-mode: difference;
    z-index: 10000;
    outline: white 3px solid;
    color: white;
    display: flex;

    justify-content: center;
    align-items: center;
} */

@font-face {
    font-family: BubblegumSans;
    src: url(../fonts/Bubblegum\ Sans/BubblegumSans-Regular.ttf);
}

@font-face {
    font-family: lilitaOne;
    src: url(../fonts/Lilita\ One/LilitaOne-Regular.ttf);
}

@font-face {
    font-family: Cabin;
    src: url(../fonts/Cabin/Cabin-VariableFont_wdth.ttf);
}

* {
    box-sizing: border-box;
}

body {
    position: relative;
    margin: 0;
    color: var(--regular-text-color);
    background-color: var(--default-background);
}

h1,
h2 {
    font-family: var(--specialFont);
    font-weight: lighter;
    margin-top: 0;
}

h1 {
    font-size: 32px;
}

h2 {
    font-size: 24px;
}

p,
a {
    font-family: var(--regular-text);
}

a h2 {
    margin: 0;
}

a {
    all: unset;
    cursor: pointer;
    position: relative;
    color: white;
    transition: color .3s ease;
}

a:hover {
    color: var(--darker-pink);
}

panel {
    position: fixed;
    background-color: var(--panel-color);
    inset: 0 0 0 0;
    z-index: 100;
    transform: scaleX(1);
    transform-origin: right;
    transition: transform .8s var(--animation-behavior-slow-to-fast);
}

/* #home, */
#about,
#calendar,
#services,
#inscription,
#gallery,
#contact {
    display: none;
}

#home,
#about,
#calendar,
#services,
#inscription,
#contact {
    overflow: hidden;
}

.open-sky-svg {
    width: 800px;
    height: fit-content;
    z-index: -10;
}

.link::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3px;
    width: 100%;
    background-color: var(--pink);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .6s var(--animation-behavior-fast-to-slow);
}

.link:hover::before {
    transform: scaleX(1);
}

.jrl-logo {
    height: 100px;
}

#close-menu-btn {
    position: absolute;
    top: 1.2em;
    right: 1.2em;
}

.top-menu {
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    width: 100%;
    min-height: 70px;
    height: fit-content;
    justify-content: center;
    padding: 1rem;
    z-index: 50;
    transition:
        transform .5s ease,
        background-color .5s ease,
        box-shadow .5s ease;
}

.logo-text path {
    transition: fill 1s ease;
}

.top-menu[data-scroll-to-top="true"] {
    background-color: #00000000;
    box-shadow: 0px 0px 0px 0px rgba(0, 0, 0, 0);

    #alt-menu-icon {
        stroke: white;
    }

    .logo-text path {
        fill: white;
    }
}

.top-menu[data-scroll-to-top="false"] {
    background-color: var(--default-background);
    box-shadow: 0px 0px 20px -5px rgba(0, 0, 0, 0.575);
}

.top-menu[data-scroll-to-top="true"] div .link {
    color: white;
}

.top-menu[data-scroll-to-top="false"] div .link {
    color: var(--regular-text-color);
}

.top-menu div {
    display: flex;
    align-items: center;
}

.top-menu div:nth-child(1) {
    justify-content: center;
    width: 20%;
}

.menu-div {
    justify-content: center;
    width: 80%;
    gap: 3rem;
    text-wrap: nowrap;
}

.menu-div a {
    font-family: var(--specialFont) !important;
    font-weight: bold;
}

.top-menu div:nth-child(3) {
    width: 20%;
}

.alternate-menu {
    display: block;
}

#alt-menu-icon {
    display: none;
    transition: stroke 1s;
    height: 35px;
}

@media (max-width: 1000px) {
    .top-menu div:nth-child(1) {
        /* display: none; */
        width: 40%;
    }

    .alternate-menu {
        display: none !important;
    }
}

.hero-section {
    height: 110vh;
    background-color: #69C3E7;
    align-content: center;
    justify-items: center;
    position: relative;
    color: white;
    isolation: isolate;
    padding: 0 5%;

    .text {
        text-align: center;
    }

    h1 {
        font-size: 60px;
        /* max-width: 40%; */
    }

    img {
        position: absolute;
        inset: 0 0 0 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        z-index: -2;
        isolation: isolate;
    }

    .overlay {
        content: "";
        position: absolute;
        background-color: rgba(0, 0, 0, 0.493);
        inset: 0 0 0 0;
        z-index: -1;
    }
}

.intro-banner {
    height: 80dvh;
    background-color: #69C3E7;
    align-content: center;
    justify-items: center;
    text-align: center;
    position: relative;
    color: white;
}

.transition-svg {
    position: absolute;
    left: 0;
    bottom: -1px;
    z-index: 3;
}

.neutral-section {}

/* .hero-section::after,
.intro-banner::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 200px;
    background-color: var(--default-background);
    -webkit-mask-image: url("../images/svgs/flower-banner-mask-4.svg");
    -webkit-mask-size: cover;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: top;
} */

/* CHANGE LATER? BUTTONS IN HERO SECTION */
/* .hero-section div{
    transform: translatey(100px);
    display: flex;
    gap: 3rem;
} */

.section {
    margin: 10vh 0;
}

.section-title {
    margin-bottom: 2.5em;
}

.copyright-section {
    position: relative;
    margin: 0;
    padding-bottom: 1rem;
    justify-items: center;
    text-align: center;

    p {
        font-size: .8rem;
        margin: 0;
        padding: 0 2rem;
    }

    div:nth-child(1) {
        position: absolute;
        left: 4rem;
        bottom: 1rem;
    }
}

.dual-subsection {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    justify-content: center;

    .subsection {
        width: min(550px, 90%);
        margin: 0;
    }

    .text {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        /* max-width: 450px; */
        padding: 40px;
    }

    .image .img {
        object-fit: cover;
        aspect-ratio: 1;
    }
}

.dual-subsection.reverse {
    flex-wrap: wrap-reverse;
}

.wrapper {
    width: min(1300px, 96%);
    margin-inline: auto;
}

.cards-section {
    display: flex;
    align-items: flex-start;
    justify-content: space-around;
    flex-wrap: wrap;
}

.card {
    position: relative;
    width: min(350px, 90%);
    aspect-ratio: 1;
    margin-bottom: 3rem;
    padding: 20px;

    display: flex;
    justify-content: center;
    align-items: center;

    background-color: #FFE5DA;
    border-radius: 25px;
    border-style: solid;
    border-width: 0 0 10px 0;
    border-color: #FFBFA5;
}

.card.blue {
    background-color: var(--blue);
    border-color: var(--darker-blue);
}

.card.green {
    background-color: var(--green);
    border-color: var(--darker-green);
}

.card.pink {
    background-color: var(--pink);
    border-color: var(--darker-pink);
}

.card.yellow {
    background-color: var(--yellow);
    border-color: var(--darker-yellow);
}

.card.purple {
    background-color: var(--purple);
    border-color: var(--darker-purple);
}

.card.teal {
    background-color: var(--teal);
    border-color: var(--darker-teal);
}

.card-text {
    width: 250px;
    text-align: center;
}

.list-element,
.checkbox-label {
    font-family: var(--regular-text);
}

.list-element::before {
    font-size: 1.5rem;
    font-family: lilitaOne;
}

.list-element:nth-of-type(1)::before {
    content: "1. ";
}

.list-element:nth-of-type(2)::before {
    content: "2. ";
}

.list-element:nth-of-type(3)::before {
    content: "3. ";
}

.cards-gallery-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-template-rows: repeat(6, auto);
    justify-content: center;
    justify-self: center;
    gap: 30px;

    .image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 25px;
    }

    .icon svg {
        width: 100%;
        height: 100%;
    }

    .card {
        position: relative;
        width: 100%;
        padding: 20px;
        margin: 0;
        aspect-ratio: 1;

        h1 {
            margin: 0;
        }
    }

    .card:hover .title {
        opacity: 0;
    }

    .card:hover .content {
        opacity: 1;
    }

    .card .content {
        opacity: 0;
        transition: opacity .4s ease;
    }

    .card .title {
        display: flex;
        justify-content: center;
        align-items: center;
        position: absolute;
        width: 100%;
        height: 100%;
        transition: opacity .4s ease;
    }
}

.upcoming-section {}

.services-section {
    width: 100%;
    display: grid;
    justify-self: center;
    justify-content: center;
    align-items: center;
    grid-template-columns: repeat(auto-fit, minmax(300px, .8fr));
    grid-template-rows: repeat(2, auto);
    gap: 50px;

    .card {
        height: 300px;
        width: 100%;
        margin: 0;

        svg {
            width: 80px;
        }
    }
}

.program-section {
    background-color: rgb(105, 195, 231);
    position: relative;
    text-align: center;
    color: white;
    padding-top: 450px;
    padding-bottom: 350px;
    min-height: 130dvh;
    display: flex;
    flex-direction: column-reverse;
    justify-content: center;
    align-items: center;
}

.program-subsection {
    display: grid;
    justify-content: center;
    width: min(1300px, 80%);
    grid-template-columns: repeat(auto-fit, minmax(400px, .7fr));
    gap: 15px;
    margin-top: 100px;
}

.program-card {
    padding: 2rem;
}

.program-icon-title {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
}

.program-icon-title svg {
    height: 4.5rem;
    width: 4.5rem;
    margin-right: 1.5rem;
}

.program-icon-title h2,
.program-icon-title h1 {
    margin: 0;
}

.gallery-preview-section {
    aspect-ratio: 16/9;
    height: fit-content;
    display: grid;
    grid-template-columns: repeat(3, 30%);
    grid-template-rows: repeat(4, 20%);
    gap: 15px;
    justify-content: center;
    align-content: center;

    div img {
        border-radius: 25px;
        object-fit: cover;
        width: 100%;
        height: 100%;
        cursor: pointer;
    }
}

.gallery-preview-section-alt {
    justify-content: center;
    align-items: center;
}

.gallery-photo-alt {

    img {
        border-radius: 25px;
        object-fit: cover;
        width: 100%;
        height: 100%;
    }
}

.gallery-photo-1 {
    grid-row: 1/3;
}

.gallery-photo-2 {
    grid-row: 1/3;
}

.gallery-photo-3 {
    grid-row: 1/3;
}

.gallery-photo-4 {
    grid-column: 1/2;
    grid-row: 3/5;
}

.gallery-photo-5 {
    grid-row: 3/5;
    grid-column: 2/4;
}

.gallery-photo-6 {}

.carrousel-section {}

.carrousel-alt-section {
    margin-top: 0;
    display: none;
    justify-content: center;
    align-items: center;
    height: fit-content;

    .card:not(.arrow) {
        width: min(350px, 90%);

        padding: 40px 10px;

        .text {
            width: 80%;
            padding: 0 10px;
            text-align: center;
        }
    }

    .card.arrow {
        padding: 5px;
        border-radius: 10px;
    }
}

.carrousel {
    --big-card-width: 550px;
    --small-card-width: 400px;
    position: relative;
    height: 600px;
    width: 100%;
    overflow: hidden;
}

.carrousel:hover {
    cursor: var(--cursor-image), auto;

}

.carrousel-navs {
    padding-top: 50px;
}

.carrousel-card {
    position: absolute;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 100px;
    top: 50%;
    left: 50%;
    height: var(--small-card-width);
    aspect-ratio: 1;
    transform: translate(0, -50%);
    transition: height .7s ease, width .7s ease, transform .7s ease;
    background-color: #FFE5DA;

    border-radius: 25px;
    border-style: solid;
    border-width: 0 0 10px 0;
    border-color: #FFBFA5;
    font-size: 1.2rem;

    .card-content {
        width: calc(var(--big-card-width) * 80 / 100);
        text-align: center;
        opacity: 0;
        transition: opacity .3s ease;
    }

    h2 {
        font-size: 2em;
    }

    .card-logo {
        position: absolute;
        top: 50%;
        left: 50%;
        width: 40%;
        transform: translate(-50%, -50%);
        opacity: 1;
        transition: opacity .3s ease;
    }
}

.carrousel-card[data-number="1"] {
    transform: translate(calc(-50% - 1425px), -50%);
}

.carrousel-card[data-number="2"] {
    transform: translate(calc(-50% - 975px), -50%);
}

.carrousel-card[data-number="3"] {
    transform: translate(calc(-50% - 525px), -50%);
    /* (var(--big-card-width) / 2 - var(--small-card-width) / 2) + (var(--big-card-width) + 50px) * 1*/
}

.carrousel-card[data-number="4"] {
    height: var(--big-card-width);

    transform: translate(-50%, -50%);

    .card-content {
        opacity: 1;
    }

    .card-logo {
        opacity: 0;
        pointer-events: none;
        transition: opacity .7s ease;
    }
}

.carrousel-card[data-number="5"] {
    transform: translate(calc(-50% + 525px), -50%);
}

.carrousel-card[data-number="6"] {
    transform: translate(calc(-50% + 975px), -50%);
}

.carrousel-card[data-number="7"] {
    transform: translate(calc(-50% + 1425px), -50%);
}

.form-section {
    display: flex;
    flex-wrap: wrap-reverse;
    justify-content: center;
    position: relative;
    gap: 50px;
    height: fit-content;
    width: 100%;

    .images {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        height: 550px;
        gap: 50px;

        div:not(.floating-img) img {
            width: 250px;
            height: 250px;
            object-fit: cover;
        }
    }
}

@media (max-width: 1255px) {
    .images {
        display: flex !important;
    }
}

.form {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: min(830px, 96%);
    padding: 2rem 1.5rem;
    border-radius: 25px;
    background-color: var(--calendar-background-color);
    border-color: #ffbfa5;
    border-style: solid;
    border-width: 0px 0px 10px 0px;
}

.checkbox-div {
    width: 80%;
    justify-self: center;
}

.form-inputs {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.input-container,
.input-container-footer,
.input-container-textarea {
    position: relative;
    height: fit-content;
    display: flex;
}

@media (min-width: 790px) {
    .input-container {
        max-width: 300px !important;
        width: 100% !important;
    }
}

@media (max-width: 790px) {
    .input-container {
        width: 100% !important;
    }
}

.input-container-textarea {
    max-width: calc(600px + 15px);
    width: 100%;
}

.input-container-textarea textarea {
    height: 8lh;
    resize: none;
}

.input {
    outline: none;
    border: solid 0.25rem #FFD6C4;
    border-radius: 10px;
    font-weight: bolder;
    /* background-color: var(--default-background); */
    background-color: white;
    padding: 0.6em 1.5em;
    width: 100%;
    font-family: var(--regular-text);
    color: var(--regular-text-color);
    transition: border .4s ease;
}

.input:focus {
    border: solid 0.25rem var(--pink);
}

.input.invalid-input {
    border: solid 0.25rem var(--red-invalid);
}

/* The consent box left unticked */
.checkbox-div.invalid-input .checkbox-label {
    color: var(--red-invalid);
}

/* The field only bots fill (see messagesController): out of sight, out of the tab order */
.hp-field {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.button {
    padding: 0.8em 3em;
    border-radius: 10px;
    border-style: solid;
    border-width: 0px 0px 3px 0px;
    border-color: #0000003f;
    /* box-shadow: 3px 3px 6px -3px rgba(0, 0, 0, 0.5); */
    transition: background-color 0.3s, box-shadow 0.3s;
    text-align: center;
    width: fit-content;
    font-family: var(--specialFont);
    color: white;
    transition: padding .3s ease, color .3s ease;
}

.button-div {
    margin-top: 25px;
    display: flex;
    justify-content: center;
}

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

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

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

.button:hover {
    padding: 0.8em 3.3em;
}

footer[data-color="default"] {
    background-color: var(--footer-background-color);
    color: white;

    a {
        color: white;
    }

    .input-container-footer .input {
        border-color: white;
        color: white;
    }

    .input-container-footer .input::placeholder {
        color: rgba(255, 255, 255, 0.527);
    }
}

footer[data-color="alternate"] {
    background-color: var(--default-background);
    color: var(--regular-text-color);

    a {
        color: var(--regular-text-color);
    }

    .input-container-footer .input {
        border-color: var(--regular-text-color);
        color: var(--regular-text-color);
    }

    .input-container-footer .input::placeholder {
        color: #4d393379;
    }
}

footer {
    overflow: hidden;
    /* display: flex;
    flex-wrap: wrap; */
}

.footer-section.section {
    margin: 0;
}

.footer-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
    flex-wrap: wrap;
    padding: 30dvh 5% 8rem 5%;
    width: 100%;
    z-index: -5;
}

@media (max-width: 743px) {
    .footer-section {
        display: flex;
        /* grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 15px;
        flex-wrap: wrap;
        padding: 8rem 4rem;
        width: 100%; */
    }
}

.footer-subsection {
    display: flex;
    flex-direction: column;
    padding-right: 2rem;
}

.input-container-footer {
    margin-bottom: 1rem;
}

.input-container-footer .input {
    background-color: #00000000;
    /* outline: solid 0.15rem white; */
    outline: none;
    border-radius: 0px;
    border-style: solid;
    border-width: 0px 0px .15rem 0px;
    border-color: white;
    min-width: 200px;
    width: 100%;
    padding: 0.4em;
    padding-top: 2em;
    font-size: 0.9em;
}

.footer-subsection:nth-child(4) {
    /* align-items: center; */
    padding-right: 0;
}

.footer-form {
    width: 100%;
}

.footer-subsection:nth-child(4) div:nth-child(1) {
    width: 100%;
    /* max-width: 400px; */
    display: flex;
    justify-items: center;
    flex-direction: column;
}

.footer-subsection .custom-list div p {
    margin-top: 0;
}

.img-about-100 {
    width: 100%;
    border-radius: 25px;
}

.vision-section {
    position: relative;
    background-color: rgb(105, 195, 231);
    display: flex;
    justify-content: center;
    align-items: center;

    .subsection {
        padding: 30dvh 0;
        display: flex;
        flex-wrap: wrap;
        justify-content: space-evenly;

        .card {
            display: flex;
            justify-content: start;
            flex-direction: column;
            width: fit-content;
            aspect-ratio: 1;
            max-width: 500px;
            padding: 50px;
        }
    }
}

.margin-top {
    margin-top: 100px;
}

.padding-top {
    padding-top: 40dvh;
}

.padding-bottom {
    padding-bottom: 30dvh;
}

.banner {
    width: 99.2vw;
    top: 0;
    left: 0;
    margin-bottom: -10px;
}

.text-pink {
    color: var(--pink);
}

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

.highlighted-text.pink {
    color: var(--pink);
}

/* CALENDAR SECTION ======================================================================================================================================================================================================*/
.event-preview-section {
    position: fixed;
    inset: 0 0 0 0;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity .3s ease;
}

.event-preview-section[data-state="close"] {
    display: none;
}

.event-preview-section[data-state="open"] {
    display: flex;
}

#x-icon-event-card {
    position: absolute;
    top: 20px;
    right: 20px;
}

#x-icon-event-card img {
    transition: scale .3s ease;
}

#x-icon-event-card:hover img {
    scale: 1.1;
}

#x-icon-event-card:active img {
    scale: 0.9;
}

.calendar-section {
    position: relative;
    background-color: #69C3E7;
}

.grid {
    box-sizing: content-box !important;
    height: fit-content;
    width: 100%;
    display: grid;
    /* grid-template-columns: repeat(7, 110px); */
    /* grid-template-rows: 2em repeat(6, 90px); */
    grid-template-columns: repeat(7, 1fr);
    /* gap: 1%; */
}

.calendar-grid {
    width: min(1000px, 95%);
    /* aspect-ratio: 1000/885; */
    background-color: var(--calendar-background-color);
    padding: 5% 5%;
    display: block;
    justify-self: center;
    border-radius: 25px;
    border-style: solid;
    border-width: 0 0 10px 0;
    border-color: #ffbfa5;
    transition: opacity .8s ease;
    margin-inline: auto;

    .card {
        border-width: 0 0 6px 0;
        border-radius: 10px;
        margin: 0;
        width: calc(100% - 5px);
        height: calc(100% - 5px);
        padding: 5px;
        position: relative;
        justify-self: center;
        align-self: center;

        h2 {
            position: absolute;
            top: .5em;
            right: .5em;
            font-size: 1em;
        }

        @media (max-width: 500px) {
            h2 {
                position: static;
                top: 0;
                right: 0;
            }
        }
    }

    .card[data-cell-state="unactive"] {
        opacity: 0;
        pointer-events: none;
    }

    .card[data-cell-state="active"] {
        opacity: 1;
        pointer-events: all;
    }

    .card[data-cell-state="active"].clickable:hover {
        cursor: pointer;
    }

    .title {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 30px;
    }

    h1,
    h2 {
        margin: 0;
        text-align: center;
    }

    h2 {
        color: #1E6784;
    }

    .dim::after,
    .lun::after,
    .mar::after,
    .mer::after,
    .jeu::after,
    .ven::after,
    .sam::after {
        font-size: 1em;
    }

    @media (max-width: 900px) {
        h2 {
            font-size: .8em;
        }

        .dim,
        .lun,
        .mar,
        .mer,
        .jeu,
        .ven,
        .sam {
            font-size: 0;
        }

        .dim::after {
            content: "Dim";
            font-size: 1rem;
        }

        .lun::after {
            content: "Lun";
            font-size: 1rem;
        }

        .mar::after {
            content: "Mar";
            font-size: 1rem;
        }

        .mer::after {
            content: "Mer";
            font-size: 1rem;
        }

        .jeu::after {
            content: "Jeu";
            font-size: 1rem;
        }

        .ven::after {
            content: "Ven";
            font-size: 1rem;
        }

        .sam::after {
            content: "Sam";
            font-size: 1rem;
        }


    }
}

.card.arrow {
    width: fit-content;
    border-width: 0 0 3px 0 !important;
    height: fit-content;
    transition: scale .4s ease;
    margin-bottom: 0;
}

.card.arrow:hover {
    cursor: pointer;
    scale: 1.1;
}

.card.arrow:active {
    cursor: pointer;
    scale: .9;
}

/* .calendar-grid {
    width: fit-content;
    height: fit-content;
    background-color: var(--calendar-background-color);
    padding: 50px 70px;
    display: block;
    border-radius: 25px;
    border-style: solid;
    border-width: 0 0 10px 0;
    border-color: #ffbfa5;
    justify-self: center;

    .card.arrow {
        width: fit-content;
        border-width: 0 0 3px 0;
        height: fit-content;
        transition: scale .4s ease;
    }

    .card.arrow:hover {
        cursor: pointer;
        scale: 1.1;
    }

    .card.arrow:active {
        cursor: pointer;
        scale: .9;
    }

    .card {
        border-width: 0 0 6px 0;
        border-radius: 10px;
        margin: 0;
        width: 100%;
        height: 100%;
        padding: 5px;
        position: relative;

        h2 {
            position: absolute;
            top: .5em;
            right: .5em;
            font-size: 1em;
        }
    }

    .card[data-cell-state="unactive"] {
        opacity: 0;
        pointer-events: none;
    }

    .card[data-cell-state="active"] {
        opacity: 1;
        pointer-events: all;
    }

    .title {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 30px;
    }

    h1,
    h2 {
        margin: 0;
        text-align: center;
    }

    h2 {
        color: #1E6784;
    }
} */

.video-player-section {
    background-color: #69C3E7;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100vw;
    isolation: isolate;
}

/* .video-player-section::before {
    content: "";
    width: 100%;
    height: 100%;
    background-color: #df7cbcd7;
    position: absolute;
    left: 0;
    top: 0;
    z-index: -10;
} */

.video-player {
    width: min(1300px, 90vw);
    aspect-ratio: 16/9;
}

iframe~.button {
    margin-top: 3rem;
}

/* CONTACT SECTION */
.contact-intro {
    max-width: 640px;
    margin: 0 auto 3rem;
    text-align: center;

    h1 {
        margin-bottom: .5rem;
    }

    p {
        margin: 0;
        font-size: 1.1rem;
    }
}

.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 30px;
}

.contact-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem 1.5rem;
    font-family: var(--regular-text);
    color: var(--regular-text-color);
    border-radius: 25px;
    border-style: solid;
    border-width: 0 0 10px 0;
    transition: transform .3s ease;

    h2 {
        margin: 0 0 .2rem;
        font-size: 1.4rem;
    }
}

.contact-hours .custom-list div {
    flex-direction: column;
    margin-bottom: .4rem;

    .list-head {
        width: auto;
        margin: 0;
        font-weight: bold;
    }
}

a.contact-card:hover {
    color: var(--regular-text-color);
    transform: translateY(-4px);
}

.contact-card.teal {
    background-color: var(--teal);
    border-color: var(--darker-teal);
}

.contact-card.yellow {
    background-color: var(--yellow);
    border-color: var(--darker-yellow);
}

.contact-card.purple {
    background-color: var(--purple);
    border-color: var(--darker-purple);
}

.contact-card.pink {
    background-color: var(--pink);
    border-color: var(--darker-pink);
}

.contact-icon {
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background-color: #ffffff38;

    svg {
        width: 38px;
        height: 38px;
    }

    /* Dark icons, same color as the text */
    svg * {
        stroke: var(--regular-text-color);
    }
}

.contact-text {
    min-width: 0;
    overflow-wrap: anywhere;
}

/* Sections that touch the footer: no gap of page color between them */
[data-section-state]>.image-layer>.section:last-child,
.gallery-section.section {
    margin-bottom: 0;
}

.form-section.padding-bottom {
    padding-bottom: 7rem;
}

.contact-map {
    min-height: 420px;
    border-radius: 25px;
    border-style: solid;
    border-width: 0 0 10px 0;
    border-color: #FFBFA5;
    background-color: #FFE5DA;

    .map {
        display: block;
        width: 100%;
        height: 100%;
        border: 0;
        border-radius: 25px 25px 15px 15px;
    }
}

.elevated-card-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.elevated-card {
    border-radius: 25px;
    border-style: solid;
    border-width: 0px 0px 10px 0px;
    padding: 0.8em 3em;
    width: 100%;
    min-width: 200px;
    height: fit-content;
    display: flex;
    padding: 2rem;
    /* text-align: center; */
    color: white;
}

.elevated-card h1,
.elevated-card h2 {
    margin: 0;
}

.elevated-card p {
    font-weight: bold;
    margin: .5rem 0 0 0;
}

.elevated-card:nth-child(1) {
    /* border-color: var(--blue);
    background-color: var(--blue-transparent); */
    border-color: var(--darker-blue);
    background-color: var(--blue);
}

.elevated-card:nth-child(2) {
    /* border-color: var(--pink);
    background-color: var(--pink-transparent); */
    border-color: var(--darker-pink);
    background-color: var(--pink);
}

.elevated-card:nth-child(3) {
    /* border-color: var(--green);
    background-color: var(--green-transparent); */
    border-color: var(--darker-green);
    background-color: var(--green);
}

.elevated-card:nth-child(4) {
    /* border-color: var(--yellow);
    background-color: var(--yellow-transparent); */
    border-color: var(--darker-yellow);
    background-color: var(--yellow);
}

.elevated-card-icon {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
}

.elevated-card-icon svg {
    height: 3.5rem;
    width: 3.5rem;
    margin-right: 1.5rem;
}

.hours-list {
    width: fit-content;
    display: grid;
    grid-template-rows: 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
    margin-top: .5rem;
    width: 100%;

}

.custom-list div {
    display: flex;
    font-family: var(--regular-text);
}

.list-head {
    display: flex;
    flex-wrap: nowrap;
    margin-right: 2rem;
    width: 8ch;
}

.transition-svg {
    width: 100%;
    height: auto;
}

.transition-svg.bottom {
    bottom: 0;
}

.transition-svg.top {
    top: 0;
}

.transition-svg.translated {
    margin-bottom: -10px;
}

.image-layer {
    position: relative;
    isolation: isolate;
    /* outline: red solid 2px; */
}

.clouds {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-37.5%, -50%);
    z-index: -1;
}

.corner-img {
    position: absolute;
    bottom: 0;
    left: 0;
    transform: translate(-20%, 40%);
    border: var(--default-background) solid 15px;
    border-radius: 40px;
    width: 60%;
    height: 60%;
    object-fit: cover;
}

.floating-img {
    position: absolute;
    width: fit-content;
    height: fit-content;
    z-index: -1;
}

.floating-img.top {
    top: 0;
}

.floating-img.bottom {
    bottom: 0;
}

.floating-img.small svg,
.floating-img.small img {
    max-height: 50px;
    max-width: 50px;
}

.floating-img.medium svg,
.floating-img.medium img {
    max-height: 100px;
    max-width: 100px;
}

.floating-img.large svg,
.floating-img.large img {
    max-height: 150px;
    max-width: 150px;
}

.floating-img.xlarge svg,
.floating-img.xlarge img {
    max-height: 250px;
    max-width: 250px;
}

#ba {
    position: absolute;
    inset: 0 0 0 0;
    width: 100%;
    height: 100%;
}

#g1,
#g2,
#g3,
#g4,
#g5 {
    transition: transform 1.2s ease, opacity .8s ease;
    opacity: 0;
}

#g1 {
    transform: translate(-5%, 0);
}

#g2 {
    /* transform: translate(-30%, 0); */
}

#g3 {
    transform: translate(5%, 0);
}

#g4 {
    transform: translate(0, -2%);
}

#g5 {
    transform: translate(0, 2%);
}

.g1 {
    mask-image: url("../images/svgs/middle.svg");
    -webkit-mask-image: url("../images/svgs/left.svg");
}

.g2 {
    mask-image: url("../images/svgs/left.svg");
    -webkit-mask-image: url("../images/svgs/middle.svg");
}

.g3 {
    mask-image: url("../images/svgs/right.svg");
    -webkit-mask-image: url("../images/svgs/right.svg");
}

.g4 {
    mask-image: url("../images/svgs/top.svg");
    -webkit-mask-image: url("../images/svgs/top.svg");
}

.g5 {
    mask-image: url("../images/svgs/bottom.svg");
    -webkit-mask-image: url("../images/svgs/bottom.svg");
}

.g1,
.g2,
.g3,
.g4,
.g5 {
    position: absolute;
    width: 100%;
    height: 100%;
    mask-size: 100%;
    mask-repeat: no-repeat;
    mask-position: center;
    -webkit-mask-size: 100%;
    -webkit-mask-repeat: no-repeat;

    img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

.fractioned-square {
    transition: opacity .3s ease, transform 5s ease;
    opacity: 0;

    rect {
        /* fill: #0A1D29; */
        fill: #9ED0FA;
    }
}

#section1,
#section2,
#section3,
#section4,
#section5,
#section6,
#section7,
#section8,
#section9,
#section {
    transform-origin: center;
    width: fit-content;
    transition: transform .6s ease, filter .6s ease;
}



#section1 .fractioned-square[data-translated="true"] {
    transform: translate(106px, -106px);
}

#section2 .fractioned-square[data-translated="true"] {
    transform: translate(53px, -53px);
}

#section3 .fractioned-square[data-translated="true"] {
    transform: translate(53px, -53px);
}

#section4 .fractioned-square[data-translated="true"] {
    transform: translate(-53px, 53px);
}

#section5 .fractioned-square[data-translated="true"] {
    transform: translate(-53px, 53px);
}

#section6 .fractioned-square[data-translated="true"] {
    transform: translate(-53px, 53px);
}

#section7 .fractioned-square[data-translated="true"] {
    transform: translate(-106px, 106px);
}

#section8 .fractioned-square[data-translated="true"] {
    transform: translate(-106px, 106px);
}

#section9 .fractioned-square[data-translated="true"] {
    transform: translate(-159px, 159px);
}

#logo {
    transition: transform 1s cubic-bezier(.68, .02, .15, 1);
    /* transition: transform .4s cubic-bezier(.07, .86, .48, .99); */
    /* transition: transform .4s cubic-bezier(1, 0, .76, .88); */
}

/* #section1{animation: pulse1 1.5s cubic-bezier(.68,.02,.15,1) infinite;}
#section2{animation: pulse2 1.5s cubic-bezier(.68,.02,.15,1) infinite .1s;}
#section3{animation: pulse2 1.5s cubic-bezier(.68,.02,.15,1) infinite .1s;}
#section4{animation: pulse3 1.5s cubic-bezier(.68,.02,.15,1) infinite .1s;}
#section5{animation: pulse3 1.5s cubic-bezier(.68,.02,.15,1) infinite .1s;}
#section6{animation: pulse3 1.5s cubic-bezier(.68,.02,.15,1) infinite .1s;}
#section7{animation: pulse4 1.5s cubic-bezier(.68,.02,.15,1) infinite .2s;}
#section8{animation: pulse4 1.5s cubic-bezier(.68,.02,.15,1) infinite .2s;}
#section9{animation: pulse5 1.5s cubic-bezier(.68,.02,.15,1) infinite .25s;} */

@keyframes pulse1 {
    0% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(-25px, 25px);
    }

    100% {
        transform: translate(0, 0);
    }
}

@keyframes pulse2 {
    0% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(-10px, 10px);
    }

    100% {
        transform: translate(0, 0);
    }
}

@keyframes pulse3 {
    0% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(10px, -10px);
    }

    100% {
        transform: translate(0, 0);
    }
}

@keyframes pulse4 {
    0% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(25px, -25px);
    }

    100% {
        transform: translate(0, 0);
    }
}

@keyframes pulse5 {
    0% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(45px, -45px);
    }

    100% {
        transform: translate(0, 0);
    }
}

.circle {
    position: fixed;
    inset: 0 0 0 0;
    background-color: black;
    display: flex;
    justify-content: center;
    align-items: center;

    .ani {
        position: absolute;
        top: 50%;
        left: 50%;
        width: 40vw;
        transform: translate(-50%, -50%);
        aspect-ratio: 1;
        stroke-dasharray: 4134;
        stroke-dashoffset: 4134;
        scale: 1;
        transform-origin: center;
        /* transition: stroke-dashoffset 3.5s ease-in-out; */
        animation:
            rotate 3s linear forwards,
            loop 2s linear forwards,
            shrink 3s ease forwards 2.05s;
    }

}

@keyframes rotate {
    to {
        transform: translate(-50%, -50%) rotate(-720deg);
    }
}

@keyframes loop {
    to {
        /* stroke-dashoffset: 4134; */
        stroke-dashoffset: 0;
    }
}

@keyframes shrink {
    0% {
        transform: translate(-50%, -50%) scale(1);
    }

    7% {
        transform: translate(-50%, -50%) scale(1.03);
    }

    35% {
        transform: translate(-50%, -50%) scale(.68);
    }

    40% {
        transform: translate(-50%, -50%) scale(.62);
    }

    41% {
        transform: translate(-50%, -50%) scale(.63);
    }

    45% {
        transform: translate(-50%, -50%) scale(.58);
    }

    50% {
        transform: translate(-50%, -50%) scale(.54);
    }

    51% {
        transform: translate(-50%, -50%) scale(.55);
    }

    55% {
        transform: translate(-50%, -50%) scale(.5);
    }

    60% {
        transform: translate(-50%, -50%) scale(.3);
    }

    90% {
        transform: translate(-50%, -50%) scale(.2);
    }

    /* 
    80%{
        transform: translate(-50%, -50%) scale(.68);
    }
    85%{
        transform: translate(-50%, -50%) scale(.62);
    }
    86%{
        transform: translate(-50%, -50%) scale(.63);
    }
    90%{
        transform: translate(-50%, -50%) scale(.58);
    }
    95%{
        transform: translate(-50%, -50%) scale(.54);
    }
    96%{
        transform: translate(-50%, -50%) scale(.55);
    } */
    100% {
        transform: translate(-50%, -50%) scale(.3);
    }
}



.floating-img.xxlarge svg,
.floating-img.xxlarge img {
    max-height: 350px;
    max-width: 350px;
}

.floating-img.adaptive img {
    width: 100%;
}

.floating-img.left {
    left: 25%;
}

.floating-img.middle {
    left: 50%;
}

.floating-img.center {
    top: 50%;
}

.floating-img.right {
    right: 25%;
}

.floating-img.left.far {
    left: 12.5%;
}

.floating-img.right.far {
    right: 12.5%;
}

.floating-img.left.extreme {
    left: 0;
}

.floating-img.right.extreme {
    right: 0;
}

.floating-img.translated {
    transform: translateY(-100%);
}

.floating-img.forground {
    z-index: 2;
}

.floating-img.background {
    z-index: -2;
}

/* ANIMATIONS */

.toOrigin {
    animation: translateToOrigin linear forwards;
    animation-timeline: view();
    animation-range: -400px 200px;
}

.fromOrigin {
    animation: translateFromOrigin linear forwards;
    animation-timeline: view();
}

@keyframes translateFromOrigin {
    to {
        transform: translateY(200px);
    }
}

@keyframes translateToOrigin {
    to {
        transform: translateY(0px);
    }
}

@media (min-width: 500px) {
    .disposable-small {
        display: none;
    }

    .disposable-big {
        display: block;
    }
}

@media (max-width: 500px) {
    .disposable-small {
        display: block;
    }

    .disposable-big {
        display: none;
    }
}

@media (max-width: 400px) {
    .jrl-logo {
        height: 50px;
    }
}

/* ===== GALLERY PAGE ===== */
.gallery-section {
    background-color: var(--blue);
    position: relative;
    color: white;
}

.gallery-page-subtitle {
    max-width: 680px;
    margin-inline: auto;
    margin-bottom: 3rem;
}

.gallery-filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 3rem;
}

.gallery-filter-btn {
    padding: 0.6em 1.8em;
    border-radius: 10px;
    border: none;
    border-bottom: 3px solid transparent;
    font-family: lilitaOne, sans-serif;
    font-size: 1rem;
    color: white;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.2s ease;
    opacity: 0.5;
}

.gallery-filter-btn.active,
.gallery-filter-btn:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.gallery-filter-btn.pink {
    background-color: var(--pink);
    border-bottom-color: var(--darker-pink);
}

.gallery-filter-btn.blue {
    background-color: var(--blue);
    border-bottom-color: var(--darker-blue);
}

.gallery-filter-btn.green {
    background-color: var(--green);
    border-bottom-color: var(--darker-green);
    color: var(--dark-font);
}

.gallery-filter-btn.purple {
    background-color: var(--purple);
    border-bottom-color: var(--darker-purple);
}

.gallery-filter-btn.teal {
    background-color: var(--teal);
    border-bottom-color: var(--darker-teal);
}

.gallery-filter-btn.yellow {
    background-color: var(--yellow);
    border-bottom-color: var(--darker-yellow);
    color: var(--dark-font);
}

.photo-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 20px;
    padding-bottom: 4rem;
    justify-content: center;
}

.gallery-item {
    position: relative;
    border-radius: 25px;
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
    background-color: var(--default-background-darker);
}

.gallery-item.hidden {
    display: none;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    display: block;
}

.gallery-item:hover img {
    transform: scale(1.06);
}

.gallery-item-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent 55%, rgba(0, 0, 0, 0.52));
    display: flex;
    align-items: flex-end;
    padding: 1rem 1.2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-item-overlay {
    opacity: 1;
}

.gallery-item-label {
    color: white;
    font-family: lilitaOne, sans-serif;
    font-size: 1rem;
}

/* Lightbox */
.gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.gallery-lightbox[data-state="open"] {
    display: flex;
}

.gallery-lightbox[data-state="closed"] {
    display: none;
}

.gallery-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(6px);
}

.gallery-lightbox-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    width: 100%;
    height: 100%;
    padding: 5rem 1.5rem 3.5rem;
    box-sizing: border-box;
}

.gallery-lightbox-inner img {
    max-width: calc(100% - 160px);
    max-height: 80vh;
    object-fit: contain;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    flex-shrink: 1;
}

.gallery-lightbox-close {
    position: absolute;
    top: 1.2rem;
    right: 1.5rem;
    background: white;
    border: none;
    border-radius: 50%;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease;
    color: var(--dark-font);
    border-bottom: 3px solid var(--light-font);
    flex-shrink: 0;

    svg {
        width: 22px;
        height: 22px;
    }
}

.gallery-lightbox-close:hover {
    transform: scale(1.1);
}

.gallery-lightbox-nav {
    background: white;
    border: none;
    border-radius: 50%;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
    color: var(--dark-font);
    flex-shrink: 0;
    border-bottom: 3px solid var(--light-font);

    svg {
        width: 26px;
        height: 26px;
    }
}

.gallery-lightbox-nav:hover {
    transform: scale(1.1);
    background-color: var(--blue);
    border-bottom-color: var(--darker-blue);
    color: white;
}

.gallery-lightbox-counter {
    position: absolute;
    bottom: 1.2rem;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-family: lilitaOne, sans-serif;
    font-size: 1rem;
    background: rgba(0, 0, 0, 0.45);
    padding: 0.3em 1.2em;
    border-radius: 20px;
    white-space: nowrap;
}

@media (max-width: 800px) {
    .top-menu {
        justify-content: end;
    }

    .carrousel-alt-section {
        display: flex !important;
    }

    .gallery-preview-section-alt {
        display: flex;
    }

    #alt-menu-icon {
        display: block;
    }

    .alternate-menu {
        display: flex !important;
        width: fit-content !important;
    }

    .menu-div {
        display: none !important;
    }

    .disposable {
        display: none !important;
    }

    .hero-section h1,
    .intro-banner h1 {
        font-size: 2.5rem;
    }

    .jrl-logo {
        height: 80px;
    }

    .gallery-lightbox-nav {
        width: 42px;
        height: 42px;
    }

    .gallery-lightbox-inner img {
        max-width: calc(100% - 120px);
        max-height: 72vh;
    }

    .photo-gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 14px;
    }
}

@media (min-width: 800px) {
    .gallery-preview-section-alt {
        display: none;
    }
}

.test {
    width: 100%;
}

/* ===== SECTIONS, SECOND PASS ===== */
.intro-banner {
    height: 65dvh;

    h1 {
        margin: 0;
        font-size: clamp(2.75rem, 1.8rem + 3vw, 4.5rem);
        text-shadow: 0 4px 0 #29A6D866;
    }
}

/* Banner followed by another blue section (calendar, gallery): one blue area, no band of clouds between */
.intro-banner.continued {
    height: auto;
    padding: 12rem 0 2rem;
}

.intro-banner.continued+.section {
    margin-top: 0;
}

.gallery-section {
    display: flow-root;
}

.gallery-section .wrapper.padding-top {
    padding-top: 2rem;
}

.calendar-section.padding-top {
    padding-top: 5rem;
}

.section-title,
#home h1 {
    font-size: clamp(2rem, 1.5rem + 1.5vw, 2.75rem);
}

#home .hero-section h1 {
    font-size: 60px;
}

/* About: vision and mission fit their text */
.vision-section .subsection {
    gap: 40px;

    .card {
        flex: 1 1 380px;
        max-width: 540px;
        aspect-ratio: auto;
        margin: 0;
        padding: 3rem;

        h1 {
            margin-bottom: .75rem;
        }

        p {
            margin: 0;
            line-height: 1.6;
        }
    }
}

/* About: our values */
.values-intro {
    max-width: 640px;
    margin: 0 auto 3rem;
    text-align: center;

    .section-title {
        margin-bottom: .5rem;
    }

    p {
        margin: 0;
        font-size: 1.1rem;
    }
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
}

.value-card {
    padding: 2rem 2rem 1.75rem;
    border-radius: 25px;
    background-color: #FFE5DA;
    border-bottom: 10px solid #FFBFA5;
    transition: transform .3s ease;

    h2 {
        margin: 1.25rem 0 .5rem;
    }

    p {
        margin: 0;
        line-height: 1.55;
    }
}

.value-card:hover {
    transform: translateY(-6px);
}

.value-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 72px;
    height: 72px;
    border-radius: 20px;
    border-bottom: 6px solid;

    svg {
        width: 42px;
        height: 42px;
    }

    svg [fill="#383838"] {
        fill: white;
    }

    svg [stroke="#383838"] {
        stroke: white;
    }
}

.value-icon.purple,
.step-number.purple {
    background-color: var(--purple);
    border-color: var(--darker-purple);
}

.value-icon.blue {
    background-color: var(--blue);
    border-color: var(--darker-blue);
}

.value-icon.green {
    background-color: var(--green);
    border-color: var(--darker-green);
}

.value-icon.yellow {
    background-color: var(--yellow);
    border-color: var(--darker-yellow);
}

.value-icon.teal,
.step-number.teal {
    background-color: var(--teal);
    border-color: var(--darker-teal);
}

.value-icon.pink,
.step-number.pink {
    background-color: var(--pink);
    border-color: var(--darker-pink);
}

@media (max-width: 1000px) {
    .values-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Home: "Nos services", an icon, a title and a line each */
.services-section {
    align-items: stretch;

    /* As tall as their text (the cards are square otherwise); a row's cards share the tallest height */
    .card.service-card {
        height: auto;
        aspect-ratio: auto;
        padding: 2rem 1.75rem 2.25rem;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        text-align: center;
        color: white;

        h2 {
            margin: 1.25rem 0 .5rem;
        }

        p {
            margin: 0;
            line-height: 1.5;
        }

        /* Over the 80px of the icons alone */
        .service-icon svg {
            width: 42px;
            height: 42px;
        }
    }

    /* The yellow is too light for white text */
    .card.service-card.yellow {
        color: var(--regular-text-color);

        .service-icon svg [stroke="white"] {
            stroke: var(--regular-text-color);
        }

        .service-icon svg [fill="#383838"] {
            fill: var(--regular-text-color);
        }
    }
}

.services-more {
    margin-top: 3rem;
}

/* Services page: the intro, then one row per service, photo and text sides alternating */
.services-intro {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.service-rows {
    display: flex;
    flex-direction: column;
    gap: 5rem;
}

.service-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 4rem;
}

.service-row:nth-child(even) .service-photo {
    order: 2;
}

.service-photo {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 25px;
}

.service-detail {
    h2 {
        margin: 1.25rem 0 .5rem;
    }

    p {
        margin: 0 0 1rem;
        line-height: 1.55;
    }

    ul {
        margin: 0;
        padding-left: 1.2rem;
        font-family: var(--regular-text);
        line-height: 1.55;
    }

    li+li {
        margin-top: .35rem;
    }
}

/* A day at the garderie: the hours on a line */
.day-section {
    text-align: center;
}

.day-timeline {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    margin-top: 2.5rem;
}

.day-step {
    padding: 1.5rem 1rem;
    border-radius: 20px;
    background-color: #FFE5DA;
    border-bottom: 6px solid #FFBFA5;

    p {
        margin: .5rem 0 0;
    }
}

.day-time {
    font-family: var(--specialFont);
    font-size: 1.5rem;
    color: var(--darker-pink);
}

.service-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 72px;
    height: 72px;
    flex-shrink: 0;
    border-radius: 20px;
    background-color: #ffffff38;

    svg {
        width: 42px;
        height: 42px;
    }

    svg [fill="#383838"] {
        fill: white;
    }
}

/* Inscription: the three steps */
.steps {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 1.5rem 0;
}

.step {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: .9rem 1.25rem;
    border-radius: 18px;
    background-color: #ffffff2e;

    p {
        margin: 0;
        font-size: 1.05rem;
    }
}

.step-number {
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    border-bottom: 4px solid;
    color: white;
    font-family: var(--specialFont);
    font-size: 1.4rem;
}

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

/* ===== CONSISTENCY PASS ===== */
/* Top menu: the hidden phone button no longer takes room, so the links stay clear of the logo */
@media (min-width: 801px) {
    .top-menu>.alternate-menu {
        display: none;
    }
}

.menu-div {
    gap: clamp(1.25rem, 2.4vw, 3rem);

    h2 {
        font-size: clamp(1.05rem, 1.65vw, 1.5rem);
    }
}

/* Narrow screens that still show the links: the logo keeps its own width, the links get the rest */
@media (min-width: 801px) and (max-width: 1000px) {
    .top-menu div:nth-child(1) {
        width: auto;
        flex-shrink: 0;
        padding-right: 1.5rem;
    }

    .menu-div {
        flex: 1;
        gap: 1rem;

        h2 {
            font-size: 1rem;
        }
    }
}

/* Banners followed by a blue section: the title at the same height as on the other pages */
.intro-banner.continued {
    padding-top: calc(32.5dvh - 2.5rem);
}

/* Gallery: as much room under the title as the calendar */
.gallery-section .wrapper.padding-top {
    padding-top: 5rem;
}

.gallery-section .wrapper>.section {
    margin-top: 0;
}

/* Gallery filters: the inactive ones stay readable on the blue */
.gallery-filter-btn {
    opacity: 1;
}

.gallery-filter-btn:not(.active):not(:hover) {
    background-color: #ffffffd9;
    border-bottom-color: #4d39331f;
    color: var(--regular-text-color);
}

/* Home: the three cards fit their text, the same height on a row */
.cards-section {
    align-items: stretch;
    justify-content: center;
    gap: 2.5rem;

    .card {
        aspect-ratio: auto;
        margin: 0;
        padding: 2.5rem 2rem;

        h2 {
            margin-bottom: .75rem;
        }

        p {
            margin: 0;
            line-height: 1.5;
        }
    }
}

/* Home: the programme intro reads on one column, clear of the clouds */
.program-section>.wrapper p {
    max-width: 720px;
    margin-inline: auto;
    font-size: 1.1rem;
}

/* Home: service cards in dark text like the three cards above (white was too faint on green, teal, blue) */
.services-section .card.service-card {
    color: var(--regular-text-color);

    .service-icon svg [stroke="white"] {
        stroke: var(--regular-text-color);
    }

    .service-icon svg [fill="#383838"] {
        fill: var(--regular-text-color);
    }
}

/* Section intros (services, contact, values): one title size, the text right under it */
.services-intro .section-title,
.contact-intro h1 {
    font-size: clamp(2rem, 1.5rem + 1.5vw, 2.75rem);
    margin-bottom: .5rem;
}

.services-intro.section {
    max-width: 640px;
}

.services-intro p {
    margin: 0;
    font-size: 1.1rem;
}

.form-section.padding-bottom {
    padding-bottom: 4rem;
}

/* About: its last blue section runs into the blue footer */
#about>.image-layer>.section.padding-bottom:last-child {
    padding-bottom: 12dvh;
}

/* Footer: the send button lines up with the fields */
.footer-form .button-div {
    justify-content: flex-start;
}

/* ===== PHONES ===== */
@media (max-width: 800px) {
    .section {
        margin: 3.5rem 0;
    }

    .section-title {
        margin-bottom: 1.5rem;
    }

    .padding-top {
        padding-top: 22dvh;
    }

    .padding-bottom {
        padding-bottom: 18dvh;
    }

    .wrapper {
        width: min(1300px, 90%);
    }

    .intro-banner {
        height: 55svh;
        min-height: 340px;
        padding-top: 40px;
    }

    .hero-section {
        height: 100svh;
    }

    #home .hero-section h1 {
        font-size: 2.5rem;
    }

    /* Text and pictures side by side become one column */
    .dual-subsection {
        gap: 1.5rem;

        .subsection {
            width: 100%;
        }

        .text {
            padding: 0;
        }
    }

    .dual-subsection .text.card {
        padding: 2.5rem 1.5rem;
    }

    .corner-img {
        display: none;
    }

    /* Home: the three cards fit their text */
    .cards-section {
        gap: 1.5rem;
        padding-top: 90px;

        .card {
            width: 100%;
            aspect-ratio: auto;
            margin: 0;
            padding: 2rem 1.5rem;

            h2 {
                margin-bottom: .5rem;
            }

            p {
                margin: 0;
            }
        }
    }

    .card-text {
        width: 100%;
    }

    /* Home: our programme */
    .program-section {
        min-height: 0;
        padding-top: 22dvh;
        padding-bottom: 16dvh;
    }

    .program-section>.wrapper {
        padding-top: 120px;

        .floating-img.xxlarge img {
            max-width: 170px;
            max-height: 170px;
        }

        .floating-img.right {
            display: none;
        }

        .floating-img.left {
            transform: translateY(-20px) !important;
        }
    }

    .program-subsection {
        width: 92%;
        grid-template-columns: 1fr;
        gap: 0;
        margin-top: 1.5rem;
        margin-bottom: 120px;

        >.floating-img.top {
            display: none;
        }
    }

    .program-card {
        padding: 1.25rem .5rem;

        p {
            margin-bottom: 0;
        }
    }

    .program-icon-title svg {
        height: 3rem;
        width: 3rem;
        margin-right: 1rem;
    }

    /* Services page: photo above its text, the day two hours a row */
    .service-rows {
        gap: 3rem;
    }

    .service-row {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .service-row:nth-child(even) .service-photo {
        order: 0;
    }

    .day-timeline {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    /* Home: services one a row */
    .services-section {
        grid-template-columns: 1fr;
        gap: 16px;

        .card.service-card {
            padding: 1.5rem;
            border-radius: 20px;
            border-bottom-width: 6px;

            h2 {
                margin-top: 1rem;
            }

            .service-icon {
                width: 58px;
                height: 58px;
                border-radius: 16px;
            }

            .service-icon svg {
                width: 34px;
                height: 34px;
            }
        }

        .floating-img.medium img {
            max-width: 60px;
            max-height: 60px;
        }
    }

    /* About: vision and mission */
    .vision-section .subsection {
        padding: 18dvh 0;
        gap: 1.5rem;

        .card {
            width: 100%;
            aspect-ratio: auto;
            margin: 0;
            padding: 2rem 1.5rem;
        }
    }

    /* About: values, one a row */
    .values-intro {
        margin-bottom: 2rem;
    }

    .values-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .value-card {
        padding: 1.5rem;
    }

    .value-icon {
        width: 58px;
        height: 58px;
        border-radius: 16px;

        svg {
            width: 34px;
            height: 34px;
        }
    }

    .intro-banner.continued {
        padding: 8rem 0 1rem;
    }

    .calendar-section.padding-top {
        padding-top: 3rem;
    }

    .vision-section .subsection .card {
        padding: 2rem 1.5rem;
    }

    .section:has(> .section-title)>.floating-img {
        display: none;
    }

    .dual-subsection .text.subsection>.floating-img {
        display: none;
    }

    /* About: the cloud under vision and mission gets its own room */
    .vision-section .subsection {
        padding-bottom: 240px;

        >.floating-img.middle img {
            max-width: 220px;
        }
    }

    /* Gallery: two photos a row */
    .photo-gallery-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .gallery-item {
        border-radius: 16px;
    }

    /* Inscription: the steps */
    .video-player-section .dual-subsection {
        width: 90%;
    }

    .video-player {
        width: 90vw;
    }

    /* Home: testimonials */
    .carrousel-alt-section .card:not(.arrow) {
        aspect-ratio: auto;
        padding: 2.5rem 10px;
    }

    /* Contact */
    .contact-intro {
        margin-bottom: 2rem;

        p {
            font-size: 1rem;
        }
    }

    .contact-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .contact-cards {
        gap: 14px;
    }

    .contact-card {
        gap: 1rem;
        padding: 1rem 1.1rem;

        h2 {
            font-size: 1.2rem;
        }
    }

    .contact-icon {
        width: 52px;
        height: 52px;
        border-radius: 14px;

        svg {
            width: 30px;
            height: 30px;
        }
    }

    .contact-map {
        min-height: 300px;

        .floating-img.medium img {
            max-width: 64px;
            max-height: 64px;
        }
    }

    .form {
        padding: 2rem 1.25rem;
    }

    .checkbox-div {
        width: 100%;
    }

    /* Footer: links and hours side by side, the rest full width */
    .footer-section {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-auto-flow: dense;
        gap: 2rem 1rem;
        padding: 3.5rem 6% 3rem;
    }

    .footer-subsection {
        padding-right: 0;
        min-width: 0;

        h2 {
            font-size: 1.3rem;
            margin-bottom: .75rem;
        }


        .list-head {
            width: 8ch;
            margin-right: .5rem;
        }
    }

    .footer-subsection:nth-child(3) .custom-list div {
        white-space: nowrap;
        font-size: .95rem;
    }

    .footer-subsection:nth-child(2),
    .footer-subsection:nth-child(4) {
        grid-column: 1 / -1;
    }

    .input-container-footer .input {
        min-width: 0;
    }

    .copyright-section {
        padding-bottom: 6rem;
    }

    footer>.floating-img {
        left: 50%;
        transform: translate(-50%, 8px) !important;
    }

    /* Consistency pass */
    .intro-banner.continued {
        min-height: 0;
        padding-top: 15rem;
        padding-bottom: 3rem;
    }

    .gallery-section .wrapper.padding-top {
        padding-top: 3rem;
    }

    .program-section>.wrapper {
        padding-top: 170px;

        p {
            font-size: 1rem;
        }
    }

    .cards-section {
        gap: 1.5rem;

        .card {
            padding: 2rem 1.5rem;
        }
    }

    .services-intro p {
        font-size: 1rem;
    }
}

/* ===== RESPONSIVE FIXES ===== */
/* .section's vertical margin was wiping .wrapper's auto side margins, so "wrapper section" blocks sat to the left */
.wrapper.section {
    margin-inline: auto;
}

/* Footer hours: two real columns sized to their text, so "Fermé" lines up with the hours and nothing gets cut */
.footer-subsection:nth-child(3) .custom-list {
    display: grid;
    grid-template-columns: max-content max-content;
    column-gap: 1.5rem;

    div {
        display: contents;
    }

    .list-head {
        width: auto;
        margin: 0;
    }
}

@media (max-width: 800px) {
    .footer-subsection:nth-child(3) .custom-list {
        column-gap: .75rem;
    }
}

/* Narrow phones: half the footer is too small for the hours, so they get the whole row */
@media (max-width: 420px) {
    .footer-section .footer-subsection:nth-child(3) {
        grid-column: 1 / -1;
    }
}

/* Tablets and small laptops: content keeps a real side margin instead of touching the screen edge */
@media (min-width: 801px) {
    .wrapper {
        width: min(1300px, 100% - 2 * clamp(1.5rem, 4vw, 3rem));
    }
}

/* Until the side margins are wide enough, the small edge decorations only showed as a sliver cut by the screen */
@media (min-width: 801px) and (max-width: 1250px) {
    .floating-img.extreme.disposable {
        display: none;
    }
}

/* Phones: forms and the calendar use the same side margin as the rest of the page */
@media (max-width: 800px) {
    .form {
        width: 90%;
    }

    .wrapper .form {
        width: 100%;
    }

    .calendar-grid {
        width: 90%;
    }

    /* About: smaller gap between the quote and "Nos valeurs" (the inline 15vh was made for desktop) */
    .values-section {
        padding-top: 1rem !important;
    }
}

/* Phones: logo on the left of the top bar, menu button on the right */
@media (max-width: 800px) {
    .top-menu {
        justify-content: space-between;
        align-items: center;
    }

    .top-menu>div.top-logo {
        display: flex !important;
        width: auto;
        justify-content: flex-start;
    }

    .top-menu .top-logo .jrl-logo {
        height: 44px;
    }
}

/* ===== PHONE MENU ===== */
/* Sky blue like the banners, so the menu stands out from the page behind it */
#alt-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    /* the height you can actually see on a phone (100vh goes behind the browser bar, so the bottom could not be scrolled to) */
    height: 100dvh;
    z-index: 51;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #69C3E7;
    transition: transform .8s var(--animation-behavior-fast-to-slow);
    overflow-y: auto;

    .alt-menu-logo .jrl-logo {
        height: 75px;
        margin-bottom: 15px;
    }

    .logo-text path {
        fill: white;
    }

    .custom-list {
        display: flex;
        flex-direction: column;
        gap: 18px;
        width: min(430px, 65%);
    }

    /* Each link is a peach card with a darker peach bottom edge */
    .custom-list a {
        display: block;
        width: 100%;
        text-align: center;
        font-family: var(--specialFont);
        color: var(--regular-text-color);
        background-color: #FFE5DA;
        padding: 0.8em 3em;
        border-radius: 10px;
        border-style: solid;
        border-width: 0px 0px 3px 0px;
        border-color: #FFBFA5;
        opacity: 0;
        transform: translateX(40px);
        transition:
            opacity .4s ease,
            transform .5s var(--animation-behavior-fast-to-slow),
            background-color .3s ease,
            color .3s ease;
    }

    /* The page you are on */
    .custom-list a.current {
        color: white;
        background-color: var(--pink);
        border-color: var(--darker-pink);
    }

    .bottom-cloud, .top-cloud{
        position: absolute;
        left: 0;
        width: 100%;
        z-index: -5;
    }
    
    .top-cloud{
        top: 0;
    }

    .bottom-cloud{
        bottom: 0;
    }
}

#alt-menu[data-state="closed"] {
    transform: translateX(100%);
}

#alt-menu[data-state="open"] {
    transform: translateX(0);
}

#close-menu-btn {
    color: white;
    cursor: pointer;
}

/* Links slide in one after the other when the menu opens */
#alt-menu[data-state="open"] .custom-list a {
    opacity: 1;
    transform: translateX(0);
}

#alt-menu[data-state="open"] .custom-list div:nth-child(1) a {
    transition-delay: .25s, .25s, 0s, 0s;
}

#alt-menu[data-state="open"] .custom-list div:nth-child(2) a {
    transition-delay: .3s, .3s, 0s, 0s;
}

#alt-menu[data-state="open"] .custom-list div:nth-child(3) a {
    transition-delay: .35s, .35s, 0s, 0s;
}

#alt-menu[data-state="open"] .custom-list div:nth-child(4) a {
    transition-delay: .4s, .4s, 0s, 0s;
}

#alt-menu[data-state="open"] .custom-list div:nth-child(5) a {
    transition-delay: .45s, .45s, 0s, 0s;
}

#alt-menu[data-state="open"] .custom-list div:nth-child(6) a {
    transition-delay: .5s, .5s, 0s, 0s;
}

#alt-menu[data-state="open"] .custom-list div:nth-child(7) a {
    transition-delay: .55s, .55s, 0s, 0s;
}
/* ===== CALENDAR EVENTS ===== */
/* The events of a day (the card grows with them, scrolls when there are many) */
.event-preview-section .card {
    aspect-ratio: auto;
    min-height: 200px;
    max-height: 80dvh;
    width: min(600px, 90%);
    box-sizing: border-box;
    padding: 60px 65px 45px;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    overflow-y: auto;
}

/* Several events on the same day follow each other */
.event-preview-list {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    text-align: left;
}

.event-preview-item {
    h2 {
        margin: 0;
        font-size: 2rem;
        line-height: 1.1;
        text-align: left;
    }

    hr {
        margin: 1.5rem 0;
        border: none;
        border-top: 1px solid #C9B8B1;
    }
}

/* Date and time, under the name */
.event-preview-meta {
    margin: 0;
    color: #8C7F7A;
    line-height: 1.25;
}

.event-preview-description {
    margin: 0;
    color: var(--regular-text-color);
}

/* "Ajouter à mon calendrier", then the choice of calendar under it */
.event-add {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .75rem;
    margin-top: 2rem;

    .button {
        cursor: pointer;
    }
}

.event-add-options {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .6rem;

    .button {
        padding: .6em 1.4em;
    }

    .button:hover {
        padding: .6em 1.6em;
    }
}

.event-add-options[hidden] {
    display: none;
}

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

@media (max-width: 500px) {
    .event-preview-section .card {
        padding: 60px 25px 35px;
    }

    .event-preview-item h2 {
        font-size: 1.6rem;
    }
}

/* No month before January of this year */
#calendar-prev[data-disabled="true"] {
    opacity: .35;
    pointer-events: none;
}

#next-event-date[hidden] {
    display: none;
}

/* "À venir": the next event's picture takes the place of the usual photo, cropped to the same square */
#next-event-image {
    aspect-ratio: 1;
    object-fit: cover;
}
