/*
Theme Name: Baloche
Author: Machin Machine
Author URI: https://machinmachine.fr
Description: Baloche Theme brings your site to life :)
Version: 0.1
Text Domain: baloche
*/

/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
1.0 Home
2.0 Fiche Tune
3.0 Page Search
4.0 Archives
  4.1 Page Styles

/*--------------------------------------------------------------
1.0 Home
--------------------------------------------------------------*/
.hero h1 {
  font-family: var(--bal-font-body);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

/* ── STAFF ANIMATION (signature) ── */
 .staff-wrap {
   width: 100%; max-width: 600px;
   margin: 0 auto 2.5rem;
   position: relative; height: 60px;
 }
 .staff-svg { width: 100%; height: 60px; }
 .staff-line { stroke: var(--bal-line); stroke-width: 1; }
 .note {
   fill: var(--bal-orange);
   opacity: 0;
   animation: noteIn 0.4s ease forwards;
 }
 .note:nth-child(1)  { animation-delay: 0.3s; }
 .note:nth-child(2)  { animation-delay: 0.55s; }
 .note:nth-child(3)  { animation-delay: 0.8s; }
 .note:nth-child(4)  { animation-delay: 1.05s; }
 .note:nth-child(5)  { animation-delay: 1.3s; }
 .note:nth-child(6)  { animation-delay: 1.55s; }
 .note:nth-child(7)  { animation-delay: 1.8s; }
 .note:nth-child(8)  { animation-delay: 2.05s; }
 @keyframes noteIn {
   from { opacity: 0; transform: translateY(-8px); }
   to   { opacity: 1; transform: translateY(0); }
 }

 /* ─────────────────────────────
   SEARCH BALOCHE
──────────────────────────── */
.search-section {
  max-width: 860px;
  margin: 0 auto 1.5rem;
  padding: 0 1.5rem;
}

/* wrapper principal */
.search-bar {
  display: flex;
  align-items: stretch;

  background: var(--bal-white);
  border: 2px solid var(--bal-ink);
  border-radius: 6px;
  overflow: hidden;

  /* ton style signature */
  box-shadow: 4px 4px 0 var(--bal-ink);

  transition: box-shadow 0.2s ease,
              border-color 0.2s ease,
              transform 0.15s ease;
}

/* focus global */
.search-bar:focus-within {
  border-color: var(--bal-orange);
  box-shadow: 6px 6px 0 var(--bal-orange);
  transform: translate(-1px, -1px);
}

/* input bootstrap clean */
.search-bar input {
  flex: 1;

  border: none;
  outline: none;
  box-shadow: none !important;

  background: transparent;

  padding: 0.95rem 1.1rem;

  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  color: var(--bal-ink);
}

/* placeholder */
.search-bar input::placeholder {
  color: #A8A29E;
  font-style: italic;
}

/* bouton */
.search-bar button {
  background: var(--bal-ink);
  color: #fff;

  border: none;
  border-radius: 0;

  padding: 0 1.4rem;

  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;

  cursor: pointer;

  transition: background 0.2s ease;
}

/* hover bouton */
.search-bar button:hover {
  background: var(--bal-orange);
}

/* clic */
.search-bar button:active {
  transform: translateY(1px);
}

/* Bootstrap override léger */
.search-bar .form-control:focus {
  box-shadow: none;
}

 .stat-label {
  color: #A8A29E !important;
}

.filter-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--bal-ink-soft);
  margin-right: 0.3rem;
}

.tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border: 1px solid var(--bal-line);
  border-radius: 20px;
  font-size: 0.8rem;
  color: var(--ink-soft);
  cursor: pointer;
  background: var(--white);
  transition: all 0.15s;
  user-select: none;
}
.tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border: 1px solid var(--bal-line);
  border-radius: 20px;
  font-size: 0.8rem;
  color: var(--bal-ink-soft);
  cursor: pointer;
  background: var(--bal-white);
  transition: all 0.15s;
  user-select: none;
}
.tag:hover, .tag.active {
  background: var(--bal-ink);
  color: var(--bal-cream);
  border-color: var(--bal-ink);
}
.tag.active { background: var(--bal-orange); border-color: var(--bal-orange); }

.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--bal-orange);
  display: block;
}

/*--------------------------------------------------------------
2.0 Fiche Tune
--------------------------------------------------------------*/
/* ── HERO ─────────────────────────────────────────── */
.tune-alts {
  font-family: var(--bal-font-serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--bal-ink-soft);
  margin-bottom: 1.2rem;
}
.tune-alts strong {
  font-style: normal;
  font-size: 0.75rem;
  font-family: var(--bal-font-body);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--bal-ink-soft);
  margin-right: 0.3rem;
}

.divider {
  max-width: 1000px;
  margin: 1.8rem auto 0;
  padding: 0 2rem;
  border: none;
  border-top: 1px solid;
}

/* ── SOURCES ──────────────────────────────────────── */
.source-site {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.15rem;
}
.source-meta {
  font-size: 0.75rem;
  color: var(--bal-ink-soft);
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  align-items: center;
}

/* ── MORCEAUX LIÉS ────────────────────────────────── */
.related-title { font-size: 0.9rem; font-weight: 600; color: var(--bal-ink); }
.related-style { font-size: 0.75rem; color: var(--bal-ink-soft); }
.related-arrow { color: var(--bal-line); font-size: 1rem; transition: color 0.15s; }
.bal-card--hover:hover .related-arrow { color: var(--bal-orange); }

/* ── SIDEBAR MÉTADONNÉES ──────────────────────────── */
.meta-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--bal-line);
  gap: 1rem;
}
.meta-row:last-child { border-bottom: none; padding-bottom: 0; }
.meta-key {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--bal-ink-soft);
  white-space: nowrap;
}
.meta-val { font-size: 0.88rem; color: var(--bal-ink); text-align: right; }
.meta-val a { color: var(--bal-orange); text-decoration: none; }
.meta-val a:hover { text-decoration: underline; }

/* ── SEO SECTIONS ─────────────────────────────────── */
.seo-section h2 {
  font-family: var(--bal-font-display);
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
  font-weight: 700;
}
.seo-section p {
  font-family: var(--bal-font-serif);
  font-size: 1rem;
  color: var(--bal-ink-soft);
  line-height: 1.75;
  margin-bottom: 0.6rem;
}

/* ── BOUTON PARTAGER ──────────────────────────────── */
.btn-share {
  flex: 1;
  padding: 0.5rem;
  border: 1px solid var(--bal-line);
  background-color: var(--bal-white);
  border-radius: 4px;
  font-size: 0.78rem;
  cursor: pointer;
  color: var(--bal-ink-soft);
  transition: border-color 0.15s;
}
.btn-share:hover { border-color: var(--bal-orange); }

/* ── RESPONSIVE ───────────────────────────────────── */
@media (max-width: 768px) {
  .tune-sidebar { order: -1; }
}

/*--------------------------------------------------------------
3.0 Page Search
--------------------------------------------------------------*/
.results-header {
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.results-count strong {
  color: var(--ink);
}

.sort-select {
  font-size: 0.82rem;
  border: 1px solid var(--line);
  padding: 0.3rem 0.6rem;
  background: var(--white);
}

/*--------------------------------------------------------------
4.0 Archives
--------------------------------------------------------------*/
/* ==========================================
   Pagination Baloche
========================================== */

.navigation.pagination {
    margin-top: 3rem;
}

.navigation.pagination .nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: .5rem;
}

.navigation.pagination a,
.navigation.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 42px;
    height: 42px;
    padding: 0 14px;

    background: var(--bal-white);
    border: 1px solid var(--bal-line);
    border-radius: 999px;

    color: var(--bal-ink);
    text-decoration: none;

    font-size: .95rem;
    font-weight: 600;

    transition: all .2s ease;
}

/* Hover */

.navigation.pagination a:hover {
    background: var(--bal-green);
    border-color: var(--bal-green);
    color: white;
    transform: translateY(-1px);
}

/* Page active */

.navigation.pagination .current {
    background: var(--bal-green);
    border-color: var(--bal-green);
    color: white;
}

/* Ellipsis */

.navigation.pagination .dots {
    border: none;
    background: transparent;
    min-width: auto;
}

/* Prev / Next */

.navigation.pagination .prev,
.navigation.pagination .next {
    padding: 0 18px;
}

/*--------------------------------------------------------------
4.1 Page Styles
--------------------------------------------------------------*/

.style-card{
    position:relative;
    display:block;

    height:100%;

    padding:1.5rem;

    background:var(--bal-white);
    border:1px solid var(--bal-line);
    border-radius:5px;

    text-decoration:none;

    transition:
        transform .2s ease,
        box-shadow .2s ease,
        border-color .2s ease;
}

.style-card:hover{
    transform:translateY(-3px);

    border-color:var(--bal-orange);

    box-shadow:
        0 8px 24px rgba(0,0,0,.08);

    text-decoration:none;
}

.style-card__title{
    font-family:var(--bal-font-display);
    font-size:1.5rem;
    color:var(--bal-ink);
    margin:0 0 .75rem;
}

.style-card__count{
    color:var(--bal-ink-soft);
    font-size:.9rem;
}

.style-card__arrow{
    position:absolute;
    right:1.5rem;
    bottom:1.25rem;

    color:var(--bal-green);
    font-size:1.25rem;
    font-weight:700;

    transition:transform .2s ease;
}

.style-card:hover .style-card__arrow{
    transform:translateX(4px);
}
