/* =========================================================
   Portfolio — Dimitri Garrigues
   Design contemporain, clair/sombre, responsive
   ========================================================= */

:root {
  /* Palette — Aurora (bleu #408ec6 · indigo #1e2761 · bordeaux #7a2048) */
  --bg: #080b1c;
  --bg-soft: #0e1430;
  --surface: #141b3a;
  --surface-2: #1e2655;
  --border: #2c3666;
  --text: #eaf0fb;
  --text-soft: #a8b3d6;
  --text-dim: #6f7aa2;
  --brand: #2f7ab4;
  --brand-2: #4f9fd8;
  --accent: #9c2a5a;
  --ok: #22c55e;
  --danger: #ff5d6c;
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.85);
  /* Verre & lueurs */
  --glass: color-mix(in srgb, var(--surface) 62%, transparent);
  --glass-brd: color-mix(in srgb, var(--brand) 26%, var(--border));
  --glow-brand: 0 0 24px -4px color-mix(in srgb, var(--brand) 60%, transparent);
  --glow-cyan: 0 0 28px -6px color-mix(in srgb, var(--brand-2) 70%, transparent);
  --radius: 18px;
  --radius-sm: 12px;
  --maxw: 1180px;
  --font: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

:root[data-theme="light"] {
  --bg: #eef1f9;
  --bg-soft: #e6eaf6;
  --surface: #ffffff;
  --surface-2: #f2f5fc;
  --border: #dae0f0;
  --text: #141a30;
  --text-soft: #434c67;
  --text-dim: #79839c;
  --brand: #2a6ea8;
  --brand-2: #1e7fb8;
  --accent: #8a234f;
  --ok: #16a34a;
  --shadow: 0 24px 60px -28px rgba(24, 39, 92, 0.32);
  --glass: color-mix(in srgb, var(--surface) 72%, transparent);
  --glass-brd: color-mix(in srgb, var(--brand) 20%, var(--border));
  --glow-brand: 0 0 22px -6px color-mix(in srgb, var(--brand) 40%, transparent);
  --glow-cyan: 0 0 24px -8px color-mix(in srgb, var(--brand-2) 45%, transparent);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Fond aurora animé */
body::before {
  content: "";
  position: fixed;
  inset: -25%;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(42vw 42vw at 18% 12%, color-mix(in srgb, var(--brand) 55%, transparent), transparent 60%),
    radial-gradient(38vw 38vw at 85% 8%, color-mix(in srgb, var(--brand-2) 50%, transparent), transparent 62%),
    radial-gradient(46vw 46vw at 72% 88%, color-mix(in srgb, var(--accent) 44%, transparent), transparent 60%),
    radial-gradient(40vw 40vw at 8% 82%, color-mix(in srgb, var(--brand) 38%, transparent), transparent 60%);
  filter: blur(64px) saturate(135%);
  opacity: 0.92;
  animation: aurora-drift 28s ease-in-out infinite alternate;
}
/* Voile pour garder le texte lisible par-dessus l'aurora */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(135% 100% at 50% -10%, transparent 42%, color-mix(in srgb, var(--bg) 82%, transparent) 100%);
}
@keyframes aurora-drift {
  0%   { transform: translate3d(-3%, -2%, 0) rotate(0deg) scale(1.05); }
  50%  { transform: translate3d(3%, 2%, 0) rotate(8deg) scale(1.13); }
  100% { transform: translate3d(-2%, 3%, 0) rotate(-6deg) scale(1.07); }
}
:root[data-theme="light"] body::before { opacity: 0.55; filter: blur(72px) saturate(118%); }
@media (prefers-reduced-motion: reduce) { body::before { animation: none; } }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------------- Header / nav ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  background: color-mix(in srgb, var(--bg) 62%, transparent);
  border-bottom: 1px solid var(--glass-brd);
  box-shadow: 0 1px 0 0 color-mix(in srgb, var(--brand-2) 18%, transparent);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 1.05rem;
}
.brand .logo {
  width: 46px;
  height: 46px;
  object-fit: contain;
  display: block;
  padding: 4px;
  border: 1px solid color-mix(in srgb, var(--brand-2) 65%, white);
  border-radius: 50%;
  background-color: #fff;
  filter: drop-shadow(0 4px 12px color-mix(in srgb, var(--brand) 45%, transparent));
}
.nav-actions { display: flex; align-items: center; gap: 10px; }
/* Boutons de l'en-tête : intégrés au bandeau vitré */
.site-header .nav-actions .btn-ghost { border-color: transparent; color: var(--text-soft); }
.site-header .nav-actions .btn-ghost:hover {
  color: var(--text);
  background: color-mix(in srgb, var(--surface) 55%, transparent);
  border-color: var(--glass-brd);
}

.btn {
  --b: var(--surface-2);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  background: var(--b);
  color: var(--text);
  padding: 10px 16px;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover { transform: translateY(-1px); border-color: color-mix(in srgb, var(--brand) 50%, var(--border)); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-2) 90%);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 12px 28px -12px var(--brand), var(--glow-cyan);
}
.btn-primary:hover { box-shadow: 0 18px 38px -12px var(--brand), 0 0 32px -4px color-mix(in srgb, var(--brand-2) 80%, transparent); }
.btn-ghost { background: transparent; }
.btn-danger { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 40%, var(--border)); background: transparent; }
.btn-danger:hover { background: color-mix(in srgb, var(--danger) 14%, transparent); }
.btn-icon { padding: 10px; border-radius: 12px; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

/* ---------------- Hero ---------------- */
.hero {
  padding: 92px 0 56px;
  position: relative;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid var(--glass-brd);
  border-radius: 999px;
  background: var(--glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--text-soft);
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 22px;
  box-shadow: var(--glow-cyan);
}
.hero-eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 25%, transparent);
}
.hero h1 {
  font-size: clamp(2.3rem, 6vw, 4rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  margin: 0 0 18px;
  font-weight: 800;
}
.hero h1 .grad {
  font-family: "Caveat", "Inter", cursive;
  font-weight: 700;
  font-size: 1.28em;
  letter-spacing: 0;
  line-height: 1;
  padding-right: 0.18em;
  background: linear-gradient(120deg, var(--brand), var(--brand-2) 55%, var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 24px color-mix(in srgb, var(--brand-2) 45%, transparent));
}
.hero p.lead {
  font-size: clamp(1.02rem, 2.2vw, 1.22rem);
  color: var(--text-soft);
  max-width: 620px;
  margin: 0 0 28px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-stats {
  display: flex;
  gap: 34px;
  margin-top: 48px;
  flex-wrap: wrap;
}
.stat .num {
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.stat .label { color: var(--text-dim); font-size: 0.85rem; }

/* ---------------- Toolbar (filters + search) ---------------- */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 26px;
  flex-wrap: wrap;
}
.section-head h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0;
  letter-spacing: -0.02em;
}
.section-head p { margin: 4px 0 0; color: var(--text-dim); }

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1px solid var(--glass-brd);
  background: var(--glass);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--text-soft);
  padding: 8px 15px;
  border-radius: 999px;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
}
.chip:hover { color: var(--text); border-color: color-mix(in srgb, var(--brand) 50%, var(--border)); box-shadow: var(--glow-cyan); }
.chip.active {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  border-color: transparent;
  box-shadow: var(--glow-brand);
}
.search {
  position: relative;
  min-width: 230px;
  flex: 0 1 300px;
}
.search input {
  width: 100%;
  padding: 11px 14px 11px 40px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
  transition: border-color 0.2s;
}
.search input:focus { outline: none; border-color: var(--brand); box-shadow: var(--glow-cyan); }
.search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-dim); }

/* ---------------- Grid / cards ---------------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}
.card {
  position: relative;
  background: var(--glass);
  backdrop-filter: blur(12px) saturate(130%);
  -webkit-backdrop-filter: blur(12px) saturate(130%);
  border: 1px solid var(--glass-brd);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.card:hover {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--brand) 60%, var(--border));
  box-shadow: var(--shadow), 0 0 34px -10px color-mix(in srgb, var(--brand-2) 60%, transparent);
}
.card-media {
  aspect-ratio: 16 / 9;
  background: var(--surface-2);
  position: relative;
  overflow: hidden;
}
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.card:hover .card-media img { transform: scale(1.05); }
.card-media.placeholder {
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--brand) 22%, var(--surface-2)), color-mix(in srgb, var(--brand-2) 22%, var(--surface-2)));
}
.card-media.placeholder span {
  font-size: 2.6rem;
  font-weight: 800;
  color: color-mix(in srgb, var(--text) 40%, transparent);
  letter-spacing: -0.04em;
}
.card-featured {
  position: absolute;
  top: 12px; left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  font-size: 0.74rem;
  font-weight: 800;
  padding: 6px 13px 6px 11px;
  border-radius: 999px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  box-shadow: 0 6px 18px -6px color-mix(in srgb, var(--brand) 80%, transparent),
              0 0 0 2px color-mix(in srgb, var(--bg) 85%, transparent);
  z-index: 2;
}
.card-featured::before {
  content: "★";
  color: #ffd24a;
  font-size: 0.82rem;
  line-height: 1;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Carte mise en avant */
.card.is-featured {
  border-color: color-mix(in srgb, var(--brand) 55%, var(--border));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--brand) 35%, transparent),
              0 14px 40px -24px color-mix(in srgb, var(--brand) 90%, transparent);
}
.card.is-featured:hover {
  border-color: var(--brand);
}
.card-body { padding: 20px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.card-cat {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand);
  margin-bottom: 8px;
}
.card h3 { margin: 0 0 8px; font-size: 1.22rem; letter-spacing: -0.02em; }
.card p { margin: 0 0 16px; color: var(--text-soft); font-size: 0.93rem; flex: 1; }
.tags { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 16px; }
.tag {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-dim);
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 7px;
}
.card-links { display: flex; gap: 10px; margin-top: auto; }
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text);
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  transition: all 0.18s ease;
}
.card-link:hover { border-color: var(--brand); color: var(--brand); }
.card-link.primary { background: color-mix(in srgb, var(--brand) 16%, transparent); border-color: color-mix(in srgb, var(--brand) 40%, var(--border)); color: var(--brand); }

/* Admin controls on card */
.card-admin {
  display: flex;
  gap: 8px;
  padding: 0 20px 18px;
}

/* ---------------- Glisser-déposer (admin) ---------------- */
.card[draggable] { cursor: default; }
.card-drag {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-dim);
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--brand) 6%, var(--surface));
  cursor: grab;
  user-select: none;
}
.card-drag:active { cursor: grabbing; }
.card-drag .grip { font-size: 1rem; letter-spacing: -2px; color: var(--brand); }
.card.dragging {
  opacity: 0.55;
  border-color: var(--brand);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand) 40%, transparent);
}

/* ---------------- Empty / loading ---------------- */
.state {
  text-align: center;
  padding: 70px 20px;
  color: var(--text-dim);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.state h3 { color: var(--text); margin: 0 0 8px; }
.skeleton {
  background: linear-gradient(90deg, var(--surface) 25%, var(--surface-2) 37%, var(--surface) 63%);
  background-size: 400% 100%;
  animation: shimmer 1.4s ease infinite;
  border-radius: var(--radius);
  height: 360px;
}
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }

/* ---------------- Footer ---------------- */
.site-footer {
  margin-top: 90px;
  border-top: 1px solid var(--border);
  padding: 40px 0;
  color: var(--text-dim);
  font-size: 0.9rem;
}
.footer-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 18px; }
.footer-links a:hover { color: var(--text); }

/* ---------------- Modal ---------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: color-mix(in srgb, #000 55%, transparent);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  overflow-y: auto;
}
.modal-overlay.open { display: flex; }
.modal {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 560px;
  max-height: calc(100dvh - 48px);
  background: var(--surface);
  border: 1px solid var(--glass-brd);
  border-radius: var(--radius);
  box-shadow: var(--shadow), var(--glow-cyan);
  animation: pop 0.2s ease;
  overflow: hidden;
}
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(0.98); } }
.modal-head {
  flex: 0 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--border);
}
.modal-head h3 { margin: 0; font-size: 1.2rem; }
/* Le <form> enveloppe le corps + le pied : il doit remplir la hauteur restante */
.modal > form { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; overflow: hidden; }
.modal-body { flex: 1 1 auto; min-height: 0; padding: 22px; overflow-y: auto; }
.modal-foot {
  flex: 0 0 auto;
  padding: 16px 22px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  background: var(--surface);
}

/* ---------------- Forms ---------------- */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 7px; color: var(--text-soft); }
.field input, .field textarea, .field select {
  width: 100%;
  padding: 11px 13px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font: inherit;
  font-size: 0.92rem;
  transition: border-color 0.2s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent), var(--glow-cyan); }
.field textarea { resize: vertical; min-height: 84px; }
.field .hint { font-size: 0.78rem; color: var(--text-dim); margin-top: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.check { display: flex; align-items: center; gap: 10px; }
.check input { width: auto; }

/* Champ mot de passe avec bouton afficher/masquer */
.password-wrap { position: relative; }
.password-wrap input { padding-right: 46px; }
.password-toggle {
  position: absolute;
  top: 50%;
  right: 6px;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: none;
  background: transparent;
  border-radius: 9px;
  cursor: pointer;
  color: var(--text-soft);
  transition: color 0.15s, background 0.15s;
}
.password-toggle svg { display: block; }
.password-toggle:hover { color: var(--brand-2); background: color-mix(in srgb, var(--brand) 12%, transparent); }
.password-toggle[aria-pressed="true"] { color: var(--brand-2); }
.password-toggle:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; color: var(--text); }

/* Éditeur de parcours (lignes dynamiques) */
.fact-edit { display: grid; grid-template-columns: 56px 1fr 1fr auto; gap: 8px; margin-bottom: 8px; align-items: center; }
.fact-edit input { padding: 9px 11px; }
.fact-edit .fact-ico-in { text-align: center; }
.fact-edit .fact-del {
  border: 1px solid var(--border); background: transparent; color: var(--danger);
  width: 38px; height: 38px; border-radius: 10px; cursor: pointer; font-size: 1rem;
}
.fact-edit .fact-del:hover { background: color-mix(in srgb, var(--danger) 14%, transparent); }
@media (max-width: 560px) {
  .fact-edit { grid-template-columns: 48px 1fr auto; }
  .fact-edit .fact-value-in { grid-column: 2 / 3; }
}

/* Login card */
.auth-wrap { min-height: 72vh; display: grid; place-items: center; padding: 40px 0; }
.auth-card {
  position: relative;
  width: 100%;
  max-width: 400px;
  background: var(--glass);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid var(--glass-brd);
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: var(--shadow), var(--glow-cyan);
  overflow: hidden;
}
.auth-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--brand), var(--brand-2), var(--accent), transparent);
  opacity: 0.9;
}
.auth-card h2 { margin: 0 0 6px; }
.auth-card .sub { color: var(--text-dim); margin: 0 0 24px; font-size: 0.92rem; }

/* Toast */
.toast-stack { position: fixed; bottom: 24px; right: 24px; z-index: 200; display: flex; flex-direction: column; gap: 10px; }
.toast {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--brand);
  padding: 13px 18px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  font-size: 0.9rem;
  animation: slideIn 0.25s ease;
  max-width: 320px;
}
.toast.error { border-left-color: var(--danger); }
.toast.success { border-left-color: var(--accent); }
@keyframes slideIn { from { opacity: 0; transform: translateX(20px); } }

.banner {
  background: color-mix(in srgb, var(--brand) 12%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--brand) 35%, var(--border));
  color: var(--text-soft);
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  margin-bottom: 22px;
}

/* ---------------- À propos ---------------- */
.about { padding: 24px 0 10px; }
.about-grid {
  display: grid;
  grid-template-columns: 180px 1.4fr 1fr;
  gap: 32px;
  align-items: start;
}
.about-portrait {
  width: 180px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center 42%;
  border: 2px solid color-mix(in srgb, var(--brand-2) 65%, white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.about-text p { color: var(--text-soft); font-size: 1.02rem; margin: 0 0 16px; }
.about-text .badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.badge {
  font-size: 0.82rem;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-soft);
}
.about-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}
.about-card h3 { margin: 0 0 18px; font-size: 1.05rem; }
.fact { display: flex; align-items: flex-start; gap: 13px; padding: 12px 0; border-top: 1px solid var(--border); }
.fact:first-of-type { border-top: none; padding-top: 0; }
.fact .fact-ico { font-size: 1.2rem; line-height: 1.4; }
.fact .fact-label { font-size: 0.82rem; color: var(--text-dim); }
.fact .fact-value { font-weight: 600; }
.about-card .btn { width: 100%; justify-content: center; margin-top: 18px; }

/* ---------------- Fenêtre contact ---------------- */
.contact-head {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 26px 24px 22px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 14%, var(--surface)), color-mix(in srgb, var(--brand-2) 12%, var(--surface)));
  border-radius: var(--radius) var(--radius) 0 0;
}
.contact-avatar {
  width: 56px; height: 56px;
  object-fit: contain;
  display: block; flex: 0 0 auto;
  filter: drop-shadow(0 4px 14px color-mix(in srgb, var(--brand) 50%, transparent));
}
.contact-head .who h3 { margin: 0; font-size: 1.15rem; }
.contact-head .who span { color: var(--text-soft); font-size: 0.9rem; }
.contact-rows { display: flex; flex-direction: column; gap: 10px; }
.contact-row {
  display: flex; align-items: center; gap: 14px;
  padding: 13px 15px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  transition: border-color 0.18s ease, transform 0.18s ease;
}
.contact-row:hover { border-color: color-mix(in srgb, var(--brand) 45%, var(--border)); transform: translateY(-1px); }
.contact-row .c-ico { font-size: 1.15rem; width: 24px; text-align: center; }
.contact-row .c-main { flex: 1; min-width: 0; }
.contact-row .c-label { font-size: 0.76rem; color: var(--text-dim); }
.contact-row .c-value { font-weight: 600; font-size: 0.92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.contact-row .c-go {
  font-size: 0.8rem; font-weight: 700; color: var(--brand);
  border: 1px solid color-mix(in srgb, var(--brand) 40%, var(--border));
  padding: 6px 12px; border-radius: 999px; white-space: nowrap;
}
.social-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px; }
.social-link {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 14px 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  font-size: 0.8rem; font-weight: 600; color: var(--text-soft);
  transition: all 0.18s ease;
}
.social-link:hover { color: var(--text); border-color: var(--brand); transform: translateY(-2px); }
.social-link svg { width: 22px; height: 22px; }
.contact-divider { text-align: center; font-size: 0.74rem; letter-spacing: 0.1em; color: var(--text-dim); text-transform: uppercase; margin: 22px 0 4px; }

/* ---------------- Responsive ---------------- */
@media (max-width: 960px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-portrait { justify-self: center; }
}
@media (max-width: 640px) {
  .container { padding: 0 18px; }
  .hero { padding: 60px 0 40px; }
  .hero-stats { gap: 24px; }
  .grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .nav { height: 62px; }
  .nav .brand span.full { display: none; }
  .nav-actions { gap: 7px; }
  /* Masque les liens d'ancrage du portfolio (À propos, Projets) sur mobile */
  .nav-actions a.btn-ghost[href^="#"] { display: none; }
  /* Compacte les boutons de l'en-tête pour qu'ils tiennent à l'écran */
  .site-header .nav-actions .btn { padding: 8px 12px; font-size: 0.82rem; }
  .site-header .nav-actions .btn-icon { padding: 8px; }
}
@media (max-width: 380px) {
  .site-header .nav-actions .btn { padding: 7px 10px; font-size: 0.78rem; }
  .nav-actions { gap: 6px; }
}

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
