body {
  padding: 0;
  margin: 0;
  overflow-x: auto;
  overflow-y: auto;
}

#container {
  background-color: #000000;
  background-image: linear-gradient(#ffffff .1em, transparent .1em),
                    linear-gradient(90deg, #ffffff .1em, transparent .1em);
  background-size: 4em 4em;
  height: 10000vh;
  overflow: visible;
  position: relative;
  border-radius: inherit; 
}
img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit; /* coins arrondis comme la carte */
  pointer-events: none; /* pour permettre drag/resizer */
}
#card {
  width: 100px;
  height: 100px;
  background-color: #AFDA9F;
  border-radius: 5px;
  cursor: grab;
  position: absolute;
  top: 100px;
  left: 100px;
  touch-action: none;
  user-select: none;
  padding: 6px;
  box-sizing: border-box;
  color: #46da21;
  font-family: sans-serif;

}
#card:active { cursor: grabbing; }

#addCard {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 32px;
  border: none;
  background: #ff0000;
  color: white;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  transition: transform 0.2s;
  z-index: 1000;
}
#addCard:hover {
  transform: scale(1.1);
}

#newCard {

width : 100px;
height : 100px;
border: none;
padding : 6px;
position : absolute;
color : #151415;
font-family : sans-serif;
display :block;
margin: 0;
padding: 0;
align-items : center;
justify-content : center;
text-align: center;
overflow : hidden;
}
#card, #newCard, .draggable {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 5px; /* coins arrondis */
}

/* Coin pour redimensionner */
.resizer {
  width: 20px;
  height: 20px;
  background: rgb(255, 0, 0);
  position: absolute;
  right: 0;
  bottom: 0;
  cursor: se-resize;
  
  
}
.draggable a {
  color: #0000ee;
  text-decoration: underline;
  word-break: break-all;
}
/* Images à l'intérieur des cartes */




#menuWrapper {
  position: fixed;
  bottom: 80px;
  right: 20px;
  z-index: 999;
}

#menu {
  display: flex;
  flex-direction: column;
  background: #46da21;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(22, 148, 3, 0.666);
  overflow: hidden;
  animation: fadeIn 0.15s ease-out;
}

#menu.hidden {
  display: none;
}

#menu button {
  border: none;
  background: transparent;
  color: white;
  padding: 10px 14px;
  text-align: left;
  cursor: pointer;
  font-size: 14px;
  font-family: sans-serif;
  transition: background 0.2s;
}
#menu button:hover {
  background: #3e4048;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.dropzone {
  outline: 2px dashed #007bff;
}
