/* ============================================================
   INFO LUMIÈRE — page « Pour les praticiens » et sa démonstration
   ------------------------------------------------------------
   Construit sur styles.css + pages.css + landing.css : aucune règle
   globale n'est modifiée ici, tout est préfixé `pd-` (page/démo),
   `pa-` (écran praticien simulé), `pc-` (écran client simulé) ou
   `pm-` (carte de séance simulée).

   CHARTE : bleu nuit, ivoire, or champagne — plus l'AZUR, que la charte
   du CRM a ajouté pour les jauges et les badges informatifs, jamais pour
   un bouton ni un aplat. L'azur n'existe pas dans styles.css : il est
   défini ici, au niveau de la page, pour ne rien changer ailleurs.

   MOUVEMENT : tout ce qui bouge est neutralisé sous
   `prefers-reduced-motion: reduce` (bloc dédié en fin de fichier) ; le
   moteur JS fait de même pour les animations qu'il pilote.
   ============================================================ */

:root {
  --azur-300: #bcd6f4;
  --azur-400: #8fb9ec;          /* charte CRM, ajouté en M2 */
  --azur-500: #5f97d8;
  --azur-line: rgba(143,185,236,.38);
  --azur-glow: rgba(143,185,236,.14);

  /* Papier ivoire : thème clair de l'espace patient du CRM. */
  --paper: #f6f0e4;
  --paper-2: #fffaf2;
  --paper-line: rgba(11,36,71,.14);
  --ink: #0b2447;
  --ink-mut: #4a5b78;           /* 6,6:1 sur --paper-2 */
  --ink-gold: #7d5f27;          /* or lisible sur ivoire : 5,3:1 */
  --ink-azur: #2f6aa8;          /* 5,4:1 */
  --sage-400: #a6d3b5;
  --amber-400: #f0c97f;
}

.pd-skip { position: absolute; left: -9999px; top: 8px; z-index: 300; background: var(--gold-500); color: var(--ink-on-gold); padding: 10px 16px; border-radius: 2px; font-size: 14px; }
.pd-skip:focus { left: 8px; }
.pd-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Héros ---------- */
.pd-hero { padding-bottom: 40px; }
.pd-hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.pd-hero h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(36px, 4.6vw, 64px); line-height: 1.02; color: var(--warm-100); margin: 22px 0 0; letter-spacing: -.015em; text-wrap: balance; }
@media (max-width: 900px) { .pd-hero-grid { grid-template-columns: 1fr; } }
@media (max-width: 600px) {
  .pd-hero { padding-top: 110px; }
  .pd-hero h1 { font-size: clamp(33px, 9.4vw, 46px); }
  .pd-hero .lhero-cta .btn { width: 100%; justify-content: center; }
}

/* L'aperçu du héros : deux cartes, deux perspectives, une seule histoire. */
.pd-teaser { position: relative; min-height: 360px; }
.pd-tz { position: absolute; width: min(78%, 330px); border-radius: 14px; padding: 0 0 16px; box-shadow: 0 40px 90px -36px rgba(0,0,0,.75); }
.pd-tz .tz-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; border-radius: 14px 14px 0 0; }
.pd-tz .tz-bar i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .35; }
.pd-tz .tz-bar span { margin-left: auto; opacity: .8; }
.pd-tz .tz-title { font-family: var(--serif); font-size: 22px; padding: 14px 16px 8px; line-height: 1.1; }
.pd-tz--pro { left: 0; top: 0; background: var(--night-700); border: 1px solid var(--gold-line); color: var(--warm-100); animation: pd-float 9s ease-in-out infinite; }
.pd-tz--pro .tz-bar { background: var(--night-900); color: var(--gold-400); }
.pd-tz--client { right: 0; bottom: 0; background: var(--paper); border: 1px solid var(--paper-line); color: var(--ink); animation: pd-float 9s ease-in-out -4.5s infinite; }
.pd-tz--client .tz-bar { background: #ece3d0; color: var(--ink-gold); }
.tz-row { display: flex; align-items: center; gap: 10px; padding: 9px 16px; font-size: 13px; border-top: 1px solid rgba(214,184,127,.14); }
.tz-row b { font-weight: 500; }
.tz-row em { margin-left: auto; font-style: normal; font-size: 11px; color: var(--warm-mut); }
.tz-row em.tz-ok { color: var(--sage-400); }
.tz-ico { width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--gold-line); flex: 0 0 18px; position: relative; }
.tz-ico::after { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: var(--gold-500); opacity: .8; }
.tz-lock::after { border-radius: 2px; inset: 5px 5px 4px; }
.tz-card { margin: 8px 16px 0; padding: 12px 14px; border-radius: 10px; background: var(--paper-2); border: 1px solid var(--paper-line); }
.tz-card small { display: block; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-azur); margin-bottom: 4px; }
.tz-card b { font-weight: 500; font-size: 14px; }
.tz-card--soft { background: transparent; border-style: dashed; }
@keyframes pd-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (max-width: 900px) { .pd-teaser { min-height: 330px; max-width: 460px; margin: 0 auto; width: 100%; } }
@media (max-width: 480px) { .pd-teaser { min-height: 392px; } .pd-tz { width: 84%; } .pd-tz .tz-title { font-size: 20px; } }

/* ---------- Sections ---------- */
.pd-moments { padding-top: clamp(50px, 7vw, 90px); }
.pd-demo-sec { padding-top: clamp(70px, 9vw, 120px); padding-bottom: clamp(60px, 8vw, 110px); }
.pd-demo-sec .sec-head { margin-bottom: clamp(26px, 4vw, 44px); }
.pd-demo-note { margin-top: 22px; font-size: 13px; color: var(--warm-mut); text-align: center; }
.pd-nojs { padding: 24px; border: 1px dashed var(--gold-line); border-radius: 12px; color: var(--warm-200); }
.pd-fine { margin-top: 30px; font-size: 13px; color: var(--warm-mut); max-width: 70ch; }
.pd-benefits { margin-top: 40px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .pd-benefits { grid-template-columns: 1fr; } }

.pd-who { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 40px; }
.pd-who-card { padding: 26px 24px; border: 1px solid rgba(214,184,127,.14); border-radius: 12px; background: var(--night-700); }
.pd-who-card h3 , .pd-who-card [data-nv="3"]{ font-family: var(--serif); font-size: 24px; font-weight: 500; color: var(--warm-100); margin-bottom: 10px; line-height: 1.1; }
.pd-who-card p { font-size: 14px; color: var(--warm-mut); }
@media (max-width: 1000px) { .pd-who { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .pd-who { grid-template-columns: 1fr; } }

/* h3 sous un h2 (ordre des titres) : mêmes styles que les h4 des cartes de club.html. */
.pd-moments .hstep h3 , .pd-moments .hstep [data-nv="3"]{ font-size: 17px; color: var(--warm-100); margin: 14px 0 8px; font-weight: 500; }
.pd-benefits .cbenefit h3 , .pd-benefits .cbenefit [data-nv="3"]{ font-size: 15.5px; color: var(--warm-100); font-weight: 500; margin-bottom: 6px; }

/* ---------- Offres envisagées ---------- */
.pd-offers { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 20px; margin-top: 44px; align-items: stretch; }
.pd-offer { padding: 30px 28px; border: 1px solid rgba(214,184,127,.18); border-radius: 14px; background: var(--night-700); display: flex; flex-direction: column; gap: 10px; }
.pd-offer--main { border-color: var(--gold-500); background: radial-gradient(130% 90% at 85% 0%, var(--gold-glow), transparent 60%), var(--night-700); }
.pd-offer-tag { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-400); font-weight: 500; }
.pd-offer h3 , .pd-offer [data-nv="3"]{ font-family: var(--serif); font-weight: 500; font-size: 28px; color: var(--warm-100); line-height: 1.1; }
.pd-offer-amount { font-size: 15px; color: var(--warm-200); }
.pd-offer-amount b { font-family: var(--serif); font-size: 44px; font-weight: 500; color: var(--gold-300); line-height: 1; margin-right: 4px; }
.pd-offer ul { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 8px; font-size: 14px; color: var(--warm-200); }
.pd-offer li { padding-left: 22px; position: relative; }
.pd-offer li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 9px; height: 5px; border-left: 1.5px solid var(--gold-500); border-bottom: 1.5px solid var(--gold-500); transform: rotate(-45deg); }
.pd-offer-note { margin-top: auto; padding-top: 14px; font-size: 12.5px; color: var(--warm-mut); border-top: 1px solid rgba(214,184,127,.12); }
@media (max-width: 1000px) { .pd-offers { grid-template-columns: 1fr; } }

/* ---------- Questions ---------- */
.pd-faq-wrap { max-width: 900px; }
.pd-faq { margin-top: 36px; border-top: 1px solid rgba(214,184,127,.16); }
.pd-faq details { border-bottom: 1px solid rgba(214,184,127,.16); }
.pd-faq summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; font-size: 17px; color: var(--warm-100); position: relative; min-height: 44px; }
.pd-faq summary::-webkit-details-marker { display: none; }
.pd-faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 9px; height: 9px; margin-top: -7px; border-right: 1.5px solid var(--gold-500); border-bottom: 1.5px solid var(--gold-500); transform: rotate(45deg); transition: transform .35s var(--ease); }
.pd-faq details[open] summary::after { transform: rotate(225deg); margin-top: -2px; }
.pd-faq summary:focus-visible { outline: 2px solid var(--gold-400); outline-offset: 2px; }
.pd-faq p { padding: 0 0 22px; color: var(--warm-mut); max-width: 64ch; font-size: 15px; }

/* ---------- Contact ---------- */
.pd-contact-card { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(28px, 5vw, 64px); align-items: center; padding: clamp(30px, 5vw, 60px); border: 1px solid var(--gold-line); border-radius: 18px; background: radial-gradient(90% 120% at 100% 0%, var(--gold-glow), transparent 60%), var(--night-700); }
.pd-contact-card h2 { font-size: clamp(30px, 4vw, 50px); margin: 18px 0 14px; }
.pd-contact-actions { display: flex; flex-direction: column; gap: 12px; align-items: stretch; }
.pd-contact-actions .btn { justify-content: center; }
.pd-contact-addr { text-align: center; font-size: 14px; color: var(--warm-200); word-break: break-all; }
.pd-copied { display: block; min-height: 1.3em; margin-top: 4px; font-size: 12.5px; color: var(--sage-400); }
.pd-contact-note { text-align: center; font-size: 12.5px; color: var(--warm-mut); }
@media (max-width: 860px) { .pd-contact-card { grid-template-columns: 1fr; } }

/* ============================================================
   LA DÉMONSTRATION
   ============================================================ */
.pd-root { min-height: 200px; }
.pd { --pd-sticky: 124px; display: grid; gap: 18px 24px; grid-template-columns: minmax(280px, 320px) minmax(0, 1fr);
  grid-template-areas: "scn device" "steps device" "coach device" "actions device"; grid-template-rows: auto auto auto 1fr; align-items: start; }
.pd-scn { grid-area: scn; }
.pd-steps { grid-area: steps; }
.pd-coach { grid-area: coach; }
.pd-actions { grid-area: actions; }
.pd-device { grid-area: device; position: sticky; top: var(--pd-sticky); }

/* Choix du scénario */
.pd-scn { display: grid; gap: 8px; }
.pd-scn-label { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--warm-mut); }
.pd-scn-row { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 4px; border: 1px solid var(--gold-line); border-radius: 10px; background: var(--night-900); }
.pd-scn button { padding: 10px 8px; border-radius: 7px; font-size: 12.5px; line-height: 1.25; color: var(--warm-200); min-height: 44px; transition: background-color .3s, color .3s; text-align: center; }
.pd-scn button[aria-pressed="true"] { background: rgba(214,184,127,.16); color: var(--gold-300); }
.pd-scn button small { display: block; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--azur-400); margin-top: 2px; }
.pd-scn button:hover { color: var(--warm-100); }

/* Liste des étapes */
.pd-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; counter-reset: pds; }
.pd-steps li { position: relative; }
.pd-step { width: 100%; display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 9px; text-align: left; font-size: 13.5px; color: var(--warm-mut); min-height: 44px; transition: background-color .3s, color .3s; }
.pd-step .n { flex: 0 0 26px; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--gold-line); display: grid; place-items: center; font-size: 11px; font-weight: 500; color: var(--gold-400); transition: background-color .35s var(--ease), color .35s, border-color .35s, transform .35s var(--ease); }
.pd-step[disabled] { opacity: .45; cursor: default; }
.pd-step:not([disabled]):hover { background: rgba(214,184,127,.06); color: var(--warm-100); }
.pd-step.is-done .n { background: rgba(214,184,127,.18); }
.pd-step.is-done .n::before { content: ""; width: 9px; height: 5px; border-left: 1.6px solid var(--gold-400); border-bottom: 1.6px solid var(--gold-400); transform: rotate(-45deg) translate(1px, -1px); }
.pd-step.is-done .n span { display: none; }
.pd-step[aria-current="step"] { background: rgba(214,184,127,.12); color: var(--warm-100); }
.pd-step[aria-current="step"] .n { background: linear-gradient(100deg, var(--gold-400), var(--gold-500)); color: var(--ink-on-gold); border-color: transparent; transform: scale(1.08); }
.pd-step:focus-visible, .pd-scn button:focus-visible, .pd-btn:focus-visible { outline: 2px solid var(--gold-400); outline-offset: 2px; }

/* Le commentaire de l'étape */
.pd-coach { padding: 20px 20px 18px; border: 1px solid var(--gold-line); border-radius: 14px; background: radial-gradient(120% 120% at 100% 0%, var(--gold-glow), transparent 60%), var(--night-700); }
.pd-coach-n { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-400); }
.pd-coach h3 , .pd-coach [data-nv="3"]{ font-family: var(--serif); font-weight: 500; font-size: 26px; line-height: 1.08; color: var(--warm-100); margin: 8px 0 8px; }
.pd-coach p { font-size: 14px; color: var(--warm-200); }
.pd-coach .pd-bar { height: 3px; border-radius: 2px; background: rgba(214,184,127,.16); margin-top: 16px; overflow: hidden; }
.pd-coach .pd-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold-500), var(--azur-400)); transition: width .6s var(--ease); }
.pd-coach-restart { display: none; margin-top: 10px; }
.pd-free { margin-top: 14px; padding: 10px 12px; border-radius: 9px; border: 1px dashed var(--azur-line); background: var(--azur-glow); font-size: 12.5px; color: var(--warm-100); }
.pd-free button { margin-top: 8px; color: var(--azur-300); text-decoration: underline; text-underline-offset: 3px; min-height: 32px; font-size: 12.5px; }

/* Boutons de guidage */
.pd-actions { display: grid; gap: 10px; }
.pd-actions-row { display: grid; grid-template-columns: auto 1fr; gap: 10px; }
.pd-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 20px; border-radius: 3px; font-size: 14px; font-weight: 500; letter-spacing: .02em; transition: transform .35s var(--ease), box-shadow .35s, background-color .3s, border-color .3s, opacity .3s; text-align: center; line-height: 1.25; }
.pd-btn--gold { background: linear-gradient(100deg, var(--gold-400), var(--gold-500)); color: var(--ink-on-gold); box-shadow: 0 10px 30px -12px var(--gold-glow); }
.pd-btn--gold:hover { transform: translateY(-2px); box-shadow: 0 18px 44px -14px rgba(214,184,127,.45); }
.pd-btn--ghost { border: 1px solid var(--gold-line); color: var(--warm-100); }
.pd-btn--ghost:hover { border-color: var(--gold-500); background: rgba(214,184,127,.06); }
.pd-btn[disabled] { opacity: .4; pointer-events: none; }
.pd-btn--text { min-height: 40px; color: var(--warm-mut); font-size: 13px; padding: 8px 10px; }
.pd-btn--text:hover { color: var(--gold-300); }
.pd-btn .arr { transition: transform .4s var(--ease); }
.pd-btn:hover .arr { transform: translateX(4px); }

/* ---------- L'appareil ---------- */
.pd-device { container-type: inline-size; container-name: pdd; border: 1px solid var(--gold-line); border-radius: 20px; background: var(--night-900); box-shadow: 0 60px 140px -50px rgba(0,0,0,.8), 0 0 0 1px rgba(214,184,127,.05) inset; overflow: hidden; transition: border-color .6s var(--ease), box-shadow .6s var(--ease); }
.pd[data-world="client"] .pd-device { border-color: var(--azur-line); box-shadow: 0 60px 140px -50px rgba(0,0,0,.8), 0 0 80px -30px var(--azur-glow); }
.pd-ribbon { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 14px; background: #131f35; border-bottom: 1px solid rgba(214,184,127,.16); }
.pd-sim { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--copper-400); font-weight: 500; }
.pd-sim::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--copper-400); animation: pd-pulse 2.4s ease-in-out infinite; }
.pd-sim-note { font-size: 12px; color: var(--warm-mut); }
.pd-ribbon-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.pd-persp { display: inline-grid; grid-template-columns: 1fr 1fr; padding: 3px; border: 1px solid var(--gold-line); border-radius: 999px; background: var(--night-900); position: relative; }
.pd-persp button { position: relative; z-index: 1; padding: 8px 14px; font-size: 12px; border-radius: 999px; color: var(--warm-mut); min-height: 36px; transition: color .35s; white-space: nowrap; }
.pd-persp button[aria-pressed="true"] { color: var(--ink-on-gold); }
.pd-persp::before { content: ""; position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px); border-radius: 999px; background: linear-gradient(100deg, var(--gold-400), var(--gold-500)); transition: transform .6s var(--ease); }
.pd[data-world="client"] .pd-persp::before { transform: translateX(100%); background: linear-gradient(100deg, var(--azur-300), var(--azur-400)); }
.pd-persp button:focus-visible { outline: 2px solid var(--gold-300); outline-offset: 1px; }
.pd-persp button.bump { animation: pd-bump .7s var(--ease); }
@keyframes pd-bump { 0% { transform: scale(1); } 35% { transform: scale(1.14); box-shadow: 0 0 0 6px var(--azur-glow); } 100% { transform: scale(1); } }
.pd-fs { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 8px; border: 1px solid var(--gold-line); color: var(--warm-200); }
.pd-fs:hover { border-color: var(--gold-500); color: var(--gold-300); }
.pd-fs svg { width: 16px; height: 16px; }
.pd-fs[hidden] { display: none; }
@keyframes pd-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

.pd-screen { position: relative; display: grid; min-height: 640px; --rx: 50%; --ry: 50%; --rr: 1400px; overflow: hidden; }
.pd-world { grid-area: 1 / 1; min-width: 0; position: relative; }
.pd-world[hidden] { display: none; }
.pd-world--pro { background: var(--night-800); color: var(--warm-200); --warm-mut: rgba(238,231,214,.76); }  /* texte secondaire : 4,5:1 minimum sur les cartes les plus claires */
.pd-world--client { background: var(--paper); color: var(--ink); }
.pd-world.is-entering { z-index: 3; animation: pd-reveal .95s cubic-bezier(.65, 0, .2, 1) both; }
.pd-world.is-leaving { z-index: 1; animation: pd-recede .95s cubic-bezier(.65, 0, .2, 1) both; }
@keyframes pd-reveal { from { clip-path: circle(0px at var(--rx) var(--ry)); } to { clip-path: circle(var(--rr) at var(--rx) var(--ry)); } }
@keyframes pd-recede { from { filter: none; transform: none; } to { filter: brightness(.7); transform: scale(.985); } }
.pd-ripple { position: absolute; z-index: 4; left: var(--rx); top: var(--ry); width: 24px; height: 24px; margin: -12px 0 0 -12px; border-radius: 50%; border: 2px solid var(--gold-300); pointer-events: none; animation: pd-ring .95s cubic-bezier(.65, 0, .2, 1) both; }
@keyframes pd-ring { from { transform: scale(1); opacity: .9; } to { transform: scale(calc(var(--rr) / 12)); opacity: 0; } }
.pd-enter { animation: pd-in .55s var(--ease) both; }
.pd-enter.back { animation-name: pd-in-back; }
.pd-enter [data-i] { animation: pd-in .6s var(--ease) both; animation-delay: calc(var(--i, 0) * 70ms + 60ms); }
@keyframes pd-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes pd-in-back { from { opacity: 0; transform: translateX(-18px); } to { opacity: 1; transform: none; } }

/* Marqueur de pas guidé : un anneau doux autour de la prochaine action. */
.pd-cue { position: relative; }
.pd-cue::after { content: ""; position: absolute; inset: -4px; border-radius: inherit; border: 1.5px solid var(--gold-400); opacity: 0; pointer-events: none; animation: pd-cue 2.6s ease-out infinite; }
.pc .pd-cue::after { border-color: var(--ink-azur); }
@keyframes pd-cue { 0% { opacity: .9; transform: scale(.98); } 70%, 100% { opacity: 0; transform: scale(1.06); } }

/* Toasts, fenêtre de confirmation, projectile du partage */
.pd-toast { position: absolute; left: 50%; bottom: 14px; z-index: 6; transform: translate(-50%, 20px); opacity: 0; max-width: calc(100% - 32px); padding: 11px 18px; border-radius: 999px; background: var(--night-900); color: var(--warm-100); border: 1px solid var(--gold-line); font-size: 13px; box-shadow: 0 20px 50px -20px rgba(0,0,0,.8); transition: opacity .4s var(--ease), transform .4s var(--ease); pointer-events: none; text-align: center; }
.pd-toast.on { opacity: 1; transform: translate(-50%, 0); }
.pd-modal { position: absolute; inset: 0; z-index: 7; display: grid; place-items: center; padding: 20px; background: rgba(8,14,26,.62); backdrop-filter: blur(3px); animation: pd-fade .3s var(--ease) both; }
.pd-modal-card { width: min(440px, 100%); padding: 26px 24px 22px; border-radius: 16px; background: var(--night-700); border: 1px solid var(--gold-line); color: var(--warm-200); box-shadow: 0 40px 100px -30px rgba(0,0,0,.9); animation: pd-pop .45s var(--ease) both; }
.pd-modal-card h4 , .pd-modal-card [data-nv="4"]{ font-family: var(--serif); font-size: 26px; font-weight: 500; color: var(--warm-100); line-height: 1.1; margin-bottom: 10px; }
.pd-modal-card p { font-size: 14px; }
.pd-modal-list { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 13.5px; }
.pd-modal-list li { padding: 9px 12px; border-radius: 8px; background: rgba(214,184,127,.08); border: 1px solid rgba(214,184,127,.16); display: flex; gap: 10px; align-items: baseline; }
.pd-modal-list li small { color: var(--gold-400); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; }
.pd-modal-actions { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.pd-modal-actions .pd-btn { flex: 1 1 140px; }
.pd-sim-line { margin-top: 12px; font-size: 12px; color: var(--copper-400); }
@keyframes pd-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pd-pop { from { opacity: 0; transform: translateY(16px) scale(.97); } to { opacity: 1; transform: none; } }
.pd-flyer { position: fixed; z-index: 400; pointer-events: none; border-radius: 10px; padding: 10px 14px; background: linear-gradient(100deg, var(--gold-400), var(--gold-500)); color: var(--ink-on-gold); font-size: 13px; font-weight: 500; display: flex; align-items: center; box-shadow: 0 20px 50px -14px rgba(214,184,127,.55); will-change: transform, opacity; }

/* ============================================================
   ÉCRAN PRATICIEN SIMULÉ  (.pa)
   ============================================================ */
.pa { display: grid; grid-template-columns: 188px minmax(0, 1fr); min-height: 640px; }
.pa-side { background: #141f33; border-right: 1px solid rgba(214,184,127,.14); padding: 18px 12px; display: flex; flex-direction: column; gap: 4px; }
.pa-brand { font-family: var(--serif); font-size: 19px; font-weight: 600; color: var(--warm-100); padding: 4px 10px 16px; letter-spacing: .02em; }
.pa-brand span { color: var(--gold-500); }
.pa-mono { display: none; font-style: normal; font-family: var(--serif); font-weight: 600; font-size: 17px; color: var(--gold-400); padding: 4px 0 14px; text-align: center; }
.pa-nav { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; font-size: 13px; color: var(--warm-mut); text-align: left; min-height: 40px; width: 100%; transition: background-color .3s, color .3s; }
.pa-nav svg { width: 16px; height: 16px; flex: 0 0 16px; opacity: .8; }
.pa-nav[aria-current="page"] { background: rgba(214,184,127,.12); color: var(--gold-300); }
.pa-nav:not([aria-current]):hover { background: rgba(214,184,127,.05); color: var(--warm-100); }
.pa-user { margin-top: auto; display: flex; gap: 10px; align-items: center; padding: 10px; border-top: 1px solid rgba(214,184,127,.12); font-size: 12px; line-height: 1.3; color: var(--warm-200); }
.pa-user i { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: rgba(214,184,127,.18); color: var(--gold-300); font-style: normal; font-size: 12px; flex: 0 0 30px; }
.pa-user small { display: block; color: var(--warm-mut); font-size: 11px; }
.pa-main { padding: 26px clamp(18px, 3cqi, 34px) 30px; min-width: 0; }
.pa-eyebrow { font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-500); }
.pa-title { font-family: var(--serif); font-weight: 500; font-size: clamp(27px, 4cqi, 36px); color: var(--warm-100); line-height: 1.08; margin: 6px 0 4px; }
.pa-title:focus { outline: none; }
.pa-sub { font-size: 14px; color: var(--warm-mut); }
.pa-crumb { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 12px; color: var(--warm-mut); margin-bottom: 8px; }
.pa-crumb b { color: var(--warm-100); font-weight: 500; }
.pa-crumb i { opacity: .5; font-style: normal; }

.pa-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 20px 0 18px; }
.pa-stat { padding: 14px 14px 12px; border-radius: 12px; background: var(--night-700); border: 1px solid rgba(214,184,127,.14); }
.pa-stat b { display: block; font-family: var(--serif); font-size: 32px; font-weight: 500; color: var(--gold-300); line-height: 1; transition: color .4s; }
.pa-stat span { display: block; margin-top: 6px; font-size: 12px; color: var(--warm-mut); line-height: 1.3; }
.pa-stat.flash b { animation: pd-flash 1.2s var(--ease); }
@keyframes pd-flash { 0% { color: var(--azur-300); transform: scale(1.18); } 100% { transform: none; } }

.pa-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 16px; }
.pa-grid--even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.pa-panel { padding: 16px 16px 14px; border-radius: 12px; background: var(--night-700); border: 1px solid rgba(214,184,127,.14); min-width: 0; }
.pa-panel + .pa-panel { margin-top: 14px; }
.pa-panel h4 , .pa-panel [data-nv="4"]{ font-size: 11px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-400); margin-bottom: 12px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pa-panel h4 .pa-chip , .pa-panel [data-nv="4"] .pa-chip{ text-transform: none; letter-spacing: 0; }
.pa-hint { font-size: 12.5px; color: var(--warm-mut); }

.pa-table { display: grid; font-size: 13px; }
.pa-row { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1.4fr) auto; gap: 10px; align-items: center; padding: 11px 6px; border-top: 1px solid rgba(214,184,127,.12); text-align: left; width: 100%; border-radius: 8px; transition: background-color .3s; }
.pa-row--head { color: rgba(238,231,214,.68); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; border-top: 0; padding-block: 0 8px; }
.pa-row:not(.pa-row--head):hover { background: rgba(214,184,127,.05); }
.pa-row b { font-weight: 500; color: var(--warm-100); }
.pa-row small { display: block; color: var(--warm-mut); font-size: 11.5px; }
.pa-open { padding: 7px 14px; border-radius: 6px; border: 1px solid var(--gold-line); font-size: 12px; color: var(--gold-300); white-space: nowrap; min-height: 34px; display: inline-flex; align-items: center; }
.pa-row:hover .pa-open { background: rgba(214,184,127,.12); }

.pa-todo { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 13px; }
.pa-todo li { display: flex; gap: 10px; align-items: flex-start; padding: 10px 11px; border-radius: 9px; background: rgba(255,255,255,.03); border: 1px solid rgba(214,184,127,.1); }
.pa-todo li::before { content: ""; flex: 0 0 8px; height: 8px; margin-top: 6px; border-radius: 50%; background: var(--warm-faint); }
.pa-todo li.hot { border-color: var(--gold-line); background: rgba(214,184,127,.08); color: var(--warm-100); }
.pa-todo li.hot::before { background: var(--gold-400); }

.pa-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 500; line-height: 1.4; border: 1px solid transparent; }
.pa-chip--gold { background: rgba(214,184,127,.14); color: var(--gold-300); border-color: rgba(214,184,127,.3); }
.pa-chip--azur { background: var(--azur-glow); color: var(--azur-300); border-color: var(--azur-line); }
.pa-chip--sage { background: rgba(143,192,160,.14); color: var(--sage-400); border-color: rgba(143,192,160,.32); }
.pa-chip--amber { background: rgba(230,184,102,.14); color: var(--amber-400); border-color: rgba(230,184,102,.32); }
.pa-chip--mute { background: rgba(255,255,255,.05); color: rgba(238,231,214,.82); border-color: rgba(255,255,255,.1); }
.pa-chip--exp { background: transparent; color: var(--azur-300); border: 1px dashed var(--azur-line); text-transform: uppercase; letter-spacing: .1em; font-size: 10px; }

.pa-split { display: grid; grid-template-columns: minmax(0, 1fr) 54px minmax(0, 1fr); gap: 0; align-items: stretch; margin-top: 18px; }
.pa-split .pa-panel + .pa-panel { margin-top: 0; }
.pa-front { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: var(--warm-mut); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; }
.pa-front::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 0; border-left: 1.5px dashed var(--gold-line); }
.pa-front span { position: relative; background: var(--night-800); padding: 6px 0; writing-mode: vertical-rl; transform: rotate(180deg); }
.pa-front svg { position: relative; width: 26px; height: 26px; padding: 5px; border-radius: 50%; background: var(--night-800); border: 1px solid var(--gold-line); color: var(--gold-400); }
.pa-lockline { display: flex; gap: 8px; align-items: flex-start; margin-bottom: 10px; font-size: 12.5px; color: var(--gold-300); line-height: 1.4; }
.pa-lockline svg { flex: 0 0 15px; width: 15px; height: 15px; margin-top: 2px; }

.pa-text { width: 100%; min-height: 150px; resize: vertical; padding: 12px 13px; border-radius: 9px; background: var(--night-900); border: 1px solid rgba(214,184,127,.2); color: var(--warm-100); font: inherit; font-size: 13.5px; line-height: 1.55; }
.pa-text:focus { outline: 2px solid var(--gold-400); outline-offset: 1px; border-color: transparent; }
.pa-rub { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.pa-rub button { padding: 6px 11px; border-radius: 999px; font-size: 12px; border: 1px solid var(--gold-line); color: var(--warm-200); min-height: 34px; transition: background-color .3s, color .3s, transform .2s; }
.pa-rub button:hover { background: rgba(214,184,127,.1); color: var(--gold-300); }
.pa-rub button:active { transform: scale(.96); }

.pa-prop { padding: 14px; border-radius: 10px; border: 1px dashed var(--azur-line); background: var(--azur-glow); }
.pa-prop p.t { font-size: 13.5px; color: var(--warm-100); line-height: 1.55; margin: 8px 0 12px; }
.pa-prop .pa-hint { margin-bottom: 12px; }
.pa-prop-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.pa-btn { padding: 9px 16px; border-radius: 6px; font-size: 12.5px; font-weight: 500; min-height: 38px; border: 1px solid var(--gold-line); color: var(--warm-100); transition: background-color .3s, transform .25s var(--ease), box-shadow .3s; display: inline-flex; align-items: center; gap: 8px; }
.pa-btn:hover { background: rgba(214,184,127,.1); }
.pa-btn--gold { background: linear-gradient(100deg, var(--gold-400), var(--gold-500)); color: var(--ink-on-gold); border-color: transparent; }
.pa-btn--gold:hover { background: linear-gradient(100deg, var(--gold-300), var(--gold-400)); transform: translateY(-1px); }
.pa-btn--quiet { border-color: transparent; color: var(--warm-mut); }
.pa-btn:focus-visible, .pa-row:focus-visible, .pa-nav:focus-visible, .pa-rub button:focus-visible, .pa-ex:focus-within, .pa-draft:focus-within { outline: 2px solid var(--gold-400); outline-offset: 2px; }

.pa-sessions { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 13px; }
.pa-sessions li { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 9px 11px; border-radius: 9px; background: rgba(255,255,255,.03); border: 1px solid rgba(214,184,127,.1); }
.pa-sessions li b { font-weight: 500; color: var(--warm-100); }
.pa-sessions li small { display: block; color: var(--warm-mut); font-size: 11.5px; }
.pa-sessions li.now { border-color: var(--gold-line); background: rgba(214,184,127,.08); }
.pa-date { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px; border-radius: 9px; background: rgba(255,255,255,.03); border: 1px solid rgba(214,184,127,.1); font-size: 13px; color: var(--warm-100); }
.pa-date small { color: var(--warm-mut); font-size: 11.5px; flex-basis: 100%; }

.pa-ex-grid { display: grid; gap: 8px; }
.pa-ex { position: relative; display: grid; grid-template-columns: 22px 1fr auto; gap: 10px; align-items: start; padding: 11px 12px; border-radius: 10px; border: 1px solid rgba(214,184,127,.16); background: rgba(255,255,255,.025); cursor: pointer; transition: border-color .3s, background-color .3s; }
.pa-ex:hover { border-color: var(--gold-line); }
.pa-ex input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.pa-ex .dot { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--gold-line); margin-top: 2px; position: relative; transition: border-color .3s; }
.pa-ex .dot::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--gold-400); transform: scale(0); transition: transform .3s var(--ease); }
.pa-ex.on { border-color: var(--gold-500); background: rgba(214,184,127,.08); }
.pa-ex.on .dot { border-color: var(--gold-400); }
.pa-ex.on .dot::after { transform: scale(1); }
.pa-ex b { display: block; font-weight: 500; font-size: 13.5px; color: var(--warm-100); }
.pa-ex small { display: block; margin-top: 2px; font-size: 12px; color: var(--warm-mut); line-height: 1.45; }
.pa-ex em { font-style: normal; font-size: 11.5px; color: var(--warm-mut); white-space: nowrap; }

.pa-drafts { display: grid; gap: 8px; }
.pa-draft { position: relative; display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; padding: 12px; border-radius: 10px; border: 1px solid rgba(214,184,127,.2); background: rgba(255,255,255,.03); transition: border-color .3s, background-color .3s, opacity .3s; cursor: pointer; }
.pa-draft input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.pa-draft .box { width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid var(--gold-line); margin-top: 1px; position: relative; transition: background-color .3s, border-color .3s; }
.pa-draft .box::after { content: ""; position: absolute; left: 4px; top: 2px; width: 8px; height: 4.5px; border-left: 2px solid var(--ink-on-gold); border-bottom: 2px solid var(--ink-on-gold); transform: rotate(-45deg) scale(0); transition: transform .25s var(--ease); }
.pa-draft.on { border-color: var(--gold-500); background: rgba(214,184,127,.08); }
.pa-draft.on .box { background: var(--gold-400); border-color: var(--gold-400); }
.pa-draft.on .box::after { transform: rotate(-45deg) scale(1); }
.pa-draft .t { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; }
.pa-draft b { font-weight: 500; font-size: 13.5px; color: var(--warm-100); }
.pa-draft p { margin-top: 3px; font-size: 12.5px; color: var(--warm-mut); line-height: 1.5; }
.pa-draft--locked { cursor: not-allowed; border-style: dashed; background: transparent; }
.pa-draft--locked .box { border-style: dashed; display: grid; place-items: center; }
.pa-draft--locked .box::after { display: none; }
.pa-draft--locked svg { width: 11px; height: 11px; color: var(--gold-400); }
.pa-draft--locked.shake { animation: pd-shake .5s var(--ease); }
@keyframes pd-shake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }

.pa-pivot { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 20px; }
.pa-pivot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 13.5px; }
.pa-pivot li { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 9px; background: rgba(255,255,255,.03); border: 1px solid rgba(214,184,127,.1); }
.pa-pivot .out li { border-color: rgba(143,192,160,.3); background: rgba(143,192,160,.07); }
.pa-pivot .in li { color: var(--warm-mut); }
.pa-pivot svg { width: 15px; height: 15px; flex: 0 0 15px; }
.pa-pivot .out svg { color: var(--sage-400); }
.pa-pivot .in svg { color: var(--gold-400); }
.pd-big { margin-top: 22px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.pd-big .pd-btn { padding: 16px 28px; font-size: 15px; }
.pd-big .pa-hint { max-width: 56ch; }

.pa-cta { margin-top: 20px; padding: 20px; border-radius: 14px; border: 1px solid var(--gold-500); background: radial-gradient(120% 120% at 100% 0%, var(--gold-glow), transparent 60%), var(--night-700); }
.pa-cta h4 , .pa-cta [data-nv="4"]{ font-family: var(--serif); font-size: 26px; font-weight: 500; color: var(--warm-100); line-height: 1.1; text-transform: none; letter-spacing: 0; margin: 0 0 6px; display: block; }
.pa-cta p { font-size: 13.5px; color: var(--warm-200); margin-bottom: 14px; }
.pa-cta-row { display: flex; gap: 10px; flex-wrap: wrap; }
.pa-cta-row .pd-btn { flex: 1 1 200px; }

.pa-ok { color: var(--sage-400); }
.pa-share-state { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 6px; font-size: 12px; color: var(--warm-mut); }

/* ---------- Carte de séance simulée (.pm) ---------- */
.pm { display: grid; grid-template-columns: 172px minmax(0, 1fr); gap: 16px; align-items: start; }
.pm-fig { position: relative; width: 172px; aspect-ratio: 150 / 330; }
.pm-fig svg { width: 100%; height: 100%; display: block; }
.pm-fig .sil { fill: rgba(214,184,127,.06); stroke: rgba(214,184,127,.4); stroke-width: 1.2; }
.pm-fig .axis { stroke: rgba(214,184,127,.25); stroke-width: 1; stroke-dasharray: 3 4; }
.pm-pt { position: absolute; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; border: 1.5px solid var(--gold-line); background: var(--night-900); display: grid; place-items: center; font-size: 8.5px; font-weight: 600; color: var(--warm-mut); cursor: pointer; padding: 0; transition: transform .3s var(--ease), background-color .3s, border-color .3s, color .3s, box-shadow .3s; }
.pm-pt:hover { transform: scale(1.12); }
.pm-pt[data-etat="propose"] { border-color: var(--azur-400); color: var(--azur-300); border-style: dashed; }
.pm-pt[data-etat="accepte"] { background: var(--gold-500); border-color: var(--gold-300); color: var(--ink-on-gold); box-shadow: 0 0 0 5px rgba(214,184,127,.16); }
.pm-pt[data-etat="rejete"] { opacity: .35; text-decoration: line-through; }
.pm-pt.sel { outline: 2px solid var(--gold-300); outline-offset: 3px; }
.pm-pt:focus-visible { outline: 2px solid var(--gold-300); outline-offset: 3px; }
.pm-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pm-item { padding: 10px 11px; border-radius: 9px; background: rgba(255,255,255,.03); border: 1px solid rgba(214,184,127,.12); font-size: 12.5px; transition: border-color .3s, opacity .3s; }
.pm-item.sel { border-color: var(--gold-400); }
.pm-item[data-etat="rejete"] { opacity: .5; }
.pm-item b { font-weight: 500; color: var(--warm-100); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 4px; }
.pm-item p { color: var(--warm-200); line-height: 1.5; }
.pm-item .acts { display: flex; gap: 6px; margin-top: 8px; }
.pm-item .pa-btn { padding: 6px 12px; min-height: 32px; font-size: 12px; }
.pm-frame { margin-top: 10px; font-size: 11.5px; color: var(--warm-mut); line-height: 1.45; }
.pm-status { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }

/* ============================================================
   ÉCRAN CLIENT SIMULÉ  (.pc) — papier ivoire, encre bleu nuit
   ============================================================ */
.pc { min-height: 640px; color: var(--ink); background: radial-gradient(90% 60% at 100% 0%, rgba(143,185,236,.22), transparent 60%), var(--paper); }
.pc-top { display: flex; align-items: center; gap: 12px; padding: 14px clamp(18px, 3cqi, 34px); border-bottom: 1px solid var(--paper-line); background: rgba(255,250,242,.7); }
.pc-brand { font-family: var(--serif); font-size: 19px; font-weight: 600; color: var(--ink); letter-spacing: .02em; }
.pc-brand span { color: var(--ink-gold); }
.pc-top .who { margin-left: auto; display: flex; gap: 10px; align-items: center; font-size: 13px; color: var(--ink-mut); }
.pc-top .who i { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-style: normal; background: var(--ink); color: var(--paper-2); font-size: 12px; }
.pc-main { padding: 26px clamp(18px, 3cqi, 34px) 32px; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.pc-hello { grid-column: 1 / -1; }
.pc-eyebrow { font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-gold); font-weight: 500; }
.pc-title { font-family: var(--serif); font-weight: 500; font-size: clamp(28px, 4.2cqi, 38px); line-height: 1.06; margin: 6px 0 2px; color: var(--ink); }
.pc-title:focus { outline: none; }
.pc-sub { font-size: 14px; color: var(--ink-mut); }
.pc-col { display: grid; gap: 14px; min-width: 0; }
.pc-card { position: relative; padding: 18px 18px 16px; border-radius: 14px; background: var(--paper-2); border: 1px solid var(--paper-line); box-shadow: 0 14px 34px -26px rgba(11,36,71,.5); }
.pc-card h4 , .pc-card [data-nv="4"]{ font-size: 11px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-gold); margin-bottom: 10px; }
.pc-card p { font-size: 14px; line-height: 1.6; color: var(--ink); }
.pc-card p + p { margin-top: 8px; }
.pc-card .meta { font-size: 12px; color: var(--ink-mut); margin-top: 10px; }
.pc-card--new { border-color: var(--azur-400); box-shadow: 0 0 0 4px rgba(143,185,236,.22), 0 14px 34px -26px rgba(11,36,71,.5); animation: pd-glow 2.8s ease-in-out 1; }
@keyframes pd-glow { 0% { box-shadow: 0 0 0 0 rgba(143,185,236,.7), 0 14px 34px -26px rgba(11,36,71,.5); } 100% { box-shadow: 0 0 0 4px rgba(143,185,236,.22), 0 14px 34px -26px rgba(11,36,71,.5); } }
.pc-badge { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--azur-400); color: var(--ink); font-size: 11px; font-weight: 500; margin-bottom: 10px; }
.pc-empty { padding: 18px; border-radius: 12px; border: 1px dashed var(--paper-line); color: var(--ink-mut); font-size: 13.5px; line-height: 1.55; }
.pc-todo { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; }
.pc-todo b { font-weight: 500; font-size: 15px; display: block; }
.pc-todo small { display: block; font-size: 12.5px; color: var(--ink-mut); margin-top: 3px; line-height: 1.45; }
.pc-check { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 10px 16px; border-radius: 999px; border: 1.5px solid var(--ink); color: var(--ink); font-size: 13px; font-weight: 500; background: transparent; transition: background-color .35s var(--ease), color .35s, transform .25s var(--ease), border-color .35s; white-space: nowrap; }
.pc-check:hover { background: rgba(11,36,71,.06); }
.pc-check:active { transform: scale(.97); }
.pc-check .tick { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid currentColor; display: grid; place-items: center; }
.pc-check .tick svg { width: 10px; height: 10px; stroke-dasharray: 14; stroke-dashoffset: 14; transition: stroke-dashoffset .5s var(--ease) .1s; }
.pc-check[aria-pressed="true"] { background: var(--ink); color: var(--paper-2); border-color: var(--ink); }
.pc-check[aria-pressed="true"] .tick svg { stroke-dashoffset: 0; }
.pc-check:focus-visible, .pc-link:focus-visible { outline: 2px solid var(--ink-azur); outline-offset: 2px; }
.pc-next { display: grid; gap: 8px; list-style: none; margin: 0; padding: 0; font-size: 14px; }
.pc-next li { display: flex; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 10px; background: rgba(11,36,71,.04); }
.pc-next li small { color: var(--ink-mut); font-size: 12px; }
.pc-history { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 13.5px; }
.pc-history li { padding: 10px 12px; border-radius: 10px; border: 1px solid var(--paper-line); display: flex; justify-content: space-between; gap: 10px; }
.pc-history small { color: var(--ink-mut); font-size: 12px; display: block; }
.pc-locks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pc-lock { padding: 10px 6px; border-radius: 10px; border: 1px dashed var(--paper-line); text-align: center; font-size: 11.5px; color: var(--ink-mut); line-height: 1.3; }
.pc-lock svg { display: block; margin: 0 auto 6px; width: 15px; height: 15px; }
.pc-sub-note { font-size: 12px; color: var(--ink-mut); margin-top: 8px; }
.pc-map { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; align-items: start; }
.pc-map .pm-fig { width: 120px; }
.pc-map .pm-fig .sil { fill: rgba(11,36,71,.05); stroke: rgba(11,36,71,.35); }
.pc-map .pm-fig .axis { stroke: rgba(11,36,71,.2); }
.pc-map .pm-pt { width: 17px; height: 17px; margin: -8.5px 0 0 -8.5px; font-size: 7px; background: var(--paper-2); border-color: var(--paper-line); color: var(--ink-mut); cursor: default; }
.pc-map .pm-pt:hover { transform: none; }
.pc-map .pm-pt[data-etat="accepte"] { background: var(--ink); color: var(--paper-2); border-color: var(--ink); box-shadow: 0 0 0 4px rgba(143,185,236,.35); }
.pc-map ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 13px; }
.pc-map li b { font-weight: 500; }

/* L'annotation de visite : elle appartient à la démonstration, pas au produit. */
.pd-tour { margin-top: 2px; padding: 16px 16px 14px; border-radius: 14px; border: 1.5px dashed var(--ink-azur); background: rgba(143,185,236,.16); }
.pd-tour h4 , .pd-tour [data-nv="4"]{ font-size: 11px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-azur); margin-bottom: 8px; }
.pd-tour p { font-size: 13.5px; line-height: 1.55; color: var(--ink); }
.pd-tour ul { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; font-size: 13px; color: var(--ink); }
.pd-tour li { display: flex; gap: 8px; align-items: center; }
.pd-tour li svg { width: 13px; height: 13px; flex: 0 0 13px; color: var(--ink-azur); }
.pd-tour .pc-link { margin-top: 12px; color: var(--ink-azur); font-size: 13px; text-decoration: underline; text-underline-offset: 3px; min-height: 36px; }
.pd-tour .ghost { margin-top: 10px; padding: 12px 14px; border-radius: 10px; border: 1px dashed var(--paper-line); background: var(--paper-2); font-size: 13px; color: var(--ink-mut); animation: pd-in .5s var(--ease) both; }

/* ============================================================
   ADAPTATION À LA LARGEUR DE L'APPAREIL (container queries)
   ============================================================ */
@container pdd (max-width: 900px) {
  .pa { grid-template-columns: 60px minmax(0, 1fr); }
  .pa-side { padding: 14px 8px; align-items: center; }
  .pa-brand { display: none; }
  .pa-mono { display: block; }
  .pa-nav { justify-content: center; padding: 10px; width: 44px; height: 44px; }
  .pa-nav span, .pa-user div { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .pa-user { padding: 10px 0; justify-content: center; }
  .pa-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr) auto; grid-template-areas: "n e o" "d e o"; row-gap: 2px; }
  .pa-row > :nth-child(1) { grid-area: n; }
  .pa-row > :nth-child(2) { grid-area: d; font-size: 11.5px; color: var(--warm-mut); }
  .pa-row > :nth-child(3) { grid-area: e; }
  .pa-row > :nth-child(4) { grid-area: o; }
  .pa-row--head > :nth-child(2) { visibility: hidden; }
}
@container pdd (max-width: 700px) {
  .pa { grid-template-columns: 1fr; }
  .pa-mono { display: none; }
  .pa-brand { display: block; }
  .pa-nav { width: auto; height: auto; padding: 9px 10px; }
  .pa-nav span { position: static; width: auto; height: auto; overflow: visible; clip: auto; white-space: nowrap; }
  .pa-side { flex-direction: row; align-items: center; padding: 8px 10px; overflow-x: auto; gap: 4px; border-right: 0; border-bottom: 1px solid rgba(214,184,127,.14); }
  .pa-brand { padding: 0 8px 0 4px; white-space: nowrap; }
  .pa-nav { width: auto; white-space: nowrap; }
  .pa-user { display: none; }
  .pa-cards { grid-template-columns: repeat(2, 1fr); }
  .pa-grid { grid-template-columns: 1fr; }
  .pa-split { grid-template-columns: 1fr; }
  .pa-split .pa-front { flex-direction: row; padding: 12px 0; }
  .pa-split .pa-front::before { top: 50%; bottom: auto; left: 0; right: 0; width: auto; border-left: 0; border-top: 1.5px dashed var(--gold-line); }
  .pa-split .pa-front span { writing-mode: horizontal-tb; transform: none; padding: 0 10px; }
  .pa-pivot { grid-template-columns: 1fr; }
  .pc-main { grid-template-columns: 1fr; }
}
@container pdd (max-width: 560px) {
  .pa-nav:not([aria-current]) { display: none; }
  .pa-row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "n o" "d o" "e e"; }
  .pa-row--head { display: none; }
  .pm { grid-template-columns: 1fr; justify-items: center; }
  .pm > :last-child { width: 100%; }
  .pc-map { grid-template-columns: 1fr; justify-items: center; }
  .pc-todo { grid-template-columns: 1fr; }
  .pc-check { justify-self: start; }
  .pa-ex { grid-template-columns: 22px 1fr; }
  .pa-ex em { grid-column: 2; justify-self: start; }
}

/* ---------- Tablette et téléphone : la page autour de l'appareil ---------- */
@media (max-width: 980px) {
  .pd { grid-template-columns: 1fr; grid-template-areas: "scn" "steps" "coach" "device" "actions"; gap: 14px; }
  .pd-device { position: static; }
  .pd-steps { grid-auto-flow: column; grid-auto-columns: 1fr; overflow-x: auto; gap: 4px; padding: 2px 0 6px; scrollbar-width: none; }
  .pd-steps::-webkit-scrollbar { display: none; }
  .pd-step { flex-direction: column; gap: 6px; justify-content: center; padding: 8px 6px; font-size: 0; min-width: 44px; }
  .pd-step .lbl { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .pd-step .n { font-size: 11px; }
  .pd-coach h3 , .pd-coach [data-nv="3"]{ font-size: 23px; }
  .pd-coach-restart { display: inline-flex; }
  .pd-actions > .pd-btn--text { display: none; }
  .pd-actions { position: sticky; bottom: 10px; z-index: 20; padding: 10px; border-radius: 16px; background: rgba(26,39,64,.92); backdrop-filter: blur(14px); border: 1px solid var(--gold-line); box-shadow: 0 20px 50px -20px rgba(0,0,0,.8); }
  .pd-screen, .pa, .pc { min-height: 0; }
}
@media (max-width: 600px) {
  .pd-ribbon { gap: 8px; padding: 8px 10px; }
  .pd-sim-note { display: none; }
  .pd-persp button { padding: 8px 10px; font-size: 11.5px; }
  .pd-fs { display: none; }
  .pd-actions-row .pd-btn--ghost { padding-inline: 16px; }
  .pd-actions-row .lbl { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .pd-btn { padding: 13px 14px; }
  .pd-ribbon { flex-wrap: nowrap; }
  .pd-sim { font-size: 10px; letter-spacing: .08em; gap: 6px; }
  .pd-persp button { padding: 7px 9px; font-size: 11px; }
  .pa-main, .pc-main { padding-block: 20px 26px; }
  .pa-cards { gap: 8px; }
  .pm-fig { width: 150px; }
}

/* ---------- Plein écran (présentation sur grand écran) ---------- */
.pd:fullscreen { background: var(--night-900); padding: clamp(16px, 2.5vw, 40px); overflow: auto; align-content: center; grid-template-columns: minmax(300px, 360px) minmax(0, 1fr); }
.pd:fullscreen .pd-device { position: relative; top: 0; }
.pd:fullscreen .pd-screen, .pd:fullscreen .pa, .pd:fullscreen .pc { min-height: min(760px, calc(100vh - 140px)); }
.pd:fullscreen .pa-title { font-size: clamp(30px, 3.2vw, 46px); }
.pd:fullscreen .pa-row, .pd:fullscreen .pc-card p, .pd:fullscreen .pa-text { font-size: 15px; }

/* ---------- Impression : on garde le contenu, jamais les mouvements ---------- */
@media print {
  .pd-teaser { display: none; }
  .pd-actions { position: static; }
}

/* ============================================================
   MOUVEMENT RÉDUIT : rien ne bouge, tout reste lisible.
   Le basculement de perspective devient un simple changement d'état.
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .pd-tz--pro, .pd-tz--client { animation: none; }
  .pd-sim::before { animation: none; }
  .pd-world.is-entering, .pd-world.is-leaving, .pd-ripple, .pd-enter, .pd-enter [data-i],
  .pd-cue::after, .pa-stat.flash b, .pc-card--new, .pd-modal, .pd-modal-card, .pa-draft--locked.shake,
  .pd-tour .ghost { animation: none !important; }
  .pd-cue::after { opacity: 0; }
  .pd-persp::before, .pd-toast, .pd-coach .pd-bar i, .pd-device, .pd-step .n, .pc-check .tick svg,
  .pa-ex .dot::after, .pa-draft .box::after, .pm-pt { transition: none !important; }
  .pd-faq summary::after { transition: none; }
  .pd-persp button.bump { animation: none; }
}
