* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    list-style: none;
}

html {
    scroll-behavior: smooth;
}

:root {
    --main-color-dark-green: #0e291c;
    --main-color-sandy-brown: #ffae52;
    --main-color-eggshell: #ede9d5;
    --main-color-jasper: #d94d45;
    --secondary-color-cactus: #506f5c;
    --secondary-color-garden: #9eac99;
    --secondary-color-sand: #f9c27e;
    --secondary-color-sunset: #f3d5a9;
}

@font-face {
    font-family: "LibreBaskerville-regular";
    src: url(../fonts/LibreBaskerville-Regular.ttf);
    font-display: swap;
}
@font-face {
    font-family: "LibreBaskerville-bold";
    src: url(../fonts/LibreBaskerville-Bold.woff2);
    font-display: swap;
}
@font-face {
    font-family: "Montserrat-regular";
    src: url(../fonts/static/Montserrat-Regular.woff2);
    font-display: swap;
}
@font-face {
    font-family: "Montserrat-medium";
    src: url(../fonts/static/Montserrat-Medium.woff2);
    font-display: swap;
}

/* ::selection {
  color: var(--main-color-eggshell);
  background-color: var(--secondary-color-garden);
} */

body {
    font-family: "Montserrat-regular", "Gill Sans", "Gill Sans MT", Calibri,
        "Trebuchet MS", sans-serif, Geneva, Verdana, sans-serif;
    background-color: #fff;
}

h1,
h2,
h3,
.card-number {
    font-family: "LibreBaskerville-bold", "Gill Sans", "Gill Sans MT", Calibri,
        "Trebuchet MS", sans-serif, Geneva, Verdana, sans-serif;
}

h2 {
    font-size: clamp(27px, 2.5vw, 39px);
}

a,
a:visited {
    color: #101010;
    text-decoration: none;
}

.color {
    background: linear-gradient(180deg, #ffae52 0%, #d94d45 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.color2 {
    background: linear-gradient(180deg, #9eac99 0%, #0e291c 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

figure {
    text-align: center;
    margin-block: 4rem;
}

figcaption {
    font-style: italic;
}

/* *-----Button------------------------------------------------------ */

#btn-1,
#btn-2 {
    border-radius: 30px;
    padding: 15px 27px;
    border: 2px solid #fff;
    background: transparent;
    font-size: clamp(13px, 2vw, 14px);
    font-weight: 500;
    cursor: pointer;
    transition: 0.1s ease-out;
    width: fit-content;
    letter-spacing: 0.16px;
    user-select: none;
}

#btn-1 {
    color: white;
}

#btn-2 {
    color: var(--secondary-color-cactus);
    border: 2px solid var(--secondary-color-cactus);
    background-color: #fff;
}

#btn-1:hover {
    border: 2px solid var(--main-color-sandy-brown);
    background-color: var(--main-color-sandy-brown);
    color: var(--main-color-dark-green);
    transition: 0.1s ease-out;
}

#btn-2:hover {
    border: 2px solid var(--secondary-color-cactus);
    background-color: var(--secondary-color-cactus);
    color: var(--main-color-eggshell);
    transition: 0.1s ease-out;
}

.button {
    margin: 0 auto;
}

/* *----------------NAVBAR ------------------------------------------- */

nav {
    position: relative;
}

.nav-container-desktop {
    height: 80px;
    background-color: #fff;
}

.nav-container {
    height: 100%;
    width: 70%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nav-container > a {
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.nav-container a img {
    height: 60%;
}
.nav-container a:hover img:hover {
    filter: invert(65%) sepia(43%) saturate(579%) hue-rotate(349deg)
        brightness(103%) contrast(101%);
}
.liste-items {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.items {
    height: 100%;
    display: flex;
    align-items: center;
}

.items a,
.items span {
    font-family: "Montserrat-medium", "Gill Sans", "Gill Sans MT", Calibri,
        "Trebuchet MS", sans-serif;
    height: 100%;
    color: var(--main-color-dark-green);
    font-size: clamp(14px, 1vw, 17px);
    padding: 27px clamp(15px, 1.5vw, 30px);
    letter-spacing: 1px;
    transition: 0.05s ease-out;
    position: relative;
    user-select: none;
}

.items a:hover,
.items span:hover {
    background-color: var(--main-color-eggshell);
}

.items:nth-child(n + 4) a:hover,
.items:nth-child(4) a:hover {
    background-color: var(--main-color-sandy-brown);
}

/* -----second menu - sous liste ------------ */

.sous-liste {
    display: none;
    position: absolute;
    top: 80px;
    /* width: 11vw; */
    /* background-color: #fff; */
    flex-direction: column;
    z-index: 99;
    max-height: 148px;
}

.sous-liste-mobile {
    display: none;
}
.sous-liste-mobile.active {
    display: block;
}
.sous-liste-mobile.active li {
    padding-left: 20px;
}

.sous-liste .items-sous-liste:last-child a {
    box-shadow: 0 8px 8px rgba(0, 0, 0, 0.1);
}
.items-sous-liste {
    width: 100%;
}
.items-sous-liste a {
    display: flex;
    align-items: center;
    width: 100%;
    height: fit-content;
    background-color: #fff;
}

.items-sous-liste a:hover {
    background-color: var(--main-color-sandy-brown);
}

.items:has(a:hover) {
    background-color: var(--main-color-eggshell);
}

.items:hover > ul {
    display: flex;
    flex-direction: column;
}

.items-mobile:target > ul {
    display: block;
}

/* --BURGER ICON------------- */
.ham {
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: transform 400ms;
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
    z-index: 100;
}
.hamRotate.active {
    transform: rotate(45deg);
}
.hamRotate180.active {
    transform: rotate(180deg);
}
.line {
    fill: none;
    transition: stroke-dasharray 400ms, stroke-dashoffset 400ms;
    stroke: var(--main-color-eggshell);
    stroke-width: 5.5;
    stroke-linecap: round;
}
.line.active {
    stroke: var(--main-color-dark-green);
}
.ham1 .top {
    stroke-dasharray: 40 139;
}
.ham1 .bottom {
    stroke-dasharray: 40 180;
}
.ham1.active .top {
    stroke-dashoffset: -98px;
}
.ham1.active .bottom {
    stroke-dashoffset: -138px;
}

/* ! Test burger icon! */

.burger-icon {
    display: none;
    position: absolute;
    top: 20px;
    right: 15px;
    z-index: 101;
}

.burger-icon.active {
    position: fixed;
}

@media screen and (max-width: 1270px) {
    .nav-container {
        width: 90%;
    }
}

@media screen and (max-width: 940px) {
    .nav-container-desktop {
        display: none;
    }
    .nav-container {
        display: none;
    }

    .burger-icon {
        display: block;
    }
}

/* ----NAV BAR MOBILE--------------------- */

.navbar-container-mobile {
    position: fixed;
    top: 0;
    left: 0;
    background-color: #ffffff;
    height: 150vh;
    width: 100vw;
    padding: 35px;
    z-index: 100;
    background-image: linear-gradient(
            38deg,
            rgba(2, 0, 36, 1) 0%,
            rgba(80, 111, 92, 0.2) 5%,
            rgba(255, 255, 255, 1) 100%
        ),
        url(../img/cover.webp);
    background-repeat: no-repeat;
    background-position: 50% 50%;
    transition: 0.5s ease-out;
    transform: translateX(-100%);
}

.nav-container-mobile img {
    height: 60px;
}

.liste-items-mobile {
    padding-top: 20px;
    font-size: 25px;
}

.items-mobile {
    padding: 10px 0;
    margin: 5px 0;
    font-weight: 700;
    background: linear-gradient(180deg, #9eac99 0%, #0e291c 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.items-mobile a,
.items-mobile span {
    background: linear-gradient(180deg, #9eac99 0%, #0e291c 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    user-select: none;
    cursor: pointer;
}

.sous-liste-mobile a {
    font-weight: 500;
    font-size: 20px;
    padding: 15px 0;
}

.active-mobile {
    transform: translateX(0%);
}

/* *----HEADER -------------------------------- */

.header-main {
    background: url(../img/piisa_logo/backg1.webp) center/cover;
    min-height: calc(100dvh - 80px);
    /* min-height: 600px; */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    transition: background-position 0.4s ease-out;
}

.header-layout {
    height: 100%;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.header-container {
    width: 100%;
    height: 80%;
    min-height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 50px;
}

.header-container-logo {
    min-height: 300px;
}

.header-container-logo img {
    min-height: 100px;
}

.header-container-logo img:nth-child(2) {
    transform: scale(0.8);
}

@media screen and (max-width: 940px) {
    .header-main {
        min-height: 600px;
    }

    .header-container-logo img:nth-child(1) {
        max-height: 200px;
        max-width: 220px;
        margin: 0 auto;
    }
    .header-container-logo img:nth-child(2) {
        transform: scale(0.9);
        height: 110px;
    }
    .header-container-logo {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 5vw;
        width: 50%;
    }
}

@media screen and (max-width: 440px) {
    .header-container-logo img:nth-child(1) {
        margin: 0;
    }
}

/* *------GLOBAL BACKGROUND------------ */

.global-background {
    /* height: 100vw; */
    min-height: 1500px;
    position: relative;
    display: flex;
    align-items: center;
    flex-direction: column;
}

#bck {
    height: 100%;
    width: 70%;
    position: absolute;
    top: -10%;
    left: 50%;
    transform: translate(-50%, 0%);
    z-index: -1;
}

.about-us {
    width: 65%;
    min-height: 90%;
    margin: 100px auto 50px;
    gap: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.about-us p {
    font-size: clamp(14px, 2vw, 20px);
    text-align: justify;
    line-height: clamp(22px, 2vw, 30px);
}

/* ----start CARD CONTAINER --------------------- */

.about-us-card-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    justify-items: center;
    height: 50%;
    width: 100%;
    margin-top: 50px;
}
.pilot-card-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    height: 50%;
    width: 100%;
    margin-top: 50px;
    gap: 50px;
}
.pilot-card-container a:hover .card {
    border: 2px solid var(--secondary-color-sand);
    background-color: #fff;
    translate: 0px -3px;
}

.pilot-card-container .card {
    width: 250px;
    padding: 2rem;
    height: 280px;
    justify-content: flex-start;
    gap: 15px;
}

.pilot-card-container .card-txt {
    font-size: 22px;
}

.pilot-card-container .card p {
    font-size: 16px;
    text-align: center;
    flex: 1;
    line-height: 24px;
}

.card {
    /* width: 267px; */
    height: 285px;
    width: 200px;
    border-radius: 20px;
    border: 2px solid var(--secondary-color-garden);
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    flex-direction: column;
    background-color: #fff;
    user-select: none;
    transition: border 0.2s ease-out, translate 0.2s ease-out !important;
}

.card i {
    padding-top: 1px;
    font-size: clamp(35px, 4vw, 50px);
}

.card-number {
    font-size: clamp(60px, 6vw, 75px);
    font-weight: 700;
}

.card-txt {
    font-size: 19px;
    font-weight: 600;
}

/* ---video container home page -------------- */

.container-video-home {
    width: 670px;
    margin: 50px auto;
}

.container-video-home .video-container {
    position: relative;
    padding-bottom: 56.25%;
    border: -1px;
    height: 0;
    background: url(../img/piisa-video.png) center/cover;
    aspect-ratio: 16/9;
    border-radius: 5px;
    overflow: hidden;
}

.consent-banner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(8, 8, 8, 0.548);
    backdrop-filter: blur(2px);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    flex-direction: column;
}

.consent-banner p {
    font-size: 16px;
    padding: 50px;
}

.consent-banner a {
    color: var(--main-color-sandy-brown);
    text-decoration: none;
    border-bottom: 1px solid var(--main-color-sandy-brown);
    transition: 0.1s ease-out;
}

.consent-banner a:hover {
    color: rgb(255, 255, 255);
    text-decoration: none;
    border-bottom: 2px solid var(--main-color-sandy-brown);
}

.consent-button {
    width: 135px;
    height: 40px;
    color: white;
    border-radius: 5px;
    padding: 10px 25px;
    font-weight: 400;
    font-family: "Montserrat-regular";
    background: transparent;
    cursor: pointer;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
    box-shadow: inset 2px 2px 2px 0px rgba(255, 255, 255, 0.5),
        7px 7px 20px 0px rgba(0, 0, 0, 0.1), 4px 4px 5px 0px rgba(0, 0, 0, 0.1);
    outline: none;
    background: var(--secondary-color-cactus);
    border: none;
    z-index: 1;
}

.consent-button:after {
    position: absolute;
    content: "";
    width: 0;
    height: 100%;
    top: 0;
    right: 0;
    z-index: -1;
    background-color: var(--secondary-color-garden);
    border-radius: 5px;
    box-shadow: inset 2px 2px 2px 0px rgba(255, 255, 255, 0.5),
        7px 7px 20px 0px rgba(0, 0, 0, 0.1), 4px 4px 5px 0px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}
.consent-button:hover {
    color: #fff;
}
.consent-button:hover:after {
    left: 0;
    width: 100%;
}
.consent-button:active {
    top: 2px;
}

@media screen and (max-width: 1270px) {
    .global-background {
        grid-template-rows: 65% 35%;
    }
    .about-us-card-container,
    .pilot-card-container {
        grid-template-columns: repeat(2, 1fr);
        margin: 20px 0;
        /* max-height: 400px; */
    }

    .card {
        margin: 10px 0;
    }
}

@media screen and (max-width: 730px) {
    .about-us {
        width: 85%;
    }

    .about-us h2 {
        margin-bottom: 10px;
    }

    .card {
        width: clamp(140px, 30vw, 200px);
        height: clamp(200px, 5vw, 285px);
    }
    .container-video-home {
        width: 300px;
    }
    .consent-banner p {
        font-size: 12px;
        padding: 20px 30px;
    }
}

/* --------end CARD CONTAINER */

.news {
    height: 100%;
    width: 65%;
    margin: 50px auto 0px;
    display: flex;
    flex-direction: column;
    align-items: center;
    grid-template-rows: 15% 75% 10%;
    gap: 40px;
}

.news-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    min-height: 511px;
    margin-top: 50px;
}

.news-card {
    display: flex;
    justify-content: center;
    align-items: center;
}

.news-card a:hover {
    border: 2px solid var(--main-color-sandy-brown);
}

.news-card a:hover .news-card-info {
    color: var(--main-color-sandy-brown);
}

.article-image-layout {
    transition: 0.2s ease-out;
}

.article-image-layout img {
    width: 100%;
    height: 100%;
    border-radius: 18px 18px 0 0;
    filter: grayscale(100);
    object-fit: cover;
}

.news-card a:hover img {
    filter: grayscale(0);
}

.news-card a {
    display: grid;
    grid-template-rows: 50% 50%;
    height: clamp(270px, 34vw, 511px);
    width: clamp(230px, 20vw, 285px);
    border-radius: 20px;
    border: 2px solid #9eac99;
    background-color: #fff;
    cursor: pointer;
}

.news-card-publication a:hover img {
    filter: grayscale(0);
}
.news-card-publication a {
    display: grid;
    grid-template-rows: 46% 54%;
    height: 380px;
    width: 285px;
    border-radius: 20px;
    border: 2px solid #9eac99;
    background-color: #fff;
    cursor: pointer;
}

.news-card-publication .btn-event {
    font-size: 13px;
    color: white;
    width: 72%;
    line-height: 23px;
}
.news-card-publication:hover .btn-event {
    background-color: var(--main-color-sandy-brown);
}
.news-card-publication a {
    display: grid;
    grid-template-rows: 46% 54%;
    height: 380px;
    width: 285px;
    border-radius: 20px;
    border: 2px solid #9eac99;
    background-color: #fff;
    cursor: pointer;
}
.news-card-publication:hover a {
    border: 2px solid var(--main-color-sandy-brown);
}

/* .news-card img {
  border-radius: 18px 18px 0 0;
  height: 100%;
  width: 100%;
  object-fit: cover;
} */

.news-card-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
}

.news-card-info {
    margin: 0 auto;
    color: var(--secondary-color-cactus);
    font-size: 14px;
    text-align: center;
}

.news-card-info i {
    font-size: 18px;
}

.news-card-content p {
    text-align: center;
    font-size: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media screen and (max-width: 1270px) {
    .news {
        min-height: auto;
    }
}

@media screen and (max-width: 1100px) {
    .global-background {
        overflow: hidden;
        gap: 40px;
    }
    .news {
        grid-template-rows: 8% 84% 8%;
    }

    .news-card a {
        height: clamp(270px, 34vw, 511px);
        /* width: 80%; */
        margin: 20px 0;
    }
    .news-card:nth-child(3) {
        display: none;
    }
}

@media screen and (max-width: 730px) {
    .global-background {
        grid-template-rows: 45% 55%;
    }
    .about-us {
        min-height: 90%;
    }
    .news {
        width: 85%;
        grid-template-rows: 15% 70% 10%;
    }

    .news h2 {
        margin-bottom: 20px;
    }

    .news-card:nth-child(3) {
        display: flex;
    }

    .news-container {
        flex-direction: column;
    }
}

@media screen and (max-width: 430px) {
    .news-card-content {
        padding: 15px;
    }
}

/* ----Footer----------------------- */

footer {
    height: 100%;
    margin-top: 100px;
    position: relative;
    background: url(../img/piisa_logo/backg1.webp) center/cover;
}

footer p,
footer a,
footer a:visited {
    color: #fff;
    font-size: 12px;
}

footer h3 {
    color: var(--main-color-sandy-brown);
    font-size: 18px;
    margin-bottom: 20px;
}

.subscribe-container a {
    background: url(../img/piisa_logo/backg2min.webp) center/cover;
    height: 60px;
    width: 450px;
    font-size: 15px;
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%) !important;
    border-radius: 40px;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    cursor: pointer;
    color: #fff;
    font-family: "LibreBaskerville-bold";
    transition: 0.05s ease-out;
}

.subscribe-container a:hover {
    background: url(../img/piisa_logo/backg3min.webp) center/cover;
    color: #ffae52;
}

.subscribe-container:hover #btn-1 {
    border: 2px solid var(--main-color-sandy-brown);
    background-color: var(--main-color-sandy-brown);
    color: var(--main-color-dark-green);
    transition: 0.05s ease-out;
}

.subscribe-container #btn-1 {
    padding: 10px 20px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 100px 150px 50px 150px;
}

.footer-project {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
}

.footer-project img {
    width: 100%;
}

.footer-nav a,
.footer-nav li {
    font-size: 14px;
    margin-bottom: 10px;
    padding-left: 10px;
    color: #fff;
    width: 100%;
}

.footer-nav a {
    position: relative;
    transition: 0.15s ease-out;
}

.footer-nav a::before {
    content: "▼";
    width: 1px;
    height: 1px;
    position: absolute;
    left: -15px;
    top: 70%;
    transform: rotate(-90deg);
    transition: 0.1s ease-out;
    color: #c5c5c56b;
}

.footer-nav a:hover::before {
    color: var(--main-color-sandy-brown);
}

.footer-social {
    display: grid;
}

footer i {
    color: #fff;
}

.footer-coordinator {
    display: grid;
}

.footer-band {
    text-align: center;
    padding-bottom: 20px;
}

footer a:hover {
    color: var(--main-color-sandy-brown);
}

@media screen and (max-width: 730px) {
    .subscribe-container a {
        width: 100%;
        border-radius: 0;
    }

    .footer-container {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        padding: 100px 50px 50px 50px;
    }
    .footer-coordinator-top,
    .footer-social div:nth-child(1) {
        margin-bottom: 20px;
    }
}

@media screen and (max-width: 450px) {
    .footer-container {
        padding: 100px 10px 50px 10px;
    }
}

/* *-------------INTERSECTION OBSEVER------------------------------ */

/* Selecteur sur les atttribut */
[class*="reveal-"] {
    opacity: 0;
    transform: translateY(-30px);
}

.reveal-visible {
    opacity: 1;
    transform: translateY(0px);
    transition: 1s cubic-bezier(0.5, 0, 0, 1);
}

/* Les elements 2 et plus seront révélé avec un délai, ce qui n'est pas le cas de reveal-1 */
.reveal-2 {
    transition-delay: 0.1s;
}
.reveal-3 {
    transition-delay: 0.2s;
}
.reveal-4 {
    transition-delay: 0.3s;
}
.reveal-5 {
    transition-delay: 0.4s;
}
.reveal-6 {
    transition-delay: 0.5s;
}
.reveal-7 {
    transition-delay: 0.55s;
}

/* --------------------------------- */
/* --------CONSORTIUM page */
/* --------------------------------- */

/*  -----HEADER ----------------- */

.header-second {
    background: url(../img/piisa_logo/backg1.webp) center/cover;
    height: 35vh;
    position: relative;
}

.header-second-container {
    width: 60%;
    height: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.header-second-container h1 {
    color: var(--main-color-eggshell);
    font-size: clamp(30px, 4vw, 55px);
}

.header-second img {
    visibility: hidden;
    position: absolute;
    top: 15%;
    left: 10%;
    width: clamp(120px, 17vw, 200px);
}

@media screen and (max-width: 939px) {
    .header-second img {
        visibility: visible;
    }

    .header-second-container {
        width: 80%;
    }

    .header-second-container h1 {
        margin-top: 50px;
    }
}

/* ----CARD CONTAINER -------------- */

.logo-card-container {
    max-width: calc(340px * 3);
    min-height: 120%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 340px);
    justify-items: center;
    margin-top: 50px;
    transition: 0.15s ease-out;
}

.logo-card {
    width: 300px;
    height: 300px;
    border-radius: 20px;
    border: 2px solid var(--secondary-color-cactus);
    cursor: pointer;
    margin: 20px;
}

.logo-card:hover {
    border: 2px solid var(--main-color-sandy-brown);
    outline: 1px solid var(--main-color-sandy-brown);
}

.logo-card a {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.logo-card img {
    width: 100%;
    filter: grayscale(100%);
}

.logo-card-container a:hover img {
    filter: grayscale(0%);
}

.logo-card h2 {
    text-align: center;
    font-size: 30px;
}

.logo-card-container a:hover h2 {
    background: linear-gradient(180deg, #ffae52 0%, #d94d45 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

@media screen and (max-width: 1200px) {
    .logo-card-container {
        max-width: calc(240px * 3);

        grid-template-columns: repeat(3, 240px);
    }
    .logo-card {
        width: 200px;
        height: 200px;
    }

    .logo-card h2 {
        font-size: 20px;
    }
}

@media screen and (max-width: 750px) {
    .logo-card-container {
        max-width: calc(240px * 2);

        grid-template-columns: repeat(2, 240px);
    }
}

@media screen and (max-width: 550px) {
    .logo-card-container {
        max-width: calc(240px);

        grid-template-columns: repeat(1, 240px);
    }
    .logo-card {
        width: 200px;
        height: 200px;
    }

    .logo-card h2 {
        font-size: 20px;
    }
}

/* ---------------------------- */
/* ---------ABOUT US-------------------------------- */
/* ------------------------------- */

.global-background-second {
    background: url(../img/wings.svg) center/40%;
    background-repeat: no-repeat;
    min-height: 100%;
}

.text-section {
    width: 70%;
    max-width: 1024px;
    padding-top: 100px;
    margin: 0 auto;
    display: grid;
    /* grid-template-rows: 25% 75%; */
    align-items: center;
}

.text-section:nth-child(3) {
    width: 70%;
    padding-top: 100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 100%;
    align-items: center;
    grid-template-rows: 25% 75%;
}

.text-section:nth-child(3) .text-container-info {
    display: grid;
    grid-template-columns: 35% 55%;
    gap: 10%;
    align-items: center;
}

.text-container-info {
    display: grid;
    grid-template-columns: 65% 25%;
    gap: 10%;
    align-items: center;
}

.text-section h2 {
    margin-bottom: 25px;
}

.text-section p {
    line-height: 30px;
    text-align: justify;
}

.text-section img {
    border-radius: 20px;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.text-section:nth-child(4) {
    display: block;
}

.text-package-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.wordpackage-section {
    width: 45%;
    margin: 0 auto;
    margin-top: 100px;
}

.wordpackage-section img {
    width: 100%;
    object-fit: contain;
}

.package-card-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
}

.package-card {
    background-color: #fff;
    height: 600px;
    width: 340px;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    flex-direction: column;
    border-radius: 20px;
    border: 1px solid var(--secondary-color-cactus);
    padding: 30px;
}

.package-card h3 {
    color: var(--main-color-sandy-brown);
}

.package-card p,
.package-card h3 {
    line-height: 22px;
    text-align: center;
    font-size: 16px;
}

.package-card:nth-child(2) p,
.package-card:nth-child(3) p {
    line-height: 20px;
    font-size: 14px;
}

.package-card span {
    font-size: clamp(40px, 4vw, 50px);
    font-weight: 700;
    font-family: "LibreBaskerville-bold", "Gill Sans", "Gill Sans MT", Calibri,
        "Trebuchet MS", sans-serif, Geneva, Verdana, sans-serif;
}

.pilot-card {
    text-align: left;
    line-height: 20px;
    font-size: 14px;
}

.text-section-pilot {
    width: 70%;
    max-width: 1024px;
    padding-top: 100px;
    margin: 0 auto;
}

.text-section-pilot p {
    line-height: 30px;
    text-align: justify;
}

.text-section-pilot li {
    line-height: 30px;
    text-align: justify;
    list-style: disc;
    margin-left: 60px;
}

.text-container-info-pilot {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
    margin-top: 20px;
}

.text-container-info-pilot img {
    width: 40%;
    border-radius: 20px;
}

@media screen and (max-width: 750px) {
    .wordpackage-section {
        width: 90%;
    }

    .text-container-info {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr 30%;
    }

    .text-section {
        width: 80%;
    }

    .text-section:nth-child(3) .text-container-info {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column-reverse;
        gap: 50px;
        grid-template-columns: 100%;
    }

    .text-section p {
        line-height: 25px;
    }

    .text-package-container {
        margin-top: 50px;
    }

    .text-package-container h2 {
        font-size: 33px;
    }

    .package-card {
        background-color: #fff;
        height: auto;
        width: 290px;
    }
    .text-container-info-pilot {
        flex-direction: column;
    }

    .text-container-info-pilot img {
        width: 100%;
    }

    .text-section-pilot {
        width: 80%;
    }

    .text-section-pilot h2 {
        font-size: 25px;
    }
    .text-section-pilot p,
    .text-section-pilot li {
        line-height: 26px;
    }
}

/* ---------------- */
/* ------------WHAT WE STAND PAGE --------------*/
/* ---------------- */

.text-section-dragonfly {
    width: 70%;
    padding-top: 100px;
    margin: 0 auto;
    display: grid;
    grid-template-rows: 15% 45% 40%;
    align-items: center;
}

.text-section-dragonfly h2 {
    margin-bottom: 25px;
}

.text-section-dragonfly p {
    line-height: 30px;
    text-align: justify;
}

.text-section-dragonfly img {
    border-radius: 20px;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@media screen and (max-width: 750px) {
    .text-section-dragonfly {
        grid-template-rows: 10% 45% 45%;
    }

    .text-section-dragonfly .text-container-info {
        gap: 0;
    }

    .text-section-dragonfly {
        width: 80%;
    }

    .text-section-dragonfly h2 {
        font-size: 35px;
    }

    .text-section-dragonfly p {
        line-height: 25px;
    }
}

/* ------------ */
/* -------COMMUNICATION RESSOURCES */
/* ------------ */

.text-container-resources {
    padding: 40px;
    display: grid;
    grid-template-columns: 45% 45%;
    gap: 10%;
    align-items: center;
}

.card-resources a {
    width: 400px;
    height: 300px;
    border-radius: 20px;
    border: 2px solid var(--secondary-color-cactus);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 50px;
    margin: 0 auto;
    cursor: pointer;
}

.card-resources a:hover {
    border: 2px solid var(--main-color-sandy-brown);
}

.card-resources i {
    font-size: clamp(45px, 4vw, 65px);
}

.card-resources p {
    font-size: clamp(16px, 1.7vw, 22px);
    text-align: center;
}

@media screen and (max-width: 1250px) {
    .card-resources a {
        width: 320px;
        height: 240px;
    }
}
@media screen and (max-width: 1050px) {
    .card-resources a {
        width: 190px;
        height: 210px;
    }
}

@media screen and (max-width: 550px) {
    .text-section {
        padding-top: 45px;
    }
    .text-container-resources {
        grid-template-columns: 100%;
        grid-template-rows: 50% 50%;
        padding: 40px 0;
    }
    .card-resources a {
        width: 260px;
        height: 250px;
    }
}

/* ------------ */
/* -------Fellow Projects & Platforms */
/* ------------ */

.logo-card-fellow {
    width: 300px;
    height: 350px;
    border-radius: 20px;
    border: 2px solid var(--secondary-color-cactus);
    cursor: pointer;
    margin: 20px;
    overflow: hidden;
}

.logo-card-fellow:hover {
    border: 2px solid var(--main-color-sandy-brown);
    outline: 1px solid var(--main-color-sandy-brown);
}

.logo-card-fellow a {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    user-select: none;
}

.logo-card-fellow img {
    width: 100%;
    filter: grayscale(100%);
    height: 40%;
    object-fit: contain;
}

.logo-card-fellow h2 {
    text-align: center;
    font-size: 30px;
}

.logo-card-fellow p {
    width: 80%;
    text-align: center;
    padding-top: 20px;
    line-height: 22px;
    font-size: 15px;
}

@media screen and (max-width: 1200px) {
    .logo-card-fellow {
        width: 200px;
        height: 290px;
    }

    .logo-card-fellow h2 {
        font-size: 20px;
    }
    .logo-card-fellow p {
        font-size: 13px;
    }
}

@media screen and (max-width: 550px) {
    .logo-card-fellow h2 {
        font-size: 20px;
    }
}

/* ------------ */
/* -------PUBLIC DELIVRABLE */
/* ------------ */

.delivrable-container {
    width: 1000px;
    margin: 100px auto 0;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.delivrable-tab p:nth-child(1) {
    font-weight: 700;
}

.delivrable-tab p:nth-child(5) {
    color: var(--secondary-color-cactus);
}

.deliverable-tab-header {
    font-size: 20px;
    font-weight: 700;
    display: grid;
    grid-template-columns: 10% 1fr 12% 10% 12%;
    gap: 10px;
}

.delivrable-tab {
    display: grid;
    grid-template-columns: 10% 1fr 12% 10% 12%;
    gap: 10px;
}

.delivrable-container-mobile {
    display: grid;
    grid-template-columns: 1fr;
}

.deliverable-tab-header-mobile {
    display: none;
}

@media screen and (max-width: 1050px) {
    .delivrable-container {
        width: 600px;
    }

    .deliverable-tab-header {
        font-size: 17px;
        font-weight: 700;

        grid-template-columns: 10% 1fr 15% 15% 17%;
    }
    .delivrable-tab {
        font-size: 15px;
        grid-template-columns: 15% 1fr 15% 15% 17%;
    }
}

@media screen and (max-width: 680px) {
    .delivrable-container {
        width: 90%;
    }
    .deliverable-tab-header {
        display: none;
    }

    .delivrable-tab {
        padding-left: 20px;
        grid-template-columns: 100%;
        grid-template-rows: 18% 1fr 15% 15% 17%;
        gap: 4%;
        font-size: 14px;
    }

    .delivrable-container-mobile {
        min-height: 230px;
        grid-template-columns: 1fr 2fr;
    }

    .deliverable-tab-header-mobile {
        font-weight: 700;
        background-color: var(--main-color-eggshell);
        display: grid;
        grid-template-rows: 15% 1fr 15% 15% 17%;
        align-items: center;
        justify-items: end;
        gap: 5%;
        padding-right: 20px;
        border-radius: 20px 0 0 20px;
    }
    .delivrable-number {
        align-self: center;
    }
}

/* ------------------ */
/* --- NEWS page */
/* ------------------ */

.news-section {
    padding: 50px 0;
}
.news-section-container {
    margin: 0 auto;
    max-width: 1200px;
    width: 70%;
    min-height: 260px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.news-content {
    display: flex;
    flex-direction: row;
    gap: 3%;
}

.news-content img {
    width: 300px;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 3/2;
    border-radius: 15px;
}

.news-content-title {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.news-content-title h2 {
    font-size: 30px;
}

.news-info {
    border-top: 1px solid rgb(220, 220, 220);
    border-bottom: 1px solid rgb(220, 220, 220);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
}

.news-info-l {
    font-size: 14px;
}

@media screen and (max-width: 970px) {
    .news-section-container {
        width: 85%;
    }
}

@media screen and (max-width: 630px) {
    .news-content {
        flex-direction: column;
        gap: 20px;
    }
    .news-content img {
        width: 100%;
    }
    .news-info {
        flex-direction: column;
        align-items: start;
        gap: 10px;
    }
}

/* ------------------------------------------- */
/* --------------Contact Form --------------------- */
/* ------------------------------------------ */

form {
    margin: auto;
}

.form-grid {
    display: grid;
    grid-template-columns: 50% 50%;
    grid-template-rows: 65px 65px 65px 140px;
    gap: 30px;
    grid-template-areas:
        "btn1 btn2"
        "Email Organisation"
        "Object Object"
        "textarea textarea";
    margin: 30px auto;
}

.textarea {
    grid-area: textarea;
}

label {
    letter-spacing: 1px;
}

form #btn-2 {
    letter-spacing: 1px;
    font-size: 16px;
}

input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    margin: 10px 0 40px;
    border-radius: 5px;
    border: 1px solid #ccc;
    padding: 10px;
    transition: 0.1s;
    font-size: 16px;
    font-family: "Montserrat-regular", "Gill Sans", "Gill Sans MT", Calibri,
        "Trebuchet MS", sans-serif, Geneva, Verdana, sans-serif;
}

input[type="text"].error,
input[type="email"].error,
textarea.error {
    border: 2px solid rgb(231, 127, 127);
    background-color: rgb(255 243 243);
}

input[type="text"]:focus,
textarea:focus {
    outline: 1px solid var(--secondary-color-cactus);
}

textarea {
    resize: none;
    height: 100px;
}

.visible {
    display: block !important;
    margin: 0px 0 50px;
}

.success {
    color: #317e58;
    font-size: 18px;
}

.error {
    color: red;
    font-size: 18px;
}

#formSuccess,
#formError,
#ServerError {
    display: none;
}

@media screen and (max-width: 630px) {
    .form-grid {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    input[type="text"],
    textarea {
        margin: 10px 0 0 0;
    }
}

/* ------------------------------ */
/* ---------Event */
/* ------------------------------ */

.event-container {
    margin: 0 auto;
    gap: 50px;
    width: 70%;
    max-width: 1050px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.event-container h2 {
    margin: 50px 0;
    text-align: center;
}

.event-card {
    border: 2px solid #9eac99;
    width: 80%;
    border-radius: 20px;
    display: grid;
    grid-template-rows: 65% 35%;
    align-items: center;
    justify-items: center;
    justify-content: center;
    /* cursor: pointer; */
    /* min-height: 400px; */
    max-width: 530px;
    max-height: 600px;
}

.event-card div:has(img) {
    overflow: hidden;
    height: 100%;
    width: 100%;
}

.piisa-event-card-txt {
    padding: 20px 20px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.event-card:hover {
    border: 2px solid var(--main-color-sandy-brown);
}

.event-card img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    border-radius: 18px 18px 0 0;
    filter: grayscale(100);
    opacity: 0.6;
    transition: 0.3s ease-out;
}

.event-card:hover img {
    filter: grayscale(0);
    opacity: 1;
}

.event-card-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 450px;
    border-radius: 20px;
    margin-top: 50px;
    position: relative;
    z-index: 2;
    gap: 5%;
    padding: 8% 5% 0 5%;
}

.october24:after,
.november24:after,
.april25:after,
.june25:after,
.november25:after {
    position: absolute;
    text-align: center;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 28px;
    font-family: "LibreBaskerville-bold", "Gill Sans", "Gill Sans MT", Calibri,
        "Trebuchet MS", sans-serif, Geneva, Verdana, sans-serif;
}

.october24:after {
    content: "October 2024";
}
.november24:after {
    content: "November 2024";
}
.april25:after {
    content: "April 2025";
}
.june25:after {
    content: "June 2025";
}
.november25:after {
    content: "November 2025";
}

.layout-event {
    content: "";
    border-radius: 20px;
    position: absolute;
    height: 50%;
    width: 100%;
    top: 0px;
    left: 0px;
    z-index: -1;
    background-color: #f6f4ea;
}

.september24 .layout-event {
    height: 120%;
}
.october24 .layout-event {
    height: 235%;
}
.june24 .layout-event {
    height: 345%;
}

.event-card-container .event-card {
    width: 48%;
    height: 450px;
    background-color: white;
    display: grid;
    grid-template-rows: 55% 1fr;
    position: relative;
    user-select: none;
}

.event-card-container .event-card img {
    height: 100%;
    object-fit: cover;
    aspect-ratio: 16/10;
}

.event-card-container .event-card div {
    padding: 0 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 15px;
}

.event-card-container .event-card div:nth-child(2) {
    justify-content: space-evenly;
    padding-bottom: 30px;
}
.event-card-container .event-card h4 {
    font-size: 16px;
    color: #494949;
}
.event-card-container .event-card h3 {
    font-size: 17px;
    text-align: center;
}

.event-card-container .event-card p {
    font-size: 15px;
    text-align: center;
    color: #494949;
    width: 85%;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.btn-event {
    position: absolute;
    bottom: -18px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--secondary-color-cactus);
    padding: 10px 35px;
    border-radius: 20px;
    width: 55%;
    height: 40px;
    text-align: center;
    font-family: "LibreBaskerville-bold", "Gill Sans", "Gill Sans MT", Calibri,
        "Trebuchet MS", sans-serif, Geneva, Verdana, sans-serif;
    transition: 0.15s ease-out;
}

.event-card:hover .btn-event {
    background-color: var(--main-color-sandy-brown);
}

.btn-event a {
    color: white;
    letter-spacing: 1px;
    font-size: 15px;
}

.event-title {
    width: 40%;
}

@media screen and (max-width: 940px) {
    .event-card-container {
        gap: 50px;
        flex-direction: column;
    }

    .event-card-container .event-card {
        width: 100% !important;
        height: 400px !important;
    }

    .btn-event {
        width: 70%;
        bottom: -30px;
    }

    .btn-event a {
        font-size: 11px;
    }

    .event-card-container .event-card h3 {
        font-size: 15px;
    }
    .event-card-container .event-card div {
        padding: 0 15px;
    }
    .event-card-container .event-card p {
        font-size: 12px;
    }
    .november:after,
    .december:after {
        font-size: 20px;
    }
}

@media screen and (max-width: 750px) {
    .event-card {
        width: 70vw !important;
        display: flex;
        flex-direction: column;
    }
}
@media screen and (max-width: 450px) {
    .event-container {
        width: 85%;
    }
}

.author {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
}

.author img {
    aspect-ratio: 1;
    border-radius: 100px;
}

.sub-container {
    position: relative;
    cursor: pointer;
}
sup {
    color: blue;
}

.sub-text {
    color: black;
    position: absolute;
    top: -130px;
    left: 25px;
    min-width: 300px;
    background-color: var(--main-color-eggshell);
    padding: 20px 30px;
    text-align: justify;
    font-size: 13px;
    line-height: 20px;
    border-radius: 5px;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22);
    transform: translateY(-20%);
    transition: 0.3s ease-out;
    visibility: hidden;
    opacity: 0;
}

.sub-text a {
    color: red;
}

.sub-container:hover .sub-text {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    z-index: 10;
}

@media screen and (max-width: 750px) {
    .sub-text {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -30%) !important;
    }
    .sub-container:hover .sub-text {
        transform: translate(-50%, -50%) !important;
    }
}

/* *---------------------------------- */
/* *----------- CHART JS */
/* *---------------------------------- */

.canvas-card {
    display: grid;
    grid-template-columns: 1fr;
    justify-content: center;
    align-items: center;
    max-width: 500px;
    margin: 0 auto;
    gap: 50px;
    width: 50%;
    margin: auto;
}

canvas {
    cursor: pointer;
}

@media screen and (max-width: 750px) {
    .canvas-card {
        width: 100%;
    }
}

/* -------------------------- */
/* scroller div */
/* -------------------------- */

.scroller {
    width: 95%;
}
.scroller .news-card a {
    height: 200px;
    grid-template-columns: 50% 50%;
    grid-template-rows: 1fr;
    width: clamp(300px, 30vw, 330px);
}

.scroller .article-image-layout img {
    border-radius: 18px 0px 0px 18px;
}

.scroller__inner {
    padding-block: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 5rem;
}

.scroller[data-animated="true"] {
    overflow: hidden;
    -webkit-mask: linear-gradient(
        90deg,
        transparent,
        white 20%,
        white 80%,
        transparent
    );
    mask: linear-gradient(
        90deg,
        transparent,
        white 20%,
        white 80%,
        transparent
    );
}

.scroller[data-animated="true"] .scroller__inner {
    width: max-content;
    flex-wrap: nowrap;
    animation: scroll var(--_animation-duration, 40s)
        var(--_animation-direction, forwards) linear infinite;
}

.scroller[data-direction="right"] {
    --_animation-direction: reverse;
}

.scroller[data-direction="left"] {
    --_animation-direction: forwards;
}

.scroller[data-speed="fast"] {
    --_animation-duration: 20s;
}

.scroller[data-speed="slow"] {
    --_animation-duration: 80s;
}

.scroller img {
    height: 100%;
    width: 100%;
    /* max-height: 120px; */
    max-width: 340px;
}

@keyframes scroll {
    to {
        transform: translate(calc(-50% - 0.5rem));
    }
}

@media screen and (max-width: 750px) {
    .scroller__inner {
        gap: 2rem;
    }

    .scroller[data-speed="slow"] {
        --_animation-duration: 60s;
    }
}
