/* Charte Emerging IT (système de design « Emerging IT ») : pierre, encre, filets, touches de soleil.
   Mêmes jetons que le portail de usine/sveltia (public/_portail/portail.css). */
@font-face { font-family: Geist; src: url("geist-latin.woff2") format("woff2"); font-weight: 300 600; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("geist-mono-latin.woff2") format("woff2"); font-weight: 400 500; font-display: swap; }

:root {
  --pierre: #faf8f4; --pierre-ombre: #f2efe9; --filet: #e6e1d8; --filet-fort: #857f75; --encre: #111111; --encre-douce: #6b6862;
  --soleil: #f7941d; --soleil-texte: #9a5300; --soleil-voile: #faead6;
  --sans: Geist, "Helvetica Neue", Arial, sans-serif; --mono: "Geist Mono", ui-monospace, Menlo, monospace;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --pierre: #141311; --pierre-ombre: #0e0d0c; --filet: #2a2825; --filet-fort: #6b6862; --encre: #f2efe9; --encre-douce: #9f9a91;
    --soleil-texte: #f7941d; --soleil-voile: #342513;
  }
}

*, *::before, *::after { box-sizing: border-box; }
::selection { background: rgba(247, 148, 29, 0.35); }

body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--pierre); color: var(--encre); font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
.entete, main, .pied { width: 100%; max-width: 1240px; margin: 0 auto; padding-inline: clamp(16px, 7vw, 100px); }
.entete { display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-block: 24px; border-bottom: 1px solid var(--filet); }
.langue { padding: 4px 12px; border: 1px solid var(--filet-fort); border-radius: 999px; color: var(--encre);
  font: 500 13px/20px var(--mono); letter-spacing: 0.04em; text-decoration: none; }
.langue:hover { background: var(--soleil-voile); border-color: var(--soleil); color: var(--soleil-texte); }
.marque { display: inline-flex; align-items: center; gap: 12px; font-weight: 500; font-size: 18px; letter-spacing: -0.01em; }
.marque img { height: 32px; width: auto; }
.marque b { font-weight: 500; color: var(--soleil); }

main { flex: 1; padding-block: clamp(64px, 12vh, 144px); }
.repere { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 24px;
  font: 400 12px/16px var(--mono); letter-spacing: 0.04em; color: var(--soleil-texte); }
.repere::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--soleil);
  box-shadow: 0 0 0 6px rgba(247, 148, 29, 0.15); }
h1 { max-width: 16em; margin: 0 0 48px; font-weight: 500; font-size: clamp(32px, 4vw, 48px);
  line-height: 1.06; letter-spacing: -0.03em; }
h1 span { display: block; color: var(--encre-douce); }

.outils { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); max-width: 820px; }
.outils a { position: relative; display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 24px 56px 24px 24px;
  border: 1px solid var(--filet); border-radius: 12px; color: var(--encre); text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease; }
.outils a::after { content: "→"; position: absolute; top: 22px; right: 24px; font-size: 20px; color: var(--encre-douce);
  transition: transform 0.2s ease, color 0.2s ease; }
.outils a:hover { background: var(--soleil-voile); border-color: var(--soleil); }
.outils a:hover::after { color: var(--soleil-texte); transform: translateX(3px); }
.icone { display: inline-grid; place-items: center; width: 44px; height: 44px; margin-bottom: 12px;
  border-radius: 10px; background: var(--soleil-voile); color: var(--soleil-texte); }
.outils a:hover .icone { background: var(--soleil); color: #111111; }
.nom { font-weight: 500; font-size: 20px; letter-spacing: -0.01em; }
.outil { align-self: flex-start; margin-top: -2px; padding: 2px 8px; border: 1px solid var(--filet);
  border-radius: 999px; font: 400 12px/18px var(--mono); color: var(--encre-douce); }
.desc { color: var(--encre-douce); font-weight: 300; }
.adresse { margin-top: 8px; font: 400 13px/18px var(--mono); color: var(--soleil-texte); }
:focus-visible { outline: 2px solid var(--encre); outline-offset: 2px; }

.aide { margin: 32px 0 0; font-size: 14px; color: var(--encre-douce); }
.pied { padding-block: 24px; border-top: 1px solid var(--filet); font-size: 14px; color: var(--encre-douce); }

@media (prefers-reduced-motion: reduce) { .outils a, .outils a::after { transition: none; } }
