/* ============================================================
   elyeskernag.fr — DA « schéma électrique vivant » (Claude Design)
   Tokens : accent #d9b544 · fonds #0a1422/#0d1929/#101f33
   Typo : Archivo (titres+corps) · IBM Plex Mono (technique)
   ============================================================ */
:root { --accent: #d9b544; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #0a1422; font-family: Archivo, system-ui, sans-serif; color: #e8eef5; }
a { color: #e8eef5; text-decoration: none; }
a:hover { color: var(--accent); }
::selection { background: rgba(217, 181, 68, .35); }
img { max-width: 100%; }
h1, h2, h3 { margin: 0; }
.mono { font-family: 'IBM Plex Mono', monospace; }
.container { max-width: 1240px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 32px); }

@keyframes flow { to { stroke-dashoffset: -120; } }
@keyframes pulse { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }

.skip-link { position: absolute; left: -999px; top: 0; z-index: 200; background: var(--accent); color: #0a1422; padding: 10px 16px; border-radius: 0 0 8px 0; }
.skip-link:focus { left: 0; }

/* ---------- Nav ---------- */
.topnav { position: sticky; top: 0; z-index: 50; background: rgba(10, 20, 34, .88); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(91, 140, 200, .18); }
.topnav-inner { max-width: 1240px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 16px clamp(16px, 4vw, 32px); }
.brand-badge { width: 34px; height: 34px; border: 2px solid var(--accent); border-radius: 6px; display: grid; place-items: center; font: 700 13px 'IBM Plex Mono', monospace; color: var(--accent); transition: all .3s ease; }
a:hover > .brand-badge { box-shadow: 0 0 18px color-mix(in srgb, var(--accent) 55%, transparent); }
.topnav nav { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(14px, 2.5vw, 30px); font: 500 14px Archivo, sans-serif; }
.topnav nav a.nl { color: #b8c8da; padding: 6px 2px; border-bottom: 2px solid transparent; transition: all .25s ease; }
.topnav nav a.nl:hover { color: var(--accent); border-bottom-color: var(--accent); text-shadow: 0 0 14px color-mix(in srgb, var(--accent) 70%, transparent); }
.topnav nav a.nl-contact { color: var(--accent); border: 1px solid rgba(217, 181, 68, .4); border-radius: 8px; padding: 8px 16px; transition: all .25s ease; }
.topnav nav a.nl-contact:hover { background: rgba(217, 181, 68, .12); box-shadow: 0 0 20px color-mix(in srgb, var(--accent) 40%, transparent); }
.flag-link { display: inline-flex; align-items: center; border-radius: 4px; transition: all .25s ease; }
.flag-link:hover { box-shadow: 0 0 16px color-mix(in srgb, var(--accent) 45%, transparent); transform: scale(1.08); }
.flag-link svg { border-radius: 4px; border: 1px solid #33507a; display: block; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-inner { position: relative; max-width: 1240px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: clamp(32px, 5vw, 60px); padding: clamp(56px, 8vw, 96px) clamp(16px, 4vw, 32px) 0; align-items: center; }
.hero-text { flex: 1 1 480px; min-width: 0; }
.badge-dispo { display: inline-flex; align-items: center; gap: 10px; font: 500 12px 'IBM Plex Mono', monospace; color: var(--accent); border: 1px solid rgba(217, 181, 68, .35); border-radius: 100px; padding: 7px 14px; margin-bottom: 28px; }
.badge-dispo .led { width: 7px; height: 7px; border-radius: 50%; background: #f5b83d; animation: pulse 1.8s infinite; }
.badge-dispo.libre .led { background: #4ade80; }
.hero-name { font: 800 clamp(42px, 6vw, 68px)/1.02 Archivo, sans-serif; letter-spacing: -.02em; }
.hero-sub { margin: 22px 0 0; font: 400 clamp(17px, 2.2vw, 21px)/1.55 Archivo, sans-serif; color: #b8c8da; max-width: 580px; }
.hero-sub strong { color: #e8eef5; }
.hero-sub2 { margin: 16px 0 0; font: 400 17px/1.6 Archivo, sans-serif; color: #8fa8c4; max-width: 560px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.btn-solid { background: var(--accent); color: #0a1422; font: 600 15px Archivo, sans-serif; padding: 14px 26px; border-radius: 8px; transition: all .25s ease; }
.btn-solid:hover { filter: brightness(1.1); color: #0a1422; box-shadow: 0 0 26px color-mix(in srgb, var(--accent) 55%, transparent); }
.btn-line { border: 1px solid #33507a; color: #b8c8da; font: 600 15px Archivo, sans-serif; padding: 14px 26px; border-radius: 8px; transition: all .25s ease; }
.btn-line:hover { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 20px color-mix(in srgb, var(--accent) 30%, transparent); }
.portrait-wrap { position: relative; flex: 0 0 auto; }
.portrait-box { width: min(320px, 80vw); height: 360px; border-radius: 10px; border: 1px solid #33507a; background: #101f33; overflow: hidden; }
.portrait-box img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.9); display: block; }
.fig-label { position: absolute; left: -14px; bottom: -14px; background: #101f33; border: 1px solid #33507a; border-radius: 8px; padding: 10px 14px; font: 500 11px 'IBM Plex Mono', monospace; color: #8fa8c4; }
.fig-label span { color: var(--accent); }
.stats-band { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1px; background: rgba(91, 140, 200, .18); border-top: 1px solid rgba(91, 140, 200, .18); margin-top: 72px; }
.stat-cell { background: #0a1422; padding: 28px 32px; text-align: center; transition: background .3s ease; }
.stat-cell:hover { background: #0d1929; }
.stat-num { font: 700 36px 'IBM Plex Mono', monospace; color: var(--accent); }
.stat-lbl { font: 400 13px Archivo, sans-serif; color: #8fa8c4; margin-top: 4px; }

/* ---------- Sections ---------- */
.sec { border-top: 1px solid rgba(91, 140, 200, .18); padding: 90px 0 100px; }
.bg-a { background: #0a1422; }
.bg-b { background: #0d1929; }
.kicker { font: 500 12px 'IBM Plex Mono', monospace; color: var(--accent); letter-spacing: .14em; margin-bottom: 14px; }
.sec-title { font: 700 clamp(30px, 4.5vw, 42px)/1.1 Archivo, sans-serif; letter-spacing: -.015em; }
.sec-lede { margin: 12px 0 0; font: 400 15px/1.6 Archivo, sans-serif; color: #8fa8c4; }

/* cartes génériques */
.grid-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.grid-300 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.card { background: #101f33; border: 1px solid #1d3350; border-radius: 12px; padding: 26px 24px; transition: all .3s ease; }
.card:hover { border-color: var(--accent); transform: translateY(-4px); box-shadow: 0 0 30px color-mix(in srgb, var(--accent) 22%, transparent); }
.card-t { border: 1px solid #1d3350; border-radius: 12px; padding: 26px 24px; background: rgba(16, 31, 51, .5); transition: all .3s ease; }
.card-t:hover { border-color: var(--accent); box-shadow: 0 0 30px color-mix(in srgb, var(--accent) 20%, transparent); }
.sigle { font: 700 13px 'IBM Plex Mono', monospace; color: var(--accent); margin-bottom: 12px; }
.card h3, .card-t h3 { font: 600 19px/1.25 Archivo, sans-serif; margin-bottom: 12px; }
.card p, .card-t > p { margin: 0; font: 400 14px/1.65 Archivo, sans-serif; color: #8fa8c4; }
.card p strong, .card-t p strong { color: #e8eef5; }
.bus-svg { display: block; width: 100%; margin-top: 26px; }
.list-arr { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; font: 400 14px/1.55 Archivo, sans-serif; color: #b8c8da; }
.list-arr li { display: flex; gap: 10px; }
.list-arr li::before { content: "▸"; color: var(--accent); font-family: 'IBM Plex Mono', monospace; flex: none; }
.card-t h3.tcol { color: var(--accent); font-size: 17px; margin-bottom: 18px; }

/* ---------- Parcours (harnais) ---------- */
.harness { position: relative; padding-left: clamp(36px, 5vw, 56px); }
.harness-line { position: absolute; left: 10px; top: 0; height: 100%; width: 24px; }
.jobs { display: grid; gap: 34px; }
.job { position: relative; background: #101f33; border: 1px solid #1d3350; border-radius: 12px; padding: 24px 28px; transition: all .3s ease; }
.job:hover { border-color: var(--accent); box-shadow: 0 0 30px color-mix(in srgb, var(--accent) 22%, transparent); }
.job::before { content: ""; position: absolute; left: clamp(-42px, -4.5vw, -30px); top: 30px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
.job-meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 10px; }
.badge-ind { font: 700 12px 'IBM Plex Mono', monospace; color: #0a1422; background: var(--accent); border-radius: 5px; padding: 3px 8px; }
.job-per { font: 500 13px 'IBM Plex Mono', monospace; color: #8fa8c4; }
.job-st { font: 500 12px 'IBM Plex Mono', monospace; color: #5b8cc8; }
.job h3 { font: 600 21px/1.25 Archivo, sans-serif; margin-bottom: 10px; }
.job p { margin: 0; font: 400 15px/1.65 Archivo, sans-serif; color: #8fa8c4; }
.edu-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.edu-card { border: 1px solid #1d3350; border-radius: 12px; padding: 24px 28px; background: rgba(16, 31, 51, .5); transition: all .3s ease; }
.edu-card:hover { border-color: var(--accent); box-shadow: 0 0 30px color-mix(in srgb, var(--accent) 20%, transparent); }
.edu-card .job-meta { margin-bottom: 10px; }
.edu-card h3 { font: 600 19px/1.3 Archivo, sans-serif; margin-bottom: 8px; }
.edu-card p { margin: 0; font: 400 14px/1.6 Archivo, sans-serif; color: #8fa8c4; }

/* ---------- Compétences ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.fbtn { cursor: pointer; border-radius: 100px; padding: 10px 20px; font: 600 14px Archivo, sans-serif; transition: all .25s ease; border: 1px solid #1d3350; background: transparent; color: #8fa8c4; }
.fbtn:hover { border-color: var(--accent); color: #e8eef5; box-shadow: 0 0 16px color-mix(in srgb, var(--accent) 35%, transparent); }
.fbtn.active { border-color: var(--accent); background: var(--accent); color: #0a1422; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.chip { display: inline-flex; align-items: center; border: 1px solid #33507a; border-radius: 8px; padding: 10px 16px; font: 500 14px Archivo, sans-serif; color: #e8eef5; background: #101f33; opacity: 1; transition: all .35s ease; }
.chip b { font: 600 10px 'IBM Plex Mono', monospace; color: var(--accent); margin-right: 8px; }
.chip:hover { border-color: var(--accent); box-shadow: 0 0 16px color-mix(in srgb, var(--accent) 30%, transparent); }
.chips.filtering .chip:not(.match) { border-color: #16233a; color: #3d5271; background: transparent; opacity: .45; }

/* ---------- Témoignages ---------- */
.quote-card { margin: 0; border: 1px solid #1d3350; border-radius: 12px; padding: 26px 24px; background: rgba(16, 31, 51, .5); transition: all .3s ease; }
.quote-card:hover { border-color: var(--accent); box-shadow: 0 0 30px color-mix(in srgb, var(--accent) 20%, transparent); }
.quote-card blockquote { margin: 0; font: 400 15px/1.65 Archivo, sans-serif; color: #b8c8da; }
.quote-card figcaption { margin-top: 16px; font: 500 12px 'IBM Plex Mono', monospace; color: #5b8cc8; }
.pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.pill { border: 1px solid #1d3350; border-radius: 100px; padding: 8px 16px; font: 500 13px Archivo, sans-serif; color: #b8c8da; transition: all .3s ease; }
.pill:hover { border-color: var(--accent); color: #e8eef5; box-shadow: 0 0 16px color-mix(in srgb, var(--accent) 30%, transparent); }

/* ---------- Contact ---------- */
.cont-strip { display: flex; align-items: center; gap: 18px; margin-bottom: 44px; }
.cont-strip .lbl { font: 600 12px 'IBM Plex Mono', monospace; color: #5b8cc8; white-space: nowrap; }
.cont-strip .ok { font: 600 12px 'IBM Plex Mono', monospace; color: #4ade80; white-space: nowrap; }
.cont-strip svg { flex: 1; height: 8px; min-width: 60px; }
.contact-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: clamp(28px, 5vw, 56px); align-items: start; }
.contact-cols .lede { margin: 18px 0 0; font: 400 17px/1.65 Archivo, sans-serif; color: #8fa8c4; }
.crows { display: grid; gap: 14px; margin-top: 32px; font: 500 15px Archivo, sans-serif; }
.crow { display: flex; align-items: center; gap: 14px; border: 1px solid #1d3350; border-radius: 10px; padding: 16px 20px; transition: all .3s ease; }
a.crow:hover { border-color: var(--accent); box-shadow: 0 0 22px color-mix(in srgb, var(--accent) 25%, transparent); }
.crow .k { font: 600 11px 'IBM Plex Mono', monospace; color: var(--accent); width: 52px; flex: none; }
.crow .wrap { overflow-wrap: anywhere; }
.modal-card { border: 1px solid #1d3350; border-radius: 12px; padding: 30px 28px; background: rgba(16, 31, 51, .5); transition: all .3s ease; }
.modal-card:hover { border-color: var(--accent); box-shadow: 0 0 30px color-mix(in srgb, var(--accent) 20%, transparent); }
.modal-card h3 { font: 600 20px Archivo, sans-serif; margin-bottom: 20px; }
.modal-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; font: 400 15px/1.6 Archivo, sans-serif; color: #b8c8da; }
.modal-list li { display: flex; gap: 12px; }
.modal-list li::before { content: "▸"; color: var(--accent); font-family: 'IBM Plex Mono', monospace; flex: none; }
.modal-list li.dispo::before { content: "●"; color: #4ade80; }
.modal-card .cta { display: block; text-align: center; background: var(--accent); color: #0a1422; font: 600 15px Archivo, sans-serif; padding: 15px 26px; border-radius: 8px; margin-top: 26px; transition: all .25s ease; }
.modal-card .cta:hover { filter: brightness(1.1); color: #0a1422; box-shadow: 0 0 26px color-mix(in srgb, var(--accent) 55%, transparent); }

/* ---------- Footer cartouche ---------- */
footer.site-foot { border-top: 1px solid rgba(91, 140, 200, .18); background: #0a1422; }
.cartouche-mini { max-width: 1240px; margin: 0 auto; padding: 26px clamp(16px, 4vw, 32px); display: grid; grid-template-columns: 1fr auto auto auto; gap: 0; border-left: 1px solid #1d3350; border-right: 1px solid #1d3350; font: 500 11px/1.6 'IBM Plex Mono', monospace; color: #5b8cc8; overflow-x: auto; }
.cartouche-mini > div { padding: 4px 16px; border-left: 1px solid #1d3350; }
.cartouche-mini > div:first-child { padding-left: 0; border-left: 0; }
.cartouche-mini .sub { color: #33507a; }
.cartouche-mini .val { color: #8fa8c4; }
.foot-bottom { max-width: 1240px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 32px) 26px; display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; font: 400 12px 'IBM Plex Mono', monospace; color: #33507a; }
.foot-bottom a { color: #5b8cc8; }
.foot-bottom a.admin-link { color: #33507a; }
.foot-bottom a.admin-link:hover, .foot-bottom a:hover { color: var(--accent); }

@media (max-width: 640px) {
  .cartouche-mini { grid-template-columns: 1fr 1fr; }
  .cartouche-mini > div { border-left: 0; padding-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
