* {
  box-sizing: border-box;
}

body {
  background: #000;
  color: #fff;
  font-family: Arial, sans-serif;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3 {
  margin-bottom: 15px;
}

p, ul {
  margin: 10px 0;
  line-height: 1.5;
}

a {
  background: #04e14d;
  color: black;
  font-weight: bold;
  padding: 8px 12px;
  text-decoration: none;
  display: inline-block;
  border: none;
  cursor: pointer;
  border-radius: 0.25rem;
}

a:hover {
  background: #04e14d;
}

pre {
  background: #111;
  padding: 10px;
  border: 1px solid #374151;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  white-space: pre-wrap;
  overflow-x: auto;
}

.text-muted {
  color: #9ca3af;
}

.text-highlight {
  color: #04e14d;
}

.gray {
  color: #6b7280;
}

.section {
  margin-bottom: 30px;
}

.warning {
  color: #f87171;
  font-weight: bold;
}

.note {
  font-style: italic;
  color: #ccc;
}

/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #1a1a1a;
  padding: 0.5rem 1rem;
  width: 100%;
}

/* Logo */
header .logo {
  font-size: 1.25rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

header .logo a {
  color: white;
  background: transparent;
  padding: 0;
  font-size: inherit;
}

header .logo a span {
  background: #04e14d;
  color: #000;
  padding: 0.15rem 0.5rem;
  border-radius: 0.25rem;
}

/* Navigation */
header .nav {
  background-color: transparent;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: nowrap;
  position: relative; /* Important pour dropdown */
}

header .nav a {
  font-size: 0.85rem;
  background: #04e14d;
  color: #000;
  padding: 0.4rem 0.75rem;
  border-radius: 0.25rem;
  white-space: nowrap;
}

header .nav a:hover {
  background: #04e14d;
}

header .nav .search {
  padding: 0;
  margin-left: 0.5rem;
  display: flex;
  align-items: center;
}

header .nav .search input {
  width: 150px;
  padding: 0.4rem 0.75rem;
  background: #111;
  color: #fff;
  border: 1px solid #374151;
  border-radius: 0.25rem;
  font-size: 0.85rem;
}

header .nav .search input:focus {
  outline: none;
  border-color: #04e14d;
}

/* Dropdown Styles */
.dropdown {
  position: relative;
  display: inline-block;
  font-size: 0.85rem;
}

.dropdown-toggle {
  background: #04e14d;
  color: black;
  padding: 8px 12px;
  border-radius: 0.25rem;
  cursor: pointer;
  font-weight: bold;
  user-select: none;
  white-space: nowrap;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #111;
  border: 1px solid #374151;
  border-radius: 0.25rem;
  min-width: 180px;
  flex-direction: column;
  z-index: 1000;
}

.dropdown-content a {
  padding: 8px 12px;
  color: #04e14d;
  text-decoration: none;
  display: block;
}

.dropdown-content a:hover {
  background-color: #222;
}

.dropdown:hover .dropdown-content {
  display: flex;
}

/* Form Container */
.form-container {
  max-width: 400px;
  margin: 2rem auto;
  padding: 1rem;
  background: #111111;
  border: 1px solid #374151;
  border-radius: 0.375rem;
}

.form-container input,
.form-container textarea {
  width: 100%;
  padding: 10px;
  margin: 10px 0;
  background: #222;
  color: #fff;
  border: 1px solid #374151;
  border-radius: 0.25rem;
}

.form-container button {
  background: #04e14d;
  color: black;
  font-weight: bold;
  padding: 10px;
  border: none;
  cursor: pointer;
  border-radius: 0.25rem;
  margin: 5px;
}

.form-container button:hover {
  background: #04e14d;
}

.form-container button.register {
  background: #6b7280;
}

.form-container button.register:hover {
  background: #9ca3af;
}

.form-container p {
  color: #f87171;
  text-align: center;
}

.form-container label {
  font-size: 0.9rem;
  display: block;
  margin-top: 0.75rem;
  margin-bottom: 0.25rem;
}

/* Product Detail */
.detail-container {
  max-width: 768px;
  margin: 1rem auto;
  padding: 1rem;
  background: #111111;
  border: 1px solid #374151;
  border-radius: 0.375rem;
}

.detail-container img {
  max-width: 100%;
  border-radius: 0.375rem;
}

.detail-container .back-link {
  margin-top: 1rem;
}

/* Product Grid */
.category-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
}

.category-section h2 {
  font-size: 1.5rem;
  color: #04e14d;
  margin-bottom: 1rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.product-card {
  background: #111111;
  border: 1px solid #374151;
  border-radius: 0.375rem;
  padding: 1rem;
  text-align: center;
  text-decoration: none;
  color: #fff;
}

.product-card img {
  max-width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 0.375rem;
}

.product-card h3 {
  font-size: 1.1rem;
  margin: 0.5rem 0;
}

.product-card p {
  font-size: 0.9rem;
  color: #ccc;
}

.product-card .text-highlight {
  font-size: 0.9rem;
}

.no-products {
  font-style: italic;
  color: #6b7280;
  text-align: center;
}

/* Main Title Section */
.title-section {
  text-align: center;
  padding: 1.5rem 1rem 2rem;
}

.title-section h1 {
  font-size: 1.5rem;
  font-weight: bold;
  color: #04e14d;
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.title-section p {
  margin-top: 0.5rem;
  color: #9ca3af;
  font-size: 0.875rem;
}

/* Main content */
main {
  padding: 1rem;
  max-width: 768px;
  margin-left: auto;
  margin-right: auto;
  width: 90%;
  flex-grow: 1;
}

section.pgp-key {
  background-color: #111111;
  border: 1px solid #374151;
  border-radius: 0.375rem;
  padding: 1rem;
}

section.pgp-key h2 {
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  margin: 0 0 0.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

section.pgp-key h2::before {
  content: "🛡";
  margin-right: 0.3rem;
}

pre.pgp-block {
  background-color: #2d2f3d;
  border-left: 4px solid #04e14d;
  padding: 0.75rem;
  font-size: 0.75rem;
  white-space: pre-wrap;
  border-radius: 0.375rem;
  margin: 0;
  overflow-x: auto;
}

p.update-date {
  font-size: 0.75rem;
  color: #04e14d;
  margin-top: 0.5rem;
}

/* Title */
.title {
  text-align: center;
  padding: 2rem 1rem 1rem;
}

.title h1 {
  font-size: 1.8rem;
  color: #04e14d;
  margin-bottom: 0.5rem;
}

.title p {
  color: #aaa;
  font-size: 0.9rem;
}

/* Mirror List */
.mirror-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 0 1rem 2rem;
}

.mirror-item {
  background-color: #1a1a1a;
  border: 1px solid #555;
  width: 100%;
  max-width: 800px;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
}

.mirror-link {
  color: #04e14d;
  word-break: break-all;
}

.open-link {
  color: black;
  text-decoration: none;
  font-weight: bold;
}

.open-link:hover {
  text-decoration: underline;
}

/* Form Messages */
.message {
  text-align: center;
  font-size: 0.9rem;
  margin-top: 1rem;
}

.error {
  color: #f87171;
}

.success {
  color: #4ade80;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.4rem 0.75rem;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: bold;
  text-decoration: none;
  color: #000;
}

.btn-green {
  background-color: #04e14d;
  color: #000;
}

.btn-red {
  background-color: #f87171;
  color: #000;
}

.btn-orange {
  background-color: #f97316;
  color: #000;
}

.btn:hover {
  opacity: 0.85;
}

/* Footer */
footer {
  margin-top: auto;
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.75rem;
  color: #666;
}

/* Responsive */
@media (max-width: 768px) {
  header .nav {
    gap: 0.3rem;
  }

  header .nav a {
    padding: 0.3rem 0.5rem;
    font-size: 0.8rem;
  }

  header .nav .search input {
    width: 100px;
    padding: 0.3rem 0.5rem;
    font-size: 0.8rem;
  }
}

/* Bubble buttons */
.bubble-container {
  display: flex;
  gap: 10px;
}

.bubble-btn {
  width: 65px;
  height: 65px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 50%;
  border: 2px solid #fff;
  cursor: pointer;
  transition: transform 0.1s ease;
}

.bubble-btn:hover {
  transform: scale(1.1);
}
/* Style pour les liens hors nav */
.outside-link {
  display: inline-block;
  margin-right: 5px;       /* petit espacement entre eux */
  padding: 6px 10px;
  background-color: #22c55e; /* couleur différente, ici vert vif */
  color: black;
  text-decoration: none;
  border-radius: 3px;
  font-weight: bold;
  float: left;            /* pour coller à gauche */
  transition: background-color 0.3s ease;
}

.outside-link:last-child {
  margin-right: 0;        /* pas de marge après le dernier lien */
}

.outside-link:hover {
  background-color: white; /* effet au hover */
}

/* S'assurer que le nav n'interfère pas avec eux */
.nav {
  clear: both;  /* pour que le nav commence après ces liens */
  /* ou si nav doit être en ligne, gérer flexbox à part */
}
  /* Container global */
  .topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 2rem 0;
  }

  /* Bulles à gauche */
  .bubble-container {
    display: flex;
    gap: 15px;        /* espace entre bulles */
    padding-left: 18px; /* décale du bord gauche pour tooltip visible */
  }

  .bubble-btn {
    position: relative;
    width: 50px;
    height: 50px;
    background-size: cover;
    background-position: center;
    border-radius: 50%;
    display: block;
    cursor: pointer;
  }

  /* Tooltip caché */
  .bubble-btn .tooltip-text {
    visibility: hidden;
    width: max-content;
    background-color: #04e14ddd;
    color: #000;
    text-align: center;
    border-radius: 5px;
    padding: 4px 7px;
    font-size: 0.8rem;
    font-weight: bold;
    position: absolute;
    bottom: 120%; /* au-dessus de la bulle */
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 10;
  }

  /* Flèche du tooltip */
  .bubble-btn .tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%; /* bas du tooltip */
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #04e14ddd transparent transparent transparent;
  }

  /* Affiche tooltip au hover */
  .bubble-btn:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
  }

  /* Conteneur images à droite */
  .ads-container {
    display: flex;
    gap: 20px;
    padding-right: 25px; /* décale du bord droit si besoin */
    align-items: center;
  }
 .nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #111;
    padding: 10px 20px;
  }

  /* Regroupe les deux dropdowns */
  .dropdown-group {
    display: flex;
    gap: 0; /* pas d’espace entre les dropdowns */
  }

  .dropdown {
    position: relative;
    background: #222;
    border: 1px solid #333;
    border-left: none;
  }

  .dropdown:first-child {
    border-left: 1px solid #333;
  }

  .dropdown-toggle {
    display: block;
    padding: 8px 14px;
    color: black;
    cursor: pointer;
    white-space: nowrap;
  }

  .dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #222;
    border: 1px solid #333;
    min-width: 160px;
    z-index: 999;
  }

  .dropdown:hover .dropdown-content {
    display: block;
  }

  .dropdown-content a {
    display: block;
    padding: 8px 12px;
    color: white;
    text-decoration: none;
  }

  .dropdown-content a:hover {
    background: white;
    color: black;
  }