body {
  margin: 0;
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #0e0e0e;
  color: #f1f1f1;
  line-height: 1.7;
}

header {
  background-color: #1c1c1c;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
  position: sticky;
  top: 0;
  z-index: 100;
}

header h1 {
  margin: 0;
  font-size: 1.7rem;
  color: #9527F5;
}

nav a {
  color: #f1f1f1;
  text-decoration: none;
  margin-left: 1.2rem;
  font-weight: 600;
  transition: all 0.2s ease;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  background-color: transparent;
  border: 1px solid transparent;
}

nav a:hover {
  background-color: rgba(77, 166, 255, 0.1);
  color: #9527F5;
  border-color: #9527F5;
}

main {
  padding: 2.5rem;
  max-width: 900px;
  margin: auto;
}

h2, h3 {
  color: #9527F5;
  margin-top: 2rem;
  border-bottom: 1px solid #444;
  padding-bottom: 0.3em;
}

ul {
  padding-left: 1.5rem;
  list-style-type: disc;
}

footer {
  text-align: center;
  padding: 2rem;
  color: #aaa;
  font-size: 0.9rem;
}

a {
  color: #9527F5;
  transition: color 0.2s;
}

a:hover {
  text-decoration: underline;
  color: #7fbfff;
}

.hero {
  text-align: center;
  padding: 5rem 2rem 4rem;
  background: linear-gradient(to right, #141414, #1e1e1e);
}

.hero h2 {
  font-size: 3rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.hero p {
  font-size: 1.25rem;
  max-width: 600px;
  margin: 0 auto 2rem auto;
  color: #ccc;
}

.hero a.button {
  display: inline-block;
  background-color: #9527F5;
  color: #0e0e0e;
  padding: 0.9rem 1.8rem;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 8px 24px rgba(77, 166, 255, 0.25);
}

.hero a.button:hover {
  background-color: #358de0;
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(77, 166, 255, 0.4);
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  padding: 4rem 2rem;
}

.card {
  background-color: #1c1c1c;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 0 16px rgba(0, 0, 0, 0.4);
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 24px rgba(77, 166, 255, 0.4);
}

.card h3 {
  color: #9527F5;
  margin-bottom: 0.7rem;
  font-size: 1.3rem;
}

.card p {
  font-size: 1rem;
  color: #ccc;
  line-height: 1.5;
}

main {
  max-width: 1000px;
  margin: auto;
  padding: 2rem;
}
.tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.tab {
  padding: 0.5rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  background: #f0f0f0;
  transition: 0.2s;
  color: #222;
}
.tab.active {
  background: #9527F5;
  color: white;
}
.search-bar {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}
.search-bar input {
  width: 100%;
  max-width: 400px;
  padding: 0.5rem;
  border-radius: 6px;
  border: 1px solid #ccc;
  color: #222;
  background: #f8f8f8;
}
.commands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}


.syntax {
  background: #f8f8f8;
  color: #444;
  padding: 0.5rem;
  border-radius: 6px;
  font-family: monospace;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.copy-btn {
  cursor: pointer;
  border: none;
  background: #9527F5;
  color: white;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  font-size: 0.8rem;
}
.examples {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: #444;
}
.examples code {
  display: block;
  background: #f0f0f0;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  margin-top: 0.2rem;
}

.syntax span {
  color: #444 !important;
}

.command-images img {
  max-width: 100%;
  border-radius: 8px;
  margin-top: 0.5rem;
}

/* Modern card look */
.command-card {
  background: #181c24;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(77,166,255,0.10), 0 1.5px 6px rgba(0,0,0,0.10);
  color: #f1f1f1;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  transition: box-shadow 0.2s, transform 0.2s;
  border: 1px solid #232a36;
}
.command-card:hover {
  box-shadow: 0 8px 32px rgba(77,166,255,0.18), 0 3px 12px rgba(0,0,0,0.13);
  transform: translateY(-3px) scale(1.01);
}

/* Modern input */
.search-bar input {
  background: #232a36;
  color: #f1f1f1;
  border: 1.5px solid #9527F5;
  border-radius: 8px;
  padding: 0.7rem 1.2rem;
  font-size: 1.05rem;
  transition: border 0.2s;
}
.search-bar input:focus {
  outline: none;
  border-color: #7fbfff;
}

/* Modern tab look */
.tab {
  background: #232a36;
  color: #7fbfff;
  border-radius: 8px;
  padding: 0.5rem 1.2rem;
  margin: 0 0.2rem;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: background 0.2s, color 0.2s, border 0.2s;
}
.tab.active, .tab:hover {
  background: #9527F5;
  color: #181c24;
  border-color: #9527F5;
}

.command-images {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.7rem;
  flex-wrap: wrap;
}
.command-images img {
  max-width: 70px;
  max-height: 70px;
  border-radius: 8px;
  cursor: pointer;
  transition: filter 0.2s, transform 0.2s;
  box-shadow: 0 2px 8px rgba(77,166,255,0.08);
}
.command-images img:hover {
  filter: brightness(1.08) saturate(1.2);
  transform: scale(1.08);
}

/* Aperçu modal */
.img-modal {
  position: fixed;
  z-index: 1000;
  inset: 0;
  background: rgba(20,24,32,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.img-modal-content {
  position: relative;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.img-modal-img {
  max-width: 80vw;
  max-height: 80vh;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(77,166,255,0.18), 0 3px 12px rgba(0,0,0,0.13);
  background: #232a36;
}
.img-modal-btn {
  background: #232a36;
  color: #9527F5;
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  opacity: 0.8;
}
.img-modal-btn:disabled {
  opacity: 0.3;
  cursor: default;
}
.img-modal-close {
  position: absolute;
  top: -32px;
  right: -32px;
  background: #232a36;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0.8;
}
.img-modal-close:hover {
  background: #9527F5;
  color: #232a36;
}

.permissions {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #f0f0f0;
  color: #9527F5;
  font-size: 0.85rem;
  padding: 0.2rem 0.7rem;
  border-radius: 6px;
  cursor: help;
  border: 1px solid #9527F5;
  transition: background 0.2s;
}

.permissions-tooltip {
  visibility: hidden;
  opacity: 0;
  width: 220px;
  background: #232a36;
  color: #fff;
  text-align: left;
  border-radius: 8px;
  padding: 0.7em 1em;
  position: absolute;
  z-index: 10;
  top: 120%;
  right: 0;
  box-shadow: 0 4px 16px rgba(77,166,255,0.15);
  font-size: 0.95em;
  pointer-events: none;
  transition: opacity 0.2s;
}

.permissions:hover .permissions-tooltip {
  visibility: visible;
  opacity: 1;
}