.card{
	width: 108px;
    height: 50px;
    border-radius: 20px;
    background-size: 100%;
    background-position: center;
    box-shadow: 15px 15px 30px rgb(0 0 0 / 88%);
    transition: 0.6s;
    cursor: pointer;
    display: flex;
    justify-content: center;
    place-items: center;
    font-family: Roboto, Arial, sans-serif;
    font-size: 6px;
    line-height: 38px;
    margin: 6px 15px 6px 0px;
    padding: 0px 5px;
    text-align: center;
    border: 2px solid rgb(255, 255, 255); 
    color: rgb(0, 0, 0);
}

.card:hover{
	background-size: 120%;
	transform: scale(1.25);
}

.card h1{
    font-family: 'Roboto';
    color: #ffffff;
    mix-blend-mode: normal;
    font-size: 3em;
    text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
}

/* ====== Boutons cardinal - Mobile-first ====== */

.cardinal {
  display: flex;
  justify-content: center;
  align-items: center;

  /* Dimensions fluides */
  width: clamp(120px, 45vw, 216px);
  height: clamp(32px, 6vw, 42px);

  padding: 0 10px;
  margin: 8px 12px;

  border-radius: 10px;
  border: 2px solid #5d2a2c;
  background: #fff0ab;
  background-position: center;
  background-size: 100%;

  cursor: pointer;
  font-family: 'Roboto';
  text-align: center;
  color: #5d2a2c;
  transition: transform 0.4s, background 0.4s;
}

/* Texte interne */
.cardinal h1 {
  font-family: 'Roboto';
  font-size: clamp(0.65rem, 0.9vw, 0.9rem);
  color: #5d2a2c;
  line-height: 1.2;
  margin: 0;
}

/* Effet hover (déactivé sur mobile via media query) */
.cardinal:hover {
  transform: scale(1.08);
  background: #f6c243;
}

.cardinal:hover h1 {
  color: #5d2a2c;
}

/* ====== Media Queries ====== */

/* Très petits téléphones */
@media (max-width: 360px) {
  .cardinal {
    width: 85vw;
    height: 34px;
    padding: 0 8px;
    margin: 6px 10px;
  }

  .cardinal h1 {
    font-size: 0.65rem;
  }
}

/* Téléphones classiques */
@media (max-width: 480px) {
  .cardinal {
    width: 80vw;
    height: 36px;
  }

  .cardinal h1 {
    font-size: 0.7rem;
  }
}

/* Tablettes */
@media (max-width: 768px) {
  .cardinal {
    width: clamp(128px, 40vw, 200px);
    height: 38px;
  }

  .cardinal h1 {
    font-size: 0.75rem;
  }
}

/* Désactive le hover scale sur mobile (meilleure UX tactile) */
@media (hover: none) {
  .cardinal:hover {
    transform: none;
  }
}

/* ====== Boutons cardinality - Mobile-first ====== */

.cardinality {
  display: flex;
  justify-content: center;
  align-items: center;

  /* Dimensions fluides comme .cardinal */
  width: clamp(120px, 45vw, 216px);
  height: clamp(32px, 6vw, 42px);

  padding: 0 10px;
  margin: 8px 12px;

  border-radius: 20px;
  border: 2px solid #5d2a2c;
  background: #fff0ab;
  background-position: center;
  background-size: 100%;

  cursor: pointer;
  font-family: 'AlternateGothic', sans-serif;
  text-align: center;
  transition: transform 0.4s, background 0.4s;
}

/* Texte interne */
.cardinality h1 {
  font-family: 'AlternateGothic', sans-serif;
  color: #5d2a2c;
  font-size: clamp(0.8rem, 1.4vw, 1.05rem);
  line-height: 1.2;
  margin: 0.4rem 0;
}

/* Effet hover (désactivé sur mobile) */
.cardinality:hover {
  transform: scale(1.08);
  background: #f6c243;
}

.cardinality:hover h1 {
  color: #5d2a2c;
}

/* ====== Media Queries ====== */

/* Très petits téléphones */
@media (max-width: 360px) {
  .cardinality {
    width: 85vw;
    height: 34px;
    padding: 0 8px;
    margin: 6px 10px;
  }
  .cardinality h1 {
    font-size: 0.82rem;
  }
}

/* Téléphones classiques */
@media (max-width: 480px) {
  .cardinality {
    width: 80vw;
    height: 36px;
  }
  .cardinality h1 {
    font-size: 0.85rem;
  }
}

/* Tablettes */
@media (max-width: 768px) {
  .cardinality {
    width: clamp(128px, 40vw, 200px);
    height: 38px;
  }
  .cardinality h1 {
    font-size: 0.9rem;
  }
}

/* Désactive le hover scale sur mobile */
@media (hover: none) {
  .cardinality:hover {
    transform: none;
  }
}