/* Page d'accueil publique. */

.wrap { width: min(1180px, 100%); margin-inline: auto; padding-inline: var(--gutter); }

.site-header { background: var(--navy); color: #fff; --focus: #5fe0d0; position: relative; }
.header-row { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a:not(.btn) { padding: 10px 12px; color: #d7deea; text-decoration: none; font-weight: 500; border-radius: 8px; }
.nav a:not(.btn):hover { color: #fff; background: var(--navy-2); }
.nav .btn { margin-left: 8px; }
.nav-toggle { display: none; margin-left: auto; min-height: 44px; padding: 8px 14px; background: transparent; border: 1.5px solid #5b6b82; border-radius: 8px; font-weight: 600; color: #fff; }

.hero { background: var(--navy); color: #fff; --focus: #5fe0d0; padding-bottom: clamp(40px, 6vw, 72px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 56px); align-items: center; padding-top: clamp(24px, 4vw, 48px); }
.hero h1 { font-size: clamp(2.5rem, 5.4vw, 4.25rem); letter-spacing: -0.03em; line-height: 1.04; }
.hero-lead { margin-top: 18px; font-size: 1.1875rem; color: #c7d2e0; max-width: 34ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero .btn-ghost { color: #fff; border-color: #5b6b82; }
.hero .btn-ghost:hover { background: var(--navy-2); border-color: #fff; }
.hero-note { margin-top: 16px; font-size: 0.9375rem; color: #a9b6c9; }

.scene { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 12px; padding: 14px; background: var(--bg); color: var(--text); border-radius: var(--radius); box-shadow: 0 24px 60px rgb(4 10 22 / 0.5); --focus: var(--teal-ink); min-width: 0; }
.scene .card { padding: 12px; box-shadow: none; }
.scene-stage { display: flex; flex-direction: column; gap: 10px; }
.scene-label { font-size: 0.875rem; color: var(--muted); }
.scene-label strong { color: var(--text); }
.projection { margin: 0; border-radius: 8px; overflow: hidden; background: var(--navy); }
.projection img { width: 100%; height: auto; }
.scene-controls { display: flex; align-items: center; justify-content: center; gap: 10px; }
.scene-controls button { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--bg); color: var(--text); }
.scene-controls button:last-child { width: 56px; height: 56px; background: var(--teal); color: var(--navy); }
.scene-controls button:disabled { opacity: 0.4; cursor: default; }
.scene-side { display: grid; gap: 12px; grid-template-rows: auto minmax(0, 1fr); min-width: 0; }
.scene-timer { background: var(--teal-soft) !important; border-color: transparent !important; }
.scene-timer strong { display: block; font-size: 1.875rem; line-height: 1.1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.scene-timer span { font-size: 0.8125rem; color: var(--muted); }
.scene-notes h2 { font-size: 0.875rem; margin-bottom: 6px; }
.scene-notes p { font-size: 0.875rem; line-height: 1.4; }

.section { padding-block: clamp(44px, 6vw, 76px); }
.section-head { max-width: 42rem; margin-bottom: clamp(20px, 3vw, 32px); }
.section h2 { font-size: clamp(1.625rem, 3.2vw, 2.25rem); }
.section-head p { margin-top: 10px; font-size: 1.125rem; color: var(--muted); }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { counter-increment: step; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 12px; border-radius: 50%; background: var(--teal); color: var(--navy); font-weight: 700; }
.steps h3 { font-size: 1.1875rem; margin-bottom: 6px; }
.steps p { color: var(--muted); }

.hand-section { background: var(--navy); color: #fff; --focus: #5fe0d0; }
.hand-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 5vw, 72px); align-items: center; }
.hand-grid p { margin-top: 12px; font-size: 1.125rem; color: #c7d2e0; max-width: 40ch; }
.hand-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.hand-list button { width: 100%; min-height: 56px; padding: 10px 16px; border: 1px solid var(--navy-2); border-radius: var(--radius-s); background: var(--navy-2); color: #fff; font-weight: 600; font-size: 1.125rem; text-align: left; display: flex; align-items: center; justify-content: space-between; }
.hand-list button::after { content: "Donner la main"; font-size: 0.875rem; font-weight: 500; color: #a9b6c9; }
.hand-list button[aria-pressed="true"] { background: var(--teal); border-color: var(--teal); color: var(--navy); }
.hand-list button[aria-pressed="true"]::after { content: "A la main"; color: var(--navy); }
.hand-section .hand-hint { margin-top: 12px; font-size: 0.9375rem; color: #a9b6c9; }

.route { display: grid; grid-template-columns: auto 1fr auto 1fr auto; align-items: center; gap: 12px; }
.route-node { padding: 14px 16px; text-align: center; font-weight: 600; }
.route-node small { display: block; font-weight: 400; color: var(--muted); font-size: 0.875rem; }
.route-link { height: 3px; background: var(--teal); position: relative; border-radius: 2px; }
.route-link span { position: absolute; left: 50%; top: -28px; transform: translateX(-50%); white-space: nowrap; font-size: 0.875rem; color: var(--muted); }

.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.split h3 { font-size: 1.1875rem; margin-bottom: 10px; }
.split ul { margin: 0; padding-left: 20px; color: var(--muted); }
.split li + li { margin-top: 6px; }

.faq .wrap { max-width: 860px; }

.join-band { background: var(--teal-soft); }
.join-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 26rem); gap: clamp(20px, 5vw, 64px); align-items: center; }
.join-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: end; }
.join-form .field { min-width: 0; }
.join-form .field-error { grid-column: 1 / -1; }

.site-footer { background: var(--navy); color: #d7deea; padding-block: 28px; font-size: 0.9375rem; --focus: #5fe0d0; }
.footer-row { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; }
.footer-row a { color: inherit; }
.footer-row .logo { font-size: 1.0625rem; margin-right: auto; color: #fff; }
.footer-row .logo svg { width: 28px; height: 28px; }
.footer-credit { margin-top: 14px; color: #fff; font-weight: 500; }
.footer-credit a { color: inherit; }
.footer-legal { margin-top: 6px; color: #a9b6c9; max-width: 62ch; }
.footer-legal a { color: inherit; }

@media (max-width: 960px) {
  .hero-grid, .hand-grid, .join-grid, .split { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; align-items: center; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 76px; z-index: 10; flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 16px; background: var(--navy); margin: 0; border-top: 1px solid var(--navy-2); }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { padding: 13px 4px; }
  .nav .btn { margin: 8px 0 0; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .route { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .route-node { width: 100%; }
  .route-link { width: 3px; height: 40px; }
  .route-link span { left: 14px; top: 50%; transform: translateY(-50%); }
}
@media (max-width: 560px) {
  .scene { grid-template-columns: minmax(0, 1fr); }
  .scene-side { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); grid-template-rows: auto; }
}
