body {
  margin: 0;
  padding: 0;
  background: #101010;
  color: #f0f0f0;
  font-family: 'Segoe UI', sans-serif;
}

.container {
  max-width: 1200px;
  margin: auto;
  padding: 1rem;
}

/* Header en colonne */
header {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px 0;
}

/* Ligne supérieure : logo centré, bouton à droite */
.header-top {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative; /* pour bouton en absolu */
}

/* Logo Youplugs centré horizontalement */
.header-top h1 {
  margin: 0;
  flex-grow: 1;
  text-align: center;
  pointer-events: none; /* pour que le bouton reste cliquable */
}

/* Bouton toggleSearch positionné à droite */
#toggleSearch {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  background: #4fc3f7;
  color: #101010;
  border: none;
  border-radius: 4px;
  padding: 0.3rem 0.6rem;
  cursor: pointer;
  transition: background-color 0.3s;
  margin: 0;
}

#toggleSearch:hover,
#toggleSearch:focus {
  background: #3aa4d9;
  box-shadow: 0 0 8px #4fc3f7;
}

/* Conteneur iframe sous le header */
.preview-container {
  width: 100%;
  height: 300px;
  margin-top: 10px;
}

#previewFrame {
  width: 100%;
  height: 100%;
  border: 2px solid #4fc3f7;
  border-radius: 4px;
  display: block;
}

/* Panel de recherche */
.search-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}

input,
button {
  padding: 0.5rem;
  font-size: 1rem;
  border-radius: 5px;
  border: 2px solid transparent;
}

input:focus {
  outline: none;
  border-color: #4fc3f7;
  background: #1a1a1a;
}

button {
  background: #4fc3f7;
  color: #101010;
  cursor: pointer;
  transition: 0.3s;
  border: none;
  border-radius: 5px;
}

button:hover,
button:focus {
  background: #3aa4d9;
  box-shadow: 0 0 8px #4fc3f7;
}

/* Divers styles */
.site-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: #1e1e1e;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

.site-logo {
  width: 32px;
  height: 32px;
  border-radius: 4px;
}

.home-links-bar {
  display: flex;
  gap: 0.5rem;
  padding: 0.5rem;
  background: #1e1e1e;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
  overflow-x: auto;
}

.menu-btn {
  background: #2a2a2a;
  color: #ccc;
  border: 1px solid #444;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  cursor: move;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.menu-btn:hover {
  background: #333;
  color: #4fc3f7;
  border-color: #4fc3f7;
}

.content-area {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.results-grid {
  flex: 1 1 400px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
  max-height: 400px;
  overflow-y: auto;
}

.result-card {
  background: #1e1e1e;
  padding: 1rem;
  border-radius: 8px;
  cursor: grab;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: box-shadow 0.3s;
}

.result-card:hover {
  box-shadow: 0 0 12px #4fc3f7;
}

.favicon {
  width: 16px;
  height: 16px;
}

.result-link {
  text-decoration: none;
  color: #4fc3f7;
}

.result-link:hover {
  text-decoration: underline;
}
.youplugs-btn-pluger {
  background-color: #4fc3f7;
  color: #101010;
  border: none;
  border-radius: 6px;
  padding: 0.6rem 1.2rem;
  font-weight: 600;
  font-family: 'Segoe UI', sans-serif;
  cursor: pointer;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 2px 5px rgba(79, 195, 247, 0.5);
}

.youplugs-btn-pluger:hover,
.youplugs-btn-pluger:focus {
  background-color: #3aa4d9;
  box-shadow: 0 0 10px #4fc3f7;
  outline: none;
}
