/*RESET & BASE*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;
  -webkit-tap-highlight-color: transparent;
  text-decoration: none;
}
a {
  color: #000;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  position: relative;
  max-width: 480px;
  margin: 0 auto;
  background: #f5f5f5;
  min-height: 100vh;
  overflow-x: hidden;
  animation: fondu-entree 0.3s ease;
  transition: opacity 0.3s ease;
}
@keyframes fondu-entree {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Fondu SORTIE */
body.fondu-sortie {
  opacity: 0;
}

/*BOUTON AIDE (fixe)*/
.btn_help {
  position: fixed;
  bottom: clamp(20px, 5vw, 50px);
  right: clamp(10px, 3vw, 20px);
  padding: 10px;
  border-radius: 50%;
  width: clamp(44px, 12vw, 56px);
  height: clamp(44px, 12vw, 56px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgb(253, 82, 20);
  color: #fff;
  box-shadow: 2px 2px 20px rgba(0, 0, 0, 0.4);
  z-index: 1000;
  cursor: pointer;
  font-size: clamp(9px, 2.5vw, 12px);
  font-weight: bold;
}

/*HEADER*/
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(10px, 3vw, 20px) clamp(12px, 4vw, 20px);
  width: 100%;
}

header h2 {
  font-size: clamp(14px, 4vw, 18px);
  font-weight: 600;
}

header .icon {
  display: flex;
  align-items: center;
  gap: clamp(15px, 5vw, 30px);
}

header .icon ion-icon {
  font-size: clamp(20px, 5.5vw, 28px);
  color: #333;
  cursor: pointer;
}

/* ID CLIENT (carte noire) */
.id_client {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: clamp(10px, 3vw, 16px) clamp(12px, 4vw, 20px);
  background: #000;
  color: white;
  padding: clamp(14px, 4vw, 20px);
  border-radius: 20px;
  width: calc(100% - clamp(24px, 8vw, 40px));
}

/* TOP */
.id_client .id_top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.id_top .left .id_bloc > p,
.id_top .right > p {
  font-size: clamp(9px, 2.5vw, 11px);
  font-weight: 400;
  margin-bottom: 5px;
  opacity: 0.75;
}

.id_top .left .id {
  display: flex;
  align-items: center;
  gap: clamp(6px, 2vw, 10px);
}

.id_top .left .id_bloc .id p {
  font-size: clamp(14px, 4vw, 18px);
  font-weight: 500;
  margin-bottom: 0;
}

.id_top .left .id .cercle_i {
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(20px, 5.5vw, 26px);
  height: clamp(20px, 5.5vw, 26px);
  border-radius: 50%;
  background-color: #fff;
  flex-shrink: 0;
}

.id_top .left .id .cercle_i span {
  font-size: clamp(8px, 2.2vw, 11px);
  color: #000;
  font-weight: bold;
  font-style: italic;
}

/* RIGHT (status abonnement) */
.id_top .right {
  display: flex;
  align-items: center;
  gap: clamp(8px, 2.5vw, 15px);
}

.id_top .right button {
  padding: clamp(4px, 1.2vw, 6px) clamp(8px, 2.5vw, 12px);
  font-size: clamp(9px, 2.5vw, 11px);
  border-radius: 20px;
  background: rgb(119, 1, 1);
  color: #fff;
  border: none;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
}

/* BOTTOM */
.id_bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.id_bottom .left {
  width: clamp(40px, 12vw, 60px);
  flex-shrink: 0;
}

.id_bottom .left img {
  width: 100%;
  height: clamp(35px, 9vw, 50px);
  object-fit: cover;
  border-radius: 6px;
}

.id_bottom .right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(12px, 4vw, 24px);
  flex: 1;
  padding-left: 10px;
}

.id_bottom .right .m_box {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.m_box .cercles {
  display: flex;
  align-items: center;
  gap: clamp(3px, 1vw, 5px);
}

.m_box .cercles .cercle {
  width: clamp(12px, 3.5vw, 16px);
  height: clamp(12px, 3.5vw, 16px);
  background: gray;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.m_box .cercles .cercle span {
  font-size: clamp(5px, 1.5vw, 7px);
  color: #000;
}

.m_box .cercles .point {
  width: clamp(3px, 1vw, 5px);
  height: clamp(3px, 1vw, 5px);
  background: #fff;
  border-radius: 50%;
  flex-shrink: 0;
}

.id_bottom .right .m_box p {
  font-size: clamp(7px, 2vw, 9px);
  font-weight: 400;
  margin-top: clamp(8px, 2.5vw, 14px);
  text-align: center;
  white-space: nowrap;
}

/*ANALYSE*/
.analyse {
  margin: 0 clamp(12px, 4vw, 20px) clamp(10px, 3vw, 16px);
  padding: clamp(10px, 3vw, 16px);
  background-color: rgba(254, 138, 96, 0.3);
  border-radius: 12px;
}

.analyse .top {
  display: flex;
  align-items: center;
  gap: clamp(8px, 2.5vw, 14px);
}

.analyse .top img {
  width: clamp(28px, 8vw, 40px);
  height: clamp(28px, 8vw, 40px);
  object-fit: cover;
  flex-shrink: 0;
}

.analyse .top p {
  font-size: clamp(11px, 3vw, 14px);
  font-weight: 400;
  color: rgba(200, 50, 0, 0.85);
  line-height: 1.4;
}

/*BOUTON GÉNÉRIQUE*/
.btn {
  width: 100%;
  text-align: center;
  padding: clamp(10px, 3vw, 10px);
  font-size: clamp(13px, 3.5vw, 16px);
  margin-top: clamp(8px, 2.5vw, 12px);
  background: rgb(253, 82, 20);
  border-radius: 10px;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.3px;
  transition: opacity 0.2s;
}

.btn:active {
  opacity: 0.85;
}

/*CARDS (4 icônes)*/
.cards {
  margin: 0 clamp(12px, 4vw, 20px) clamp(10px, 3vw, 16px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(6px, 2vw, 10px);
}

.cards .card {
  border: 1px solid #ddd;
  text-align: center;
  padding: clamp(8px, 2.5vw, 14px) clamp(4px, 1.5vw, 8px);
  border-radius: 12px;
  cursor: pointer;
  transition: box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.cards .card:active {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.cards .card img {
  width: clamp(24px, 7vw, 36px);
  height: clamp(24px, 7vw, 36px);
  object-fit: cover;
  border-radius: 6px;
}

.cards .card p {
  font-size: clamp(9px, 2.3vw, 12px);
  font-weight: 500;
  color: #333;
  line-height: 1.3;
}

/*FACTURE*/
.facture {
  border: 1.5px solid rgba(0, 128, 0, 0.35);
  border-radius: 12px;
  margin: 0 clamp(12px, 4vw, 20px) clamp(10px, 3vw, 16px);
  padding: clamp(14px, 4vw, 20px);
  background-color: rgba(0, 128, 0, 0.08);
  line-height: 1.5;
}

.facture .top h3 {
  font-size: clamp(13px, 3.5vw, 16px);
  font-weight: 600;
  color: #222;
}

.facture .top .small {
  font-size: clamp(9px, 2.5vw, 11px);
  font-weight: 400;
  color: rgb(118, 118, 118);
  margin-top: 2px;
}

.facture .top h2 {
  font-size: clamp(22px, 6vw, 30px);
  font-weight: bold;
  color: #111;
  margin: 4px 0;
}

.facture .top h2 span {
  font-size: clamp(11px, 3vw, 14px);
  font-weight: 600;
}

.facture .top p:last-child {
  font-size: clamp(11px, 3vw, 13px);
  font-weight: 500;
  color: #444;
}

/*OFFRE*/
.offre {
  line-height: 1.6;
  border: 1px solid #ddd;
  margin: 0 clamp(12px, 4vw, 20px) clamp(10px, 3vw, 16px);
  padding: clamp(12px, 3.5vw, 18px);
  border-radius: 12px;
}

.offre > p {
  font-size: clamp(9px, 2.5vw, 11px);
  font-weight: 400;
  color: rgb(118, 118, 118);
}

.offre .midle {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.offre .midle h2 {
  font-size: clamp(14px, 4vw, 17px);
  font-weight: 600;
  color: #111;
}

.offre .midle .right a {
  color: rgb(253, 82, 20);
  font-size: clamp(11px, 3vw, 13px);
  font-weight: 500;
  cursor: pointer;
}

/*BRONZE (fidélité)*/
.bronze {
  margin: 0 clamp(12px, 4vw, 20px) clamp(20px, 6vw, 40px);
  padding: clamp(14px, 4vw, 20px);
  background: linear-gradient(70deg, #c6bdb2, rgb(243, 225, 215));
  border-radius: 12px;
}

.bronze > p {
  font-size: clamp(11px, 3vw, 13px);
  font-weight: 600;
  margin-bottom: 10px;
  color: #333;
}

.bronze .bronze_card {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.bronze .bronze_card .left {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bronze .bronze_card .left .top {
  display: flex;
  align-items: center;
  gap: clamp(6px, 2vw, 10px);
}

.bronze .bronze_card .left .top .cercle {
  background: rgb(174, 139, 92);
  width: clamp(16px, 4.5vw, 22px);
  height: clamp(16px, 4.5vw, 22px);
  border-radius: 50%;
  flex-shrink: 0;
}

.bronze .bronze_card .left .top h2 {
  font-size: clamp(18px, 5vw, 24px);
  color: #222;
}

.bronze .bronze_card .left .btn_black {
  background-color: #000;
  color: #fff;
  padding: clamp(5px, 1.5vw, 8px) clamp(10px, 3vw, 16px);
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.bronze .bronze_card .left .btn_black span {
  font-weight: 300;
  font-size: clamp(10px, 2.8vw, 13px);
  white-space: nowrap;
}

.bronze .bronze_card .right {
  text-align: center;
  line-height: 0.9;
}

.bronze .bronze_card .right h1 {
  font-size: clamp(40px, 11vw, 60px);
  color: #222;
}

.bronze .bronze_card .right p {
  font-size: clamp(13px, 3.5vw, 17px);
  font-weight: 400;
  color: #444;
  margin-top: 4px;
}

/*TABLETTE (600px – 1024px)*/
@media (min-width: 600px) {
  body {
    max-width: 640px;
  }

  .cards {
    gap: 14px;
  }

  .cards .card {
    padding: 16px 10px;
  }

  .id_bottom .right {
    gap: 28px;
  }
}

/*GRAND ÉCRAN TABLETTE / PETIT BUREAU*/
@media (min-width: 768px) {
  body {
    max-width: 720px;
    background: #eee;
  }
  /* 
  header,
  .id_client,
  .analyse,
  .cards,
  .facture,
  .offre,
  .bronze {
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  } */

  header {
    border-radius: 0 0 10px 10px;
  }
}

/*TRÈS PETITS ÉCRANS (iPhone SE, < 360px)*/
@media (max-width: 360px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .id_bottom .right {
    gap: 8px;
  }
}

/*PAYSAGE MOBILE (hauteur < 500px)*/
@media (max-height: 500px) and (orientation: landscape) {
  header {
    padding: 6px 16px;
    position: relative;
  }

  .btn_help {
    bottom: 10px;
    right: 10px;
  }
}
