body {
  font-family: 'Poppins', sans-serif;
  background-color: #f8fafc;
  margin: 0;
  display: grid;
  grid-template-columns: 20% 76%;
  gap: 4%;
  overflow-y: auto;
  height: 100vh;
  background-image: url(./bg.png);
  background-repeat: no-repeat;
  background-size: cover;
  color: white;
}

body > * {
  border: solid rgb(54,54,68) 1px;
  background-color: rgba(27,27,36,0.4);
  border-radius: 24px;
  backdrop-filter: blur(10px);
}

aside {
  width: calc(100% - 40px);
  color: white;
  padding: 40px;
  height: calc(100% - 180px);
  margin: 50px;
}

aside h2 {
  font-size: 1.5em;
  margin-bottom: 20px;
}

aside nav a {
  display: block;
  color: white;
  text-decoration: none;
  margin: 10px 0;
}

aside nav a:hover {
  color: rgb(56, 67, 255);
}

main {
  padding: 40px 80px;
  margin: 50px;
  width: calc(100% - 100px);
  height: calc(100% - 100px);
  box-sizing: border-box;
  overflow: hidden;
}

h1 {
  font-size: 2em;
  font-weight: 600;
  letter-spacing: -0.0rem;
}

label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
}

input,
select,
textarea,
button {
  font-family: 'Poppins', sans-serif;
}

input[type="text"],
input[type="number"],
select,
textarea {
  width: 100%;
  padding: 10px;
  border: solid rgb(137, 137, 146) 2px;
  background-color: transparent;
  color: white;
  border-radius: 10px;
  box-sizing: border-box;
}

textarea {
  resize: none;
}

textarea:focus{
  height: 100%;
}

#villeContainer label {
  display: inline-block;
  margin: 4px 8px 4px 0;
}

button {
  background: linear-gradient(rgb(255, 255, 255) 0%, rgb(224, 226, 243) 100%);
  color: #13132D;
  font-weight: 700;
  font-size: 1.2rem;
  border: none;
  justify-self: center;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  border: solid 4px rgba(255,255,255,0.6);
  box-sizing: border-box;
  transition: .3s;
}

button:hover{
  transform: scale(.98);
  transition: .3s;
}

#visuelsTags, #villesTags{
  margin-bottom: 5%;
  display: flex;
  font-size: 0.8rem
}

#visuelInput {
  margin-bottom: 5px;
}

#visuelsTags span, #villesTags span {
  background-color: rgb(56, 67, 255);
  color: white;
  padding: 5px 10px;
  border-radius: 10px;
  margin: 5px 5px 0 0;
  cursor: pointer;
  display: flex;
}

.grid {
  display: grid;
  grid-template-columns: 40% 55%;
  gap: 5%;
  width: 100%;
  height: 80%;
}

.col {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  width: 100%;
  overflow: hidden;
}

.col:first-child{
    overflow: scroll;
}

.col {
  overflow-y: auto; /* Scroll vertical si nécessaire */
  scrollbar-width: thin; /* Firefox : fin */
  scrollbar-color: #555 transparent; /* Firefox : thumb + piste */
}

/* Chrome / Edge / Safari */
.col::-webkit-scrollbar {
  width: 6px;
}

.col::-webkit-scrollbar-track {
  background: transparent;
}

.col::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #888, #555);
  border-radius: 10px;
}

.col::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #777, #444);
}


#output {
  height: 100%;
  border: solid rgb(137, 137, 146) 2px;
  border-radius: 5px;
  padding: 20px;
  overflow-y: scroll;
  font-size: .8rem;
}

#villeSelect {
  flex: 1;
}

#ajouterVille {
  padding: 6px 10px;
  border-radius: 4px;
  background-color: #1d4ed8;
  color: white;
  border: none;
  cursor: pointer;
  font-weight: 600;
  user-select: none;
  transition: background-color 0.2s ease;
}

#ajouterVille:hover {
  background-color: #2563eb;
}

select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: transparent;
  color: white;
  border: solid rgb(137, 137, 146) 2px;
  border-radius: 10px;
  padding: 10px;
  box-sizing: border-box;
  cursor: pointer;
}

select:focus {
  outline: none;
  border-color: rgb(56, 67, 255);
  background-color: #13132D;
}

input:focus{
  outline: none;
  border-color: rgb(56, 67, 255);
}

#output::-webkit-scrollbar {
  width: 5px;
}
#output::-webkit-scrollbar-track {
  border-radius: 5px;
  background-color: #13132D;
}

#output::-webkit-scrollbar-thumb {
  border-radius: 5px;
  background-color: #FFFFFF;
}

.copiable-ligne {
  cursor: pointer;
  padding: 5px 10px;
  transition: background-color 0.2s ease;
}

.copiable-ligne:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

/* Onglets */
.tab { display: none; }
.tab.active { display: block; }
.hidden { display:none; }

.card {
  border: 1px solid #34384a;
  border-radius: 16px;
  padding: 16px;
  background: rgba(27,27,36,.35);
  backdrop-filter: blur(6px);
  margin-top: 16px;
}

.row { display:flex; gap:16px; align-items:flex-end; flex-wrap:wrap; }

.list { display:grid; gap:6px; margin-top:8px; }
.item {
  display:flex; justify-content:space-between; gap:8px; align-items:center;
  background: rgba(255,255,255,.03); padding:8px 10px; border-radius:10px;
}
.item small { opacity:.7; }
.item .actions button { margin-left: 6px; }


@media screen and (max-width: 1000px){
  aside{
    display: none;
  }
  
  body{
    grid-template-columns: 100%;
  }

  .col:nth-child(1){
    display: none;
  }

  .grid{
    grid-template-columns: 100%;
  }
}