:root{
  --ink:#141019;
  --ink-2:#211a2b;
  --paper:#f6efdc;
  --paper-2:#ece2c8;
  --lilac:#d4c9f8;
  --lilac-deep:#c3b3f5;
  --yellow:#ffee93;
  --yellow-2:#f5e066;
  --sage:#c8d9c6;
  --sage-2:#aec49e;
  --grey:#f1f1f1;
  --text-on-paper:#191420;
  --text-muted:#5c5566;
  --radius:8px;
  --wrap:1180px;
  --ease:cubic-bezier(.22,.68,0,1);
}

*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
html,body{margin:0;padding:0;}
body{
  background:var(--paper);
  color:var(--text-on-paper);
  font-family:'Inter',system-ui,-apple-system,Segoe UI,Arial,sans-serif;
  font-size:16px;
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
  padding-bottom:env(safe-area-inset-bottom,0px);
  overflow-x:hidden;
}
img{max-width:100%;}
[hidden]{display:none!important;}
a{color:inherit;}
:focus-visible{outline:2.5px solid var(--violet);outline-offset:3px;}

.cursor-fx{
  position:fixed;top:0;left:0;width:28px;height:28px;
  border-radius:50%;background:var(--lilac);
  opacity:0;pointer-events:none;z-index:9999;
  transform:translate3d(-50%,-50%,0);
  transition:width .25s var(--ease),height .25s var(--ease),opacity .2s ease,background .2s ease;
  will-change:transform;
}
.cursor-fx.is-active{opacity:0.85;}
.cursor-fx.is-hover{width:52px;height:52px;}
.cursor-fx.is-down{opacity:1;}
@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto;}
  *{animation-duration:0.001ms!important;animation-iteration-count:1!important;transition-duration:0.001ms!important;}
}

h1,h2,h3{
  font-family:'Inter',system-ui,sans-serif;
  font-weight:700;
  letter-spacing:-0.01em;
  text-wrap:balance;
  margin:0;
}
em,.accent{
  font-family:'Besley',Georgia,serif;
  font-style:italic;
  font-weight:400;
  letter-spacing:0;
}
.highlight{
  background:var(--yellow);
  color:var(--ink);
  padding:0.04em 0.32em;
  border-radius:5px;
  box-decoration-break:clone;
  -webkit-box-decoration-break:clone;
  font-style:normal;
}

.wrap{max-width:var(--wrap);margin:0 auto;padding-inline:28px;}

.eyebrow{
  display:inline-flex;align-items:center;gap:8px;
  font-family:'Inter',sans-serif;font-weight:700;font-size:12.5px;
  letter-spacing:0.1em;text-transform:uppercase;
  margin-bottom:20px;
}
.eyebrow::before{content:"";width:8px;height:8px;border-radius:50%;background:currentColor;flex:none;}

.arrow-link{
  display:inline-flex;align-items:center;gap:12px;
  font-family:'Inter',sans-serif;font-weight:700;font-size:15px;
  text-transform:uppercase;letter-spacing:0.02em;
  text-decoration:none;color:inherit;
  border:none;background:none;cursor:pointer;padding:0;
}
.arrow-link .ar{
  width:34px;height:34px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  background:currentColor;flex:none;
  transition:transform .25s var(--ease);
}
.arrow-link .ar svg{width:16px;height:16px;}
.arrow-link:hover .ar{transform:translateX(4px);}

/* ---------- GRAIN ---------- */
.grain{position:relative;isolation:isolate;}
.grain::before{
  content:"";position:absolute;inset:0;z-index:0;pointer-events:none;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  opacity:0.06;
  mix-blend-mode:overlay;
}
.grain>*{position:relative;z-index:1;}

/* ---------- TOP CHROME ---------- */
.chrome{
  position:fixed;top:0;left:0;right:0;z-index:80;
  padding-top:env(safe-area-inset-top,0px);
  pointer-events:none;
}
.chrome .bar{
  display:flex;align-items:center;justify-content:space-between;
  padding:22px 28px;
  pointer-events:none;
}
.menu-btn{
  pointer-events:auto;
  width:52px;height:52px;border-radius:50%;
  background:var(--ink);color:var(--paper);
  border:none;cursor:pointer;
  display:flex;align-items:center;justify-content:center;
  flex-direction:column;gap:5px;
  transition:background .2s ease;
}
.menu-btn span{width:18px;height:2px;background:currentColor;display:block;transition:transform .25s var(--ease),opacity .2s ease;}
.menu-btn.is-active span:nth-child(1){transform:translateY(7px) rotate(45deg);}
.menu-btn.is-active span:nth-child(2){opacity:0;}
.menu-btn.is-active span:nth-child(3){transform:translateY(-7px) rotate(-45deg);}

.logo{
  pointer-events:auto;
  display:flex;align-items:center;
  text-decoration:none;line-height:1;
}
.logo-img{height:34px;width:auto;display:none;}
.logo-img.is-active{display:block;}

/* side rail */
.rail{
  position:fixed;right:26px;top:50%;transform:translateY(-50%);
  z-index:70;
  display:flex;flex-direction:column;align-items:center;gap:22px;
}
.rail-dots{position:relative;display:flex;flex-direction:column;align-items:center;gap:22px;}
.rail-dots::before{
  content:"";position:absolute;left:50%;top:5px;bottom:5px;
  width:1.5px;background:var(--ink);opacity:0.25;transform:translateX(-50%);
  z-index:0;
}
.rail-dot{
  position:relative;z-index:1;
  width:8px;height:8px;border-radius:50%;
  background:var(--paper);border:1.5px solid var(--ink);
  transition:background .2s ease,transform .2s ease;
}
.rail-dot.is-active{background:var(--ink);transform:scale(1.35);}
.rail .label{
  writing-mode:vertical-rl;
  font-family:'Inter',sans-serif;font-weight:700;font-size:12px;
  letter-spacing:0.14em;text-transform:uppercase;
  color:var(--ink);
}
@media (max-width:760px){ .rail{display:none;} }

/* full-screen nav */
.overlay{
  position:fixed;inset:0;z-index:75;
  background:var(--ink);color:var(--paper);
  display:flex;flex-direction:column;justify-content:center;
  padding:28px;
  transform:translateY(-100%);
  transition:transform .5s var(--ease);
}
.overlay.is-open{transform:translateY(0);}
.overlay-links{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px;}
.overlay-links a{
  font-family:'Inter',sans-serif;font-weight:700;  font-size:clamp(34px,8vw,64px);letter-spacing:-0.01em;
  color:var(--paper);text-decoration:none;
  transition:color .2s ease;
}
.overlay-links a:hover{color:var(--lilac);}
.overlay-foot{margin-top:44px;display:flex;gap:28px;flex-wrap:wrap;}
.overlay-foot a{
  font-family:'Besley',serif;font-style:italic;font-size:18px;
  color:var(--lilac);text-decoration:none;
}
.overlay-foot a:hover{color:var(--lilac);}

/* ---------- SECTION SHELL ---------- */
section{padding-block:100px;}
.section-head{display:grid;grid-template-columns:minmax(0,820px);gap:18px;margin-bottom:52px;}
h2.headline{
  font-size:clamp(32px,5.4vw,58px);line-height:0.98;}
p.lede{font-size:18px;max-width:58ch;color:var(--text-muted);}

.reveal{opacity:1;transform:none;transition:opacity .6s var(--ease),transform .6s var(--ease);}
.reveal.pre{opacity:0;transform:translateY(18px);}
.reveal.in{opacity:1;transform:none;}

/* ---------- HERO ---------- */
.hero{
  display:grid;grid-template-columns:1fr 1fr;
  min-height:100svh;
  background:var(--lilac);
}
.hero-media{position:relative;overflow:hidden;background:var(--lilac);}
.hero-media img.header-img-desktop{width:100%;height:100%;object-fit:cover;object-position:center top;display:block;}
/* Header photos: a dedicated mobile crop supplied separately, swapped in by
   simple show/hide rather than recomputed via object-fit/height tricks —
   avoids the cross-browser sizing quirks the responsive crop approach kept
   running into. Desktop keeps the original object-fit:cover photo. */
.header-img-mobile{display:none!important;}
@media (max-width:900px){
  .header-img-desktop{display:none!important;}
  .header-img-mobile{display:block!important;width:100%!important;height:auto!important;object-fit:unset!important;}
}

.hero-content{
  position:relative;background:#ffffff;color:var(--ink);
  display:flex;align-items:center;
  padding:160px 60px 90px;
}
.hero-inner{max-width:520px;}
.hero-actions{display:flex;flex-wrap:wrap;align-items:center;gap:28px;margin-top:40px;}
.btn{
  display:inline-flex;align-items:center;gap:8px;
  padding:16px 26px;border-radius:12px;
  font-family:'Inter',sans-serif;font-weight:700;font-size:14.5px;text-transform:uppercase;letter-spacing:0.02em;
  text-decoration:none;border:1.5px solid transparent;
  transition:transform .15s var(--ease),background .15s ease;
}
.btn:hover{transform:translateY(-2px);}
.btn-solid{background:var(--grey);color:var(--ink);}
.btn-solid:hover{background:var(--ink);color:var(--lilac);}
.btn-solid.btn-solid-grey:hover{background:transparent;color:var(--lilac);border-color:#fff;}
.btn-contact-submit{background:#ffffff;color:var(--ink);}
.btn-contact-submit:hover{background:var(--ink);color:var(--lilac);}

@media (max-width:900px){
  /* Photo stacks full-width above the title again (not squeezed into a side
     column — that read as cramped and the text had nowhere to wrap). Its size
     is controlled with an explicit height so it shrinks vertically instead of
     being cropped narrower. Text padding matches .wrap (28px) so the title
     lines up with every other section on the page below it. */
  .hero{display:flex;flex-direction:column;min-height:auto;}
  .hero-media{flex:none;width:100%;height:auto;}
  .hero-content{padding:48px 28px 56px;}
  .hero .page-title{font-size:clamp(40px,7vw,52px);}
}
@media (max-width:480px){
  .hero-actions{margin-top:24px;}
}

/* ---------- PAGE HEADER (Agence / Réalisations) ---------- */
.page-header{
  position:relative;overflow:hidden;
  display:grid;grid-template-columns:1fr 1fr;
  min-height:100svh;
  background:#ffffff;
}
/* Separator under the photo+H1 header — Réalisations only, not Agence. */
#page-realisations .page-header{border-bottom:2px solid rgba(20,16,25,0.15);}
/* The photo is wrapped in a media div (same pattern as .hero-media) rather
   than being a bare <img> direct grid child — a bare <img> as a grid item
   can fail to stretch to the track's full width in some engines, since its
   own intrinsic aspect ratio competes with width:100%. Wrapping it in a
   plain div (which has no intrinsic ratio of its own) and letting the img
   fill *that* removes the ambiguity entirely. */
.page-header-media{
  position:relative;overflow:hidden;background:#ffffff;
}
/* Media-column fallback colour matched to each header's own photo backdrop
   (lilac for Agence, sage/green for Réalisations) instead of a flat white —
   the fixed logo's colour-adapt script reads this element's own declared
   background, so a mismatched fallback was leaving it stuck on the wrong
   logo variant whenever this column sat under the logo (mobile header). */
#page-agence .page-header-media{background:var(--lilac);}
#page-realisations .page-header-media{background:var(--sage);}
.page-header-bg{
  width:100%;height:100%;object-fit:cover;object-position:left center;display:block;
}
.page-header-content{
  position:relative;color:var(--ink);
  background:#ffffff;
  display:flex;align-items:center;
  padding:60px clamp(24px,4vw,60px);
}
.page-header-inner{max-width:480px;}
/* Page title (H1), every instance across the site — home hero included: set apart
   from H2/H3 headlines with a bold Inter weight and a larger size than the H2
   headline scale. One shared class so every tab's H1 stays uniform. */
.page-title{
  color:var(--ink);font-weight:700;
  font-size:clamp(38px,6.2vw,68px);
  line-height:1.02;
  /* Safety net for the narrow text column next to the header photo: a long
     word (prestataire, construisons…) gets a clean hyphen break instead of
     spilling past the column edge. */
  hyphens:auto;overflow-wrap:break-word;
}
.page-title em{color:var(--ink);}
@media (max-width:900px){
  /* Same reasoning as the home hero above: photo stacks full-width (sized
     down by height, not width), text padding matches .wrap. */
  .page-header{display:flex;flex-direction:column;min-height:auto;}
  .page-header-media{flex:none;width:100%;height:auto;}
  .page-header-bg{object-position:left top;}
  .page-header-content{min-height:auto;background:#ffffff;padding:48px 28px 56px;}
  .page-header .page-title{font-size:clamp(40px,7vw,52px);}
}
/* H2 section headlines (every tab reuses h2.headline) used the same aggressive
   5.4vw growth as the H1 used to — at tablet widths it caught up to nearly the
   same size as the just-recalibrated H1, breaking the hierarchy between the
   two. Pinned to its phone-width size through the tablet band instead, since
   it already stays well clear of the H1 scale there. */
@media (min-width:641px) and (max-width:900px){
  h2.headline{font-size:32px;}
}

/* Agence "Ce qu'on fait" — let the section head use the full wrap width */
#agence-ce-qu-on-fait .section-head{grid-template-columns:minmax(0,1fr);}
#agence-ce-qu-on-fait .lede{max-width:none;}

/* Simplified expertise list (home page) — names only, detail lives on the Agence page */
.svc-list-simple .svc-row{grid-template-columns:1fr;padding-block:26px;display:grid;text-decoration:none;cursor:pointer;transition:background .2s ease;}
.svc-list-simple .svc-row:hover{background:var(--grey);}
.svc-list-simple .svc-row h3{font-size:clamp(22px,3.2vw,32px);}

/* ---------- ABOUT ---------- */
.about{background:var(--yellow);color:var(--ink);}
.about .eyebrow{margin-bottom:52px;}
.about-grid{display:grid;grid-template-columns:0.85fr 1.15fr;gap:56px;align-items:center;}
@media (max-width:860px){ .about-grid{grid-template-columns:1fr;} }
.bubble{
  position:relative;background:var(--ink);color:var(--paper);
  border-radius:22px 22px 22px 4px;padding:40px 34px;
}
.bubble p{
  font-family:'Besley',Georgia,serif;font-style:italic;
  font-size:clamp(22px,2.6vw,30px);line-height:1.28;margin:0;
}
.bubble::after{
  content:"";position:absolute;left:36px;bottom:-16px;width:26px;height:26px;
  background:var(--ink);clip-path:polygon(0 0,100% 0,0 100%);
}
.about-body h2{margin-bottom:18px;}
.about-body p{max-width:52ch;font-size:18px;}
.about-body .fine{font-weight:700;}
.about-body .btn{margin-top:28px;}

/* ---------- SERVICES ---------- */
.services{background:#ffffff;}
.svc-list{border-top:2px solid var(--ink);}
.svc-row{
  display:grid;grid-template-columns:280px 1fr;gap:32px;
  padding-block:34px;border-bottom:2px solid var(--ink);
  transition:background .2s ease;
}
@media (max-width:700px){ .svc-row{grid-template-columns:1fr;gap:10px;} }
.svc-row h3{font-size:clamp(22px,3vw,30px);line-height:1.02;}
.svc-row p{margin:8px 0 12px;color:var(--text-muted);max-width:56ch;}
.svc-row .tags{display:flex;flex-wrap:wrap;gap:8px;}
.svc-row .tags span{
  font-family:'Inter',sans-serif;font-weight:700;font-size:12.5px;letter-spacing:0.02em;
  background:transparent;border:1.5px solid var(--ink);color:var(--ink);
  padding:10px 16px;border-radius:8px;
}

/* ---------- TESTIMONIALS ---------- */
.testimonials{background:var(--grey);color:var(--ink);overflow:hidden;}
.testimonials .eyebrow{margin-bottom:52px;}
.tm-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;}
@media (max-width:900px){ .tm-grid{grid-template-columns:1fr;} }
.tm-card{
  background:#ffffff;border-radius:16px;padding:28px 26px;
  display:flex;flex-direction:column;gap:18px;
  transition:transform .25s var(--ease),box-shadow .25s var(--ease);
}
.tm-card:hover{transform:translateY(-6px) rotate(-0.6deg);box-shadow:0 18px 34px -18px rgba(20,16,25,0.4);}
.tm-card q{font-family:'Besley',serif;font-style:italic;font-size:18px;line-height:1.45;quotes:none;}
.tm-card q.tm-quote{
  display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:5;overflow:hidden;
}
.tm-card.is-open q.tm-quote{-webkit-line-clamp:unset;overflow:visible;}
.tm-more{
  align-self:flex-start;background:none;border:none;padding:0;margin-top:-6px;
  font-family:'Inter',sans-serif;font-weight:700;font-size:12.5px;text-transform:uppercase;letter-spacing:0.04em;
  color:var(--ink);text-decoration:underline;text-underline-offset:2px;cursor:pointer;
}
.tm-more[hidden]{display:none;}
.tm-who{display:flex;align-items:center;gap:12px;margin-top:auto;padding-top:16px;border-top:2px solid var(--ink);}
.tm-avatar{
  width:38px;height:38px;border-radius:50%;background:var(--lilac);color:var(--ink);
  display:flex;align-items:center;justify-content:center;
  font-family:'Archivo',sans-serif;font-weight:900;font-size:13px;flex:none;
}
.tm-who b{display:block;font-size:13.5px;}
.tm-who span{display:block;font-size:12px;color:var(--text-muted);}

/* ---------- TEAM ---------- */
.team{background:#ffffff;color:var(--ink);}
.team-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;max-width:900px;align-items:end;}
@media (max-width:780px){ .team-grid{grid-template-columns:1fr 1fr;max-width:640px;} }
@media (max-width:600px){ .team-grid{grid-template-columns:1fr;} }
.team-card{
  background:transparent;color:var(--ink);border-radius:16px;overflow:hidden;
  display:flex;flex-direction:column;
  transition:transform .25s var(--ease);
}
.team-card:hover{transform:translateY(-4px);}
.team-card .tc-text{padding:24px 24px 18px;}
.team-card h3{font-size:19px;}
.team-card span{display:block;font-family:'Besley',serif;font-style:italic;font-size:15px;color:var(--text-muted);margin-top:4px;}
.team-photo{aspect-ratio:4/5;background:#ded6c2;border-radius:16px;overflow:hidden;}
.team-photo img{width:100%;height:100%;object-fit:cover;object-position:top center;display:block;}
/* Cards sit on a shared baseline (align-items:end): every photo has the same
   4:5 frame, so their top edges stay level whatever the height of the caption
   above (one-line name + role, or a title wrapping over two lines). */

/* ---------- WORK ---------- */
.work{background:#ffffff;color:var(--ink);}
.work-cta{margin-top:40px;}

/* Réalisations teaser on home — full-bleed stacked slides (each case on
   its own soft brand-colour card, lilac / yellow / sage, that overlaps the
   previous one as you scroll) but with the same simple caption as the
   dedicated Réalisations page: category tag(s), case name, subtitle —
   no oversized overlaid type. */
.spotlight-feed{display:flex;flex-direction:column;gap:26px;margin-top:8px;}
.spotlight-feed .work-card{
  --row-bg: var(--paper-2);
  --stack-i: 0;
  display:block;
  position:sticky;
  top:calc(104px + (var(--stack-i) * 16px));
  z-index:var(--stack-i);
  background:var(--row-bg);
  border-radius:28px;
  overflow:hidden;
  cursor:pointer;
  box-shadow:0 24px 48px -20px rgba(20,16,25,.4);
  transition:transform .3s var(--ease);
}
.spotlight-feed .work-card:hover{transform:translateY(-6px);}
.spotlight-slide-photo-wrap{position:relative;overflow:hidden;background:rgba(20,16,25,.06);}
.spotlight-slide-photo-wrap img{display:block;width:100%;height:clamp(160px,22vw,260px);object-fit:cover;transition:transform .5s var(--ease);}
.work-card:hover .spotlight-slide-photo-wrap img{transform:scale(1.04);}
.spotlight-slide-caption{padding:20px 28px 26px;}
.spotlight-slide-cats{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:12px;}
.spotlight-slide-cats span{
  font-family:'Inter',sans-serif;font-size:11px;font-weight:700;letter-spacing:0.02em;
  background:rgba(20,16,25,0.06);border:1.5px solid rgba(20,16,25,0.4);color:var(--ink);
  padding:6px 12px;border-radius:8px;
}
.spotlight-slide-title{
  font-family:'Archivo',sans-serif;font-weight:800;font-size:clamp(24px,3vw,34px);
  line-height:1.05;letter-spacing:-0.01em;color:var(--ink);
}
.spotlight-slide-sub{margin-top:6px;font-family:'Besley',serif;font-style:italic;font-size:16px;color:var(--text-muted);}
@media (max-width:700px){
  .spotlight-slide-photo-wrap img{height:min(40vw,200px);}
  .spotlight-slide-caption{padding:18px 20px 22px;}
  .spotlight-slide-title{font-size:22px;}
}
.filters{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:36px;}
.filter-btn{
  font-family:'Inter',sans-serif;font-weight:700;font-size:12.5px;letter-spacing:0.02em;
  background:transparent;border:1.5px solid var(--ink);color:var(--ink);
  padding:10px 16px;border-radius:8px;cursor:pointer;
  transition:background .15s ease,color .15s ease;
}
.filter-btn:hover{background:var(--ink);color:var(--lilac);}
.filter-btn.active{background:var(--ink);color:var(--lilac);}
.work-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;}
@media (max-width:900px){ .work-grid{grid-template-columns:1fr 1fr;} }
@media (max-width:640px){ .work-grid{grid-template-columns:1fr;} }
.work-card{
  position:relative;
  background:var(--paper);
  border-radius:16px;overflow:hidden;
  display:flex;flex-direction:column;
  transition:transform .25s var(--ease);
  cursor:pointer;
}
.work-card:hover{transform:translateY(-6px) rotate(0.6deg);}
.work-card[hidden]{display:none;}
.ph-photo{
  aspect-ratio:4/3;
  background:repeating-linear-gradient(135deg,#e7e1d3 0 16px,#ddd5c1 16px 32px);
  display:flex;align-items:center;justify-content:center;
  color:rgba(20,16,25,0.3);
}
.ph-photo svg{width:17%;height:17%;}
.work-photo{aspect-ratio:4/3;overflow:hidden;background:var(--paper-2);}
.work-photo img{width:100%;height:100%;object-fit:cover;display:block;}
.work-card .caption{
  background:var(--grey);color:#000000;
  padding:22px 22px 26px;
  display:flex;flex-direction:column;gap:10px;
  flex:1;
}
.work-card .cats{display:flex;flex-wrap:wrap;gap:6px;}
.work-card .cats span{
  font-family:'Inter',sans-serif;font-size:11px;font-weight:700;letter-spacing:0.02em;
  background:rgba(0,0,0,0.06);border:1.5px solid rgba(0,0,0,0.4);
  padding:6px 12px;border-radius:8px;
}
.work-card h3{font-size:clamp(20px,2.4vw,26px);line-height:1.05;}
.work-card .sub{font-family:'Besley',serif;font-style:italic;font-size:15px;opacity:0.75;margin-top:2px;}
.work-card blockquote{
  margin:8px 0 0;font-family:'Besley',serif;font-style:italic;font-size:14px;line-height:1.4;opacity:0.9;
}
.work-card cite{display:block;margin-top:6px;font-family:'Inter',sans-serif;font-style:normal;font-weight:700;font-size:11.5px;opacity:0.7;}

/* ---------- CASE DETAIL MODAL ---------- */
.case-modal{position:fixed;inset:0;z-index:200;}
.case-modal[hidden]{display:none;}
.case-modal-backdrop{position:absolute;inset:0;background:var(--ink);opacity:0;}
.case-modal-panel{
  position:fixed;inset:0;margin:0;max-width:none;max-height:none;
  background:#fff;border-radius:0;
  overflow-y:auto;overflow-x:hidden;-webkit-overflow-scrolling:touch;
  display:block;
  opacity:0;transform:translateY(28px);
  transition:opacity .4s var(--ease),transform .4s var(--ease);
}
.case-modal.is-open .case-modal-panel{opacity:1;transform:none;}
.case-modal-close{
  position:fixed;top:20px;right:20px;z-index:5;
  width:42px;height:42px;border-radius:50%;border:1.5px solid var(--ink);
  background:var(--paper);color:var(--ink);font-size:22px;line-height:1;
  cursor:pointer;display:flex;align-items:center;justify-content:center;
}
/* Editorial, image-free header: pill + oversized title, like a spec sheet */
.case-modal-body{max-width:960px;margin:0 auto;padding:96px clamp(20px,5vw,48px) 0;color:var(--ink);}
.case-modal-pill{
  display:inline-block;padding:9px 20px;border:1.5px solid var(--ink);border-radius:8px;
  font-family:'Inter',sans-serif;font-weight:700;font-size:13px;letter-spacing:0.02em;margin-bottom:32px;
}
.case-modal-header h3{
  font-family:'Archivo',sans-serif;font-weight:800;font-size:clamp(32px,5.2vw,54px);
  line-height:1.03;letter-spacing:-0.01em;margin:0;color:var(--ink);
}
.case-modal-subtitle{
  font-family:'Besley',serif;font-style:italic;font-weight:400;
  font-size:clamp(26px,4.2vw,44px);line-height:1.08;margin:2px 0 0;color:var(--ink);
}
.case-modal-meta{
  font-family:'Inter',sans-serif;font-size:12.5px;font-weight:700;letter-spacing:0.03em;text-transform:uppercase;
  color:var(--text-muted);display:flex;flex-wrap:wrap;gap:6px 16px;margin-top:22px;
}
.case-modal-meta span{white-space:nowrap;}
.case-modal-meta b{font-weight:700;color:var(--ink);}
/* Intro: Contexte / Dispositif side by side, full-bleed grey band like the rest of the site's section bands */
.case-modal-intro{
  margin-top:88px;
  width:100vw;position:relative;left:50%;right:50%;margin-left:-50vw;margin-right:-50vw;
  background:var(--grey);
}
.case-modal-intro-inner{
  max-width:960px;margin:0 auto;
  padding:clamp(36px,5vw,60px) clamp(20px,5vw,48px);
  display:grid;grid-template-columns:1fr 1fr;column-gap:56px;row-gap:36px;
}
@media (max-width:700px){ .case-modal-intro-inner{grid-template-columns:1fr;row-gap:20px;} }
.case-modal-intro-inner .eyebrow{margin-bottom:16px;}
.case-modal-intro-inner p{font-family:'Inter',sans-serif;font-size:16px;line-height:1.65;margin:0 0 14px;color:var(--ink);}
.case-modal-intro-inner p:last-child{margin-bottom:0;}
.case-modal-intro-inner ul{margin:0;padding-left:20px;}
.case-modal-intro-inner li{font-family:'Inter',sans-serif;font-size:16px;line-height:1.6;margin-bottom:8px;}
/* Remaining sections: bold heading, full-width, plain and legible — subtitle size matches the site's h2 headline */
.case-modal-sections{margin-top:88px;display:flex;flex-direction:column;gap:88px;}
.case-modal-sections h4{
  font-family:'Archivo',sans-serif;font-weight:800;font-size:clamp(22px,3vw,30px);
  line-height:1.1;letter-spacing:-0.01em;margin:0 0 20px;
}
.case-modal-sections .sec-quote{
  font-family:'Besley',serif;font-style:italic;font-weight:400;
  font-size:clamp(19px,2.2vw,24px);line-height:1.35;color:var(--ink);
  margin:0 0 20px;max-width:640px;
}
.case-modal-sections .sec-tagline{
  font-family:'Besley',serif;font-style:italic;font-weight:400;
  font-size:clamp(22px,2.8vw,30px);line-height:1.2;color:var(--ink);
  margin:-10px 0 22px;
}
.case-modal-sections p{font-family:'Inter',sans-serif;font-size:16px;line-height:1.7;margin:0 0 18px;max-width:720px;}
.case-modal-sections p:last-child{margin-bottom:0;}
.case-modal-sections ul{margin:18px 0;padding-left:20px;}
.case-modal-sections li{font-family:'Inter',sans-serif;font-size:16px;line-height:1.7;margin-bottom:10px;}
.case-modal-sections li:last-child{margin-bottom:0;}
.case-modal-sections ul.sub-list{margin:8px 0 0;padding-left:20px;}
.case-modal-sections ul.sub-list li{font-size:15px;opacity:0.8;margin-bottom:6px;}
.case-modal-sections ul.sub-list li:last-child{margin-bottom:0;}
/* Section imagery: full-bleed cascade for photo moments, a tidy 2-up grid for brand-asset sheets,
   and a side-by-side row for social visuals that must stay uncropped */
.case-modal-sections .simg-stack{
  width:100vw;position:relative;left:50%;right:50%;margin:26px -50vw -8px;
  display:flex;flex-direction:column;gap:16px;
  background:#fff;
}
.case-modal-sections .simg-stack img{width:100%;display:block;max-height:82vh;object-fit:cover;background:#fff;}
.case-modal-sections .simg-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:16px;margin-top:28px;max-width:680px;}
@media (max-width:560px){ .case-modal-sections .simg-grid{grid-template-columns:1fr;} }
.case-modal-sections .simg-grid figure{margin:0;background:#FFFFFF;border:1px solid rgba(20,16,25,0.1);border-radius:6px;overflow:hidden;}
.case-modal-sections .simg-grid img{width:100%;height:100%;object-fit:contain;display:block;aspect-ratio:4/3;}
.case-modal-sections .simg-row{display:flex;flex-wrap:wrap;gap:16px;margin-top:28px;}
.case-modal-sections .simg-row figure{
  margin:0;flex:1 1 220px;max-width:420px;background:#fff;border-radius:8px;
  overflow:hidden;display:flex;align-items:center;justify-content:center;
}
.case-modal-sections .simg-row img{width:100%;height:auto;max-height:360px;object-fit:contain;display:block;}
.case-modal-sections .simg-row.no-frame figure{background:none;border-radius:0;}
.case-modal-sections .simg-row.no-frame img{border-radius:10px;}
.case-modal-sections .simg-solo{display:flex;flex-direction:column;align-items:center;gap:24px;margin-top:28px;}
.case-modal-sections .simg-solo img{width:100%;max-width:720px;height:auto;display:block;border-radius:10px;}
.case-modal-sections .simg-videos{display:grid;grid-template-columns:repeat(2,1fr);gap:16px;margin-top:28px;max-width:820px;}
@media (max-width:640px){ .case-modal-sections .simg-videos{grid-template-columns:1fr;} }
.case-modal-sections .simg-videos .vwrap{position:relative;display:block;width:100%;padding-top:56.25%;background:#14101966;border-radius:8px;overflow:hidden;cursor:pointer;}
.case-modal-sections .simg-videos .vwrap img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block;transition:transform .35s ease;}
.case-modal-sections .simg-videos .vwrap:hover img{transform:scale(1.04);}
.case-modal-sections .simg-videos .vwrap .vplay{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;}
.case-modal-sections .simg-videos .vwrap .vplay-circle{width:56px;height:56px;border-radius:50%;background:rgba(20,16,25,0.55);display:flex;align-items:center;justify-content:center;transition:background .2s ease,transform .2s ease;}
.case-modal-sections .simg-videos .vwrap:hover .vplay-circle{background:#e31e24;transform:scale(1.08);}
.case-modal-sections .simg-videos .vwrap .vplay-circle svg{margin-left:3px;}
.case-modal-sections figcaption{
  font-family:'Inter',sans-serif;font-size:11.5px;letter-spacing:0.03em;opacity:0.55;
  padding:8px 4px 0;
}
.case-modal-sections .simg-stack figcaption{max-width:960px;margin:0 auto;padding-left:20px;padding-right:20px;text-align:center;}
/* Phone mockups for social-media post visuals */
.case-modal-sections .simg-phones{display:flex;flex-wrap:wrap;gap:28px;margin-top:24px;}
.case-modal-sections .simg-phones figure{margin:0;width:200px;}
.case-modal-sections .simg-phones .phone-frame{
  position:relative;background:var(--ink);border-radius:26px;padding:8px;
  box-shadow:0 14px 34px rgba(20,16,25,0.22);
}
.case-modal-sections .simg-phones .phone-notch{
  position:absolute;top:8px;left:50%;transform:translateX(-50%);
  width:52px;height:16px;background:var(--ink);border-radius:0 0 12px 12px;z-index:1;
}
.case-modal-sections .simg-phones img{width:100%;display:block;aspect-ratio:9/17;object-fit:cover;border-radius:18px;}
.case-modal-sections .simg-phones figcaption{text-align:center;}
/* Next-case handoff at the bottom of a case modal — full-bleed grey band running to the page bottom */
.case-modal-next{
  margin-top:80px;
  width:100vw;position:relative;left:50%;right:50%;margin-left:-50vw;margin-right:-50vw;
  background:#fff;border-top:2px solid var(--ink);
  padding:52px 0 100px;
}
.case-modal-next-inner{max-width:960px;margin:0 auto;padding-inline:clamp(20px,5vw,48px);}
.case-modal-next .eyebrow{margin-bottom:0;display:block;}
.case-modal-next .eyebrow::before{content:none;}
.case-modal-next-row{display:flex;align-items:center;justify-content:space-between;gap:36px;flex-wrap:wrap;}
.case-modal-next-text{min-width:0;flex:1 1 320px;}
.case-modal-next-text .sub{font-family:'Besley',serif;font-style:italic;font-size:clamp(22px,2.8vw,32px);line-height:1.15;margin:2px 0 22px;color:var(--ink);max-width:520px;}
.case-modal-next-photo{width:360px;flex:none;aspect-ratio:4/3;border-radius:14px;overflow:hidden;}
.case-modal-next-photo img{width:100%;height:100%;object-fit:cover;display:block;}
@media (max-width:640px){
  .case-modal-next-row{flex-direction:column;align-items:flex-start;}
  .case-modal-next-photo{width:100%;order:-1;}
}

/* ---------- TRUST ---------- */
.marquee{margin-top:60px;border-top:2px solid var(--ink);border-bottom:2px solid var(--ink);padding-block:30px;overflow:hidden;}
.marquee-track{display:flex;align-items:center;gap:64px;width:max-content;animation:scroll 34s linear infinite;}
.marquee:hover .marquee-track{animation-play-state:paused;}
.marquee-track span{
  font-family:'Archivo',sans-serif;font-weight:800;font-size:21px;text-transform:uppercase;
  color:var(--text-muted);white-space:nowrap;transition:color .2s ease;
}
.marquee-track span:hover{color:var(--lilac-deep);}
.marquee-track img,.marquee-track svg{height:40px;width:auto;max-width:130px;object-fit:contain;display:block;filter:grayscale(1);opacity:.55;transition:filter .2s ease,opacity .2s ease;}
.marquee-track img:hover,.marquee-track svg:hover{filter:grayscale(0);opacity:1;}
@keyframes scroll{from{transform:translateX(0);}to{transform:translateX(-50%);}}
@media (prefers-reduced-motion: reduce){ .marquee-track{animation:none;flex-wrap:wrap;width:100%;} }

/* ---------- CTA ---------- */

footer{
  background:var(--ink);color:#cfc7da;
  border-top:1px solid rgba(243,240,247,0.18);
  padding:64px 0 32px;
}
.footer-hero{
  display:flex;flex-wrap:wrap;justify-content:space-between;align-items:end;
  gap:40px;padding-bottom:48px;
}
.footer-cta-block{display:flex;flex-direction:column;align-items:start;gap:24px;}
.footer-h2{
  font-family:'Inter',sans-serif;font-weight:700;
  font-size:clamp(40px,6vw,68px);line-height:0.96;color:#f3f0f7;
}
.footer-h2 em{color:var(--lilac);}
/* Single nav column, right-aligned against the CTA headline — the former second
   column ("Nous écrire") was removed; contact details live on the Contact page. */
.footer-nav{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;align-items:end;gap:12px;}
.footer-nav a{
  color:#f3f0f7;text-decoration:none;font-size:15px;
  font-family:'Inter',sans-serif;font-weight:600;letter-spacing:0.01em;
}
.footer-nav a:hover{color:var(--lilac);}
/* Wordmark alone, sitting quietly above the final legal line. */
.footer-mid{
  display:flex;flex-wrap:wrap;align-items:center;
  padding:28px 0;
}
.footer-wordmark{margin:0;}
.footer-wordmark img{height:28px;width:auto;display:block;}
.footer-bottom{
  display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;
  border-top:1px solid #2c2731;padding-top:22px;
  font-size:13px;color:#7d7488;
}
.footer-bottom a{color:#a79bbd;text-decoration:none;}
.footer-bottom a:hover{color:var(--lilac);}
@media (max-width:700px){
  .footer-hero{align-items:start;}
  .footer-nav{align-items:start;}
}

/* ---------- PAGES / ROUTER ---------- */
/* The vertical rail now follows whichever page is active (rebuilt in JS per
   route) instead of being hidden outside the home page. */

/* ---------- CONTACT PAGE ---------- */
.contact-page{background:var(--grey);color:var(--ink);}
.contact-page-grid{display:grid;grid-template-columns:1.2fr 1fr;gap:48px;align-items:start;}
@media (max-width:860px){ .contact-page-grid{grid-template-columns:1fr;} }
.contact-form{display:flex;flex-direction:column;gap:20px;}
.contact-form label{
  display:flex;flex-direction:column;gap:8px;
  font-family:'Inter',sans-serif;font-weight:700;font-size:12.5px;
  text-transform:uppercase;letter-spacing:0.06em;color:var(--ink);
}
.contact-form input,.contact-form textarea{
  font-family:'Inter',sans-serif;font-size:15px;font-weight:400;letter-spacing:0;text-transform:none;
  color:var(--ink);background:#ffffff;border:1.5px solid var(--ink);border-radius:8px;
  padding:14px 16px;resize:vertical;
}
.contact-form input:focus,.contact-form textarea:focus{outline:2.5px solid var(--lilac-deep);outline-offset:1px;}
.contact-form .btn{align-self:flex-start;border:none;}
.contact-page-info{list-style:none;margin:0;padding:24px 0 0;display:flex;flex-direction:column;gap:14px;border-top:1.5px solid var(--ink);}
.contact-page-info li{display:flex;gap:12px;align-items:baseline;font-size:16px;}
.contact-page-info .k{width:26px;flex:none;color:var(--ink);font-family:'Inter',sans-serif;font-weight:900;font-size:13px;}
.contact-page-info a{text-decoration:none;color:var(--ink);}
.contact-page-info a:hover{color:var(--lilac-deep);}

/* ---------- LEGAL PAGE (Mentions légales) ---------- */
.legal-page{background:#ffffff;color:var(--ink);}
.legal-page .wrap{max-width:820px;}
.legal-body{margin-top:12px;}
.legal-body h3{
  font-family:'Archivo',sans-serif;font-weight:800;font-size:clamp(19px,2.2vw,24px);
  line-height:1.15;letter-spacing:-0.01em;margin:48px 0 14px;
}
.legal-body h3:first-child{margin-top:0;}
.legal-body p{font-family:'Inter',sans-serif;font-size:16px;line-height:1.7;color:var(--text-on-paper);margin:0 0 14px;max-width:68ch;}
.legal-body p:last-child{margin-bottom:0;}
.legal-body ul{margin:0 0 14px;padding-left:20px;}
.legal-body li{font-family:'Inter',sans-serif;font-size:16px;line-height:1.65;margin-bottom:6px;}
.legal-body a{color:var(--ink);text-decoration:underline;text-underline-offset:2px;}
.legal-body a:hover{color:var(--lilac-deep);}

.to-top{
  position:fixed;right:22px;bottom:calc(22px + env(safe-area-inset-bottom,0px));
  width:48px;height:48px;border-radius:50%;background:var(--lilac);color:var(--ink);
  border:none;display:flex;align-items:center;justify-content:center;cursor:pointer;
  opacity:0;pointer-events:none;transform:translateY(8px);
  transition:opacity .2s ease,transform .2s ease;z-index:65;
}
.to-top.show{opacity:1;pointer-events:auto;transform:none;}
.to-top:hover{background:#cdb8f7;}

/* ---------- WORDPRESS ---------- */
/* Invisible spacer (e.g. above the collective photo in the team grid). */
.is-spacer{visibility:hidden;}
/* Case content now lives in the page instead of being built by script. */
.case-modal-pill[hidden]{display:none;}
/* Standalone case page (direct link to a réalisation). */
.case-single{padding-block:0 100px;background:#fff;}
.case-single .case-modal-body{padding-top:140px;}
.case-single-title{
  font-family:'Archivo',sans-serif;font-weight:800;font-size:clamp(32px,5.2vw,54px);
  line-height:1.03;letter-spacing:-0.01em;margin:0;color:var(--ink);
}
.case-single-back{margin-top:80px;}
