/* Picture Selection — shared stylesheet */

:root {
  --bg-1: #170b1c;
  --bg-2: #33122f;
  --bg-3: #5a1330;
  --bg-4: #2c1030;
  --red: #E8281E;
  --red-hover: #c71f16;
  --plum: #460E49;
  --cream: #F7F5F0;
  --warm-gray: #EFEBE3;
  --ink: #1A1918;
  --header-h: 84px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg-1);
  color: var(--cream);
  font-family: 'Poppins', sans-serif;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-wrap: break-word;
  word-wrap: break-word;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { font-family: 'Poppins', sans-serif; }
input, textarea { font-family: 'Poppins', sans-serif; }
h1, h2, h3 { font-family: 'Poppins', sans-serif; font-weight: 700; margin: 0; }
strong { font-weight: 600; }
::selection { background: var(--ink); color: var(--cream); }

@keyframes bgRotate { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* ---------- Background canvas (shared, fixed, single seamless layer) ---------- */
.site-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: linear-gradient(160deg, #170b1c 0%, #33122f 22%, #5a1330 42%, #2c1030 65%, #170b1c 90%);
}
.site-bg::before {
  content: "";
  position: absolute;
  inset: -15%;
  background-image: repeating-radial-gradient(circle at 60% 30%, transparent 0, transparent 70px, rgba(247,245,240,.04) 71px, rgba(247,245,240,.04) 72px);
  animation: bgRotate 120s linear infinite;
}
.site-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 72% 18%, rgba(232,40,30,.42), transparent 42%);
}
@media (prefers-reduced-motion: reduce) {
  .site-bg::before { animation: none; }
}

.page { position: relative; z-index: 1; min-height: 100vh; width: 100%; }

/* ---------- Header ---------- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  padding: 0 48px;
  background: rgba(23,11,28,.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(247,245,240,.14);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--cream); }
.brand img { width: 34px; height: 34px; object-fit: contain; border-radius: 50%; }
.brand span { font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
.brand .brand-red { color: var(--red); }

.nav { display: flex; gap: 26px; align-items: center; white-space: nowrap; }
.nav-link {
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(247,245,240,.65);
  transition: color .25s var(--ease);
}
.nav-link:hover, .nav-link:focus-visible { color: var(--cream); }
.nav-link.is-current { color: var(--cream); font-weight: 600; }
.nav-cta {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--cream);
  background: var(--ink);
  padding: 11px 22px;
  border-radius: 100px;
  transition: background .25s var(--ease);
}
.nav-cta:hover, .nav-cta:focus-visible { background: var(--red); }
.nav-cta.is-current { background: var(--red); }

.hamburger {
  display: none;
  width: 40px; height: 40px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.hamburger span {
  width: 22px; height: 1px;
  background: var(--cream);
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.hamburger[aria-expanded="true"] span:first-child { transform: translateY(3px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:last-child { transform: translateY(-3px) rotate(-45deg); }

.mobile-nav {
  position: fixed;
  top: var(--header-h); left: 0; right: 0; bottom: 0;
  z-index: 49;
  background: rgba(23,11,28,.98);
  backdrop-filter: blur(14px);
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 24px 48px;
  transform: translateY(-12px);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s linear .3s;
}
.mobile-nav.is-open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s;
}
.mobile-nav a {
  font-size: 22px;
  font-weight: 300;
  padding: 18px 0;
  color: var(--cream);
  border-bottom: 1px solid rgba(247,245,240,.14);
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a.is-current { font-weight: 600; }

@media (max-width: 1024px) {
  .nav { display: none; }
  .hamburger { display: flex; }
}
@media (min-width: 1025px) {
  .mobile-nav { display: none; }
}

/* ---------- Reveal-on-scroll ---------- */
.reveal { opacity: 1; transform: none; }
html.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
html.js .reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Intro loader (camera-aperture opening) ---------- */
/* Hidden by default with no styling dependency on JS; the inline
   pre-script in <body> hides it synchronously (before first paint) when
   it shouldn't play, and main.js removes it outright once the opening
   animation finishes — so a stalled/unsupported mask never blocks the
   page permanently. */
html.intro-lock, html.intro-lock body { overflow: hidden; height: 100%; }
.intro-loader {
  --intro-r: 0px;
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, var(--bg-1) 0%, var(--bg-2) 22%, var(--bg-3) 42%, var(--bg-4) 65%, var(--bg-1) 90%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, transparent var(--intro-r), #000 calc(var(--intro-r) + 1px));
  mask-image: radial-gradient(circle at 50% 50%, transparent var(--intro-r), #000 calc(var(--intro-r) + 1px));
}
.intro-ring { position: relative; width: 108px; height: 108px; }
.intro-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.intro-ring-track { fill: none; stroke: rgba(247,245,240,.16); stroke-width: 1.5; }
.intro-ring-bar {
  fill: none;
  stroke: var(--red);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-dasharray: 289;
  stroke-dashoffset: 289;
  animation: introRing 1s .15s cubic-bezier(.65,0,.35,1) forwards;
}
.intro-logo {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 46px;
  height: 46px;
  opacity: 0;
  transform: scale(.72);
  animation: introLogoIn .6s .05s cubic-bezier(.2,.8,.2,1) forwards;
}
@keyframes introRing { to { stroke-dashoffset: 0; } }
@keyframes introLogoIn { to { opacity: 1; transform: scale(1); } }
@media (prefers-reduced-motion: reduce) {
  .intro-loader { display: none !important; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: background .25s var(--ease), border-color .25s var(--ease), transform .2s var(--ease), box-shadow .25s var(--ease);
}
.btn:active { transform: scale(.97); }
.btn-primary { color: var(--cream); background: var(--red); padding: 17px 32px; }
.btn-primary:hover, .btn-primary:focus-visible { background: var(--red-hover); box-shadow: 0 12px 32px rgba(232,40,30,.28); }
.btn-outline { color: var(--cream); padding: 16px 30px; border: 1px solid rgba(247,245,240,.4); }
.btn-outline:hover, .btn-outline:focus-visible { border-color: var(--cream); background: rgba(247,245,240,.08); }
.btn-dark { color: var(--cream); background: var(--ink); padding: 17px 36px; }
.btn-dark:hover, .btn-dark:focus-visible { background: var(--red); }

/* ---------- Layout helpers ---------- */
.section { padding: 16px 48px 56px; }
.wrap { max-width: 1180px; margin: 0 auto; }
.card-cream { background: var(--cream); border-radius: 32px; padding: 88px 56px; color: var(--ink); }
.card-warm { background: var(--warm-gray); border-radius: 32px; }
.eyebrow { font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--red); font-weight: 600; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 172px 48px 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 26px;
}
.hero-logo {
  width: 104px; height: 104px;
  object-fit: contain;
  border-radius: 50%;
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
}
.hero h1 {
  margin: 0;
  font-size: clamp(38px,6vw,80px);
  font-weight: 700 !important;
  line-height: 1.08;
  letter-spacing: -.02em;
  max-width: 920px;
  color: var(--cream);
}
.hero h1 .accent { color: var(--red); font-weight: 700 !important; }
.hero p {
  margin: 0;
  max-width: 560px;
  font-size: 19px;
  font-weight: 300;
  line-height: 1.6;
  color: rgba(247,245,240,.62);
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; margin-top: 12px; }

.page-hero { padding: 172px 48px 56px; max-width: 1180px; margin: 0 auto; }
.page-hero h1 {
  margin: 20px 0 0;
  font-size: clamp(36px,5.6vw,72px);
  font-weight: 700 !important;
  line-height: 1.08;
  letter-spacing: -.02em;
  max-width: 760px;
  color: var(--cream);
}
.page-hero p {
  margin: 24px 0 0;
  font-size: 19px;
  font-weight: 300;
  line-height: 1.6;
  color: rgba(247,245,240,.62);
  max-width: 600px;
}

/* ---------- Stats ---------- */
.stats {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 56px 40px;
  text-align: center;
}
.stat { display: flex; flex-direction: column; align-items: center; gap: 6px; max-width: 200px; }
.stat-num {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(34px,4.2vw,64px);
  font-weight: 700 !important;
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--cream);
  white-space: nowrap;
}
.stat-label { font-size: 12px; font-weight: 500; letter-spacing: .03em; color: rgba(247,245,240,.62); line-height: 1.4; }

/* ---------- Portfolio teaser / grid ---------- */
.portfolio-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 56px;
}
.portfolio-head h2 { font-size: clamp(28px,3.4vw,44px); font-weight: 700 !important; letter-spacing: -.01em; }
.portfolio-link {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
  transition: color .25s var(--ease), border-color .25s var(--ease);
}
.portfolio-link:hover, .portfolio-link:focus-visible { border-color: var(--red); color: var(--red); }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: var(--cream); padding: 0 48px 32px; }
.footer-top {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 48px;
  padding: 56px 0 48px;
  border-top: 1px solid rgba(247,245,240,.14);
}
.footer-brand { display: flex; flex-direction: column; gap: 16px; max-width: 320px; }
.footer-brand .brand { font-size: 15px; font-weight: 600; letter-spacing: .14em; }
.footer-brand .brand img { width: 28px; height: 28px; }
.footer-brand p { margin: 0; font-size: 14px; font-weight: 300; color: rgba(247,245,240,.6); line-height: 1.6; }
.footer-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col-title { font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: rgba(247,245,240,.45); }
.footer-col a { font-size: 14px; font-weight: 300; color: rgba(247,245,240,.85); transition: color .25s var(--ease); }
.footer-col a:hover, .footer-col a:focus-visible { color: var(--red); }
.footer-bottom {
  max-width: 1180px;
  margin: 0 auto;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-bottom span { font-size: 12px; font-weight: 300; color: rgba(247,245,240,.4); }
.footer--home { padding: 80px 48px 32px; }
.footer--home .footer-top { border-top: none; padding-top: 0; padding-bottom: 48px; border-bottom: 1px solid rgba(247,245,240,.14); }

/* ---------- About: histoire / duo / manifeste ---------- */
.about-hero { padding: 172px 48px 64px; max-width: 900px; margin: 0 auto; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.about-hero h1 { font-size: clamp(34px,5.2vw,64px); font-weight: 700 !important; line-height: 1.12; letter-spacing: -.02em; color: var(--cream); }

.recit-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(120px,230px) minmax(320px,1fr) minmax(120px,230px);
  gap: 0;
  align-items: stretch;
}
.recit-photo { min-height: 460px; overflow: hidden; }
.recit-photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05) brightness(.95); }
.recit-photo--left {
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 45%);
  mask-image: linear-gradient(to right, transparent 0%, #000 45%);
}
.recit-photo--right {
  -webkit-mask-image: linear-gradient(to left, transparent 0%, #000 45%);
  mask-image: linear-gradient(to left, transparent 0%, #000 45%);
}
.recit-text {
  background: var(--cream);
  color: var(--ink);
  padding: 72px 48px;
  display: flex;
  flex-direction: column;
  gap: 26px;
  justify-content: center;
}
.recit-text p.lead { margin: 0; font-size: clamp(19px,2vw,23px); font-weight: 300; line-height: 1.6; letter-spacing: -.01em; }
.recit-text p { margin: 0; font-size: 16px; font-weight: 300; line-height: 1.75; color: rgba(26,25,24,.68); }

@media (max-width: 1024px) {
  .recit-grid { grid-template-columns: 1fr; max-width: 600px; gap: 20px; }
  .recit-photo { min-height: 0; height: 280px; -webkit-mask-image: none; mask-image: none; }
  .recit-text { border-radius: 28px; padding: 44px 32px; gap: 22px; }
  .recit-text p.lead { font-size: 19px; }
  .recit-text p { font-size: 15px; }
}

.duo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 32px; align-items: start; }
.duo-card { background: var(--cream); color: var(--ink); border-radius: 28px; padding: 44px; display: flex; flex-direction: column; gap: 20px; }
.duo-photo { width: 96px; height: 96px; border-radius: 50%; overflow: hidden; }
.duo-photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }
.duo-role { font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--red); }
.duo-card h3 { margin: 8px 0 0; font-size: 24px; font-weight: 500 !important; color: var(--ink); }
.duo-card p { margin: 0; font-size: 15px; font-weight: 300; line-height: 1.7; color: rgba(26,25,24,.65); }
.duo-card p strong { color: var(--ink); }

.duo-bio { display: flex; flex-direction: column; gap: 20px; }
.duo-bio.is-collapsible {
  position: relative;
  overflow: hidden;
  max-height: 78px;
  transition: max-height .5s var(--ease);
}
.duo-bio.is-collapsible::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 56px;
  background: linear-gradient(to bottom, rgba(247,245,240,0), var(--cream));
  transition: opacity .3s var(--ease);
  pointer-events: none;
}
.duo-bio.is-collapsible.is-expanded::after { opacity: 0; }

.duo-toggle {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--red);
  transition: color .25s var(--ease);
}
.duo-toggle:hover, .duo-toggle:focus-visible { color: var(--red-hover); }
.duo-toggle svg { width: 12px; height: 12px; transition: transform .3s var(--ease); }
.duo-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }

.mission-box { max-width: 780px; margin: 0 auto; background: var(--warm-gray); border-radius: 32px; padding: 72px 56px; text-align: center; display: flex; flex-direction: column; gap: 16px; color: var(--ink); }
.mission-box .eyebrow { font-size: 11.5px; font-weight: 600; letter-spacing: .1em; }
.mission-box p { margin: 0; font-size: clamp(18px,2vw,22px); font-weight: 300; line-height: 1.65; color: var(--ink); }

.manifesto { padding: 64px 48px 120px; max-width: 820px; margin: 0 auto; text-align: center; }
.manifesto p { margin: 0; font-size: clamp(24px,3.4vw,38px); font-weight: 300; line-height: 1.4; letter-spacing: -.01em; color: var(--cream); }
.manifesto .accent { color: var(--red); }

.section-title-center { margin: 0 0 32px; font-size: clamp(24px,3vw,36px); font-weight: 700 !important; letter-spacing: -.01em; color: var(--cream); text-align: center; }

/* ---------- Services ---------- */
.expertise-list { display: flex; flex-direction: column; }
.expertise-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 32px;
  padding: 48px 0;
  border-top: 1px solid rgba(26,25,24,.14);
}
.expertise-list .expertise-item:last-child { border-bottom: 1px solid rgba(26,25,24,.14); }
.expertise-num { font-size: 14px; font-weight: 500; color: rgba(26,25,24,.4); }
@media (max-width: 560px) {
  .expertise-item { grid-template-columns: 1fr; gap: 10px; }
}
.expertise-body { display: flex; flex-direction: column; gap: 12px; max-width: 680px; min-width: 0; }
.expertise-body h2 { font-size: clamp(24px,2.6vw,34px); font-weight: 400 !important; letter-spacing: -.01em; color: var(--ink); }
.expertise-body p { margin: 0; font-size: 16px; font-weight: 300; line-height: 1.7; color: rgba(26,25,24,.62); }
.expertise-body ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.expertise-body li { position: relative; padding-left: 20px; font-size: 16px; font-weight: 300; line-height: 1.5; color: rgba(26,25,24,.62); }
.expertise-body li::before { content: ""; position: absolute; left: 2px; top: 9px; width: 5px; height: 5px; border-radius: 50%; background: var(--red); }

.methodology { padding: 80px 56px; color: var(--ink); }
.methodology h2 { margin: 0 0 56px; font-size: clamp(28px,3.4vw,44px); font-weight: 700 !important; letter-spacing: -.01em; color: var(--ink); }
.methodology-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 32px; }
.methodology-step { display: flex; flex-direction: column; gap: 14px; }
.methodology-step .num { font-size: 36px; font-weight: 200; color: transparent; -webkit-text-stroke: 1px var(--ink); }
.methodology-step .name { font-size: 19px; font-weight: 500; color: var(--ink); }
.methodology-step p { margin: 0; font-size: 14.5px; font-weight: 300; line-height: 1.6; color: rgba(26,25,24,.6); }

.cta-block { padding: 96px 48px; max-width: 900px; margin: 0 auto; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 28px; }
.cta-block h2 { font-size: clamp(26px,3.4vw,40px); font-weight: 700 !important; letter-spacing: -.01em; color: var(--cream); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(320px,1.4fr) minmax(260px,1fr); gap: 64px; align-items: start; }
.contact-grid > * { min-width: 0; }
.contact-form { display: flex; flex-direction: column; gap: 28px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.form-row > * { min-width: 0; }
.field input, .field textarea { width: 100%; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field span { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: rgba(26,25,24,.5); }
.field input, .field textarea {
  border: none;
  border-bottom: 1px solid rgba(26,25,24,.25);
  background: transparent;
  padding: 10px 2px;
  font-size: 16px;
  font-weight: 300;
  color: var(--ink);
  outline: none;
  transition: border-color .25s var(--ease);
}
.field input:focus, .field textarea:focus { border-color: var(--red); }
.field textarea { resize: vertical; }
.contact-success {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 48px;
  background: var(--warm-gray);
  border-radius: 18px;
  color: var(--ink);
  animation: fadeIn .5s var(--ease);
}
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.contact-success .title { font-size: 24px; font-weight: 400; }
.contact-success p { margin: 0; font-size: 15px; font-weight: 300; line-height: 1.6; color: rgba(26,25,24,.65); }

.contact-info { display: flex; flex-direction: column; gap: 40px; color: var(--ink); }
.contact-info-block { display: flex; flex-direction: column; gap: 8px; }
.contact-info-block .label { font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: rgba(26,25,24,.45); }
.contact-info-block a, .contact-info-block .value { font-size: 18px; font-weight: 400; color: var(--ink); transition: color .25s var(--ease); }
.contact-info-block a:hover, .contact-info-block a:focus-visible { color: var(--red); }
.contact-info-block .sub { font-size: 15px; font-weight: 300; color: rgba(26,25,24,.6); }
.contact-info-block .social a { font-size: 16px; }

@media (max-width: 800px) {
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

/* ---------- Responsive card padding ---------- */
@media (max-width: 640px) {
  .card-cream, .methodology, .mission-box, .duo-card, .expertise-list, .card-warm > div { padding-left: 28px; padding-right: 28px; }
  .header, .hero, .section, .footer-top, .footer-bottom { padding-left: 24px; padding-right: 24px; }
}

/* ---------- Portfolio project cards (cinematic cover + auto gallery) ---------- */
.pf-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 40px; }
.pf-project { display: flex; flex-direction: column; gap: 16px; cursor: default; }
.pf-project.has-photo { cursor: pointer; }
.pf-project-cover {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: 16px;
  overflow: hidden;
  background:
    repeating-linear-gradient(135deg, rgba(26,25,24,.05) 0 2px, transparent 2px 14px),
    linear-gradient(155deg, #ece7dc 0%, #f7f5f0 55%, #ece7dc 100%);
  border: 1px dashed rgba(26,25,24,.18);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.pf-project.has-photo .pf-project-cover { border: none; }
.pf-project.has-photo:hover .pf-project-cover { transform: translateY(-6px); box-shadow: 0 24px 48px rgba(0,0,0,.4); }
.pf-project-cover img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .5s var(--ease), transform .6s var(--ease);
}
.pf-project-cover img.is-loaded { opacity: 1; }
.pf-project.has-photo:hover .pf-project-cover img { transform: scale(1.06); }
.pf-project-placeholder {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; padding: 20px; text-align: center;
  color: rgba(26,25,24,.45);
}
.pf-project-placeholder svg { width: 30px; height: 30px; opacity: .55; }
.pf-project-placeholder span { font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.pf-project.has-photo .pf-project-placeholder { display: none; }
.pf-project-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: flex-end; justify-content: flex-start;
  padding: 22px;
  background: linear-gradient(to top, rgba(0,0,0,.55), transparent 55%);
  opacity: 0;
  transition: opacity .35s var(--ease);
}
.pf-project.has-photo:hover .pf-project-overlay { opacity: 1; }
.pf-project-cta { font-size: 12.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--cream); }
.pf-project-meta { display: flex; flex-direction: column; gap: 4px; }
.pf-project-tag { font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--red); }
.pf-project-title { font-family: 'Poppins', sans-serif; font-size: 19px; font-weight: 700; color: var(--cream); }
.pf-project-count { font-size: 12.5px; font-weight: 300; color: rgba(247,245,240,.5); }

/* ---------- Réalisations gallery (flat, auto-populated) ---------- */
.pf-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px,1fr)); gap: 20px; }
.pf-gallery-empty { font-size: 14px; font-weight: 300; color: rgba(247,245,240,.5); text-align: center; padding: 24px 0; }
.pf-gallery-item {
  position: relative;
  aspect-ratio: 1/1;
  border-radius: 14px;
  overflow: hidden;
  border: none;
  padding: 0;
  cursor: pointer;
  background: rgba(247,245,240,.06);
}
.pf-gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease);
}
.pf-gallery-item:hover img { transform: scale(1.08); }
.pf-gallery-item::after {
  content: "";
  position: absolute; inset: 0;
  background: rgba(23,11,28,0);
  transition: background .3s var(--ease);
}
.pf-gallery-item:hover::after { background: rgba(23,11,28,.15); }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: rgba(10,4,13,.96);
  opacity: 0;
  transition: opacity .35s var(--ease);
}
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }
.lightbox-stage { position: relative; width: min(1100px, 92vw); height: min(74vh, 900px); display: flex; align-items: center; justify-content: center; }
.lightbox-image { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; opacity: 0; transition: opacity .3s var(--ease); box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.lightbox-meta { display: flex; align-items: center; gap: 14px; margin-top: 20px; color: rgba(247,245,240,.75); }
.lightbox-title { font-size: 14px; font-weight: 500; color: var(--cream); }
.lightbox-count { font-size: 13px; font-weight: 300; color: rgba(247,245,240,.5); }
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute;
  background: rgba(247,245,240,.08);
  border: 1px solid rgba(247,245,240,.18);
  color: var(--cream);
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .25s var(--ease), transform .2s var(--ease);
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: rgba(247,245,240,.18); }
.lightbox-close { top: 24px; right: 24px; width: 44px; height: 44px; font-size: 24px; line-height: 1; }
.lightbox-prev, .lightbox-next { top: 50%; transform: translateY(-50%); width: 52px; height: 52px; font-size: 26px; }
.lightbox-prev:hover, .lightbox-next:hover { transform: translateY(-50%) scale(1.06); }
.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }
@media (max-width: 700px) {
  .lightbox-prev, .lightbox-next { width: 40px; height: 40px; font-size: 20px; }
  .lightbox-prev { left: 10px; }
  .lightbox-next { right: 10px; }
  .lightbox-close { top: 12px; right: 12px; width: 38px; height: 38px; }
}
