/* =========================================================================
   Portfolio Lucie Bélair — feuille de style partagée
   Palette : bleu profond #01467c (hero, encarts) · fond #fdfdfb
             accents bleu #4a86c6 / #3f7cc4 · bleu ciel #8ec7f4 · corail #d9814a / #e8a06a
   Polices : Sora (texte) · JetBrains Mono (libellés techniques) — via Bunny Fonts
   ========================================================================= */

:root {
  --navy:      #01467c;
  --bg:        #fdfdfb;
  --blue:      #4a86c6;
  --blue-2:    #3f7cc4;
  --sky:       #8ec7f4;
  --coral:     #d9814a;
  --coral-2:   #e8a06a;
  --mono-blue: #2b62a6;
  --ink:       #132b40;   /* titres */
  --text:      #1c3a54;   /* texte principal */
  --muted:     #3a5169;   /* texte secondaire */
  --muted-2:   #4d647a;
  --muted-3:   #556f85;
  --line:      rgba(30,70,110,.18);
  --line-soft: rgba(30,70,110,.12);
  --sans: 'Sora', system-ui, -apple-system, Segoe UI, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --wrap: 1280px;      /* accueil */
  --wrap-p: 1180px;    /* pages projet */
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  font-family: var(--sans);
  color: var(--text);
  overflow-x: hidden;
  padding-top: 71px; /* compense le header fixe */
}
a { color: var(--mono-blue); text-decoration: none; }
a:hover { color: var(--coral); }
img { max-width: 100%; }
h1, h2, h3, p { margin: 0; }
::selection { background: #cfe0f2; color: #173049; }

@keyframes drift  { 0%{transform:translate(0,0) scale(1)} 50%{transform:translate(6%,-4%) scale(1.15)} 100%{transform:translate(0,0) scale(1)} }
@keyframes drift2 { 0%{transform:translate(0,0) scale(1)} 50%{transform:translate(-5%,5%) scale(1.2)} 100%{transform:translate(0,0) scale(1)} }

/* ---------- Utilitaires ---------- */
.container { max-width: var(--wrap); margin: 0 auto; }
.container-p { max-width: var(--wrap-p); margin: 0 auto; }
.kicker {
  font-family: var(--mono);
  color: var(--coral);
  font-size: 12.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.divider {
  height: 2px;
  background: linear-gradient(90deg, var(--coral-2) 0%, var(--mono-blue) 100%);
  box-shadow: 0 0 16px rgba(232,160,106,.4);
}

/* =========================================================================
   HEADER
   ========================================================================= */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(253,253,251,.9);
  border-bottom: 1px solid var(--line-soft);
}
.header-inner {
  max-width: var(--wrap); margin: 0 auto; padding: 16px 32px;
  display: flex; justify-content: space-between; align-items: center;
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); }
.brand-badge {
  width: 38px; height: 38px; border-radius: 11px;
  background: linear-gradient(135deg, var(--blue), var(--coral-2));
  color: #fff; font-weight: 700; font-size: 15px;
  display: flex; align-items: center; justify-content: center;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-weight: 600; font-size: 15px; }
.brand-role { font-size: 11.5px; color: var(--muted-2); font-family: var(--mono); }
.nav { display: flex; align-items: center; gap: 26px; }
.nav-link {
  color: #374f66; font-size: 14.5px; display: inline-block;
  transition: color .18s ease, transform .18s ease;
}
.nav-link:hover { color: var(--navy); transform: translateY(-2px); }
.lang-btn {
  cursor: pointer; padding: 7px 13px; border-radius: 20px;
  background: rgba(30,70,110,.06); border: 1px solid rgba(30,70,110,.20);
  color: var(--text); font-size: 12.5px; font-family: var(--mono); letter-spacing: .05em;
  transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}
.lang-btn:hover { background: var(--navy); border-color: var(--navy); color: #fff; transform: translateY(-2px); }

/* ---------- Boutons ---------- */
.btn { border-radius: 12px; font-size: 15.5px; font-weight: 600; display: inline-block; cursor: pointer; }
.btn-primary {
  background: linear-gradient(135deg, var(--blue), var(--blue-2));
  color: #fff; padding: 15px 28px;
  box-shadow: 0 12px 30px rgba(91,155,213,.45);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(91,155,213,.6); filter: brightness(1.06); color: #fff; }
.btn-sm { padding: 9px 18px; font-size: 13.5px; border-radius: 10px; box-shadow: 0 8px 20px rgba(91,155,213,.4); }
.btn-sm:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(91,155,213,.55); filter: brightness(1.06); }
.btn-glass {
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.28);
  backdrop-filter: blur(8px); color: #eaf2fb; padding: 15px 28px;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.btn-glass:hover { transform: translateY(-3px); background: rgba(255,255,255,.22); border-color: rgba(255,255,255,.5); color: #eaf2fb; }
.btn-white {
  background: #fff; border: 1px solid rgba(30,70,110,.24); color: var(--text);
  padding: 15px 26px; font-weight: 600; font-size: 15px; border-radius: 12px; display: inline-block;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.btn-white:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(30,70,110,.16); border-color: var(--blue); color: var(--text); }

/* =========================================================================
   HERO (accueil)
   ========================================================================= */
.hero { position: relative; padding: 80px 32px 70px; overflow: hidden; background: var(--navy); }
.blob { position: absolute; border-radius: 50%; }
.hero .blob-1 { width: 680px; height: 680px; background: radial-gradient(circle, var(--blue) 0%, transparent 62%); top: -260px; right: -140px; filter: blur(24px); opacity: .5; animation: drift 14s ease-in-out infinite; }
.hero .blob-2 { width: 560px; height: 560px; background: radial-gradient(circle, var(--coral-2) 0%, transparent 62%); bottom: -280px; left: -120px; filter: blur(24px); opacity: .4; animation: drift2 17s ease-in-out infinite; }
.hero .blob-3 { width: 440px; height: 440px; background: radial-gradient(circle, var(--mono-blue) 0%, transparent 62%); top: 35%; left: 44%; filter: blur(34px); opacity: .24; animation: drift 20s ease-in-out infinite; }
.hero-inner { position: relative; max-width: var(--wrap); margin: 0 auto; }
.status-badge {
  display: inline-flex; align-items: center; gap: 9px; padding: 8px 16px; border-radius: 22px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.26);
  backdrop-filter: blur(8px); margin-bottom: 26px;
}
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 10px var(--blue); }
.status-badge span:last-child { color: #cbe8fb; font-size: 13.5px; font-weight: 500; }
.hero-title { font-size: 76px; line-height: 1.03; font-weight: 700; letter-spacing: -.025em; color: #f4f9fe; max-width: 900px; }
.grad {
  background: linear-gradient(100deg, var(--sky), var(--coral-2) 65%, #e0925a);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-sub { margin-top: 26px; max-width: 660px; font-size: 19px; line-height: 1.6; color: #c3d9f0; font-weight: 300; }
.hero-actions { display: flex; gap: 14px; margin-top: 36px; flex-wrap: wrap; }
.tag-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 38px; }
.tag { padding: 8px 15px; border-radius: 20px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.24); color: #d6e6f7; font-size: 13px; }

/* =========================================================================
   À PROPOS
   ========================================================================= */
.section { padding: 76px 32px; }
.about-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 60px; align-items: start; }
.about-meta { font-size: 15px; color: var(--muted-2); line-height: 1.7; }
.about-meta > div { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.about-meta > div:last-child { margin-bottom: 0; }
.about-meta .diamond { color: var(--mono-blue); }
.about-lead { margin-bottom: 22px; font-size: 24px; line-height: 1.5; color: #183149; font-weight: 400; }
.about-body { font-size: 17px; line-height: 1.7; color: var(--muted); font-weight: 300; }
.stats { display: flex; gap: 40px; margin-top: 34px; }
.stat-num { font-size: 38px; font-weight: 700; }
.stat-num.coral { color: var(--coral); }
.stat-num.blue { color: var(--mono-blue); }
.stat-label { font-size: 13.5px; color: var(--muted-2); }

/* =========================================================================
   PROJETS — index en liste
   ========================================================================= */
.projects { padding: 40px 32px 80px; background: var(--bg); }
.index-head {
  display: flex; justify-content: space-between;
  border-top: 1px solid rgba(30,70,110,.20); border-bottom: 1px solid var(--line);
  padding: 14px 0; font-family: var(--mono); font-size: 12px; letter-spacing: .16em;
  color: var(--muted-3); text-transform: uppercase; margin-bottom: 8px;
}
.proj-row {
  display: flex; align-items: center; gap: 26px; padding: 26px 8px;
  border-bottom: 1px solid rgba(30,70,110,.16); color: var(--text);
  cursor: pointer; border-radius: 12px;
  transition: transform .2s ease, background .2s ease;
}
.proj-row:hover { transform: translateX(8px); background: rgba(74,134,198,.08); color: var(--text); }
.proj-num { font-family: var(--mono); font-size: 16px; color: var(--coral); font-weight: 700; width: 26px; flex: 0 0 auto; }
.proj-thumb { width: 170px; height: 100px; object-fit: cover; border-radius: 10px; border: 1px solid rgba(30,70,110,.20); flex: 0 0 auto; }
.proj-info { flex: 1; min-width: 0; }
.proj-name { font-weight: 700; font-size: 31px; color: var(--ink); line-height: 1.05; }
.proj-desc { margin-top: 8px; color: #425c73; font-size: 15px; font-weight: 300; }
.proj-cat { font-family: var(--mono); font-size: 12px; color: var(--mono-blue); letter-spacing: .04em; flex: 0 0 auto; text-align: right; width: 150px; }
.proj-arrow { font-size: 24px; color: var(--coral); flex: 0 0 auto; }

/* =========================================================================
   COMPÉTENCES + PARCOURS — encarts bleu marine
   ========================================================================= */
.h2 { font-size: 40px; font-weight: 700; color: var(--ink); letter-spacing: -.02em; }
.skills-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.card-navy { border: 1px solid rgba(30,70,110,.20); border-radius: 16px; padding: 26px 28px; background: var(--navy); }
.card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.card-ico { font-size: 20px; }
.card-title { font-family: var(--mono); font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--sky); }
.chip-row { display: flex; flex-wrap: wrap; gap: 9px; }
.chip { padding: 8px 14px; border-radius: 9px; background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.18); color: #dbe8f6; font-size: 13.5px; }

.exp-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; }
.timeline { border-left: 2px solid #14405e; padding-left: 30px; display: flex; flex-direction: column; gap: 38px; }
.exp-item { position: relative; }
.exp-dot { position: absolute; left: -38px; top: 5px; width: 13px; height: 13px; border-radius: 50%; background: var(--coral-2); box-shadow: 0 0 0 4px var(--bg), 0 0 12px var(--coral-2); }
.exp-period { font-family: var(--mono); font-size: 12.5px; color: var(--coral); letter-spacing: .05em; margin-bottom: 6px; }
.exp-role { font-size: 22px; font-weight: 600; color: var(--ink); }
.exp-org { font-size: 13.5px; color: var(--muted-2); margin: 4px 0 14px; }
.exp-bullets { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 7px; }
.exp-bullets li { color: var(--muted); font-size: 14.5px; line-height: 1.5; font-weight: 300; }

.formations-title { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-3); margin-bottom: 20px; }
.formations-list { display: flex; flex-direction: column; gap: 14px; }
.formation-card { border: 1px solid rgba(30,70,110,.20); border-radius: 14px; padding: 20px 22px; background: var(--navy); }
.formation-period { font-family: var(--mono); font-size: 12px; color: var(--sky); margin-bottom: 8px; }
.formation-title { font-size: 17px; font-weight: 600; color: #f2f8fd; line-height: 1.3; }
.formation-school { font-size: 13px; color: #a9c4e0; margin-top: 6px; }
.english-card { border: 1px solid #e8a06a44; border-radius: 14px; padding: 18px 22px; background: var(--navy); display: flex; align-items: center; gap: 12px; }
.english-card .en-name { font-size: 15px; font-weight: 600; color: #f2f8fd; }
.english-card .en-note { font-size: 12.5px; color: #a9c4e0; }

/* =========================================================================
   CONTACT
   ========================================================================= */
.contact { padding: 84px 32px 90px; }
.contact-card { position: relative; border: 1px solid rgba(30,70,110,.20); border-radius: 24px; padding: 56px; overflow: hidden; background: var(--navy); }
.contact-card .blob-c { position: absolute; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, var(--coral-2) 0%, transparent 62%); top: -180px; right: -120px; filter: blur(24px); opacity: .35; }
.contact-title { font-size: 46px; font-weight: 700; color: #f2f8fd; letter-spacing: -.02em; }
.contact-body { margin: 16px 0 34px; font-size: 18px; color: #c3d6ea; font-weight: 300; max-width: 620px; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 14px; position: relative; }
.contact-meta { margin-top: 30px; font-family: var(--mono); font-size: 13px; color: #9db8d2; display: flex; gap: 22px; flex-wrap: wrap; }

/* =========================================================================
   FOOTER
   ========================================================================= */
.footer { border-top: 1px solid rgba(255,255,255,.12); padding: 36px 32px; background: var(--navy); }
.footer-inner { max-width: var(--wrap); margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-badge { width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, var(--blue), var(--coral-2)); color: #fff; font-weight: 700; font-size: 14px; display: flex; align-items: center; justify-content: center; }
.footer-name { font-weight: 600; font-size: 14px; color: #eaf2fb; }
.footer-sub { font-size: 12px; color: #9db8d2; font-family: var(--mono); }
.social-row { display: flex; gap: 12px; align-items: center; }
.social-btn {
  width: 42px; height: 42px; border-radius: 11px;
  background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.20);
  display: flex; align-items: center; justify-content: center; color: #cfe4f8;
  transition: transform .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
}
.social-btn:hover { transform: translateY(-3px); }
.social-btn.mail:hover   { background: rgba(232,160,106,.9); border-color: rgba(232,160,106,.9); color: var(--navy); }
.social-btn.li:hover     { background: #fff; border-color: #fff; color: #0a66c2; }
.social-btn.gh:hover     { background: #fff; border-color: #fff; color: var(--navy); }

/* =========================================================================
   BOUTON RETOUR EN HAUT (injecté par ui.js)
   ========================================================================= */
.back-top {
  position: fixed; bottom: 28px; right: 28px; z-index: 60;
  width: 52px; height: 52px; border-radius: 14px; border: none; cursor: pointer;
  background: linear-gradient(135deg, var(--blue), var(--blue-2)); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 30px rgba(1,70,124,.4);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease, opacity .2s ease, visibility .2s ease;
}
.back-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-top:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(1,70,124,.55); filter: brightness(1.08); }

/* =========================================================================
   LIGHTBOX (agrandissement des captures — injecté par ui.js)
   ========================================================================= */
.zoomable { cursor: zoom-in; }
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center; padding: 40px;
  background: rgba(4,16,27,.86); backdrop-filter: blur(6px); cursor: zoom-out;
  opacity: 0; visibility: hidden; transition: opacity .22s ease, visibility .22s ease;
}
.lightbox.show { opacity: 1; visibility: visible; }
.lightbox img { max-width: 95%; max-height: 92%; border-radius: 12px; box-shadow: 0 30px 80px rgba(0,0,0,.6); cursor: default; }
.lightbox-close {
  position: absolute; top: 22px; right: 26px; width: 44px; height: 44px;
  border: 1px solid rgba(255,255,255,.28); border-radius: 12px; cursor: pointer;
  background: rgba(255,255,255,.12); color: #eaf2fb;
  display: flex; align-items: center; justify-content: center;
  transition: background .18s ease, transform .18s ease;
}
.lightbox-close:hover { background: rgba(255,255,255,.24); transform: translateY(-2px); }

/* =========================================================================
   PAGE PROJET — hero + fiche récap
   ========================================================================= */
.proj-hero { position: relative; padding: 44px 32px 40px; overflow: hidden; background: var(--navy); }
.proj-hero .blob-1 { width: 620px; height: 620px; background: radial-gradient(circle, var(--blue) 0%, transparent 62%); top: -280px; right: -160px; filter: blur(26px); opacity: .42; }
.proj-hero .blob-2 { width: 460px; height: 460px; background: radial-gradient(circle, var(--coral-2) 0%, transparent 62%); top: -160px; left: -140px; filter: blur(28px); opacity: .24; }
.proj-hero-inner { position: relative; max-width: var(--wrap-p); margin: 0 auto; }
.back-link { font-family: var(--mono); font-size: 13.5px; color: #a9c8e6; }
.back-link:hover { color: #cfe4f8; }
.proj-hero-grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: 44px; align-items: end; margin-top: 26px; }
.proj-hero-cat { font-family: var(--mono); color: var(--sky); font-size: 12.5px; letter-spacing: .08em; margin-bottom: 14px; }
.proj-hero-title { font-size: 66px; font-weight: 700; color: #f4f9fe; letter-spacing: -.03em; line-height: .98; }
.proj-hero-sub { margin-top: 18px; font-size: 19px; color: #c3d9f0; font-weight: 300; line-height: 1.5; max-width: 520px; }
.fiche { border: 1px solid rgba(30,70,110,.16); border-radius: 18px; padding: 24px 26px; background: #fff; }
.fiche-row { display: flex; justify-content: space-between; align-items: center; }
.fiche-row.bordered { padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.fiche-row.bordered.mid { padding: 14px 0; }
.fiche-label { font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-3); }
.fiche-badge { color: #c9743d; font-size: 13.5px; font-weight: 500; }
.fiche-year { color: var(--text); font-size: 13.5px; font-family: var(--mono); }
.fiche-stack-label { font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-3); margin: 16px 0 12px; }
.fiche-stack { display: flex; flex-wrap: wrap; gap: 7px; }
.stack-chip { padding: 6px 11px; border-radius: 8px; background: #e6eef8; border: 1px solid rgba(30,70,110,.22); color: #33485c; font-size: 12px; }

/* ---------- Sections numérotées ---------- */
.sec { max-width: var(--wrap-p); margin: 0 auto; padding: 44px 32px 8px; }
.sec.first { padding-top: 48px; }
.sec.last { padding-bottom: 40px; }
.sec-head { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.sec-head.wide { margin-bottom: 28px; }
.sec-num { font-family: var(--mono); font-size: 13px; color: var(--coral); font-weight: 700; }
.sec-title { font-size: 22px; font-weight: 600; color: var(--ink); letter-spacing: -.01em; }
.sec-rule { flex: 1; height: 1px; background: linear-gradient(90deg, rgba(30,70,110,.20), transparent); }

/* ---------- Contexte + illustration ---------- */
.ctx-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 40px; align-items: center; }
.ctx-text { border-left: 2px solid #e8a06a55; padding-left: 24px; }
.ctx-text p { font-size: 18px; line-height: 1.7; color: #33485c; font-weight: 300; }
.ctx-text p + p { margin-top: 18px; }

/* ---------- Fenêtre capture ---------- */
.shot-window { margin: 0; border: 1px solid rgba(30,70,110,.22); border-radius: 16px; overflow: hidden; background: #e8eff8; box-shadow: 0 30px 70px rgba(0,0,0,.4); }
.win-bar { display: flex; align-items: center; gap: 7px; padding: 11px 15px; background: #dbe6f4; border-bottom: 1px solid var(--line); }
.win-dot { width: 10px; height: 10px; border-radius: 50%; }
.win-dot.r { background: #ff5f56; } .win-dot.y { background: #ffbd2e; } .win-dot.g { background: #27c93f; }
.win-title { margin-left: 11px; font-family: var(--mono); font-size: 11.5px; color: var(--muted-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shot-window img { width: 100%; display: block; }

/* ---------- Autres captures ---------- */
.shots-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.figure { margin: 0; border: 1px solid rgba(30,70,110,.20); border-radius: 14px; overflow: hidden; background: var(--navy); }
.figure img { width: 100%; display: block; object-fit: cover; }
.figcaption { padding: 12px 15px; font-size: 12.5px; color: #b6cde4; border-top: 1px solid rgba(255,255,255,.12); }

/* ---------- Architecture ---------- */
.arch-img { border: 1px solid rgba(30,70,110,.20); border-radius: 14px; overflow: hidden; background: #f4f7fa; padding: 14px; }
.arch-img img { width: 100%; display: block; border-radius: 8px; }
.arch-window { border: 1px solid #123049; border-radius: 14px; overflow: hidden; background: #04101b; box-shadow: 0 20px 50px rgba(0,0,0,.35); }
.arch-bar { display: flex; align-items: center; gap: 7px; padding: 11px 15px; background: #0a1e2e; border-bottom: 1px solid #123049; }
.arch-dot { width: 9px; height: 9px; border-radius: 50%; }
.arch-dot.r { background: #ff5f56; } .arch-dot.y { background: #ffbd2e; } .arch-dot.g { background: #27c93f; }
.arch-name { margin-left: 10px; font-family: var(--mono); font-size: 11.5px; color: #5f7c92; }
.arch-pre { margin: 0; padding: 26px; overflow-x: auto; font-family: var(--mono); font-size: 13px; line-height: 1.5; color: #7fd0f5; }
.arch-note { margin-top: 14px; font-size: 13px; color: #5c7488; font-style: italic; }

/* ---------- Technologies ---------- */
.tech-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.tech-card { border: 1px solid rgba(30,70,110,.20); border-radius: 14px; padding: 22px 24px; background: var(--navy); }
.tech-title { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--sky); margin-bottom: 14px; }

/* ---------- Compétences acquises ---------- */
.gained-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.gained-card { border: 1px solid rgba(30,70,110,.20); border-radius: 14px; padding: 24px 22px; background: var(--navy); }
.gained-ico { width: 44px; height: 44px; border-radius: 11px; background: linear-gradient(135deg, rgba(91,155,213,.28), rgba(232,160,106,.24)); display: flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 16px; }
.gained-title { font-size: 16px; font-weight: 600; color: #f2f8fd; margin-bottom: 8px; }
.gained-desc { font-size: 13.5px; color: #b6cde4; line-height: 1.55; font-weight: 300; }

/* ---------- Navigation projet précédent / suivant ---------- */
.proj-nav-wrap { max-width: var(--wrap-p); margin: 0 auto; padding: 0 32px 72px; }
.proj-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; border-top: 1px solid var(--line); padding-top: 28px; }
.nav-card { display: flex; align-items: center; gap: 16px; border: 1px solid rgba(30,70,110,.16); border-radius: 14px; padding: 16px 18px; background: #fff; color: var(--text); box-shadow: 0 6px 18px rgba(1,70,124,.08); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.nav-card:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(1,70,124,.18); border-color: var(--blue); color: var(--text); }
.nav-card.next { text-align: right; flex-direction: row-reverse; }
.nav-card-arrow { font-size: 22px; color: var(--blue); flex: 0 0 auto; }
.nav-card-thumb { width: 74px; height: 48px; object-fit: cover; border-radius: 8px; flex: 0 0 auto; }
.nav-card-label { font-family: var(--mono); font-size: 11px; color: #6b8397; text-transform: uppercase; letter-spacing: .08em; }
.nav-card-title { font-size: 17px; font-weight: 600; color: var(--ink); margin-top: 3px; }

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 900px) {
  .hero-title { font-size: 52px; }
  .proj-hero-title { font-size: 46px; }
  .about-grid, .exp-grid, .skills-grid, .tech-grid, .proj-hero-grid, .ctx-grid, .proj-nav { grid-template-columns: 1fr; gap: 32px; }
  .gained-grid { grid-template-columns: 1fr 1fr; }
  .nav { gap: 14px; flex-wrap: wrap; justify-content: flex-end; }
  .brand-role { display: none; }
  .proj-row { flex-wrap: wrap; gap: 14px; }
  .proj-cat { text-align: left; width: auto; }
  .proj-thumb { width: 120px; height: 74px; }
  .proj-name { font-size: 24px; }
}
@media (max-width: 560px) {
  .section, .projects, .contact { padding-left: 20px; padding-right: 20px; }
  .header-inner { padding: 14px 20px; }
  .hero { padding: 56px 20px 50px; }
  .hero-title { font-size: 40px; }
  .contact-card { padding: 32px 24px; }
  .gained-grid { grid-template-columns: 1fr; }
  .stats { gap: 24px; flex-wrap: wrap; }
}
