/* ----- Global Styles ----- */

:root {
    --font-family-title: "IBM Plex Sans JP", sans-serif;
    --font-family-text: "IBM Plex Sans JP", sans-serif;
    --card-height: 65vh;
    --card-width: calc(var(--card-height) / 1.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none !important;
}

body {
    background-color: #212534;
    display: flex;
}

/* ----- Fleur Navigation ----- */

/* la fleur */

#fleur_nav{
    position: absolute;
    top: 20px;
    left: 15px;
    width: 70px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
    z-index: 2;
}

#fleur_nav .nav-content{
    display: flex;
    align-items: center;
    justify-content: center;
    transform: rotate(357deg);
    position:fixed;
}

.nav-content .toggle-btn,
.nav-content span a{
    height: 60px;
    width: 60px;
    background: linear-gradient(to left, transparent 25%, purple);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(0, 0, 0, .2);
    overflow: hidden;
    text-decoration: none;
    color: white;
}

.nav-content .toggle-btn{
    font-size: 35px;
    color: rgb(255, 255, 255);
    z-index: 10;
    cursor: pointer;
    transform: rotate(0);
    transition: all .6s ease;
}

#fleur_nav.active .toggle-btn{
    transform: rotate(180deg);
}

.nav-content span{
    position: absolute;  
    transition: all .6s ease;
    opacity: 0;
    border: solid rgb(225, 0, 255) 1px;
    border-radius: 50%;
}

#fleur_nav.active .nav-content span{
    transform: rotate(calc(var(--i) * (-360deg/8))) translateY(120px);
    opacity: 1;
}

.nav-content span a{
    text-decoration: none;
    transform: rotate(calc(var(--i) * (-360deg/-8)));
}

.nav-content span a i{
    font-size: 24px;
    color: rgb(255, 255, 255);
    opacity: .8;
    transition: .2s;
}

.nav-content span a:hover i{
    opacity: 1;
    font-size: 30px;
}

/* atempt for logo */
.icon-fleur{
    width: 90px;
    height: 90px;
}

#starf{
    height: 60px;
}

#starf2{
    height: 70px;
}

/* fin de la fleur */

/* ----- Main and Canvas Container ----- */

main {
    width: 100%;
    /* padding: 1em; */
}

.canvas-container {
    position: relative;
    width: 100.5%;
    height: 90vh;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    margin-bottom:4vh;
}

/* Ajout des styles pour la bordure animée */
.gradient-border {
    --borderWidth: 3px;
    background: #1d1f20;
    position: relative;
    border-radius: var(--borderWidth);
    width: 98%;
    margin-top: 10px;
}

.gradient-border:after {
    content: '';
    position: absolute;
    top: calc(-1 * var(--borderWidth));
    left: calc(-1 * var(--borderWidth));
    height: calc(100% + var(--borderWidth) * 2);
    width: calc(100% + var(--borderWidth) * 2);
    background: linear-gradient(60deg, #f79533, #f37055, #ef4e7b, #a166ab, #5073b8, #1098ad, #07b39b, #6fba82);
    border-radius: calc(2 * var(--borderWidth));
    z-index: -1;
    animation: animatedgradient 3s ease alternate infinite;
    background-size: 300% 300%;
}

@keyframes animatedgradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.background {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #1A1C29;
    z-index: 0;
}

.overlay {
    position: relative;
    z-index: 2;
    text-align: center;
}

.overlay h1 {
    font-size: 3em;
    margin-bottom: 0.5em;
}

.overlay p {
    font-size: 1.5em;
}

/* annimation du "le campus du numerique" */

.loader span {
    color: #faebd7;
    text-shadow: 0 0 0 #faebd7;
    -webkit-animation: loading 1s ease-in-out infinite alternate;
    font-family: var(--font-family-text);
}

@-webkit-keyframes loading {
    to {
        text-shadow: 20px 0 70px #ff00a2;
        color: #8A2BE2;
    }
}

.loader span:nth-child(2) { -webkit-animation-delay: 0.1s; }
.loader span:nth-child(3) { -webkit-animation-delay: 0.2s; }
.loader span:nth-child(4) { -webkit-animation-delay: 0.3s; }
.loader span:nth-child(5) { -webkit-animation-delay: 0.4s; }
.loader span:nth-child(6) { -webkit-animation-delay: 0.5s; }
.loader span:nth-child(7) { -webkit-animation-delay: 0.6s; }
.loader span:nth-child(8) { -webkit-animation-delay: 0.7s; }
.loader span:nth-child(9) { -webkit-animation-delay: 0.8s; }
.loader span:nth-child(10) { -webkit-animation-delay: 0.9s; }
.loader span:nth-child(11) { -webkit-animation-delay: 1s; }
.loader span:nth-child(12) { -webkit-animation-delay: 1.1s; }
.loader span:nth-child(13) { -webkit-animation-delay: 1.2s; }
.loader span:nth-child(14) { -webkit-animation-delay: 1.3s; }
.loader span:nth-child(15) { -webkit-animation-delay: 1.4s; }
.loader span:nth-child(16) { -webkit-animation-delay: 1.5s; }
.loader span:nth-child(17) { -webkit-animation-delay: 1.6s; }
.loader span:nth-child(18) { -webkit-animation-delay: 1.7s; }
.loader span:nth-child(19) { -webkit-animation-delay: 1.8s; }
.loader span:nth-child(20) { -webkit-animation-delay: 1.9s; }
.loader span:nth-child(21) { -webkit-animation-delay: 2s; }
.loader span:nth-child(22) { -webkit-animation-delay: 2.1s; }

/* l'annimation du "aultech" */

#aultech-title{
    font-family: var(--font-family-title);
    font-size: 10vw;
    margin: 0;
    padding-bottom: 0.5rem;
    letter-spacing: 0.5rem;
    color: #538AC1;
    transition: all 0.3s ease;
    z-index: 3;
    text-shadow: 
        0 5px 0 #ccc;
        transform: perspective(500px) rotateX(30deg);
}

/* Styles pour la fusée et la bannière */
.rocket-container {
    position: absolute;
    top: 20%;
    left: -200px;
    display: flex;
    align-items: center;
    transform: translateY(-50%);
    animation: rocket-animation 10s linear infinite;
    z-index: 2;
}

.rocket {
    font-size: 3em;
    transform: rotate(45deg);
}

.banner {
    margin-left: 10px;
    padding: 5px 15px;
    background-color: rgb(208, 0, 255);
    color: rgb(255, 255, 255);
    font-weight: bold;
    border-radius: 5px;
    font-size: 1.5em;
}

@keyframes rocket-animation {
    0% {
        left: -200px;
    }
    100% {
        left: 100%;
    }
}

/* Styles pour les mots flottants */
.floating-word {
    position: absolute;
    font-size: 2em;
    color: #FFFFFF;
    opacity: 0;
    z-index: 1;
    transform-origin: center;
}

/* Animation d'apparition */
.animate-in {
    animation: wordAppear 1s forwards;
}

/* Animation de disparition */
.animate-out {
    animation: wordDisappear 1s forwards;
}

/* Animations améliorées */
@keyframes wordAppear {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.5) rotate(-15deg);
    }
    60% {
        opacity: 1;
        transform: translateY(-10px) scale(1.1) rotate(5deg);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1) rotate(0deg);
    }
}

@keyframes wordDisappear {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1) rotate(0deg);
    }
    100% {
        opacity: 0;
        transform: translateY(-20px) scale(0.5) rotate(15deg);
    }
}

/* ----- Carousel ----- */

/* carousel */
.carousel-container {
    position: relative;
    display: flex;
    width: 1000px;
    height: 400px;
    align-items: center;
    border-radius: 8px;
    justify-content: center;
    margin-top: 16vh;
    margin-bottom: 25vh;
    margin-left: auto;
    gap: 20px;
    margin-right: auto;
}

.carousel-content {
    height: 80%;
    width: 400px;
    padding: 2rem;
    overflow-y: auto;
    flex-direction: column;
    background-color: rgb(52, 52, 52);
    gap: 20px;
    color: white;
    box-shadow: 11px 12px 0px #a200ff; 
    min-width: 300px;
}

.carousel-image {
    width: 40%;
    background-color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    border: solid 5px rgb(157, 0, 255);
    border-radius: 90px;
}

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

.carousel-container h2 {
    font-size: 1.875rem;
    margin-bottom: 1rem;
    font-family: var(--font-family-title);
}

.carousel-container p {
    color: white;
    margin-bottom: 10px;
    flex-grow: 1;
    font-family: var(--font-family-text);
}

.carousel-container button {
    background-color: #374151;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    cursor: pointer;
    transition: background-color 0.3s;
    align-self: flex-start;
    font-family: var(--font-family-text);
}

button:hover {
    background-color: #538AC1;
}

.nav-buttons {
    position: absolute;
    bottom: -35.5rem;
    right:44%;
    display: flex;
    gap: 1rem;
}

.nav-button {
    background-color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.nav-button:hover {
    background-color: #f3f4f6;
}

.nav-button {
    background-color: #991cdc; 
    color: white;
    font-family: var(--font-family-text);
}

.nav-button:hover {
    background-color: #538AC1; 
}

/* fin carousel */

/* ----- Nouveau Campus Section ----- */

#secnouveaucampus{
    width: 100%;
    height: 8vh;
    background-color: #282727;
    display: flex;
    justify-content: center;
    align-items: center;
}

#h2nouveaucampus{
    color:#B84BD6;
    font-family: var(--font-family-title);
    font-size: 30px;
    -webkit-box-reflect: below 5px linear-gradient(transparent,#0008);
    line-height: 0.70em;
    outline: none;
    text-shadow: 
    1px 0px 10px #bf58db, 
    0px 0px 10px #B84BD6;
}

.sectioncampus{
    width: 100%;
    background-color:#282727;
    height: 6%;
    display: flex;
    border: 1.5px solid #B84BD6;
    height:auto;
}

.articlecampus{
    width: 50%;
    height: 38vh;
}

.imgcampus{
    width: 50%;
    height: 37vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.borderimgcampus{
    border: 1px solid #A58FE3;
    width: 60%;
    height: 30vh;
    padding-left: 40px;
    padding-top: 15px;
}

.h2campus{
    color:#B84BD6 ;
    font-family: var(--font-family-title);
    padding: 20px;
    font-size: 20px;
}

.pcampus{ 
    color: white;
    padding: 15px;
    max-width: 100vw;
    font-family: var(--font-family-text);
}

.testimg{ 
    border: 1px solid #A58FE3;
    padding: 15px;
}

/* -------------------------- Bande infinie -------------------------- */

.wrapper,.wrapperR{
    margin-inline: auto;
    position: relative;
    height: 100px;
    margin-top: 5em;
    overflow: hidden;
    mask-image: linear-gradient(
        to right,
        rgba(0,0,0,0),
        rgba(0,0,0,1) 20%,
        rgba(0,0,0,1) 80%,
        rgba(0,0,0,0)
    );
}

.wrapper:hover .item{
    animation-play-state: paused !important;
}

.wrapperR:hover .itemR{
    animation-play-state: paused !important;
}

@keyframes scrollLeft {
    to {
      left: -200px;
    }
}

.item, .itemR{
    width: 200px;
    height: 100px;
    background-color: red;
    border-radius: 6px;
    position: absolute;
    left: max(calc(200px * 8), 100%);
    animation: scrollLeft 30s linear infinite;
}

.itemR{
    animation-direction: reverse;
}

.item a{
    display: block;
    width: 100%;
    height: 100%;
    background-color: rgb(104, 63, 63);
    border-radius: 6px;
}

.itemR a{
    display: block;
    width: 100%;
    height: 100%;
    background-color: rgb(104, 63, 63);
    border-radius: 6px;
}

.item1{
    animation-delay: calc(30s / 8 * (8 - 1) * -1);
}

.item2{
    animation-delay: calc(30s / 8 * (8 - 2) * -1);
}

.item3{
    animation-delay: calc(30s / 8 * (8 - 3) * -1);
}

.item4{
    animation-delay: calc(30s / 8 * (8 - 4) * -1);
}

.item5{
    animation-delay: calc(30s / 8 * (8 - 5) * -1);
}

.item6{
    animation-delay: calc(30s / 8 * (8 - 6) * -1);
}

.item7{
    animation-delay: calc(30s / 8 * (8 - 7) * -1);
}

.item8{
    animation-delay: calc(30s / 8 * (8 - 8) * -1);
}

@keyframes animate {
    0%,
    10%,
    100% {
        width: 0;
    }

    90% {
        width: 100%;
    }
}

/* Scroll Number */

.scrollviewnumber1{
    width: 100%;
    background-color: #212534;
    height: 33.33vh;
    display: grid;
    opacity: 0;
    filter: blur(5px);
    transform: translateX(-100%);
    transition: all 1s;
    display: flex;
}

.scrollviewnumber2{
    width: 100%;
    background-color: #212534;
    height: 33.33vh;
    display: grid;
    right: 20px;
    opacity: 0;
    filter: blur(5px);
    transition: all 1s;
    display: flex;
}

.scrollviewnumber3{
    width: 100%;
    background-color: #212534;
    height: 33.33vh;
    display: grid;
    opacity: 0;
    filter: blur(5px);
    transform: translateY(90%);
    transition: all 1s;
    display: flex;
}

.show{
    opacity: 1;
    transform:translateX(0);
    filter: blur(0);
}

.scrollarticle{
    width: 50%;
    height: 30vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.scrollarticle2{
    width: 40%;
    height: 30vh;
    margin-left: 225px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.scrollarticle3{
    width: 40%;
    height: 30vh;
    margin-left: 450px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.h2numberscroll{ 
    color: #B84BD6;
    font-size: 100px;
    font-family: var(--font-family-title);
}

.pnumberscroll{
    color: #A58FE3;
    font-size: 40px;
}

.scrollarticlep{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50%;
    height: 30vh;
}

@keyframes animate {
    0%,
    10%,
    100% {
        width: 0;
    }

    90% {
        width: 100%;
    }
}

/* ------------- début du scroll horizontal ------------- */

#h2scroll span {
    display: inline-block;
    transform: rotate(313deg);
}

#h2scroll {
    color: #bb4dff;
    font-size: 40px;
    position: absolute;
    top:215px;
    left: 200px;
}

.container {
    position: relative;
    width: 100%;
    min-height: 100vh;
}

.space-holder {
    position: relative;
    width: 100%;
}

.sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    overflow-x: hidden;
}

.horizontal {
    position: absolute;
    height: 100%;
    will-change: transform;
}

.cards {
    position: relative;
    height: 100%;
    padding: 0 0 0 150px;
    display: flex;
    flex-flow: row nowrap;
    justify-content: flex-start;
    align-items: center;
}

.sample-card {
    position: relative;
    height: 300px;
    width: 500px;
    background-color: #111f30;
    margin-right: 75px;
    flex-shrink: 0;
}

.container img {
    border: 3px solid #8100cb;
}

/* ------------- fin du scroll horizontal ------------- */

/* ----- Footer ----- */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');

#h2wrapper{
    color: #B84BD6;
    font-size: 80px;
    font-family: var(--font-family-title);
}

footer {
    background-color: #1A1C29;
    color: #ECF0F1;
    padding: 40px 20px;
    position: relative;
    overflow: hidden;
    margin-top: 200px;
}

footer::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 0;
    right: 0;
    height: 100px;
    background-color: #712d84;
    transform: skewY(-3deg);
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.footer-section {
    flex: 1 1 300px;
    margin: 0 15px 30px;
}

.footer-logo {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #ffffff;
}

.footer-section ul {
    list-style-type: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: #ECF0F1;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #3498DB;
}

.social-links {
    display: flex;
    margin-top: 20px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #34495E;
    border-radius: 50%;
    margin-right: 10px;
    transition: background-color 0.3s ease;
    text-decoration: none;
    color: #ECF0F1;
}

address a {
    color: #ffffff;
    text-decoration: underline;
}

.social-links a:hover {
    background-color: #3498DB;
}

#map {
    height: 200px;
    width: 100%;
    border-radius: 8px;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #B84BD6;
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
    }
    .footer-section {
        margin-bottom: 30px;
    }
}

/* ----- Custom Cursor ----- */

@media screen and (min-width: 1021px) {
    #custom-cursor {
        position: fixed;
        top: 0;
        left: 0;
        width: 10px;
        height: 10px;
        background-color: rgb(255, 255, 255);
        border-radius: 50%;
        pointer-events: none;
        z-index: 10000;
        transform: translate(-50%, -50%);
    }
    
    #cursor-shadow {
        position: fixed;
        top: 0;
        left: 0;
        width: 40px;
        height: 40px;
        background-color: rgb(166, 0, 255);
        border-radius: 50%;
        pointer-events: none;
        z-index: 9999;
        transform: translate(-50%, -50%);
        filter: blur(8px);
    }
}

/* ----- Media Queries ----- */

@media screen and (max-width: 1021px) {
    .carousel-container {
        width: 90vw;
        height: 450px;
    }

    .carousel-image {
        width: 446px;
        height:70%;
    }
    .carousel-image img {
        width: 100%;
        height: 100%;
    }
}

@media screen and (max-width: 670px) {
    .carousel-container {
        display: flex;
        flex-direction: column;
        gap: 15px;
        width: 90%;
        align-items: center;
        height: 570px;   
        margin-left: auto;
        margin-right: auto;
    }

    .carousel-content {
        width: 50%;
        height: 100%;
        padding: 10px;
        order: 2;
    }

    .carousel-image {
        width: 60%;
        height: 100%;
        order: 1;
    }
    .carousel-image img{
        width: 100%;
        height: auto;
    }

    .nav-buttons {
        bottom: -44.5rem;
        right:45%;
    }
}

@media only screen and (max-width:872px) {
    .sectioncampus{
        flex-direction: column;
        height: 95vh;
        width: 100%;
        display: flex;
        align-items: center;
        padding-top: 20px;
        padding:20px;
    }
    .articlecampus{
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        order: 3;
        flex-direction: column;
    }
    .imgcampus{
        display: flex;
        order: 1;
        flex-direction: column;
        width: 100%;
        height: 80%;
    }
    .testimg{
        width: 100%;
        height: 100%;
    }
    .pcampus{
        font-size: 18px;
        padding: 10px;
    }
}

@media only screen and (max-width:872px) {
    .sectioncampus{
        flex-direction: column;
        height: 95vh;
        width: 100%;
        display: flex;
        align-items: center;
        padding-top: 20px;
        padding: 20px;
    }
    .articlecampus{
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        order: 3;
        flex-direction: column;
    }
    .imgcampus{
        display: flex;
        order: 1;
        flex-direction: column;
        width: 100%;
        height: 80%;
    }
    .testimg{
        width: 100%;
        height: 100%;
    }
    .pcampus{
        font-size: 18px;
        padding: 10px;
    }
}
