@font-face {
    font-family: 'Satoshi-Black';
    src:url('fonts/Satoshi-Black.ttf') format('truetype');
    font-weight: 900;
    font-display: swap;
    font-style: normal;
  }
  @font-face {
    font-family: 'Satoshi-Bold';
    src: url('fonts/Satoshi-Bold.ttf') format('truetype');
    font-weight: 700;
    font-display: swap;
    font-style: normal;
  }
  @font-face {
    font-family: 'Satoshi-Medium';
    src: url('fonts/Satoshi-Medium.ttf') format('truetype');
    font-weight: 500;
    font-display: swap;
    font-style: normal;
  }

html{
    color: #f2f2f2;
    scroll-behavior: smooth;
}
body{
    margin: 0;
    padding: 0;
    background-color: #0d0d0d;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
nav{
    position: fixed;
    top: 2vh;
    z-index: 10;
}

#headerproj{
    height: auto;
    padding: 20px ;
}
header{
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-family: 'Montserrat', bold;
    font-family: 'Satoshi-Black';
    letter-spacing: 2px;
    position: relative;
    overflow: hidden;
}
ul{
    margin: 0;
    list-style:none;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    height: 250px;
    font-size: 20px;
}
li a{
    text-decoration: none;
    color: #f2f2f2;
    text-shadow: 1px 1px 7px #1f1f1f;

}

li a:hover{
    color: #DA315A;
}

.titre-bienvenue {
    text-align: center;
    font-size: 3em;
    font-weight: 600;
    letter-spacing: 3px;
    text-shadow: 1px 1px 7px #1f1f1f;
    position: relative;
    padding-bottom: 20px;
    color: #f2f2f2;
}

.barre-bienvenue {
    width: 300px;
    height: 3px;
    background-color: #DA315A;
    margin: 0 auto;
}

.titre-portfolio, .titre-projet {
    text-align: center;
    font-size: 3em;
    font-weight: 600;
    letter-spacing: 3px;
    text-shadow: 1px 1px 7px #1f1f1f;
    color: #f2f2f2;
    font-family: "Satoshi-black";
}

main{
    min-height: fit-content;
    height: 100vh;
    background-color: #0d0d0d;
    flex: 1;
}

@media screen and (min-width: 576px) {
    body{
    }
    .hamburger {
        display: none;
    }

}

footer {
    background-color: #1a1a1a;
    padding: 20px;
    text-align: center;
    margin-top: auto;
    width: 100%;
    box-sizing: border-box;
}

.contact-info {
    font-family: 'Satoshi-Medium';
    color: #f2f2f2;
    font-size: 1.1em;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.contact-info a {
    color: #f2f2f2;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: #DA315A;
}

@media screen and (max-width: 576px) {
    footer {
        padding: 15px;
    }
    
    .contact-info {
        font-size: 1em;
    }
}

@media screen and (max-width: 576px) {
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #f2f2f2;
    margin: 5px 0;
    transition: 0.3s;
}

.main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.9);
    transition: 0.3s;
    z-index: 999;
}

.main-nav.active {
    right: 0;
}

.vertinav {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    list-style: none;
    padding: 0;
    margin: 0;
}

.vertinav li {
    margin: 20px 0;
}

.vertinav a {
    color: #f2f2f2;
    text-decoration: none;
    font-size: 1.5em;
    transition: 0.3s;
}

.vertinav a:hover {
    color: #DA315A;
}
.hamburger {
    display: block;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}


@media screen and (min-width: 577px) {
    .main-nav {
        position: static;
        width: auto;
        height: auto;
        background-color: transparent;
    }

    .vertinav {
        flex-direction: row;
    }

    .vertinav li {
        margin: 0 20px;
    }
}
}

.gallery {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 20px;
    padding: 50px;
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    width: 100%;
    padding-bottom: 100%;
    overflow: hidden;
    background-color: #DA315A;
    text-decoration: none;
    color: inherit;
}

.gallery-item.empty {
    display: none;
}

.gallery-item:not(.empty)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #f2f2f2;
    opacity: 0;
    transition: all 0.3s ease;
    transform: scale(0.95);
    z-index: 10;
    cursor: pointer;
    pointer-events: auto;
}

.gallery-item:not(.empty):hover::before {
    opacity: 0.7;
    transform: scale(0.85);
}

.gallery-item:not(.empty) .projet-info {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 10;
    background: none;
    padding: 0;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.gallery-item:not(.empty):hover .projet-info {
    opacity: 1;
}

.gallery-item:not(.empty) .projet-info::after {
    content: 'Cliquez pour plus d\'informations';
    color: #0d0d0d;
    font-family: 'Satoshi-Medium';
    font-size: 1em;
}

.gallery-item img {
    position: absolute;
    top: 0;
    left: 0v;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.projet-annee {
    display: block;
    font-family: 'Satoshi-Bold';
    font-size: 1.2em;
    color: #0d0d0d;
    margin-bottom: 10px;
}

.projet-titre {
    font-family: 'Satoshi-Bold';
    font-size: 1.5em;
    color: #0d0d0d;
    margin: 0;
}

/* Version mobile */
@media screen and (max-width: 576px) {
    .projet-annee {
        font-size: 1em;
    }

    .projet-titre {
        font-size: 1.2em;
    }
}

.projet-logo {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background-color: rgba(13, 13, 13, 0.8);
    padding: 8px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.projet-logo img {
    width: 24px;
    height: 24px;
    position: relative;
    object-fit: contain;
}

.projet-logo:hover {
    transform: scale(1.1);
}

/* Version mobile */
@media screen and (max-width: 576px) {
    .projet-logo {
        bottom: 10px;
        right: 10px;
        padding: 6px;
    }

    .projet-logo img {
        width: 20px;
        height: 20px;
    }
}

@media screen and (min-width: 577px) {
    .gallery {
        grid-template-columns: repeat(3, 1fr);
    }

    .gallery-item.empty {
        display: block;
        background: transparent;
    }
}



/* formulaire de contact */
#formulaire {
    max-width: 800px;
    margin: 50px auto;
    padding: 20px;
    background-color: #1a1a1a;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}
#formulaire p{
    color: #DA315A;
    font-family: 'Satoshi-medium';
}
#formcontact {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#nomprenom {
    display: flex;
    gap: 20px;
}

#nomprenom div {
    flex: 1;
}

.champ {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

label {
    font-family: 'Satoshi-Medium';
    color: #f2f2f2;
    font-size: 1.1em;
}

span {
    color: #DA315A;
}

input[type="text"],
input[type="email"],
textarea {
    padding: 12px;
    border: 1px solid #333;
    border-radius: 5px;
    background-color: #0d0d0d;
    color: #f2f2f2;
    font-family: 'Satoshi-Medium';
    font-size: 1em;
}

textarea {
    min-height: 150px;
    resize: vertical;
}

.demande {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 5px 0;
}

input[type="radio"] {
    accent-color: #DA315A;
}

#bouton {
    background-color: #DA315A;
    color: #f2f2f2;
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-family: 'Satoshi-Bold';
    font-size: 1.1em;
    transition: background-color 0.3s;
    align-self: center;
}

#bouton:hover {
    background-color: #c02a4e;
}

/* Version mobile */
@media screen and (max-width: 576px) {
    #formulaire {
        margin: 20px;
        padding: 15px;
    }

    #nomprenom {
        flex-direction: column;
        gap: 15px;
    }

    input[type="text"],
    input[type="email"],
    textarea {
        padding: 10px;
        font-size: 0.9em;
    }

    #bouton {
        width: 100%;
        padding: 12px;
    }
}

/*  section présentation */
#presentation {
    padding: 80px 0;
    background-color: #0d0d0d;
    color: #f2f2f2;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

#presentation h1 {
    font-family: 'Satoshi-Black';
    font-size: 2.5em;
    margin-bottom: 40px;
    text-align: center;
    color: #DA315A;
}

#presentation h2 {
    font-family: 'Satoshi-Bold';
    font-size: 2em;
    margin: 60px 0 30px;
    text-align: center;
    color: #f2f2f2;
}

#presentation h3 {
    font-family: 'Satoshi-Medium';
    font-size: 1.5em;
    margin-bottom: 20px;
    color: #DA315A;
}

.profil {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 60px;
}

.description {
    flex: 1;
}

.description p {
    font-family: 'Satoshi-Medium';
    font-size: 1.2em;
    line-height: 1.6;
}

.competences {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.categorie {
    background-color: #1a1a1a;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.outils {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 20px;
}

.outil {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.outil img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.outil span {
    font-family: 'Satoshi-Medium';
    font-size: 1em;
    color: #f2f2f2;
}

/* Version mobile */
@media screen and (max-width: 768px) {
    .profil {
        flex-direction: column;
        text-align: center;
    }

    .competences {
        grid-template-columns: 1fr;
    }

    #presentation h1 {
        font-size: 2em;
    }

    #presentation h2 {
        font-size: 1.8em;
    }
}

/* Style du titre de section */
.titre-section {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 40px 0;
    padding: 0 20px;
}


.titre-section h2 {
    font-family: 'Satoshi-Bold';
    color: #f2f2f2;
    margin: 0 20px;
    text-align: center;
}



.titre-section h2 {
    font-size: 2em;
}

.barre {
    height: 2px;
    background-color: #DA315A;
    flex: 1;
    max-width: 100px;
}

/* Version mobile */
@media screen and (max-width: 576px) {
    .titre-section {
        margin: 30px 0;
    }

    .titre-section h2 {
        font-size: 1.5em;
    }

    .barre {
        max-width: 50px;
    }
}

.reseaux-sociaux {
    position: fixed;
    bottom: 30px;
    left: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 1000;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: rgba(13, 13, 13, 0.8);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-link:hover {
    transform: scale(1.2);
    background-color: #DA315A;
}

.social-link img {
    width: 25px;
    height: 25px;
    object-fit: contain;
}

/* Version mobile */
@media screen and (max-width: 576px) {
    .reseaux-sociaux {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        display: flex;
        flex-direction: row;
        justify-content: center;
        gap: 30px;
        padding: 20px 0;
        background-color: rgba(0, 0, 0, 0.9);
        transform: translateY(100%);
        transition: transform 0.3s ease;
    }

    .main-nav.active + .reseaux-sociaux {
        transform: translateY(0);
    }

    .social-link {
        width: 60px;
        height: 60px;
    }

    .social-link img {
        width: 30px;
        height: 30px;
    }
}


#background-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    filter: blur(2px);
}

/* Styles pour les pages projet */
.projet-page {
    padding: 80px 20px;
    min-height: 100vh;
}

.projet-page .container {
    max-width: 1200px;
    margin: 0 auto;
}

.projet-page .titre-projet {
    text-align: center;
    margin-bottom: 20px;
    font-size: 3.5em;
    letter-spacing: 2px;
}

.barre-projet {
    width: 200px;
    height: 3px;
    background-color: #DA315A;
    margin: 0 auto 60px;
}

.projet-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.projet-image {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.projet-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.projet-image:hover img {
    transform: scale(1.02);
}

.projet-details {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.projet-page .projet-info {
    background-color: #1a1a1a;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.projet-page .projet-info.annee {
    padding: 15px 30px;
    align-items: flex-start;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.projet-page .projet-info.annee h2 {
    margin-bottom: 5px;
}

.projet-page .projet-info.annee p {
    margin: 0;
}

.projet-page .projet-info h2 {
    font-family: 'Satoshi-Bold';
    color: #DA315A;
    font-size: 1.8em;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.projet-page .projet-info p {
    font-family: 'Satoshi-Medium';
    color: #f2f2f2;
    font-size: 1.2em;
    line-height: 1.6;
}

.logiciel {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background-color: rgba(218, 49, 90, 0.1);
    border-radius: 10px;
}

.logiciel img {
    width: 35px;
    height: 35px;
    object-fit: contain;
}

.logiciel span {
    font-family: 'Satoshi-Medium';
    color: #f2f2f2;
    font-size: 1.1em;
}

.projet-description {
    background-color: #1a1a1a;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.projet-description h2 {
    font-family: 'Satoshi-Bold';
    color: #DA315A;
    font-size: 1.8em;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.projet-description p {
    font-family: 'Satoshi-Medium';
    color: #f2f2f2;
    line-height: 1.8;
    font-size: 1.2em;
}

.bouton-retour {
    display: none;
    position: fixed;
    top: 20px;
    left: 20px;
    background-color: #DA315A;
    color: #f2f2f2;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-family: 'Satoshi-Bold';
    font-size: 1.1em;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(218, 49, 90, 0.3);
}

/* Version mobile */
@media screen and (max-width: 768px) {
    .projet-page {
        padding: 60px 15px;
    }

    .projet-page .titre-projet {
        font-size: 2.5em;
    }

    .barre-projet {
        width: 150px;
        margin-bottom: 40px;
    }

    .projet-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .projet-info, .projet-description {
        padding: 20px;
    }

    .projet-info h2, .projet-description h2 {
        font-size: 1.5em;
    }

    .projet-info p, .projet-description p {
        font-size: 1.1em;
    }

    .logiciel {
        padding: 12px;
    }

    .logiciel img {
        width: 30px;
        height: 30px;
    }

    .logiciel span {
        font-size: 1em;
    }
}

@media screen and (max-width: 576px) {
    #headerproj {
        display: none;
    }

    .bouton-retour {
        display: block;
    }

    .projet-page {
        padding: 40px 15px;
    }

    .projet-page .titre-projet {
        font-size: 2em;
    }

    .barre-projet {
        width: 120px;
        margin-bottom: 30px;
    }

    .projet-info, .projet-description {
        padding: 15px;
    }

    .projet-info h2, .projet-description h2 {
        font-size: 1.3em;
    }

    .projet-info p, .projet-description p {
        font-size: 1em;
    }
}

.pdf-buttons {
    display: flex;
    gap: 2rem;
    margin-top: 1rem;
}

.pdf-button {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 2rem;
    background-color: #1a1a1a;
    border-radius: 8px;
    text-decoration: none;
    color: #f2f2f2;
    transition: all 0.3s ease;
    font-family: 'Satoshi-Medium';
    border: 1px solid #DA315A;
}

.pdf-button:hover {
    background-color: #DA315A;
    transform: translateY(-2px);
}

.pdf-button img {
    width: 24px;
    height: 24px;
}

@media (max-width: 768px) {
    .pdf-buttons {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Styles pour les boutons de filtrage */
.filters-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 3rem 0;
    padding: 0 2rem;
}

.filter-btn {
    padding: 0.8rem 1.5rem;
    background-color: transparent;
    border: 2px solid #DA315A;
    color: #f2f2f2;
    font-family: 'Satoshi-Medium', sans-serif;
    font-size: 1rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-btn:hover {
    background-color: #DA315A;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(218, 49, 90, 0.3);
}

.filter-btn.active {
    background-color: #DA315A;
    color: #0d0d0d;
    font-weight: bold;
}

/* Animation pour les éléments filtrés */
.gallery-item {
    transition: all 0.3s ease;
}

.gallery-item[style*="display: none"] {
    opacity: 0;
    transform: scale(0.8);
}

/* Classe pour masquer visuellement les éléments filtrés sur desktop */
.gallery-item.filtered-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Classes pour le positionnement dans la grille - Desktop uniquement */
@media screen and (min-width: 577px) {
    .gallery-item.grid-start-2 {
        grid-column-start: 2;
    }

    .gallery-item.grid-start-3 {
        grid-column-start: 3;
    }
}

/* Responsive pour les boutons de filtrage */
@media (max-width: 480px) {
    .filters-container {
        gap: 0.5rem;
        margin: 2rem 0;
        padding: 0 1rem;
    }
    
    .filter-btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .filters-container {
        flex-direction: column;
        align-items: center;
    }
    
    .filter-btn {
        width: 200px;
        text-align: center;
    }
}


