*{ box-sizing: border-box; }
html, body{ margin:0; padding:0; }

body{
  font-family: Arial, sans-serif;
  background: #f5f5f5;
  color: #111;
}

/* NAVBAR */
.navbar{
  width: 100%;
  background: linear-gradient(0deg, rgba(148,50,217,1) 9%, rgba(244,60,209,1) 73%);
  display: flex;
  align-items: center;
  padding: 10px 14px;
}

.navbar a{
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  padding: 10px 12px;
  border-radius: 10px;
}

.navbar a:hover{
  background: rgba(255,255,255,.18);
}

/* TITRE */
#titre{
  max-width: 1100px;
  margin: 18px auto 10px;
  padding: 0 14px;
  text-align: center;
}

#titre h1{
  margin: 0 0 6px;
  font-size: clamp(1.6rem, 4vw, 2.3rem);
}

.consigne p{
  margin: 0;
  opacity: .9;
}

/* ✅ LAYOUT RESPONSIVE */
.layout{
  max-width: 1100px;
  margin: 14px auto 24px;
  padding: 0 14px;

  display: grid;
  grid-template-columns: 1.2fr 1fr; /* PC */
  gap: 16px;
  align-items: start;
}

/* Cartes/panneaux */
.panel{
  background: #fff;
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 14px 35px rgba(0,0,0,.10);
}

/* ✅ Carte responsive (ignore tout height="400") */
#carte img{
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
}

/* LISTES */
#listes{
  display: grid;
  gap: 10px;
}

.ligne{
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 10px;
  align-items: center;
}

.numero{
  display: grid;
  place-items: center;
  width: 42px;
  height: 38px;
  border-radius: 10px;
  background: rgba(148,50,217,.12);
  border: 1px solid rgba(148,50,217,.25);
  font-weight: 800;
}

select{
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,.2);
  background: #fff;
  font-size: 16px;
}

/* BOUTONS */
#boutons{
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

#boutons button{
  flex: 1;
  padding: 12px 14px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 800;
  font-size: 16px;
}

#boutonReset{
  background: #333;
  color: #fff;
}

#boutonValider{
  background: rgba(148,50,217,1);
  color: #fff;
}

#boutons button:hover{
  filter: brightness(1.05);
}

/* ✅ MOBILE */
@media (max-width: 900px){
  .layout{
    grid-template-columns: 1fr; /* 1 colonne sur mobile */
  }
}

@media (max-width: 420px){
  .navbar a{ font-size: 16px; }
  .ligne{ grid-template-columns: 34px 1fr; }
  .numero{ width: 34px; height: 34px; border-radius: 9px; }
  select{ font-size: 15px; }
  #boutons{ flex-direction: column; }
}
