/* cafe.css — ChoKInfO */

/* ═══════════════════════════════════════════════════════
   Styles spécifiques à cafe.html
   ═══════════════════════════════════════════════════════ */

  .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.05em;
    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); }

  /* ── Page wrapper ── */
  .page-wrap {
    position: relative; z-index: 1;
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem 1rem 5rem; /* padding latéral réduit */
  }

  /* ── Hero ── */
  .hero {
    text-align: center;
    margin-bottom: 2rem;
    animation: fadeUp 0.5s ease both;
  }

  .hero-emoji {
    font-size: clamp(2.2rem, 8vw, 3.5rem); /* s'adapte à l'écran */
    display: block;
    margin-bottom: 0.75rem;
    animation: fadeUp 0.4s ease both;
  }

  .hero h2 {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: clamp(1.5rem, 5vw, 2.8rem);
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: var(--text);
    margin-bottom: 0.75rem;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: break-word;
    animation: fadeUp 0.5s 0.05s ease both;
  }

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

  .hero-sub {
    color: var(--muted);
    font-size: clamp(0.72rem, 2.5vw, 0.8rem);
    line-height: 1.9;
    animation: fadeUp 0.5s 0.1s ease both;
  }

  /* ── Carte principale ── */
  .cafe-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem 1.25rem 1.75rem; /* padding réduit pour mobile */
    margin-bottom: 1rem;
    position: relative;
    overflow: hidden;
    transition: background 0.3s, border-color 0.3s;
    animation: fadeUp 0.5s 0.15s ease both;
  }

  .cafe-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ffb347, var(--accent2));
    border-radius: 16px 16px 0 0;
  }

  /* ── Poème ── */
  .poem {
    text-align: center;
    margin: 0 auto 1.5rem;
    font-size: clamp(0.74rem, 2.5vw, 0.82rem);
    line-height: 2;
    color: var(--muted);
  }

  .poem strong { color: var(--text); font-weight: 700; }
  .poem .verse { display: block; margin-bottom: 0.1rem; }
  .poem .verse-gap { display: block; height: 0.7rem; }

  .poem .verse-highlight {
    display: inline-block;
    margin-top: 0.5rem;
    color: #ffb347;
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: clamp(0.78rem, 2.5vw, 0.88rem);
    letter-spacing: 0.03em;
  }

  /* ── Séparateur ── */
  .divider {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin: 1.25rem 0;
    font-size: 0.58rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--muted);
    overflow-wrap: break-word;
    word-break: break-word;
  }
  .divider::before, .divider::after {
    content: '';
    flex: 1;
    min-width: 10px;
    height: 1px;
    background: var(--border);
  }

  /* ── Promesses ── */
  .promises {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    margin-bottom: 1.5rem;
  }

  .promise-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.6rem 0.85rem;
    border-radius: 8px;
    background: rgba(255,179,71,0.05);
    border: 1px solid rgba(255,179,71,0.12);
    font-size: clamp(0.68rem, 2.2vw, 0.74rem);
    color: var(--muted);
    line-height: 1.6;
    transition: background 0.2s;
    overflow-wrap: break-word;
    word-break: break-word;
    min-width: 0;
  }
  .promise-item:hover { background: rgba(255,179,71,0.09); }
  [data-theme="light"] .promise-item { background: rgba(212,80,10,0.04); border-color: rgba(212,80,10,0.12); }
  [data-theme="light"] .promise-item:hover { background: rgba(212,80,10,0.08); }

  .promise-item span:last-child { flex: 1; min-width: 0; }

  .promise-icon {
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 0.05rem;
  }

  /* ── CTA bouton ── */
  .cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.9rem 1rem;
    background: linear-gradient(135deg, #ffb347, var(--accent2));
    color: #000;
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: clamp(0.85rem, 3vw, 1rem);
    letter-spacing: 0.02em;
    text-decoration: none;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: filter 0.2s, transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 20px rgba(255,107,53,0.25);
    text-align: center;
    overflow-wrap: break-word;
    word-break: break-word;
  }
  .cta-btn:hover {
    filter: brightness(1.08);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(255,107,53,0.35);
  }
  .cta-btn:active { transform: translateY(0); }

  .cta-note {
    text-align: center;
    margin-top: 0.65rem;
    font-size: 0.62rem;
    color: var(--muted);
    letter-spacing: 0.04em;
    overflow-wrap: break-word;
    word-break: break-word;
  }
  .cta-note a { color: var(--accent); text-decoration: none; }
  .cta-note a:hover { text-decoration: underline; }

  /* ── Petit mot ── */
  .petit-mot {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    font-size: clamp(0.7rem, 2.2vw, 0.75rem);
    color: var(--muted);
    line-height: 1.8;
    text-align: center;
    animation: fadeUp 0.5s 0.25s ease both;
    transition: background 0.3s;
    overflow-wrap: break-word;
    word-break: break-word;
  }
  .petit-mot strong { color: var(--text); }

  /* ── Spinner décoratif ── */
  .coffee-spin {
    display: flex;
    justify-content: center;
    margin: 1.25rem 0 0;
    animation: fadeUp 0.5s 0.3s ease both;
  }

  .spin-ring {
    width: 44px; height: 44px;
    border-radius: 50%;
    border: 2px solid rgba(255,179,71,0.15);
    border-top-color: #ffb347;
    animation: spin 2.5s linear infinite;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem;
  }

  @keyframes spin { to { transform: rotate(360deg); } }

  /* ══════════════════════════════════════════════
     RESPONSIVE MOBILE
     ══════════════════════════════════════════════ */
  @media (max-width: 480px) {
    .cafe-card { padding: 1.1rem 1rem 1.25rem; border-radius: 12px; }
    .poem { line-height: 1.85; }
    .divider { letter-spacing: 0.08em; font-size: 0.55rem; }
    .cta-btn { padding: 0.85rem 0.75rem; border-radius: 8px; }
    .hero-sub br { display: none; } /* supprime les <br> forcés sur petits écrans */
  }
