/* ═══════════════════════════════════════════
   GUIDE PAGES, Shared styles
   ═══════════════════════════════════════════ */

/* Restore opaque background on guide pages */
html, body {
  background: var(--surface);
  transition: background var(--duration-md) ease;
}

/* Back link */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--label-lg);
  font-weight: 500;
  color: var(--on-surface-variant);
  margin-bottom: var(--sp-8);
  transition: color var(--duration-md) ease;
}
.back-link:hover { color: var(--primary); }

/* Guide Hero */
.guide-hero {
  text-align: center;
  margin-bottom: var(--sp-12);
}

.guide-hero-badge {
  display: inline-block;
  padding: var(--sp-2) var(--sp-4);
  background: var(--surface-container-high);
  border: 1px solid var(--outline-variant);
  border-radius: 100px;
  font-size: var(--label-lg);
  font-weight: 600;
  color: var(--primary);
  margin-bottom: var(--sp-6);
}

.guide-hero-title {
  font-family: var(--font-display);
  font-size: var(--display-lg);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: var(--sp-6);
}

.guide-hero-subtitle {
  font-size: var(--title-lg);
  color: var(--on-surface-variant);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.5;
}

/* Stats row */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
  margin-bottom: var(--sp-12);
}

.stat-card {
  text-align: center;
  padding: var(--sp-6) var(--sp-4);
  background: var(--surface-container);
  border: 1px solid var(--outline-variant);
  border-radius: 16px;
  transition: transform var(--duration-md) var(--ease-out-expo), border-color var(--duration-md) ease;
}

.stat-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
}

.stat-value {
  font-family: var(--font-display);
  font-size: var(--headline-lg);
  font-weight: 700;
  color: var(--primary);
  margin-bottom: var(--sp-2);
}

.stat-label {
  font-size: var(--body-md);
  color: var(--on-surface-variant);
}

/* Guide content */
.guide-content {
  max-width: 750px;
  margin: 0 auto;
}

.guide-content p {
  margin-bottom: var(--sp-4);
  line-height: 1.7;
}

/* Guide image */
.guide-image {
  width: 100%;
  max-width: 600px;
  margin: var(--sp-6) auto 0;
  border-radius: 12px;
  display: block;
}

/* HIP cards */
.hip-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-4);
  margin: var(--sp-6) 0;
}

.hip-card {
  padding: var(--sp-6);
  background: var(--surface-container);
  border: 1px solid var(--outline-variant);
  border-radius: 12px;
  transition: border-color var(--duration-md) ease;
}

.hip-card:hover {
  border-color: var(--primary);
}

/* Variantes pro/con : verte pour avantages, rouge pour inconvénients. */
.hip-card.hip-pro {
  border-color: rgba(72, 187, 120, 0.5);
  background: linear-gradient(180deg, rgba(72, 187, 120, 0.06), transparent 60%), var(--surface-container);
  box-shadow: inset 0 0 0 1px rgba(72, 187, 120, 0.25);
}
.hip-card.hip-pro:hover {
  border-color: rgba(72, 187, 120, 0.9);
  box-shadow: inset 0 0 0 1px rgba(72, 187, 120, 0.45), 0 8px 28px rgba(72, 187, 120, 0.18);
}
.hip-card.hip-pro h4 { color: #6dd497; }

.hip-card.hip-con {
  border-color: rgba(229, 62, 62, 0.5);
  background: linear-gradient(180deg, rgba(229, 62, 62, 0.06), transparent 60%), var(--surface-container);
  box-shadow: inset 0 0 0 1px rgba(229, 62, 62, 0.25);
}
.hip-card.hip-con:hover {
  border-color: rgba(229, 62, 62, 0.9);
  box-shadow: inset 0 0 0 1px rgba(229, 62, 62, 0.45), 0 8px 28px rgba(229, 62, 62, 0.18);
}
.hip-card.hip-con h4 { color: #f08585; }

/* ═══════════ Schéma carnet d'ordres ═══════════ */
.orderbook-schema {
  margin: var(--sp-6) 0;
  padding: var(--sp-4);
  background: var(--surface-container);
  border-radius: 16px;
  display: grid;
  gap: var(--sp-3);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.ob-header {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--sp-2);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--on-surface-variant);
  padding: 0 var(--sp-3);
}
.ob-header span:nth-child(2) { text-align: right; }
.ob-header span:nth-child(3) { text-align: right; }
.ob-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--sp-2);
  align-items: center;
  padding: 6px var(--sp-3);
  border-radius: 6px;
  font-size: 0.9rem;
  position: relative;
  overflow: hidden;
}
.ob-row .ob-bar {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  z-index: 0;
  opacity: 0.18;
}
.ob-row > * { position: relative; z-index: 1; }
.ob-row .ob-price { font-weight: 700; }
.ob-row .ob-size,
.ob-row .ob-total { text-align: right; color: var(--on-surface-variant); }
.ob-row.ask .ob-bar { background: rgba(229, 62, 62, 0.65); }
.ob-row.ask .ob-price { color: #f08585; }
.ob-row.bid .ob-bar { background: rgba(72, 187, 120, 0.65); }
.ob-row.bid .ob-price { color: #6dd497; }
.ob-spread {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--sp-3) var(--sp-3);
  margin: var(--sp-2) 0;
  background: var(--surface-container-high);
  border-radius: 8px;
  font-size: 0.85rem;
}
.ob-spread .ob-mid {
  font-weight: 700;
  font-size: 1rem;
  color: var(--primary);
}
.ob-spread .ob-spread-label {
  color: var(--on-surface-variant);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.7rem;
}
.ob-legend {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-3);
  margin-top: var(--sp-3);
  font-family: var(--font-body);
  font-size: 0.85rem;
}
.ob-legend > div {
  padding: var(--sp-3);
  border-radius: 10px;
  background: var(--surface-container-high);
}
.ob-legend strong { display: block; margin-bottom: 4px; }
.ob-legend .ob-leg-ask strong { color: #f08585; }
.ob-legend .ob-leg-bid strong { color: #6dd497; }
@media (max-width: 600px) {
  .ob-legend { grid-template-columns: 1fr; }
  .ob-row, .ob-header { font-size: 0.78rem; }
}

.hip-badge {
  display: inline-block;
  padding: var(--sp-1) var(--sp-3);
  background: var(--primary);
  color: var(--on-primary);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--label-sm);
  border-radius: 100px;
  margin-bottom: var(--sp-3);
  letter-spacing: 0.05em;
}

.coming-soon-badge {
  display: inline-block;
  padding: var(--sp-1) var(--sp-3);
  background: rgba(67, 191, 255, 0.15);
  color: var(--tertiary);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--label-sm);
  border-radius: 100px;
  margin-left: var(--sp-2);
  letter-spacing: 0.03em;
  vertical-align: middle;
}

.hip-card h4 {
  font-family: var(--font-display);
  font-size: var(--title-md);
  font-weight: 700;
  margin-bottom: var(--sp-3);
}

.hip-card p {
  color: var(--on-surface-variant);
  font-size: var(--body-md);
  line-height: 1.6;
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .hip-cards {
    grid-template-columns: 1fr;
  }
}

.guide-hero-logo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: contain;
  margin: 0 auto var(--sp-4);
  display: block;
}

.title-logo {
  height: 1em;
  display: inline-block;
  vertical-align: baseline;
  object-fit: contain;
}

.guide-subtitle {
  font-family: var(--font-display);
  font-size: var(--headline-md);
  font-weight: 700;
  margin-top: var(--sp-10);
  margin-bottom: var(--sp-6);
  color: var(--on-surface);
}

/* Highlight box */
.highlight-box {
  background: linear-gradient(135deg, rgba(239, 169, 5, 0.08), rgba(239, 169, 5, 0.02));
  border: 1px solid rgba(239, 169, 5, 0.2);
  border-radius: 12px;
  padding: var(--sp-6);
  margin: var(--sp-8) 0;
}

.highlight-box-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--title-md);
  color: var(--primary);
  margin-bottom: var(--sp-3);
}

.highlight-box p {
  margin-bottom: 0;
}

/* Features grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-4);
  margin: var(--sp-6) 0;
}

.feature-item {
  display: flex;
  gap: var(--sp-4);
  padding: var(--sp-4);
  background: var(--surface-container);
  border: 1px solid var(--outline-variant);
  border-radius: 12px;
  transition: border-color var(--duration-md) ease;
}

.feature-item:hover {
  border-color: var(--primary);
}

.feature-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.feature-item strong {
  display: block;
  font-size: var(--title-md);
  margin-bottom: var(--sp-1);
}

.feature-item p {
  font-size: var(--body-md);
  color: var(--on-surface-variant);
  margin-bottom: 0;
}

/* Method cards */
.method-cards {
  display: grid;
  gap: var(--sp-4);
  margin: var(--sp-6) 0;
}

.method-card {
  padding: var(--sp-6);
  background: var(--surface-container);
  border: 1px solid var(--outline-variant);
  border-radius: 12px;
  transition: border-color var(--duration-md) ease;
}

.method-card:hover {
  border-color: var(--primary);
}

.method-header {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-3);
}

.method-icon {
  font-size: 1.5rem;
}

.method-header h4 {
  font-family: var(--font-display);
  font-size: var(--title-lg);
  font-weight: 600;
}

.method-card p {
  color: var(--on-surface-variant);
  line-height: 1.6;
  margin-bottom: 0;
}

/* Strategy box */
.strategy-box {
  display: grid;
  gap: var(--sp-4);
  margin: var(--sp-6) 0;
}

.strategy-item {
  display: flex;
  gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-6);
  background: var(--surface-container);
  border: 1px solid var(--outline-variant);
  border-radius: 12px;
}

.strategy-num {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--primary);
  color: var(--on-primary);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--title-md);
  flex-shrink: 0;
  margin-top: 2px;
}

.strategy-item strong {
  display: block;
  font-size: var(--title-md);
  margin-bottom: var(--sp-1);
}

.strategy-item p {
  color: var(--on-surface-variant);
  font-size: var(--body-md);
  line-height: 1.6;
  margin-bottom: 0;
}

/* Guide steps */
.guide-steps {
  max-width: 750px;
  margin: 0 auto;
  position: relative;
}

.guide-steps::before {
  content: '';
  position: absolute;
  top: 0;
  left: 22px;
  width: 2px;
  height: 100%;
  background: var(--outline-variant);
}

.guide-step {
  display: flex;
  gap: var(--sp-6);
  margin-bottom: var(--sp-8);
  position: relative;
}

.guide-step-number {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--primary);
  color: var(--on-primary);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--title-lg);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.guide-step-content {
  flex: 1;
  padding-top: var(--sp-2);
}

.guide-step-content h3 {
  font-family: var(--font-display);
  font-size: var(--title-lg);
  font-weight: 700;
  margin-bottom: var(--sp-3);
}

.guide-step-content p {
  color: var(--on-surface-variant);
  line-height: 1.7;
  margin-bottom: var(--sp-4);
}

/* Checklist */
.checklist {
  list-style: none;
  padding: 0;
}

.checklist li {
  position: relative;
  padding-left: var(--sp-6);
  margin-bottom: var(--sp-3);
  color: var(--on-surface);
}

.checklist li::before {
  content: '☐';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-size: 1.1rem;
}

/* ═══════════════════════════════════════════
   FAQ ACCORDION
   ═══════════════════════════════════════════ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  margin-top: var(--sp-6);
}

.faq-item {
  background: var(--surface-container-low);
  border-radius: 1.25rem;
  overflow: hidden;
  transition: background var(--duration-md) ease;
}

.faq-item[open] {
  background: var(--surface-container-highest);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: var(--sp-6);
  font-family: var(--font-display);
  font-size: var(--title-md);
  font-weight: 600;
  color: var(--on-surface);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  transition: color var(--duration-md) ease;
}

.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::marker { content: ''; }

.faq-item summary::after {
  content: '+';
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--primary);
  background: var(--surface-container);
  border-radius: 50%;
  line-height: 1;
  transition: transform var(--duration-md) ease, background var(--duration-md) ease;
}

.faq-item[open] summary::after {
  content: '\2212';
  background: var(--primary-container);
  transform: rotate(180deg);
}

.faq-item summary:hover { color: var(--primary); }

.faq-answer {
  padding: 0 var(--sp-6) var(--sp-6);
  color: var(--on-surface-variant);
  line-height: 1.7;
}

.faq-answer p {
  margin-bottom: var(--sp-4);
}

.faq-answer p:last-child { margin-bottom: 0; }

.faq-answer ul {
  margin: 0 0 var(--sp-4) var(--sp-6);
  padding: 0;
  color: var(--on-surface-variant);
}

.faq-answer ul li {
  margin-bottom: var(--sp-2);
  line-height: 1.7;
}

.faq-answer strong { color: var(--on-surface); }

.faq-answer .highlight-box {
  margin: var(--sp-4) 0;
}

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */
@media (max-width: 768px) {
  .guide-hero-title {
    font-size: 2.25rem;
  }

  .stats-row {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .guide-steps::before {
    left: 18px;
  }

  .guide-step-number {
    width: 36px;
    height: 36px;
    font-size: var(--title-md);
  }

  .faq-item summary {
    padding: var(--sp-4);
    font-size: var(--title-sm, 1.05rem);
  }

  .faq-answer {
    padding: 0 var(--sp-4) var(--sp-4);
  }
}

/* ── Airdrop Timeline (cycle post-TGE, vertical) ── */
.airdrop-timeline {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--sp-3);
  max-width: 720px;
  margin: var(--sp-6) auto;
}

.atl-step {
  display: grid;
  grid-template-columns: 44px 1fr;
  grid-template-rows: auto auto;
  column-gap: var(--sp-4);
  row-gap: 6px;
  padding: var(--sp-4) var(--sp-4);
  background: var(--surface-container);
  border-radius: var(--radius-lg);
}

.atl-num {
  grid-row: 1 / 3;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 176, 0, 0.10);
  color: var(--primary);
  font-family: var(--font-display, 'Space Grotesk', sans-serif);
  font-weight: 700;
  font-size: 1.15rem;
  border-radius: 12px;
}

.atl-title {
  font-family: var(--font-display, 'Space Grotesk', sans-serif);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--on-surface);
  align-self: end;
}

.atl-step p {
  grid-column: 2;
  margin: 0;
  font-size: 0.95rem;
  color: var(--on-surface-variant);
  line-height: 1.55;
}

.atl-arrow {
  text-align: center;
  font-size: 1.4rem;
  color: var(--primary);
  opacity: 0.55;
  line-height: 1;
}

@media (max-width: 600px) {
  .atl-step {
    grid-template-columns: 36px 1fr;
    column-gap: var(--sp-3);
    padding: var(--sp-3) var(--sp-4);
  }
  .atl-num {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }
}

/* Styles vidéo migrés vers style.css (réutilisables hors guide). */

/* ═══════════════════════ Actus / News feed ═══════════════════════ */

.news-feed {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  margin-top: var(--sp-6);
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
}

.news-loading,
.news-empty {
  text-align: center;
  color: var(--on-surface-variant);
  padding: var(--sp-6) var(--sp-4);
  font-size: 0.95rem;
}

/* Carte = bouton dépliable. Header toujours visible, body caché par défaut. */
.news-post {
  background: var(--surface-container);
  border-radius: 22px;
  box-shadow: 0 12px 32px -16px rgba(0, 0, 0, 0.55),
              0 0 0 1px rgba(255, 217, 61, 0.06) inset;
  overflow: hidden;
  transition: box-shadow 0.25s ease, transform 0.25s ease, background 0.25s ease;
}
.news-post:hover {
  background: var(--surface-container-high);
  box-shadow: 0 18px 44px -16px rgba(0, 0, 0, 0.7),
              0 0 0 1px rgba(255, 217, 61, 0.12) inset;
  transform: translateY(-1px);
}
.news-post.open {
  background: var(--surface-container-high);
  box-shadow: 0 22px 56px -18px rgba(0, 0, 0, 0.75),
              0 0 0 1px rgba(255, 176, 0, 0.25) inset;
}

.news-post-header {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-6);
  cursor: pointer;
  user-select: none;
}
.news-post-header-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  min-width: 0;
}

.news-meta {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-size: 0.82rem;
  color: var(--on-surface-variant);
  flex-wrap: wrap;
}

.news-date {
  font-variant-numeric: tabular-nums;
}

.news-format {
  display: inline-block;
  padding: 3px 11px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 217, 61, 0.18), rgba(255, 82, 0, 0.14));
  color: var(--primary);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.news-title {
  font-family: var(--font-display, 'Space Grotesk', sans-serif);
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  font-weight: 600;
  margin: 0;
  color: var(--on-surface);
  line-height: 1.3;
}

.news-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}

.news-tag {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--surface-container-highest);
  color: var(--on-surface-variant);
  font-size: 0.72rem;
  font-weight: 500;
}

.news-toggle {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--surface-container-high);
  color: var(--primary);
  font-size: 14px;
  margin-top: 4px;
  transition: transform 0.3s ease, background 0.25s ease;
}
.news-post:hover .news-toggle { background: var(--surface-bright); }
.news-post.open .news-toggle { transform: rotate(180deg); }

.news-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s ease;
}
.news-body-inner {
  overflow: hidden;
  color: var(--on-surface);
  line-height: 1.7;
  font-size: 1rem;
  padding: 0 var(--sp-6);
}
.news-post.open .news-body { grid-template-rows: 1fr; }
.news-post.open .news-body-inner {
  padding: var(--sp-4) var(--sp-6) var(--sp-6);
  border-top: 1px solid rgba(255, 217, 61, 0.10);
  margin-top: 0;
}

.news-body-inner p { margin: 0 0 var(--sp-4) 0; }
.news-body-inner p:last-child { margin-bottom: 0; }
.news-body-inner ul, .news-body-inner ol { margin: 0 0 var(--sp-4) 0; padding-left: 1.5em; }
.news-body-inner li { margin-bottom: 8px; line-height: 1.65; }
.news-body-inner strong { color: var(--primary); font-weight: 600; }
.news-body-inner a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.news-body-inner a:hover { color: var(--primary-hover); }
.news-body-inner blockquote {
  margin: var(--sp-4) 0;
  padding: var(--sp-4) var(--sp-4);
  background: var(--surface-container);
  border-left: 3px solid var(--primary);
  border-radius: 0 10px 10px 0;
  color: var(--on-surface);
  font-style: italic;
}
.news-body-inner h3, .news-body-inner h4 {
  font-family: var(--font-display, 'Space Grotesk', sans-serif);
  margin: var(--sp-4) 0 var(--sp-2) 0;
  font-weight: 600;
  color: var(--on-surface);
}
.news-body-inner h3:first-child, .news-body-inner h4:first-child { margin-top: 0; }
.news-body-inner h3 { font-size: 1.15rem; }
.news-body-inner h4 { font-size: 1rem; }
