/* ====== Layout général ====== */
body {
  font-family: "Lato", Arial, sans-serif;
  margin: 0;
  padding: 0;
  background: #23272f;
  color: #fff;
  min-height: 100vh;
  overflow-x: hidden;
}

header {
  display: flex;
  background: #333;
  color: #fff;
  padding: 1.2rem 0;
  text-align: center;
  font-size: 2rem;
  letter-spacing: 2px;
  font-weight: bold;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.mytop-title {
  flex: 1;
  text-align: center;
  margin-left: 20px;
}

.mytop-header-right {
  position: absolute;
  right: 20px;
  top: 20px;
}

footer {
  background: #333;
  color: #fff;
  padding: 0.7rem 0;
  text-align: center;
  font-size: 1rem;
  margin-top: 2rem;
}

.page-content {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 80vh;
  width: 100vw;
}

.main {
  width: 100%;
  max-width: 900px;
  padding: 2rem 3vw;
  display: flex;
  flex-direction: column;
}

/* ====== Box list & Box ====== */
.box-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
}

.box {
  display: flex;
  align-items: stretch;
  flex-direction: row;
  background: #222;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.13);
  padding: 1rem;
  position: relative;
  transition: box-shadow 0.2s, background 0.2s;
  height: 100px;
  width: 100%;
}
.box:hover {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.22);
  background: #282828;
}

.img-choix {
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  margin-right: 1.5rem;
  align-self: center;
  background: #444;
}

/* ====== Edit Button ====== */
.Edit-Btn {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  background: #007acc;
  color: #fff;
  border: none;
  border-radius: 5px;
  padding: 0.35em 1em;
  font-size: 1em;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: background 0.2s, box-shadow 0.2s;
}
.Edit-Btn:hover {
  background: #005fa3;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
}

/* ====== Box content ====== */
.box-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  flex: 1 1 auto;
}
.box-content h4 {
  margin: 0 0 0.3em 0;
  font-size: 1.2rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 1px;
}
.box-content p {
  margin: 0;
  color: #bbb;
  font-size: 1rem;
  line-height: 1.4;
}

/* ====== Responsive ====== */
@media (max-width: 900px) {
  .main {
    padding: 1rem 1vw;
  }
  .box {
    padding: 1rem 0.7rem;
  }
}

@media (max-width: 600px) {
  .main {
    padding: 0.5rem 0.5vw;
  }
  .box {
    flex-direction: column;
    align-items: flex-start;
    min-height: 150px;
    padding: 1rem 0.5rem;
  }
  .img-choix {
    width: 100%;
    height: 120px;
    margin: 0 0 1rem 0;
    border-radius: 10px;
  }
  .Edit-Btn {
    top: 10px;
    right: 10px;
    font-size: 0.95em;
    padding: 0.3em 0.7em;
  }
}

/* ====== Add Button ====== */
.add-btn {
  display: inline-block;
  background: #28a745;
  color: #fff;
  border: none;
  border-radius: 5px;
  padding: 0.35em 1em;
  font-size: 1em;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: background 0.2s, box-shadow 0.2s;
}
.add-btn:hover {
  background: #218838;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
}
