/* Smithi
   Concept : la forge. Fond noir comme l'acier, et pour seules couleurs les « couleurs de revenu »
   que prend l'acier chauffé : paille, bronze, pourpre, bleu. Une couleur par expertise, dans l'ordre
   de la chaîne (IoT, data, IA, cybersécurité). Une seule famille, Archivo, étirée et grasse pour les
   titres, normale pour le texte. Un seul moment fort : la barre d'acier du bandeau d'ouverture,
   traversée une fois par la chaleur au chargement. */
/* Police hébergée sur le site : aucune requête vers un service tiers (Archivo, licence OFL). */
@font-face {
  font-family: 'Archivo';
  src: url('/assets/fonts/archivo-latin.woff') format('woff');
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --black: #000000;
  --steel: #0d0f12;      /* surfaces */
  --steel-2: #161a1f;    /* survol, éléments en relief */
  --line: #262a31;       /* filets */
  --line-strong: #3a3f48;
  --silver: #ece9e3;     /* texte */
  --muted: #9b9ea6;      /* texte secondaire */
  --argent: #c9ccd2;
  --paille: #e6cf7a;     /* IoT */
  --bronze: #d08f4f;     /* Data */
  --pourpre: #a57bea;    /* IA */
  --bleu: #6a95ff;       /* Cybersécurité */
  --temper: linear-gradient(90deg, var(--paille), var(--bronze) 34%, var(--pourpre) 67%, var(--bleu));
  --danger: #ff8a7a;
  --focus: var(--paille);

  --font: 'Archivo', 'Helvetica Neue', Arial, system-ui, sans-serif;
  --display-stretch: 125%;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.45rem, 2.2vw, 1.75rem);
  --step-3: clamp(2rem, 4.4vw, 3.5rem);
  --step-4: clamp(2.6rem, 7vw, 6.2rem);

  --gutter: clamp(18px, 4vw, 56px);
  --max: 1320px;
  --header-h: 76px;
  --radius: 4px;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; background: var(--black); }
body {
  margin: 0;
  background: var(--black);
  color: var(--silver);
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'ss01';
}
.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
::selection { background: var(--paille); color: var(--black); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -56px; z-index: 30; background: var(--silver); color: var(--black); padding: 10px 14px; text-decoration: none; font-weight: 600; }
.skip:focus { top: 12px; }
main:focus { outline: none; }

h1, h2, h3, h4 { font-family: var(--font); font-stretch: var(--display-stretch); font-weight: 700; line-height: 1.05; letter-spacing: -0.02em; text-wrap: balance; margin: 0; }
h1 { font-size: var(--step-4); font-weight: 800; letter-spacing: -0.035em; line-height: 0.98; }
h2 { font-size: var(--step-3); letter-spacing: -0.03em; }
h3 { font-size: var(--step-1); letter-spacing: -0.01em; }
p { margin: 0; }
.lede { font-size: 1.1875rem; color: var(--muted); max-width: 36em; line-height: 1.55; }
.icon { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.tick { color: var(--paille); font-weight: 700; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 0.9375rem/1 var(--font); letter-spacing: 0;
  padding: 16px 24px; border-radius: var(--radius); border: 1px solid var(--line-strong);
  background: transparent; color: var(--silver); text-decoration: none; cursor: pointer;
  transition: background-color .18s, border-color .18s, color .18s;
}
.btn:hover { border-color: var(--silver); }
.btn.gold { background: var(--silver); border-color: var(--silver); color: var(--black); }
.btn.gold:hover { background: #fff; border-color: #fff; }
.btn.ghost { background: transparent; color: var(--silver); border-color: var(--line-strong); }
.btn.ghost:hover { border-color: var(--silver); }
.btn.small { padding: 11px 16px; font-size: 0.8125rem; }
.btn[disabled] { opacity: .6; cursor: progress; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 4px; cursor: pointer; }
.linkbtn:hover { text-decoration-color: var(--silver); }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: rgba(0, 0, 0, .78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; color: inherit; }
/* Le logo : quatre barres aux couleurs de revenu */
.brand-mark { flex: none; display: flex; gap: 3px; height: 22px; }
.brand-mark i { display: block; width: 5px; height: 100%; border-radius: 1px; }
.brand-mark i:nth-child(1) { background: var(--paille); }
.brand-mark i:nth-child(2) { background: var(--bronze); }
.brand-mark i:nth-child(3) { background: var(--pourpre); }
.brand-mark i:nth-child(4) { background: var(--bleu); }
.brand-text { display: flex; align-items: baseline; gap: 14px; line-height: 1.2; min-width: 0; }
.brand-text strong { font-stretch: var(--display-stretch); font-size: 1.45rem; font-weight: 800; letter-spacing: -0.03em; white-space: nowrap; }
.brand-text span { font-size: 0.8125rem; color: var(--muted); white-space: nowrap; }
.nav { display: flex; align-items: center; gap: 30px; font-size: 0.9rem; }
.nav-link { text-decoration: none; font-weight: 500; color: var(--muted); transition: color .15s; }
.nav-link:hover { color: var(--silver); }

/* ---------- Sections ---------- */
section { padding-block: clamp(80px, 11vw, 150px); border-top: 1px solid var(--line); }
/* Les sections posées sur la grille gardent un filet d'un bord à l'autre, comme les autres */
main { overflow-x: clip; }
main > section.wrap { position: relative; border-top: 0; }
main > section.wrap::before { content: ''; position: absolute; top: 0; left: 50%; width: 100vw; translate: -50% 0; border-top: 1px solid var(--line); }
.hero-band { border-top: 0; }
.tint { background: var(--steel); }
.band-dark { background: var(--black); }
.section-head {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 18px clamp(32px, 6vw, 96px); align-items: end;
  margin-bottom: clamp(40px, 6vw, 72px);
}
.section-head .lede { justify-self: start; }

/* ---------- Hero ---------- */
.hero-band { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(64px, 9vw, 120px) clamp(56px, 7vw, 96px); }
/* Une lueur de forge, très basse, sous la barre d'acier */
.hero-band::before {
  content: ''; position: absolute; z-index: -1; pointer-events: none;
  left: -10%; right: -10%; top: 38%; height: 60%;
  background: radial-gradient(60% 50% at 30% 50%, rgba(208, 143, 79, .14), transparent 70%),
              radial-gradient(45% 45% at 75% 55%, rgba(106, 149, 255, .10), transparent 70%);
  filter: blur(20px);
}
.hero { display: grid; gap: clamp(36px, 5vw, 64px); }
.hero-text { display: grid; gap: 22px; justify-items: start; }
.hero-text h1 { max-width: 19ch; }
.hero-text .eyebrow { display: none; }
.eyebrow { font-size: 0.9375rem; font-weight: 500; color: var(--muted); }
.hero-foot { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.hero-foot .lede { font-size: 1.1875rem; color: var(--muted); }

.brief { display: grid; gap: 12px; width: 100%; }
.brief-label { font-size: var(--step--1); font-weight: 500; color: var(--silver); }
.brief-field { display: flex; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--steel); transition: border-color .15s; }
.brief-field:focus-within { border-color: var(--silver); }
.brief-field input {
  flex: 1; min-width: 0; font: inherit; font-size: 1rem; color: var(--silver); background: transparent;
  border: 0; padding: 16px 18px;
}
.brief-field input::placeholder { color: #6e727a; }
.brief-field input:focus { outline: none; }
.brief-field .btn { margin: 5px; white-space: nowrap; }
.brief-ideas { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.brief-ideas button {
  font: inherit; font-size: 0.8125rem; color: var(--muted); cursor: pointer;
  background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: 7px 13px;
  transition: border-color .15s, color .15s;
}
.brief-ideas button:hover { color: var(--silver); border-color: var(--line-strong); }

.proofs {
  list-style: none; margin: clamp(56px, 8vw, 104px) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 48px);
}
.proofs li { display: grid; gap: 6px; align-content: start; padding-top: 18px; border-top: 1px solid var(--line); }
.proofs strong { font-stretch: var(--display-stretch); font-weight: 700; font-size: 1.05rem; letter-spacing: -0.01em; }
.proofs span { font-size: var(--step--1); color: var(--muted); }

/* La barre d'acier : la chaîne IoT, data, IA, cybersécurité, traversée une fois par la chaleur */
.manifeste { margin: 0; display: grid; gap: 22px; }
.forge-bar { position: relative; height: 6px; border-radius: 3px; background: var(--steel-2); overflow: hidden; }
.forge-bar::before {
  content: ''; position: absolute; inset: 0; background: var(--temper);
  clip-path: inset(0 100% 0 0); animation: forge-heat 1.9s cubic-bezier(.6, .05, .25, 1) .35s forwards;
}
.forge-bar::after {
  content: ''; position: absolute; top: -10px; bottom: -10px; width: 120px; left: -120px;
  background: radial-gradient(closest-side, rgba(255, 246, 220, .95), rgba(255, 220, 160, .35) 45%, transparent);
  animation: forge-spark 1.9s cubic-bezier(.6, .05, .25, 1) .35s forwards;
}
@keyframes forge-heat { to { clip-path: inset(0 0 0 0); } }
@keyframes forge-spark { 0% { left: -120px; opacity: 1; } 90% { opacity: 1; } 100% { left: 100%; opacity: 0; } }
.manifeste ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 32px); }
.manifeste li {
  position: relative; display: grid; gap: 8px; align-content: start;
  animation: m-in .6s ease both; animation-delay: calc(.6s + var(--i) * .42s);
}
.manifeste p { font-stretch: var(--display-stretch); font-weight: 700; font-size: clamp(1.25rem, 2.2vw, 1.85rem); line-height: 1.05; letter-spacing: -0.025em; }
.m-verbe { color: var(--c); }
.m-suite { color: var(--silver); }
.manifeste a { justify-self: start; font-size: var(--step--1); color: var(--muted); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 4px; }
.manifeste a:hover { color: var(--silver); text-decoration-color: var(--c); }
/* Survoler un maillon chauffe sa portion de la barre et met les autres en retrait */
@media (min-width: 901px) {
  .manifeste li::before {
    content: ''; position: absolute; left: 0; right: 0; top: -28px; height: 6px; border-radius: 3px;
    background: var(--c); box-shadow: 0 0 22px 2px var(--c); opacity: 0; transition: opacity .25s;
  }
  .manifeste li:hover::before, .manifeste li:focus-within::before { opacity: 1; }
  .manifeste li > * { transition: opacity .25s; }
  .manifeste ol:hover li:not(:hover) > *, .manifeste ol:focus-within li:not(:focus-within) > * { opacity: .4; }
}
.manifeste figcaption { font-size: 0.875rem; color: var(--muted); }
@keyframes m-in { from { opacity: 0; transform: translateY(6px); } }

/* ---------- Expertises : lignes éditoriales, une couleur par expertise ---------- */
.spec-rows { display: grid; border-bottom: 1px solid var(--line); }
.spec-row {
  position: relative; display: grid; grid-template-columns: minmax(0, 4.2fr) minmax(0, 3.8fr) minmax(0, 4fr); gap: 20px clamp(24px, 4vw, 64px);
  padding-block: clamp(28px, 3.6vw, 44px); border-top: 1px solid var(--line);
}
.spec-row::before { content: ''; position: absolute; top: -1px; left: 0; width: 72px; height: 2px; background: var(--c); }
.spec-row h3 { display: flex; align-items: flex-start; gap: 14px; font-size: clamp(1.5rem, 2.6vw, 2.25rem); letter-spacing: -0.03em; }
.spec-row h3 .icon { width: 26px; height: 26px; margin-top: .2em; color: var(--c); }
.spec-row > p { color: var(--muted); max-width: 30em; }
.spec-row.is-frame h3 { font-weight: 600; }
.spec-side { display: grid; gap: 14px; align-content: start; }
.spec-offres { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.spec-offres a { display: block; padding: 6px 0; text-decoration: none; color: var(--silver); font-weight: 500; }
.spec-offres a:hover { text-decoration: underline; text-decoration-color: var(--c, var(--silver)); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.spec-row .more-link { justify-self: start; }
.step-offres { list-style: none; margin: 4px 0 0; padding: 14px 0 0; border-top: 1px solid var(--line); display: grid; gap: 6px; }
.step-offres a { color: var(--muted); font-size: 0.875rem; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.step-offres a:hover { color: var(--silver); }

/* ---------- Secteurs : grandes lignes typographiques ---------- */
.sector-grid { list-style: none; margin: 0; padding: 0; display: grid; border-bottom: 1px solid var(--line); }
.sector-grid li { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 12px clamp(24px, 4vw, 64px); align-items: baseline; padding-block: clamp(22px, 3vw, 34px); border-top: 1px solid var(--line); }
.sector-grid h3 { font-size: clamp(1.6rem, 3.4vw, 2.8rem); letter-spacing: -0.035em; font-weight: 700; }
.sector-grid p { color: var(--muted); }

/* ---------- Autres interventions : en second plan ---------- */
#autres { padding-block: clamp(56px, 7vw, 96px); }
#autres h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
#autres .lede { font-size: 1rem; }
.autres-grid { display: grid; grid-template-columns: minmax(0, 1fr); }
.autres-col ul { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(20px, 2.4vw, 32px); }
.ref-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: clamp(20px, 3vw, 40px); }
.ref-list li { display: grid; gap: 16px; align-content: start; padding-top: 20px; border-top: 1px solid var(--line-strong); }
.ref-list h3 { font-size: var(--step-1); }
.ref-list dl { margin: 0; display: grid; gap: 12px; }
.ref-list dt { font-size: var(--step--1); font-weight: 600; color: var(--silver); }
.ref-list dd { margin: 2px 0 0; color: var(--muted); }
.autres-col { display: grid; gap: 10px; align-content: start; scroll-margin-top: 120px; }
.autres-col h3 { font-stretch: 100%; font-size: 1rem; font-weight: 600; letter-spacing: 0; color: var(--silver); }
.autres-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.autres-col a { color: var(--muted); font-size: 0.92rem; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.autres-col a:hover { color: var(--silver); text-decoration-color: var(--line-strong); }

/* ---------- Deux parcours ---------- */
.parcours-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line-strong); }
.parcours-card { display: grid; grid-template-rows: auto auto 1fr auto; gap: 18px; align-content: start; justify-items: start; padding: clamp(28px, 4vw, 48px) clamp(24px, 4vw, 56px) 0 0; }
.parcours-card + .parcours-card { border-left: 1px solid var(--line); padding-left: clamp(24px, 4vw, 56px); }
.parcours-card h3 { font-size: var(--step-3); }
.parcours-public { color: var(--muted); max-width: 34em; }
.parcours-points { list-style: none; margin: 4px 0 8px; padding: 0; display: grid; gap: 10px; align-self: stretch; }
.parcours-points li { display: flex; gap: 12px; align-items: baseline; padding-bottom: 10px; border-bottom: 1px solid var(--line); }

/* Sélecteur de parcours au-dessus du catalogue */
.parcours-switch { display: inline-flex; gap: 4px; padding: 4px; margin-bottom: 28px; border: 1px solid var(--line-strong); border-radius: 999px; }
.parcours-switch button {
  font: inherit; font-size: 0.9375rem; font-weight: 600; color: var(--muted); cursor: pointer;
  background: transparent; border: 0; border-radius: 999px; padding: 10px 20px; transition: background-color .15s, color .15s;
}
.parcours-switch button:hover { color: var(--silver); }
.parcours-switch button[aria-pressed="true"] { background: var(--silver); color: var(--black); }
/* Chaque élément marqué de ses parcours n'apparaît que dans le parcours affiché */
.console[data-parcours="strategiques"] [data-cibles]:not([data-cibles~="strategiques"]),
.console[data-parcours="pme"] [data-cibles]:not([data-cibles~="pme"]),
.console[data-parcours="strategiques"] .pole-tab-count:not([data-parcours="strategiques"]),
.console[data-parcours="pme"] .pole-tab-count:not([data-parcours="pme"]) { display: none; }
.pole-part { display: grid; gap: 22px; }

/* ---------- Catalogue : liste à gauche, offres à droite ---------- */
.console { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); border-top: 1px solid var(--line); }
.pole-tabs { display: flex; flex-direction: column; border-right: 1px solid var(--line); }
.pole-tab {
  display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 16px; row-gap: 2px; align-items: center;
  text-align: left; font: inherit; color: var(--muted); cursor: pointer;
  background: transparent; border: 0; border-bottom: 1px solid var(--line); border-left: 2px solid transparent;
  padding: 22px 24px 22px 20px;
  transition: background-color .15s, border-color .15s, color .15s;
}
.pole-tab .icon { grid-row: span 2; width: 26px; height: 26px; color: var(--c); }
.pole-tab-name { font-stretch: var(--display-stretch); font-weight: 700; font-size: 1.15rem; letter-spacing: -0.02em; line-height: 1.2; color: var(--silver); }
.pole-tab-count { font-size: 0.8125rem; }
.pole-tab:hover { background: var(--steel); }
.pole-tab[aria-selected="true"] { background: var(--steel); border-left-color: var(--c); }
.pole-panels { display: grid; align-content: start; }
.pole-panel { display: grid; gap: 22px; padding: 28px 0 0 clamp(24px, 4vw, 56px); align-content: start; }
.pole-head { display: grid; gap: 10px; }
.pole-head h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.pole-head p { color: var(--muted); max-width: 40em; }
.pole-sub { margin: 6px 0 -12px; font-size: 0.9375rem; font-weight: 600; color: var(--silver); }

/* Lignes d'offres */
.offres { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.offre-row a {
  display: grid; grid-template-columns: minmax(0, 1fr) 11rem; gap: 24px; align-items: baseline;
  padding: 20px 12px; border-bottom: 1px solid var(--line); text-decoration: none;
  transition: background-color .15s;
}
.offre-row a:hover, .offre-row a:focus-visible { background: var(--steel); outline-offset: -3px; }
.offre-row h4 { font-stretch: 100%; font-size: 1.15rem; font-weight: 600; letter-spacing: -0.005em; line-height: 1.3; margin-bottom: 4px; }
.offre-row p { color: var(--muted); font-size: 0.95rem; max-width: 44em; }
.col-meta { font-size: var(--step--1); color: var(--muted); }
.pole-cta { display: flex; justify-content: space-between; align-items: center; gap: 16px 24px; flex-wrap: wrap; padding: 4px 12px 0; }
.pole-cta p { color: var(--muted); font-size: var(--step--1); }

/* ---------- Expertise : conseil et technique ---------- */
.expertise-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.expertise-col { display: grid; gap: 14px; }
.expertise-kind { font-stretch: var(--display-stretch); font-weight: 700; font-size: 1.15rem; letter-spacing: -0.02em; color: var(--silver); }
.principles { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--line); }
.principles li { display: grid; gap: 6px; padding: 22px 0; border-top: 1px solid var(--line); }
.principles h3 { font-stretch: 100%; font-size: 1.15rem; font-weight: 600; letter-spacing: 0; }
.principles p { color: var(--muted); max-width: 34em; }

/* ---------- Méthode : une vraie séquence, donc numérotée ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); counter-reset: step; position: relative; }
.steps::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--temper); opacity: .85; }
.steps > li { counter-increment: step; display: grid; gap: 12px; align-content: start; padding-top: 30px; }
.steps > li::before { content: counter(step); font-stretch: var(--display-stretch); font-weight: 800; font-size: 3.4rem; line-height: 1; letter-spacing: -0.04em; color: var(--silver); }
.steps h3 { font-size: 1.3rem; }
.steps p { color: var(--muted); font-size: 0.95rem; }

/* ---------- Perspectives à l'accueil ---------- */
.section-head-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.more-link { font-weight: 600; font-size: var(--step--1); color: var(--silver); text-decoration: underline; text-decoration-color: var(--line-strong); text-decoration-thickness: 1px; text-underline-offset: 6px; }
.more-link:hover { text-decoration-color: var(--silver); }
.post-meta { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 0.8125rem; color: var(--muted); }
.post-pole { color: var(--silver); font-weight: 600; }

.feature-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.post-feature a { display: grid; gap: 18px; padding: clamp(24px, 3vw, 36px); background: var(--steel); border: 1px solid var(--line); border-radius: 8px; text-decoration: none; transition: border-color .15s; }
.post-feature a:hover { border-color: var(--line-strong); }
.post-feature h3 { font-size: clamp(1.7rem, 3vw, 2.5rem); letter-spacing: -0.03em; }
.post-feature p { color: var(--muted); font-size: 1.0625rem; max-width: 36em; }
.read-more { justify-self: start; font-weight: 600; font-size: 0.9rem; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 5px; }
.post-stack { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--line); }
.post-stack li a { display: grid; gap: 10px; padding: 24px 0; border-top: 1px solid var(--line); text-decoration: none; }
.post-stack h3 { font-stretch: 100%; font-size: 1.25rem; font-weight: 600; letter-spacing: -0.005em; line-height: 1.25; }
.post-stack a:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }

/* Cartes d'articles (fiches d'offres) */
.post-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.post-card a { display: grid; gap: 10px; align-content: start; height: 100%; padding-top: 20px; border-top: 1px solid var(--line-strong); text-decoration: none; }
.post-card h3 { font-stretch: 100%; font-size: 1.2rem; font-weight: 600; letter-spacing: 0; line-height: 1.3; }
.post-card p { color: var(--muted); font-size: var(--step--1); }
.post-card a:hover h3 { text-decoration: underline; text-underline-offset: 5px; }

/* ---------- Fondateur ---------- */
.profil { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.profil-id { display: grid; gap: 20px; justify-items: start; }
.profil-id h2 { font-size: clamp(1.7rem, 3vw, 2.6rem); }
.monogram {
  flex: none; display: grid; place-items: center; width: 88px; height: 88px; border-radius: 8px; position: relative;
  background: var(--steel); color: var(--silver);
  font-stretch: var(--display-stretch); font-size: 1.35rem; font-weight: 800; letter-spacing: -0.02em;
}
.monogram::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: 12px; height: 3px; border-radius: 2px; background: var(--temper); }
.profil-points { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--line); }
.profil-points li { display: grid; gap: 6px; padding: 22px 0; border-top: 1px solid var(--line); max-width: 40em; }
.profil-points strong { font-stretch: var(--display-stretch); font-size: 1.15rem; font-weight: 700; letter-spacing: -0.02em; }
.profil-points span { color: var(--muted); }

/* ---------- FAQ ---------- */
#faq { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 32px clamp(32px, 6vw, 96px); align-items: start; }
.faq-head { display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; margin: 0; position: sticky; top: calc(var(--header-h) + 32px); }
.faq-head .lede { font-size: 1rem; }
.faq-head a { color: var(--silver); text-underline-offset: 4px; }
.faq { border-top: 1px solid var(--line); max-width: 920px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 24px 48px 24px 0; position: relative;
  font-size: 1.2rem; font-weight: 600; line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 17px; font-size: 1.8rem; font-weight: 300; color: var(--muted); transition: transform .2s, color .2s; }
.faq details[open] summary::after { transform: rotate(45deg); color: var(--silver); }
.faq summary:hover { color: #fff; }
.faq details p { padding: 0 0 26px; color: var(--muted); max-width: 46em; }

/* ---------- Bandeau final ---------- */
.cta-band { background: var(--steel); }
.cta-inner { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.cta-inner > div { display: grid; gap: 16px; max-width: 46em; }
.cta-inner h2 { font-size: clamp(2.4rem, 5.6vw, 4.6rem); letter-spacing: -0.04em; font-weight: 800; }
.cta-inner p { color: var(--muted); font-size: 1.125rem; }

/* ---------- Fiche offre ---------- */
.fiche-wrap { padding-block: clamp(32px, 5vw, 56px) clamp(64px, 9vw, 112px); }
.crumbs { display: flex; gap: 10px; flex-wrap: wrap; font-size: var(--step--1); color: var(--muted); margin-bottom: 32px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--silver); text-decoration: underline; text-underline-offset: 4px; }
.fiche { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.fiche-main { display: grid; gap: 26px; }
.fiche-main h1 { font-size: clamp(2.2rem, 4.8vw, 4rem); }
.fiche-main .cat, .article-head .cat { display: inline-flex; gap: 10px; align-items: center; font-size: var(--step--1); color: var(--muted); font-weight: 600; }
.cat .icon { width: 22px; height: 22px; }
.fiche-block { display: grid; gap: 16px; margin-top: 8px; }
.fiche-block h2 { font-size: var(--step-2); }
.livrables { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line-strong); }
.livrables li { display: grid; grid-template-columns: 1.8rem 1fr; padding: 15px 0; border-bottom: 1px solid var(--line); }
.fiche-aside {
  background: var(--steel); border: 1px solid var(--line); border-radius: 8px; padding: 28px; display: grid; gap: 22px;
  position: sticky; top: calc(env(safe-area-inset-top, 0px) + var(--header-h) + 24px);
}
.fiche-aside dl { margin: 0; display: grid; gap: 16px; }
.fiche-aside dt { font-size: var(--step--1); color: var(--muted); }
.fiche-aside dd { margin: 0; font-weight: 600; font-size: 1.15rem; }
.aside-note { font-size: var(--step--1); color: var(--muted); }
.fiche-more { margin-top: clamp(48px, 7vw, 88px); display: grid; gap: 20px; }
.fiche-more h2 { font-size: var(--step-2); }
.fiche-wrap, .devis-wrap, .blog-wrap, .article-wrap { border-top: 0; }

/* ---------- Devis ---------- */
.devis-wrap { padding-block: clamp(32px, 5vw, 64px) clamp(64px, 9vw, 112px); }
.devis { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.devis-intro { display: grid; gap: 22px; }
.devis-intro h1 { font-size: clamp(2.2rem, 4.6vw, 3.8rem); }
.devis-intro > p { color: var(--muted); font-size: 1.125rem; line-height: 1.55; }
.devis-steps { list-style: none; margin: 8px 0 0; padding: 0; display: grid; counter-reset: etape; border-top: 1px solid var(--line); }
.devis-steps li { counter-increment: etape; display: grid; grid-template-columns: 2.2rem minmax(0, 1fr); row-gap: 2px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.devis-steps li::before { content: counter(etape); grid-row: span 2; font-stretch: var(--display-stretch); font-weight: 800; font-size: 1.15rem; color: var(--silver); }
.devis-steps strong { font-weight: 600; }
.devis-steps span { color: var(--muted); font-size: var(--step--1); }
.assurances { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: var(--step--1); color: var(--muted); }
.assurances li { display: flex; gap: 10px; align-items: baseline; }
.devis-card { background: var(--steel); border: 1px solid var(--line); border-radius: 8px; padding: clamp(20px, 3vw, 36px); }
form { display: grid; gap: 18px; }
.row-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 500; font-size: var(--step--1); }
.field label .opt { font-weight: 400; color: var(--muted); }
input, select, textarea {
  font: inherit; color: var(--silver); background: var(--black);
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  padding: 12px 14px; width: 100%;
}
select option, select optgroup { background: var(--steel); color: var(--silver); }
textarea { min-height: 150px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--silver); }
.field.invalid input, .field.invalid textarea { border-color: var(--danger); }
.err { color: var(--danger); font-size: var(--step--1); }
.hint { color: var(--muted); font-size: 0.8125rem; }
fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }
fieldset.field legend { padding: 0; margin-bottom: 6px; font-weight: 500; font-size: var(--step--1); }
.segmented { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.segmented label { position: relative; cursor: pointer; }
.segmented input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.segmented span { display: block; text-align: center; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--black); color: var(--muted); font-weight: 500; transition: border-color .15s, color .15s; }
.segmented label:hover span { color: var(--silver); }
.segmented input:checked + span { border-color: var(--silver); color: var(--silver); box-shadow: inset 0 0 0 1px var(--silver); }
.segmented input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: var(--step--1); cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; padding: 0; flex: none; accent-color: var(--silver); }
.form-note { color: var(--muted); font-size: 0.8125rem; }
.form-note a { color: var(--silver); }
.err:empty { display: none; }
.piege { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.form-status { padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); }
.form-status.error { border-color: var(--danger); color: var(--danger); }
.success { display: grid; gap: 16px; justify-items: start; padding: 12px 4px; }
.success .tick { font-size: var(--step-3); }
.success a { color: var(--silver); }
.notice { font-size: var(--step--1); color: var(--muted); padding: 10px 14px; border: 1px dashed var(--line-strong); border-radius: var(--radius); }
.state { padding-block: 32px; color: var(--muted); }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--black); color: var(--muted); padding-block: 80px 0; font-size: var(--step--1); border-top: 1px solid var(--line); overflow: hidden; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr); gap: 40px; }
.footer-brand { display: grid; gap: 12px; max-width: 30em; align-content: start; }
.footer-brand strong { font-stretch: var(--display-stretch); font-size: 1.5rem; font-weight: 800; letter-spacing: -0.03em; color: var(--silver); }
.site-footer nav { display: grid; gap: 12px; align-content: start; }
.site-footer nav a { text-decoration: none; }
.site-footer nav a:hover { color: var(--silver); }
.footer-base { margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 32px; }
.footer-base a { margin-left: auto; text-decoration: none; }
.footer-base a:hover { color: var(--silver); }
.footer-base .opt { color: #6d7079; }
/* Le logotype géant, coupé par le bas de page */
.wordmark {
  font-stretch: var(--display-stretch); font-weight: 900; letter-spacing: -0.06em; line-height: .78;
  font-size: clamp(5rem, 24vw, 22rem); text-align: center; white-space: nowrap;
  margin: 40px 0 -0.14em; user-select: none;
  color: var(--steel-2); background: linear-gradient(180deg, #23272e 10%, var(--black) 92%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

/* ---------- Perspectives (liste) et article ---------- */
.blog-wrap { padding-block: clamp(40px, 6vw, 80px) clamp(64px, 9vw, 112px); }
.blog-wrap h1 { font-size: var(--step-4); }
.blog-wrap .section-head { grid-template-columns: minmax(0, 1fr); align-items: start; }
.blog-poles { display: flex; gap: 10px 24px; flex-wrap: wrap; margin-bottom: 32px; font-size: var(--step--1); color: var(--muted); }
.blog-poles > span { display: inline-flex; align-items: center; gap: 8px; }
.blog-poles .icon { width: 20px; height: 20px; }
.blog-poles .count { font-variant-numeric: tabular-nums; color: var(--silver); font-weight: 600; }
.post-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-strong); }
.post-list a { display: grid; gap: 10px; padding: 30px 12px; border-bottom: 1px solid var(--line); text-decoration: none; transition: background-color .15s; }
.post-list a:hover, .post-list a:focus-visible { background: var(--steel); outline-offset: -3px; }
.post-list h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.post-list p { color: var(--muted); max-width: 52em; }

.article-wrap { padding-block: clamp(32px, 5vw, 56px) clamp(64px, 9vw, 112px); }
.article-head { display: grid; gap: 18px; max-width: 52rem; margin-bottom: clamp(28px, 4vw, 48px); padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.article-head h1 { font-size: clamp(2.1rem, 4.6vw, 3.8rem); }
.article-meta { font-size: var(--step--1); color: var(--muted); }
.article-layout { display: grid; grid-template-columns: minmax(0, 14rem) minmax(0, 42rem); gap: clamp(28px, 5vw, 64px); align-items: start; }
.article-layout > .prose:only-child { grid-column: 2; }
.toc { position: sticky; top: calc(env(safe-area-inset-top, 0px) + var(--header-h) + 24px); font-size: var(--step--1); }
.toc-title { font-weight: 600; margin-bottom: 10px; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; border-left: 1px solid var(--line); }
.toc a { display: block; padding: 6px 0 6px 14px; margin-left: -1px; border-left: 2px solid transparent; color: var(--muted); text-decoration: none; line-height: 1.35; }
.toc a:hover { color: var(--silver); border-left-color: var(--silver); }

.prose { font-size: 1.125rem; line-height: 1.75; color: #d9d7d2; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: var(--step-2); color: var(--silver); margin-top: 2em; scroll-margin-top: calc(var(--header-h) + 24px); }
.prose h3 { font-size: 1.2rem; color: var(--silver); margin-top: 1.6em; }
.prose h2 + *, .prose h3 + * { margin-top: 0.6em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.4em; }
.prose li::marker { color: var(--muted); }
.prose a { color: var(--silver); text-decoration-color: var(--line-strong); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: var(--silver); }
.prose strong { font-weight: 700; color: var(--silver); }
.prose code { font-size: 0.88em; background: var(--steel-2); padding: 1px 5px; border-radius: 3px; }
.prose pre { background: var(--steel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; overflow-x: auto; font-size: 0.85rem; }
.prose pre code { background: none; padding: 0; }
.prose blockquote, .prose .callout { margin-inline: 0; padding: 16px 20px; border-left: 2px solid var(--line-strong); background: var(--steel); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin-block: 2em; }
.prose figure { margin-inline: 0; }
.prose figcaption { font-size: var(--step--1); color: var(--muted); margin-top: 8px; }
.prose img { border: 1px solid var(--line); border-radius: var(--radius); max-width: 100%; height: auto; }
.prose .table-wrap { overflow-x: auto; }
.prose table { border-collapse: collapse; width: 100%; font-size: var(--step--1); }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.prose th { border-bottom: 1px solid var(--line-strong); color: var(--silver); }
.prose em:last-child:only-child { color: var(--muted); font-size: 0.95em; }

.author { display: flex; gap: 22px; align-items: center; max-width: 42rem; margin: clamp(40px, 6vw, 64px) 0 0 auto; padding: 24px; background: var(--steel); border: 1px solid var(--line); border-radius: 8px; }
.author .monogram { width: 64px; height: 64px; font-size: 1rem; }
.author .monogram::after { left: 10px; right: 10px; bottom: 9px; height: 2px; }
.author-name { font-weight: 700; font-size: var(--step-1); }
.author p:not(.author-name) { color: var(--muted); font-size: var(--step--1); margin-top: 4px; }
.article-offres { margin-top: clamp(48px, 7vw, 72px); display: grid; gap: 20px; }
.article-offres h2 { font-size: var(--step-2); }
.legal { display: grid; gap: 18px; max-width: 760px; margin-inline: auto; padding-block: clamp(48px, 7vw, 96px) clamp(72px, 10vw, 128px); border-top: 0; }
.legal h1 { font-size: var(--step-3); margin-bottom: 24px; }
.legal h2 { font-size: var(--step-1); margin-top: 24px; }
.legal p { color: var(--muted); }
main > section.legal::before { display: none; }
.state-page { padding-block: clamp(72px, 12vw, 140px); display: grid; gap: 20px; justify-items: start; border-top: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav { gap: 22px; }
  .brand-text span { display: none; }
  .hero-text .eyebrow { display: block; }
}
@media (max-width: 1000px) {
  .article-layout { grid-template-columns: minmax(0, 1fr); }
  .article-layout > .prose:only-child { grid-column: auto; }
  .toc { position: static; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--steel); }
  .author { margin-left: 0; }
  .spec-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .spec-row h3 { grid-column: 1 / -1; }
  /* Catalogue : la liste devient une rangée défilante au-dessus des offres */
  .console { grid-template-columns: minmax(0, 1fr); }
  .pole-tabs { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); scroll-snap-type: x proximity; scrollbar-width: thin; }
  .pole-tab { flex: 0 0 auto; grid-template-columns: auto; grid-template-rows: auto auto; border-bottom: 0; border-left: 0; border-top: 2px solid transparent; padding: 16px 20px; scroll-snap-align: start; }
  .pole-tab .icon { display: none; }
  .pole-tab[aria-selected="true"] { border-top-color: var(--c); border-left-color: transparent; }
  .pole-panel { padding-left: 0; }
}
@media (max-width: 900px) {
  .hero-foot, .fiche, .devis, .profil, .feature-grid, .section-head, .sector-grid li { grid-template-columns: minmax(0, 1fr); }
  .manifeste ol { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 24px; }
  .proofs { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .expertise-grid { grid-template-columns: minmax(0, 1fr); }
  .autres-col ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .parcours-grid { grid-template-columns: minmax(0, 1fr); }
  .parcours-card { padding-right: 0; }
  .parcours-card + .parcours-card { border-left: 0; padding-left: 0; margin-top: 32px; border-top: 1px solid var(--line-strong); }
  .fiche-aside { position: static; }
  .post-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
  /* En-tête sur deux rangées : l'identité, puis la navigation défilante */
  .site-header { position: static; }
  .header-inner { flex-direction: column; align-items: flex-start; gap: 0; padding-top: 14px; min-height: 0; }
  .nav { width: 100%; overflow-x: auto; white-space: nowrap; padding-block: 12px 14px; gap: 22px; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .nav { -webkit-mask-image: linear-gradient(90deg, #000 82%, transparent); mask-image: linear-gradient(90deg, #000 82%, transparent); padding-right: 40px; }
  #faq { grid-template-columns: minmax(0, 1fr); }
  .faq-head { position: static; }
}
@media (max-width: 640px) {
  .spec-row { grid-template-columns: minmax(0, 1fr); }
  .brief-field { flex-direction: column; }
  .brief-field .btn { margin: 0 5px 5px; }
  .offre-row a { grid-template-columns: minmax(0, 1fr); gap: 6px; padding-inline: 4px; }
  .row-2, .steps, .autres-col ul { grid-template-columns: minmax(0, 1fr); }
  .parcours-switch { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; border-radius: 12px; }
  .parcours-switch button { border-radius: 9px; padding-inline: 10px; }
  .footer-base a { margin-left: 0; }
  .steps::before { display: none; }
  .steps > li { border-top: 2px solid var(--line); }
  .prose { font-size: 1.0625rem; }
  .author { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .forge-bar::before { clip-path: none; }
  .forge-bar::after { display: none; }
}
