body{
    min-height: 100vh;
    margin: 0;
    background:
    radial-gradient(900px circle at 10% 10%, rgba(255, 0, 150, .25), transparent 50%),
    radial-gradient(800px circle at 90% 20%, rgba(0, 200, 255, .22), transparent 55%),
    radial-gradient(700px circle at 30% 90%, rgba(120, 255, 120, .18), transparent 55%),
    hsl(226, 49%, 8%);
    padding: 5vh;
}

i{
    font-size:1em;
}

p{
    margin: 0;
}

a{
    color: white;
}

.title p{
  border-bottom: dashed 1px white;
  padding-bottom: 1vh;
}

.title h2{
    margin: 0;
    font-family: "Zalando Sans", sans-serif;
    color:white;
    font-size: 0.85em;
    margin-top: 1vh;
}

header{
    height:80vh;
    border: solid 1px white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position:relative;
}

header h1{
  color:white;
  font-family: "Zalando Sans", sans-serif;
  font-size: 2em;
  margin:0;
}

header h2{
  color:white;
  font-family: "Zalando Sans", sans-serif;
  font-size: 6em;
  margin-top:0;
  margin-bottom: 4vh;
  text-align: center;
}

header h3{
  color:white;
  font-family: "Zalando Sans", sans-serif;
  font-size: 2em;
  text-align: center;
}

#conteneur-logo{
  position: absolute;
  top: 16px;
  left: 16px;
}

#logo{
  width: 120px;
  height: auto;
  display: block;
}

#label{
  color:white;
  font-family: "Zalando Sans", sans-serif;
  font-size: 1em;
  text-align: center;
}

#total-carte{
  color:white;
  font-family: "Zalando Sans", sans-serif;
  font-size: 2em;
  text-align: center;
  margin-top:0;
}

/** SYSTEME ONGLET **/

.tabs{
  display:flex;
  gap:10px;
  margin: 0 0 16px 0;
  flex-wrap: wrap;
  transform: scale(0.8);
  transform-origin: bottom left;
}

.tab-btn{
  appearance:none;
  -webkit-appearance:none;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.85);
  padding: 10px 14px;
  border-radius: 14px;
  cursor: pointer;
  font-family: "Zalando Sans", sans-serif;
  font-weight: 700;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}

.tab-btn:hover{
  transform: translateY(-1px);
  border-color: rgba(255,255,255,0.35);
}

.tab-btn.active{
  color: #fff;
  border-color: rgba(0,255,255,0.65);
  box-shadow: 0 0 14px rgba(0,255,255,0.25), inset 0 0 0 1px rgba(0,255,255,0.15);
}

.container-tab{
  position: absolute;
  bottom: 20px;
  left: 20px;
}

/** BOUTONS PRINCIPAUX = FOND AQUA **/
/* - #add-card (header)
   - Enregistrer (submit) dans #cardForm + #tabForm
   - Annuler reste discret
*/

#add-card {
  all: unset;
  cursor: pointer;
  display: inline-block;
  padding: 12px 20px;
  font-family: "Zalando Sans", sans-serif;
  color: white;
  border-radius: 12px;
  border: 1px solid rgba(0, 255, 255, 0.55);

  text-shadow: none;
  box-shadow:
    0 0 14px rgba(0, 229, 255, 0.55),
    0 0 28px rgba(0, 229, 255, 0.35),
    inset 0 0 0 1px rgba(255,255,255,0.25);
  transition: 0.25s ease;
  margin-top: 5vh;
}

#add-card:hover {
  box-shadow:
    0 0 18px rgba(0, 229, 255, 0.75),
    0 0 36px rgba(0, 229, 255, 0.55),
    inset 0 0 0 1px rgba(255,255,255,0.35);
  transform: scale(1.05);
}

#add-card:active {
  transform: scale(0.97);
  box-shadow:
    0 0 10px rgba(0, 229, 255, 0.55),
    0 0 22px rgba(0, 229, 255, 0.35),
    inset 0 0 0 1px rgba(255,255,255,0.25);
}

/** CROIX SUPPRIMER LA CARTE **/

.delete-btn {
  appearance: none;
  margin-top: 0.5vh;
  -webkit-appearance: none;
  border: 1px solid rgba(255, 0, 0, 0.55);
  background: rgba(255, 0, 0, 0.08);
  color: white;
  padding: 1px;
  cursor: pointer;
  font-family: "Zalando Sans", sans-serif;
  font-size:0.25em;
}

.delete-btn:hover {
  background: rgba(255, 0, 0, 0.16);
  border-color: rgba(255, 0, 0, 0.85);
}

.delete-btn:active {
  transform: scale(0.97);
}

/***** MODALS (CARD + TAB) *****/

#cardModal,
#tabModal{
  border: none;
  border-radius: 2px;
  padding: 0;
  background: transparent;
}

#cardModal::backdrop,
#tabModal::backdrop{
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
}

/***** FORMS (CARD + TAB) *****/

#cardForm,
#tabForm{
  width:50vh;
  box-sizing: border-box;
  padding: 20px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.10);
  color: white;
  font-family: "Zalando Sans", sans-serif;
  display: flex;
  flex-direction: column;
}

#cardForm label,
#tabForm label{
  display: flex;
  flex-direction: column;
  font-size: 1.2em;
  color: #E5E5E5;
  margin: 0;
  border: dashed 0.1px grey;
  padding: 2vh;
}

#cardForm input,
#cardForm select,
#tabForm input,
#tabForm select{
  width: 100%;
  box-sizing: border-box;
  margin-top: 6px;
  padding: 8px 10px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(0,0,0,0.35);
  color: white;
  outline: none;
  border-radius: 12px;
  font-size: 1em;
}

#cardForm input:focus,
#cardForm select:focus,
#tabForm input:focus,
#tabForm select:focus{
  border-color: #00e5ff;
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.6);
}

/***** BOUTONS FORMULAIRES *****/
/* Enregistrer = aqua */
#cardForm button[type="submit"],
#tabForm button[type="submit"]{
  width: 100%;
  box-sizing: border-box;
  margin-top: 10px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(0, 255, 255, 0.55);

  background: rgba(0, 229, 255, 0.92);
  color: white;
  font-family: "Zalando Sans", sans-serif;
  cursor: pointer;

  text-shadow: none;
  box-shadow:
    0 0 14px rgba(0, 229, 255, 0.55),
    0 0 28px rgba(0, 229, 255, 0.35),
    inset 0 0 0 1px rgba(255,255,255,0.25);
  transition: 0.25s ease;
}

#cardForm button[type="submit"]:hover,
#tabForm button[type="submit"]:hover{
  box-shadow:
    0 0 18px rgba(0, 229, 255, 0.75),
    0 0 36px rgba(0, 229, 255, 0.55),
    inset 0 0 0 1px rgba(255,255,255,0.35);
  transform: scale(1.03);
}

#cardForm button[type="submit"]:active,
#tabForm button[type="submit"]:active{
  transform: scale(0.97);
  box-shadow:
    0 0 10px rgba(0, 229, 255, 0.55),
    0 0 22px rgba(0, 229, 255, 0.35),
    inset 0 0 0 1px rgba(255,255,255,0.25);
}

/* Annuler = discret */
#cardForm #cancel,
#tabForm #tabCancel{
  width: 100%;
  box-sizing: border-box;
  margin-top: 10px;
  padding: 12px;
  border-radius: 12px;

  border: 1px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.05);
  color: white;
  font-family: "Zalando Sans", sans-serif;
  cursor: pointer;

  text-shadow: none;
  box-shadow:
    0 0 6px rgba(255,255,255,0.2),
    inset 0 0 6px rgba(255,255,255,0.15);
  transition: 0.25s ease;
}

#cardForm #cancel:hover,
#tabForm #tabCancel:hover{
  box-shadow:
    0 0 10px rgba(255,255,255,0.4),
    inset 0 0 8px rgba(255,255,255,0.2);
}

.list-attribut{
    display:flex;
    flex-direction: column;
    justify-content: space-between;
}

.list-fiche{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 5vh;
}

.fiche{
  box-sizing: border-box;
  flex: 0 0 calc((100% - 20px) / 3);
  display: flex;
  justify-content: space-evenly;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 20px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.10);
  padding: 16px;
}

.collection{
    font-family: "Zalando Sans", sans-serif;
    font-size: 0.8em;
    color: #E5E5E5;
    font-style: bold;
}

.image-cards img{
    width: 80%;
}

.right{
    width: 70%;
}

.cards{
    border:solid 1px black;
    display: flex;
    align-items: center;
    height: 5vh;
    border-radius:0.5vh;
    background-color: white;
    margin-top: 1vh;
    padding: 0.7vh;
}

.largeur{
    display: flex;
    align-items: center;
    margin-left: 1vh;
}

.contain{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin-left: 2vh;
}

.contain h4{
    margin: 0;
    font-family: "Zalando Sans", sans-serif;
    font-size: 0.8em;
}

.contain p {
    font-family: "Zalando Sans", sans-serif;
    font-style: bold;
}


.price-filters{
  display: flex;
  justify-content: space-around;
  align-items: center;
  width: 40%;
  min-width: 60px; /* largeur stable */
  text-align: center;
}

.price-filter.hidden {
  visibility: hidden; /* garde la place */
  pointer-events: none;
}

.price-filters span{
  color: white;
  font-family: "Zalando Sans", sans-serif;
  font-size: 0.8em;
  padding: 1vh;
  cursor: pointer;
  position: relative;
  padding-bottom: 1.8vh;
}

/* ===== HOVER : soulignement ===== */
.price-filters span::after{
  content: "";
  position: absolute;
  left: 0;
  bottom: 4px;
  width: 0%;
  height: 2px;
  background-color: #FC5A42; /* ton rouge */
  transition: width 0.25s ease;
}

.price-filters span:hover::after{
  width: 100%;
}

/* ===== ACTIF (clic) : soulignement persistant ===== */
.price-filters span.active::after{
  width: 100%;
}

/* (optionnel) léger feedback couleur */
.price-filters span.active{
  color: white;
}

/* ===== LABEL ===== */
#label-tab{
  color: white;
  font-family: "Zalando Sans", sans-serif;
}

/* ===== CONTAINER ===== */
.container-filter{
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2vh;
  border-bottom: 0.5px dashed white;
  padding-bottom: 1vh;
}

#total-tab,
#total-price {
  display: inline-block;
  min-width: 140px;          /* ajuste si besoin */
  text-align: right;
  font-variant-numeric: tabular-nums;
}


@media (max-width: 430px){

  /* ===== BODY ===== */
  body{
    padding: 16px;
  }

  /* ===== HEADER ===== */
  header{
    height: auto;
    padding: 24px 16px 32px;
  }

  header h1{
    font-size: 1.4em;
    text-align: center;
  }

  /* 🔻 PRIX TOTAL plus petit */
  header h2,
  #total-price{
    font-size: 2.6em;
    margin-bottom: 16px;
    text-align: center;
  }

  header h3{
    font-size: 1.2em;
  }

  /* ===== LOGO CENTRÉ ===== */
  #conteneur-logo{
    position: static;
    margin-bottom: 16px;
  }

  #logo{
    width: 90px;
    margin: 0 auto;
    display: block;
  }

  /* ===== MASQUER BOUTONS ===== */
  #add-card{
    display: none !important;
  }

  #add-tab{
    display: none !important;
  }

  /* ===== ONGLET (RETOUR À LA LIGNE) ===== */
  .container-tab{
    position: static;
    margin-top: 16px;
    width: 100%;
  }

  .tabs{
    transform: none;
    flex-wrap: wrap;              /* ✅ retour à la ligne */
    justify-content: center;
    gap: 8px;
  }

  .tab-btn{
    font-size: 0.8em;
    padding: 8px 12px;
  }

  /* ===== FILTRES PRIX ===== */
  .container-filter{
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .price-filters{
    width: 100%;
    justify-content: space-between;
    font-size: 0.75em;
  }

  /* ===== TOTAL ONGLET ===== */
  #total-tab{
    min-width: auto;
    font-size: 0.9em;
  }

  /* ===== LISTE DES CARTES ===== */
  .list-fiche{
    margin-top: 24px;
    gap: 12px;
  }

  .fiche{
    flex: 0 0 100%;
    flex-direction: column;
  }

  .image-cards img{
    width: 100%;
    max-width: 200px;
    margin: 0 auto;
    display: block;
  }

  .right{
    width: 100%;
  }

  /* ===== ATTRIBUTS ===== */
  .cards{
    height: auto;
    padding: 8px;
  }

  .contain h4{
    font-size: 0.7em;
  }

  .contain p{
    font-size: 0.75em;
  }

  /* ===== BOUTON DELETE ===== */
  .delete-btn{
    font-size: 0.6em;
    padding: 4px 6px;
  }
   /* ===== ESPACE SOUS L’IMAGE ===== */
  .image-cards{
    margin-bottom: 12px;
  }

  /* ===== LIENS EBAY / CARDMARKET ===== */
  .title .card-link{
    font-size: 1.2em;      /* légèrement plus gros */
    font-weight: 500;     /* un poil plus lisible sans être gras */
  }

   /* =========================
     TITRE DE LA CARTE
  ========================= */
  .title h2{
    font-size: 1.1em;       /* + gros */
    line-height: 1.3;
  }

  /* =========================
     LIENS EBAY / CARDMARKET
  ========================= */
  .title .card-link{
    font-size: 0.95em;      /* encore un peu plus lisible */
    font-weight: 500;
  }

  /* =========================
     LABELS (Langue / Etat / Prix)
  ========================= */
  .contain h4{
    font-size: 0.85em;      /* titre du champ */
  }

  /* =========================
     VALEURS (Langue / Etat / Prix)
  ========================= */
  .contain p{
    font-size: 1em;         /* valeur bien lisible */
  }

  /* =========================
     PRIX (mise en avant)
  ========================= */
  .price{
    font-size: 1.1em;
    font-weight: 600;
  }

  /* =========================
     MASQUER SUPPRIMER (mobile)
  ========================= */
  .delete-btn{
    display: none;
  }

  /* =========================
     MASQUER TOTAL ONGLET
  ========================= */
  #label-tab,
  #total-tab{
    display: none;
  }

  /* =========================
     FILTRES DE PRIX (PLUS GROS)
  ========================= */
  .price-filters{
    width: 100%;
    justify-content: space-between;
    margin-top: 1vh;
  }

  .price-filters span{
    font-size: 1em;        /* + gros */
    padding: 1.4vh 1vh;   /* zone tactile confortable */
  }

  /* Soulignement un peu plus visible */
  .price-filters span::after{
    height: 3px;
    bottom: 2px;
  }

}

/* Evite les mises en page trop larges sur écran 2K/4K */
@media (min-width: 1600px){
  body{ padding: 4vh 10vw; }
  header{ max-width: 1400px; margin: 0 auto; }
  .list-fiche{ max-width: 1400px; margin-left: auto; margin-right: auto; }
}

/* Desktop / grands laptops */
@media (max-width: 1200px){
  body{ padding: 4vh; }

  header h2{ font-size: 4.8em; } /* prix total moins énorme */
  header{ height: 75vh; }

  .fiche{ flex: 0 0 calc((100% - 10px) / 2); } /* 2 colonnes */
  .right{ width: 72%; }
}

/* Laptops / tablettes paysage */
@media (max-width: 992px){
  body{ padding: 3vh; }

  header{
    height: auto;
    min-height: 70vh;
    padding: 5vh 3vh;
  }

  header h1{ font-size: 1.8em; }
  header h2{ font-size: 4em; margin-bottom: 3vh; }
  header h3{ font-size: 1.8em; }

  /* Onglets : plus propres, centrés, sans scaling bizarre */
  .tabs{
    transform: none;
    justify-content: center;
  }
  .container-tab{
    position: static;
    margin-top: 3vh;
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .fiche{ flex: 0 0 100%; } /* 1 colonne (lisible) */
}

/* Tablettes / gros mobiles */
@media (max-width: 768px){
  body{ padding: 2.2vh; }

  #logo{ width: 110px; }

  header h1{ font-size: 1.5em; }
  header h2{ font-size: 3.2em; }
  header h3{ font-size: 1.6em; }

  .list-fiche{ gap: 12px; }

  .fiche{
    flex-direction: row;
    padding: 14px;
  }

  .image-cards img{
    width: 90%;
    display: block;
  }

  .cards{
    height: auto;
    padding: 10px;
  }

  /* Modals */
  #cardForm,
  #tabForm{
    width: min(92vw, 520px);
  }

  /* Filtres prix : full width */
  .price-filters{
    width: 100%;
    justify-content: space-between;
  }
}

/* iPhone / petits écrans */
@media (max-width: 430px){
  body{ padding: 16px; }

  /* Header plus compact */
  header{
    min-height: auto;
    padding: 18px 14px 18px 14px;
    height: auto;
  }

  /* Logo centré */
  #conteneur-logo{
    position: static;
    margin-bottom: 14px;
  }
  #logo{ width: 120px; margin: 0 auto; }

  header h1{ font-size: 1.2em; text-align: center; }
  header h2{ font-size: 2.6em; margin-bottom: 14px; }
  header h3{ font-size: 1.4em; }

  /* Masquer boutons ajout (comme demandé avant) */
  #add-card,
  #add-tab{ display: none !important; }

  /* Onglets : retour à la ligne + centrage (pas de scroll horizontal) */
  .tabs{
    transform: none;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
  }
  .tab-btn{
    padding: 9px 12px;
    border-radius: 12px;
    font-size: 0.95em;
  }
  .container-tab{
    position: static;
    margin-top: 14px;
    width: 100%;
    display: flex;
    justify-content: center;
  }

  /* Filtres prix : plus gros + tap-friendly */
  .price-filters span{
    font-size: 1em;
    padding: 10px 8px;
    padding-bottom: 14px;
  }
  .price-filters span::after{
    height: 3px;
    bottom: 2px;
  }

  /* Masquer total onglet */
  #label-tab,
  #total-tab{ display: none; }

  /* Cartes : 1 colonne propre */
  .list-fiche{ margin-top: 18px; gap: 12px; }
  .fiche{
    flex: 0 0 100%;
    padding: 14px;
    gap: 12px;
  }
  .image-cards{
    width: 32%;
  }
  .image-cards img{
    width: 100%;
  }
  .right{ width: 68%; }

  /* Un peu d’air sous l’image + liens Ebay/Cardmarket plus visibles */
  .image-cards{ padding-bottom: 10px; }
  .title p{
    font-size: 1em;
    padding-bottom: 10px;
  }

  /* Textes plus gros (titre, langue, prix) */
  .title h2{ font-size: 1.05em; }
  .contain h4{ font-size: 0.95em; }
  .contain p{ font-size: 1.05em; }

  /* Masquer bouton supprimer */
  .delete-btn{ display: none !important; }
}
