/*
 * DartMate Clubs — guide de l'organisateur (console-guide.js).
 * Suit le theme clair/sombre du systeme de design ; chaque etape porte la
 * couleur de sa phase (--tone).
 */

.gd { display: grid; gap: 22px; max-width: 1200px; margin: 0 auto; }

.tone-cyan { --tone: var(--cyan); --tone-soft: var(--cyan-soft); }
.tone-violet { --tone: var(--violet); --tone-soft: var(--violet-soft); }
.tone-accent { --tone: var(--accent); --tone-soft: var(--accent-soft); }
.tone-gold { --tone: var(--gold); --tone-soft: var(--gold-soft); }
.tone-magenta { --tone: var(--magenta); --tone-soft: var(--magenta-soft); }

/* ------------------------------------------------------------------ en-tete */

.gd-hero {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px; align-items: center;
  padding: clamp(22px, 4vw, 44px);
  border-radius: var(--dm-radius-l); border: 1px solid var(--line);
  background:
    radial-gradient(120% 140% at 0% 0%, var(--accent-soft), transparent 55%),
    radial-gradient(90% 120% at 100% 0%, var(--violet-soft), transparent 60%),
    radial-gradient(80% 120% at 100% 100%, var(--cyan-soft), transparent 60%),
    var(--surface);
  box-shadow: var(--shadow-l);
}
/* Cible stylisee en filigrane. */
.gd-hero::after {
  content: ""; position: absolute; right: -90px; bottom: -150px; width: 380px; height: 380px; border-radius: 50%;
  background: repeating-radial-gradient(circle, transparent 0 20px, color-mix(in srgb, var(--accent) 14%, transparent) 20px 23px);
  opacity: .7; pointer-events: none;
}
.gd-hero-text, .gd-progress { position: relative; z-index: 1; }
.gd-kicker { text-transform: uppercase; letter-spacing: .16em; font-size: .72rem; font-weight: 850; color: var(--accent); }
.gd-hero h1 { font-size: clamp(1.75rem, 3.6vw, 2.75rem); font-weight: 900; letter-spacing: -.035em; line-height: 1.08; margin: 8px 0 12px; max-width: 18ch; }
.gd-lead { font-size: 1.06rem; color: var(--text-2); max-width: 62ch; margin: 0; }
.gd-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.gd-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 82%, transparent); border: 1px solid var(--line);
  font-weight: 750; font-size: .86rem; backdrop-filter: blur(6px);
}

.gd-progress { display: grid; justify-items: center; gap: 10px; }
.gd-ring { position: relative; width: 136px; height: 136px; }
.gd-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.gd-ring-track { fill: none; stroke: color-mix(in srgb, var(--line-strong) 70%, transparent); stroke-width: 9; }
.gd-ring-value { fill: none; stroke: var(--accent); stroke-width: 9; stroke-linecap: round; transition: stroke-dashoffset .7s var(--dm-ease); filter: drop-shadow(0 0 6px color-mix(in srgb, var(--accent) 45%, transparent)); }
.gd-ring-label { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; line-height: 1.1; }
.gd-ring-label b { font-size: 1.8rem; font-weight: 900; letter-spacing: -.02em; }
.gd-ring-label span { font-size: .75rem; color: var(--text-3); font-weight: 700; }
.gd-progress-text { font-weight: 750; color: var(--text-2); font-size: .9rem; text-align: center; max-width: 18ch; }

/* --------------------------------------------------------------- contexte */

.gd-context {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 12px 16px; border-radius: var(--dm-radius);
  background: var(--surface); border: 1px dashed var(--line-strong); font-size: .93rem;
}
.gd-context-icon { font-size: 1.1rem; }
.gd-context-sep { color: var(--text-3); }
.gd-select { width: auto; min-width: 190px; min-height: 38px; padding: 6px 10px; }

/* ----------------------------------------------------------------- phases */

.gd-phases { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.gd-phase {
  display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; align-items: center; gap: 10px;
  padding: 14px; border-radius: var(--dm-radius); border: 1px solid var(--line);
  background: linear-gradient(150deg, color-mix(in srgb, var(--tone) 8%, var(--surface)), var(--surface) 60%);
  color: var(--text); font: inherit; text-align: left; cursor: pointer; box-shadow: var(--shadow);
  transition: transform .18s var(--dm-ease), border-color .2s var(--dm-ease);
}
.gd-phase:hover { transform: translateY(-2px); border-color: var(--tone); }
.gd-phase-index { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; font-size: .85rem; background: var(--tone-soft); color: var(--tone); }
.gd-phase.complete .gd-phase-index { background: var(--tone); color: var(--surface); }
.gd-phase-icon { font-size: 1.35rem; }
.gd-phase-text { min-width: 0; }
.gd-phase-text b { display: block; font-size: .98rem; }
.gd-phase-text small { display: block; color: var(--text-3); font-size: .78rem; line-height: 1.3; }
.gd-phase-count { font-weight: 850; font-size: .8rem; color: var(--text-3); font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------ rail + etapes */

.gd-body { display: grid; grid-template-columns: 252px minmax(0, 1fr); gap: 26px; align-items: start; }
.gd-rail {
  position: sticky; top: 78px; display: grid; gap: 2px; padding: 14px;
  border-radius: var(--dm-radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
  max-height: calc(100vh - 100px); overflow-x: hidden; overflow-y: auto;
}
.gd-rail-phase { margin: 12px 6px 4px; font-size: .68rem; text-transform: uppercase; letter-spacing: .15em; font-weight: 850; color: var(--text-3); }
.gd-rail-phase:first-child { margin-top: 2px; }
.gd-rail-item {
  display: flex; align-items: center; gap: 10px; padding: 8px; border: 0; border-radius: 10px;
  background: transparent; color: var(--text-2); font: inherit; font-size: .88rem; font-weight: 650; text-align: left; cursor: pointer;
  transition: background .15s var(--dm-ease), color .15s var(--dm-ease);
}
.gd-rail-item:hover { background: var(--surface-2); color: var(--text); }
.gd-rail-item.active { background: var(--accent-soft); color: var(--text); }
.gd-rail-num {
  flex: none; width: 25px; height: 25px; border-radius: 50%; display: grid; place-items: center;
  font-size: .74rem; font-weight: 900; border: 1.5px solid var(--line-strong); font-variant-numeric: tabular-nums;
}
.gd-rail-item.active .gd-rail-num { border-color: var(--accent); color: var(--accent); }
.gd-rail-item.done .gd-rail-num { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.gd-rail-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.gd-steps { display: grid; gap: 22px; min-width: 0; }
.gd-step {
  position: relative; overflow: hidden; scroll-margin-top: 84px;
  display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(250px, .88fr); gap: clamp(18px, 3vw, 34px); align-items: center;
  padding: clamp(18px, 3vw, 32px); border-radius: var(--dm-radius-l); border: 1px solid var(--line);
  background: linear-gradient(160deg, color-mix(in srgb, var(--tone) 7%, var(--surface)) 0%, var(--surface) 48%);
  box-shadow: var(--shadow);
}
.gd-step::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(var(--tone), transparent 85%); }
.gd-step.is-done { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.gd-step-main { min-width: 0; }
.gd-step-head { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.gd-num {
  flex: none; width: 56px; height: 56px; border-radius: 17px; display: grid; place-items: center;
  font-size: 1.55rem; font-weight: 900; color: var(--tone); background: var(--tone-soft);
  border: 1.5px solid color-mix(in srgb, var(--tone) 50%, transparent);
  box-shadow: 0 8px 22px color-mix(in srgb, var(--tone) 18%, transparent);
  transition: background .25s var(--dm-ease), color .25s var(--dm-ease);
}
.gd-step.is-done .gd-num { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.gd-step-titles { min-width: 0; }
.gd-eyebrow { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 850; color: var(--tone); }
.gd-step h2 { font-size: clamp(1.25rem, 2.3vw, 1.6rem); font-weight: 850; letter-spacing: -.02em; margin: 3px 0 0; }
.gd-step-icon { font-size: .95em; }
.gd-where {
  display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; max-width: 100%;
  padding: 6px 11px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line);
  font-size: .86rem; margin-bottom: 12px;
}
.gd-where-label { font-weight: 850; text-transform: uppercase; letter-spacing: .1em; font-size: .66rem; color: var(--text-3); }
.gd-where-path { font-weight: 700; }
.gd-intro { color: var(--text-2); font-size: 1.01rem; }
.gd-do { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 9px; }
.gd-do li { position: relative; padding-left: 31px; }
.gd-do li::before {
  content: "✓"; position: absolute; left: 0; top: 1px; width: 21px; height: 21px; border-radius: 7px;
  display: grid; place-items: center; font-size: .72rem; font-weight: 900; background: var(--tone-soft); color: var(--tone);
}
.gd-tip {
  display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; margin-bottom: 18px;
  border-radius: 14px; background: var(--gold-soft); border: 1px solid color-mix(in srgb, var(--gold) 35%, transparent);
}
.gd-tip p { margin: 0; color: var(--text); font-size: .94rem; }
.gd-tip b { color: var(--gold); }
.gd-tip-icon { font-size: 1.2rem; line-height: 1.25; }
.gd-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.btn.done-on { background: var(--accent-soft); color: var(--accent); border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.btn.disabled { opacity: .55; cursor: not-allowed; pointer-events: none; }

/* ------------------------------------------------------------- maquettes */

.gd-visual { position: relative; min-width: 0; }
.gd-visual::before {
  content: ""; position: absolute; inset: 8% 6%; z-index: 0; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--tone) 30%, transparent), transparent 70%); filter: blur(26px);
}
.gd-mock, .gd-flow-card, .gd-live { position: relative; z-index: 1; }
.gd-mock {
  border-radius: 18px; border: 1px solid var(--line-strong); background: var(--surface); box-shadow: var(--shadow-l);
  overflow: hidden; transform: rotate(-1.2deg); transition: transform .35s var(--dm-ease);
}
.gd-step:nth-child(even) .gd-mock { transform: rotate(1.2deg); }
.gd-step:hover .gd-mock { transform: rotate(0) translateY(-3px); }
.gd-mock-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.gd-mock-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }
.gd-mock-bar i:nth-child(1) { background: var(--magenta); }
.gd-mock-bar i:nth-child(2) { background: var(--gold); }
.gd-mock-bar i:nth-child(3) { background: var(--accent); }
.gd-mock-bar span { margin-left: 8px; min-width: 0; font-size: .72rem; font-weight: 850; color: var(--text-3); text-transform: uppercase; letter-spacing: .08em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gd-mock-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 14px; }
.gd-row { display: flex; align-items: center; gap: 10px; min-width: 0; }
.gd-row > .grow { flex: 1 1 auto; min-width: 0; }
.gd-row b { font-size: .92rem; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gd-row small { display: block; color: var(--text-3); font-size: .78rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gd-row .badge { flex: none; }
.avatar.lg { width: 46px; height: 46px; font-size: 1rem; }
.gd-mock-cta { text-align: center; padding: 9px; border-radius: 12px; border: 1.5px dashed var(--line-strong); color: var(--accent); font-weight: 800; font-size: .85rem; }
.gd-link-chip { padding: 8px 11px; border-radius: 10px; background: var(--cyan-soft); color: var(--cyan); font-weight: 750; font-size: .82rem; }
.gd-date { flex: none; width: 60px; padding: 6px 0; border-radius: 13px; display: grid; text-align: center; line-height: 1.12; background: var(--magenta-soft); color: var(--magenta); }
.gd-date b { font-size: 1.45rem; font-weight: 900; color: inherit; }
.gd-date small { text-transform: uppercase; font-size: .66rem; font-weight: 850; color: inherit; }
.gd-stations { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.gd-stations span { aspect-ratio: 1.7; display: grid; place-items: center; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); font-weight: 900; color: var(--text-2); }
.gd-stations span.busy { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.gd-caption { color: var(--text-3); font-size: .78rem; }
.gd-setting { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 11px; border-radius: 10px; background: var(--surface-2); }
.gd-setting small { color: var(--text-3); font-size: .76rem; font-weight: 700; }
.gd-setting b { font-size: .85rem; text-align: right; }
.gd-accent { color: var(--accent); }
.gd-format-flow { display: flex; align-items: center; justify-content: center; gap: 8px; padding-top: 2px; }
.gd-format-flow span { padding: 6px 11px; border-radius: 10px; background: var(--violet-soft); color: var(--violet); font-weight: 900; }
.gd-format-flow i { color: var(--text-3); font-style: normal; font-weight: 900; }
.gd-meter { display: grid; gap: 6px; }
.gd-meter-head { display: flex; justify-content: space-between; align-items: baseline; }
.gd-meter-head b { font-size: 1.15rem; font-weight: 900; }
.gd-meter-head small { color: var(--text-3); font-size: .78rem; }
.gd-meter-bar { height: 8px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.gd-meter-bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--cyan)); }

/* Chemin d'une flechette : cible -> application -> tablette -> DartMate -> Live. */
.gd-flow-card {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 16px 18px; border-radius: 18px;
  border: 1px solid var(--line-strong); background: var(--surface); box-shadow: var(--shadow-l);
}
.gd-flow { display: grid; }
.gd-flow-node { display: flex; align-items: center; gap: 12px; }
.gd-flow-node small { font-size: .88rem; font-weight: 750; color: var(--text); }
.gd-flow-icon {
  flex: none; width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; font-size: 1.15rem;
  background: var(--tone-soft); border: 1px solid color-mix(in srgb, var(--tone) 40%, transparent);
}
.gd-flow-arrow { position: relative; margin-left: 19px; height: 18px; border-left: 2px dashed var(--line-strong); font-size: 0; }
.gd-flow-arrow::after {
  content: ""; position: absolute; left: -4px; top: 0; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 8px var(--accent); animation: gd-dart 1.6s var(--dm-ease) infinite;
}
.gd-flow-arrow:nth-of-type(2)::after { animation-delay: .4s; }
.gd-flow-arrow:nth-of-type(3)::after { animation-delay: .8s; }
.gd-flow-arrow:nth-of-type(4)::after { animation-delay: 1.2s; }
@keyframes gd-dart { 0% { top: 0; opacity: 0; } 25% { opacity: 1; } 100% { top: 14px; opacity: 0; } }
.gd-flow-pair { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding-top: 12px; border-top: 1px dashed var(--line); }
.gd-flow-pair small { color: var(--text-3); font-size: .78rem; }
.gd-code { font-family: var(--dm-mono); font-weight: 900; letter-spacing: .18em; padding: 7px 12px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line-strong); }

.gd-bracket { display: grid; grid-template-columns: 1fr 1fr .85fr; gap: 10px; align-items: center; }
.gd-round { display: grid; gap: 6px; min-width: 0; }
.gd-round small { text-transform: uppercase; font-size: .64rem; font-weight: 850; color: var(--text-3); letter-spacing: .08em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gd-slot { padding: 6px 8px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--line); font-size: .78rem; font-weight: 750; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gd-slot.win { border-color: var(--accent); background: var(--accent-soft); }

.gd-timer { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 12px; background: var(--accent-soft); }
.gd-timer b { font-size: 1.55rem; font-weight: 900; color: var(--accent); font-variant-numeric: tabular-nums; }
.gd-timer small { color: var(--text-2); font-weight: 700; font-size: .8rem; }
.gd-call { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 10px; background: var(--surface-2); font-size: .8rem; }
.gd-call-time { color: var(--text-3); font-weight: 850; font-variant-numeric: tabular-nums; }
.gd-call-station { flex: none; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 7px; background: var(--surface-3); font-weight: 900; }
.gd-call b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gd-call .btn { flex: none; pointer-events: none; }

.gd-player { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 12px; border: 1.5px solid var(--line); }
.gd-player b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gd-player span { font-size: 1.85rem; font-weight: 900; font-variant-numeric: tabular-nums; line-height: 1; }
.gd-player.active { border-color: var(--accent); background: var(--accent-soft); }
.gd-darts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.gd-darts span { padding: 8px 0; text-align: center; border-radius: 10px; border: 1.5px solid var(--accent); background: var(--accent-soft); font-weight: 900; }
.gd-mock-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.gd-mock-actions .btn { pointer-events: none; }

/* Grand ecran du Live : toujours sombre, comme un ecran de salle. */
.gd-live { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: end; }
.gd-screen { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 12px; border-radius: 16px; background: #070910; color: #f2f5ff; border: 6px solid #1b2030; box-shadow: var(--shadow-l); min-width: 0; }
.gd-screen small { color: #8e97b3; font-size: .74rem; }
.gd-screen-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.gd-live-dot { flex: none; font-size: .66rem; font-weight: 900; letter-spacing: .08em; color: #fff; background: #ff3b5c; padding: 3px 8px; border-radius: 999px; animation: dm-pulse 1.6s infinite; }
.gd-screen-match { display: grid; gap: 6px; padding: 10px; border-radius: 12px; background: #11151f; }
.gd-screen-match .gd-row b { font-size: 1rem; }
.gd-screen-ticker { font-size: .76rem; color: #ffc857; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gd-live-qr { display: grid; justify-items: center; gap: 6px; }
.gd-live-qr .qr { padding: 8px; border-radius: 12px; box-shadow: var(--shadow); }
.gd-live-qr .qr svg { width: 92px; height: 92px; }
.gd-live-qr small { color: var(--text-3); font-size: .72rem; text-align: center; max-width: 112px; }

/* ------------------------------------------------------------------- FAQ */

.gd-section-head { margin-bottom: 16px; }
.gd-section-head h2 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); font-weight: 900; letter-spacing: -.02em; margin-top: 4px; }
.gd-faq { padding: clamp(18px, 3vw, 32px); border-radius: var(--dm-radius-l); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.gd-faq-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; align-items: start; }
.gd-faq-item { border-radius: 14px; border: 1px solid var(--line); background: var(--surface-2); padding: 0 15px; transition: border-color .2s var(--dm-ease); }
.gd-faq-item[open] { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.gd-faq-item summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 0; cursor: pointer; font-weight: 750; }
.gd-faq-item summary::-webkit-details-marker { display: none; }
.gd-faq-chevron { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-weight: 900; transition: transform .25s var(--dm-ease); }
.gd-faq-item[open] .gd-faq-chevron { transform: rotate(45deg); }
.gd-faq-item p { color: var(--text-2); padding-bottom: 14px; margin: 0; }

/* ------------------------------------------------------------------ fin */

.gd-end {
  position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  padding: clamp(20px, 3.6vw, 38px); border-radius: var(--dm-radius-l); border: 1px solid var(--line);
  background: linear-gradient(120deg, var(--accent-soft), var(--cyan-soft) 60%, var(--violet-soft)), var(--surface);
}
.gd-end-text { position: relative; z-index: 1; max-width: 60ch; }
.gd-end h2 { font-size: clamp(1.3rem, 2.4vw, 1.65rem); font-weight: 900; }
.gd-end p { color: var(--text-2); margin: 0; }
.gd-end-actions { position: relative; z-index: 1; display: flex; gap: 10px; flex-wrap: wrap; }

/* -------------------------------------------- bandeau de « Mes clubs » */

.gd-banner {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px; margin-bottom: 16px;
  border-radius: var(--dm-radius); color: inherit; border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line));
  background: linear-gradient(110deg, var(--accent-soft), transparent 72%), var(--surface); box-shadow: var(--shadow);
  transition: transform .18s var(--dm-ease);
}
.gd-banner:hover { text-decoration: none; transform: translateY(-1px); }
.gd-banner-icon { font-size: 1.8rem; }
.gd-banner .grow { flex: 1 1 auto; min-width: 0; }
.gd-banner .btn { flex: none; }

/* ------------------------------------------------------------- adaptatif */

@media (max-width: 1100px) {
  .gd-phases { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .gd-body { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  /* Le rail devient une barre de pastilles qui suit le defilement. */
  .gd-rail {
    top: 64px; z-index: 5; display: flex; gap: 6px; overflow-x: auto; overflow-y: hidden; padding: 8px; max-height: none;
    border-radius: 14px; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(12px); scrollbar-width: none;
  }
  .gd-rail::-webkit-scrollbar { display: none; }
  .gd-rail-phase { display: none; }
  .gd-rail-item { flex: none; padding: 6px 8px; }
  .gd-rail-label { display: none; max-width: 46vw; }
  .gd-rail-item.active .gd-rail-label { display: inline; }
  .gd-step { grid-template-columns: minmax(0, 1fr); scroll-margin-top: 128px; }
  .gd-visual { max-width: 470px; }
  .gd-faq-list { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .gd-hero { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .gd-progress { grid-template-columns: auto minmax(0, 1fr); justify-items: start; align-items: center; column-gap: 14px; }
  .gd-progress .btn { grid-column: 2; }
  .gd-progress-text { text-align: left; max-width: none; }
  .gd-ring { width: 96px; height: 96px; grid-row: span 2; }
  .gd-ring-label b { font-size: 1.35rem; }
  .gd-phases { grid-template-columns: minmax(0, 1fr); }
  .gd-mock, .gd-step:nth-child(even) .gd-mock, .gd-step:hover .gd-mock { transform: none; }
  .gd-num { width: 46px; height: 46px; border-radius: 14px; font-size: 1.3rem; }
  .gd-live { grid-template-columns: minmax(0, 1fr); }
  .gd-live-qr { justify-items: start; grid-template-columns: auto minmax(0, 1fr); align-items: center; }
  .gd-live-qr small { text-align: left; max-width: none; }
  .gd-banner { flex-wrap: wrap; }
  .gd-context { display: grid; gap: 4px; }
  .gd-context-icon, .gd-context-sep { display: none; }
  .gd-select { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .gd-flow-arrow::after, .gd-live-dot { animation: none; }
  .gd-mock, .gd-phase, .gd-banner { transition: none; }
}
