@import url('https://fonts.googleapis.com/css2?family=Big+Shoulders+Inline:opsz,wght@10..72,100..900&display=swap');

/* CSS de AOS */
@import url('https://unpkg.com/aos@next/dist/aos.css');

/* ----- GLOBAL STYLES ----- */

html {
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

body {
    background: #0D1117;
    color: #E6EDF3;
    font-family: 'Big Shoulders Inline', sans-serif;
    overflow-y: scroll;
}

html::-webkit-scrollbar {
  display: none;
}

/* ----- ANIMATIONS ----- */
@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes spin {
    from { transform: rotateY(0deg); }
    to { transform: rotateY(360deg); }
}

/* ----- Content ----- */
.content{
    display: flex;
    align-items: center;
}

/* ----- Left Part ----- */
.leftPart{
    top: 5%;
    position: fixed;
}

/* ----- Alignement navbar + presentation ----- */
.align{
    display: flex;
    align-items: center;
    position: relative;
}

/* ----- Right Part ----- */
.rightPart{
    margin-top: 10%;
    margin-left: 50%;
}

/* ----- NAVBAR ----- */
.navbar {
    border-radius: 50px; 
    width: 6%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1%;
    margin-top: 20px;
    margin-left: 4%;
    background: #161B22;
    box-shadow: 0 0 10px rgba(88, 166, 255, 0.3);
}

.navbar img {
    width: 80%;
    height: auto;
    margin: 10px 0;
    padding: 7px;
    transition: transform 0.3s ease-in-out;
}

.navbar img:hover {
    transform: scale(1.2) rotate(10deg);
}

.navbar i {
    color: #fff;
    font-size: x-large;
    margin: 10px 0;
    padding: 7px;
    transition: transform 0.3s ease-in-out;
}

.navbar i:hover {
    transform: scale(1.2) rotate(10deg);
}

.navbar img, .navbar i {
    transition: transform 0.3s ease-in-out, filter 0.3s ease-in-out;
    color: #E6EDF3;
}
.navbar img:hover, .navbar i:hover {
    transform: scale(1.2) rotate(10deg);
    filter: drop-shadow(0 0 8px #58A6FF);
}

/* ----- IMAGE PROFIL ----- */
.imgProfil img {
    width: 100%;
    height: 100%;
    object-fit: cover;        
    object-position: center 35%;
    border-radius: 50%;
    display: block;
}

.imgProfil {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  z-index: 10;
}

.loader {
  position: relative;
  width: 100px;
  height: 100px;

  margin-left: 1%;
}

.halo {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  animation: rotate 1.5s linear infinite;
}

.halo span {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(#ee280e, #15a0f7, #6ed15a);
}

/* Différents niveaux de flou pour le halo */
.halo span:nth-child(1) { filter: blur(5px); }
.halo span:nth-child(2) { filter: blur(10px); }
.halo span:nth-child(3) { filter: blur(25px); }
.halo span:nth-child(4) { filter: blur(50px); }

@keyframes rotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ----- ME ----- */
.presentation{
    margin: 0 0 0 4%;
}

.presentation h1{
    font-size: 4em;
    margin: 3% 0 0 0;
    font-weight: revert;
    color: #15d1da;
    text-shadow: 0 0 8px rgba(88, 166, 255, 0.3);
}

.containerWord {
    font-size: 1.5rem;
    font-weight: bold;
    text-shadow: 2px -2px 10px rgba(255, 255, 255, 0.6);
    padding: 15px 0;
}

.bio {
    font-size: 1.5em;
    opacity: 1;
}

h2 {
    color: #15d1da;
    text-shadow: 0 0 8px rgba(88, 166, 255, 0.3);
}

/* ----- Logiciels ----- */
.cache{
    color: #01257D;
}

.carousel {
    width: 600px;
    height: 600px;
    margin: 0 auto;
    perspective: 1000px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-container {
    width: 10%;
    height: 100%;
    transform-style: preserve-3d;
    animation: spin 20s linear infinite;
    transform-origin: center center;
    position: relative;
}

.carousel-face {
    position: absolute;
    top: 50%;
    left: 50%;
    transform-style: preserve-3d;
}

.carousel-item {
    position: absolute;
    width: 100px;
    height: 100px;
    top: 50%;
    left: 50%;
    transform-origin: center center;
    transform-style: preserve-3d;
    background: transparent;
    overflow: hidden;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
    display: block;
}


/* ----- Compétences ----- */
.titreCompetence {
    font-size: 3em;
    margin: 35% 0 3% 25%;
    color: #15d1da;
    text-shadow: 0 0 8px rgba(88, 166, 255, 0.3);
}

.titre {
    text-align: center;
    font-size: 3em;
    margin: 10% 0 3% 0;
    color: #15d1da;
    text-shadow: 0 0 8px rgba(88, 166, 255, 0.3);
}

.skills {
    margin: 0 0 0 15%;
    width: 45%;
}

.skills h3 {
    text-align: center;
    font-size: 1.5em;
    font-style: italic;
}

.skills-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.skills-dev, .soft-skills, .skills-formation {
    padding: 1%;
    text-align: center;
    width: 500px;
    margin-bottom: 40px;
    box-shadow: 0 0 12px #00BFAE;
    background-color: #161B22;
    border-radius: 12px;
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.05);
    color: #E6EDF3;
}

.skills-formation {
    height: 500px;
}

.soft-skills, .skills-formation {
    margin-top: 2%;
}

.skills-items {
    padding: 2%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.skills-items img {
    width: 60%;
    transition: transform 0.3s ease-in-out;
}

.skills-items img:hover {
    transform: scale(1.2) rotate(10deg);
    filter: drop-shadow(0 0 8px #FFD166);
}

.skills-formation .skills-items{
    padding: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    text-align: left;
}

.skills-formation .skills-container{
    display: flex;
    justify-content: left;
    gap: 0px;
    flex-wrap: wrap;
}

button {
    margin-top: 10px;
    color: #fff;
    padding: 10px 20px;
    border: 1px solid #2272FF;
    border-radius: 25px;
    font-family: Consolas, monospace;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    background: linear-gradient(145deg, #238636, #2EA043);
    font-weight: bold;
    box-shadow: 0 0 8px rgba(0,0,0,0.4);
}

button:hover,
button.active {
    color: #ffffff;
    background: linear-gradient(145deg, #2EA043, #58A6FF);
    box-shadow: 0 0 15px rgba(88, 166, 255, 0.6);
    transform: scale(1.05);
}

/* ----- Parcours ----- */
.timeline-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.timeline {
    padding: 20px;
    list-style-type: none;
}

.timeline-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    position: relative;
}

.timeline-item::after {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 3px;
    transform: translateX(-50%);
    background-color: #cdcdcd;
    margin-top: 5px;
    border-radius: 90px;
    height: 96%;
    margin: 5px 0 0 0;
}

.timeline-content {
    padding: 20px;
    width: 45%;
    border-left: 2px solid #771212;
    background-color: #161B22;
    border-radius: 12px;
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.05);
    color: #E6EDF3;
}

.fa-solid.fa-circle-info:hover {
    cursor: pointer;
    color: #00bfae;
}

.timeline-content h3 {
    display: inline-block;
    margin: 0 0 10px;
    font-size: 1.5em;
    color: white;
}

.timeline-content p {
    margin: 5px 0;
    color: white;
    font-size: 1.5em;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: auto;
    background-color: #161B22;
    box-shadow: 0 0 12px #cf2626;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-right: auto;
    background-color: #161B22;
    box-shadow: 0 0 12px #cf2626;
}

/* ----- Projets ----- */
.projets img {
    width: 30%;
}

.projets h3 {
    font-size: 1.7em;
}

.projets p {
    font-size: 1.3em;
}

.projets {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.projet-item {
    position: relative;
    padding: 2%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 25%;
    min-height: 150px;
    box-sizing: border-box;
    background-color: #161B22;
    border-radius: 20px;
    color: #E6EDF3;
    transition: transform 0.3s ease-in-out;
    cursor: pointer;
    z-index: 0;
    overflow: hidden;
}

/* Effet au survol */
.projet-item:hover {
    transform: translateY(-10px) scale(1.2);
}

/* Bordure animée */
.projet-item::before {
    content: "";
    position: absolute;
    inset: 0;
    padding: 3px;
    border-radius: 20px;
    background: linear-gradient(270deg, #ff00ff, #00ffff, #ffcc00, #ff00ff);
    background-size: 600% 600%;
    animation: borderMove 6s linear infinite;
    -webkit-mask:
      linear-gradient(#000 0 0) content-box,
      linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    pointer-events: none;
}

@keyframes borderMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Effet shine */
.projet-item::after {
    content: "";
    position: absolute;
    top: -100%;
    left: -150%;
    width: 300%;
    height: 300%;
    background: linear-gradient(
      120deg,
      transparent 40%,
      rgba(255,255,255,0.5) 50%,
      rgba(255,255,255,0.15) 60%,
      transparent 80%
    );
    transform: rotate(25deg);
    opacity: 0;
    pointer-events: none;
}

.projet-item:hover::after {
    animation: shineGlass 1.8s ease-in-out forwards;
}

@keyframes shineGlass {
    0% {
      transform: translateX(-150%) rotate(25deg);
      opacity: 0;
    }
    20% {
      opacity: 0.8;
    }
    50% {
      transform: translateX(50%) rotate(25deg);
      opacity: 0.6;
    }
    80% {
      opacity: 0.3;
    }
    100% {
      transform: translateX(150%) rotate(25deg);
      opacity: 0;
    }
}

/* ----- SECTION STYLES ----- */
#sous_section1, #sous_section2, #sous_section3, #sous_section4, #sous_section5 {
    background-color: #01257D;
    border-radius: 120px;
    text-align: center;
    box-shadow: 3px -2px 5px #2272FF;
    width: 75%;
    margin: 10px auto;
}

/* ----- EXPLAIN SECTION ----- */
.explain {
    margin: 0 auto;
    width: 45%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.description {
    font-size: 1.5em;
    margin-right: 20px;
}

/* ----- IMAGE BLOCK ----- */
.imgBlock img {
    width: 150%;
    height: auto;
    border-radius: 50%;
}

/* ----- Veille ----- */
.container {
    border-radius: 30px;
    box-shadow: 0 0 12px whitesmoke;
    padding: 30px 30px 30px 30px;
}

.navbar-veille {
  display: flex;
  gap: 20px;
  margin: 0 0 0 50px;
  margin-bottom: 50px;
  cursor: pointer;
  justify-content: center;
  flex-wrap: wrap;
}

.nav-name {
  padding: 8px 12px;
  border-bottom: 2px solid transparent;
  font-weight: bold;
  color: #fff;
  transition: all 0.2s ease;
}

.nav-name.active {
  border-color: #007bff;
  color: #007bff;
}

.nav-content {
  display: none;
}

.nav-content.active {
  display: block;
}


/* ----- Contact ----- */

.card {
  display: flex;
  position: fixed;
  gap: 15px;
  padding: 25px;
  top: 85%;
  left: 12%;
}

.socialContainer {
  width: 50px;
  height: 50px;
  background-color: #161B22;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
  overflow: hidden;
  transition: all 0.6s;
}

.socialContainer:active {
  transform: scale(0.9);
}

.linkedin:hover { background-color: #0072b1; }
.instagram:hover { background-color: #d62976; }
.messenger:hover { background-color: #0084ff; }
.github:hover { background-color: #333; }
.email:hover { background-color: #ea4335; }
.gmail:hover { background: linear-gradient(45deg, #fbbc05, #ea4335, #34a853, #4285f4); }
.cv:hover { background-color: #58A6FF; }

/* SVG */
.socialSvg {
  width: 24px;
  height: 24px;
  fill: #fff;
  transition: transform 0.6s;
}

.socialContainer:hover .socialSvg {
  transform: translateY(-5px);
}

/* ----- Crédits ----- */
.credit{
    margin-top: 10%;
}

/* ----- CURSOR EFFECT ----- */
.cursor {
    position: absolute;
    width: 20px;
    height: 20px; 
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease-out;
    border: 2px solid #00ffff;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0,255,255,0.2) 0%, rgba(0,255,255,0.5) 50%, rgba(0,255,255,0.8) 100%);
    box-shadow: 0 0 10px #00ffff, 0 0 20px #00ffff, 0 0 40px #00ffff, 0 0 60px #00ffff;
    opacity: 0.3;
}


/* ----- MODAL WINDOWS ----- */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #161b22;
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    position: relative;
    animation: fadeIn 0.3s ease;
    border: 2px solid #161b22;
    box-shadow: 0 0 20px #15929d;
    max-width: 900px;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.close {
    position: absolute;
    top: 0.5rem;
    right: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
}

.close:hover {
    color: #FFD166;
}

.modal-body-flex {
    display: flex;
    gap: 1.5rem;
    flex-grow: 1;
    overflow: hidden;
}

.modal-text-scrollable {
    flex: 1;
    max-height: 60vh;
    overflow-y: auto;
    text-align: left;
    padding-right: 1rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.modal-text-scrollable::-webkit-scrollbar {
    display: none;
}

/* ----- CAROUSEL ----- */
.carousel-projet-fixed {
    perspective: 2000px;
    width: 670px;
    margin: auto;
    margin-bottom: 42%;
    margin-top: 2%;
    position: relative;
    border: none
}

.carousel-projet {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transform: translateZ(-500px);
    transition: transform 1s;
}

.carousel-item-projet {
    position: absolute;
    width: 100%;
    height: auto;
    left: 0;
    top: 0;
    backface-visibility: hidden;
}

.carousel-item-projet img {
    width: 90%;
    height: 90%;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 0 7px 3px rgb(172 173 233);
}

/* Item actif visible */
.active-projet {
    opacity: 1;
    z-index: 1;
}

/* ----- SCROLLBARS (global pour body et modal-content) ----- */

/* Scrollbar pour Chrome, Edge, Safari */
.modal-content::-webkit-scrollbar,
body::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track,
body::-webkit-scrollbar-track {
    background: #0a1a50;
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb {
    background-color: #fafafa;
    border-radius: 4px;
    border: 2px solid #0a1a50;
}

.modal-content::-webkit-scrollbar-thumb:hover,
body::-webkit-scrollbar-thumb:hover {
    background-color: #e0e0e0;
}

/* Scrollbar pour Firefox */
.modal-content,
body {
    scrollbar-width: thin;
    scrollbar-color: #fafafa #0a1a50;
}

/* ----- DOCUMENTS ----- */
.doc-content {
    border-radius: 30px;
    box-shadow: 0 0 12px whitesmoke;
    padding: 30px;
}

.documents-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.document-card {
    background: #161b22;
    border-radius: 20px;
    padding: 20px 25px;
    box-sizing: border-box;
    flex: 0 0 48%;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 0 12px rgba(34, 114, 255, 0.6);
    transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.document-card:hover {
    box-shadow: 0 0 25px #2272FF;
    transform: scale(1.05);
}

.document-icon {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    filter: drop-shadow(0 0 2px #00bfae);
}

.document-info {
    flex-grow: 1;
}

.document-info h4 {
    margin: 0 0 8px 0;
    color: #fff;
    font-weight: 700;
    font-size: 1.3em;
    text-shadow: 1px 1px 4px #2272FF;
}

.document-info p {
    margin: 0 0 10px 0;
    font-size: 1em;
    color: #cfd8dc;
}

.document-link a {
    background: #2272FF;
    color: white;
    padding: 10px 18px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1em;
    transition: background-color 0.3s ease;
    box-shadow: 0 0 8px #00bfae;
}

.document-link a:hover {
    background: #00bfae;
    box-shadow: 0 0 12px #00bfae;
}

/* ----- FILTRES DE DOCUMENTS ----- */
.documents-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.documents-filters button {
    background: linear-gradient(145deg, #1a1a1a, #0f0f0f);
    color: #fff;
    padding: 10px 20px;
    border: 1px solid #2272FF;
    border-radius: 25px;
    font-weight: 600;
    font-family: Consolas, monospace;
    cursor: pointer;
    transition: all 0.3s ease;
    
    box-shadow:
        -2px -2px 6px rgba(255, 255, 255, 0.05),
         2px 2px 8px rgba(0, 0, 0, 0.6),
         inset 1px 1px 2px rgba(255, 255, 255, 0.05),
         inset -1px -1px 2px rgba(0, 0, 0, 0.5);
}

.documents-filters button:hover,
.documents-filters button.active {
    background: linear-gradient(145deg, #2272FF, #00bfae);
    color: #ffffff;
    transform: scale(1.05);
    box-shadow:
        0 0 15px #00bfae,
        inset 0 0 5px rgba(0, 191, 174, 0.4);
}

/* Bouton œil cliquable */
.see-button {
    cursor: pointer;
    display: inline-block;
    width: 70px;
    height: 30px;
    position: relative;
}

.see {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-between; 
    align-items: center;
    border-radius: 20px;
    box-shadow: 0 0 8px #818181;
    background-color: #161b22;
    padding: 4px 5px; 
}

.see::before,
.see::after {
    content: "";
    display: inline-block;
    width: 28px;
    height: 22px;
    background-color: #fff;
    background-image: radial-gradient(circle 6px, #0d161b 100%, transparent 0);
    background-repeat: no-repeat;
    border-radius: 50% / 35%;
    animation: eyeMove 10s infinite, blink 10s infinite;
    box-shadow: inset 0 0 2px #000;
}

@keyframes eyeMove {
    0%,10% { background-position: 0 0; }
    13%,40% { background-position: -6px 0; }
    43%,70% { background-position: 6px 0; }
    73%,90% { background-position: 0 4px; }
    93%,100% { background-position: 0 0; }
}

@keyframes blink {
    0%,10%,12%,20%,22%,40%,42%,60%,62%,70%,72%,90%,92%,98%,100% { height: 22px; }
    11%,21%,41%,61%,71%,91%,99% { height: 10px; }
}

/* Spécial pour la modal PDF */
#pdfModal .modal-content {
    width: 60%;
    height: 90vh;
    max-width: none;
    display: flex;
    flex-direction: column;
    padding: 2%;
}

#pdfViewer {
    flex: 1;
    width: 100%;
    height: 100%;
    border: none;
}

/* ----- Scroll ----- */
/* From Uiverse.io by mrhyddenn */ 
.scrolldown {
  --color: white;
  --sizeX: 30px;
  --sizeY: 50px;
  position: relative;
  width: var(--sizeX);
  height: var(--sizeY);
  margin-left: var(sizeX / 2);
  border: calc(var(--sizeX) / 10) solid var(--color);
  border-radius: 50px;
  box-sizing: border-box;
  margin-left: 47%;
  cursor: pointer;
}

.scrolldown::before {
  content: "";
  position: absolute;
  bottom: 30px;
  left: 50%;
  width: 6px;
  height: 6px;
  margin-left: -3px;
  background-color: var(--color);
  border-radius: 100%;
  animation: scrolldown-anim 2s infinite;
  box-sizing: border-box;
  box-shadow: 0px -5px 3px 1px #2a547066;
}

@keyframes scrolldown-anim {
  0% {
    opacity: 0;
    height: 6px;
  }

  40% {
    opacity: 1;
    height: 10px;
  }

  80% {
    transform: translate(0, 20px);
    height: 10px;
    opacity: 0;
  }

  100% {
    height: 3px;
    opacity: 0;
  }
}

.chevrons {
  padding: 6px 0 0 0;
  margin-left: -3px;
  margin-top: 48px;
  width: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.chevrondown {
  margin-top: -6px;
  position: relative;
  border: solid var(--color);
  border-width: 0 3px 3px 0;
  display: inline-block;
  width: 10px;
  height: 10px;
  transform: rotate(45deg);
}

.chevrondown:nth-child(odd) {
  animation: pulse54012 500ms ease infinite alternate;
}

.chevrondown:nth-child(even) {
  animation: pulse54012 500ms ease infinite alternate 250ms;
}

@keyframes pulse54012 {
  from {
    opacity: 0;
  }

  to {
    opacity: 0.5;
  }
}

/* ----- MEDIA ----- */
@media (max-width: 768px) {
    .timeline-item {
        flex-direction: column;
        align-items: center;
    }

    .projets {
        flex-direction: column;
    }

    .projet-item {
        width: 90%;
    }
}

@media (max-width: 600px) {
    .document-card {
      flex: 0 0 100%;
    }
}


@media (min-width: 1900px) {
  html {
    zoom: 1.25;
  }
  .modal {
    zoom: 0.8;
    left: 200px;
  }
}
