/*
  Planning Équipes — page vitrine, shared by index.html and en/index.html.

  The palette is the application's own: Angular Material's azure primary and
  the eight game-category hues (src/main/webui/src/styles/typologie-colors.css),
  each as a pastel field (--cN) with its readable ink (--cNt). Dark mode
  redefines every token; nothing below names a colour directly.
*/

:root {
  --bg: #f9f9ff;
  --surface: #ffffff;
  --surface2: #eef1f9;
  --surface3: #e2e7f3;
  --text: #191c20;
  --muted: #43474e;
  --line: #c4c6d0;
  --primary: #005cbb;
  --onprimary: #ffffff;
  --pc: #d7e3ff;
  --onpc: #001b3f;
  --link: #005cbb;
  --focus: #005cbb;
  --ok: #1b6c2c;
  --ko: #ba1a1a;
  --target: #d7e3ff;
  --qrbg: #ffffff;
  --qrfg: #191c20;
  --shadow: rgb(0 40 100 / .07);
  --c0: #d7e3fc;
  --c0t: #16305c;
  --c1: #d9efd8;
  --c1t: #1d4620;
  --c2: #fde3cf;
  --c2t: #6a3410;
  --c3: #ecdcf5;
  --c3t: #472159;
  --c4: #fbdce4;
  --c4t: #6b1f36;
  --c5: #d2ecef;
  --c5t: #12454c;
  --c6: #f6e7bf;
  --c6t: #5a4410;
  --c7: #e0e2e6;
  --c7t: #33373d;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111318;
    --surface: #1d2024;
    --surface2: #171a1f;
    --surface3: #282a2f;
    --text: #e2e2e9;
    --muted: #c4c6d0;
    --line: #3a3e46;
    --primary: #abc7ff;
    --onprimary: #002f65;
    --pc: #00458f;
    --onpc: #d7e3ff;
    --link: #abc7ff;
    --focus: #abc7ff;
    --ok: #8fd893;
    --ko: #ffb4ab;
    --target: #00458f;
    --qrbg: #e2e2e9;
    --qrfg: #111318;
    --shadow: rgb(0 0 0 / .3);
    --c0: #1c2d4a;
    --c0t: #c4d3ee;
    --c1: #1e4821;
    --c1t: #c9e9cb;
    --c2: #4a2e1c;
    --c2t: #eed5c4;
    --c3: #3b1c4a;
    --c3t: #dfc7ea;
    --c4: #4a1c2a;
    --c4t: #eec4d0;
    --c5: #1c444a;
    --c5t: #c4e9ee;
    --c6: #4a3c1c;
    --c6t: #eee1c4;
    --c7: #2e3238;
    --c7t: #cdd6e4;
  }
}

/* ---------- base ---------- */

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  overflow-wrap: break-word;
  font: 400 1rem/1.55 system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
svg { display: block; }
a { color: var(--link); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
[id] { scroll-margin-top: 5rem; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
code { font: 600 .93rem/1.3 ui-monospace, "SF Mono", Menlo, Consolas, monospace; overflow-wrap: anywhere; }

.wrap { max-width: 72rem; margin: 0 auto; padding-inline: 16px; }
@media (min-width: 48rem) { .wrap { padding-inline: 2rem; } }

.vh {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 16px; top: -4rem; z-index: 20; padding: .7rem 1rem;
  background: var(--text); color: var(--bg); font-weight: 700; text-decoration: none; border-radius: 6px;
}
.skip:focus { top: .6rem; }

/* category hues: a class sets the pair, components read --cb / --ct */
.c0 { --cb: var(--c0); --ct: var(--c0t); } .c1 { --cb: var(--c1); --ct: var(--c1t); }
.c2 { --cb: var(--c2); --ct: var(--c2t); } .c3 { --cb: var(--c3); --ct: var(--c3t); }
.c4 { --cb: var(--c4); --ct: var(--c4t); } .c5 { --cb: var(--c5); --ct: var(--c5t); }
.c6 { --cb: var(--c6); --ct: var(--c6t); } .c7 { --cb: var(--c7); --ct: var(--c7t); }

.ico { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- type ---------- */

.kicker { font-size: .875rem; font-weight: 500; color: var(--primary); }
h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); line-height: 1.08; font-weight: 500; letter-spacing: -.02em; }
h1 em { font-style: normal; color: var(--primary); }
h2 { font-size: clamp(1.45rem, 2.6vw, 1.95rem); line-height: 1.15; font-weight: 500; letter-spacing: -.01em; }
h3 { font-size: 1.05rem; line-height: 1.3; font-weight: 600; }
.lede { font-size: 1.1rem; color: var(--muted); }
.fine { font-size: .88rem; color: var(--muted); }

section { padding-block: clamp(1.6rem, 3.4vw, 2.3rem); }
section + section { border-top: 1px solid var(--line); }
.alt { background: var(--surface2); }
.head { display: grid; gap: .4rem; }

/* ---------- top bar ---------- */

.top { position: sticky; top: 0; z-index: 10; background: var(--surface); border-bottom: 1px solid var(--line); }
.top__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; padding-block: .7rem; }
.logo { display: flex; align-items: center; gap: .55rem; color: var(--text); text-decoration: none; font-weight: 700; font-size: 1.08rem; white-space: nowrap; }
.logo svg { width: 30px; height: 30px; flex: none; }
.lg-box { fill: var(--primary); } .lg-hot { fill: var(--c6); } .lg-bar { fill: var(--onprimary); }
.top nav ul { display: flex; flex-wrap: wrap; align-items: center; gap: .2rem .9rem; }
.top nav a { display: inline-block; padding: .35rem 0; color: var(--text); text-decoration: none; font-size: .95rem; }
.top nav a:hover { text-decoration: underline; }
.top nav a.lang { padding: .2rem .65rem; border: 1px solid var(--line); border-radius: 999px; font-size: .85rem; font-weight: 500; }
.top nav a.nav-cta { padding: .4rem 1.05rem; border-radius: 999px; background: var(--primary); color: var(--onprimary); font-weight: 500; white-space: nowrap; }
.cta-s { display: none; }
/* small screens keep the language switch and the demo button only */
@media (max-width: 52rem) {
  .top__in { flex-wrap: nowrap; }
  .top nav ul { flex-wrap: nowrap; gap: .5rem; }
  .top nav li:not(:nth-last-child(-n+2)) { display: none; }
}
/* the top-bar button shortens to one word where the full label would wrap */
@media (max-width: 30rem) { .cta-l { display: none; } .cta-s { display: inline; } }
@media (max-width: 23.9rem) {
  .logo { font-size: .98rem; gap: .4rem; }
  .logo svg { width: 26px; height: 26px; }
  .top nav a.nav-cta { padding: .4rem .8rem; }
}
@media (max-width: 21.9rem) {
  .top__in { gap: .5rem; }
  .logo { font-size: .9rem; gap: .35rem; }
  .logo svg { width: 24px; height: 24px; }
  .top nav ul { gap: .35rem; }
  .top nav a.lang { padding: .2rem .5rem; }
  .top nav a.nav-cta { padding: .4rem .7rem; }
}
@media (max-width: 19.9rem) { .top__in { flex-wrap: wrap; } }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 1.3rem; border-radius: 999px;
  font-size: .95rem; font-weight: 500; text-decoration: none;
}
.btn--primary { background: var(--primary); color: var(--onprimary); box-shadow: 0 1px 3px rgb(0 0 0 / .15); }
.btn--quiet { background: var(--surface); color: var(--primary); border: 1px solid var(--line); }
.btn:hover { filter: brightness(1.08); }
.acts { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }

/* ---------- hero ---------- */

.hero { padding-block: clamp(1.6rem, 4vw, 2.6rem) clamp(1.8rem, 4vw, 2.6rem); }
.hero__say { display: grid; gap: 1.1rem 3rem; margin-bottom: 1.6rem; }
.hero__say > div { display: grid; gap: .9rem; align-content: end; }
@media (min-width: 60rem) { .hero__say { grid-template-columns: 11fr 9fr; align-items: end; } }
.hero__creds { font-size: .86rem; color: var(--muted); }
.hero__creds code { font-size: .86rem; color: var(--text); }
.proof { display: flex; flex-wrap: wrap; gap: .3rem 1.1rem; font-size: .86rem; color: var(--muted); }
.proof b { color: var(--text); font-weight: 600; }

/* ---------- timetable ---------- */

.tt {
  margin: 0; min-width: 0; padding: 1rem 1rem .9rem; border: 1px solid var(--line); border-radius: 20px;
  background: var(--surface); box-shadow: 0 1px 2px rgb(0 0 0 / .05), 0 8px 24px var(--shadow);
}
.tt__scroll { position: relative; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tt table { width: 100%; min-width: 540px; table-layout: fixed; border-collapse: separate; border-spacing: 0 4px; }
.tt caption { padding: 0 0 .35rem; text-align: left; font-size: .85rem; color: var(--muted); }
.tt caption b { color: var(--text); font-size: .95rem; }
.tt thead th { padding: 0 .5rem .1rem; text-align: left; font-size: .75rem; font-weight: 600; color: var(--muted); }
.tt thead th small { font-weight: 400; }
.tt thead th:first-child { width: 8.6rem; padding-left: 0; }
.tt tbody th { padding: 0 .5rem 0 0; text-align: left; vertical-align: middle; font-size: .86rem; font-weight: 600; line-height: 1.2; }
.tt tbody th small { display: block; font-size: .72rem; font-weight: 400; color: var(--muted); }
.tt tbody th, .tt thead th:first-child { position: sticky; left: 0; z-index: 1; background: var(--surface); }
.tt td { padding: 0 2px; vertical-align: middle; }
.tt .bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 2px 7px; min-height: 34px; padding: .25rem .55rem;
  border-radius: 8px; background: var(--cb); color: var(--ct); font-size: .84rem; font-weight: 500;
}
.tt tr > td:first-of-type .bar { border-radius: 8px 3px 3px 8px; }
.p--lea { padding: 0 .4rem; border-radius: 6px; background: var(--primary); color: var(--onprimary); font-weight: 700; }
.ref {
  display: inline-flex; align-items: center; gap: .25rem; padding: 0 .35rem; border: 1px dashed var(--ko); border-radius: 6px;
  background: var(--surface); color: var(--ko); font-size: .76rem; font-weight: 600;
}
.ref::before {
  content: ""; width: 9px; height: 9px; flex: none;
  background:
    linear-gradient(45deg, transparent 42%, currentColor 42% 58%, transparent 58%),
    linear-gradient(-45deg, transparent 42%, currentColor 42% 58%, transparent 58%);
}
.notes a, .chips--rules cite { white-space: nowrap; }
.ref a { color: inherit; font-size: .7rem; font-weight: 700; }
.notes {
  display: grid; gap: .3rem 1.2rem; margin-top: .7rem; padding-top: .7rem; border-top: 1px solid var(--line);
  font-size: .82rem; color: var(--muted);
}
@media (min-width: 40rem) { .notes { grid-template-columns: 1fr 1fr; } }
.notes li { display: flex; align-items: baseline; gap: .45rem; }
.notes b { color: var(--text); font-weight: 600; }
.notes .n {
  display: inline-grid; place-items: center; flex: none; width: 1.2rem; height: 1.2rem; border: 1.5px solid currentColor;
  border-radius: 50%; color: var(--ko); font-size: .68rem; font-weight: 700;
}
@media (max-width: 40rem) {
  .tt { padding: .8rem .7rem; border-radius: 16px; }
  .tt thead th:first-child { width: 6.6rem; }
  .tt tbody th small { display: none; }
}

/* ---------- the day: one annotated screen ---------- */

.jj { display: grid; gap: 1.4rem; align-items: center; }
@media (min-width: 60rem) {
  .jj { grid-template-columns: 7fr 5fr; grid-template-areas: "scr head" "scr leg"; grid-template-rows: auto 1fr; align-items: start; gap: .8rem 2.4rem; }
  .jj > .scr { grid-area: scr; align-self: center; }
  .jj__head { grid-area: head; }
  .jj__leg { grid-area: leg; }
}
.scr {
  overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: var(--surface);
  box-shadow: 0 8px 24px var(--shadow); font-size: .84rem;
}
.scr__bar { display: flex; align-items: center; gap: .7rem; padding: .55rem .9rem; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .78rem; }
.scr__bar i { display: inline-block; width: 8px; height: 8px; margin-right: 4px; border-radius: 50%; background: var(--line); }
.scr__in { display: grid; gap: .65rem; padding: .9rem; }
.scr__h { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem; }
.scr__h b { font-size: 1.15rem; font-weight: 500; }
.scr__h span { display: block; color: var(--muted); font-size: .78rem; }
.zone { position: relative; }
.scr .call {
  position: absolute; top: -.6rem; right: -.5rem; z-index: 2; display: grid; place-items: center; width: 1.45rem; height: 1.45rem;
  border-radius: 50%; background: var(--primary); color: var(--onprimary); font-size: .75rem; font-weight: 700;
  box-shadow: 0 0 0 3px var(--surface);
}
.tvbtn { display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .8rem; border: 1px solid var(--line); border-radius: 999px; color: var(--primary); font-weight: 500; }
.tvbtn .ico { width: 16px; height: 16px; }
.cons { display: flex; align-items: center; gap: .55rem; padding: .5rem .7rem; border-radius: 10px; background: var(--c2); color: var(--c2t); }
.cons .ico { width: 18px; height: 18px; flex: none; }
.cnt { display: flex; flex-wrap: wrap; gap: .35rem; padding-right: 1.3rem; }
.cnt span { padding: .2rem .55rem; border: 1px solid var(--line); border-radius: 8px; background: var(--surface2); }
.cnt .hot { border-color: transparent; background: var(--c4); color: var(--c4t); font-weight: 600; }
.pan { display: grid; gap: .65rem; }
@media (min-width: 34rem) { .pan { grid-template-columns: 1fr 1fr; } }
.box { padding: .6rem .7rem; border: 1px solid var(--line); border-radius: 12px; }
.box > b { display: block; margin-bottom: .3rem; color: var(--muted); font-size: .78rem; font-weight: 600; }
.row { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .3rem 0; border-top: 1px solid var(--line); }
.row:first-of-type { border-top: 0; }
.row small { display: block; color: var(--muted); font-size: .74rem; }
.act { flex: none; padding: .15rem .65rem; border-radius: 999px; background: var(--primary); color: var(--onprimary); font-size: .76rem; font-weight: 500; }
.act--q { border: 1px solid var(--line); background: transparent; color: var(--primary); }
.ko { color: var(--ko); font-weight: 600; }

.legend { display: grid; }
.legend li { display: grid; grid-template-columns: 1.8rem 1fr; align-items: baseline; gap: .7rem; padding: .45rem 0; border-top: 1px solid var(--line); }
.legend li:first-child { border-top: 0; }
.legend .n { display: grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--primary); color: var(--onprimary); font-size: .8rem; font-weight: 700; }
.legend p { font-size: .98rem; }
.legend b { font-weight: 600; }
.jj .fine { margin-top: .8rem; }

/* ---------- question blocks ---------- */

.q__in { display: grid; align-items: center; gap: 1.2rem 3rem; }
@media (min-width: 60rem) { .q__in { grid-template-columns: 5fr 8fr; } }
.q__say { display: grid; align-content: start; gap: .6rem; }
.q__say .n { display: inline-grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 10px; background: var(--cb); color: var(--ct); font-weight: 700; }
.q__say > p:not(.fine) { font-size: 1.05rem; color: var(--muted); }
.q__say > p b { color: var(--text); font-weight: 600; }

.chips { display: flex; flex-wrap: wrap; gap: .35rem; }
.chips li { padding: .2rem .6rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface2); font-size: .82rem; }
.alt .chips li { background: var(--surface); }
.rules { display: grid; gap: .7rem; }
.chips--rules li { display: inline-flex; align-items: baseline; gap: .35rem; padding: .3rem .7rem; font-size: .86rem; }
.chips--rules cite { color: var(--muted); font-size: .72rem; font-style: normal; font-variant-numeric: tabular-nums; }
.chips--rules li:target { border-color: var(--primary); background: var(--target); }

/* staff: two phone cards */
.phones { display: grid; gap: .8rem; }
@media (min-width: 40rem) { .phones { grid-template-columns: 1fr 1fr; } }
@media (max-width: 40rem) { .phone + .phone { display: none; } }
.phone {
  display: grid; align-content: start; gap: .5rem; padding: .9rem; border: 1px solid var(--line); border-radius: 22px;
  background: var(--surface); box-shadow: 0 8px 24px var(--shadow); font-size: .84rem;
}
.phone__top { display: flex; justify-content: space-between; padding-bottom: .4rem; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .74rem; }
.pcard { display: grid; padding: .6rem .7rem; border-radius: 12px; background: var(--cb); color: var(--ct); }
.pcard small { font-size: .76rem; }
.pbtn { padding: .4rem; border: 1px solid var(--line); border-radius: 999px; color: var(--primary); text-align: center; font-weight: 500; }
.pbtn--on { border-color: var(--primary); background: var(--primary); color: var(--onprimary); }
.pfoot { display: flex; align-items: center; gap: .7rem; color: var(--muted); font-size: .78rem; }
.qr { width: 40px; height: 40px; flex: none; }
.qr__bg { fill: var(--qrbg); } .qr__fg { fill: var(--qrfg); }

/* tools: a team-chat message and an assistant exchange */
.tools li { display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .75rem; border: 0; border-radius: 12px; background: var(--cb); color: var(--ct); font-size: .88rem; font-weight: 500; }
.tools .ico { width: 18px; height: 18px; }
.convo { display: grid; gap: .8rem; }
@media (min-width: 40rem) { .convo { grid-template-columns: 1fr 1fr; align-items: start; } }
.convo > div { display: grid; gap: .5rem; padding: .9rem; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: 0 8px 24px var(--shadow); font-size: .86rem; }
.convo__top { display: flex; justify-content: space-between; gap: .5rem; padding-bottom: .4rem; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .74rem; }
.post { display: grid; gap: .15rem; padding: .55rem .7rem; border-left: 4px solid var(--primary); border-radius: 4px 10px 10px 4px; background: var(--surface2); }
.post small { color: var(--muted); font-size: .76rem; }
.bub { max-width: 92%; padding: .5rem .75rem; border-radius: 14px; }
.bub--me { justify-self: end; border-bottom-right-radius: 4px; background: var(--pc); color: var(--onpc); }
.bub--ai { justify-self: start; border-bottom-left-radius: 4px; background: var(--surface2); }

/* ---------- working together ---------- */

.together { display: grid; gap: 1.3rem; }
.steps { display: grid; gap: .8rem; counter-reset: step; }
@media (min-width: 52rem) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps > li { display: grid; align-content: start; gap: .7rem; padding: 1rem 1.1rem 1.1rem; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.steps__h { display: flex; align-items: center; gap: .7rem; }
.steps__h .n { display: inline-grid; place-items: center; flex: none; width: 2.1rem; height: 2.1rem; border-radius: 10px; background: var(--cb); color: var(--ct); font-weight: 700; }
.who { display: grid; gap: .45rem; margin: 0; font-size: .92rem; }
.who div { display: grid; grid-template-columns: 3.6rem 1fr; gap: .5rem; align-items: baseline; }
.who dt { justify-self: start; padding: 0 .5rem; border-radius: 999px; background: var(--surface2); color: var(--muted); font-size: .76rem; font-weight: 600; }
.who dd { margin: 0; color: var(--muted); }
.price { display: grid; gap: .8rem 2rem; align-items: center; padding: 1rem 1.2rem; border-radius: 18px; background: var(--pc); color: var(--onpc); }
@media (min-width: 52rem) { .price { grid-template-columns: 1fr auto; } }
.price p { font-size: 1.02rem; }
.price b { font-weight: 600; }
.price .btn--primary { background: var(--surface); color: var(--primary); box-shadow: none; }
.mail { font-weight: 600; overflow-wrap: anywhere; }

/* ---------- questions ---------- */

.faq { display: grid; gap: .6rem 3rem; }
@media (min-width: 60rem) { .faq { grid-template-columns: 5fr 8fr; align-items: start; } }
details { border-top: 1px solid var(--line); }
details:last-child { border-bottom: 1px solid var(--line); }
summary { position: relative; padding: .7rem 2rem .7rem 0; cursor: pointer; list-style: none; font-weight: 500; }
summary::-webkit-details-marker { display: none; }
summary::after {
  content: ""; position: absolute; right: .4rem; top: 1.05rem; width: 8px; height: 8px;
  border-right: 2px solid var(--primary); border-bottom: 2px solid var(--primary); transform: rotate(45deg);
}
details[open] summary::after { top: 1.25rem; transform: rotate(-135deg); }
details p { padding: 0 0 .8rem; color: var(--muted); font-size: .93rem; }

/* ---------- demo ---------- */

.demo__in { display: grid; gap: 1.4rem; padding: clamp(1.2rem, 3.5vw, 2rem); border-radius: 24px; background: var(--pc); color: var(--onpc); }
@media (min-width: 56rem) { .demo__in { grid-template-columns: 1fr 1fr; align-items: center; } }
.demo__in > div:first-child { display: grid; gap: .6rem; }
.demo__in .kicker { color: var(--onpc); }
.demo__in .acts { margin-top: .4rem; }
.demo__card { padding: 1rem 1.1rem; border-radius: 16px; background: var(--surface); color: var(--text); }
.creds { display: grid; gap: .45rem; margin: 0; }
.creds div { display: grid; grid-template-columns: 6.8rem 1fr; align-items: baseline; gap: .6rem; }
.creds dt { color: var(--muted); font-size: .82rem; }
.creds dd { min-width: 0; margin: 0; }
@media (max-width: 24rem) { .creds div { grid-template-columns: 1fr; gap: 0; } }
.conds { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .9rem; }
.conds li { padding: .15rem .6rem; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); font-size: .78rem; }

/* ---------- footer ---------- */

.foot { padding-block: 1.6rem 3rem; border-top: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: .85rem; }
.foot__in { display: grid; gap: .3rem; }
.foot b { color: var(--text); }
