/* ============================================================
   AGBODJI JEREMIE — Portfolio
   Design system : clair & minimal, éditorial (esprit Apple)
   ============================================================ */

:root {
  /* Couleurs — crème chaud, encre, accent or (repris de La Passion) */
  --bg:        #FBFAF6;
  --bg-alt:    #FFFFFF;
  --bg-deep:   #F4F1E9;
  --ink:       #16130E;
  --ink-2:     #3A352C;
  --muted:     #7A7266;
  --faint:     #A79E90;
  --line:      #E8E3D7;
  --line-2:    #DED7C7;
  --gold:      #A5812E;
  --gold-2:    #8A6A1F;
  --gold-soft: #F3ECD8;
  --burgundy:  #A23B31;
  --green:     #4B6B47;
  --card:      #FFFFFF;

  /* Typo */
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans:  "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Layout */
  --maxw: 1200px;
  --pad: clamp(20px, 5vw, 72px);
  --radius: 18px;
  --radius-lg: 28px;

  /* Ombres douces */
  --shadow-sm: 0 1px 2px rgba(22,19,14,.04), 0 4px 14px rgba(22,19,14,.05);
  --shadow-md: 0 6px 20px rgba(22,19,14,.07), 0 20px 50px rgba(22,19,14,.08);
  --shadow-lg: 0 20px 60px rgba(22,19,14,.14), 0 40px 90px rgba(22,19,14,.10);

  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- Reset léger ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
::selection { background: var(--gold-soft); color: var(--gold-2); }

/* ---------- Utilitaires ---------- */
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }
.section { padding-block: clamp(72px, 11vw, 150px); position: relative; }
.section--alt { background: var(--bg-alt); }
.section--deep { background: var(--bg-deep); }

.eyebrow {
  font-size: 12.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold-2);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: ""; width: 26px; height: 1px; background: var(--gold);
  display: inline-block; opacity: .6;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -.01em; line-height: 1.05; margin: 0; }
.section-title {
  font-size: clamp(30px, 4.6vw, 52px);
  margin-top: 18px;
  max-width: 16ch;
}
.section-title em { font-style: italic; color: var(--gold-2); }
.section-intro {
  color: var(--muted);
  font-size: clamp(16px, 1.6vw, 19px);
  max-width: 52ch;
  margin-top: 20px;
}
.section-head { margin-bottom: clamp(40px, 6vw, 72px); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 14px 26px; border-radius: 100px;
  font-size: 15px; font-weight: 500; letter-spacing: .01em;
  border: 1px solid transparent;
  transition: transform .3s var(--ease), background .3s var(--ease), box-shadow .3s var(--ease), color .3s var(--ease);
  will-change: transform;
}
.btn svg { width: 17px; height: 17px; }
.btn--primary { background: var(--ink); color: #fff; }
.btn--primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); background: #000; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn--ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn--gold { background: var(--gold); color: #fff; }
.btn--gold:hover { background: var(--gold-2); transform: translateY(-2px); box-shadow: 0 10px 26px rgba(165,129,46,.28); }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(251,250,246,.82);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom-color: var(--line);
}
.nav__inner {
  max-width: var(--maxw); margin-inline: auto; padding: 15px var(--pad);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 600; letter-spacing: -.01em; }
.brand__mark {
  width: 38px; height: 38px; border-radius: 11px;
  background: var(--ink); color: #fff;
  display: grid; place-items: center;
  font-family: var(--serif); font-size: 18px; letter-spacing: .02em;
}
.brand__name { font-size: 15.5px; }
.brand__name small { display: block; font-size: 11.5px; color: var(--muted); font-weight: 400; letter-spacing: .04em; }
.nav__links { display: flex; align-items: center; gap: 6px; }
.nav__links a {
  padding: 8px 14px; border-radius: 100px; font-size: 14.5px; color: var(--ink-2);
  transition: background .25s, color .25s;
}
.nav__links a:hover { background: var(--gold-soft); color: var(--gold-2); }
.nav__right { display: flex; align-items: center; gap: 12px; }

.lang {
  display: inline-flex; align-items: center; border: 1px solid var(--line-2);
  border-radius: 100px; overflow: hidden; font-size: 12.5px; font-weight: 600;
  background: var(--bg-alt);
}
.lang button { padding: 6px 12px; background: transparent; border: none; color: var(--muted); letter-spacing: .04em; transition: .25s; }
.lang button.active { background: var(--ink); color: #fff; }

.nav__cv { padding: 9px 18px; font-size: 14px; }
.nav__burger { display: none; background: none; border: none; padding: 8px; }
.nav__burger span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; margin: 5px 0; transition: .3s; }

/* ============================================================
   HERO
   ============================================================ */
.hero { padding-top: clamp(120px, 17vw, 190px); padding-bottom: clamp(60px, 9vw, 110px); position: relative; overflow: hidden; }
.hero__grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(30px, 5vw, 70px);
  align-items: center;
}
.hero__badge {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 15px 7px 12px; border-radius: 100px;
  background: var(--bg-alt); border: 1px solid var(--line);
  font-size: 13px; color: var(--ink-2); box-shadow: var(--shadow-sm); margin-bottom: 28px;
}
.hero__badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(75,107,71,.14); animation: pulse 2.4s infinite; }
@keyframes pulse { 0%,100%{ box-shadow: 0 0 0 3px rgba(75,107,71,.16);} 50%{ box-shadow: 0 0 0 7px rgba(75,107,71,0);} }

.hero h1 {
  font-size: clamp(28px, 3.6vw, 40px);
  line-height: 1.1; letter-spacing: -.022em;
}
.hero h1 em { font-style: italic; color: var(--gold-2); }
.hero__role {
  font-size: clamp(17px, 2.1vw, 23px); color: var(--ink-2); margin-top: 26px; font-weight: 450;
}
.hero__role b { color: var(--ink); font-weight: 600; }
.hero__desc { color: var(--muted); font-size: 17px; margin-top: 20px; max-width: 46ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero__meta {
  display: flex; flex-wrap: wrap; gap: 22px 30px; margin-top: 44px;
  padding-top: 30px; border-top: 1px solid var(--line);
}
.hero__meta .stat { }
.hero__meta .stat b { font-family: var(--serif); font-size: 30px; color: var(--ink); display: block; line-height: 1; }
.hero__meta .stat span { font-size: 13px; color: var(--muted); letter-spacing: .02em; }

/* Cluster de téléphones */
.hero__visual { position: relative; display: flex; justify-content: center; align-items: center; min-height: 480px; perspective: 1700px; }
/* Cadre iPhone premium — biseau titane fin, coins iOS.
   Les screenshots contiennent déjà leur status bar + Dynamic Island :
   pas de fausse encoche ajoutée (sinon double-encoche). */
.phone {
  position: relative;
  border-radius: 44px;
  background: #0d0d0f;
  padding: 5px;
  box-shadow:
    var(--shadow-lg),
    inset 0 0 0 1px rgba(255,255,255,.06),
    inset 0 1.5px 1.5px rgba(255,255,255,.22),
    inset 0 -2px 3px rgba(0,0,0,.5);
}
/* liseré titane sur le bord */
.phone::before {
  content: ""; position: absolute; inset: 1px; border-radius: 43px;
  border: 1px solid rgba(255,255,255,.06);
  pointer-events: none; z-index: 2;
}
.phone img {
  border-radius: 39px; width: 100%; display: block;
  box-shadow: 0 0 0 1px rgba(0,0,0,.3);
}
.phone--front { width: 260px; z-index: 2; transform: rotate(-3deg); }
.hero__visual .phone--back {
  position: absolute; width: 232px; z-index: 1; transform: rotate(7deg) translate(58px, 24px);
  opacity: .96;
}
.hero__glow {
  position: absolute; width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(165,129,46,.14), transparent 62%);
  filter: blur(10px); z-index: 0; top: 50%; left: 50%; transform: translate(-50%,-50%);
}
.hero__logos { margin-top: 60px; }

/* Mur de téléphones (hero) — showcase mobile, défilement vertical 3 colonnes */
.hero__wall {
  position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 11px; width: 100%; height: 580px; overflow: hidden;
  transform: rotateY(-16deg) rotateX(6deg) rotateZ(1.5deg) scale(1.06);
  transform-style: preserve-3d;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent);
}
.hero__wallcol { display: flex; flex-direction: column; gap: 11px; will-change: transform; }
.hero__wallcol--a { animation: wallUp 44s linear infinite; }
.hero__wallcol--b { animation: wallDown 52s linear infinite; }
.hero__wallcol--c { animation: wallUp 60s linear infinite; }
.hero__wallcol--d { animation: wallDown 48s linear infinite; }
.hero__wall:hover .hero__wallcol { animation-play-state: paused; }
.hero__wall .phone { width: 100%; padding: 4px; border-radius: 26px; box-shadow: var(--shadow-md); }
.hero__wall .phone::before { inset: 1px; border-radius: 25px; }
.hero__wall .phone img { border-radius: 22px; box-shadow: 0 0 0 1px rgba(0,0,0,.28); }
@keyframes wallUp { from { transform: translateY(0); } to { transform: translateY(-50%); } }
@keyframes wallDown { from { transform: translateY(-50%); } to { transform: translateY(0); } }

/* Bandeau logos / stack */
.marquee {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding-block: 22px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee__track { display: flex; gap: 60px; width: max-content; animation: scroll 34s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee span { font-family: var(--serif); font-size: 22px; color: var(--faint); white-space: nowrap; letter-spacing: .01em; }
.marquee span em { color: var(--gold-2); font-style: italic; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ============================================================
   PROFIL / À PROPOS
   ============================================================ */
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 100px); align-items: start; }
.about__lead { font-family: var(--serif); font-size: clamp(23px, 2.8vw, 33px); line-height: 1.32; color: var(--ink); letter-spacing: -.01em; }
.about__lead em { font-style: italic; color: var(--gold-2); }
.about__text { color: var(--muted); margin-top: 26px; font-size: 16.5px; }
.about__text + .about__text { margin-top: 16px; }
.domains { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.domain {
  padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.domain:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line-2); }
.domain .ic { width: 40px; height: 40px; border-radius: 11px; background: var(--gold-soft); display: grid; place-items: center; color: var(--gold-2); margin-bottom: 14px; }
.domain .ic svg { width: 20px; height: 20px; }
.domain h4 { font-family: var(--sans); font-size: 15.5px; font-weight: 600; margin: 0 0 5px; }
.domain p { font-size: 13.5px; color: var(--muted); margin: 0; line-height: 1.5; }

/* ============================================================
   EXPÉRIENCE — timeline
   ============================================================ */
.timeline { position: relative; }
.exp {
  display: grid; grid-template-columns: 190px 1fr; gap: clamp(20px, 4vw, 56px);
  padding: 34px 0; border-top: 1px solid var(--line); position: relative;
}
.exp:last-child { border-bottom: 1px solid var(--line); }
.exp__period { font-size: 13.5px; color: var(--muted); letter-spacing: .01em; padding-top: 6px; }
.exp__period .live { display: block; margin-top: 8px; font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--green); }
.exp__period .live::before { content:"● "; }
.exp__body { }
.exp__role { font-family: var(--serif); font-size: clamp(21px, 2.4vw, 27px); }
.exp__co { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.exp__co b { color: var(--gold-2); font-weight: 600; font-size: 15px; letter-spacing: .02em; }
.exp__co-link { display: inline-flex; align-items: center; gap: 5px; }
.exp__co-link .ext { width: 12px; height: 12px; flex: none; color: var(--gold-2); opacity: .55; transition: opacity .25s, transform .25s var(--ease); }
.exp__co-link:hover .ext { opacity: 1; transform: translate(1px,-1px); }
.exp__co-link:hover b { text-decoration: underline; }
.exp__co .loc { font-size: 13.5px; color: var(--muted); }
.exp__co .loc::before { content: "·"; margin-right: 12px; color: var(--faint); }
.exp__desc { color: var(--muted); margin-top: 14px; font-size: 16px; max-width: 62ch; }
.exp__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tag { font-size: 12.5px; padding: 5px 12px; border-radius: 100px; background: var(--bg-deep); color: var(--ink-2); border: 1px solid var(--line); }
.exp:hover .exp__role { color: var(--gold-2); transition: color .3s; }

/* ============================================================
   PROJETS
   ============================================================ */
.projects { display: flex; flex-direction: column; gap: clamp(28px, 5vw, 56px); }

/* Projet vedette — grand format */
.pfeat {
  display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(30px, 5vw, 64px);
  align-items: center; padding: clamp(28px, 4vw, 56px);
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); overflow: hidden; position: relative;
}
.pfeat--reverse { grid-template-columns: 1.15fr 1fr; }
.pfeat--reverse .pfeat__media { order: -1; }
.pfeat__tag { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-2); font-weight: 600; }
.pfeat h3 { font-size: clamp(28px, 3.4vw, 40px); margin-top: 14px; }
.pfeat h3 em { font-style: italic; color: var(--gold-2); }
.pfeat__sub { color: var(--muted); margin-top: 16px; font-size: 16.5px; max-width: 46ch; }
.pfeat__list { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.pfeat__list li { display: flex; gap: 11px; font-size: 15px; color: var(--ink-2); align-items: flex-start; }
.pfeat__list li svg { width: 18px; height: 18px; color: var(--gold); flex: none; margin-top: 2px; }
.pfeat__stack { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.pfeat__meta { display: flex; flex-wrap: wrap; gap: 18px 26px; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.pfeat__meta .m b { font-family: var(--serif); font-size: 25px; display: block; line-height: 1; }
.pfeat__meta .m span { font-size: 12.5px; color: var(--muted); }
.plink { display: inline-flex; align-items: center; gap: 7px; margin-top: 22px; font-size: 14.5px; font-weight: 600; color: var(--gold-2); transition: color .25s, gap .25s; }
.plink svg { width: 15px; height: 15px; transition: transform .25s var(--ease); }
.plink:hover { color: var(--ink); }
.plink:hover svg { transform: translate(2px,-2px); }
.pcard__link { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-size: 13px; font-weight: 600; color: var(--gold-2); transition: color .25s; }
.pcard__link svg { width: 14px; height: 14px; }
.pcard__link:hover { color: var(--ink); }

/* Média : mockup navigateur + galerie */
.pfeat__media { position: relative; }
.browser {
  border-radius: 14px; overflow: hidden; background: #fff;
  border: 1px solid var(--line-2); box-shadow: var(--shadow-md);
}
.browser__bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; background: #f3f1eb; border-bottom: 1px solid var(--line); }
.browser__bar i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.browser__bar i:nth-child(1){ background:#e5695b;} .browser__bar i:nth-child(2){ background:#e7b64b;} .browser__bar i:nth-child(3){ background:#68b25a;}
.browser__url { flex: 1; margin-left: 10px; height: 22px; border-radius: 6px; background: #fff; border: 1px solid var(--line); font-size: 11px; color: var(--muted); display: flex; align-items: center; padding: 0 12px; }
.browser img { width: 100%; display: block; }

/* Composition web + mobile (La Passion) */
.pfeat__combo { position: relative; }
.pfeat__floatphone { position: absolute; right: 12px; bottom: 12px; width: 124px; z-index: 6; padding: 4px; border-radius: 28px; }
.pfeat__floatphone::before { inset: 1px; border-radius: 27px; }
.pfeat__floatphone img { border-radius: 24px; }
@media (max-width: 720px) { .pfeat__floatphone { width: 96px; right: 8px; bottom: 8px; } }

.pfeat__phones { display: flex; gap: 16px; justify-content: center; align-items: flex-end; }
.pfeat__phones .phone--front { width: 200px; transform: none; }
.pfeat__phones .phone { flex: none; }
.pfeat__phones .phone:nth-child(2){ margin-bottom: 26px; }

/* Galerie miniatures */
.thumbs { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; margin-top: 14px; }
.thumbs--2 { grid-template-columns: repeat(2,1fr); }
.thumbs--2 button { aspect-ratio: 16/9; }
.thumbs button {
  border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; padding: 0;
  aspect-ratio: 16/10; transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
}
.thumbs button img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.thumbs button:hover { transform: translateY(-3px); border-color: var(--gold); box-shadow: var(--shadow-sm); }

/* Grille projets secondaires */
.pgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.pcard {
  border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--card);
  display: flex; flex-direction: column; transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s;
  box-shadow: var(--shadow-sm);
}
.pcard:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--line-2); }
.pcard__img { aspect-ratio: 4/3; overflow: hidden; position: relative; background: var(--bg-deep); }
.pcard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.pcard:hover .pcard__img img { transform: scale(1.05); }
.pcard__img.is-phones { display: flex; gap: 12px; justify-content: center; align-items: flex-end; padding: 26px 0 0; background: linear-gradient(180deg,#111,#1c1c1f); }
.pcard__img.is-phones .phone { width: 122px; padding: 4px; border-radius: 28px; }
.pcard__img.is-phones .phone::before { inset: 1px; border-radius: 27px; }
.pcard__img.is-phones .phone img { border-radius: 24px; }
.pcard__img.is-phones .phone--back { width: 110px; margin-bottom: 20px; }
.pcard__badge {
  position: absolute; top: 14px; left: 14px; z-index: 4; font-size: 11px; font-weight: 600;
  letter-spacing: .05em; text-transform: uppercase; padding: 6px 12px; border-radius: 100px;
  background: rgba(255,255,255,.9); backdrop-filter: blur(6px); color: var(--ink);
}
.pcard__body { padding: 24px 24px 26px; flex: 1; display: flex; flex-direction: column; }
.pcard__tag { font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-2); font-weight: 600; }
.pcard h4 { font-family: var(--serif); font-size: 23px; margin: 10px 0 0; }
.pcard p { color: var(--muted); font-size: 14.5px; margin: 12px 0 0; flex: 1; }
.pcard__stack { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 18px; }
.pcard__stack .tag { font-size: 11.5px; padding: 4px 10px; }
.store { display: inline-flex; gap: 6px; align-items: center; font-size: 12px; color: var(--green); font-weight: 500; margin-top: 14px; }

/* ============================================================
   ÉCRITURE / ARTICLES
   ============================================================ */
.writing {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px,5vw,64px); align-items: center;
  padding: clamp(30px,4vw,56px); border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--card); box-shadow: var(--shadow-sm); overflow: hidden;
}
.writing__img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); aspect-ratio: 4/3; }
.writing__img img { width:100%; height:100%; object-fit: cover; }
.writing h3 { font-size: clamp(26px,3.2vw,36px); margin-top: 14px; }
.writing h3 em { font-style: italic; color: var(--gold-2); }
.writing p { color: var(--muted); margin-top: 16px; }
.writing__topics { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 20px; }

/* ============================================================
   COMPÉTENCES
   ============================================================ */
.skills__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(40px,6vw,80px); align-items: start; }
.skillbar { margin-bottom: 22px; }
.skillbar__top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 9px; }
.skillbar__top b { font-weight: 600; font-size: 15.5px; }
.skillbar__top span { font-family: var(--serif); color: var(--gold-2); font-size: 15px; }
.skillbar__track { height: 6px; border-radius: 100px; background: var(--bg-deep); overflow: hidden; }
.skillbar__fill { height: 100%; border-radius: 100px; background: linear-gradient(90deg, var(--gold), var(--gold-2)); width: 0; transition: width 1.3s var(--ease); }

.stack-cloud { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.stack-cloud .chip {
  padding: 9px 16px; border-radius: 100px; background: var(--card); border: 1px solid var(--line);
  font-size: 14px; color: var(--ink-2); transition: .3s var(--ease); font-weight: 500;
}
.stack-cloud .chip:hover { border-color: var(--gold); color: var(--gold-2); transform: translateY(-3px); box-shadow: var(--shadow-sm); }

/* Grille de logos technos */
.logogrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(146px, 1fr)); gap: 10px; margin-top: 6px; }
.techtile { display: flex; align-items: center; gap: 10px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 13px; background: var(--card); transition: transform .3s var(--ease), border-color .3s, box-shadow .3s; }
.techtile:hover { transform: translateY(-3px); border-color: var(--gold); box-shadow: var(--shadow-sm); }
.techtile .logo { width: 21px; height: 21px; flex: none; object-fit: contain; transition: transform .3s var(--ease); }
.techtile:hover .logo { transform: scale(1.12); }
.techtile { min-width: 0; }
.techtile b { font-size: 13.5px; font-weight: 500; color: var(--ink-2); min-width: 0; line-height: 1.2; overflow-wrap: normal; }
.morechips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.mchip { font-size: 12.5px; padding: 6px 12px; border-radius: 100px; background: var(--bg-deep); color: var(--muted); border: 1px solid var(--line); transition: color .25s, border-color .25s, background .25s, transform .25s var(--ease); }
.mchip:hover { color: var(--gold-2); border-color: var(--gold); background: var(--card); transform: translateY(-2px); }
.langs { margin-top: 34px; display: grid; gap: 14px; }
.langrow { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); }
.langrow:last-child { border-bottom: 1px solid var(--line); }
.langrow b { font-weight: 600; }
.langrow span { font-size: 13.5px; color: var(--muted); }
.subhead { font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin: 0 0 20px; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact { text-align: center; }
.contact h2 { font-size: clamp(34px, 6vw, 68px); max-width: 18ch; margin-inline: auto; }
.contact h2 em { font-style: italic; color: var(--gold-2); }
.contact__sub { color: var(--muted); font-size: 18px; margin: 22px auto 0; max-width: 46ch; }
.contact__cards { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; margin-top: 52px; text-align: left; }
.ccard {
  padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .3s; display: block;
}
.ccard:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--gold); }
.ccard .ic { width: 42px; height: 42px; border-radius: 12px; background: var(--gold-soft); color: var(--gold-2); display: grid; place-items: center; margin-bottom: 16px; }
.ccard .ic svg { width: 21px; height: 21px; }
.ccard small { color: var(--muted); font-size: 12.5px; letter-spacing: .04em; text-transform: uppercase; }
.ccard b { display: block; font-weight: 600; font-size: 15.5px; margin-top: 4px; word-break: break-word; }
.contact__big { margin-top: 44px; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { padding: 50px var(--pad); border-top: 1px solid var(--line); }
.footer__inner { max-width: var(--maxw); margin-inline: auto; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer small { color: var(--muted); font-size: 13.5px; }
.footer__links { display: flex; gap: 22px; }
.footer__links a { font-size: 13.5px; color: var(--muted); transition: color .25s; }
.footer__links a:hover { color: var(--gold-2); }

/* ============================================================
   Reveal au scroll
   ============================================================ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; } .reveal.d4 { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; }
  * { animation: none !important; scroll-behavior: auto; }
}

/* ============================================================
   Bascule langue
   ============================================================ */
[data-lang="en"] .fr-only { display: none; }

/* ============================================================
   INTRO (préloader) + CURSEUR premium
   ============================================================ */
.preloader {
  position: fixed; inset: 0; z-index: 9999; background: var(--bg);
  display: grid; place-items: center;
  animation: preOut .8s var(--ease) 1.3s forwards;
}
.preloader__inner { display: flex; align-items: center; gap: 18px; opacity: 0; transform: translateY(10px); animation: preIn .8s var(--ease) .1s forwards; }
.preloader__mark { width: 58px; height: 58px; border-radius: 16px; background: var(--ink); color: #fff; display: grid; place-items: center; font-family: var(--serif); font-size: 30px; }
.preloader__name { font-family: var(--serif); font-size: clamp(22px, 4vw, 28px); letter-spacing: -.01em; }
.preloader__bar { width: 100%; max-width: 220px; height: 2px; background: var(--line); margin-top: 12px; overflow: hidden; border-radius: 2px; }
.preloader__bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold), var(--gold-2)); animation: preBar 1.15s var(--ease) .15s forwards; }
@keyframes preIn { to { opacity: 1; transform: none; } }
@keyframes preBar { to { width: 100%; } }
@keyframes preOut { to { opacity: 0; visibility: hidden; } }

.cursor-glow {
  position: fixed; top: 0; left: 0; width: 26px; height: 26px; border-radius: 50%;
  pointer-events: none; z-index: 9000; opacity: 0;
  background: radial-gradient(circle, rgba(165,129,46,.55), rgba(165,129,46,0) 70%);
  transform: translate(-50%, -50%); transition: width .28s var(--ease), height .28s var(--ease), opacity .3s;
  will-change: transform;
}
.cursor-glow.on { opacity: 1; }
.cursor-glow.big { width: 66px; height: 66px; }
.hero__wall img { cursor: zoom-in; }
@media (hover: none), (pointer: coarse) { .cursor-glow { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .cursor-glow { display: none; }
  .preloader { animation: preOut .3s ease 0s forwards; }
  .preloader__inner { animation: none; opacity: 1; transform: none; }
}

/* ============================================================
   ÉTUDE DE CAS — panneau latéral
   ============================================================ */
[data-project] { cursor: pointer; }
.case-cue { display: inline-flex; align-items: center; gap: 7px; margin-top: 18px; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-2); }
.case-cue svg { width: 14px; height: 14px; transition: transform .25s var(--ease); }
[data-project]:hover .case-cue svg { transform: translateX(4px); }
.pcard .case-cue { margin-top: 16px; }

.modal { position: fixed; inset: 0; z-index: 500; display: none; }
.modal.open { display: block; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(20,17,12,.5); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; animation: mfade .35s forwards; }
.modal__panel { position: absolute; top: 0; right: 0; height: 100%; width: min(760px, 96vw); background: var(--bg); overflow-y: auto; box-shadow: -30px 0 80px rgba(0,0,0,.22); transform: translateX(60px); opacity: 0; animation: mslide .5s var(--ease) forwards; }
@keyframes mfade { to { opacity: 1; } }
@keyframes mslide { to { transform: none; opacity: 1; } }
.modal__close { position: absolute; top: 20px; right: 20px; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--bg-alt); color: var(--ink); display: grid; place-items: center; z-index: 3; transition: background .25s, color .25s, transform .35s var(--ease); }
.modal__close:hover { background: var(--ink); color: #fff; transform: rotate(90deg); }
.modal__close svg { width: 18px; height: 18px; }
.modal__inner { padding: clamp(30px, 5vw, 58px); }
.modal__tag { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-2); font-weight: 600; }
.modal__title { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 5vw, 46px); margin: 12px 0 0; letter-spacing: -.01em; }
.modal__title em { font-style: italic; color: var(--gold-2); }
.modal__tagline { font-size: clamp(16px, 2vw, 20px); color: var(--muted); margin-top: 14px; line-height: 1.5; }
.modal__stack { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.modal__meta { display: flex; flex-wrap: wrap; gap: 26px; margin: 26px 0; padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.modal__meta .m b { font-family: var(--serif); font-size: 27px; display: block; line-height: 1; }
.modal__meta .m span { font-size: 12.5px; color: var(--muted); }
.modal__sec { margin-top: 24px; }
.modal__sec h4 { font-family: var(--sans); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-2); margin: 0 0 7px; }
.modal__sec p { color: var(--ink-2); margin: 0; font-size: 16px; line-height: 1.65; }
.modal__gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 30px; }
.modal__gallery.is-web { grid-template-columns: 1fr; }
.modal__gallery img { width: 100%; border-radius: 12px; border: 1px solid var(--line); background: #111; cursor: zoom-in; transition: transform .3s var(--ease); display: block; }
.modal__gallery.is-web img { background: #fff; }
.modal__gallery img:hover { transform: scale(1.02); }
.modal__link { margin-top: 30px; }
body.modal-open { overflow: hidden; }
@media (max-width: 560px) { .modal__gallery { grid-template-columns: repeat(2, 1fr); } }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { min-height: 400px; margin-top: 20px; perspective: none; }
  .hero__wall { height: 480px; transform: none; gap: 12px; }
  .about__grid { grid-template-columns: 1fr; gap: 40px; }
  .skills__grid { grid-template-columns: 1fr; }
  .pfeat, .pfeat--reverse { grid-template-columns: 1fr; }
  .pfeat--reverse .pfeat__media { order: 0; }
  .pfeat__info { min-width: 0; }
  .pfeat__phones .phone--front { width: clamp(110px, 34vw, 180px); }
  .pfeat__phones { gap: 14px; }
  .writing { grid-template-columns: 1fr; }
  .writing__img { order: -1; max-height: 300px; }
  .contact__cards { grid-template-columns: repeat(2,1fr); }
  .pgrid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav__links { display: none; }
  .nav__burger { display: block; }
  .nav.open .nav__links {
    display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg-alt); padding: 16px var(--pad) 26px; gap: 4px; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
  }
  .nav.open .nav__links a { padding: 12px 14px; }
  .exp { grid-template-columns: 1fr; gap: 12px; }
  .domains { grid-template-columns: 1fr; }
  .pgrid { grid-template-columns: 1fr; }
  .contact__cards { grid-template-columns: 1fr; }
  .hero__meta { gap: 18px 24px; }
  .hero__meta .stat b { font-size: 26px; }
  .thumbs { grid-template-columns: repeat(2,1fr); }
  .nav__cv span.cv-label { display: none; }
  .pfeat, .pfeat--reverse { padding: 22px; }
  .hero__visual { min-height: 360px; }
  .hero__wall { height: 440px; gap: 10px; grid-template-columns: repeat(2, 1fr); }
  .hero__wallcol--c, .hero__wallcol--d { display: none; }
}
@media (max-width: 400px) {
  .nav__inner { padding-inline: 16px; }
  .nav__right { gap: 8px; }
  .brand__name small { display: none; }
  .nav__cv { padding: 9px 13px; }
  .pfeat, .pfeat--reverse { padding: 18px; }
}
