/* pixisgood — interface épurée (gris clair, blocs blancs, filets fins, capitales condensées) */
:root {
  --bg: #ebebeb;
  --panel: #ffffff;
  --line: #e2e2e2;
  --ink: #111111;
  --mute: #8a8a8a;
  --soft: #f5f5f5;
  --num: #dedede;
  --cond: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  --dots: radial-gradient(#d9d9d9 0.8px, transparent 0.9px) 0 0 / 4px 4px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font-family: var(--cond); font-size: 15px; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }

/* ---------- En-tête ---------- */
header.top { position: sticky; top: 0; z-index: 20; height: 60px; display: flex; align-items: stretch; background: var(--panel); border-bottom: 1px solid var(--line); }
.logo { display: flex; align-items: center; padding: 0 24px; border-right: 1px solid var(--line); text-decoration: none; }
.logo span { border: 2px solid var(--ink); border-radius: 999px; padding: 1px 14px 2px; font-weight: 700; font-size: 20px; letter-spacing: .02em; text-transform: lowercase; }
nav.tabs { display: flex; overflow-x: auto; scrollbar-width: none; }
nav.tabs a { display: flex; align-items: center; gap: 10px; padding: 0 22px; border-right: 1px solid var(--line); text-decoration: none; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; font-size: 14px; color: var(--mute); white-space: nowrap; transition: color .15s; }
nav.tabs a b { font-family: var(--mono); font-weight: 400; font-size: 11px; letter-spacing: 0; }
nav.tabs a:hover { color: var(--ink); }
nav.tabs a.on { color: var(--ink); box-shadow: inset 0 -3px 0 var(--ink); }
.top-right { margin-left: auto; display: flex; align-items: center; padding: 0 22px; font-family: var(--mono); font-size: 11px; color: var(--mute); }

/* ---------- Accueil ---------- */
.home { max-width: 1440px; margin: 0 auto; padding: 32px 24px 64px; }
.hero { display: flex; background: var(--panel); margin-bottom: 16px; }
.hero-n { flex: 0 0 auto; padding: 28px 32px; font-size: clamp(90px, 14vw, 180px); line-height: .8; font-weight: 300; color: var(--num); background: var(--dots); border-right: 1px solid var(--line); }
.hero-t { padding: 28px 32px; align-self: center; }
.hero-t small { display: block; font-size: 13px; text-transform: uppercase; letter-spacing: .12em; color: var(--mute); }
.hero-t h1 { margin: 6px 0 10px; font-size: clamp(34px, 5vw, 64px); line-height: .95; font-weight: 600; text-transform: uppercase; letter-spacing: -.005em; }
.hero-t p { margin: 0; max-width: 620px; font-size: 18px; line-height: 1.35; color: #444; font-weight: 400; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.card { display: flex; flex-direction: column; background: var(--panel); text-decoration: none; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 14px 40px rgba(0,0,0,.08); }
.card-top { display: flex; align-items: stretch; border-bottom: 1px solid var(--line); }
.card-top .n { padding: 14px 18px; font-size: 64px; line-height: .8; font-weight: 300; color: var(--num); background: var(--dots); border-right: 1px solid var(--line); }
.card-top .meta { display: flex; flex-direction: column; justify-content: center; padding: 0 16px; }
.card-top small { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--mute); }
.card-top b { font-size: 26px; text-transform: uppercase; font-weight: 600; letter-spacing: .02em; }
.thumb { aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; background: var(--soft); padding: 20px; overflow: hidden; }
.thumb canvas { max-width: 100%; max-height: 100%; box-shadow: 0 6px 24px rgba(0,0,0,.08); }
.card p { margin: 0; padding: 14px 18px 4px; font-size: 16px; line-height: 1.3; color: #444; flex: 1; }
.card-foot { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px 18px; font-family: var(--mono); font-size: 11px; color: var(--mute); }
.card-foot .go { font-family: var(--cond); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: #fff; background: var(--ink); padding: 8px 14px; }

/* ---------- Outil ---------- */
.tool { display: grid; grid-template-columns: 340px minmax(0, 1fr) 290px; height: calc(100vh - 60px); height: calc(100dvh - 60px); }
.side, .out { background: var(--panel); overflow-y: auto; scrollbar-width: thin; }
.side { border-right: 1px solid var(--line); display: flex; flex-direction: column; }
.out { border-left: 1px solid var(--line); }
.ttl { display: flex; border-bottom: 1px solid var(--line); }
.ttl .n { padding: 18px 18px 14px; font-size: 70px; line-height: .8; font-weight: 300; color: var(--num); background: var(--dots); border-right: 1px solid var(--line); }
.ttl > div { padding: 14px 18px; }
.ttl small { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--mute); }
.ttl h2 { margin: 2px 0 4px; font-size: 30px; line-height: 1; font-weight: 600; text-transform: uppercase; }
.ttl p { margin: 0; font-size: 14px; line-height: 1.3; color: #555; }
#controls { flex: 1; }
.side-foot { padding: 14px 22px 20px; }
.link { background: none; border: 0; padding: 0; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--mute); text-decoration: underline; cursor: pointer; }
.link:hover { color: var(--ink); }

/* Scène */
.stage { position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; min-height: 0; padding-top: 20px; }
.stage canvas { display: block; box-shadow: 0 1px 2px rgba(0,0,0,.05), 0 18px 50px rgba(0,0,0,.10); background: #fff; }
.stagebar { position: absolute; top: 14px; left: 18px; right: 18px; display: flex; justify-content: space-between; align-items: center; font-family: var(--mono); font-size: 11px; color: var(--mute); z-index: 2; }
.sb-right { display: flex; gap: 6px; }
.sb-right button { width: 32px; height: 32px; border: 1px solid var(--ink); background: var(--panel); cursor: pointer; font-size: 12px; }
.sb-right button:hover { background: var(--ink); color: #fff; }
.drop { position: absolute; inset: 12px; border: 2px dashed var(--ink); display: none; align-items: center; justify-content: center; font-size: 24px; text-transform: uppercase; letter-spacing: .1em; background: rgba(235,235,235,.85); }
.stage.over .drop { display: flex; }

/* Sections de réglages */
details.sec { border-bottom: 1px solid var(--line); }
details.sec > summary { list-style: none; display: flex; align-items: center; gap: 8px; padding: 14px 22px; cursor: pointer; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; user-select: none; }
details.sec > summary::-webkit-details-marker { display: none; }
details.sec > summary em { font-style: normal; font-family: var(--mono); font-size: 10px; font-weight: 400; letter-spacing: 0; color: var(--mute); border: 1px solid var(--line); padding: 1px 6px; }
details.sec > summary::after { content: '+'; margin-left: auto; font-family: var(--mono); font-weight: 400; color: var(--mute); }
details.sec[open] > summary::after { content: '–'; }
.sec-body { padding: 0 0 12px; }
.ctl { padding: 6px 22px 8px; }
.lab { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: #555; font-weight: 500; }
.lab output { font-family: var(--mono); font-size: 11px; letter-spacing: 0; color: var(--ink); text-transform: none; }
.note { margin-top: 6px; font-family: var(--mono); font-size: 10.5px; line-height: 1.5; color: var(--mute); }
.ctl.note { margin-top: 0; }

/* Curseurs */
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 18px; background: transparent; margin: 0; cursor: pointer; }
input[type=range]::-webkit-slider-runnable-track { height: 2px; background: var(--ink); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; margin-top: -5px; background: var(--ink); border: 0; border-radius: 0; transition: transform .1s; }
input[type=range]:active::-webkit-slider-thumb { transform: scale(1.35); }
input[type=range]::-moz-range-track { height: 2px; background: var(--ink); }
input[type=range]::-moz-range-thumb { width: 12px; height: 12px; background: var(--ink); border: 0; border-radius: 0; }

/* Segments */
.seg { display: flex; border: 1px solid var(--ink); }
.seg button { flex: 1; min-width: 0; padding: 7px 4px; border: 0; background: var(--panel); cursor: pointer; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.seg button + button { border-left: 1px solid var(--ink); }
.seg button:hover { background: var(--soft); }
.seg button.on { background: var(--ink); color: #fff; }

/* Boutons */
.btn { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 12px 14px; border: 1px solid var(--ink); background: var(--ink); color: #fff; cursor: pointer; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; text-align: left; }
.btn:hover { background: #333; }
.btn.ghost { background: var(--panel); color: var(--ink); }
.btn.ghost:hover { background: var(--soft); }
.btn.small { padding: 8px 10px; font-size: 11px; letter-spacing: .06em; justify-content: center; text-align: center; }
.btn.busy { background: linear-gradient(90deg, #333 var(--p, 0%), var(--ink) var(--p, 0%)); }
.btnrow { display: flex; gap: 6px; flex-wrap: wrap; }
.btnrow .btn { flex: 1 1 auto; width: auto; }

/* Couleurs */
.ctl-color { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.lab-inline { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: #555; font-weight: 500; }
.colorbox { display: flex; border: 1px solid var(--line); }
.colorbox input[type=color], .pal-item input[type=color] { -webkit-appearance: none; appearance: none; width: 34px; height: 30px; padding: 0; border: 0; background: none; cursor: pointer; }
input[type=color]::-webkit-color-swatch-wrapper { padding: 0; }
input[type=color]::-webkit-color-swatch { border: 0; border-radius: 0; }
input[type=color]::-moz-color-swatch { border: 0; border-radius: 0; }
.hex { width: 84px; border: 0; border-left: 1px solid var(--line); padding: 0 8px; font-family: var(--mono); font-size: 11px; text-transform: uppercase; outline: none; }
.palette { display: flex; flex-wrap: wrap; gap: 6px; }
.pal-item { position: relative; border: 1px solid var(--line); }
.pal-item input[type=color] { width: 44px; height: 44px; display: block; }
.pal-item .x { position: absolute; top: -7px; right: -7px; width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--ink); background: var(--panel); font-size: 11px; line-height: 1; cursor: pointer; display: none; padding: 0; }
.pal-item:hover .x { display: block; }
.pal-add { width: 46px; height: 46px; border: 1px dashed var(--mute); background: var(--panel); cursor: pointer; font-size: 20px; color: var(--mute); }
.swatches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.sw { display: flex; flex-direction: column; gap: 4px; padding: 0; border: 0; background: none; cursor: pointer; text-align: left; }
.sw-c { display: flex; height: 22px; border: 1px solid var(--line); }
.sw-c i { flex: 1; }
.sw-n { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: #555; }
.sw:hover .sw-c { border-color: var(--ink); }

/* Champs */
select, textarea, .ctl > input[type=text] { width: 100%; border: 1px solid var(--ink); background: var(--panel); padding: 8px 10px; border-radius: 0; outline: none; font-size: 14px; }
select { -webkit-appearance: none; appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 15px) 52%, calc(100% - 10px) 52%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 28px; text-transform: uppercase; letter-spacing: .04em; cursor: pointer; }
textarea { resize: vertical; font-size: 18px; font-weight: 600; }
.toggle { display: flex; align-items: center; justify-content: space-between; cursor: pointer; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: #555; font-weight: 500; }
.toggle input { display: none; }
.toggle i { position: relative; width: 34px; height: 18px; border: 1px solid var(--ink); background: var(--panel); flex: 0 0 auto; }
.toggle i::after { content: ''; position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; background: var(--ink); transition: transform .15s; }
.toggle input:checked + i { background: var(--ink); }
.toggle input:checked + i::after { background: #fff; transform: translateX(16px); }

/* Galerie de motifs */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.gallery button { display: flex; flex-direction: column; padding: 0; border: 1px solid var(--line); background: var(--panel); cursor: pointer; text-align: left; }
.gallery button:hover { border-color: var(--mute); }
.gallery button.on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.g-thumb { aspect-ratio: 1 / 1; display: block; overflow: hidden; background: var(--soft); }
.g-thumb canvas { width: 100%; height: 100%; display: block; }
.g-name { padding: 5px 6px 0; font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; line-height: 1.1; }
.g-cat { padding: 1px 6px 5px; font-family: var(--mono); font-size: 9px; color: var(--mute); }

/* Traits (plaques) */
.trait-row { display: flex; gap: 6px; }
.trait-row select { flex: 1; }
.ib { width: 36px; flex: 0 0 auto; border: 1px solid var(--ink); background: var(--panel); cursor: pointer; font-size: 14px; }
.ib:hover { background: var(--soft); }
.ib.on { background: var(--ink); color: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: 5px; }
.chips button { border: 1px solid var(--line); background: var(--panel); padding: 4px 8px; font-family: var(--mono); font-size: 10.5px; cursor: pointer; }
.chips button:hover { border-color: var(--ink); }

/* Formats */
.fmts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.fmts button { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px 8px; border: 1px solid var(--line); background: var(--panel); cursor: pointer; }
.fmts button:hover { border-color: var(--mute); }
.fmts button.on { border-color: var(--ink); background: var(--ink); color: #fff; }
.fmts i { display: block; border: 1.5px solid currentColor; margin-bottom: 2px; }
.fmts b { font-family: var(--mono); font-size: 11px; font-weight: 500; }
.fmts small { font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: var(--mute); min-height: 12px; }
.fmts button.on small { color: #bbb; }
.wh { display: flex; align-items: center; gap: 8px; }
.wh label { flex: 1; display: flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 11px; color: var(--mute); }
.wh input { width: 100%; border: 1px solid var(--ink); padding: 7px 8px; font-family: var(--mono); font-size: 12px; outline: none; border-radius: 0; }

/* Notification */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 10px 18px; font-size: 14px; letter-spacing: .04em; opacity: 0; pointer-events: none; transition: .25s; z-index: 50; max-width: calc(100vw - 32px); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Écrans plus petits ---------- */
@media (max-width: 1180px) {
  .tool { grid-template-columns: 320px minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; }
  .out { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--line); max-height: 42vh; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); align-content: start; }
  .out details.sec { border-right: 1px solid var(--line); }
  .out > .ctl.note { grid-column: 1 / -1; padding-bottom: 14px; }
}
@media (max-width: 760px) {
  header.top { height: 54px; }
  .logo { padding: 0 14px; }
  nav.tabs a { padding: 0 12px; gap: 6px; }
  nav.tabs a span { display: none; }
  nav.tabs a.on span { display: inline; }
  .top-right { display: none; }
  .tool { display: flex; flex-direction: column; height: auto; }
  .stage { order: -1; height: 62vh; flex: 0 0 auto; }
  .side, .out { overflow: visible; max-height: none; border: 0; }
  .home { padding: 16px 16px 48px; }
  .hero { flex-direction: column; }
  .hero-n { border-right: 0; border-bottom: 1px solid var(--line); padding: 20px; }
  .hero-t { padding: 20px; }
}

/* ---------- Palette ---------- */
.pal-list { display: flex; flex-wrap: wrap; gap: 4px; }
.pal-chip { position: relative; flex: 1 1 52px; height: 52px; border: 0; cursor: pointer; display: flex; align-items: flex-end; justify-content: center; padding: 0 0 6px; font-family: var(--mono); font-size: 10px; outline-offset: 2px; }
.pal-chip.on { outline: 2px solid var(--ink); }
.pal-chip i { position: absolute; top: 4px; right: 6px; font-style: normal; font-size: 10px; }
.pal-swatches { display: flex; gap: 3px; }
.pal-sw { flex: 1; height: 28px; border: 1px solid rgba(0,0,0,.08); cursor: pointer; padding: 0; outline-offset: 2px; }
.pal-sw:hover { transform: translateY(-2px); }
.pal-sw.on { outline: 2px solid var(--ink); }
.pal-contrast { margin-top: 10px; padding: 14px 16px; display: flex; align-items: baseline; gap: 12px; border: 1px solid var(--line); }
.pal-contrast b { font-size: 34px; line-height: 1; font-weight: 700; }
.pal-contrast span { font-size: 15px; }
.pal-saved { display: flex; flex-direction: column; gap: 6px; }
.pal-row { display: flex; align-items: center; gap: 8px; }
.pal-strip { flex: 1; display: flex; height: 30px; border: 1px solid var(--line); padding: 0; cursor: pointer; background: none; }
.pal-strip:hover { border-color: var(--ink); }
.pal-strip i { flex: 1; }
.pal-name { width: 96px; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: #555; }
.pal-row .ib { height: 30px; }

/* ---------- Sélecteur de police ---------- */
.fp-count { font-family: var(--mono); font-size: 10.5px; color: var(--mute); text-transform: none; letter-spacing: 0; }
.fp-search { width: 100%; border: 1px solid var(--ink); padding: 8px 10px; font-size: 14px; outline: none; border-radius: 0; background: var(--panel); -webkit-appearance: none; }
.fp-cats { display: flex; flex-wrap: wrap; gap: 4px; margin: 8px 0; }
.fp-cats button { border: 1px solid var(--line); background: var(--panel); padding: 4px 8px; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; cursor: pointer; }
.fp-cats button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.fp-list { height: 300px; overflow-y: auto; border: 1px solid var(--line); scrollbar-width: thin; }
.fp-item { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; width: 100%; padding: 8px 10px; border: 0; border-bottom: 1px solid var(--line); background: var(--panel); cursor: pointer; text-align: left; }
.fp-item:hover { background: var(--soft); }
.fp-item.on { background: var(--ink); color: #fff; }
.fp-name { font-size: 20px; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-transform: none; letter-spacing: 0; }
.fp-item small { flex: 0 0 auto; font-family: var(--mono); font-size: 9.5px; color: var(--mute); }
.fp-item.on small { color: #bbb; }
.fp-more { width: 100%; padding: 10px; border: 0; background: var(--soft); cursor: pointer; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }

/* ---------- Contenu des pages (référencement) ---------- */
.seo { background: var(--bg); border-top: 1px solid var(--line); }
.seo-in { max-width: 1200px; margin: 0 auto; padding: 48px 24px 56px; }
.seo-head { display: flex; background: var(--panel); margin-bottom: 16px; }
.seo-head .n { flex: 0 0 auto; padding: 24px 28px; font-size: clamp(70px, 10vw, 130px); line-height: .8; font-weight: 300; color: var(--num); background: var(--dots); border-right: 1px solid var(--line); }
.seo-head > div { padding: 24px 28px; align-self: center; }
.seo-head small { display: block; font-size: 13px; text-transform: uppercase; letter-spacing: .12em; color: var(--mute); }
.seo-head h1, .seo-head h2 { margin: 6px 0 12px; font-size: clamp(30px, 4vw, 48px); line-height: 1; font-weight: 600; text-transform: uppercase; }
.seo .lead { margin: 0; max-width: 760px; font-size: 18px; line-height: 1.45; color: #333; font-family: var(--cond); }
.seo h2 { margin: 40px 0 14px; font-size: 22px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.seo h2 small { font-family: var(--mono); font-size: 11px; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--mute); margin-left: 10px; }
.seo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.seo-grid article { background: var(--panel); padding: 22px 26px; }
.seo-grid h2 { margin-top: 0; font-size: 18px; }
.seo-grid ol, .seo-grid ul { margin: 0; padding-left: 20px; font-size: 16px; line-height: 1.5; color: #333; }
.seo-grid li + li { margin-top: 8px; }
.ex-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.ex-card { display: flex; flex-direction: column; padding: 0; border: 0; background: var(--panel); cursor: pointer; text-align: left; transition: transform .2s, box-shadow .2s; }
.ex-card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(0,0,0,.08); }
.ex-thumb { aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; background: var(--soft); padding: 12px; overflow: hidden; }
.ex-thumb canvas { max-width: 100%; max-height: 100%; box-shadow: 0 4px 16px rgba(0,0,0,.08); }
.ex-label { padding: 10px 12px 12px; font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.faq { background: var(--panel); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 16px 22px; font-size: 17px; font-weight: 600; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-family: var(--mono); font-weight: 400; color: var(--mute); }
.faq details[open] summary::after { content: '–'; }
.faq p { margin: 0; padding: 0 22px 18px; font-size: 16px; line-height: 1.5; color: #444; max-width: 820px; }
.tool-links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; }
.tool-links a { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; padding: 14px 16px; background: var(--panel); text-decoration: none; }
.tool-links a:hover { background: var(--ink); color: #fff; }
.tool-links b { grid-row: span 2; font-family: var(--mono); font-weight: 400; font-size: 12px; color: var(--mute); padding-top: 3px; }
.tool-links span { font-size: 18px; font-weight: 600; text-transform: uppercase; }
.tool-links small { font-size: 13px; color: var(--mute); }
.site-foot { background: var(--ink); color: #bbb; }
.site-foot .seo-in { padding: 28px 24px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 24px; }
.site-foot a { color: #fff; text-decoration: none; }
.site-foot a:hover { text-decoration: underline; }
.foot-home { font-weight: 700; font-size: 18px; text-transform: lowercase; border: 2px solid #fff; border-radius: 999px; padding: 0 12px 1px; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 14px; text-transform: uppercase; letter-spacing: .06em; }
.site-foot p { flex-basis: 100%; margin: 6px 0 0; font-family: var(--mono); font-size: 11px; }
.side-foot { display: flex; flex-wrap: wrap; gap: 6px 16px; }
@media (max-width: 760px) {
  .seo-in { padding: 32px 16px 40px; }
  .seo-head { flex-direction: column; }
  .seo-head .n { border-right: 0; border-bottom: 1px solid var(--line); }
}

/* ---------- Signature (en-tête) ---------- */
.credit { display: inline-flex; align-items: center; gap: 8px; font-family: var(--cond); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--mute); white-space: nowrap; }
.credit a { color: var(--ink); text-decoration: none; font-weight: 600; }
.credit a:hover { text-decoration: underline; }
.credit .credit-ig { display: inline-flex; padding: 4px; border: 1px solid var(--line); border-radius: 50%; }
.credit .credit-ig:hover { background: var(--ink); color: #fff; text-decoration: none; }

/* ---------- Formulaire de contact ---------- */
.contact { background: var(--panel); border-top: 1px solid var(--line); }
.contact-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 40px; align-items: start; }
.contact-t small { font-size: 13px; text-transform: uppercase; letter-spacing: .12em; color: var(--mute); }
.contact-t h2 { margin: 6px 0 14px; font-size: clamp(32px, 4vw, 52px); line-height: .95; font-weight: 600; text-transform: uppercase; }
.contact-t p { margin: 0 0 12px; font-size: 17px; line-height: 1.45; color: #333; }
.contact-sign { font-family: var(--mono); font-size: 12px !important; color: var(--mute) !important; }
.contact-sign a { color: var(--ink); }
.contact-f { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.contact-f .full { grid-column: 1 / -1; }
.contact-f label { display: flex; flex-direction: column; gap: 6px; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: #555; font-weight: 500; }
.contact-f label em { font-style: normal; text-transform: none; letter-spacing: 0; color: var(--mute); }
.contact-f input:not([type=checkbox]), .contact-f textarea { width: 100%; border: 1px solid var(--ink); background: var(--panel); padding: 10px 12px; font: inherit; font-size: 15px; text-transform: none; letter-spacing: 0; color: var(--ink); border-radius: 0; outline: none; }
.contact-f input:focus, .contact-f textarea:focus { box-shadow: inset 0 0 0 1px var(--ink); }
.contact-f textarea { resize: vertical; min-height: 110px; font-weight: 400; }
.contact-f .consent { flex-direction: row; align-items: flex-start; gap: 10px; text-transform: none; letter-spacing: 0; font-size: 14px; color: #444; line-height: 1.4; }
.contact-f .consent input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--ink); flex: 0 0 auto; }
.contact-f .consent a { color: var(--ink); }
.contact-f .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-act { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.contact-act .btn { width: auto; min-width: 240px; }
.contact-act .btn:disabled { opacity: .5; cursor: wait; }
.contact-msg { margin: 0; font-size: 15px; }
.contact-msg.ok { color: #1f7a3f; }
.contact-msg.err { color: #c0392b; }

/* ---------- Mentions légales ---------- */
.legal-body { background: var(--panel); padding: 8px 32px 32px; max-width: 900px; }
.legal-body h2 { margin: 30px 0 10px; }
.legal-body h3 { margin: 24px 0 8px; font-size: 17px; text-transform: uppercase; letter-spacing: .05em; }
.legal-body p, .legal-body li { font-size: 16px; line-height: 1.55; color: #333; }
.legal-body ul { padding-left: 20px; }
.legal-body li + li { margin-top: 6px; }
.legal-body a { color: var(--ink); }
.legal-body .todo { display: inline-block; margin: 4px 0; padding: 2px 8px; background: #fff3c4; font-family: var(--mono); font-size: 12px; }
#matomo-opt-out { margin: 10px 0 4px; padding: 14px 16px; border: 1px solid var(--line); background: var(--soft); font-size: 15px; }

@media (max-width: 900px) { .contact-in { grid-template-columns: 1fr; gap: 24px; } }
@media (max-width: 760px) { .contact-f { grid-template-columns: 1fr; } .legal-body { padding: 4px 18px 24px; } .contact-act .btn { width: 100%; } }
