/* ---------------------------- */
/*      FONTS                  */
/* ---------------------------- */
@font-face {
    font-family: 'OverusedGrotesk';
    src: url('fonts/OverusedGrotesk-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'OverusedGrotesk';
    src: url('fonts/OverusedGrotesk-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'HankenGrotesk';
    src: url('fonts/HankenGrotesk-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* ---------------------------- */
/*      VARIABLES & BASE        */
/* ---------------------------- */
html {
    --green: #24B464;
    --blue: #02AEF0;
    --yellow: #FF943D;
    --black: #2c2c2c;
    --white: #FFF;
    --lightgreen: #defdea;
    --lightblue: #DDF6FF;
    --lightyellow: #FFFCF0;
    scroll-behavior: smooth;
}

* {
    box-sizing: border-box;
}

body {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: "HankenGrotesk", sans-serif;
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--black);
    background-color: var(--white);
    overflow-x: hidden;
    scroll-behavior: smooth;
    background-color: var(--lightgreen);
    width: 100vw;
    transition: all 0.5s ease;
    overflow: hidden;
}

ul {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    margin: 3rem 12rem;
    list-style: none;
    text-align: center;
}

li a {
    text-transform: uppercase;
    font-weight: 700;
    font-size: 1rem;
    padding: .5rem 1.5rem;
    transition: all 0.3s ease;

}

li a:hover {
    background-color: var(--green);
    color: var(--white);
}

li:nth-child(3n + 2) a:hover {
    background-color: var(--blue);
}

li:nth-child(3) a:hover {
    background-color: var(--yellow);
}

a {
    text-decoration: none;
    color: inherit;
}

main {
    display: flex;
    flex-direction: column;
    margin-top: 10rem;
    transition: all 0.5s ease;
}

section {
    display: grid;
    grid-template-columns: repeat(14, 1fr);
    column-gap: 1.2rem;
    position: relative;
    align-items: center;
    margin-bottom: 15rem;
    z-index: 2;
    align-items: start;
    min-height: 100vh;
}

p {
    margin: 0 0 1rem;
}

.content {
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    column-gap: 1.2rem;
    gap: 1rem;
    grid-column: 4 / 10;
}

section:nth-child(even) .content {
    grid-column: 7 / 14;
}


.text {
    grid-column: 1 / 4;
    display: flex;
    flex-direction: column;
    gap: .5rem;
    z-index: 5;
}

section:nth-child(even) .text {
    grid-column: 3 / 6;
}

.photo {
    position: absolute;
    grid-column: 8 / 16;
    width: 100%;
    z-index: 3;
}

.photo img {
    width: 100%;
    height: auto;
    z-index: 2;
}


section:nth-child(even) .photo {
    position: absolute;
    grid-column: 1 / 8;
    left: 0;
}

/* ---------------------------- */
/*      TITRES                 */
/* ---------------------------- */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "OverusedGrotesk", sans-serif;
    font-weight: 500;
    text-transform: uppercase;
    margin: 0;
    padding: 0;
}

h1 {
    font-size: 4.5rem;
    line-height: 90%;
    font-weight: 600;
    margin-top: 5rem;
    margin-bottom: 3rem;
    z-index: 5;
    text-align: end;
    grid-column: 1 / 7;
}

section:nth-child(even) h1 {
    text-align: start;
    grid-column: 1 / 7;
}

h2 {
    font-size: 1.5rem;
}

/* ---------------------------- */
/*      SECTION CORRIDOR        */
/* ---------------------------- */

.corridor {
    margin-bottom: 5rem;
}

.corridor-list {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.corridor-list div p {
    position: relative;
    padding-left: 2.5rem;
}

.corridor-list div p::before {
    content: "";
    display: inline-block;
    width: 28px;
    height: 20px;
    position: absolute;
    top: 0.3rem;
    left: 0;
    background: url("data:image/svg+xml;utf8,<svg width='17' height='12' viewBox='0 0 17 12' fill='none' xmlns='http://www.w3.org/2000/svg'><path d='M7.60001 11.704L11.723 6.973H0V4.731H11.723L7.60001 0H11.02L16.226 5.852L11.02 11.704H7.60001Z' fill='%232c2c2c'/></svg>") no-repeat center / contain;
}



/* ---------------------------- */
/*      SECTION utilite        */
/* ---------------------------- */

.utilite {
    margin-top: 12%;
}

.utilite .corridor-list div p::before {
    background: url("data:image/svg+xml;utf8,<svg width='17' height='12' viewBox='0 0 17 12' fill='none' xmlns='http://www.w3.org/2000/svg'><path d='M7.60001 11.704L11.723 6.973H0V4.731H11.723L7.60001 0H11.02L16.226 5.852L11.02 11.704H7.60001Z' fill='%232c2c2c'/></svg>") no-repeat center / contain;
}

/* ---------------------------- */
/*      SECTION histoire        */
/* ---------------------------- */

.histoire {
    margin-top: 0%;
}

/* ---------------------------- */
/*      SECTION canal        */
/* ---------------------------- */

.canal {
    margin-top: 0rem;
}

.canal article {
    grid-column: 5 / 16 !important;
    grid-template-columns: repeat(10, 1fr);
}

.canal .text {
    grid-column: 5 / 8 !important;
}

/* ---------------------------- */
/*      SECTION marais        */
/* ---------------------------- */

.marais {
    margin-top: 17rem;
}

/* ---------------------------- */
/*      SECTION ennjeu        */
/* ---------------------------- */

.enjeu {
    margin-top: -5rem;
}

.enjeu article {
    grid-column: 5 / 16 !important;
    grid-template-columns: repeat(10, 1fr);
}

.enjeu .text {
    grid-column: 5 / 8 !important;
}

/* ---------------------------- */
/*      SVG BACKGROUND          */
/* ---------------------------- */
svg {
    z-index: 1;
}

#svg1 {
    position: absolute;
    right: 16%;
    top: 75%;
    width: 100vw;
    fill: var(--green);
    z-index: -1;
}

#svg2 {
    position: absolute;
    left: 0;
    top: 20%;
    width: 100vw;
    fill: var(--green);
    z-index: -1;
}

#svg3 {
    position: absolute;
    right: 0;
    top: 15%;
    z-index: -1;
    width: 100vw;
    fill: var(--blue);
}

#svg4 {
    position: absolute;
    left: 0;
    top: 29%;
    z-index: -1;
    width: 100vw;
    fill: var(--yellow);
}

#svg5 {
    position: absolute;
    right: 0;
    top: 25%;
    z-index: -1;
    width: 100vw;
    fill: var(--green);
}


/* ---------------------------- */
/*      IFRAME                  */
/* ---------------------------- */

.canvas-container {
    width: 90%;
    z-index: 0;
    position: absolute;
    pointer-events: none;
}

.test {
    top: 84%;
    left: -4%;
}

.animal2 {
    top: 66%;
    left: -6%;
}

.frog {
    top: 68%;
    left: 65%;
}

.lbl {
    top: 68%;
    left: 10%;
}


/* ---------------------------- */
/*      Loading                 */
/* ---------------------------- */

.loading {
    width: 100vw;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
    background-color: var(--lightgreen);
    margin: 0;
    justify-content: center;
    align-items: center;
    transition: all 0.5s ease;
}

.loading video {
    width: 100vw;
    height: 100%;
    object-fit: cover;
}


/* ---------------------------- */
/*      Scroll up               */
/* ---------------------------- */
 
.scrollup {
    background-color: rgba(255, 255, 255, 0.753) !important;
    position: fixed;
    border-radius: 99%;
    width: 60px;
    height: 60px;
    cursor: pointer;
    display: block;
    align-items: center;
    justify-content: center;
    bottom: 25px;
    right: 30px;
    border: none;
    background: url("data:image/svg+xml;utf8,<svg width='17' height='12' viewBox='0 0 17 12' fill='none' xmlns='http://www.w3.org/2000/svg'><path d='M7.60001 11.704L11.723 6.973H0V4.731H11.723L7.60001 0H11.02L16.226 5.852L11.02 11.704H7.60001Z' fill='%232c2c2c'/></svg>") no-repeat center / contain;
    background-size: 60%;
    transform: rotate(-90deg);
    transition: all .5s ease;
    z-index: 999;
    transform-origin: center;
}
 
.scrollup:hover {
    transform: scale(1.5) rotate(-90deg);
    /* transition: all .5s ease ; */
 
}