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

html {
    scroll-behavior: smooth;
}

:root {
    --background-color: #ffffff;
    --main-color: gray;
    --second-color: black;
    --strong-color: #63bfa5;
    --color-title: #002e5b;
    --color-button: #1c75bc;
    --color-border: #4facfe;
}

@font-face {
    font-family: "Inter";
    src: url("img/Inter/Inter-VariableFont.ttf") format("truetype-variations");
    font-weight: 100 900;
    font-display: swap;
}

@font-face {
    font-family: "Inter";
    src: url("img/Inter/Inter-Italic-VariableFont.ttf")
        format("truetype-variations");
    font-style: italic;
    font-weight: 100 900;
    font-display: swap;
}

body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        Oxygen, Ubuntu, Cantarell, sans-serif;
}

a,
a:active {
    text-decoration: none;
    color: black;
}

h1 {
    font-size: clamp(20px, 4vw, 45px);
    margin-bottom: 25px;
    line-height: 70px;
    max-width: 650px;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    padding-top: 60px;
    text-align: center;
    font-family: "inter", sans-serif;
}

h3 {
    font-size: clamp(20px, 2.5vw, 34px);
    font-weight: 500;
}

p,
li {
    font-size: clamp(16px, 2vw, 16px);
    line-height: 26px;
}

#btn1,
input[type="submit"] {
    height: 52px;
    width: 173px;
    font-weight: 500;
    background-color: var(--color-button);
    color: white;
    border: none;
    border-radius: 10px;
    box-shadow: 0px 4px 12px 0px rgba(73, 73, 73, 0.48);
    cursor: pointer;
    transition: 0.15s ease-out;
}

#btn1 {
    width: 230px;
}

#btn1:hover,
input[type="submit"]:hover {
    opacity: 0.8;
    transform: translateX(5px);
    transition: 0.15s ease-out;
}

#btn1 a {
    color: white;
    font-weight: 500;
    letter-spacing: 1px;
    font-size: 16px;
}

.orange {
    color: var(--color-border);
}

.brown {
    color: var(--color-title);
}

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

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

/* *------------NAV & Header----------------------------- */

.nav {
    background-color: var(--background-color);
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
}

.nav img {
    height: 95%;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons i {
    font-size: 20px;
    cursor: pointer;
    transition: 0.15s ease-out;
}

.social-icons i:hover {
    opacity: 0.6;
    transform: translateY(-3px);
    transition: 0.15s ease-out;
}

header {
    background: url(./img/pleiades-header.png) center/cover;
    min-height: 80vh;
    padding: 50px 100px;
    display: grid;
    grid-template-columns: 60% 40%;
    justify-items: center;
    align-items: center;
}

.header-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: white;
    align-items: center;
}

.header-left img {
    width: 70%;
}

.header-left p {
    letter-spacing: 1px;
    font-size: 2rem;
    line-height: 45px;
}

.header-right {
    display: flex;
    justify-content: center;
    align-items: center;
}

.header-right img {
    width: 90%;
}

@media screen and (max-width: 750px) {
    h1 {
        line-height: 30px;
    }
    header {
        grid-template-rows: 50% 50%;
        grid-template-columns: 1fr;
        padding: 50px 0;
    }

    h1 {
        text-align: center;
    }

    .header-left p {
        margin: 0 auto;
    }

    .header-right {
        height: 100%;
    }
    .header-right img {
        max-height: 100%;
    }
}

/* *------------Partners -------------------------------------------------- */

.partners-container {
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
}

.parteners-card {
    max-width: 70%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
}

.parteners-card img {
    /* aspect-ratio: 16/9; */
    width: 13vw;
    max-width: 150px;
}

/* ************ Slider CSS partenaire ********************** */

.slider-1 {
    max-width: 150px;
    margin: 30px auto;
    overflow: hidden;
    min-height: auto;
}

.slider-1 .slider {
    display: flex;
    animation: slider-2 28s infinite ease-in-out;
}

.slider-1 img {
    height: auto;
    width: 150px;
    padding: 5px;
}

@keyframes slider-2 {
    0%,
    6% {
        transform: translateX(0);
    }
    7.5%,
    13% {
        transform: translateX(-100%);
    }
    15%,
    20.5% {
        transform: translateX(-200%);
    }
    22.5%,
    28% {
        transform: translateX(-300%);
    }
    30%,
    35.5% {
        transform: translateX(-400%);
    }
    37.5%,
    43% {
        transform: translateX(-500%);
    }
    45%,
    50.5% {
        transform: translateX(-600%);
    }
    52.5%,
    58% {
        transform: translateX(-700%);
    }
    60%,
    65.5% {
        transform: translateX(-800%);
    }
    67.5%,
    73% {
        transform: translateX(-900%);
    }
    75%,
    80.5% {
        transform: translateX(-1000%);
    }
    82.5%,
    88% {
        transform: translateX(-1100%);
    }
    90%,
    95.5% {
        transform: translateX(-1200%);
    }
    98%,
    100% {
        transform: translateX(-1300%);
    }
}

@media screen and (min-width: 771px) {
    #parteners-card-mobile {
        display: none;
    }
}

@media screen and (max-width: 750px) {
    .parteners-card {
        display: none;
    }

    .partners-container {
        gap: 0px;
    }
}

/* *-------------- ABOUT US --------------------------------------- */

.about-us {
    min-height: 700px;
    max-width: 1440px;
    margin: 100px auto 0px;
    position: relative;
}

.about-us-section {
    margin: 0 auto;
    width: 80%;
}

.about-us-section h2 {
    margin-bottom: 100px;
}

.about-us-container {
    display: grid;
    grid-template-columns: 50% 45%;
    margin-top: 30px;
    gap: 60px;
}

.about-us-container-left {
    min-height: 700px;
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: center;
}

.about-us-container-left strong {
    color: var(--color-border);
}

.about-us-container-left ul a {
    text-decoration: underline;
    font-size: 16px;
    color: var(--color-button);
    padding-left: 40px;
}

.about-us-container-right {
    height: 70%;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.card-about-us:nth-child(even) {
    transform: translateY(25%);
}

.card-about-us:nth-child(2),
.card-about-us:nth-child(3) {
    background-color: #f0f0f0;
}

.card-about-us {
    padding: 25px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 25px;
}

.card-about-us h3 {
    font-size: 22px;
    font-weight: semi-bold;
}
.card-about-us img {
    border-radius: 20px;
}

.modal-card {
    background-color: #add7fca1;
    padding: 14px 20px;
    margin-bottom: 40px;
    border-radius: 16px;
    height: fit-content;
    color: #002e5b;
    border: 1px solid #002e5b;
    cursor: pointer;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(149 149 149 / 40%);
    backdrop-filter: blur(2px);
}

.modal-content {
    background-color: #edf6ff;
    margin: 100px auto;
    padding: 3rem 4rem;
    border-radius: 1rem;
    width: 70%;
    min-width: 300px;
    color: #002e5b;
    border: 1px solid #002e5b;
}
.modal-content strong {
    font-size: 1.1rem;
}
.modal-content p {
    font-size: 1rem;
    margin-bottom: 10px;
}
.modal-content span {
    color: #4d4d4e;
}
.modal-content li {
    font-size: 1rem;
    margin-left: 40px;
    margin-bottom: 2px;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

@media screen and (max-width: 1190px) {
    .about-us-container {
        display: flex;
        flex-direction: column;
    }

    .about-us-container-left {
        min-height: 400px;
        grid-template-rows: 15% 25% 40% 20%;
        justify-items: center;
    }

    .card-about-us:nth-child(even) {
        transform: translateY(0%);
    }
}

/* *----------------- IMPACT ------------------------------------------ */

.impact {
    height: 200px;
}

/* *-----------------RESOURCES --------------------------------------- */

.resources {
    min-height: 400px;
    padding: 0% 7% 7%;
    max-width: 1440px;
    margin: 0 auto;
}

.resources h2 {
    text-align: start;
    padding-bottom: 30px;
}

.resources h3 {
    font-size: clamp(26px, 3vw, 40px);
    padding-bottom: 30px;
    margin-inline: 0.5rem;
    font-weight: 600;
}

.resources p {
    letter-spacing: 1px;
    width: 80%;
}

.resources-card-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    align-items: center;
    justify-items: center;
}

@media screen and (max-width: 1100px) {
    .resources-card-container {
        display: flex;
        flex-direction: column;
        gap: 70px;
    }

    .resources h2,
    .resources h3,
    .resources p {
        text-align: center;
        margin: 0 auto;
    }
}

/* *-------------------CARD SLIDER--------------------------------- */

.slider-scroll {
    height: 300px;
    width: 800px;
    position: relative;
}

.slider-nav-button {
    background: transparent;
    border: none;
    position: absolute;
    top: -25%;
    cursor: pointer;
    transition: 0.2s ease-out;
}

.slider-nav-button:hover {
    opacity: 0.5;
}

.slider-nav-button svg {
    width: 40px;
    height: 40px;
    background-color: var(--color-border);
    color: white;
    padding: 6px;
    border-radius: 50px;
}

.slider-nav-button-previous {
    left: 35%;
}

.slider-nav-button-next {
    right: calc(35% + 20px);
}

.slider-content {
    height: 100%;
    width: 100%;
    display: flex;
    overflow: hidden;
    scroll-behavior: smooth;
}

.slider-content-item {
    height: 100%;
    min-width: 25%;
}

.card-scroll {
    height: 100%;
    width: 90%;
    background: linear-gradient(
        180deg,
        rgb(228 228 228) 60.63%,
        #011627b3 100%
    );
    border-radius: 20px;
    cursor: pointer;
    position: relative;
    display: flex;
    gap: 10px;
    justify-content: flex-start;
    align-items: flex-start;
    flex-direction: column;
    padding: 110px 20px 40px 20px;
}

.card-scroll-title {
    font-size: clamp(13px, 2vw, 18px);
}

.card-scroll-text {
    color: white;
    font-size: clamp(15px, 2vw, 16px);
}

.card-scroll .format {
    position: absolute;
    bottom: 7px;
    right: 10px;
    background-color: red;
    color: white;
    padding: 5px 10px;
    font-size: 12px;
    border-radius: 15px;
}

.card-scroll:hover {
    opacity: 0.8;
}

@media screen and (max-width: 900px) {
    .slider-scroll {
        width: 100%;
    }
}
@media screen and (max-width: 650px) {
    .card-scroll {
        width: 95%;
    }
    .slider-scroll {
        height: 260px;
    }
    .slider-content-item {
        min-width: 50%;
    }
    .slider-nav-button-next {
        left: 60%;
    }
    .slider-nav-button-previous {
        left: 20%;
    }
}

/* *-------------STATS --------------------------------------------------- */

.stats {
    min-height: 220px;
    max-width: 1440px;
    margin: 0 auto;
}

.stats h2 {
    font-size: clamp(28px, 3vw, 40px);
    margin-bottom: 30px;
    padding-top: 0;
}

.stats-container {
    min-height: 200px;
    background-color: var(--color-title);
    border-radius: 15px;
    padding: 2rem;
    width: 90%;
    margin: 0 auto;
    color: white;
}

.stats-figures-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    justify-items: center;
    width: 70%;
    margin: 0 auto;
}

.stats-figure {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.stats-figure span:nth-child(2) {
    text-align: center;
    font-size: 18px;
}

.stats-figures-container span {
    font-size: clamp(40px, 5vw, 50px);
}

@media screen and (max-width: 750px) {
    .stats-figures-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        width: 100%;
    }
}

/* *----------EU flag----------------------------------------------- */

.eu-card {
    width: 50%;
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-top: 30px;
}

.eu-card p {
    font-size: 14px;
}

@media screen and (max-width: 750px) {
    .eu-card {
        width: 70%;
        margin-top: 100px;
        flex-direction: column;
    }
}

/* *----------COntact Us card --------------------------------------- */

.contact-us {
    min-height: 50vh;
    max-width: 1440px;
    margin: 0 auto;
}

.contact-container {
    background-color: rgb(255, 235, 188);
    border-radius: 20px;
    height: 340px;
    width: 90%;
    margin: 0 auto;
    margin-top: 30px;
    display: flex;
    overflow: hidden;
}

.contact-container-left {
    /* background-color: lightblue; */
    position: relative;
    width: 50%;
    height: 100%;
    display: grid;
    grid-template-rows: 20% 10% 1fr;
    justify-content: center;
    align-items: center;
}

.contact-container-left img {
    position: absolute;
    top: 55%;
    left: 70%;
    transform: translate(-50%, -50%);
    width: 15vw;
}

.contact-container-right {
    /* background-color: lightsalmon; */
    height: 100%;
    width: 50%;
}

.contact-container-right form {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    width: auto;
    max-width: 600px;
    height: 100%;
}

.contact-container-right-submit {
    display: flex;
    width: 70%;
    gap: 5%;
}

input {
    width: 70%;
    border: none;
    border-radius: 8px;
    height: 50px;
    padding-left: 10px;
    font-size: 14px;
}

input[type="text"]:focus,
input[type="email"]:focus {
    outline: none;
    padding-left: 10px;
    font-size: 14px;
    height: 50px;
}

input[type="submit"] {
    height: 50px;
    width: 70%;
}

@media screen and (max-width: 1000px) {
    .contact-container {
        flex-direction: column;
        min-height: 400px;
    }

    .contact-container-left {
        width: 100%;
        height: 50%;
        grid-template-rows: 30% 20% 1fr;
        justify-items: center;
    }

    .contact-container-left img {
        display: none;
    }

    .contact-container-right {
        width: 100%;
        height: 50%;
    }

    .contact-container-right form {
        align-items: center;
        width: 100%;
        margin: 0 auto;
        gap: 0;
        padding-bottom: 30px;
    }
}

/* *---------FOOTER ----------------------------------------------------- */

footer {
    min-height: 50px;
    background: linear-gradient(
        90deg,
        rgba(222, 222, 222, 0.52) 0%,
        rgba(245, 255, 254, 0.52) 26.81%,
        rgba(237, 237, 237, 0.52) 54.58%,
        rgba(201, 201, 201, 0.52) 99.86%
    );
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
    margin-top: 20px;
}

footer p {
    font-size: clamp(12px, 2vw, 15px);
}

@media screen and (max-width: 750px) {
    footer {
        flex-direction: column;
        gap: 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;
}

/* -------------------------- */
/* scroller div */
/* -------------------------- */

.scroller {
    width: 95%;
}

.scroller__inner {
    padding-block: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 5rem;
    height: 150px;
}

.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: 90px;
    max-width: 340px;
}

@keyframes scroll {
    to {
        transform: translate(calc(-50% - 0.5rem));
    }
}

@media screen and (max-width: 750px) {
    .scroller__inner {
        gap: 2rem;
        height: 90px;
    }

    .scroller[data-speed="slow"] {
        --_animation-duration: 60s;
    }
}

/* --------------------------- */
/* ---------GET IN TOUCH-------------- */
/* --------------------------- */

.get-in-touch {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    margin-block: 100px;
    width: 90%;
    margin-inline: auto;
}
.get-in-touch img {
    object-fit: contain;
}

.get-in-touch h3 {
    color: var(--color-title);
    font-size: clamp(28px, 4vw, 48px);
}

.git-btn {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

@media screen and (max-width: 750px) {
    .get-in-touch {
        flex-direction: column;
    }
}

.btn1 {
    background-color: var(--color-title);
    font-weight: 500;
    color: white;
    border: none;
    border-radius: 10px;
    box-shadow: 0px 4px 12px 0px rgba(73, 73, 73, 0.48);
    padding: 10px 24px;
    cursor: pointer;
    transition: 0.15s ease-out;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 20px;
    width: 80%;
    max-width: 800px;
    border-radius: 8px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 10px;
    font-size: 28px;
    cursor: pointer;
    color: #666;
}

.close-modal:hover {
    color: #000;
}

.modal-content h2 {
    color: var(--color-title);
    margin-bottom: 20px;
    font-size: 24px;
    font-weight: 600;
}

.modal-content h3 {
    color: var(--color-title);
    margin: 20px 0 15px;
    font-size: 18px;
    font-weight: 500;
}

.modal-content p {
    margin-bottom: 15px;
    line-height: 1.6;
    color: #444;
}

.modal-content strong {
    color: var(--color-title);
    font-weight: 600;
}

.modal-content ul {
    list-style: none;
    padding-left: 20px;
    margin-bottom: 20px;
}

.modal-content ul li {
    position: relative;
    padding: 8px 0;
    padding-left: 20px;
    color: #444;
}

.modal-content ul li::before {
    content: "•";
    color: var(--color-button);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Custom scrollbar for modal */
.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: var(--color-button);
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: #1557a0;
}

/* Smooth transition for modal button */
.modal-card button {
    background-color: transparent;
    color: var(--color-button);
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    width: 100%;
    text-align: left;
    font-size: 16px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.modal-card button:active {
    transform: translateY(0);
}

/* Modal animations */
@keyframes modalFadeIn {
    from {
        opacity: 0;
        backdrop-filter: blur(0);
    }
    to {
        opacity: 1;
        backdrop-filter: blur(5px);
    }
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    backdrop-filter: blur(0);
}

.modal.show {
    display: block;
    animation: modalFadeIn 0.3s ease-out forwards;
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 30px;
    width: 90%;
    max-width: 950px;
    border-radius: 12px;
    position: relative;
    max-height: 81vh;
    overflow-y: auto;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: translateY(-50px);
}

.modal.show .modal-content {
    animation: modalSlideIn 0.4s ease-out 0.1s forwards;
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 28px;
    cursor: pointer;
    color: #666;
    transition: all 0.2s ease;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close-modal:hover {
    color: #000;
    background-color: rgba(0, 0, 0, 0.1);
}
