/* ==========================================================
   Mecanique TP — styles
   Palette : acier anthracite + jaune chantier
   ========================================================== */
:root {
  --ink: #11161c;
  --ink-2: #1a2129;
  --ink-3: #242d37;
  --steel-line: rgba(255, 255, 255, .09);
  --yellow: #ffc629;
  --yellow-2: #ffb300;
  --on-dark: #e8ecf1;
  --muted-dark: #9aa7b4;
  --paper: #f3f3f0;
  --paper-2: #ffffff;
  --on-light: #161b21;
  --muted-light: #5b6570;
  --line-light: #dcdcd6;
  --radius: 10px;
  --wa: #1fa855;
  --wa-2: #178f47;
  --wrap: 1180px;
  --display: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --body: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 400 17px/1.55 var(--body);
  color: var(--on-light);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.02; margin: 0; letter-spacing: .005em; }
h2 { font-size: clamp(34px, 5vw, 54px); text-transform: uppercase; }
h3 { font-size: 24px; text-transform: uppercase; letter-spacing: .02em; }
p { margin: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

.ico { width: 20px; height: 20px; fill: currentColor; flex: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  font: 700 17px/1 var(--display); letter-spacing: .06em; text-transform: uppercase;
  text-decoration: none; border-radius: 6px; border: 2px solid transparent; cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease, color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn--lg { min-height: 56px; padding: 0 28px; font-size: 19px; }
.btn--sm { min-height: 40px; padding: 0 14px; font-size: 16px; }
.btn--block { width: 100%; }
.btn--yellow { background: var(--yellow); color: var(--ink); }
.btn--yellow:hover { background: var(--yellow-2); }
.btn--outline { border-color: currentColor; color: var(--on-dark); background: transparent; }
.btn--outline:hover { background: rgba(255,255,255,.08); }
.btn--ghost { color: var(--on-dark); background: rgba(255,255,255,.06); }
.btn--ghost:hover { background: rgba(255,255,255,.12); }
.btn:focus-visible, .lang a:focus-visible, input:focus-visible, textarea:focus-visible, a:focus-visible {
  outline: 3px solid var(--yellow); outline-offset: 2px;
}

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(17, 22, 28, .92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--steel-line);
  color: var(--on-dark);
}
.topbar__in { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; min-width: 0; }
.brand img { border-radius: 8px; }
.brand__txt { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.brand__txt strong { font: 800 21px/1 var(--display); text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
.brand__txt small { font-size: 12.5px; color: var(--muted-dark); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }

.lang { display: flex; gap: 4px; background: rgba(255,255,255,.05); padding: 4px; border-radius: 8px; }
.lang a {
  display: flex; text-decoration: none; align-items: center; gap: 6px;
  padding: 6px 8px; border: 0; border-radius: 5px; cursor: pointer;
  background: transparent; color: var(--muted-dark);
  font: 700 14px/1 var(--display); letter-spacing: .08em;
  opacity: .7; transition: opacity .15s, background .15s, color .15s;
}
.lang a svg { width: 24px; height: 16px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(255,255,255,.2); }
.lang a:hover { opacity: 1; }
.lang a.on { opacity: 1; background: rgba(255,255,255,.12); color: #fff; }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(1200px 600px at 80% 40%, rgba(255, 198, 41, .07), transparent 60%),
    linear-gradient(180deg, var(--ink) 0%, #0d1116 100%);
  color: var(--on-dark);
  padding: clamp(48px, 7vw, 96px) 0 clamp(64px, 8vw, 110px);
}
.hero__art {
  position: absolute; z-index: -1;
  right: -3%; top: 50%; transform: translateY(-46%); width: min(960px, 60%); aspect-ratio: 1200 / 760;
  background: url(img/hero-excavator.svg) no-repeat right bottom / contain;
  opacity: .95;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 30%);
          mask-image: linear-gradient(90deg, transparent 0%, #000 30%);
}
.hero__in { position: relative; }
.hero__in > * { max-width: 640px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 15px/1 var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--yellow);
  padding: 8px 12px; border: 1px solid rgba(255,198,41,.35); border-radius: 999px; margin-bottom: 22px;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 0 rgba(255,198,41,.6); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255,198,41,.55);} 70% { box-shadow: 0 0 0 10px rgba(255,198,41,0);} 100% { box-shadow: 0 0 0 0 rgba(255,198,41,0);} }
.hero h1 {
  font-size: clamp(44px, 5.8vw, 86px); font-weight: 800; text-transform: uppercase; line-height: .95;
  text-shadow: 0 2px 30px rgba(0,0,0,.5);
}
.hero h1 em { font-style: normal; color: var(--yellow); }
.lead { max-width: 32em; margin-top: 22px; font-size: clamp(17px, 1.6vw, 20px); color: #c9d2db; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.badges { display: flex; flex-wrap: wrap; gap: 10px 12px; margin-top: 26px; }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 6px; background: rgba(255,255,255,.05); border: 1px solid var(--steel-line); font: 600 16px/1.1 var(--display); letter-spacing: .07em; text-transform: uppercase; color: #c9d2db; text-decoration: none; }
.badge .ico { width: 18px; height: 18px; color: var(--yellow); }
.badge--link { border-color: rgba(255,198,41,.45); color: #fff; transition: background .15s, border-color .15s; }
.badge--link:hover { background: rgba(255,198,41,.12); border-color: var(--yellow); }
.badge--link span { text-decoration: underline; text-decoration-color: rgba(255,198,41,.6); text-underline-offset: 4px; }

/* hazard stripe under hero */
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 8px;
  background: repeating-linear-gradient(-45deg, var(--yellow) 0 18px, var(--ink) 18px 36px);
}

/* ---------- sections ---------- */
.section { padding: clamp(64px, 8vw, 110px) 0; background: var(--paper); }
.section--dark { background: var(--ink); color: var(--on-dark); }
.section--steel { background: var(--ink-2); color: var(--on-dark); }
.section__head { margin-bottom: 40px; }
.kicker {
  display: flex; align-items: center; gap: 10px;
  font: 700 15px/1 var(--display); letter-spacing: .2em; text-transform: uppercase; color: #b08300; margin-bottom: 12px;
}
.kicker::before { content: ""; width: 28px; height: 3px; background: var(--yellow); }
.section--dark .kicker, .section--steel .kicker { color: var(--yellow); }

.grid { display: grid; gap: 18px; }
.grid--svc { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); gap: 24px; }

/* service cards */
.card {
  position: relative; padding: 28px 26px 26px;
  background: var(--paper-2); border: 1px solid var(--line-light); border-radius: var(--radius);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(17,22,28,.1); border-color: #c9c9c0; }
.card--accent { border-top: 4px solid var(--yellow); }
.card__ico { width: 52px; height: 52px; margin-bottom: 18px; fill: none; stroke: var(--on-light); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.card__ico .acc { stroke: #e0a800; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted-light); }

/* sector panels */
.panel { background: var(--ink-2); border: 1px solid var(--steel-line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.panel__img { aspect-ratio: 600 / 380; background: #0e1318 center / cover no-repeat; border-bottom: 1px solid var(--steel-line); }
.panel__txt { padding: 26px; }
.panel__txt h3 { font-size: clamp(26px, 3vw, 34px); margin-bottom: 10px; }
.panel__txt p:last-child { color: var(--muted-dark); }

/* about */
.about { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.about__txt h2 { margin-bottom: 20px; }
.about__txt > p { font-size: 19px; color: #333b44; }
.checks { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 34px; font-weight: 500; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 4px; background: var(--ink);
}
.checks li::after {
  content: ""; position: absolute; left: 7px; top: 6px; width: 6px; height: 11px; border: solid var(--yellow); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg);
}
.track { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line-light); }
.track li { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 0 0 24px 24px; }
.track li:last-child { padding-bottom: 0; }
.track li::before { content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; background: var(--paper); border: 2px solid var(--on-light); border-radius: 50%; }
.track li:last-child::before { background: var(--yellow); border-color: var(--yellow); }
.track strong { font: 700 22px/1.1 var(--display); text-transform: uppercase; letter-spacing: .03em; }
.track span:last-child { color: var(--muted-light); }

/* contact */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.contact__side h2 { margin-bottom: 28px; }
.direct { display: grid; gap: 10px; }
.direct__item {
  display: flex; align-items: center; gap: 16px; padding: 16px 18px; text-decoration: none;
  background: var(--ink-3); border: 1px solid var(--steel-line); border-radius: var(--radius);
  transition: border-color .15s, background .15s;
}
.direct__item:hover { border-color: var(--yellow); background: #28323d; }
.direct__item .ico { width: 26px; height: 26px; color: var(--yellow); }
.direct__item small { display: block; font-size: 14px; color: var(--muted-dark); margin-top: 2px; }
.direct__item strong { display: block; font: 700 22px/1.2 var(--display); letter-spacing: .02em; word-break: break-word; }
.zone { display: flex; gap: 14px; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--steel-line); }
.zone .ico { width: 24px; height: 24px; color: var(--yellow); margin-top: 2px; }
.zone strong { font: 700 20px/1.2 var(--display); text-transform: uppercase; letter-spacing: .04em; }
.zone p { color: var(--muted-dark); margin-top: 4px; }

.form { background: var(--paper-2); color: var(--on-light); border-radius: var(--radius); padding: clamp(22px, 3vw, 34px); box-shadow: 0 30px 60px rgba(0,0,0,.35); border-top: 5px solid var(--yellow); }
.form h3 { font-size: 30px; margin-bottom: 20px; }
.form label, .pay__box label { display: grid; gap: 6px; margin-bottom: 14px; }
.form label > span, .pay__box label > span { font: 600 15px/1 var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--muted-light); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
input, textarea {
  width: 100%; font: 400 17px/1.4 var(--body); color: var(--on-light);
  padding: 12px 14px; border: 1.5px solid var(--line-light); border-radius: 6px; background: #fafaf8;
  transition: border-color .15s, background .15s;
}
input:focus, textarea:focus { border-color: var(--on-light); background: #fff; outline: none; }
textarea { resize: vertical; min-height: 110px; }
.form__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.form__actions .btn--outline { color: var(--on-light); }
.form__actions .btn--outline:hover { background: rgba(17,22,28,.06); }
.form__actions .btn { flex: 1 1 200px; }
.form__hint { margin-top: 14px; font-size: 14.5px; color: var(--muted-light); }
.form__err { margin-top: 10px; font-weight: 600; color: #b3261e; }

/* pay */
.pay {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center;
  background: var(--paper-2); border: 1px solid var(--line-light); border-radius: 14px; padding: clamp(26px, 4vw, 52px);
  position: relative; overflow: hidden;
}
.pay::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 8px; background: repeating-linear-gradient(-45deg, var(--yellow) 0 12px, var(--ink) 12px 24px); }
.pay__txt h2 { margin-bottom: 14px; }
.pay__txt > p { color: var(--muted-light); font-size: 18px; max-width: 30em; }
.paylogos { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.paylogos li { font: 700 14px/1 var(--display); letter-spacing: .08em; text-transform: uppercase; padding: 8px 12px; border: 1.5px solid var(--line-light); border-radius: 6px; color: #3c4550; }
.pay__box { background: var(--paper); border-radius: var(--radius); padding: 24px; }
.pay__secure { margin-top: 12px; font-size: 14px; color: var(--muted-light); text-align: center; }
.pay__msg { margin-top: 12px; padding: 12px 14px; border-radius: 6px; background: #fff4cc; color: #5b4500; font-size: 15px; }

/* footer */
.footer { background: #0b0f13; color: var(--muted-dark); font-size: 14.5px; padding: 28px 0 30px; }
.footer__in { display: flex; flex-wrap: wrap; gap: 8px 28px; justify-content: space-between; }
.footer strong { color: var(--on-dark); margin-right: 10px; }

/* mobile action bar */
.mbar { display: none; }

/* welding spark flicker inside hero art is SVG; subtle glow on hero */
@media (prefers-reduced-motion: reduce) { .dot { animation: none; } html { scroll-behavior: auto; } }

/* ========== responsive ========== */
@media (max-width: 1000px) {
  .grid--svc { grid-template-columns: repeat(2, 1fr); }
  .about, .contact, .pay { grid-template-columns: 1fr; }
  .hero__art { width: 100%; right: -22%; top: auto; bottom: 8px; transform: none; opacity: .35; }
}
@media (max-width: 720px) {
  body { font-size: 16px; padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
  .wrap { padding: 0 16px; }
  .topbar__in { height: 58px; gap: 10px; }
  .topbar__cta span { display: none; }
  .topbar__cta { padding: 0 12px; }
  .brand img { width: 30px; height: 30px; }
  .brand__txt strong { font-size: 18px; }
  .brand__txt small { display: none; }
  .lang a { padding: 6px; }
  .lang a span { display: none; }
  .lang a svg { width: 26px; height: 17px; }

  .hero { padding-top: 44px; padding-bottom: 170px; }
  .hero__art { width: 150%; right: -40%; opacity: .55; -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 40%); mask-image: linear-gradient(180deg, transparent 0%, #000 40%); }
  .cta .btn { flex: 1 1 40%; padding: 0 14px; }
  .cta .btn--ghost { display: none; }
  .grid--svc, .grid--2 { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .grid--svc { gap: 10px; }
  .card { padding: 18px 16px; display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; }
  .card__ico { width: 40px; height: 40px; margin: 2px 0 0; grid-row: span 2; }
  .card h3 { font-size: 21px; margin-bottom: 4px; }
  .card p { font-size: 15px; }
  .panel__img { aspect-ratio: 600 / 300; }
  .panel__txt { padding: 20px; }

  .mbar {
    display: grid; grid-template-columns: 1fr 1fr 1fr;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: rgba(11,15,19,.96); border-top: 1px solid var(--steel-line);
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  }
  .mbar a {
    display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 0;
    color: var(--on-dark); text-decoration: none; font: 700 13px/1 var(--display); letter-spacing: .1em; text-transform: uppercase;
  }
  .mbar a .ico { width: 22px; height: 22px; color: var(--yellow); }
  .mbar a.mbar__wa { background: var(--wa); color: #fff; border-radius: 8px; }
  .mbar a.mbar__wa .ico { color: #fff; }
  .hero__note { font-size: 15px; }
  .sectors { grid-template-columns: 1fr; }
  .panel--wide { grid-template-columns: 1fr; }
  .workshop__btns .btn { flex: 1 1 0; }
}

/* ================= v2 additions ================= */
.btn--wa { background: var(--wa); color: #fff; }
.btn--wa:hover { background: var(--wa-2); }
.hero__note { margin-top: 14px; font-size: 16px; color: var(--muted-dark); max-width: 34em; }
.hero__note::before { content: "✓ "; color: var(--yellow); font-weight: 700; }

/* sectors: 1 wide + 2 */
.sectors { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.panel--wide { grid-column: 1 / -1; display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; }
.panel--wide .panel__img { height: 100%; min-height: 300px; aspect-ratio: auto; border-bottom: 0; border-right: 1px solid var(--steel-line); background-size: contain; }
.panel--wide .panel__txt { padding: clamp(24px, 4vw, 48px); }
.panel--wide h3 { font-size: clamp(30px, 3.6vw, 44px); }
.panel--wide .panel__txt p:last-child { font-size: 18px; }

/* contact steps */
.steps { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 12px; }
.steps li { display: flex; align-items: center; gap: 14px; font-size: 17px; color: #d5dde5; }
.steps__n { flex: none; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--yellow); color: var(--ink); font: 800 18px/1 var(--display); }
.direct__item--wa { background: var(--wa); border-color: var(--wa); }
.direct__item--wa:hover { background: var(--wa-2); border-color: var(--wa-2); }
.direct__item--wa .ico, .direct__item--wa small { color: #fff; }
.direct__item--wa small { opacity: .85; }
.phone-alt { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 14px; font-size: 14.5px; color: var(--muted-dark); }
.phone-alt .ico { width: 16px; height: 16px; }
.phone-alt a { color: var(--on-dark); font-weight: 600; }
.muted { color: var(--muted-dark); }

.workshop { margin-top: 26px; padding: 20px; border-radius: var(--radius); border: 1px solid rgba(255,198,41,.35); background: rgba(255,198,41,.05); }
.workshop__head { display: flex; gap: 14px; }
.workshop__head > .ico { width: 28px; height: 28px; color: var(--yellow); margin-top: 2px; }
.workshop__head strong { font: 700 22px/1.2 var(--display); text-transform: uppercase; letter-spacing: .04em; }
.workshop__head p { margin-top: 2px; }
.workshop__btns { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 0 42px; }
.workshop__btns .btn { gap: 8px; }
.workshop__zone { margin: 14px 0 0 42px; font-size: 15px; }

.contact__main { display: grid; gap: 18px; }
.form__hint { display: flex; align-items: center; gap: 8px; }
.form__hint .ico { width: 18px; height: 18px; color: var(--wa); }
.form__legal { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line-light); font-size: 13.5px; color: var(--muted-light); }

.langnote { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: var(--radius); background: var(--ink-3); border: 1px dashed rgba(255,255,255,.18); }
.langnote__ico { font-size: 26px; line-height: 1; }
.langnote strong { font: 700 21px/1.2 var(--display); text-transform: uppercase; letter-spacing: .03em; color: var(--yellow); }
.langnote p { margin-top: 6px; color: #c9d2db; font-size: 15.5px; }
@media (max-width: 720px) {
  .workshop__btns, .workshop__zone { margin-left: 0; }
  .panel--wide .panel__img { min-height: 0; aspect-ratio: 600 / 340; border-right: 0; border-bottom: 1px solid var(--steel-line); }
}

.workshop__btns .btn { white-space: nowrap; }
@media (max-width: 420px) {
  .brand__txt strong { font-size: 16px; letter-spacing: .02em; }
  .brand img { width: 26px; height: 26px; }
  .topbar__in { gap: 8px; }
  .lang { gap: 2px; padding: 3px; }
  .phone-alt { display: block; }
  .phone-alt .ico { display: inline; vertical-align: -3px; margin-right: 4px; }
  .workshop__btns .btn { padding: 0 10px; font-size: 15px; }
}

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; max-width: 860px; }
.faq__item { background: var(--paper-2); border: 1px solid var(--line-light); border-radius: var(--radius); }
.faq__item summary {
  list-style: none; cursor: pointer; padding: 18px 52px 18px 22px; position: relative;
  font: 700 20px/1.25 var(--display); text-transform: uppercase; letter-spacing: .02em;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  font: 800 26px/1 var(--display); color: #e0a800;
}
.faq__item[open] summary::after { content: "–"; }
.faq__item[open] { border-left: 4px solid var(--yellow); }
.faq__item p { padding: 0 22px 20px; color: var(--muted-light); }
@media (max-width: 720px) {
  .faq__item summary { font-size: 18px; padding: 16px 44px 16px 16px; }
  .faq__item p { padding: 0 16px 16px; }
}
