/* =========================================================================
   CLOWN ATTITUDE — Custom style (child of generatepress)
   Design: Organique Champignon Forêt (Antic Slab + Lora)
   Palette: orange #ff7b23 + cyan #109eb6 (concurrent sparadrap.org)
   ========================================================================= */

:root {
  --bb6-primary:   #ff7b23;
  --bb6-primary-d: #e36818;
  --bb6-accent:    #109eb6;
  --bb6-accent-d:  #0b8094;
  --bb6-text:      #3e454d;
  --bb6-text-soft: #6c757d;
  --bb6-bg:        #fff7f1;
  --bb6-surface:   #ffffff;
  --bb6-line:      #e3e3e3;
  --bb6-cream:     #fdeede;
  --bb6-shadow:    0 6px 24px rgba(62, 69, 77, .08);
  --bb6-shadow-lg: 0 14px 38px rgba(62, 69, 77, .14);
  --bb6-radius:    14px;
  --bb6-radius-sm: 8px;
  --bb6-radius-lg: 24px;
  --bb6-cont:      1180px;
  --bb6-font-h:    "Antic Slab", Georgia, serif;
  --bb6-font-b:    "Lora", Georgia, serif;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.bb6-body {
  margin: 0;
  background: var(--bb6-bg);
  color: var(--bb6-text);
  font-family: var(--bb6-font-b);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--bb6-accent-d); text-decoration: none; transition: color .2s; }
a:hover { color: var(--bb6-primary); }
h1, h2, h3, h4, h5 {
  font-family: var(--bb6-font-h);
  color: var(--bb6-text);
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: -.01em;
  margin: 0 0 .6em;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.25rem, 2.4vw, 1.55rem); }
p  { margin: 0 0 1rem; }
ul, ol { padding-left: 1.2rem; }

main, .bb6-main { padding-top: 0 !important; margin-top: 0 !important; }

.bb6-container { max-width: var(--bb6-cont); margin: 0 auto; padding: 0 1.4rem; }

/* ---------- Buttons ---------- */
.bb6-btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .75rem 1.4rem;
  font-family: var(--bb6-font-b);
  font-weight: 600; font-size: .98rem;
  border-radius: 999px;
  background: var(--bb6-cream); color: var(--bb6-text);
  border: 1.5px solid var(--bb6-line);
  text-decoration: none;
  transition: transform .2s, background .2s, box-shadow .2s;
  cursor: pointer;
}
.bb6-btn:hover { transform: translateY(-1px); background: #fff; box-shadow: var(--bb6-shadow); }
.bb6-btn--cta {
  background: var(--bb6-primary); color: #fff; border-color: var(--bb6-primary);
  box-shadow: 0 6px 18px rgba(255, 123, 35, .26);
  animation: bb6-cta-pulse 2.2s ease-in-out infinite;
}
.bb6-btn--cta:hover { background: var(--bb6-primary-d); color: #fff; }
.bb6-btn--ghost { background: transparent; border-color: var(--bb6-primary); color: var(--bb6-primary); }

/* ============ HEADER (logo-left-menu-right) ============ */
.bb6-header {
  background: var(--bb6-surface);
  border-bottom: 1px solid var(--bb6-line);
  position: sticky; top: 0; z-index: 100;
}
.bb6-header-inner {
  display: flex; align-items: center; gap: 1.5rem;
  padding: 0.9rem 1.4rem;
  max-width: var(--bb6-cont); margin: 0 auto;
  justify-content: flex-start;
}
.bb6-brand-link {
  display: flex; align-items: center; gap: .65rem;
  flex-shrink: 0;
}
.bb6-brand-logo { display: block; width: auto; background: #fff; }
.bb6-brand-name {
  font-family: var(--bb6-font-h);
  font-size: 1.55rem;
  text-transform: lowercase;
  letter-spacing: 0;
  color: #000;
  white-space: nowrap;
}

.bb6-nav-desktop { display: none; margin-left: auto; }
.bb6-nav-desktop-list,
.bb6-nav-list {
  display: flex; gap: 1.4rem;
  list-style: none; margin: 0; padding: 0;
  align-items: center;
}
.bb6-nav-desktop-list li > a,
.bb6-nav-list li > a {
  color: #000; text-decoration: none;
  font-family: var(--bb6-font-h); font-size: 1.02rem;
  padding: .5rem .15rem;
  border-bottom: 2px solid transparent;
  transition: border-color .2s, color .2s;
}
.bb6-nav-desktop-list li > a:hover,
.bb6-nav-list li > a:hover { color: #000; border-bottom-color: #000; }

/* Burger (mobile only) */
.bb6-burger {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 42px !important; height: 42px !important;
  min-width: 42px !important; min-height: 42px !important;
  padding: 8px !important;
  background: var(--bb6-surface) !important;
  border: 1.5px solid var(--bb6-line) !important;
  border-radius: 8px !important;
  color: #000 !important;
  cursor: pointer !important;
  z-index: 10000 !important;
  flex-shrink: 0 !important;
  position: relative !important;
  margin-left: auto;
}
.bb6-burger-bars, .bb6-burger > span {
  display: flex !important; flex-direction: column !important; gap: 4px !important;
  width: 24px !important; height: 16px !important;
}
.bb6-burger-bars::before, .bb6-burger-bars::after, .bb6-burger-bars > span {
  content: ""; display: block; height: 2.5px; width: 100%;
  background: currentColor; border-radius: 2px;
}

/* Mobile nav drawer — DEFAULT HIDDEN */
.bb6-nav-mobile { display: none; }
.bb6-nav-mobile.is-open {
  display: flex; flex-direction: column;
  position: fixed; top: 0; right: 0; bottom: 0;
  width: 86%; max-width: 380px;
  background: var(--bb6-surface);
  padding: 5rem 1.5rem 2rem;
  z-index: 9999; overflow-y: auto;
  box-shadow: -10px 0 30px rgba(0,0,0,0.18);
}
.bb6-nav-mobile-list { list-style: none; padding: 0; margin: 0; }
.bb6-nav-mobile-list li { border-bottom: 1px solid var(--bb6-line); }
.bb6-nav-mobile-list a {
  display: block; padding: 1rem .25rem;
  color: #000; text-decoration: none;
  font-family: var(--bb6-font-h); font-size: 1.1rem;
}
.bb6-nav-mobile-close {
  position: absolute; top: 1rem; right: 1rem;
  background: none; border: none; cursor: pointer;
  font-size: 1.6rem; color: #000; padding: .5rem;
}
.bb6-drawer-cta {
  display: block !important;
  margin: 2rem 0 1rem !important;
  padding: 1rem 1.5rem !important;
  text-align: center !important;
  background: var(--bb6-primary) !important;
  color: #fff !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  font-size: 1.05rem !important;
}

@media (min-width: 1024px) {
  .bb6-nav-desktop { display: flex; }
  .bb6-burger { display: none !important; }
  .bb6-drawer-cta { display: none !important; }
}
@media (max-width: 1023px) {
  .bb6-header-cta-desktop { display: none !important; }
  .bb6-nav-desktop { display: none; }
}

/* ============ HERO MANIFESTO ============ */
.bb6-hero {
  background: linear-gradient(135deg, var(--bb6-cream) 0%, var(--bb6-bg) 100%);
  padding: clamp(4rem, 9vw, 7rem) 0 clamp(3rem, 7vw, 5.5rem);
  border-bottom: 1px solid var(--bb6-line);
  position: relative; overflow: hidden;
}
.bb6-hero--manifesto .bb6-hero-inner {
  max-width: 880px; margin: 0 auto; padding: 0 1.4rem;
  text-align: left;
}
.bb6-hero-kicker {
  display: inline-block;
  font-family: var(--bb6-font-b); font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  font-size: .82rem; color: var(--bb6-accent-d);
  margin-bottom: 1.2rem;
  padding: .35rem .9rem; border: 1px solid var(--bb6-accent);
  border-radius: 999px; background: rgba(16, 158, 182, 0.08);
}
.bb6-hero-title {
  font-family: var(--bb6-font-h);
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--bb6-text);
  margin: 0 0 1.4rem;
}
.bb6-hero-title em {
  color: var(--bb6-primary); font-style: italic;
  background: linear-gradient(180deg, transparent 60%, rgba(255,123,35,.18) 60%);
  padding: 0 .1em;
}
.bb6-hero-sub {
  font-size: 1.18rem; line-height: 1.55;
  color: var(--bb6-text-soft);
  max-width: 720px; margin: 0 0 2rem;
}
.bb6-hero-ctas { display: flex; flex-wrap: wrap; gap: 1rem; }
.bb6-hero-decor {
  position: absolute; right: -80px; bottom: -80px;
  width: 360px; height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,123,35,.16) 0%, transparent 70%);
  pointer-events: none;
}

/* ============ EDITORIAL BLOC (after-hero) ============ */
.bb6-editorial-intro {
  background: var(--bb6-surface);
  padding: clamp(3rem, 6vw, 5rem) 0;
  border-bottom: 1px solid var(--bb6-line);
}
.bb6-editorial-intro h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.3rem);
  margin-bottom: 1.4rem; color: var(--bb6-text);
}
.bb6-editorial-intro h3 {
  font-size: 1.3rem; margin-top: 2rem; color: var(--bb6-primary);
}
.bb6-editorial-intro p {
  font-size: 1.04rem; line-height: 1.75;
  color: var(--bb6-text); max-width: 760px;
}
.bb6-editorial-intro a { color: var(--bb6-accent-d); border-bottom: 1px dotted; }
.bb6-editorial-line {
  margin: 2.5rem 0; padding: 1.4rem 1.6rem;
  background: var(--bb6-cream); border-radius: var(--bb6-radius);
  border-left: 4px solid var(--bb6-primary);
}
.bb6-editorial-line p { margin: 0; font-style: italic; color: var(--bb6-text); }

/* ============ CATEGORY SECTIONS (by-category mode) ============ */
.bb6-cat-section {
  padding: clamp(3rem, 5vw, 4.5rem) 0;
  border-bottom: 1px solid var(--bb6-line);
}
.bb6-cat-section:nth-child(even) { background: var(--bb6-surface); }
.bb6-cat-section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1rem; margin-bottom: 1.8rem; flex-wrap: wrap;
}
.bb6-cat-section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0; color: var(--bb6-text);
}
.bb6-cat-section-title a { color: inherit; }
.bb6-cat-section-title a:hover { color: var(--bb6-primary); }
.bb6-cat-section-more {
  color: var(--bb6-accent-d); font-weight: 600;
  font-size: .95rem; white-space: nowrap;
}
.bb6-cat-section-more::after { content: " →"; }
.bb6-cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.6rem;
}
.bb6-card {
  background: var(--bb6-surface);
  border-radius: var(--bb6-radius);
  overflow: hidden;
  border: 1px solid var(--bb6-line);
  box-shadow: var(--bb6-shadow);
  transition: transform .25s, box-shadow .25s;
  display: flex; flex-direction: column;
}
.bb6-card:hover { transform: translateY(-4px); box-shadow: var(--bb6-shadow-lg); }
.bb6-card-img {
  display: block; width: 100%; aspect-ratio: 16/9;
  object-fit: cover; background: var(--bb6-cream);
}
.bb6-card-body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; gap: .55rem; flex: 1; }
.bb6-card-title {
  font-family: var(--bb6-font-h); font-size: 1.18rem; line-height: 1.25;
  margin: 0; color: var(--bb6-text);
}
.bb6-card-title a { color: inherit; text-decoration: none; }
.bb6-card-title a:hover { color: var(--bb6-primary); }
.bb6-card-meta {
  font-size: .82rem; color: var(--bb6-text-soft);
  text-transform: uppercase; letter-spacing: .04em;
}
.bb6-cat-empty {
  padding: 1.4rem 1.6rem;
  background: var(--bb6-cream); border-radius: var(--bb6-radius);
  text-align: center;
}
.bb6-cat-empty a { color: var(--bb6-primary); font-weight: 600; }

/* ============ TOOL EMBED ON HOME ============ */
.bb6-tool-section {
  padding: clamp(3rem, 5vw, 4.5rem) 0;
  background: linear-gradient(180deg, var(--bb6-cream) 0%, var(--bb6-bg) 100%);
}
.bb6-tool-section-intro {
  max-width: 720px; margin: 0 auto 2rem; text-align: center;
}
.bb6-tool-section-intro h2 { margin-bottom: 1rem; }
.bb6-tool-section-intro p { color: var(--bb6-text-soft); }
.bb6-tool-section-body {
  max-width: 760px; margin: 0 auto;
  background: var(--bb6-surface);
  border-radius: var(--bb6-radius-lg);
  box-shadow: var(--bb6-shadow-lg);
  padding: 2rem 1.8rem;
}

/* ============ CATEGORY PAGE (single-bottom) ============ */
.bb6-cat-hero {
  position: relative; height: 320px; max-height: 350px;
  overflow: hidden; background: var(--bb6-cream);
}
.bb6-cat-hero-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 1;
}
.bb6-cat-hero .bb6-container {
  position: relative; z-index: 2; height: 100%;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-bottom: 1.8rem;
  background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,0.7) 100%);
}
.bb6-cat-hero h1 {
  color: #fff; margin: 0;
  text-shadow: 0 2px 14px rgba(0,0,0,0.6);
  font-size: clamp(2rem, 5vw, 3rem);
}
.bb6-cat-list { padding: 3rem 0; }
.bb6-cat-list .bb6-cat-grid { margin-bottom: 3rem; }
.bb6-cat-intro-bottom {
  padding: 3rem 0;
  border-top: 1px solid var(--bb6-line);
  background: var(--bb6-surface);
}
.bb6-cat-intro-bottom h2 { margin-bottom: 1.2rem; }
.bb6-cat-intro-bottom p { max-width: 760px; color: var(--bb6-text); }

/* ============ SINGLE POST ============ */
.bb6-article-meta {
  font-size: .85rem; color: var(--bb6-text-soft);
  text-transform: uppercase; letter-spacing: .05em;
  margin-bottom: 1rem;
}
.bb6-article-content { max-width: 760px; margin: 0 auto; padding: 2rem 1.4rem 3rem; }
.bb6-article-content h2 { margin-top: 2.2rem; }
.bb6-article-content blockquote {
  border-left: 4px solid var(--bb6-primary);
  padding: 1rem 1.4rem; background: var(--bb6-cream);
  margin: 1.6rem 0; font-style: italic;
  border-radius: 0 var(--bb6-radius-sm) var(--bb6-radius-sm) 0;
}

/* ============ TOOL PAGE ============ */
.bb6-tool-page { padding: 2.5rem 0 4rem; }
.bb6-tool-intro {
  max-width: 760px; margin: 0 auto 2.5rem;
  padding: 0 1.4rem;
}
.bb6-tool-body {
  max-width: 820px; margin: 0 auto; padding: 0 1.4rem;
}

/* ============ PAGES (about, contact) ============ */
.bb6-page { padding: 3rem 0 4rem; }
.bb6-page-header { text-align: center; margin-bottom: 2.5rem; }
.bb6-page-content { max-width: 760px; margin: 0 auto; padding: 0 1.4rem; }
.bb6-persona-photo {
  display: block; margin: 1.5rem auto 2rem;
  max-width: 260px; border-radius: 50%;
  box-shadow: var(--bb6-shadow-lg);
  border: 4px solid var(--bb6-surface);
}
.bb6-contact-form { margin-top: 2rem; }
.bb6-contact-form iframe { width: 100%; }

/* ============ FOOTER ============ */
.bb6-footer {
  background: #f6f1e8;
  color: #000;
  padding: 4rem 0 1.5rem;
  margin-top: 0;
  border-top: 1px solid #e6dcc9;
}
.bb6-footer a { color: #000; }
.bb6-footer a:hover { color: #000; text-decoration: underline; }
.bb6-footer-grid {
  display: grid; gap: 2.2rem;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  max-width: var(--bb6-cont); margin: 0 auto; padding: 0 1.4rem;
}
.bb6-footer-col h3 {
  font-family: var(--bb6-font-h);
  font-size: 1.15rem; color: #000;
  margin: 0 0 1rem;
}
.bb6-footer-logo {
  display: block; max-width: 110px; height: auto;
  margin-bottom: 1rem;
}
.bb6-footer-brand-pitch {
  font-size: .95rem; line-height: 1.6;
  color: #000; margin-bottom: 1.2rem;
}
.bb6-footer-brand-cta {
  display: inline-block;
  font-weight: 600; color: #000;
  text-decoration: none; border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.bb6-footer-brand-cta:hover { border-bottom-color: #000; color: #000; }
.bb6-footer-links {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: .55rem;
}
.bb6-footer-links a {
  font-size: .95rem; color: #000;
  text-decoration: none;
}
.bb6-footer-links a:hover { color: #000; text-decoration: underline; }
.bb6-footer-bottom {
  border-top: 1px solid #e6dcc9;
  margin-top: 3rem; padding: 1.5rem 1.4rem 0;
  max-width: var(--bb6-cont); margin-left: auto; margin-right: auto;
  display: flex; justify-content: space-between; flex-wrap: wrap;
  gap: 1rem;
  font-size: .87rem; color: #000;
}
.bb6-footer-social {
  display: flex; gap: 1rem; align-items: center; list-style: none; padding: 0; margin: 0;
}
.bb6-footer-social a {
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid #000; border-radius: 50%;
  color: #000; transition: background .2s, color .2s, border-color .2s;
}
.bb6-footer-social a:hover { background: #000; color: #fff; border-color: #000; }

@media (max-width: 900px) {
  .bb6-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .bb6-footer-grid { grid-template-columns: 1fr; }
}

/* ============ METRICS LINKS (home middle bloc) ============ */
.bb6-metrics {
  background: var(--bb6-surface);
  padding: 2.5rem 0;
  border-top: 1px solid var(--bb6-line);
  border-bottom: 1px solid var(--bb6-line);
}
.bb6-metrics-grid {
  display: flex; flex-wrap: wrap; gap: 1.5rem;
  justify-content: center; align-items: center;
}
.bb6-metrics a {
  font-size: .92rem; color: var(--bb6-text-soft);
  text-decoration: none; padding: .4rem .9rem;
  border: 1px solid var(--bb6-line); border-radius: 999px;
}
.bb6-metrics a:hover { color: var(--bb6-primary); border-color: var(--bb6-primary); }

/* ============ ANIMATIONS ============ */
@keyframes bb6-cta-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 6px 18px rgba(255,123,35,.26); }
  50% { transform: scale(1.04); box-shadow: 0 8px 24px rgba(255,123,35,.42); }
}
.bb6-floating-badge {
  position: fixed; bottom: 1.5rem; left: 1.5rem;
  background: var(--bb6-accent); color: #fff;
  padding: .6rem 1.1rem; border-radius: 999px;
  font-size: .85rem; font-weight: 600;
  box-shadow: 0 6px 18px rgba(16,158,182,.35);
  animation: bb6-float-badge 2.4s ease-in-out infinite;
  z-index: 50;
}
@keyframes bb6-float-badge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.bb6-floating-form-btn {
  position: fixed; bottom: 1.5rem; right: 1.5rem;
  background: var(--bb6-primary); color: #fff;
  padding: .9rem 1.4rem; border-radius: 999px;
  font-weight: 700;
  box-shadow: 0 8px 22px rgba(255,123,35,.38);
  animation: bb6-float-form 2.6s ease-in-out infinite;
  z-index: 50; text-decoration: none;
}
@keyframes bb6-float-form {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-4px) scale(1.03); }
}

/* ============ TOOL CSS HELPERS ============ */
.bb6-tool-card {
  background: var(--bb6-surface);
  border-radius: var(--bb6-radius);
  padding: 1.6rem;
  border: 1px solid var(--bb6-line);
}
.bb6-tool-input {
  width: 100%; padding: .65rem .8rem;
  border: 1.5px solid var(--bb6-line); border-radius: var(--bb6-radius-sm);
  font-family: inherit; font-size: 1rem;
  background: #fff; color: var(--bb6-text);
}
.bb6-tool-input:focus { outline: none; border-color: var(--bb6-primary); }
.bb6-tool-row { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 1rem; }
.bb6-tool-row > * { flex: 1; min-width: 160px; }
.bb6-tool-result {
  margin-top: 1.5rem; padding: 1.4rem;
  background: var(--bb6-cream); border-radius: var(--bb6-radius);
  border-left: 4px solid var(--bb6-primary);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
  body.bb6-body { font-size: 16px; }
  .bb6-hero { padding: 3rem 0 2.5rem; }
  .bb6-hero-title { font-size: clamp(2rem, 7vw, 2.8rem); }
  .bb6-cat-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1rem; }
  .bb6-floating-badge { bottom: 1rem; left: 1rem; font-size: .78rem; padding: .5rem .9rem; }
  .bb6-floating-form-btn { bottom: 1rem; right: 1rem; padding: .8rem 1.1rem; font-size: .9rem; }
}
@media (max-width: 480px) {
  .bb6-cat-grid { grid-template-columns: 1fr; }
  .bb6-hero-ctas { flex-direction: column; }
  .bb6-hero-ctas .bb6-btn { width: 100%; justify-content: center; }
}

/* Focus visible (a11y) */
:focus-visible {
  outline: 3px solid var(--bb6-accent);
  outline-offset: 2px; border-radius: 4px;
}
