/* BDX — Outils v2 (13/08/2026). Chargé uniquement sur /outils/ : les overrides de
   gabarit ci-dessous ne touchent donc que cette page (préfixe body = spécificité
   supérieure au thème, qui charge après les plugins). */
body .bdx-content { max-width: none !important; width: 100% !important; margin-left: 0 !important; margin-right: 0 !important; box-sizing: border-box; padding: 0 clamp(12px, 2vw, 28px); }
body .bdx-page-content { max-width: 100% !important; width: 100%; }
body .bdx-page-body { background: none; border: none; padding: 0; box-shadow: none; width: 100%; box-sizing: border-box; }

.bdxo { color: #111827; padding-bottom: 56px; }

/* Hero */
.bdxo-hero { position: relative; overflow: hidden; text-align: center; background: linear-gradient(120deg, #111827, #1f2937 55%, #374151); border-radius: 20px; padding: 52px 24px 46px; margin-bottom: 26px; }
.bdxo-hero::before { content: ""; position: absolute; right: -60px; top: -80px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(252,175,59,.30), transparent 70%); }
.bdxo-hero::after { content: ""; position: absolute; left: -80px; bottom: -120px; width: 300px; height: 300px; border-radius: 50%; background: radial-gradient(circle, rgba(252,175,59,.14), transparent 70%); }
.bdxo-eyebrow { position: relative; display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #FCAF3B; margin-bottom: 12px; }
.bdxo-hero h1 { position: relative; color: #fff; font-size: clamp(28px, 3.4vw, 40px); font-weight: 900; margin: 0 0 12px; }
.bdxo-hero p { position: relative; color: rgba(255,255,255,.82); font-size: 16px; max-width: 680px; margin: 0 auto 22px; line-height: 1.55; }
.bdxo-stats { position: relative; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.bdxo-stats span { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.3); color: #fff; border-radius: 999px; padding: 7px 16px; font-size: 13.5px; font-weight: 600; }
.bdxo-stats strong { font-weight: 800; margin-right: 4px; color: #FCAF3B; }

/* Têtes de section */
.bdxo-grid-head h2 { font-size: 18px; font-weight: 800; color: #111; margin: 0 0 12px; display: flex; align-items: center; gap: 10px; }
.bdxo-grid-head h2::after { content: ""; flex: 1; height: 1.5px; background: linear-gradient(90deg, #e5e7eb, transparent); }

/* Rangée d'ancres vers les outils */
.bdxo-jump { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 26px; }
.bdxo-jump a { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1.5px solid #e5e7eb; border-radius: 999px; padding: 8px 16px 8px 8px; font-size: 13px; font-weight: 700; color: #374151; text-decoration: none; transition: border-color .15s, transform .15s; }
.bdxo-jump a:hover { border-color: #FCAF3B; transform: translateY(-1px); }
.bdxo-jump-ico { width: 28px; height: 28px; border-radius: 8px; background: #fef3c7 center/17px no-repeat; }

/* Sections-outils : OUVERTES sur la page */
.bdxo-tools { display: grid; grid-template-columns: repeat(auto-fill, minmax(440px, 1fr)); gap: 18px; margin-bottom: 30px; align-items: start; }
.bdxo-tool { background: #fff; border: 1.5px solid #e5e7eb; border-radius: 16px; padding: 20px 22px; scroll-margin-top: 90px; transition: border-color .15s, box-shadow .15s; }
.bdxo-tool:hover { border-color: #FCAF3B; box-shadow: 0 6px 20px rgba(0,0,0,.06); }
.bdxo-tool-wide { grid-column: 1 / -1; }
.bdxo-tool-head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 16px; }
.bdxo-tool-head h2 { font-size: 17px; font-weight: 800; color: #111; margin: 0 0 3px; }
.bdxo-tool-head p { font-size: 13px; color: #6b7280; margin: 0; line-height: 1.5; }
.bdxo-card-ico { flex-shrink: 0; width: 46px; height: 46px; border-radius: 12px; background: #fef3c7 center/26px no-repeat; }
@media (max-width: 640px) { .bdxo-tools { grid-template-columns: 1fr; } }

/* Icônes (SVG inline en data-uri, trait sombre sur pastille ambrée) */
.bdxo-ico-palette     { background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23b45309" stroke-width="2"><circle cx="12" cy="12" r="9"/><circle cx="8" cy="10" r="1.4" fill="%23b45309"/><circle cx="12" cy="7.5" r="1.4" fill="%23b45309"/><circle cx="16" cy="10" r="1.4" fill="%23b45309"/><path d="M12 21c0-3 2-3.5 2-5.5a2 2 0 00-2-2"/></svg>'); }
.bdxo-ico-serigraphie { background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23b45309" stroke-width="2"><rect x="4" y="4" width="16" height="12" rx="2"/><path d="M4 9h16M9 4v12"/><path d="M7 20h10"/></svg>'); }
.bdxo-ico-broderie    { background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23b45309" stroke-width="2"><path d="M4 20c4-8 12-8 16-16"/><path d="M4 12c3-4 8-4 12-8"/><circle cx="19" cy="19" r="2"/></svg>'); }
.bdxo-ico-detourage   { background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23b45309" stroke-width="2"><path d="M4 4h4M16 4h4M4 20h4M16 20h4M4 4v4M4 16v4M20 4v4M20 16v4" stroke-dasharray="2 2"/><circle cx="12" cy="12" r="4"/></svg>'); }
.bdxo-ico-resolution  { background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23b45309" stroke-width="2"><circle cx="11" cy="11" r="7"/><path d="M21 21l-4.3-4.3"/></svg>'); }
.bdxo-ico-fonds       { background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23b45309" stroke-width="2"><rect x="3" y="3" width="18" height="18" rx="2" stroke-dasharray="3 3"/><rect x="7" y="7" width="10" height="10" rx="1"/></svg>'); }
.bdxo-ico-cmjn        { background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23b45309" stroke-width="2"><circle cx="9" cy="10" r="5"/><circle cx="15" cy="10" r="5"/><circle cx="12" cy="15" r="5"/></svg>'); }
.bdxo-ico-poids       { background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23b45309" stroke-width="2"><path d="M6 7h12l2 13H4z"/><path d="M9 7a3 3 0 016 0"/></svg>'); }

/* Bande CTA (même famille que le blog) */
.bdxo-cta { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; background: linear-gradient(120deg, #111827, #1f2937 55%, #374151); border-radius: 16px; padding: 20px 26px; position: relative; overflow: hidden; }
.bdxo-cta::before { content: ""; position: absolute; right: -40px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(252,175,59,.28), transparent 70%); }
.bdxo-cta-txt { display: flex; flex-direction: column; gap: 4px; position: relative; }
.bdxo-cta-txt strong { color: #fff; font-size: 17px; font-weight: 800; }
.bdxo-cta-txt span { color: rgba(255,255,255,.75); font-size: 13.5px; }
.bdxo-cta-btns { display: flex; gap: 10px; flex-wrap: wrap; position: relative; }
.bdxo-cta-btn { display: inline-block; padding: 10px 18px; border-radius: 10px; font-size: 13.5px; font-weight: 700; text-decoration: none !important; color: #fff !important; border: 1.5px solid rgba(255,255,255,.35); transition: border-color .15s, color .15s, transform .15s, background .15s; }
.bdxo-cta-btn:hover { border-color: #FCAF3B; color: #FCAF3B !important; transform: translateY(-1px); }
.bdxo-cta-btn-plein { background: #FCAF3B; border-color: #FCAF3B; color: #111 !important; }
.bdxo-cta-btn-plein:hover { background: #f5a017; color: #111 !important; }

/* Éléments d'outil partagés */
.bdxo-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 14px; }
.bdxo-field { flex: 1; min-width: 130px; }
.bdxo-field label { display: block; font-size: 11.5px; font-weight: 700; color: #374151; margin-bottom: 5px; text-transform: uppercase; letter-spacing: .04em; }
.bdxo-field input, .bdxo-field select { width: 100%; padding: 10px 12px; border: 1.5px solid #d1d5db; border-radius: 9px; font-size: 14px; box-sizing: border-box; font-family: inherit; background: #fff; }
.bdxo-field input:focus, .bdxo-field select:focus { outline: none; border-color: #FCAF3B; box-shadow: 0 0 0 3px rgba(252,175,59,.18); }
.bdxo-btn { display: inline-block; padding: 11px 20px; border: none; border-radius: 10px; background: #FCAF3B; color: #111; font-size: 14px; font-weight: 800; cursor: pointer; font-family: inherit; transition: background .15s, transform .15s; text-decoration: none; }
.bdxo-btn:hover { background: #f5a017; transform: translateY(-1px); }
.bdxo-btn-ghost { background: #fff; border: 1.5px solid #e5e7eb; color: #374151; font-weight: 700; }
.bdxo-btn-ghost:hover { background: #fff; border-color: #FCAF3B; }
.bdxo-result { background: #fff; border: 1.5px solid #e5e7eb; border-radius: 12px; padding: 16px 18px; font-size: 14px; color: #1f2937; line-height: 1.6; }
.bdxo-note { font-size: 12.5px; color: #9ca3af; margin-top: 10px; line-height: 1.5; }
.bdxo-badge { display: inline-block; padding: 4px 14px; border-radius: 999px; font-size: 13px; font-weight: 800; color: #fff; }
.bdxo-badge-good { background: #10b981; } .bdxo-badge-warn { background: #f59e0b; } .bdxo-badge-bad { background: #dc2626; }
.bdxo-drop { border: 2px dashed #d1d5db; border-radius: 14px; background: #fff; padding: 30px 20px; text-align: center; color: #6b7280; font-size: 14px; cursor: pointer; transition: border-color .15s, background .15s; margin-bottom: 16px; }
.bdxo-drop:hover, .bdxo-drop.is-over { border-color: #FCAF3B; background: #fffbeb; }
.bdxo-drop strong { color: #111; }
.bdxo-canvas-wrap { background: #fff; border: 1.5px solid #e5e7eb; border-radius: 12px; padding: 12px; text-align: center; margin-bottom: 14px; }
.bdxo-canvas-wrap canvas { max-width: 100%; height: auto; border-radius: 8px; }
.bdxo-checker canvas { background: repeating-conic-gradient(#e5e7eb 0 25%, #fff 0 50%) 0 0/20px 20px; }

/* Palette */
.bdxo-palette { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-bottom: 14px; }
.bdxo-swatch { border-radius: 12px; height: 150px; position: relative; cursor: pointer; border: 1.5px solid rgba(0,0,0,.06); display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; }
.bdxo-swatch-hex { background: rgba(255,255,255,.92); font-size: 12.5px; font-weight: 800; text-align: center; padding: 7px 4px 6px; letter-spacing: .03em; }
.bdxo-swatch-hex small { display: block; font-size: 9.5px; font-weight: 700; color: #6b7280; letter-spacing: 0; margin-top: 2px; }
.bdxo-swatch-lock { position: absolute; top: 8px; right: 8px; background: rgba(255,255,255,.85); border: none; border-radius: 8px; width: 28px; height: 28px; cursor: pointer; font-size: 13px; }
.bdxo-swatch.is-locked .bdxo-swatch-lock { background: #111827; color: #fff; }
.bdxo-swatch-copied::after { content: "Copié !"; position: absolute; inset: auto 0 34px; text-align: center; font-size: 12px; font-weight: 800; color: #111; }
@media (max-width: 640px) { .bdxo-palette { grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); } .bdxo-swatch { height: 110px; } }

/* Sérigraphie : nuancier de sortie */
.bdxo-inks { display: flex; gap: 10px; flex-wrap: wrap; margin: 12px 0; }
.bdxo-ink { display: flex; align-items: center; gap: 8px; background: #fff; border: 1.5px solid #e5e7eb; border-radius: 999px; padding: 6px 14px 6px 8px; font-size: 13px; font-weight: 700; color: #374151; }
.bdxo-ink i { width: 22px; height: 22px; border-radius: 50%; border: 1px solid rgba(0,0,0,.12); }

/* Boutons segmentés (nombre de couleurs, tolérance, etc.) */
.bdxo-seg { display: inline-flex; background: #fff; border: 1.5px solid #e5e7eb; border-radius: 10px; overflow: hidden; }
.bdxo-seg button { border: none; background: none; padding: 9px 16px; font-size: 14px; font-weight: 800; cursor: pointer; color: #6b7280; font-family: inherit; }
.bdxo-seg button.on { background: #111827; color: #fff; }

@media (max-width: 640px) {
  .bdxo-hero { padding: 38px 16px 34px; }
}

/* Icônes des 4 nouveaux outils */
.bdxo-ico-bordperdu { background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23b45309" stroke-width="2"><rect x="7" y="7" width="10" height="10" rx="1"/><path d="M7 3v2M12 3v2M17 3v2M7 19v2M12 19v2M17 19v2M3 7h2M3 12h2M3 17h2M19 7h2M19 12h2M19 17h2"/></svg>'); }
.bdxo-ico-zonesecu  { background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23b45309" stroke-width="2"><rect x="3" y="3" width="18" height="18" rx="2"/><rect x="7.5" y="7.5" width="9" height="9" rx="1" stroke-dasharray="3 2"/></svg>'); }
.bdxo-ico-logoia    { background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23b45309" stroke-width="2"><path d="M12 3l1.8 4.6L18 9l-4.2 1.4L12 15l-1.8-4.6L6 9l4.2-1.4z"/><path d="M19 15l.9 2.1L22 18l-2.1.9L19 21l-.9-2.1L16 18l2.1-.9z"/><path d="M5 16l.7 1.6L7 18l-1.3.6L5 20l-.7-1.4L3 18l1.3-.4z"/></svg>'); }
.bdxo-ico-slogan    { background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23b45309" stroke-width="2"><path d="M21 11.5a8.4 8.4 0 01-9 8.4 8.9 8.9 0 01-3.9-.9L3 20l1-4.9a8.4 8.4 0 1117-3.6z"/><path d="M8 10h8M8 13h5"/></svg>'); }

/* Panneau connexion requise + liste de slogans */
.bdxo-gate { background: #fffbeb; border: 1.5px dashed #fcd34d; border-radius: 12px; padding: 22px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.bdxo-gate strong { font-size: 14.5px; color: #111; }
.bdxo-gate span { font-size: 13px; color: #92400e; line-height: 1.5; }
.bdxo-gate .bdxo-btn { margin-top: 6px; }
.bdxo-slogans { display: flex; flex-direction: column; gap: 8px; }
.bdxo-slogan-item { text-align: left; background: #fff; border: 1.5px solid #e5e7eb; border-radius: 10px; padding: 11px 16px; font-size: 14.5px; font-weight: 700; color: #1f2937; cursor: pointer; font-family: inherit; transition: border-color .15s, transform .15s; position: relative; }
.bdxo-slogan-item:hover { border-color: #FCAF3B; transform: translateY(-1px); }
.bdxo-slogan-item.is-copied::after { content: "Copié !"; position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-size: 12px; font-weight: 800; color: #b45309; }

/* Convertisseur CMJN = même sélecteur que Ma marque */
.bdxo-cm-grid { display: grid; grid-template-columns: 280px 1fr; gap: 20px; }
@media (max-width: 700px) { .bdxo-cm-grid { grid-template-columns: 1fr; } }
#bdxo-cm-sv { width: 100%; height: auto; border-radius: 12px; border: 1px solid #e5e7eb; cursor: crosshair; touch-action: none; display: block; }
.bdxo-cm-hue { width: 100%; margin: 12px 0 14px; -webkit-appearance: none; appearance: none; height: 14px; border-radius: 999px; outline: none; border: 1px solid rgba(0,0,0,.08); background: linear-gradient(90deg,#f00 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,#f00 100%); }
.bdxo-cm-hue::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 2px solid #111827; box-shadow: 0 1px 4px rgba(0,0,0,.3); cursor: pointer; }
.bdxo-cm-presets { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; }
.bdxo-cm-presets button { aspect-ratio: 1; border-radius: 8px; border: 1px solid rgba(0,0,0,.1); cursor: pointer; padding: 0; transition: transform .12s; }
.bdxo-cm-presets button:hover { transform: scale(1.12); }
.bdxo-cm-prev { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.bdxo-cm-prev > div { display: flex; align-items: center; gap: 12px; }
.bdxo-cm-prev > div[hidden] { display: none; } /* display:flex bat l'attribut hidden — garde obligatoire */
.bdxo-cm-prev i { width: 64px; height: 44px; border-radius: 10px; border: 1px solid rgba(0,0,0,.1); flex-shrink: 0; }
.bdxo-cm-prev b { font-size: 13px; font-weight: 800; color: #111; line-height: 1.25; }
.bdxo-cm-prev b small { display: block; font-size: 11px; font-weight: 600; color: #9ca3af; }
.bdxo-cm-lab { display: block; font-size: 11px; font-weight: 800; color: #374151; text-transform: uppercase; letter-spacing: .05em; margin: 10px 0 5px; }
.bdxo-cm-lab small { text-transform: none; letter-spacing: 0; font-weight: 600; color: #b45309; }
#bdxo-cm-hex { width: 100%; padding: 9px 12px; border: 1.5px solid #d1d5db; border-radius: 9px; font-size: 14px; font-weight: 700; font-family: inherit; box-sizing: border-box; text-transform: uppercase; }
.bdxo-cm-nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.bdxo-cm-nums4 { grid-template-columns: repeat(4, 1fr); }
.bdxo-cm-nums input { width: 100%; padding: 8px 6px; border: 1.5px solid #d1d5db; border-radius: 9px; font-size: 13.5px; font-weight: 700; text-align: center; font-family: inherit; box-sizing: border-box; }
.bdxo-cm-nums input:focus, #bdxo-cm-hex:focus { outline: none; border-color: #FCAF3B; box-shadow: 0 0 0 3px rgba(252,175,59,.18); }
.bdxo-cm-units { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 3px; }
.bdxo-cm-units span { text-align: center; font-size: 10.5px; font-weight: 800; color: #9ca3af; }
