@charset "UTF-8";
/* Reset et base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Fira Code", "Monaco", "Consolas", monospace;
}

/* Container principal */
.main-container {
  min-height: 100vh;
  background: linear-gradient(135deg, #0c0c0c 0%, #1a1a1a 100%);
  color: #e0e0e0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
}

/* Pattern de fond */
.background-pattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.05) 1px, transparent 0);
  background-size: 20px 20px;
  pointer-events: none;
}

/* Header */
.header {
  position: absolute;
  top: 30px;
  left: 30px;
  font-size: 14px;
  color: #666;
  font-weight: 500;
}

.header a {
  text-decoration: none;
  color: #666;
}

.header a:hover {
  color: #00ccff;
}

.header a.active {
  color: #00ccff;
}

.terminal-prompt {
  color: #00ff88;
}

/* Raccourcis */
.shortcuts {
  position: absolute;
  top: 30px;
  right: 30px;
  font-size: 12px;
  color: #555;
  text-align: right;
}

.shortcuts kbd {
  background: #333;
  padding: 2px 6px;
  border-radius: 3px;
  margin-right: 5px;
  font-family: inherit;
  font-size: 11px;
}

/* Contenu principal */
.main-content {
  z-index: 1;
  text-align: center;
  width: 100%;
  max-width: 600px;
}

.title {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 50px;
  background: linear-gradient(45deg, #00ff88, #00ccff);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  text-shadow: 0 0 30px rgba(0, 255, 136, 0.3);
}

/* Container de recherche */
.search-container {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 40px;
  background: rgba(255, 255, 255, 0.05);
  padding: 20px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.url-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #e0e0e0;
  font-size: 18px;
  font-family: inherit;
  padding: 12px 16px;
}

.url-input::placeholder {
  color: #666;
}

/* Bouton de lookup */
.lookup-button {
  background: linear-gradient(45deg, #00ff88, #00ccff);
  border: none;
  border-radius: 8px;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  opacity: 1;
  transform: scale(1);
}

.lookup-button:hover:not(.disabled):not(.loading) {
  transform: scale(1.05);
  box-shadow: 0 4px 20px rgba(0, 255, 136, 0.4);
}

.lookup-button.disabled {
  background: #333;
  opacity: 0.5;
  cursor: not-allowed;
}

.lookup-button.loading {
  background: #333;
  opacity: 0.5;
  cursor: not-allowed;
  transform: scale(0.95);
}

/* Spinner */
.spinner {
  width: 24px;
  height: 24px;
  border: 2px solid #666;
  border-top: 2px solid #00ff88;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
/* Affichage des erreurs */
.error-container {
  background: rgba(255, 0, 0, 0.1);
  border: 1px solid rgba(255, 0, 0, 0.3);
  border-radius: 8px;
  padding: 20px;
  color: #ff6b6b;
  font-size: 16px;
  animation: fadeIn 0.3s ease;
}

/* Affichage des résultats */
.result-container {
  background: rgba(0, 255, 136, 0.1);
  border: 1px solid rgba(0, 255, 136, 0.3);
  border-radius: 12px;
  padding: 25px;
  text-align: left;
  font-size: 16px;
  animation: fadeIn 0.3s ease;
}

.result-row {
  margin-bottom: 15px;
}

.result-label {
  color: #888;
}

.result-hostname {
  margin-left: 10px;
  color: #00ccff;
}

.result-ip {
  margin-left: 10px;
  color: #00ff88;
  font-weight: bold;
}

.result-message {
  margin-left: 10px;
  color: #e0e0e0;
}

/* Footer */
.footer {
  position: absolute;
  bottom: 20px;
  font-size: 12px;
  color: #555;
  text-align: center;
}

/* Animation fade in */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* Responsive */
/* Tablet et petits écrans (iPad, etc.) */
@media (max-width: 1024px) {
  .main-container {
    padding: 15px;
  }
  .title {
    font-size: 30px;
    margin-bottom: 40px;
  }
  .main-content {
    max-width: 500px;
  }
  .search-container {
    padding: 18px;
  }
  .header {
    top: 20px;
    left: 20px;
    font-size: 13px;
  }
  .shortcuts {
    top: 20px;
    right: 20px;
    font-size: 11px;
  }
}
/* Tablettes en mode portrait */
@media (max-width: 768px) {
  .main-container {
    padding: 15px;
    min-height: 100vh;
    justify-content: flex-start;
    padding-top: 60px;
  }
  .header {
    position: relative;
    top: auto;
    left: auto;
    margin-bottom: 10px;
    text-align: center;
    width: 100%;
  }
  .shortcuts {
    position: relative;
    top: auto;
    right: auto;
    margin-bottom: 20px;
    text-align: center;
    width: 100%;
  }
  .shortcuts kbd {
    margin: 2px;
    font-size: 10px;
    padding: 3px 8px;
  }
  .title {
    font-size: 28px;
    margin-bottom: 30px;
  }
  .main-content {
    max-width: 100%;
    width: 100%;
  }
  .search-container {
    padding: 18px;
    gap: 15px;
  }
  .url-input {
    font-size: 17px;
    padding: 12px 18px;
  }
  .lookup-button {
    width: 48px;
    height: 48px;
  }
  .result-container,
  .error-container {
    font-size: 15px;
    padding: 20px;
  }
  .footer {
    position: relative;
    bottom: auto;
    margin-top: 30px;
    padding: 0 10px;
  }
}
/* Smartphones */
@media (max-width: 480px) {
  .main-container {
    padding: 10px;
    padding-top: 40px;
  }
  .header {
    font-size: 12px;
    margin-bottom: 8px;
  }
  .shortcuts {
    display: none; /* Masquer les raccourcis sur très petit écran */
  }
  .title {
    font-size: 24px;
    margin-bottom: 25px;
    line-height: 1.2;
  }
  .search-container {
    flex-direction: column;
    gap: 18px;
    padding: 20px;
    margin-bottom: 25px;
  }
  .url-input {
    width: 100%;
    text-align: center;
    font-size: 16px;
    padding: 14px 18px;
    border-radius: 8px;
  }
  .lookup-button {
    width: 100%;
    height: 50px;
    border-radius: 8px;
  }
  .result-container,
  .error-container {
    font-size: 14px;
    padding: 18px;
    margin-bottom: 20px;
  }
  .result-row {
    margin-bottom: 12px;
    line-height: 1.5;
  }
  .result-label {
    display: block;
    margin-bottom: 6px;
  }
  .result-hostname,
  .result-ip,
  .result-message {
    display: block;
    margin-left: 0;
    margin-top: 2px;
  }
  .footer {
    font-size: 11px;
    line-height: 1.3;
    margin-top: 20px;
  }
}
/* Très petits écrans (moins de 360px) */
@media (max-width: 360px) {
  .main-container {
    padding: 8px;
    padding-top: 30px;
  }
  .title {
    font-size: 22px;
    margin-bottom: 20px;
  }
  .search-container {
    padding: 16px;
    gap: 15px;
  }
  .url-input {
    font-size: 15px;
    padding: 12px 15px;
  }
  .lookup-button {
    height: 45px;
  }
  .result-container,
  .error-container {
    padding: 15px;
    font-size: 13px;
  }
}
/* Grands écrans - optimisations */
@media (min-width: 1200px) {
  .main-content {
    max-width: 750px;
  }
  .title {
    font-size: 42px;
    margin-bottom: 60px;
  }
  .search-container {
    padding: 25px;
    gap: 20px;
  }
  .url-input {
    font-size: 20px;
    padding: 16px 20px;
  }
  .lookup-button {
    width: 56px;
    height: 56px;
  }
  .result-container,
  .error-container {
    font-size: 18px;
    padding: 30px;
  }
  .result-row {
    margin-bottom: 18px;
  }
}
