/* La Boîte à Outils Marketing : direction « Carnet d'atelier », version modernisée. */

@font-face { font-family: "Bricolage Grotesque"; src: url("../fonts/bricolage-grotesque-opsz.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("../fonts/atkinson-hyperlegible-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("../fonts/atkinson-hyperlegible-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("../fonts/atkinson-hyperlegible-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("../fonts/atkinson-hyperlegible-latin-700-italic.woff2") format("woff2"); font-weight: 700; font-style: italic; font-display: swap; }

:root {
  --bg: #FAF8F4;
  --surface: #FFFFFF;
  --ink: #1F2328;
  --ink-soft: #2B3036;
  --muted: #5B6169;
  --accent: #E2572B;
  --accent-strong: #B8431C;
  --accent-light: #F2A07F;
  --link: #2F5A86;
  --tint-accent: #FBE6DC;
  --tint-support: #E4ECF4;
  --on-ink: #FAF8F4;
  --on-ink-muted: #C9C6BF;
  --font-display: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Atkinson Hyperlegible", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1200px;
  --gutter: clamp(18px, 4vw, 40px);
  --measure: 700px;
  --r: 8px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --shadow-soft: 0 1px 2px rgba(31, 35, 40, .05), 0 12px 32px rgba(60, 48, 36, .07);
  --shadow-lift: 0 2px 6px rgba(31, 35, 40, .07), 0 22px 48px rgba(60, 48, 36, .12);
  --section: clamp(72px, 10vw, 136px);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 18px; line-height: 1.65; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); color: var(--ink); font-weight: 700; letter-spacing: -0.018em; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 4.6vw, 3.6rem); line-height: 1.03; margin: 0 0 .45em; letter-spacing: -0.028em; }
h2 { font-size: clamp(1.6rem, 2.7vw, 2.15rem); line-height: 1.1; margin: 2em 0 .55em; }
h3 { font-size: 1.3rem; line-height: 1.2; margin: 1.7em 0 .45em; }
p { margin: 0 0 1.1em; text-wrap: pretty; }
strong, b { font-weight: 700; }
a { color: var(--link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .22em; transition: color .2s var(--ease), text-decoration-color .2s var(--ease); }
a:hover, a:focus { color: var(--accent-strong); text-decoration-color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 3px; }
::selection { background: var(--tint-accent); color: var(--ink); }
code, kbd { font-family: var(--font-body); background: var(--tint-support); padding: .1em .35em; border-radius: 4px; font-size: .94em; }
img { border-radius: var(--r); max-width: 100%; height: auto; }

.bom-wrap { max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-left: auto; margin-right: auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.bom-skip { position: absolute; left: -9999px; }
.bom-skip:focus { left: 1rem; top: 1rem; z-index: 80; background: var(--surface); padding: .5em 1em; }

/* ---------- En-tête ---------- */
.bom-header { position: sticky; top: 0; z-index: 60; background: rgba(250, 248, 244, .92); -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px); transition: box-shadow .25s var(--ease); }
.bom-header.is-scrolled { box-shadow: 0 1px 0 rgba(31, 35, 40, .06), 0 8px 24px rgba(31, 35, 40, .05); }
.bom-header__row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 16px; padding-bottom: 16px; }
.bom-brand, .bom-brand:hover { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.bom-brand svg { width: 34px; height: 34px; flex: none; }
.bom-brand__name { font-family: var(--font-display); font-size: 1.22rem; font-weight: 750; letter-spacing: -0.025em; line-height: 1.05; }
.bom-brand__name span { display: block; font-weight: 500; color: var(--muted); font-size: .86em; letter-spacing: -0.01em; }

.bom-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; }
.bom-nav a { display: block; font-family: var(--font-display); font-weight: 600; font-size: .98rem; color: var(--ink); text-decoration: none; padding: 0 13px; line-height: 42px; transition: color .2s var(--ease); }
.bom-nav li:not(.bom-nav-cta) a:hover, .bom-nav li:not(.bom-nav-cta) a:focus, .bom-nav li:not(.bom-nav-cta) a[aria-current] { color: var(--accent-strong); }
.bom-nav .bom-nav-cta { margin-left: 10px; }
.bom-nav .bom-nav-cta a { background: var(--ink); color: var(--on-ink); border-radius: var(--r); line-height: 40px; padding: 0 16px; transition: background-color .2s var(--ease); }
.bom-nav .bom-nav-cta a:hover, .bom-nav .bom-nav-cta a:focus { background: var(--accent-strong); color: #FFFFFF; }
.bom-menu-toggle { display: none; font-family: var(--font-display); font-weight: 600; font-size: 1rem; color: var(--ink); background: transparent; border: 0; padding: 0 6px; line-height: 44px; cursor: pointer; }
.bom-menu-toggle:hover { color: var(--accent-strong); }
.bom-menu-toggle svg { width: 20px; height: 20px; vertical-align: -4px; margin-right: 6px; }
@media (min-width: 769px) and (max-width: 1180px) {
  .bom-nav a { padding: 0 8px; font-size: .92rem; }
  .bom-brand__name { font-size: 1.08rem; }
}
@media (max-width: 768px) {
  .bom-header__row { flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px; }
  .bom-menu-toggle { display: inline-block; }
  .bom-nav { display: none; flex-basis: 100%; }
  .bom-nav.is-open { display: block; }
  .bom-nav ul { flex-direction: column; align-items: stretch; padding: 8px 0 16px; }
  .bom-nav a { line-height: 46px; padding-left: 0; }
  .bom-nav .bom-nav-cta { margin: 8px 0 0; }
  .bom-nav .bom-nav-cta a { padding-left: 16px; display: inline-block; }
}

/* ---------- Pages et guides : en-tête ---------- */
.bom-article { padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(64px, 8vw, 104px); }
.bom-guide .bom-article__head { margin-bottom: 2.4em; }
.bom-article__head, .bom-page .bom-prose { max-width: var(--measure); }
.bom-page .bom-article__head { margin-bottom: 1.4em; }
.bom-page--large .bom-prose { max-width: none; }
.bom-page--large .bom-prose > p, .bom-page--large .bom-prose > h2 { max-width: var(--measure); }
.bom-title { font-size: clamp(2.3rem, 4.6vw, 3.6rem); line-height: 1.03; letter-spacing: -0.028em; max-width: 20ch; }
.bom-intro { font-size: 1.2rem; line-height: 1.55; color: var(--muted); max-width: 58ch; }
.bom-prose ul, .bom-prose ol { margin: 0 0 1.2em 1.2em; padding: 0; }
.bom-prose li { margin-bottom: .4em; }
.bom-prose li::marker { color: var(--accent-strong); }

/* Fil d'Ariane et méta des guides */
.bom-crumbs { font-size: .92rem; color: var(--muted); margin: 0 0 1.4em; }
.bom-crumbs a { color: var(--muted); text-decoration: none; }
.bom-crumbs a:hover { color: var(--accent-strong); }
.bom-crumbs .bom-sep { margin: 0 .4em; opacity: .6; }
.bom-meta { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 1.3em 0 0; font-size: .95rem; color: var(--muted); }
.bom-meta a { color: var(--ink); font-weight: 700; text-decoration: none; }
.bom-meta a:hover { color: var(--accent-strong); }

/* Encadrés À faire / Coût */
.bom-box { padding: 20px 24px; border-radius: var(--r); margin: 1.7em 0; }
.bom-box--todo { background: var(--tint-accent); }
.bom-box--cost { background: var(--tint-support); }
.bom-box > strong:first-child { font-family: var(--font-display); font-weight: 750; letter-spacing: -0.01em; }

/* Tableaux : zébrures plutôt que filets */
.bom-table { margin: 1.8em 0 2.2em; overflow-x: auto; }
.bom-prose table { border-collapse: collapse; width: 100%; font-size: .96rem; line-height: 1.45; background: var(--surface); border: 0; border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow-soft); }
.bom-prose table th, .bom-prose table td { border: 0; padding: 13px 16px; text-align: left; vertical-align: top; }
.bom-prose table thead th { background: var(--ink); color: var(--on-ink); font-family: var(--font-display); font-weight: 600; }
.bom-prose table tbody tr:nth-child(even) { background: #F5F2EC; }

/* ---------- Guides : sommaire fixe ---------- */
.bom-toc { background: var(--surface); border-radius: var(--r); padding: 18px 22px; margin: 0 0 2.2em; font-size: .95rem; box-shadow: var(--shadow-soft); }
.bom-toc__title { font-family: var(--font-display); font-weight: 750; font-size: 1rem; margin: 0 0 .5em; }
.bom-toc ol { list-style: none; margin: 0; padding: 0; }
.bom-toc li { margin: 0; }
.bom-toc a { display: block; padding: 5px 0; color: var(--muted); text-decoration: none; line-height: 1.35; transition: color .2s var(--ease); }
.bom-toc a:hover, .bom-toc a.is-current { color: var(--accent-strong); }
.bom-toc a.is-current { font-weight: 700; }
@media (min-width: 1100px) {
  .bom-guide .bom-article__head { margin-left: calc(230px + 72px); }
  .bom-guide .bom-body { display: grid; grid-template-columns: 230px minmax(0, var(--measure)); column-gap: 72px; align-items: start; }
  .bom-guide .bom-body > .bom-toc { position: sticky; top: 110px; background: transparent; box-shadow: none; padding: 0; margin: .3em 0 0; }
}
@media (max-width: 1099px) { .bom-guide .bom-body { max-width: var(--measure); } }
.bom-guide .bom-prose h2 { margin-top: 2.2em; }
.bom-guide .bom-prose > :first-child { margin-top: 0; }
.bom-prose h2#sources ~ ul { font-size: .94rem; color: var(--muted); }

/* ---------- Boutons ---------- */
.bom-btn { display: inline-block; background: var(--ink); color: var(--on-ink); font-family: var(--font-display); font-weight: 650; font-size: 1.04rem; text-decoration: none; border-radius: var(--r); padding: 15px 26px; transition: background-color .2s var(--ease), transform .2s var(--ease); }
.bom-btn:hover, .bom-btn:focus { background: var(--accent-strong); color: #FFFFFF; text-decoration: none; transform: translateY(-1px); }
.bom-btn:active { transform: translateY(0); }

/* ---------- Accueil : sections pleine largeur ---------- */
.bom-section { padding: var(--section) 0; }
.bom-section h2 { font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.04; letter-spacing: -0.028em; margin-top: 0; }

.bom-hero { padding: clamp(56px, 8vw, 112px) 0 clamp(64px, 8vw, 104px); }
.bom-hero h1 { font-size: clamp(2.9rem, 6.6vw, 5.75rem); line-height: .97; letter-spacing: -0.045em; text-wrap: wrap; margin: 0 0 .34em; font-weight: 760; }
.bom-nowrap { white-space: nowrap; }
.bom-hero .bom-intro { font-size: clamp(1.12rem, 1.5vw, 1.3rem); margin-bottom: clamp(2.4em, 5vw, 4em); max-width: 50ch; color: var(--ink-soft); }
.bom-needs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 6px 48px; }
@media (min-width: 720px) { .bom-needs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 56px; } }
@media (min-width: 1100px) { .bom-needs { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.bom-needs li { margin: 0; }
.bom-needs a { display: block; padding: 18px 0 20px; color: var(--ink); text-decoration: none; }
.bom-needs a strong { display: inline; font-family: var(--font-display); font-size: clamp(1.3rem, 1.9vw, 1.6rem); font-weight: 680; line-height: 1.18; letter-spacing: -0.018em; background-image: linear-gradient(var(--accent), var(--accent)); background-size: 0% 3px; background-position: 0 100%; background-repeat: no-repeat; padding-bottom: 2px; transition: background-size .4s var(--ease), color .2s var(--ease); }
.bom-needs a span { display: block; color: var(--muted); font-size: 1rem; margin-top: 8px; line-height: 1.45; max-width: 36ch; }
.bom-needs a:hover strong, .bom-needs a:focus strong { background-size: 100% 3px; }

.bom-dark { background: var(--ink); color: var(--on-ink-muted); }
.bom-dark h2, .bom-dark h3 { color: var(--on-ink); }
.bom-dark a { color: var(--on-ink); }
.bom-split { display: grid; grid-template-columns: 1fr; gap: 40px 72px; align-items: start; }
@media (min-width: 960px) {
  .bom-split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .bom-split__aside { position: sticky; top: 120px; }
}
.bom-split__aside p { max-width: 38ch; font-size: 1.08rem; }
.bom-guides { list-style: none; margin: 0; padding: 0; }
.bom-guides li { margin: 0; }
.bom-guides a { display: block; padding: 22px 0 26px; text-decoration: none; }
.bom-guides li + li a { padding-top: 26px; }
.bom-guides__rub { display: block; font-size: .95rem; color: var(--accent-light); margin-bottom: 6px; }
.bom-guides__title { display: block; font-family: var(--font-display); font-size: clamp(1.4rem, 2.3vw, 1.9rem); font-weight: 700; line-height: 1.12; letter-spacing: -0.022em; color: var(--on-ink); transition: color .2s var(--ease); }
.bom-guides__desc { display: block; color: var(--on-ink-muted); margin-top: 8px; font-size: 1rem; max-width: 52ch; }
.bom-guides a:hover .bom-guides__title, .bom-guides a:focus .bom-guides__title { color: var(--accent-light); }
.bom-dark .bom-btn { background: var(--on-ink); color: var(--ink); }
.bom-dark .bom-btn:hover, .bom-dark .bom-btn:focus { background: var(--accent); color: var(--ink); }

.bom-tools { background: var(--tint-support); }
.bom-tools__grid { display: grid; grid-template-columns: 1fr; gap: 40px 72px; align-items: center; }
@media (min-width: 960px) { .bom-tools__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.bom-tools__grid p { max-width: 44ch; }
.bom-tools__wall { margin: 0; font-family: var(--font-display); font-size: clamp(1.45rem, 2.8vw, 2.35rem); font-weight: 650; line-height: 1.32; letter-spacing: -0.025em; color: var(--ink); }
.bom-tools__wall span { white-space: nowrap; }
.bom-tools__wall span:nth-child(3n+2) { color: var(--link); }
.bom-tools__wall span:nth-child(5n+4) { color: var(--muted); font-weight: 500; }
.bom-tools__wall span:not(:last-child)::after { content: "\00a0/"; color: rgba(31, 35, 40, .22); font-weight: 400; }

.bom-method .bom-wrap > * { max-width: var(--measure); }
.bom-method p { font-size: 1.12rem; }
.bom-method .bom-note { color: var(--muted); font-size: 1rem; }

/* ---------- Fiches outils : seul motif à cartes du site ---------- */
.bom-tool-grid { display: grid; grid-template-columns: 1fr; gap: 22px; margin: 1.4em 0 1.2em; }
@media (min-width: 680px) { .bom-tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .bom-tool-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.bom-card { background: var(--surface); border-radius: var(--r); padding: 26px 26px 22px; box-shadow: var(--shadow-soft); transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.bom-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.bom-card h3 { margin: 0 0 .3em; font-size: 1.32rem; }
.bom-card p { font-size: .98rem; margin-bottom: .7em; }
.bom-card .bom-card__for { color: var(--muted); font-size: .94rem; }
.bom-card p:last-child { margin-bottom: 0; }

/* ---------- Listes de guides (rubriques, tous les guides) ---------- */
.bom-list-head { padding: clamp(40px, 6vw, 72px) 0 clamp(24px, 3vw, 40px); }
.bom-list-head h1 { margin: 0 0 .45em; }
.bom-lede { max-width: var(--measure); font-size: 1.1rem; color: var(--ink-soft); }
.bom-lede p:last-child { margin-bottom: 0; }
.bom-list { list-style: none; margin: 0; padding: 0 0 clamp(48px, 7vw, 96px); }
.bom-list li { max-width: var(--measure); padding: 22px 0 26px; }
.bom-list h2 { font-size: clamp(1.4rem, 2.3vw, 1.75rem); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .35em; }
.bom-list h2 a { color: var(--ink); text-decoration: none; }
.bom-list h2 a:hover { color: var(--accent-strong); }
.bom-list p { color: var(--muted); margin: 0; }

/* ---------- Pied de page ---------- */
.bom-footer { background: var(--ink); color: var(--on-ink-muted); padding: clamp(64px, 8vw, 96px) 0 32px; font-size: .98rem; }
.bom-footer a { color: var(--on-ink); text-decoration: none; }
.bom-footer a:hover, .bom-footer a:focus { color: var(--accent-light); text-decoration: underline; text-decoration-color: var(--accent-light); }
.bom-footer__grid { display: grid; grid-template-columns: 1fr; gap: 40px; }
@media (min-width: 760px) { .bom-footer__grid { grid-template-columns: 1.5fr 1fr 1fr; gap: 56px; } }
.bom-footer .bom-brand, .bom-footer .bom-brand:hover { color: var(--on-ink); text-decoration: none; }
.bom-footer .bom-brand__name span { color: var(--on-ink-muted); }
.bom-footer__brand p { margin: 1.1em 0 0; max-width: 34ch; }
.bom-footer__title { font-family: var(--font-display); font-weight: 650; color: var(--on-ink); margin: 0 0 .8em; font-size: 1rem; }
.bom-footer ul { list-style: none; margin: 0; padding: 0; }
.bom-footer li { margin: 0 0 .5em; }
.bom-footer__legal { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; margin-top: clamp(48px, 6vw, 72px); font-size: .9rem; color: #A7A39B; }

/* ---------- Animations légères (activées par le script) ---------- */
.bom-js .bom-anim { opacity: 0; transform: translateY(22px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.bom-js .bom-anim.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .bom-js .bom-anim { opacity: 1; transform: none; transition: none; }
  .bom-card, .bom-card:hover, .bom-btn, .bom-btn:hover { transition: none; transform: none; }
  .bom-needs a strong { transition: none; }
}

@media (max-width: 768px) {
  body { font-size: 17px; }
  .bom-brand svg { width: 30px; height: 30px; }
  .bom-brand__name { font-size: 1.05rem; }
  .bom-needs a { padding: 14px 0 16px; }
}
