@import url('https://fonts.googleapis.com/css2?family=Poppins%3Awght%40100%3B200%3B300%3B400%3B500%3B600&display=swap%27%29%3B');
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins',sans-serif;
    text-decoration: none;
    scroll-behavior: smooth;
}
@keyframes backgroundAnimation {
    0% { background-color: #4e074e; }
    25% { background-color: #4a026f; }
    50% { background-color: #620577; }
    75% { background-color: #5a007f; }
    100% { background-color: #3d073d; }
}
body{
    width: 100%;
    height: auto;
    overflow-x: hidden;
    animation: backgroundAnimation 25s infinite alternate ease-in-out;
    transition: background-color 4s ease-in-out;
}

::-webkit-scrollbar{
    width: 10px;
}
::-webkit-scrollbar-track{
    background: #f1f1f1;
}
::-webkit-scrollbar-thumb{
    background: #8400ff;
    border-radius: 12px;
    transition: all 0.3s ease;
}
::-webkit-scrollbar-thumb:hover{
    background: #8400ff;
}
.header{
    position: static;
}
nav{
    width: 100%;
    height: 10vh;
    background-color: rgb(57, 12, 63);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
}
.nav-container{
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-around;
    align-items: center;
}
.logo{
    color: white;
    font-size: 2rem;
    font-weight: bold;
}
.logo span{
    color: #ffffff;
    text-shadow: 0 0 10px #b74b4b;
}
.hamburg,
.cancel{
    cursor: pointer;
    position: absolute;
    right: 15px;
    top: 10px;
    color: white;
    opacity: 0;
    pointer-events: none;
    font-size: clamp(2.5rem, 0.5rem + 5vw, 3rem);
}
.nav-container .links{
    display: flex;
}
.nav-container .links a{
    position: relative;
    font-size: 1.2rem;
    color: white;
    margin: 0 20px;
    text-decoration: none;
    font-weight: 550;
    transition: 0.3s linear;
}
.nav-container .links a::before{
    position: absolute;
    content: "";
    bottom: -3px;
    left: 0;
    width: 0%;
    height: 3px;
    background-color: #ffffff;
    transition: 0.2s linear;
}
.nav-container .links a:hover::before{
    width: 100%;
}
.nav-container .links a:hover{
    color: #ffffff;
}
.nav-container .links a.active {
    color: white;
}
.nav-container .links a.active::before {
    width: 100%;
    background-color: #ffffff;
}

.dropdown{
    z-index: 100;
    position: absolute;
    top: 0;
    transform: translateY(-500px);
    width: 100%;
    height: auto;
    backdrop-filter: blur(4px) brightness(40%);
    box-shadow: 0 0 20px black;
    transition: 0.2s linear;

}
.dropdown .links a{
    display: flex;
    color: white;
    text-decoration: none;
    justify-content: center;
    padding: 15px 0;
    align-items: center;
    transition: 0.2s linear;
}
.dropdown .links a:hover{
    background-color: #b74b4b;
}
section{
    width: 100%;
    min-height: 90vh;
}
section .main-container{
    margin-top: 6%;
    display: flex;
    justify-content: space-between;
    padding-left: 100px;
    align-items: center;
}
.main-container .image{
    width: 500px;
    height: 60vh;
    margin-top: 2%;
    border-radius: 100%;
    overflow: hidden;
    box-shadow: #b74b4b;
}
.main-container .image img{
    width: 100%;
}
.main-container .image:hover{
    animation: animate 1.5s ease-in-out infinite;
}
@keyframes animate{
    0%{
        scale: 1;
    }
    50%{
        scale: 1.05;
    }
    100%{
        scale: 1;
    }
}
.main-container .content{
    color: white;
    width: 45%;
}
.content{
    text-align: center;
}
.content h1{
    font-size: 3vw;
}
.content h1 span{
    color: white;
    text-shadow: 0 0 10px #b74b4b;
}
.content .typewriter {
    font-size: clamp(1rem, 1rem + 5vw, 2.5rem);
    font-weight: 600;
    display: inline-flex;
}

/*.content .typewriter-text {
    color: white;
    padding-left: 10px;
    text-shadow: 0 0 10px #b74b4b;
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
    border-right: 2px solid white;
    animation: typing 5s steps(15) infinite alternate, blink 0.8s infinite;
}

@keyframes typing {
    10%, 15%, 30%, 35%, 50%, 55%, 70%, 75%, 90%, 95%{
        width: 0;
    }
    5%,20%,25%,40%,45%,60%,80%,85%{
        width: calc(100%+8px);
    }
}

@keyframes blink {
    50% {
        border-color: transparent;
    }
}

@keyframes swapText {
    0%, 24% {
        content: "en BTS SIO";
    }
    25%, 49% {
        content: "étudiant";
    }
    50%, 75% {
        content: "en option SLAM";
    }
    76%, 100% {
        content: "rigoureux";
    }
}

.content .typewriter-text::after {
    content: "";
    animation: swapText 8s infinite;
}
*/
.content p{
    font-size: clamp(0.4rem, 0.2rem + 9vw, 1rem);
    margin: 10px 0;
}
.social-links i{
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 3rem;
    height: 3rem;
    background-color: transparent;
    border: 0.2rem solid white;
    border-radius: 50%;
    color: white;
    margin: 5px 15px;
    margin-top: 5%;
    font-size: 1.5rem;
    transition: 0.2s linear;
}
.social-links i:hover{
    scale: 1.3;
    color: black;
    background-color: white;
    filter: drop-shadow(0 0 10px #b74b4b);
}
.content button{
    width: 40%;
    height: 6vh;
    margin-top: 5%;
    margin-bottom: 5px;
    background-color: #9c64d1;
    color: white;
    border: none;
    outline: none;
    font-size: 120%;
    font-weight: 700;
    border-radius: 5px;
    transition: 0.2s linear
}
.content button:hover{
    scale: 1.1;
    color: white;
    border: 2px solid white;
    background-color: transparent;
    font-weight: 700;
    box-shadow: 0 0 40px white;
}
section .content{
    width: 80%;
    margin: 0px auto;
}
.about-section {
    width: 100%;
    background-color: #985dcf;
    margin: auto;
    padding: 40px 0;
    text-align: center;
    color: white;
}

.about-section h2 {
    font-size: 2.5rem;
    text-shadow: 0 0 10px #b74b4b;
}

.about-section p {
    margin-left: 19%;
    font-size: 1.2rem;
    line-height: 1.6;
    margin-top: 20px;
    width: 60%;
}
.school-cards {
    display: flex;
    justify-content: center;
    gap: 20%;
    margin-top: 30px;
}

.card {
    background: rgba(255, 255, 255, 0.1);
    padding: 5px;
    border-radius: 10px;
    width: 30%;
    text-align: center;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.card h3{
    font-size: 4vh;
    color: white;
}

.card p{
    font-size: 3vh;
    color: white;
}
#competences {
    text-align: center;
    padding: 50px 20px;
    color: white;
}
#competences h2{
    font-size: 2.5rem;
    text-shadow: 0 0 10px #b74b4b;
}

.skills-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5%;
    margin-top: 20px;
}

.skill-card {
    background: rgba(255, 255, 255, 0.1);
    margin-top: 3%;
    padding: 2px;
    border-radius: 10px;
    height: 35vh;
    width: 20%;
    text-align: center;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease-in-out;
}

.skill-card h3{
    font-size: 4vh;
    color: white;
}

.skill-card p{
    font-size: 2.5vh;
    color: white;
}

.skill-card i {
    font-size: 5rem;
    color: white;
    margin-bottom: 10px;
}
.skill-card img {
    width: 10vh;
    height: 10vh;
    margin-bottom: 10px;
}

.skill-card:hover {
    transform: scale(1.1);
    background: #9231af;
}

#competences button{
    width: 43%;
    height: 6vh;
    margin-top: 4%;
    padding-bottom: 5px;
    background-color: #8400ff;
    color: white;
    border: none;
    outline: none;
    font-size: 120%;
    font-weight: 700;
    border-radius: 5px;
    transition: 0.2s linear
}
#competences button:hover{
    scale: 1.1;
    color: white;
    border: 2px solid white;
    background-color: #b76bff;
    font-weight: 700;
    box-shadow: 0 0 40px white;
}
.skill-cardS{
    background: rgba(255, 255, 255, 0.1);
    margin-top: 3%;
    padding: 2px;
    border-radius: 10px;
    height: 35vh;
    width: 30%;
    text-align: center;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease-in-out;
}
.skill-cardS h3{
    font-size: 4vh;
    color: white;
}

.skill-cardS p{
    font-size: 2.5vh;
    color: white;
}

.skill-cardS img {
    width: 10vh;
    height: 10vh;
    margin-bottom: 10px;
}

.skill-cardS:hover {
    transform: scale(1.1);
    background: #9231af;
}
#projets {
    text-align: center;
    padding: 50px 20px;
    background: #3a004b; /* Fond violet foncé */
    color: white;
}

#projets h2{
    font-size: 2.5rem;
    text-shadow: 0 0 10px #b74b4b;
}

.projects-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14%;
    margin-top: 20px;
}

.project-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    margin-top: 3%;
    border-radius: 10px;
    width: 400px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease-in-out;
    position: relative;
}

.project-card:hover {
    transform: scale(1.1);
}

/* Style du cadre photo */
.frame {
    width: 100%;
    height: 220px;
    background: #fff;
    padding: 10px;
    border: 10px solid #ddd;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.3);
    margin-bottom: 10px;
}

.frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 3px;
}

/* Effet papier pour le cadre */
.project-card::before {
    content: "";
    position: absolute;
    top: -10px;
    left: -10px;
    width: calc(100% + 20px);
    height: calc(100% + 20px);
    background: rgba(255, 255, 255, 0.05);
    z-index: -1;
    transform: rotate(-2deg);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

/* Style du bouton */
.project-card .btn {
    display: inline-block;
    padding: 10px 15px;
    color: white;
    background: #b74b4b;
    text-decoration: none;
    border-radius: 20px;
    transition: 0.3s;
    margin-top: 10px;
}

.project-card .btn:hover {
    background: white;
    color: #b74b4b;
}

#veille {
    text-align: center;
    padding: 50px 20px;
    background: #2b0035;
    color: white;
}

#veille h2{
    font-size: 2.5rem;
    text-shadow: 0 0 10px #b74b4b;
}

.notebook {
    width: 350px;
    margin: auto;
    margin-top: 5%;
    background: #fff;
    border-radius: 15px;
    padding: 20px;
    position: relative;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.3);
}

.pages {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.page {
    position: absolute;
    width: 100%;
    height: 100%;
    padding: 15px;
    background: #fdf7e3;
    border-radius: 10px;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transform: rotateY(90deg);
    transition: opacity 0.5s, transform 0.5s;
}

.page.active {
    opacity: 1;
    transform: rotateY(0);
}

.page h3 {
    color: #333;
}

.page img {
    width: 80%;
    height: auto;
    margin: 10px 0;
    border-radius: 5px;
}

.page .btn {
    display: inline-block;
    padding: 8px 12px;
    background: #b74b4b;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: 0.3s;
}

.page .btn:hover {
    background: white;
    color: #b74b4b;
}

/* Contrôles de pagination */
.controls {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
}

.controls button {
    background: #b74b4b;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
}

.controls button:hover {
    background: rgb(202, 69, 235);
    color: #000000;
}

#page-indicator {
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
}

#contact {
    padding: 60px 20px;
    background: rgb(91, 7, 102); /* même thème violet */
    color: white;
    text-align: center;
}

#contact h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    text-shadow: 0 0 10px #b74b4b;
}

.contact-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: center;
    justify-content: center;
}

.contact-card {
    background-color: #320045;
    padding: 20px 30px;
    border-radius: 15px;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
    width: 90%;
    max-width: 400px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-card i {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #ffffff;
    text-shadow: 0 0 5px #b74b4b;
}

.contact-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.contact-card p {
    font-size: 1.1rem;
    word-break: break-word;
}

.contact-card:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px #b74b4b;
}

.contact-card a {
    color: white;
    text-decoration: none;
    transition: 0.2s ease-in-out;
}

.contact-card a:hover {
    color: #b74b4b;
    text-decoration: underline;
}

@media screen and (max-width: 768px) {
    .logo{
        color: white;
        font-size: 1rem;
        font-weight: bold;
    }
    .nav-container {
        justify-content: space-between;
        padding: 0 20px;
    }

    .nav-container .links {
        display: none;
    }

    .hamburg {
        opacity: 1;
        pointer-events: auto;
    }

    .dropdown {
        position: fixed;
        top: 0;
        left: 0;
        transform: translateY(0);
        width: 100%;
        height: 100vh;
        background-color: rgba(57, 12, 63, 0.95);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transform: translateY(-100%);
        transition: transform 0.3s ease;
    }

    .dropdown.active {
        transform: translateY(0);
    }

    .dropdown .links {
        display: flex;
        flex-direction: column;
        width: 100%;
        text-align: center;
    }

    .dropdown .links a {
        font-size: 1.5rem;
        padding: 15px 0;
        color: white;
    }

    .cancel {
        opacity: 1;
        pointer-events: auto;
        position: absolute;
        top: 20px;
        right: 20px;
        font-size: 2.5rem;
    }
    section .main-container {
        flex-direction: column;
        padding-left: 20px;
        padding-right: 20px;
        align-items: center;
        margin-top: 20%;
    }

    .main-container .image {
        width: 70vw;
        height: auto;
        margin: 20px 0;
    }

    .main-container .content {
        width: 100%;
    }

    .content h1 {
        font-size: 2rem;
    }

    .content p {
        font-size: 1rem;
    }

    .social-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }

    .social-links i {
        margin: 10px;
    }

    .content button {
        width: 80%;
        font-size: 1rem;
    }
    .school-cards {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        padding: 0 10px;
    }

    .card {
        width: 90%;
        padding: 15px;
    }

    .card h3 {
        font-size: 1.5rem;
    }

    .card p {
        font-size: 1rem;
    }
    #competences {
        padding: 30px 10px;
    }

    #competences h2 {
        font-size: 2rem;
    }

    .skills-container {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .skill-card,
    .skill-cardS {
        width: 90%;
        height: auto;
        padding: 20px 10px;
    }

    .skill-card h3,
    .skill-cardS h3 {
        font-size: 1.4rem;
    }

    .skill-card p,
    .skill-cardS p {
        font-size: 1rem;
    }

    .skill-card i {
        font-size: 3rem;
    }

    .skill-card img,
    .skill-cardS img {
        width: 70px;
        height: 70px;
    }

    #competences button {
        width: 80%;
        height: 45px;
        font-size: 1rem;
    }

    #veille {
        padding: 30px 10px;
    }

    #veille h2 {
        font-size: 2rem;
    }

    .notebook {
        width: 90%;
        padding: 15px;
    }

    .pages {
        height: auto;
        min-height: 300px; /* Assure un espace suffisant */
    }

    .page {
        padding: 10px;
        opacity: 0;
        transform: rotateY(90deg);
        transition: opacity 0.5s, transform 0.5s;
    }

    .page.active {
        opacity: 1;
        transform: rotateY(0deg);
        position: relative;
    }

    .page h3 {
        font-size: 1.2rem;
        text-align: center;
    }

    .page img {
        width: 100%;
        height: auto;
        margin: 10px 0;
        display: block;
    }

    .page .btn {
        font-size: 0.9rem;
        padding: 6px 10px;
        display: inline-block;
        margin-top: 10px;
    }

    .controls {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        margin-top: 20px;
    }

    .controls button {
        width: 80%;
        padding: 10px;
        font-size: 1rem;
    }

    #page-indicator {
        font-size: 1rem;
        margin-top: 10px;
    }
}