/* La bonne soudure - feuille de style
   Concept : atelier d'acier brut. Gris métal, titres condensés en capitales,
   un accent orange, et le dégradé des couleurs de revenu de l'inox
   (paille, bronze, violet, bleu) utilisé comme filet. */

@font-face { font-family: "Barlow"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/barlow-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/barlow-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/barlow-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/barlow-condensed-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-style: normal; font-display: swap; src: url("fonts/barlow-condensed-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 800; font-style: normal; font-display: swap; src: url("fonts/barlow-condensed-latin-800-normal.woff2") format("woff2"); }

:root {
  color-scheme: light;
  --bg: #e6e9eb;
  --surface: #f3f5f6;
  --ink: #15191d;
  --muted: #4d575f;
  --line: #bcc3c8;
  --accent: #b13b12;
  --accent-ink: #ffffff;
  --accent-light: #f08a5d;
  --dark: #15191d;
  --dark-ink: #eef1f3;
  --dark-muted: #b3bdc4;
  --f-display: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --f-body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --tint: linear-gradient(90deg, #e8c46a 0%, #c98a3a 28%, #8d4f8f 62%, #3d5fc4 100%);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 1rem; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--f-body); font-size: 1.0625rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: 0.6rem 1rem; z-index: 10; }
.skip:focus { left: 0; }

.wrap {
  max-width: 75rem; margin-inline: auto;
  padding-inline: max(1.5rem, env(safe-area-inset-left, 0px));
}
h1, h2, h3 { font-family: var(--f-display); text-transform: uppercase; margin: 0; text-wrap: balance; }
h2 { font-weight: 800; font-size: clamp(2.3rem, 6vw, 3.75rem); line-height: 0.98; }
h3 { font-weight: 700; line-height: 1; }
p { margin: 0; }

.eyebrow {
  font-family: var(--f-display); font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.14em; font-size: 1rem; color: var(--accent);
}
.head { display: flex; flex-direction: column; gap: 0.75rem; }

/* Boutons */
.btn {
  display: inline-block; cursor: pointer;
  font-family: var(--f-display); font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; font-size: 1.15rem; line-height: 1.2;
  padding: 0.75rem 1.75rem; border: 2px solid var(--accent);
  background: var(--accent); color: var(--accent-ink); text-decoration: none; border-radius: 0;
}
.btn:hover { color: var(--accent-ink); filter: brightness(1.1); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--bg); filter: none; }
.btn:disabled { opacity: 0.6; cursor: wait; }

/* En-tête */
.top { border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.1rem; }
.brand { font-family: var(--f-display); font-weight: 800; text-transform: uppercase; font-size: 1.65rem; letter-spacing: 0.04em; text-decoration: none; }
.brand span { color: var(--accent); }
.top nav { display: flex; flex-wrap: wrap; gap: 1.75rem; font-weight: 500; font-size: 1rem; }
.top nav a { text-decoration: none; color: var(--muted); }
.top nav a:hover { color: var(--accent); }
.top .btn { font-size: 1.1rem; padding: 0.55rem 1.5rem; }

/* Hero */
.hero { padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(2.5rem, 5vw, 4rem); }
.hero .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 3rem; }
.hero-text { flex: 1 1 28.75rem; min-width: 0; display: flex; flex-direction: column; gap: 1.4rem; }
.hero h1 { font-weight: 800; font-size: clamp(3.6rem, 11vw, 5.75rem); line-height: 0.96; letter-spacing: 0.01em; }
.hero h1 span { display: block; color: var(--accent); }
.hero .sub { font-family: var(--f-display); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; font-size: clamp(1.4rem, 3vw, 1.75rem); }
.hero .metals { color: var(--muted); font-weight: 500; letter-spacing: 0.06em; }
.hero .lead { max-width: 30rem; color: var(--muted); }
.cta { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.hero figure { flex: 1 1 28.75rem; min-width: 0; margin: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.hero figcaption { color: var(--muted); font-size: 0.95rem; }

.tint { height: 8px; background: var(--tint); }

/* Avant / après */
.ba { position: relative; }
.ba img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.ba .pair { display: flex; gap: 4px; aspect-ratio: 3 / 2; }
.ba .pair img { flex: 1 1 0; min-width: 0; width: 50%; height: 100%; aspect-ratio: auto; }
.tag-avant, .tag-apres {
  position: absolute; top: 1.1rem; z-index: 1;
  font-family: var(--f-display); font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.12em; font-size: 1rem; padding: 0.15rem 0.9rem;
}
.tag-avant { left: 0; background: var(--dark); color: var(--dark-ink); }
.tag-apres { right: 0; background: var(--accent); color: var(--accent-ink); }

/* Sections */
section { padding-block: clamp(3rem, 7vw, 5rem); }

/* Réalisations */
#realisations .wrap { display: flex; flex-direction: column; gap: 2.5rem; }
.row { display: flex; flex-wrap: wrap; gap: 1.75rem; }
.row.small { gap: 1.25rem; }
.row.top-aligned { align-items: flex-start; }
.card { margin: 0; min-width: 0; display: flex; flex-direction: column; gap: 0.75rem; }
.card.half { flex: 1 1 28.75rem; }
.card.wide { flex: 2 1 32.5rem; }
.card.side { flex: 1 1 16.25rem; }
.card.tile { flex: 1 1 11.875rem; }
.card img { width: 100%; object-fit: cover; }
.r-16-9 { aspect-ratio: 16 / 9; }
.r-4-5 { aspect-ratio: 4 / 5; }
.r-1-1 { aspect-ratio: 1 / 1; }
.r-3-2 { aspect-ratio: 3 / 2; }
.card figcaption { display: flex; flex-direction: column; gap: 0.1rem; }
.kind { font-family: var(--f-display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.875rem; color: var(--accent); }
.what { font-weight: 600; }

/* Savoir-faire */
#savoir-faire { padding-top: 0; }
#savoir-faire .wrap { display: flex; flex-direction: column; gap: 2.25rem; }
.services { display: flex; flex-wrap: wrap; gap: 2rem; border-top: 2px solid var(--ink); padding-top: 1.75rem; }
.service { flex: 1 1 17.5rem; min-width: 0; display: flex; flex-direction: column; gap: 0.75rem; }
.service h3 { font-size: 2rem; }
.service p { color: var(--muted); }
.service ul { margin: 0; padding: 0; list-style: none; }
.service li { padding: 0.4rem 0; border-top: 1px solid var(--line); font-weight: 500; }

/* Bande sombre */
.band { background: var(--dark); color: var(--dark-ink); }
.band .eyebrow { color: var(--accent-light); }
.band .wrap { display: flex; flex-direction: column; gap: 2.25rem; }
.ways { display: flex; flex-wrap: wrap; gap: 2rem; }
.way { flex: 1 1 17.5rem; min-width: 0; display: flex; flex-direction: column; gap: 0.6rem; align-items: flex-start; }
.way h3 { font-size: 1.9rem; }
.way p { color: var(--dark-muted); }
.way .pill { font-family: var(--f-display); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.95rem; border: 1px solid #6c7780; padding: 0.1rem 0.75rem; color: #dfe5e9; }

/* Matières */
#matieres .wrap { display: flex; flex-direction: column; gap: 2.25rem; }
.materials { display: flex; flex-wrap: wrap; gap: 1rem; }
.mat { flex: 1 1 17.5rem; min-width: 0; background: var(--surface); border: 1px solid var(--line); padding: 1.5rem; display: flex; flex-direction: column; gap: 0.4rem; }
.mat h3 { font-size: 2.25rem; }
.mat p { color: var(--muted); }

/* Contact */
#contact .wrap { display: flex; flex-wrap: wrap; gap: 4rem; align-items: flex-start; }
.contact-intro { flex: 1 1 20rem; min-width: 0; display: flex; flex-direction: column; gap: 1.1rem; }
.slogan { font-family: var(--f-display); font-weight: 800; text-transform: uppercase; font-size: clamp(2.4rem, 5vw, 3.25rem); line-height: 1; }
.slogan span { color: var(--accent); }
.contact-intro p:not(.slogan):not(.eyebrow) { max-width: 25rem; color: var(--muted); }
form { flex: 1 1 30rem; min-width: 0; display: flex; flex-direction: column; gap: 1.1rem; }
.fields { display: flex; flex-wrap: wrap; gap: 1.1rem; }
label { display: flex; flex-direction: column; gap: 0.35rem; font-weight: 600; font-size: 0.95rem; min-width: 0; }
.fields label { flex: 1 1 13.75rem; }
label small { font-weight: 400; color: var(--muted); }
input, select, textarea {
  font: inherit; color: var(--ink); background: var(--surface); width: 100%; min-width: 0;
  border: 1px solid var(--line); border-bottom: 2px solid var(--ink); border-radius: 0; padding: 0.75rem 0.85rem;
}
textarea { min-height: 9.5rem; resize: vertical; }
input[type="file"] { padding: 0.6rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
form .btn { align-self: flex-start; }
.status { min-height: 1.6em; font-weight: 500; }
.status.ok { color: #1f7a3d; }
.status.err { color: var(--accent); }
.rgpd { font-size: 0.875rem; color: var(--muted); }

/* Pied de page */
footer { background: var(--dark); color: var(--dark-muted); padding-block: 2rem calc(2rem + env(safe-area-inset-bottom, 0px)); font-size: 0.95rem; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
footer strong { color: var(--dark-ink); font-family: var(--f-display); text-transform: uppercase; letter-spacing: 0.06em; font-size: 1.2rem; font-weight: 700; }
footer a { color: var(--dark-ink); }
footer a:hover { color: var(--accent-light); }

/* Mentions légales */
#mentions { display: none; border-top: 1px solid var(--line); }
#mentions:target { display: block; }
#mentions .wrap { max-width: 46rem; }
#mentions h2 { font-size: 2rem; }
#mentions h3 { margin-top: 1.25rem; font-size: 1.25rem; }
#mentions p { margin: 0.35rem 0 0; color: var(--muted); }

@media (max-width: 52rem) {
  .top nav { display: none; }
  #contact .wrap { gap: 2.5rem; }
}
@media (max-width: 30rem) {
  .btn { width: 100%; text-align: center; }
  .top .btn { width: auto; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
