/* Formulaires & Ressources — Ibrahim Togola
   Les couleurs se règlent ici, ou dans le thème via ces variables. */
.itf-form, .itf-resources {
  --itf-ink: #16181D;
  --itf-muted: #4B4F58;
  --itf-line: #C9C6BD;
  --itf-bg: #FFFFFF;
  --itf-accent: #F2C200;
  --itf-ok: #1E6B3A;
  --itf-err: #A12622;
  color: var(--itf-ink);
  font: inherit;
}
.itf-form { display: flex; flex-direction: column; gap: 14px; max-width: 760px; }
.itf-form p { margin: 0; }
.itf-title { margin: 0 0 4px; }
.itf-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 14px; }
.itf-field { display: flex; flex-direction: column; gap: 6px; }
.itf-field label { font-size: 0.92em; font-weight: 600; }
.itf-form input[type=text], .itf-form input[type=email], .itf-form input[type=tel], .itf-form select, .itf-form textarea {
  width: 100%; box-sizing: border-box; min-height: 50px; padding: 12px 14px;
  border: 1.5px solid var(--itf-line); border-radius: 0; background: var(--itf-bg);
  color: var(--itf-ink); font: inherit; font-size: 16px;
}
.itf-form textarea { min-height: 140px; resize: vertical; }
.itf-form input:focus, .itf-form select:focus, .itf-form textarea:focus { outline: 2px solid var(--itf-ink); outline-offset: 1px; border-color: var(--itf-ink); }
.itf-consent label { display: flex; gap: 10px; align-items: flex-start; font-size: 0.92em; line-height: 1.45; cursor: pointer; }
.itf-consent input { width: 18px; height: 18px; margin-top: 2px; flex: none; accent-color: var(--itf-ink); }
.itf-btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px;
  background: var(--itf-ink); color: #FFFFFF; border: 0; border-radius: 0; font: inherit; font-weight: 600;
  font-size: 16px; text-decoration: none; cursor: pointer;
}
.itf-btn:hover, .itf-btn:focus { background: #000; color: #FFF; }
.itf-btn[disabled] { opacity: .6; cursor: wait; }
.itf-btn-dl { background: var(--itf-accent); color: var(--itf-ink); }
.itf-btn-dl:hover, .itf-btn-dl:focus { background: #E0B300; color: var(--itf-ink); }
.itf-note { font-size: 0.85em; color: var(--itf-muted); }
.itf-feedback:empty { display: none; }
.itf-feedback { padding: 14px 16px; border-left: 4px solid currentColor; display: flex; flex-direction: column; gap: 10px; }
.itf-feedback.is-ok { color: var(--itf-ok); background: #EEF6F0; }
.itf-feedback.is-err { color: var(--itf-err); background: #FBEFEE; }
.itf-feedback p { margin: 0; color: inherit; }
.itf-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.itf-resources { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 40px; }
.itf-resource { display: flex; flex-direction: column; gap: 18px; border-top: 2px solid var(--itf-ink); padding-top: 22px; }
.itf-cover-wrap img { display: block; width: 100%; height: auto; }
.itf-resource-body { display: flex; flex-direction: column; gap: 12px; }
.itf-meta { margin: 0; font-size: 0.88em; color: var(--itf-muted); }
.itf-resource-title { margin: 0; font-size: 1.5em; line-height: 1.2; }
.itf-resource-desc { margin: 0; color: var(--itf-muted); line-height: 1.6; }

.itf-banner { padding: 14px 16px; margin: 0 0 24px; border-left: 4px solid currentColor; }
.itf-banner.is-ok { color: #1E6B3A; background: #EEF6F0; }
.itf-banner.is-err { color: #A12622; background: #FBEFEE; }

/* Blog */
.itf-blog { --itf-ink: #111111; --itf-accent: #F2C200; --itf-muted: #4A463E; display: flex; flex-direction: column; gap: 32px; }
.itf-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.itf-filter { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1.5px solid var(--itf-ink); border-radius: 999px; color: var(--itf-ink); text-decoration: none; font-weight: 600; font-size: 15px; }
.itf-filter:hover, .itf-filter.is-active { background: var(--itf-ink); color: #FFFFFF; }
.itf-posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 22px; }
.itf-post { background: #FFFFFF; border: 1px solid #E2DCCD; border-radius: 22px; padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.itf-post-meta { margin: 0; font-size: 13px; font-weight: 600; color: #6B5A00; letter-spacing: .06em; text-transform: uppercase; }
.itf-post-title { margin: 0; font-size: 22px; line-height: 1.25; }
.itf-post-title a { color: var(--itf-ink); text-decoration: none; }
.itf-post-title a:hover { text-decoration: underline; }
.itf-post-excerpt { margin: 0; font-size: 15px; line-height: 1.6; color: var(--itf-muted); }
.itf-post-more { margin-top: auto; font-weight: 600; font-size: 15px; color: var(--itf-ink); min-height: 32px; display: inline-flex; align-items: center; }
.itf-pager { display: flex; flex-wrap: wrap; gap: 8px; }
.itf-page { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; border: 1px solid #CFC9BA; border-radius: 10px; color: var(--itf-ink); text-decoration: none; font-weight: 600; }
.itf-page.is-active { background: var(--itf-accent); border-color: var(--itf-accent); }
