@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

:root {
    --primary-color: #0a0a0a;
    --secondary-color: #f0f0f0;
    --accent-color: #ff3366;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    line-height: 1.6;
    overflow-x: hidden;
}

.cursor, .cursor-follower {
    display: block; /* Réactivation du curseur */
}

/* Curseur personnalisé (activé sur écrans plus grands) */
@media (min-width: 769px) { /* Activé seulement sur écrans plus grands */
    .cursor {
        width: 20px;
        height: 20px;
        border: 2px solid var(--accent-color);
        border-radius: 50%;
        position: fixed;
        pointer-events: none;
        transition: 0.1s;
        z-index: 9999;
    }

    .cursor-follower {
        width: 8px;
        height: 8px;
        background-color: var(--accent-color);
        border-radius: 50%;
        position: fixed;
        pointer-events: none;
        transition: 0.15s;
        z-index: 9999;
    }
}

header {
    position: fixed;
    width: 100%;
    padding: 1rem;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
}

.fennec-logo {
    width: 90px;
    height: auto;
    margin-right: 1rem;
}

.menu-toggle {
    cursor: pointer;
    font-size: 1.2rem;
}

.fullpage-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: 0.5s;
}

.fullpage-menu.active {
    opacity: 1;
    visibility: visible;
}

.fullpage-menu ul {
    list-style: none;
}

.fullpage-menu ul li {
    margin: 1rem 0;
}

.fullpage-menu ul li a {
    font-size: 2rem;
    color: var(--secondary-color);
    text-decoration: none;
    transition: 0.3s;
}

.fullpage-menu ul li a:hover {
    color: var(--accent-color);
}

section {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.hero {
    flex-direction: column;
    text-align: center;
    padding: 2rem;
}

.typed-text {
    font-size: 40px;
    overflow: hidden;
    white-space: nowrap;
    border-right: 0.15em solid #000;
    width: 0;
    animation: typing 3.5s steps(30, end) forwards,
               blink-caret 0.75s step-end infinite;
  }
  
  @keyframes typing {
    from { width: 0 }
    to { width: 100% }
  }
  
  @keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: #000 }
  }


@media (max-width: 768px) {
    .hero {
        padding: 1rem;
    }

    .glitch {
        font-size: calc(2rem + 3vw);
    }
}


.projects-intro {
    text-align: center;
    padding: 50px 20px;
}

.project-filters {
    text-align: center;
    margin-bottom: 20px;
}

.filter-btn {
    background: #2c2c2c;
    color: white;
    padding: 10px 20px;
    margin: 5px;
    border: none;
    cursor: pointer;
    transition: 0.3s;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}

.filter-btn.active,
.filter-btn:hover {
    background: rgb(255, 0, 0);
}

.projects-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 20px;
}

.project-card {
    width: 300px;
    background: #000000;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-image img {
    width: 100%;
    height: auto;
}

.project-info {
    padding: 15px;
    text-align: center;
}

.category {
    display: block;
    font-size: 14px;
    color: rgb(255, 0, 0);
    margin-bottom: 10px;
}

.btn {
    display: inline-block;
    padding: 10px 15px;
    background: black;
    color: white;
    text-decoration: none;
    margin-top: 10px;
    border-radius: 5px;
    transition: 0.3s;
}

.btn:hover {
    background: darkgray;
}

.project-video {
    width: 100%;
    height: auto;
    max-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.project-video video {
    width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
}

/* Pour les petits écrans (mobile) */
@media (max-width: 768px) {
    .project-video {
        max-height: 50vh;
    }

    .project-video video {
        max-width: 100%;
        height: auto;
    }
}

/* Détails du projet */
.project-detail {
    padding: 50px 20px;
    text-align: center;
}

.project-detail h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--accent-color);
}

.project-detail p {
    font-size: 1.2em;
    max-width: 800px;
    margin: 0 auto 30px;
}

/* Liste des détails */
.project-info {
    text-align: left;
    max-width: 800px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 10px;
    backdrop-filter: blur(5px);
}

.project-info ul {
    list-style: none;
    padding: 0;
}

.project-info li {
    font-size: 1.1em;
    margin-bottom: 10px;
}

/* Style pour le conteneur du projet */
.project-gallery {
    margin: 2rem 0;
    padding: 2rem 5%;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  }
  
  /* Titre de la galerie */
  .project-gallery h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 1.5rem;
    color: #333;
  }
  
  /* Grille d'images */
  .gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); /* Colonnes adaptables */
    gap: 1rem;
  }
  
  /* Style pour les images */
  .gallery img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Animation au survol */
  }
  
  /* Effet au survol de l'image */
  .gallery img:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); /* Ombre plus marquée */
  }
  
  /* Modifier la grille sur grand écran */
  @media (min-width: 1024px) {
    .gallery {
      grid-template-columns: repeat(3, 1fr); /* 3 colonnes égales sur grand écran */
      gap: 2rem; /* Espacement plus large entre les images */
    }
  
    /* Agrandir les images sur grand écran */
    .gallery img {
      width: 100%; /* S'assurer qu'elles occupent toute la largeur de leur cellule */
      height: auto; /* Conserver les proportions */
    }
  }
  

/* Bouton */
.btn {
    display: inline-block;
    padding: 12px 20px;
    background: var(--accent-color);
    color: white;
    text-decoration: none;
    font-size: 1.2em;
    border-radius: 5px;
    transition: 0.3s;
}

.btn:hover {
    background: darkgray;
}
.project-detail {
    display: flex;
    flex-direction: column; /* Met les éléments en colonne */
    align-items: center;
    gap: 20px;
    padding: 50px 20px;
}

.project-preview {
    width: 80%;
    max-width: 800px;
    overflow: hidden;
    border-radius: 10px;
}

.project-preview video {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.project-info {
    text-align: center;
    max-width: 800px;
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 10px;
    backdrop-filter: blur(5px);
}



.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #00000071;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: fadeOut 1.5s forwards;
}

.spinner-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.spinner-container img {
    max-width: 200px;
    animation: pulse 1.5s infinite alternate;
}

.bar-loader {
    display: flex;
    align-items: center;
}

.bar-loader .bar {
    display: inline-block;
    width: 3px;
    height: 20px;
    background-color: rgba(255, 255, 255, .5);
    border-radius: 10px;
    animation: scale-up4 1s linear infinite;
}

.bar-loader .bar:nth-child(2) {
    height: 35px;
    margin: 0 5px;
    animation-delay: .25s;
}

.bar-loader .bar:nth-child(3) {
    animation-delay: .5s;
}

@keyframes scale-up4 {
    20% {
        background-color: #ffff;
        transform: scaleY(1.5);
    }
    40% {
        transform: scaleY(1);
    }
}

@keyframes pulse {
    from { transform: scale(0.9); }
    to { transform: scale(1.1); }
}

@keyframes fadeOut {
    0% { opacity: 1; visibility: visible; }
    90% { opacity: 1; visibility: visible; }
    100% { opacity: 0; visibility: hidden; }
}