/* Mêmes jetons de style que la page d'accueil — thème « salle de supervision ». */
:root {
  --encre: #0c1725;
  --encre-doux: #4d6072;
  --papier: #f1f5f9;
  --surface: #ffffff;
  --brume: #d8e2ec;
  --accent: #0b6b7f;
  --accent-pale: #e2f1f5;
  --ambre: #a86a08;
  --signal: #0f8a5f;
  --r-s: 6px;
  --r-m: 12px;
  --largeur: 1080px;
  color-scheme: light;
}
[data-theme="sombre"] {
  --encre: #e6edf3;
  --encre-doux: #8ba0b3;
  --papier: #0a121b;
  --surface: #131e2b;
  --brume: #253546;
  --accent: #4fd1e5;
  --accent-pale: #10303c;
  --ambre: #e0a94f;
  --signal: #3ddc97;
  color-scheme: dark;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--papier);
  color: var(--encre);
  font-family: "Instrument Sans", ui-sans-serif, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); }
.mono { font-family: "IBM Plex Mono", ui-monospace, Menlo, monospace; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--r-s); }

.dedans { max-width: var(--largeur); margin: 0 auto; padding-inline: 20px; width: 100%; }

/* En-tête, identique à celui de l'accueil */
.entete {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--brume);
  background:
    repeating-linear-gradient(0deg, transparent 0 23px, color-mix(in srgb, var(--accent) 5%, transparent) 23px 24px),
    repeating-linear-gradient(90deg, transparent 0 23px, color-mix(in srgb, var(--accent) 5%, transparent) 23px 24px),
    var(--papier);
}
.entete__inner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-block: 14px;
  padding-top: max(14px, env(safe-area-inset-top));
}
.entete__identite { flex: 1; min-width: 0; }
.entete__nom {
  font-family: "IBM Plex Mono", monospace;
  font-size: 15.5px; font-weight: 600; letter-spacing: -.02em; margin: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.entete__statut { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--encre-doux); margin: 0; min-width: 0; }
.entete__statut span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pastille { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 3px color-mix(in srgb, var(--signal) 20%, transparent); }
.entete__actions { display: flex; gap: 8px; align-items: center; }

.switch {
  position: relative; width: 52px; height: 30px; flex: 0 0 auto;
  border: 1px solid var(--brume); background: var(--surface);
  border-radius: 100px; cursor: pointer; padding: 0; transition: border-color .15s;
}
.switch:hover { border-color: var(--accent); }
.switch__pouce {
  position: absolute; top: 3px; left: 3px; width: 22px; height: 22px;
  border-radius: 50%; background: var(--encre); color: var(--papier);
  display: grid; place-items: center;
  transition: transform .25s cubic-bezier(.2,.8,.2,1);
}
.switch__pouce svg { width: 13px; height: 13px; }
.switch[aria-checked="true"] .switch__pouce { transform: translateX(22px); }
.switch__pouce .lune { display: none; }
.switch[aria-checked="true"] .switch__pouce .lune { display: block; }
.switch[aria-checked="true"] .switch__pouce .soleil { display: none; }

.bouton-retour {
  display: inline-flex; align-items: center; gap: 7px;
  height: 40px; padding: 0 14px;
  border: 1px solid var(--encre); background: var(--encre); color: var(--papier);
  border-radius: var(--r-m); text-decoration: none;
  font-family: "IBM Plex Mono", monospace; font-size: 12.5px; font-weight: 500;
  white-space: nowrap; transition: opacity .15s;
}
.bouton-retour:hover { opacity: .88; }
.bouton-retour svg { width: 15px; height: 15px; }

/* Corps du CV */
.page { padding-block: 44px 90px; }
.page h1 { font-size: clamp(28px, 6vw, 42px); letter-spacing: -.03em; margin: 0 0 8px; font-weight: 600; }
.sous-titre { color: var(--encre-doux); margin: 0 0 22px; font-size: 17px; }
.chapeau { font-size: 17px; max-width: 70ch; margin: 0; }

.page h2 {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--encre-doux); font-weight: 500;
  margin: 46px 0 18px; padding-bottom: 9px;
  border-bottom: 1px solid var(--brume);
}
.page h3 { margin: 0 0 2px; font-size: 17px; font-weight: 600; }

/* Expériences : même timeline que dans le chat */
.timeline { margin: 0; padding: 0 0 0 24px; list-style: none; border-left: 1px solid var(--brume); }
.timeline li { position: relative; padding-bottom: 26px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: -29px; top: 8px;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--papier); border: 2px solid var(--accent);
}
.meta { font-family: "IBM Plex Mono", monospace; font-size: 12px; color: var(--encre-doux); margin: 0; }
.lieu { color: var(--encre-doux); margin: 0 0 8px; font-size: 15px; }
.timeline p:last-child { margin: 0; }

.tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.tag {
  font-family: "IBM Plex Mono", monospace; font-size: 11px;
  padding: 2px 8px; border-radius: var(--r-s);
  background: var(--accent-pale); color: var(--accent);
}

.encart {
  border: 1px solid var(--brume); border-radius: var(--r-m);
  background: var(--surface); padding: 18px 20px;
}
.encart p { margin: 0; }
.encart p + p { margin-top: 8px; }

.liens { display: flex; flex-wrap: wrap; gap: 8px; }
.lien {
  display: inline-flex; align-items: center; gap: 9px;
  border: 1px solid var(--brume); border-radius: var(--r-m);
  background: var(--surface); padding: 12px 16px;
  text-decoration: none; color: var(--encre); font-size: 15px;
  transition: border-color .15s;
}
.lien:hover { border-color: var(--accent); }
.lien small {
  display: block; font-family: "IBM Plex Mono", monospace;
  font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--encre-doux);
}

@media (prefers-reduced-motion: reduce) {
  * { transition-duration: .01ms !important; }
}
@media (min-width: 700px) {
  .dedans { padding-inline: 32px; }
  .colonnes { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; align-items: start; }
}
@media print {
  .entete { display: none; }
  body { background: #fff; }
  .page { padding-block: 0; }
}
