/* Portfolio de Yoann Laleure : feuille de style unique.
   Clair par défaut, sombre au choix. Police système, texte à 16 px. */

:root {
  --bg: #ffffff;
  --bg-alt: #f4f6fa;
  --card: #ffffff;
  --ink: #1a2233;
  --muted: #566176;
  --line: #e0e5ed;
  --accent: #2456d6;
  --accent-hover: #1a43b0;
  --accent-ink: #ffffff;
  --accent-soft: #e8eefc;
  --hero-bg: #0f1b3d;
  --hero-ink: #ffffff;
  --hero-muted: #b9c4e0;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 6px 18px rgba(16, 24, 40, .06);
  --radius: 12px;
  --gap: 24px;
}
html[data-bs-theme="dark"] {
  --bg: #0e1525;
  --bg-alt: #121b2f;
  --card: #17223a;
  --ink: #e8edf7;
  --muted: #a0adc3;
  --line: #2a3855;
  --accent: #7aa5ff;
  --accent-hover: #a3c0ff;
  --accent-ink: #0b1426;
  --accent-soft: rgba(122, 165, 255, .14);
  --hero-bg: #0a1226;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 18px rgba(0, 0, 0, .25);
}

html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  overflow-x: hidden;
}
.wrap { width: min(100% - 48px, 1360px); margin-inline: auto; }
h1, h2, h3, h4, p, ul, ol { margin-top: 0; }
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
::selection { background: var(--accent); color: var(--accent-ink); }
.text-muted-ink { color: var(--muted); }

.skip-link { position: fixed; top: -80px; left: 16px; z-index: 1100; padding: 10px 18px; border-radius: 8px; background: var(--ink); color: var(--bg); }
.skip-link:focus { top: 12px; color: var(--bg); }

/* ───────── En-tête ───────── */
.site-header { position: sticky; top: 0; z-index: 1030; background: var(--bg); border-bottom: 1px solid var(--line); }
.site-header .navbar { padding: 0; }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; }
.brand:hover { color: var(--ink); }
.brand-mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 9px; background: var(--hero-bg); color: #fff; font-size: .8rem; font-weight: 700; letter-spacing: .02em; }
.brand-name { font-size: 1.02rem; }
.navbar-collapse { flex-grow: 1; justify-content: center; }
.navbar-nav { gap: 2px; align-items: center; }
.site-header .nav-link { padding: 8px 14px !important; border-radius: 8px; color: var(--muted); font-size: .94rem; font-weight: 500; transition: color .15s, background .15s; }
.site-header .nav-link:hover, .site-header .nav-link.active { color: var(--ink); background: var(--bg-alt); }
.site-header .nav-link.active { color: var(--accent); }
.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.utility-button, .menu-button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 40px; height: 40px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--ink); font-size: .82rem; font-weight: 600; cursor: pointer; transition: border-color .15s, background .15s; }
.utility-button:hover, .menu-button:hover { border-color: var(--accent); background: var(--bg-alt); }
.utility-button svg, .menu-button svg { width: 18px; height: 18px; }
.menu-button { display: none; box-shadow: none !important; }
.sun-icon { display: none; }
.moon-icon { display: block; }
html[data-bs-theme="dark"] .sun-icon { display: block; }
html[data-bs-theme="dark"] .moon-icon { display: none; }

/* ───────── Boutons ───────── */
.btn-main, .btn-ghost { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 10px 22px; border-radius: 8px; font-size: .96rem; font-weight: 600; text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.btn-main { border: 1px solid var(--accent); background: var(--accent); color: var(--accent-ink); }
.btn-main:hover, .btn-main:focus-visible { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--accent-ink); }
.btn-ghost { border: 1px solid var(--line); background: transparent; color: var(--ink); }
.btn-ghost:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.btn-ghost:disabled, .btn-main:disabled { opacity: .35; pointer-events: none; }

/* ───────── Accueil ───────── */
.hero { padding: 72px 0 0; background: var(--hero-bg); color: var(--hero-ink); }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1fr) 280px; align-items: center; gap: 64px; padding-bottom: 56px; }
.hero-tag { margin: 0 0 14px; color: var(--hero-muted); font-size: .9rem; font-weight: 500; }
.hero-title { margin: 0 0 14px; font-size: clamp(2.1rem, 3.6vw, 3rem); font-weight: 700; line-height: 1.15; }
.hero-hello { display: block; margin-bottom: 4px; color: var(--hero-muted); font-size: 1.15rem; font-weight: 500; }
.hero-role { margin: 0 0 14px; color: #fff; font-size: 1.15rem; font-weight: 500; }
.hero-lead { max-width: 620px; margin: 0 0 30px; color: var(--hero-muted); font-size: 1.02rem; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .btn-main { background: #fff; border-color: #fff; color: #0f1b3d; }
.hero .btn-main:hover { background: #dfe7fb; border-color: #dfe7fb; color: #0f1b3d; }
.hero .btn-ghost { border-color: rgba(255,255,255,.4); color: #fff; }
.hero .btn-ghost:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.08); }
.hero-avatar { display: grid; place-items: center; width: 240px; height: 240px; justify-self: center; border-radius: 50%; background: #1b2b5c; color: #8ea4de; overflow: hidden; }
.hero-avatar svg { width: 72%; height: auto; margin-top: 14%; }
.hero-avatar { position: relative; }
.hero-avatar img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 30%; }
.hero-avatar { box-shadow: 0 0 0 4px rgba(255,255,255,.18), 0 18px 40px rgba(0,0,0,.35); }
.hero-facts { display: flex; flex-wrap: wrap; gap: 0 48px; margin: 0; padding: 22px 0 26px; list-style: none; border-top: 1px solid rgba(255,255,255,.14); }
.hero-facts li { display: flex; align-items: baseline; gap: 10px; }
.hero-facts strong { font-size: 1.5rem; font-weight: 700; }
.hero-facts span { color: var(--hero-muted); font-size: .92rem; }

/* ───────── Sections ───────── */
.section { padding: 80px 0; }
.section.alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section-head { margin-bottom: 36px; }
.section-title { margin: 0 0 8px; font-size: clamp(1.6rem, 2.4vw, 2rem); font-weight: 700; line-height: 1.25; }
.section-sub { max-width: 760px; margin: 0; color: var(--muted); }
.inline-link { font-weight: 600; text-decoration: none; white-space: nowrap; }
.inline-link:hover { text-decoration: underline; }
.about-grid { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 48px; }
.about-lead { margin-bottom: 14px; font-size: 1.2rem; line-height: 1.6; }
.about-points { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 0; padding: 0; list-style: none; }
.about-points li { padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); font-size: .92rem; font-weight: 500; }
.noscript-note { margin: 24px 0; padding: 14px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-alt); }

/* Grilles de cartes */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: var(--gap); }

/* ───────── Compétences ───────── */
.skill-card { display: flex; flex-direction: column; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); }
.skill-top { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.skill-symbol { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); font-size: 1.15rem; font-weight: 700; }
.skill-card h3 { margin: 0; font-size: 1.15rem; font-weight: 700; }
.skill-card p { margin: 0 0 16px; color: var(--muted); font-size: .96rem; }
.skill-codes { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 18px; }
.code-chip { padding: 4px 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg-alt); color: var(--ink); font-size: .8rem; font-weight: 600; cursor: pointer; transition: border-color .15s, color .15s; }
.code-chip:hover, .code-chip:focus-visible { border-color: var(--accent); color: var(--accent); }
.code-chip.is-stage { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.text-link { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding: 0; border: 0; background: none; color: var(--accent); font-size: .94rem; font-weight: 600; text-decoration: none; cursor: pointer; }
.text-link:hover { color: var(--accent-hover); text-decoration: underline; }

/* ───────── Projets ───────── */
.tip { display: flex; align-items: center; gap: 12px; margin: 0 0 24px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--accent-soft); color: var(--ink); font-size: .94rem; }
.tip-icon { flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-size: .78rem; font-weight: 700; font-style: italic; }
.filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px 40px; margin-bottom: 36px; }
.filter-group { display: grid; gap: 8px; }
.filter-label { color: var(--muted); font-size: .84rem; font-weight: 600; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-chip { min-height: 38px; padding: 6px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink); font-size: .9rem; font-weight: 500; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.filter-chip:hover { border-color: var(--accent); }
.filter-chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.filter-count { margin: 0 0 6px auto; color: var(--muted); font-size: .9rem; }
.group-title { margin: 0 0 20px; font-size: 1.2rem; font-weight: 700; }
.group-title[hidden] { display: none; }
#grid-sae { margin-bottom: 52px; }
.empty-note { margin: 20px 0 0; padding: 20px; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); text-align: center; }

.project-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); cursor: pointer; transition: border-color .2s, transform .2s; }
.project-card:hover, .project-card:focus-within { border-color: var(--accent); transform: translateY(-3px); }
.project-cover { position: relative; height: 190px; overflow: hidden; border-bottom: 1px solid var(--line); background: var(--bg-alt); }
.project-cover img { width: 100%; height: 100%; object-fit: cover; object-position: top center; background: #fff; transition: transform .4s ease; }
.project-card:hover .project-cover img { transform: scale(1.03); }
.project-cover.is-art { display: grid; place-items: center; background: #1d3557; }
.art-word { color: rgba(255,255,255,.92); font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: 2rem; font-weight: 700; }
.project-cover[data-art="Ada"] { background: #1d3557; }
.project-cover[data-art="Sudoku"] { background: #3b3470; }
.project-cover[data-art="Poste"] { background: #1f4b47; }
.project-cover[data-art="Linux"] { background: #343652; }
.project-cover[data-art="Friender"] { background: #7a2e5d; }
.project-cover[data-art="Stage"] { background: #1b4332; }
.project-cover[data-art="PHP"] { background: #3f4580; }
.project-cover[data-art="C"] { background: #1d3b5c; }
.project-cover[data-art="Ajax"] { background: #6b4521; }
.project-cover[data-art="Docker"] { background: #0f4c75; }
.project-cover[data-art="API"] { background: #4a3470; }
.project-cover[data-art="Python"] { background: #2b5a85; }
.project-content { display: flex; flex: 1; flex-direction: column; padding: 22px; }
.card-meta { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; color: var(--muted); font-size: .84rem; }
.kind-tag { margin-left: auto; padding: 2px 8px; border: 1px solid var(--line); border-radius: 6px; font-size: .72rem; font-weight: 600; letter-spacing: .02em; }
.badge-code { padding: 2px 9px; border-radius: 6px; background: var(--accent-soft); color: var(--accent); font-weight: 700; }
.project-content h3 { margin: 0 0 4px; font-size: 1.15rem; font-weight: 700; line-height: 1.35; }
.project-name { margin: 0 0 10px; color: var(--accent); font-size: .92rem; font-weight: 600; line-height: 1.45; }
.project-summary { margin: 0 0 14px; color: var(--muted); font-size: .94rem; }
.pill-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.skill-pill, .tech-pill { padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 600; line-height: 1.5; }
.skill-pill { background: var(--accent-soft); color: var(--accent); }
.tech-pill { border: 1px solid var(--line); background: var(--bg-alt); color: var(--ink); font-weight: 500; }
.status-badge { display: inline-block; vertical-align: middle; margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: #f4b942; color: #1b1405; font-size: .68rem; font-weight: 700; }
.open-button { display: flex; align-items: center; justify-content: space-between; width: 100%; margin-top: auto; padding: 10px 16px; border: 1px solid var(--accent); border-radius: 8px; background: transparent; color: var(--accent); font-size: .94rem; font-weight: 600; cursor: pointer; transition: background .15s, color .15s; }
.open-button:hover, .open-button:focus-visible { background: var(--accent); color: var(--accent-ink); }

/* ───────── Expérience ───────── */
.experience-card { display: grid; grid-template-columns: minmax(0, 1fr) 200px; gap: 40px; align-items: center; padding: 34px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); }
.exp-kind { margin: 0 0 8px; color: var(--accent); font-size: .88rem; font-weight: 600; }
.experience-card h3 { margin: 0 0 6px; font-size: 1.5rem; font-weight: 700; line-height: 1.3; }
.exp-org { margin: 0 0 14px; color: var(--muted); font-weight: 500; }
.exp-summary { max-width: 720px; margin: 0 0 16px; }
.experience-card .pill-row { margin-bottom: 22px; }
.exp-side { display: grid; place-items: center; align-content: center; padding: 22px; border-radius: var(--radius); background: var(--accent-soft); color: var(--accent); text-align: center; }
.exp-weeks { font-size: 3.2rem; font-weight: 700; line-height: 1; }
.exp-weeks-label { font-size: .9rem; font-weight: 600; }

/* ───────── Formation et compétences ───────── */
.cv-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.timeline { position: relative; margin: 0; padding: 0 0 0 34px; list-style: none; }
.timeline::before { content: ""; position: absolute; left: 8px; top: 10px; bottom: 10px; width: 3px; border-radius: 2px; background: var(--line); }
.timeline li { position: relative; padding-bottom: 32px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: -34px; top: 5px; width: 19px; height: 19px; border: 4px solid var(--bg); border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.tl-date { margin: 0 0 4px; color: var(--accent); font-size: .9rem; font-weight: 700; }
.timeline h3 { margin: 0 0 4px; font-size: 1.1rem; font-weight: 700; line-height: 1.4; }
.tl-place { margin: 0; color: var(--ink); font-weight: 500; }
.tl-detail { margin: 6px 0 0; color: var(--muted); font-size: .94rem; }
.skill-lists { display: grid; gap: 26px; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); }
.skill-list h3 { margin: 0 0 10px; font-size: .98rem; font-weight: 700; }
.skill-list .pill-row { margin-bottom: 0; }

/* ───────── Contact et pied de page ───────── */
.contact-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.contact-card { display: flex; align-items: center; gap: 16px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); color: var(--ink); text-decoration: none; box-shadow: var(--shadow); transition: border-color .2s; }
a.contact-card:hover, a.contact-card:focus-visible { border-color: var(--accent); color: var(--ink); }
.contact-card strong { display: block; font-size: 1.02rem; }
.contact-card small { color: var(--muted); font-size: .9rem; }
.contact-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); font-size: 1.3rem; }
.contact-card.is-soon { border-style: dashed; box-shadow: none; opacity: .75; }
.site-footer { padding: 26px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--accent); }

.to-top { position: fixed; right: 20px; bottom: 20px; z-index: 1040; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink); font-size: .9rem; font-weight: 600; text-decoration: none; box-shadow: var(--shadow); }
.to-top[hidden] { display: none; }
.to-top:hover, .to-top:focus-visible { border-color: var(--accent); color: var(--accent); }

/* ───────── Fiche projet (fenêtre) ───────── */
.modal-backdrop.show { opacity: .6; }
.modal-xl { --bs-modal-width: 1180px; }
.project-modal { border: 1px solid var(--line); border-radius: 14px; background: var(--bg); color: var(--ink); overflow: hidden; }
.project-modal .modal-header { align-items: flex-start; gap: 16px; padding: 24px 32px 20px; border-bottom: 1px solid var(--line); background: var(--bg); }
.modal-heading { flex: 1; min-width: 0; }
.modal-code { margin: 0 0 6px; color: var(--accent); font-size: .88rem; font-weight: 600; }
.project-modal .modal-title { margin: 0; font-size: 1.6rem; font-weight: 700; line-height: 1.3; }
.modal-subtitle { margin: 6px 0 0; color: var(--muted); font-size: 1rem; }
.btn-close-custom { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 8px 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--ink); font-weight: 600; cursor: pointer; transition: border-color .15s, color .15s; }
.btn-close-custom:hover, .btn-close-custom:focus-visible { border-color: var(--accent); color: var(--accent); }
.project-modal .modal-body { padding: 32px; background: var(--bg); }
.project-modal .modal-footer { justify-content: space-between; padding: 16px 32px; border-top: 1px solid var(--line); background: var(--bg-alt); }
.pm-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 44px; align-items: start; }
.pm-section { margin-bottom: 32px; }
.pm-section h3 { margin: 0 0 12px; font-size: 1.1rem; font-weight: 700; }
.pm-text { margin: 0; line-height: 1.75; }
.pm-hint { margin: -6px 0 12px; color: var(--muted); font-size: .9rem; }
.pm-list { margin: 0; padding-left: 20px; line-height: 1.7; }
.pm-list li { margin-bottom: 6px; }
.pm-list li::marker { color: var(--accent); }
.pm-list.is-steps { list-style: none; padding-left: 0; counter-reset: step; }
.pm-list.is-steps li { position: relative; margin-bottom: 10px; padding: 12px 16px 12px 54px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); counter-increment: step; }
.pm-list.is-steps li::before { content: counter(step); position: absolute; left: 16px; top: 12px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-size: .84rem; font-weight: 700; }
.pm-aside { position: sticky; top: 0; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-alt); }
.pm-aside .pm-section { margin-bottom: 22px; }
.pm-aside .pm-section:last-child { margin-bottom: 0; }
.pm-aside .pm-section h3 { font-size: .98rem; }
.pm-aside .pm-list { padding-left: 18px; font-size: .92rem; }
.facts { margin: 0 0 24px; }
.facts > div { margin-bottom: 16px; }
.facts dt { margin-bottom: 4px; color: var(--muted); font-size: .84rem; font-weight: 600; }
.facts dd { margin: 0; font-size: .96rem; font-weight: 500; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.shot { margin: 0; }
.shot-button { display: block; width: 100%; padding: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; cursor: zoom-in; transition: border-color .15s; }
.shot-button:hover, .shot-button:focus-visible { border-color: var(--accent); }
.shot-button img { display: block; width: 100%; height: 140px; object-fit: contain; }
.shot figcaption { padding: 8px 2px 0; color: var(--muted); font-size: .86rem; line-height: 1.4; }
.metric-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.metric { padding: 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); }
.metric strong { display: block; color: var(--accent); font-size: 1.5rem; font-weight: 700; line-height: 1.2; }
.metric span { color: var(--muted); font-size: .88rem; line-height: 1.4; }
.human-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.human-grid > div { padding: 16px 18px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); }
.human-grid h4 { margin: 0 0 8px; color: var(--accent); font-size: .9rem; font-weight: 700; }
.human-grid ul { margin: 0; padding-left: 18px; font-size: .94rem; }
.human-grid p { margin: 0; font-size: .94rem; }
.lang-note { margin: 0 0 22px; padding: 10px 14px; border-radius: 8px; background: var(--bg-alt); color: var(--muted); font-size: .9rem; }

/* ───────── Agrandissement des captures ───────── */
.lightbox { position: fixed; inset: 0; z-index: 2000; display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; padding: 70px 10px 20px; background: rgba(8, 12, 22, .94); }
.lightbox[hidden] { display: none; }
.lb-prev { grid-column: 1; grid-row: 1; justify-self: center; }
.lb-next { grid-column: 3; grid-row: 1; justify-self: center; }
.lb-figure { grid-column: 2; grid-row: 1; margin: 0; display: grid; justify-items: center; align-content: center; gap: 12px; min-width: 0; max-height: calc(100vh - 110px); }
.lb-figure img { max-width: 100%; max-height: calc(100vh - 170px); object-fit: contain; border-radius: 8px; background: #fff; }
/* image très haute (page entière) : on garde une largeur lisible et on fait défiler */
.lb-figure.is-tall { align-content: start; overflow-y: auto; padding-right: 6px; }
.lb-figure.is-tall img { max-height: none; width: min(100%, 1100px); height: auto; }
.lb-figure figcaption { color: #e6ecf6; font-size: .95rem; text-align: center; }
.lb-nav { width: 48px; height: 48px; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; background: rgba(255,255,255,.08); color: #fff; font-size: 1.4rem; cursor: pointer; }
.lb-nav:hover, .lb-nav:focus-visible { background: #fff; color: #0f1b3d; }
.lb-nav[hidden] { display: none; }
.lb-close { position: absolute; top: 16px; right: 16px; display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 8px 16px; border: 1px solid rgba(255,255,255,.5); border-radius: 8px; background: rgba(15,27,61,.9); color: #fff; font-weight: 600; cursor: pointer; }
.lb-close:hover, .lb-close:focus-visible { background: #fff; color: #0f1b3d; }

/* ───────── Adaptation écrans ───────── */
@media (max-width: 991.98px) {
  .menu-button { display: inline-flex; }
  .header-inner { min-height: 62px; }
  .brand { order: 1; }
  .header-actions { order: 2; }
  .navbar-collapse { order: 3; flex-basis: 100%; width: 100%; padding-bottom: 12px; }
  .navbar-nav { align-items: stretch; }
  .hero { padding-top: 48px; }
  .hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .hero-avatar { justify-self: start; width: 140px; height: 140px; order: -1; }
  .about-grid { grid-template-columns: 1fr; gap: 12px; }
  .cv-grid { grid-template-columns: 1fr; gap: 36px; }
  .experience-card { grid-template-columns: 1fr; padding: 24px; }
  .exp-side { display: flex; gap: 12px; justify-content: flex-start; padding: 14px 18px; }
  .exp-weeks { font-size: 2rem; }
  .pm-layout { grid-template-columns: 1fr; }
  .pm-aside { position: static; order: -1; }
  .filter-count { margin-left: 0; }
  .section { padding: 56px 0; }
}
@media (max-width: 575.98px) {
  .wrap { width: min(100% - 32px, 1360px); }
  .brand-name { font-size: .95rem; }
  .card-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-facts { gap: 4px 28px; }
  .tip { align-items: flex-start; }
  .project-modal .modal-header { padding: 16px; flex-direction: column-reverse; }
  .btn-close-custom { align-self: flex-end; }
  .project-modal .modal-body { padding: 18px 16px; }
  .project-modal .modal-footer { padding: 12px 16px; }
  .project-modal .modal-footer .btn-main, .project-modal .modal-footer .btn-ghost { flex: 1; padding-inline: 10px; font-size: .86rem; }
  .project-modal { border-radius: 0; }
  .lightbox { grid-template-columns: 44px 1fr 44px; padding-inline: 4px; }
  .lb-nav { width: 40px; height: 40px; }
  .to-top span:last-child { display: none; }
  .to-top { padding: 12px 14px; }
}
/* ───────── Compétences : cartes entièrement cliquables ───────── */
.skills-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); }
.skill-card { position: relative; transition: border-color .2s, transform .2s; }
.skill-card:hover, .skill-card:focus-within { border-color: var(--accent); transform: translateY(-3px); }
.skill-top { align-items: center; margin-bottom: 14px; }
.skill-card .skill-pitch { margin: 0 0 18px; color: var(--ink); font-size: 1rem; line-height: 1.6; }
.skill-label { margin: 0 0 8px; color: var(--muted); font-size: .84rem; font-weight: 600; }
.skill-abilities { margin: 0 0 22px; padding-left: 20px; color: var(--ink); font-size: .95rem; line-height: 1.6; }
.skill-abilities li { margin-bottom: 6px; }
.skill-abilities li::marker { color: var(--accent); }
.skill-link { align-self: flex-start; }
.skill-link::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.skill-card { cursor: pointer; }

/* ───────── Contact : formulaire ───────── */
.contact-layout { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: var(--gap); align-items: start; }
.contact-form { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); }
.contact-form h3 { margin: 0 0 18px; font-size: 1.15rem; font-weight: 700; }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-size: .92rem; font-weight: 600; }
.field input, .field textarea { width: 100%; padding: 11px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--ink); font: inherit; }
.field input:focus, .field textarea:focus { border-color: var(--accent); outline: 3px solid var(--accent-soft); }
.field textarea { resize: vertical; min-height: 120px; }
.form-status { min-height: 1.5em; margin: 0 0 14px; font-size: .94rem; }
.form-status[data-kind="info"] { color: var(--muted); }
.form-status[data-kind="ok"] { color: #1a7f4b; font-weight: 600; }
.form-status[data-kind="error"] { color: #b42318; font-weight: 600; }
.contact-side { display: grid; gap: var(--gap); }
.contact-layout .contact-grid { display: none; }

@media (max-width: 991.98px) {
  .contact-layout { grid-template-columns: 1fr; }
}
@media (max-width: 575.98px) {
  .contact-form { padding: 20px; }
}

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

/* ---------- Public visé : vue IUT ou vue entreprise ---------- */
html[data-audience="company"] .only-iut { display: none !important; }
html:not([data-audience="company"]) .only-company { display: none !important; }

.availability { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 16px; padding: 6px 14px; border: 1px solid rgba(255,255,255,.28); border-radius: 999px; background: rgba(255,255,255,.08); color: #fff; font-size: .88rem; font-weight: 600; }
.availability-dot { width: 9px; height: 9px; border-radius: 50%; background: #4fd18b; box-shadow: 0 0 0 3px rgba(79,209,139,.25); }


.seeking { margin-top: 28px; padding: 22px 24px; border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); }
.seeking h3 { margin: 0 0 8px; font-size: 1.05rem; font-weight: 700; }
.seeking p { margin: 0 0 16px; color: var(--muted); }

.stack-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.stack-card { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); }
.stack-card h3 { margin: 0 0 14px; font-size: 1.05rem; font-weight: 700; }
.stack-card .pill-row { margin-bottom: 0; }

.timeline li.is-current::before { background: #f4b942; box-shadow: 0 0 0 2px #f4b942; }
.timeline li.is-current .tl-date { margin-bottom: 6px; }
.timeline li.is-current .status-badge { margin-left: 0; }
.timeline h3 a { color: inherit; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.timeline h3 a:hover { color: var(--accent); text-decoration-color: var(--accent); }
