/* =========================================================
   Portfolio — Affoué Flora Kouadio
   Style : blanc + rouge framboise, photo détourée, chiffres clés
   ========================================================= */

/* Polices hébergées localement (licence SIL OFL) */
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --red: #C70039;
  --red-dark: #7A0023;
  --red-hover: #A8002F;
  --red-soft: #FCF0F4;
  --red-tint: #F9E1E9;
  --ink: #1B1B1F;
  --ink-soft: #55565C;
  --line: #ECE6E8;
  --white: #fff;

  --display: "Poppins", "Inter", system-ui, sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --container: 1160px;
  --gutter: clamp(20px, 5vw, 60px);
  --radius: 22px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --shadow: 0 20px 50px -24px rgba(122, 0, 35, .28);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; }
p { margin: 0 0 1em; }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.hidden { position: absolute; left: -9999px; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  position: relative;
  z-index: 2;
}

/* ---------- Boutons (pilules) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 2em;
  border-radius: 999px;
  border: 2px solid var(--red);
  font: inherit;
  font-size: 17px;
  letter-spacing: .04em;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background .25s var(--ease), color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn--solid { background: var(--red); color: #fff; font-weight: 500; }
.btn--solid:hover { background: var(--red-hover); border-color: var(--red-hover); box-shadow: 0 12px 26px -12px rgba(199, 0, 57, .7); }
.btn--outline { background: transparent; color: var(--red); font-weight: 700; }
.btn--outline:hover { background: var(--red); color: #fff; }

/* ---------- Titres de section ---------- */
.kicker {
  font-weight: 600;
  color: var(--red);
  font-size: 17px;
  margin: 0 0 8px;
}
.kicker--light { color: #fff; opacity: .9; }
.h2 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(30px, 4vw, 46px);
  letter-spacing: -.01em;
  color: var(--ink);
}
.h2 span { color: var(--red); }
.h2--light { color: #fff; margin-bottom: 20px; }

.heading { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.heading__sub { color: var(--ink-soft); margin: 14px 0 0; }

.section { position: relative; padding: clamp(80px, 10vw, 120px) 0; }
.section--tint { background: var(--red-soft); }

/* =========================================================
   Navigation
   ========================================================= */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: 96px;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
  background: rgba(255, 255, 255, .0);
  transition: background .3s var(--ease), height .3s var(--ease), box-shadow .3s;
}
.nav.is-scrolled {
  height: 74px;
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line);
}
.nav__logo {
  font-family: var(--display);
  font-weight: 800;
  font-size: 26px;
  text-decoration: none;
  color: var(--ink);
  margin-right: auto;
}
.nav__logo span { color: var(--red); }
.nav__logo--light { color: #fff; }
.nav__logo--light span { color: #fff; opacity: .6; }

.nav__menu { display: flex; align-items: center; gap: clamp(22px, 3.4vw, 56px); margin-right: clamp(20px, 4vw, 70px); }
.nav__menu a:not(.btn) {
  text-decoration: none;
  font-size: 19px;
  color: var(--ink);
  transition: color .2s;
}
.nav__menu a:not(.btn):hover { color: var(--red); }
.nav__menu a.is-active:not(.btn) { color: var(--red-dark); font-weight: 700; }
.nav__mobile-cta { display: none; }
.nav__cta { min-height: 48px; padding: 0 1.9em; }

.nav__toggle {
  display: none;
  width: 44px; height: 44px;
  background: none; border: 0;
  cursor: pointer;
  position: relative;
  z-index: 2;
}
.nav__toggle span {
  position: absolute;
  left: 10px; right: 10px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .3s var(--ease), top .3s var(--ease);
}
.nav__toggle span:first-child { top: 17px; }
.nav__toggle span:last-child { top: 26px; }
.nav.is-open .nav__toggle span:first-child { top: 21px; transform: rotate(45deg); }
.nav.is-open .nav__toggle span:last-child { top: 21px; transform: rotate(-45deg); }

/* =========================================================
   Accueil
   ========================================================= */
.hero { position: relative; padding-top: 96px; background: var(--white); }
.hero__grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 40px;
  align-items: end;
  min-height: min(620px, calc(100vh - 220px));
}
.hero__text { padding: 50px 0 100px; }
.hero__hi { font-weight: 600; color: var(--red); font-size: clamp(20px, 2vw, 25px); margin-bottom: 10px; }
.hero__name {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(44px, 6.2vw, 76px);
  letter-spacing: -.025em;
  line-height: 1.02;
  color: var(--ink);
  margin-bottom: 14px;
}
.hero__role { font-weight: 600; font-size: clamp(18px, 1.8vw, 22px); margin-bottom: 22px; }
.hero__desc { max-width: 56ch; color: var(--ink); font-size: 18px; margin-bottom: 32px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 20px; }

.hero__photo {
  position: relative;
  align-self: end;
  justify-self: center;
  width: 100%;
  max-width: 400px;
}
.hero__photo img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: auto;
  filter: drop-shadow(-36px 10px 18px rgba(0, 0, 0, .14));
}
.placeholder { display: none; }
.hero__photo.no-photo .placeholder {
  display: grid;
  place-items: center;
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 200px 200px 0 0;
  background: linear-gradient(170deg, #E04A74, var(--red) 55%, var(--red-dark));
  box-shadow: -34px 14px 0 0 #EEEEEE;
}
.placeholder span {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(90px, 11vw, 140px);
  color: rgba(255, 255, 255, .95);
  letter-spacing: -.02em;
}

/* Carte des chiffres clés (chevauche le bandeau) */
.stats-wrap {
  position: relative;
  z-index: 5;
  margin-bottom: -66px;
  padding: 0 var(--gutter);
}
.stats {
  max-width: 960px;
  margin: 0 auto;
  background: var(--white);
  border-radius: 0 0 70px 70px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 12px 26px 26px;
  box-shadow: 0 30px 50px -40px rgba(122, 0, 35, .5);
}
.stat {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 22px;
  justify-content: center;
}
.stat + .stat { border-left: 2px solid var(--red); }
.stat strong { display: block; font-size: 21px; font-weight: 700; line-height: 1.25; }
.stat span:not(.stat__ico) { display: block; color: var(--red); font-size: 20px; line-height: 1.3; }

.stat__ico {
  flex: none;
  width: 78px; height: 78px;
  border-radius: 50%;
  background: var(--red);
  display: grid; place-items: center;
}
.stat__ico svg { width: 40px; fill: none; stroke: #fff; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }

/* =========================================================
   Bandeau rouge (profil)
   ========================================================= */
.band {
  position: relative;
  color: #fff;
  padding: 150px 0 100px;
  background:
    linear-gradient(115deg, rgba(199, 0, 57, .92) 0%, rgba(214, 64, 108, .86) 55%, rgba(160, 50, 110, .9) 100%),
    repeating-linear-gradient(90deg, transparent 0 46px, rgba(255, 255, 255, .22) 46px 48px),
    repeating-linear-gradient(0deg, transparent 0 30px, rgba(255, 255, 255, .18) 30px 32px),
    linear-gradient(160deg, #6d0a2c, #c0335d 50%, #e48aa5);
  overflow: hidden;
}
.band::before {
  /* reflets façon façade vitrée */
  content: "";
  position: absolute;
  inset: -20%;
  background:
    linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .14) 38%, transparent 46%),
    linear-gradient(100deg, transparent 62%, rgba(255, 255, 255, .1) 68%, transparent 74%);
  pointer-events: none;
}
.band__grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(36px, 6vw, 80px);
  align-items: center;
}
.band p { color: rgba(255, 255, 255, .92); font-size: 18px; max-width: 58ch; }
.band__cards { display: grid; gap: 18px; }
.mini {
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: var(--radius);
  padding: 22px 24px;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.mini h3 { font-family: var(--display); font-weight: 700; font-size: 19px; margin-bottom: 14px; }
.langs { display: grid; gap: 14px; }
.langs li { display: grid; grid-template-columns: 1fr auto; row-gap: 6px; }
.langs span { font-weight: 600; }
.langs em { font-style: normal; font-size: 15px; opacity: .85; }
.bar { grid-column: 1 / -1; height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .25); overflow: hidden; }
.bar i {
  display: block; height: 100%;
  width: var(--w);
  border-radius: 6px;
  background: #fff;
  transform-origin: left;
  transition: transform 1.2s var(--ease) .2s;
}
.js .mini:not(.is-visible) .bar i { transform: scaleX(0); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { background: #fff; color: var(--red); font-weight: 600; font-size: 15px; padding: .4em 1em; border-radius: 999px; }

/* =========================================================
   Compétences (cartes « services »)
   ========================================================= */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.service {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 24px;
  transition: background .3s var(--ease), color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease);
}
.service__ico {
  width: 66px; height: 66px;
  border-radius: 50%;
  background: var(--red);
  display: grid; place-items: center;
  margin-bottom: 22px;
  transition: background .3s;
}
.service__ico svg { width: 32px; fill: none; stroke: #fff; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: stroke .3s; }
.service h3 { font-family: var(--display); font-weight: 700; font-size: 20px; margin-bottom: 10px; }
.service p { color: var(--ink-soft); font-size: 15px; transition: color .3s; }
.service ul { display: grid; gap: 6px; margin-top: 14px; }
.service li { font-size: 15px; font-weight: 500; padding-left: 18px; position: relative; }
.service li::before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--red);
  transition: background .3s;
}
.service:hover { background: var(--red); color: #fff; transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--red); }
.service:hover p { color: rgba(255, 255, 255, .85); }
.service:hover .service__ico { background: #fff; }
.service:hover .service__ico svg { stroke: var(--red); }
.service:hover li::before { background: #fff; }

/* =========================================================
   Parcours
   ========================================================= */
.parcours { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.col {
  background: var(--white);
  border-radius: var(--radius);
  padding: clamp(24px, 3vw, 38px);
  box-shadow: var(--shadow);
}
.col__title {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--display); font-weight: 700; font-size: 24px;
  margin-bottom: 26px;
}
.col__title--sm { font-size: 20px; margin: 32px 0 16px; }
.dot-ico {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--red);
  display: grid; place-items: center;
}
.dot-ico svg { width: 24px; fill: none; stroke: #fff; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.item { position: relative; padding: 0 0 26px 26px; border-left: 2px solid var(--red-tint); margin-left: 23px; }
.item:last-of-type { padding-bottom: 4px; }
.item::before {
  content: ""; position: absolute; left: -8px; top: 4px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 4px var(--white), 0 0 0 6px var(--red-tint);
}
.item__date { color: var(--red); font-weight: 600; font-size: 14px; margin: 0 0 4px; }
.item h4 { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.item__place { color: var(--ink-soft); font-size: 15px; margin-bottom: 10px; }
.item ul { display: grid; gap: 6px; }
.item li { position: relative; padding-left: 16px; font-size: 15px; }
.item li::before { content: ""; position: absolute; left: 0; top: .7em; width: 7px; height: 2px; background: var(--red); }

.certs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cert {
  border: 2px solid var(--red);
  border-radius: 16px;
  padding: 14px 16px;
  display: flex; flex-direction: column;
}
.cert strong { font-size: 16px; }
.cert span { color: var(--red); font-weight: 600; font-size: 15px; }

/* =========================================================
   Portfolio
   ========================================================= */
.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.project {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  display: flex; flex-direction: column;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.project:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.project__img {
  position: relative;
  aspect-ratio: 16 / 10;
  display: grid; place-items: center;
  background:
    repeating-linear-gradient(90deg, transparent 0 38px, rgba(255, 255, 255, .08) 38px 40px),
    linear-gradient(135deg, var(--red), #D9476F 60%, #A3245E);
}
.project__tag {
  position: absolute; left: 16px; top: 16px;
  background: #fff; color: var(--red);
  font-size: 13px; font-weight: 700;
  padding: .3em .9em; border-radius: 999px;
}
.project__body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.project h3 { font-family: var(--display); font-weight: 700; font-size: 19px; margin-bottom: 10px; }
.project p { color: var(--ink-soft); font-size: 15px; flex: 1; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { background: var(--red-soft); color: var(--red); font-weight: 600; font-size: 13px; padding: .35em .9em; border-radius: 999px; }

.illus { width: 78%; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.illus text { fill: #fff; stroke: none; font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-anchor: middle; }
.illus .fill { fill: rgba(255, 255, 255, .35); }
.illus .link { stroke-dasharray: 4 4; animation: dash 1.4s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -16; } }

/* =========================================================
   Contact
   ========================================================= */
.contact { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(30px, 5vw, 60px); align-items: start; }
.contact__list { display: grid; gap: 16px; }
.contact__list li {
  display: flex; align-items: center; gap: 18px;
  background: var(--white);
  border-radius: 999px 40px 40px 999px;
  padding: 10px 22px 10px 10px;
}
.contact__list .stat__ico { width: 60px; height: 60px; }
.contact__list .stat__ico svg { width: 28px; stroke-width: 1.6; }
.contact__list strong { display: block; font-size: 15px; }
.contact__list a, .contact__list span:not(.stat__ico) { color: var(--red); text-decoration: none; font-size: 17px; word-break: break-word; }
.contact__list a:hover { text-decoration: underline; }

.form {
  display: grid; gap: 18px;
  background: var(--white);
  border-radius: var(--radius);
  padding: clamp(24px, 3vw, 36px);
  box-shadow: var(--shadow);
}
.form__two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form label { display: grid; gap: 6px; font-size: 15px; font-weight: 600; }
.form label em { font-weight: 400; font-style: normal; color: var(--ink-soft); }
.form input, .form textarea {
  width: 100%;
  font: inherit; font-weight: 400; font-size: 16px;
  color: var(--ink);
  background: var(--red-soft);
  border: 2px solid transparent;
  border-radius: 14px;
  padding: 12px 16px;
  resize: vertical;
  transition: border-color .2s, background .2s;
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--red); background: #fff; }
.form .btn { justify-self: start; }

/* ---------- Footer ---------- */
.footer { background: var(--red); color: #fff; padding: 28px 0; }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.footer p { margin: 0; font-size: 15px; opacity: .9; }
.footer__top { text-decoration: none; font-weight: 600; }
.footer__top:hover { text-decoration: underline; }

/* ---------- Pages simples (merci / 404) ---------- */
.simple {
  min-height: 100vh; min-height: 100svh;
  display: grid; place-items: center;
  text-align: center;
  padding: 40px var(--gutter);
}
.simple .txt { color: var(--ink-soft); max-width: 44ch; margin: 18px auto 30px; }

/* =========================================================
   Apparition au défilement
   ========================================================= */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1080px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .stat { flex-direction: column; text-align: center; gap: 10px; }
  .stat__ico { width: 64px; height: 64px; }
  .stat__ico svg { width: 32px; }
  .stat strong { font-size: 18px; }
  .stat span:not(.stat__ico) { font-size: 16px; }
}

@media (max-width: 900px) {
  .nav { height: 72px; }
  .nav__cta { display: none; }
  .nav__toggle { display: block; }
  .nav__menu {
    position: fixed; inset: 0;
    flex-direction: column; justify-content: center;
    gap: 26px; margin: 0;
    background: #fff;
    opacity: 0; visibility: hidden;
    transition: opacity .3s var(--ease), visibility .3s;
  }
  .nav__menu a:not(.btn) { font-size: 24px; }
  .nav__mobile-cta { display: inline-flex; margin-top: 10px; }
  .nav.is-open .nav__menu { opacity: 1; visibility: visible; }

  .hero { padding-top: 72px; }
  .hero__grid { grid-template-columns: 1fr; min-height: 0; gap: 0; }
  .hero__text { padding: 40px 0 36px; }
  .hero__photo { max-width: 300px; }

  .band { padding-top: 130px; }
  .band__grid, .parcours, .contact { grid-template-columns: 1fr; }
  .projects { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero__desc { font-size: 16px; }
  .hero__actions .btn { flex: 1 1 100%; }

  .stats-wrap { margin-bottom: -40px; }
  .stats { grid-template-columns: 1fr; border-radius: 0 0 40px 40px; padding: 4px 20px 18px; }
  .stat { flex-direction: row; text-align: left; justify-content: flex-start; padding: 14px 6px; }
  .stat + .stat { border-left: 0; border-top: 2px solid var(--red); }
  .band { padding-top: 100px; }

  .services, .projects, .form__two, .certs { grid-template-columns: 1fr; }
  .contact__list li { border-radius: 999px 28px 28px 999px; }
  .heading { margin-bottom: 40px; }
}

/* =========================================================
   Ajouts : À propos, Formation, Expérience, Projets avec image
   ========================================================= */
.nav__logo { font-size: 23px; white-space: nowrap; }
.nav__menu { gap: clamp(16px, 2vw, 30px); margin-right: clamp(16px, 2vw, 30px); }
.nav__menu a:not(.btn) { font-size: 16px; white-space: nowrap; }
.nav__cta { padding: 0 1.5em; font-size: 16px; }

.facts { display: grid; gap: 10px; }
.facts li { display: grid; grid-template-columns: 110px 1fr; gap: 10px; font-weight: 500; }
.facts span { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; opacity: .8; padding-top: 2px; }

.cards2 { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.tcard {
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid var(--line);
  border-top: 5px solid var(--red);
  box-shadow: var(--shadow);
  transition: transform .3s var(--ease);
}
.tcard:hover { transform: translateY(-5px); }
.tcard .dot-ico { width: 58px; height: 58px; margin-bottom: 18px; }
.tcard .dot-ico svg { width: 28px; }
.tcard h3 { font-family: var(--display); font-weight: 700; font-size: 20px; margin-bottom: 6px; }
.tcard ul { display: grid; gap: 7px; margin-top: 4px; }
.tcard li { position: relative; padding-left: 18px; font-size: 15px; }
.tcard li::before { content: ""; position: absolute; left: 0; top: .7em; width: 8px; height: 2px; background: var(--red); }

.subhead { font-family: var(--display); font-weight: 700; font-size: 22px; text-align: center; margin: 56px 0 20px; }
.certs { max-width: 560px; margin: 0 auto; }
.cert { background: var(--white); }

.project__img img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 1;
}
.project__tag { z-index: 2; }
.project__link {
  display: inline-block;
  margin-top: 16px;
  color: var(--red);
  font-weight: 700;
  text-decoration: none;
}
.project__link:hover { text-decoration: underline; }

#contact .contact__list li { background: var(--red-soft); }

@media (max-width: 1180px) {
  .nav { height: 72px; }
  .nav__cta { display: none; }
  .nav__toggle { display: block; }
  .nav__menu {
    position: fixed; inset: 0;
    flex-direction: column; justify-content: center;
    gap: 22px; margin: 0;
    background: #fff;
    opacity: 0; visibility: hidden;
    transition: opacity .3s var(--ease), visibility .3s;
  }
  .nav__menu a:not(.btn) { font-size: 22px; }
  .nav__mobile-cta { display: inline-flex; margin-top: 10px; }
  .nav.is-open .nav__menu { opacity: 1; visibility: visible; }
  .hero { padding-top: 72px; }
}
@media (max-width: 760px) {
  .cards2 { grid-template-columns: 1fr; }
  .facts li { grid-template-columns: 1fr; gap: 0; }
}

/* =========================================================
   Site multi-pages : une page par onglet
   ========================================================= */
.page main { padding-top: 96px; min-height: calc(100vh - 90px); display: flex; flex-direction: column; }
.page main > section { flex: 1; }
.page .nav { background: rgba(255, 255, 255, .96); box-shadow: 0 1px 0 var(--line); }
.page__section { padding-top: clamp(60px, 7vw, 90px); }

.band--page { display: flex; align-items: center; padding: clamp(70px, 9vw, 110px) 0; }
.band--home { padding: 130px 0 80px; }
.band__home { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 30px; }
.band__home .h2--light { margin-bottom: 10px; }
.band__home p { margin: 0; }
.band__links { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.band__home .band__links { margin-top: 0; }
.btn--white { background: #fff; color: var(--red); border-color: #fff; font-weight: 700; }
.btn--white:hover { background: var(--red-soft); border-color: var(--red-soft); }
.btn--ghost { background: transparent; color: #fff; border-color: #fff; font-weight: 700; }
.btn--ghost:hover { background: rgba(255, 255, 255, .15); }

@media (max-width: 1180px) {
  .page main { padding-top: 72px; }
}
@media (max-width: 640px) {
  .band--home { padding: 90px 0 60px; }
  .band__links .btn { flex: 1 1 100%; }
}

/* =========================================================
   Photo, chiffres cliquables, formation ERIS, pied de page
   ========================================================= */
.hero__photo { max-width: 440px; }
.hero__photo img { filter: drop-shadow(-30px 8px 22px rgba(0, 0, 0, .12)); }

.stat--link { text-decoration: none; color: inherit; border-radius: 16px; transition: background .25s; }
.stat--link:hover { background: var(--red-soft); }
.stat--link:hover strong { color: var(--red); }

.eris { display: grid; grid-template-columns: 1.15fr .85fr; gap: 26px; align-items: stretch; }
.eris__goal, .eris__blocks {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 3vw, 36px);
  box-shadow: var(--shadow);
}
.eris__goal { border-top: 5px solid var(--red); }
.eris__goal .dot-ico { width: 58px; height: 58px; margin-bottom: 18px; }
.eris__goal .dot-ico svg { width: 28px; }
.eris h3 { font-family: var(--display); font-weight: 700; font-size: 21px; margin-bottom: 14px; }
.eris__goal p { color: var(--ink-soft); }
.eris__goal strong { color: var(--ink); }
.eris__meta { font-size: 14px; color: var(--red) !important; font-weight: 600; margin: 0; }
.eris__blocks { background: var(--red); color: #fff; border-color: var(--red); }
.eris__blocks ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.eris__blocks li { display: flex; gap: 14px; align-items: flex-start; font-weight: 500; line-height: 1.4; }
.eris__blocks li span {
  flex: none;
  width: 38px; height: 38px; border-radius: 50%;
  background: #fff; color: var(--red);
  display: grid; place-items: center;
  font-family: var(--display); font-weight: 800; font-size: 14px;
}

.jobs { text-align: center; }
.jobs__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; max-width: 920px; margin: 0 auto; }
.jobs__list li {
  border: 2px solid var(--red);
  color: var(--red);
  font-weight: 600;
  font-size: 15px;
  padding: .5em 1.2em;
  border-radius: 999px;
  background: var(--white);
  transition: background .2s, color .2s;
}
.jobs__list li:hover { background: var(--red); color: #fff; }
.jobs__src { font-size: 13px; color: var(--ink-soft); margin: 18px 0 0; }

.services--3 { grid-template-columns: repeat(3, 1fr); }

/* Pied de page complet */
.footer { padding: 56px 0 0; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.footer__brand p { opacity: .9; font-size: 15px; max-width: 38ch; margin: 14px 0 20px; }
.footer h4 { font-family: var(--display); font-weight: 700; font-size: 17px; margin: 6px 0 16px; }
.footer__contact, .footer__nav { display: grid; gap: 9px; font-size: 15px; }
.footer__contact a, .footer__nav a { text-decoration: none; opacity: .92; word-break: break-word; }
.footer__contact a:hover, .footer__nav a:hover { opacity: 1; text-decoration: underline; }
.footer__nav { grid-template-columns: 1fr 1fr; column-gap: 20px; }
.footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  border-top: 1px solid rgba(255, 255, 255, .25);
  padding-top: 20px; padding-bottom: 22px;
}
.btn--sm { min-height: 42px; padding: 0 1.3em; font-size: 15px; }

@media (max-width: 1000px) {
  .services--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .eris { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .services--3 { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
}

/* =========================================================
   Filtres (Compétences & Technologies)
   ========================================================= */
.nav__menu { gap: clamp(14px, 1.6vw, 26px); }
.nav__menu a:not(.btn) { font-size: 15.5px; }

.filters {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 12px; margin: 0 auto 46px;
}
.filter {
  display: inline-flex; align-items: center; gap: 9px;
  border: 0; cursor: pointer;
  font: inherit; font-size: 15px; font-weight: 600;
  color: var(--ink);
  background: var(--red-soft);
  padding: .7em 1.25em;
  border-radius: 999px;
  transition: background .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease);
}
.filter svg { width: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.filter:hover { background: var(--red-tint); }
.filter.is-active { background: var(--red); color: #fff; box-shadow: 0 10px 22px -12px rgba(199, 0, 57, .8); }

/* Cartes de compétences */
.skills { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.skill {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px 24px 26px;
  display: flex; flex-direction: column;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.skill:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--red-tint); }
.skill__top { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 22px; flex: 1; }
.skill__ico {
  flex: none;
  width: 54px; height: 54px; border-radius: 14px;
  background: var(--red-soft);
  display: grid; place-items: center;
  transition: background .3s;
}
.skill__ico svg { width: 26px; fill: none; stroke: var(--red); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; transition: stroke .3s; }
.skill:hover .skill__ico { background: var(--red); }
.skill:hover .skill__ico svg { stroke: #fff; }
.skill h3 { font-family: var(--display); font-weight: 700; font-size: 18px; margin-bottom: 4px; }
.skill p { margin: 0; color: var(--ink-soft); font-size: 14.5px; line-height: 1.45; }
.skill__lvl { display: flex; justify-content: space-between; align-items: center; margin-bottom: 9px; font-size: 14px; font-weight: 500; }
.skill__lvl em {
  font-style: normal; font-weight: 700; font-size: 12.5px;
  color: var(--red); background: var(--red-soft);
  padding: .25em .8em; border-radius: 999px;
}
.meter { height: 7px; border-radius: 7px; background: var(--red-soft); overflow: hidden; }
.meter i {
  display: block; height: 100%; width: var(--w);
  border-radius: 7px;
  background: linear-gradient(90deg, var(--red), #E04A74);
  transform-origin: left;
  transition: transform 1.1s var(--ease) .15s;
}
.js .skill.reveal-bar:not(.is-visible) .meter i { transform: scaleX(0); }

/* Grille d'icônes Technologies */
.tgroups { display: grid; gap: 54px; }
.tgroup h3 {
  font-family: var(--display); font-weight: 700; font-size: 22px;
  text-align: center; margin-bottom: 26px;
}
.tgroup h3::after {
  content: ""; display: block; width: 42px; height: 4px; border-radius: 4px;
  background: var(--red); margin: 10px auto 0;
}
.tiles { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px 18px; }
.tile {
  width: 138px;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  text-align: center;
}
.tile__ico {
  width: 84px; height: 84px; border-radius: 22px;
  background: var(--red-soft);
  display: grid; place-items: center;
  transition: transform .3s var(--ease), background .3s, box-shadow .3s;
}
.tile__ico svg { width: 40px; fill: none; stroke: var(--red); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: stroke .3s; }
.tile:hover .tile__ico { background: var(--red); transform: translateY(-5px) rotate(-3deg); box-shadow: var(--shadow); }
.tile:hover .tile__ico svg { stroke: #fff; }
.tile__name { font-weight: 600; font-size: 15px; line-height: 1.3; }

[data-filter-target] > .is-hidden { display: none; }
.filter-anim { animation: fadeUp .45s var(--ease) both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

@media (max-width: 1000px) { .skills { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) {
  .skills { grid-template-columns: 1fr; }
  .filters { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); padding-left: var(--gutter); padding-right: var(--gutter); scrollbar-width: none; }
  .filter { flex: none; }
  .tile { width: 96px; }
  .tile__ico { width: 70px; height: 70px; border-radius: 18px; }
  .tile__ico svg { width: 32px; }
  .tile__name { font-size: 13.5px; }
}

/* ESATIC */
.tcard__note { font-size: 14px; font-weight: 600; color: var(--red); margin: 6px 0 0; }
.learn { display: grid; gap: 8px; margin-top: 4px; }
.learn li { position: relative; padding-left: 26px; font-size: 15px; line-height: 1.45; }
.learn li::before {
  content: ""; position: absolute; left: 0; top: .2em;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4.5 8.2 2.2 2.2 4.8-4.8' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}
.subhead + .eris { margin-bottom: 10px; }

/* Attestations cliquables */
.certs__hint { text-align: center; color: var(--ink-soft); font-size: 15px; margin: -8px 0 24px; }
.certcards { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; max-width: 900px; margin: 0 auto 30px; }
.certcard {
  display: flex; flex-direction: column;
  text-align: left; font: inherit; color: inherit;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0; overflow: hidden; cursor: zoom-in;
  box-shadow: var(--shadow);
  transition: transform .3s var(--ease), border-color .3s;
}
.certcard:hover { transform: translateY(-6px); border-color: var(--red); }
.certcard__img { display: block; background: var(--red-soft); padding: 16px 16px 0; }
.certcard__img img { width: 100%; height: auto; border-radius: 10px 10px 0 0; box-shadow: 0 -4px 20px -10px rgba(0,0,0,.25); }
.certcard__body { display: flex; flex-direction: column; gap: 4px; padding: 20px 22px 22px; }
.certcard__issuer { font-size: 13px; font-weight: 700; color: var(--red); text-transform: uppercase; letter-spacing: .06em; }
.certcard strong { font-family: var(--display); font-size: 18px; line-height: 1.25; }
.certcard__meta { font-size: 14px; color: var(--ink-soft); }
.certcard__cta { margin-top: 10px; font-weight: 700; color: var(--red); }

.viewer {
  border: 0; padding: 0;
  width: min(1100px, 94vw);
  max-height: 92vh;
  border-radius: 18px;
  overflow: auto;
  background: #fff;
  box-shadow: 0 40px 80px -20px rgba(0,0,0,.5);
}
.viewer::backdrop { background: rgba(20, 0, 8, .72); backdrop-filter: blur(4px); }
.viewer__bar {
  position: sticky; top: 0;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 18px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.viewer__title { font-size: 15px; }
.viewer__actions { display: flex; align-items: center; gap: 10px; }
.viewer__close {
  width: 42px; height: 42px; border-radius: 50%;
  border: 0; background: var(--red-soft); color: var(--red);
  font-size: 18px; cursor: pointer;
}
.viewer__close:hover { background: var(--red); color: #fff; }
.viewer img { width: 100%; height: auto; display: block; }

/* Proverbe */
.proverb {
  max-width: 760px; margin: -16px auto 40px;
  text-align: center;
  background: var(--red-soft);
  border-left: 5px solid var(--red);
  border-radius: 18px;
  padding: 24px 28px;
}
.proverb blockquote {
  margin: 0 0 8px;
  font-family: var(--display); font-weight: 700;
  font-size: clamp(20px, 2.4vw, 26px);
  color: var(--red);
}
.proverb figcaption { color: var(--ink-soft); font-size: 15px; }

@media (max-width: 700px) {
  .certcards { grid-template-columns: 1fr; }
  .viewer__title { font-size: 13px; }
}

/* Définition au survol (Technologies) */
.tile { position: relative; cursor: help; outline: none; }
.tile__def {
  position: absolute;
  bottom: calc(100% - 6px);
  left: 50%;
  width: 240px;
  transform: translate(-50%, 8px);
  background: var(--ink);
  color: #fff;
  font-size: 13.5px;
  font-weight: 400;
  line-height: 1.45;
  text-align: left;
  padding: 12px 14px;
  border-radius: 12px;
  box-shadow: 0 18px 40px -16px rgba(0,0,0,.5);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 20;
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
}
.tile__def strong { display: block; color: #FF8FB0; font-size: 14px; margin-bottom: 3px; }
.tile__def::after {
  content: ""; position: absolute; top: 100%; left: 50%; margin-left: -7px;
  border: 7px solid transparent; border-top-color: var(--ink);
}
.tile:hover .tile__def, .tile:focus .tile__def, .tile:focus-within .tile__def {
  opacity: 1; visibility: visible; transform: translate(-50%, 0);
}
.tile:focus-visible .tile__ico { outline: 2px solid var(--red); outline-offset: 3px; }
@media (max-width: 640px) { .tile__def { width: 200px; } }

/* =========================================================
   Mode sombre
   ========================================================= */
.theme-toggle {
  flex: none;
  width: 44px; height: 44px; border-radius: 50%;
  border: 0; cursor: pointer;
  background: var(--red-soft); color: var(--red);
  display: grid; place-items: center;
  margin-right: 12px;
  transition: background .25s, color .25s, transform .3s var(--ease);
}
.theme-toggle:hover { background: var(--red); color: #fff; transform: rotate(-15deg); }
.theme-toggle svg { width: 21px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .ico-sun { display: none; }
html.mode-sombre .theme-toggle .ico-sun { display: block; }
html.mode-sombre .theme-toggle .ico-moon { display: none; }
.theme-toggle--float { position: fixed; top: 20px; right: 20px; margin: 0; z-index: 10; }
@media (max-width: 1180px) { .theme-toggle { position: relative; z-index: 2; margin-right: 4px; } }

html.mode-sombre {
  --red: #E8285A;
  --red-hover: #FF4A78;
  --red-dark: #FF7BA0;
  --red-soft: #2A1219;
  --red-tint: #3D1A25;
  --ink: #F1F1F4;
  --ink-soft: #A7A8B1;
  --line: #2C2C34;
  --white: #141418;
  --shadow: 0 20px 50px -24px rgba(0, 0, 0, .7);
  color-scheme: dark;
}
html.mode-sombre body { background: #0E0E11; }
html.mode-sombre .hero,
html.mode-sombre .section:not(.section--tint) { background: #0E0E11; }
html.mode-sombre .section--tint { background: #16131A; }
html.mode-sombre .nav.is-scrolled,
html.mode-sombre .page .nav { background: rgba(14, 14, 17, .94); box-shadow: 0 1px 0 var(--line); }
html.mode-sombre .nav__menu { background: transparent; }
@media (max-width: 1180px) { html.mode-sombre .nav__menu { background: #0E0E11; } }
html.mode-sombre .nav__toggle span { background: var(--ink); }
html.mode-sombre .stats { background: #141418; }
html.mode-sombre .hero__photo img { filter: drop-shadow(-30px 8px 26px rgba(0, 0, 0, .55)); }
html.mode-sombre .hero__photo.no-photo .placeholder { box-shadow: -34px 14px 0 0 #1E1E24; }
html.mode-sombre .band {
  background:
    linear-gradient(115deg, rgba(120, 0, 36, .92) 0%, rgba(150, 30, 70, .86) 55%, rgba(95, 25, 70, .9) 100%),
    repeating-linear-gradient(90deg, transparent 0 46px, rgba(255, 255, 255, .12) 46px 48px),
    repeating-linear-gradient(0deg, transparent 0 30px, rgba(255, 255, 255, .1) 30px 32px),
    linear-gradient(160deg, #3d0518, #7a1e3b 50%, #a0566c);
}
html.mode-sombre .chips li { background: #fff; color: #B0002F; }
html.mode-sombre .btn--white { color: #B0002F; }
html.mode-sombre .eris__blocks li span { color: #B0002F; }
html.mode-sombre .project__tag { background: #fff; color: #B0002F; }
html.mode-sombre .form input, html.mode-sombre .form textarea { color: var(--ink); }
html.mode-sombre .form input:focus, html.mode-sombre .form textarea:focus { background: #1B1B21; }
html.mode-sombre .tile__def { background: #F1F1F4; color: #1B1B1F; }
html.mode-sombre .tile__def strong { color: #B0002F; }
html.mode-sombre .tile__def::after { border-top-color: #F1F1F4; }
html.mode-sombre .viewer, html.mode-sombre .viewer__bar { background: #141418; }
html.mode-sombre .certcard__img img { box-shadow: none; }
html.mode-sombre .footer { background: #7A0023; }
html.mode-sombre ::selection { background: var(--red); color: #fff; }

/* Mode sombre : arrière-plan noir */
html.mode-sombre { --white: #111113; --line: #26262B; --red-soft: #1E0D13; --red-tint: #33141F; }
html.mode-sombre body,
html.mode-sombre .hero,
html.mode-sombre .section:not(.section--tint),
html.mode-sombre .simple { background: #000; }
html.mode-sombre .section--tint { background: #0A0A0B; }
html.mode-sombre .stats { background: #000; box-shadow: 0 30px 50px -40px rgba(232, 40, 90, .35); }
html.mode-sombre .nav.is-scrolled,
html.mode-sombre .page .nav { background: rgba(0, 0, 0, .94); }
@media (max-width: 1180px) { html.mode-sombre .nav__menu { background: #000; } }

/* Photo spécifique au mode sombre (fond noir) */
.hero__img--dark { display: none; }
html.mode-sombre .hero__img--light { display: none; }
html.mode-sombre .hero__img--dark { display: block; filter: none; }

/* =========================================================
   Projets : cartes cliquables + pages de documentation
   ========================================================= */
.projects--2 { grid-template-columns: repeat(2, 1fr); }
.project--link { text-decoration: none; color: inherit; }
.project__img--net { background: repeating-linear-gradient(90deg, transparent 0 38px, rgba(255,255,255,.08) 38px 40px), linear-gradient(135deg, #C70039, #E04A74 60%, #A3245E); }
.project__img--pm { background: repeating-linear-gradient(90deg, transparent 0 38px, rgba(255,255,255,.08) 38px 40px), linear-gradient(135deg, #7A0023, #C70039 60%, #E04A74); }
.project__img--sec { background: repeating-linear-gradient(90deg, transparent 0 38px, rgba(255,255,255,.08) 38px 40px), linear-gradient(135deg, #2B2B33, #7A0023 55%, #C70039); }
.project__lab {
  position: absolute; right: 16px; top: 16px; z-index: 2;
  background: rgba(0,0,0,.35); color: #fff;
  font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: .3em .8em; border-radius: 999px;
}
.project__lab--real { background: #fff; color: #1B7F3B; }
.project__logos { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 14px; }
.mini-logo { width: 34px; height: 34px; padding: 6px; border-radius: 10px; background: #fff; border: 1px solid var(--line); }
.project__body .project__link { margin-top: auto; }

.backlink { display: inline-block; margin-bottom: 24px; color: var(--red); font-weight: 700; text-decoration: none; }
.backlink:hover { text-decoration: underline; }
.proj__hero { margin-bottom: 34px; }
.proj__badges { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.badge { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 700; padding: .45em 1em; border-radius: 999px; }
.badge svg { width: 17px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.badge--cat { background: var(--red); color: #fff; }
.badge--lab { background: var(--red-soft); color: var(--red); }
.proj__title { font-family: var(--display); font-weight: 800; font-size: clamp(32px, 4.6vw, 54px); letter-spacing: -.02em; margin-bottom: 14px; }
.proj__summary { font-size: clamp(17px, 1.6vw, 19px); color: var(--ink-soft); max-width: 72ch; }
.proj__meta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.proj__meta li { background: var(--red-soft); border-radius: 14px; padding: 10px 16px; font-weight: 600; font-size: 15px; }
.proj__meta span { display: block; font-size: 12px; font-weight: 700; color: var(--red); text-transform: uppercase; letter-spacing: .08em; }

.explain {
  display: flex; gap: 18px; align-items: flex-start;
  border: 2px dashed var(--red);
  border-radius: var(--radius);
  padding: 22px 24px; margin-bottom: 40px;
  background: var(--white);
}
.explain__ico { flex: none; width: 46px; height: 46px; border-radius: 50%; background: var(--red); display: grid; place-items: center; }
.explain__ico svg { width: 24px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; }
.explain h2 { font-family: var(--display); font-weight: 700; font-size: 19px; margin-bottom: 6px; color: var(--red); }
.explain p { margin: 0; line-height: 1.7; }

.proj__block { margin-bottom: 46px; }
.proj__h2 { font-family: var(--display); font-weight: 700; font-size: 24px; margin-bottom: 18px; }
.proj__note { color: var(--ink-soft); font-size: 15px; margin-top: -8px; }
.proj__two { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 46px; }
.proj__card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 3vw, 32px); box-shadow: var(--shadow); }
.proj__card p { color: var(--ink-soft); }
.proj__card--red { background: var(--red); color: #fff; border-color: var(--red); }
.checklist { display: grid; gap: 10px; }
.checklist li { position: relative; padding-left: 28px; line-height: 1.45; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .15em; width: 18px; height: 18px; border-radius: 50%;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4.5 8.2 2.2 2.2 4.8-4.8' fill='none' stroke='%23C70039' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}
.checklist--dark li::before { background-color: var(--red); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4.5 8.2 2.2 2.2 4.8-4.8' fill='none' stroke='%23fff' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.chips--red li { background: var(--red-soft); color: var(--red); }

.toolchips { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.toolchip { display: flex; align-items: center; gap: 14px; background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; transition: transform .25s var(--ease), border-color .25s; }
.toolchip:hover { transform: translateY(-3px); border-color: var(--red); }
.toolchip__logo { flex: none; width: 54px; height: 54px; border-radius: 14px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; }
.toolchip__logo img { width: 32px; height: 32px; }
.toolchip__ini { font-family: var(--display); font-weight: 800; color: var(--red); font-size: 17px; }
.toolchip strong { display: block; font-size: 15.5px; }
.toolchip em { font-style: normal; font-size: 13.5px; color: var(--ink-soft); }

.diagram { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(14px, 2.5vw, 28px); overflow-x: auto; }
.diagram svg { min-width: 640px; width: 100%; height: auto; font-family: var(--sans); }
.diagram text { font-size: 13px; font-weight: 600; fill: var(--ink); text-anchor: middle; }
.diagram .d-sub { font-size: 11px; font-weight: 500; fill: var(--ink-soft); }
.diagram .d-zone rect { fill: var(--red-soft); stroke: none; }
.diagram .d-zone text, .diagram .d-tag { text-anchor: start; font-size: 12px; font-weight: 700; fill: var(--red); }
.diagram .d-tag { text-anchor: middle; }
.diagram .d-zone--srv rect, .diagram .d-zone--dmz rect { fill: var(--red-tint); }
.diagram .d-node rect, .diagram .d-node ellipse { fill: var(--white); stroke: var(--red); stroke-width: 2; }
.diagram .d-node--core rect, .diagram .d-node--fw rect { fill: var(--red); }
.diagram .d-node--core text, .diagram .d-node--fw text, .diagram .d-node--fw .d-sub, .diagram .d-node--core .d-sub { fill: #fff; }
.diagram .d-node--cloud ellipse { fill: var(--red-soft); stroke-dasharray: 5 4; }
.diagram .d-pc rect { fill: var(--white); stroke: var(--line); stroke-width: 1.5; }
.diagram .d-pc--srv rect { stroke: var(--red); }
.diagram .d-pc--ans rect { fill: #FFF2F2; stroke: #EE0000; }
.diagram .d-pc--atk rect { fill: #EEF3F6; stroke: #557C94; }
.diagram .d-pc--vpn rect { stroke: #EA7E20; }
.diagram .d-link { fill: none; stroke: var(--ink-soft); stroke-width: 2; }
.diagram .d-link--trunk { stroke: var(--red); stroke-width: 3; }
.diagram .d-link--vpn { stroke: #EA7E20; stroke-width: 3; stroke-dasharray: 8 5; }
.diagram .d-link--dash { stroke-dasharray: 5 4; }
.diagram .g-col { fill: var(--white); }
.diagram .g-col--alt { fill: var(--red-soft); }
.diagram .g-week { font-size: 12px; fill: var(--ink-soft); }
.diagram .g-task { text-anchor: end; font-size: 13px; font-weight: 600; }
.diagram .g-bar--a { fill: #E04A74; }
.diagram .g-bar--b { fill: var(--red); }
.diagram .g-bar--c { fill: #7A0023; }
.diagram .g-bar--d { fill: #3A3A44; }
.diagram .g-ms { fill: var(--ink); }
.diagram .g-mslab { font-size: 11px; fill: var(--ink-soft); }
html.mode-sombre .diagram .d-pc--ans rect, html.mode-sombre .diagram .d-pc--atk rect { fill: #1A1A1F; }
html.mode-sombre .diagram .g-bar--d { fill: #8A8A96; }

.table-wrap { overflow-x: auto; border-radius: 16px; border: 1px solid var(--line); }
.ptable { width: 100%; border-collapse: collapse; min-width: 560px; background: var(--white); font-size: 15px; }
.ptable th { background: var(--red); color: #fff; text-align: left; padding: 12px 14px; font-weight: 600; }
.ptable td { padding: 11px 14px; border-top: 1px solid var(--line); }
.ptable tbody tr:nth-child(even) td { background: var(--red-soft); }
.ptable--center td:not(:first-child), .ptable--center th:not(:first-child) { text-align: center; }
.ptable b { color: var(--red); }
.crit, .act { font-size: 13px; font-weight: 700; padding: .25em .75em; border-radius: 999px; white-space: nowrap; }
.crit--high, .act--no { background: #FDE2E7; color: #B0002F; }
.crit--mid { background: #FFF1D6; color: #8A5A00; }
.crit--low, .act--ok { background: #DDF4E4; color: #1B7F3B; }

.backlog { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.epic { background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--red); border-radius: 16px; padding: 16px 18px; }
.epic__tag { font-size: 11.5px; font-weight: 800; color: var(--red); letter-spacing: .08em; }
.epic strong { display: block; font-family: var(--display); font-size: 17px; margin: 2px 0 10px; }
.epic li { font-size: 14px; padding: 7px 10px; background: var(--red-soft); border-radius: 8px; margin-bottom: 6px; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; counter-reset: s; }
.step { display: grid; grid-template-columns: 58px 1fr; gap: 18px; }
.step__num {
  width: 58px; height: 58px; border-radius: 16px; background: var(--red); color: #fff;
  display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 18px;
}
.step__body { background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 18px 22px; min-width: 0; }
.step__body h3 { font-family: var(--display); font-weight: 700; font-size: 18px; margin-bottom: 8px; }
.step__body p { color: var(--ink-soft); margin-bottom: 10px; }
.step__body p:last-child { margin-bottom: 0; }
.step__body code { font-size: .92em; background: var(--red-soft); color: var(--red); padding: .1em .4em; border-radius: 6px; }
.code {
  position: relative; margin: 12px 0 0; padding: 34px 18px 16px;
  background: #16161B; color: #F1F1F4; border-radius: 14px;
  font: 13.5px/1.6 ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  overflow-x: auto; white-space: pre;
}
.code code { background: none !important; color: inherit !important; padding: 0 !important; font: inherit; }
.code__lang { position: absolute; top: 9px; left: 16px; font-family: var(--sans); font-size: 11.5px; font-weight: 700; letter-spacing: .06em; color: #FF8FB0; text-transform: uppercase; }

.shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.shot { margin: 0; }
.shot__frame {
  position: relative; aspect-ratio: 16 / 10; border-radius: 16px; overflow: hidden;
  border: 2px dashed var(--red-tint); background: var(--red-soft);
}
.shot__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; cursor: zoom-in; background: var(--white); }
.shot__ph { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center; padding: 14px; }
.shot__ph svg { width: 34px; fill: none; stroke: var(--red); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 4px; }
.shot__ph strong { color: var(--red); font-size: 15px; }
.shot__ph span { font-size: 13px; color: var(--ink-soft); line-height: 1.35; }
.shot__ph code { font-size: 11px; color: var(--ink-soft); margin-top: 4px; word-break: break-all; }
.shot figcaption { font-weight: 600; font-size: 14.5px; margin-top: 10px; }

.proj__pager { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 20px; }
.pager__link { display: block; text-decoration: none; color: inherit; background: var(--red-soft); border-radius: 18px; padding: 18px 22px; transition: background .25s; }
.pager__link:hover { background: var(--red-tint); }
.pager__link span { display: block; font-size: 13px; font-weight: 700; color: var(--red); }
.pager__link strong { font-family: var(--display); font-size: 17px; }
.pager__link--next { text-align: right; }

@media (max-width: 900px) {
  .projects--2, .proj__two, .proj__pager { grid-template-columns: 1fr; }
  .backlog { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .backlog { grid-template-columns: 1fr; }
  .step { grid-template-columns: 1fr; gap: 10px; }
  .step__num { width: 46px; height: 46px; border-radius: 12px; font-size: 16px; }
  .pager__link--next { text-align: left; }
}
.shot__frame img:not(.ok) { visibility: hidden; }

/* Téléchargements PDF */
.proj__dl, .proj__dl-card, .tcard__dl { gap: 10px; margin-top: 22px; }
.proj__dl svg, .proj__dl-card svg, .tcard__dl svg { width: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.proj__dl-card { margin-top: auto; align-self: flex-start; }
.tcard__dl { margin-top: 18px; }
.print-head { display: none; }

/* Mise en page pour l'impression / le PDF */
@media print {
  @page { size: A4; margin: 14mm 12mm; }
  html, body { background: #fff !important; }
  html.mode-sombre { filter: none; }
  .nav, .footer, .theme-toggle, .backlink, .proj__pager, .proj__dl, .viewer { display: none !important; }
  .page main { padding-top: 0 !important; min-height: 0 !important; }
  .page__section { padding-top: 0 !important; padding-bottom: 0 !important; }
  .print-head { display: block; font-size: 11px; color: #C70039; font-weight: 700; margin: 0 0 10px; }
  .js .reveal { opacity: 1 !important; transform: none !important; }
  * { animation: none !important; transition: none !important; box-shadow: none !important; }
  .proj__title { font-size: 30px; }
  .proj__block, .proj__card, .step, .shot, .explain, .table-wrap, .diagram, .toolchip, .epic { break-inside: avoid; }
  .proj__h2 { break-after: avoid; }
  .code { white-space: pre-wrap; word-break: break-word; }
  .diagram svg { min-width: 0; }
  .shots { grid-template-columns: repeat(3, 1fr); }
  .proj__two { grid-template-columns: 1fr 1fr; }
  .toolchips { grid-template-columns: repeat(3, 1fr); }
  a { text-decoration: none; }
}
@media print { .shot__ph code, .proj__note { display: none; } }

/* CV vidéo */
.vcv-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.vcv-text p { color: var(--ink-soft); max-width: 48ch; margin-top: 14px; }
.vcv-text .chips { margin: 18px 0 26px; }
.vcv {
  position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden;
  background: #000; box-shadow: var(--shadow);
}
.vcv video, .vcv iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; background: #000; }
.vcv__ph { display: none; }
.vcv.no-video video { display: none; }
.vcv.no-video .vcv__ph {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; padding: 20px;
  background: repeating-linear-gradient(90deg, transparent 0 38px, rgba(255,255,255,.07) 38px 40px), linear-gradient(135deg, #C70039, #E04A74 60%, #A3245E);
  color: #fff;
}
.vcv__play { width: 78px; height: 78px; border-radius: 50%; background: rgba(255,255,255,.95); display: grid; place-items: center; margin-bottom: 8px; box-shadow: 0 12px 30px -10px rgba(0,0,0,.4); }
.vcv__play svg { width: 34px; fill: #C70039; margin-left: 5px; }
.vcv__ph strong { font-family: var(--display); font-size: 21px; }
.vcv__ph span:last-child { opacity: .9; font-size: 15px; }
@media (max-width: 860px) { .vcv-grid { grid-template-columns: 1fr; } }
.vcv-text .chips li { background: var(--white); }

/* Lien « CV en version vidéo » */
.vcv-link {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 18px; padding: 0; border: 0; background: none; cursor: pointer;
  font: inherit; font-size: 15.5px; font-weight: 600; color: var(--red);
}
.vcv-link:hover { text-decoration: underline; }
.vcv-link__ico { width: 30px; height: 30px; border-radius: 50%; background: var(--red); display: grid; place-items: center; transition: transform .25s var(--ease); }
.vcv-link:hover .vcv-link__ico { transform: scale(1.1); }
.vcv-link__ico svg { width: 14px; fill: #fff; margin-left: 2px; }
.hero__text .vcv-link { display: flex; }
.vcv-link--light { color: #fff; margin-top: 14px; }
.vcv-link--light .vcv-link__ico { background: #fff; }
.vcv-link--light .vcv-link__ico svg { fill: #C70039; }
.vcv-dialog .vcv { border-radius: 0; box-shadow: none; }

/* =========================================================
   Projets : groupes (annuel / stage / labs) + projet annuel
   ========================================================= */
.projgroup { display: flex; align-items: center; gap: 18px; margin: 56px 0 24px; }
.heading + .projgroup { margin-top: 8px; }
.projgroup__num { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--red); color: #fff; font-family: var(--display); font-weight: 800; font-size: 18px; }
.projgroup h3 { font-family: var(--display); font-weight: 700; font-size: clamp(20px, 2.2vw, 25px); margin-bottom: 2px; }
.projgroup p { color: var(--ink-soft); font-size: 15px; }
.project--wide { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.project--wide .project__img { aspect-ratio: auto; min-height: 300px; }
.project--wide .project__body { padding: 30px 34px; justify-content: center; }
.project--wide h3 { font-size: clamp(21px, 2.2vw, 26px); }
.project--wide p { flex: 0 0 auto; margin-bottom: 16px; font-size: 16px; }
.project__img--infra { background: repeating-linear-gradient(90deg, transparent 0 38px, rgba(255,255,255,.08) 38px 40px), linear-gradient(135deg, #8E0029, #C70039 50%, #E04A74); }
.project__lab--year { background: #fff; color: #B25E00; }
.mini-logo--ini { display: inline-grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 11.5px; color: var(--red); }
@media (max-width: 860px) {
  .project--wide { grid-template-columns: 1fr; }
  .project--wide .project__img { min-height: 0; aspect-ratio: 16 / 10; }
  .project--wide .project__body { padding: 22px 24px 26px; }
}

.badge--year { background: #FFF1E0; color: #9A4F00; }
.proj__soon { display: inline-flex; align-items: center; gap: 10px; margin-top: 22px; padding: 12px 18px; border-radius: 14px; border: 1.5px dashed var(--red); color: var(--ink); font-weight: 600; font-size: 15px; }
.proj__soon svg { width: 20px; flex: none; fill: none; stroke: var(--red); stroke-width: 2; stroke-linecap: round; }
.proj__h3 { font-family: var(--display); font-weight: 700; font-size: 17px; margin: 22px 0 8px; }
.proj__block > .proj__note:not(:first-child) { margin-top: 14px; }
.proj__h2 + .proj__note { margin: -4px 0 18px; }

.phases { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; counter-reset: ph; }
.phase { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 18px 20px; }
.phase::before { counter-increment: ph; content: "Phase " counter(ph); display: block; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--red); margin-bottom: 6px; }
.phase__dot { position: absolute; top: 22px; right: 18px; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--line); }
.phase strong { display: block; font-family: var(--display); font-size: 17px; margin-bottom: 6px; }
.phase em { display: inline-block; font-style: normal; font-size: 12px; font-weight: 700; background: var(--red); color: #fff; padding: .2em .7em; border-radius: 999px; margin-bottom: 8px; }
.phase p { color: var(--ink-soft); font-size: 14.5px; }
.phase--now { border-color: var(--red); box-shadow: 0 18px 40px -28px rgba(199, 0, 57, .55); }
.phase--now .phase__dot { background: var(--red); border-color: var(--red); }
@media (max-width: 1100px) { .phases { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .phases { grid-template-columns: 1fr; } }

.numlist { list-style: none; padding: 0; counter-reset: n; display: grid; gap: 10px; }
.numlist li { counter-increment: n; display: grid; grid-template-columns: 30px 1fr; gap: 10px; align-items: start; font-size: 15px; }
.numlist li::before { content: counter(n); display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--red-soft); color: var(--red); font-weight: 700; font-size: 13px; }
.proj__card .code { margin-top: 14px; }

.diagram .d-host { fill: none; stroke: var(--red); stroke-width: 1.5; stroke-dasharray: 7 6; opacity: .6; }
.diagram .d-hosttxt { text-anchor: start; font-size: 12px; font-weight: 700; fill: var(--red); letter-spacing: .04em; }

html.mode-sombre .badge--year { background: #2A1A08; color: #FFB15C; }
html.mode-sombre .project__lab--year { background: #111113; color: #FFB15C; }
html.mode-sombre .mini-logo--ini { background: #fff; }
@media print { .proj__soon { display: none; } .phases { grid-template-columns: repeat(2, 1fr); } }

/* CV vidéo : format vertical (9:16) dans la fenêtre */
.vcv-dialog { width: auto; max-width: 94vw; }
.vcv-dialog .vcv { aspect-ratio: 9 / 16; height: min(82vh, 800px); width: auto; max-width: 94vw; }
.vcv-dialog .vcv video { object-fit: contain; }

/* Contact : deux adresses e-mail l'une sous l'autre */
.contact__list div > a { display: block; }
.contact__list a em { font-style: normal; font-size: 14px; color: var(--ink-soft); }
