/* ECM Transfer — feuille de style unique. Aucune police ni ressource externe. */
:root {
  --ink: #1b1f23;          /* texte principal */
  --ink-soft: #4a525b;     /* texte secondaire (contraste 7,6:1 sur blanc) */
  --bg: #ffffff;
  --bg-alt: #f3f4f5;
  --steel: #23282e;        /* gris anthracite */
  --steel-2: #2f363d;
  --line: #d6dadf;
  --accent: #f2b705;       /* jaune industriel — toujours avec texte foncé */
  --accent-dark: #8a6500;  /* jaune foncé pour liens sur fond clair (contraste 5,2:1) */
  --ok: #1e6b3a;
  --warn-bg: #fff6d6;
  --radius: 6px;
  --max: 1120px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
img { max-width: 100%; height: auto; }
a { color: var(--accent-dark); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: clamp(1.7rem, 4.2vw, 2.6rem); }
h2 { font-size: clamp(1.35rem, 3vw, 1.8rem); }
h3 { font-size: 1.12rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--accent); color: var(--ink); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }

/* Bandeau brouillon */
.draft { background: var(--accent); color: var(--ink); font-size: .85rem; text-align: center; padding: 4px 16px; font-weight: 600; }

/* En-tête */
.top { background: var(--steel); color: #fff; border-bottom: 4px solid var(--accent); }
.top .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; padding-top: 12px; padding-bottom: 12px; }
.logo { color: #fff; text-decoration: none; font-weight: 800; font-size: 1.15rem; letter-spacing: .02em; display: flex; align-items: center; gap: 8px; margin-right: auto; }
.logo:hover { color: #fff; }
.logo .mark { flex: none; width: 44px; height: 44px; border-radius: 9px; box-shadow: 0 0 0 1px #59616a; }
.mainnav { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; }
.mainnav a { color: #e9ecef; text-decoration: none; font-size: .95rem; padding: 4px 0; }
.mainnav a:hover, .mainnav a[aria-current="page"] { color: var(--accent); }
.mainnav a.btn { color: var(--ink); padding: 6px 12px; }
.mainnav a.btn:hover { color: var(--ink); }
.langs { position: relative; }
.langs summary { cursor: pointer; list-style: none; color: #e9ecef; font-size: .9rem; border: 1px solid #5b636c; border-radius: var(--radius); padding: 4px 10px; }
.langs summary::-webkit-details-marker { display: none; }
.langs ul { position: absolute; right: 0; top: calc(100% + 6px); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); list-style: none; margin: 0; padding: 6px 0; min-width: 170px; z-index: 5; box-shadow: 0 6px 18px rgba(0,0,0,.18); }
.langs li a { display: block; padding: 6px 14px; color: var(--ink); text-decoration: none; }
.langs li a:hover, .langs li a[aria-current="true"] { background: var(--bg-alt); }
.langs li a small { color: var(--ink-soft); }

/* Boutons */
.btn { display: inline-block; background: var(--accent); color: var(--ink); font-weight: 700; text-decoration: none; border: 2px solid var(--accent); border-radius: var(--radius); padding: 10px 18px; cursor: pointer; font-size: 1rem; }
.btn:hover { background: #ffcb2e; color: var(--ink); }
.btn.ghost { background: transparent; color: #fff; border-color: #8b939c; }
.btn.ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn.big { font-size: 1.12rem; padding: 14px 26px; }
.btn:disabled { opacity: .65; cursor: wait; }
.btn.dark { background: var(--steel); border-color: var(--steel); color: #fff; }

/* Héros */
.hero { position: relative; overflow: hidden; background: var(--steel); color: #fff; padding: 56px 0 48px; }
.hero .hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 40%; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(27,31,35,.96) 0%, rgba(27,31,35,.88) 45%, rgba(27,31,35,.55) 100%); }
.hero .wrap { position: relative; z-index: 2; }
.hero .eyebrow { display: inline-block; margin: 0 0 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; font-size: .85rem; color: var(--ink); background: var(--accent); padding: 2px 10px; border-radius: 3px; }
.hero h1 { font-size: clamp(2rem, 5.4vw, 3.3rem); max-width: 820px; }
.hero .h1sub { display: block; margin-top: .45em; font-size: clamp(1.05rem, 2.3vw, 1.35rem); font-weight: 600; line-height: 1.35; color: #dfe3e7; }
.heavy { display: inline-block; border-left: 4px solid var(--accent); padding: 4px 12px; background: rgba(255,255,255,.08); color: #fff; font-weight: 600; }
.heavy-dark { border-left: 4px solid var(--accent); padding: 8px 14px; background: var(--warn-bg); font-weight: 600; max-width: 900px; }
.hero p.lead { font-size: 1.15rem; color: #dfe3e7; max-width: 760px; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 12px; }
.hero .small { color: #c4cad0; font-size: .92rem; }
.hero .brands { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px; }
.hero .brands span { border: 1px solid #5b636c; border-radius: 99px; padding: 3px 12px; font-size: .9rem; color: #e9ecef; }

/* Sections */
section { padding: 44px 0; }
section.alt { background: var(--bg-alt); }
.intro { color: var(--ink-soft); max-width: 760px; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.steps li { position: relative; background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--accent); border-radius: var(--radius); padding: 18px 18px 18px 64px; }
.steps li::before { counter-increment: s; content: counter(s); position: absolute; left: 16px; top: 16px; width: 34px; height: 34px; border-radius: 50%; background: var(--steel); color: var(--accent); font-weight: 800; display: flex; align-items: center; justify-content: center; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.checks li { padding-left: 30px; position: relative; }
.checks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 3px; background: var(--accent); clip-path: polygon(14% 52%, 0 66%, 38% 100%, 100% 22%, 86% 8%, 38% 72%); }
.checks strong { display: block; }
.band { background: var(--steel); color: #fff; padding: 36px 0; }
.band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.band p { margin: 0; color: #dfe3e7; }
.band h2 { color: #fff; margin-bottom: .25em; }

/* Contenu texte */
.page-head { background: var(--steel); color: #fff; padding: 34px 0 26px; }
.page-head p { color: #dfe3e7; margin: 0; max-width: 780px; }
.crumbs { font-size: .88rem; margin-bottom: 10px; color: #c4cad0; }
.crumbs a { color: #e9ecef; }
.prose { max-width: 820px; }
.prose h2 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .35em; }
.note { background: var(--warn-bg); border-left: 4px solid var(--accent); padding: 12px 16px; border-radius: 0 var(--radius) var(--radius) 0; margin: 1em 0; }
.ph { background: #ffe58a; color: var(--ink); padding: 0 4px; border-radius: 3px; font-weight: 600; }
table { border-collapse: collapse; width: 100%; margin: 1em 0; font-size: .96rem; }
th, td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
th { background: var(--bg-alt); }
.tablewrap { overflow-x: auto; }
dl.spec { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0 0 1em; }
dl.spec dt { font-weight: 700; }
dl.spec dd { margin: 0; }
.price { font-size: 1.25rem; font-weight: 800; }
.tag { display: inline-block; background: var(--bg-alt); border: 1px solid var(--line); border-radius: 99px; padding: 1px 10px; font-size: .85rem; margin: 0 4px 4px 0; }
.reflist { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.reflist a { display: block; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; text-decoration: none; color: var(--ink); background: #fff; }
.reflist a:hover { border-color: var(--accent); }
.reflist small { display: block; color: var(--ink-soft); }
.faq details { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; margin-bottom: 10px; background: #fff; }
.faq summary { cursor: pointer; font-weight: 700; }
.faq details[open] summary { margin-bottom: 8px; }

/* Formulaire */
form.quote { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); max-width: 900px; }
form.quote .full { grid-column: 1 / -1; }
form.quote label { display: block; font-weight: 600; margin-bottom: 4px; }
form.quote label small { font-weight: 400; color: var(--ink-soft); }
form.quote input, form.quote select, form.quote textarea { width: 100%; font: inherit; padding: 9px 10px; border: 1px solid #8b939c; border-radius: var(--radius); background: #fff; color: var(--ink); }
form.quote input[disabled] { background: var(--bg-alt); }
form.quote textarea { min-height: 110px; }
.status { margin-top: 12px; }

/* Pied de page */
footer.foot { background: var(--steel); color: #c4cad0; padding: 34px 0 20px; font-size: .92rem; }
footer.foot .cols { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
footer.foot h3 { color: #fff; font-size: 1rem; }
footer.foot a { color: #e9ecef; }
footer.foot ul { list-style: none; padding: 0; margin: 0; }
footer.foot li { margin-bottom: 4px; }
footer.foot .legalnote { border-top: 1px solid #444c55; margin-top: 22px; padding-top: 14px; font-size: .85rem; }

@media (max-width: 640px) {
  .hero { padding: 36px 0 32px; }
  section { padding: 32px 0; }
  .mainnav { width: 100%; }
  dl.spec { grid-template-columns: 1fr; }
  dl.spec dd { margin-bottom: 6px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }

.logotxt { display: flex; flex-direction: column; line-height: 1.1; }
.logosub { font-weight: 500; font-size: .72rem; letter-spacing: .01em; color: var(--accent); }

/* En-tête : actions (téléphone, WhatsApp, langue) */
.hacts { display: flex; align-items: center; gap: 8px; }
.hbtn { color: var(--ink); background: #fff; text-decoration: none; font-weight: 700; font-size: .9rem; border-radius: var(--radius); padding: 5px 10px; white-space: nowrap; }
.hbtn.wa { background: #25d366; color: #0b2e17; }
.hbtn:hover { color: var(--ink); background: var(--accent); }

/* Cartes photo par type de machine */
.pcards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); }
.pcard { display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink); }
.pcard:hover { border-color: var(--accent); color: var(--ink); }
.pcard img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.pcard span { display: block; padding: 12px 14px; }
.pcard strong { display: block; font-size: 1.05rem; }
.pcard small { color: var(--accent-dark); font-weight: 600; }
.split { display: grid; gap: 28px; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: start; }
figure.side { margin: 0; }
figure.side img { display: block; width: 100%; border-radius: var(--radius); }

/* Formulaire de devis */
form.quote { display: block; max-width: 900px; }
form.quote fieldset.grp { min-width: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px 18px; margin: 0 0 18px; background: #fff; }
form.quote fieldset.grp > legend { font-weight: 800; font-size: 1.12rem; padding: 0 8px; display: flex; align-items: center; gap: 8px; }
form.quote legend span { display: inline-flex; width: 28px; height: 28px; border-radius: 50%; background: var(--steel); color: var(--accent); align-items: center; justify-content: center; font-size: .95rem; }
form.quote input[type=checkbox], form.quote input[type=radio] { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--steel); }
form.quote input[type=file] { padding: 8px; background: var(--bg-alt); }
form.quote [aria-invalid="true"] { border: 2px solid #b3261e; background: #fff5f4; }
form.quote .consent [aria-invalid="true"] { outline: 2px solid #b3261e; outline-offset: 2px; }
fieldset.radios { min-width: 0; border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
fieldset.radios legend { font-weight: 600; padding: 0; margin-bottom: 6px; }
label.opt { display: inline-flex; align-items: center; gap: 8px; font-weight: 400; cursor: pointer; min-height: 32px; }
.consent label.opt { align-items: flex-start; }
.consent label.opt input { margin-top: 3px; }
.hint { color: var(--ink-soft); font-size: .92rem; margin: 0; }
.small-note { color: var(--ink-soft); font-size: .9rem; }
abbr.req { color: #b3261e; text-decoration: none; font-weight: 800; }
details.help { margin-top: 6px; font-size: .92rem; }
details.help summary { cursor: pointer; color: var(--accent-dark); font-weight: 600; }
details.help { min-width: 0; }
details.help table { font-size: .88rem; }
form.quote > fieldset > div { min-width: 0; }
.filelist { margin: 6px 0 0; padding-left: 1.2em; font-size: .9rem; color: var(--ink-soft); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.submitrow { margin-top: 4px; }
.status { color: #b3261e; font-weight: 600; background: #fff5f4; border-left: 4px solid #b3261e; padding: 10px 14px; }
.okbox { max-width: 900px; border: 2px solid var(--ok); border-radius: var(--radius); background: #eef7f1; padding: 22px; }
.okbox h2 { color: var(--ok); }

/* Bouton « Demander un devis » collant, sur mobile seulement */
.sticky-cta { display: none; }
@media (max-width: 760px) {
  .sticky-cta { display: block; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 20; text-align: center; background: var(--accent); color: var(--ink); font-weight: 800; text-decoration: none; padding: 13px 16px; border-radius: 8px; box-shadow: 0 6px 18px rgba(0,0,0,.28); }
  .sticky-cta:hover { color: var(--ink); }
  body { padding-bottom: 72px; }
  .split { grid-template-columns: 1fr; }
  .mainnav { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 4px; }
  .mainnav a { white-space: nowrap; }
  .logo .mark { width: 38px; height: 38px; }
  .hero::before { background: rgba(27,31,35,.86); }
}

/* ---- Revue UX du 16/11 ---- */
/* Pages texte : la colonne de lecture reste alignée à gauche avec l'en-tête (au lieu d'être centrée en retrait). */
.wrap.prose { max-width: var(--max); }
.wrap.prose > * { max-width: 820px; }
.wrap.prose > .reflist { max-width: none; }
.head-cta { margin: 18px 0 0; }
.page-head p.head-cta { max-width: none; margin: 18px 0 0; }
.hero .cta .btn { text-align: center; }

/* Formulaire : indications sous le libellé, champs alignés, hauteur confortable au doigt. */
form.quote label small { display: block; font-size: .86rem; line-height: 1.35; margin-top: 2px; }
form.quote fieldset.grp > div { display: flex; flex-direction: column; }
form.quote fieldset.grp > div > label:first-child { flex: 1 0 auto; }
form.quote input:not([type=checkbox]):not([type=radio]):not([type=file]), form.quote select { min-height: 46px; }
form.quote .consent label.opt { font-weight: 400; line-height: 1.5; }
form.quote .consent label.opt span { font-weight: 400; }
form.quote label.opt { font-weight: 400; }
.hint.either { margin-top: 6px; padding: 6px 10px; border-left: 3px solid var(--accent); background: var(--warn-bg); color: var(--ink); }
.status:not([hidden]) { display: block; }

@media (max-width: 760px) {
  /* En-tête compact : logo + langue sur une ligne, menu sur la suivante ; le devis passe par le bouton collant. */
  .top .wrap { gap: 6px 12px; padding-top: 10px; padding-bottom: 8px; }
  .hacts { order: 2; }
  .mainnav { order: 3; width: 100%; gap: 4px 16px; }
  .mainnav a.btn { display: none; }
  .hero .eyebrow { display: none; }
  .hero .cta .btn { flex: 1 1 100%; }
  form.quote .submitrow .btn { width: 100%; }
  .head-cta .btn { display: block; text-align: center; }
}
.sticky-cta.is-hidden { opacity: 0; transform: translateY(120%); pointer-events: none; }
.sticky-cta { transition: opacity .2s, transform .2s; }
@media (prefers-reduced-motion: reduce) { .sticky-cta { transition: none; } }
