/*
Theme Name: AcheteurPiecesAuto
Theme URI: https://acheteurpiecesauto.com
Author: AcheteurPiecesAuto
Description: Thème WordPress du site AcheteurPiecesAuto : rachat de lots de pièces automobiles usagées OEM en Montérégie. Identité terrain charbon et jaune ambre, typographie Barlow Condensed, coins angulaires, menu hamburger avec tiroir latéral. Aucun constructeur de pages requis.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: acheteurpiecesauto
*/

:root {
  --bg: #e8e9e6;
  --bg-2: #dbdcd7;
  --surface: #f6f6f3;
  --ink: #17181a;
  --ink-soft: #45484b;
  --line: #c3c4bd;
  --accent: #f5a800;
  --accent-deep: #7a5200;
  --accent-ink: #17181a;
  --btn: #f5a800;
  --btn-hover: #ffb81f;
  --dark: #121315;
  --dark-2: #1d1e20;
  --dark-line: #37393d;
  --on-dark: #f2f1ec;
  --on-dark-soft: #b7b9b1;
  --good: #2e7d32;
  --focus: #0057c2;
  --shadow-hard: 8px 8px 0 rgba(23, 24, 26, 0.16);
  --shadow-hard-lg: 14px 14px 0 rgba(23, 24, 26, 0.14);
  --r: 3px;
  --ease: cubic-bezier(0.22, 0.8, 0.28, 1);
  --font-d: "Barlow Condensed", "Arial Narrow", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101112;
    --bg-2: #17181a;
    --surface: #1d1e20;
    --ink: #f1f0ea;
    --ink-soft: #b3b5ad;
    --line: #35373b;
    --accent-deep: #ffb81f;
    --shadow-hard: 8px 8px 0 rgba(0, 0, 0, 0.45);
    --shadow-hard-lg: 14px 14px 0 rgba(0, 0, 0, 0.4);
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
::selection { background: var(--accent); color: #17181a; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--accent-deep); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
button, [role="button"], select, summary,
input:not([type="checkbox"], [type="radio"]), textarea { min-height: 2.75rem; }

.wrap { max-width: 76rem; margin: 0 auto; padding: 0 1.25rem; }
@media (min-width: 56rem) { .wrap { padding: 0 2rem; } }
.mono { font-family: "IBM Plex Mono", ui-monospace, monospace; }

/* ---------- Apparition ---------- */
.rv { opacity: 0; transform: translateY(16px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); transition-delay: var(--d, 0s); }
.rv.in { opacity: 1; transform: none; }

/* ---------- En-tête sombre, barre de contact ---------- */
header.site { background: var(--dark); color: var(--on-dark); position: relative; }
header.site::after {
  content: ""; display: block; height: 7px;
  background: repeating-linear-gradient(-45deg, var(--accent) 0 16px, #17181a 16px 32px);
}
.bar { display: flex; align-items: center; gap: 1rem; padding: 0.75rem 0; }
.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; color: var(--on-dark); min-height: 2.75rem; }
.brand-mark {
  width: 2.6rem; height: 2.6rem; flex: none;
  background: var(--accent); color: #17181a;
  display: grid; place-items: center;
  font-family: var(--font-d); font-weight: 700; font-size: 1.55rem; line-height: 1;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
}
.brand-name { font-family: var(--font-d); font-weight: 600; font-size: 1.32rem; letter-spacing: 0.02em; text-transform: uppercase; line-height: 1.05; }
.brand-name em { font-style: normal; color: var(--accent); }
.brand-sub { display: block; font-family: "IBM Plex Mono", monospace; font-weight: 500; font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--on-dark-soft); margin-top: 0.18rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  font-family: var(--font-d); font-weight: 600; font-size: 1.18rem;
  letter-spacing: 0.05em; text-transform: uppercase;
  text-decoration: none; border: 0; cursor: pointer;
  padding: 0.72rem 1.5rem; min-height: 3.1rem;
  clip-path: polygon(0 0, calc(100% - 13px) 0, 100% 13px, 100% 100%, 13px 100%, 0 calc(100% - 13px));
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-accent { background: var(--btn); color: var(--accent-ink); }
.btn-accent:hover { background: var(--btn-hover); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); clip-path: none; }
.btn-ghost:hover { background: var(--ink); color: var(--bg); }

/* ---------- Hero photo plein cadre ---------- */
.hero { background: var(--dark); color: var(--on-dark); overflow: hidden; position: relative; }
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media .frame { position: absolute; inset: 0; overflow: hidden; }
.hero-media .frame::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(10, 11, 12, 0.93) 22%, rgba(10, 11, 12, 0.72) 55%, rgba(10, 11, 12, 0.38) 100%);
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; }
.hero-grid { display: block; padding: 3.4rem 0 3rem; position: relative; z-index: 1; max-width: 46rem; }
.hero-copy { position: relative; z-index: 1; }
@media (min-width: 56rem) { .hero-grid { padding: 5.2rem 0 4.2rem; } }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: "IBM Plex Mono", monospace; font-size: 0.74rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase; color: #17181a;
  background: var(--accent); padding: 0.42rem 0.8rem; margin-bottom: 1.4rem;
}
h1 {
  font-family: var(--font-d); font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.005em;
  font-size: clamp(3rem, 8.6vw, 5.4rem); line-height: 0.94;
  margin: 0 0 1.25rem; text-wrap: balance;
}
h1 .hl { color: var(--accent); }
.hero p.lede { font-size: 1.16rem; line-height: 1.62; color: var(--on-dark-soft); margin: 0 0 2rem; max-width: 34rem; }
.hero p.lede strong { color: var(--on-dark); font-weight: 700; }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-bottom: 2.6rem; }
.cta-row .btn { font-size: 1.3rem; padding: 0.85rem 1.9rem; min-height: 3.5rem; }
.proof { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; border-top: 3px solid var(--accent); padding-top: 1.3rem; max-width: 38rem; }
.proof b { display: block; font-family: var(--font-d); font-weight: 700; font-size: 1.65rem; letter-spacing: 0.01em; line-height: 1.05; color: var(--accent); text-transform: uppercase; }
.proof span { font-size: 0.88rem; color: var(--on-dark-soft); line-height: 1.4; display: block; margin-top: 0.25rem; }
.hero-badge {
  position: absolute; right: 1.25rem; top: 1.25rem; z-index: 2;
  background: var(--accent); color: #17181a;
  padding: 0.8rem 1rem; max-width: 15rem;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 11px), calc(100% - 11px) 100%, 0 100%);
}
@media (min-width: 56rem) { .hero-badge { right: 2rem; top: 2rem; } }
.hero-badge b { display: block; font-family: var(--font-d); font-size: 1.15rem; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; }
.hero-badge span { font-size: 0.85rem; line-height: 1.4; display: block; margin-top: 0.15rem; color: #3d2e00; }
.hero-badge .dot { display: inline-block; width: 0.5rem; height: 0.5rem; background: #17181a; margin-right: 0.45rem; }

/* Bande défilante ambre */
.ticker { background: var(--accent); overflow: hidden; padding: 0.8rem 0; position: relative; z-index: 1; }
.ticker-track { display: flex; gap: 0; width: max-content; animation: tick 34s linear infinite; }
.ticker span {
  font-family: var(--font-d); font-size: 1.12rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; color: #17181a;
  padding: 0 1.3rem; white-space: nowrap; display: inline-flex; align-items: center; gap: 2.6rem;
}
.ticker span::after { content: ""; width: 0.55rem; height: 0.55rem; background: #17181a; flex: none; transform: rotate(45deg); }
@keyframes tick { to { transform: translateX(-50%); } }

/* ---------- Bandeau de faits ---------- */
.strip { background: var(--surface); border-bottom: 3px solid var(--ink); }
.strip ul { list-style: none; margin: 0; padding: 1.5rem 0; display: grid; gap: 1.1rem; }
@media (min-width: 56rem) { .strip ul { grid-template-columns: repeat(3, 1fr); gap: 1.6rem; padding: 1.8rem 0; } }
.strip li { display: flex; gap: 0.9rem; align-items: flex-start; font-weight: 700; font-size: 1rem; line-height: 1.35; }
.strip li .ic {
  flex: none; width: 2.7rem; height: 2.7rem;
  background: var(--accent); color: #17181a;
  display: grid; place-items: center;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%);
}
.strip li small { display: block; font-weight: 500; color: var(--ink-soft); font-size: 0.88rem; margin-top: 0.15rem; }

/* ---------- Sections ---------- */
section.block { padding: 4.2rem 0; }
@media (min-width: 56rem) { section.block { padding: 5.6rem 0; } }
section.block.alt { background: var(--dark); color: var(--on-dark); }
.sec-head { max-width: 48rem; margin-bottom: 2.6rem; }
.sec-head .no {
  font-family: "IBM Plex Mono", monospace; font-size: 0.76rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; color: #17181a;
  background: var(--accent); display: inline-flex; align-items: center;
  padding: 0.4rem 0.75rem;
}
h2 {
  font-family: var(--font-d); font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.005em;
  font-size: clamp(2.3rem, 5.4vw, 3.5rem); line-height: 0.98; margin: 0.8rem 0 0.8rem; text-wrap: balance;
}
.sec-head p { color: var(--ink-soft); margin: 0; font-size: 1.07rem; }
section.alt .sec-head p { color: var(--on-dark-soft); }
.sec-head p.updated { font-size: 0.9rem; margin-top: 0.7rem; font-family: "IBM Plex Mono", monospace; letter-spacing: 0.04em; }

/* Étapes */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; }
@media (min-width: 56rem) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li {
  background: var(--surface); border: 2px solid var(--ink); border-radius: var(--r);
  padding: 1.5rem 1.35rem 1.4rem; position: relative;
  box-shadow: var(--shadow-hard);
  transition: transform 0.25s var(--ease), box-shadow 0.25s ease;
}
.steps li:hover { transform: translate(-2px, -2px); box-shadow: 11px 11px 0 rgba(23, 24, 26, 0.18); }
.steps .num {
  font-family: var(--font-d); font-weight: 700; font-size: 3.6rem; line-height: 0.9;
  color: var(--accent); -webkit-text-stroke: 2px #17181a;
  display: block; margin-bottom: 0.9rem;
}
@media (prefers-color-scheme: dark) { .steps .num { -webkit-text-stroke-color: #f1f0ea; } }
.steps h3 { margin: 0 0 0.45rem; font-family: var(--font-d); font-size: 1.45rem; font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase; }
.steps p { margin: 0; color: var(--ink-soft); font-size: 0.96rem; }

/* Catégories */
.cat-grid { display: grid; gap: 1.1rem; }
@media (min-width: 56rem) { .cat-grid { grid-template-columns: 1fr 1fr; } }
.cat-photo {
  overflow: hidden; position: relative; min-height: 18rem;
  border: 2px solid var(--dark-line); border-radius: var(--r);
}
.cat-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.cat-photo:hover img { transform: scale(1.04); }
.cat-photo .cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 2.8rem 1.5rem 1.3rem;
  background: linear-gradient(to top, rgba(8, 9, 10, 0.92), rgba(8, 9, 10, 0));
  color: #fff;
}
.cat-photo .cap h3 { margin: 0 0 0.3rem; font-family: var(--font-d); font-size: 1.7rem; font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase; }
.cat-photo .cap p { margin: 0; font-size: 0.96rem; color: rgba(255, 255, 255, 0.85); max-width: 30rem; }
.cat-list { background: var(--surface); border: 2px solid var(--ink); border-radius: var(--r); overflow: hidden; }
section.alt .cat-list { background: var(--dark-2); border-color: var(--dark-line); }
.cat-row { padding: 1.15rem 1.4rem; border-bottom: 1px solid var(--line); transition: background 0.2s ease; }
section.alt .cat-row { border-bottom-color: var(--dark-line); }
.cat-row:last-child { border-bottom: 0; }
.cat-row:hover { background: color-mix(in srgb, var(--accent) 10%, var(--surface)); }
section.alt .cat-row:hover { background: rgba(255, 255, 255, 0.045); }
.cat-row h3 { margin: 0 0 0.2rem; font-family: var(--font-d); font-size: 1.35rem; font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase; display: flex; align-items: center; gap: 0.55rem; }
.cat-row h3 svg { color: var(--accent); flex: none; }
.cat-row p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }
section.alt .cat-row p { color: var(--on-dark-soft); }
.duo { display: grid; gap: 1.1rem; margin-top: 1.1rem; }
@media (min-width: 56rem) { .duo { grid-template-columns: 1fr 1fr; } }
.panel { border-radius: var(--r); padding: 1.6rem 1.5rem; }
.panel-yes { background: var(--accent); color: #17181a; }
.panel-yes h3 { margin: 0 0 0.6rem; font-family: var(--font-d); font-size: 1.5rem; font-weight: 700; letter-spacing: 0.02em; text-transform: uppercase; }
.panel-yes p { margin: 0; color: #38300f; font-size: 0.98rem; }
.panel-yes p strong { color: #17181a; }
.panel-no { background: var(--surface); border: 2px solid var(--ink); }
section.alt .panel-no { border-color: var(--dark-line); }
.panel-no h3 { margin: 0 0 0.6rem; font-family: var(--font-d); font-size: 1.5rem; font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase; display: flex; gap: 0.55rem; align-items: center; }
.panel-no h3 svg { color: var(--accent-deep); flex: none; }
section.alt .panel-no h3 svg { color: var(--accent); }
.panel-no p { margin: 0; color: var(--ink-soft); font-size: 0.97rem; }
.panel-no .chips { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 0.9rem 0; }
.panel-no .chips span {
  font-size: 0.88rem; font-weight: 600; border: 1.5px solid var(--line); border-radius: 2px;
  padding: 0.32rem 0.8rem; color: var(--ink-soft); text-decoration: line-through; text-decoration-thickness: 1.5px; text-decoration-color: var(--accent);
}

/* Vendeurs / contact */
.vendeurs { display: grid; gap: 1.1rem; }
@media (min-width: 56rem) { .vendeurs { grid-template-columns: repeat(3, 1fr); } }
.vendeur {
  background: var(--surface); border: 2px solid var(--ink); border-radius: var(--r); padding: 1.6rem 1.5rem;
  box-shadow: var(--shadow-hard);
  transition: transform 0.25s var(--ease), box-shadow 0.25s ease;
}
section.alt .vendeur { border-color: var(--dark-line); }
.vendeur:hover { transform: translate(-2px, -2px); box-shadow: 11px 11px 0 rgba(23, 24, 26, 0.18); }
.vendeur h3 { margin: 0 0 0.5rem; font-family: var(--font-d); font-size: 1.5rem; font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase; }
.vendeur p { margin: 0; color: var(--ink-soft); font-size: 0.96rem; }
.disc { margin-top: 1.1rem; display: flex; gap: 0.7rem; align-items: center; font-weight: 700; }
.disc svg { color: var(--accent-deep); flex: none; }
.split { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 56rem) { .split { grid-template-columns: 1fr 1fr; gap: 3.2rem; } }
.split .photo { border: 2px solid var(--ink); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow-hard-lg); }
.split .photo img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3 / 2.1; transition: transform 0.9s var(--ease); }
.split .photo:hover img { transform: scale(1.03); }

/* Villes */
.villes { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.villes li {
  font-family: "IBM Plex Mono", monospace; font-size: 0.85rem; font-weight: 500;
  border: 1.5px solid var(--line); background: var(--surface); border-radius: 2px; padding: 0.45rem 0.9rem;
  transition: border-color 0.2s ease, color 0.2s ease;
}
section.alt .villes li { background: var(--dark-2); border-color: var(--dark-line); color: var(--on-dark); }
.villes li:hover { border-color: var(--accent); color: var(--accent-deep); }
section.alt .villes li:hover { color: var(--accent); }

/* ---------- Formulaire ---------- */
.form-card {
  background: var(--surface); border: 2px solid var(--ink); border-radius: var(--r);
  box-shadow: var(--shadow-hard-lg); padding: 1.7rem 1.35rem;
}
@media (min-width: 56rem) { .form-card { padding: 2.4rem; } }
form .grid { display: grid; gap: 0 1rem; }
@media (min-width: 40rem) { form .grid.two { grid-template-columns: 1fr 1fr; } }
label.f { display: block; font-weight: 700; font-size: 0.97rem; margin-bottom: 1.05rem; }
label.f .req { color: var(--accent-deep); }
label.f small { display: block; font-weight: 500; color: var(--ink-soft); font-size: 0.86rem; margin-top: 0.2rem; }
input[type="text"], input[type="tel"], input[type="email"], select, textarea {
  width: 100%; margin-top: 0.45rem; padding: 0.68rem 0.85rem;
  font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--bg); border: 2px solid var(--line); border-radius: 2px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
textarea { min-height: 8.5rem; resize: vertical; }
textarea.mono { font-family: "IBM Plex Mono", monospace; font-size: 0.92rem; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 30%, transparent); }

/* Zone de dépôt de fichier */
.dropzone {
  display: block; margin-bottom: 1.05rem; cursor: pointer; position: relative;
  border: 2px dashed color-mix(in srgb, var(--ink-soft) 55%, var(--line));
  border-radius: var(--r); padding: 1.5rem 1.2rem; text-align: center;
  background: color-mix(in srgb, var(--accent) 5%, var(--surface));
  transition: border-color 0.2s ease, background 0.2s ease;
}
.dropzone:hover { border-color: var(--accent); }
.dropzone:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 30%, transparent); }
.dropzone.drag { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, var(--surface)); }
.dropzone input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.dropzone .dz-ic {
  width: 3.1rem; height: 3.1rem; margin: 0 auto 0.7rem;
  background: var(--accent); color: #17181a;
  display: grid; place-items: center;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
}
.dropzone b { display: block; font-family: var(--font-d); font-size: 1.35rem; font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase; }
.dropzone span { display: block; color: var(--ink-soft); font-size: 0.89rem; margin-top: 0.25rem; }
.dropzone .dz-btn {
  display: inline-block; margin-top: 0.85rem; font-family: var(--font-d); font-weight: 600; font-size: 1.05rem;
  letter-spacing: 0.05em; text-transform: uppercase;
  border: 2px solid var(--ink); border-radius: 2px; padding: 0.45rem 1.1rem; min-height: 2.5rem; line-height: 1.55;
  transition: background 0.2s ease, color 0.2s ease;
}
.dropzone:hover .dz-btn { background: var(--ink); color: var(--bg); }
.file-list { list-style: none; margin: 0 0 1.05rem; padding: 0; display: grid; gap: 0.5rem; }
.file-list:empty { display: none; }
.file-item {
  display: flex; align-items: center; gap: 0.7rem;
  border: 1.5px solid var(--line); border-radius: 2px; padding: 0.55rem 0.6rem 0.55rem 0.85rem;
  background: var(--bg); font-size: 0.92rem;
  animation: filein 0.35s var(--ease);
}
@keyframes filein { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.file-item svg { color: var(--accent-deep); flex: none; }
.file-item .fname { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-item .fsize { color: var(--ink-soft); font-size: 0.82rem; white-space: nowrap; }
.file-item button {
  margin-left: auto; flex: none; border: 0; background: transparent; cursor: pointer;
  width: 2.5rem; height: 2.5rem; min-height: 2.5rem; border-radius: 2px; display: grid; place-items: center; color: var(--ink-soft);
  transition: background 0.2s ease, color 0.2s ease;
}
.file-item button:hover { background: color-mix(in srgb, var(--accent) 20%, transparent); color: var(--ink); }
.photo-note { display: flex; gap: 0.7rem; align-items: flex-start; color: var(--ink-soft); font-size: 0.94rem; margin-bottom: 1.3rem; }
.photo-note svg { flex: none; color: var(--accent-deep); margin-top: 0.1rem; }
.form-err {
  display: none; background: color-mix(in srgb, var(--accent) 14%, var(--surface));
  border: 2px solid var(--accent); border-radius: 2px; padding: 0.85rem 1rem;
  font-weight: 700; margin-bottom: 1rem;
}
.form-err.show { display: block; }
.form-ok { display: none; border: 2px solid var(--good); border-radius: var(--r); padding: 1.15rem 1.2rem; margin-top: 1.3rem; }
.form-ok.show { display: block; animation: filein 0.4s var(--ease); }
.form-ok h3 { margin: 0 0 0.4rem; color: var(--good); font-family: var(--font-d); font-size: 1.4rem; font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase; }
.form-ok p { margin: 0 0 0.75rem; color: var(--ink-soft); font-size: 0.95rem; }
.form-ok pre {
  background: var(--bg); border: 1.5px solid var(--line); border-radius: 2px;
  padding: 0.95rem; font-family: "IBM Plex Mono", monospace; font-size: 0.82rem;
  white-space: pre-wrap; word-break: break-word; max-height: 16rem; overflow: auto; margin: 0 0 1rem;
}
.form-foot { color: var(--ink-soft); font-size: 0.9rem; margin-top: 1rem; }

/* ---------- FAQ ---------- */
.faq { max-width: 54rem; }
details {
  border: 2px solid var(--line); border-radius: var(--r); background: var(--surface);
  margin-bottom: 0.7rem; overflow: hidden;
  transition: border-color 0.2s ease;
}
section.alt details { background: var(--dark-2); border-color: var(--dark-line); }
details:hover { border-color: var(--accent); }
details[open ] { border-color: var(--accent); box-shadow: inset 5px 0 0 var(--accent); }
summary {
  cursor: pointer; font-weight: 700; font-size: 1.04rem; letter-spacing: -0.005em; padding: 1.05rem 1.25rem;
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
summary::-webkit-details-marker { display: none; }
summary .chev { flex: none; color: var(--accent-deep); transition: transform 0.3s var(--ease); }
section.alt summary .chev { color: var(--accent); }
details[open ] summary .chev { transform: rotate(180deg); }
details .ans { padding: 0 1.25rem 1.2rem; color: var(--ink-soft); }
section.alt details .ans { color: var(--on-dark-soft); }
details .ans p { margin: 0; }

/* ---------- Pied de page ---------- */
footer.site { background: var(--dark); color: var(--on-dark-soft); padding: 2.4rem 0 2.6rem; font-size: 0.93rem; position: relative; }
footer.site::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 7px;
  background: repeating-linear-gradient(-45deg, var(--accent) 0 16px, #17181a 16px 32px);
}
footer.site .cols { display: grid; gap: 1.3rem; }
@media (min-width: 56rem) { footer.site .cols { grid-template-columns: 1.4fr 1fr 1fr; } }
footer.site b { color: var(--on-dark); font-family: var(--font-d); font-size: 1.2rem; font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase; }
footer.site a { color: var(--on-dark); font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; min-height: 2.75rem; }
footer.site a:hover { color: var(--accent); }
footer.site ul { list-style: none; margin: 0.3rem 0 0; padding: 0; }
footer.site li { padding: 0.12rem 0; }
.legal { margin-top: 1.7rem; padding-top: 1.1rem; border-top: 1px solid var(--dark-line); font-size: 0.84rem; }

/* ---------- Menu hamburger + tiroir latéral ---------- */
.bar-left { display: flex; align-items: center; gap: 0.85rem; min-width: 0; }
.hamburger {
  flex: none; width: 2.75rem; height: 2.75rem; min-height: 2.75rem;
  background: transparent; color: var(--accent);
  border: 2px solid var(--accent); border-radius: 2px; cursor: pointer;
  display: grid; place-items: center; padding: 0;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}
.hamburger:hover { background: var(--accent); color: #17181a; }
.hamburger:active { transform: scale(0.96); }
.hamburger .ham-lines { display: flex; flex-direction: column; gap: 5px; align-items: center; }
.hamburger .ham-lines span { display: block; width: 20px; height: 2.5px; background: currentColor; transition: transform 0.3s var(--ease), opacity 0.2s ease; }
.hamburger[aria-expanded="true"] .ham-lines span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger[aria-expanded="true"] .ham-lines span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] .ham-lines span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
@media (max-width: 30rem) {
  .brand-name { font-size: 1.12rem; }
  .brand-sub { display: none; }
}
body.menu-open { overflow: hidden; }
.drawer-overlay {
  position: fixed; inset: 0; z-index: 110;
  background: rgba(8, 9, 10, 0.62);
  opacity: 0; pointer-events: none; transition: opacity 0.32s ease;
}
.drawer-overlay.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; left: 0; bottom: 0; z-index: 120;
  width: clamp(17.5rem, 25vw, 21rem);
  background: var(--dark); color: var(--on-dark);
  border-right: 3px solid var(--accent);
  display: flex; flex-direction: column;
  transform: translateX(-105%); visibility: hidden;
  transition: transform 0.38s var(--ease), visibility 0s linear 0.38s;
}
@media (max-width: 56rem) { .drawer { width: min(19rem, 82vw); } }
.drawer.open { transform: translateX(0); visibility: visible; transition: transform 0.38s var(--ease); }
.drawer-head {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem 1.15rem; border-bottom: 1px solid var(--dark-line);
}
.drawer-title {
  font-family: "IBM Plex Mono", monospace; font-size: 0.76rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent);
  display: inline-flex; align-items: center; gap: 0.6rem;
}
.drawer-title::before { content: ""; width: 1.4rem; height: 3px; background: var(--accent); }
.drawer-close {
  flex: none; width: 2.75rem; height: 2.75rem; min-height: 2.75rem;
  background: transparent; color: var(--on-dark-soft);
  border: 2px solid var(--dark-line); border-radius: 2px; cursor: pointer;
  display: grid; place-items: center; padding: 0;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.drawer-close:hover { border-color: var(--accent); color: var(--accent); }
.drawer-nav { display: flex; flex-direction: column; gap: 0.5rem; padding: 1rem 1.15rem; }
.tab-btn {
  width: 100%; font-family: var(--font-d); font-weight: 600; font-size: 1.3rem; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 0.8rem 1rem; min-height: 3.3rem; border-radius: 2px; cursor: pointer;
  background: transparent; color: var(--on-dark-soft); border: 2px solid transparent;
  display: flex; align-items: center; justify-content: flex-start; gap: 0.75rem; text-align: left;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.tab-btn svg { flex: none; }
.tab-btn .tab-label { flex: 1; }
.tab-btn .tab-chev { color: var(--on-dark-soft); opacity: 0.55; }
.tab-btn:hover { border-color: var(--dark-line); color: var(--on-dark); background: var(--dark-2); }
.tab-btn[aria-selected="true"] { background: var(--accent); color: #17181a; border-color: var(--accent); }
.tab-btn[aria-selected="true"] .tab-chev { color: #17181a; opacity: 0.75; }
.tab-btn .tab-count {
  font-family: "IBM Plex Mono", monospace; font-size: 0.74rem; font-weight: 600;
  background: #17181a; color: var(--accent); border-radius: 2px; padding: 0.12rem 0.5rem;
}
.tab-btn[aria-selected="true"] .tab-count { background: #17181a; color: var(--accent); }
.drawer-foot { margin-top: auto; padding: 1.15rem; border-top: 1px solid var(--dark-line); }
.drawer-foot p { margin: 0 0 0.6rem; font-size: 0.9rem; color: var(--on-dark-soft); line-height: 1.5; }
.drawer-foot a { font-family: var(--font-d); font-weight: 600; font-size: 1.2rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--accent); text-decoration: none; display: inline-flex; align-items: center; min-height: 2.5rem; }
[role="tabpanel"][hidden] { display: none; }

/* ---------- Pôles, régions, listes, modèle ---------- */
.poles { display: grid; gap: 1.1rem; }
@media (min-width: 56rem) { .poles { grid-template-columns: 1fr 1fr; } }
.pole {
  background: var(--surface); border: 2px solid var(--ink); border-radius: var(--r); padding: 1.6rem 1.5rem;
  box-shadow: var(--shadow-hard);
  transition: transform 0.25s var(--ease), box-shadow 0.25s ease;
}
.pole:hover { transform: translate(-2px, -2px); box-shadow: 11px 11px 0 rgba(23, 24, 26, 0.18); }
.pole h3 { margin: 0 0 0.5rem; font-family: var(--font-d); font-size: 1.5rem; font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase; }
.pole p { margin: 0 0 0.8rem; color: var(--ink-soft); font-size: 0.96rem; }
.pole p:last-child { margin-bottom: 0; }
.pole .pole-villes { font-family: "IBM Plex Mono", monospace; font-size: 0.8rem; line-height: 1.65; color: var(--ink-soft); margin: 0; }
.pole .pole-villes b { color: var(--accent-deep); font-weight: 600; }
.region { margin-bottom: 2.2rem; }
.region:last-child { margin-bottom: 0; }
.region-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.4rem 0.9rem; margin-bottom: 0.9rem; }
.region-head h3 { margin: 0; font-family: var(--font-d); font-size: 1.6rem; font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase; }
section.alt .region-head h3 { color: var(--on-dark); }
.region-head span { font-family: "IBM Plex Mono", monospace; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-deep); }
section.alt .region-head span { color: var(--accent); }
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.check-list li { padding: 0.85rem 0; border-bottom: 1px solid var(--line); display: flex; gap: 0.7rem; align-items: flex-start; font-size: 0.98rem; }
section.alt .check-list li { border-bottom-color: var(--dark-line); }
.check-list li:last-child { border-bottom: 0; }
.check-list svg { flex: none; margin-top: 0.15rem; }
.check-list .ok { color: var(--good); }
section.alt .check-list .ok { color: #6fce7e; }
.check-list .no { color: var(--accent-deep); }
section.alt .check-list .no { color: var(--accent); }
.check-list b { font-weight: 800; }
.check-list span { color: var(--ink-soft); }
section.alt .check-list span { color: var(--on-dark-soft); }
.dl-card {
  background: var(--dark); color: var(--on-dark); border-radius: var(--r); padding: 1.8rem 1.5rem;
  border-top: 6px solid var(--accent);
  display: flex; flex-wrap: wrap; gap: 1.2rem; align-items: center; justify-content: space-between;
}
.dl-card h3 { margin: 0 0 0.4rem; color: #fff; font-family: var(--font-d); font-size: 1.6rem; font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase; }
.dl-card p { margin: 0; color: var(--on-dark-soft); font-size: 0.96rem; max-width: 36rem; }
.dl-card .cols-list { font-family: "IBM Plex Mono", monospace; font-size: 0.8rem; line-height: 1.7; color: var(--on-dark-soft); margin-top: 0.7rem; }
.form-template { margin: -0.4rem 0 1.05rem; font-size: 0.93rem; color: var(--ink-soft); }
.form-template a { font-weight: 700; }

/* ---------- À propos ---------- */
.about { padding: 3.4rem 0 0; }
.about-card {
  background: var(--surface); border: 2px solid var(--ink); border-radius: var(--r);
  padding: 1.8rem 1.5rem; box-shadow: 12px 12px 0 color-mix(in srgb, var(--accent) 75%, transparent);
}
@media (min-width: 56rem) { .about-card { padding: 2.3rem 2.4rem; } }
.about-card h2 { font-size: clamp(2rem, 4.6vw, 3rem); margin-top: 0; }
.about-card p { color: var(--ink-soft); margin: 0 0 0.9rem; max-width: 62rem; }
.about-card p:last-child { margin-bottom: 0; }
.about-card p strong { color: var(--ink); }

/* ---------- FAQ : groupes + recherche ---------- */
.faq-cat {
  font-family: var(--font-d); font-size: 1.45rem; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink);
  margin: 2rem 0 0.9rem; display: flex; align-items: center; gap: 0.7rem;
}
section.alt .faq-cat { color: var(--accent); }
.faq-cat:first-child { margin-top: 0; }
.faq-cat::after { content: ""; flex: 1; height: 2px; background: var(--line); }
section.alt .faq-cat::after { background: var(--dark-line); }
.faq-search { max-width: 54rem; margin-bottom: 1.6rem; position: relative; }
.faq-search svg { position: absolute; left: 0.95rem; top: 50%; transform: translateY(-50%); color: var(--ink-soft); pointer-events: none; }
section.alt .faq-search svg { color: var(--on-dark-soft); }
.faq-search input[type="search"] {
  width: 100%; padding: 0.8rem 1rem 0.8rem 2.8rem; font: inherit; font-size: 1rem;
  color: var(--ink); background: var(--surface); border: 2px solid var(--line); border-radius: 2px;
  min-height: 3.1rem;
}
section.alt .faq-search input[type="search"] { background: var(--dark-2); border-color: var(--dark-line); color: var(--on-dark); }
.faq-search input[type="search"]:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 30%, transparent); }
.faq-none { display: none; border: 2px dashed var(--line); border-radius: var(--r); padding: 1.2rem 1.3rem; color: var(--ink-soft); max-width: 54rem; }
section.alt .faq-none { border-color: var(--dark-line); color: var(--on-dark-soft); }
.faq-none.show { display: block; }
details.faq-hide { display: none; }
.faq-cta {
  max-width: 54rem; margin-top: 2rem; background: var(--accent); color: #17181a;
  border-radius: var(--r); padding: 1.6rem 1.5rem;
  display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between;
}
.faq-cta p { margin: 0; font-weight: 700; color: #17181a; max-width: 26rem; }
.faq-cta p span { display: block; font-weight: 500; color: #4a3a05; font-size: 0.93rem; margin-top: 0.2rem; }
.faq-cta .btn-accent { background: #17181a; color: var(--accent); }
.faq-cta .btn-accent:hover { background: #000; }

/* ---------- Assistant de clavardage ---------- */
.chat-fab {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 90;
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--font-d); font-weight: 600; font-size: 1.2rem; letter-spacing: 0.04em; text-transform: uppercase;
  background: var(--btn); color: #17181a; border: 0; cursor: pointer;
  padding: 0.75rem 1.25rem; min-height: 3.3rem;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
  box-shadow: 0 14px 30px -10px rgba(10, 10, 10, 0.5);
  transition: background 0.2s ease, transform 0.2s var(--ease);
}
.chat-fab:hover { background: var(--btn-hover); transform: translateY(-2px); }
@media (min-width: 56rem) { .chat-fab { right: 1.6rem; bottom: 1.6rem; } }
.chat-panel {
  position: fixed; right: 1rem; bottom: 5.4rem; z-index: 91;
  width: min(24rem, calc(100vw - 2rem));
  background: var(--surface); border: 2px solid var(--ink); border-radius: var(--r);
  box-shadow: var(--shadow-hard-lg); overflow: hidden;
  display: none; flex-direction: column; max-height: min(34rem, calc(100dvh - 7rem));
}
.chat-panel.open { display: flex; animation: filein 0.3s var(--ease); }
@media (min-width: 56rem) { .chat-panel { right: 1.6rem; bottom: 6.1rem; } }
.chat-head { background: var(--dark); color: var(--on-dark); padding: 1rem 1.15rem; display: flex; gap: 0.8rem; align-items: flex-start; border-bottom: 4px solid var(--accent); }
.chat-head b { display: block; color: #fff; font-family: var(--font-d); font-size: 1.25rem; font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase; }
.chat-head span { display: block; font-size: 0.84rem; color: var(--on-dark-soft); line-height: 1.4; margin-top: 0.15rem; }
.chat-head .chat-x {
  margin-left: auto; flex: none; background: transparent; border: 0; color: var(--on-dark-soft);
  width: 2.5rem; height: 2.5rem; min-height: 2.5rem; border-radius: 2px; cursor: pointer; display: grid; place-items: center;
}
.chat-head .chat-x:hover { color: var(--accent); background: rgba(255, 255, 255, 0.08); }
.chat-body { padding: 1rem 1.05rem; overflow-y: auto; display: flex; flex-direction: column; gap: 0.65rem; flex: 1; }
.msg { max-width: 88%; padding: 0.7rem 0.9rem; border-radius: 8px; font-size: 0.94rem; line-height: 1.5; animation: filein 0.3s var(--ease); }
.msg p { margin: 0 0 0.5rem; }
.msg p:last-child { margin-bottom: 0; }
.msg-bot { background: var(--bg-2); color: var(--ink); border-bottom-left-radius: 2px; align-self: flex-start; }
.msg-user { background: var(--accent); color: #17181a; border-bottom-right-radius: 2px; align-self: flex-end; }
.msg .msg-link {
  display: inline-flex; align-items: center; margin-top: 0.35rem; font-weight: 800; font-size: 0.9rem;
  color: var(--accent-deep); background: transparent; border: 0; padding: 0.45rem 0; min-height: 2.75rem;
  cursor: pointer; font-family: inherit; text-decoration: underline; text-underline-offset: 3px;
}
.chat-chips { display: flex; flex-wrap: wrap; gap: 0.45rem; padding: 0 1.05rem 0.8rem; }
.chat-chips button {
  font-family: inherit; font-size: 0.86rem; font-weight: 700; cursor: pointer;
  border: 2px solid var(--line); background: var(--surface); color: var(--ink);
  border-radius: 2px; padding: 0.42rem 0.85rem; min-height: 2.75rem;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.chat-chips button:hover { border-color: var(--accent); color: var(--accent-deep); }
.chat-form { display: flex; gap: 0.5rem; padding: 0.8rem 1.05rem 1rem; border-top: 2px solid var(--line); }
.chat-form input {
  flex: 1; font: inherit; font-size: 0.97rem; color: var(--ink);
  background: var(--bg); border: 2px solid var(--line); border-radius: 2px; padding: 0.6rem 0.8rem; min-height: 2.9rem;
}
.chat-form input:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 30%, transparent); }
.chat-form button {
  flex: none; font-family: var(--font-d); font-weight: 600; font-size: 1.1rem; letter-spacing: 0.04em; text-transform: uppercase; cursor: pointer;
  background: var(--accent); color: #17181a; border: 0; border-radius: 2px; padding: 0.6rem 1.05rem; min-height: 2.9rem;
}

/* ---------- Barre de contact ---------- */
html, body { overflow-x: clip; }
main section[id], main div[id] { scroll-margin-top: 1.25rem; }
.bar-actions { margin-left: auto; display: flex; align-items: center; gap: 0.55rem; flex: none; }
.bar-call {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--font-d); font-weight: 700; font-size: 1.35rem; letter-spacing: 0.04em;
  color: var(--accent); text-decoration: none;
  padding: 0.5rem 0.7rem; min-height: 2.75rem; border-radius: 2px;
  transition: color 0.2s ease, background 0.2s ease;
}
.bar-call:hover { color: #17181a; background: var(--accent); }
.bar-call:hover svg { color: #17181a; }
.bar-call svg { color: var(--accent); flex: none; transition: color 0.2s ease; }
.bar-call .bar-call-num { display: none; }
.bar-cta { display: none; }
.vendeur a, footer.site a { overflow-wrap: anywhere; }

@media (min-width: 40rem) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .bar-call .bar-call-num { display: inline; }
}
@media (min-width: 64rem) {
  .bar-cta { display: inline-flex; padding: 0.55rem 1.15rem; min-height: 2.75rem; font-size: 1.1rem; }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .form-card { max-width: 62rem; margin-inline: auto; }
}

@media (max-width: 40rem) {
  .proof { grid-template-columns: 1fr; gap: 0.9rem; }
  .proof div { display: flex; align-items: baseline; gap: 0.85rem; }
  .proof b { font-size: 1.35rem; white-space: nowrap; }
  .proof span { margin-top: 0; }
  .hero-grid { padding: 2.4rem 0 2.6rem; }
  .hero-badge { display: none; }
  section.block { padding: 3.4rem 0; }
  .chat-fab { bottom: calc(1rem + env(safe-area-inset-bottom)); }
  .chat-panel { bottom: calc(5.4rem + env(safe-area-inset-bottom)); }
}
@media (max-width: 30rem) {
  .cta-row .btn, .faq-cta .btn, .dl-card .btn { width: 100%; }
  h1 { font-size: clamp(2.7rem, 13.5vw, 3.2rem); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .rv { opacity: 1; transform: none; }
  .ticker-track { animation: none; flex-wrap: wrap; width: auto; }
  .hero-media img { transform: none; }
}

/* ---------- Adaptations WordPress ---------- */
body.admin-bar .drawer, body.admin-bar .drawer-overlay { top: 32px; }
@media (max-width: 782px) { body.admin-bar .drawer, body.admin-bar .drawer-overlay { top: 46px; } }
.wp-content { padding: 4.2rem 0; }
.wp-content h1 { color: var(--ink); }
