/* SITE PUBLIC — mise en page de la refonte du 04/10/2026.
   Charge par partials/head apres tokens.css et style.css, sur toutes les pages
   qui passent par EJS. Ne vise que des classes nouvelles (.sh, .sf, .wrap,
   .sec, .pc, .btn, .sky...) : rien ici ne redefinit une classe de style.css,
   donc /admin et l'Observatoire gardent leur rendu.

   Direction artistique : univers / espace / profondeur, mais une navigation
   classique et un scroll vertical simple. Le ciel (etoiles + halo) est en CSS
   pur, sans image ni script ; il derive tres lentement et se fige en
   mouvement reduit. */

/* ------------------------------------------------------------------ socle */

.site-main { flex: 1; display: block; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem);
}

.readable { max-width: 66ch; }
.empty { color: var(--text-muted); }

.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-link {
  position: absolute;
  inset-inline-start: .75rem;
  top: -4rem;
  z-index: 100;
  padding: .7rem 1rem;
  border-radius: 10px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { top: .75rem; }

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

.kicker {
  margin: 0 0 .9rem;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
}

.link-arrow { font-weight: 600; text-decoration: none; }
.link-arrow::after { content: '→'; display: inline-block; margin-inline-start: .4rem; transition: transform .2s ease; }
.link-arrow:hover::after { transform: translateX(4px); }
/* De droite a gauche, la fleche « vers l'avant » pointe a gauche. */
[dir="rtl"] .link-arrow::after { content: '←'; }
[dir="rtl"] .link-arrow:hover::after { transform: translateX(-4px); }

/* ---------------------------------------------------------------- boutons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 48px;
  padding: .7rem 1.3rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: inherit;
  font-size: .98rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s ease, background-color .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.btn svg { flex-shrink: 0; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover {
  color: var(--accent-ink);
  transform: translateY(-1px);
  box-shadow: 0 12px 28px -14px color-mix(in srgb, var(--accent) 80%, transparent);
}
.btn-ghost {
  background: color-mix(in srgb, var(--surface) 75%, transparent);
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover {
  color: var(--text);
  border-color: color-mix(in srgb, var(--accent) 60%, var(--border));
  background: var(--surface-hover);
}
.btn-count {
  display: inline-grid;
  place-items: center;
  min-width: 1.6rem;
  height: 1.6rem;
  padding: 0 .4rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--text);
  font-size: .78rem;
  font-variant-numeric: tabular-nums;
}
.btn-note { font-weight: 400; color: var(--text-muted); font-size: .85em; }

/* --------------------------------------------------------------- en-tete */

.sh {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
}
.sh-in {
  display: flex;
  align-items: center;
  gap: .75rem;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: .55rem clamp(1rem, 4vw, 2rem);
}
.sh-brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  min-height: 44px;
  margin-inline-end: auto;
  color: var(--text);
  text-decoration: none;
}
.sh-brand:hover { color: var(--text); }
.sh-mark {
  display: grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  border: 1px solid color-mix(in srgb, var(--accent) 60%, transparent);
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--text); /* --accent (#96650a) sur fond clair : 4,17:1, sous 4,5 (axe, /mentions-legales) */
  font-family: var(--display);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .02em;
}
.sh-name { font-family: var(--display); font-size: 1.02rem; font-weight: 600; letter-spacing: -.01em; }

.sh-nav { display: flex; align-items: center; gap: .15rem; }
.sh-nav a {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  min-height: 44px;
  padding: 0 .8rem;
  border-radius: 999px;
  color: var(--text-muted);
  font-size: .95rem;
  font-weight: 500;
  text-decoration: none;
  transition: color .2s ease, background-color .2s ease;
}
.sh-nav a:hover { color: var(--text); background: var(--surface-hover); }
.sh-nav a[aria-current="page"] { color: var(--text); background: var(--surface-hover); }
.sh-star { color: var(--accent); font-size: 1rem; line-height: 1; }

/* LinkedIn et GitHub : deux icones au meme rang, discretes (le CTA principal
   reste « Explorer mes projets »). Zone cliquable de 40 px. */
.sh-social { display: flex; align-items: center; gap: 0; margin: 0; padding: 0; list-style: none; }
.sh-ico {
  display: grid;
  place-items: center;
  width: 40px;
  height: 44px;
  border-radius: 999px;
  color: var(--text-muted);
  transition: color .2s ease, background-color .2s ease;
}
.sh-ico:hover { color: var(--text); background: var(--surface-hover); }

/* Choix de langue : un <details> natif (aucun JavaScript necessaire). Le
   bouton montre la langue en cours (EN, FR, ES, 한국어, 日本語, العربية) ; la
   liste s'ouvre en dessous, alignee sur le bord de fin de l'en-tete. */
.sh-lang { position: relative; }
.sh-lang summary {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  min-height: 40px;
  padding: 0 .7rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-muted);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .06em;
  white-space: nowrap;
  cursor: pointer;
  list-style: none;
  transition: color .2s ease, border-color .2s ease;
}
.sh-lang summary::-webkit-details-marker { display: none; }
.sh-lang summary:hover, .sh-lang[open] summary { color: var(--text); border-color: color-mix(in srgb, var(--accent) 55%, var(--border)); }
.sh-lang-globe { flex-shrink: 0; }
.sh-lang-chev {
  width: .38rem;
  height: .38rem;
  margin-top: -.15rem;
  /* Un chevron vers le bas ne depend pas du sens d'ecriture : bords
     physiques, volontairement. */
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform .2s ease;
}
.sh-lang[open] .sh-lang-chev { margin-top: .2rem; transform: rotate(-135deg); }
.sh-lang-list {
  position: absolute;
  top: calc(100% + .45rem);
  inset-inline-end: 0;
  z-index: 60;
  display: grid;
  min-width: 12.5rem;
  margin: 0;
  padding: .35rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .55);
  list-style: none;
}
.sh-lang-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 44px;
  padding: 0 .8rem;
  border-radius: 10px;
  color: var(--text);
  font-size: .95rem;
  text-decoration: none;
}
.sh-lang-list a:hover { background: var(--surface-hover); color: var(--text); }
.sh-lang-list a[aria-current="true"] { background: var(--accent-soft); font-weight: 700; }
.sh-lang-code { color: var(--text-muted); font-family: var(--mono); font-size: .72rem; letter-spacing: .06em; }

@media (max-width: 860px) {
  .sh-multi-txt { display: none; }
  .sh-nav a { padding: 0 .65rem; }
}
@media (max-width: 600px) {
  .sh-name { display: none; }
  .sh-in { gap: .2rem; }
  .sh-nav { gap: 0; }
  .sh-nav a { padding: 0 .5rem; font-size: .92rem; }
  .sh-ico { width: 36px; }
  .sh-lang summary { gap: .3rem; padding: 0 .55rem; }
  .sh-lang-chev { display: none; }
}
/* Telephone etroit : les icones sociales quittent l'en-tete (elles restent
   dans le pied de page et sur /a-propos) pour que la navigation et le choix
   de langue tiennent sur une ligne dans les six langues. */
@media (max-width: 420px) {
  .sh-social { display: none; }
  .sh-mark { width: 1.9rem; height: 1.9rem; }
  .sh-nav a { padding: 0 .42rem; }
}

/* -------------------------------------------------------------- le ciel */

.sky {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.sky-stars {
  position: absolute;
  inset: -12% -8%;
  background-repeat: repeat;
  will-change: transform;
}
.sky-stars-1 {
  opacity: .6;
  background-size: 360px 360px;
  background-image:
    radial-gradient(1px 1px at 7% 12%, var(--star) 50%, transparent 52%),
    radial-gradient(1px 1px at 23% 64%, var(--star) 50%, transparent 52%),
    radial-gradient(1.4px 1.4px at 38% 28%, var(--star) 50%, transparent 52%),
    radial-gradient(1px 1px at 52% 83%, var(--star) 50%, transparent 52%),
    radial-gradient(1px 1px at 61% 9%, var(--star) 50%, transparent 52%),
    radial-gradient(1.2px 1.2px at 74% 47%, var(--star) 50%, transparent 52%),
    radial-gradient(1px 1px at 86% 72%, var(--star) 50%, transparent 52%),
    radial-gradient(1px 1px at 93% 21%, var(--star) 50%, transparent 52%);
  animation: sky-drift 160s linear infinite alternate;
}
.sky-stars-2 {
  opacity: .45;
  background-size: 560px 560px;
  background-image:
    radial-gradient(1.6px 1.6px at 15% 40%, var(--star) 50%, transparent 55%),
    radial-gradient(1.2px 1.2px at 44% 12%, rgba(230, 180, 80, .7) 50%, transparent 55%),
    radial-gradient(1.8px 1.8px at 67% 66%, var(--star) 50%, transparent 55%),
    radial-gradient(1.2px 1.2px at 82% 30%, rgba(190, 205, 255, .7) 50%, transparent 55%),
    radial-gradient(1.4px 1.4px at 31% 88%, var(--star) 50%, transparent 55%);
  animation: sky-drift-2 240s linear infinite alternate;
}
.sky-halo {
  position: absolute;
  left: 50%;
  top: -35%;
  width: min(1200px, 160vw);
  aspect-ratio: 1.7;
  transform: translateX(-50%);
  background:
    radial-gradient(closest-side at 38% 55%, color-mix(in srgb, var(--accent) 24%, transparent), transparent 75%),
    radial-gradient(closest-side at 70% 45%, var(--halo-2), transparent 75%);
  animation: sky-breathe 14s ease-in-out infinite alternate;
}
.sky-soft .sky-halo { top: -55%; opacity: .7; }

@keyframes sky-drift { to { transform: translate3d(-48px, 22px, 0); } }
@keyframes sky-drift-2 { to { transform: translate3d(36px, -18px, 0); } }
@keyframes sky-breathe { to { opacity: .72; transform: translateX(-50%) scale(1.04); } }

/* Parallaxe legere au defilement, la ou le navigateur sait la faire sans
   script (scroll-driven animations). Ailleurs, le ciel derive seulement. */
@supports (animation-timeline: scroll()) {
  .hero2 .sky-stars-2 {
    animation: sky-parallax linear both;
    animation-timeline: scroll(root);
    animation-range: 0 100vh;
  }
  @keyframes sky-parallax { to { transform: translate3d(0, 90px, 0); } }
}

@media (prefers-reduced-motion: reduce) {
  .sky-stars, .sky-halo, .sky-stars-2, .hero2 .sky-stars-2 { animation: none !important; }
}

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

.sec { padding: clamp(3rem, 6.5vw, 5rem) 0; }
.sec-head { max-width: 64ch; margin: 0 0 2.25rem; }
.site-main h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.6rem, 3.2vw, 2.3rem);
  line-height: 1.15;
  letter-spacing: -.02em;
}
.sec-intro { margin: .85rem 0 0; color: var(--text-muted); font-size: 1.06rem; line-height: 1.6; }
.sec-more { margin: 2.25rem 0 0; }

.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(3rem, 8vw, 5.5rem) 0 clamp(1.5rem, 4vw, 2.5rem);
}
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.2rem, 5.4vw, 3.6rem);
  line-height: 1.04;
  letter-spacing: -.03em;
  text-wrap: balance;
}
.page-lede {
  max-width: 60ch;
  margin: 1.1rem 0 0;
  font-size: clamp(1.06rem, 1.5vw, 1.2rem);
  line-height: 1.6;
  color: color-mix(in srgb, var(--text) 84%, var(--text-muted));
}
.page-hero-center { text-align: center; padding-bottom: clamp(3rem, 8vw, 5rem); }
.page-hero-center .page-lede { margin-left: auto; margin-right: auto; }

.crumb {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: 0 0 1.4rem;
  color: var(--text-muted);
  font-size: .88rem;
}
.crumb a { display: inline-block; padding: .25rem 0; color: var(--text-muted); text-decoration: none; }
.crumb a:hover { color: var(--text); text-decoration: underline; }
.crumb [aria-current] { color: var(--text); }

.note {
  margin: 1.25rem 0 0;
  padding: .75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text-muted);
  font-size: .92rem;
}

/* Fermeture : une invitation, pas un formulaire. */
.sec-closing {
  background: radial-gradient(60% 100% at 50% 100%, var(--accent-soft), transparent 72%);
}
.closing { max-width: 760px; text-align: center; }
.closing p { margin: .9rem auto 0; color: var(--text-muted); font-size: 1.06rem; }
.closing-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; margin-top: 1.75rem; }
.page-hero-center .closing-actions { margin-top: 2rem; }
.closing .closing-more { margin-top: 1.4rem; }

/* ----------------------------------------------------------- cartes projet */

.pc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr));
  gap: 1.5rem;
}

.pc {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.pc:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
  box-shadow: 0 22px 44px -28px rgba(0, 0, 0, .65), 0 0 0 1px color-mix(in srgb, var(--accent) 12%, transparent);
}
.pc:focus-within { outline: 2px solid var(--accent); outline-offset: 3px; }

.pc-media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background: #0a0912;
}
.pc-body { display: flex; flex: 1; flex-direction: column; gap: .95rem; padding: 1.3rem 1.4rem 1.45rem; }

.pc-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .35rem .75rem; margin: 0; }
.pc-name { color: var(--accent); font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.pc-status { display: inline-flex; align-items: center; gap: .45rem; color: var(--text-muted); font-size: .8rem; white-space: nowrap; }
.pc-dot { width: .5rem; height: .5rem; border-radius: 50%; background: var(--text-muted); }
[data-status="live"] .pc-dot { background: var(--ok); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 22%, transparent); }
[data-status="automated"] .pc-dot { background: var(--accent); }

.pc-title { margin: 0; font-family: var(--display); font-size: 1.24rem; line-height: 1.3; letter-spacing: -.01em; }
.pc-title a { color: var(--text); text-decoration: none; }
.pc-title a:hover { color: var(--text); }
/* Lien etendu : toute la carte est cliquable, un seul lien par carte pour le
   clavier et les lecteurs d'ecran. */
.pc-title a::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }
.pc-title a:focus-visible { outline: none; }

.pc-nsr { display: grid; gap: .8rem; margin: 0; padding-inline-start: .9rem; border-inline-start: 1px solid var(--border); }
.pc-nsr div { display: grid; gap: .15rem; }
.pc-nsr dt {
  color: var(--text-muted);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.pc-nsr dd { margin: 0; color: color-mix(in srgb, var(--text) 90%, var(--text-muted)); font-size: .94rem; line-height: 1.5; }

.pc-flags { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .35rem .6rem; }
/* Contexte (projet personnel, de master) : une etiquette neutre a cote de
   l'etat, pour qu'un labo ne passe jamais pour de la production. */
.pc-ctx {
  padding: .05rem .55rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-muted);
  font-size: .76rem;
  white-space: nowrap;
}
.pc-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .35rem 1rem; margin-top: auto; padding-top: .35rem; }
.pc-cta { display: inline-flex; gap: .4rem; color: var(--accent); font-size: .94rem; font-weight: 600; }
/* Raccourci vers les details techniques : au-dessus du lien etendu de la
   carte (.pc-title a::after), sinon seul le clavier l'atteindrait. */
.pc-tech {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  color: var(--text-muted);
  font-size: .84rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.pc-tech:hover { color: var(--text); }
.pc-cta::after { content: '→'; transition: transform .2s ease; }
.pc:hover .pc-cta::after { transform: translateX(4px); }
[dir="rtl"] .pc-cta::after { content: '←'; }
[dir="rtl"] .pc:hover .pc-cta::after { transform: translateX(-4px); }


/* ------------------------------------------------- visuel de projet */

.pvis { display: block; width: 100%; height: 100%; }
.pvis-img img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* Schema en trois etapes : toujours sur fond de ciel, dans les deux themes —
   c'est un « ecran », comme une capture. Couleurs fixes, contrastes mesures
   (outils/contraste.mjs) : #ece9e2 et #e6b450 sur #0c0b16. */
.pvis-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: 1rem;
  background:
    radial-gradient(1px 1px at 12% 20%, rgba(255, 248, 235, .55) 50%, transparent 52%),
    radial-gradient(1px 1px at 82% 14%, rgba(255, 248, 235, .45) 50%, transparent 52%),
    radial-gradient(1.4px 1.4px at 64% 86%, rgba(230, 180, 80, .6) 50%, transparent 52%),
    radial-gradient(1px 1px at 30% 78%, rgba(190, 205, 255, .5) 50%, transparent 52%),
    radial-gradient(80% 90% at 85% 0%, rgba(124, 92, 255, .18), transparent 60%),
    radial-gradient(70% 80% at 10% 100%, rgba(230, 180, 80, .12), transparent 60%),
    #0c0b16;
  container-type: inline-size;
}
.pvis-step {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  gap: .35rem;
  min-width: 0;
  padding: .6rem .6rem;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 12px;
  background: rgba(255, 255, 255, .04);
  color: #ece9e2;
  font-size: .74rem;
  font-weight: 600;
  line-height: 1.3;
  /* Coupe un mot seulement s'il ne tient vraiment pas sur une ligne. */
  overflow-wrap: break-word;
}
.pvis-step.is-last { border-color: rgba(230, 180, 80, .6); background: rgba(230, 180, 80, .09); }
.pvis-n { color: #e6b450; font-family: var(--mono); font-size: .68rem; }
.pvis-arrow {
  position: relative;
  flex: 0 0 12px;
  height: 1px;
  background: rgba(230, 180, 80, .7);
}
.pvis-arrow::after {
  content: '';
  position: absolute;
  right: -1px;
  top: -3px;
  border: 3.5px solid transparent;
  border-left: 5px solid rgba(230, 180, 80, .9);
  border-right: 0;
}
/* De droite a gauche, le schema se lit de droite a gauche : la fleche aussi. */
[dir="rtl"] .pvis-arrow { transform: scaleX(-1); }
@container (min-width: 560px) {
  .pvis-flow { gap: .9rem; padding: 2rem; }
  .pvis-step { padding: 1.1rem 1.1rem; font-size: 1.02rem; border-radius: 14px; }
  .pvis-n { font-size: .78rem; }
  .pvis-arrow { flex-basis: 26px; }
}
.pvis-empty { display: grid; place-items: center; background: #0c0b16; color: #e6b450; font-size: 2rem; }

/* ------------------------------------------------------------- pied de page */

.sf {
  margin-top: auto;
  border-top: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 55%, var(--bg));
}
.sf-in {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2rem;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 2.75rem clamp(1rem, 4vw, 2rem) 1.75rem;
}
.sf p { margin: 0; }
.sf-name { font-family: var(--display); font-size: 1.05rem; font-weight: 600; }
.sf-pos { margin-top: .3rem !important; color: var(--text-muted); font-size: .94rem; }
.sf-nav, .sf-social { display: flex; flex-direction: column; align-items: flex-start; gap: .2rem; }
.sf a { display: inline-block; padding: .2rem 0; color: var(--text-muted); font-size: .94rem; text-decoration: none; }
.sf a:hover { color: var(--text); text-decoration: underline; }
.sf-social a { display: inline-flex; align-items: center; gap: .5rem; }
.sf-social svg { flex-shrink: 0; }
.sf-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .5rem 1.5rem;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 1rem clamp(1rem, 4vw, 2rem) 2rem;
  border-top: 1px solid color-mix(in srgb, var(--border) 60%, transparent);
}
.sf-gen { color: var(--text-muted); font-family: var(--mono); font-size: .76rem; }
.sf-legal { display: flex; flex-wrap: wrap; gap: 0 1.25rem; }
.sf-legal a { font-size: .86rem; }

@media (max-width: 700px) {
  .sf-in { grid-template-columns: 1fr 1fr; }
  .sf-id { grid-column: 1 / -1; }
}

/* ------------------------------------------------- pages legales (FR) */

.legal-page { padding-top: 2.5rem; }
/* .hero de style.css est une grille a deux colonnes (texte + tuile) : sur ces
   pages sans tuile, le surtitre et le titre se retrouvaient cote a cote. */
.legal-page .hero { display: block; margin-bottom: 2rem; }
.legal-note {
  margin: 0 0 1.5rem;
  padding: .8rem 1rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text-muted);
  font-size: .92rem;
}

/* ------------------------------------------------- bandeau de preuves */

/* Le bandeau (public/css/bandeau-preuves.css) vit desormais dans une etude de
   cas : un titre de niveau 3, et un peu d'air au-dessus. */
.case .bandeau-preuves { margin-top: 1.75rem; }
.case .bandeau-preuves-titre { margin: 0; font-size: .78rem; }

@media (prefers-reduced-motion: reduce) {
  .pc, .btn, .pc-cta::after, .link-arrow::after { transition: none; }
  .pc:hover, .btn-primary:hover { transform: none; }
}

/* ------------------------------------------- la ou j'apporte le plus (phase 3)
   Accueil et /a-propos : trois familles de missions, chacune avec sa preuve. */
.roles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.role {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  padding: 1.25rem 1.3rem 1.3rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.role h3 { margin: 0; font-family: var(--display); font-size: 1.12rem; line-height: 1.3; }
.role p { margin: 0; color: color-mix(in srgb, var(--text) 90%, var(--text-muted)); font-size: .96rem; line-height: 1.55; }
.role .role-proof { margin-top: auto; padding-top: .7rem; border-top: 1px solid var(--border); font-size: .9rem; }
.role-proof-k { display: block; margin-bottom: .2rem; color: var(--accent); font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.role-proof a { font-weight: 600; }
.roles-security { max-width: 70ch; margin: 1.25rem 0 0; color: var(--text-muted); font-size: .95rem; line-height: 1.55; }
