/* ==========================================================================
   HIBOU FINANCE — couche de design « Hibou expert » (chargée après Bulma)
   Palette : vert forêt #1B4332 · crème #FAF6EF · ambre #E9B44C · encre #14281D
   ========================================================================== */

/* ── Polices (fichiers variables self-hostés) ────────────────────────────── */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('/assets/fonts/fraunces-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/fraunces-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('/assets/fonts/fraunces-normal-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/fraunces-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/assets/fonts/inter-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/assets/fonts/inter-normal-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ── Tokens ───────────────────────────────────────────────────────────────── */
:root {
  --hf-green: #1B4332;
  --hf-green-solid: #1B4332; /* vert foncé constant : fonds avec texte crème, insensible au thème */
  --hf-green-deep: #122F23;
  --hf-green-soft: #2D5A3D;
  --hf-green-tint: #E7EFE7;
  --hf-cream: #FAF6EF;
  --hf-cream-bis: #F3EDDF;
  --hf-amber: #E9B44C;
  --hf-amber-deep: #B98324;
  --hf-ink: #14281D;
  --hf-text: #2C3A31;
  --hf-muted: #64716A;
  --hf-border: #E3DDD0;
  --hf-white: #FFFFFF;
  --hf-radius: 14px;
  --hf-radius-sm: 9px;
  --hf-shadow: 0 1px 2px rgba(20, 40, 29, .05), 0 10px 30px -12px rgba(20, 40, 29, .18);
  --hf-shadow-lift: 0 2px 4px rgba(20, 40, 29, .06), 0 18px 44px -14px rgba(20, 40, 29, .26);
  --hf-font-title: 'Fraunces', Georgia, 'Times New Roman', serif;
  --hf-font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* — surcharges Bulma (prioritaire : feuille chargée après) — */
  --bulma-family-primary: var(--hf-font-body);
  --bulma-family-secondary: var(--hf-font-title);
  --bulma-family-title: var(--hf-font-title);
  --bulma-scheme-main: var(--hf-cream);
  --bulma-scheme-main-bis: var(--hf-cream-bis);
  --bulma-scheme-main-ter: var(--hf-cream-bis);
  --bulma-scheme-invert: var(--hf-green);
  --bulma-scheme-invert-bis: var(--hf-green-deep);
  --bulma-scheme-invert-ter: var(--hf-green-deep);
  --bulma-text: var(--hf-text);
  --bulma-title-color: var(--hf-ink);
  --bulma-body-color: var(--hf-text);
  --bulma-body-background-color: var(--hf-cream);
  --bulma-strong-color: var(--hf-ink);
  --bulma-link: var(--hf-green);
  --bulma-link-hover: var(--hf-amber-deep);
  --bulma-border: var(--hf-border);
  --bulma-border-weak: var(--hf-border);
  --bulma-primary: var(--hf-green);
  --bulma-primary-dark: var(--hf-green-deep);
  --bulma-primary-light: var(--hf-green-tint);
  --bulma-radius: var(--hf-radius-sm);
  --bulma-radius-large: var(--hf-radius);
  --bulma-shadow: var(--hf-shadow);
}

/* — Dark mode — */
[data-theme='dark'] {
  --hf-green: #7FCF9E;
  --hf-green-solid: #1B4332;
  --hf-green-deep: #0D211A;
  --hf-green-soft: #2D5A3D;
  --hf-green-tint: #1C3129;
  --hf-cream: #0F1D16;
  --hf-cream-bis: #14261D;
  --hf-amber: #E9B44C;
  --hf-ink: #F1EEE4;
  --hf-text: #D9DDD2;
  --hf-muted: #A9B6A9;
  --hf-border: #24382D;
  --hf-white: #14261D;
  --hf-shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 34px -12px rgba(0, 0, 0, .55);
  --hf-shadow-lift: 0 2px 4px rgba(0, 0, 0, .45), 0 20px 48px -14px rgba(0, 0, 0, .6);

  --bulma-scheme-main: var(--hf-cream);
  --bulma-scheme-main-bis: var(--hf-cream-bis);
  --bulma-scheme-main-ter: var(--hf-cream-bis);
  --bulma-scheme-invert: #F1EEE4;
  --bulma-scheme-invert-bis: #D9DDD2;
  --bulma-scheme-invert-ter: #D9DDD2;
  --bulma-text: var(--hf-text);
  --bulma-title-color: var(--hf-ink);
  --bulma-body-color: var(--hf-text);
  --bulma-body-background-color: var(--hf-cream);
  --bulma-strong-color: var(--hf-ink);
  --bulma-link: var(--hf-green);
  --bulma-link-hover: var(--hf-amber);
  --bulma-border: var(--hf-border);
  --bulma-border-weak: var(--hf-border);
  --bulma-primary: var(--hf-green);
  --bulma-primary-dark: var(--hf-green);
  --bulma-primary-light: var(--hf-green-tint);
  color-scheme: dark;
}

/* ── Base ─────────────────────────────────────────────────────────────────── */
html { scroll-behavior: smooth; }
body {
  font-family: var(--hf-font-body);
  background: var(--hf-cream);
  color: var(--hf-text);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--hf-amber); color: var(--hf-ink); }
h1, h2, h3, h4, h5, h6, .hf-title {
  font-family: var(--hf-font-title);
  color: var(--hf-ink);
  font-weight: 640;
  letter-spacing: -0.012em;
  line-height: 1.16;
}
a { color: var(--hf-green-soft); }
[data-theme='dark'] a { color: var(--hf-green); }
a:hover { color: var(--hf-amber-deep); }
[data-theme='dark'] a:hover { color: var(--hf-amber); }
:focus-visible { outline: 3px solid var(--hf-amber); outline-offset: 2px; border-radius: 4px; }
img { max-width: 100%; height: auto; }

.hf-container { max-width: 1128px; margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2rem); }
.hf-container--narrow { max-width: 780px; }

.hf-overline {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--hf-amber-deep);
}
[data-theme='dark'] .hf-overline { color: var(--hf-amber); }
.hf-overline::before { content: ''; width: 1.6rem; height: 2px; background: var(--hf-amber); border-radius: 2px; }

.section-title { font-size: clamp(1.7rem, 3.2vw, 2.3rem); margin-bottom: .45rem; }
.section-sub { color: var(--hf-muted); max-width: 62ch; }

/* ── Boutons ──────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .78rem 1.5rem; border-radius: 999px; border: 2px solid transparent;
  font-family: var(--hf-font-body); font-weight: 600; font-size: 1rem; line-height: 1.2;
  cursor: pointer; text-decoration: none; transition: transform .16s ease, box-shadow .16s ease, background .16s ease, color .16s ease;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn--primary { background: var(--hf-green); color: #FAF6EF; box-shadow: 0 10px 24px -10px rgba(27, 67, 50, .55); }
.btn--primary:hover { background: var(--hf-green-deep); color: #FAF6EF; transform: translateY(-1px); }
[data-theme='dark'] .btn--primary { background: var(--hf-green); color: #0F1D16; }
[data-theme='dark'] .btn--primary:hover { background: #96DCB0; }
.btn--ghost { border-color: var(--hf-green); color: var(--hf-green); background: transparent; }
.btn--ghost:hover { background: var(--hf-green-tint); color: var(--hf-green-deep); }
[data-theme='dark'] .btn--ghost { border-color: var(--hf-green); color: var(--hf-green); }
.btn--amber { background: var(--hf-amber); color: #14281D; }
.btn--amber:hover { background: #F2C368; color: #14281D; transform: translateY(-1px); }
/* la règle dark des liens (0,1,1) surclasse .btn--amber (0,1,0) : on protège le texte */
[data-theme='dark'] .btn--amber, [data-theme='dark'] .btn--amber:hover { color: #14281D; }
.btn--small { padding: .45rem 1rem; font-size: .9rem; }

/* ── En-tête ──────────────────────────────────────────────────────────────── */
.hf-header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--hf-cream) 86%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hf-border);
}
.hf-header__inner { display: flex; align-items: center; gap: 1.25rem; min-height: 72px; }
.hf-brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--hf-ink); }
.hf-brand img { width: 42px; height: 42px; }
.hf-brand b { font-family: var(--hf-font-title); font-size: 1.32rem; font-weight: 680; letter-spacing: -0.01em; }
.hf-brand small { display: block; font-size: .66rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--hf-muted); margin-top: -3px; }
.hf-nav { display: flex; align-items: center; gap: .25rem; margin-left: auto; }
.hf-nav a {
  padding: .55rem .85rem; border-radius: 999px; text-decoration: none;
  color: var(--hf-text); font-weight: 550; font-size: .97rem; transition: background .15s ease, color .15s ease;
}
.hf-nav a:hover { background: var(--hf-green-tint); color: var(--hf-green-deep); }
[data-theme='dark'] .hf-nav a:hover { color: var(--hf-green); }
.hf-nav a[aria-current='page'] { background: var(--hf-green-solid); color: #FAF6EF; }
[data-theme='dark'] .hf-nav a[aria-current='page'] { color: #0F1D16; }
.hf-actions { display: flex; align-items: center; gap: .4rem; }
.hf-iconbtn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 999px; border: 1px solid var(--hf-border);
  background: var(--hf-white); color: var(--hf-text); cursor: pointer;
  transition: background .15s ease, transform .15s ease;
}
.hf-iconbtn:hover { background: var(--hf-green-tint); transform: translateY(-1px); }
.hf-iconbtn svg { width: 20px; height: 20px; }
.hf-burger { display: none; }

/* Barre mobile */
@media (max-width: 920px) {
  .hf-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: .2rem;
    background: var(--hf-cream); border-bottom: 1px solid var(--hf-border);
    padding: .8rem 1.2rem 1.2rem; box-shadow: var(--hf-shadow);
  }
  .hf-nav.is-open { display: flex; }
  .hf-nav a { padding: .8rem 1rem; font-size: 1.05rem; }
  .hf-burger { display: inline-flex; }
  .hf-brand small { display: none; }
}

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.hf-hero { position: relative; overflow: hidden; padding: clamp(2.6rem, 7vw, 5.2rem) 0 clamp(2.2rem, 5vw, 4rem); }
.hf-hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(46rem 30rem at 88% -10%, rgba(233, 180, 76, .16), transparent 60%),
    radial-gradient(38rem 26rem at -8% 108%, rgba(27, 67, 50, .10), transparent 60%);
}
.hf-hero__grid { position: relative; display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hf-hero h1 {
  font-size: clamp(2.45rem, 5.6vw, 4rem);
  margin: .9rem 0 1.1rem;
}
.hf-hero h1 em { font-style: italic; color: var(--hf-green-soft); font-weight: 560; }
[data-theme='dark'] .hf-hero h1 em { color: var(--hf-green); }
.hf-hero p.lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--hf-muted); max-width: 34ch; margin-bottom: 1.7rem; }
.hf-hero__ctas { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 2.1rem; }
.hf-hero__stats { display: grid; grid-template-columns: repeat(4, auto); gap: clamp(1rem, 2.5vw, 2.2rem); justify-content: start; }
@media (max-width: 640px) { .hf-hero__stats { grid-template-columns: repeat(2, auto); } }
.hf-hero__stats div strong { display: block; font-family: var(--hf-font-title); font-size: 1.5rem; color: var(--hf-ink); font-weight: 680; }
.hf-hero__stats div span { font-size: .86rem; color: var(--hf-muted); }
.hf-hero__art { position: relative; }
.hf-hero__art > img, .hf-hero__art > svg { width: 100%; height: auto; filter: drop-shadow(0 24px 44px rgba(20, 40, 29, .16)); }
.hf-chip {
  position: absolute; display: inline-flex; align-items: center; gap: .5rem;
  background: var(--hf-white); border: 1px solid var(--hf-border); border-radius: 999px;
  padding: .5rem .95rem; font-size: .85rem; font-weight: 600; color: var(--hf-text);
  box-shadow: var(--hf-shadow); animation: hf-float 5.5s ease-in-out infinite;
}
.hf-chip--a { top: 6%; left: 0; }
.hf-chip--b { bottom: 12%; right: 2%; animation-delay: -2.7s; }
@keyframes hf-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@media (max-width: 920px) {
  .hf-hero__grid { grid-template-columns: 1fr; }
  .hf-hero__art { max-width: 420px; margin-inline: auto; }
}

/* ── Bandeau stats / sections ─────────────────────────────────────────────── */
.hf-section { padding: clamp(2.6rem, 6vw, 4.6rem) 0; }
.hf-section--cream { background: var(--hf-cream-bis); }
[data-theme='dark'] .hf-section--cream { background: #122019; }
.hf-section--green {
  background: linear-gradient(150deg, #1B4332 0%, #122F23 100%);
  color: #EDF3EC;
}
[data-theme='dark'] .hf-section--green { background: linear-gradient(150deg, #0D211A, #0A1A14); }
.hf-section--green .section-title, .hf-section--green h2, .hf-section--green h3 { color: #FAF6EF; }
.hf-section--green .section-sub { color: #BCCDBE; }
.hf-section__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.2rem; margin-bottom: 2.2rem; }
.hf-section__head .section-sub { margin-bottom: .35rem; }
.hf-tools { row-gap: 1.6rem; }

/* ── Parcours ─────────────────────────────────────────────────────────────── */
.hf-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
@media (max-width: 1024px) { .hf-steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .hf-steps { grid-template-columns: 1fr; } }
.hf-step {
  position: relative; display: flex; flex-direction: column; gap: .55rem;
  background: var(--hf-white); border: 1px solid var(--hf-border); border-radius: var(--hf-radius);
  padding: 1.35rem 1.3rem 1.2rem; text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.hf-step:hover { transform: translateY(-4px); box-shadow: var(--hf-shadow-lift); border-color: var(--hf-green-soft); }
.hf-step__n {
  font-family: var(--hf-font-title); font-size: 2.15rem; font-weight: 640; line-height: 1;
  color: var(--hf-amber); font-style: italic;
}
.hf-step__n::after { content: ''; display: block; width: 1.9rem; height: 2px; background: var(--hf-border); margin-top: .55rem; }
.hf-step b { font-family: var(--hf-font-title); font-size: 1.08rem; font-weight: 640; color: var(--hf-ink); line-height: 1.3; }
.hf-step p { font-size: .88rem; color: var(--hf-muted); flex: 1; }
.hf-step span.go { font-size: .85rem; font-weight: 600; color: var(--hf-green-soft); }
[data-theme='dark'] .hf-step span.go { color: var(--hf-green); }
.hf-step:hover span.go { text-decoration: underline; }

/* ── Cartes article ───────────────────────────────────────────────────────── */
.hf-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
@media (max-width: 1024px) { .hf-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .hf-cards { grid-template-columns: 1fr; } }
.hf-card {
  display: flex; flex-direction: column; background: var(--hf-white);
  border: 1px solid var(--hf-border); border-radius: var(--hf-radius); overflow: hidden;
  text-decoration: none; transition: transform .18s ease, box-shadow .18s ease;
}
.hf-card:hover { transform: translateY(-5px); box-shadow: var(--hf-shadow-lift); }
.hf-card__img { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--hf-green-tint); }
.hf-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.hf-card:hover .hf-card__img img { transform: scale(1.045); }
.hf-card__body { display: flex; flex-direction: column; gap: .5rem; padding: 1.15rem 1.25rem 1.3rem; flex: 1; }
.hf-card__body b {
  font-family: var(--hf-font-title); font-weight: 640; font-size: 1.18rem; line-height: 1.28;
  color: var(--hf-ink);
}
.hf-card:hover .hf-card__body b { color: var(--hf-green-soft); }
[data-theme='dark'] .hf-card:hover .hf-card__body b { color: var(--hf-green); }
.hf-card__body p { font-size: .92rem; color: var(--hf-muted); flex: 1; }
.hf-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; font-size: .82rem; color: var(--hf-muted); }
.hf-meta .dot { width: 3px; height: 3px; border-radius: 999px; background: var(--hf-muted); }
.hf-tag {
  display: inline-flex; align-items: center; padding: .26rem .7rem; border-radius: 999px;
  background: var(--hf-green-tint); color: var(--hf-green-deep);
  font-size: .75rem; font-weight: 700; letter-spacing: .04em; text-decoration: none; text-transform: capitalize;
}
[data-theme='dark'] .hf-tag { color: var(--hf-green); }
.hf-card__img .hf-tag { position: absolute; left: .8rem; bottom: .8rem; background: color-mix(in srgb, var(--hf-cream) 92%, transparent); backdrop-filter: blur(6px); }

/* ── Cartes outils ────────────────────────────────────────────────────────── */
.hf-tools { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
@media (max-width: 1024px) { .hf-tools { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .hf-tools { grid-template-columns: 1fr; } }
.hf-tool {
  display: flex; flex-direction: column; gap: .55rem; padding: 1.3rem;
  background: rgba(250, 246, 239, .06); border: 1px solid rgba(250, 246, 239, .14);
  border-radius: var(--hf-radius); text-decoration: none; transition: background .16s ease, transform .16s ease;
}
.hf-tool:hover { background: rgba(250, 246, 239, .11); transform: translateY(-3px); }
.hf-tool__icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--hf-amber); color: #14281D;
}
.hf-tool__icon svg { width: 24px; height: 24px; }
.hf-tool b { color: #FAF6EF; font-weight: 620; font-size: 1.02rem; }
.hf-tool p { color: #B7C6B9; font-size: .87rem; flex: 1; }
.hf-tool span.go { color: var(--hf-amber); font-size: .85rem; font-weight: 600; }
.hf-tool span.go, .hf-tool--light span.go { margin-top: .45rem; }

/* Version claire des cartes outils (hub /outils/) */
.hf-tool--light {
  background: var(--hf-white); border: 1px solid var(--hf-border);
}
.hf-tool--light:hover { background: var(--hf-cream); }
.hf-tool--light b { color: var(--hf-ink); }
.hf-tool--light p { color: var(--hf-muted); }
.hf-tool--light span.go { color: var(--hf-green-soft); }
[data-theme='dark'] .hf-tool--light span.go { color: var(--hf-green); }
.hf-tool--light .hf-tool__icon { background: var(--hf-green-solid); color: #FAF6EF; }

/* ── Newsletter ───────────────────────────────────────────────────────────── */
.hf-news {
  display: grid; grid-template-columns: auto 1fr; gap: 1.6rem 2.2rem; align-items: center;
  background: linear-gradient(140deg, #FDF3DC 0%, #FAEDCE 100%);
  border: 1px solid #EFD9A8; border-radius: calc(var(--hf-radius) + 6px);
  padding: clamp(1.6rem, 4vw, 2.6rem);
}
[data-theme='dark'] .hf-news { background: linear-gradient(140deg, #241F12, #1E1B10); border-color: #3E3419; }
.hf-news__owl { width: 74px; height: 74px; border-radius: 999px; background: var(--hf-green-solid); display: grid; place-items: center; box-shadow: var(--hf-shadow); }
.hf-news__owl img { width: 48px; height: 48px; }
.hf-news h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.hf-news p { color: #6E6248; margin: .3rem 0 1.1rem; }
[data-theme='dark'] .hf-news p { color: #B3A98E; }
.hf-news form { display: flex; flex-wrap: wrap; gap: .6rem; max-width: 520px; }
.hf-news input[type='email'] {
  flex: 1; min-width: 230px; padding: .82rem 1.15rem; border-radius: 999px;
  border: 2px solid #E3CFA0; background: #FFFDF7; font-size: 1rem; font-family: var(--hf-font-body); color: var(--hf-ink);
}
[data-theme='dark'] .hf-news input[type='email'] { background: #0F1D16; border-color: #4A3D1C; }
.hf-news input[type='email']:focus { outline: none; border-color: var(--hf-amber-deep); }
.hf-news .hf-small { font-size: .78rem; color: #8A7D5E; margin-top: .6rem; }
[data-theme='dark'] .hf-news .hf-small { color: #8F8569; }
.hf-msg { border-radius: 10px; padding: .75rem 1rem; font-size: .95rem; margin-top: .5rem; }
.hf-msg--ok { background: #E2F2E4; color: #1F5B37; }
.hf-msg--err { background: #FBE4E1; color: #96261C; }
[data-theme='dark'] .hf-msg--ok { background: #173425; color: #9ADBA9; }
[data-theme='dark'] .hf-msg--err { background: #3B1D18; color: #F0A69C; }
@media (max-width: 720px) { .hf-news { grid-template-columns: 1fr; } .hf-news__owl { display: none; } }

/* ── Pied de page ─────────────────────────────────────────────────────────── */
.hf-footer { background: #122F23; color: #C4D2C5; margin-top: 0; }
[data-theme='dark'] .hf-footer { background: #0A1A14; }
.hf-footer a { color: #C4D2C5; text-decoration: none; }
.hf-footer a:hover { color: var(--hf-amber); }
.hf-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.4rem; padding: 3.4rem 0 2.6rem; }
@media (max-width: 920px) { .hf-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .hf-footer__grid { grid-template-columns: 1fr; } }
.hf-footer .hf-brand b { color: #FAF6EF; }
.hf-footer h3 { color: #FAF6EF; font-size: .95rem; font-weight: 640; margin-bottom: .9rem; }
.hf-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.hf-footer ul a { font-size: .93rem; }
.hf-footer__tag { margin-top: 1rem; font-size: .92rem; max-width: 30ch; color: #9FB4A1; }
.hf-footer__bottom { border-top: 1px solid rgba(250, 246, 239, .12); padding: 1.3rem 0; display: flex; flex-wrap: wrap; gap: .8rem; justify-content: space-between; font-size: .84rem; color: #9FB4A1; }

/* ── Page article ─────────────────────────────────────────────────────────── */
.hf-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 60; background: linear-gradient(90deg, var(--hf-amber), var(--hf-amber-deep)); transition: width .1s linear; }

.hf-article { display: grid; grid-template-columns: minmax(0, 1fr) 296px; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; padding-bottom: 3rem; }
@media (max-width: 980px) { .hf-article { grid-template-columns: 1fr; } }
.hf-article h1.title-post { font-size: clamp(1.95rem, 4.2vw, 2.9rem); margin: .8rem 0 1rem; }
.hf-article .lead { font-size: 1.14rem; color: var(--hf-muted); margin-bottom: 1.4rem; }
.hf-author-row { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem 1rem; padding-bottom: 1.4rem; border-bottom: 1px solid var(--hf-border); margin-bottom: 1.6rem; }
.hf-avatar {
  width: 42px; height: 42px; border-radius: 999px; background: var(--hf-green-solid); color: #FAF6EF;
  display: grid; place-items: center; font-family: var(--hf-font-title); font-weight: 680; font-size: 1.15rem;
}
.hf-featured { border-radius: var(--hf-radius); overflow: hidden; margin-bottom: 2.2rem; box-shadow: var(--hf-shadow); }
.hf-featured img { width: 100%; aspect-ratio: 16 / 8.4; object-fit: cover; display: block; }
.hf-updated { display: inline-flex; align-items: center; gap: .35rem; font-size: .8rem; color: var(--hf-amber-deep); font-weight: 600; }
[data-theme='dark'] .hf-updated { color: var(--hf-amber); }

/* Contenu rédigé */
.hf-prose { max-width: 720px; }
.hf-prose > * + * { margin-top: 1.15em; }
.hf-prose h2 { font-size: 1.65rem; margin-top: 2.1em; padding-top: .6em; }
.hf-prose h3 { font-size: 1.28rem; margin-top: 1.7em; }
.hf-prose h2::before { content: ''; display: block; width: 2.4rem; height: 3px; border-radius: 3px; background: var(--hf-amber); margin-bottom: .55rem; }
.hf-prose p, .hf-prose ul, .hf-prose ol { max-width: 68ch; }
.hf-prose ul, .hf-prose ol { padding-left: 1.4rem; display: grid; gap: .45rem; }
.hf-prose li::marker { color: var(--hf-amber-deep); font-weight: 700; }
.hf-prose blockquote {
  border-left: 3px solid var(--hf-amber); background: var(--hf-cream-bis);
  padding: 1rem 1.4rem; border-radius: 0 var(--hf-radius-sm) var(--hf-radius-sm) 0;
  font-style: italic; color: var(--hf-text);
}
[data-theme='dark'] .hf-prose blockquote { background: #122019; }
.hf-prose table { width: 100%; border-collapse: collapse; font-size: .95rem; background: var(--hf-white); border-radius: var(--hf-radius-sm); overflow: hidden; box-shadow: var(--hf-shadow); }
.hf-prose .table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-inline: 0; }
.hf-prose .table-scroll table { min-width: 620px; }
.hf-prose thead { background: var(--hf-green-solid); color: #FAF6EF; }
/* Couleur posée directement sur les th : Bulma colore déjà table th en sombre
   (table th { color: var(--bulma-text-strong) }), l'héritage ne suffit pas. */
.hf-prose thead th, .hf-prose thead td { color: #FAF6EF; }
.hf-prose th { text-align: left; font-weight: 620; }
.hf-prose th, .hf-prose td { padding: .65rem .9rem; }
.hf-prose tbody tr:nth-child(even) { background: color-mix(in srgb, var(--hf-cream-bis) 55%, transparent); }
.hf-prose img { border-radius: var(--hf-radius-sm); }
.hf-prose hr { border: none; border-top: 1px solid var(--hf-border); margin: 2.4em 0; }
/* encart « Le conseil du hibou » */
.hf-prose .hibou-tip, .hf-tip {
  display: flex; gap: 1rem; align-items: flex-start;
  background: linear-gradient(135deg, var(--hf-green-tint), color-mix(in srgb, var(--hf-green-tint) 60%, var(--hf-cream)));
  border: 1px solid color-mix(in srgb, var(--hf-green-soft) 28%, transparent);
  border-radius: var(--hf-radius); padding: 1.15rem 1.35rem;
}
.hf-prose .hibou-tip::before, .hf-tip::before {
  content: ''; flex: none; width: 40px; height: 40px; border-radius: 999px;
  background: var(--hf-amber) url('/assets/img/logo.svg') center/26px no-repeat;
}
.hf-prose .hibou-tip p, .hf-tip p { margin: 0; }
.hf-prose .hibou-tip b.tip-title, .hf-tip b { display: block; font-family: var(--hf-font-title); color: var(--hf-ink); margin-bottom: .2rem; }

/* Encart « Passez à la pratique » */
.hf-practice {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1.1rem;
  background: var(--hf-green-solid); color: #EDF3EC; border-radius: var(--hf-radius);
  padding: 1.3rem 1.5rem; margin: 2.4rem 0;
}
.hf-practice__icon { width: 48px; height: 48px; flex: none; border-radius: 12px; background: rgba(250, 246, 239, .12); display: grid; place-items: center; }
.hf-practice__icon svg { width: 26px; height: 26px; color: var(--hf-amber); }
.hf-practice b { display: block; color: #FAF6EF; font-family: var(--hf-font-title); font-size: 1.12rem; }
.hf-practice p { margin: .15rem 0 0; font-size: .9rem; color: #BCCDBE; }
.hf-practice .btn { margin-left: auto; }
@media (max-width: 640px) { .hf-practice .btn { margin-left: 0; } }

/* FAQ de fin d'article (accordéons) */
.hf-faq { margin: 2.4rem 0; }
.hf-faq h2 { font-size: 1.5rem; margin-bottom: 1.1rem; }
.hf-faq__item {
  background: var(--hf-white); border: 1px solid var(--hf-border); border-radius: var(--hf-radius-sm);
  margin-bottom: .6rem; overflow: hidden; transition: border-color .15s ease;
}
.hf-faq__item[open] { border-color: var(--hf-green-soft); }
.hf-faq__item summary {
  cursor: pointer; padding: .9rem 1.15rem; font-weight: 600; color: var(--hf-ink);
  list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  font-size: .98rem;
}
.hf-faq__item summary::-webkit-details-marker { display: none; }
.hf-faq__item summary::after {
  content: '+'; flex: none; width: 22px; height: 22px; border-radius: 999px;
  background: var(--hf-green-tint); color: var(--hf-green-deep);
  display: grid; place-items: center; font-weight: 700; font-size: 1rem; line-height: 1;
  transition: transform .2s ease;
}
[data-theme='dark'] .hf-faq__item summary::after { color: var(--hf-green); }
.hf-faq__item[open] summary::after { transform: rotate(45deg); }
.hf-faq__item summary:hover { color: var(--hf-green-deep); }
[data-theme='dark'] .hf-faq__item summary:hover { color: var(--hf-green); }
.hf-faq__item p { margin: 0; padding: 0 1.15rem 1rem; color: var(--hf-text); font-size: .95rem; line-height: 1.6; }

/* Barre like / partage */
.hf-reactions { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1rem; padding: 1.4rem 0; border-top: 1px solid var(--hf-border); border-bottom: 1px solid var(--hf-border); margin: 2.4rem 0; }
.hf-like {
  display: inline-flex; align-items: center; gap: .55rem; padding: .6rem 1.15rem;
  border-radius: 999px; border: 2px solid var(--hf-border); background: var(--hf-white);
  font-family: var(--hf-font-body); font-weight: 650; font-size: .95rem; color: var(--hf-text); cursor: pointer;
  transition: all .16s ease;
}
.hf-like:hover { border-color: #E4736B; color: #C03A31; }
.hf-like.is-on { background: #FBEAE9; border-color: #E4736B; color: #C03A31; }
[data-theme='dark'] .hf-like.is-on { background: #381D1A; }
.hf-like svg { width: 19px; height: 19px; }
.hf-like.is-on svg { animation: hf-pop .38s ease; }
@keyframes hf-pop { 0% { transform: scale(1); } 40% { transform: scale(1.45); } 100% { transform: scale(1); } }
.hf-share { display: flex; align-items: center; gap: .45rem; margin-left: auto; }
.hf-share > span { font-size: .85rem; color: var(--hf-muted); margin-right: .2rem; }
.hf-sharebtn {
  width: 38px; height: 38px; border-radius: 999px; border: 1px solid var(--hf-border);
  display: inline-grid; place-items: center; color: var(--hf-muted); background: var(--hf-white);
  transition: all .15s ease; cursor: pointer; text-decoration: none;
}
.hf-sharebtn:hover { background: var(--hf-green-solid); color: #FAF6EF; border-color: var(--hf-green-solid); transform: translateY(-2px); }
.hf-sharebtn svg { width: 17px; height: 17px; }

/* Étapes précédente / suivante */
.hf-prevnext { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; margin: 2.4rem 0; }
@media (max-width: 700px) { .hf-prevnext { grid-template-columns: 1fr; } }
.hf-prevnext a {
  display: flex; flex-direction: column; gap: .3rem; padding: 1.1rem 1.25rem;
  background: var(--hf-white); border: 1px solid var(--hf-border); border-radius: var(--hf-radius);
  text-decoration: none; transition: transform .16s ease, box-shadow .16s ease;
}
.hf-prevnext a:hover { transform: translateY(-3px); box-shadow: var(--hf-shadow-lift); }
.hf-prevnext small { font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--hf-amber-deep); }
[data-theme='dark'] .hf-prevnext small { color: var(--hf-amber); }
.hf-prevnext b { font-family: var(--hf-font-title); color: var(--hf-ink); font-weight: 640; font-size: 1.02rem; line-height: 1.3; }
.hf-prevnext a.next { text-align: right; align-items: flex-end; gap: .45rem; }
/* L'étape suivante saute aux yeux : carte verte, bouton ambre */
.hf-prevnext a.next { background: linear-gradient(140deg, #1B4332, #122F23); border-color: #1B4332; padding: 1.15rem 1.25rem; }
.hf-prevnext a.next small { color: var(--hf-amber); }
.hf-prevnext a.next b { color: #FAF6EF; }
.hf-prevnext a.next:hover { box-shadow: 0 14px 34px -12px rgba(18, 47, 35, .6); }
.hf-prevnext a.next .btn { pointer-events: none; }

/* Sidebar article */
.hf-aside { position: sticky; top: 96px; display: grid; gap: 1.5rem; }
@media (max-width: 980px) { .hf-aside { position: static; } }
.hf-toc { border-left: 3px solid var(--hf-border); padding-left: 1.1rem; }
.hf-toc h2 { font-family: var(--hf-font-body); font-size: .78rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--hf-muted); margin-bottom: .7rem; }
.hf-toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.hf-toc a { display: block; font-size: .88rem; line-height: 1.4; color: var(--hf-muted); text-decoration: none; padding: .18rem 0 .18rem .4rem; border-left: 2px solid transparent; margin-left: calc(-1.1rem - 2px); }
.hf-toc a:hover { color: var(--hf-green-deep); }
.hf-toc a.lvl-3 { padding-left: 1.4rem; font-size: .84rem; }
.hf-toc a.is-active { color: var(--hf-green-deep); border-left-color: var(--hf-amber); font-weight: 600; }
[data-theme='dark'] .hf-toc a:hover, [data-theme='dark'] .hf-toc a.is-active { color: var(--hf-green); }
.hf-aside-tool { background: var(--hf-white); border: 1px solid var(--hf-border); border-radius: var(--hf-radius); padding: 1.25rem; }
.hf-aside-tool b { display: block; font-family: var(--hf-font-title); color: var(--hf-ink); font-size: 1.05rem; }
.hf-aside-tool p { font-size: .87rem; color: var(--hf-muted); margin: .35rem 0 .9rem; }

/* ── Commentaires ─────────────────────────────────────────────────────────── */
.hf-comments { max-width: 720px; }
.hf-comments h2 { font-size: 1.5rem; margin-bottom: 1.4rem; }
.hf-comment { display: flex; gap: .95rem; padding: 1.15rem 0; border-bottom: 1px solid var(--hf-border); }
.hf-comment__body b { color: var(--hf-ink); font-weight: 650; }
.hf-comment__body time { font-size: .8rem; color: var(--hf-muted); margin-left: .5rem; }
.hf-comment__body p { margin: .3rem 0 0; font-size: .96rem; white-space: pre-line; }
.hf-comment--reply { margin-left: 3.2rem; }
@media (max-width: 600px) { .hf-comment--reply { margin-left: 1.2rem; } }
.hf-comment-form { background: var(--hf-white); border: 1px solid var(--hf-border); border-radius: var(--hf-radius); padding: 1.4rem; margin-top: 1.6rem; }
.hf-comment-form h3 { font-size: 1.15rem; margin-bottom: .9rem; }
.hf-comment-form label { display: block; font-size: .85rem; font-weight: 600; color: var(--hf-text); margin: .8rem 0 .3rem; }
.hf-comment-form input[type='text'], .hf-comment-form input[type='email'], .hf-comment-form textarea {
  width: 100%; padding: .7rem .95rem; border-radius: var(--hf-radius-sm);
  border: 1.5px solid var(--hf-border); background: var(--hf-cream); font-family: var(--hf-font-body); font-size: .98rem; color: var(--hf-ink);
}
.hf-comment-form textarea { min-height: 120px; resize: vertical; }
.hf-comment-form input:focus, .hf-comment-form textarea:focus { outline: none; border-color: var(--hf-green-soft); }
.hp-field { position: absolute !important; left: -9999px !important; opacity: 0; height: 0; width: 0; }

/* ── Quiz ─────────────────────────────────────────────────────────────────── */
.hf-quiz { max-width: 680px; margin-inline: auto; }
.hf-quiz__progress { display: flex; gap: .45rem; justify-content: center; margin-bottom: 1.6rem; }
.hf-quiz__progress span { width: 34px; height: 5px; border-radius: 999px; background: var(--hf-border); transition: background .25s ease; }
.hf-quiz__progress span.done { background: var(--hf-amber); }
.hf-quiz__card { background: var(--hf-white); border: 1px solid var(--hf-border); border-radius: calc(var(--hf-radius) + 4px); box-shadow: var(--hf-shadow); padding: clamp(1.5rem, 4vw, 2.6rem); }
.hf-quiz__card small.qn { font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--hf-amber-deep); }
[data-theme='dark'] .hf-quiz__card small.qn { color: var(--hf-amber); }
.hf-quiz__card h2 { font-size: clamp(1.3rem, 3vw, 1.75rem); margin: .5rem 0 1.4rem; }
.hf-quiz__opts { display: grid; gap: .7rem; }
.hf-quiz__opt {
  display: flex; align-items: center; gap: .8rem; padding: .95rem 1.15rem;
  border: 2px solid var(--hf-border); border-radius: var(--hf-radius-sm); cursor: pointer;
  font-weight: 550; transition: all .15s ease; background: var(--hf-cream);
}
.hf-quiz__opt:hover { border-color: var(--hf-green-soft); background: var(--hf-green-tint); transform: translateX(4px); }
.hf-quiz__opt input { accent-color: var(--hf-green); width: 18px; height: 18px; }
.hf-quiz__foot { display: flex; justify-content: space-between; align-items: center; margin-top: 1.4rem; }
.hf-quiz__result { text-align: center; }
.hf-quiz__result .owl-badge { width: 92px; height: 92px; margin: 0 auto 1.1rem; border-radius: 999px; background: var(--hf-green-solid); display: grid; place-items: center; box-shadow: var(--hf-shadow-lift); }
.hf-quiz__result .owl-badge img { width: 60px; height: 60px; }
.hf-quiz__result h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); margin-bottom: .5rem; }
.hf-quiz__result p.who { color: var(--hf-muted); max-width: 48ch; margin: 0 auto 1.4rem; }
.hf-quiz__result .cta-col { display: grid; gap: .7rem; max-width: 380px; margin: 0 auto 1.6rem; }

/* ── Recherche ────────────────────────────────────────────────────────────── */
.hf-searchbtn-kbd { margin-left: .3rem; font-size: .68rem; border: 1px solid var(--hf-border); border-radius: 5px; padding: .1rem .35rem; color: var(--hf-muted); }
@media (max-width: 920px) { .hf-searchbtn-kbd { display: none; } }
.hf-search-overlay {
  position: fixed; inset: 0; z-index: 80; display: none;
  background: rgba(15, 29, 22, .55); backdrop-filter: blur(6px);
  padding: clamp(1rem, 10vh, 6rem) 1rem 1rem;
}
.hf-search-overlay.is-open { display: block; }
.hf-search-panel {
  max-width: 640px; margin-inline: auto; background: var(--hf-white);
  border-radius: var(--hf-radius); box-shadow: var(--hf-shadow-lift); overflow: hidden;
}
.hf-search-bar { display: flex; align-items: center; gap: .8rem; padding: .9rem 1.2rem; border-bottom: 1px solid var(--hf-border); }
.hf-search-bar svg { width: 20px; height: 20px; color: var(--hf-muted); flex: none; }
.hf-search-bar input { flex: 1; border: none; outline: none; font-size: 1.08rem; background: transparent; color: var(--hf-ink); font-family: var(--hf-font-body); }
.hf-search-results { max-height: min(56vh, 480px); overflow-y: auto; padding: .5rem; }
.hf-search-results .group { font-size: .72rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--hf-muted); padding: .7rem .8rem .35rem; }
.hf-search-item { display: flex; flex-direction: column; gap: .1rem; padding: .65rem .8rem; border-radius: var(--hf-radius-sm); text-decoration: none; }
.hf-search-item:hover, .hf-search-item.is-cursor { background: var(--hf-green-tint); }
.hf-search-item b { color: var(--hf-ink); font-weight: 620; }
.hf-search-item small { color: var(--hf-muted); font-size: .84rem; }
.hf-search-empty { padding: 2rem 1rem; text-align: center; color: var(--hf-muted); font-size: .95rem; }
.hf-search-foot { border-top: 1px solid var(--hf-border); padding: .55rem 1rem; display: flex; gap: 1rem; font-size: .74rem; color: var(--hf-muted); }
.hf-search-foot kbd { border: 1px solid var(--hf-border); border-radius: 4px; padding: 0 .3rem; background: var(--hf-cream); }

/* ── Page / listing générique ─────────────────────────────────────────────── */
.hf-page-head { padding: clamp(1.8rem, 5vw, 3.4rem) 0 1.6rem; }
.hf-page-head h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); margin: .6rem 0 .7rem; }
.hf-page-head p { color: var(--hf-muted); max-width: 64ch; }

/* ── Erreur 404 ───────────────────────────────────────────────────────────── */
.hf-404 { text-align: center; padding: clamp(3rem, 10vw, 7rem) 0; }
.hf-404 .code { font-family: var(--hf-font-title); font-size: clamp(4.5rem, 14vw, 8rem); font-weight: 680; color: var(--hf-green); line-height: 1; }
.hf-404 .code em { color: var(--hf-amber); font-style: italic; }
.hf-404 h1 { font-size: clamp(1.4rem, 3vw, 2rem); margin: .8rem 0 .6rem; }
.hf-404 p { color: var(--hf-muted); max-width: 46ch; margin: 0 auto 1.6rem; }

/* ══════════════════════════════════════════════════════════════════════════
   HARMONISATION DES OUTILS — composants Bulma restylés dans la marque
   (les pages calculateurs gardent leur structure Bulma, mais adoptent
   la même langue visuelle que le blog)
   ══════════════════════════════════════════════════════════════════════════ */

/* En-tête des pages calculateur */
.hf-tool-head { display: flex; gap: 1.1rem; align-items: flex-start; flex-wrap: wrap; margin-bottom: 2.1rem; }
.hf-tool-head .hf-tool__icon { width: 54px; height: 54px; border-radius: 14px; background: var(--hf-green-solid); color: #FAF6EF; display: grid; place-items: center; flex: none; box-shadow: var(--hf-shadow); }
.hf-tool-head h1.title { font-size: clamp(1.55rem, 3vw, 2.05rem); margin: .2rem 0 .35rem; text-align: left; }
.hf-tool-head p { color: var(--hf-muted); max-width: 64ch; text-align: left; }

/* Titres et textes Bulma → voix éditoriale du site */
.title { font-weight: 640; letter-spacing: -0.012em; }
.title:not(.hf-tool-head .title) { color: var(--hf-ink); }
.subtitle { color: var(--hf-muted); }
.content h1, .content h2, .content h3 { font-family: var(--hf-font-title); color: var(--hf-ink); }
.content h2:not(.title) { font-size: 1.45rem; margin-top: 1.9em; }
.content h3:not(.title) { font-size: 1.2rem; margin-top: 1.5em; }
.content p, .content li { color: var(--hf-text); }
.content strong { color: var(--hf-ink); }

/* Boutons → pilules de la marque */
.button.is-link, .button.is-primary {
  background: var(--hf-green); color: #FAF6EF;
  border-radius: 999px; font-weight: 600; font-family: var(--hf-font-body);
  border: 2px solid transparent; padding: calc(.5em + 2px) 1.45em;
  box-shadow: 0 10px 24px -10px rgba(27, 67, 50, .5);
  transition: transform .16s ease, background .16s ease, box-shadow .16s ease;
}
.button.is-link:hover, .button.is-primary:hover {
  background: var(--hf-green-deep); color: #FAF6EF; transform: translateY(-1px);
}
[data-theme='dark'] .button.is-link, [data-theme='dark'] .button.is-primary { background: var(--hf-green); color: #0F1D16; }
[data-theme='dark'] .button.is-link:hover, [data-theme='dark'] .button.is-primary:hover { background: #96DCB0; }
.button.is-link.is-light, .button.is-primary.is-light, .button.is-light {
  background: transparent; color: var(--hf-green-deep); border: 2px solid var(--hf-green-soft);
  box-shadow: none; border-radius: 999px; font-weight: 600;
}
.button.is-link.is-light:hover, .button.is-light:hover { background: var(--hf-green-tint); color: var(--hf-green-deep); }
[data-theme='dark'] .button.is-light { color: var(--hf-green); border-color: var(--hf-green); background: transparent; }
.button.is-large { font-size: 1.05rem; }

/* Formulaires */
.input, .textarea, .select select {
  border-radius: var(--hf-radius-sm); border: 1.5px solid var(--hf-border);
  background: var(--hf-white); color: var(--hf-ink);
  font-family: var(--hf-font-body); transition: border-color .15s ease, box-shadow .15s ease;
}
[data-theme='dark'] .input, [data-theme='dark'] .textarea, [data-theme='dark'] .select select { background: #0D1B14; border-color: #3A5245; }
[data-theme='dark'] .input::placeholder, [data-theme='dark'] .textarea::placeholder { color: #74857A; }
.input:focus, .textarea:focus, .select select:focus,
.input:active, .textarea:active, .select select:active {
  border-color: var(--hf-green-soft); box-shadow: 0 0 0 3px color-mix(in srgb, var(--hf-green-soft) 18%, transparent);
}
[data-theme='dark'] .input:focus, [data-theme='dark'] .textarea:focus { border-color: var(--hf-green); }
.label { color: var(--hf-ink); font-weight: 600; font-size: .92rem; }
.help { color: var(--hf-muted); }

/* Carte de formulaire */
.box {
  background: var(--hf-white); border-radius: var(--hf-radius);
  border: 1px solid var(--hf-border); box-shadow: var(--hf-shadow);
}
[data-theme='dark'] .box { background: #122019; }

/* Fil d'Ariane (composant unique, markup Bulma, partout sur le site) */
.breadcrumb { margin: 1.3rem 0 1.2rem; }
.breadcrumb a { color: var(--hf-muted); font-size: .86rem; }
.breadcrumb a:hover { color: var(--hf-green-deep); }
[data-theme='dark'] .breadcrumb a:hover { color: var(--hf-green); }
.breadcrumb li.is-active a { color: var(--hf-text); font-weight: 550; }
/* Sur les outils, la section Bulma ne doit pas ajouter d'air au-dessus du
   fil d'Ariane : même distance sous l'en-tête que sur les pages du blog
   (padding explicite — insensible à l'effondrement des marges) */
main > section.section:first-child { padding-top: 1.3rem; }
main > section.section:first-child .breadcrumb { margin-top: 0; }

/* Notifications et messages → teintes de la marque (plus de bleu Bulma) */
.notification { border-radius: var(--hf-radius-sm); }
.notification.is-light, .notification.is-info.is-light, .notification.is-success.is-light, .notification.is-warning.is-light, .notification.is-danger.is-light { background: var(--hf-cream-bis); color: var(--hf-text); }
[data-theme='dark'] .notification.is-light { background: #122019; }
.message { border-radius: var(--hf-radius-sm); overflow: hidden; }
.message.is-info { background: var(--hf-green-tint); }
.message.is-info .message-body { color: var(--hf-text); border: none; }
[data-theme='dark'] .message.is-info { background: #1C3129; }
.message.is-success { background: #E2F2E4; }
.message.is-success .message-body { color: #1F5B37; border: none; }
[data-theme='dark'] .message.is-success { background: #173425; }
[data-theme='dark'] .message.is-success .message-body { color: #9ADBA9; }
.message.is-warning { background: #FDF3DC; }
.message.is-warning .message-body { color: #6E5A22; border: none; }
[data-theme='dark'] .message.is-warning { background: #241F12; }
[data-theme='dark'] .message.is-warning .message-body { color: #D8C48E; }
.message.is-danger { background: #FBE4E1; }
.message.is-danger .message-body { color: #96261C; border: none; }
[data-theme='dark'] .message.is-danger { background: #381D18; }
[data-theme='dark'] .message.is-danger .message-body { color: #F0A69C; }
.message .message-body { border: none; background-color: transparent; }

/* Tableaux → même style que les tableaux d'articles */
.table { border-radius: var(--hf-radius-sm); overflow: hidden; box-shadow: var(--hf-shadow); background: var(--hf-white); }
[data-theme='dark'] .table { background: #122019; }
.table thead { background: var(--hf-green-solid); }
.table thead th, .content table thead th { color: #FAF6EF; font-weight: 620; border: none; }
.table td, .table th { border-color: var(--hf-border); color: var(--hf-text); }
.table.is-striped tbody tr:nth-child(even) { background: color-mix(in srgb, var(--hf-cream-bis) 60%, transparent); }
[data-theme='dark'] .table.is-striped tbody tr:nth-child(even) { background: #0D1B14; }

/* Espacement des sections outils */
.section { padding: clamp(1.6rem, 4vw, 3rem) 1.5rem; }
.section > .container > .breadcrumb { margin-top: .4rem; }
.breadcrumb + .hf-tool-head, .breadcrumb + div > .hf-tool-head { margin-top: 1.1rem; }

/* ── Écran de connexion admin ─────────────────────────────────────────────── */
.hf-login { min-height: calc(100vh - 72px - 340px); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.1rem; padding: 3rem 1.2rem; }
.hf-login__card {
  width: min(430px, 100%); text-align: center;
  background: var(--hf-white); border: 1px solid var(--hf-border); border-radius: calc(var(--hf-radius) + 6px);
  box-shadow: var(--hf-shadow-lift); padding: 2.3rem 2rem 2rem;
}
.hf-login__owl {
  width: 74px; height: 74px; margin: 0 auto 1.1rem; border-radius: 999px;
  background: var(--hf-green-solid); display: grid; place-items: center; box-shadow: var(--hf-shadow);
}
.hf-login__card .hf-overline { justify-content: center; }
.hf-login__card .hf-overline::before { display: none; }
.hf-login__card h1 { font-size: 1.65rem; margin: .35rem 0 .3rem; }
.hf-login__card > p { color: var(--hf-muted); font-size: .93rem; margin-bottom: 1.4rem; }
.hf-login__card label { display: block; text-align: left; font-size: .85rem; font-weight: 600; margin-bottom: .55rem; color: var(--hf-text); }
.hf-login__row { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.hf-login__row input[type='password'] {
  flex: 1; min-width: 190px; padding: .8rem 1.15rem; border-radius: 999px;
  border: 2px solid var(--hf-border); background: var(--hf-cream); color: var(--hf-ink);
  font-size: 1rem; font-family: var(--hf-font-body); letter-spacing: .08em;
}
.hf-login__row input[type='password']:focus { outline: none; border-color: var(--hf-green-soft); box-shadow: 0 0 0 3px color-mix(in srgb, var(--hf-green-soft) 18%, transparent); }
[data-theme='dark'] .hf-login__row input[type='password'] { background: #0D1B14; border-color: #3A5245; }
.hf-login__hint { font-size: .8rem; color: var(--hf-muted); }

/* ── Éditeur EasyMDE (admin) ──────────────────────────────────────────────── */
.EasyMDEContainer .editor-toolbar { border: 1.5px solid var(--hf-border); border-radius: var(--hf-radius-sm) var(--hf-radius-sm) 0 0; background: var(--hf-cream-bis); }
[data-theme='dark'] .EasyMDEContainer .editor-toolbar { background: #0D1B14; }
.EasyMDEContainer .editor-toolbar button { color: var(--hf-muted); }
.EasyMDEContainer .editor-toolbar button:hover, .EasyMDEContainer .editor-toolbar button.active { background: var(--hf-green-tint); color: var(--hf-green-deep); border-color: transparent; }
[data-theme='dark'] .EasyMDEContainer .editor-toolbar button:hover { color: var(--hf-green); }
.EasyMDEContainer .CodeMirror { border: 1.5px solid var(--hf-border); border-top: none; border-radius: 0 0 var(--hf-radius-sm) var(--hf-radius-sm); background: var(--hf-white); color: var(--hf-text); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .92rem; min-height: 420px; }
[data-theme='dark'] .EasyMDEContainer .CodeMirror { background: #0D1B14; color: var(--hf-text); }
[data-theme='dark'] .EasyMDEContainer .CodeMirror .CodeMirror-cursor { border-left-color: var(--hf-amber); }
[data-theme='dark'] .EasyMDEContainer .CodeMirror-selected { background: #24382D; }
.EasyMDEContainer .editor-preview { background: var(--hf-white); padding: 1.2rem 1.6rem; font-family: var(--hf-font-body); color: var(--hf-text); }
[data-theme='dark'] .EasyMDEContainer .editor-preview { background: #122019; }
.EasyMDEContainer .editor-preview h1, .EasyMDEContainer .editor-preview h2, .EasyMDEContainer .editor-preview h3 { font-family: var(--hf-font-title); color: var(--hf-ink); }
.EasyMDEContainer .editor-statusbar { color: var(--hf-muted); }

/* Largeur : même gabarit centré que le blog (1128px), fini le pleine largeur Bulma.
   La chaîne :not() égal la spécificité des règles par point de rupture de Bulma. */
.container,
.container:not(.is-max-desktop):not(.is-max-widescreen) {
  max-width: 1128px;
  margin-inline: auto;
  padding-inline: clamp(1.1rem, 4vw, 2rem);
}

/* ── Divers ───────────────────────────────────────────────────────────────── */
.hf-badge-new { background: var(--hf-amber); color: #14281D; font-size: .68rem; font-weight: 800; letter-spacing: .08em; border-radius: 999px; padding: .18rem .55rem; vertical-align: middle; }
.hidden { display: none !important; }
@media (max-width: 920px) { .hidden-mobile { display: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}
