.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;
}

.move-up {
  bottom: 10em !important;
}

.mapControlPanel {
  background: #5e2a2c;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  margin: 10px;
}

/* Optionnel : boutons plus propres */
.mapControlPanel div {
  cursor: pointer;
}

/* ====== Boutons cardinal - Mobile-first ====== */
/*
.cardinal {
  display: flex;
  justify-content: center;
  align-items: center;

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

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

  border-radius: 10px;
  border: 2px solid rgba(36,28,21,0.92);
  background: rgba(36,28,21,0.92);
  background-position: center;
  background-size: 100%;

  cursor: pointer;
  font-family: 'Roboto';
  text-align: center;
  color: rgba(36,28,21,0.92);
  transition: transform 0.4s, background 0.4s;
}
*/
.cardinal {
  display: flex;
  align-items: center;
  justify-content: space-between;

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

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

  border-radius: 10px;
  border: 1px solid #4a2122;
  background: #5e2a2c;

  cursor: pointer;
  font-family: 'Roboto';
  color: white;
}

/* Icône gauche */
.cardinal .icon-left-antalaha {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #f5c243;

  display: flex;
  align-items: center;
  justify-content: center;

  flex-shrink: 0;

  color:#4a3326;
}

/* Icône gauche */
.cardinal .icon-left-ambanja {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #7d9e6b;

  display: flex;
  align-items: center;
  justify-content: center;

  flex-shrink: 0;

  color:#5a3c1c;
}

/* Icône gauche */
.cardinal .icon-left-uganda {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #e9c98a;

  display: flex;
  align-items: center;
  justify-content: center;

  flex-shrink: 0;
  color:#5a3c1c;
}

/* Icône gauche */
.cardinal .icon-left-factory {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #4a3326;

  display: flex;
  align-items: center;
  justify-content: center;

  flex-shrink: 0;

  color:#e9c98a;
}

/* Icône droite */
.cardinal .icon-right {
  flex-shrink: 0;
  color: white;
}

/* Texte interne */
.cardinal h1 {
  flex: 1;
  margin: 0 10px;
  text-align: left;
  font-family: 'BalboaMedium';
  font-size: clamp(1rem, 0.9vw, 0.9rem);
  color: #ffffff;
  line-height: 1.2;
  font-weight: 600;
}

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

/* Icône droite */
.cardinal:hover .icon-right {
  flex-shrink: 0;
  color: rgba(36,28,21,0.92);
}

.cardinal:hover h1 {
  color: rgba(36,28,21,0.92);
}

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

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

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

/* Téléphones classiques */
@media (max-width: 480px) {
  .cardinal {
    width: clamp(100px, 30vw, 100px);
    height: 38px;
    display: contents;
  }

  .titleControlDiv{
    display: none;
  }

  .cardinal .icon-left-ambanja {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #7d9e6b;
    display: flex;
    align-items: center;
    justify-content: center;
    /* flex-shrink: 0; */
    color: #5a3c1c;
    margin: 5px;
    justify-self: center;
  }

  .cardinal .icon-left-antalaha {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #f5c243;
    display: flex;
    align-items: center;
    justify-content: center;
    /* flex-shrink: 0; */
    color: #4a3326;
    margin: 5px;
    justify-self: center;
  }

  .cardinal .icon-left-uganda {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #e9c98a;
    display: flex;
    align-items: center;
    justify-content: center;
    /* flex-shrink: 0; */
    color: #5a3c1c;
    margin: 5px;
    justify-self: center;
  }

  .cardinal .icon-left-factory {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #4a3326;
    display: flex;
    align-items: center;
    justify-content: center;
    /* flex-shrink: 0; */
    color: #e9c98a;
    margin: 5px;
    justify-self: center;
  }

  .cardinal .icon-right {
    flex-shrink: 0;
    color: white;
    display: none;
  }

  .cardinal h1 {
    font-size: 0.70rem;
    text-align: center;
  }

  .mapControlPanel {
    background: #5e2a2c;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    margin: 10px;
    display: flex;
    width: 95%;
    top: 0%;
    height: 75px;
  }
}

/* Tablettes */
@media (max-width: 768px) {
  
}

/* 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.50rem;
  }
}

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

/* 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;
  }
}