/* =========================================================
   ALPHA PADEL COMPET - MODE TOURNOI TABLETTE
   APPLICATION PLEIN ÉCRAN & RESPONSIVE - COMMANDES FIXES EN BAS
   Charte Officielle : #0E1830 (Bleu Nuit) & #EFBC5A (Or / Ambre)
   ========================================================= */

:root {
  /* Couleurs officielles */
  --color-navy: #0E1830;
  --color-navy-dark: #080f20;
  --color-navy-soft: #172445;
  --color-navy-muted: rgba(14, 24, 48, 0.72);
  --color-navy-light: rgba(14, 24, 48, 0.05);
  --color-navy-border: rgba(14, 24, 48, 0.12);

  --color-gold: #EFBC5A;
  --color-gold-hover: #f3c773;
  --color-gold-dark: #b88628;
  --color-gold-glow: rgba(239, 188, 90, 0.38);
  --color-gold-light: rgba(239, 188, 90, 0.16);
  --color-gold-border: rgba(239, 188, 90, 0.35);

  /* Thème clair et surfaces */
  --bg-page: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-alt: #f1f5f9;
  --border-subtle: #e2e8f0;
  --border-card: #cbd5e1;

  --text-main: #0E1830;
  --text-muted: #475569;
  --text-dim: #64748b;

  --radius-xl: 20px;
  --radius-lg: 14px;
  --radius-md: 10px;
  --radius-sm: 6px;
  
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100%;
  height: 100%;
  min-height: 100%;
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.5;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 8% 12%, rgba(239, 188, 90, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 92% 88%, rgba(14, 24, 48, 0.06) 0%, transparent 40%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  background-attachment: fixed;
}

#confetti-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 9999;
}

/* =========================================================
   STRUCTURE PLEIN ÉCRAN (APP LAYOUT)
   ========================================================= */
.app-layout {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  width: 100%;
  position: relative;
}

/* =========================================================
   BARRE SUPÉRIEURE DE NAVIGATION (TOPBAR)
   ========================================================= */
.app-topbar {
  width: 100%;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 0.75rem 1.5rem;
  box-shadow: 0 1px 4px rgba(14, 24, 48, 0.03);
}

.topbar-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

/* Bloc Logo officiel (Loup Noir sur le site) */
.brand-block {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.brand-logo-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 50%;
  border: none; /* Aucun bord doré */
  background: transparent;
  padding: 0;
  box-shadow: none;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-title {
  font-size: 0.85rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: var(--color-navy);
}

.brand-subtitle {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--color-gold-dark);
  letter-spacing: 0.12em;
}

/* Stepper interactif */
.stepper-center {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  max-width: 420px;
  flex: 1;
  justify-content: flex-end;
}

.step-node {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
  z-index: 2;
  transition: all 0.3s ease;
}

.node-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #cbd5e1;
  color: var(--text-dim);
  font-weight: 800;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 2px 4px rgba(14, 24, 48, 0.04);
}

.node-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-dim);
  transition: color 0.3s ease;
  white-space: nowrap;
}

.step-node.active .node-num {
  background: var(--color-gold);
  color: var(--color-navy);
  border-color: var(--color-navy);
  box-shadow: 0 0 14px var(--color-gold-glow);
  transform: scale(1.08);
}

.step-node.active .node-label {
  color: var(--color-navy);
  font-weight: 800;
}

.step-node.completed .node-num {
  background: var(--color-gold-light);
  border-color: var(--color-gold);
  color: var(--color-navy);
}

.step-connector {
  flex: 1;
  max-width: 50px;
  height: 3px;
  background: #e2e8f0;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}

.step-connector::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: var(--color-gold);
  transition: width 0.4s ease;
}

.step-connector.filled::after {
  width: 100%;
}

/* =========================================================
   CORPS PRINCIPAL PLEIN ÉCRAN
   ========================================================= */
.app-main-viewport {
  flex: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 1400px;
  min-width: 0;
  margin: 0 auto;
  padding: 1.5rem 1.5rem calc(100px + env(safe-area-inset-bottom)) 1.5rem;
}

.steps-slider-wrapper {
  width: 100%;
  min-width: 0;
  margin: auto 0; /* centrage vertical sans couper le haut du contenu */
}

.steps-slider {
  width: 100%;
  min-width: 0;
}

/* Une seule étape affichée à la fois : aucune étape ne peut déborder sur une autre */
.step-slide {
  display: none;
  width: 100%;
  min-width: 0;
}

.step-slide.is-active {
  display: block;
  animation: slideFadeIn 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.step-slide.is-active.from-left {
  animation-name: slideFadeInLeft;
}

@keyframes slideFadeIn {
  from { opacity: 0; transform: translateX(24px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slideFadeInLeft {
  from { opacity: 0; transform: translateX(-24px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Grille 2 Colonnes pour Widescreen / PC — minmax(0, …) autorise les colonnes à rétrécir */
.slide-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 3rem;
  align-items: center;
  padding: 1rem 0;
  width: 100%;
  min-width: 0;
}

.slide-info-panel,
.slide-preview-panel,
.tablet-mockup,
.browser-chrome-bar,
.chrome-url-box,
.tablet-viewport-content,
.demo-court-card,
.chrome-dropdown-menu,
.tablet-homescreen-view,
.real-apps-grid {
  min-width: 0;
}

/* =========================================================
   PANNEAU GAUCHE : INFOS & CHECKLIST
   ========================================================= */
.slide-info-panel {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  text-align: left;
}

.step-badge {
  align-self: flex-start;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
  padding: 0.35rem 0.75rem;
  background: var(--color-gold-light);
  color: var(--color-gold-dark);
  border-radius: 6px;
}

.step-badge.final {
  background: var(--color-navy-light);
  color: var(--color-navy);
}

.slide-title {
  font-size: 2rem;
  font-weight: 900;
  line-height: 1.2;
  color: var(--color-navy);
}

.slide-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.slide-desc strong {
  color: var(--color-navy);
  font-weight: 700;
}

.slide-desc em {
  color: var(--color-gold-dark);
  font-style: normal;
  font-weight: 700;
}

/* Liste d'actions étape par étape */
.action-checklist {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 0.5rem 0;
}

.check-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  box-shadow: 0 2px 6px rgba(14, 24, 48, 0.03);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.check-item:hover {
  border-color: var(--color-gold);
  transform: translateX(4px);
}

.check-bullet {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--color-navy);
  color: var(--color-gold);
  font-size: 0.75rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.check-item strong {
  display: block;
  font-size: 0.92rem;
  color: var(--color-navy);
}

.check-item span {
  display: block;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Astuce JA */
.step-tip {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-left: 4px solid var(--color-gold);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.1rem;
  box-shadow: 0 2px 8px rgba(14, 24, 48, 0.03);
}

.step-tip.highlight-gold {
  background: var(--color-gold-light);
  border-color: var(--color-gold-border);
  border-left: 4px solid var(--color-gold-dark);
}

.tip-icon {
  font-size: 1.25rem;
  line-height: 1;
}

.tip-text {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.tip-text strong {
  color: var(--color-navy);
}

/* =========================================================
   PANNEAU DROIT : MOCKUP TABLETTE
   ========================================================= */
.slide-preview-panel {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.tablet-mockup {
  width: 100%;
  max-width: 580px;
  background: #ffffff;
  border: 3px solid #cbd5e1;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 
    0 25px 60px -15px rgba(14, 24, 48, 0.12),
    0 4px 16px rgba(14, 24, 48, 0.04);
  position: relative;
  transition: transform 0.3s ease;
}

.tablet-camera-notch {
  width: 54px;
  height: 5px;
  background: #cbd5e1;
  border-radius: 6px;
  margin: 8px auto 6px auto;
}

/* En-tête de Chrome */
.browser-chrome-bar {
  background: #f1f5f9;
  padding: 0.65rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 1px solid #e2e8f0;
}

.chrome-window-dots {
  display: flex;
  gap: 5px;
}

.chrome-window-dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #cbd5e1;
}

.chrome-url-box {
  flex: 1;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 9px;
  padding: 0.45rem 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: monospace;
  font-size: 0.82rem;
  overflow: hidden;
  position: relative;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.chrome-url-box.highlight-pulse {
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px var(--color-gold-glow);
}

.lock-icon {
  width: 15px;
  height: 15px;
  color: var(--color-gold-dark);
  flex-shrink: 0;
}

.url-text {
  color: var(--color-navy);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  font-weight: 700;
}

.copy-badge {
  background: var(--color-gold-light);
  color: var(--color-gold-dark);
  font-size: 0.68rem;
  font-family: var(--font-sans);
  font-weight: 800;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  white-space: nowrap;
}

.chrome-menu-btn {
  color: #475569;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  position: relative;
  cursor: pointer;
}

.chrome-menu-btn.active-target {
  background: var(--color-gold-light);
  color: var(--color-navy);
}

.pulse-ring {
  position: absolute;
  width: 42px;
  height: 42px;
  border: 2.5px solid var(--color-gold);
  border-radius: 50%;
  animation: pulseRing 1.6s infinite ease-out;
  pointer-events: none;
}

@keyframes pulseRing {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* Zone écran tablette */
.tablet-viewport-content {
  padding: 1.5rem;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* Carte match Étape 1 */
.demo-court-card {
  width: 100%;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: 0 6px 20px rgba(14, 24, 48, 0.05);
}

.court-top-badge {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.badge-live {
  background: var(--color-navy);
  color: var(--color-gold);
  font-size: 0.7rem;
  font-weight: 900;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  letter-spacing: 0.06em;
  animation: pulseLive 2s infinite;
}

@keyframes pulseLive {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.court-label {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--color-navy);
}

.demo-scoreboard {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.9rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
}

.player-pair {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  color: var(--color-navy);
}

.player-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.player-dot.p1 { background: var(--color-navy); }
.player-dot.p2 { background: var(--color-gold); }

.vs-pill {
  font-size: 0.75rem;
  font-weight: 900;
  color: var(--text-dim);
}

.connection-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--color-navy);
  font-weight: 800;
}

.icon-signal {
  stroke: var(--color-gold-dark);
}

/* =========================================================
   MENU DÉROULANT CHROME ÉTAPE 2
   ========================================================= */
.tablet-viewport-content.with-menu-popup {
  padding: 1rem 1.25rem;
  align-items: flex-start;
  justify-content: flex-end;
}

.chrome-dropdown-menu {
  width: 100%;
  max-width: 360px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-lg);
  padding: 0.5rem;
  box-shadow: 0 20px 45px rgba(14, 24, 48, 0.15);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  animation: slideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.menu-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  color: #334155;
}

.menu-row.disabled {
  opacity: 0.45;
  color: #64748b;
}

.menu-row.highlight-action {
  background: var(--color-gold-light);
  border: 1.5px solid var(--color-gold);
  color: var(--color-navy);
  position: relative;
  justify-content: space-between;
  box-shadow: 0 0 16px var(--color-gold-glow);
}

.menu-left-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.icon-circle-pwa {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--color-navy);
  color: var(--color-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.menu-row strong {
  display: block;
  font-size: 0.85rem;
  color: var(--color-navy);
}

.menu-row .subtext {
  display: block;
  font-size: 0.7rem;
  color: var(--color-gold-dark);
  font-weight: 700;
}

.badge-action {
  background: var(--color-gold);
  color: var(--color-navy);
  font-weight: 900;
  font-size: 0.68rem;
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.pulse-pointer {
  position: absolute;
  left: -22px;
  top: 50%;
  transform: translateY(-50%) rotate(90deg);
  animation: pointerBounce 1s infinite alternate ease-in-out;
}

.icon-pointer {
  fill: var(--color-gold-dark);
}

@keyframes pointerBounce {
  0% { transform: translateY(-50%) rotate(90deg) translateX(0); }
  100% { transform: translateY(-50%) rotate(90deg) translateX(-6px); }
}

/* =========================================================
   ÉCRAN D'ACCUEIL TABLETTE ÉTAPE 3 (VRAIS LOGOS & LOUP BLEU)
   ========================================================= */
.tablet-mockup.home-mode {
  background: linear-gradient(135deg, #f8fafc 0%, #edf2f7 100%);
  border-color: #cbd5e1;
}

.tablet-homescreen-view {
  padding: 1.25rem 1.5rem 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
}

.tablet-status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--color-navy-muted);
}

/* Grille d'applications réelles */
.real-apps-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  align-items: center;
  justify-items: center;
  margin: 0.5rem 0;
}

.grid-app-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  position: relative;
}

.app-icon-wrapper {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
}

.grid-app-item:hover .app-icon-wrapper {
  transform: translateY(-3px) scale(1.05);
}

.app-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #475569;
  text-align: center;
}

/* Application vedette Alpha Padel (Loup Bleu officiel) */
.grid-app-item.pwa-hero-item {
  transform: scale(1.15);
  cursor: pointer;
  z-index: 10;
}

.grid-app-item.pwa-hero-item:hover {
  transform: scale(1.22);
}

.pwa-app-glow {
  display: none;
}

.app-icon-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.app-icon-wrapper.hero-icon {
  background: var(--color-navy);
  border: none; /* Aucun bord doré */
  box-shadow: 0 6px 18px rgba(14, 24, 48, 0.28);
  position: relative;
  z-index: 2;
  overflow: hidden;
  padding: 0;
}

.pwa-logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pwa-badge-check {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #16a34a;
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 900;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  z-index: 4;
}

.hero-label {
  color: var(--color-navy);
  font-weight: 900;
  z-index: 2;
}

.tap-indicator {
  position: absolute;
  bottom: -24px;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.72rem;
  font-weight: 900;
  color: var(--color-navy);
  white-space: nowrap;
  animation: tapBob 1.2s infinite ease-in-out;
}

@keyframes tapBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(3px); }
}

.tournament-success-banner {
  background: var(--color-gold-light);
  border: 1px solid var(--color-gold-border);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: 0.5rem;
}

.success-icon-box {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--color-navy);
  color: var(--color-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.icon-success {
  stroke: var(--color-gold);
}

.tournament-success-banner strong {
  display: block;
  font-size: 0.88rem;
  color: var(--color-navy);
}

.tournament-success-banner span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* =========================================================
   BARRE D'ACTION INFÉRIEURE FIXÉE EN BAS (MOBILE & DESKTOP)
   ========================================================= */
.app-bottombar {
  width: 100%;
  position: fixed;
  bottom: 0;
  left: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid var(--border-subtle);
  padding: 0.85rem 1.5rem;
  padding-bottom: max(0.85rem, env(safe-area-inset-bottom));
  box-shadow: 0 -4px 20px rgba(14, 24, 48, 0.08);
}

.bottombar-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.98rem;
  font-weight: 800;
  padding: 0.85rem 1.8rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border: none;
  outline: none;
}

.btn:active {
  transform: scale(0.97);
}

.btn-secondary {
  background: #ffffff;
  color: var(--color-navy);
  border: 1.5px solid var(--color-navy-border);
}

.btn-secondary:hover:not(:disabled) {
  background: #f8fafc;
  border-color: var(--color-navy);
}

.btn-secondary:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
}

.btn-primary {
  background: linear-gradient(135deg, #EFBC5A 0%, #e2ab41 100%);
  color: var(--color-navy);
  box-shadow: 0 4px 18px rgba(239, 188, 90, 0.45);
  letter-spacing: 0.02em;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #f5cb76 0%, #EFBC5A 100%);
  box-shadow: 0 6px 24px rgba(239, 188, 90, 0.6);
  transform: translateY(-2px);
}

.step-page-dots {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #cbd5e1;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.dot.active {
  width: 28px;
  border-radius: 999px;
  background: var(--color-gold);
  box-shadow: 0 0 10px var(--color-gold-glow);
}

/* =========================================================
   RESPONSIVE DESIGN (PC Widescreen, Tablette & Mobile)
   ========================================================= */
@media (max-width: 1024px) {
  .slide-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
    padding: 0.5rem 0;
  }

  .slide-info-panel {
    max-width: 680px;
    margin: 0 auto;
    width: 100%;
  }

  .slide-preview-panel {
    max-width: 680px;
    margin: 0 auto;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .app-topbar {
    padding: 0.65rem 1rem;
  }

  .topbar-inner {
    gap: 0.75rem;
    justify-content: space-between;
  }

  .stepper-center {
    max-width: 180px;
    gap: 0.35rem;
  }

  .node-label {
    display: none;
  }

  .node-num {
    width: 28px;
    height: 28px;
    font-size: 0.78rem;
  }

  .step-connector {
    max-width: 25px;
  }

  .app-main-viewport {
    padding: 1rem 0.85rem calc(95px + env(safe-area-inset-bottom)) 0.85rem;
    overflow-x: hidden;
  }

  .slide-title {
    font-size: 1.4rem;
  }

  .slide-desc {
    font-size: 0.92rem;
  }

  /* Mockup tablette fluide et contenu non débordant */
  .tablet-mockup {
    max-width: 100%;
    border-width: 2px;
    border-radius: 16px;
    margin: 0 auto;
  }

  .browser-chrome-bar {
    padding: 0.5rem 0.65rem;
    gap: 0.4rem;
  }

  .chrome-url-box {
    padding: 0.35rem 0.5rem;
    gap: 0.35rem;
    min-width: 0;
  }

  .url-text {
    font-size: 0.72rem;
  }

  .copy-badge {
    font-size: 0.6rem;
    padding: 0.15rem 0.35rem;
  }

  .tablet-viewport-content {
    padding: 0.85rem;
    min-height: auto;
  }

  .demo-court-card {
    padding: 0.75rem 0.85rem;
    gap: 0.65rem;
  }

  /* Scoreboard en colonne sur mobile pour ne pas déborder */
  .demo-scoreboard {
    flex-direction: column;
    gap: 0.45rem;
    align-items: stretch;
    padding: 0.5rem 0.65rem;
  }

  .vs-pill {
    align-self: center;
    font-size: 0.68rem;
  }

  .player-pair {
    font-size: 0.8rem;
    justify-content: flex-start;
  }

  /* Menu Chrome Étape 2 */
  .chrome-dropdown-menu {
    max-width: 100%;
  }

  .pulse-pointer {
    display: none; /* Ne déborde pas à gauche sur mobile */
  }

  .menu-row {
    padding: 0.5rem 0.65rem;
    gap: 0.5rem;
  }

  .icon-circle-pwa {
    width: 28px;
    height: 28px;
  }

  .menu-row strong {
    font-size: 0.78rem;
  }

  .menu-row .subtext {
    font-size: 0.65rem;
  }

  .badge-action {
    font-size: 0.62rem;
    padding: 0.2rem 0.45rem;
  }

  /* Écran d'accueil Étape 3 */
  .tablet-homescreen-view {
    padding: 0.85rem;
    gap: 0.85rem;
  }

  .real-apps-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 0.35rem;
    width: 100%;
  }

  .app-icon-wrapper {
    width: 42px;
    height: 42px;
    border-radius: 11px;
  }

  .app-label {
    font-size: 0.64rem;
  }

  .grid-app-item.pwa-hero-item {
    transform: scale(1.08);
  }

  .tap-indicator {
    font-size: 0.66rem;
    bottom: -20px;
  }

  .tournament-success-banner {
    padding: 0.55rem 0.75rem;
    gap: 0.65rem;
  }

  .success-icon-box {
    width: 28px;
    height: 28px;
  }

  .tournament-success-banner strong {
    font-size: 0.8rem;
  }

  .tournament-success-banner span {
    font-size: 0.68rem;
  }

  /* Barre d'action fixe */
  .app-bottombar {
    padding: 0.75rem 1rem;
    padding-bottom: max(0.75rem, env(safe-area-inset-bottom));
  }

  .btn {
    padding: 0.75rem 1.3rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .brand-title {
    font-size: 0.8rem;
  }

  .brand-subtitle {
    font-size: 0.68rem;
  }

  .brand-logo-img {
    width: 28px;
    height: 28px;
  }

  .slide-title {
    font-size: 1.25rem;
  }

  .slide-desc {
    font-size: 0.85rem;
  }

  .action-checklist {
    gap: 0.45rem;
  }

  .check-item {
    padding: 0.55rem 0.7rem;
  }

  .check-bullet {
    width: 18px;
    height: 18px;
    font-size: 0.68rem;
  }

  .check-item strong {
    font-size: 0.85rem;
  }

  .check-item span {
    font-size: 0.76rem;
  }

  /* Sur écran très étroit, masquer le badge et les 3 points du navigateur pour préserver l'URL */
  .copy-badge,
  .chrome-window-dots {
    display: none;
  }

  .real-apps-grid {
    gap: 0.25rem;
  }

  .app-icon-wrapper {
    width: 38px;
    height: 38px;
    border-radius: 10px;
  }

  .app-label {
    font-size: 0.6rem;
  }

  .btn {
    padding: 0.7rem 1.1rem;
    font-size: 0.85rem;
  }
}

/* =========================================================
   CORRECTIFS MOBILE
   ========================================================= */
/* Les numéros de la checklist ne doivent pas hériter du style des descriptions */
.check-item .check-bullet {
  display: flex;
  color: var(--color-gold);
  font-size: 0.75rem;
}

@media (max-width: 1024px) {
  /* Contenu aligné en haut sur mobile/tablette (pas d'espace vide au-dessus) */
  .steps-slider-wrapper {
    margin: 0;
  }
}

/* Empêche tout défilement horizontal parasite (iOS/Android) */
html, body {
  overflow-x: hidden;
  overflow-x: clip;
  max-width: 100%;
}

/* Carte match Étape 1 : en-tête qui passe à la ligne proprement */
.court-top-badge {
  flex-wrap: wrap;
  gap: 0.4rem 0.75rem;
}

.badge-live {
  white-space: nowrap;
  flex-shrink: 0;
}

.court-label,
.player-pair span,
.connection-status {
  min-width: 0;
  overflow-wrap: anywhere;
}

@media (max-width: 400px) {
  .court-top-badge {
    flex-direction: column;
    align-items: flex-start;
  }

  .court-label {
    font-size: 0.82rem;
  }

  .connection-status {
    font-size: 0.75rem;
    align-items: flex-start;
  }

  .connection-status svg {
    flex-shrink: 0;
  }

  /* Barre du bas compacte : les 2 boutons tiennent toujours */
  .bottombar-inner {
    gap: 0.5rem;
  }

  .btn {
    padding: 0.65rem 0.9rem;
    font-size: 0.82rem;
    gap: 0.3rem;
  }

  .step-page-dots {
    gap: 0.35rem;
  }

  .dot.active {
    width: 20px;
  }
}
