/* ============================================================
   layout.css — mise en page des sections (adapté WordPress)
   ============================================================ */

/* ---------------- NAV ---------------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; transition: background-color .35s ease, box-shadow .35s ease, border-color .35s; border-bottom: 2px solid transparent; }
.nav.solid { background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(10px) saturate(1.2); border-bottom: 2px solid var(--ink); box-shadow: 0 4px 0 -2px var(--ink); }
.nav-in { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1.34rem; letter-spacing: -0.03em; }
.brand .custom-logo { height: 40px; width: auto; }
.brand-mark { color: var(--accent); font-size: 1.15em; transform: rotate(-8deg); transition: transform .3s; }
.brand:hover .brand-mark { transform: rotate(20deg) scale(1.15); }
.brand-name { font-family: 'Bricolage Grotesque'; }
.brand-dot { color: var(--accent); }
.nav-links { display: flex; gap: 6px; margin-left: 18px; }
.nav-link { padding: 7px 13px; border-radius: 10px; font-weight: 600; font-size: .98rem; position: relative; transition: color .2s; }
.nav-link::after { content: ""; position: absolute; left: 13px; right: 13px; bottom: 4px; height: 3px; background: var(--accent); border-radius: 3px; transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
.nav-link:hover::after { transform: scaleX(1); }
.nav-cta { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.nav-burger { display: none; flex-direction: column; gap: 5px; margin-left: auto; padding: 8px; }
.nav-burger span { width: 26px; height: 3px; background: var(--ink); border-radius: 2px; transition: transform .25s, opacity .2s; }
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.nav-mobile { display: none; flex-direction: column; gap: 10px; padding: 18px 28px 24px; background: var(--paper-card); border-bottom: 2px solid var(--ink); }
.nav-mobile .nav-link { font-size: 1.1rem; }
.nav-mobile.open { display: flex; }

/* placeholder image générique */
.sk-thumb-ph {
  display: grid; place-items: center; width: 100%; height: 100%; min-height: 160px;
  padding: 18px; text-align: center; font-family: 'Caveat', cursive; font-size: 1.4rem;
  color: var(--ink-soft); background: var(--paper-2);
  background-image: radial-gradient(color-mix(in srgb, var(--ink) 14%, transparent) 1.2px, transparent 1.2px);
  background-size: 18px 18px;
}

/* ---------------- HERO ---------------- */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; padding: 120px 0 70px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; opacity: .5; z-index: 0; }
.hero-blob { position: absolute; border-radius: 46% 54% 60% 40% / 50% 45% 55% 50%; filter: blur(8px); opacity: .5; z-index: 0; mix-blend-mode: multiply; }
[data-theme="neon"] .hero-blob { mix-blend-mode: screen; opacity: .35; filter: blur(28px); }
.hb1 { width: 520px; height: 480px; background: radial-gradient(circle at 40% 40%, var(--c-yellow), transparent 70%); top: -80px; right: -120px; }
.hb2 { width: 460px; height: 460px; background: radial-gradient(circle at 60% 60%, var(--accent-2), transparent 70%); bottom: -120px; left: -140px; }
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr 1fr; gap: 50px; align-items: center; }
.hero-copy { max-width: 600px; }
.hero-title { font-size: clamp(2.9rem, 6.2vw, 5.3rem); margin: 16px 0 22px; text-wrap: balance; }
.hero-sub { font-size: clamp(1.05rem, 1.5vw, 1.32rem); color: var(--ink-soft); max-width: 520px; margin-bottom: 30px; }
.hero-sub strong { color: var(--ink); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 26px; }
.hero-note { display: inline-flex; align-items: center; gap: 10px; font-size: .96rem; color: var(--ink-soft); padding: 8px 4px; border-radius: 8px; transition: color .2s; }
.hero-note:hover { color: var(--ink); }
.hero-note strong { color: var(--ink); }
.qualiopi-mini { display: inline-flex; align-items: center; font-weight: 800; font-size: .72rem; letter-spacing: .04em; color: #fff; background: var(--c-green); padding: 3px 8px; border-radius: 6px; border: 2px solid var(--ink); }
[data-theme="neon"] .qualiopi-mini { color: #141319; }

.hero-art { position: relative; z-index: 2; display: flex; justify-content: center; }
.hero-card { padding: 26px 22px; border-radius: 18px 14px 20px 12px; box-shadow: 8px 10px 0 var(--ink); width: 100%; max-width: 480px; position: relative; transform: rotate(1.2deg); }
.hero-handnote { position: absolute; bottom: 24px; right: -8px; font-size: 1.5rem; color: var(--accent); transform: rotate(-6deg); }
.hero-scroll { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--ink-soft); z-index: 2; }
.hero-scroll .font-hand { font-size: 1.25rem; }
.scroll-arrow { animation: bob 1.6s ease-in-out infinite; font-size: 1.2rem; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(7px); } }

/* tracé auto du sketchnote héro — longueurs mesurées en JS (cf. app.js) */
.hero-sketch-wrap { position: relative; width: 100%; }
.hero-sketch { width: 100%; height: auto; display: block; }
.hero-sketch .dh { stroke-dashoffset: 0; }
.hero-word-html {
  position: absolute; left: 50%; top: 19.5%; transform: translate(-50%, -50%) scale(.4) rotate(-8deg);
  font-size: clamp(1.5rem, 4.2vw, 2.4rem); color: var(--c-orange); letter-spacing: 1px;
  z-index: 3; opacity: 0; pointer-events: none; white-space: nowrap;
}
@media (prefers-reduced-motion: reduce) {
  .hero-sketch .dh { stroke-dashoffset: 0 !important; }
}

/* ---------------- STATS ---------------- */
.stats-band { background: var(--ink); color: var(--paper); padding: 34px 0; position: relative; z-index: 3; border-top: 3px solid var(--ink); border-bottom: 3px solid var(--ink); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat { text-align: center; position: relative; }
.stat + .stat::before { content: ""; position: absolute; left: -10px; top: 10%; bottom: 10%; width: 2px; background: color-mix(in srgb, var(--paper) 25%, transparent); }
.stat-n { font-family: 'Bricolage Grotesque'; font-weight: 800; font-size: clamp(1.8rem, 3.4vw, 2.8rem); line-height: 1; }
.stat-l { font-size: .92rem; opacity: .82; margin-top: 6px; }

/* ---------------- FEATURED ---------------- */
.featured { background: var(--paper); }
.feat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.feat-art { position: relative; }
.feat-frame { aspect-ratio: 4 / 5; border-radius: 12px; overflow: hidden; box-shadow: 10px 12px 0 var(--ink); transform: rotate(-1.4deg); }
.feat-frame .feat-img { width: 100%; height: 100%; object-fit: cover; }
.feat-badge { position: absolute; z-index: 8; top: -26px; left: -22px; background: var(--accent); color: #fff; padding: 12px 16px; border-radius: 50% 48% 52% 50%; border: 3px solid var(--ink); font-size: 1.15rem; line-height: 1; text-align: center; box-shadow: var(--shadow-ink); }
[data-theme="neon"] .feat-badge { color: #141319; }
.feat-title { font-size: clamp(2rem, 3.6vw, 3.1rem); margin: 12px 0 18px; text-wrap: balance; }
.feat-text { color: var(--ink-soft); font-size: 1.12rem; margin-bottom: 24px; }
.feat-author { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; }
.feat-avatar { width: 54px; height: 54px; border-radius: 50%; border: 2px solid var(--ink); }
.fa-name { font-weight: 800; font-size: 1.1rem; }
.fa-handle { color: var(--accent); font-weight: 700; font-size: .9rem; margin-left: 4px; }
.fa-role { color: var(--ink-soft); font-size: .92rem; }
.feat-cta { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.link-hand { color: var(--accent); font-size: 1.3rem; transition: transform .2s; display: inline-block; }
.link-hand:hover { transform: translateX(4px); }

/* ---------------- GALLERY ---------------- */
.gallery { background: var(--paper-2); }
.gal-head { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 14px 40px; margin-bottom: 38px; }
.gal-head > div { min-width: 0; }
.sec-title { font-size: clamp(2.1rem, 4vw, 3.4rem); line-height: 1.04; text-wrap: pretty; margin-top: 8px; padding-bottom: 0.12em; }
.gal-sub { max-width: 320px; color: var(--ink-soft); padding-bottom: 6px; }
.gal-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.gal-grid { columns: 3; column-gap: 24px; }
.gal-cell { break-inside: avoid; margin-bottom: 24px; }
.gal-cell.is-hidden { display: none; }
.gcard { display: block; position: relative; border-radius: 10px; overflow: hidden; cursor: pointer; transform: rotate(var(--rot, 0deg)); transition: transform .28s cubic-bezier(.2,.7,.2,1), box-shadow .28s; box-shadow: 5px 6px 0 var(--ink); }
.gcard::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, color-mix(in srgb, var(--ink) 78%, transparent) 0%, transparent 46%); opacity: 0; transition: opacity .28s; pointer-events: none; }
.gcard:hover { transform: rotate(0deg) translateY(-6px) scale(1.02); box-shadow: 10px 12px 0 var(--ink); z-index: 4; }
.gcard:hover::after { opacity: 1; }
.gcard .sk-thumb { display: block; position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: var(--paper-2); }
.gcard.tall .sk-thumb { aspect-ratio: 3 / 4.4; }
.gcard .sk-thumb-img { width: 100%; height: 100%; object-fit: cover; }
.gcard-accent { position: absolute; top: 0; left: 0; right: 0; height: 7px; z-index: 3; }
.gcard-meta { position: absolute; left: 14px; bottom: 12px; right: 14px; z-index: 4; color: #fff; opacity: 0; transform: translateY(10px); transition: all .28s; display: flex; flex-direction: column; }
.gcard:hover .gcard-meta { opacity: 1; transform: none; }
.gcard-title { font-weight: 800; font-size: 1.08rem; line-height: 1.1; }
.gcard-author { font-size: .86rem; opacity: .9; }
.gcard-like { position: absolute; top: 12px; right: 12px; z-index: 4; background: var(--paper-card); border: 2px solid var(--ink); border-radius: 999px; padding: 3px 9px; font-size: .82rem; font-weight: 700; display: flex; align-items: center; gap: 4px; color: var(--ink); }
.heart { color: var(--c-pink); }
.gal-cta-cell { break-inside: avoid; }
.gal-add { width: 100%; aspect-ratio: 4 / 3.2; border-radius: 10px; border-style: dashed; border-width: 3px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; transition: transform .2s, background-color .2s; box-shadow: 5px 6px 0 var(--ink); }
.gal-add:hover { transform: translateY(-5px) rotate(-1.5deg); background: var(--paper); }
.ga-plus { font-size: 2.6rem; color: var(--accent); line-height: 1; font-weight: 800; }
.ga-txt { font-size: 1.5rem; text-align: center; line-height: 1; color: var(--ink); }

/* ---------------- AUTHORS ---------------- */
.authors { background: var(--paper); }
.auth-head { max-width: 720px; margin-bottom: 44px; }
.auth-sub { color: var(--ink-soft); margin-top: 14px; max-width: 540px; }
.auth-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.acard { position: relative; border-radius: 14px; padding: 22px 20px 22px; box-shadow: 6px 7px 0 var(--ink); overflow: hidden; transition: transform .25s, box-shadow .25s; display: flex; flex-direction: column; }
.acard:hover { transform: translateY(-6px); box-shadow: 10px 12px 0 var(--ink); }
.acard-bar { position: absolute; top: 0; left: 0; right: 0; height: 8px; }
.acard-top { display: flex; align-items: center; gap: 13px; margin: 8px 0 14px; }
.acard-avatar { width: 74px; height: 74px; border-radius: 50%; border: 2px solid var(--ink); }
.acard-id { display: flex; flex-direction: column; }
.acard-name { font-weight: 800; font-size: 1.08rem; line-height: 1.1; }
.acard-handle { color: var(--ink-soft); font-size: .88rem; }
.acard-quote { font-size: 1.45rem; line-height: 1.08; margin-bottom: 16px; }
.acard-foot { display: flex; justify-content: space-between; align-items: baseline; font-size: .9rem; margin-top: auto; }
.acard-role { color: var(--ink-soft); }
.acard-count { font-weight: 800; white-space: nowrap; }
.acard-follow { margin-top: 14px; justify-content: center; }
.auth-foot-cta { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 40px; justify-content: center; }

/* ---------------- MANIFESTO ---------------- */
.manifesto { background: var(--ink); color: var(--paper); }
.manifesto .scribble { background-image: linear-gradient(var(--accent), var(--accent)); }
.mani-title { font-size: clamp(2.2rem, 4.4vw, 3.8rem); text-align: center; margin-bottom: 50px; }
.manifesto .hl::before { mix-blend-mode: normal; opacity: .9; }
.mani-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.mcard { background: color-mix(in srgb, var(--paper) 8%, transparent); border-color: color-mix(in srgb, var(--paper) 30%, transparent); border-radius: 14px; padding: 24px 20px; min-height: 220px; }
.mcard-n { font-size: 2.6rem; line-height: 1; }
.mcard-title { font-size: 1.5rem; margin: 8px 0 8px; }
.mcard-txt { color: color-mix(in srgb, var(--paper) 72%, transparent); }
.mani-quote { text-align: center; margin-top: 54px; font-size: clamp(1.6rem, 3vw, 2.5rem); font-weight: 800; font-family: 'Bricolage Grotesque'; line-height: 1.15; }
.mani-quote .scribble { background-size: 100% .12em; }

/* ---------------- FORMATIONS (Insuffle Academy) ---------------- */
.formations { background: var(--paper-2); }
.form-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 54px; align-items: center; }
.form-lead { color: var(--ink-soft); font-size: 1.14rem; margin: 16px 0 26px; }
.form-lead strong { color: var(--ink); }
.form-perks { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 22px; margin-bottom: 30px; }
.perk { display: flex; gap: 12px; align-items: flex-start; }
.perk-check { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--c-green); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: .85rem; border: 2px solid var(--ink); }
[data-theme="neon"] .perk-check { color: #141319; }
.perk strong { display: block; font-size: 1rem; }
.perk span { color: var(--ink-soft); font-size: .92rem; }
.form-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.form-art { position: relative; }
.qualiopi-card { border-radius: 18px; padding: 26px; box-shadow: 10px 12px 0 var(--ink); transform: rotate(1.4deg); }
.qc-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.qc-logo { font-family: 'Bricolage Grotesque'; font-weight: 800; font-size: 1.7rem; letter-spacing: -.02em; }
.qc-logo-academy { color: var(--accent); }
.qc-by { color: var(--ink-soft); font-size: 1.2rem; }
.qualiopi-badge { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border: 2.5px solid var(--ink); border-radius: 12px; background: color-mix(in srgb, var(--c-green) 12%, var(--paper-card)); margin-bottom: 18px; }
.qb-mark { flex: none; width: 38px; height: 38px; border-radius: 50%; background: var(--c-green); color: #fff; display: grid; place-items: center; font-size: 1.2rem; font-weight: 800; border: 2px solid var(--ink); }
[data-theme="neon"] .qb-mark { color: #141319; }
.qb-txt strong { display: block; font-size: 1.25rem; letter-spacing: .02em; }
.qb-txt span { font-size: .82rem; color: var(--ink-soft); }
.qc-modules { display: flex; flex-wrap: wrap; gap: 8px; }
.qc-mod { font-size: .86rem; font-weight: 600; padding: 6px 11px; border-radius: 8px; border: 2px solid var(--c); color: var(--c); background: color-mix(in srgb, var(--c) 10%, transparent); }

/* ---------------- FOOTER ---------------- */
.footer { background: var(--ink); color: var(--paper); position: relative; z-index: 3; }
.footer-cta-band { background: var(--accent); color: #fff; padding: 56px 0; border-bottom: 3px solid var(--ink); }
[data-theme="neon"] .footer-cta-band { color: #141319; }
.fcb-in { display: flex; align-items: center; justify-content: space-between; gap: 26px; flex-wrap: wrap; }
.fcb-title { font-size: clamp(1.9rem, 3.6vw, 3rem); }
.footer-cta-band .hl::before { background: var(--ink); mix-blend-mode: normal; }
.footer-cta-band .hl { color: var(--paper); }
.fcb-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.footer-cta-band .btn { border-color: var(--ink); }
.footer-main { display: grid; grid-template-columns: 1.4fr 1.6fr 1.2fr; gap: 40px; padding: 60px 28px 40px; max-width: 1240px; margin: 0 auto; }
.brand-name.big { font-size: 1.7rem; display: inline-flex; gap: 8px; align-items: center; }
.footer-tag { color: color-mix(in srgb, var(--paper) 70%, transparent); margin: 12px 0 18px; }
.footer-social { display: flex; gap: 8px; flex-wrap: wrap; }
.footer-social .chip { background: transparent; color: var(--paper); border-color: color-mix(in srgb, var(--paper) 40%, transparent); }
.footer-social .chip:hover { background: var(--paper); color: var(--ink); }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.fcol { display: flex; flex-direction: column; gap: 9px; }
.fcol-h { font-weight: 800; margin-bottom: 4px; font-size: 1.02rem; }
.fcol a { color: color-mix(in srgb, var(--paper) 72%, transparent); font-size: .95rem; transition: color .2s; }
.fcol a:hover { color: var(--accent); }
.footer-academy { background: color-mix(in srgb, var(--paper) 7%, transparent); border-color: color-mix(in srgb, var(--paper) 28%, transparent); border-radius: 14px; padding: 22px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.fa-eyebrow { color: color-mix(in srgb, var(--paper) 70%, transparent); font-size: 1.2rem; }
.fa-logo { font-family: 'Bricolage Grotesque'; font-weight: 800; font-size: 1.5rem; }
.fa-logo-academy { color: var(--accent); }
.fa-qualiopi { display: flex; align-items: center; gap: 10px; font-size: .9rem; color: color-mix(in srgb, var(--paper) 82%, transparent); }
.fa-q-mark { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--c-green); color: #fff; display: grid; place-items: center; font-weight: 800; border: 2px solid color-mix(in srgb, var(--paper) 40%, transparent); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 22px 28px 30px; border-top: 1px solid color-mix(in srgb, var(--paper) 18%, transparent); font-size: .86rem; color: color-mix(in srgb, var(--paper) 64%, transparent); max-width: 1240px; margin: 0 auto; }
.footer-bottom strong { color: color-mix(in srgb, var(--paper) 90%, transparent); }

/* ---------------- PAGES GÉNÉRIQUES (index/archive/search) ---------------- */
.page-head { margin-bottom: 40px; }
.post-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 28px; }
.post-item { border-radius: 12px; overflow: hidden; box-shadow: 5px 6px 0 var(--ink); padding-bottom: 18px; }
.post-thumb img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.post-title { font-size: 1.4rem; margin: 14px 18px 8px; }
.post-excerpt { color: var(--ink-soft); margin: 0 18px 12px; }
.post-item .link-hand { margin: 0 18px; }
.no-results { text-align: center; max-width: 540px; margin: 0 auto; display: flex; flex-direction: column; gap: 18px; align-items: center; }
.pagination { margin-top: 50px; display: flex; justify-content: center; }
.pagination .nav-links { display: flex; gap: 8px; margin: 0; }
.pagination .page-numbers { padding: 8px 14px; border: 2px solid var(--ink); border-radius: 10px; background: var(--paper-card); font-weight: 700; }
.pagination .page-numbers.current { background: var(--ink); color: var(--paper); }

/* ---------------- RESPONSIVE ---------------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero { min-height: auto; padding: 120px 0 60px; }
  .feat-grid, .form-grid { grid-template-columns: 1fr; gap: 40px; }
  .gal-grid { columns: 2; }
  .auth-grid { grid-template-columns: repeat(2, 1fr); }
  .mani-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 20px; }
  .footer-main { grid-template-columns: 1fr; gap: 32px; }
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-burger { display: flex; }
}
@media (max-width: 560px) {
  body { font-size: 17px; }
  .wrap { padding: 0 18px; }
  .gal-grid { columns: 1; }
  .auth-grid, .mani-grid, .form-perks { grid-template-columns: 1fr; }
  .gal-head { grid-template-columns: 1fr; }
  .gal-sub { max-width: none; }
  .fcb-in { flex-direction: column; align-items: flex-start; }
  .footer-bottom { flex-direction: column; }
}
