/* CV Frédéric JELMONI – feuille de style */
html{color-scheme:light}body{margin:0}img{max-width:100%}[hidden]{display:none!important}a.val{color:inherit;text-decoration:none}a.val:hover{text-decoration:underline}
@media (max-width:860px){.side{position:relative}}
/* Layout : application d'un seul écran. Colonne d'identité + onglets à gauche, un panneau à droite ; sur téléphone, en-tête compact, onglets en ruban, panneau qui défile en interne. */
:root {
  --bg: #f2f5f9;
  --surface: #ffffff;
  --ink: #15202d;
  --muted: #586578;
  --line: #d8dfe8;
  --accent: #1f5aa8;
  --accent-soft: #e5eef9;
  --ok: #1f9d61;
  --side-bg: #14263b;
  --side-fg: #eef3f9;
  --side-muted: #a3b3c6;
  --side-line: #2b415b;
  --side-active: #25456b;
  --font-body: "IBM Plex Sans", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f151c; --surface: #18202a; --ink: #e6ecf3; --muted: #9aa7b7; --line: #2a3644;
    --accent: #82b4f2; --accent-soft: #1b2c42; --ok: #4cc48a;
    --side-bg: #0a0f15; --side-fg: #e6ecf3; --side-muted: #8f9eb0; --side-line: #212c39; --side-active: #1b2c42;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f151c; --surface: #18202a; --ink: #e6ecf3; --muted: #9aa7b7; --line: #2a3644;
  --accent: #82b4f2; --accent-soft: #1b2c42; --ok: #4cc48a;
  --side-bg: #0a0f15; --side-fg: #e6ecf3; --side-muted: #8f9eb0; --side-line: #212c39; --side-active: #1b2c42;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  background: var(--bg); color: var(--ink);
  font-family: var(--font-body); font-size: 0.90625rem; line-height: 1.55;
  overflow: hidden;
}
h1, h2, h3, p, ul, dl, dd { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: var(--accent); }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.mono { font-family: var(--font-mono); font-size: 0.86em; font-variant-numeric: tabular-nums; }

.app { display: grid; grid-template-columns: 19.5rem minmax(0, 1fr); height: 100%; }

/* ---------- Colonne d'identité ---------- */
.side {
  background: var(--side-bg); color: var(--side-fg);
  padding: 26px 20px 20px; min-height: 0; overflow: auto;
  display: flex; flex-direction: column; gap: 20px;
}
.side :focus-visible { outline-color: var(--side-fg); }
.name { font-size: 1.625rem; line-height: 1.1; font-weight: 700; letter-spacing: -0.01em; }
.name a { color: inherit; text-decoration: none; }
.name a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.name strong { font-weight: 700; letter-spacing: 0.02em; }
.role { margin-top: 10px; font-size: 0.84375rem; font-weight: 500; line-height: 1.4; text-wrap: balance; }
.avail { display: flex; gap: 9px; align-items: baseline; font-size: 0.78125rem; color: var(--side-muted); line-height: 1.4; }
.avail::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); transform: translateY(-1px); }

.tabs { display: flex; flex-direction: column; gap: 2px; }
.tabs button {
  text-align: left; padding: 8px 12px; border-radius: 6px;
  color: var(--side-muted); font-weight: 500; border-left: 3px solid transparent;
}
.tabs button:hover { color: var(--side-fg); }
.tabs button[aria-selected="true"] { background: var(--side-active); color: var(--side-fg); border-left-color: var(--accent-on-side, #82b4f2); }

.contact { display: flex; flex-direction: column; gap: 5px; font-size: 0.78125rem; }
.contact .row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.contact .val { user-select: all; overflow-wrap: anywhere; }
.contact .loc { color: var(--side-muted); }
.copy {
  flex: none; font-family: var(--font-mono); font-size: 0.6875rem; padding: 2px 8px;
  border: 1px solid var(--side-line); border-radius: 4px; color: var(--side-muted);
}
.copy:hover { color: var(--side-fg); border-color: var(--side-muted); }

/* ---------- Panneau ---------- */
main { min-width: 0; min-height: 0; overflow: auto; padding-block: 30px 24px; padding-inline: 36px; }
.panel { max-width: 1000px; display: flex; flex-direction: column; gap: 18px; }
.panel > h2 .note { font-weight: 400; letter-spacing: 0.04em; text-transform: none; color: var(--muted); margin-left: 6px; white-space: nowrap; }
.panel > h2 {
  font-size: 0.78125rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); padding-bottom: 8px; border-bottom: 2px solid var(--accent);
}
@media (prefers-reduced-motion: no-preference) {
  .panel:not([hidden]) { animation: in 0.18s ease-out; }
  @keyframes in { from { opacity: 0.4; transform: translateY(3px); } to { opacity: 1; transform: none; } }
}

/* Profil */
.profil { max-width: 70ch; display: flex; flex-direction: column; gap: 12px; font-size: 0.9375rem; line-height: 1.62; }
.profil p:first-child { background: var(--accent-soft); border-left: 3px solid var(--accent); padding: 12px 16px; }

/* Compétences */
.skills { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 32px; }
.skills dt { font-weight: 600; color: var(--accent); font-size: 0.84375rem; }
.skills dd { color: var(--ink); font-size: 0.84375rem; line-height: 1.5; }

/* Expérience : missions à la suite */
.xp { display: flex; flex-direction: column; gap: 0; max-width: 860px; }
.xp .subhead { margin: 0 0 2px; }
.xp .job + .subhead { margin-top: 18px; }
.xp-note { font-size: 0.8125rem; color: var(--muted); padding-top: 14px; }
.job { padding: 14px 0 16px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 9px; min-width: 0; }
.job h3 { font-size: 0.96875rem; line-height: 1.3; text-wrap: balance; }
.job .meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 16px; margin-top: 3px; }
.job .client { color: var(--accent); font-weight: 600; }
.job .dates { color: var(--muted); }
.bul { display: flex; flex-direction: column; gap: 4px; font-size: 0.84375rem; line-height: 1.45; }
.bul li { padding-left: 15px; position: relative; }
.bul li::before { content: ""; position: absolute; left: 2px; top: 0.62em; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.env { display: flex; flex-wrap: wrap; gap: 5px; }
.env li { font-family: var(--font-mono); font-size: 0.71875rem; padding: 1px 7px; border-radius: 4px; background: var(--accent-soft); color: var(--ink); }

/* Projets */
.projects { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 32px; }
.projects h3 { font-size: 0.875rem; color: var(--accent); }
.projects p { font-size: 0.84375rem; line-height: 1.5; }
.projects a { display: block; width: fit-content; max-width: 100%; overflow-wrap: anywhere; line-height: 1.6; font-family: var(--font-mono); font-size: 0.71875rem; }

/* Certifications et formation */
.rows { display: flex; flex-direction: column; }
.rows li { display: grid; grid-template-columns: 9.5em minmax(0, 1fr); gap: 16px; padding: 6px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.rows li:last-child { border-bottom: 0; }
.rows .yr { color: var(--accent); }
.rows .sub { color: var(--muted); }
.langs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.langs dt { font-weight: 600; color: var(--accent); }
.subhead { font-size: 0.6875rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }

/* Liens */
.links { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 12px; }
.links a {
  display: flex; flex-direction: column; gap: 3px; min-width: 0; padding: 12px 14px; text-decoration: none; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: 8px;
}
.links a:hover { border-color: var(--accent); }
.links .t { font-weight: 600; display: flex; justify-content: space-between; gap: 8px; }
.links .t::after { content: "↗"; color: var(--accent); }
.links .d { font-size: 0.78125rem; color: var(--muted); line-height: 1.4; }
.links .u { color: var(--accent); overflow-wrap: anywhere; margin-top: 2px; }
.direct { display: flex; flex-wrap: wrap; gap: 8px 28px; align-items: center; font-size: 0.84375rem; }
.direct .row { display: flex; gap: 8px; align-items: center; }
.direct .val { user-select: all; font-weight: 500; }
.direct .copy { border-color: var(--line); color: var(--muted); }
.direct .copy:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- Téléphone et fenêtres étroites ---------- */
@media (max-width: 860px) {
  .app { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
  .side { padding: 14px 16px 0; gap: 10px; overflow: visible; }
  .name { font-size: 1.375rem; }
  .role { margin-top: 5px; font-size: 0.78125rem; }
  .contact { flex-direction: row; flex-wrap: wrap; gap: 2px 16px; font-size: 0.75rem; }
  .contact .copy { display: none; }
  .settings { display: none; }
  .tabs { flex-direction: row; flex-wrap: wrap; gap: 0; margin-inline: -4px; }
  .tabs button { flex: none; padding: 6px 4px; margin-inline: 1px; font-size: clamp(0.6875rem, 3.2vw, 0.84375rem); border-left: 0; border-bottom: 3px solid transparent; border-radius: 0; white-space: nowrap; }
  .tabs button[aria-selected="true"] { background: none; border-bottom-color: var(--accent-on-side, #82b4f2); }
  main { padding-block: 18px 20px; padding-inline: 16px; }
  .skills, .projects, .langs { grid-template-columns: minmax(0, 1fr); }
  .rows li { grid-template-columns: minmax(0, 1fr); gap: 0; }
}
@media (min-width:861px) and (max-height:720px){.side{gap:14px;padding-top:20px}.tabs button{padding:5px 12px}}
.theme-btn{display:inline-flex;align-items:center;gap:6px}
.theme-m{display:none}
@media (max-width:860px){.theme-m{display:inline-flex;justify-content:center;position:absolute;top:14px;right:16px;width:30px;height:27px;border-radius:6px;border:1px solid var(--side-line);background:var(--side-active);color:var(--side-fg)}}
@media (max-width:360px){.name{font-size: 1.1875rem}}
/* ---------- Réglages : taille du texte et mode sombre ---------- */
.settings { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--side-line); display: flex; flex-direction: column; gap: 10px; font-size: 0.78125rem; color: var(--side-muted); }
.fs-row { display: flex; flex-direction: column; gap: 4px; }
.fs-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.fs-head output { font-family: var(--font-mono); font-size: 0.6875rem; color: var(--side-fg); font-variant-numeric: tabular-nums; }
.fs-range { flex: 1; min-width: 0; width: 100%; margin: 0; accent-color: #82b4f2; cursor: pointer; }
.fs-scale { display: flex; align-items: center; gap: 8px; font-family: var(--font-body); line-height: 1; }
.fs-scale span:first-child { font-size: 0.6875rem; } .fs-scale span:last-child { font-size: 0.9375rem; }
.settings .theme-btn { align-self: flex-start; }
.fs-m, .fs-pop { display: none; }
@media (max-width:860px){
  .settings{display:none}
  .name{padding-right:172px}
  .fs-m{display:inline-flex;align-items:center;justify-content:center;position:absolute;top:14px;right:54px;width:30px;height:27px;border-radius:6px;border:1px solid var(--side-line);background:var(--side-active);color:var(--side-fg);font-size:0.8125rem;font-weight:600}
  .fs-m[aria-expanded="true"]{border-color:var(--side-fg)}
  .fs-pop:not([hidden]){display:flex;flex-direction:column;gap:6px;position:absolute;z-index:5;top:48px;right:16px;width:220px;max-width:calc(100% - 32px);padding:12px 14px;border-radius:8px;background:var(--side-active);border:1px solid var(--side-line);color:var(--side-muted);font-size:0.78125rem;box-shadow:0 8px 24px rgba(0,0,0,.25)}
}
@media (min-width:861px) and (max-height:820px){.side{gap:10px;padding-top:16px;padding-bottom:12px}.role{margin-top:6px}.contact{gap:3px}.tabs button{padding:4px 12px}.settings{gap:6px;padding-top:8px}}
@media (max-width:420px){.name{font-size:1.25rem}}
@media (max-width:360px){.name{font-size:1.1875rem;padding-right:150px}}

/* ---------- Ouverture des CV en PDF ---------- */
.dl-group { display: flex; flex-direction: column; gap: 6px; }
.dl { display: flex; align-items: center; gap: 9px; padding: 6px 11px; border-radius: 6px; border: 1px solid var(--side-line); background: var(--side-active); color: var(--side-fg); font-size: 0.75rem; font-weight: 500; line-height: 1.3; text-decoration: none; }
.dl:hover { border-color: var(--side-muted); }
.dl svg { flex: none; }
.dl-sub { color: var(--side-muted); font-weight: 400; white-space: nowrap; }
.dl-m { display: none; }
@media (max-width:860px){
  .dl-m{display:inline-flex;align-items:center;justify-content:center;gap:5px;position:absolute;top:14px;right:92px;height:27px;padding:0 9px;border-radius:6px;border:1px solid var(--side-line);background:var(--side-active);color:var(--side-fg);font-size:0.75rem;font-weight:500}
  .dl-m[aria-expanded="true"]{border-color:var(--side-fg)}
  .dl-group{display:none;position:absolute;z-index:5;top:48px;right:16px;width:270px;max-width:calc(100% - 32px);padding:10px;border-radius:8px;background:var(--side-bg);border:1px solid var(--side-line);box-shadow:0 8px 24px rgba(0,0,0,.25)}
  .dl-group.open{display:flex}
  .dl{padding:8px 11px;font-size:0.8125rem}
}
@media (min-width:861px) and (max-height:820px){.side{gap:8px}.tabs button{padding:3px 12px}.dl{padding:5px 11px}.dl-group{gap:4px}}

/* ---------- Photo ---------- */
.avatar { float: right; width: 52px; height: 52px; margin: 0 0 6px 10px; border-radius: 50%; object-fit: cover; border: 2px solid var(--side-line); }
.name { font-size: 1.375rem; }
@media (max-width:860px){ .avatar{float:left;width:42px;height:42px;margin:0 10px 2px 0} .name{font-size:1.25rem;padding-right:150px} }
@media (max-width:360px){ .avatar{width:38px;height:38px} .name{font-size:1.125rem} }
