@font-face {
  font-family: 'Manifesto';
  src: url('typos/MANIFESTO.otf') format('opentype');
}

@font-face {
  font-family: 'IBMPlexMono';
  src: url('typos/IBMPlexMono-Regular.ttf') format('truetype');
  font-weight: normal;
}

@font-face {
  font-family: 'IBMPlexMono';
  src: url('typos/IBMPlexMono-Bold.ttf') format('truetype');
  font-weight: bold;
}

.content {
  scroll-behavior: smooth;
}

.sidebar .bug-link {
  position: static;
  bottom: 10px;
  margin-top:8em;
  text-align: center;
  font-size: 0.7em;
  color: #2b3a2b;
  text-decoration: underline;
  opacity: 1;
  transition: opacity 0.2s ease;

}
.sidebar .bug-link:hover {
  opacity: 0.5;
}



.bloc-info-clef {
  background-color: #89967c;
  padding: 2em;
  border-radius: 5px;
  max-width: 100%;
  font-family: 'IBMPlexMono', monospace;
  font-size: 0.75em;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.info-message {
  font-size: 1em !important;
  text-transform: uppercase;
  margin-top: 0.5em;
  display:inline;
  align-items: center;
}

.info-message .info-icon {
  display: inline-block;
  border-radius: 50%;
  background-color: #faffe9;

  color: #31352c;
  width: 1.2em;
  height: 1.2em;
  text-align: center;
  line-height: 1.2em;
  font-weight: bold;
  font-family: 'IBMPlexMono', monospace;
  margin-right: 0.4em;
  flex-shrink: 0;
}

body {
  margin: 0;
  font-family: 'IBMPlexMono', monospace;
  color: #faffe9;
  background-color: #31352c;
  display: flex;
  height: 100vh;
  overflow: hidden;
}

.bloc-contenu-clef {
  width: 100%;
  background-color: #faffea;
  color: #2b3a2b;
  padding: 60px 40px;
  box-sizing: border-box;
}

.folder-item-mac {
  background-color: #89967c;
  color: #2b3a2b;
  padding: 1.5em;
  border-radius: 10px;
  margin-top: 1em;
  font-family: 'IBMPlexMono', monospace;
}

.folder-item-mac p {
  font-size: 0.95em;
  font-weight:normal;
  margin-bottom: 1em;
  color: #2b3a2b;
}

.folder-button-mac {
  background-color: #2b3a2b;
  color: #faffe9;
  border: none;
  padding: 0.6em 1.2em;
  font-family: 'IBMPlexMono', monospace;
  font-size: 0.9em;
  border-radius: 5px;
  cursor: pointer;
}

.folder-button-mac:hover {
  background-color: #1f281f;
}
.avatar-link {
  position: fixed;
  top: 20px;
  right: 30px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: #faffe9;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  text-decoration: none;
  overflow: hidden;
}

.avatar-link img {
  width: 70%;
  height: 70%;
  object-fit: cover;
  border-radius: 50%;
  transition: opacity 0.2s ease;
  pointer-events: none;
  position: absolute;
}

.avatar-link img.hover {
  opacity: 0;
}

.avatar-link:hover img.default {
  opacity: 0;
}

.avatar-link:hover img.hover {
  opacity: 1;
}


.bloc-contenu-clef h1 {
  color: #2b3a2b;
}

.bloc-contenu-clef p {
  color: #2b3a2b;
  font-weight: bold;
}

.bloc-final-clef {
  width: 100%;
  background-color: #faffe9;
  color: #2b3a2b;
  padding: 60px 50px;
  margin-top: 5em;
  border-radius: 5px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  font-family: 'IBMPlexMono', monospace;
  box-sizing: border-box;
}

.bloc-final-clef h2 {
  font-size: 2em;
  margin-bottom: 1em;
  color: #2b3a2b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.bloc-final-clef p {
  max-width: 800px;
  font-size: 1em;
  line-height: 1.7;
  margin-bottom: 1.4em;
}

.signature-droite {
  text-align: right;
  font-style: bold;
  margin-top: 2em;
  color: #2b3a2b;
}

.sidebar {
  width: 320px;
  background-color: #89967c;
  padding: 30px 0px 0px 0px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* plus de space-between */
  gap: 10px; /* ajoute un espacement contrôlé entre les blocs */
  height: 100vh;
  position: fixed;
  left: 0;
  top: 0;
  box-sizing: border-box;
  overflow-y: auto;         /* ← permet le scroll */
  scrollbar-width: none;    /* ← cache la scrollbar (Firefox) */

}


.folder-details {
  margin-top: 2em;
  display: flex;
  flex-direction: column;
  gap: 1.8em;
}

.folder-item {
  background-color: #3b3f36;
  padding: 1em 1.5em;
  border-radius: 10px;
  box-shadow: 0 0 5px rgba(0,0,0,0.2);
}

.folder-item strong {
  font-size: 1.1em;
  color: #faffe9;
}

.folder-item p {
  margin: 0.5em 0 1em;
  font-size: 0.95em;
  color: #e0e4d8;
}

.folder-button {
  background-color: #89967c;
  color: #31352c;
  border: none;
  padding: 0.6em 1.2em;
  font-family: 'IBMPlexMono', monospace;
  font-size: 0.9em;
  border-radius: 5px;
  cursor: pointer;
}

.folder-button:hover {
  background-color: #a4b397;
}



.sidebar::-webkit-scrollbar {
  display: none;            /* ← cache la scrollbar (Chrome, Safari) */
}

.logo-top {
  width: 100%;
  display: block;
  margin: 0 auto 0px auto;

}

.slogan {
  font-size: 14px;
  text-transform: uppercase;
  font-weight: bold;
  color: #31352c;
  text-align: center;
  margin: 0px;
  padding: 5px 0;
  border-top: 2px solid #31352c;
  border-bottom: 2px solid #31352c;

}

.search {
  position: relative;
  border-bottom: 2px solid #31352c;
  margin-top: 0px;
  padding-bottom: 0px;
  margin-bottom: 2em;

}

#search-input::placeholder {
  color: #31352c;
  opacity: 1; /* pour forcer la couleur sur certains navigateurs */
}

.search input {
  width: 70%;
  padding: 8px 35px 8px 10px;
  background: transparent;
  border: none;
  color: #faffe9;
  font-family: 'IBMPlexMono';
  font-size: 0.8em;
  outline: none;

}

.search button {
  position: absolute;
  right: 0;
  top: 0;
  width: 35px;
  height: 100%;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.search button img {
  width: 16px;
  vertical-align: middle;
}

.menu ul {

  list-style: none;
  padding: 0;
  margin: 0px 2em;
  display: flex;
  flex-direction: column;
  gap: 1em; /* réduit l'espace entre les boutons */
}

.menu-toggle {
  background: #31352c;
  color: #faffe9;
  border: none;
  padding: 1.3em 8px;
  width: 100%;
  text-align: center;
  font-family: 'IBMPlexMono';
  font-size: 12px;
  cursor: pointer;
  border-radius: 40px;
}

.menu-toggle:hover {
  background-color: #4a4f44;
  transition: background-color 0.2s ease;
}

.menu-item.active .menu-toggle {
  background-color: #5d6558;
  color: #ffffff;
  font-weight: bold;
}
.submenu {
  max-height: 0;
  overflow: hidden;
  padding-left: 15px;
  font-size: 14px;
  transition: max-height 0.3s ease;
}

.menu-item.active .submenu {
  max-height: 500px; /* suffisamment grand pour contenir les items */
}

.submenu li:first-child {
  margin-top: 10px; /* augmente l'espace au-dessus du premier item */
}

.logo-bottom {
  width: 70px;
  align-self: center;
  margin-top: 40px;
}

.content {
  margin-left: 320px;
  padding: 40px 60px;
  height: 100vh;
  overflow-y: auto;
  background-color: #31352c;
  color: #faffe9;
  font-family: 'IBMPlexMono', monospace;
  box-sizing: border-box;

}



.pixelated-img {
  width: 100%;

  display: block;
  margin: 0 auto;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  image-rendering: -moz-crisp-edges;
  image-rendering: -o-pixelated;
  image-rendering: -webkit-optimize-contrast;
  opacity: 1;
}

.pixelated-img2 {
  width: 40%;

  margin: 0 auto;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  image-rendering: -moz-crisp-edges;
  image-rendering: -o-pixelated;
  image-rendering: -webkit-optimize-contrast;
  opacity: 1;
}

h1 {
  font-family: 'Manifesto';
  font-size: 5em;
  margin-bottom: 10px;
  letter-spacing: 0.05em; /* ← ajouté */
  font-weight: lighter;
}

h2 {
  font-size: 2em;
  margin-top: 30px;
  text-transform: uppercase;

  letter-spacing: 0.08em; /* ← ajouté */
}

hr {
  border: none;
  border-top: 1px solid #faffe9;
  margin: 5em 0; /* espace haut et bas */

}

p {
  line-height: 1.6;
  font-size: 15px;
  max-width: 800px;
}

.img-text-layout {
  display: flex;
  justify-content: space-between;
  align-items: center; /* ← centre verticalement le texte */
  gap: 40px;
  margin-bottom: 2em;
}

.img-text-layout img {
  width: 40%;
  flex-shrink: 0;
  order: 2; /* ← met l'image à droite */
}

.img-text-layout p {
  margin: 0;
  max-width: 60%;
}

.folder-list-terminal {
  background-color: #31352c;
  color: #faffe9;
  font-family: 'IBMPlexMono', monospace;
  padding: 20px 30px;
  margin-top: 40px;
  border: 1px solid #faffe9;
  border-radius: 4px;
}

.terminal-title {
  margin: 0 0 1em;
  font-weight: bold;
  font-size: 16px;
  letter-spacing: 0.05em;
}

.terminal-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.terminal-list li {
  display: flex;
  align-items: center;
  font-size: 15px;
  letter-spacing: 0.03em;
  margin: 6px 0;
  white-space: nowrap;
}

.terminal-list li span:first-child {
  padding-right: 10px;
}

.terminal-list .dots {
  flex-grow: 1;
  border-bottom: 3px dotted #faffe9;
  margin: 0 12px;
  height: 0.8em;
  opacity: 0.4;
}

.submenu a.submenu-link {
  text-decoration: underline;
  color: #ffffff;
  font-size: 14px;
  cursor: pointer;
  transition: color 0.2s ease;
  display: inline-block;
  padding: 2px 0;
}

.submenu a.submenu-link:hover {
  color: #31352c; /* vert foncé du site */
}



/* Responsive : pile sur petit écran */
@media (max-width: 768px) {
  .img-text-layout {
    flex-direction: column;
    align-items: center;
    text-align: left;
  }

  .img-text-layout img {
    width: 100%;
    order: 0;
  }

  .img-text-layout p {
    max-width: 100%;
  }
}
