body{
    margin : 0;
}

main{
    background-color: #001E36;
}

.background-image-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: blur(6px);
    z-index: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.background-image.projet1 {
    background-image: url('images/vickie.png');
}

.projet.active .background-image {
    opacity: 1;
}

.background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3); /* ajuste ici si besoin */
    z-index: 1;
}

.background-image-container > *:not(.background-image):not(.background-overlay) {
    position: relative;
    z-index: 2;
}

.intro {
    transition: opacity 1s ease;
    width: 100%;
    height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color : #06A7FE;
    font-size : 30px;
    background-color: #001E36;
    font-family: "Bowlby One SC", sans-serif;
}

.header{
    position: sticky;
    top : 0;
    font-family: "Bowlby One SC", sans-serif;
    background-color: #001E36;
    display : grid;
    grid-template-columns: repeat(5,20%);
    text-align: center;
    font-size : 22px;
    margin : 0;
}
#footer {
    background-color: #001E36;
    color : #06A7FE;
    width: 100%;
    height: 40vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

#footer p {
    margin: 5px 0;
}

.linkedin-figure {
    display: flex;
    align-items: center;
    justify-content: center;
}

.linkedin-figure img {
    margin-right: 10px;
}

.foot{
    font-family: "Cascadia Code", sans-serif;
    text-decoration: none;
}

.head{
    text-decoration: none;
    color : #06A7FE;
}

p{
    font-family: "Cascadia Code", sans-serif;
    text-align: center;
}

.presentation{
    font-family: "Cascadia Code", sans-serif;
}

h1, h2, h3{
    font-family: "Bowlby One SC", sans-serif;
}

.projet {
    border: 2px solid black;
    margin-bottom: 40px;
    background-color: white;
    height : 100vh;
    scroll-margin-top: 20px;
    position: relative;
    overflow: hidden;
}

.titre {
    margin: 10px 0;
}

.contenu {
    display: flex;
    height : 100%;
    align-items: center;
    padding: 10px;
    gap: 20px;
}

.projet.reverse .contenu {
    flex-direction: row-reverse;
}

.image {
    width: 300px;
    height: auto;
    flex-shrink: 0;
    object-fit: cover;
    border: 2px solid black;

}

.debut {
    background-color: #001E36;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.scroll-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: "Bowlby One SC", sans-serif;
    color: #06A7FE;
    background-color: #001E36;
    cursor: pointer;
    text-align: center;
    user-select: none;
    opacity: 1;
    transition: opacity 0.5s ease-in;
    padding: 10px;
    border: none;
}

.scroll-button.hidden {
    opacity: 0;
    pointer-events: none;
}

.arrow {
    font-size: 40px;
    animation: bounce 1s infinite;
    opacity: 1;
    transition: opacity 0.5s ease-in;
}

.arrow.hidden {
    opacity: 0;
    pointer-events: none;
}

.scroll-text {
    animation: pulse 2s infinite;
    margin-top: 5px;
    font-size: 20px;
}

.projet-button {
    background-color: #06A7FE;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    font-family: "Bowlby One SC", sans-serif;
    border-radius: 8px;
    cursor: pointer;
    align-self: flex-start; /* bouton aligné à gauche du texte */
    transition: background-color 0.3s, transform 0.2s;
    text-decoration: none;
}

.projet-button:hover {
    background-color: #0480c7;
    transform: scale(1.05);
}



@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(10px);
    }
}

.scroll-text {
    animation: pulse 2s infinite;
    margin-top: 5px;
    font-size: 20px;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(10px);
    }
}

@keyframes pulse {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        opacity: 1;
    }
}

label {
    display: block;
    margin-top: 15px;
    margin-bottom: 5px;
    color: black;
    font-weight: bold;
}


input[type="text"],
input[type="email"] {
    width: 100%;
    padding: 10px;
    border: 1px solid black;
    color: black;
    border-radius: 6px;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

input:focus {
    border-color: slategrey;
    outline: none;
}


.form-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 0;
}
.form {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid white;
    border-radius: 12px;
    padding: 30px 40px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

textarea{
    width: 100%;
    padding: 10px;
    border: 1px solid black;
    color: black;
    border-radius: 6px;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

.texte {
    flex: 1;
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: left;
}

.texte p {
    margin-bottom: 10px;
}

.plus {
    align-self: flex-start;
    color: black;
    text-decoration: none;
    font-weight: bold;
}


#CV{
    background-color: #001E36 ;
    color : #06A7FE;
    border : none;
    font-family : "Bowlby One SC", sans-serif;
    font-size : 22px;
    cursor : pointer;
}



#filtre{
    background-color: #001E36 ;
    color : #06A7FE;
    font-family : "Bowlby One SC", sans-serif;
    font-size : 22px;
    cursor : pointer;

}

#typed-text::after {
    content: "|";
    animation: blink 0.7s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

#intro-loader {
    position: fixed;
    z-index: 9999;
    background-color: black;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-family: "Bowlby One SC", sans-serif;
    transition: opacity 1s ease;
}


#intro-loader.fade-out {
    opacity: 0;
    pointer-events: none;
}


.loading-text {
    font-size: 32px;
    color: white;
    text-shadow: 0 0 5px #fff;
    animation: flicker 1.5s infinite;
    margin-top: 20px;
}


@keyframes flicker {
    0%, 19%, 21%, 23%, 80%, 100% {
        opacity: 1;
    }
    20%, 22%, 50% {
        opacity: 0.4;
    }
}


.film-reel {
    width: 100%;
    height: 100px;
    background: repeating-linear-gradient(
            to right,
            transparent 0px,
            transparent 10px,
            white 10px,
            white 20px
    );
    animation: scroll-reel 2s linear infinite;
    opacity: 0.05;
}

@keyframes scroll-reel {
    from {
        background-position: 0 0;
    }
    to {
        background-position: 100px 0;
    }
}

.porfolio {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    padding: 2rem;
}

.item {
    max-width: 300px;
    flex: 1 1 300px;
    border: 2px solid #ccc;
    padding: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

.item:hover {
    transform: scale(1.05);
}

.item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
}

.item video {
    width: 100%;
    height: auto;
    border-radius: 10px;
    display: block;
}

/* Style de la modale */
.modal {
    display: none; /* Masquée par défaut */
    position: fixed;
    z-index: 1000;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.8);
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80vh;
    box-shadow: 0 0 15px white;
    border-radius: 10px;
}

.close {
    position: absolute;
    top: 30px;
    right: 50px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #bbb;
}

.modal-video-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80vh;
    border-radius: 10px;
    box-shadow: 0 0 15px white;
}

.close-video {
    position: absolute;
    top: 30px;
    right: 50px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.close-video:hover {
    color: #bbb;
}

.project-description {
    margin: 2rem 0;
    padding: 1rem;
    background-color: #f8f8f8;
    border-radius: 10px;
}

.project-description h2 {
    margin-bottom: 0.5rem;
    font-family: "Bowlby One SC", cursive;
}

.project-description p {
    font-family: "Cascadia Code", monospace;
}

.portfolio-section {
    margin-bottom: 4rem;
    gap: 1.5rem;
}

.porfolio-other{
    display: flex;
    flex-direction: column;
}

.project-description {
    background-color: #f8f8f8;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    max-width: 800px;
    font-family: 'Cascadia Code', monospace;
}

.portfolio-items {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.portfolio-items .item {
    flex: 1 1 300px;
    max-width: 350px;
}

.video-description {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    font-family: 'Cascadia Code', monospace;
}

/* Section Site Web */
.portfolio-section[data-type="site"] .site-project {
    border: 1px solid #ccc;
    padding: 1rem;
    margin-bottom: 2rem;
    background: #f9f9f9;
    border-radius: 8px;
}

.site-project h3 {
    margin-top: 0;
    font-family: 'Bowlby One SC', cursive;
    color: #2c3e50;
}

.site-project p {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: #444;
}

/* Conteneur des miniatures */
.site-images {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.site-images img.thumbnail {
    width: 120px;
    height: 80px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 5px;
    transition: border-color 0.3s ease;
}

.site-images img.thumbnail:hover {
    border-color: #3498db;
}

/* Modal lightbox */
.modal {
    display: none; /* cachée par défaut */
    position: fixed;
    z-index: 1000;
    padding-top: 60px;
    left: 0; top: 0;
    width: 100%; height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.8);
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80vh;
    border-radius: 10px;
    box-shadow: 0 0 20px #000;
}

.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: #bbb;
}

.background-image-container {
    position: relative;
    overflow: hidden;
}

.background-image {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.background-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.projet {
    position: relative;
    padding: 80px 20px;
    color: #3498db;
    z-index: 2;
}

/* Images de fond personnalisées pour chaque projet */
.background-image.projet1 {
    background-image: url("/images/vickie.png");
}

.background-image.projet2 {
    background-image: url("/images/pokemon.png");
}

.background-image.projet3 {
    background-image: url("/images/90.JPG");
}

.background-image.projet4 {
    background-image: url("/images/tdf.png");
}

.portfolio-items .item iframe {
    max-width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    border: none;
    display: block;
    margin: 0 auto;
}

.portfolio-section {
    margin-bottom: 60px;
}

.project-description {
    margin-bottom: 20px;
}

.portfolio-items {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.portfolio-items .item,
.portfolio-items.photos-creation .item-photo {
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    background: white;
}

.portfolio-items .item img,
.portfolio-items.photos-creation .item-photo img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.portfolio-items .item img:hover,
.portfolio-items.photos-creation .item-photo img:hover {
    transform: scale(1.05);
}

.portfolio-items .item {
    flex: 1 1 200px;
    max-width: 250px;
}

.portfolio-items.photos-creation .item-photo {
    flex: 1 1 150px;
    max-width: 200px;
}

.voir{
    background-color: #06A7FE;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    font-family: "Bowlby One SC", sans-serif;
    border-radius: 8px;
    cursor: pointer;
    align-self: flex-start; /* bouton aligné à gauche du texte */
    transition: background-color 0.3s, transform 0.2s;
    text-decoration: none;
}
.voir:hover {
    background-color: #0480c7;
    transform: scale(1.05);
}

.tdf{
    color : black;
}
.img {
    display: flex;
    margin: 10px;
    border: 2px solid black;
    justify-content: center;
    align-items: center;
}

.lien-site {
    display: inline-block;
    margin-top: 5px;
    padding: 6px 12px;
    background-color: #0073aa;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.lien-site:hover {
    background-color: #005f8d;
}