/* ===================================================================
   yapping.fr — direction visuelle v2
   Palette : noir studio + cyan/magenta (duoton TikTok)
   Signature : mockup "vidéo verticale" en hero + ticker animé
   =================================================================== */

:root {
  --bg: #050506;
  --bg-elevated: #0e0e12;
  --panel: #111116;
  --cyan: #25f4ee;
  --pink: #fe2c55;
  --white: #fafafa;
  --muted: #9a9aa5;
  --line: rgba(255, 255, 255, 0.09);
  --gradient: linear-gradient(90deg, var(--cyan), var(--pink));
  --font-display: "Unbounded", "Poppins", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", monospace;
}

* { box-sizing: border-box; }

body {
  background-color: var(--bg);
  color: var(--white);
  font-family: var(--font-body);
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

/* L'article est placé en premier dans le code source (pour les moteurs de
   recherche) mais doit rester affiché visuellement à sa place d'origine,
   juste avant le footer. */
#article { order: 50; }
/* footer.site-footer : order défini dans la règle complète plus bas */

.heading, .article h1, .article h2, .article h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.08;
}

a { color: var(--cyan); text-decoration: none; }
a:hover { color: var(--pink); }

.mono { font-family: var(--font-mono); letter-spacing: 0.02em; }
.text-muted-yapping { color: var(--muted) !important; }

/* Ticker animé (bandeau de vente) */
.ticker-link { display: block; text-decoration: none; }
.top-bar-sticky { position: sticky; top: 0; z-index: 1040; }
.ticker { background: var(--gradient); display: flex; align-items: center; justify-content: center; height: 42px; cursor: pointer; }
.ticker__item { display: inline-flex; align-items: center; color: #050506; font-family: var(--font-mono); font-weight: 700; font-size: 0.85rem; white-space: nowrap; }
.ticker__item i { margin-right: 0.5rem; }


/* Navigation */
.navbar-yapping { background-color: rgba(5, 5, 6, 0.82); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.navbar-yapping .navbar-brand { display: inline-flex; align-items: center; }
.navbar-logo { height: 32px; width: auto; }
.navbar-yapping .nav-link { color: var(--muted); font-weight: 500; font-size: 0.92rem; }
.navbar-yapping .nav-link:hover { color: var(--white); }
.navbar-toggler {
  border-color: rgba(255, 255, 255, 0.35);
}
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 0.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
.btn-yapping { background: var(--gradient); border: none; color: #050506; font-weight: 700; padding: 0.65rem 1.5rem; border-radius: 2rem; font-size: 0.92rem; transition: transform 0.15s ease, box-shadow 0.15s ease; display: inline-flex; align-items: center; }
.btn-yapping:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(254, 44, 85, 0.35); color: #050506; }
.btn-outline-yapping { border: 1.5px solid var(--line); color: var(--white); font-weight: 600; border-radius: 2rem; padding: 0.6rem 1.4rem; font-size: 0.92rem; display: inline-flex; align-items: center; }
.btn-outline-yapping:hover { border-color: var(--cyan); color: var(--cyan); }

/* Eyebrow label + live dot */
.eyebrow { display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); border-radius: 2rem; padding: 0.4rem 0.9rem 0.4rem 0.7rem; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 0 0 rgba(254, 44, 85, 0.6); animation: pulse 1.8s infinite; flex-shrink: 0; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(254, 44, 85, 0.55); } 70% { box-shadow: 0 0 0 7px rgba(254, 44, 85, 0); } 100% { box-shadow: 0 0 0 0 rgba(254, 44, 85, 0); } }
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } }

/* Hero */
.hero { padding: 4.5rem 0 3rem; position: relative; }
.hero::before { content: ""; position: absolute; top: -10%; right: 5%; width: 420px; height: 420px; background: radial-gradient(circle, rgba(37, 244, 238, 0.14), transparent 70%); z-index: 0; pointer-events: none; }
.hero-title { font-size: clamp(2.4rem, 5vw, 3.75rem); margin-bottom: 1.25rem; }
.hero-title .grad { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-stats { display: flex; gap: 2rem; margin-top: 2.25rem; flex-wrap: wrap; }
.hero-stats .stat-value { font-family: var(--font-mono); font-size: 1.15rem; font-weight: 700; color: var(--white); }
.hero-stats .stat-label { font-size: 0.78rem; color: var(--muted); }

/* Mockup vidéo verticale (élément signature) */
.phone-mock { width: 260px; max-width: 100%; margin: 0 auto; aspect-ratio: 9 / 17.5; background: linear-gradient(200deg, #1a1a22, #050506 65%); border: 1px solid var(--line); border-radius: 2.2rem; padding: 0.5rem; position: relative; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.7); }
.phone-mock__screen { width: 100%; height: 100%; border-radius: 1.7rem; background: linear-gradient(150deg, #1c1c2a 0%, #0a0a0e 55%, #1a0f16 100%); position: relative; overflow: hidden; display: flex; align-items: flex-end; }
.phone-mock__screen::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(255,255,255,0.025) 0 2px, transparent 2px 4px); opacity: 0.5; }
.phone-mock__notch { position: absolute; top: 0.55rem; left: 50%; transform: translateX(-50%); width: 34%; height: 20px; background: #050506; border-radius: 1rem; z-index: 3; }
.phone-mock__caption { position: relative; z-index: 2; padding: 0 0.9rem 0.9rem; width: 100%; }
.phone-mock__handle { font-family: var(--font-mono); font-size: 0.72rem; font-weight: 700; color: var(--white); display: flex; align-items: center; gap: 0.4rem; margin-bottom: 0.35rem; }
.phone-mock__handle .dot { width: 22px; height: 22px; border-radius: 50%; background: var(--gradient); }
.phone-mock__text { font-size: 0.72rem; color: #e6e6ea; line-height: 1.35; }
.phone-mock__sidebar { position: absolute; right: 0.6rem; bottom: 3.5rem; z-index: 2; display: flex; flex-direction: column; gap: 0.85rem; align-items: center; }
.phone-mock__sidebar .icon { width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; font-size: 0.85rem; color: var(--white); }
.phone-mock__sidebar .count { font-family: var(--font-mono); font-size: 0.62rem; color: var(--muted); margin-top: -0.4rem; }
.phone-mock__badge { position: absolute; top: 2.2rem; left: 0.9rem; z-index: 2; font-family: var(--font-mono); font-size: 0.64rem; color: var(--white); background: rgba(0,0,0,0.45); border: 1px solid rgba(255,255,255,0.15); border-radius: 1rem; padding: 0.25rem 0.65rem; display: inline-flex; align-items: center; gap: 0.35rem; }

/* Sections génériques */
.section { padding: 5.5rem 0; position: relative; }
.section-alt { background-color: var(--bg-elevated); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-kicker { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--pink); margin-bottom: 0.75rem; display: block; }

.card-yapping { background-color: var(--panel); border: 1px solid var(--line); border-radius: 1.1rem; transition: border-color 0.2s ease, transform 0.2s ease; color: var(--white); }
.card-yapping:hover { border-color: rgba(37, 244, 238, 0.35); transform: translateY(-3px); }
.feature-index { font-family: var(--font-mono); color: var(--muted); font-size: 0.85rem; border: 1px solid var(--line); border-radius: 50%; width: 2.4rem; height: 2.4rem; display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; }

/* Bloc vidéo (chrome de navigateur) */
.browser-frame { border: 1px solid var(--line); border-radius: 1rem; overflow: hidden; background: var(--panel); box-shadow: 0 30px 60px -30px rgba(0,0,0,0.8); }
.browser-frame__bar { display: flex; align-items: center; gap: 0.9rem; padding: 0.7rem 1rem; background: #0b0b0f; border-bottom: 1px solid var(--line); }
.browser-frame__dots { display: flex; gap: 0.35rem; }
.browser-frame__dots span { width: 9px; height: 9px; border-radius: 50%; background: #3a3a44; }
.browser-frame__url { font-family: var(--font-mono); font-size: 0.72rem; color: var(--muted); background: #14141a; border-radius: 0.5rem; padding: 0.25rem 0.75rem; flex: 1; max-width: 320px; }
.post-card { background: var(--panel); border: 1px solid var(--line); border-top: none; border-radius: 0 0 1rem 1rem; padding: 1.1rem 1.25rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.post-card__avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--gradient); flex-shrink: 0; }
.post-card__engagement { display: flex; gap: 1.1rem; font-family: var(--font-mono); font-size: 0.78rem; color: var(--muted); }
.post-card__engagement i { color: var(--pink); margin-right: 0.3rem; }

/* Citation Oussama Ammar (post card) */
.quote-card { background: var(--panel); border: 1px solid var(--line); border-radius: 1.25rem; padding: 2rem; }
.quote-card__head { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 1.25rem; }
.quote-card__avatar { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, #2a2a34, #0e0e12); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; font-size: 0.95rem; }
.quote-card__name { font-weight: 700; font-size: 0.95rem; }
.quote-card__handle { font-family: var(--font-mono); font-size: 0.75rem; color: var(--muted); }
blockquote.quote-oussama { border-left: 3px solid var(--pink); padding-left: 1.1rem; font-size: 1.15rem; font-style: italic; margin: 1.25rem 0; }
.source-chip { display: inline-flex; align-items: center; gap: 0.4rem; font-family: var(--font-mono); font-size: 0.75rem; border: 1px solid var(--line); border-radius: 2rem; padding: 0.35rem 0.85rem; color: var(--muted); }
.source-chip a { color: var(--cyan); }

/* Listing du domaine (style "fiche produit") */
.listing-card { background: linear-gradient(160deg, var(--panel) 0%, #0b0b10 100%); border: 1px solid var(--line); border-radius: 1.5rem; padding: 2.5rem; position: relative; overflow: hidden; }
.listing-card::after { content: ""; position: absolute; bottom: -60px; right: -60px; width: 220px; height: 220px; background: radial-gradient(circle, rgba(254, 44, 85, 0.16), transparent 70%); }
.listing-domain { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; }
.listing-tags { display: flex; gap: 0.6rem; flex-wrap: wrap; margin: 1.25rem 0 1.75rem; }
.listing-tag { font-family: var(--font-mono); font-size: 0.72rem; border: 1px solid var(--line); border-radius: 2rem; padding: 0.3rem 0.8rem; color: var(--muted); }

footer.site-footer { background-color: var(--bg-elevated); border-top: 1px solid var(--line); color: var(--muted); padding: 3rem 0; order: 60; }
.footer-links a { color: var(--muted); font-size: 0.9rem; }
.footer-links a:hover { color: var(--cyan); }



/* -------------------------------------------------------------- */
/* Article éditorial — seul endroit avec de vrais h1/h2/h3          */
/* -------------------------------------------------------------- */
.article { max-width: 760px; margin: 0 auto; }
.article h1 {
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  margin-bottom: 1.5rem;
}
.article h2 {
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  margin: 3rem 0 1.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.article h2:first-of-type { border-top: none; padding-top: 0; margin-top: 1.5rem; }
.article h3 {
  font-size: 1.15rem;
  margin: 2rem 0 1rem;
}
.article p {
  color: #d8d8dc;
  line-height: 1.75;
  margin-bottom: 1.15rem;
}
.article strong { color: var(--white); font-weight: 700; }
.article a { text-decoration: underline; text-underline-offset: 2px; }
.article ul, .article ol {
  color: #d8d8dc;
  line-height: 1.75;
  margin-bottom: 1.25rem;
  padding-left: 1.4rem;
}
.article li { margin-bottom: 0.4rem; }
.article img {
  width: 100%;
  border-radius: 1rem;
  border: 1px solid var(--line);
  margin: 1.5rem 0;
}
.article table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.92rem;
}
.article table th, .article table td {
  border: 1px solid var(--line);
  padding: 0.7rem 0.9rem;
  text-align: left;
}
.article table th {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  background: var(--bg-elevated);
}
.article table td { color: #d8d8dc; }
.article-toc {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1.5rem 1.75rem;
  margin: 2rem 0 3rem;
}
.article-toc div.heading {
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}
.article-toc ol {
  margin-bottom: 0;
  color: var(--muted);
}
.article-toc a { color: var(--muted); }
.article-toc a:hover { color: var(--cyan); }

@media (prefers-reduced-motion: reduce) {
  .card-yapping { transition: none; }
  .btn-yapping, .btn-outline-yapping { transition: none; }
}

/* Marge latérale confortable sur mobile (le contenu ne doit jamais toucher les bords) */
@media (max-width: 576px) {
  .container {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
}
