/* ==========================================================================
   Tizi Paka — Présidente d'ELBA — Portfolio institutionnel
   ========================================================================== */

:root {
  --bg: #f2ede4;
  --bg-2: #f6f2ea;
  --ink: #1a1a1a;
  --muted: #6f6a61;
  --muted-2: #8a857b;
  --accent: #2f9e82;
  --accent-dark: #268a71;
  --line: #d8d2c5;
  --line-2: #c9c2b4;
  --card: #ffffff;
  --font-display: "Jost", sans-serif;
  --font-script: "Caveat", cursive;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-display);
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg) 55%, var(--bg-2) 100%);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--ink); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent); }
input, textarea, button { font-family: var(--font-display); }
::selection { background: var(--accent); color: #fff; }
img { max-width: 100%; display: block; }

.container { width: min(1240px, 92vw); margin: 0 auto; }

@keyframes blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }

/* ---- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-weight: 700; font-size: 14px; letter-spacing: 1.5px;
  border-radius: 30px; cursor: pointer; border: none; text-align: center;
  transition: background .2s, color .2s, transform .2s;
}
.btn-solid {
  background: var(--accent); color: #fff; padding: 15px 30px;
  box-shadow: 0 12px 22px -10px rgba(47, 158, 130, .9);
}
.btn-solid:hover { background: var(--accent-dark); color: #fff; }
.btn-outline {
  border: 1.5px solid var(--ink); background: var(--bg); color: var(--ink);
  padding: 15px 30px; box-shadow: 6px 8px 16px -8px rgba(0, 0, 0, .25);
}
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-dark {
  background: var(--ink); color: #fff; padding: 20px 38px;
  box-shadow: 6px 8px 16px -8px rgba(0, 0, 0, .4);
}
.btn-dark:hover { background: var(--accent); }
.btn-link { font-weight: 700; font-size: 15px; padding-left: 6px; }

/* ---- Section scaffolding -------------------------------------------------*/
.section { position: relative; overflow: hidden; padding: 100px 0; }
.section-watermark {
  position: absolute; left: 50%; top: 58%; transform: translate(-50%, -50%);
  font-family: var(--font-script); font-weight: 700;
  font-size: min(280px, 22vw); color: rgba(26, 26, 26, .04);
  white-space: nowrap; pointer-events: none; user-select: none; z-index: 0;
}
.section-inner { position: relative; z-index: 1; }
.section-head { text-align: center; margin-bottom: 56px; }
.section-title {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(34px, 4.4vw, 58px); letter-spacing: 1px; margin-bottom: 14px;
}
.section-kicker { display: flex; align-items: baseline; justify-content: center; gap: 10px; }
.section-kicker .tag { font-weight: 700; font-size: 14px; letter-spacing: 2px; color: var(--accent); }
.section-kicker .script { font-family: var(--font-script); font-weight: 700; font-size: 34px; }

.dot-pattern {
  position: absolute; background-image: radial-gradient(circle, transparent 0 2px, var(--ink) 2px 3px, transparent 3.4px);
  background-size: 19px 19px; opacity: .7; pointer-events: none;
}

/* ---- Reveal-on-scroll & hover -------------------------------------------
   Base state only: GSAP (main.js) drives the actual opacity/transform
   tweens via ScrollTrigger, and sets its own inline starting values —
   these rules just keep things visible if JS fails to load (progressive
   enhancement), and own the hover lift which stays pure CSS. */
[data-card] { transition: box-shadow .3s ease, translate .3s ease; }
[data-card]:hover { translate: 0 -8px; }

.icon-badge {
  width: 48px; height: 48px; border-radius: 50%; background: var(--bg);
  border: 1.5px solid var(--ink); display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px; flex: none; box-shadow: 4px 5px 10px -5px rgba(0, 0, 0, .3);
  transition: transform .3s ease, background .3s ease;
}
.icon-badge svg { transition: stroke .3s; }
[data-card]:hover .icon-badge { background: var(--accent); transform: rotate(-6deg) scale(1.06); }
[data-card]:hover .icon-badge svg { stroke: #fff; }

/* ---- Header --------------------------------------------------------------*/
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(242, 237, 228, .9); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(26, 26, 26, .06);
}
.header-row {
  height: 78px; display: flex; align-items: center; justify-content: space-between;
}
.brand {
  display: flex; align-items: center; gap: 6px;
  font-family: var(--font-display); font-weight: 800; font-size: 24px; letter-spacing: 1px;
}
.brand .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-top: 10px; }
.main-nav { display: flex; gap: 34px; font-weight: 500; font-size: 15px; letter-spacing: .4px; }
.header-actions { display: flex; align-items: center; gap: 18px; }
.burger {
  display: none; background: none; border: none; cursor: pointer; color: var(--ink);
}
.mobile-nav {
  display: none; background: var(--bg); border-top: 1px solid rgba(26, 26, 26, .06);
  padding: 14px 0; flex-direction: column; align-items: center; gap: 14px; font-weight: 500;
}
.mobile-nav.open { display: flex; }

@media (max-width: 900px) {
  .main-nav { display: none; }
  .burger { display: flex; }
}

/* ---- Hero ------------------------------------------------------------- */
.hero { padding: 150px 0 110px; }
.hero-grid {
  position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center;
}
.hero-eyebrow { font-weight: 700; font-size: 15px; letter-spacing: 2.5px; margin-bottom: 18px; }
.hero-eyebrow .accent { color: var(--accent); }
.hero-name {
  font-family: var(--font-display); font-weight: 800; font-size: clamp(38px, 7vw, 104px);
  line-height: .98; letter-spacing: 1px; margin-bottom: 22px; white-space: nowrap;
}
.hero-name .first {
  color: var(--accent); -webkit-text-stroke: 2px var(--ink); text-shadow: 5px 5px 0 rgba(26, 26, 26, .9);
}
.hero-name .last {
  color: var(--bg); -webkit-text-stroke: 2px var(--ink); text-shadow: 5px 5px 0 rgba(26, 26, 26, .12); margin-left: 8px;
}
.hero-role { display: flex; align-items: baseline; gap: 14px; margin-bottom: 26px; }
.hero-role .label { font-weight: 700; font-size: 15px; letter-spacing: 2.5px; }
.hero-role .typed {
  font-family: var(--font-script); font-weight: 700; font-size: 38px; line-height: 1;
  border-bottom: 3px solid var(--accent); padding-bottom: 2px;
}
.hero-role .caret {
  display: inline-block; width: 2px; height: 30px; background: var(--ink);
  margin-left: 3px; transform: translateY(4px); animation: blink 1s step-end infinite;
}
.hero-desc { color: var(--muted); font-size: 18px; line-height: 1.7; max-width: 440px; margin-bottom: 30px; }
.hero-social { display: flex; gap: 16px; margin-bottom: 40px; }
.social-btn {
  width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: #fff;
  display: flex; align-items: center; justify-content: center; transition: background .2s;
}
.social-btn:hover { background: var(--accent); color: #fff; }
.hero-cta { display: flex; align-items: center; gap: 0; }
.hero-cta .divider { width: 40px; height: 1.5px; background: var(--ink); }

.hero-photo { position: relative; aspect-ratio: 1/1; max-width: 560px; justify-self: end; width: 100%; }
.hero-photo-bg { position: absolute; left: 8%; top: 3%; width: 84%; height: 92%; background: var(--accent); border-radius: 50%; }
.hero-photo-frame {
  position: absolute; left: 6%; top: 0; width: 88%; height: 100%; border-radius: 50%; overflow: hidden;
}
.hero-photo-frame img { width: 100%; height: 100%; object-fit: cover; }
.hero-dots-1 { right: -4%; top: 14%; width: 90px; height: 120px; }
.hero-dots-2 { left: -2%; top: 52%; width: 110px; height: 110px; }
.hero-dots-3 { right: -6%; bottom: 2%; width: 90px; height: 90px; }
.hero-stat {
  position: absolute; background: #fff; border-radius: 40px; display: flex; align-items: center;
  box-shadow: 0 26px 40px -18px rgba(0, 0, 0, .28);
}
.hero-stat-1 { left: -6%; top: 44%; padding: 14px 22px; gap: 10px; }
.hero-stat-2 { right: -8%; bottom: 14%; padding: 14px 24px; gap: 12px; }
.hero-stat .num { font-family: var(--font-display); font-weight: 800; font-size: 34px; line-height: 1; }
.hero-stat .plus { color: var(--accent); font-weight: 800; font-size: 26px; }
.hero-stat .cap { font-weight: 700; font-size: 12px; letter-spacing: 1px; line-height: 1.3; }
.hero-stat .cap .accent { color: var(--accent); }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-photo { justify-self: center; margin-top: 40px; }
}

/* ---- Services carousel ---------------------------------------------------*/
.carousel-viewport { overflow: hidden; }
.carousel-track { display: flex; transition: transform .55s cubic-bezier(.5, 0, .2, 1); }
.carousel-slide { flex: 0 0 33.3333%; padding: 0 15px; box-sizing: border-box; }
@media (max-width: 1023px) { .carousel-slide { flex-basis: 50%; } }
@media (max-width: 639px) { .carousel-slide { flex-basis: 100%; } }

.card {
  position: relative; overflow: hidden; background: var(--card); border-radius: 18px;
  box-shadow: 0 40px 50px -34px rgba(0, 0, 0, .18);
}
.service-card { padding: 44px 38px; min-height: 330px; }
.service-cat { font-weight: 700; font-size: 12px; letter-spacing: 2px; color: var(--muted-2); margin-bottom: 16px; }
.service-title { font-family: var(--font-display); font-weight: 700; font-size: 26px; margin-bottom: 16px; }
.service-desc { color: var(--muted); font-size: 16px; line-height: 1.7; margin-bottom: 34px; }
.service-link { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; border-bottom: 2px dotted var(--accent); padding-bottom: 4px; }
.service-decor { right: 24px; bottom: 24px; width: 78px; height: 78px; opacity: .75; }

.carousel-dots { display: flex; align-items: center; justify-content: center; margin-top: 40px; }
.carousel-dot-wrap { display: flex; align-items: center; cursor: pointer; }
.carousel-dot { width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--accent); box-sizing: border-box; background: transparent; transition: width .2s, height .2s, background .2s; }
.carousel-dot.active { width: 11px; height: 11px; background: var(--accent); }
.carousel-dot-line { width: 26px; height: 1.5px; background: var(--line-2); }

/* ---- Values (skills) -------------------------------------------------- */
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px 70px; }
@media (max-width: 1023px) { .values-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 639px) { .values-grid { grid-template-columns: 1fr; } }
.value-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; }
.value-title { font-family: var(--font-display); font-weight: 700; font-size: 22px; }
.value-pct { font-weight: 700; font-size: 16px; white-space: nowrap; }
.value-pct .accent { color: var(--accent); }
.value-desc { color: var(--muted); font-size: 15px; line-height: 1.7; margin-bottom: 26px; }
.value-bar { position: relative; height: 2px; background: var(--line); border-radius: 2px; }
.value-fill { position: absolute; left: 0; top: 0; height: 100%; width: 0; background: var(--ink); }
.value-knob {
  position: absolute; top: 50%; left: 0; transform: translate(-50%, -50%);
  width: 22px; height: 22px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 6px 12px -3px rgba(47, 158, 130, .8);
}

/* ---- Portfolio ---------------------------------------------------------*/
.pf-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 38px; margin-bottom: 56px; }
.pf-filter {
  background: none; border: none; cursor: pointer; font-family: var(--font-display); font-weight: 700;
  font-size: 15px; letter-spacing: 1px; padding-bottom: 8px; color: var(--ink);
  border-bottom: 2px solid transparent; transition: color .2s, border-color .2s;
}
.pf-filter.active { color: var(--accent); border-bottom-color: var(--accent); }
.pf-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; }
@media (max-width: 1023px) { .pf-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 639px) { .pf-grid { grid-template-columns: 1fr; } }
.pf-card { padding: 22px; }
.pf-card.hidden { display: none; }
.pf-thumb { height: 250px; border-radius: 12px; overflow: hidden; margin-bottom: 24px; }
.pf-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pf-cats { font-weight: 700; font-size: 12px; letter-spacing: 1.5px; color: var(--accent); margin-bottom: 12px; }
.pf-title { font-family: var(--font-display); font-weight: 700; font-size: 24px; margin-bottom: 16px; }
.pf-desc { color: var(--muted); font-size: 15px; line-height: 1.7; margin-bottom: 26px; }
.pf-link { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; }
.pf-decor { right: 22px; bottom: 22px; width: 78px; height: 78px; }
.pf-more { display: flex; justify-content: center; margin-top: 56px; }

/* ---- Resume / Histoire ---------------------------------------------------*/
.resume-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; }
@media (max-width: 768px) { .resume-grid { grid-template-columns: 1fr; } }
.resume-col-title { font-family: var(--font-display); font-weight: 700; font-size: 26px; text-align: center; margin-bottom: 14px; }
.resume-rule { height: 2px; background: var(--ink); margin-bottom: 6px; }
.acc-item { border-bottom: 1.5px solid var(--line); padding: 22px 0; }
.acc-head { display: flex; align-items: center; justify-content: space-between; cursor: pointer; }
.acc-head h4 { font-family: var(--font-display); font-weight: 700; font-size: 20px; }
.acc-sign {
  width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--ink);
  display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 400; flex: none;
  background: var(--bg); box-shadow: 4px 5px 10px -5px rgba(0, 0, 0, .3); transition: transform .3s;
}
/* height/opacity of .acc-body are driven by GSAP (main.js); overflow hidden
   here keeps the collapsed state clean even before JS measures it. */
.acc-body { overflow: hidden; height: 0; opacity: 0; }
.acc-body-inner { padding-top: 18px; }
.acc-item.open .acc-sign { transform: rotate(180deg); }
.acc-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin-bottom: 12px; }
.acc-sub { font-family: var(--font-script); font-weight: 700; font-size: 28px; }
.acc-date { font-weight: 700; font-size: 13px; letter-spacing: 1px; color: var(--muted-2); white-space: nowrap; }
.acc-desc { color: var(--muted); font-size: 15px; line-height: 1.7; }

/* ---- Team / testimonials --------------------------------------------- */
.team-card { padding: 22px; }
.team-photo {
  position: relative; height: 240px; border-radius: 12px; overflow: hidden; margin-bottom: 26px;
  background: var(--bg-2); display: flex; align-items: center; justify-content: center;
  color: var(--muted-2); font-size: 14px; text-align: center; padding: 12px;
}
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-text { color: var(--muted); font-size: 16px; line-height: 1.7; margin-bottom: 30px; }
.team-name { font-family: var(--font-display); font-weight: 700; font-size: 20px; margin-bottom: 4px; }
.team-role { color: var(--muted-2); font-size: 14px; }
.team-decor { right: 22px; bottom: 22px; width: 78px; height: 78px; }

/* ---- Nous soutenir -------------------------------------------------- */
.soutenir-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; align-items: center; }
@media (max-width: 1023px) { .soutenir-grid { grid-template-columns: 1fr; } }
.soutenir-card { padding: 44px 38px; border: 1px solid transparent; margin-top: 22px; }
.soutenir-card.popular { border: 2px solid var(--ink); margin-top: 0; }
.soutenir-badge {
  position: absolute; left: 50%; top: -2px; transform: translateX(-50%);
  background: var(--accent); color: #fff; font-weight: 700; font-size: 12px; letter-spacing: 1.5px;
  padding: 8px 24px; border-radius: 0 0 14px 14px;
}
.soutenir-cat { font-weight: 700; font-size: 13px; letter-spacing: 2px; margin-bottom: 32px; }
.soutenir-card.popular .soutenir-cat { padding-top: 14px; }
.soutenir-name { font-family: var(--font-display); font-weight: 800; font-size: 28px; line-height: 1.15; margin-bottom: 20px; }
.soutenir-desc { color: var(--muted); font-size: 15px; line-height: 1.7; margin-bottom: 34px; }
.soutenir-features { display: flex; flex-direction: column; gap: 16px; margin-bottom: 36px; }
.soutenir-feature { display: flex; align-items: center; gap: 12px; }
.soutenir-feature span { font-size: 16px; color: var(--ink); }
.soutenir-cta { width: 100%; padding: 18px; box-shadow: 0 16px 26px -12px rgba(47, 158, 130, .9); }

/* ---- Actualités / blog ------------------------------------------------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; }
@media (max-width: 1023px) { .news-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 639px) { .news-grid { grid-template-columns: 1fr; } }
.news-card { padding: 40px 36px; }
.news-date { font-weight: 700; font-size: 13px; letter-spacing: 1.5px; margin-bottom: 20px; }
.news-title { font-family: var(--font-display); font-weight: 700; font-size: 24px; line-height: 1.25; margin-bottom: 20px; min-height: 60px; }
.news-excerpt { color: var(--muted); font-size: 16px; line-height: 1.7; margin-bottom: 22px; }
.news-thumb { height: 200px; border-radius: 12px; overflow: hidden; }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* ---- Contact ------------------------------------------------------------*/
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 70px; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-list { display: flex; flex-direction: column; gap: 38px; }
.contact-item { display: flex; align-items: center; gap: 0; }
.contact-icon {
  width: 56px; height: 56px; border-radius: 50%; border: 1.5px solid var(--ink);
  display: flex; align-items: center; justify-content: center; flex: none;
  box-shadow: 4px 5px 10px -5px rgba(0, 0, 0, .3);
}
.contact-divider { width: 34px; height: 1.5px; background: var(--ink); }
.contact-text { padding-left: 14px; }
.contact-label { font-family: var(--font-script); font-weight: 700; font-size: 30px; line-height: 1; margin-bottom: 6px; }
.contact-value { color: var(--muted); font-size: 16px; }

.contact-form { position: relative; }
.form-decor {
  position: absolute; left: -24px; top: 70px; width: 150px; height: 280px;
  background-image: radial-gradient(circle, transparent 0 2px, var(--ink) 2px 3px, transparent 3.4px);
  background-size: 19px 19px; opacity: .5; z-index: -1;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin-bottom: 26px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field { display: block; margin-bottom: 26px; }
.form-row .field { margin-bottom: 0; }
.field-label { display: block; font-weight: 700; font-size: 13px; letter-spacing: 1.5px; margin-bottom: 14px; }
.field-label .req { color: var(--accent); }
.field input[type="text"], .field input[type="email"], .field textarea {
  width: 100%; background: transparent; border: 1.5px solid var(--ink); border-radius: 16px;
  padding: 20px 22px; font-size: 16px; outline: none; font-family: var(--font-display);
}
.field textarea { resize: vertical; }
.form-footer { display: flex; align-items: center; justify-content: flex-end; gap: 26px; flex-wrap: wrap; }
.check-label { display: flex; align-items: center; gap: 8px; cursor: pointer; color: var(--ink); font-size: 16px; }
.check-label input { width: 16px; height: 16px; accent-color: var(--accent); }
.form-status { margin-top: 22px; text-align: right; font-weight: 600; font-size: 16px; display: none; }
.form-status.ok { color: var(--accent); display: block; }
.form-status.error { color: #b3261e; display: block; }

/* ---- Footer --------------------------------------------------------------*/
.site-footer { border-top: 1px solid rgba(26, 26, 26, .08); padding: 40px 0; }
.footer-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-social { display: flex; gap: 22px; }
.copyright, .credit { font-weight: 600; font-size: 14px; letter-spacing: 1px; }
.credit { font-weight: 700; }
.copyright .accent, .credit .accent { color: var(--accent); }

/* ==========================================================================
   Custom cursor (desktop pointer devices only — see main.js)
   ========================================================================== */
html.has-custom-cursor, html.has-custom-cursor * { cursor: none !important; }
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9999;
  transform: translate(-50%, -50%); opacity: 0; will-change: transform;
}
.cursor-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--ink);
}
.cursor-ring {
  width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--ink);
  display: flex; align-items: center; justify-content: center;
  transition: width .3s cubic-bezier(.2,.8,.2,1), height .3s cubic-bezier(.2,.8,.2,1),
              border-color .3s ease, background .3s ease;
}
html.has-custom-cursor .cursor-dot, html.has-custom-cursor .cursor-ring { opacity: 1; }
.cursor-ring.is-active { width: 64px; height: 64px; border-color: var(--accent); background: rgba(47,158,130,.08); }
.cursor-ring.is-view { width: 92px; height: 92px; background: var(--accent); border-color: var(--accent); }
.cursor-ring #cursorLabel, .cursor-ring span {
  font-family: var(--font-display); font-weight: 700; font-size: 12px; letter-spacing: 1px;
  color: #fff; opacity: 0; transition: opacity .2s ease;
}
.cursor-ring.is-view span { opacity: 1; }

/* ==========================================================================
   Text-split spans (words / chars) — wrapped by main.js, animated by GSAP
   ========================================================================== */
.split-word, .split-char { display: inline-block; overflow: hidden; vertical-align: top; }
.split-word-inner, .split-char-inner { display: inline-block; will-change: transform; }
.hero-name .split-char { vertical-align: top; }

/* ==========================================================================
   Image reveal wipe (hero photo, portfolio thumbs, news thumbs, portrait)
   ========================================================================== */
.reveal-img { position: relative; overflow: hidden; }
.reveal-img img { will-change: transform; }
.reveal-img .wipe {
  position: absolute; inset: 0; background: var(--accent); z-index: 2;
  transform-origin: left; pointer-events: none;
}

/* ==========================================================================
   Portrait section
   ========================================================================== */
.portrait-section { padding: 60px 0 100px; }
.portrait-grid { position: relative; z-index: 1; display: grid; grid-template-columns: .85fr 1fr; gap: 70px; align-items: center; }
@media (max-width: 900px) { .portrait-grid { grid-template-columns: 1fr; } }
.portrait-media { position: relative; }
.portrait-photo {
  border-radius: 24px; overflow: hidden; aspect-ratio: 4/5; max-width: 420px;
  box-shadow: 0 40px 60px -30px rgba(0, 0, 0, .35);
}
.portrait-photo img { width: 100%; height: 100%; object-fit: cover; }
.portrait-inset {
  position: absolute; right: -8%; bottom: -10%; width: 42%; aspect-ratio: 1/1;
  border-radius: 18px; overflow: hidden; border: 6px solid var(--bg);
  box-shadow: 0 26px 40px -18px rgba(0, 0, 0, .4);
}
.portrait-inset img { width: 100%; height: 100%; object-fit: cover; }
.portrait-dots { left: -10%; top: -8%; width: 110px; height: 110px; }
.portrait-text .portrait-quote {
  font-family: var(--font-script); font-weight: 700; font-size: clamp(28px, 3vw, 38px);
  line-height: 1.25; margin: 18px 0 26px; color: var(--ink);
}
.portrait-body { color: var(--muted); font-size: 17px; line-height: 1.8; margin-bottom: 32px; max-width: 560px; }
.portrait-body em { color: var(--accent); font-style: normal; font-weight: 600; }
@media (max-width: 900px) {
  .portrait-photo { max-width: 340px; margin: 0 auto; }
  .portrait-inset { right: 4%; }
}

/* ==========================================================================
   Team avatar badges (no photo on file — an initials badge stands in,
   rather than mislabeling anyone else's photo)
   ========================================================================== */
.avatar-badge {
  width: 96px; height: 96px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 800; font-size: 32px; letter-spacing: 1px; color: #fff;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  box-shadow: 0 16px 26px -12px rgba(47, 158, 130, .6);
}
@media (max-width: 640px) { .footer-row { flex-direction: column; } }

/* ==========================================================================
   Engagements — index éditorial numéroté + panneau de lecture
   ========================================================================== */
.eng-index { border-top: 1px solid var(--line); }
.eng-row {
  position: relative; width: 100%; background: none; border: 0; cursor: pointer;
  display: grid; grid-template-columns: 90px 1fr auto; align-items: center; gap: 24px;
  padding: 34px 10px; border-bottom: 1px solid var(--line); text-align: left;
  font-family: var(--font-display); color: var(--ink);
  transition: padding .35s ease, background .35s ease;
}
.eng-row:hover { padding-left: 26px; padding-right: 26px; background: rgba(255, 255, 255, .55); }
.eng-num { font-weight: 800; font-size: 15px; letter-spacing: 2px; color: var(--accent); }
.eng-name { font-weight: 800; font-size: clamp(21px, 2.6vw, 34px); letter-spacing: .5px; line-height: 1.15; }
.eng-baseline { margin-top: 8px; color: var(--muted); font-size: 15px; line-height: 1.6; max-width: 62ch; }
.eng-go {
  width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid var(--ink);
  display: flex; align-items: center; justify-content: center; flex: none;
  transition: background .3s ease, border-color .3s ease, transform .3s ease;
}
.eng-row:hover .eng-go { background: var(--accent); border-color: var(--accent); transform: rotate(-45deg); }
.eng-row:hover .eng-go svg { stroke: #fff; }
@media (max-width: 639px) {
  .eng-row { grid-template-columns: 52px 1fr; gap: 14px; padding: 26px 4px; }
  .eng-go { display: none; }
}

.eng-panel { position: fixed; inset: 0; z-index: 200; display: none; }
.eng-panel.open { display: block; }
.eng-panel-backdrop { position: absolute; inset: 0; background: rgba(26, 26, 26, .55); backdrop-filter: blur(4px); }
.eng-panel-inner {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(760px, 100%);
  background: var(--bg-2); overflow-y: auto;
  padding: 84px clamp(22px, 5vw, 64px) 64px;
  box-shadow: -30px 0 60px -30px rgba(0, 0, 0, .45);
}
.eng-close {
  position: absolute; top: 22px; right: 22px; width: 46px; height: 46px; border-radius: 50%;
  border: 1.5px solid var(--ink); background: var(--bg); cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: background .25s;
}
.eng-close:hover { background: var(--ink); }
.eng-close:hover svg { stroke: #fff; }
.eng-panel-num { font-weight: 800; font-size: 14px; letter-spacing: 2px; color: var(--accent); margin-bottom: 10px; }
.eng-panel-title { font-weight: 800; font-size: clamp(27px, 4vw, 44px); line-height: 1.1; margin-bottom: 10px; }
.eng-panel-baseline { font-family: var(--font-script); font-size: 28px; color: var(--muted); margin-bottom: 26px; }
.eng-panel-body h4 { font-weight: 700; font-size: 19px; margin: 26px 0 10px; }
.eng-panel-body p { color: var(--muted); font-size: 16px; line-height: 1.8; margin-bottom: 14px; }
.eng-panel-body ul { margin: 0 0 14px 20px; color: var(--muted); font-size: 16px; line-height: 1.9; }
.eng-panel-body .eng-punch {
  font-weight: 700; color: var(--ink); font-size: 17px; line-height: 1.6;
  border-left: 3px solid var(--accent); padding-left: 16px; margin: 22px 0;
}
body.eng-open { overflow: hidden; }

/* ---- Bande "impact en une phrase" --------------------------------------- */
.impact-band { text-align: center; max-width: 62ch; margin: 0 auto; }
.impact-kicker { font-weight: 700; font-size: 13px; letter-spacing: 2.5px; color: var(--accent); margin-bottom: 22px; }
.impact-quote { font-weight: 800; font-size: clamp(23px, 3.4vw, 40px); line-height: 1.32; }
.impact-quote .script { font-family: var(--font-script); color: var(--accent); font-weight: 700; }

/* ---- Parcours : mention de réseau / distinction ------------------------- */
.value-year { font-weight: 700; font-size: 15px; white-space: nowrap; color: var(--accent); }

/* Fondu d'entrée des cartes de projets au changement de filtre (indépendant de GSAP). */
@keyframes pfIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.pf-card.pf-anim { animation: pfIn .35s ease both; }
