/*****************************************************************************************************/
/* PAGE
/*****************************************************************************************************/

:root {
  --bar-height: 56px;
  --gap: 10px;
}

html, body {
    height:100%;
    margin:0;
    font-family: Inter, Roboto, Arial, sans-serif;
    background:#fafafa;
    color:#111;
}
    
body {
  font-family: sans-serif;
  background: #f9f9f9;
  margin: 0;
  padding-top: 80px; /* pour laisser place à la barre fixe */
}

h1 {
  text-align: center;
  margin-top: 10px;
}

h2 {
  text-align: left;
  margin-left: 20px;
  margin-bottom: 0;
}


/*****************************************************************************************************/
/* TOPBAR
/*****************************************************************************************************/

.categories-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: #fff;
  padding: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  border-bottom: 1px solid #ccc;
  z-index: 1000;
}

.categories-bar button {
  padding: 5px 10px;
  border: 1px solid #ccc;
  background: #f0f0f0;
  border-radius: 6px;
  cursor: pointer;
}

.categories-bar button:hover {
  background: #ddd;
}

.categories-bar input[type="text"] {
  margin-left: auto;
  padding: 6px 10px;
  border-radius: 8px;
  //border: none;
  //font-size: 16px;
  font-size: 12px;
  //background: #2a2a2a;
  //color: #fff;
  //width: 250px;
  font-style: italic;
  
  width: 40%;
  max-width: 200px;
  padding: 8px;
  border-radius: 6px;
  border: 1px solid #ccc;
}
.category-bar input::placeholder {
  color: #ccc;
  font-size: 12px;
}


.search-container {
  text-align: center;
  margin: 20px;
}

/*#searchInput {
  width: 80%;
  max-width: 400px;
  padding: 8px;
  font-size: 16px;
  border-radius: 6px;
  border: 1px solid #ccc;
}*/


/*****************************************************************************************************/
/* EMOJI GRID
/*****************************************************************************************************/

.emoji-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
  grid-template-columns: repeat(auto-fill, minmax(56px, 1fr));
  gap: 10px;
  margin: 20px;
}

.emoji-box {
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: white;
  
  /*border: 1px solid #ddd;
  border-radius: 8px;*/
  border: 1px solid #e6e6e6;
  border-radius: 10px;
  
  font-size: 26px;
  transition: transform .12s ease, background .12s ease;
  //transition: background 0.2s, transform 0.1s;
  user-select: none;
  
  //padding: 10px;
  //text-align: center;
}
.emoji-box:hover {
  background: #f0f0f0;
  transform: scale(1.05);
  //background:#f7f7f7;
  //transform: translateY(-2px);
}
.emoji-box.copied {
    background: #dff6dd !important;
    border-color: #b8e6b0;
}

section.category.hidden { display: none; }


/*****************************************************************************************************/
/* RESPONSIVE MOBILE
/*****************************************************************************************************/

/* petit style mobile */
@media (max-width:480px){
  :root { --gap: 8px; }
  .categories-bar button { padding:6px 8px; font-size:13px; }
  .emoji-grid { grid-template-columns: repeat(auto-fill, minmax(48px, 1fr)); }
  .emoji-box { height:48px; font-size:22px; border-radius:8px; }
}