/* Ideal Surprise — (C) 2026 IdealPC Sàrl — GPL v2+ */
.isp {
    --isp-cols: 6; --isp-cols-t: 4; --isp-cols-m: 3; --isp-gap: 12px; --isp-radius: 12px; --isp-maxw: none;
    --isp-door-bg: #b3261e; --isp-door-back: #fff7e6; --isp-door-border: transparent; --isp-border-w: 0px;
    --isp-num-color: #fff; --isp-num-outline: transparent; --isp-num-bg: #fff; --isp-num-size: 1.6rem; --isp-num-weight: 700; --isp-num-font: inherit;
    --isp-today: #f5b301; --isp-accent: #c0392b; --isp-board-bg: transparent; --isp-text: inherit; --isp-dialog-bg: #fff; --isp-door-img: none;
    position: relative; max-width: var(--isp-maxw); margin-inline: auto; color: var(--isp-text);
}
.isp *, .isp *::before, .isp *::after, .isp-dialog, .isp-dialog *, .isp-dialog *::before, .isp-dialog *::after { box-sizing: border-box; }
.isp-head { text-align: center; margin-bottom: 1rem; }
.isp-title { margin: 0 0 .35em; }
.isp-intro { margin: 0; opacity: .85; }
.isp-preview { background: #fff3cd; color: #664d03; border: 1px solid #ffe69c; border-radius: 6px; padding: .4rem .7rem; font-size: .85rem; margin-bottom: .75rem; text-align: center; }

/* ---------- Plateau ---------- */
.isp-board { position: relative; background-color: var(--isp-board-bg); border-radius: 10px; }
.isp-layout-grid .isp-board { display: grid; grid-template-columns: repeat(var(--isp-cols), minmax(0, 1fr)); gap: var(--isp-gap); padding: calc(var(--isp-gap) * .5); }
.isp-layout-image .isp-board { background-size: cover; background-position: center; overflow: hidden; }
.isp-board-ratio { display: block; width: 100%; }
.isp-layout-image .isp-door { position: absolute; }
@media (max-width: 959px) { .isp-layout-grid .isp-board { grid-template-columns: repeat(var(--isp-cols-t), minmax(0, 1fr)); } }
@media (max-width: 639px) {
    .isp-layout-grid .isp-board, .isp-mobile-grid .isp-board { grid-template-columns: repeat(var(--isp-cols-m), minmax(0, 1fr)); }
    .isp-mobile-grid .isp-board { display: grid; gap: var(--isp-gap); padding: var(--isp-gap); }
    .isp-mobile-grid .isp-board-ratio { display: none; }
    .isp-mobile-grid .isp-door { position: relative !important; left: auto !important; top: auto !important; width: auto !important; height: auto !important; aspect-ratio: 1; }
    .isp { --isp-num-size: var(--isp-num-size-m, calc(var(--isp-num-size) * .8)); }
}

/* ---------- Fenêtre ---------- */
.isp-door {
    position: relative; display: block; padding: 0; margin: 0; border: 0; background: none; cursor: pointer; perspective: 900px;
    font: inherit; color: inherit; -webkit-tap-highlight-color: transparent; transition: transform .2s ease, filter .2s ease;
}
.isp-layout-grid .isp-door, .isp-ratio-square .isp-door { aspect-ratio: 1; }
.isp-layout-grid.isp-ratio-portrait .isp-door { aspect-ratio: 3 / 4; }
.isp-layout-grid.isp-ratio-landscape .isp-door { aspect-ratio: 4 / 3; }
.isp-door:focus-visible { outline: 3px solid var(--isp-accent); outline-offset: 3px; }
.isp-back, .isp-front { position: absolute; inset: 0; display: block; }
.isp-back { background: var(--isp-door-back); }
.isp-back::after { content: "✓"; position: absolute; inset: 0; display: grid; place-items: center; font-size: calc(var(--isp-num-size) * 1.1); color: var(--isp-accent); opacity: 0; transition: opacity .3s .35s; }
.isp-door.is-result-win .isp-back::after { content: "★"; }
.isp-door.is-opened .isp-back::after { opacity: .9; }
.isp-front {
    background-color: var(--isp-door-bg); background-image: var(--isp-door-img); background-size: cover; background-position: center;
    border: var(--isp-border-w) solid var(--isp-door-border); display: flex; padding: .45em;
    transform-origin: left center; backface-visibility: hidden; transition: transform .8s cubic-bezier(.2,.7,.2,1), opacity .6s ease;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), 0 2px 6px rgba(0,0,0,.18);
}
.isp-leaf { display: none; }

/* Formes */
.isp-shape-rounded .isp-front, .isp-shape-rounded .isp-back, .isp-shape-rounded .isp-leaf { border-radius: var(--isp-radius); }
.isp-shape-circle .isp-front, .isp-shape-circle .isp-back, .isp-shape-circle .isp-leaf { border-radius: 50%; }
.isp-shape-star .isp-door, .isp-shape-heart .isp-door, .isp-shape-tree .isp-door, .isp-shape-gift .isp-door, .isp-shape-egg .isp-door, .isp-shape-house .isp-door { filter: drop-shadow(0 2px 3px rgba(0,0,0,.25)); }
.isp-shape-star .isp-front, .isp-shape-star .isp-back { -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M50 2l14.7 30.6 33.3 4.4-24.4 23.2 6.2 33.1L50 77.2 20.2 93.3l6.2-33.1L2 37l33.3-4.4z'/%3E%3C/svg%3E") center / 100% 100% no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M50 2l14.7 30.6 33.3 4.4-24.4 23.2 6.2 33.1L50 77.2 20.2 93.3l6.2-33.1L2 37l33.3-4.4z'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }
.isp-shape-heart .isp-front, .isp-shape-heart .isp-back { -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M50 95S4 66 4 33C4 15 17 4 31 4c9 0 15 5 19 12 4-7 10-12 19-12 14 0 27 11 27 29 0 33-46 62-46 62z'/%3E%3C/svg%3E") center / 100% 100% no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M50 95S4 66 4 33C4 15 17 4 31 4c9 0 15 5 19 12 4-7 10-12 19-12 14 0 27 11 27 29 0 33-46 62-46 62z'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }
.isp-shape-tree .isp-front, .isp-shape-tree .isp-back { -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M50 2L22 36h12L12 62h14L4 86h38v12h16V86h38L74 62h14L66 36h12z'/%3E%3C/svg%3E") center / 100% 100% no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M50 2L22 36h12L12 62h14L4 86h38v12h16V86h38L74 62h14L66 36h12z'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }
.isp-shape-gift .isp-front, .isp-shape-gift .isp-back { -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M30 4c8 0 15 7 20 16 5-9 12-16 20-16 8 0 12 5 12 10s-3 9-8 10h20v20h-4v52H10V44H6V24h20c-5-1-8-5-8-10S22 4 30 4z'/%3E%3C/svg%3E") center / 100% 100% no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M30 4c8 0 15 7 20 16 5-9 12-16 20-16 8 0 12 5 12 10s-3 9-8 10h20v20h-4v52H10V44H6V24h20c-5-1-8-5-8-10S22 4 30 4z'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }
.isp-shape-egg .isp-front, .isp-shape-egg .isp-back { border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; }
.isp-shape-house .isp-front, .isp-shape-house .isp-back { -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M50 2l48 40H86v56H14V42H2z'/%3E%3C/svg%3E") center / 100% 100% no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M50 2l48 40H86v56H14V42H2z'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }
.isp-shape-pumpkin .isp-front, .isp-shape-pumpkin .isp-back { -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M46 18c1-7 4-13 10-16l3 4c-4 3-5 7-5 12 9-3 20-2 28 4 10 8 16 22 16 36 0 24-17 40-48 40S2 82 2 58c0-14 6-28 16-36 8-6 19-7 28-4z'/%3E%3C/svg%3E") center / 100% 100% no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M46 18c1-7 4-13 10-16l3 4c-4 3-5 7-5 12 9-3 20-2 28 4 10 8 16 22 16 36 0 24-17 40-48 40S2 82 2 58c0-14 6-28 16-36 8-6 19-7 28-4z'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }
.isp-shape-leaf .isp-front, .isp-shape-leaf .isp-back { -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M6 94C6 44 36 6 94 6c0 54-36 88-88 88z'/%3E%3C/svg%3E") center / 100% 100% no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M6 94C6 44 36 6 94 6c0 54-36 88-88 88z'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }
.isp-shape-sun .isp-front, .isp-shape-sun .isp-back { -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M50.0 1.0L59.8 13.3L74.5 7.6L76.9 23.1L92.4 25.5L86.7 40.2L99.0 50.0L86.7 59.8L92.4 74.5L76.9 76.9L74.5 92.4L59.8 86.7L50.0 99.0L40.2 86.7L25.5 92.4L23.1 76.9L7.6 74.5L13.3 59.8L1.0 50.0L13.3 40.2L7.6 25.5L23.1 23.1L25.5 7.6L40.2 13.3z'/%3E%3C/svg%3E") center / 100% 100% no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M50.0 1.0L59.8 13.3L74.5 7.6L76.9 23.1L92.4 25.5L86.7 40.2L99.0 50.0L86.7 59.8L92.4 74.5L76.9 76.9L74.5 92.4L59.8 86.7L50.0 99.0L40.2 86.7L25.5 92.4L23.1 76.9L7.6 74.5L13.3 59.8L1.0 50.0L13.3 40.2L7.6 25.5L23.1 23.1L25.5 7.6L40.2 13.3z'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }
.isp-shape-balloon .isp-front, .isp-shape-balloon .isp-back { -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M50 2c23 0 40 18 40 41 0 25-22 43-34 47l5 8H39l5-8C32 86 10 68 10 43 10 20 27 2 50 2z'/%3E%3C/svg%3E") center / 100% 100% no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M50 2c23 0 40 18 40 41 0 25-22 43-34 47l5 8H39l5-8C32 86 10 68 10 43 10 20 27 2 50 2z'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }
.isp-shape-pumpkin .isp-door, .isp-shape-leaf .isp-door, .isp-shape-sun .isp-door, .isp-shape-balloon .isp-door { filter: drop-shadow(0 2px 3px rgba(0,0,0,.25)); }
.isp-shape-pumpkin .isp-front, .isp-shape-leaf .isp-front, .isp-shape-sun .isp-front, .isp-shape-balloon .isp-front { border: 0; }
.isp-shape-pumpkin .isp-front { padding-top: .6em; }
.isp-shape-balloon .isp-front { padding-bottom: .9em; }
.isp-shape-star .isp-front, .isp-shape-heart .isp-front, .isp-shape-tree .isp-front, .isp-shape-gift .isp-front, .isp-shape-house .isp-front { border: 0; }
.isp-shape-tree .isp-front, .isp-shape-house .isp-front { padding-top: 1.6em; }

/* ---------- Numéros ---------- */
.isp-num {
    font-family: var(--isp-num-font); font-size: var(--isp-num-size); font-weight: var(--isp-num-weight); line-height: 1; color: var(--isp-num-color);
    -webkit-text-stroke: 1px var(--isp-num-outline); position: relative; z-index: 2; transition: opacity .3s;
}
.isp-num-shadow .isp-num { text-shadow: 0 1px 3px rgba(0,0,0,.45); }
.isp-num-center .isp-front { align-items: center; justify-content: center; }
.isp-num-tl .isp-front { align-items: flex-start; justify-content: flex-start; }
.isp-num-tr .isp-front { align-items: flex-start; justify-content: flex-end; }
.isp-num-bl .isp-front { align-items: flex-end; justify-content: flex-start; }
.isp-num-br .isp-front { align-items: flex-end; justify-content: flex-end; }
.isp-num-bottom .isp-front { align-items: flex-end; justify-content: center; }
.isp-numbg-pill .isp-num { background: var(--isp-num-bg); color: var(--isp-num-color); padding: .18em .55em; border-radius: 999px; text-shadow: none; }
.isp-numbg-circle .isp-num { background: var(--isp-num-bg); width: 1.9em; height: 1.9em; display: grid; place-items: center; border-radius: 50%; text-shadow: none; }
.isp-numbg-label .isp-num { background: var(--isp-num-bg); padding: .15em .45em; border-radius: 4px; text-shadow: none; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.isp-numbg-ribbon .isp-num { background: var(--isp-num-bg); padding: .15em .7em .15em .5em; clip-path: polygon(0 0, 100% 0, 88% 50%, 100% 100%, 0 100%); text-shadow: none; }
.isp-hide-numbers .isp-num { display: none; }

/* ---------- États ---------- */
.isp-door.is-locked, .isp-door.is-closed { cursor: default; }
.isp-door.is-closed .isp-front { filter: grayscale(.85) brightness(.85); }
.isp-hover-lift .isp-door.is-today:hover, .isp-hover-lift .isp-door.is-open:hover, .isp-hover-lift .isp-door.is-view:hover { transform: translateY(-3px); }
.isp-hover-glow .isp-door.is-today:hover .isp-front, .isp-hover-glow .isp-door.is-open:hover .isp-front { box-shadow: 0 0 0 3px var(--isp-today), 0 0 18px var(--isp-today); }
.isp-door.is-locked:hover { animation: isp-shake .35s; }
.isp-today-color .isp-door.is-today:not(.is-opened) .isp-front, .isp-today-both .isp-door.is-today:not(.is-opened) .isp-front { box-shadow: 0 0 0 3px var(--isp-today), 0 4px 14px rgba(0,0,0,.25); }
.isp-today-color .isp-door.is-today:not(.is-opened) .isp-num, .isp-today-both .isp-door.is-today:not(.is-opened) .isp-num { color: var(--isp-today); }
.isp-today-pulse .isp-door.is-today:not(.is-opened), .isp-today-both .isp-door.is-today:not(.is-opened) { animation: isp-pulse 2s ease-in-out infinite; }
@keyframes isp-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }
@keyframes isp-shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-3px); } 75% { transform: translateX(3px); } }

/* ---------- Animations d'ouverture ---------- */
.isp-anim-swing .isp-door.is-opened .isp-front { transform: rotateY(-108deg); }
.isp-anim-flip .isp-front { transform-origin: center; }
.isp-anim-flip .isp-door.is-opened .isp-front { transform: rotateY(-180deg); }
.isp-anim-fade .isp-door.is-opened .isp-front { opacity: 0; transform: scale(1.06); }
.isp-anim-zoom .isp-front { transform-origin: center; }
.isp-anim-zoom .isp-door.is-opened .isp-front { opacity: 0; transform: scale(.2) rotate(-10deg); }
.isp-anim-double .isp-front { background: none; border: 0; box-shadow: none; transform: none !important; }
.isp-anim-double .isp-leaf {
    display: block; position: absolute; top: 0; bottom: 0; width: 50%; background-color: var(--isp-door-bg); background-image: var(--isp-door-img); background-size: 200% 100%;
    border: var(--isp-border-w) solid var(--isp-door-border); transition: transform .8s cubic-bezier(.2,.7,.2,1); backface-visibility: hidden; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}
.isp-anim-double .isp-leaf-l { left: 0; transform-origin: left center; background-position: left center; }
.isp-anim-double .isp-leaf-r { right: 0; transform-origin: right center; background-position: right center; }
.isp-anim-double .isp-door.is-opened .isp-leaf-l { transform: rotateY(-108deg); }
.isp-anim-double .isp-door.is-opened .isp-leaf-r { transform: rotateY(108deg); }
.isp-anim-double .isp-door.is-opened .isp-num { opacity: 0; }
.isp-anim-double.isp-shape-rounded .isp-leaf-l { border-radius: var(--isp-radius) 0 0 var(--isp-radius); }
.isp-anim-double.isp-shape-rounded .isp-leaf-r { border-radius: 0 var(--isp-radius) var(--isp-radius) 0; }
.isp-door.is-loading .isp-front { opacity: .75; }

/* ---------- Participant ---------- */
.isp-who { text-align: center; font-size: .85rem; opacity: .8; margin: .75rem 0 0; }
.isp-link { background: none; border: 0; padding: 0; color: var(--isp-accent); text-decoration: underline; cursor: pointer; font: inherit; }

/* ---------- Fenêtre de contenu ---------- */
.isp-dialog {
    --isp-accent: #c0392b; --isp-dialog-bg: #fff;
    border: 0; border-radius: 14px; padding: 0; width: min(560px, calc(100vw - 24px)); max-height: calc(100vh - 32px); background: var(--isp-dialog-bg); color: #1f2937;
    box-shadow: 0 24px 70px rgba(0,0,0,.35);
}
.isp-dialog::backdrop { background: rgba(10,12,20,.6); backdrop-filter: blur(2px); }
.isp-dialog[open] { animation: isp-pop .32s cubic-bezier(.2,.8,.2,1.1); }
@keyframes isp-pop { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }
.isp-dlg-head { display: flex; align-items: center; gap: .75rem; padding: 1.1rem 1.25rem .4rem; border-top: 5px solid var(--isp-accent); border-radius: 14px 14px 0 0; }
.isp-dlg-title { margin: 0; font-size: 1.3rem; flex: 1; line-height: 1.25; }
.isp-dlg-close { border: 0; background: rgba(0,0,0,.06); width: 2rem; height: 2rem; border-radius: 50%; cursor: pointer; font-size: 1.2rem; line-height: 1; color: inherit; }
.isp-dlg-body { padding: .5rem 1.25rem 1.4rem; overflow: auto; max-height: calc(100vh - 140px); }
.isp-dlg-body > :first-child { margin-top: 0; }
.isp-note { background: rgba(0,0,0,.04); padding: .7rem .9rem; border-radius: 8px; }
.isp-note-lose { border-left: 4px solid #9ca3af; }
.isp-note-view { border-left: 4px solid var(--isp-accent); }
.isp-msg { background: #fff3cd; color: #664d03; border-radius: 8px; padding: .6rem .8rem; margin-bottom: .8rem; }
.isp-b-heading { margin: .2em 0 .5em; }
.isp-b-text { margin: 0 0 1rem; }
.isp-b-image { margin: 0 0 1rem; }
.isp-b-image img { display: block; max-width: 100%; height: auto; border-radius: 8px; margin-inline: auto; }
.isp-b-video { position: relative; aspect-ratio: 16 / 9; margin: 0 0 1rem; border-radius: 8px; overflow: hidden; background: #000; }
.isp-b-video iframe, .isp-b-video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.isp-b-divider { border: 0; border-top: 1px solid rgba(0,0,0,.12); margin: 1rem 0; }
.isp-b-code { border: 2px dashed var(--isp-accent); border-radius: 10px; padding: .9rem; text-align: center; margin: 0 0 1rem; }
.isp-code-label { font-size: .9rem; margin-bottom: .35rem; }
.isp-code-row { display: flex; gap: .5rem; justify-content: center; align-items: center; flex-wrap: wrap; }
.isp-code { font-size: 1.5rem; font-weight: 700; letter-spacing: .08em; background: rgba(0,0,0,.05); padding: .2em .5em; border-radius: 6px; color: inherit; user-select: all; }
.isp-copy, .isp-btn { display: inline-block; border: 0; border-radius: 8px; padding: .55em 1.1em; background: var(--isp-accent); color: #fff; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; }
.isp-copy:hover, .isp-btn:hover { filter: brightness(1.08); color: #fff; text-decoration: none; }
.isp-btn-secondary { background: transparent; color: var(--isp-accent); box-shadow: inset 0 0 0 2px var(--isp-accent); }
.isp-btn-secondary:hover { color: var(--isp-accent); }
.isp-code-valid { font-size: .8rem; opacity: .7; margin-top: .4rem; }
.isp-b-note { font-size: .9rem; opacity: .75; }
.isp-b-button { margin: 0 0 1rem; text-align: center; }

/* Formulaire */
.isp-form { display: grid; gap: .75rem; }
.isp-form p { margin: 0; }
.isp-form label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .2rem; }
.isp-form input[type=email], .isp-form input[type=text], .isp-form input[type=tel] { width: 100%; padding: .6rem .7rem; border: 1px solid #cbd5e1; border-radius: 8px; font: inherit; background: #fff; color: #111; }
.isp-form input:focus { outline: 2px solid var(--isp-accent); outline-offset: 1px; border-color: transparent; }
.isp-form .isp-check { display: flex; gap: .5rem; align-items: flex-start; font-weight: 400; font-size: .85rem; }
.isp-form .isp-check input { margin-top: .2rem; flex: none; }
.isp-form .isp-links { font-size: .8rem; }
.isp-form .isp-error { color: #b91c1c; font-size: .85rem; }
.isp-form .is-invalid { border-color: #b91c1c !important; }
.isp-form button[type=submit] { justify-self: start; }
.isp-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.isp-dialog .isp-btn[disabled] { opacity: .6; cursor: progress; }

/* Effets */
.isp-confetti { position: fixed; inset: 0; pointer-events: none; z-index: 2147483000; }
.isp-snow { position: absolute; inset: 0; pointer-events: none; z-index: 3; border-radius: inherit; }
.isp-toast { position: absolute; left: 50%; transform: translateX(-50%); bottom: -2.6rem; background: #111827; color: #fff; padding: .45rem .8rem; border-radius: 8px; font-size: .85rem; white-space: nowrap; z-index: 5; pointer-events: none; animation: isp-pop .2s; }

@media (prefers-reduced-motion: reduce) {
    .isp *, .isp *::before, .isp *::after, .isp-dialog { animation: none !important; transition: none !important; }
}

/* Mode débogage (Options › Avancé) */
.isp-test { margin: 0 0 1em; padding: .6em .9em; border: 1px solid #93c5fd; border-radius: 8px; background: #eff6ff; color: #1e3a8a; font-size: .9rem; line-height: 1.5; text-align: left; }
.isp-test strong { margin-right: .3em; }
.isp-test-choice { display: inline-flex; flex-wrap: wrap; gap: .4em 1em; align-items: center; margin-left: .6em; font-weight: 600; }
.isp-test-choice label { display: inline-flex; gap: .3em; align-items: center; cursor: pointer; font-weight: 600; }
.isp-debug { margin: 0 0 .8em; padding: .5em .8em; border: 1px dashed #b45309; border-radius: 6px; background: #fffbeb; color: #78350f; font: 12px/1.5 ui-monospace, Menlo, Consolas, monospace; text-align: left; }
.isp-debug-js { font-weight: 700; color: #b91c1c; }
.isp-debug-js.is-ok { color: #15803d; }
