/* « Compose ta formule » (assets/js/compose.js) : la section prix de la landing et de /ia/.
   Deux thèmes : « cut » (landing « Coupe franche » : aplats, encre, citron, mouvements en sauts steps())
   et « glass » (/ia/ : verre sombre, dégradés, mouvements fluides). Tout s'arrête en « mouvement réduit ». */

@property --cp-ang {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}

.cp {
  --c-creative: #ff5a1f;
  --c-ia: #c8b6ff;
  --c-dev: #5fd3b3;
  --cp-lime: #c6f23c;
  --cp-ease: steps(4);
  --cp-dur: 0.28s;
  position: relative;
}
.cp [hidden] {
  display: none !important;
}
.cp-static {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-weight: 700;
}
.cp-in {
  display: grid;
  gap: 30px;
  align-items: start;
}
@media (min-width: 980px) {
  .cp-in {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    gap: clamp(30px, 3.6vw, 60px);
  }
  .cp-receipt {
    position: sticky;
    top: calc(var(--nav-h, 60px) + 26px);
  }
}

/* Repères 1 · 2 */
.cp-k {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-family: var(--cp-mono);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.cp-k span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: 12px;
  letter-spacing: 0;
}
html[lang='ar'] .cp-k {
  font-family: var(--cp-body);
  letter-spacing: 0;
}

/* Formules toutes faites */
.cp-presets {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 30px;
}
.cp-pre {
  position: relative;
  display: grid;
  align-content: end;
  gap: 5px;
  min-width: 0;
  min-height: 84px;
  padding: 16px 14px 13px;
  text-align: start;
  font: inherit;
  color: inherit;
  cursor: pointer;
}
.cp-pre b {
  font-family: var(--cp-head);
  font-weight: 900;
  font-size: 19px;
  line-height: 1;
}
.cp-pre small {
  font-weight: 700;
  font-size: 13px;
  white-space: nowrap;
}
.cp-pre i {
  position: absolute;
  top: -11px;
  inset-inline-start: 12px;
  padding: 4px 9px 3px;
  border-radius: 999px;
  font-style: normal;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Les trois formations à cocher */
.cp-courses {
  display: grid;
  gap: 12px;
}
.cp-c {
  --cc: var(--c-creative);
  position: relative;
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 12px 16px 12px 12px;
  padding-inline: 12px 16px;
  text-align: start;
  font: inherit;
  color: inherit;
  cursor: pointer;
}
.cp-c[data-t='ia'] {
  --cc: var(--c-ia);
}
.cp-c[data-t='dev'] {
  --cc: var(--c-dev);
}
.cp-c-band {
  position: relative;
  display: grid;
  place-items: center;
  align-self: stretch;
  min-height: 76px;
  border-radius: 9px;
  background: var(--cc);
  overflow: hidden;
}
.cp-c-band i {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  font-style: normal;
  font-weight: 900;
  font-size: 18px;
  line-height: 1;
}
.cp-c[data-state='in'] .cp-c-band i::before {
  content: '✓';
}
.cp-c[data-state='out'] .cp-c-band i::before {
  content: '+';
  font-size: 22px;
}
.cp-c[data-state='gift'] .cp-c-band i::before {
  content: '★';
  font-size: 15px;
}
.cp-c[data-state='out'] .cp-c-band {
  background: repeating-linear-gradient(-45deg, var(--cc) 0 7px, transparent 7px 14px) 0 0 / 200% 200%;
  animation: cp-hatch 2.4s linear infinite;
}
@keyframes cp-hatch {
  to {
    background-position: 40px 0;
  }
}
.cp-c-name {
  display: block;
  font-family: var(--cp-head);
  font-weight: 900;
  font-size: 22px;
  line-height: 1;
}
.cp-c-goal {
  display: block;
  margin-top: 6px;
  font-size: 14.5px;
  line-height: 1.35;
}
.cp-c-meta {
  display: block;
  margin-top: 6px;
  font-family: var(--cp-mono);
  font-weight: 700;
  font-size: 12px;
  opacity: 0.7;
}
.cp-c-end {
  display: grid;
  justify-items: end;
  gap: 8px;
}
.cp-c-price {
  font-family: var(--cp-num);
  font-weight: 900;
  font-size: 22px;
  line-height: 1;
  white-space: nowrap;
}
.cp-c[data-state='gift'] .cp-c-price {
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  opacity: 0.6;
}
.cp-c-state {
  padding: 5px 9px 4px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
}
.cp-c[data-state='out'] .cp-c-state::before {
  content: '+ ';
}
.cp-c.is-bump .cp-c-band i {
  animation: cp-pop var(--cp-dur) var(--cp-ease) both;
}
@keyframes cp-pop {
  0% {
    transform: scale(1.7) rotate(-12deg);
  }
  100% {
    transform: none;
  }
}

/* Le ticket */
.cp-receipt {
  position: relative;
}
.cp-slot {
  position: relative;
  z-index: 2;
  height: 18px;
  border-radius: 10px;
}
.cp-slot i {
  position: absolute;
  top: 6px;
  inset-inline-end: 14px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cp-lime);
  animation: cp-led 1.6s steps(2) infinite;
}
@keyframes cp-led {
  50% {
    opacity: 0.2;
  }
}
.cp-paper {
  position: relative;
  margin: -9px 12px 0;
  padding: 26px 24px 34px;
}
.cp:not(.is-shown) .cp-paper {
  clip-path: inset(0 0 100% 0);
}
.cp.is-shown .cp-paper {
  clip-path: inset(0 0 0 0);
  transition: clip-path 0.56s steps(8);
}
.cp-r-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  font-family: var(--cp-mono);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.7;
}
.cp-r-name {
  margin: 10px 0 16px;
  font-family: var(--cp-head);
  font-weight: 900;
  font-size: clamp(30px, 2.8vw, 40px);
  line-height: 1;
}
.cp[data-offre='none'] .cp-r-name {
  font-family: var(--cp-body);
  font-weight: 700;
  font-size: 17px;
  line-height: 1.4;
}
.cp-lines {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 14px 0;
  list-style: none;
  border-block: 1.5px dashed currentColor;
  font-family: var(--cp-mono);
  font-size: 14.5px;
  line-height: 1.3;
}
.cp-lines:empty {
  display: none;
}
.cp-lines li {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.cp-lines li i {
  flex: 1;
  min-width: 14px;
  border-bottom: 1.5px dotted currentColor;
  opacity: 0.45;
  transform: translateY(-4px);
}
.cp-lines li b {
  white-space: nowrap;
}
.cp-lines li s {
  white-space: nowrap;
  opacity: 0.55;
}
.cp-lines li.is-gift b {
  padding: 1px 7px;
  border-radius: 4px;
  text-transform: uppercase;
  font-size: 12.5px;
}
.cp.is-intro .cp-lines li {
  animation: cp-print 0.36s steps(3) both;
  animation-delay: calc(var(--i) * 140ms + 420ms);
}
.cp-lines li.is-new {
  animation: cp-print 0.3s steps(3) both;
}
@keyframes cp-print {
  from {
    clip-path: inset(0 100% 0 0);
  }
  to {
    clip-path: inset(0 0 0 0);
  }
}
html[dir='rtl'] .cp-lines li {
  animation-name: cp-print-rtl;
}
@keyframes cp-print-rtl {
  from {
    clip-path: inset(0 0 0 100%);
  }
  to {
    clip-path: inset(0 0 0 0);
  }
}
.cp-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 10px 0 0;
  font-family: var(--cp-mono);
  font-size: 14.5px;
}
.cp-sep s {
  position: relative;
  text-decoration: none;
  white-space: nowrap;
}
.cp-sep s::after {
  content: '';
  position: absolute;
  inset-inline: -3px;
  top: 52%;
  height: 2.5px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
}
html[dir='rtl'] .cp-sep s::after {
  transform-origin: right;
}
.cp.is-struck .cp-sep s::after {
  transform: scaleX(1);
  transition: transform 0.4s steps(5);
}
/* montants signés et pourcentages : toujours lus de gauche à droite, même en arabe */
.cp-disc b,
.cp-stamp {
  direction: ltr;
  unicode-bidi: isolate;
}
.cp-disc b {
  padding: 2px 8px;
  border-radius: 4px;
  white-space: nowrap;
}
.cp-total {
  position: relative;
  display: grid;
  gap: 8px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 2px solid currentColor;
}
.cp-total-k {
  font-family: var(--cp-mono);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
html[lang='ar'] :is(.cp-total-k, .cp-r-head) {
  font-family: var(--cp-body);
  letter-spacing: 0;
}
.cp-amt {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.cp-digits {
  display: inline-flex;
  gap: 4px;
  direction: ltr;
  perspective: 300px;
}
.cp-d {
  position: relative;
  display: inline-grid;
  place-items: center;
  min-width: 0.64em;
  padding: 0.07em 0.06em 0.03em;
  font-family: var(--cp-num);
  font-weight: 900;
  font-size: clamp(50px, 5.2vw, 76px);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.cp-d--sep {
  min-width: 0.18em;
  padding: 0;
  background: none !important;
}
.cp-d.is-flip {
  animation: cp-flip 0.34s steps(4) both;
  animation-delay: calc(var(--k, 0) * 40ms);
  transform-origin: 50% 50%;
}
@keyframes cp-flip {
  0% {
    transform: rotateX(90deg);
  }
  100% {
    transform: rotateX(0deg);
  }
}
.cp-cur {
  font-family: var(--cp-head);
  font-weight: 900;
  font-size: 24px;
}
.cp-stamp {
  position: absolute;
  top: 2px;
  inset-inline-end: -6px;
  padding: 7px 12px 5px;
  font-family: var(--cp-head);
  font-weight: 900;
  font-size: 26px;
  line-height: 1;
  white-space: nowrap;
  transform: rotate(-9deg);
  visibility: hidden;
}
.cp-stamp.is-on {
  visibility: visible;
}
.cp-stamp.is-slam {
  animation: cp-slam 0.32s steps(3) both;
}
@keyframes cp-slam {
  0% {
    transform: rotate(-9deg) scale(2.3);
  }
  100% {
    transform: rotate(-9deg) scale(1);
  }
}
.cp-per {
  margin: 12px 0 0;
  font-family: var(--cp-mono);
  font-weight: 700;
  font-size: 13px;
  line-height: 1.4;
}
html[lang='ar'] .cp-per {
  font-family: var(--cp-body);
}
.cp-today {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 16px 0 0;
  padding: 11px 14px;
  border-radius: 8px;
  font-weight: 800;
}
.cp-today b {
  font-family: var(--cp-num);
  font-weight: 900;
  font-size: 24px;
  line-height: 1;
  white-space: nowrap;
}
.cp-today.is-hl {
  animation: cp-hl 0.9s steps(6) both;
}
@keyframes cp-hl {
  0%,
  33%,
  66% {
    transform: scale(1.04);
  }
  16%,
  50%,
  100% {
    transform: none;
  }
}
.cp-after {
  margin: 8px 0 0;
  font-size: 13.5px;
  line-height: 1.45;
  opacity: 0.82;
}
.cp-nudge {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 13px 15px;
  border: 2px dashed currentColor;
  border-radius: 10px;
}
.cp-nudge p {
  margin: 0;
  font-weight: 700;
  font-size: 14.5px;
  line-height: 1.45;
}
.cp-nudge button {
  justify-self: start;
  padding: 8px 14px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
}
.cp-nudge.is-bump {
  animation: cp-bump 0.4s steps(4) both;
}
@keyframes cp-bump {
  25% {
    transform: translateX(-6px);
  }
  75% {
    transform: translateX(6px);
  }
}
.cp-go {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 60px;
  margin-top: 20px;
  overflow: hidden;
  text-decoration: none;
  font-family: var(--cp-head);
  font-weight: 900;
  font-size: 21px;
  line-height: 1;
}
.cp-go i {
  font-style: normal;
}
html[dir='rtl'] .cp-go i {
  transform: scaleX(-1);
}
.cp-go[aria-disabled='true'] {
  opacity: 0.4;
  cursor: not-allowed;
}
.cp-go-sub {
  margin: 9px 0 0;
  text-align: center;
  font-size: 13px;
  opacity: 0.8;
}
.cp-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  font-family: var(--cp-mono);
  font-weight: 700;
  font-size: 11.5px;
  line-height: 1.3;
}
html[lang='ar'] .cp-steps {
  font-family: var(--cp-body);
}
.cp-steps li {
  display: grid;
  gap: 6px;
  padding-top: 8px;
  border-top: 3px solid currentColor;
  opacity: 0.55;
}
.cp-steps li.is-done {
  opacity: 1;
}
.cp-steps i {
  font-style: normal;
}
.cp-cohort {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 16px 0 0;
  font-family: var(--cp-mono);
  font-weight: 700;
  font-size: 12.5px;
}
html[lang='ar'] .cp-cohort {
  font-family: var(--cp-body);
}
.cp-cohort i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--cp-lime);
  box-shadow: 0 0 0 0 rgb(198 242 60 / 0.7);
  animation: cp-live 1.8s infinite;
}
@keyframes cp-live {
  70% {
    box-shadow: 0 0 0 10px rgb(198 242 60 / 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgb(198 242 60 / 0);
  }
}
.cp-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.cp-paper.is-tick {
  animation: cp-tick 0.24s steps(2) both;
}
@keyframes cp-tick {
  50% {
    transform: translateY(3px);
  }
}

/* Bande défilante des garanties réelles */
.cp-trust {
  margin-top: clamp(44px, 5vw, 70px);
  overflow: hidden;
}
.cp-trust-in {
  display: flex;
  gap: 0;
  width: max-content;
  margin: 0;
  padding: 0;
  list-style: none;
  animation: cp-marquee 38s linear infinite;
}
.cp-trust li {
  display: flex;
  align-items: center;
  gap: 22px;
  padding-inline-end: 22px;
  white-space: nowrap;
}
.cp-trust li::after {
  content: '✦';
}
@keyframes cp-marquee {
  to {
    transform: translateX(-50%);
  }
}
html[dir='rtl'] .cp-trust-in {
  animation-name: cp-marquee-rtl;
}
@keyframes cp-marquee-rtl {
  to {
    transform: translateX(50%);
  }
}
.cp-trust:hover .cp-trust-in {
  animation-play-state: paused;
}

/* Confettis (thème « glass ») */
.cp-conf {
  position: absolute;
  z-index: 3;
  top: 46%;
  left: 40%;
  width: 8px;
  height: 13px;
  border-radius: 2px;
  background: var(--k);
  pointer-events: none;
  animation: cp-conf 1s cubic-bezier(0.2, 0.7, 0.3, 1) forwards;
}
@keyframes cp-conf {
  to {
    transform: translate(var(--x), var(--y)) rotate(var(--r));
    opacity: 0;
  }
}

/* ==========================================================================
   Thème « cut » : la billetterie de la landing (aplats, encre, citron, sauts)
   ========================================================================== */
.cp[data-theme='cut'] {
  --cp-head: var(--f-cond);
  --cp-body: var(--f-text);
  --cp-mono: var(--f-type);
  --cp-num: var(--f-cond);
  --cp-paper: #fbf9f3;
  color: var(--ink);
}
.cp[data-theme='cut'] :is(.cp-pre b, .cp-c-name, .cp-r-name, .cp-go, .cp-stamp) {
  text-transform: uppercase;
}
html[lang='ar'] .cp[data-theme='cut'] :is(.cp-pre b, .cp-c-name, .cp-r-name, .cp-go) {
  line-height: 1.2;
}
.cp[data-theme='cut'] .cp-k span {
  background: var(--ink);
  color: var(--lime);
}
.cp[data-theme='cut'] .cp-pre {
  border: 2.5px solid var(--ink);
  border-radius: 12px;
  background: var(--cp-paper);
  box-shadow: 4px 4px 0 var(--ink);
  transition:
    transform calc(var(--img, 40ms) * 3) steps(3),
    box-shadow calc(var(--img, 40ms) * 3) steps(3);
}
.cp[data-theme='cut'] .cp-pre.is-best {
  background: var(--lime);
}
.cp[data-theme='cut'] .cp-pre.is-on {
  background: var(--ink);
  color: var(--paper);
  box-shadow: 4px 4px 0 var(--lime);
}
.cp[data-theme='cut'] .cp-pre i {
  border: 2px solid var(--ink);
  background: var(--orange);
  color: var(--ink);
}
.cp[data-theme='cut'] .cp-c {
  border: 2.5px solid var(--ink);
  border-radius: 14px;
  background: var(--cp-paper);
  box-shadow: 6px 6px 0 var(--ink);
  transition:
    transform calc(var(--img, 40ms) * 3) steps(3),
    box-shadow calc(var(--img, 40ms) * 3) steps(3),
    opacity calc(var(--img, 40ms) * 3) steps(3);
}
.cp[data-theme='cut'] .cp-c[data-state='out'] {
  border-style: dashed;
  background: transparent;
  box-shadow: none;
  opacity: 0.78;
}
.cp[data-theme='cut'] .cp-c-band i {
  background: var(--ink);
  color: var(--paper);
}
.cp[data-theme='cut'] .cp-c[data-state='out'] .cp-c-band i {
  background: var(--cp-paper);
  color: var(--ink);
  box-shadow: 0 0 0 2px var(--ink);
}
.cp[data-theme='cut'] .cp-c-state {
  background: var(--ink);
  color: var(--paper);
}
.cp[data-theme='cut'] .cp-c[data-state='out'] .cp-c-state {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 2px var(--ink);
}
.cp[data-theme='cut'] .cp-c[data-state='gift'] .cp-c-state {
  background: var(--lime);
  color: var(--ink);
  box-shadow: inset 0 0 0 2px var(--ink);
}
@media (hover: hover) and (pointer: fine) {
  .cp[data-theme='cut'] :is(.cp-pre, .cp-c):hover {
    transform: translate(-3px, -3px);
  }
  .cp[data-theme='cut'] .cp-c:hover {
    box-shadow: 9px 9px 0 var(--ink);
  }
  .cp[data-theme='cut'] .cp-c[data-state='out']:hover {
    opacity: 1;
    box-shadow: none;
  }
}
.cp[data-theme='cut'] :is(.cp-pre, .cp-c, .cp-nudge button):focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}
.cp[data-theme='cut'] .cp-receipt {
  filter: drop-shadow(8px 8px 0 var(--ink));
}
.cp[data-theme='cut'] .cp-slot {
  background: var(--ink);
}
.cp[data-theme='cut'] .cp-paper {
  background: var(--cp-paper);
  /* bord inférieur déchiré, en zigzag */
  -webkit-mask:
    linear-gradient(#000 0 0) top / 100% calc(100% - 12px) no-repeat,
    conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 22px 12px repeat-x;
  mask:
    linear-gradient(#000 0 0) top / 100% calc(100% - 12px) no-repeat,
    conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 22px 12px repeat-x;
}
.cp[data-theme='cut'] .cp-lines li.is-gift b,
.cp[data-theme='cut'] .cp-disc b {
  background: var(--lime);
}
.cp[data-theme='cut'] .cp-d:not(.cp-d--sep) {
  border-radius: 6px;
  background: var(--ink);
  color: var(--cp-paper);
}
/* la charnière du panneau à volets */
.cp[data-theme='cut'] .cp-d:not(.cp-d--sep)::after {
  content: '';
  position: absolute;
  inset-inline: 0;
  top: 50%;
  height: 1.5px;
  background: rgb(251 249 243 / 0.22);
}
.cp[data-theme='cut'] .cp-stamp {
  border: 3.5px double var(--ink);
  background: var(--lime);
  color: var(--ink);
}
.cp[data-theme='cut'] .cp-today {
  background: var(--lime);
  color: var(--ink);
  box-shadow: inset 0 0 0 2px var(--ink);
}
.cp[data-theme='cut'] .cp-nudge.is-good {
  border-style: solid;
  background: var(--ink);
  color: var(--paper);
}
.cp[data-theme='cut'] .cp-nudge button {
  background: var(--ink);
  color: var(--paper);
}
.cp[data-theme='cut'] .cp-nudge button:hover {
  background: var(--orange);
  color: var(--ink);
}
.cp[data-theme='cut'] .cp-go {
  border-radius: 10px;
  background: var(--ink);
  color: var(--paper);
}
.cp[data-theme='cut'] .cp-go:hover {
  background: var(--lime);
  color: var(--ink);
}
.cp[data-theme='cut'] .cp-steps li.is-done {
  border-color: var(--lime);
}
.cp[data-theme='cut'] .cp-steps li.is-done i {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--lime);
}
.cp[data-theme='cut'] .cp-cohort i {
  box-shadow: 0 0 0 1.5px var(--ink);
  animation-name: cp-led;
  animation-timing-function: steps(2);
}
.cp[data-theme='cut'] .cp-trust {
  padding: 15px 0 13px;
  border-block: 2.5px solid var(--ink);
  background: var(--ink);
  color: var(--lime);
  font-family: var(--f-cond);
  font-weight: 900;
  font-size: clamp(20px, 2.2vw, 28px);
  text-transform: uppercase;
}
.cp[data-theme='cut'] .cp-trust li::after {
  color: var(--orange);
}
html[lang='ar'] .cp[data-theme='cut'] .cp-trust {
  font-family: var(--f-text);
  font-weight: 800;
  text-transform: none;
}

/* ==========================================================================
   Thème « glass » : /ia/ (verre sombre, dégradés, mouvements fluides)
   ========================================================================== */
.cp[data-theme='glass'] {
  --c-creative: #e0be55;
  --c-ia: #9b7bff;
  --c-dev: #5fd3b3;
  --cp-head: var(--f-disp);
  --cp-body: var(--f-text);
  --cp-mono: var(--f-mono);
  --cp-num: var(--f-disp);
  --cp-ease: cubic-bezier(0.2, 0.9, 0.3, 1.25);
  --cp-dur: 0.5s;
  color: var(--txt);
  isolation: isolate;
}
/* aurore derrière la section */
.cp[data-theme='glass']::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: -12% -6%;
  background:
    radial-gradient(38% 42% at 22% 30%, rgb(124 92 255 / 0.28), transparent 70%),
    radial-gradient(30% 36% at 80% 62%, rgb(95 211 179 / 0.18), transparent 70%),
    radial-gradient(26% 30% at 58% 12%, rgb(224 190 85 / 0.14), transparent 70%);
  filter: blur(24px);
  animation: cp-aurora 18s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes cp-aurora {
  to {
    transform: translate3d(3%, -4%, 0) rotate(6deg) scale(1.06);
  }
}
.cp[data-theme='glass'] .cp-k {
  color: var(--lav);
}
.cp[data-theme='glass'] .cp-k span {
  background: rgb(200 182 255 / 0.14);
  box-shadow: inset 0 0 0 1px rgb(200 182 255 / 0.4);
}
.cp[data-theme='glass'] .cp-pre {
  border: 0;
  border-radius: 20px;
  background: linear-gradient(180deg, rgb(255 255 255 / 0.07), rgb(255 255 255 / 0.02));
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.12);
  transition:
    transform 0.5s var(--ease, cubic-bezier(0.22, 0.9, 0.3, 1)),
    box-shadow 0.4s,
    background-color 0.4s;
}
.cp[data-theme='glass'] .cp-pre b {
  font-weight: 850;
  letter-spacing: -0.02em;
}
.cp[data-theme='glass'] .cp-pre small {
  font-family: var(--f-mono);
  font-weight: 600;
  color: var(--muted);
}
.cp[data-theme='glass'] .cp-pre.is-best {
  box-shadow:
    inset 0 0 0 1.5px rgb(198 242 60 / 0.55),
    0 0 40px -14px rgb(198 242 60 / 0.6);
}
.cp[data-theme='glass'] .cp-pre.is-on {
  background: linear-gradient(180deg, rgb(198 242 60 / 0.16), rgb(198 242 60 / 0.04));
  box-shadow:
    inset 0 0 0 1.5px var(--lime),
    0 18px 50px -24px rgb(198 242 60 / 0.75);
}
.cp[data-theme='glass'] .cp-pre i {
  background: var(--lime);
  color: #0d0c10;
  box-shadow: 0 0 18px rgb(198 242 60 / 0.55);
}
.cp[data-theme='glass'] .cp-c {
  border: 0;
  border-radius: 22px;
  background: linear-gradient(180deg, rgb(255 255 255 / 0.06), rgb(255 255 255 / 0.02));
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.1);
  transition:
    transform 0.5s cubic-bezier(0.22, 0.9, 0.3, 1),
    box-shadow 0.45s,
    opacity 0.45s;
}
.cp[data-theme='glass'] .cp-c[data-state='in'],
.cp[data-theme='glass'] .cp-c[data-state='gift'] {
  box-shadow:
    inset 0 0 0 1.5px color-mix(in srgb, var(--cc) 70%, transparent),
    0 24px 60px -34px var(--cc);
}
.cp[data-theme='glass'] .cp-c[data-state='out'] {
  opacity: 0.58;
}
.cp[data-theme='glass'] .cp-c-band {
  border-radius: 15px;
  background: linear-gradient(140deg, var(--cc), color-mix(in srgb, var(--cc) 45%, #fff));
}
.cp[data-theme='glass'] .cp-c[data-state='out'] .cp-c-band {
  background: repeating-linear-gradient(-45deg, color-mix(in srgb, var(--cc) 55%, transparent) 0 7px, transparent 7px 14px) 0 0 / 200% 200%;
}
.cp[data-theme='glass'] .cp-c-band i {
  border-radius: 50%;
  background: #0d0c10;
  color: var(--lime);
}
.cp[data-theme='glass'] .cp-c-name {
  font-weight: 850;
  font-size: 21px;
  letter-spacing: -0.02em;
}
.cp[data-theme='glass'] .cp-c-goal {
  color: var(--muted);
}
.cp[data-theme='glass'] .cp-c-price {
  font-weight: 900;
  letter-spacing: -0.03em;
}
.cp[data-theme='glass'] .cp-c-state {
  background: var(--lime);
  color: #0d0c10;
}
.cp[data-theme='glass'] .cp-c[data-state='out'] .cp-c-state {
  background: transparent;
  color: var(--txt);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.35);
}
.cp[data-theme='glass'] .cp-c[data-state='gift'] .cp-c-state {
  background: linear-gradient(90deg, var(--gold), var(--lime));
}
@media (hover: hover) and (pointer: fine) {
  .cp[data-theme='glass'] :is(.cp-pre, .cp-c):hover {
    transform: translateY(-4px);
  }
  .cp[data-theme='glass'] .cp-c[data-state='out']:hover {
    opacity: 0.9;
  }
}
.cp[data-theme='glass'] :is(.cp-pre, .cp-c, .cp-nudge button, .cp-go):focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
}
.cp[data-theme='glass'] .cp-slot {
  height: 10px;
  margin: 0 28px;
  background: linear-gradient(90deg, transparent, rgb(198 242 60 / 0.7), transparent);
  filter: blur(2px);
}
.cp[data-theme='glass'] .cp-slot i {
  display: none;
}
.cp[data-theme='glass'] .cp-paper {
  margin: -2px 0 0;
  padding: 28px 26px 30px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgb(124 92 255 / 0.2), rgb(18 15 32 / 0.94) 38%, rgb(12 10 22 / 0.97));
  box-shadow: 0 50px 100px -50px rgb(124 92 255 / 0.85);
  backdrop-filter: blur(10px);
}
/* bordure en dégradé qui tourne */
.cp[data-theme='glass'] .cp-paper::before {
  content: '';
  position: absolute;
  inset: 0;
  padding: 1.5px;
  border-radius: inherit;
  background: conic-gradient(from var(--cp-ang), #c6f23c, #9b7bff, #5ee7ff, #e0be55, #c6f23c);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: cp-spin 7s linear infinite;
  pointer-events: none;
}
@keyframes cp-spin {
  to {
    --cp-ang: 360deg;
  }
}
.cp[data-theme='glass'].is-shown .cp-paper {
  transition: clip-path 1.1s cubic-bezier(0.22, 0.9, 0.3, 1);
}
.cp[data-theme='glass'] .cp-r-head {
  color: var(--lav);
}
.cp[data-theme='glass'] .cp-r-name {
  font-weight: 900;
  letter-spacing: -0.035em;
  background: linear-gradient(180deg, #fff 30%, var(--lav));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.cp[data-theme='glass'][data-offre='none'] .cp-r-name {
  background: none;
  color: var(--muted);
}
.cp[data-theme='glass'] .cp-lines {
  border-color: rgb(255 255 255 / 0.14);
  font-size: 13.5px;
}
.cp[data-theme='glass'] .cp-lines li.is-gift b,
.cp[data-theme='glass'] .cp-disc b {
  background: rgb(198 242 60 / 0.14);
  color: var(--lime);
}
.cp[data-theme='glass'].is-intro .cp-lines li,
.cp[data-theme='glass'] .cp-lines li.is-new {
  animation-duration: 0.6s;
  animation-timing-function: cubic-bezier(0.22, 0.9, 0.3, 1);
}
.cp[data-theme='glass'] .cp-total {
  border-top-color: rgb(255 255 255 / 0.16);
}
.cp[data-theme='glass'] .cp-total-k {
  color: var(--muted);
}
.cp[data-theme='glass'] .cp-d {
  min-width: 0.6em;
  padding: 0;
  background: linear-gradient(180deg, #fff 40%, var(--lav));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.04em;
}
.cp[data-theme='glass'] .cp-d.is-flip {
  animation: cp-roll 0.6s cubic-bezier(0.2, 0.9, 0.3, 1.2) both;
  animation-delay: calc(var(--k, 0) * 45ms);
}
@keyframes cp-roll {
  0% {
    transform: translateY(-55%);
    opacity: 0;
    filter: blur(6px);
  }
  100% {
    transform: none;
    opacity: 1;
    filter: none;
  }
}
.cp[data-theme='glass'] .cp-cur {
  color: var(--muted);
}
.cp[data-theme='glass'] .cp-d--sep {
  min-width: 0.1em;
}
.cp[data-theme='glass'] .cp-stamp {
  top: -14px;
}
.cp[data-theme='glass'] .cp-stamp {
  border-radius: 999px;
  background: var(--lime);
  color: #0d0c10;
  font-size: 20px;
  box-shadow: 0 0 30px rgb(198 242 60 / 0.6);
}
.cp[data-theme='glass'] .cp-stamp.is-slam {
  animation: cp-pop-glass 0.7s cubic-bezier(0.2, 1.6, 0.4, 1) both;
}
@keyframes cp-pop-glass {
  0% {
    transform: rotate(-9deg) scale(0);
  }
  100% {
    transform: rotate(-9deg) scale(1);
  }
}
.cp[data-theme='glass'] .cp-per {
  color: var(--lime);
}
.cp[data-theme='glass'] .cp-today {
  background: rgb(198 242 60 / 0.09);
  box-shadow: inset 0 0 0 1px rgb(198 242 60 / 0.38);
  color: var(--lime);
}
.cp[data-theme='glass'] .cp-today.is-hl {
  animation: cp-glow 1.2s ease-out both;
}
@keyframes cp-glow {
  0% {
    box-shadow:
      inset 0 0 0 1px rgb(198 242 60 / 0.38),
      0 0 0 0 rgb(198 242 60 / 0.6);
  }
  100% {
    box-shadow:
      inset 0 0 0 1px rgb(198 242 60 / 0.38),
      0 0 0 18px rgb(198 242 60 / 0);
  }
}
.cp[data-theme='glass'] .cp-after {
  color: var(--muted);
}
.cp[data-theme='glass'] .cp-nudge {
  border: 1px dashed rgb(200 182 255 / 0.45);
  background: rgb(124 92 255 / 0.08);
}
.cp[data-theme='glass'] .cp-nudge.is-good {
  border-style: solid;
  border-color: rgb(198 242 60 / 0.4);
  background: rgb(198 242 60 / 0.07);
  color: var(--lime);
}
.cp[data-theme='glass'] .cp-nudge.is-bump {
  animation: cp-rise 0.6s cubic-bezier(0.2, 0.9, 0.3, 1.2) both;
}
@keyframes cp-rise {
  from {
    transform: translateY(10px) scale(0.98);
    opacity: 0;
  }
}
.cp[data-theme='glass'] .cp-nudge button {
  background: var(--lav);
  color: #0d0c10;
}
.cp[data-theme='glass'] .cp-go {
  border-radius: 999px;
  background: linear-gradient(90deg, var(--lime), #e4ff7a);
  color: #0d0c10;
  font-weight: 850;
  font-size: 19px;
  letter-spacing: -0.01em;
  box-shadow: 0 18px 50px -18px rgb(198 242 60 / 0.8);
  transition: transform 0.4s cubic-bezier(0.22, 0.9, 0.3, 1), box-shadow 0.4s;
}
/* reflet qui traverse le bouton */
.cp[data-theme='glass'] .cp-go::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgb(255 255 255 / 0.65) 50%, transparent 65%);
  transform: translateX(-120%);
  animation: cp-shine 3.4s ease-in-out infinite;
}
@keyframes cp-shine {
  55%,
  100% {
    transform: translateX(120%);
  }
}
@media (hover: hover) and (pointer: fine) {
  .cp[data-theme='glass'] .cp-go:hover {
    transform: translateY(-2px);
    box-shadow: 0 24px 60px -16px rgb(198 242 60 / 0.95);
  }
}
.cp[data-theme='glass'] .cp-go-sub {
  color: var(--muted);
}
.cp[data-theme='glass'] .cp-steps {
  color: var(--muted);
}
.cp[data-theme='glass'] .cp-steps li {
  border-top-color: rgb(255 255 255 / 0.18);
}
.cp[data-theme='glass'] .cp-steps li.is-done {
  border-top-color: var(--lime);
  color: var(--lime);
}
.cp[data-theme='glass'] .cp-cohort {
  color: var(--lav);
}
.cp[data-theme='glass'] .cp-trust {
  padding: 13px 0;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.035);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.08);
  color: var(--lav);
  font-family: var(--f-mono);
  font-size: 14px;
  -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.cp[data-theme='glass'] .cp-trust li::after {
  color: var(--lime);
}
html[lang='ar'] .cp[data-theme='glass'] .cp-trust {
  font-family: var(--f-ar);
}

/* Téléphone */
@media (max-width: 560px) {
  .cp-presets {
    gap: 8px;
  }
  .cp-pre {
    min-height: 78px;
    padding: 15px 10px 11px;
  }
  .cp-pre b {
    font-size: 16px;
  }
  .cp-pre small {
    font-size: 12px;
    white-space: normal;
  }
  .cp-pre i {
    inset-inline-start: 8px;
    font-size: 10px;
  }
  .cp-c {
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 12px;
    padding-inline: 10px 12px;
  }
  .cp-c-band {
    grid-row: span 2;
    min-height: 64px;
  }
  .cp-c-end {
    grid-column: 2;
    grid-auto-flow: column;
    justify-content: space-between;
    align-items: center;
  }
  .cp-c-name {
    font-size: 19px;
  }
  .cp-c-goal {
    font-size: 13.5px;
  }
  .cp-c-price {
    font-size: 19px;
  }
  .cp-paper {
    padding: 22px 18px 30px;
  }
  .cp[data-theme='glass'] .cp-paper {
    padding: 24px 18px 26px;
  }
  .cp-stamp {
    font-size: 20px;
  }
  .cp-steps {
    font-size: 10.5px;
  }
}

/* Mouvement réduit : tout est déjà en place, rien ne bouge */
@media (prefers-reduced-motion: reduce) {
  .cp *,
  .cp::before,
  .cp *::before,
  .cp *::after {
    animation: none !important;
    transition: none !important;
  }
  .cp:not(.is-shown) .cp-paper {
    clip-path: none;
  }
  .cp-sep s::after {
    transform: scaleX(1);
  }
  .cp-trust-in {
    flex-wrap: wrap;
    width: auto;
    justify-content: center;
    row-gap: 6px;
  }
  .cp-trust li[aria-hidden] {
    display: none;
  }
}

/* Formation pas encore ouverte (data/sites-apps.js) : visible, grisée, « bientôt disponible » à la place du prix */
.cp-c.is-soon {
  opacity: 0.55;
  cursor: not-allowed;
}
.cp-c.is-soon .cp-c-band {
  visibility: hidden;
}
.cp-c.is-soon .cp-c-price {
  font-size: 0.85em;
  white-space: nowrap;
}
