@font-face { font-family: 'Barlow Condensed'; src: url("/landing/mytactic/barlow-condensed-bold.ttf") format('truetype'); font-weight: 700; font-display: swap; }
.product-demo {
  color-scheme: dark;
  --ink: #191815;
  --muted: #f0dfd2;
  --copper: #ffb294;
  --orange: #ff8357;
  --focus: var(--copper);
  --body: Barlow, 'Arial', sans-serif;
  --display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --mono: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
  --edge: clamp(20px, 4.45vw, 72px);
  --snap: 145ms cubic-bezier(.2,.8,.2,1);
  --photo-lead: clamp(6rem, 9.5vw, 10.5rem);
  --photo-height: clamp(32rem, 44vw, 44rem);
  --headsets-image: url('./encounter-headsets.webp');
  position: relative;
  color: var(--chalk);
}
.product-demo::before {
  /* Le fond passe derrière le bas de l’affiche, mais jamais devant ses textes. */
  content: '';
  position: absolute;
  z-index: -1;
  inset: calc(-1 * var(--photo-lead)) 0 auto;
  height: calc(var(--photo-lead) + min(100%, var(--photo-height)));
  pointer-events: none;
  background:
    radial-gradient(ellipse clamp(21rem, 27vw, 37rem) 55% at max(16%, 50% - 28.5rem) 54%, #14121670 16%, transparent),
    linear-gradient(105deg, #291e21a6, #151418ba 44%, #14141685),
    var(--headsets-image) 12% center / cover no-repeat;
  mask-image: linear-gradient(transparent, #0001 10%, #0007 21%, #000d 32%, #000 47% 63%, #000b 77%, #0003 92%, transparent);
}
@media (min-width: 1700px), (min-width: 881px) and (min-resolution: 1.5dppx) {
  .product-demo { --headsets-image: url('./encounter-headsets-hd.webp'); }
}
.product-demo ul { padding: 0; list-style: none; }
.product-demo button { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.product-demo button:focus-visible { outline-offset: 3px; }
.product-demo .icon { width: 18px; height: 18px; stroke-width: 1.65; }
.product-demo .kicker { font: 400 .72rem/1.4 var(--mono); letter-spacing: .075em; }
.product-demo .hero-kicker { font-weight: 600; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.demo-wrap { width: min(1312px, calc(100% - 2 * var(--edge))); margin-inline: auto; }
.jump-target { scroll-margin-block-start: 18px; }
.hero { padding-block: clamp(42px, 4.1vw, 58px) 56px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, .94fr) minmax(0, 1.91fr); align-items: start; gap: clamp(30px, 4.2vw, 72px); }
.hero-copy { container-type: inline-size; padding-top: clamp(42px, 6.65vw, 100px); }
.hero-kicker { display: flex; align-items: center; gap: 10px; color: var(--copper); font-weight: 600; }
.hero-kicker::before { content: ''; width: 25px; height: 2px; background: currentColor; flex: 0 0 auto; }
.hero-copy h2 { margin-top: 17px; font: 800 clamp(2.82rem, 19.2cqi, 5.2rem)/.93 var(--display); letter-spacing: -.027em; }
.hero-copy h2 span { display: block; }
.hero-copy h2 .accent { color: var(--copper); }
.hero-copy .lead { max-width: 30ch; margin-top: 24px; color: var(--muted); font-size: clamp(1.12rem, 1.42vw, 1.3rem); line-height: 1.43; text-wrap: pretty; }
.hero-actions { margin-top: 28px; }
.demo-action { display: inline-flex; justify-content: center; align-items: center; gap: 16px; min-height: 50px; border: 1px solid transparent; border-radius: 6px; padding: 9px 16px; font-weight: 600; line-height: 1.15; text-align: center; transition: background-color var(--snap), color var(--snap), transform var(--snap), border-color var(--snap); }
.demo-action:active, .tool:active { transform: translateY(1px) scale(.985); }
.demo-action .icon { transition: transform var(--snap); }
.demo-action:hover .icon { transform: translateX(3px); }
.action-primary { justify-content: space-between; min-height: 56px; background: var(--chalk); color: var(--ink); font-size: 1.07rem; padding-inline: 16px 13px; }
.action-primary .action-icon { width: 32px; height: 32px; display: grid; place-items: center; background: var(--orange); color: var(--ink); border-radius: 3px; }
.action-primary:hover { background: #ffdfc8; }
.quiet { margin-top: 9px; color: var(--muted); font-size: .91rem; }

.desk { min-width: 0; }
.desk-meta { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 11px; color: var(--muted); }
.desk-meta .kicker { display: inline-flex; align-items: center; gap: 8px; }
.desk-meta .marker { width: 8px; height: 8px; transform: rotate(45deg); background: var(--copper); flex: 0 0 auto; }
.desk-meta .plate-no { white-space: nowrap; }
.demo {
  color-scheme: dark;
  --ui: #131316;
  --ui-head: #1b1a1e;
  --ui-soft: #1c1b20;
  --ui-hi: #27262c;
  --ui-line: #37353d;
  --ui-text: #f5efe7;
  --ui-muted: #bbb5bc;
  --green: #a5e3b4;
  --focus: #ff9a76;
  border: 1px solid #493b40;
  border-radius: 13px;
  background: var(--ui);
  color: var(--ui-text);
  box-shadow: 0 26px 52px -25px #080507ef;
}
.demo[data-active='true'] { border-color: #9e573e; }
.demo-top { min-height: 52px; border-radius: 12px 12px 0 0; border-bottom: 1px solid var(--ui-line); padding: 8px 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--ui-head); }
.demo-title { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.demo-title strong { font: 800 1.55rem/1 var(--display); letter-spacing: -.018em; }
.demo-title strong::after { display: inline-block; content: ''; width: 2px; height: .7em; margin-left: 6px; background: var(--orange); transform: skewX(-10deg); vertical-align: -.015em; }
.demo-title span { font-size: .86rem; color: var(--ui-muted); }
.demo-data { font-size: .8rem; font-weight: 600; color: #ecc4b3; line-height: 1.2; text-align: right; }
.demo-nav { display: flex; gap: 4px; padding-inline: 14px; border-bottom: 1px solid var(--ui-line); }
.tab {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 47px; border: 0; border-radius: 3px 3px 0 0; background: transparent; color: var(--ui-muted); padding: 8px 14px;
  font-size: .93rem; font-weight: 600; white-space: nowrap; transition: background-color var(--snap), color var(--snap);
}
.tab .icon { width: 16px; height: 16px; }
.tab:hover { background: var(--ui-hi); color: var(--ui-text); }
.tab[aria-pressed='true'] { color: var(--ui-text); background: #242025; }
.tab[aria-pressed='true']::after { position: absolute; inset: auto 0 -1px; height: 2px; content: ''; background: var(--orange); }
.tab[aria-pressed='true'] .icon { color: var(--orange); }
.tab:focus-visible { outline-offset: -4px; }
.view { padding: 20px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 8px 14px; margin-bottom: 13px; }
.panel-head h3 { font: 700 clamp(1.56rem, 2.45vw, 2.15rem)/1.03 var(--display); letter-spacing: -.009em; }
.view h3:focus, #historique-titre:focus { outline: none; }
.panel-head h3:focus-visible, #historique-titre:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
.tag { display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; flex: 0 0 auto; gap: 6px; border: 1px solid #5a443c; background: #32251f; color: #ffc7ad; border-radius: 4px; padding: 3px 8px; font-size: .78rem; font-weight: 600; line-height: 1.3; }
.tag-ok { background: #20332b; color: var(--green); border-color: #3a5549; }
.tag-ok::before { content: ''; width: 5px; height: 5px; background: currentColor; border-radius: 50%; }

/* La carte de rencontre ne contient que les informations nécessaires au prochain scrim. */
.fixture { border: 1px solid var(--ui-line); border-radius: 8px; overflow: hidden; }
.duel { position: relative; isolation: isolate; overflow: hidden; background: #231d1d; }
.duel-photo { position: absolute; inset: 0 0 0 auto; width: 53%; height: 100%; object-fit: cover; object-position: 50% 56%; opacity: .68; filter: saturate(.75); z-index: -2; }
.duel::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #261b1c 4%, #291d1deb 36%, #1c171c45 100%); }
.duel::after { content: ''; position: absolute; z-index: -1; inset: -80% auto -80% 50%; width: 1px; background: #e49b785c; transform: rotate(23deg); }
.duel-grid { min-height: 143px; display: grid; grid-template-columns: minmax(0,1fr) 40px minmax(0,1fr); align-items: center; gap: 10px; padding: 17px 18px; }
.duel-team { display: flex; justify-content: center; align-items: center; gap: 13px; min-width: 0; }
.duel-team strong { font: 800 clamp(1.55rem, 2.45vw, 2.4rem)/1 var(--display); letter-spacing: -.015em; text-shadow: 0 1px 5px #1713169e; }
.crest { display: grid; place-items: center; flex: 0 0 auto; width: 66px; height: 66px; border-radius: 8px; border: 1px solid #ffffff24; background: #151316; }
.crest img { object-fit: contain; width: 74%; height: 78%; }
.versus { justify-self: center; padding: 5px 7px; border: 1px solid #8e6e60; transform: skewX(-8deg); background: #251b1b; color: #ffb396; font: 800 1.02rem/1 var(--display); letter-spacing: .06em; }
.versus span { display: block; transform: skewX(8deg); }
.fixture-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 21px; padding: 12px 15px; background: var(--ui-soft); font-size: .95rem; }
.fixture-meta span { display: inline-flex; align-items: center; gap: 7px; }
.fixture-meta time { font-weight: 600; }
.fixture-meta .icon { color: var(--ui-muted); width: 15px; height: 15px; }
.qg-action { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; padding: 17px 0 19px; }
.availability { display: flex; align-items: center; gap: 12px; min-width: 0; }
.availability-copy strong { display: block; font-weight: 600; line-height: 1.2; }
.availability-copy small { display: block; margin-top: 3px; color: var(--ui-muted); font-size: .85rem; line-height: 1.2; }
.segments { width: 51px; flex: 0 0 auto; display: grid; grid-template-columns: repeat(4,1fr); gap: 3px; }
.segments i { height: 8px; border-radius: 2px; background: #659f7c; }
.segments[data-rsvp-state='waiting'] i:last-child { background: #524d57; }
.segments[data-rsvp-state='no'] i:last-child { background: #ba6f5f; }
.action-demo { min-height: 46px; gap: 11px; background: var(--orange); color: #24140e; font-size: .96rem; white-space: nowrap; }
.action-demo:hover { background: #ffa07d; }
.action-demo:focus { outline: 2px solid var(--focus); outline-offset: 3px; }
.result-rail { border-top: 1px solid var(--ui-line); padding-top: 12px; }
.result-rail h4 { font-size: .8rem; line-height: 1.3; font-weight: 600; color: var(--ui-muted); text-transform: uppercase; letter-spacing: .075em; }
.result-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; }
.result-club { display: flex; align-items: center; gap: 9px; min-width: 0; }
.mini-crest { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 auto; border-radius: 5px; background: #272630; }
.mini-crest img { width: 24px; height: 24px; object-fit: contain; }
.result-club strong { display: block; font-weight: 600; line-height: 1.15; }
.result-club small { display: block; color: var(--ui-muted); font-size: .8rem; line-height: 1.2; }
.result-score { font: 800 1.55rem/1 var(--display); letter-spacing: .016em; white-space: nowrap; }

.demo-foot { display: flex; align-items: baseline; gap: 12px; border-top: 1px solid var(--ui-line); background: var(--ui-head); border-radius: 0 0 12px 12px; padding: 12px 20px; }
.demo-foot .step-number { color: var(--orange); white-space: nowrap; font-size: .7rem; }
.demo-foot p { color: var(--ui-muted); font-size: .86rem; line-height: 1.3; }

/* Fiche et historique */
.fixture-compact .duel-grid { min-height: 96px; padding-block: 12px; }
.fixture-compact .duel { background: #261e24; }
.fixture-compact .duel-team strong { font-size: clamp(1.4rem, 2.24vw, 1.95rem); }
.fixture-compact .crest { width: 48px; height: 48px; }
.group-head { display: flex; justify-content: space-between; align-items: center; gap: 7px 12px; margin: 13px 0 9px; }
.group-head h4, .day-detail h4, .week-list h4 { font: 700 1.39rem/1.12 var(--display); letter-spacing: -.005em; }
.tool { min-height: 44px; padding: 8px 12px; border: 1px solid var(--ui-line); border-radius: 5px; background: var(--ui-soft); color: var(--ui-text); font-size: .91rem; font-weight: 600; line-height: 1.15; transition: background-color var(--snap), color var(--snap), transform var(--snap), border-color var(--snap); }
.tool:hover { background: var(--ui-hi); border-color: #6d626a; }
.tool[aria-pressed='true'] { background: #432b24; border-color: #c17a60; color: #ffd8c6; }
.inline-tool { display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
.inline-tool .icon { width: 15px; height: 15px; }
.rosters { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.roster { padding: 11px 12px 12px; border-radius: 7px; background: var(--ui-soft); }
.roster h5 { margin: 0 0 9px; font-size: .96rem; line-height: 1.2; font-weight: 600; }
.roster:nth-child(1) h5 { color: #ffcebb; }
.roster:nth-child(2) h5 { color: #efd0df; }
.roster ul { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px 9px; }
.roster li { min-width: 0; display: flex; gap: 7px; align-items: center; font-size: .87rem; line-height: 1.05; font-weight: 600; overflow-wrap: anywhere; }
.portrait, .visitor { flex: 0 0 auto; width: 35px; height: 35px; border-radius: 5px; background: #34313a; }
.portrait { object-fit: cover; object-position: center 27%; }
.visitor { display: grid; place-items: center; color: #e7c2b3; }
.roster em { display: block; color: var(--ui-muted); margin-top: 3px; font-size: .72rem; font-style: normal; font-weight: 400; }
.history { border-top: 1px solid var(--ui-line); margin-top: 17px; }
.history .group-head { margin: 10px 0 5px; }
.filters { display: flex; flex-wrap: wrap; gap: 5px; }
.filters .tool { padding-inline: 10px; font-size: .83rem; }
.history-row { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr) auto; align-items: center; gap: 8px 10px; min-height: 37px; border-top: 1px solid #2c2a32; font-size: .89rem; }
.history-row time { color: var(--ui-muted); }
.history-row b { font-weight: 600; font-variant-numeric: tabular-nums; }

/* Agenda : les jours et les rencontres pilotent le même détail. */
.week { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 4px; margin-bottom: 14px; }
.day { display: grid; align-content: center; justify-items: center; gap: 3px; padding: 6px 0 5px; min-height: 61px; }
.day span { font-size: .75rem; font-weight: 400; color: var(--ui-muted); line-height: 1; }
.day b { font: 700 1.38rem/1 var(--display); }
.day::after { content: ''; width: 4px; height: 4px; border-radius: 50%; }
.day.has-event::after { background: var(--orange); }
.agenda-grid { display: grid; grid-template-columns: minmax(0,1.3fr) minmax(0,1fr); gap: 12px; }
.day-detail, .week-list { min-width: 0; padding: 13px; border-radius: 7px; background: var(--ui-soft); }
.agenda-event { display: grid; grid-template-columns: auto minmax(0,1fr); align-items: center; gap: 9px; margin-block: 12px; }
.agenda-event p { font-size: .92rem; color: var(--ui-muted); line-height: 1.25; }
.agenda-event strong { display: block; color: var(--ui-text); font-size: .97rem; font-weight: 600; }
.day-detail .empty { margin-top: 12px; color: var(--ui-muted); }
.day-detail .inline-tool { margin-top: 3px; }
.rsvp { margin-top: 15px; border-top: 1px solid var(--ui-line); padding-top: 11px; }
.rsvp > p { font-size: .92rem; font-weight: 600; }
.rsvp .choices { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.rsvp .tool { padding-inline: 9px; font-size: .82rem; }
.rsvp .small-note { margin-top: 7px; color: var(--ui-muted); font-size: .79rem; font-weight: 400; }
.week-list ul { display: grid; gap: 4px; margin-top: 7px; }
.week-match { display: flex; width: 100%; align-items: center; text-align: left; gap: 8px; padding: 6px; border-color: transparent; }
.week-match strong, .week-match small { display: block; }
.week-match strong { font-size: .92rem; font-weight: 600; }
.week-match small { margin-top: 3px; color: var(--ui-muted); font-size: .77rem; }

@media (max-width: 1060px) {
  .duel-grid { gap: 6px; grid-template-columns: minmax(0,1fr) 34px minmax(0,1fr); padding-inline: 10px; }
  .duel-team { gap: 8px; }
  .crest { width: 55px; height: 55px; }
  .availability { gap: 8px; }
  .segments { width: 34px; }
}
@media (max-width: 880px) {
  .product-demo {
    --edge: clamp(18px, 4.3vw, 38px);
    --photo-lead: 5.5rem;
    --photo-height: 25.5rem;
    --headsets-image: url('./encounter-headsets-mobile.webp');
  }
  .product-demo::before {
    background:
      linear-gradient(105deg, #1d171ab8, #151418b9),
      var(--headsets-image) 8% 26% / cover no-repeat;
  }
  .hero { min-height: 0; padding-block: 35px 48px; }
  .hero-grid { grid-template-columns: minmax(0,1fr); }
  .hero-copy { padding-top: 0; }
  .hero-copy h2 { font-size: clamp(3rem,17.4cqi,5.2rem); }
  .hero-copy .lead { max-width: 39ch; }
  .desk { width: 100%; }
  .duel-team strong { font-size: clamp(1.55rem,4.4vw,2.4rem); }
  .hero-grid { row-gap: 26px; }
}
@media (max-width: 560px) {
  .hero { padding-block: 26px 37px; }
  .hero-kicker { font-size: .65rem; letter-spacing: .045em; }
  .hero-kicker::before { width: 14px; }
  .hero-copy h2 { margin-top: 12px; }
  .hero-copy .lead { margin-top: 14px; font-size: 1.06rem; }
  .hero-actions { margin-top: 19px; }
  .action-primary { min-height: 50px; }
  .quiet { margin-top: 6px; font-size: .85rem; }
  .desk-meta { margin-bottom: 7px; }
  .desk-meta .kicker { font-size: .65rem; }
  .desk-meta .marker { width: 6px; height: 6px; }
  .demo { border-radius: 10px; }
  .demo-top { min-height: 44px; padding: 6px 12px; border-radius: 9px 9px 0 0; }
  .demo-title strong { font-size: 1.42rem; }
  .demo-title span { display: none; }
  .demo-data { font-size: .77rem; }
  .demo-nav { display: grid; grid-template-columns: minmax(0,.75fr) minmax(0,.94fr) minmax(0,1.2fr); gap: 2px; padding-inline: 6px; }
  .tab { gap: 5px; padding: 7px 3px; min-height: 45px; font-size: .88rem; }
  .tab .icon { width: 14px; height: 14px; }
  .view { padding: 12px; }
  .panel-head { margin-bottom: 10px; }
  .panel-head h3 { font-size: clamp(1.45rem,6.35vw,1.88rem); }
  .duel-grid { min-height: 105px; padding: 10px 6px; gap: 2px; }
  .duel-team { flex-direction: column; text-align: center; gap: 5px; }
  .duel-team strong { font-size: 1.26rem; }
  .crest { width: 48px; height: 48px; border-radius: 5px; }
  .fixture-meta { padding: 8px 9px; gap: 3px 13px; font-size: .86rem; }
  .fixture-meta .icon { width: 13px; height: 13px; }
  .qg-action { gap: 8px; padding-block: 12px; }
  .availability-copy { font-size: .88rem; }
  .availability-copy small { font-size: .77rem; }
  .segments { display: none; }
  .action-demo { gap: 6px; padding-inline: 8px; font-size: .86rem; }
  .action-demo .icon { width: 15px; height: 15px; }
  .demo-foot { padding: 10px 12px; border-radius: 0 0 9px 9px; gap: 8px; }
  .demo-foot .step-number { font-size: .64rem; }
  .demo-foot p { font-size: .81rem; }
  .fixture-compact .duel-team strong { font-size: 1.23rem; }
  .fixture-compact .crest { width: 42px; height: 42px; }
  .rosters, .agenda-grid { grid-template-columns: 1fr; gap: 8px; }
  .group-head h4, .day-detail h4, .week-list h4 { font-size: 1.22rem; }
  .group-head .tool { font-size: .84rem; padding-inline: 8px; }
  .history .group-head { align-items: flex-start; flex-direction: column; }
  .week { gap: 0; margin-bottom: 10px; }
  .day { min-height: 57px; border-radius: 0; }
  .day:first-child { border-radius: 5px 0 0 5px; }
  .day:last-child { border-radius: 0 5px 5px 0; }
  .day + .day:not([aria-pressed='true']) { border-left-color: transparent; }
}
@media (max-width: 354px) {
  .qg-action { flex-wrap: wrap; }
  .qg-action .demo-action { width: 100%; }
  .week { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 3px; }
  .day:first-child, .day:last-child, .day { border-radius: 4px; }
}
@media (prefers-reduced-motion: reduce) {
    .demo-action:active, .tool:active { transform: none; }
}
