/* histoire.css — ChoKInfO */

  /* ═══════════════════════════════════════════════════════
     Styles spécifiques à histoire.html
     Les variables communes (--bg, --accent, etc.) viennent
     de theme.css — les surcharges light mode sont ici.
     ═══════════════════════════════════════════════════════ */

  :root {
    --glow2: 0 0 20px rgba(255,107,53,0.3);
    --glow3: 0 0 20px rgba(124,58,237,0.3);
  }

  /* ── Back button ── */
  .back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin: 1.5rem auto 0;
    padding: 0.45rem 1rem;
    background: rgba(0,212,255,0.08);
    border: 1px solid rgba(0,212,255,0.25);
    border-radius: 6px;
    color: var(--accent);
    font-family: 'Space Mono', monospace;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background 0.2s, box-shadow 0.2s;
  }
  .back-btn:hover {
    background: rgba(0,212,255,0.15);
    box-shadow: var(--glow);
  }

  /* ── Hero ── */
  .hero {
    position: relative; z-index: 1;
    text-align: center;
    padding: 4rem 1.5rem 3rem;
    max-width: 700px;
    margin: 0 auto;
  }

  .hero-label {
    display: inline-block;
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    border: 1px solid rgba(0,212,255,0.3);
    background: rgba(0,212,255,0.07);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    margin-bottom: 1.25rem;
    animation: fadeUp 0.6s ease both;
  }

  [data-theme="light"] .hero-label {
    background: rgba(0,120,168,0.07);
    border-color: rgba(0,120,168,0.3);
  }

  .hero h2 {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: clamp(2rem, 6vw, 3.5rem);
    letter-spacing: -0.02em;
    line-height: 1.1;
    color: var(--text);
    animation: fadeUp 0.6s 0.1s ease both;
  }

  .hero h2 span {
    background: linear-gradient(135deg, var(--accent) 0%, var(--text) 60%, var(--accent3) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }

  .hero-sub {
    margin-top: 1rem;
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.8;
    animation: fadeUp 0.6s 0.2s ease both;
  }

  .scroll-arrows {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.1rem;
    animation: fadeUp 0.6s 0.3s ease both;
  }

  .scroll-arrows span {
    display: block;
    font-size: 1.2rem;
    color: var(--accent);
    animation: bounce 1.4s infinite;
  }
  .scroll-arrows span:nth-child(2) { animation-delay: 0.15s; opacity: 0.7; }
  .scroll-arrows span:nth-child(3) { animation-delay: 0.3s;  opacity: 0.4; }

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

  /* ── Content wrapper ── */
  .content {
    position: relative; z-index: 1;
    max-width: 860px;
    margin: 0 auto;
    padding: 0 1.5rem 5rem;
  }

  /* ── Parable ── */
  .parable-wrap {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
    animation: fadeUp 0.7s 0.4s ease both;
    transition: background 0.3s, border-color 0.3s;
  }

  .parable-wrap::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent3));
    border-radius: 16px 16px 0 0;
  }

  .parable-wrap::after {
    content: '"';
    position: absolute;
    top: -0.5rem; right: 1.5rem;
    font-size: 8rem;
    font-family: 'Syne', sans-serif;
    color: rgba(0,212,255,0.05);
    line-height: 1;
    pointer-events: none;
  }

  [data-theme="light"] .parable-wrap::after { color: rgba(0,120,168,0.06); }

  .section-label {
    font-size: 0.62rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  .section-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(0,212,255,0.3), transparent);
  }

  [data-theme="light"] .section-label::after {
    background: linear-gradient(90deg, rgba(0,120,168,0.3), transparent);
  }

  .parable-wrap h3 {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 1.3rem;
    margin-bottom: 1.25rem;
    color: var(--text);
  }

  .parable-text {
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 2;
  }

  .parable-text p { margin-bottom: 0.75rem; }
  .parable-text p:last-child { margin-bottom: 0; }

  .parable-text .highlight {
    color: var(--accent2);
    font-weight: 700;
  }

  .three-questions {
    margin: 1.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
  }

  .question-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(0,212,255,0.05);
    border: 1px solid rgba(0,212,255,0.15);
    border-radius: 8px;
    padding: 0.6rem 1rem;
    font-size: 0.75rem;
    color: var(--text);
    transition: background 0.3s;
  }

  [data-theme="light"] .question-item {
    background: rgba(0,120,168,0.05);
    border-color: rgba(0,120,168,0.15);
  }

  .question-item .q-num {
    width: 24px; height: 24px;
    background: rgba(0,212,255,0.1);
    border: 1px solid rgba(0,212,255,0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    color: var(--accent);
    flex-shrink: 0;
  }

  [data-theme="light"] .question-item .q-num {
    background: rgba(0,120,168,0.1);
    border-color: rgba(0,120,168,0.3);
  }

  .silence-box {
    margin-top: 1.25rem;
    background: rgba(255,107,53,0.07);
    border: 1px solid rgba(255,107,53,0.2);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 0.75rem;
    color: var(--accent2);
    font-weight: 700;
    letter-spacing: 0.05em;
    text-align: center;
  }

  /* ── Timeline ── */
  .timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .timeline-item {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 0 1.5rem;
    animation: fadeUp 0.7s ease both;
  }

  .timeline-item:nth-child(1) { animation-delay: 0.5s; }
  .timeline-item:nth-child(2) { animation-delay: 0.65s; }
  .timeline-item:nth-child(3) { animation-delay: 0.8s; }

  .timeline-spine {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .timeline-dot {
    width: 48px; height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
  }

  .dot-1 { background: rgba(255,107,53,0.12); border: 1.5px solid rgba(255,107,53,0.35); box-shadow: var(--glow2); }
  .dot-2 { background: rgba(0,212,255,0.10);  border: 1.5px solid rgba(0,212,255,0.3);   box-shadow: var(--glow); }
  .dot-3 { background: rgba(124,58,237,0.12); border: 1.5px solid rgba(124,58,237,0.35); box-shadow: var(--glow3); }

  .timeline-line {
    flex: 1;
    width: 1.5px;
    background: linear-gradient(to bottom, rgba(0,212,255,0.2), rgba(124,58,237,0.1));
    margin: 0.25rem 0;
    min-height: 2rem;
  }

  .timeline-body {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.75rem;
    margin-bottom: 1.5rem;
    transition: border-color 0.25s, box-shadow 0.25s, background 0.3s;
  }

  .timeline-body:hover { border-color: var(--accent); box-shadow: var(--glow), 0 8px 30px rgba(0,0,0,0.15); }
  .timeline-item:nth-child(3) .timeline-body:hover { border-color: var(--accent3); box-shadow: var(--glow3); }

  .chapter-tag {
    display: inline-block;
    font-size: 0.6rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 0.2rem 0.55rem;
    border-radius: 4px;
    margin-bottom: 0.75rem;
  }

  .tag-pain    { background: rgba(255,107,53,0.1);  color: var(--accent2); border: 1px solid rgba(255,107,53,0.2); }
  .tag-rebuild { background: rgba(0,212,255,0.1);   color: var(--accent);  border: 1px solid rgba(0,212,255,0.2); }
  .tag-eveil   { background: rgba(124,58,237,0.1);  color: #a78bfa;        border: 1px solid rgba(124,58,237,0.2); }

  [data-theme="light"] .tag-eveil { color: var(--accent3); }

  .timeline-body h3 {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
    color: var(--text);
  }

  .timeline-body h3 span {
    color: var(--muted);
    font-weight: 400;
    font-size: 0.9rem;
  }

  .timeline-body p {
    color: var(--muted);
    font-size: 0.75rem;
    line-height: 2;
    margin-bottom: 0.75rem;
  }

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

  .highlight-quote {
    margin: 1rem 0;
    padding: 0.75rem 1rem;
    border-left: 3px solid var(--accent2);
    background: rgba(255,107,53,0.05);
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: var(--text);
    font-size: 0.78rem;
  }

  .item-2 .highlight-quote { border-color: var(--accent);  background: rgba(0,212,255,0.05); }
  .item-3 .highlight-quote { border-color: var(--accent3); background: rgba(124,58,237,0.05); }

  .vision-bullets {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin: 0.75rem 0;
  }

  .vision-bullet {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.74rem;
    color: var(--muted);
  }

  .vision-bullet::before {
    content: '→';
    color: var(--accent3);
    flex-shrink: 0;
  }

  /* ── CTA ── */
  .cta-wrap {
    margin-top: 3rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    animation: fadeUp 0.7s 0.9s ease both;
    transition: background 0.3s, border-color 0.3s;
  }

  .cta-wrap::before {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent3), var(--accent2));
    border-radius: 0 0 16px 16px;
  }

  .cta-wrap h3 {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text);
  }

  .cta-wrap p {
    color: var(--muted);
    font-size: 0.76rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
  }

  .cta-buttons {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
  }

  /* ── Screenshot reveal ── */
  .screenshot-section {
    position: relative; z-index: 1;
    max-width: 460px;
    margin: 0 auto 3rem;
    padding: 0 1.5rem;
  }

  .screenshot-frame {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--card);
    box-shadow: 0 0 60px rgba(0,212,255,0.08), 0 20px 60px rgba(0,0,0,0.3);
    animation: fadeUp 5.7s 0.35s ease both;
    transition: background 0.3s, border-color 0.3s;
  }

  .screenshot-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    transition: background 0.3s;
  }

  .bar-dot { width: 10px; height: 10px; border-radius: 50%; }
  .bar-dot:nth-child(1) { background: #ff5f57; }
  .bar-dot:nth-child(2) { background: #febc2e; }
  .bar-dot:nth-child(3) { background: #28c840; }

  .bar-url {
    flex: 1;
    background: rgba(0,212,255,0.05);
    border: 1px solid rgba(0,212,255,0.15);
    border-radius: 4px;
    padding: 0.2rem 0.6rem;
    font-size: 0.62rem;
    color: var(--muted);
    letter-spacing: 0.05em;
    margin-left: 0.5rem;
  }

  [data-theme="light"] .bar-url {
    background: rgba(0,120,168,0.05);
    border-color: rgba(0,120,168,0.15);
  }

  .screenshot-img-wrap { position: relative; overflow: hidden; line-height: 0; }

  .screenshot-img-wrap img {
    width: 100%;
    display: block;
    filter: brightness(0.85) contrast(1.05);
    transition: filter 1.4s;
  }

  [data-theme="light"] .screenshot-img-wrap img { filter: brightness(0.95) contrast(1.02); }

  .screenshot-frame:hover .screenshot-img-wrap img { filter: brightness(1) contrast(1); }

  .scan-line {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    box-shadow: 0 0 12px var(--accent), 0 0 24px rgba(0,212,255,0.4);
    animation: scanReveal 5.2s 3.6s cubic-bezier(0.4,0,0.2,1) both;
    z-index: 3;
  }

  .scan-mask {
    position: absolute;
    top: 0; left: 0; right: 0;
    background: var(--bg);
    animation: maskLift 2.2s 0.6s cubic-bezier(0.4,0,0.2,1) both;
    z-index: 2;
  }

  .scan-overlay {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(0,212,255,0.015) 2px,
      rgba(0,212,255,0.015) 4px
    );
    pointer-events: none;
    z-index: 1;
    animation: fadeOut 3s 2.8s ease both;
  }

  @keyframes scanReveal {
    0%   { top: 0%;   opacity: 1; }
    90%  { top: 100%; opacity: 1; }
    100% { top: 100%; opacity: 0; }
  }

  @keyframes maskLift {
    0%   { height: 100%; }
    100% { height: 0%; }
  }

  @keyframes fadeOut {
    from { opacity: 1; }
    to   { opacity: 0; }
  }

  .screenshot-caption {
    text-align: center;
    margin-top: 0.75rem;
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    opacity: 0;
    animation: fadeUp 0.5s 2.6s ease both;
  }

  .screenshot-caption span { color: var(--accent); }

  /* ── Footer spécifique ── */
  footer a:hover { text-decoration: underline; }

  /* ── Responsive ── */
  @media (max-width: 600px) {

    /* ── Hero ── */
    .hero { padding: 2rem 1rem 1.5rem; }

    .hero h2 {
      font-size: clamp(1.5rem, 6vw, 2.4rem);
      letter-spacing: -0.01em;
      word-break: break-word;
      overflow-wrap: break-word;
    }

    .hero-sub { font-size: 0.72rem; }

    .hero-label {
      font-size: 0.58rem;
      letter-spacing: 0.1em;
      white-space: normal;
      word-break: break-word;
    }

    /* ── Back btn ── */
    .back-btn {
      font-size: 0.65rem;
      letter-spacing: 0.04em;
      padding: 0.4rem 0.75rem;
    }

    /* ── Screenshot ── */
    .screenshot-section { padding: 0 0.75rem; }

    /* ── Parable ── */
    .parable-wrap { padding: 1.25rem 1rem; }
    .parable-wrap::after { font-size: 4rem; }
    .parable-wrap h3 { font-size: 1.1rem; word-break: break-word; }

    .parable-text { font-size: 0.73rem; line-height: 1.85; }

    .section-label {
      font-size: 0.55rem;
      letter-spacing: 0.12em;
      word-break: break-word;
      overflow-wrap: break-word;
    }

    .question-item { font-size: 0.7rem; padding: 0.5rem 0.75rem; }

    .silence-box { font-size: 0.7rem; padding: 0.6rem 0.75rem; }

    /* ── Timeline ── */
    .timeline-item { grid-template-columns: 32px 1fr; gap: 0 0.75rem; }
    .timeline-dot  { width: 32px; height: 32px; font-size: 0.9rem; }

    .timeline-body { padding: 1.1rem; }

    .timeline-body h3 {
      font-size: 1rem;
      word-break: break-word;
      overflow-wrap: break-word;
    }

    .timeline-body h3 span { font-size: 0.82rem; }
    .timeline-body p { font-size: 0.7rem; line-height: 1.8; }

    .chapter-tag { font-size: 0.55rem; letter-spacing: 0.1em; }

    .highlight-quote { font-size: 0.72rem; padding: 0.6rem 0.75rem; }

    .vision-bullet { font-size: 0.7rem; }

    /* ── CTA ── */
    .cta-wrap { padding: 1.25rem 1rem 1.5rem; }
    .cta-wrap h3 { font-size: 1rem; word-break: break-word; }
    .cta-wrap p  { font-size: 0.7rem; }
    .cta-buttons { flex-direction: column; align-items: stretch; }
    .cta-buttons .btn { text-align: center; font-size: 0.75rem; }

    /* ── Content wrapper ── */
    .content { padding: 0 0.75rem 4rem; }
  }


/* ══ Styles extraits des attributs inline ══ */
.inl-div-001 { background: transparent; }
.inl-strong-002 { color:var(--accent3); }
.inl-p-003 { margin-top:0.5rem; }
