/*
Theme Name: La Boîte à Outils Marketing
Template: generatepress
Version: 1.1.0
Description: Thème enfant de GeneratePress, direction « Carnet d'atelier », version modernisée.
Text Domain: boiteaoutils
*/

/* ---------- Polices auto-hébergées ---------- */
@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; }

/* ---------- Jetons ---------- */
:root {
  --bg: #FAF8F4;
  --bg-deep: #F1EDE5;
  --surface: #FFFFFF;
  --ink: #1F2328;
  --ink-soft: #2B3036;
  --muted: #5B6169;
  --accent: #E2572B;
  --accent-strong: #B8431C;
  --accent-light: #F2A07F;
  --support: #3F6E9E;
  --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 ---------- */
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { 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; }
button, input, select, textarea { font-family: var(--font-body); }
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-bottom: .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); }

/* ---------- Conteneur partagé ---------- */
.grid-container, .bom-wrap { max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-left: auto; margin-right: auto; padding-left: var(--gutter); padding-right: var(--gutter); box-sizing: border-box; }
body { overflow-x: clip; }
body .site.grid-container, body .inside-header.grid-container { max-width: calc(var(--wrap) + 2 * var(--gutter)); padding-left: var(--gutter); padding-right: var(--gutter); box-sizing: border-box; }
body.bom-fullpage .site.grid-container { max-width: none; padding-left: 0; padding-right: 0; }
[class*="bom-"] > .wp-block-group__inner-container { display: contents; }
.site-content { display: block; padding: 0; }
.one-container .site-content { padding: 0; }
.one-container .container, .separate-containers .inside-article { background: transparent; }
.content-area, .site-main { margin: 0 !important; }

/* ---------- En-tête ---------- */
.site-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); }
body.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .site-header { top: 0; } }
.site-header.is-scrolled { box-shadow: 0 1px 0 rgba(31, 35, 40, .06), 0 8px 24px rgba(31, 35, 40, .05); }
.inside-header { padding-top: 16px; padding-bottom: 16px; align-items: center; }
.site-branding, .site-logo { margin-right: auto; }
.main-title { margin: 0; line-height: 1; }
.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; }
.site-description { display: none; }

.main-navigation, .main-navigation ul ul { background: transparent; }
.main-navigation .main-nav ul li a { font-family: var(--font-display); font-weight: 600; font-size: .98rem; color: var(--ink); text-decoration: none; padding-left: 13px; padding-right: 13px; line-height: 42px; transition: color .2s var(--ease); }
.main-navigation .main-nav ul li:not(.bom-nav-cta):hover > a, .main-navigation .main-nav ul li:not(.bom-nav-cta):focus-within > a, .main-navigation .main-nav ul li[class*="current-menu-"]:not(.bom-nav-cta) > a { color: var(--accent-strong); background: transparent; }
.main-navigation .main-nav ul li.bom-nav-cta { margin-left: 10px; }
.main-navigation .main-nav ul li.bom-nav-cta > a { background: var(--ink); color: var(--on-ink); border-radius: var(--r); line-height: 40px; padding-left: 16px; padding-right: 16px; transition: background-color .2s var(--ease); }
.main-navigation .main-nav ul li.bom-nav-cta > a:hover, .main-navigation .main-nav ul li.bom-nav-cta > a:focus { background: var(--accent-strong); color: #FFFFFF; }
@media (min-width: 769px) and (max-width: 1180px) {
  .main-navigation .main-nav ul li a { padding-left: 8px; padding-right: 8px; font-size: .92rem; }
  .bom-brand__name { font-size: 1.08rem; }
}
.main-navigation .menu-toggle { font-family: var(--font-display); font-weight: 600; color: var(--ink); background: transparent; padding: 0 6px; }
.main-navigation.toggled .main-nav > ul { background: var(--bg); padding: 8px 0 16px; }
.main-navigation.toggled .main-nav ul li.bom-nav-cta { margin: 8px 0 0; }

/* ---------- Pages et articles : en-tête ---------- */
.inside-article { padding: clamp(40px, 6vw, 72px) 0 clamp(64px, 8vw, 104px); }
.page .entry-header, .page .entry-content, .single-post .entry-header { max-width: var(--measure); }
.page .entry-header { margin-bottom: 1.4em; }
.entry-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; }
.entry-content ul, .entry-content ol { margin: 0 0 1.2em 1.2em; }
.entry-content li { margin-bottom: .4em; }
.entry-content li::marker { color: var(--accent-strong); }

/* Fil d'Ariane et méta des guides */
.rank-math-breadcrumb { font-size: .92rem; color: var(--muted); margin: 0 0 1.4em; }
.rank-math-breadcrumb p { margin: 0; }
.rank-math-breadcrumb a { color: var(--muted); text-decoration: none; }
.rank-math-breadcrumb a:hover { color: var(--accent-strong); }
.rank-math-breadcrumb .separator { 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); }
.entry-meta { display: none; }

/* 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 */
.entry-content .wp-block-table { margin: 1.8em 0 2.2em; overflow-x: auto; }
.entry-content 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); }
.entry-content table th, .entry-content table td { border: 0; padding: 13px 16px; text-align: left; vertical-align: top; }
.entry-content table thead th { background: var(--ink); color: var(--on-ink); font-family: var(--font-display); font-weight: 600; }
.entry-content table tbody tr:nth-child(even) { background: #F5F2EC; }
.wp-block-table thead, .wp-block-table tfoot { border: 0; }

/* ---------- 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) {
  .single-post .entry-header, .single-post footer.entry-meta { margin-left: calc(230px + 72px); }
  .single-post .entry-content { display: grid; grid-template-columns: 230px minmax(0, var(--measure)); column-gap: 72px; align-items: start; }
  .single-post .entry-content > * { grid-column: 2; }
  .single-post .entry-content > .bom-toc { grid-column: 1; grid-row: 1 / span 999; position: sticky; top: 110px; background: transparent; box-shadow: none; padding: 0; margin: .3em 0 0; }
}
@media (max-width: 1099px) { .single-post .entry-content { max-width: var(--measure); } }
.single-post .entry-content h2 { margin-top: 2.2em; }
.bom-sources + ul, .entry-content h2#sources ~ ul { font-size: .94rem; color: var(--muted); }

/* ---------- Boutons ---------- */
.wp-block-button__link, .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-transform: none; letter-spacing: 0; text-decoration: none; border-radius: var(--r); padding: 15px 26px; transition: background-color .2s var(--ease), transform .2s var(--ease); }
.wp-block-button__link:hover, .wp-block-button__link:focus, .bom-btn:hover, .bom-btn:focus { background: var(--accent-strong); color: #FFFFFF; text-decoration: none; transform: translateY(-1px); }
.wp-block-button__link:active, .bom-btn:active { transform: translateY(0); }

/* ---------- Accueil : sections pleine largeur ---------- */
.bom-fullpage .inside-article { padding: 0; }
.bom-fullpage .entry-content { max-width: none; margin: 0; }
.bom-band-full { width: auto; margin-left: 0; margin-right: 0; }
.bom-section { padding: var(--section) 0; }
.bom-section > .bom-wrap > *:first-child, .bom-section h2:first-child { margin-top: 0; }
.bom-section h2 { font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.04; letter-spacing: -0.028em; }

/* Hero : la question */
.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; max-width: none; 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 !important; padding: 0; display: grid; grid-template-columns: 1fr; gap: 6px 48px; counter-reset: none; }
@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 li::marker { content: none; }
.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; }

/* Guides de base : bande sombre, titre fixe à gauche */
.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 !important; padding: 0; }
.bom-guides li { margin: 0; }
.bom-guides li::marker { content: none; }
.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); }

/* Fiches outils : bande bleue avec mur de noms */
.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; }

/* Méthode */
.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 ---------- */
.page-fiches-outils .entry-content { max-width: none; }
.page-fiches-outils .entry-content > p, .page-fiches-outils .entry-content > h2 { max-width: var(--measure); }
.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; }

/* ---------- Archives de rubrique et liste des guides ---------- */
.archive .page-header, .blog .page-header { padding: clamp(40px, 6vw, 72px) 0 clamp(24px, 3vw, 40px); margin: 0; background: transparent; }
.archive .page-header .page-title, .blog .page-header .page-title { font-size: clamp(2.3rem, 4.6vw, 3.6rem); line-height: 1.03; letter-spacing: -0.028em; margin: 0 0 .45em; }
.taxonomy-description { max-width: var(--measure); font-size: 1.1rem; color: var(--ink-soft); }
.taxonomy-description p:last-child { margin-bottom: 0; }
.archive .site-main > article, .blog .site-main > article { max-width: var(--measure); }
.archive .inside-article, .blog .inside-article { padding: 22px 0 26px; }
.archive .entry-header, .blog .entry-header { margin: 0; }
.archive .entry-title, .blog .entry-title { font-size: clamp(1.4rem, 2.3vw, 1.75rem); line-height: 1.15; letter-spacing: -0.02em; max-width: none; margin: 0 0 .35em; }
.archive .entry-title a, .blog .entry-title a { color: var(--ink); text-decoration: none; }
.archive .entry-title a:hover, .blog .entry-title a:hover { color: var(--accent-strong); }
.archive .entry-summary, .blog .entry-summary { color: var(--muted); margin: 0; }
.archive .entry-summary p, .blog .entry-summary p { margin: 0; }
.read-more-container, .read-more { display: none; }
.paging-navigation { max-width: var(--measure); }
.bom-empty { max-width: var(--measure); color: var(--muted); padding: 8px 0 72px; }

/* ---------- Formulaires ---------- */
input[type="text"], input[type="email"], input[type="tel"], input[type="url"], input[type="search"], textarea { background: var(--surface); color: var(--ink); border: 1px solid #CFCAC1; border-radius: var(--r); padding: 13px 15px; font-size: 1rem; width: 100%; max-width: 560px; box-sizing: border-box; }
input:focus, textarea:focus { border-color: var(--support); outline: none; box-shadow: 0 0 0 3px var(--tint-support); }
button, input[type="submit"], .button { background: var(--ink); color: var(--on-ink); font-family: var(--font-display); font-weight: 650; border: 0; border-radius: var(--r); padding: 14px 24px; cursor: pointer; transition: background-color .2s var(--ease); }
button:hover, input[type="submit"]:hover, .button:hover { background: var(--accent-strong); color: #FFFFFF; }
.main-navigation .menu-toggle:hover { background: transparent; color: var(--accent-strong); }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--ink); }
.bom-footer { background: var(--ink); color: var(--on-ink-muted); padding: clamp(64px, 8vw, 96px) 0 32px; font-size: .98rem; text-align: left; }
.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; }
.bom-footer__admin { color: var(--accent-light); }

/* ---------- 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, .wp-block-button__link, .wp-block-button__link:hover, .bom-btn, .bom-btn:hover { transition: none; transform: none; }
  .bom-needs a strong { transition: none; }
}

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

/* ---------- Boutons de blocs : priorité sur les réglages de GeneratePress ---------- */
body .entry-content .wp-block-button .wp-block-button__link, body .entry-content a.bom-btn { background: var(--ink); color: var(--on-ink); }
body .entry-content .wp-block-button .wp-block-button__link:hover, body .entry-content .wp-block-button .wp-block-button__link:focus, body .entry-content a.bom-btn:hover, body .entry-content a.bom-btn:focus { background: var(--accent-strong); color: #FFFFFF; }
body .entry-content .bom-dark a.bom-btn { background: var(--on-ink); color: var(--ink); }
body .entry-content .bom-dark a.bom-btn:hover, body .entry-content .bom-dark a.bom-btn:focus { background: var(--accent); color: var(--ink); }
.site-info { text-align: left; }
.archive .no-results .page-header { padding-top: clamp(40px, 6vw, 72px); }
.bom-empty .page-header { max-width: none; }

/* ---------- En-tête mobile : logo à gauche, menu à droite ---------- */
@media (max-width: 768px) {
  .inside-header { flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: center; text-align: left; }
  .site-branding, .site-branding-container { text-align: left; margin: 0; }
  .main-navigation { order: 2; width: auto; margin-left: auto; }
  .main-navigation .menu-toggle { line-height: 44px; font-size: 1rem; }
  .has-inline-mobile-toggle .mobile-menu-control-wrapper { margin-left: auto; }
  .main-navigation.toggled { flex-basis: 100%; width: 100%; }
  .main-navigation.toggled .main-nav { width: 100%; }
  .main-navigation.toggled .main-nav ul li a { line-height: 46px; padding-left: 0; }
  .main-navigation.toggled .main-nav ul li.bom-nav-cta > a { padding-left: 16px; display: inline-block; }
}
.error404 .inside-article { max-width: var(--measure); }
.error404 .search-form { display: flex; gap: 10px; max-width: 560px; }.bom-fullpage .entry-content > .wp-block-group, .bom-fullpage .entry-content > .wp-block-group + .wp-block-group { margin-top: 0; margin-bottom: 0; }
.bom-method .wp-block-group__inner-container > * { max-width: var(--measure); }
.blog .bom-empty-header .page-title { font-size: clamp(2.3rem, 4.6vw, 3.6rem); line-height: 1.03; letter-spacing: -0.028em; margin: 0 0 .45em; }

/* Formulaire de contact */
.bom-contact { max-width: 36rem; margin: 1.6em 0 2.2em; }
.bom-contact form p { margin: 0 0 1.15em; }
.bom-contact label { display: block; font-family: var(--font-display); font-weight: 650; color: var(--ink); margin-bottom: .4em; }
body .bom-contact input[type="text"], body .bom-contact input[type="email"], body .bom-contact textarea { width: 100%; padding: 12px 14px; border: 1.5px solid #CFC9BE; border-radius: var(--r); background: var(--surface); color: var(--ink); font: inherit; font-size: 1rem; transition: border-color .2s var(--ease); }
body .bom-contact input:focus, body .bom-contact textarea:focus { border-color: var(--ink); outline: 2px solid var(--accent); outline-offset: 2px; background: var(--surface); }
.bom-contact textarea { min-height: 10rem; resize: vertical; }
.bom-contact__trap { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.bom-contact__note { font-size: .92rem; color: var(--muted); }
body .bom-contact button.bom-btn { border: 0; cursor: pointer; line-height: 1.3; }
.bom-contact__ok, .bom-contact__errors { padding: 18px 22px; border-radius: var(--r); margin: 0 0 1.4em; }
.bom-contact__ok { background: var(--tint-support); }
.bom-contact__errors { background: var(--tint-accent); }
.bom-contact__errors p { margin: 0 0 .3em; font-weight: 700; }
.bom-contact__errors ul { margin: 0 0 0 1.2em; }
