@font-face {
  font-family: "Doto";
  src: url("font/Doto-VariableFont.woff2") format("woff2");
}

@font-face {
  font-family: "RedI";
  src: url("font/RedHatMono-Italic-VariableFont_wght.woff2") format("woff2");
}

@font-face {
  font-family: "Red";
  src: url("font/RedHatMono-VariableFont_wght.woff2") format("woff2"),
       url("font/RedHatMono-VariableFont_wght.woff") format("woff");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

html.is-inverted {
  filter: invert(1);
}


/* =============================
   CV
============================= */

.cv{
    position: fixed;
  bottom: 52px;
  left: 2.6vw;
  font-family: 'RedI';
  font-size: 15px;
  z-index: 2000;
}

.cv a{
  text-decoration: none;
    font-size: 15px;
  color: black;
}

.cv a:hover{
  color: blue;
}

/* =============================
   INSTA
============================= */

.insta{
    position: fixed;
  bottom: 52px;
  right: 2.6vw;
  font-family: 'RedI';
  font-size: 15px;
  z-index: 2000;
}

.insta a{
  text-decoration: none;
    font-size: 15px;
  color: black;
}

.insta a:hover{
  color: blue;
}

/* =============================
   SWITCH STYLE IPHONE - CENTRÉ
============================= */
.switch {
  position: fixed;
  bottom: 47px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  width: 50px;
  height: 26px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  background-color: transparent;
  border: 1px solid black;
  border-radius: 34px;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  transition: 0.4s;
}

.slider::before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 1px;
  bottom: 1px;
  background-color: black;
  border: 1px solid black;
  border-radius: 50%;
  transition: 0.4s;
}

input:checked + .slider::before {
  transform: translateX(24px);
}



/* =============================
   MODE NUIT / INVERSION
============================= */
/* Inversion uniquement pour le wrapper */

/* Curseur reste normal */
.cursor,
.cursor-trail-item {
    filter: invert(0);
}

html {
  cursor: none;
}

body {
  margin: 0;
  background: white;
}

/* =============================
   CURSEUR1
============================= */

/* Ligne verticale */
.curseur-vertical {
  position: fixed;
  top: 0;
  left: 0;
  width: 1px;        /* épaisseur */
  height: 100vh;
  background: black;
  pointer-events: none;
  z-index: 9999;
}

/* Ligne horizontale */
.curseur-horizontal {
  position: fixed;
  top: 0;
  left: 0;
  height: 1px;       /* épaisseur */
  width: 100vw;
  background: black;
  pointer-events: none;
  z-index: 9999;
}

/* Titre */
.titre {
  position: fixed;
  top: 1.6vw;
  left: 2.5vw;
  font-family: 'RedI';
  font-size: 21px;
  z-index: 2000;
}

.titre a {
  text-decoration: none;
  color: black;
}

.titre a:hover {
  color: blue;
}

/* Menu */
.menu {
  position: fixed;
  top: 1.9vw;
  right: 2.6vw;
  display: flex;
  z-index: 2000;
}

.menu-item {
  font-family: 'RedI';
  font-size: 15px;
  padding: 0 0.5vw;
  text-decoration: none;
  color: black;
}

.menu-item:hover {
  color: blue;
}

/* Fenêtres */
.window {
  max-width: 100vw;
  max-height: 100vh;
  position: absolute;
  background: #c0c0c0;
  font-family: monospace;
  z-index: 1000;
  border-top: 2px solid #dfdfdf;
  border-left: 2px solid #dfdfdf;
  border-right: 2px solid #404040;
  border-bottom: 2px solid #404040;
  box-shadow: inset 1px 1px 0 #fff, inset -1px -1px 0 #808080;
}

.window-header {
  height: 30px;
  padding: 0 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(to bottom, #0000aa, #000080);
  color: white;
  cursor: move;
  user-select: none;
}

.window-title {
  font-family: 'Doto';
  font-size: 12px;
}

.window-controls {
  display: flex;
  gap: 2px;
}

.window-btn {
  width: 18px;
  height: 16px;
  background: #c0c0c0;
  color: black;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-top: 2px solid #dfdfdf;
  border-left: 2px solid #dfdfdf;
  border-right: 2px solid #404040;
  border-bottom: 2px solid #404040;
}

.window-btn:active {
  border-top: 2px solid #808080;
  border-left: 2px solid #808080;
  border-right: 2px solid #dfdfdf;
  border-bottom: 2px solid #dfdfdf;
}

.window-btn.close:hover {
  background: red;
  color: white;
}

/* Contenu */
.window-content {
    display: flex;
  justify-content: center;
  align-items: center;
    padding: 12px;              /* marge intérieure */
  background: #c0c0c0;    
}

.image-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 260px;   /* taille normale */
  max-height: 40vh;   /* taille normale */
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  overflow: hidden;   /* empêche l’image de dépasser */
}

.image-wrapper img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain; /* force l’image à rester dans le wrapper */
  display: block;
}



/* =============================
   MOBILE
============================= */
@media (max-width: 768px) {

  .curseur-vertical,
  .curseur-horizontal {
    display: none;
  }

  .titre {
    top: 4.2vw;
    left: 4.5vw;
    font-family: 'Red';
    font-size: 8vw;
    z-index: 2000;
  }
  .titre a { text-decoration: none; color: black; }
  .titre a:hover { color: blue; }

  .menu {
    top: 18vw;
    left: 3vw;
    display: flex;
    z-index: 2000;
  }
  .menu-item {
    font-family: 'Red';
    font-size: 4.4vw;
    padding: 0 2vw;
    text-decoration: none;
    color: black;
  }
  .menu-item:hover { color: blue; }

  .cv, .insta, .switch {
    display: none;
  }

  .window-content {
    padding: 0 !important;
    margin: 0 !important;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    height: 100%; /* <== prend toute la hauteur de .window */
    flex: unset;  /* <== enlève flex: 1 qui ajoutait du vide */
  }

  .image-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    margin: 0;
  }

  .image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
  }


  .window {
  display: flex;
  flex-direction: column;
    padding: 0;      /* supprime padding inutile */
  box-sizing: border-box;
    overflow: visible;
}


}
