/* Industep — industep.com
   Charte : Inter, accent #A8442A (#D8703F sur fond sombre).
   Aucune dépendance, aucun CDN, aucun script tiers. */

@font-face {
  font-family: 'Inter';
  src: url('/fonts/Inter-Variable.woff2') format('woff2-variations');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --accent:  #A8442A;
  --ink:     #16181C;
  --muted:   #5B6068;
  --line:    #DFE1E4;
  --paper:   #FFFFFF;
  --panel:   #F5F6F7;
  --shadow:  0 1px 2px rgba(22,24,28,.05);
  --wrap:    1080px;
  --gap:     clamp(2.6rem, 6vw, 5rem);
}

@media (prefers-color-scheme: dark) {
  :root {
    --accent: #D8703F;
    --ink:    #F2F3F4;
    --muted:  #9AA0A6;
    --line:   #2A2D33;
    --paper:  #141619;
    --panel:  #1A1D21;
    --shadow: none;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-optical-sizing: auto;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
img, svg { max-width: 100%; }

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

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- header ---------- */

.bar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 1rem;
  padding: .9rem var(--side);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.brand { display: inline-flex; align-items: center; gap: .6rem;
  text-decoration: none; color: var(--accent); flex: none; }
.mono { width: 30px; height: 30px; display: block; }
.wordmark { font-size: 1.28rem; letter-spacing: -.02em; line-height: 1; color: var(--ink); }
.w-light { font-weight: 300; }
.w-bold  { font-weight: 700; color: var(--accent); }

.nav { margin-left: auto; display: flex; align-items: center; gap: 1.4rem; }
.nav a { text-decoration: none; font-size: .93rem; color: var(--muted); }
.nav a:hover { color: var(--ink); }
.nav-cta {
  padding: .38rem .9rem; border-radius: 999px;
  background: var(--accent); color: #fff;
  font-weight: 500;
}
.nav-cta:hover { color: #fff; filter: brightness(1.08); }
.nav-lang { font-weight: 500; letter-spacing: .04em; }

.burger { display: none; margin-left: auto;
  width: 44px; height: 44px; padding: 0;
  background: none; border: 0; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.burger span { display: block; width: 21px; height: 2px; border-radius: 2px;
  background: var(--ink); transition: transform .2s, opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .burger { display: flex; }
  .nav { position: fixed; inset: 61px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: .5rem var(--side) 1.2rem; display: none; }
  .nav.open { display: flex; }
  .nav a { padding: .85rem 0; font-size: 1rem; border-bottom: 1px solid var(--line); }
  .nav a:last-child { border-bottom: 0; }
  .nav-cta { border-radius: 0; background: none; color: var(--accent); padding: .85rem 0; font-weight: 600; }
  .nav-cta:hover { filter: none; color: var(--accent); }
}

/* ---------- sections ---------- */

/* Le centrage passe par le padding de la section, jamais par des marges
   automatiques : un raccourci "margin: 0 0 1rem" sur un enfant remettrait
   margin-inline a zero et casserait l'alignement en silence. */
:root { --side: max(clamp(1rem, 4vw, 2.5rem), calc((100% - var(--wrap)) / 2)); }

section {
  padding-block: var(--gap);
  padding-inline: var(--side);
}
.band { background: var(--panel); }

h1, h2, h3 { letter-spacing: -.02em; line-height: 1.15;
  margin-block: 0 .6em; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 5.5vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); font-weight: 700; margin-bottom: 1.6rem; }
h3 { font-size: 1.08rem; font-weight: 600; }

p { margin-block: 0 1rem; text-wrap: pretty; }
/* balance egalise la longueur des lignes : indispensable sur un texte court
   ou centre. pretty se contente d'eviter un mot orphelin, ce qui ne suffit
   pas ici. Les navigateurs anciens ignorent les deux, sans casse. */
.lead { color: var(--muted); font-size: 1.08rem; max-width: 64ch; text-wrap: balance; }
.lead2 { margin-top: -.4rem; }
.note { color: var(--muted); font-size: .95rem; }

/* ---------- hero ---------- */

.hero { padding-top: clamp(1.8rem, 5vw, 3.6rem); }
.tagline { color: var(--accent); font-weight: 500; font-size: .95rem;
  letter-spacing: .02em; margin-bottom: .9rem; }
.hero h1 { max-width: 20ch; }
.hero .lead { font-size: 1.16rem; max-width: 58ch; }

.actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.btn { display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 1.4rem;
  background: var(--accent); color: #fff;
  border-radius: 8px; text-decoration: none;
  font-size: .97rem; font-weight: 500; box-shadow: var(--shadow); }
.btn:hover { filter: brightness(1.08); }
.btn-ghost { background: none; color: var(--ink);
  border: 1px solid var(--line); box-shadow: none; }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); filter: none; }

/* ---------- cards ---------- */

.cards { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card { background: var(--paper); border: 1px solid var(--line);
  border-radius: 12px; padding: 1.5rem 1.4rem; }
.card h3 { color: var(--accent); }
.card p { color: var(--muted); font-size: .97rem; }
.card ul { margin: 1rem 0 0; padding: 0; list-style: none; }
.card li { position: relative; padding-left: 1.1rem; margin-bottom: .5rem;
  font-size: .93rem; line-height: 1.45; }
.card li::before { content: ""; position: absolute; left: 0; top: .58em;
  width: 5px; height: 5px; border-radius: 1px; background: var(--accent); }

/* ---------- bandeau tous publics ---------- */

.highlight {
  background: var(--accent);
  color: #fff;
  padding-block: clamp(2.4rem, 5vw, 3.8rem);
  text-align: center;
}
.hl-inner { max-width: 760px; margin-inline: auto; }
.highlight h2 { color: #fff; margin-bottom: 1rem; }
.highlight p { color: rgba(255,255,255,.94); font-size: 1.02rem; text-wrap: balance; }
.highlight p:last-child { margin-bottom: 0; }

/* ---------- method ---------- */

.grid2 { display: grid; gap: 1.8rem 2.6rem; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.item h3 { margin-bottom: .4em; }
.item p { color: var(--muted); font-size: .97rem; margin: 0; }

/* ---------- sectors ---------- */

/* Phrase unique : la limite de 64ch sert la lecture suivie, pas une ligne
   isolee. Bridee, elle decrocherait de la rangee d'etiquettes en dessous. */
#sectors .lead { max-width: none; }

.tags { display: flex; flex-wrap: wrap; gap: .5rem; padding: 0;
  margin-block: 1.6rem 1.2rem; list-style: none; }
.tags li { padding: .38rem .85rem; border: 1px solid var(--line); border-radius: 999px;
  font-size: .9rem; background: var(--paper); }

/* ---------- about ---------- */

.about { display: grid; gap: 2rem; grid-template-columns: 190px 1fr; align-items: start; }
.portrait { aspect-ratio: 1; border-radius: 12px;
  background: var(--panel) url('/portrait.jpg') center/cover no-repeat;
  border: 1px solid var(--line); }
.bio p { color: var(--muted); font-size: .99rem; }
.who { color: var(--ink); margin-bottom: 1.1rem; }
.who b { display: block; font-size: 1.1rem; font-weight: 600; }
.who span { color: var(--muted); font-size: .93rem; }
@media (max-width: 620px) {
  .about { grid-template-columns: 1fr; }
  .portrait { max-width: 150px; }
}

/* ---------- contact ---------- */

.contact { text-align: center; }
.contact > * { max-width: 700px; margin-inline: auto; }
.contact .actions { justify-content: center; }
.mailtext { margin-top: 1.6rem; color: var(--muted); font-size: .95rem; }
.mailtext a { color: var(--accent); text-decoration: none; }

/* ---------- footer ---------- */

footer {
  padding-block: 2.4rem;
  padding-inline: var(--side);
  border-top: 1px solid var(--line);
  font-size: .88rem;
  text-align: center;
}
footer p { margin-block: 0 .35rem; }
footer p:first-child { font-weight: 500; }
footer p:last-child { margin-bottom: 0; }
.muted { color: var(--muted); }
