/* ==========================================================================
   MSF Telecom · forfaits, souscription, téléphone + forfait
   ========================================================================== */
.g { background: linear-gradient(100deg, #4A12E7 0%, #B126C0 25%, #E0275A 50%, #F49233 75%, #4A12E7 100%); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: priceflow 8s linear infinite; }

/* cartes d'offres */
.plans-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding: 0 var(--pad); }
.plan { position: relative; display: flex; flex-direction: column; padding: 26px 24px 22px; border-radius: var(--r); background: var(--cream); scroll-margin-top: 110px; }
.plan.rv { transition: opacity .9s var(--ease) var(--d, 0ms), transform 1.1s var(--ease) var(--d, 0ms); }
.plan--hot { background: var(--ink); color: #fff; }
.plan__top { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px; color: var(--gray); }
.plan--hot .plan__top { color: rgba(255, 255, 255, .6); }
.plan__top em { font-style: normal; height: 26px; padding: 0 11px; border-radius: 999px; background: var(--cta); color: #fff; line-height: 26px; font-size: 12.5px; }
.plan h2 { font-size: 22px; letter-spacing: -.015em; margin-top: 18px; }
.plan__data { font-size: 40px; letter-spacing: -.04em; line-height: 1; margin-top: 10px; }
.plan__price { display: flex; align-items: flex-start; gap: 4px; margin-top: 24px; }
.plan__price b { font-weight: 500; font-size: 64px; line-height: .9; letter-spacing: -.05em; }
.plan--hot .plan__price b { background: linear-gradient(100deg, #8f6bff 0%, #e45bd3 30%, #ff6b6b 60%, #F49233 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.plan__price span { display: flex; flex-direction: column; font-size: 22px; line-height: 1.05; }
.plan__price small { font-size: 13px; color: var(--gray); }
.plan__commit { margin-top: 8px; font-size: 14px; color: var(--gray); }
.plan--hot .plan__commit, .plan--hot .plan__price small { color: rgba(255, 255, 255, .6); }
.plan ul { list-style: none; margin: 22px 0 24px; padding: 18px 0 0; border-top: 1px solid var(--line); display: grid; gap: 9px; font-size: 15px; }
.plan--hot ul { border-color: rgba(255, 255, 255, .14); }
.plan li { display: flex; align-items: flex-start; gap: 10px; }
.plan li svg { flex: none; margin-top: .25em; width: 18px; height: 18px; padding: 3px; border-radius: 50%; background: linear-gradient(135deg, var(--amber), var(--coral)); color: #fff; }
.plan .btn { margin-top: auto; width: 100%; height: 52px; }
.plan--hot .btn--orange { box-shadow: none; }
.plan__more { display: block; margin-top: 12px; text-align: center; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; color: inherit; opacity: .75; }
.plan__fine { margin-top: 14px; font-size: 12.5px; line-height: 1.45; color: var(--gray); }
.plan--hot .plan__fine { color: rgba(255, 255, 255, .5); }

/* comparatif */
.cmp { margin: clamp(80px, 9vw, 140px) var(--pad) 0; }
.cmp__head { margin-bottom: 34px; display: grid; gap: 18px; }
.cmp__tbl { overflow-x: auto; border-radius: var(--r); background: var(--cream); }
.cmp table { width: 100%; min-width: 720px; border-collapse: collapse; }
.cmp th { text-align: left; font-weight: 500; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--gray); padding: 22px 22px 14px; }
.cmp td { padding: 18px 22px; border-top: 1px solid var(--line); vertical-align: top; }
.cmp td b { display: block; font-weight: 500; font-size: 19px; letter-spacing: -.01em; }
.cmp td span { font-size: 13px; color: var(--gray); }
.cmp .cmp__us { background: rgba(255, 255, 255, .7); }
th.cmp__us { color: var(--cta); }
td.cmp__us b { color: var(--cta); font-size: 22px; }
.cmp__note { margin-top: 14px; font-size: 13px; color: var(--gray); }

/* pro */
.pro { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 80px); align-items: center; margin: clamp(80px, 9vw, 140px) var(--pad) 0; padding: clamp(28px, 4vw, 60px); border-radius: var(--r); background: linear-gradient(160deg, #F59A52, #EE6A45 50%, #E04536); color: #fff; }
.pro .h2 { max-width: 16ch; margin: 18px 0; }
.pro .h2 > span { color: rgba(255, 255, 255, .7); }
.pro__lead { font-size: 18px; line-height: 1.45; color: rgba(255, 255, 255, .9); max-width: 44ch; margin-bottom: 26px; }
.pro .btn--dark { background: #fff; color: var(--ink); }
.pro__form { display: grid; gap: 12px; padding: 26px; border-radius: 24px; background: #fff; color: var(--ink); }
.pro__form h3 { font-size: 22px; letter-spacing: -.02em; }
.pro__form .btn { height: 54px; }
.pro__form .f2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pro__form .fld { display: grid; gap: 7px; font-size: 13.5px; color: #55555a; }
.pro__form .fld em { font-style: normal; color: var(--gray); margin-left: 4px; }
.pro__form .fld input, .pro__form .fld textarea { width: 100%; min-width: 0; height: 54px; padding: 0 18px; border: 0; border-radius: 16px; font: inherit; font-size: 16px; color: var(--ink); background: var(--cream); transition: box-shadow .25s, background-color .25s; }
.pro__form .fld textarea { height: auto; padding: 14px 18px; resize: vertical; }
.pro__form .fld input:focus, .pro__form .fld textarea:focus { outline: none; background: #fff; box-shadow: inset 0 0 0 1.5px var(--ink); }
.pro__form .fld.is-bad input, .pro__form .fld.is-bad textarea { box-shadow: inset 0 0 0 1.5px var(--red); background: #fff6f5; }
.pro__form .form__msg { min-height: 1.2em; font-size: 14px; color: var(--gray); }
.pro__form .form__msg.is-ok { color: #1f8a4c; }
.pro__form .form__msg.is-bad { color: var(--red); }
@media (max-width: 560px) { .pro__form .f2 { grid-template-columns: 1fr; } }
.form__msg { min-height: 1.2em; font-size: 14px; color: var(--gray); }
.form__msg.is-ok { color: #1f8a4c; }
.form__msg.is-bad { color: var(--red); }

/* faq */
.faq { margin: clamp(80px, 9vw, 140px) var(--pad) 0; max-width: 900px; }
.faq .h2 { margin-bottom: 26px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; font-size: clamp(18px, 1.6vw, 22px); letter-spacing: -.01em; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-size: 20px; box-shadow: inset 0 0 0 1px var(--line); transition: transform .5s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 24px; max-width: 70ch; color: #55555a; line-height: 1.55; }

/* souscription */
.splans { display: grid; gap: 8px; }
.splan { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "n p" "d p"; align-items: center; column-gap: 14px; padding: 16px 20px; border-radius: 20px; cursor: pointer; box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .3s; }
.splan:hover { box-shadow: inset 0 0 0 1px rgba(20, 20, 20, .4); }
.splan:has(input:checked) { box-shadow: inset 0 0 0 2px var(--ink); }
.splan input { position: absolute; opacity: 0; pointer-events: none; }
.splan__n { grid-area: n; display: flex; align-items: center; gap: 8px; font-size: 17px; }
.splan__n em { font-style: normal; height: 22px; padding: 0 9px; border-radius: 999px; background: var(--cta); color: #fff; font-size: 11.5px; line-height: 22px; }
.splan__d { grid-area: d; font-size: 13.5px; color: var(--gray); }
.splan b { grid-area: p; font-weight: 500; font-size: 22px; letter-spacing: -.02em; }
.splan b small { font-size: 12.5px; font-weight: 400; color: var(--gray); letter-spacing: 0; }
.pro-fields { display: grid; gap: 12px; margin-top: 16px; }
.pro-fields[hidden], .port[hidden], .optc[hidden] { display: none; }
.seg { display: inline-flex; gap: 3px; padding: 3px; margin-bottom: 14px; border-radius: 999px; background: var(--cream); }
.seg label { cursor: pointer; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: block; height: 38px; padding: 0 18px; border-radius: 999px; line-height: 38px; font-size: 14.5px; color: #55555a; transition: background-color .3s, color .3s, box-shadow .3s; }
.seg input:checked + span { background: #fff; color: var(--ink); box-shadow: 0 4px 14px -6px rgba(0, 0, 0, .25); }
.seg input:focus-visible + span { outline: 2px solid var(--violet); }
.opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 8px; margin-bottom: 14px; }
.optc { display: flex; align-items: flex-start; gap: 12px; padding: 16px 18px; border-radius: 18px; cursor: pointer; box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .3s; }
.optc:hover { box-shadow: inset 0 0 0 1px rgba(20, 20, 20, .4); }
.optc:has(input:checked) { box-shadow: inset 0 0 0 2px var(--ink); }
.optc input { position: absolute; opacity: 0; }
.optc i { flex: none; width: 20px; height: 20px; margin-top: 1px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px rgba(20, 20, 20, .3); transition: box-shadow .35s var(--ease); }
.optc input:checked + i { box-shadow: inset 0 0 0 6px var(--ink); }
.optc input:focus-visible + i { outline: 2px solid var(--violet); outline-offset: 2px; }
.optc span { display: flex; flex-direction: column; gap: 2px; }
.optc b { font-weight: 500; font-size: 15.5px; }
.optc em { font-style: normal; font-size: 13px; color: var(--gray); }
.port { display: grid; gap: 10px; margin: 0 0 18px; padding: 18px; border-radius: 20px; background: var(--cream); }
.port .fld input { background: #fff; }
.hint { font-size: 13.5px; color: #55555a; line-height: 1.5; }
.drop { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 34px 20px; border-radius: 22px; border: 1.5px dashed rgba(20, 20, 20, .2); text-align: center; cursor: pointer; transition: border-color .3s, background-color .3s; }
.drop:hover, .drop.is-over { border-color: var(--ink); background: var(--cream); }
.drop.is-ok { border-style: solid; border-color: #1f8a4c; background: #f1faf4; }
.drop.is-bad { border-color: var(--red); background: #fff6f5; }
.drop b { font-weight: 500; font-size: 16px; }
.drop span { font-size: 13px; color: var(--gray); max-width: 46ch; }
.co__block > .hint { margin-top: 12px; }
.consent { display: flex; gap: 10px; margin-top: 18px; font-size: 13.5px; line-height: 1.45; color: #55555a; cursor: pointer; }
.consent input { flex: none; width: 18px; height: 18px; margin-top: 1px; accent-color: var(--ink); }
.consent a { text-decoration: underline; text-underline-offset: 3px; color: var(--ink); }
.recap__pay--m { margin-top: 8px; padding-top: 10px; border-top: 0; }
.recap__pay--m b { font-size: 26px; }

/* téléphone + forfait */
.bphones { display: grid; grid-auto-flow: column; grid-auto-columns: 160px; gap: 8px; overflow-x: auto; padding: 4px 2px 12px; scrollbar-width: thin; }
.bphone { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 18px 12px 14px; border-radius: 20px; text-align: center; cursor: pointer; background: var(--cream); box-shadow: inset 0 0 0 2px transparent; transition: box-shadow .3s; }
.bphone:has(input:checked) { box-shadow: inset 0 0 0 2px var(--ink); background: #fff; }
.bphone input { position: absolute; opacity: 0; }
.bphone .thumb { width: 34px; margin-bottom: 8px; }
.bphone__n { font-size: 14.5px; line-height: 1.25; }
.bphone__d { font-size: 12.5px; color: var(--gray); }
.bcfg { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }

@media (max-width: 1180px) { .plans-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 960px) { .pro { grid-template-columns: 1fr; } .bcfg { grid-template-columns: 1fr; } }
@media (max-width: 820px) {
  .plans-grid { grid-template-columns: 1fr; }
  .plan__price b { font-size: 56px; }
  .pro { padding: 26px 20px; }
  .pro__form { padding: 20px; }
}
.bphone, .splan, .optc, .seg label { position: relative; }
