/* Page /aide — tuto Rewind Party.
 * Fonctionne en autonome (invite non connecte) ET dans le shell orga/admin.
 * 3 breakpoints : 390 mobile, 1024 tablette, 1440 PC.
 * Reutilise les variables de app.css / admin.css deja chargees en amont.
 */

.aide-body {
  background: var(--paper, #FAF7F2);
  color: var(--ink, #2B2B2B);
  font-family: 'Nunito', system-ui, sans-serif;
  line-height: 1.55;
  margin: 0;
  min-height: 100dvh;
}

.aide-body .serif {
  font-family: 'Cormorant Garamond', 'Times New Roman', serif;
  font-weight: 500;
}

/* Container principal — largeurs contenues */
.aide-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 20px 16px 80px;
}

/* ============ HERO ============ */

.aide-hero {
  text-align: center;
  padding: 24px 0 32px;
}

.aide-eyebrow {
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted, #6B6560);
  margin: 0 0 12px;
  font-weight: 700;
}

.aide-title {
  font-size: 40px;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
  color: var(--ink, #2B2B2B);
}

.aide-lede {
  font-size: 16px;
  color: var(--muted, #6B6560);
  max-width: 520px;
  margin: 0 auto 28px;
}

/* Bloc video : 16:9 responsive avec cadre blanc pour se détacher du fond papier */
.aide-video-wrap {
  margin: 0 auto;
  max-width: 640px;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--line, #E6DFD4);
  box-shadow:
    0 24px 60px -20px rgba(43, 43, 43, 0.22),
    0 4px 12px -6px rgba(43, 43, 43, 0.08);
}

.aide-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 8px;
  background: var(--paper, #FAF7F2);
}

/* ============ TABS de section ============ */

.aide-tabs {
  display: flex;
  gap: 6px;
  padding: 6px;
  margin: 0 auto 40px;
  background: var(--soft, #E9EEE6);
  border-radius: 14px;
  max-width: fit-content;
}

.aide-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--ink, #2B2B2B);
  font-size: 14px;
  font-weight: 600;
  transition: background 180ms ease, color 180ms ease;
}

.aide-tab i {
  font-size: 18px;
  color: var(--muted, #6B6560);
}

.aide-tab:hover:not(.active) {
  background: rgba(255, 255, 255, 0.5);
}

.aide-tab.active {
  background: var(--deep, #566850);
  color: #fff;
}

.aide-tab.active i {
  color: #fff;
}

/* ============ SECTION ============ */

.aide-section-head {
  text-align: center;
  margin: 0 0 40px;
}

.aide-section-head h2 {
  font-size: 30px;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}

.aide-section-sub {
  color: var(--muted, #6B6560);
  font-size: 15px;
  margin: 0;
  max-width: 480px;
  margin: 0 auto;
}

/* ============ CHAPTER (bloc AVANT/PENDANT/APRES) ============ */

.aide-chapter {
  margin: 48px 0;
}

.aide-chapter-marker {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 0 4px 20px;
  border-bottom: 1px solid var(--line, #E6DFD4);
  margin-bottom: 24px;
}

.aide-chapter-index {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-style: italic;
  font-size: 44px;
  line-height: 1;
  color: var(--accent, #7C8F76);
}

.aide-chapter-label {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted, #6B6560);
  font-weight: 700;
}

/* ============ STEP (une etape avec visuel + texte) ============ */

.aide-step {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line, #E6DFD4);
}

.aide-step:last-of-type {
  border-bottom: 0;
}

.aide-step-visual {
  width: 100%;
  aspect-ratio: 3 / 2;
  background: #fff;
  border: 1px solid var(--line, #E6DFD4);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.aide-step-body h3 {
  font-size: 20px;
  margin: 0 0 10px;
  font-weight: 700;
  color: var(--ink, #2B2B2B);
  letter-spacing: -0.005em;
}

.aide-step-body p {
  margin: 0 0 12px;
  font-size: 15px;
  color: var(--ink, #2B2B2B);
}

.aide-step-body p:last-child {
  margin-bottom: 0;
}

.aide-step-body strong {
  font-weight: 700;
  color: var(--ink, #2B2B2B);
}

/* Encart astuce */
.aide-tip {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  background: var(--soft, #E9EEE6);
  border-left: 3px solid var(--accent, #7C8F76);
  border-radius: 6px;
  font-size: 14px;
  color: var(--ink, #2B2B2B);
}

.aide-tip i {
  font-size: 18px;
  color: var(--deep, #566850);
  flex-shrink: 0;
  margin-top: 1px;
}

/* ============ ILLUSTRATIONS CSS PURES ============ */

/* QR code stylise */
.viz-qr {
  width: 84px;
  height: 84px;
  position: relative;
  border-radius: 8px;
  background: repeating-conic-gradient(#1a1a1a 0% 25%, #fff 0% 50%) 0 / 12px 12px;
  overflow: hidden;
  box-shadow: 0 0 0 6px #fff, 0 0 0 7px var(--line, #E6DFD4);
}
.viz-qr-frame {
  position: absolute;
  inset: 0;
  border: 3px solid var(--accent, #7C8F76);
  border-radius: 8px;
  animation: qr-pulse 2.2s ease-in-out infinite;
}
@keyframes qr-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: 0.7; }
}

/* Saisie prenom */
.viz-name {
  display: flex;
  align-items: center;
  gap: 12px;
}
.viz-name-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--accent, #7C8F76);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px; font-weight: 500;
}
.viz-name-input {
  padding: 8px 14px;
  background: #fff;
  border: 1px solid var(--line, #E6DFD4);
  border-radius: 20px;
  font-size: 14px;
  color: var(--ink, #2B2B2B);
  min-width: 100px;
}

/* Install PWA */
.viz-install {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.viz-install i {
  font-size: 44px;
  color: var(--deep, #566850);
}
.viz-install-hint {
  font-size: 11px;
  color: var(--muted, #6B6560);
  letter-spacing: 0.04em;
}

/* Viseur camera */
.viz-viewer {
  width: 130px;
  height: 100px;
  position: relative;
  background: linear-gradient(135deg, #3A3530 0%, #2B2620 100%);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.viz-viewer-frame {
  width: 60%;
  height: 60%;
  border: 1px dashed rgba(255, 255, 255, 0.4);
  border-radius: 4px;
  position: relative;
}
.viz-viewer-focus {
  position: absolute;
  top: 50%; left: 50%;
  width: 20px; height: 20px;
  transform: translate(-50%, -50%);
  border: 1px solid #fff;
  opacity: 0.9;
}
.viz-viewer-shutter {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

/* Pellicule */
.viz-film {
  display: flex;
  align-items: center;
  gap: 14px;
}
.viz-film-count {
  font-family: 'Cormorant Garamond', serif;
  color: var(--ink, #2B2B2B);
}
.viz-film-count b {
  font-size: 36px;
  font-weight: 500;
}
.viz-film-count small {
  font-size: 14px;
  color: var(--muted, #6B6560);
  margin-left: 2px;
}
.viz-film-strip {
  width: 12px;
  height: 90px;
  background:
    repeating-linear-gradient(
      to bottom,
      var(--film, #3A3530) 0 8px,
      #FAF7F2 8px 10px
    );
  border-radius: 3px;
  position: relative;
}
.viz-film-strip::before,
.viz-film-strip::after {
  content: "";
  position: absolute;
  left: 3px; right: 3px;
  height: 6px;
  background: var(--paper, #FAF7F2);
}
.viz-film-strip::before { top: -4px; }
.viz-film-strip::after { bottom: -4px; }

/* Revue 3s */
.viz-review {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}
.viz-review-photo {
  width: 100px; height: 70px;
  background: linear-gradient(135deg, var(--soft, #E9EEE6) 0%, var(--line, #E6DFD4) 100%);
  border-radius: 4px;
  border: 4px solid #fff;
  box-shadow: 0 4px 12px -6px rgba(0, 0, 0, 0.2);
}
.viz-review-buttons {
  display: flex;
  gap: 8px;
}
.viz-btn {
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
}
.viz-btn-keep {
  background: var(--deep, #566850);
  color: #fff;
}
.viz-btn-drop {
  background: transparent;
  border: 1px solid var(--muted, #6B6560);
  color: var(--muted, #6B6560);
}

/* Slots */
.viz-slots {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}
.viz-slot-grid {
  display: grid;
  grid-template-columns: repeat(3, 22px);
  gap: 4px;
}
.viz-slot {
  aspect-ratio: 1;
  border: 1px dashed var(--muted, #6B6560);
  border-radius: 3px;
  background: transparent;
}
.viz-slot.filled {
  background: var(--accent, #7C8F76);
  border: 1px solid var(--accent, #7C8F76);
}
.viz-slot-count {
  font-size: 11px;
  color: var(--muted, #6B6560);
  letter-spacing: 0.04em;
}

/* Ma pellicule (grille) */
.viz-mine-grid {
  display: grid;
  grid-template-columns: repeat(3, 28px);
  grid-template-rows: repeat(2, 28px);
  gap: 4px;
}
.viz-mine-grid span {
  background: linear-gradient(135deg, var(--soft, #E9EEE6) 0%, var(--line, #E6DFD4) 100%);
  border-radius: 3px;
}

/* Defi */
.viz-challenge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background: #fff;
  border: 1px solid var(--accent, #7C8F76);
  border-radius: 20px;
}
.viz-challenge i {
  color: var(--accent, #7C8F76);
  font-size: 18px;
}
.viz-challenge-text {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink, #2B2B2B);
}

/* Livre d'or */
.viz-guestbook {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.viz-guestbook i {
  font-size: 36px;
  color: var(--deep, #566850);
}
.viz-guestbook-line {
  width: 90px;
  height: 4px;
  background: var(--line, #E6DFD4);
  border-radius: 2px;
}
.viz-guestbook-line.short {
  width: 60px;
}

/* Vocal */
.viz-voice {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.viz-voice i {
  font-size: 36px;
  color: var(--deep, #566850);
}
.viz-voice-wave {
  display: flex;
  gap: 3px;
  align-items: end;
}
.viz-voice-wave span {
  display: block;
  width: 4px;
  background: var(--accent, #7C8F76);
  border-radius: 2px;
  animation: voice-wave 1.4s ease-in-out infinite;
}
.viz-voice-wave span:nth-child(1) { height: 8px;  animation-delay: 0s;   }
.viz-voice-wave span:nth-child(2) { height: 16px; animation-delay: 0.1s; }
.viz-voice-wave span:nth-child(3) { height: 24px; animation-delay: 0.2s; }
.viz-voice-wave span:nth-child(4) { height: 20px; animation-delay: 0.3s; }
.viz-voice-wave span:nth-child(5) { height: 12px; animation-delay: 0.4s; }
.viz-voice-wave span:nth-child(6) { height: 18px; animation-delay: 0.5s; }
.viz-voice-wave span:nth-child(7) { height: 10px; animation-delay: 0.6s; }
@keyframes voice-wave {
  0%, 100% { transform: scaleY(0.4); opacity: 0.5; }
  50%      { transform: scaleY(1);   opacity: 1;   }
}

/* Offline */
.viz-offline {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.viz-offline i {
  font-size: 40px;
  color: var(--muted, #6B6560);
}
.viz-offline-hint {
  font-size: 11px;
  padding: 4px 10px;
  background: var(--soft, #E9EEE6);
  border-radius: 10px;
  color: var(--deep, #566850);
  font-weight: 700;
}

/* Reveal galerie */
.viz-reveal {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.viz-reveal i {
  font-size: 42px;
  color: var(--accent, #7C8F76);
}
.viz-reveal-caption {
  font-size: 11px;
  color: var(--muted, #6B6560);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}

/* Mur */
.viz-wall {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.viz-wall-frame {
  width: 130px;
  height: 78px;
  background: linear-gradient(135deg, #3A3530 0%, #2B2620 100%);
  border-radius: 4px;
  border: 3px solid #1a1a1a;
  position: relative;
}
.viz-wall-frame::before {
  content: "";
  position: absolute;
  inset: 8px;
  background:
    linear-gradient(90deg, transparent 30%, rgba(255,255,255,0.06) 50%, transparent 70%),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.08) 0 20%, transparent 20% 40%);
  border-radius: 2px;
}
.viz-wall-caption {
  font-size: 11px;
  color: var(--muted, #6B6560);
}

/* Farewell */
.viz-farewell {
  display: flex;
  align-items: center;
  justify-content: center;
}
.viz-farewell i {
  font-size: 60px;
  color: var(--accent, #7C8F76);
}

/* ============ ILLUSTRATIONS SECTION ORGA ============ */

/* Bloc icone generique */
.viz-icon-block {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--soft, #E9EEE6);
}
.viz-icon-block i {
  font-size: 34px;
  color: var(--deep, #566850);
}

/* Identity card */
.viz-identity {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.viz-identity-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent, #7C8F76), var(--deep, #566850));
  margin-bottom: 4px;
}
.viz-identity-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 17px;
  font-weight: 500;
  color: var(--ink, #2B2B2B);
}
.viz-identity-date {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 11px;
  color: var(--muted, #6B6560);
}
.viz-identity-swatches {
  display: flex;
  gap: 4px;
  margin-top: 8px;
}
.viz-identity-swatches span {
  width: 12px; height: 12px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.06);
}

/* Poses / quota */
.viz-poses {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.viz-poses-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 44px;
  line-height: 1;
  color: var(--deep, #566850);
  font-weight: 500;
}
.viz-poses-label {
  font-size: 10px;
  color: var(--muted, #6B6560);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}
.viz-poses-slider {
  margin-top: 8px;
  width: 90px; height: 4px;
  background: var(--line, #E6DFD4);
  border-radius: 2px;
  position: relative;
}
.viz-poses-thumb {
  position: absolute;
  left: 55%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--accent, #7C8F76);
  box-shadow: 0 0 0 3px #fff;
}

/* Moments */
.viz-moments {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
  max-width: 160px;
}
.viz-moment {
  display: flex;
  gap: 8px;
  padding: 4px 10px;
  background: var(--soft, #E9EEE6);
  border-radius: 6px;
  font-size: 11px;
  color: var(--ink, #2B2B2B);
  align-items: center;
}
.viz-moment b {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  color: var(--deep, #566850);
  font-size: 13px;
  min-width: 40px;
}

/* Challenges */
.viz-challenges {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  max-width: 180px;
}
.viz-challenge-card {
  display: flex;
  gap: 8px;
  padding: 6px 10px;
  background: #fff;
  border: 1px solid var(--accent, #7C8F76);
  border-radius: 8px;
  align-items: center;
  font-size: 11px;
}
.viz-challenge-card i {
  color: var(--accent, #7C8F76);
  font-size: 14px;
  flex-shrink: 0;
}
.viz-challenge-card b {
  display: block;
  color: var(--ink, #2B2B2B);
  font-size: 11px;
  font-weight: 700;
}
.viz-challenge-card small {
  font-size: 9px;
  color: var(--muted, #6B6560);
}

/* Toggles */
.viz-toggles {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  max-width: 150px;
}
.viz-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px;
  font-size: 11px;
  color: var(--ink, #2B2B2B);
}
.viz-toggle i {
  color: var(--muted, #6B6560);
  font-size: 14px;
}
.viz-toggle span {
  flex: 1;
}
.viz-toggle b {
  display: block;
  width: 22px; height: 12px;
  border-radius: 6px;
  background: var(--line, #E6DFD4);
  position: relative;
}
.viz-toggle b::after {
  content: "";
  position: absolute;
  top: 1px; left: 1px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #fff;
  transition: transform 200ms ease;
}
.viz-toggle b.on {
  background: var(--accent, #7C8F76);
}
.viz-toggle b.on::after {
  transform: translateX(10px);
}

/* Chevalets mini */
.viz-chevalets {
  display: flex;
  gap: 10px;
}
.viz-chevalet-mini {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.viz-chevalet-qr {
  width: 30px; height: 30px;
  background: repeating-conic-gradient(#1a1a1a 0% 25%, #fff 0% 50%) 0 / 6px 6px;
  border-radius: 2px;
  box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--line, #E6DFD4);
}
.viz-chevalet-caption {
  font-size: 10px;
  color: var(--muted, #6B6560);
  letter-spacing: 0.04em;
}

/* Dashboard */
.viz-dashboard {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}
.viz-dashboard-kpi {
  display: flex;
  gap: 12px;
}
.viz-dashboard-kpi div {
  text-align: center;
}
.viz-dashboard-kpi b {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 500;
  color: var(--deep, #566850);
}
.viz-dashboard-kpi small {
  font-size: 9px;
  color: var(--muted, #6B6560);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.viz-dashboard-now {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: var(--soft, #E9EEE6);
  border-radius: 12px;
  font-size: 11px;
  color: var(--ink, #2B2B2B);
  font-weight: 600;
}
.viz-dashboard-now i {
  color: var(--accent, #7C8F76);
  font-size: 12px;
}

/* Pending */
.viz-pending {
  display: flex;
  align-items: center;
  gap: 12px;
}
.viz-pending i {
  font-size: 32px;
  color: var(--muted, #6B6560);
}
.viz-pending-count {
  display: flex;
  flex-direction: column;
}
.viz-pending-count b {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px;
  color: var(--deep, #566850);
  font-weight: 500;
  line-height: 1;
}
.viz-pending-count small {
  font-size: 10px;
  color: var(--muted, #6B6560);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Modération */
.viz-moderate {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
}
.viz-moderate-msg {
  display: flex;
  gap: 6px;
  padding: 6px 10px;
  background: #fff;
  border: 1px solid var(--line, #E6DFD4);
  border-radius: 8px;
  font-size: 11px;
  color: var(--muted, #6B6560);
  align-items: center;
}
.viz-moderate-msg i {
  color: var(--deep, #566850);
  font-size: 14px;
}
.viz-moderate-btn {
  padding: 4px 10px;
  background: var(--danger, #B4413C);
  color: #fff;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* Close */
.viz-close {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.viz-close i {
  font-size: 36px;
  color: var(--muted, #6B6560);
}
.viz-close-caption {
  font-size: 11px;
  color: var(--ink, #2B2B2B);
  font-weight: 700;
}

/* Triage */
.viz-triage {
  display: flex;
  gap: 6px;
}
.viz-triage-photo {
  width: 44px; height: 44px;
  border-radius: 4px;
  background: linear-gradient(135deg, var(--soft, #E9EEE6) 0%, var(--line, #E6DFD4) 100%);
  position: relative;
  border: 3px solid #fff;
  box-shadow: 0 2px 6px -3px rgba(0,0,0,0.2);
}
.viz-triage-photo--best {
  border: 3px solid var(--accent, #7C8F76);
}
.viz-triage-photo--best span {
  position: absolute;
  top: -6px; right: -6px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--accent, #7C8F76);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px;
  font-weight: 700;
}
.viz-triage-photo--rejected {
  opacity: 0.35;
}
.viz-triage-photo--rejected::after {
  content: "×";
  position: absolute;
  inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--danger, #B4413C);
  font-size: 22px;
  font-weight: 700;
}

/* Éditeur album */
.viz-editor {
  display: flex;
  gap: 6px;
}
.viz-editor-rail {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.viz-editor-rail span {
  width: 14px; height: 20px;
  background: var(--soft, #E9EEE6);
  border-radius: 2px;
}
.viz-editor-canvas {
  display: flex;
  gap: 4px;
}
.viz-editor-page {
  width: 40px; height: 56px;
  background: #fff;
  border: 1px solid var(--line, #E6DFD4);
  border-radius: 2px;
  box-shadow: 0 2px 6px -3px rgba(0,0,0,0.15);
}

/* Album options */
.viz-album-opts {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.viz-album-opt {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 10px;
  background: var(--soft, #E9EEE6);
  border-radius: 6px;
  font-size: 11px;
}
.viz-album-opt b {
  color: var(--ink, #2B2B2B);
  font-weight: 700;
}
.viz-album-opt span {
  color: var(--muted, #6B6560);
}

/* Print */
.viz-print {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}
.viz-print i {
  font-size: 34px;
  color: var(--muted, #6B6560);
}
.viz-print-page {
  width: 30px; height: 40px;
  background: #fff;
  border: 1px solid var(--line, #E6DFD4);
  border-radius: 2px;
  position: relative;
}
.viz-print-page::before,
.viz-print-page::after {
  content: "";
  position: absolute;
  left: 4px; right: 4px;
  height: 2px;
  background: var(--line, #E6DFD4);
}
.viz-print-page::before { top: 8px; }
.viz-print-page::after { top: 14px; right: 12px; }

/* Import */
.viz-import {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.viz-import i {
  font-size: 36px;
  color: var(--deep, #566850);
}
.viz-import-caption {
  font-size: 11px;
  color: var(--muted, #6B6560);
  letter-spacing: 0.04em;
  max-width: 130px;
  text-align: center;
}

/* ============ ILLUSTRATIONS SECTION ADMIN ============ */

/* Event card */
.viz-event-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 16px;
  background: #fff;
  border: 1px solid var(--line, #E6DFD4);
  border-radius: 8px;
  align-items: center;
}
.viz-event-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 16px;
  color: var(--ink, #2B2B2B);
  font-weight: 500;
}
.viz-event-slug {
  font-family: 'Courier New', monospace;
  font-size: 10px;
  color: var(--muted, #6B6560);
  background: var(--soft, #E9EEE6);
  padding: 2px 6px;
  border-radius: 4px;
}
.viz-event-date {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 11px;
  color: var(--muted, #6B6560);
}

/* Reveal clock */
.viz-reveal-clock {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.viz-reveal-clock i {
  font-size: 32px;
  color: var(--accent, #7C8F76);
}
.viz-reveal-time {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  color: var(--deep, #566850);
  font-weight: 500;
  line-height: 1;
}
.viz-reveal-label {
  font-size: 10px;
  color: var(--muted, #6B6560);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Quotas */
.viz-quotas {
  display: flex;
  gap: 16px;
}
.viz-quota {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.viz-quota b {
  font-family: 'Cormorant Garamond', serif;
  font-size: 32px;
  color: var(--deep, #566850);
  font-weight: 500;
  line-height: 1;
}
.viz-quota small {
  font-size: 9px;
  color: var(--muted, #6B6560);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 2px;
}

/* Test mode */
.viz-test-mode {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.viz-test-mode i {
  font-size: 34px;
  color: var(--muted, #6B6560);
}
.viz-test-caption {
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--ink, #2B2B2B);
  line-height: 1.3;
}
.viz-test-caption small {
  font-weight: 400;
  color: var(--muted, #6B6560);
  font-size: 10px;
}

/* Org list */
.viz-org-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: 100%;
  max-width: 170px;
}
.viz-org-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  background: var(--soft, #E9EEE6);
  border-radius: 4px;
  font-size: 11px;
  color: var(--ink, #2B2B2B);
}
.viz-org-row i {
  color: var(--muted, #6B6560);
  font-size: 14px;
}
.viz-org-add {
  background: transparent;
  border: 1px dashed var(--accent, #7C8F76);
  color: var(--deep, #566850);
  font-weight: 700;
}
.viz-org-add i {
  color: var(--deep, #566850);
}

/* Org remove */
.viz-org-remove {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.viz-org-remove i {
  font-size: 34px;
  color: var(--muted, #6B6560);
}
.viz-org-caption {
  font-size: 11px;
  color: var(--ink, #2B2B2B);
  font-weight: 700;
}

/* Global mod */
.viz-global-mod {
  display: flex;
  align-items: center;
  justify-content: center;
}
.viz-global-grid {
  display: grid;
  grid-template-columns: repeat(3, 28px);
  gap: 3px;
}
.viz-global-grid span {
  aspect-ratio: 1;
  background: linear-gradient(135deg, var(--soft, #E9EEE6) 0%, var(--line, #E6DFD4) 100%);
  border-radius: 2px;
  display: flex; align-items: center; justify-content: center;
  color: transparent;
  font-weight: 700;
}
.viz-global-grid span.hidden {
  background: var(--danger, #B4413C);
  color: #fff;
  opacity: 0.85;
  font-size: 14px;
}

/* Extend */
.viz-extend {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.viz-extend i {
  font-size: 36px;
  color: var(--accent, #7C8F76);
}
.viz-extend-caption {
  padding: 3px 10px;
  background: var(--accent, #7C8F76);
  color: #fff;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* Toggle open */
.viz-toggle-open {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.viz-toggle-open i {
  font-size: 34px;
  color: var(--deep, #566850);
}
.viz-toggle-status {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  background: var(--soft, #E9EEE6);
  border-radius: 10px;
  font-size: 11px;
  color: var(--ink, #2B2B2B);
  font-weight: 700;
}
.viz-status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--muted, #6B6560);
}
.viz-status-dot.on {
  background: var(--accent, #7C8F76);
  box-shadow: 0 0 0 3px rgba(124, 143, 118, 0.2);
}

/* Purge */
.viz-purge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.viz-purge i {
  font-size: 32px;
  color: var(--danger, #B4413C);
}
.viz-purge-caption {
  font-size: 11px;
  color: var(--danger, #B4413C);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-align: center;
  max-width: 130px;
}

/* Zip */
.viz-zip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.viz-zip i {
  font-size: 34px;
  color: var(--deep, #566850);
}
.viz-zip-caption {
  font-family: 'Courier New', monospace;
  font-size: 10px;
  color: var(--muted, #6B6560);
  background: var(--soft, #E9EEE6);
  padding: 2px 8px;
  border-radius: 4px;
}

/* Stats */
.viz-stats {
  display: flex;
  gap: 10px;
}
.viz-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4px 8px;
}
.viz-stat b {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  color: var(--deep, #566850);
  font-weight: 500;
  line-height: 1;
}
.viz-stat small {
  font-size: 9px;
  color: var(--muted, #6B6560);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 2px;
}

/* ============ LISTES DANS STEPS ============ */

.aide-list {
  margin: 8px 0 12px;
  padding: 0 0 0 20px;
  font-size: 15px;
  color: var(--ink, #2B2B2B);
  line-height: 1.55;
}

.aide-list li {
  margin-bottom: 6px;
}

.aide-list li:last-child {
  margin-bottom: 0;
}

.aide-list strong {
  font-weight: 700;
  color: var(--ink, #2B2B2B);
}

/* Code inline */
.aide-step-body code,
.aide-q code {
  font-family: 'Courier New', monospace;
  font-size: 0.9em;
  background: var(--soft, #E9EEE6);
  padding: 1px 6px;
  border-radius: 3px;
  color: var(--deep, #566850);
}

/* ============ FAQ ============ */

.aide-faq {
  margin: 56px 0 0;
  padding: 32px 0 0;
  border-top: 1px solid var(--line, #E6DFD4);
}

.aide-faq h3 {
  font-size: 26px;
  text-align: center;
  margin: 0 0 24px;
  font-weight: 500;
}

.aide-q {
  border-bottom: 1px solid var(--line, #E6DFD4);
  padding: 16px 0;
}

.aide-q:first-of-type {
  border-top: 1px solid var(--line, #E6DFD4);
}

.aide-q summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 15px;
  color: var(--ink, #2B2B2B);
  list-style: none;
  padding-right: 32px;
  position: relative;
}

.aide-q summary::-webkit-details-marker {
  display: none;
}

.aide-q summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  font-weight: 300;
  color: var(--muted, #6B6560);
  transition: transform 180ms ease;
}

.aide-q[open] summary::after {
  content: "−";
}

.aide-q p {
  margin: 12px 0 0;
  font-size: 14px;
  color: var(--muted, #6B6560);
  line-height: 1.6;
}

.aide-q p strong,
.aide-q p em {
  color: var(--ink, #2B2B2B);
}

/* ============ PLACEHOLDER ORGA/ADMIN (WIP) ============ */

.aide-placeholder-orga {
  text-align: center;
  padding: 60px 20px;
  background: var(--soft, #E9EEE6);
  border-radius: 16px;
  color: var(--ink, #2B2B2B);
}

.aide-placeholder-orga i {
  font-size: 44px;
  color: var(--deep, #566850);
  margin-bottom: 12px;
  display: block;
}

.aide-placeholder-orga p {
  margin: 0 auto 12px;
  max-width: 440px;
  font-size: 15px;
  color: var(--muted, #6B6560);
}

.aide-placeholder-orga a {
  color: var(--deep, #566850);
  font-weight: 700;
  text-decoration: none;
}
.aide-placeholder-orga a:hover {
  text-decoration: underline;
}

/* ============ FOOTER ============ */

.aide-footer {
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid var(--line, #E6DFD4);
  text-align: center;
  color: var(--muted, #6B6560);
  font-size: 13px;
}

.aide-footer p {
  margin: 0;
  max-width: 480px;
  margin: 0 auto;
}

/* ============ BREAKPOINT TABLETTE (>=768px) ============ */

@media (min-width: 768px) {
  .aide-wrap {
    padding: 40px 24px 100px;
  }

  .aide-title {
    font-size: 56px;
  }

  .aide-lede {
    font-size: 17px;
  }

  .aide-step {
    grid-template-columns: 200px 1fr;
    gap: 32px;
    align-items: center;
    padding: 32px 0;
  }

  .aide-step-visual {
    aspect-ratio: 4 / 3;
  }

  .aide-chapter-index {
    font-size: 56px;
  }

  .aide-section-head h2 {
    font-size: 36px;
  }

  .aide-faq h3 {
    font-size: 32px;
  }
}

/* ============ BREAKPOINT PC (>=1200px) ============ */

@media (min-width: 1200px) {
  .aide-wrap {
    max-width: 820px;
    padding: 56px 32px 120px;
  }

  .aide-title {
    font-size: 68px;
  }

  .aide-hero {
    padding: 32px 0 48px;
  }

  .aide-step {
    grid-template-columns: 240px 1fr;
    gap: 40px;
  }

  .aide-step-body h3 {
    font-size: 22px;
  }
}

/* ============ INTEGRATION AVEC LE SHELL ORGA/ADMIN ============ */

/* Quand la page est dans le shell (>=900px), on reduit le padding en top
 * (le shell a deja sa propre topbar en marge) et on evite qu'aide-wrap
 * soit plus large que la colonne main. */
.role-orga .shell-main .aide-wrap,
.role-admin .shell-main .aide-wrap {
  max-width: 820px;
}

/* Le shell a un padding global via admin.css topbar/wrap ; on garde propre. */
@media (min-width: 900px) {
  .role-orga .shell-main .aide-wrap,
  .role-admin .shell-main .aide-wrap {
    padding-top: 40px;
  }
}

/* Revoke tokens / Backup Drive (admin & orga) / Delayed upload */
.viz-revoke, .viz-backup, .viz-backup-admin, .viz-delayed {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.viz-revoke i, .viz-backup i, .viz-backup-admin i, .viz-delayed i {
  font-size: 36px;
  color: var(--muted, #6B6560);
}
.viz-revoke-caption, .viz-backup-caption, .viz-backup-admin-caption, .viz-delayed-caption {
  font-size: 11px;
  color: var(--ink, #2B2B2B);
  font-weight: 700;
  text-align: center;
  line-height: 1.2;
}

/* ============ MOTION REDUITE ============ */

@media (prefers-reduced-motion: reduce) {
  .viz-qr-frame,
  .viz-voice-wave span {
    animation: none;
  }
}
