/* ═════════ Tarifs : configurateur de prix (formule, options, pages en plus) ═════════ */
.cf { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(14px, 1.6vw, 22px); align-items: stretch; }

/* ── Carte de gauche, sombre ── */
.cf-offre { position: relative; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; gap: 24px; padding: clamp(24px, 3vw, 44px); border-radius: var(--r-xl);
  background: radial-gradient(120% 70% at 85% 0%, #1B2A78 0%, var(--nuit) 62%); color: var(--papier); box-shadow: 0 40px 80px -30px rgba(10, 16, 51, .6), var(--sh-nuit); }
.cf-offre .pk-border-glow { --pk-glow: var(--bleu-clair); }
.cf-halo { z-index: -1; width: 520px; top: -260px; right: -180px; opacity: .45; }
.cf-top { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.cf-top h3 { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); letter-spacing: -.035em; }
.cf-desc { max-width: 52ch; margin-top: -10px; font-size: 15.5px; line-height: 1.55; color: rgba(244, 241, 234, .7); }

.cf-bloc { margin: 0; padding: 0; border: 0; min-width: 0; }
.cf-k { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; padding: 0; font: 500 11px/1.2 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ciel); }
.cf-k-s { font-family: var(--f-sans); font-size: 13px; font-weight: 600; letter-spacing: -.01em; text-transform: none; color: rgba(244, 241, 234, .55); }

/* Options : cartes qu'on allume */
.cf-opts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.cf-opt { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; min-height: 118px; padding: 14px 14px 14px; border: 0; border-radius: 18px; text-align: left; font: inherit; color: inherit; cursor: pointer;
  background: rgba(255, 255, 255, .045); box-shadow: 0 0 0 1px rgba(255, 255, 255, .09) inset, 0 1px 0 rgba(255, 255, 255, .05) inset;
  transition: background-color .45s var(--pk-ease), box-shadow .45s var(--pk-ease), transform .3s var(--pk-ease); }
.cf-opt:hover { background: rgba(255, 255, 255, .075); }
.cf-opt:active { transform: scale(.98); }
.cf-opt:focus-visible { outline: 2px solid var(--bleu-clair); outline-offset: 3px; }
.cf-opt[aria-pressed="true"] { background: linear-gradient(160deg, rgba(47, 91, 255, .34), rgba(47, 91, 255, .12)); box-shadow: 0 0 0 1.5px var(--bleu-clair) inset, 0 12px 30px -14px rgba(47, 91, 255, .8); }
.cf-opt-i { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: rgba(124, 155, 255, .14); color: var(--ciel); transition: background-color .45s var(--pk-ease), color .45s var(--pk-ease); }
.cf-opt[aria-pressed="true"] .cf-opt-i { background: var(--bleu); color: #fff; }
.cf-opt-i svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.cf-opt-n { font-size: 14.5px; font-weight: 600; line-height: 1.3; letter-spacing: -.015em; }
.cf-opt-p { margin-top: auto; font: 600 13px/1 var(--f-mono); letter-spacing: .02em; color: rgba(244, 241, 234, .66); transition: color .45s var(--pk-ease); }
.cf-opt[aria-pressed="true"] .cf-opt-p { color: #fff; }
.cf-opt-c { position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .22) inset; transition: background-color .45s var(--pk-ease), box-shadow .45s var(--pk-ease); }
.cf-opt-c svg { width: 13px; height: 13px; fill: none; stroke: var(--nuit); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 14; stroke-dashoffset: 14; transition: stroke-dashoffset .45s var(--pk-ease) .05s; }
.cf-opt[aria-pressed="true"] .cf-opt-c { background: #fff; box-shadow: 0 0 0 1.5px #fff inset, 0 0 14px rgba(124, 155, 255, .9); }
.cf-opt[aria-pressed="true"] .cf-opt-c svg { stroke-dashoffset: 0; }

/* Formule : interrupteur discret site vitrine / landing page */
.cf [data-cf-txt][hidden] { display: none !important; }
.cf-switch { position: relative; isolation: isolate; align-self: flex-start; display: inline-grid; grid-template-columns: 1fr 1fr; margin-bottom: -8px; padding: 3px; border-radius: var(--r-pill); background: rgba(255, 255, 255, .05); box-shadow: 0 0 0 1px rgba(255, 255, 255, .08) inset; }
.cf-switch button { position: relative; z-index: 1; min-height: 30px; padding: 0 14px; border: 0; border-radius: var(--r-pill); background: none; font: 600 12.5px/1 var(--f-sans); letter-spacing: -.01em; color: rgba(244, 241, 234, .5); cursor: pointer; white-space: nowrap; transition: color .45s var(--pk-ease); }
.cf-switch button:hover { color: rgba(244, 241, 234, .8); }
.cf-switch button[aria-checked="true"] { color: var(--nuit); }
.cf-switch button:focus-visible { outline: 2px solid var(--bleu-clair); outline-offset: 2px; }
.cf-switch i { position: absolute; z-index: 0; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px); border-radius: var(--r-pill); background: var(--papier); box-shadow: 0 2px 8px rgba(0, 0, 0, .3); transition: transform .5s var(--pk-ease); }
.cf.is-landing .cf-switch i { transform: translateX(100%); }
.cf-top h3 span, .cf-desc span { display: block; }
.cf-top h3 span:not([hidden]), .cf-desc span:not([hidden]), .cf-grille li span:not([hidden]) { animation: cf-in .5s var(--pk-ease) both; }

/* Curseur de pages (replié pour la landing page) */
.cf-pages-w { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .55s var(--pk-ease), opacity .4s var(--pk-ease), filter .4s var(--pk-ease), margin .55s var(--pk-ease); }
.cf-pages-w > .cf-pages { min-height: 0; overflow: hidden; }
.cf.is-landing .cf-pages-w { grid-template-rows: 0fr; margin-top: -24px; opacity: 0; filter: blur(8px); pointer-events: none; }
.cf-pages-h { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 4px; }
.cf-pages-h .cf-k { margin-bottom: 0; }
.cf-pill { display: inline-flex; align-items: center; min-height: 34px; padding: 0 14px; border-radius: var(--r-pill); background: rgba(255, 255, 255, .08); box-shadow: 0 0 0 1px rgba(255, 255, 255, .12) inset; font-size: 14px; font-weight: 600; white-space: nowrap; }
.cf-pill b { display: inline-block; min-width: 1.2ch; text-align: right; font-variant-numeric: tabular-nums; }
.cf-pill.is-bump b { animation: cf-bump .45s var(--pk-ease-elastic); }
.cf-range { --p: 0%; display: block; width: 100%; height: 34px; margin: 6px 0 0; background: none; cursor: pointer; -webkit-appearance: none; appearance: none; }
.cf-range:focus-visible { outline: none; }
.cf-range::-webkit-slider-runnable-track { height: 6px; border-radius: 99px; background: linear-gradient(90deg, var(--bleu-clair) var(--p), rgba(255, 255, 255, .12) var(--p)); }
.cf-range::-moz-range-track { height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .12); }
.cf-range::-moz-range-progress { height: 6px; border-radius: 99px; background: var(--bleu-clair); }
.cf-range::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -9px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 5px rgba(124, 155, 255, .25), 0 4px 12px rgba(0, 0, 0, .35); transition: transform .3s var(--pk-ease), box-shadow .3s var(--pk-ease); }
.cf-range::-moz-range-thumb { width: 24px; height: 24px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 0 0 5px rgba(124, 155, 255, .25), 0 4px 12px rgba(0, 0, 0, .35); }
.cf-range:hover::-webkit-slider-thumb, .cf-range:active::-webkit-slider-thumb { transform: scale(1.12); box-shadow: 0 0 0 8px rgba(124, 155, 255, .22), 0 4px 12px rgba(0, 0, 0, .35); }
.cf-range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 3px var(--nuit), 0 0 0 5px var(--bleu-clair); }
.cf-ticks { display: flex; justify-content: space-between; padding: 0 4px; font: 500 11px/1 var(--f-mono); color: rgba(244, 241, 234, .4); }

/* Le prix */
.cf-total { padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .1); }
.cf-prix { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 8px 18px; }
.cf-prix b { font-size: clamp(3.6rem, 2.6rem + 4vw, 6rem); font-weight: 800; letter-spacing: -.06em; line-height: .9; font-variant-numeric: tabular-nums; white-space: nowrap;
  background: linear-gradient(180deg, #fff 30%, var(--ciel)); -webkit-background-clip: text; background-clip: text; color: transparent; transition: filter .35s var(--pk-ease), transform .5s var(--pk-ease-elastic); }
.cf-prix b.is-roule { filter: blur(3px); transform: translateY(-2px); }
.cf-prix span { display: flex; flex-direction: column; gap: 4px; padding-bottom: 6px; font-size: 14px; line-height: 1.35; color: rgba(244, 241, 234, .66); }
.cf-prix em { font-style: normal; color: rgba(244, 241, 234, .9); font-weight: 600; transition: opacity .3s var(--pk-ease), filter .3s var(--pk-ease); }
.cf-prix em.is-out { opacity: 0; filter: blur(6px); }

.cf-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.cf-ctas .es-btn { min-height: 50px; padding: 0 7px 0 22px; gap: 14px; font-size: 15px; }
.cf-voir { min-height: 50px; padding: 0 22px; font-size: 15px; }
.cf-call { margin-top: -12px; font-size: 13.5px; line-height: 1.5; color: rgba(244, 241, 234, .55); }

/* ── Panneau de droite, clair ── */
.cf-inclus { position: relative; overflow: hidden; display: flex; flex-direction: column; padding: clamp(24px, 3vw, 40px); border-radius: var(--r-xl); background: var(--carte); box-shadow: var(--pk-sh-label), var(--pk-sh-base); }
.cf-inclus h3 { margin-top: 10px; font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); letter-spacing: -.035em; }
.cf-grille { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; margin: 26px 0 0; padding: 0; list-style: none; }
.cf-grille li { display: flex; align-items: center; gap: 12px; font-size: 14.5px; line-height: 1.35; color: rgba(11, 11, 15, .78); }
.cf-grille li b { color: var(--encre); font-weight: 700; }
.cf-ic { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--glace); color: var(--cobalt); box-shadow: inset 0 0 0 1px rgba(10, 44, 216, .1), 0 1px 0 #fff; }
.cf-ic.is-fort { background: var(--nuit); color: var(--bleu-clair); box-shadow: 0 6px 14px -6px rgba(10, 16, 51, .6); }
.cf-ic svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* Aperçus de sites en éventail, fondus vers le bas */
.cf-apercus { position: relative; flex: 1; min-height: 210px; margin: 30px calc(-1 * clamp(24px, 3vw, 40px)) calc(-1 * clamp(24px, 3vw, 40px)); }
.cf-apercu { position: absolute; bottom: -30px; width: 58%; aspect-ratio: 16 / 10; border-radius: 14px; overflow: hidden; background: var(--nuit); box-shadow: 0 0 0 1px rgba(var(--nuit-rgb), .08), 0 24px 40px -18px rgba(var(--nuit-rgb), .5);
  transition: transform .6s var(--pk-ease); }
.cf-apercu img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.cf-apercu { backface-visibility: hidden; }
.cf-apercu:nth-child(1) { left: 4%; transform: rotate(-7deg) translateY(18px); z-index: 1; }
.cf-apercu:nth-child(2) { left: 21%; transform: translateY(-6px); z-index: 3; }
.cf-apercu:nth-child(3) { right: 4%; transform: rotate(7deg) translateY(18px); z-index: 2; }
.cf-inclus:hover .cf-apercu:nth-child(1) { transform: rotate(-10deg) translate(-12px, 10px); }
.cf-inclus:hover .cf-apercu:nth-child(2) { transform: translateY(-18px); }
.cf-inclus:hover .cf-apercu:nth-child(3) { transform: rotate(10deg) translate(12px, 10px); }

@keyframes cf-in { from { opacity: 0; filter: blur(6px); transform: translateY(4px); } to { opacity: 1; filter: none; transform: none; } }
@keyframes cf-bump { 0% { transform: none; } 40% { transform: translateY(-4px) scale(1.15); } 100% { transform: none; } }

@media (max-width: 1024px) {
  .cf { grid-template-columns: 1fr; }
  .cf-apercus { min-height: 260px; }
}
@media (max-width: 700px) {
  .cf-opts { grid-template-columns: 1fr; gap: 8px; }
  .cf-opt { display: grid; grid-template-columns: auto 1fr auto; align-items: center; min-height: 0; gap: 12px; padding: 12px 46px 12px 12px; }
  .cf-opt-p { margin: 0; }
  .cf-opt-c { top: 50%; translate: 0 -50%; }
  .cf-grille { grid-template-columns: 1fr; gap: 12px; }
  .cf-ctas { flex-direction: column; align-items: stretch; }
  .cf-ctas .es-btn { justify-content: space-between; }
  .cf-apercus { min-height: 180px; }
  .cf-apercu { width: 62%; }
  .cf-apercu:nth-child(2) { left: 19%; }
  .cf-switch { align-self: stretch; }
}
@media (prefers-reduced-motion: reduce) {
  .cf-opt, .cf-opt-c, .cf-opt-c svg, .cf-prix b, .cf-prix em, .cf-apercu, .cf-switch i, .cf-pages-w { transition: none; }
  .cf-top h3 span, .cf-desc span, .cf-grille li span { animation: none !important; }
  .cf-pill.is-bump b { animation: none; }
}
