:root{
  --red:#e30613;
  --red-dark:#bd0010;
  --ink:#171717;
  --muted:#707070;
  --line:#e4e4e4;
  --surface:#fff;
  --soft:#f6f6f6;
  --pink-2:#f7aeb4;
  --pink-3:#ffd9dc;
  --blue-2:#b8ddfb;
  --blue-3:#e8f5ff;
  --radius:18px;
  --shadow:0 10px 30px rgba(0,0,0,.065);
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  background:transparent;
  color:var(--ink);
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;
  -webkit-font-smoothing:antialiased;
}
button{font:inherit}

/* The component reacts to the iframe/container width, not only the browser viewport. */
.simulator-shell{
  width:100%;
  max-width:980px;
  margin:0 auto;
  padding:clamp(12px,2vw,24px);
  container-type:inline-size;
  container-name:simulator;
}

.simulator-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:2px 2px 16px;
}
.eyebrow{
  display:block;
  text-transform:uppercase;
  letter-spacing:.12em;
  font-size:10px;
  font-weight:800;
  color:var(--muted);
  margin-bottom:3px;
}
h1{
  margin:0;
  font-size:clamp(22px,3vw,30px);
  line-height:1.05;
}
.live-status{
  display:flex;
  align-items:center;
  gap:7px;
  color:var(--muted);
  font-size:11px;
  font-weight:650;
  white-space:nowrap;
}
.live-status span{
  width:7px;
  height:7px;
  flex:0 0 7px;
  border-radius:50%;
  background:#21a366;
  box-shadow:0 0 0 4px rgba(33,163,102,.1);
}

.options-panel{
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  overflow:hidden;
}
.option-group{
  padding:16px 18px 15px;
  border-bottom:1px solid var(--line);
}
.option-group:last-of-type{border-bottom:0}
.option-group--compact{padding-bottom:14px}
.option-group.is-empty{display:none}

.group-heading{
  display:flex;
  align-items:baseline;
  gap:10px;
  margin-bottom:11px;
}
.group-heading h2{
  margin:0;
  font-size:14px;
  font-weight:850;
}
.group-heading span{
  font-size:11px;
  color:var(--muted);
  font-weight:600;
}

/* Default desktop: 5 choices per row for Smile. */
.option-grid{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:10px;
  align-items:stretch;
}
.option-grid--single{
  grid-template-columns:minmax(145px,220px);
}

.bubble{
  width:100%;
  min-width:0;
  min-height:128px;
  margin:0;
  padding:9px 7px 8px;
  border:1px solid var(--line);
  border-radius:15px;
  background:#fff;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  position:relative;
  cursor:pointer;
  color:var(--ink);
  transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease,background .16s ease;
}
.bubble:hover{
  transform:translateY(-1px);
  border-color:#c9c9c9;
  box-shadow:0 5px 14px rgba(0,0,0,.06);
}
.bubble:focus-visible{
  outline:3px solid rgba(227,6,19,.25);
  outline-offset:2px;
}
.bubble.active{
  border-color:var(--red);
  background:#fff5f5;
  box-shadow:inset 0 0 0 1px var(--red);
}

/* Resource circles: pure CSS + real text, no image assets. */
.bubble-orb{
  --orb-shadow:0 3px 10px rgba(0,0,0,.09), inset 0 1px 1px rgba(255,255,255,.8);
  width:100px;
  height:100px;
  flex:0 0 100px;
  border-radius:50%;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  position:relative;
  overflow:visible;
  text-align:center;
  box-shadow:var(--orb-shadow);
}
.bubble-orb--voice,
.bubble-orb--over{
  background:
    radial-gradient(circle at 32% 24%,rgba(255,255,255,.9) 0 9%,transparent 30%),
    radial-gradient(circle at 52% 45%,var(--pink-2) 0%,#f6b7bd 48%,var(--pink-3) 100%);
}
.bubble-orb--data{
  background:
    radial-gradient(circle at 32% 24%,rgba(255,255,255,.95) 0 9%,transparent 30%),
    radial-gradient(circle at 52% 45%,var(--blue-2) 0%,#c9e6fb 48%,var(--blue-3) 100%);
}
.orb-value{
  display:block;
  font-size:30px;
  line-height:1;
  font-weight:900;
  color:var(--red);
  letter-spacing:-.02em;
}
.orb-sub{
  display:block;
  max-width:90px;
  margin-top:3px;
  font-size:9px;
  line-height:1.12;
  font-weight:750;
  color:#171717;
}
.bubble-orb--data .orb-value{font-size:30px}
.bubble-orb--over .orb-value{
  font-size:20px;
  line-height:1.15;
  max-width:85px;
}
.bubble-orb--over .orb-sub{
  margin-top:1px;
  font-size:8.2px;
  font-weight:900;
  color:var(--red);
}
.api-badge{
  position:absolute;
  left:-2px;
  top:-2px;
  width:27px;
  height:27px;
  border-radius:50%;
  background:var(--red);
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:9.5px;
  line-height:1;
  font-weight:950;
  box-shadow:0 1px 4px rgba(0,0,0,.18);
}
.api-badge::before{
  content:"";
  position:absolute;
  inset:2px;
  border:1px solid rgba(255,255,255,.55);
  border-radius:50%;
}
.api-badge span{position:relative;z-index:1}

.bubble-price{
  display:block;
  margin-top:8px;
  font-size:14px;
  line-height:1.05;
  font-weight:900;
}
.bubble.active .bubble-price{color:var(--red-dark)}

.discount-container{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:9px;
  padding:13px 16px;
  background:var(--soft);
  border-top:1px solid var(--line);
}
.discount{
  border:1px solid #d2d2d2;
  background:#fff;
  color:var(--ink);
  border-radius:11px;
  padding:9px 13px;
  font-size:11px;
  font-weight:800;
  cursor:pointer;
  transition:.16s ease;
}
.discount:hover{border-color:#aaa}
.discount:focus-visible{
  outline:3px solid rgba(227,6,19,.2);
  outline-offset:2px;
}
.discount.active{
  background:var(--red);
  border-color:var(--red);
  color:#fff;
}
.textou{
  font-size:10px;
  color:var(--muted);
  font-weight:750;
}

#calculateur{
  margin:12px 0 0;
  position:relative;
  overflow:hidden;
  background:var(--red);
  color:#fff;
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:21px 20px 18px;
}
.summary-main{text-align:center}
.summary-label{
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.13em;
  font-weight:850;
  opacity:.82;
}
#tarif{
  display:block;
  margin:3px 0 0;
  font-size:clamp(36px,6vw,54px);
  font-weight:900;
  line-height:1.02;
  letter-spacing:-.035em;
}
.summary-caption{
  font-size:12px;
  font-weight:650;
  opacity:.82;
  margin-top:3px;
}
.remise-online{
  margin:14px auto 0;
  max-width:720px;
  text-align:center;
  padding:10px 14px;
  border:1px solid rgba(255,255,255,.28);
  border-radius:12px;
  background: #82000082;
  box-shadow: inset 3px 3px 7px 0px #820000;
  font-weight:750;
  font-size:12px;
  line-height:1.45;
}
#rebate_month,#rebate_credit{
  font-style:normal;
  font-size:12px;
}
.summary-details{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:9px;
  margin-top:13px;
}
#description,#addon_voice,#addon_over,#addon_data{
  margin:0;
  padding:11px 13px;
  border-radius:11px;
  background: #82000082;
  box-shadow: inset 3px 3px 7px 0px #820000;
  font-size:12px;
  line-height:1.55;
  color:#fff;
  font-weight:650;
}
#description:empty,#addon_voice:empty,#addon_over:empty,#addon_data:empty{display:none}

/* Container queries are the important part for iframe integrations. */
@container simulator (max-width:939px){
  .simulator-shell{padding:14px 16px}
  .option-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
  .bubble{min-height:128px}
  .summary-details{grid-template-columns:repeat(2,minmax(0,1fr))}
}

@container simulator (max-width:700px){
  .simulator-shell{padding:10px}
  .simulator-header{padding:2px 3px 12px}
  .option-group{padding:14px 12px}
  .option-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .option-grid--single{grid-template-columns:minmax(150px,1fr)}
  .bubble{min-height:124px}
  .summary-details{grid-template-columns:repeat(2,minmax(0,1fr))}
}

@container simulator (max-width:460px){
  .simulator-shell{padding:8px}
  .simulator-header{padding:2px 2px 10px}
  .live-status{font-size:0}
  .live-status span{width:8px;height:8px;flex-basis:8px}
  .options-panel,#calculateur{border-radius:14px}
  .option-group{padding:12px 9px}
  .group-heading{margin-bottom:9px}
  .group-heading span{display:none}
  .option-grid{gap:7px}
  .bubble{min-height:116px;padding:7px 5px}
  .bubble-orb{width:88px;height:88px;flex-basis:88px}
  .orb-value{font-size:26px}
  .bubble-orb--data .orb-value{font-size:26px}
  .orb-sub{max-width:78px;font-size:8px}
  .bubble-orb--over .orb-value{font-size:18px}
  .bubble-orb--over .orb-sub{font-size:7.5px}
  .api-badge{width:24px;height:24px;font-size:8px}
  .bubble-price{margin-top:7px;font-size:13px}
  .discount-container{padding:10px 8px;gap:6px}
  .discount{padding:8px 9px;font-size:10px}
  #calculateur{padding:16px 11px 12px;margin-top:8px}
  .summary-label{font-size:10px}
  #tarif{font-size:clamp(34px,10vw,48px)}
  .summary-caption{font-size:11px}
  .remise-online{margin-top:10px;padding:9px 10px;font-size:11px}
  #rebate_month,#rebate_credit{font-size:11px}
  .summary-details{grid-template-columns:1fr;gap:6px;margin-top:9px}
  #description,#addon_voice,#addon_over,#addon_data{padding:8px 9px;font-size:11px;line-height:1.48}
}

/* Viewport fallback for older browsers without container-query support. */
@media (max-width:939px){
  .option-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .summary-details{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:700px){
  .option-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:460px){
  .simulator-shell{padding:8px}
  .live-status{font-size:0}
  .live-status span{width:8px;height:8px;flex-basis:8px}
  .option-group{padding:12px 9px}
  .group-heading span{display:none}
  .bubble{min-height:116px}
  .bubble-orb{width:88px;height:88px;flex-basis:88px}
  .orb-value{font-size:26px}
  .bubble-orb--data .orb-value{font-size:26px}
  .orb-sub{max-width:78px;font-size:8px}
  .bubble-orb--over .orb-value{font-size:18px}
  .bubble-orb--over .orb-sub{font-size:7.5px}
  .api-badge{width:24px;height:24px;font-size:8px}
  .bubble-price{font-size:13px}
  .summary-details{grid-template-columns:1fr}
}

@media (prefers-reduced-motion:reduce){
  *,*:before,*:after{
    scroll-behavior:auto!important;
    transition:none!important;
    animation:none!important;
  }
}
