/* ═══════════════════════════════════════════════════════════════════════
   FEUILLE DE STYLE — Portfolio Cyrille COUR
   ───────────────────────────────────────────────────────────────────────
   Fichier partagé par : Index.php · mentions-legales.php · mon-ecosysteme.php

   SOMMAIRE
   01 · Animation RGB universelle + reset & base
   02 · Thèmes (fonds jour/nuit, couleur par section)
   03 · Scrollbar masquée + barre de progression
   04 · Keyframes réutilisables
   05 · Titres (H1 → H4, intro, curseur)
   06 · Navigation (menu hamburger)
   07 · Fond de code défilant des sections
   08 · Fiches « code » (style Python) + coloration syntaxique
   09 · Tableau image
   10 · Cartes empilées (langages / outils de veille)
   11 · Cartes terminal (réalisations)
   12 · Boutons terminal
   13 · Table de l'écosystème
   14 · Veille (cartes sujets)
   15 · HUD (encarts d'information)
   16 · Formulaire de contact
   17 · GitHub (calendrier d'activité)
   18 · Calaméo (guide UPV)
   19 · Graphique des langages
   20 · Animations d'apparition
   21 · Responsive (992 / 768 / 480 px)
   22 · Particules (survol des cartes)
   23 · Thème JOUR (surcharges body.day)
   24 · Header — fenêtre IDE
   25 · Footer — barre de statut
   ═══════════════════════════════════════════════════════════════════════ */

/* ═══════════════ 01 · ANIMATION RGB UNIVERSELLE ═══════════════ */
/* ── ANIMATION RGB UNIFORMISÉE ── */
@keyframes universal-rgb {
  0%,
  100% {
    border-color: #ff0000;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
  }
  16% {
    border-color: #ff00ff;
    box-shadow: 0 0 10px rgba(255, 0, 255, 0.5);
  }
  33% {
    border-color: #0000ff;
    box-shadow: 0 0 10px rgba(0, 0, 255, 0.5);
  }
  50% {
    border-color: #00ffff;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
  }
  66% {
    border-color: #00ff00;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
  }
  83% {
    border-color: #ffff00;
    box-shadow: 0 0 10px rgba(255, 255, 0, 0.5);
  }
}

.rgb-border-standard {
  border: 2px solid !important;
  animation: universal-rgb 4s linear infinite !important;
}

/* ── Reset & Base ──────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  font-family: "Open Sans", sans-serif;
  scroll-behavior: smooth;
}

body {
  overflow-x: clip;
}

/* ── Thèmes ────────────────────────────────────────────────── */
body {
  background: linear-gradient(to right, #f37335, #fdc830);
  color: #000;
}

body.night {
  background: linear-gradient(to right, #243b55, #141e30);
  color: #f0f0f0;
}

body.night section {
  color: #f0f0f0;
}

body.home-stack section {
  position: sticky;
  top: 0;
  min-height: 100vh;
  padding: 90px 20px 40px;
}

/* Accueil : hero orange (thème « jour »), texte foncé */
#accueil {
  z-index: 10;
  background: linear-gradient(135deg, #f37335, #fdc830) !important;
  padding-top: 120px !important;
}
#accueil .section-title3,
#accueil .section-title4 {
  color: #1b1b2f !important;
}

/* Sections sombres néon (thème « nuit ») */
#langages {
  z-index: 20;
  background: #0b132b !important;
  border-top: 2px solid #00ffff;
}
#competences {
  z-index: 30;
  background: #17141d !important;
  border-top: 2px solid #ff00ff;
}
#missions-centre {
  z-index: 40;
  background: #0d1117 !important;
  border-top: 2px solid #00ff88;
}
#missions-entreprise {
  z-index: 50;
  background: #1b1b2f !important;
  border-top: 2px solid #ffa500;
}
#veille {
  z-index: 60;
  background: #0b132b !important;
  border-top: 2px solid #00ffff;
}
#cyber {
  z-index: 70;
  background: #0d1117 !important;
  border-top: 2px solid #00ff88;
}
#projet {
  z-index: 80;
  background: #17141d !important;
  border-top: 2px solid #ff00ff;
}
#CV {
  z-index: 90;
  background: #1b1b2f !important;
  border-top: 2px solid #ffa500;
}

html,
body {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.35);
  pointer-events: none;
}
#scroll-progress-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #ffa500, #ffb347);
  box-shadow: 0 0 12px 1px #ffa500;
  transition: width 0.08s linear;
}

@keyframes shine {
  to {
    background-position: 0% center;
  }
}

@keyframes gradient-flow {
  to {
    background-position: 200% center;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes border-glow {
  16% {
    border-color: #ff00ff;
    color: #ff00ff;
    box-shadow: 0 6px 20px rgba(255, 0, 255, 0.5);
  }
  33% {
    border-color: #0000ff;
    color: #0000ff;
    box-shadow: 0 6px 20px rgba(0, 0, 255, 0.5);
  }
  50% {
    border-color: #00ffff;
    color: #00ffff;
    box-shadow: 0 6px 20px rgba(0, 255, 255, 0.5);
  }
  66% {
    border-color: #00ff00;
    color: #00ff00;
    box-shadow: 0 6px 20px rgba(0, 255, 0, 0.5);
  }
  83% {
    border-color: #ffff00;
    color: #ffff00;
    box-shadow: 0 6px 20px rgba(255, 255, 0, 0.5);
  }
  100% {
    border-color: #ff0000;
    color: #ff0000;
    box-shadow: 0 6px 20px rgba(255, 0, 0, 0.5);
  }
}

@keyframes glow-pulse {
  0%,
  100% {
    text-shadow:
      0 0 10px rgba(255, 102, 0, 0.5),
      0 0 20px rgba(255, 102, 0, 0.3),
      0 0 30px rgba(255, 102, 0, 0.2);
  }
  50% {
    text-shadow:
      0 0 20px rgba(255, 102, 0, 0.8),
      0 0 30px rgba(255, 102, 0, 0.5),
      0 0 40px rgba(255, 102, 0, 0.3);
  }
}

@keyframes glow-pulse-night {
  0%,
  100% {
    text-shadow:
      0 0 10px rgba(255, 165, 0, 0.5),
      0 0 20px rgba(255, 165, 0, 0.3),
      0 0 30px rgba(255, 165, 0, 0.2);
  }
  50% {
    text-shadow:
      0 0 20px rgba(255, 165, 0, 0.8),
      0 0 30px rgba(255, 165, 0, 0.5),
      0 0 40px rgba(255, 165, 0, 0.3);
  }
}

@keyframes line-glow {
  0%,
  100% {
    box-shadow: 0 0 10px rgba(255, 102, 0, 0.5);
  }
  50% {
    box-shadow: 0 0 20px rgba(255, 102, 0, 0.8);
  }
}

@keyframes blink {
  to {
    visibility: hidden;
  }
}

@keyframes hud-dot-pulse {
  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 6px #00ff88;
  }
  50% {
    opacity: 0.4;
    box-shadow: none;
  }
}

@keyframes bts-scan {
  to {
    top: 150%;
  }
}

@keyframes chartLegendIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* H1 */
.section-title {
  background: linear-gradient(90deg, #fff, #141e30, #fff);
  background-size: 200% auto;
  background-position: 200% center;
  text-align: center;
  font-size: 80px;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shine 3s linear infinite;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
}

body.night .section-title {
  background: linear-gradient(90deg, #fdc830, #f37335, #fdc830);
  background-size: 200% auto;
  background-position: 200% center;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 15px rgba(243, 115, 53, 0.4));
}

/* H2 */
.section-title2 {
  color: #ffffff !important;
  text-align: center;
  font-size: 60px;
  position: relative;
  display: inline-block;
  animation: glow-pulse 2s ease-in-out infinite;
}

.section-title2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 4px;
  background: linear-gradient(
    90deg,
    transparent,
    #243b55,
    #141e30,
    #243b55,
    transparent
  );
  border-radius: 2px;
  animation: line-glow 2s ease-in-out infinite;
}

body.night .section-title2 {
  color: #ffa500 !important;
  animation: glow-pulse-night 2s ease-in-out infinite;
}

body.night .section-title2::after {
  background: linear-gradient(
    90deg,
    transparent,
    #ffcc00,
    #f37335,
    #ffcc00,
    transparent
  );
}

/* H3 */
.section-title3 {
  text-align: center;
  font-size: 50px;
  font-family: "Open Sans", sans-serif;
  color: #000;
  margin: 50px 0;
}

body.night .section-title3 {
  color: #ffffff !important;
}

/* H4 */
.section-title4 {
  text-align: center;
  font-size: 40px;
  font-family: "Fira Code", monospace;
  color: #141e30;
  margin: 10px auto 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 400;
  opacity: 0.9;
}

.section-title4::before {
  content: ">>";
  color: #4c90de;
  font-weight: bold;
  font-size: 22px;
}

body.night .section-title4 {
  color: #cbd5e0;
}
body.night .section-title4::before {
  color: #f37335;
}

/* Intro texte */
.bts-intro {
  color: #000 !important;
  text-align: center;
  line-height: 1.6;
  font-size: 25px !important;
}

body.night .bts-intro {
  color: #ffffff !important;
}

/* Curseur */
.blinking-cursor {
  user-select: none;
  animation: blink 1s steps(2, start) infinite;
}

/* ═══════════════ 06 · NAVIGATION (menu hamburger) ═══════════════ */
.nav-container {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 1000;
  pointer-events: none;
}

.nav-container * {
  pointer-events: auto;
}

.nav-list {
  position: fixed;
  top: 80px;
  right: 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;
}

.nav-item {
  display: flex;
  flex-direction: row-reverse;
  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;
}

.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;
}

.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);
}

.nav-icon {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  margin-left: 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;
}

.nav-icon img {
  width: 60%;
  height: 60%;
  object-fit: contain;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  filter: brightness(1.2);
}

.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;
}

.nav-text {
  flex: 1;
  color: #ffffff;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  text-align: right;
  line-height: 1.3;
}

/* Mode nuit — Menu */
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);
}

/* ═══════════════ 07 · FOND DE CODE DÉFILANT DES SECTIONS ═══════════════ */
.section-content-layer {
  position: relative;
  z-index: 1;
}
.section-code {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
  -webkit-mask-image: linear-gradient(
    180deg,
    transparent 0,
    #000 12%,
    #000 88%,
    transparent 100%
  );
  mask-image: linear-gradient(
    180deg,
    transparent 0,
    #000 12%,
    #000 88%,
    transparent 100%
  );
}
.section-code-inner {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 0 clamp(12px, 5vw, 90px);
  font-family: "Fira Code", "Courier New", monospace;
  font-size: clamp(11px, 1.15vw, 14px);
  line-height: 1.7;
  white-space: pre;
  letter-spacing: 0.02em;
  color: var(--code-tint, rgba(0, 229, 255, 0.14));
  animation: section-code-scroll var(--code-duration, 60s) linear infinite;
  will-change: transform;
  backface-visibility: hidden;
  transform: translateZ(0);
}

body.day .section-code-inner {
  color: rgba(20, 15, 45, 0.17);
}
.section-code.paused .section-code-inner {
  animation-play-state: paused;
}
@keyframes section-code-scroll {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(var(--code-shift, -50%));
  }
}
@media (prefers-reduced-motion: reduce) {
  .section-code-inner {
    animation: none;
  }
}

/* ═══════════════ 08 · FICHES « CODE » (style Python) ═══════════════ */
.bts-options {
  display: flex;
  gap: 5px;
  justify-content: center;
  flex-wrap: wrap;
}

.code-card {
  animation: universal-rgb 4s linear infinite;
  flex: 0 0 48%;
  min-height: 400px;
  max-width: 1000px;
  background-color: #1b1b2f;
  border-radius: 15px;
  overflow: hidden;
  font-family: "Fira Code", monospace;
  margin: 20px auto;
  position: relative;
  border: 3px solid;
}

.code-card.single {
  flex: 0 0 60%;
}

.code-header {
  display: flex;
  align-items: center;
  padding: 0 15px;
  background-color: #2c2c44;
  min-height: 40px;
}

.header-dots {
  display: flex;
  gap: 5px;
}

/* Pastilles (une seule définition) */
.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;
}

.code-content {
  padding: 20px;
  color: #f5f5f5;
}
.code-content pre {
  margin: 0;
  white-space: pre-wrap;
}

/* Coloration syntaxique (une seule définition) */
.keyword {
  color: #200be6;
  font-size: 17px;
}
.variable {
  color: #cdcf34;
  font-size: 17px;
}
.property {
  color: #82cfff;
  font-size: 17px;
}
.string {
  color: #eb7763;
  font-size: 17px;
}

/* ═══════════════ 09 · TABLEAU IMAGE ═══════════════ */
.Tableau {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 70%;
  margin: 0 auto;
  border-radius: 15px;
  overflow: hidden;
}

.Tableau img {
  width: 100%;
  height: auto;
  display: block;
  cursor: pointer;
}

/* ═══════════════ 10 · CARTES EMPILÉES (langages / outils de veille) ═══════════════ */
.container {
  height: auto;
  width: auto;
  max-width: 90%;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  padding: 20px;
}

.card {
  animation: universal-rgb 4s linear infinite;
  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: 0;
  border: 2px solid;
  overflow: hidden;
}

.card:not(:first-child) {
  margin-left: -50px;
}

.card:hover {
  transform: translateY(-20px);

  z-index: 10;
}

.card:hover ~ .card {
  animation: universal-rgb 4s linear infinite;
  position: relative;
  left: 50px;
  transition: 0.4s ease-out;
}

.title {
  color: white;
  font-weight: 300;
  position: absolute;
  left: 10px;
  top: 15px;
  font-size: 20px;
}

.title .prompt {
  color: #f37335;
  font-family: "Fira Code", monospace;
  font-weight: 300;
  font-size: 15px;
  margin-right: 5px;
  display: inline-block;
}

body.night .title .prompt {
  color: #00e5ff;
}

.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;
}

/* ═══════════════ 11 · CARTES TERMINAL (réalisations) ═══════════════ */
.terminal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  padding: 20px 0 40px;
}

.terminal-card {
  background: #0d1117;
  border: 1px solid #1e2a38;
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
  cursor: pointer;
}

.terminal-card:hover {
  transform: translateY(-6px);
  border-color: #00e5ff;
  box-shadow: 0 0 22px rgba(0, 229, 255, 0.15);
}

.terminal-card-header {
  background: #161b22;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #1e2a38;
}

.tc-dots {
  display: flex;
  gap: 6px;
}

.tc-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.tc-dot.red {
  background: #ff5f57;
}
.tc-dot.orange {
  background: #febc2e;
}
.tc-dot.green {
  background: #28c840;
}

.tc-filename {
  font-family: "Fira Code", monospace;
  font-size: 0.7rem;
  color: #555;
  margin-left: auto;
}

.terminal-card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.tc-prompt {
  font-family: "Fira Code", monospace;
  font-size: 0.68rem;
  color: #00e5ff;
  margin-bottom: 6px;
}
.tc-title {
  font-family: "Fira Code", monospace;
  font-size: 1rem;
  font-weight: 600;
  color: #e6edf3;
  margin-bottom: 8px;
}
.tc-desc {
  font-size: 0.75rem;
  color: #8b949e;
  line-height: 1.5;
  flex: 1;
  margin-bottom: 12px;
}

.tc-tag {
  display: inline-block;
  background: rgba(0, 229, 255, 0.07);
  border: 1px solid rgba(0, 229, 255, 0.2);
  color: #00e5ff;
  font-family: "Fira Code", monospace;
  font-size: 0.62rem;
  padding: 2px 7px;
  border-radius: 4px;
  margin-right: 4px;
  margin-bottom: 8px;
}

.tc-tag:nth-of-type(n + 4) {
  display: none;
}

.tc-arrow {
  font-family: "Fira Code", monospace;
  font-size: 0.7rem;
  color: #00e5ff;
  margin-top: 6px;
  display: block;
  transition: color 0.2s ease;
}

.terminal-card-large {
  width: 100%;
  max-width: 800px;
  flex: 1;
}
.terminal-card-large .tc-prompt {
  font-size: 1.2rem;
  color: #00e5ff;
}
.terminal-card-large .tc-title {
  font-size: 1.8rem;
  margin-bottom: 12px;
}
.terminal-card-large .tc-desc {
  font-size: 1rem;
}
.terminal-card-large .tc-tag {
  font-size: 0.8rem;
  padding: 4px 10px;
}

/* Mode nuit — Terminal Cards */
body.night .terminal-card {
  background: #1a1000;
  border-color: #3a2500;
}
body.night .terminal-card:hover {
  border-color: #ffa500;
  box-shadow: 0 0 22px rgba(255, 165, 0, 0.15);
}
body.night .terminal-card-header {
  background: #100c00;
  border-bottom-color: #3a2500;
}
body.night .tc-prompt {
  color: #ffa500;
}
body.night .tc-title {
  color: #fff3e0;
}
body.night .tc-desc {
  color: #a0806a;
}
body.night .tc-tag {
  background: rgba(255, 165, 0, 0.07);
  border-color: rgba(255, 165, 0, 0.3);
  color: #ffa500;
}
body.night .tc-arrow {
  color: #ff8c00;
}
body.night .terminal-card:hover .tc-arrow {
  color: #ffa500;
}

/* ═══════════════ 12 · BOUTONS TERMINAL ═══════════════ */
.terminal-button-container {
  display: flex;
  justify-content: center;
  margin: 30px 0;
}

.terminal-button {
  animation: universal-rgb 4s linear infinite;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 15px 30px;
  background-color: #1b1b2f;
  text-decoration: none;
  border-radius: 8px;
  border: 2px solid #ff0000;
  font-family: "Courier New", monospace;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.terminal-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s ease;
}

.terminal-button:hover::before {
  left: 100%;
}
.terminal-button:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-3px);
}

.terminal-prompt {
  font-size: 22px;
}
.terminal-arrow {
  transition: transform 0.3s ease;
}
.terminal-button:hover .terminal-arrow {
  transform: translateX(5px);
}

/* Mode nuit */
body.night .terminal-button {
  animation: universal-rgb 4s linear infinite;
  background-color: #0b132b;
  border-color: #ffa500;
  color: #ffa500;
  animation: none;
}
body.night .terminal-button:hover {
  background-color: #ffa500;
  color: #0b132b;
  animation: none;
}
body.night .terminal-button::before {
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 165, 0, 0.2),
    transparent
  );
}

/* Mode jour : orange du site, texte foncé (l'inverse au survol) */
body.day .terminal-button {
  background: var(--day-orange);
  border-color: #d95700;
  color: #1b1b2f;
  box-shadow: 0 6px 18px rgba(217, 87, 0, 0.28);
  animation: none;
}
body.day .terminal-button:hover {
  background: #ffffff;
  color: #d95700;
  animation: none;
}
body.day .terminal-button::before {
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.35),
    transparent
  );
}

/* ═══════════════ 13 · TABLE DE L'ÉCOSYSTÈME ═══════════════ */
.eco-intro {
  text-align: center;
  font-family: "Fira Code", monospace;
  font-size: 18px;
  line-height: 1.6;
  max-width: 820px;
  margin: 10px auto 10px;
  color: #1b1b2f;
}
body.night .eco-intro {
  color: #f0f0f0;
}

.eco-table {
  width: 100%;
  max-width: 1000px;
  margin: 34px auto;
  border-collapse: collapse;
  background-color: #1b1b2f;
  border-radius: 15px;
  overflow: hidden;
  font-family: "Fira Code", monospace;
  border: 3px solid var(--cat, #00e5ff);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}

.eco-cat {
  text-align: left;
  padding: 14px 22px;
  background-color: var(--cat, #00e5ff);
  color: #04121a;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.eco-table td {
  padding: 14px 18px;
  vertical-align: middle;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.eco-table tbody tr:hover td {
  background-color: rgba(255, 255, 255, 0.05);
}

.eco-idcell {
  width: 190px;
  text-align: center;
}

.eco-ico {
  display: inline-flex;
  width: 62px;
  height: 62px;
  border-radius: 12px;
  background: #fff;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}
.eco-ico img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}
.eco-ico-fb {
  font-weight: 700;
  font-size: 26px;
  color: #04121a;
}
.eco-name {
  display: block;
  margin-top: 9px;
  font-size: 15px;
  font-weight: 600;
  color: #eafdff;
}

.eco-desc {
  text-align: left;
  font-family: "Open Sans", sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: #d6dde2;
}

@media (max-width: 640px) {
  .eco-idcell {
    width: 110px;
  }
  .eco-ico {
    width: 50px;
    height: 50px;
  }
  .eco-ico img {
    width: 34px;
    height: 34px;
  }
  .eco-table td {
    padding: 12px 10px;
  }
  .eco-desc {
    font-size: 13.5px;
  }
}

/* ═══════════════ 14 · VEILLE (cartes sujets) ═══════════════ */
.veille-subjects-container {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 40px;
  flex-wrap: wrap;
  padding: 20px;
  max-width: 1400px;
  margin: 0 auto;
}

.veille-card {
  background: rgba(23, 20, 29, 0.95);
  border-radius: 20px;
  padding: 30px 40px;
  min-width: 450px;
  flex: 1;
  max-width: 600px;
  text-decoration: none;
  color: white;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 2px solid transparent;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.veille-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  transition: left 0.5s;
}

.veille-card:hover::before {
  left: 100%;
}

.veille-card:hover {
  transform: translateY(-10px) scale(1.05);
  border-color: #ff6600;
  box-shadow: 0 20px 50px rgba(255, 102, 0, 0.4);
}

.veille-card .number {
  font-size: 48px;
  font-weight: bold;
  background: linear-gradient(135deg, #ff6600, #ffa500);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 10px;
}

.veille-card .icon {
  position: absolute;
  right: 20px;
  top: 20px;
  font-size: 30px;
  opacity: 0.3;
  transition: all 0.3s;
}
.veille-card:hover .icon {
  opacity: 1;
  transform: rotate(15deg) scale(1.2);
}

/* ═══════════════ 15 · HUD (encarts d'information) ═══════════════ */
.bts-hud {
  position: relative;
  max-width: 860px;
  margin: 0 auto 30px;
  background: rgba(27, 27, 47, 0.92);
  border: 1px solid rgba(0, 255, 255, 0.3);
  border-radius: 12px;
  overflow: hidden;
  box-shadow:
    0 0 40px rgba(0, 0, 0, 0.4),
    inset 0 0 60px rgba(0, 255, 255, 0.03);
}

.bts-hud::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 12px;
  padding: 2px;
  background: linear-gradient(
    90deg,
    #ff0000,
    #ff00ff,
    #0000ff,
    #00ffff,
    #00ff00,
    #ffff00,
    #ff0000
  );
  background-size: 300% 100%;
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;

  pointer-events: none;
}

.bts-hud::after {
  content: "";
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 40%;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(0, 255, 255, 0.04),
    transparent
  );
  animation: bts-scan 4s linear infinite;
  pointer-events: none;
}

.bts-hud-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  background: rgba(0, 255, 255, 0.06);
  border-bottom: 1px solid rgba(0, 255, 255, 0.2);
  font-family: "Fira Code", monospace;
  flex-wrap: wrap;
}

.hud-tag {
  font-size: 11px;
  font-weight: 700;
  color: #0a0a1a;
  background: linear-gradient(90deg, #00ffff, #ff00ff);
  padding: 3px 10px;
  border-radius: 4px;
  letter-spacing: 1.5px;
}

.hud-title {
  color: #82cfff;
  font-size: 16px;
  opacity: 0.8;
  flex: 1;
}

.hud-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #00ff88;
  font-family: "Fira Code", monospace;
}

.hud-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #00ff88;
  animation: hud-dot-pulse 2s ease-in-out infinite;
}

.bts-hud-body {
  padding: 28px 24px 24px;
  position: relative;
  z-index: 1;
}

.bts-hud-description {
  font-family: "Fira Code", monospace;
  font-size: 15px;
  line-height: 1.8;
  color: #c8d8e8;
  margin: 0 0 28px;
  padding-left: 16px;
  border-left: 2px solid rgba(0, 255, 255, 0.3);
}

.bts-hud-description .kw-cyan {
  color: #00ffff;
  font-weight: 700;
}
.bts-hud-description .kw-magenta {
  color: #ff00ff;
  font-weight: 600;
}
.bts-hud-description .kw-yellow {
  color: #ffff00;
  font-weight: 600;
}

.bts-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.bts-stat-block {
  background: rgba(0, 255, 255, 0.05);
  border: 1px solid rgba(0, 255, 255, 0.2);
  border-radius: 8px;
  padding: 16px;
  text-align: center;
  transition: all 0.3s ease;
  cursor: default;
  position: relative;
  overflow: hidden;
}

.bts-stat-block::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(0, 255, 255, 0.08),
    transparent
  );
  transform: translateX(-100%);
  transition: transform 0.5s;
}

.bts-stat-block:hover::before {
  transform: translateX(100%);
}
.bts-stat-block:hover {
  border-color: #ff00ff;
  background: rgba(255, 0, 255, 0.08);
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.2);
  transform: translateY(-2px);
}

.stat-icon {
  font-size: 22px;
  display: block;
  margin-bottom: 8px;
}
.stat-label {
  font-family: "Fira Code", monospace;
  font-size: 12px;
  color: #00ffff;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.7;
  margin-bottom: 8px;
}
.stat-value {
  font-family: "Fira Code", monospace;
  font-size: 17px;
  font-weight: 700;
  color: #f0f0f0;
}

.stat-accent {
  background: linear-gradient(90deg, #00ffff, #ff00ff);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradient-flow 3s linear infinite;
}

/* Mode nuit — HUD */
body.night .bts-hud {
  background: rgba(11, 19, 43, 0.95);
  border-color: rgba(255, 165, 0, 0.3);
}
body.night .bts-hud-header {
  background: rgba(255, 165, 0, 0.06);
  border-color: rgba(255, 165, 0, 0.2);
}
body.night .hud-tag {
  background: linear-gradient(90deg, #ffa500, #ff00ff);
}
body.night .hud-title,
body.night .bts-hud-description {
  color: #ffa500;
}
body.night .bts-hud-description .kw-cyan {
  color: #ffa500;
}
body.night .bts-stat-block {
  background: rgba(255, 165, 0, 0.05);
  border-color: rgba(255, 165, 0, 0.2);
}
body.night .bts-stat-block:hover {
  border-color: #ff00ff;
  background: rgba(255, 0, 255, 0.08);
}
body.night .stat-label {
  color: #ffa500;
}
body.night .stat-accent {
  background: linear-gradient(90deg, #ffa500, #ff00ff);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
}

/* ═══════════════ 16 · FORMULAIRE DE CONTACT ═══════════════ */
.contact-form {
  max-width: 600px;
  margin: 40px auto;
  padding: 40px;
  background: rgba(27, 27, 47, 0.95);
  border-radius: 15px;
  border: 2px solid;

  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.contact-form label {
  display: block;
  color: #82cfff;
  font-family: "Fira Code", monospace;
  font-size: 16px;
  margin-bottom: 8px;
  margin-top: 20px;
}

.contact-form label::before {
  content: ">> ";
  color: #f37335;
  font-weight: bold;
}
body.night .contact-form label::before {
  color: #00e5ff;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 15px;
  background: rgba(44, 44, 68, 0.8);
  border: 2px solid rgba(130, 207, 255, 0.3);
  border-radius: 8px;
  color: #f5f5f5;
  font-family: "Open Sans", sans-serif;
  font-size: 15px;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #f37335;
  background: rgba(44, 44, 68, 1);
  box-shadow: 0 0 15px rgba(243, 115, 53, 0.3);
}

body.night .contact-form input:focus,
body.night .contact-form textarea:focus {
  border-color: #00e5ff;
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.3);
}

.contact-form textarea {
  min-height: 150px;
  resize: vertical;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.contact-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
  padding: 15px 40px;
  background-color: #1b1b2f;
  color: #ff0000;
  border: 2px solid #ff0000;
  border-radius: 8px;
  font-family: "Courier New", monospace;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.contact-button::before {
  content: "📧 ";
  font-size: 20px;
}

.contact-button::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s ease;
}

.contact-button:hover::after {
  left: 100%;
}
.contact-button:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-3px);
}
.contact-button:active {
  transform: translateY(0);
}

body.night .contact-form {
  background: rgba(11, 19, 43, 0.95);
}
body.night .contact-form input,
body.night .contact-form textarea {
  background: rgba(27, 39, 65, 0.8);
  border-color: rgba(255, 165, 0, 0.3);
}
body.night .contact-button {
  background-color: #0b132b;
  border-color: #ffa500;
  color: #ffa500;
  animation: none;
}
body.night .contact-button:hover {
  background-color: #ffa500;
  color: #0b132b;
  animation: none;
}

/* ═══════════════ 17 · GITHUB (calendrier d'activité) ═══════════════ */
.github-card {
  max-width: 1000px;
  margin: 40px auto;
  flex: none;
  min-height: auto;
  width: 100%;
}

.github-container {
  padding: 40px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(20, 20, 35, 0.7);
  border-radius: 0 0 15px 15px;
  overflow: hidden;
}

.github-container img {
  width: 100%;
  height: auto;
  display: block;
  filter: saturate(1.5) brightness(1.1);
  transition: transform 0.3s ease;
}

body.night .github-container {
  background: rgba(11, 19, 43, 0.9);
}

/* ═══════════════ 18 · CALAMÉO (guide UPV) ═══════════════ */
.calameo-wrapper {
  background: #1b1b2f;
  border-radius: 15px;
  max-width: 540px;
  margin: 20px auto;
  position: relative;
  font-family: "Fira Code", monospace;
  overflow: hidden;
  border: 3px solid;
}

.calameo-wrapper .code-header {
  padding: 10px 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.calameo-wrapper .file-name {
  margin-top: 0;
}
.calameo-body {
  padding: 16px;
}

.calameo-frame-container {
  position: relative;
  display: block;
  width: 100%;
}

.calameo-corner {
  position: absolute;
  width: 16px;
  height: 16px;
  z-index: 2;
}
.calameo-corner.top-left {
  top: -2px;
  left: -2px;
  border-top: 2px solid #00ffff;
  border-left: 2px solid #00ffff;
}
.calameo-corner.top-right {
  top: -2px;
  right: -2px;
  border-top: 2px solid #00ffff;
  border-right: 2px solid #00ffff;
}
.calameo-corner.bottom-left {
  bottom: -2px;
  left: -2px;
  border-bottom: 2px solid #ff00ff;
  border-left: 2px solid #ff00ff;
}
.calameo-corner.bottom-right {
  bottom: -2px;
  right: -2px;
  border-bottom: 2px solid #ff00ff;
  border-right: 2px solid #ff00ff;
}

.calameo-frame-container iframe {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 480 / 300;
  border-radius: 8px;
}

/* ═══════════════ 18b · PEARLTREES (veille) ═══════════════ */
.pearltrees-frame-container {
  max-width: 1044px;
  margin: 0 auto;
}

.pearltrees-frame-container iframe {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1044 / 783;
  border: 0;
  margin: 0 auto;
}

.calameo-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
}

.calameo-link {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #82cfff;
  text-decoration: none;
  font-size: 12px;
  transition: color 0.3s ease;
}
.calameo-link:hover {
  color: #00ffff;
  text-shadow: 0 0 8px rgba(0, 255, 255, 0.6);
}

.calameo-badge {
  font-size: 11px;
  color: #ff00ff;
  background: rgba(255, 0, 255, 0.1);
  border: 1px solid rgba(255, 0, 255, 0.3);
  padding: 3px 10px;
  border-radius: 20px;
}

body.night .calameo-wrapper {
  background: #0b132b;
}

/* ═══════════════ 19 · GRAPHIQUE DES LANGAGES ═══════════════ */
.lang-chart-card {
  min-height: unset;
  max-width: 820px;
  margin-top: 24px;
}

.chart-comment {
  font-family: "Fira Code", monospace;
  font-size: 13px;
  color: #6272a4;
  margin: 0 0 18px;
}

.chart-canvas {
  width: 100%;
  height: 360px;
}

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-top: 18px;
  font-family: "Fira Code", monospace;
  font-size: 13px;
}

.chart-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  transform: translateX(-8px);
  animation: chartLegendIn 0.4s ease forwards;
}

.chart-legend-dot {
  width: 11px;
  height: 11px;
  border-radius: 3px;
  flex-shrink: 0;
  box-shadow: 0 0 6px currentColor;
}
.chart-legend-name {
  color: #82cfff;
}
.chart-legend-pct {
  color: #cdcf34;
  margin-left: 4px;
}
.chart-legend-count {
  color: #6272a4;
  margin-left: 2px;
  font-size: 11px;
}

/* ═══════════════ 20 · ANIMATIONS D'APPARITION ═══════════════ */
.animate-child {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.6s ease-out,
    transform 0.6s ease-out;
}
.animate-child.show {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  section,
  .animate-child {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ═══════════════ 21 · RESPONSIVE (992 / 768 / 480 px) ═══════════════ */
@media (max-width: 992px) {
  .section-title {
    font-size: 50px !important;
  }
  .section-title2 {
    font-size: 45px;
  }
  .terminal-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (max-width: 768px) {
  body.home-stack section {
    position: relative;
    min-height: 100vh;
    padding: 40px 15px;
  }
  section:first-of-type,
  #accueil {
    padding-top: 200px !important;
  }

  /* Titres */
  .section-title {
    font-size: 35px !important;
    line-height: 1.2;
  }
  .section-title2 {
    font-size: 32px;
  }
  .section-title3 {
    font-size: 28px;
    margin: 30px 0;
  }
  .bts-intro {
    font-size: 18px !important;
    padding: 0 10px;
  }

  /* Cartes langages */
  .container {
    width: 100%;
    flex-direction: column;
    align-items: center;
    left: 0;
    gap: 20px;
  }
  .card:not(:first-child) {
    margin-left: 0;
  }
  .card {
    animation: universal-rgb 4s linear infinite;
    width: 280px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
  }
  .card:hover ~ .card {
    animation: universal-rgb 4s linear infinite;
    left: 0;
  }

  /* Fiches code */
  .bts-options {
    flex-direction: column;
    align-items: center;
  }
  .code-card {
    animation: universal-rgb 4s linear infinite;
    flex: 0 0 100%;
    width: 100%;
    min-height: auto;
  }
  .code-card.single {
    flex: 0 0 100%;
  }

  /* Grilles */
  .terminal-grid {
    grid-template-columns: 1fr;
  }

  .terminal-card-large {
    min-width: 100%;
    max-width: 100%;
  }

  /* Veille */
  .veille-card {
    min-width: 100%;
    padding: 20px;
  }
  .veille-card .number {
    font-size: 36px;
  }

  /* Boutons */
  .terminal-button {
    animation: universal-rgb 4s linear infinite;
    padding: 12px 20px;
    font-size: 16px;
  }
  .terminal-prompt {
    font-size: 18px;
  }

  /* Contact */
  .contact-form {
    padding: 25px;
    margin: 20px 10px;
  }
  .contact-form input,
  .contact-form textarea {
    font-size: 14px;
  }
  .contact-button {
    width: 100%;
    padding: 12px 20px;
    font-size: 16px;
  }

  /* HUD */
  .bts-hud-header {
    gap: 8px;
  }
  .hud-title {
    font-size: 11px;
  }
  .bts-hud-body {
    padding: 18px 16px;
  }
  .bts-hud-description {
    font-size: 13px;
  }
  .bts-stats {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  /* Graphique */
  .chart-canvas {
    height: 260px !important;
  }

  /* Github */
  .github-container {
    padding: 15px 10px;
  }

  /* Nav */
  .nav-list {
    width: calc(100vw - 30px);
    right: 15px;
  }
  .nav-item {
    padding: 8px 12px;
  }
  .nav-icon {
    width: 40px;
    height: 40px;
    margin-left: 12px;
  }
  .nav-text {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .section-title {
    font-size: 28px !important;
  }
  .terminal-grid {
    grid-template-columns: 1fr;
  }
}

@keyframes float-up {
  0% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
  100% {
    transform: translateY(-80px) scale(0.6);
    opacity: 0;
  }
}

/* ═══════════════ 22 · PARTICULES (survol des cartes) ═══════════════ */
.particles-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  border-radius: inherit;
  z-index: 10;
}

.particle {
  position: absolute;
  bottom: 10px;
  font-family: "Fira Code", monospace;
  font-size: 13px;
  color: #00ffff;
  text-shadow:
    0 0 6px #00ffff,
    0 0 12px #00ffff;
  animation: float-up 2s ease-out forwards;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}

/* Couleurs variées pour les particules */
.particle:nth-child(3n) {
  color: #ff00ff;
  text-shadow:
    0 0 6px #ff00ff,
    0 0 12px #ff00ff;
}
.particle:nth-child(3n + 1) {
  color: #ffff00;
  text-shadow:
    0 0 6px #ffff00,
    0 0 12px #ffff00;
}
.particle:nth-child(3n + 2) {
  color: #00ffff;
  text-shadow:
    0 0 6px #00ffff,
    0 0 12px #00ffff;
}

/* ═══════════════ 23 · THÈME JOUR (surcharges body.day) ═══════════════ */
body.day {
  --day-orange: linear-gradient(135deg, #ff6a00, #ff9e2c);
  --day-cyan: linear-gradient(135deg, #009fc2, #35d1ea);
  --day-violet: linear-gradient(135deg, #7b2ff7, #b25dff);
  background: linear-gradient(135deg, #fdfdff, #eceef5);
  color: #1b1b2f;
}

body.day #accueil {
  background: linear-gradient(135deg, #ff7a18, #ffb03a) !important;
}
body.day #langages {
  background: var(--day-cyan) !important;
}
body.day #competences {
  background: var(--day-violet) !important;
}
body.day #missions-centre {
  background: var(--day-orange) !important;
}
body.day #missions-entreprise {
  background: var(--day-cyan) !important;
}
body.day #veille {
  background: var(--day-violet) !important;
}
body.day #cyber {
  background: var(--day-orange) !important;
}
body.day #projet {
  background: var(--day-cyan) !important;
}
body.day #CV {
  background: var(--day-violet) !important;
}

/* Pages secondaires (écosystème, mentions légales) : elles n'ont pas les
   sections colorées de l'accueil, donc le fond du body est visible.
   On y reprend le bleu ciel du site plutôt que le blanc cassé. */
body.day:not(.home-stack) {
  background: var(--day-cyan);
  background-attachment: fixed;
}

body.day.home-stack section {
  border-top-color: rgba(255, 255, 255, 0.55) !important;
}

body.day .section-title2,
body.day .section-title3 {
  color: #ffffff !important;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}
body.day .section-title2::after {
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.9),
    rgba(255, 255, 255, 0.9),
    transparent
  );
}
body.day .section-title4 {
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
}
body.day .section-title4::before {
  color: #ffffff;
}
body.day .bts-intro {
  color: #ffffff !important;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
}
body.day .section-title {
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.35));
}

@keyframes cc-gradient-flow {
  to {
    background-position: 200% center;
  }
}

/* ═══════════════ 24 · HEADER — fenêtre IDE ═══════════════ */
.site-header {
  background: #0d1117;
  font-family: "Fira Code", monospace;
  /* Compense la hauteur de la barre d'onglets, sortie du flux (position: fixed) */
  padding-top: 46px;
}

.site-header .sh-tabbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1002;
  display: flex;
  align-items: center;
  gap: 14px;
  height: 46px;
  padding: 0 18px;
  background: #161b22;
  border-bottom: 1px solid #1e2a38;
}
.site-header .sh-lights {
  display: flex;
  gap: 8px;
}
.site-header .sh-lights span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.site-header .l-red {
  background: #ff5f56;
}
.site-header .l-yellow {
  background: #ffbd2e;
}
.site-header .l-green {
  background: #27c93f;
}

/* Onglet actif "header.py" */
.site-header .sh-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  padding: 0 16px;
  background: #0d1117;
  border-top: 2px solid #ffa500;
  font-size: 13px;
  color: #f0f0f0;
}
.site-header .sh-snake {
  flex-shrink: 0;
}

.site-header .sh-spacer {
  flex: 1;
}

/* Boutons chrome : hamburger + toggle jour/nuit */
.site-header .sh-icon-btn {
  width: 34px;
  height: 34px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  background: none;
  border: none;
  border-radius: 7px;
  color: #82cfff;
  cursor: pointer;
  text-decoration: none; /* .sh-home est une ancre */
  transition: background 0.2s ease;
}
.site-header .sh-icon-btn:hover {
  background: rgba(255, 255, 255, 0.06);
}
.site-header .sh-icon-btn .sh-bar {
  width: 16px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

/* Bascule lune / soleil (icône selon le thème) */
.site-header .sh-theme .icon-sun {
  display: none;
}
body.day .site-header .sh-theme .icon-moon {
  display: none;
}
body.day .site-header .sh-theme .icon-sun {
  display: block;
  color: #ffd166;
}

/* Zone identité */
.site-header .sh-hero {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 34px 32px;
}
.site-header .sh-logo {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(130, 207, 255, 0.4);
  border-radius: 10px;
  background: rgba(130, 207, 255, 0.06);
}
.site-header .sh-logo img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.site-header .sh-identity {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}
.site-header .sh-decl {
  font-size: 12px;
  color: #00ff88;
  margin-bottom: 4px;
} /* def dev(): */
.site-header .sh-title {
  font-weight: 700;
  font-size: 44px;
  line-height: 1;
  background: linear-gradient(90deg, #00e5ff, #ff00ff, #ffa500);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: cc-gradient-flow 3s linear infinite;
}
.site-header .sh-subtitle {
  font-size: 15px;
  color: #82cfff;
  opacity: 0.85;
  margin-top: 6px;
}

/* Réseaux sociaux */
.site-header .sh-socials {
  display: flex;
  gap: 10px;
}
.site-header .sh-socials a {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #161b22;
  border: 1px solid #1e2a38;
  border-radius: 7px;
  color: #82cfff;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  transition:
    border-color 0.25s ease,
    color 0.25s ease,
    transform 0.25s ease;
}
.site-header .sh-socials a:hover {
  border-color: #00e5ff;
  color: #fff;
  transform: translateY(-3px);
}
.site-header .sh-socials svg {
  width: 17px;
  height: 17px;
}

/* ═══════════════ 25 · FOOTER — barre de statut ═══════════════ */
.site-footer {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 40px;
  padding: 0 18px;
  background: #ffa500;
  color: #1b1b2f;
  font-family: "Fira Code", monospace;
  font-size: 13px;
  font-weight: 600;

  position: relative;
  z-index: 100;
}
.site-footer .sf-branch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.site-footer .sf-spacer {
  flex: 1;
}
.site-footer .sf-sep {
  opacity: 0.4;
}
.site-footer .sf-link {
  color: #1b1b2f;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.site-footer .sf-link:hover {
  text-decoration: underline;
}
.site-footer .sf-top {
  font-weight: 700;
}
.site-footer svg {
  width: 13px;
  height: 13px;
}

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .site-header .sh-hero {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 26px 20px;
  }
  .site-header .sh-title {
    font-size: 34px;
  }
  .site-footer {
    height: auto;
    flex-wrap: wrap;
    gap: 12px 16px;
    padding: 12px 16px;
  }
  .site-footer .sf-spacer {
    flex-basis: 100%;
    height: 0;
  }
}
