/* ==========================================================================
   Page Exemples : fiches détaillées + fenêtre d'aperçu en direct
   ========================================================================== */
.filter-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 1.6rem; }
.demos { padding-bottom: clamp(2rem, 4vw, 3rem); }
.demo-detail { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: clamp(1.8rem, 4.5vw, 4.4rem); align-items: center; padding: clamp(2.6rem, 6vw, 4.6rem) 0; border-bottom: 1px solid var(--line); scroll-margin-top: 5.5rem; }
.demo-detail:last-child { border-bottom: 0; }
.demo-detail:nth-of-type(even) .demo-visual { order: 2; }
.demo-detail[hidden] { display: none; }
.demo-visual { position: relative; padding-bottom: .4rem; }
.demo-visual .browser { transition: transform .5s var(--ease); }
.demo-visual:hover .browser { transform: translateY(-4px); }
.demo-visual .browser-screen img { transition: opacity .35s; }
.demo-visual .browser-screen img.swap { opacity: 0; }
.thumbs { display: flex; gap: .6rem; margin-top: 1rem; }
.thumb { flex: 0 1 22%; padding: 0; border-radius: 10px; overflow: hidden; border: 2px solid transparent; background: var(--paper-3); opacity: .6; transition: opacity .2s, border-color .2s, transform .2s; }
.thumb img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.thumb:hover { opacity: 1; transform: translateY(-2px); } .thumb.on { opacity: 1; border-color: var(--c1); }
.phone-float { position: absolute; right: -2.2%; top: 30%; width: clamp(88px, 17%, 138px); transform: rotate(4deg); z-index: 3; filter: drop-shadow(0 24px 30px rgba(13, 18, 32, .35)); pointer-events: none; }
.demo-info .badges { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; }
.demo-kicker { font: 700 .74rem var(--ff-head); letter-spacing: .13em; text-transform: uppercase; color: var(--c1); margin: 0 0 .7rem; }
.demo-info h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); margin-bottom: .5em; } .demo-info h2 em { display: block; font-size: .78em; color: var(--muted); }
.demo-info .lead { font-size: 1.08rem; margin-bottom: 1.2rem; }
.demo-info .ticks { font-size: .96rem; }
.lbl { display: block; font: 700 .72rem var(--ff-head); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: .55rem; }
.demo-modules, .demo-pages { margin-top: 1.3rem; }
.demo-price { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.5rem; padding: 1.1rem 1.3rem; border-radius: 20px; background: var(--card); border: 1px solid var(--line); }
.demo-price .lbl { margin-bottom: .2rem; } .demo-price strong { display: block; font: 800 1.8rem/1 var(--ff-head); letter-spacing: -.04em; } .demo-price small { display: block; color: var(--muted); font-size: .78rem; margin-top: .25rem; }
.demo-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.4rem; }
.demo-more { display: contents; }
.demo-more-btn { display: none; }
@media (max-width: 700px) {
  .demo-detail { padding: 2.2rem 0; gap: 1.4rem; }
  .demo-info { display: flex; flex-direction: column; }
  .demo-info .lead { margin-bottom: 0; }
  .demo-info .demo-actions { order: 1; margin-top: 1rem; }
  .demo-info .demo-actions .btn { flex: 1 1 auto; justify-content: center; }
  .demo-more-btn { order: 2; display: flex; align-items: center; justify-content: space-between; gap: .6rem; width: 100%; margin-top: .9rem; padding: .85rem 1rem; border-radius: 14px; border: 1px solid var(--line-2); background: var(--card); font: 600 .95rem var(--ff-head); color: var(--ink); cursor: pointer; }
  .demo-more-btn .i { transition: transform .25s var(--ease); }
  .demo-detail.open .demo-more-btn .i { transform: rotate(180deg); }
  .demo-info .demo-more { order: 3; display: none; }
  .demo-detail.open .demo-more { display: block; }
  .demo-visual .thumbs { display: none; }
}
.demo-tips { margin-top: 1.3rem; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.demo-tips summary { cursor: pointer; padding: .9rem 1.1rem; font: 600 .95rem var(--ff-head); list-style: none; display: flex; justify-content: space-between; align-items: center; } .demo-tips summary::-webkit-details-marker { display: none; }
.demo-tips summary::after { content: "+"; font-size: 1.3rem; transition: transform .3s var(--ease); } .demo-tips[open] summary::after { transform: rotate(45deg); }
.demo-tips ol { margin: 0; padding: 0 1.1rem 1rem 2.4rem; font-size: .92rem; color: #38415a; } .demo-tips li { margin-bottom: .45rem; }
.demo-tips .codes { padding: 0 1.1rem 1.1rem; }
.page-pill { display: inline-flex; align-items: center; gap: .4rem; padding: .42rem .85rem; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; font-size: .86rem; font-weight: 500; text-decoration: none; transition: border-color .2s, background .2s; }
.page-pill:hover { border-color: var(--ink); background: var(--paper-2); } .page-pill .i { width: .9rem; height: .9rem; color: var(--muted); }
.code-chip { display: inline-flex; margin: 0 .35rem .35rem 0; padding: .3rem .65rem; border-radius: 8px; border: 1px dashed var(--line-2); background: var(--paper-2); font: 600 .84rem var(--ff-mono); color: var(--ink-2); transition: background .2s, border-color .2s; }
.code-chip:hover { background: var(--sun); border-color: var(--ink); }
@media (max-width: 960px) { .demo-detail { grid-template-columns: 1fr; } .demo-detail:nth-of-type(even) .demo-visual { order: 0; } .phone-float { right: 0; } }

/* fenêtre d'aperçu */
.dm-box { width: min(100%, 1320px); height: min(100%, 940px); display: flex; flex-direction: column; overflow: hidden; background: var(--ink); color: #fff; border-radius: var(--r-l); }
.dm-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem 1.4rem; padding: 1rem 4.2rem 1rem 1.4rem; border-bottom: 1px solid var(--line-inv); }
.dm-title strong { display: block; font: 700 1.15rem var(--ff-head); line-height: 1.1; } .dm-title span { font-size: .84rem; color: #98a1b8; }
.dm-controls { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.dm-head .seg { background: rgba(255, 255, 255, .07); border-color: var(--line-inv); } .dm-head .seg span { color: #c3c9da; display: inline-flex; align-items: center; gap: .4rem; padding: .5rem .9rem; } .dm-head .seg input:checked + span { background: #fff; color: var(--ink); }
.dm-head .seg .i { width: 1rem; height: 1rem; }
.dm-head .btn-ghost { --fg: #fff; --bd: rgba(255, 255, 255, .28); } .dm-head .btn-ghost:hover { --bd: #fff; }
.dm-pages { display: flex; gap: .4rem; overflow-x: auto; padding: .7rem 1.4rem; border-bottom: 1px solid var(--line-inv); scrollbar-width: none; } .dm-pages::-webkit-scrollbar { display: none; }
.dm-pages button { flex: none; padding: .45rem .95rem; border-radius: 999px; border: 1px solid var(--line-inv); background: transparent; color: #c3c9da; font: 600 .84rem var(--ff-head); transition: background .2s, color .2s; }
.dm-pages button:hover { color: #fff; border-color: rgba(255, 255, 255, .4); } .dm-pages button.on { background: #fff; color: var(--ink); border-color: #fff; }
.dm-stage { position: relative; flex: 1; min-height: 0; overflow: hidden; display: flex; justify-content: center; align-items: flex-start; padding: 1rem; background: radial-gradient(600px 300px at 50% 0%, rgba(43, 57, 245, .25), transparent 70%), #0a0e1a; }
.dm-frame { position: relative; transform-origin: top center; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7); flex: none; }
.dm-frame iframe { display: block; width: 100%; height: 100%; border: 0; background: #fff; }
.dm-frame.is-mobile { border-radius: 28px; box-shadow: 0 0 0 8px #1a2138, 0 30px 60px -20px rgba(0, 0, 0, .7); }
.dm-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem 1.5rem; padding: .9rem 1.4rem; border-top: 1px solid var(--line-inv); background: var(--ink-2); }
.dm-tip { flex: 1; min-width: 14rem; } .dm-tip .lbl { color: var(--orange-2); margin-bottom: .15rem; } .dm-tip p { margin: 0; font-size: .92rem; color: #dfe3ef; }
.dm-tipnav { display: flex; align-items: center; gap: .6rem; } .dm-tipnav .btn-ghost { --fg: #fff; --bd: rgba(255, 255, 255, .28); }
@media (max-width: 640px) { .dm-head { padding-right: 3.6rem; } .dm-head .seg span { padding: .45rem .6rem; font-size: .8rem; } .dm-head .seg .i { display: none; } }

@media (max-width: 640px) { .phone-float { top: auto; bottom: 5.2rem; width: 19%; right: 1%; } }

/* un site d'exemple par formule */
.fx-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 2.4vw, 1.6rem); }
.fx-card { display: grid; grid-template-columns: minmax(0, 1fr); background: var(--card); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; box-shadow: var(--sh-1); }
.fx-card:first-child { grid-column: 1 / -1; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; }
.fx-shot { padding: 1.1rem 1.1rem 0; background: linear-gradient(160deg, var(--c1), var(--c2)); } .fx-card:first-child .fx-shot { padding: 1.4rem; height: 100%; display: grid; align-items: center; }
.fx-shot .browser { border-radius: 12px 12px 0 0; box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .5); } .fx-card:first-child .fx-shot .browser { border-radius: 12px; }
.fx-body { padding: 1.3rem 1.4rem 1.4rem; }
.fx-top { display: flex; justify-content: space-between; align-items: baseline; gap: .8rem; flex-wrap: wrap; }
.fx-pack { font: 700 .74rem var(--ff-head); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.fx-price { font: 800 1.5rem/1 var(--ff-head); letter-spacing: -.03em; } .fx-price small { font: 600 .8rem var(--ff); letter-spacing: 0; color: var(--muted); }
.fx-card h3 { margin: .5rem 0 .2rem; font-size: 1.35rem; } .fx-card h3 small { display: block; font: 500 .86rem var(--ff); color: var(--muted); margin-top: .2rem; }
.fx-what { font-weight: 600; margin: .4rem 0 .8rem; } .fx-card .ticks { font-size: .92rem; margin-bottom: 1.1rem; }
.fx-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
@media (max-width: 900px) { .fx-grid, .fx-card:first-child { grid-template-columns: minmax(0, 1fr); } .fx-card:first-child .fx-shot { padding: 1.1rem 1.1rem 0; } .fx-card:first-child .fx-shot .browser { border-radius: 12px 12px 0 0; } }

