/*  Général  */
html, body {
    height: 100%;
    margin: 0;
    font-family: Arial, sans-serif;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

/*  Fond Jour */
body {
    background: #FDC830; 
    background: -webkit-linear-gradient(to right, #F37335, #FDC830);
    background: linear-gradient(to right, #F37335, #FDC830);
    color: #000; 
}

/* Sections transparentes */
section {
    min-height: 100vh;
    padding: 60px 20px;
    background-color: transparent !important;
}

/* Titres et paragraphes */
/*Titre H1*/
.section-title {
    color: #ffffff !important;
    text-align: center !important;
    font-size: 70px !important;
}
/*Titre H2*/
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400&display=swap');

.section-title2 {
    text-align: center;
    font-size: 50px;
    font-family: "Open Sans", sans-serif;
    color: #000;
    margin: 50px 0;
}

/* Mode nuit (si tu veux adapter) */
body.night .section-title2 {
    color: #FFF;
}

/* Effet du curseur clignotant */
.blinking-cursor {
    user-select: none;
    animation: blink 1s steps(2, start) infinite;
}

@keyframes blink {
    to {
        visibility: hidden;
    }
}

/*Introduction au thème (BTS/GSB/CFA...)*/
.bts-intro {
    color: #000 !important;
    text-align: center;
    margin-bottom: auto;
    line-height: 1.6;
    font-size: 25px !important;
    margin-top: auto;
}

/* Menu hamburger motion.dev */
.nav-container {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    pointer-events: none;
}

.nav-container * {
    pointer-events: auto;
}

/* suppr fond */
.nav-background {
    display: none !important;
}

/* Bouton hamburger */
.menu-toggle {
    position: fixed;
    top: 18px;
    left: 15px;
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    z-index: 1001;
    outline: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.menu-toggle:hover {
    background: rgba(255, 140, 0, 0.9);
    transform: scale(1.05);
}

.menu-toggle svg {
    width: 23px;
    height: 23px;
}

.menu-toggle path {
    fill: transparent;
    stroke: #ffffff;
    stroke-width: 3;
    stroke-linecap: round;
    transition: all 0.3s ease;
}

/* Animation des lignes du hamburger */
.nav-container.open .menu-toggle {
    background: rgba(255, 50, 50, 0.9);
}

.nav-container.open .menu-toggle .line-top {
    d: path("M 3 16.5 L 17 2.5");
}

.nav-container.open .menu-toggle .line-middle {
    opacity: 0;
}

.nav-container.open .menu-toggle .line-bottom {
    d: path("M 3 2.5 L 17 16.346");
}

/* Liste de navigation */
.nav-list {
    position: fixed;
    top: 80px;
    left: 15px;
    width: 300px;
    list-style: none;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 0;
    margin: 0;
    z-index: 1000;
}

.nav-container.open .nav-list {
    opacity: 1;
    pointer-events: all;
}

/* Fond propre au item de liste */
.nav-item {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    cursor: pointer;
    transform: translateX(-100%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(0, 0, 0, 0.85);
    padding: 10px 15px;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-container.open .nav-item {
    transform: translateX(0);
    opacity: 1;
}

/* Animation en cascade */
.nav-container.open .nav-item:nth-child(1) { transition-delay: 0.05s; }
.nav-container.open .nav-item:nth-child(2) { transition-delay: 0.1s; }
.nav-container.open .nav-item:nth-child(3) { transition-delay: 0.15s; }
.nav-container.open .nav-item:nth-child(4) { transition-delay: 0.2s; }
.nav-container.open .nav-item:nth-child(5) { transition-delay: 0.25s; }
.nav-container.open .nav-item:nth-child(6) { transition-delay: 0.3s; }
.nav-container.open .nav-item:nth-child(7) { transition-delay: 0.35s; }
.nav-container.open .nav-item:nth-child(8) { transition-delay: 0.4s; }

/* Animation de fermeture (slide vers la gauche) */
.nav-item {
    transition-delay: 0s !important;
}

.nav-item:hover {
    transform: translateX(5px) scale(1.02);
    background: rgba(255, 140, 0, 0.9);
    border-color: rgba(255, 140, 0, 0.5);
    box-shadow: 0 6px 20px rgba(255, 140, 0, 0.4);
}

.nav-item:active {
    transform: translateX(5px) scale(0.98);
}

/* Icône colorée */
.nav-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    margin-right: 15px;
    border: 2px solid;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden; 
    background: rgba(255, 255, 255, 0.1);
    position: relative;
}

/* Image dans le cercle */
.nav-icon img {
    width: 60%; 
    height: 60%;
    object-fit: contain;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); 
    filter: brightness(1.2); 
}
/* Couleurs des cercles si pas d'image */
.nav-item:nth-child(1) .nav-icon { border-color: #FF008C; }
.nav-item:nth-child(2) .nav-icon { border-color: #D309E1; }
.nav-item:nth-child(3) .nav-icon { border-color: #9C1AFF; }
.nav-item:nth-child(4) .nav-icon { border-color: #7700FF; }
.nav-item:nth-child(5) .nav-icon { border-color: #4400FF; }
.nav-item:nth-child(6) .nav-icon { border-color: #FF008C; }
.nav-item:nth-child(7) .nav-icon { border-color: #D309E1; }
.nav-item:nth-child(8) .nav-icon { border-color: #9C1AFF; }

/* Texte aligné à gauche */
.nav-text {
    flex: 1;
    color: #ffffff;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    text-align: left;
    line-height: 1.3;
}

/* mode nuit */
body.night .menu-toggle {
    background: rgba(255, 165, 0, 0.8);
}

body.night .menu-toggle path {
    stroke: #000000;
}

body.night .nav-container.open .menu-toggle {
    background: rgba(255, 50, 50, 0.9);
}

body.night .nav-container.open .menu-toggle path {
    stroke: #ffffff;
}

body.night .nav-item {
    background: rgba(27, 27, 27, 0.95);
    border-color: rgba(255, 165, 0, 0.3);
}

body.night .nav-item:hover {
    background: rgba(255, 165, 0, 0.9);
    border-color: rgba(255, 165, 0, 0.8);
}

/* Responsive (a tester le tuto fonctionné en tout cas) */
@media (max-width: 768px) {
    .nav-list {
        width: calc(100vw - 30px);
        left: 15px;
    }
    
    .nav-item {
        padding: 8px 12px;
    }
    
    .nav-icon {
        width: 40px;
        height: 40px;
        margin-right: 12px;
    }
    
    .nav-text {
        font-size: 14px;
    }
}
/* Fond Nuit */
body.night {
    background: #141E30; 
    background: -webkit-linear-gradient(to right, #243B55, #141E30);
    background: linear-gradient(to right, #243B55, #141E30);
    color: #f0f0f0;
}
body.night section {
    background-color: transparent !important;
    color: #f0f0f0;
}
body.night nav {
    background-color: #1b1b1b !important;
}
body.night nav a {
    color: #ffa500; 
}
body.night .section-title {
    color: #ffa500 !important;
}
body.night .section-title2,
body.night .bts-intro {
    color: #ffffff !important;
}

/* Fiche style Python */
.bts-options {
    display: flex;
    gap: 5px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Fiche individuelle avec bordure RGB trouvé sur prismic.io */
.code-card {
    flex: 0 0 48%;
    min-height: 400px;
    max-width: 1000px;
    background-color: #1b1b2f;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3), 0 0 20px rgba(255, 0, 150, 0.3);
    overflow: hidden;
    font-family: 'Fira Code', monospace;
    margin: 20px auto;
    position: relative;
    border: 3px solid;
    animation: rgb-border 4s linear infinite;
}

@keyframes rgb-border {
    0% {
        border-color: #ff0000;
        box-shadow: 0 10px 20px rgba(0,0,0,0.3), 0 0 30px rgba(255, 0, 0, 0.5);
    }
    16% {
        border-color: #ff00ff;
        box-shadow: 0 10px 20px rgba(0,0,0,0.3), 0 0 30px rgba(255, 0, 255, 0.5);
    }
    33% {
        border-color: #0000ff;
        box-shadow: 0 10px 20px rgba(0,0,0,0.3), 0 0 30px rgba(0, 0, 255, 0.5);
    }
    50% {
        border-color: #00ffff;
        box-shadow: 0 10px 20px rgba(0,0,0,0.3), 0 0 30px rgba(0, 255, 255, 0.5);
    }
    66% {
        border-color: #00ff00;
        box-shadow: 0 10px 20px rgba(0,0,0,0.3), 0 0 30px rgba(0, 255, 0, 0.5);
    }
    83% {
        border-color: #ffff00;
        box-shadow: 0 10px 20px rgba(0,0,0,0.3), 0 0 30px rgba(255, 255, 0, 0.5);
    }
    100% {
        border-color: #ff0000;
        box-shadow: 0 10px 20px rgba(0,0,0,0.3), 0 0 30px rgba(255, 0, 0, 0.5);
    }
}

.code-card.single {
    flex: 0 0 60%;
}

/* Header des fiches et points colorés */
.code-header {
    display: flex;
    align-items: center;
    padding: 0px 15px;
    background-color: #2c2c44;
}
.header-dots {
    display: flex;
    gap: 5px;
}
.header-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: block;
}
.dot.red { background: #ff5f56; }
.dot.orange { background: #ffbd2e; }
.dot.green { background: #27c93f; }
.file-name {
    margin-left: 10px;
    margin-top: 17px;
    color: #f5f5f5;
    font-weight: bold;
}

/* Contenu de la fiche */
.code-content {
    padding: 20px;
    color: #f5f5f5;
}
.code-content pre {
    margin: 0;
    white-space: pre-wrap;
}

/* Syntaxe couleurs */
.keyword { color: #200be6; }
.variable { color: #cdcf34; }
.property { color: #82cfff; }
.string { color: #eb7763; }

/* Bouton Jour/Nuit */
#toggleTheme {
    all: unset;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;

    /* Style visuel */
    padding: 10px 15px;
    border-radius: 5px;
    background-color: #ff6600; /* ☀️ Jour */
    color: white;
    cursor: pointer;
    font-size: 18px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    display: inline-block;
    width: auto;
    height: auto;
    transition: background-color 0.3s, transform 0.2s;
}

#toggleTheme:hover {
    transform: scale(1.05);
}

/* 🌙 Mode nuit */
body.night #toggleTheme {
    background-color: #0b132b; /* bleu nuit profond */
    color: #ffa500; /* petit accent orange */
}

body.night #toggleTheme:hover {
    background-color: #1c2541; /* un peu plus clair au survol */
}


/* Permet de centrer le tableau compétence SIO */
.Tableau {
    align-items: center;
    justify-content: center;
    display: flex;
    max-width: 100%;
    height: auto;
}
/* Fond animé HTML (mon head) */
.code-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px;
  pointer-events: none;
}

.code-background pre {
  font-family: "Courier New", monospace;
  font-size: 14px;
  white-space: pre-wrap;
  word-wrap: break-word;
  opacity: 0.30; 
  line-height: 1.3;
  width: 90%;
}

/* Mode jour */
body.day .code-background {
  background: linear-gradient(to right, #F37335, #FDC830);
}
body.day .code-background pre {
  color: #5a2c00; 
}

/* Mode nuit */
body.night .code-background {
  background: linear-gradient(to right, #243B55, #141E30);
}
body.night .code-background pre {
  color: #00e5ff; 
}

/* Cartes languages prog trouvé sur codepen.io */
body {
  background-color: #100e17;
  font-family: 'Open Sans', sans-serif;
}

.container {
  height: auto;
  width: 600px;
  top: 60px;
  left: calc(50% - 300px);
  display: flex;
}

.card {
  display: flex;
  height: 280px;
  width: 200px;
  background-color: #17141d;
  border-radius: 10px;
  box-shadow: -1rem 0 3rem #000;
  transition: 0.4s ease-out;
  position: relative;
  left: 0px;
  border: 2px solid;
  animation: rgb-border-card 4s linear infinite;
}
/* Toujours le RGB de prismic.io */
@keyframes rgb-border-card {
    0% {
        border-color: #ff0000;
        box-shadow: -1rem 0 3rem #000, 0 0 20px rgba(255, 0, 0, 0.4);
    }
    16% {
        border-color: #ff00ff;
        box-shadow: -1rem 0 3rem #000, 0 0 20px rgba(255, 0, 255, 0.4);
    }
    33% {
        border-color: #0000ff;
        box-shadow: -1rem 0 3rem #000, 0 0 20px rgba(0, 0, 255, 0.4);
    }
    50% {
        border-color: #00ffff;
        box-shadow: -1rem 0 3rem #000, 0 0 20px rgba(0, 255, 255, 0.4);
    }
    66% {
        border-color: #00ff00;
        box-shadow: -1rem 0 3rem #000, 0 0 20px rgba(0, 255, 0, 0.4);
    }
    83% {
        border-color: #ffff00;
        box-shadow: -1rem 0 3rem #000, 0 0 20px rgba(255, 255, 0, 0.4);
    }
    100% {
        border-color: #ff0000;
        box-shadow: -1rem 0 3rem #000, 0 0 20px rgba(255, 0, 0, 0.4);
    }
}

.card:not(:first-child) {
    margin-left: -50px;
}

.card:hover {
  transform: translateY(-20px);
  transition: 0.4s ease-out;
  animation: rgb-border-card-fast 5s linear infinite;
}
/* Toujours le RGB de prismic.io mais quand on passe la souris dessus */
@keyframes rgb-border-card-fast {
    0% {
        border-color: #ff0000;
        box-shadow: -1rem 0 3rem #000, 0 0 30px rgba(255, 0, 0, 0.6);
    }
    16% {
        border-color: #ff00ff;
        box-shadow: -1rem 0 3rem #000, 0 0 30px rgba(255, 0, 255, 0.6);
    }
    33% {
        border-color: #0000ff;
        box-shadow: -1rem 0 3rem #000, 0 0 30px rgba(0, 0, 255, 0.6);
    }
    50% {
        border-color: #00ffff;
        box-shadow: -1rem 0 3rem #000, 0 0 30px rgba(0, 255, 255, 0.6);
    }
    66% {
        border-color: #00ff00;
        box-shadow: -1rem 0 3rem #000, 0 0 30px rgba(0, 255, 0, 0.6);
    }
    83% {
        border-color: #ffff00;
        box-shadow: -1rem 0 3rem #000, 0 0 30px rgba(255, 255, 0, 0.6);
    }
    100% {
        border-color: #ff0000;
        box-shadow: -1rem 0 3rem #000, 0 0 30px rgba(255, 0, 0, 0.6);
    }
}

.card:hover ~ .card {
  position: relative;
  left: 50px;
  transition: 0.4s ease-out;
}

.title {
  color: white;
  font-weight: 300;
  position: absolute;
  left: 10px;
  top: 15px;
}

.bar {
  position: absolute;
  top: 100px;
  left: 20px;
  height: 5px;
  width: 100px;
}

.card:hover .filledbar {
  width: 100px;
  transition: 0.4s ease-out;
}

.circle img {
  width: 120px;   
  height: 120px; 
  display: block;
  border-radius: 10px; 
}

/* Particules */
.card {
  position: relative;
  overflow: hidden;
}

.particles-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.particle {
  position: absolute;
  top: -20px;
  left: 0;
  font-weight: bold;
  user-select: none;
  opacity: 0.8;
  font-size: 16px;
  white-space: nowrap;
}
body {
  background: #f2f2f2;
  font-family: sans-serif;
}

.pokeball-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr); /* empeche de depasser 6 poké par lignes */
  gap: 30px;
  justify-items: center;
  padding: 40px;
}

.pokeball {
  position: relative;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  text-decoration: none;
}

.pokeball .top {
  background: red;
  width: 100%;
  height: 50%;
  position: absolute;
  top: 0;
  left: 0;
}

.pokeball .bottom {
  background: white;
  width: 100%;
  height: 50%;
  position: absolute;
  bottom: 0;
  left: 0;
}

.pokeball .center-line {
  background: black;
  height: 10px;
  width: 100%;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.pokeball .circle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 36px;
  height: 36px;
  background: black;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pokeball .inner-circle {
  width: 18px;
  height: 18px;
  background: white;
  border-radius: 50%;
}

.pokeball .text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-weight: bold;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  text-shadow: 0 0 10px black;
}

/* Effet hover */
.pokeball:hover {
  filter: brightness(0.7);
}

.pokeball:hover .text {
  opacity: 1;
}

/* Indicateur de souris scroll */
.scroll-mouse {
    position: fixed;
    right: 50px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.5s ease, transform 0.3s ease;
    cursor: pointer;
}

.mouse-body {
    width: 30px;
    height: 50px;
    border: 3px solid #000;
    border-radius: 15px;
    position: fixed;
    background: transparent;
}

body.night .mouse-body {
    border-color: #fff;
}

.mouse-wheel {
    width: 4px;
    height: 10px;
    background: #000;
    border-radius: 2px;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-wheel 2s ease-in-out infinite;
}

body.night .mouse-wheel {
    background: #fff;
}

@keyframes scroll-wheel {
    0%, 100% { top: 10px; opacity: 1; }
    50% { top: 25px; opacity: 0.3; }
}

/* Classe pour cacher l'indicateur */
.scroll-mouse.hidden {
    opacity: 0 !important;
    pointer-events: none;
}

