/* Frédéric D'Amours — industrial-ops one-pager */
:root {
  --bg: #f4f1eb;
  --bg-alt: #e8e3d9;
  --surface: #ffffff;
  --ink: #1a2332;
  --ink-muted: #4a5568;
  --accent: #c45c26;
  --accent-hover: #a34a1c;
  --line: #cfc8ba;
  --positive: #1e3a2f;
  --positive-bg: #e8f0eb;
  --negative: #5c2a2a;
  --negative-bg: #f3e8e6;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(26, 35, 50, 0.06), 0 8px 24px rgba(26, 35, 50, 0.06);
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --max: 1080px;
  --narrow: 720px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 1.05rem;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

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

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}
.narrow { width: min(100% - 2rem, var(--narrow)); margin-inline: auto; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 241, 235, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 3.75rem;
  gap: 1rem;
}
.logo {
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.logo:hover { color: var(--ink); }
.nav {
  display: none;
  gap: 1.25rem;
  align-items: center;
}
.nav a {
  color: var(--ink-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}
.nav a:hover { color: var(--ink); }
.nav-cta {
  background: var(--ink);
  color: #fff !important;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
}
.nav-cta:hover { background: #2a3648; color: #fff !important; }

.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: 0;
  padding: 0.5rem;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
}
.nav-panel {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.75rem 1rem 1.25rem;
  border-top: 1px solid var(--line);
  background: var(--bg);
}
.nav-panel a {
  color: var(--ink);
  text-decoration: none;
  padding: 0.65rem 0.5rem;
  font-weight: 500;
  border-radius: 6px;
}
.nav-panel a:hover { background: var(--bg-alt); }
.nav-panel[hidden] { display: none !important; }

@media (min-width: 860px) {
  .nav { display: flex; }
  .nav-toggle { display: none; }
  .nav-panel { display: none !important; }
}

/* Hero */
.hero {
  padding: 4rem 0 3.5rem;
  background:
    linear-gradient(160deg, #1a2332 0%, #243044 55%, #2c3a4f 100%);
  color: #f4f1eb;
}
.hero .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 600;
  color: #c9b8a4;
  margin: 0 0 1rem;
}
.hero h1 {
  margin: 0 0 1.25rem;
  font-size: clamp(1.85rem, 4.5vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  max-width: 18ch;
}
.hero .lead {
  margin: 0 0 1.75rem;
  font-size: 1.1rem;
  color: #d7d2c8;
  max-width: 52ch;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.hero-note {
  margin: 0;
  font-size: 0.9rem;
  color: #a8b0bd;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
}
.hero .btn-secondary {
  background: transparent;
  color: #f4f1eb;
  border-color: #8a93a3;
}
.hero .btn-secondary:hover {
  border-color: #f4f1eb;
  color: #fff;
}
.section-contact .btn-primary { margin-top: 0.5rem; }

/* Sections */
.section { padding: 4rem 0; }
.section-alt { background: var(--bg-alt); }
.section h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  letter-spacing: -0.02em;
}
.section-intro {
  margin: 0 0 2rem;
  color: var(--ink-muted);
  max-width: 55ch;
}

.split {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 720px) {
  .split { grid-template-columns: 1fr 1fr; }
}

.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.5rem 1.5rem 1.25rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.card h3 { margin: 0 0 1rem; font-size: 1.15rem; }
.card ul { margin: 0; padding-left: 1.15rem; }
.card li { margin-bottom: 0.55rem; }
.card-positive { border-top: 4px solid var(--positive); }
.card-positive h3 { color: var(--positive); }
.card-negative { border-top: 4px solid #8b3a3a; }
.card-negative h3 { color: var(--negative); }

/* Offers */
.offers {
  display: grid;
  gap: 1.5rem;
}
.offer {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}
.offer-tag {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
}
.offer h3 {
  margin: 0 0 0.75rem;
  font-size: 1.4rem;
}
.offer-promise {
  margin: 0 0 1.5rem;
  color: var(--ink-muted);
}
.offer-layers {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 700px) {
  .offer-layers { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
}
.offer h4 {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
}
.offer .meta {
  margin: 0 0 0.65rem;
  font-size: 0.88rem;
  color: var(--ink-muted);
  font-weight: 600;
}
.offer ul { margin: 0; padding-left: 1.15rem; }
.offer li { margin-bottom: 0.4rem; }
.offer-foot {
  margin: 1.5rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
  color: var(--ink-muted);
}

/* Method */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
  display: grid;
  gap: 0.75rem;
}
.steps li {
  counter-increment: step;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1rem 1rem 3.5rem;
  position: relative;
  box-shadow: var(--shadow);
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.methode-note {
  margin: 1.5rem 0 0;
  color: var(--ink-muted);
  font-style: italic;
}

/* Cas */
.cas-grid {
  display: grid;
  gap: 1rem;
}
@media (min-width: 700px) {
  .cas-grid { grid-template-columns: repeat(3, 1fr); }
}
.cas-slot {
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  min-height: 10rem;
}
.cas-label {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
}
.cas-slot h3 { margin: 0 0 0.5rem; }
.cas-slot p:last-child {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.95rem;
}

/* About + contact */
.section.narrow p, #a-propos p { color: var(--ink); }
#a-propos p { margin: 0 0 1rem; }
.section-contact {
  background: var(--ink);
  color: #f4f1eb;
  text-align: center;
}
.section-contact h2 { color: #f4f1eb; }
.section-contact p { color: #c9cdd4; }
.contact-email {
  font-size: 1.25rem;
  margin: 1.25rem 0 !important;
}
.contact-email a {
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid var(--accent);
}
.contact-email a:hover { color: #f4c4a8; }

/* Footer */
.site-footer {
  background: #121820;
  color: #8a93a3;
  padding: 1.75rem 0;
  font-size: 0.88rem;
}
.footer-inner p { margin: 0 0 0.35rem; }
.footer-meta { opacity: 0.85; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Outils */
#outils { border-top: 1px solid var(--line); }
.tools { display: grid; gap: 1.5rem; }
@media (min-width: 860px) { .tools { grid-template-columns: repeat(2, 1fr); } }
.tool .offer-promise { margin-bottom: 1.25rem; }
