@font-face {
  font-family: "Telegraf";
  src: url("./fonts/telegrafregular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
}
@font-face {
    font-family: "Telegraf";
    src: url("./fonts/telegrafultralight.otf") format("opentype");
    font-weight: 200;
    font-style: normal;
}
@font-face {
  font-family: "Telegraf";
  src: url("./fonts/telegrafultrabold.otf") format("opentype");
  font-weight: 800;
  font-style: normal;
}
@font-face {
    font-family: "MagicRetro";
    src: url("./fonts/magicretro.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}



* {
  box-sizing: border-box;
}



html, body {
  margin: 0;
  padding: 0;
}

body {
  background: #111111;
  color: white;
  min-height: 100vh;
  font-family: "Telegraf", sans-serif;
  cursor: default;
}

.custom-cursor {
  position: fixed;
  left: 0;
  top: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  mix-blend-mode: difference;
  pointer-events: none;
  transform: translate(-50%, -50%); scale: (1.5);
  z-index: 9999;
  opacity: 1;
}

.custom-cursor.hover {
  transform: translate(-50%, -50%) scale(1.5);
}

.topbar{
  position: absolute;
  top: 0;
  left: 0;
  right: 0;

  height: 32px;
  background: #ff00e5;

  overflow: hidden;
  z-index: 50;
}

.topbar::after{
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;

  background: linear-gradient(
    to right,
    #ff00e5 0%,
    rgba(255,0,229,0) 12%,
    rgba(255,0,229,0) 88%,
    #ff00e5 100%
  );
}

.topbar-text{
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    
    font-size: 20px;
    color: #ffe600;
    font-weight: 400;
    line-height: 1;

    z-index: 2;
    background: linear-gradient(
  to right,
  rgba(255,0,229,0) 0%,
  #ff00e5 5%,
  #ff00e5 95%,
  rgba(255,0,229,0) 100%
);
    padding: 6px 10px;
}

.center-title {
  position: absolute;
  top: 50px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 10;
  text-transform: uppercase;
}

.hello {
  font-size: 33px;
  color: #ffe600;
  font-weight: 800;
  line-height: 1;
}

.stranger {
  margin-top: 0px;
  font-size: 20px;
  color: #ff00e5;
  font-weight: 800;
  line-height: 1;
}

.cta:hover {
  background: #ffe600;
  color: #ff00e5;
  cursor: pointer;
}


.cta {
  position: fixed;
  top: 50px;
  right: 40px;
  height: 25px;
  padding: 0 18px;
  background: #ff00e5;
  color: #ffe600;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-family: "Telegraf", sans-serif;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  z-index: 60;
}

.cta-left {
  position: fixed;
  top: 50px;      /* même hauteur que CONTACT */
  left: 40px;     /* collé à gauche */
  right: auto;
  z-index: 60;
}

.hero-rectangle{
  --px: 0px;
  --py: 0px;
  --s: 1;
  position: relative;
  overflow: hidden;

  width: min(1200px, 92vw);
  height: 600px;

  border: 2px solid #FF00E5;
  border-radius: 15px;

  background: rgba(255, 0, 229, 0.2);
  box-shadow: 0 0 60px rgba(255, 0, 229, 0.15);

  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2;

  transform: translate3d(var(--px), var(--py), 0) scale(var(--s));
  transform-origin: center;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
  will-change: transform;
}

.hero-rectangle:hover{
  --s: 1.02; /* augmente si tu veux plus fort (1.03 etc) */
  transform: scale(1.01);
  box-shadow: 0 0 120px rgba(255, 0, 229, 0.55);
  filter: brightness(1.12) contrast(1.05);
}

.hero{
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: visible;
  

  padding-top: 0px; /* ← descend tout le bloc */
}

.scroll-band {
  height: 115px;
  margin-top: -57px;
  background: #ff00e5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scroll-band-text {
  font-family: "Telegraf", sans-serif;
  font-weight: 400;
  font-size: 80px;
  color: #ffe600;
  text-align: center;
  line-height: 1;
  white-space: nowrap;
}

.projects {
  padding: 1px 1px 1px;
  background: #111111;
}

.grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  position: relative;
  --cols: 3;
  --gap: 1px;

  /* valeurs souris par défaut */
  --mx: 50%;
  --my: 50%;
  --energy-angle: 135deg;
}


@keyframes gridFlowMove{
  from { background-position: 0 0, 0 0; }
  to   { background-position: 0 0, 200% 200%; }
}

.card {
  position: relative;
  overflow: hidden;
  height: 338px;
  border: 0.2px solid #ff00e5;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffe600;
  font-weight: 800;
  font-size: 26px;
  background: rgba(255, 0, 229, 0.08);
  z-index: 1;
}


.card video{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 1100px) {
  .scroll-band-text {
    font-size: 56px;
  }
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .scroll-band-text {
    font-size: 34px;
    white-space: normal;
    padding: 0 16px;
  }
  .grid {
    grid-template-columns: 1fr;
  }
}
.portfolio-title .o{
  
  -webkit-text-stroke: 2px #ffffff;
  
}
.portfolio-title{
  font-family: "Telegraf", sans-serif;
  font-weight: 800;
  font-size: 195px;
  line-height: 1;
  margin: 0;
  -webkit-text-stroke: 1.5px #fff;
  background: linear-gradient(to bottom, #FFE600 0%, #FFE600 50%, #FF00E5 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  text-align: center;
  animation: strokePulse 1s ease-in-out infinite;

  position: relative;
}

.portfolio-title::after{
content: "Portfolio";

position: absolute;
left: 0;
top: 0;

width: 100%;
height: 100%;

color: transparent;
-webkit-text-stroke: 2px white;

opacity: 0.9;

/* animation */
stroke-dasharray: 1200;
stroke-dashoffset: 1200;

animation: drawStroke 4s ease forwards;
}

.o-special{
  /* annule le gradient/clip du parent */
  background: none !important;
  -webkit-background-clip: initial !important;
  background-clip: initial !important;
  -webkit-text-fill-color: #fff !important;
  color: #fff !important;

  /* garde le contour blanc (2px) */
  -webkit-text-stroke: 2px #fff;

  /* halo blanc flou 20px */
  text-shadow: 0 0 10px rgba(255,255,255,1);
}

.o-white{
  color: #fff;
  -webkit-text-stroke: 2px #fff;  /* garde le contour blanc sur le O aussi */
  position: relative;
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
}
.o-white::after{
  content: "o";
  position: absolute;
  left: 0;
  top: 0;
  z-index: -1;
  color: #fff;
  filter: blur(20px);
  opacity: 1;
}
.o-special { 
  position: relative;
  display: inline-block;
}

.year{
    font-family: "MagicRetro", !important;
    position: absolute;

    top: 20px;     /* monte le 2026 au-dessus du O */
    left: 50%;
    transform: translateX(-50%);

    font-size: 35px;
    letter-spacing: 4px;
    color: #FFE600;

    text-shadow: 0 0 8px rgba(255,255,255,0.6); /* halo léger */
}
/* container des halos */
/* container des halos */
.glows{
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

/* wrap (position de base) */
.glow-wrap{
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: transform 0.35s ease;
}

/* halo (ellipse) */
.glow{
  position: absolute;
  width: 650px;
  height: 650px;
  border-radius: 50%;
  background: #ff00e5;      /* on force une couleur directe */
  top: 50%;
  left: 50%;
  will-change: transform;
    transform: translate(-50%, -50%) translateZ(0);
  opacity: 1;               /* pas de transparence */
  filter: blur(80px);             /* pas de blur */
  z-index: 9999;            /* au-dessus de tout */
  animation: float 18s ease-in-out infinite;
}

/* couleurs */
.glow-pink .glow{ background: #FF00E5; }
.glow-yellow .glow{ background: #FFE600; animation-delay: -12s; }

/* écartement horizontal (sans transform !) */
.glow-pink{ margin-left: -300px; }
.glow-yellow{ margin-left: 300px; }

/* mouvement lent circulaire */
@keyframes float {

    0%   { transform: translate(-50%, -50%) translate(0px, 0px); }

    25%  { transform: translate(-50%, -50%) translate(40px, -60px); }

    50%  { transform: translate(-50%, -50%) translate(-30px, 40px); }

    75%  { transform: translate(-50%, -50%) translate(50px, 30px); }

    100% { transform: translate(-50%, -50%) translate(0px, 0px); }
}
@keyframes strokePulse {

  0% {
    -webkit-text-stroke: 1.5px rgba(255,255,255,0.9);
  }

  50% {
    -webkit-text-stroke: 2.5px rgba(255,255,255,1);
  }

  100% {
    -webkit-text-stroke: 1.5px rgba(255,255,255,0.9);
  }

}

@keyframes drawStroke{
to{
stroke-dashoffset: 0;
}
}
/* SVG au-dessus du H1, même zone que le texte */
.hero-rectangle{
  position: relative;
}

.portfolio-stroke{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;
  overflow: visible;
}

/* Le tracé animé */
/* Le tracé animé */
.portfolio-stroke-text{
  font-family: "Telegraf", sans-serif;
  font-weight: 800;
  font-size: 195px;

  fill: none;
  stroke: #fff;
  stroke-width: 3;

  stroke-linecap: round;
  stroke-linejoin: round;

  /* dash élégant */
  stroke-dasharray: 220 60;
  stroke-dashoffset: 0;

  /* mouvement organique */
  animation: dashMove 5s linear infinite;

  
  
}

@keyframes dashMove {
  to   { stroke-dashoffset: -280; }
}

.portfolio-title{
  position: relative;
  display: inline-block;
}

.bottom-cta{
  position: fixed;
  opacity: 1;
  transition: opacity .2s ease;
  will-change: opacity;
  left: 50%;
  bottom: 80px;
  transform: translateX(-50%);
  z-index: 9999;

  display: inline-flex;
  align-items: center;
  gap: 12px;

  padding: 16px 28px;
  border-radius: 999px;

  background: var(--cta-bg, #ff2bd6);         /* rose */
  box-shadow: 0 10px 40px rgba(255, 43, 214, .35);
  text-decoration: none;

  transition: background .25s ease, transform .25s ease, box-shadow .25s ease;
}

.bottom-cta.is-hidden{
  opacity: 0;
  pointer-events: none;
}

/* Texte "centré + opacité qui baisse vers les bords" */
.bottom-cta__label{
  font-weight: 800;
  letter-spacing: .2px;

  color: transparent;

  background: linear-gradient(
    to right,
    rgba(255, 230, 0, .45) 0%,
    rgba(255, 230, 0, 1) 20%,
    rgba(255, 230, 0, 1) 80%,
    rgba(255, 230, 0, .45) 100%
  );

  -webkit-background-clip: text;
  background-clip: text;

  /* animation douce */
  background-size: 140% 100%;
  animation: ctaTextDrift 3.2s ease-in-out infinite;
}

@keyframes ctaTextDrift{
  0%, 100% { background-position: 50% 0; }
  50%      { background-position: 60% 0; }
}

/* flèche animée */
.bottom-cta__arrow{
  font-weight: 900;
  color: rgba(255, 230, 0, 1);
  animation: ctaArrow 1.1s ease-in-out infinite;
}
@keyframes ctaArrow{
  0%, 100% { transform: translateY(0); opacity: 1; }
  50%      { transform: translateY(4px); opacity: .75; }
}

/* HOVER = inversion couleurs (fond jaune / texte rose) */
.bottom-cta:hover{
  background: #ffe600; /* jaune */
  transform: translateX(-50%);
  box-shadow: 0 14px 46px rgba(255, 230, 0, .35);
}

.bottom-cta:hover .bottom-cta__label{
  color: #ff2bd6;
  background-clip: none;
}

.bottom-cta:hover .bottom-cta__arrow{
  color: rgba(255, 43, 214, 1);
}

/* accessibilité clavier */
.bottom-cta:focus-visible{
  outline: 2px solid rgba(255,255,255,.7);
  outline-offset: 6px;
}

.bg-video{
    position: fixed;
    top: 0;
    left: 0;

    width: 100vw;
    height: 100vh;
    object-fit: cover;

    z-index: -1; /* derrière tout */

    opacity: 0.25; /* ajuste entre 0.15 et 0.35 */
    filter: blur(6px) brightness(0.55) contrast(1.1);
    transform: scale(1.05);
}

.frame-stroke{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background: none;
}

/* le rect du svg */
.frame-path{
  fill: none;              /* ✅ enlève le rectangle noir */
  stroke: #ff00ff;         /* ou ta couleur */
  stroke-width: 0px;       /* ajuste */
}

/* Étape 4 : rendre les smileys visibles (contour) */
.emoji-strip{
  display: flex;
  align-items: center;
  gap: 10px;
}

.smile{
  width: 22px;
  height: 22px;
  stroke: rgba(255,255,255,.85);
  stroke-width: 1.6;
  fill: none;
  opacity: .9;
}

/* bande qui masque le surplus */
.topbar-inner{
  position: relative;
  height: 100%;
  overflow: hidden;
}

/* strip qui défile */
.emoji-strip{
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  gap: 40px;
  width: max-content;
  animation: scrollSmileys 45s linear infinite;
}

@keyframes scrollSmileys{
  from { transform: translateY(-50%) translateX(-50%); }
  to   { transform: translateY(-50%) translateX(0%); }
}

/* ===== RUNNER (sprite) ===== */

/* Le hero doit couper ce qui dépasse */
.hero-rectangle{
  overflow: hidden; /* si tu l'as déjà, ne le duplique pas */
}

/* le conteneur qui TRAVERSE */
.runner{
  position: absolute;
  left: -200px;
  bottom: -70px;         /* ajuste la hauteur dans le bloc */
  width: 235px;           /* juste un “point” qui se déplace */
  height: 236px;
  z-index: 9999;
  pointer-events: none;

  opacity: 0;           /* caché par défaut */
}

/* il apparaît seulement au hover du hero */
.hero-rectangle:hover .runner{
  opacity: 1;
  animation: runAcross 3s linear infinite;
}

/* le sprite qui ANIME LES FRAMES */
.runner-sprite {
  width: 235px;          /* largeur exacte d'une frame */
  height: 236px;         /* hauteur du sprite */

  background-image: url("images/run-sprite.png");
  background-repeat: no-repeat;
  background-size: 4000px 236px;

  transform-origin: left bottom;

  animation: runFrames 0.6s steps(17) infinite;
  image-rendering: auto; -ms-interpolation-mode: bicubic;
}

/* 17 frames => on fait défiler le background */
@keyframes runFrames{
  from { background-position: 0 0; }
  to   { background-position: -4000px 0; }
}

/* traverse TOUT le hero (pas "à moitié") */
@keyframes runAcross{
  from { transform: translateX(-200px); }
  to   { transform: translateX(calc(100vw + 200px)); }
}

.video-modal{
  position: fixed;
  inset: 0;
  z-index: 99999;

  display: flex;
  align-items: center;
  justify-content: center;

  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}

.video-modal.is-open{
  opacity: 1;
  pointer-events: auto;
}

.video-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.video-modal__panel {
  position: relative;
  

  width: min(1400px, 96vw);
  max-height: 88vh;

  border-radius: 16px;
  overflow: hidden;
  background: rgba(15,15,15,.85);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 40px 100px rgba(0,0,0,.6);
}

.video-modal__content {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  max-height: 88vh;
}

.video-modal__content video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(0,0,0,.35);
  color: #fff;
  cursor: pointer;
}

body.modal-open { overflow: hidden; }

.mute-btn{
  position: fixed;
  bottom: 80px;
  left: 40px;
  z-index: 9999;

  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);

  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.15);

  color: white;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;

  cursor: pointer;
  transition: all 0.3s ease;
}

.mute-btn:hover{
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.contact{
  height: 50vh;
  background: transparent;
  padding: 60px 0;
}

.contact-inner{
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}