/* Pages de contenu : gabarit article, menus déroulants et téléphones animés. S'appuie sur styles.css. */

/* ---------- Menu ---------- */
.pnav { align-items: center; }
.pdrop { position: relative; }
.pdrop summary { list-style: none; cursor: pointer; color: var(--h-muted); font-weight: 500; font-size: .93rem; display: inline-flex; align-items: center; gap: 6px; transition: color .15s; }
.pdrop summary::-webkit-details-marker { display: none; }
.pdrop summary::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .2s; }
.pdrop[open] summary { color: var(--h-fg); }
.pdrop[open] summary::after { transform: translateY(1px) rotate(225deg); }
.pdrop-menu {
  position: absolute; top: calc(100% + 18px); left: -18px; width: 340px; padding: 8px; display: grid; gap: 2px; z-index: 30;
  background: linear-gradient(#15130E, #15130E) padding-box, linear-gradient(160deg, rgba(227, 185, 91, .45), rgba(227, 185, 91, .08) 45%, rgba(255, 255, 255, .05)) border-box;
  border: 1px solid transparent; border-radius: 16px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .8);
  animation: dropIn .18s ease;
}
@keyframes dropIn { from { opacity: 0; transform: translateY(-6px); } }
.pdrop-menu a, .mnav-group a { display: grid; gap: 2px; padding: 10px 12px; border-radius: 10px; text-decoration: none; transition: background-color .15s; }
.pdrop-menu a:hover, .mnav-group a:hover { background: rgba(227, 185, 91, .09); }
.pdrop-menu b, .mnav-group b { font-weight: 600; font-size: .92rem; color: var(--h-fg); }
.pdrop-menu span, .mnav-group a span { font-size: .8rem; color: var(--h-muted); }
.mnav { display: none; position: relative; }
.mnav summary { list-style: none; cursor: pointer; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--h-line); display: grid; place-content: center; gap: 4px; }
.mnav summary::-webkit-details-marker { display: none; }
.mnav summary span { display: block; width: 18px; height: 1.5px; background: var(--h-fg); border-radius: 2px; }
.mnav-panel {
  position: fixed; left: 12px; right: 12px; top: calc(74px + env(safe-area-inset-top, 0px)); max-height: calc(100dvh - 96px); overflow: auto; padding: 10px; display: grid; gap: 10px; z-index: 40;
  background: #15130E; border: 1px solid rgba(227, 185, 91, .28); border-radius: 18px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .85);
}
.mnav-group { display: grid; gap: 2px; }
.mnav-group > span { font: 500 .68rem/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: #E3B95B; padding: 10px 12px 4px; }
@media (max-width: 860px) { .mnav { display: block; } .ppage .top .btn-primary { display: none; } .ppage .top .btn-ghost { display: inline-flex; } }

/* ---------- Héros ---------- */
.phero .wrap { padding-block: clamp(40px, 6vw, 80px) clamp(48px, 7vw, 96px); }
.phero.solo .wrap { grid-template-columns: minmax(0, 1fr); }
.phero.solo .hero-copy { max-width: 820px; margin-inline: auto; justify-items: center; text-align: center; }
.phero.solo .pill { justify-self: center; }
.phero.solo .hero-ctas, .phero.solo .hero-note, .phero.solo .crumbs { justify-content: center; }
.phero h1 { font-size: clamp(2.2rem, 5vw, 3.9rem); line-height: 1.02; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .82rem; color: var(--h-muted); }
.crumbs a { color: var(--h-muted); text-decoration: none; }
.crumbs a:hover { color: #E3B95B; }
.crumbs [aria-current] { color: var(--h-fg); }
.hero-note span::before { color: #E3B95B; }
.pstage { display: grid; justify-items: center; gap: 14px; min-width: 0; }
.pstage .phone { width: min(320px, 100%); }
.pstage-note { font-size: .78rem; color: var(--h-muted); }

/* ---------- Corps ---------- */
.pbody { display: grid; gap: clamp(48px, 7vw, 84px); padding-block: clamp(56px, 8vw, 104px); }
.pblock { display: grid; gap: 18px; min-width: 0; }
.pblock.prose { max-width: 760px; margin-inline: auto; width: 100%; }
.pblock.wide { max-width: 1100px; margin-inline: auto; width: 100%; }
.pblock h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); letter-spacing: -0.03em; }
.pblock.wide > h2 { text-align: center; margin-bottom: 8px; }
.pblock p { color: var(--muted); font-size: 1.06rem; line-height: 1.7; }
.pblock a { color: #E3B95B; text-underline-offset: 3px; }
.plist { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.plist li { position: relative; padding: 14px 0 14px 30px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 1.02rem; line-height: 1.55; }
.plist li::before { content: ""; position: absolute; left: 4px; top: 22px; width: 8px; height: 8px; border-radius: 2px; transform: rotate(45deg); background: linear-gradient(135deg, #F3E2B3, #C9973A); }
.plist b { color: var(--ink); font-weight: 600; }
.pcards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.pcards.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 860px) { .pcards.three { grid-template-columns: minmax(0, 1fr); } }
.psteps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
.pcard { display: grid; gap: 10px; align-content: start; padding: 24px; border-radius: 20px; min-width: 0; text-decoration: none; }
.pcard h3 { font-size: 1.08rem; }
.pcard p { color: var(--muted); font-size: .96rem; line-height: 1.55; }
.pcard a { color: #E3B95B; }
.pnext { position: relative; padding-right: 48px; }
.pnext .eyebrow { font-size: .66rem; }
.pnext .eyebrow::before, .pnext .eyebrow::after { display: none; }
.pnext .arrow { position: absolute; right: 22px; top: 24px; color: #E3B95B; transition: transform .2s; }
.pnext:hover .arrow { transform: translateX(4px); }
.pcallout { padding: 24px 26px; border-radius: 20px; display: grid; gap: 8px; background: linear-gradient(135deg, rgba(227, 185, 91, .12), rgba(227, 185, 91, .03)); border: 1px solid rgba(227, 185, 91, .3); }
.pcallout h3 { font-size: 1.1rem; color: #F3E2B3; }
.pcallout p { font-size: 1rem; }
.ptable-wrap { overflow-x: auto; border-radius: 18px; border: 1px solid var(--line); background: #14120E; }
.ptable { width: 100%; border-collapse: collapse; font-size: .96rem; min-width: 520px; }
.ptable th, .ptable td { padding: 15px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.ptable tr:last-child th, .ptable tr:last-child td { border-bottom: 0; }
.ptable thead th { font: 500 .72rem/1.2 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); background: #1A1711; }
.ptable thead th:nth-child(2) { color: #E3B95B; }
.ptable tbody th { font-weight: 600; color: var(--ink); width: 34%; }
.ptable td { color: var(--muted); }
.ptable td:nth-child(2) { color: var(--ink); }
.pblock .faq { max-width: none; }
.pnext-band { background: #0F0E0B; border-top: 1px solid var(--line); }

/* ---------- Téléphones animés ---------- */
.ph-anim .ph-amount { transition: color .3s; }
.ph-anim .ed { border-bottom: 1px dashed rgba(227, 185, 91, .55); cursor: default; }
.ph-anim .editing { color: #F3E2B3; background: rgba(227, 185, 91, .12); border: 1px solid #E3B95B; border-radius: 6px; padding: 1px 6px; min-width: 2ch; }
.ph-anim .editing::after { content: ""; display: inline-block; width: 2px; height: 1em; margin-left: 2px; vertical-align: -0.12em; background: #E3B95B; animation: caret .8s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.tick-up { animation: tickUp .9s ease; }
.tick-down { animation: tickDown .9s ease; }
@keyframes tickUp { 25% { color: #8BE8BC; text-shadow: 0 0 14px rgba(91, 209, 154, .55); } }
@keyframes tickDown { 25% { color: #FFA69C; text-shadow: 0 0 14px rgba(240, 118, 106, .5); } }
.spark-line { stroke-dasharray: 1; stroke-dashoffset: 1; }
.spark-fill { opacity: 0; }
.ph-anim.run .spark-line { animation: draw 1.6s ease forwards; }
.ph-anim.run .spark-fill { animation: fadeIn .9s ease .9s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadeIn { to { opacity: 1; } }
.bars .bar { transform-box: fill-box; transform-origin: bottom; transform: scaleY(0); }
.ph-anim.run .bars .bar { animation: grow .7s cubic-bezier(.2, .8, .2, 1) forwards; }
@keyframes grow { to { transform: scaleY(1); } }
.candles { height: 70px; }
.candles .candle { opacity: 0; }
.ph-anim.run .candles .candle { animation: fadeIn .35s ease forwards; }
.candles line { vector-effect: non-scaling-stroke; }
.ph-new { opacity: 0; transform: translateY(-8px); }
.ph-anim.run .ph-new { animation: newTx .6s ease 1.6s forwards; }
@keyframes newTx { to { opacity: 1; transform: none; } }
.ph-alloc { display: flex; height: 8px; border-radius: 999px; overflow: hidden; background: #1E1B14; }
.ph-alloc span { display: block; height: 100%; width: 0; transition: width 1.2s cubic-bezier(.2, .8, .2, 1); }
.ph-anim.run .ph-alloc span { width: var(--w); }
.ph-ob { display: grid; gap: 3px; }
.ph-ob span { display: block; height: 7px; border-radius: 3px; background: #15130F; overflow: hidden; }
.ph-ob i { display: block; height: 100%; width: 30%; margin-left: auto; border-radius: 3px; transition: width .9s ease; }
.ph-ob .ask i { background: rgba(240, 118, 106, .55); }
.ph-ob .bid i { background: rgba(91, 209, 154, .55); }
.sq { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 8px; }
.live-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #F0766A; animation: caret 1.2s steps(1) infinite; }
.ph-anim .ph-grid div { font-size: .72rem; }
@media (prefers-reduced-motion: reduce) {
  .spark-line { stroke-dashoffset: 0; } .spark-fill, .candles .candle, .ph-new { opacity: 1; transform: none; }
  .bars .bar { transform: none; } .ph-alloc span { width: var(--w); }
}

/* Ligne de réassurance sous les boutons */
.hero-note { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: .88rem; color: var(--h-muted); }
.hero-note span::before { content: "✓ "; color: #E3B95B; font-weight: 700; }
.pbody { padding-top: clamp(40px, 5vw, 72px); }
.phero h1 em { font-family: "Instrument Serif", Georgia, serif; font-style: italic; font-weight: 400; }
