
@font-face{font-family:"Bricolage Grotesque";src:url(/entrainements/fonts/f1.woff2) format("woff2");font-weight:200 800;font-stretch:75% 100%;font-display:swap}
@font-face{font-family:"Hanken Grotesk";src:url(/entrainements/fonts/f2.woff2) format("woff2");font-weight:100 900;font-display:swap}
html{-webkit-text-size-adjust:100%}body{margin:0}img{max-width:100%}[hidden]{display:none!important}:root{padding-top:env(safe-area-inset-top,0px);padding-bottom:env(safe-area-inset-bottom,0px)}
/* Layout : fiche de séance — colonne des publics à gauche, programme à droite ;
   trois temps reliés par un fil qui passe du chaud (échauffement) au froid (retour au calme). */
:root {
  --bg: #F4F5FA;
  --surface: #FFFFFF;
  --ink: #1E2A52;
  --muted: #5A6386;
  --line: #E1E4EF;
  --violet: #7C5CFC;
  --violet-ink: #5B3EE0;
  --violet-soft: #EEEAFF;
  --blue: #2E9BE0;
  --blue-ink: #1673B0;
  --blue-soft: #E3F2FC;
  --amber: #FFB02E;
  --amber-ink: #8F5600;
  --amber-soft: #FFF2D9;
  --plate: #E7EAF3;
  --focus: #7C5CFC;
  --font-display: "Bricolage Grotesque", "Hanken Grotesk", system-ui, sans-serif;
  --font-body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r: 14px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0D1330; --surface: #151D41; --ink: #ECEFFA; --muted: #A1A8CA; --line: #283260;
    --violet: #9C86FF; --violet-ink: #B6A6FF; --violet-soft: #241E57;
    --blue: #5DB6F0; --blue-ink: #86CBF6; --blue-soft: #0F2E4A;
    --amber: #FFBE4D; --amber-ink: #FFCB6E; --amber-soft: #3A2B0E;
    --plate: #212A55; --focus: #B6A6FF;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0D1330; --surface: #151D41; --ink: #ECEFFA; --muted: #A1A8CA; --line: #283260;
  --violet: #9C86FF; --violet-ink: #B6A6FF; --violet-soft: #241E57;
  --blue: #5DB6F0; --blue-ink: #86CBF6; --blue-soft: #0F2E4A;
  --amber: #FFBE4D; --amber-ink: #FFCB6E; --amber-soft: #3A2B0E;
  --plate: #212A55; --focus: #B6A6FF;
  color-scheme: dark;
}

* { box-sizing: border-box; }
body {
  background: var(--bg); color: var(--ink);
  font-family: var(--font-body); font-size: 15px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; text-wrap: balance; letter-spacing: -0.01em; }

.wrap { max-width: 1320px; margin: 0 auto; padding-inline: 20px; }

/* En-tête */
.top { padding-block: 22px 18px; border-bottom: 1px solid var(--line); background: var(--surface); }
.top .wrap { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 32px; }
.brand { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.wordmark { font-family: var(--font-display); font-weight: 800; font-size: 15px; letter-spacing: 0.01em; display: flex; align-items: center; gap: 10px; color: var(--ink); }
.wordmark .ap { color: var(--violet); }
.wordmark small { font-family: var(--font-body); font-weight: 500; font-size: 13px; color: var(--muted); letter-spacing: 0; }
.top h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 750; line-height: 1.08; }
.stats { display: flex; gap: 20px; flex-wrap: wrap; color: var(--muted); font-size: 13.5px; }
.stats b { font-family: var(--font-display); font-size: 22px; color: var(--ink); font-weight: 700; display: block; line-height: 1.1; font-variant-numeric: tabular-nums; }
.seq { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.seq span { display: inline-flex; align-items: center; gap: 6px; }
.seq i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }

/* Structure */
.shell { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 32px; padding-block: 28px 56px; align-items: start; }

/* Navigation des publics */
.pops { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 16px); display: flex; flex-direction: column; gap: 18px; }
.pops h2 { font-family: var(--font-body); font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.09em; color: var(--muted); margin: 0 0 6px 10px; }
.pops ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.pop-btn {
  width: 100%; text-align: left; border: 0; background: transparent; cursor: pointer;
  padding: 8px 10px; border-radius: 9px; font-size: 14.5px; font-weight: 500; color: var(--ink);
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.pop-btn:hover { background: var(--violet-soft); }
.pop-btn[aria-current="true"] { background: var(--ink); color: var(--bg); font-weight: 600; }
.pop-btn .n { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.pop-btn[aria-current="true"] .n { color: inherit; opacity: 0.7; }

/* Public sélectionné */
main { min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.pop-head { display: flex; flex-direction: column; gap: 6px; }
.eyebrow { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.09em; color: var(--violet-ink); }
.pop-head h2 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 750; line-height: 1.1; }
.pop-head p { margin: 0; color: var(--muted); max-width: 68ch; }

.reperes { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.reperes summary { cursor: pointer; padding: 14px 18px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; gap: 12px; list-style: none; }
.reperes summary::-webkit-details-marker { display: none; }
.reperes summary::after { content: "Masquer"; font-size: 13px; font-weight: 500; color: var(--muted); }
.reperes:not([open]) summary::after { content: "Afficher"; }
.rep-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.rep-col { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.rep-col + .rep-col { border-left: 1px solid var(--line); }
.rep-col h3 { font-family: var(--font-body); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.rep-col ul { margin: 0; padding: 0 0 0 18px; display: flex; flex-direction: column; gap: 7px; font-size: 14px; }
.rep-col li::marker { color: var(--violet); }
.rep-col.warn li::marker { color: var(--amber); }
.rep-col p { margin: 0; font-size: 14px; }

.borg { display: flex; flex-direction: column; gap: 6px; }
.borg-scale { display: grid; grid-template-columns: repeat(11, minmax(0, 1fr)); gap: 3px; }
.borg-scale span { text-align: center; font-size: 12px; font-weight: 600; padding: 5px 0; border-radius: 5px; background: var(--plate); color: var(--muted); font-variant-numeric: tabular-nums; }
.borg-scale span.on { background: var(--violet); color: #fff; }
.borg small { color: var(--muted); font-size: 12px; }

/* Onglets des programmes */
.tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.tab {
  text-align: left; cursor: pointer; border: 1px solid var(--line); background: var(--surface);
  border-radius: 12px; padding: 11px 13px 12px; display: flex; flex-direction: column; gap: 3px; min-width: 0;
}
.tab:hover { border-color: var(--violet); }
.tab .k { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.tab .t { font-family: var(--font-display); font-weight: 650; font-size: 15.5px; line-height: 1.2; }
.tab .m { font-size: 12.5px; color: var(--muted); }
.tab[aria-selected="true"] { background: var(--violet-soft); border-color: var(--violet); box-shadow: inset 0 0 0 1px var(--violet); }
.tab[aria-selected="true"] .k { color: var(--violet-ink); }

/* Programme */
.prog { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 24px 26px 28px; display: flex; flex-direction: column; gap: 22px; }
.prog-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.prog-title { display: flex; flex-direction: column; gap: 4px; min-width: 0; max-width: 62ch; }
.prog-title h3 { font-size: clamp(22px, 2.6vw, 28px); font-weight: 750; line-height: 1.15; }
.prog-title p { margin: 0; color: var(--muted); }
.copy { display: flex; align-items: center; gap: 10px; }
.btn {
  border: 1px solid var(--ink); background: var(--ink); color: var(--bg); border-radius: 10px;
  padding: 9px 14px; font-weight: 600; font-size: 14px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
}
.btn:hover { background: var(--violet-ink); border-color: var(--violet-ink); color: #fff; }
.btn svg { width: 16px; height: 16px; }
.copy-msg { font-size: 13px; color: var(--muted); }
.copy-fallback { display: flex; flex-direction: column; gap: 8px; }
.copy-fallback textarea { width: 100%; min-height: 220px; font: 13px/1.5 ui-monospace, Menlo, monospace; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 12px; }

.meta { display: grid; grid-template-columns: auto auto minmax(0, 1.3fr) minmax(0, 1.3fr); gap: 0; border: 1px solid var(--line); border-radius: 12px; margin: 0; }
.meta div { padding: 10px 14px; min-width: 0; }
.meta div + div { border-left: 1px solid var(--line); }
.meta dt { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.meta dd { margin: 2px 0 0; font-size: 14px; font-weight: 500; }

/* Les trois temps de la séance */
.phases { position: relative; display: flex; flex-direction: column; gap: 26px; padding-left: 30px; }
.phases::before {
  content: ""; position: absolute; left: 8px; top: 10px; bottom: 10px; width: 3px; border-radius: 3px;
  background: linear-gradient(var(--amber), var(--violet) 30%, var(--violet) 72%, var(--blue));
  opacity: 0.55;
}
.phase { position: relative; display: flex; flex-direction: column; gap: 12px; }
.phase-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.phase-head::before {
  content: ""; position: absolute; left: -29px; top: 4px; width: 17px; height: 17px; border-radius: 50%;
  background: var(--surface); border: 4px solid var(--c);
}
.phase-head h4 { font-size: 19px; font-weight: 700; }
.phase-head .count { font-size: 13px; color: var(--muted); }
.phase.warm { --c: var(--amber); --ci: var(--amber-ink); --cs: var(--amber-soft); }
.phase.main { --c: var(--violet); --ci: var(--violet-ink); --cs: var(--violet-soft); }
.phase.cool { --c: var(--blue); --ci: var(--blue-ink); --cs: var(--blue-soft); }

/* Image en deux temps (départ / arrivée) */
.plate { position: relative; overflow: hidden; background: var(--plate); aspect-ratio: 3 / 2; max-width: 100%; }
.plate img { display: block; width: 200%; max-width: none; height: 100%; animation: flip 2.8s steps(1, end) infinite; }
.plate.paused img { animation: none; }
.plate.alt img { transform: translateX(-50%); }
@keyframes flip { 0% { transform: translateX(0); } 50% { transform: translateX(-50%); } 100% { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .plate img { animation: none; } }

/* Échauffement et retour au calme : lignes compactes */
.rows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.row { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; align-items: center; padding: 8px; border-radius: 12px; background: var(--cs); }
.row .plate { border-radius: 8px; cursor: pointer; }
.row .name { font-weight: 600; font-size: 14.5px; line-height: 1.3; }
.row .dose { font-weight: 700; font-size: 13.5px; color: var(--ci); font-variant-numeric: tabular-nums; }
.row .note { font-size: 13px; color: var(--muted); line-height: 1.4; }

/* Corps de séance : 8 cartes */
.cards { container-type: inline-size; }
.grid8 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@container (min-width: 900px) { .grid8 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.card { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; background: var(--surface); min-width: 0; }
.card .plate { cursor: pointer; }
.card .num {
  position: absolute; left: 10px; top: 10px; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; background: var(--violet); color: #fff;
  font-family: var(--font-display); font-weight: 700; font-size: 14px; font-variant-numeric: tabular-nums;
}
.card-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; }
.card .name { font-family: var(--font-display); font-weight: 650; font-size: 16.5px; line-height: 1.22; }
.card .dose { font-weight: 700; font-size: 15px; color: var(--violet-ink); font-variant-numeric: tabular-nums; }
.card .cue { font-size: 13.5px; color: var(--muted); line-height: 1.45; margin: 0; }
.card .note { font-size: 13.5px; line-height: 1.45; margin: 0; padding-top: 8px; border-top: 1px dashed var(--line); }
.card .note b { color: var(--violet-ink); font-weight: 700; }

.hint { font-size: 12.5px; color: var(--muted); margin: 0; }

footer { border-top: 1px solid var(--line); padding-block: 22px 32px; color: var(--muted); font-size: 13px; }
footer .wrap { display: flex; flex-direction: column; gap: 6px; }
footer p { margin: 0; max-width: 90ch; }
footer a { color: var(--violet-ink); }

/* Tablette */
@media (max-width: 1080px) {
  .meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .meta div:nth-child(3) { border-left: 0; }
  .meta div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .rep-grid { grid-template-columns: 1fr; }
  .rep-col + .rep-col { border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 900px) {
  .shell { grid-template-columns: minmax(0, 1fr); gap: 18px; padding-top: 16px; }
  .pops { position: static; flex-direction: row; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-inline: -20px; padding-inline: 20px; scrollbar-width: thin; }
  .pops section { display: contents; }
  .pops h2 { display: none; }
  .pops ul { flex-direction: row; gap: 6px; }
  .pop-btn { white-space: nowrap; border: 1px solid var(--line); background: var(--surface); padding: 7px 12px; border-radius: 999px; }
  .pop-btn .n { display: none; }
  .tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rows { grid-template-columns: minmax(0, 1fr); }
}
/* Téléphone */
@media (max-width: 560px) {
  .wrap { padding-inline: 16px; }
  .pops { margin-inline: -16px; padding-inline: 16px; }
  .prog { padding: 18px 16px 22px; border-radius: 14px; }
  .phases { padding-left: 24px; }
  .phases::before { left: 6px; }
  .phase-head::before { left: -24px; width: 15px; height: 15px; border-width: 3px; }
  .grid8 { grid-template-columns: minmax(0, 1fr); }
  .meta { grid-template-columns: minmax(0, 1fr); }
  .meta div + div { border-left: 0; border-top: 1px solid var(--line); }
  .row { grid-template-columns: 84px minmax(0, 1fr); }
  .stats b { font-size: 19px; }
}
/* Créateur de programmes, fenêtres, PDF et QR */
:root { --scrim: rgba(30, 42, 82, 0.45); --danger: #C2364A; --danger-soft: #FCE8EB; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --scrim: rgba(3, 6, 20, 0.7); --danger: #FF7A8C; --danger-soft: #3D1520; } }
:root[data-theme="dark"] { --scrim: rgba(3, 6, 20, 0.7); --danger: #FF7A8C; --danger-soft: #3D1520; }

/* Bandeau : scène 3D et verre liquide. Toujours sombre, quel que soit le thème. */
:root { --hero-bg: #0D1433; --hero-ink: #F5F6FF; --hero-muted: #BCC3EA; }
.hero { position: relative; overflow: hidden; isolation: isolate; background: var(--hero-bg); color: var(--hero-ink); }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; }
.hero:not(.gl-on) {
  background:
    radial-gradient(55% 85% at 12% 15%, rgba(124, 92, 252, 0.55), transparent 62%),
    radial-gradient(45% 75% at 88% 25%, rgba(46, 155, 224, 0.45), transparent 62%),
    radial-gradient(40% 60% at 60% 105%, rgba(255, 176, 46, 0.32), transparent 62%),
    var(--hero-bg);
}
.hero-word { display: none; position: absolute; right: 5vw; top: 46%; transform: translateY(-50%); z-index: 0; font-family: var(--font-display); font-weight: 800; font-size: clamp(72px, 11vw, 160px); letter-spacing: -0.05em; line-height: 1; color: rgba(245, 246, 255, 0.9); font-variation-settings: "wdth" 92, "opsz" 96; }
.hero-word span { color: var(--amber); }
.hero.no-gl .hero-word, .hero:not(.gl-on) .hero-word { display: block; }
.hero-inner { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 22px; padding-block: 44px 18px; }
.lg { position: relative; }
.hero.gl-on .lg { background: transparent; box-shadow: 0 20px 44px rgba(3, 7, 28, 0.38), inset 0 0 0 1px rgba(255, 255, 255, 0.10); }
.hero:not(.gl-on) .lg { background: rgba(255, 255, 255, 0.10); border: 1px solid rgba(255, 255, 255, 0.18); -webkit-backdrop-filter: blur(16px) saturate(1.5); backdrop-filter: blur(16px) saturate(1.5); box-shadow: 0 20px 44px rgba(3, 7, 28, 0.35); }
.hero-card { max-width: 640px; border-radius: 30px; padding: 26px 30px 24px; display: flex; flex-direction: column; gap: 12px; }
.hero-kicker { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--hero-muted); }
.hero h1 { font-family: var(--font-display); font-size: clamp(42px, 6.4vw, 80px); font-weight: 800; line-height: 0.96; letter-spacing: -0.022em; color: #FFFFFF; font-variation-settings: "wdth" 92, "opsz" 96; text-shadow: 0 2px 22px rgba(5, 10, 35, 0.35); }
.nowrap { white-space: nowrap; }
.hero-lede { margin: 0; color: var(--hero-muted); font-size: 16px; line-height: 1.5; max-width: 46ch; }
.hero-foot { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: flex-end; justify-content: space-between; margin-top: 4px; }
.hero-stats { display: flex; gap: 22px; flex-wrap: wrap; font-size: 13px; color: var(--hero-muted); }
.hero-stats b { display: block; font-family: var(--font-display); font-size: 28px; font-weight: 700; color: #FFFFFF; line-height: 1.05; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.hero .seq { color: var(--hero-muted); gap: 12px; flex-wrap: wrap; }
.views { display: flex; gap: 10px; overflow-x: auto; padding: 6px 4px 16px; margin-inline: -4px; scrollbar-width: none; }
.views::-webkit-scrollbar { display: none; }
.view-btn {
  border: 0; background: transparent; color: var(--hero-ink); cursor: pointer; white-space: nowrap;
  border-radius: 999px; padding: 11px 18px; font-weight: 600; font-size: 14.5px;
  display: inline-flex; gap: 8px; align-items: center; text-shadow: 0 1px 8px rgba(5, 10, 35, 0.4);
}
.view-btn .badge { font-size: 12px; background: rgba(255, 255, 255, 0.16); color: #FFFFFF; border-radius: 999px; padding: 1px 8px; font-variant-numeric: tabular-nums; }
.view-btn[aria-current="page"] { font-weight: 700; }
.hero.gl-on .view-btn[aria-current="page"] { box-shadow: 0 16px 36px rgba(3, 7, 28, 0.4), inset 0 0 0 1.5px rgba(255, 255, 255, 0.55); }
.hero:not(.gl-on) .view-btn[aria-current="page"] { background: rgba(255, 255, 255, 0.24); }
.view-btn:focus-visible { outline: 2px solid #FFFFFF; outline-offset: 3px; }
.view-btn.end { margin-left: auto; }
.view-btn svg { width: 16px; height: 16px; }
@media (max-width: 1080px) { .hero.gl-on .hero-inner { padding-top: 132px; } }
@media (max-width: 560px) {
  .hero-card { padding: 20px 18px 18px; border-radius: 24px; }
  .hero.gl-on .hero-inner { padding-top: 118px; }
  .hero:not(.gl-on) .hero-word { display: none; }
  .hero-stats b { font-size: 23px; }
  .view-btn { padding: 10px 15px; font-size: 14px; }
  .view-btn .vb-txt { display: none; }
}

.btn.ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { background: var(--violet-soft); border-color: var(--violet); color: var(--ink); }
.btn.danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn.danger-ghost { background: var(--surface); color: var(--danger); border-color: var(--line); }
.btn.danger-ghost:hover { background: var(--danger-soft); border-color: var(--danger); color: var(--danger); }
.btn.sm { padding: 7px 11px; font-size: 13.5px; }
.btn:disabled { opacity: 0.55; cursor: progress; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* Mes programmes */
.mine-side { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 16px); display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.mine-side .btn { justify-content: center; }
.mine-groups { display: flex; flex-direction: column; gap: 14px; max-height: calc(100vh - 230px); overflow-y: auto; padding-right: 2px; }
.mine-group h2 { font-family: var(--font-body); font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.09em; color: var(--muted); margin: 0 0 6px 2px; display: flex; gap: 6px; align-items: center; }
.mine-group ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.mine-item {
  width: 100%; text-align: left; cursor: pointer; border: 1px solid var(--line); background: var(--surface);
  border-radius: 10px; padding: 9px 11px; display: flex; flex-direction: column; gap: 1px;
}
.mine-item:hover { border-color: var(--violet); }
.mine-item[aria-current="true"] { border-color: var(--violet); box-shadow: inset 0 0 0 1px var(--violet); background: var(--violet-soft); }
.mine-item .nm { font-weight: 600; font-size: 14.5px; line-height: 1.3; }
.mine-item .dt { font-size: 12px; color: var(--muted); }
.side-note { font-size: 12.5px; color: var(--muted); margin: 0; }
.tag { font-size: 10.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; border-radius: 5px; padding: 1px 6px; background: var(--plate); color: var(--muted); }
.tag.groupe { background: var(--blue-soft); color: var(--blue-ink); }

.empty-state { background: var(--surface); border: 1px dashed var(--line); border-radius: 18px; padding: 32px 28px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.empty-state h3 { font-size: 22px; }
.empty-state p { margin: 0; color: var(--muted); max-width: 60ch; }

/* Éditeur */
.editor { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 22px; }
.ed-top { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; }
.save-state { font-size: 13px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.save-state::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); }
.save-state.busy::before { background: var(--amber); }
.save-state.err { color: var(--danger); }
.save-state.err::before { background: var(--danger); }
.back-btn { display: none; }

.fields { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 14px; }
.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field.s2 { grid-column: span 2; }
.field.s3 { grid-column: span 3; }
.field.s4 { grid-column: 1 / -1; }
.field > label, .lbl, .mini > span { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
input[type="text"], input[type="search"], input[type="url"], textarea, select {
  font: inherit; font-size: 14.5px; color: var(--ink); background: var(--bg); border: 1px solid var(--line);
  border-radius: 10px; padding: 9px 11px; width: 100%; min-width: 0;
}
textarea { resize: vertical; line-height: 1.45; }
input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 2px solid var(--focus); outline-offset: 0; border-color: transparent; }
.title-input { font-family: var(--font-display) !important; font-size: 21px !important; font-weight: 700; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; align-self: flex-start; }
.seg button { border: 0; background: var(--surface); padding: 9px 13px; cursor: pointer; font-size: 14px; font-weight: 500; }
.seg button + button { border-left: 1px solid var(--line); }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }

.ed-items { display: flex; flex-direction: column; gap: 10px; }
.ed-item { display: grid; grid-template-columns: 28px 132px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 10px; border-radius: 12px; background: var(--cs); }
.ed-num { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--c); background: var(--surface); display: grid; place-items: center; font-weight: 700; font-size: 12.5px; margin-top: 3px; font-variant-numeric: tabular-nums; }
.ed-item .plate { border-radius: 8px; }
.ed-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(120px, 190px); gap: 8px 10px; min-width: 0; }
.ed-name { font-weight: 650; font-size: 15px; line-height: 1.3; align-self: center; }
.ed-fields .mini { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ed-fields .mini.note { grid-column: 1 / -1; }
.ed-fields input, .ed-fields textarea { background: var(--surface); padding: 7px 10px; font-size: 14px; }
.ed-ctrl { display: flex; flex-direction: column; gap: 4px; }
.icon-btn { width: 32px; height: 32px; border: 1px solid var(--line); background: var(--surface); border-radius: 8px; cursor: pointer; display: grid; place-items: center; color: var(--muted); padding: 0; }
.icon-btn:hover { color: var(--ink); border-color: var(--violet); }
.icon-btn:disabled { opacity: 0.35; cursor: default; }
.icon-btn.rm:hover { color: var(--danger); border-color: var(--danger); }
.icon-btn svg { width: 16px; height: 16px; }
.add-btn { border: 1.5px dashed var(--c); background: transparent; color: var(--ci); border-radius: 12px; padding: 11px 14px; font-weight: 600; cursor: pointer; text-align: left; font-size: 14px; }
.add-btn:hover { background: var(--cs); }
.ph-empty { font-size: 13.5px; color: var(--muted); margin: 0; }
.ed-foot { border-top: 1px solid var(--line); padding-top: 18px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; }

.plate.blank { display: grid; place-items: center; background: var(--plate); color: var(--muted); font-size: 12px; font-weight: 600; text-align: center; padding: 6px; }
.plate.still img { animation: none; }

/* Fenêtres */
.modal { position: fixed; inset: 0; z-index: 50; background: var(--scrim); display: flex; align-items: flex-start; justify-content: center; padding: calc(env(safe-area-inset-top, 0px) + 4vh) 16px 16px; overflow-y: auto; }
.modal-card { background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 18px; width: min(1000px, 100%); max-height: 90vh; display: flex; flex-direction: column; overflow: hidden; }
.modal-card.narrow { width: min(560px, 100%); }
.modal-head { padding: 16px 20px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.modal-head h3 { font-size: 19px; }
.modal-body { padding: 16px 20px 20px; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; }
.modal-foot { padding: 12px 20px; border-top: 1px solid var(--line); display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.filters select { width: auto; flex: 1 1 160px; }
.chip { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 6px 12px; cursor: pointer; font-size: 13.5px; font-weight: 500; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.pick-count { font-size: 13px; color: var(--muted); }
.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: 10px; }
.pick { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface); cursor: pointer; text-align: left; padding: 0; display: flex; flex-direction: column; position: relative; }
.pick:hover { border-color: var(--violet); }
.pick .plate img { animation: none; }
.pick .nm { padding: 8px 10px 2px; font-weight: 600; font-size: 13.5px; line-height: 1.25; }
.pick .mu { padding: 0 10px 9px; font-size: 12px; color: var(--muted); }
.pick .added { position: absolute; top: 6px; right: 6px; background: var(--violet); color: #fff; border-radius: 999px; font-size: 12px; font-weight: 700; padding: 2px 8px; }
.qr-wrap { display: flex; gap: 18px; align-items: flex-start; flex-wrap: wrap; }
.qr-box { background: #FFFFFF; padding: 10px; border-radius: 12px; width: 220px; max-width: 100%; border: 1px solid var(--line); }
.qr-box svg { display: block; width: 100%; height: auto; }
.qr-info { flex: 1 1 220px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.url-line { font: 12.5px/1.45 ui-monospace, Menlo, monospace; word-break: break-all; color: var(--muted); background: var(--bg); border-radius: 8px; padding: 8px 10px; margin: 0; max-height: 7.5em; overflow: auto; }
.notice { background: var(--amber-soft); color: var(--ink); border-radius: 10px; padding: 10px 12px; font-size: 13.5px; margin: 0; }
.check { display: flex; gap: 8px; align-items: center; font-size: 14px; }
.help { font-size: 12.5px; color: var(--muted); margin: 0; }
.toast { position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + 18px); transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 10px; font-size: 14px; z-index: 70; max-width: calc(100vw - 32px); }
.shared-banner { background: var(--violet-soft); border-radius: 14px; padding: 14px 18px; display: flex; flex-direction: column; gap: 4px; }
.shared-banner b { font-family: var(--font-display); font-size: 17px; }
.shared-banner span { color: var(--muted); font-size: 14px; }
.single { max-width: 1100px; margin: 0 auto; padding-block: 24px 56px; display: flex; flex-direction: column; gap: 18px; }

@media (max-width: 900px) {
  .mine-shell { grid-template-columns: minmax(0, 1fr); }
  .mine-side { position: static; }
  .mine-groups { max-height: none; }
  .mine-shell.editing .mine-side { display: none; }
  .mine-shell:not(.editing) .mine-main { display: none; }
  .back-btn { display: inline-flex; }
  .fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .field.s3 { grid-column: 1 / -1; }
  .ed-item { grid-template-columns: 28px 104px minmax(0, 1fr); }
  .ed-ctrl { grid-column: 1 / -1; flex-direction: row; justify-content: flex-end; }
}
@media (max-width: 560px) {
  .editor { padding: 18px 14px 20px; border-radius: 14px; }
  .fields { grid-template-columns: minmax(0, 1fr); }
  .field.s2, .field.s3 { grid-column: 1 / -1; }
  .ed-item { grid-template-columns: 26px 84px minmax(0, 1fr); gap: 10px; }
  .ed-fields { grid-template-columns: minmax(0, 1fr); grid-column: 2 / -1; }
  .ed-item > .plate { grid-row: 1; }
  .pick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .modal { padding-inline: 8px; }
  .modal-head, .modal-body, .modal-foot { padding-inline: 14px; }
}
@media (max-width: 900px) and (min-width: 561px) { .ed-fields { grid-column: 3; } }

/* QR code visible dans chaque programme */
.qr-inline { display: flex; gap: 12px; align-items: center; background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; max-width: 380px; min-width: 0; }
.qr-inline:empty { display: none; }
.qr-inline.missing { max-width: 460px; border-style: dashed; }
.qr-mini { flex: none; width: 104px; height: 104px; padding: 5px; background: #FFFFFF; border: 1px solid var(--line); border-radius: 10px; cursor: zoom-in; }
.qr-mini:hover { border-color: var(--violet); }
.qr-mini svg { display: block; width: 100%; height: 100%; }
.qr-ph { flex: none; width: 56px; height: 56px; border-radius: 10px; background: var(--plate); color: var(--muted); display: grid; place-items: center; }
.qr-ph svg { width: 28px; height: 28px; }
.qr-txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.qr-txt b { font-size: 14px; }
.qr-set { display: flex; gap: 6px; margin-top: 4px; }
.qr-set input { padding: 7px 10px; font-size: 13.5px; background: var(--surface); }
.prog-top .qr-inline { flex: 0 1 380px; }
.editor > .qr-inline { align-self: flex-start; }
@media (max-width: 560px) { .qr-inline { max-width: none; width: 100%; } .qr-mini { width: 92px; height: 92px; } }

/* Photos et vidéos personnelles */
.plate.umedia img, .plate.umedia video { width: 100%; height: 100%; max-width: 100%; object-fit: cover; animation: none; transform: none; display: block; }
.plate.umedia { cursor: zoom-in; }
.plate.umedia.blank span { font-size: 11.5px; color: var(--muted); padding: 6px; text-align: center; }
.play-badge { position: absolute; left: 6px; bottom: 6px; z-index: 1; background: rgba(13, 20, 51, 0.75); color: #FFFFFF; font-size: 11px; font-weight: 700; border-radius: 999px; padding: 2px 8px; }
.media-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.media-row input[type="url"] { flex: 1 1 200px; width: auto; }
.file-btn { cursor: pointer; }
.file-btn svg { width: 15px; height: 15px; }
.vlink { font: inherit; cursor: pointer; display: inline-flex; align-self: flex-start; margin-top: 4px; font-size: 13px; font-weight: 700; color: var(--violet-ink); text-decoration: none; border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; background: var(--surface); }
.vlink:hover { border-color: var(--violet); }
.viewer .modal-body { align-items: center; }
.viewer img, .viewer video { max-width: 100%; max-height: 70vh; border-radius: 12px; background: #000000; display: block; }
.embed { width: 100%; display: flex; justify-content: center; }
.embed iframe { border: 0; display: block; width: 100%; border-radius: 12px; background: #000000; }
.embed-yt iframe, .embed-vimeo iframe { aspect-ratio: 16 / 9; }
.embed-yt-short iframe { aspect-ratio: 9 / 16; max-height: 72vh; width: auto; height: 72vh; max-width: 100%; }
.embed-ig iframe { max-width: 420px; height: min(76vh, 760px); background: #FFFFFF; }

/* Illustrations Cap'APA (image unique, sans animation) */
.plate.one { background: #FFFFFF; }
.plate.one img { width: 100%; height: 100%; max-width: 100%; object-fit: contain; animation: none; transform: none; display: block; }
.plate.zoom { cursor: zoom-in; }
.zoom-img { width: 100%; max-height: 70vh; object-fit: contain; background: #FFFFFF; border-radius: 12px; display: block; }
.src-tag { position: absolute; left: 6px; top: 6px; background: var(--violet); color: #FFFFFF; font-size: 10.5px; font-weight: 700; letter-spacing: 0.04em; border-radius: 999px; padding: 2px 8px; }
.chip-cap[aria-pressed="false"] { border-color: var(--violet); color: var(--violet-ink); }

html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;}  
html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;}  
html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;}  
.np-top{position:relative;z-index:30;display:flex;flex-wrap:wrap;gap:.4rem 1rem;align-items:center;justify-content:space-between;padding:.6rem clamp(1rem,3vw,2rem);background:#1E2A52;color:#fff;font:600 .9rem/1.3 "Hanken Grotesk",system-ui,sans-serif}
.np-top a{color:#fff;text-decoration:none;opacity:.9}.np-top a:hover{opacity:1;text-decoration:underline}
.np-top nav{display:flex;gap:1rem;flex-wrap:wrap}
html:not([data-mode="atelier"]) .view-btn[data-view="mine"],html:not([data-mode="atelier"]) [data-act="settings"],html:not([data-mode="atelier"]) [data-act="customize"]{display:none!important}
.btn.play{background:#FFB02E;color:#1E2A52;border-color:#FFB02E}
.vlink.mp4{cursor:pointer}
.plate img[src*="/img/"]{background:transparent}
