
:root {
  --cream: #f7f2ea;
  --paper: #fffdf9;
  --ink: #171411;
  --muted: #6f645c;
  --line: #ded3c8;
  --terra: #c85f3d;
  --terra-dark: #9f4329;
  --terra-soft: #efd4c8;
  --shadow: 0 24px 60px rgba(55, 34, 24, 0.12);
}

* { box-sizing: border-box; }
/* L'attribut [hidden] doit TOUJOURS l'emporter : .lightbox/.case-study posent
   display:flex/block et masqueraient sinon un calque invisible qui bloque les clics. */
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: Poppins, "Avenir Next", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
/* Focus clavier visible et cohérent (accessibilité) */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible,
.zoomable:focus-visible {
  outline: 3px solid var(--terra);
  outline-offset: 3px;
  border-radius: 6px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 82px;
  padding: 0 clamp(24px, 4vw, 72px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid rgba(111, 92, 80, 0.18);
  background: color-mix(in srgb, var(--cream) 91%, transparent);
  backdrop-filter: blur(16px);
}
.wordmark { font-size: 1.55rem; font-weight: 800; letter-spacing: -0.06em; }
.wordmark span { color: var(--terra); }
.desktop-nav { display: flex; gap: clamp(22px, 2.6vw, 42px); }
.desktop-nav a {
  position: relative;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 600;
  transition: color 180ms ease;
}
.desktop-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -11px;
  height: 2px;
  background: var(--terra);
  transition: right 180ms ease;
}
.desktop-nav a:hover, .desktop-nav .active { color: var(--ink); }
.desktop-nav a:hover::after, .desktop-nav .active::after { right: 0; }
.cv-link {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 20px;
  border-radius: 999px;
  background: var(--ink);
  color: white;
  font-size: 0.72rem;
  font-weight: 700;
}
.cv-link span { color: var(--terra-soft); }
.mobile-menu { display: none; }

.hero {
  width: min(1440px, 100%);
  min-height: calc(100svh - 82px);
  margin: 0 auto;
  padding: clamp(48px, 6vw, 90px) clamp(24px, 4vw, 72px) 50px;
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(460px, 0.78fr);
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
  overflow: hidden;
}
.hero-copy { padding-bottom: 8px; }
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 30px;
  color: var(--ink);
  font-size: clamp(0.64rem, 0.8vw, 0.76rem);
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.eyebrow span { width: 8px; height: 8px; border-radius: 50%; background: var(--terra); }
.eyebrow i { width: 26px; height: 1px; background: var(--line); }
.hero h1 {
  margin: 0;
  max-width: 780px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4.25rem, 7.2vw, 7.4rem);
  font-weight: 400;
  line-height: 0.84;
  letter-spacing: -0.075em;
}
.hero h1 em {
  display: inline-block;
  margin-left: 0.08em;
  color: var(--terra);
  font-weight: 400;
  letter-spacing: -0.065em;
}
.hero-intro { max-width: 520px; margin: 42px 0 0; color: var(--muted); font-size: 0.98rem; line-height: 1.75; }
.hero-actions { display: flex; gap: 14px; margin-top: 28px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 50px;
  padding: 0 24px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 750;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}
.button:hover { transform: translateY(-3px); }
.button.primary { background: var(--terra); color: white; box-shadow: 0 12px 28px rgba(200,95,61,.2); }
.button.primary:hover { background: var(--terra-dark); box-shadow: 0 18px 36px rgba(200,95,61,.28); }
.button.secondary { border: 1px solid var(--ink); }
.button.secondary:hover { background: var(--ink); color: white; }
.hero-note {
  margin-top: clamp(36px, 5vw, 70px);
  padding-top: 18px;
  display: flex;
  gap: 20px;
  align-items: baseline;
  border-top: 1px solid var(--line);
  max-width: 560px;
}
.hero-note span { color: var(--terra); font-size: 0.68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .11em; }
.hero-note p { margin: 0; color: var(--muted); font-size: 0.76rem; }

.hero-visual {
  position: relative;
  width: 100%;
  max-width: 590px;
  justify-self: end;
  padding: 20px 24px 0 10px;
}
.portrait-arch {
  position: relative;
  z-index: 2;
  aspect-ratio: 0.91;
  overflow: hidden;
  border-radius: 48% 48% 28px 28px;
  background: #9c9798;
  box-shadow: 18px 18px 0 var(--terra), var(--shadow);
}
.portrait { width: 100%; height: 100%; object-fit: cover; object-position: center 28%; transform: scale(1.02); }
.availability {
  position: absolute;
  z-index: 5;
  top: 22%;
  left: -54px;
  width: 132px;
  height: 132px;
  border-radius: 50%;
  display: grid;
  place-content: center;
  gap: 9px;
  padding: 18px;
  background: var(--ink);
  color: white;
  text-align: center;
  font-size: 0.66rem;
  font-weight: 800;
  line-height: 1.35;
  text-transform: uppercase;
  transform: rotate(-8deg);
}
.availability b { width: 8px; height: 8px; border-radius: 50%; background: #5fd29a; margin: 0 auto; }
.role-tag {
  position: absolute;
  z-index: 5;
  right: -7px;
  top: 12%;
  padding: 12px 17px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.avatar-pop {
  position: absolute;
  z-index: 6;
  left: -10px;
  bottom: -10px;
  width: clamp(118px, 12vw, 166px);
  aspect-ratio: 1;
  overflow: hidden;
  border: 6px solid var(--cream);
  border-radius: 50%;
  background: var(--cream);
  box-shadow: 0 18px 40px rgba(31,18,12,.18);
  transform: rotate(-5deg);
  transition: transform 220ms ease;
}
.avatar-pop:hover { transform: rotate(3deg) translateY(-8px); }
.avatar-pop img { width: 100%; height: 100%; object-fit: cover; object-position: center 12%; }
.spark { position: absolute; color: var(--terra); z-index: 4; }
.spark-one { top: 10px; right: 1px; font-size: 2rem; }
.spark-two { bottom: 10%; right: -18px; font-size: 1rem; }

.tool-ribbon {
  width: min(1310px, calc(100% - 48px));
  margin: 20px auto 0;
  padding: 24px 30px;
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 24px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--paper);
}
.tool-intro span { color: var(--terra); font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; }
.tool-intro p { margin: 8px 0 0; color: var(--muted); font-size: .76rem; }
.tool-marquee {
  min-width: 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.tool-track {
  width: max-content;
  display: flex;
  gap: 10px;
  animation: tool-scroll 25s linear infinite;
  will-change: transform;
}
.tool-set { display: flex; gap: 10px; }
.tool {
  width: 132px;
  min-height: 62px;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 15px;
  background: var(--cream);
  font-size: .7rem;
  font-weight: 700;
  transition: transform 170ms ease, background 170ms ease;
}
.tool:hover { transform: translateY(-5px) rotate(-1deg); background: var(--terra-soft); }
.tool-marquee:hover .tool-track, .tool-marquee:focus-within .tool-track { animation-play-state: paused; }
.tool img { width: 28px; height: 28px; object-fit: contain; }
.tool.capcut img { padding: 4px; border-radius: 6px; background: var(--ink); }
@keyframes tool-scroll {
  to { transform: translateX(calc(-50% - 5px)); }
}

.section-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 22px;
  color: var(--terra);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.section-kicker::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.section-kicker.light { color: #f2b7a3; }

.about-section {
  width: min(1440px, 100%);
  margin: 90px auto 0;
  padding: clamp(70px, 8vw, 120px) clamp(24px, 5vw, 84px);
  display: grid;
  grid-template-columns: minmax(380px, .82fr) 1.18fr;
  gap: clamp(60px, 8vw, 130px);
  align-items: center;
  background: var(--ink);
  color: white;
}
.about-media { position: relative; min-height: 620px; }
.about-photo-wrap {
  position: absolute;
  inset: 0 46px 36px 0;
  overflow: hidden;
  border-radius: 28px;
  background: #807b7c;
  box-shadow: -18px 20px 0 var(--terra);
}
.about-photo-wrap img { width: 100%; height: 100%; object-fit: cover; object-position: center 28%; }
.about-avatar {
  position: absolute;
  z-index: 2;
  right: -8px;
  bottom: -4px;
  width: 160px;
  height: 160px;
  overflow: hidden;
  border: 6px solid var(--ink);
  border-radius: 50%;
  background: var(--cream);
  transform: rotate(5deg);
}
.about-avatar img { width: 100%; height: 100%; object-fit: cover; object-position: center 14%; }
.photo-note {
  position: absolute;
  z-index: 3;
  left: -22px;
  bottom: 62px;
  margin: 0;
  padding: 18px 22px;
  border-radius: 16px;
  background: var(--terra);
  color: white;
  font-family: Georgia, serif;
  font-size: 1.05rem;
  line-height: 1.35;
  transform: rotate(-3deg);
}
.about-copy h2,
.section-heading h2,
.contact-intro h2 {
  margin: 0;
  font-size: clamp(2.65rem, 4.4vw, 5rem);
  line-height: 1.02;
  letter-spacing: -.06em;
}
.about-copy h2 { max-width: 760px; }
.about-lead { max-width: 700px; margin: 32px 0; color: #c8beb6; font-size: 1rem; line-height: 1.8; }
.button.paper { background: var(--paper); color: var(--ink); }
.button.paper:hover { background: var(--terra); color: white; }
.process-list {
  margin-top: 70px;
  padding-top: 34px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  border-top: 1px solid #403b37;
}
.process-list article { min-width: 0; }
.process-list b { color: var(--terra); font-size: .72rem; }
.process-list h3 { margin: 18px 0 12px; font-family: Georgia, serif; font-size: 1.35rem; font-weight: 400; }
.process-list p { margin: 0; color: #a99f98; font-size: .76rem; line-height: 1.65; }

.services-section,
.projects-section {
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: clamp(80px, 9vw, 130px) clamp(24px, 5vw, 84px);
}
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 54px;
}
.section-heading h2 { max-width: 900px; }
.section-heading > p { margin: 0 0 8px; color: var(--muted); font-size: .82rem; line-height: 1.7; text-align: right; }

.service-grid {
  display: grid;
  grid-template-columns: 1.2fr .82fr 1.08fr;
  grid-auto-rows: 285px;
  gap: 18px;
}
.service-card {
  position: relative;
  padding: 28px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 25px;
  background: var(--paper);
  transition: transform 220ms ease, box-shadow 220ms ease;
}
.service-card:hover { z-index: 2; transform: translateY(-8px) rotate(-.5deg); box-shadow: var(--shadow); }
.service-card.solid { background: var(--terra); color: white; border-color: var(--terra); }
.service-card.dark { background: var(--ink); color: white; border-color: var(--ink); }
.service-card.soft { background: var(--terra-soft); border-color: var(--terra-soft); }
.service-card.outline { background: transparent; border: 2px solid var(--terra); }
.service-card:nth-child(4) { grid-column: span 1; }
.service-card:nth-child(5) { grid-column: span 1; }
.service-card:nth-child(6) { grid-column: span 1; }
.service-top { display: flex; justify-content: space-between; color: var(--terra); font-size: .72rem; font-weight: 800; }
.solid .service-top, .dark .service-top { color: #f8b39c; }
.service-top i { font-style: normal; font-size: 1rem; transition: transform 180ms ease; }
.service-card:hover .service-top i { transform: translate(4px, -4px); }
.service-card h3 { max-width: 95%; margin: 40px 0 18px; font-size: clamp(1.25rem, 2vw, 1.75rem); line-height: 1.15; letter-spacing: -.035em; }
.service-card > p { max-width: 430px; margin: 0; color: var(--muted); font-size: .8rem; line-height: 1.65; }
.solid > p, .dark > p { color: #e6d8d1; }
.tag-list { margin-top: auto; display: flex; flex-wrap: wrap; gap: 7px; }
.tag-list span { padding: 7px 11px; border-radius: 999px; background: #eee6dd; font-size: .58rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.solid .tag-list span, .dark .tag-list span { background: var(--terra-soft); color: var(--ink); }
.service-avatar {
  margin: 26px 0 0 auto;
  width: min(420px, 100%);
  padding: 14px 18px 14px 12px;
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
}
.service-avatar img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; object-position: center 10%; }
.service-avatar span { color: var(--muted); font-size: .76rem; line-height: 1.45; }
.service-avatar b { color: var(--ink); }

.projects-section {
  position: relative;
  padding-top: 72px;
  overflow: hidden;
  background:
    radial-gradient(circle at 24% 37%, rgba(200,95,61,.12), transparent 23%),
    radial-gradient(circle at 82% 68%, rgba(239,212,200,.52), transparent 25%);
}
.projects-heading { max-width: 700px; margin: 0 auto 36px; text-align: center; }
.projects-heading .section-kicker { justify-content: center; }
.projects-heading h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.4rem, 6vw, 6rem);
  font-weight: 400;
  line-height: .9;
  letter-spacing: -.07em;
}
.projects-heading h2 em { color: var(--terra); font-weight: 400; }
.projects-heading > p:last-child { max-width: 490px; margin: 28px auto 0; color: var(--muted); font-size: .88rem; line-height: 1.7; }
.project-filters { margin-top: 26px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.project-filters button {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,253,249,.7);
  color: var(--muted);
  font: inherit;
  font-size: .66rem;
  font-weight: 750;
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease, transform 180ms ease;
}
.project-filters button:hover { color: var(--ink); border-color: var(--terra); transform: translateY(-2px); }
.project-filters button.active { border-color: var(--ink); background: var(--ink); color: white; }
.project-bubbles {
  position: relative;
  max-width: 1040px;
  height: auto;
  margin: 0 auto;
  padding: 38px 0 82px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 22px 18px;
}
.project-bubbles.filtered {
  height: auto;
  min-height: 390px;
  padding: 38px 0 82px;
}
.project-bubble {
  --size: 250px;
  position: relative;
  inset: auto;
  width: var(--size);
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: center;
  outline: none;
  cursor: pointer;
  transition: opacity 350ms ease, filter 350ms ease;
  animation: bubble-float 7s ease-in-out infinite;
}
.project-bubble:nth-child(2n) { animation-delay: -2.4s; }
.project-bubble:nth-child(3n) { animation-delay: -4.6s; }
.project-bubbles.filtered .project-bubble { --size: 280px; position: relative; inset: auto; width: var(--size); }
.project-bubbles.filtered .project-bubble:first-child { --size: 320px; }
.project-bubbles:has(.project-bubble:hover) .project-bubble:not(:hover),
.project-bubbles:has(.project-bubble:focus-visible) .project-bubble:not(:focus-visible) { opacity: .42; filter: saturate(.45); }
.bubble-1 { --size: 350px; }
.bubble-2 { --size: 245px; margin-top: 54px; }
.bubble-3 { --size: 260px; margin-top: 18px; }
.bubble-4 { --size: 240px; margin-top: -12px; }
.bubble-5 { --size: 275px; margin-top: 26px; }
.bubble-6 { --size: 225px; margin-top: -2px; }
.bubble-7 { --size: 255px; margin-top: 34px; }
.bubble-image {
  position: relative;
  width: var(--size);
  height: var(--size);
  overflow: hidden;
  border: 7px solid var(--paper);
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 28px 52px rgba(60,35,23,.17), 0 6px 0 rgba(200,95,61,.14);
  transition: transform 420ms cubic-bezier(.16,1,.3,1), box-shadow 420ms ease;
}
.bubble-image::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(160deg, transparent 55%, rgba(23,20,17,.26));
  pointer-events: none;
}
.bubble-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 650ms cubic-bezier(.16,1,.3,1); }
.project-bubble:hover .bubble-image, .project-bubble:focus .bubble-image { transform: translateY(-12px) scale(1.035); box-shadow: 0 38px 70px rgba(60,35,23,.25), 0 8px 0 var(--terra); }
.project-bubble:hover .bubble-image img, .project-bubble:focus .bubble-image img { transform: scale(1.09) rotate(.7deg); }
.project-bubble:focus-visible .bubble-image { outline: 3px solid var(--terra); outline-offset: 5px; }
.featured-pill {
  position: absolute;
  z-index: 2;
  top: 18px;
  left: 50%;
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--paper);
  box-shadow: 0 8px 20px rgba(23,20,17,.13);
  font-size: .62rem;
  font-weight: 850;
  letter-spacing: .11em;
  text-transform: uppercase;
  transform: translateX(-50%);
}
.bubble-arrow {
  position: absolute;
  z-index: 3;
  right: 9%;
  bottom: 10%;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--terra);
  color: white;
  font-size: 1.1rem;
  opacity: 0;
  transform: translate(-8px, 8px);
  transition: opacity 250ms ease, transform 250ms ease;
}
.project-bubble:hover .bubble-arrow, .project-bubble:focus .bubble-arrow { opacity: 1; transform: translate(0); }
.bubble-caption { margin-top: 18px; }
.bubble-caption h3 { margin: 0; font-size: clamp(1.05rem, 1.8vw, 1.45rem); letter-spacing: -.04em; }
.bubble-caption p { margin: 5px 0 0; color: var(--muted); font-size: .72rem; }
@keyframes bubble-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.case-study {
  position: fixed;
  z-index: 200;
  inset: 0;
  overflow-y: auto;
  background: var(--cream);
  animation: case-in 260ms ease both;
}
.case-nav {
  position: sticky;
  z-index: 5;
  top: 0;
  min-height: 76px;
  padding: 0 clamp(22px, 4vw, 68px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--cream) 91%, transparent);
  backdrop-filter: blur(16px);
}
.case-nav > span { color: var(--muted); font-size: .64rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.case-nav button {
  justify-self: end;
  padding: 11px 17px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: .68rem;
  font-weight: 750;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease;
}
.case-nav button:hover { background: var(--ink); color: white; }
.case-content { width: min(1440px, 100%); margin: 0 auto; padding: 0 clamp(24px, 5vw, 84px) 70px; }
.case-hero { padding: clamp(70px, 9vw, 130px) 0 clamp(60px, 8vw, 110px); text-align: center; }
.case-hero > p { margin: 0 0 28px; color: var(--terra); font-size: .68rem; font-weight: 850; letter-spacing: .16em; text-transform: uppercase; }
.case-hero h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(4.3rem, 10vw, 9rem); font-weight: 400; line-height: .82; letter-spacing: -.075em; }
.case-hero > span { display: block; margin-top: 30px; color: var(--muted); font-size: .72rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.case-overview { display: grid; grid-template-columns: .68fr 1.32fr; gap: clamp(44px, 7vw, 110px); align-items: start; padding-bottom: 110px; }
.case-facts { padding: 34px; display: grid; gap: 30px; border: 1px solid var(--line); border-radius: 24px; background: var(--paper); }
.case-facts div { display: grid; gap: 9px; }
.case-facts span { color: #a3968d; font-size: .57rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.case-facts strong { font-size: .84rem; font-weight: 650; }
.case-story { display: grid; gap: 42px; }
.case-story section { display: grid; grid-template-columns: 42px 1fr; gap: 18px; }
.case-story section > span { color: var(--terra); font-size: .62rem; font-weight: 850; }
.case-story h3 { margin: -6px 0 14px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.8rem, 3vw, 2.8rem); font-weight: 400; letter-spacing: -.045em; }
.case-story p { max-width: 760px; margin: 0; color: var(--muted); font-size: .88rem; line-height: 1.85; }
.modal-tags { display: flex; flex-wrap: wrap; gap: 8px; padding-left: 60px; }
.modal-tags span { padding: 8px 12px; border-radius: 999px; background: var(--paper); color: var(--muted); font-size: .62rem; font-weight: 750; }
.case-gallery-heading { padding: 76px 0 52px; display: flex; justify-content: space-between; align-items: end; gap: 36px; border-top: 1px solid var(--line); }
.case-gallery-heading p { margin: 0; color: var(--terra); font-size: .66rem; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.case-gallery-heading h3 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.6rem, 5vw, 5rem); font-weight: 400; line-height: .96; letter-spacing: -.06em; text-align: right; }
/* ====== NOTRE GRILLE MASONRY (portée de l'ancien case.css) ======
   Ratios naturels, jamais rognés : 3 colonnes desktop, cadre doux,
   légende « 01 / 05 » + libellé, hint « Agrandir » + lightbox. */
.case-gallery { display: block; }
.case-gallery__grid { --_gap: clamp(1rem, 2vw, 1.6rem); column-count: 3; column-gap: var(--_gap); }
.case-shot { margin: 0 0 var(--_gap); break-inside: avoid; -webkit-column-break-inside: avoid; page-break-inside: avoid; }
.case-shot__frame {
  position: relative;
  border-radius: clamp(12px, 1.6vw, 18px);
  overflow: hidden;
  background: linear-gradient(180deg, var(--paper), var(--terra-soft));
  border: 1px solid var(--line);
  box-shadow: 0 20px 44px -32px rgba(21, 17, 14, .34);
  padding: clamp(.55rem, 1.1vw, .9rem);
  transition: box-shadow .4s ease, border-color .4s ease, transform .4s cubic-bezier(.2,.7,.2,1);
}
.case-shot:hover .case-shot__frame {
  border-color: color-mix(in srgb, var(--terra) 45%, var(--line));
  box-shadow: 0 40px 72px -34px rgba(21, 17, 14, .44);
  transform: translateY(-4px);
}
.case-shot__img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: clamp(7px, 1vw, 11px);
  cursor: zoom-in;
  transition: transform .5s cubic-bezier(.2,.7,.2,1);
}
.case-shot:hover .case-shot__img { transform: scale(1.015); }
.case-shot figcaption { display: flex; align-items: baseline; gap: .65rem; margin-top: .75rem; padding-inline: .2rem; }
.case-shot__idx { flex: none; font: 700 .64rem/1.5 Poppins, sans-serif; letter-spacing: .1em; color: var(--terra); font-variant-numeric: tabular-nums; }
.case-shot__cap { position: relative; padding-left: .65rem; font: 400 .92rem/1.5 Georgia, serif; color: var(--muted); }
.case-shot__cap::before { content: ""; position: absolute; left: 0; top: .35em; bottom: .2em; width: 1px; background: var(--line); }
/* Hint « Agrandir » (repris de notre grille) */
.case-zoom-hint {
  position: absolute; right: .9rem; bottom: .9rem; z-index: 2;
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .4rem .7rem; border-radius: 999px;
  background: color-mix(in srgb, var(--ink) 82%, transparent); color: #fff;
  font: 700 .58rem/1 Poppins, sans-serif; letter-spacing: .08em; text-transform: uppercase;
  opacity: 0; transform: translateY(6px); transition: opacity .3s ease, transform .3s ease; pointer-events: none;
}
.case-shot__frame:hover .case-zoom-hint { opacity: 1; transform: translateY(0); }
.case-zoom-hint__ico { width: 12px; height: 12px; border: 1.5px solid currentColor; border-radius: 50%; position: relative; }
.case-zoom-hint__ico::after { content: ""; position: absolute; right: -4px; bottom: -3px; width: 5px; height: 1.5px; background: currentColor; transform: rotate(45deg); transform-origin: left center; }
@media (max-width: 900px) { .case-gallery__grid { column-count: 2; } }
@media (max-width: 560px) { .case-gallery__grid { column-count: 1; } }
.case-next { margin-top: 70px; padding: clamp(42px, 6vw, 76px); display: flex; justify-content: space-between; align-items: center; gap: 30px; border-radius: 28px; background: var(--ink); color: white; }
.case-next p { max-width: 620px; margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2rem, 4vw, 3.8rem); line-height: 1.05; letter-spacing: -.05em; }
@keyframes case-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }

.contact-section {
  width: min(1440px, calc(100% - 32px));
  margin: 40px auto 0;
  padding: 18px;
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  gap: 18px;
  border-radius: 34px;
  background: var(--ink);
}
.contact-intro {
  position: relative;
  min-height: 700px;
  padding: clamp(42px, 5vw, 72px);
  overflow: hidden;
  border-radius: 24px;
  background: var(--terra);
  color: white;
}
.contact-intro h2 em { color: var(--cream); font-family: Georgia, serif; font-weight: 400; }
.contact-intro > p:not(.section-kicker) { max-width: 470px; margin: 30px 0 0; color: #f6d8cb; font-size: .9rem; line-height: 1.75; }
.contact-lines { margin-top: 80px; display: grid; gap: 0; }
.contact-lines > * { padding: 22px 0; border-top: 1px solid rgba(255,255,255,.22); font-size: .76rem; font-weight: 600; }
.contact-lines span { display: block; color: #f6d8cb; }
.contact-avatar {
  position: absolute;
  right: -10px;
  bottom: -38px;
  width: 220px;
  height: 220px;
  overflow: hidden;
  border: 7px solid var(--terra);
  border-radius: 50%;
  background: var(--cream);
  transform: rotate(5deg);
}
.contact-avatar img { width: 100%; height: 100%; object-fit: cover; object-position: center 10%; }
.contact-form {
  padding: clamp(42px, 5vw, 72px);
  display: flex;
  flex-direction: column;
  border-radius: 24px;
  background: var(--paper);
}
.contact-form h3 { margin: 0 0 44px; padding-bottom: 30px; border-bottom: 1px solid var(--line); font-family: Georgia, serif; font-size: clamp(2rem, 3.6vw, 3.5rem); font-weight: 400; letter-spacing: -.04em; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-form label { display: grid; gap: 11px; margin-bottom: 24px; font-size: .64rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.contact-form input, .contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--cream);
  color: var(--ink);
  font: inherit;
  font-size: .86rem;
  padding: 18px;
  outline: none;
  text-transform: none;
  transition: border 170ms ease, box-shadow 170ms ease;
}
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--terra); box-shadow: 0 0 0 4px rgba(200,95,61,.1); }
.contact-form textarea { resize: vertical; min-height: 165px; }
.contact-form button {
  min-height: 56px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: white;
  font: inherit;
  font-size: .8rem;
  font-weight: 750;
  cursor: pointer;
  transition: background 170ms ease, transform 170ms ease;
}
.contact-form button:hover { background: var(--terra); transform: translateY(-3px); }
.contact-form button span { margin-left: 8px; }
.contact-form small { margin-top: 18px; color: var(--muted); font-size: .65rem; }

footer {
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 34px clamp(24px, 5vw, 84px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: .7rem;
}
footer p { margin: 0; }
footer > a:last-child { color: var(--ink); font-weight: 700; }

@media (max-width: 1050px) {
  .desktop-nav { display: none; }
  .site-header { grid-template-columns: 1fr auto auto; gap: 14px; }
  .mobile-menu { display: block; position: relative; order: 3; }
  .mobile-menu summary { list-style: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-content: center; gap: 5px; cursor: pointer; }
  .mobile-menu summary::-webkit-details-marker { display: none; }
  .mobile-menu summary span { width: 16px; height: 1px; background: var(--ink); }
  .mobile-menu nav { position: absolute; top: 52px; right: 0; width: 210px; padding: 18px; display: grid; gap: 8px; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); box-shadow: var(--shadow); }
  .mobile-menu nav a { padding: 8px; font-size: .85rem; }
  .hero { grid-template-columns: 1fr 0.88fr; gap: 34px; }
  .availability { left: -28px; width: 110px; height: 110px; font-size: .58rem; }
  .tool-ribbon { grid-template-columns: 1fr; }
  .about-section { grid-template-columns: .86fr 1.14fr; gap: 60px; }
  .about-media { min-height: 560px; }
  .service-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 270px; }
  .project-bubbles { max-width: 860px; }
  .bubble-1 { --size: 330px; }
  .bubble-2 { --size: 235px; }
  .bubble-3 { --size: 245px; }
  .bubble-4 { --size: 225px; }
  .bubble-5 { --size: 255px; }
  .bubble-6 { --size: 215px; }
  .case-overview { grid-template-columns: .78fr 1.22fr; gap: 54px; }
  .contact-section { grid-template-columns: 1fr; }
  .contact-intro { min-height: 590px; }
}

@media (max-width: 760px) {
  .site-header { height: 72px; padding: 0 20px; }
  .cv-link { display: none; }
  .hero { min-height: auto; padding: 44px 20px 36px; grid-template-columns: 1fr; overflow: visible; }
  .hero-copy { order: 1; }
  .hero-visual { order: 2; justify-self: center; max-width: 470px; padding-left: 22px; }
  .hero h1 { font-size: clamp(3.55rem, 18vw, 5.7rem); line-height: .88; }
  .hero h1 em { margin-left: 0; }
  .hero-intro { margin-top: 28px; }
  .hero-note { margin-top: 34px; display: block; }
  .hero-note p { margin-top: 8px; }
  .availability { left: 0; top: 18%; }
  .role-tag { right: 0; }
  .avatar-pop { left: 4px; }
  .tool-ribbon { margin-top: 34px; padding: 22px; }
  .tool { flex-direction: column; min-height: 82px; }
  .about-section { margin-top: 60px; padding: 70px 20px; grid-template-columns: 1fr; }
  .about-media { min-height: 560px; }
  .photo-note { left: -5px; }
  .about-copy h2, .section-heading h2, .contact-intro h2 { font-size: clamp(2.5rem, 12vw, 4rem); }
  .process-list { margin-top: 50px; grid-template-columns: 1fr; }
  .services-section, .projects-section { padding: 76px 20px; }
  .section-heading { align-items: flex-start; flex-direction: column; margin-bottom: 36px; }
  .section-heading > p { text-align: left; }
  .service-grid { grid-template-columns: 1fr; grid-auto-rows: minmax(245px, auto); }
  .service-card { min-height: 250px; }
  .service-avatar { margin-left: 0; }
  .projects-heading { margin-bottom: 54px; }
  .project-bubbles {
    height: auto;
    width: calc(100% + 40px);
    margin-left: -20px;
    padding: 12px 20px 34px;
    display: flex;
    justify-content: flex-start;
    gap: 18px;
    align-items: start;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .project-bubbles::-webkit-scrollbar { display: none; }
  .project-bubbles.filtered { min-height: 0; padding: 12px 20px 34px; flex-wrap: nowrap; justify-content: flex-start; gap: 18px; }
  .project-bubble, .bubble-1, .bubble-2, .bubble-3, .bubble-4, .bubble-5, .bubble-6 {
    --size: min(68vw, 340px);
    position: relative;
    inset: auto;
    flex: 0 0 min(76vw, 380px);
    width: min(76vw, 380px);
    display: grid;
    justify-items: center;
    scroll-snap-align: center;
    animation: none;
  }
  .project-bubbles.filtered .project-bubble, .project-bubbles.filtered .project-bubble:first-child { --size: min(68vw, 340px); width: min(76vw, 380px); }
  .bubble-1 { --size: min(68vw, 340px); }
  .bubble-4, .bubble-6 { margin-top: 0; }
  .project-bubbles:has(.project-bubble:hover) .project-bubble:not(:hover),
  .project-bubbles:has(.project-bubble:focus-visible) .project-bubble:not(:focus-visible) { opacity: 1; filter: none; }
  .case-nav { min-height: 68px; grid-template-columns: 1fr auto; }
  .case-nav > span { display: none; }
  .case-nav button { font-size: .62rem; }
  .case-content { padding: 0 20px 36px; }
  .case-hero { padding: 70px 0 60px; }
  .case-hero h2 { font-size: clamp(3.8rem, 19vw, 6rem); }
  .case-overview { grid-template-columns: 1fr; gap: 34px; padding-bottom: 74px; }
  .case-facts { grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 24px 20px; }
  .case-facts strong { font-size: .72rem; }
  .case-story { gap: 34px; }
  .case-story section { grid-template-columns: 32px 1fr; gap: 10px; }
  .modal-tags { padding-left: 42px; }
  .case-gallery-heading { padding: 56px 0 36px; align-items: flex-start; flex-direction: column; }
  .case-gallery-heading h3 { text-align: left; }
  .case-next { padding: 36px 26px; align-items: flex-start; flex-direction: column; }
  .case-next .button { width: 100%; }
  .contact-section { width: calc(100% - 20px); padding: 10px; border-radius: 24px; }
  .contact-intro { min-height: 650px; padding: 42px 26px; }
  .contact-form { padding: 42px 26px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  footer { align-items: flex-start; flex-direction: column; gap: 14px; }
}

@media (max-width: 430px) {
  .eyebrow { gap: 8px; letter-spacing: .1em; }
  .eyebrow i { display: none; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .button { width: 100%; }
  .availability { width: 94px; height: 94px; font-size: .5rem; }
  .role-tag { font-size: .55rem; }
  .tool { width: 112px; }
  .project-filters { gap: 6px; }
  .project-filters button { padding: 8px 12px; font-size: .6rem; }
  .about-media { min-height: 470px; }
  .about-avatar { width: 120px; height: 120px; }
  .contact-avatar { width: 170px; height: 170px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tool-track { animation-play-state: paused; }
  .project-bubble { animation: none; }
  .tool, .bubble-image, .bubble-image img, .bubble-arrow { transition: none; }
}

/* ================= AJOUTS CONVERSION PHP ================= */
/* Verrou scroll quand modale / lightbox ouverte */
body.no-scroll { overflow: hidden; }

/* La modale « single projet » : cachée via [hidden], visible sinon */
.case-study.is-open { display: block; }

/* Placeholder image cassée — jamais de blanc silencieux */
.img-broken {
  min-height: 160px;
  background: repeating-linear-gradient(45deg, var(--paper) 0 12px, var(--line) 12px 24px) !important;
  object-fit: contain;
}

/* ---------------- Lightbox galerie ---------------- */
.lightbox {
  position: fixed; inset: 0; z-index: 300;
  display: flex; align-items: center; justify-content: center;
  padding: clamp(18px, 4vw, 48px);
  background: color-mix(in srgb, var(--ink) 88%, transparent);
  opacity: 0; transition: opacity .28s ease;
}
.lightbox.is-open { opacity: 1; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 14px; box-shadow: 0 40px 90px rgba(0,0,0,.5); }
.lightbox__close {
  position: absolute; top: clamp(14px, 3vw, 26px); right: clamp(14px, 3vw, 30px);
  width: 46px; height: 46px; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.92); color: var(--ink);
  font-size: 1.6rem; line-height: 1; cursor: pointer;
  transition: transform .2s ease, background .2s ease;
}
.lightbox__close:hover { transform: rotate(90deg); background: #fff; }

/* ---------------- Page « Mon parcours » (design nouveau) ---------------- */
.parcours-hero {
  width: min(1440px, calc(100% - 32px));
  margin: clamp(30px, 6vw, 70px) auto 0;
  padding: clamp(30px, 6vw, 60px) clamp(24px, 5vw, 72px) clamp(40px, 6vw, 72px);
  text-align: center;
}
.parcours-back {
  display: inline-flex; align-items: center; gap: .5rem; margin-bottom: 26px;
  color: var(--muted); font-size: .72rem; font-weight: 700; letter-spacing: .04em;
  transition: color .2s ease, gap .2s ease;
}
.parcours-back:hover { color: var(--terra); gap: .8rem; }
.parcours-hero h1 { margin: 14px 0 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(3rem, 8vw, 6.2rem); font-weight: 400; line-height: .9; letter-spacing: -.05em; }
.parcours-hero h1 em { color: var(--terra); font-style: italic; }
.parcours-lead { max-width: 620px; margin: 28px auto 0; color: var(--muted); font-size: .95rem; line-height: 1.8; }
.parcours-actions { margin-top: 34px; display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

.parcours-content {
  width: min(1440px, calc(100% - 32px));
  margin: clamp(20px, 4vw, 40px) auto clamp(50px, 9vw, 100px);
  padding: 0 clamp(24px, 5vw, 72px);
  display: grid; grid-template-columns: .72fr 1.28fr; gap: clamp(36px, 6vw, 90px); align-items: start;
}
.parcours-profile {
  position: sticky; top: 100px;
  padding: clamp(28px, 3vw, 40px);
  border: 1px solid var(--line); border-radius: 26px; background: var(--paper);
}
.parcours-avatar { width: 96px; height: 96px; margin-bottom: 20px; border-radius: 20px; overflow: hidden; background: var(--terra-soft); }
.parcours-avatar img { width: 100%; height: 100%; object-fit: cover; }
.parcours-profile h2 { margin: 8px 0 12px; font-family: Georgia, serif; font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 400; line-height: 1; letter-spacing: -.03em; }
.parcours-loc { margin: 0 0 16px; color: var(--muted); font-size: .82rem; font-weight: 600; }
.parcours-profile a { display: block; margin-bottom: 8px; color: var(--ink); font-size: .82rem; font-weight: 550; word-break: break-word; }
.parcours-profile a:hover { color: var(--terra); }
.parcours-skills { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 8px; }
.parcours-skills span { padding: 8px 12px; border-radius: 999px; background: var(--cream); border: 1px solid var(--line); color: var(--muted); font-size: .62rem; font-weight: 750; }

.parcours-main .section-kicker { margin-top: 0; }
.parcours-timeline { margin: 20px 0 50px; display: grid; gap: 26px; }
.parcours-job { display: grid; grid-template-columns: 44px 150px 1fr; gap: 20px; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.parcours-num { color: var(--terra); font-size: .78rem; font-weight: 850; letter-spacing: .06em; }
.parcours-job time { color: var(--muted); font-size: .72rem; font-weight: 700; letter-spacing: .02em; }
.parcours-job h3 { margin: -4px 0 4px; font-family: Georgia, serif; font-size: clamp(1.3rem, 2.4vw, 1.7rem); font-weight: 400; letter-spacing: -.02em; }
.parcours-job b { display: block; margin-bottom: 10px; color: var(--terra); font-size: .78rem; font-weight: 700; }
.parcours-job p { margin: 0; color: var(--muted); font-size: .86rem; line-height: 1.75; }
.parcours-education .section-kicker { margin-bottom: 18px; }
.parcours-edu { display: grid; grid-template-columns: 150px 1fr; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.parcours-edu time { color: var(--muted); font-size: .72rem; font-weight: 700; }
.parcours-edu h3 { margin: 0 0 4px; font-family: Georgia, serif; font-size: 1.2rem; font-weight: 400; }
.parcours-edu p { margin: 0; color: var(--muted); font-size: .82rem; }

@media (max-width: 820px) {
  .parcours-content { grid-template-columns: 1fr; }
  .parcours-profile { position: static; }
  .parcours-job { grid-template-columns: 36px 1fr; }
  .parcours-job time { grid-column: 2; }
  .parcours-edu { grid-template-columns: 1fr; gap: 6px; }
}

/* Message de confirmation du formulaire de contact */
.form-ok { margin: 0 0 18px; padding: 12px 16px; border-radius: 12px; background: color-mix(in srgb, var(--terra) 14%, var(--paper)); border: 1px solid var(--terra-soft); color: var(--ink); font-size: .82rem; font-weight: 600; }
