main {
    overflow-x: hidden;
}



/* HERO */
main section.heroSection {
    min-height: 75vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    text-align: center;
    padding: 8rem 1.25rem 4rem 1.25rem;
    background-image:
            url("../Images/SVG/circles.svg"),
            linear-gradient(to bottom, var(--c-lightBackground), white);
}

main section.heroSection .heroContainer {
    width: 100%;
    max-width: 1280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 6rem;
}

main section.heroSection .heroContainer img.img {
    width: 20%;
    margin-bottom: 2rem;
}

main section.heroSection h1 {
    font-family: "DM Serif Text", serif;
    color: var(--c-black);
    font-weight: 400;
    font-size: clamp(2.4rem, 1.8rem + 2vw, 4.4rem);
    line-height: 1.05;
    margin-bottom: 4rem;
}

main section.heroSection h1 span {
    color: var(--c-secondary);
}

main section.heroSection a {
    font-family: "DM Serif Text", serif;
    color: var(--c-black);
    background-color: var(--c-orange);
    font-size: clamp(1.05rem, 0.95rem + 0.3vw, 1.35rem);
    font-weight: 550;
    line-height: 1;
    padding: 1rem 2rem;
    border-radius: 50rem;
    transition: all .25s ease-in-out;
}

main section.heroSection a:hover {
    background-color: var(--c-orangeHovered);
}



/* ABOUT */
main section.aboutSection {
    background: white;
}

main section.aboutSection .upTransi {
    width: 100%;
    height: auto;
    margin-bottom: -5px;
    display: block;
}

main section.aboutSection .aboutContainer {
    padding: 5rem 1.25rem 0 1.25rem;
    background: var(--c-main);
    display: flex;
    flex-direction: column;
    align-items: center;
}

main section.aboutSection .aboutContainer .aboutText {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 22px rgba(61, 21, 30, 0.1);
    color: var(--c-black);
    padding: clamp(2rem, 1.2rem + 2vw, 4rem);
    border-radius: 3rem;
    width: 100%;
    max-width: 1280px;
}

main section.aboutSection .aboutContainer .aboutText h2 {
    font-family: "DM Serif Text", serif;
    color: var(--c-black);
    font-weight: 400;
    font-size: clamp(2rem, 1.45rem + 1.5vw, 3.2rem);
    line-height: 1.05;
    text-align: center;
    margin-bottom: 2rem;
}

main section.aboutSection .aboutContainer .aboutText h2 span {
    color: var(--c-secondary);
}

main section.aboutSection .aboutContainer .aboutText p {
    color: var(--c-black);
    font-family: "Montserrat", sans-serif;
    font-weight: 450;
    line-height: 1.7;
    margin: 1rem 0;
}

main section.aboutSection .aboutContainer .aboutText .img {
    width: 100%;
    min-height: 320px;
    max-height: 420px;
    margin-top: 2rem;
    background-image: url("../Images/nenuphare.jpg");
    background-size: cover;
    background-position: center;
    border-radius: 2rem;
    overflow: hidden;
    display: block;
}

main section.aboutSection .aboutContainer .aboutText img {
    width: 100%;
    min-height: 320px;
    max-height: 420px;
    background: rgba(37, 118, 132, 0.9);
    object-fit: contain;
    object-position: center;
    display: block;
}



/* VALUES */

.valuesContainer {
    position: relative;
    height: 100vh;
    max-width: 100%;
}

.valuesContainer > img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: top;
}

.valuesContainer .valueCard {
    width: 30%;
    position: absolute;
    top: 27.5%;
    aspect-ratio: 7/6;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 2px 22px rgba(61, 21, 30, 0.1);
    backdrop-filter: blur(5px);
    border-radius: 3rem;
    padding: 3rem 1.5rem 1.5rem 1.5rem;
    transform: translate(-50%, 0);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
}

/* positions EXACTES */
.valuesContainer .valueCard.first {
    left: 22.5%;
    top: 20%;
    rotate: -7deg;
}

.valuesContainer .valueCard.second {
    left: 50%;
    rotate: 2deg;
}

.valuesContainer .valueCard.third {
    left: 77.5%;
    top: 25%;
    rotate: -6deg;
}

.valuesContainer .valueCard h3 {
    font-family: "DM Serif Text", serif;
    color: var(--c-orangeHovered);
    font-size: clamp(1.5rem, 1.1rem + 0.9vw, 2.3rem);
    font-weight: 450;
    line-height: 1.05;
}

.valuesContainer .valueCard .text {
    width: 82%;
}

.valuesContainer .valueCard .text span {
    color: var(--c-black);
    font-family: "DM Serif Text", serif;
    font-weight: 450;
    font-size: clamp(1.4rem, 1rem + 0.8vw, 2rem);
}

.valuesContainer .valueCard .text p {
    font-family: "Montserrat", sans-serif;
    color: var(--c-black);
    font-weight: 450;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-top: 0.5rem;
}

.valuesContainer .valueCard .img {
    width: 100%;
    height: 35%;
    border-radius: 2rem;
    background: var(--c-tertiary);
    margin-top: 1.35rem;
    overflow: hidden;
}

.valuesContainer .valueCard .img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}



/* WORKSHOPS */
section.workshopsSection {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 6rem 0;
}

section.workshopsSection h2 {
    color: var(--c-black);
    font-size: clamp(1.6rem, 1.2rem + 0.9vw, 2.4rem);
    font-weight: 500;
    font-family: "DM Serif Text", serif;
    background: rgba(255, 255, 255, 0.7);
    box-shadow: 0 2px 22px rgba(61, 21, 30, 0.15);
    padding: 0.5rem 2.5rem;
    border-radius: 50rem;
    backdrop-filter: blur(5px);
    width: fit-content;
}

section.workshopsSection .timeline-container {
    position: relative;
    width: 100%;
    max-width: none;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    margin-top: 6rem;
}

section.workshopsSection .timeline-line {
    position: absolute;
    top: 11px;
    left: 0;
    right: 0;
    height: 3px;
    background-color: #58a99e;
    z-index: 1;
}

section.workshopsSection .timeline-container .items {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    padding: 0 5%;
}

section.workshopsSection .timeline-item {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 120px;
    flex: 1;
}

section.workshopsSection .marker-container {
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

section.workshopsSection .marker {
    width: 12px;
    height: 12px;
    background-color: #58a99e;
    border-radius: 50%;
}

section.workshopsSection .content {
    color: #58a99e;
    font-family: "DM Serif Text", serif;
    font-weight: 400;
}

section.workshopsSection .date {
    margin-bottom: 5px;
}

section.workshopsSection .day {
    font-size: 1.3rem;
    font-weight: 450;
}

section.workshopsSection .month {
    font-size: 0.9rem;
    font-weight: 450;
}

section.workshopsSection .title {
    font-size: 1.1rem;
    font-weight: 500;
}

section.workshopsSection .timeline-item.active {
    flex: 1.4;
    max-width: 250px;
}

section.workshopsSection .timeline-item.active .content {
    color: #1e706c;
    margin-top: .5rem;
}

section.workshopsSection .timeline-item.active .day {
    font-size: 2rem;
}

section.workshopsSection .timeline-item.active .month {
    font-size: 1.3rem;
}

section.workshopsSection .timeline-item.active .marker {
    width: 26px;
    height: 26px;
    background-color: #f2faf9;
    border: 3px solid #1e706c;
    position: relative;
}

section.workshopsSection .timeline-item.active .marker::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 14px;
    height: 14px;
    background-color: #1e706c;
    border-radius: 50%;
}

section.workshopsSection .workshopHighlight {
    width: 100%;
    max-width: 1280px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

section.workshopsSection .workshopHighlight h3 {
    font-family: "DM Serif Text", serif;
    color: var(--c-tertiary);
    font-weight: 500;
    font-size: clamp(1.2rem, 1rem + 0.5vw, 1.75rem);
    margin-top: .5rem;
}

section.workshopsSection .workshopHighlight p {
    width: 100%;
    max-width: 1100px;
    font-family: "DM Serif Text", serif;
    font-size: clamp(1.7rem, 1.2rem + 1.4vw, 3rem);
    line-height: 1.15;
    margin-top: 6rem;
}

section.workshopsSection .workshopHighlight p span {
    color: var(--c-secondary);
}

section.workshopsSection .workshopHighlight a {
    font-family: "DM Serif Text", serif;
    color: white;
    background-color: var(--c-tertiary);
    font-size: clamp(1.05rem, 0.95rem + 0.3vw, 1.35rem);
    line-height: 1;
    padding: 1rem 2rem;
    border-radius: 50rem;
    margin-top: 4rem;
    transition: all .25s ease-in-out;
}

section.workshopsSection .workshopHighlight a:hover {
    background-color: var(--c-orangeHovered);
}



/* NEWS */
section.newsSection {
    width: 100%;
    min-height: 100vh;
    padding: 6rem 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

section.newsSection .newsHeader {
    width: 100%;
    max-width: 1280px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

section.newsSection .newsHeader h2 {
    font-family: "DM Serif Text", serif;
    color: var(--c-black);
    font-weight: 500;
    font-size: clamp(1.8rem, 1.35rem + 1vw, 2.6rem);
    line-height: 1.1;
}

section.newsSection .newsHeader a {
    font-family: "DM Serif Text", serif;
    font-size: clamp(1.05rem, 0.95rem + 0.3vw, 1.35rem);
    font-weight: 500;
    background: var(--c-black);
    color: white;
    padding: 0.5rem 2rem;
    border-radius: 2rem;
    white-space: nowrap;
}

section.newsSection .carouselViewport {
    width: 100%;
    max-width: 1280px;
}

section.newsSection .carouselViewport .newsTrack {
    align-items: stretch;
}

section.newsSection .carouselViewport .newsTrack .newsSlide {
    display: flex;
    height: auto;
}

section.newsSection .carouselViewport .newsTrack .newsSlide article.newsCard {
    width: min(350px, 80vw);
    height: 100%;
    color: var(--c-black);
    background: rgba(255, 255, 255, 0.7);
    box-shadow: 0 2px 22px rgba(61, 21, 30, 0.15);
    border-radius: 2.5rem;
    backdrop-filter: blur(5px);
    display: flex;
    flex-direction: column;
    align-items: center;
}

section.newsSection .carouselViewport .newsTrack .newsSlide article.newsCard img {
    width: 90%;
    aspect-ratio: 16 / 10;
    border-radius: 1.5rem;
    background: var(--c-orange);
    margin-top: 1.35rem;
    object-fit: cover;
    object-position: center;
    display: block;
}

section.newsSection .carouselViewport .newsTrack .newsSlide article.newsCard .text {
    width: 85%;
    display: flex;
    flex-direction: column;
    flex: 1;
}

section.newsSection .carouselViewport .newsTrack .newsSlide article.newsCard .text h3 {
    font-family: "DM Serif Text", serif;
    font-weight: 500;
    font-size: clamp(1.2rem, 1rem + 0.4vw, 1.5rem);
    padding: 1rem 0;
    line-height: 1.15;
}

section.newsSection .carouselViewport .newsTrack .newsSlide article.newsCard .text p {
    font-family: "Montserrat", sans-serif;
    font-size: 0.92rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 1rem;
}

section.newsSection .carouselViewport .newsTrack .newsSlide article.newsCard .text p.more {
    color: var(--c-black);
    font-family: "DM Serif Text", serif;
    font-size: 1rem;
    padding: 0.5rem 1.5rem;
    border-radius: 0.75rem;
    background: var(--c-orange);
    width: fit-content;
    text-align: center;
    align-self: center;
    margin: auto 0 2rem 0;
    transition: all .25s ease-in-out;
    cursor: pointer;
}

section.newsSection .carouselViewport .newsTrack .newsSlide article.newsCard .text p.more:hover {
    background: var(--c-orangeHovered);
}




/* TABLETTE */
@media screen and (max-width: 1100px) {
    main section.heroSection {
        min-height: 68vh;
        padding-top: 7rem;
    }

    main section.heroSection .heroContainer img.img {
        width: 50%;
        margin-bottom: 0;
    }

    main section.aboutSection .aboutContainer {
        padding-top: 4rem;
    }

    .valuesContainer {
        position: relative;
        height: auto;
        min-height: auto;
        padding: 3rem 1.25rem 4rem 1.25rem;
        display: grid;
        grid-template-columns: 1fr;
        gap: 2rem;
        background: var(--c-main);
    }

    .valuesContainer > img {
        display: none;
    }

    .valuesContainer .valueCard {
        position: relative;
        inset: auto;
        width: 100%;
        max-width: 700px;
        margin: 0 auto;
        aspect-ratio: auto;
        min-height: 420px;
        transform: none;
        rotate: 0deg !important;
    }

    .valuesContainer .valueCard.first,
    .valuesContainer .valueCard.second,
    .valuesContainer .valueCard.third {
        left: auto;
        top: auto;
    }

    section.workshopsSection {
        padding: 4rem 1.25rem;
    }

    section.workshopsSection .timeline-container {
        margin-top: 5rem;
    }

    section.workshopsSection .workshopHighlight p {
        margin-top: 4rem;
    }

    section.newsSection {
        min-height: auto;
        padding: 5rem 1.25rem;
    }
}



/* PETITE TABLETTE */
@media screen and (max-width: 850px) {
    main section.heroSection .heroContainer img.img {
        width: 45%;
        margin-bottom: 0;
    }


    main section.heroSection h1 br {
        display: none;
    }

    section.workshopsSection .timeline-container {
        overflow-x: auto;
        justify-content: flex-start;
    }

    section.workshopsSection .timeline-container .items {
        min-width: 760px;
        width: 760px;
        padding: 0 1rem;
    }

    section.workshopsSection .timeline-line {
        left: 1rem;
        right: 1rem;
    }

    section.newsSection .newsHeader {
        align-items: flex-start;
    }
}



/* MOBILE */
@media screen and (max-width: 700px) {
    main section.heroSection {
        min-height: auto;
        padding: 5rem 1rem 5rem 1rem;
    }

    main section.heroSection .heroContainer img.img {
        width: 60%;
        margin-bottom: 0;
    }

    main section.heroSection h1 {
        margin-bottom: 2.5rem;
    }

    main section.heroSection a {
        width: calc(100% - 1.25rem);
        max-width: 80%;
        text-align: center;
    }

    main section.aboutSection .aboutContainer {
        padding: 3rem 1rem 0 1rem;
    }

    main section.aboutSection .aboutContainer .aboutText {
        padding: 1.5rem;
        border-radius: 2rem;
    }

    main section.aboutSection .aboutContainer .aboutText img {
        height: max-content;
        min-height: 320px;
        max-height: 420px;
        border-radius: 1.5rem;
    }

    section.workshopsSection .timeline-item.active .content {
        margin-top: 3rem;
    }

    .valuesContainer {
        height: auto;
        min-height: auto;
        padding: 3rem 1rem;
        gap: 1.5rem;
    }

    .valuesContainer .valueCard {
        min-height: auto;
        padding: 1.5rem 1.25rem;
        border-radius: 2rem;
    }

    .valuesContainer .valueCard .text {
        width: 100%;
    }

    .valuesContainer .valueCard .img {
        height: 180px;
        border-radius: 1.5rem;
        margin-top: 1rem;
    }

    section.workshopsSection {
        padding: 3rem 1rem;
    }

    section.workshopsSection h2 {
        padding: 0.5rem 1.25rem;
    }

    section.workshopsSection .timeline-container {
        margin-top: 3rem;
        overflow: visible;
        width: 100%;
    }

    section.workshopsSection .timeline-line {
        border-radius: 50px;
    }

    section.workshopsSection .timeline-container .items {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
        width: 100%;
        min-width: 0;
        padding: 0;
    }

    section.workshopsSection .timeline-item {
        display: none;
        width: auto;
        flex: unset;
    }

    section.workshopsSection .timeline-item:nth-child(2),
    section.workshopsSection .timeline-item:nth-child(3),
    section.workshopsSection .timeline-item:nth-child(4) {
        display: flex;
    }

    section.workshopsSection .timeline-item.active {
        max-width: none;
        transform: scale(1.05);
    }

    section.workshopsSection .day {
        font-size: 1.1rem;
    }

    section.workshopsSection .month {
        font-size: 0.8rem;
    }

    section.workshopsSection .timeline-item.active .day {
        font-size: 1.6rem;
    }

    section.workshopsSection .timeline-item.active .month {
        font-size: 1rem;
    }

    section.workshopsSection .title {
        font-size: 1rem;
    }

    section.workshopsSection .workshopHighlight h3 {
        margin-top: .5rem;
    }

    section.workshopsSection .workshopHighlight p {
        margin-top: 2.5rem;
        line-height: 1.2;
    }

    section.workshopsSection .workshopHighlight a {
        width: calc(100% - 1.25rem);
        max-width: 80%;
        text-align: center;
        margin-top: 2.5rem;
    }

    section.newsSection {
        padding: 4rem 1rem;
    }

    section.newsSection .newsHeader {
        margin-bottom: 2rem;
    }

    section.newsSection .newsHeader a {
        max-width: 320px;
        text-align: center;
    }

    section.newsSection .carouselViewport .newsTrack .newsSlide article.newsCard {
        width: 82vw;
        border-radius: 2rem;
    }

    section.newsSection .carouselViewport .newsTrack .newsSlide article.newsCard img {
        border-radius: 1.25rem;
    }

    section.newsSection .carouselViewport .newsTrack .newsSlide article.newsCard .text {
        width: 88%;
    }

    section.newsSection .carouselViewport .newsTrack .newsSlide article.newsCard .text p.more {
        margin: 1.5rem 0;
    }
}