/* V5 extends the existing black, white and prismatic art direction. */
/* Content-height hero: keep the scrolling strip close to the action buttons. */
#accueil { min-height: 0 !important; padding-bottom: 1.5rem !important; }
.v5-location { font-size: .65rem !important; letter-spacing: .16em !important; }
#accueil .v5-hero-description { margin-top: 1rem; max-width: 37rem; font-size: clamp(1rem, 1.2vw, 1.08rem); font-weight: 700; line-height: 1.65; }
#accueil .v5-hero-actions { margin-top: 1.65rem; }

/* Navigation is owned by the editable V5 layer, not the compiled V4 menu. */
.v5-superseded-navigation, [data-v5-navigation-original] { display: none !important; }
.v5-header { position: fixed; z-index: 50; inset: 0 0 auto; background: rgb(7 7 12 / .88); border-bottom: 1px solid rgb(255 255 255 / .08); backdrop-filter: blur(18px); }
.v5-header__inner { max-width: 90rem; margin: auto; padding: 0 2rem; height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.v5-header__inner > a { flex-shrink: 0; display: flex; align-items: center; min-height: 44px; }
.v5-header__inner img { width: 215px; height: 52px; object-fit: contain; }
.v5-desktop-nav { display: flex; gap: 1.6rem; align-items: center; }
.v5-desktop-nav a { padding: .8rem 0; color: #bdbac6; font-size: .86rem; transition: color .2s; }
.v5-desktop-nav a:hover, .v5-desktop-nav a[aria-current] { color: #fff; }
.v5-desktop-nav a[aria-current] { text-decoration: underline; text-decoration-color: #87c6cc; text-underline-offset: .55rem; }
.v5-header__actions { display: flex; gap: .8rem; align-items: center; }
.v5-header__cta { display: inline-flex; gap: .75rem; align-items: center; justify-content: center; min-height: 44px; padding: .6rem 1.15rem; border-radius: 30px; background: #f5f5fa; color: #101016; font-size: .82rem; font-weight: 600; }
.v5-menu-toggle { display: none; width: 44px; height: 44px; border: 1px solid #55515e; border-radius: 50%; align-items: center; justify-content: center; flex-direction: column; gap: 6px; }
.v5-menu-toggle span { width: 18px; height: 1px; background: white; transition: transform .2s; }
.v5-menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.v5-menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.v5-mobile-nav { padding: .5rem 1.5rem 1.5rem; display: flex; flex-direction: column; max-height: calc(100dvh - 80px); overflow: auto; }
.v5-mobile-nav[hidden] { display: none; }
.v5-mobile-nav a { padding: 1rem 0; border-bottom: 1px solid #2b2933; color: #eeeaf3; font-size: 1.1rem; }
.v5-skip { position: absolute; left: 1rem; top: .5rem; transform: translateY(-180%); padding: .75rem 1rem; border-radius: .4rem; background: #fff; color: #111; z-index: 2; }
.v5-skip:focus { transform: none; }
.v5-section-nav { position: fixed; z-index: 40; right: 1rem; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; align-items: center; gap: .7rem; padding: 1rem .6rem; border: 1px solid #3b3944; border-radius: 30px; background: rgb(10 10 17 / .75); backdrop-filter: blur(10px); }
.v5-section-nav a { width: 8px; height: 8px; display: block; border-radius: 50%; background: #827d8e; }
.v5-section-nav a[aria-current] { background: #83d5b7; box-shadow: 0 0 10px #83d5b766; }
.v5-section-nav a::after { right: 25px !important; }

.v5-container { width: min(100%, 80rem); margin-inline: auto; }
.v5-title, #v5-studio-title { font-family: Urbanist, sans-serif; font-weight: 600; font-size: clamp(2.25rem, 4.7vw, 3.75rem); line-height: 1.06; letter-spacing: -.02em; margin-top: 1.25rem; }
.v5-title > span, #v5-studio-title > span { display: block; }
.v5-title .prism-text, #v5-studio-title .prism-text { display: block; padding: .05em .1em .15em 0; margin-bottom: -.15em; line-height: 1.1; }

/* Background-clipped text needs paint space below g, p, q, j and y.
   Compensating margins preserve the existing distance between title lines. */
#root :is(h1, h2, h3) .metal-text {
  padding-block: .04em .18em;
  margin-block: -.04em -.18em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* Keep the animated line masks, with enough room for accents and descenders. */
#root h2 > .overflow-hidden {
  padding-block: .1em .2em;
  margin-block: -.1em -.12em;
}

/* No extra carousel or autoplay: real work, in full colour, on demand. */
.v5-project-preview { display: block; min-width: 0; width: 100%; text-align: left; cursor: pointer; background: none; border: 0; border-radius: .85rem; padding: 0; color: #f3f1f8; }
.v5-project-preview__image { position: relative; display: block; overflow: hidden; border-radius: .85rem; background: #16151b; }
.v5-project-preview img { display: block; width: 100%; height: auto; transition: transform .65s cubic-bezier(.2, .7, .2, 1); }
.v5-project-preview__caption { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .8rem .1rem 0; }
.v5-project-preview__caption > span:first-child { display: flex; align-items: baseline; flex-wrap: wrap; gap: .3rem .8rem; }
.v5-project-preview__caption strong { color: #f3f1f8; font-size: .8rem; font-weight: 600; letter-spacing: .055em; }
.v5-project-preview__caption > span:first-child > span { color: #b4afbf; font-size: .78rem; line-height: 1.4; }
.v5-project-preview__arrow { display: grid; place-items: center; flex-shrink: 0; width: 2rem; height: 2rem; border: 1px solid #4a4555; border-radius: 50%; color: #c8e5da; transition: background .25s, border-color .25s; }
.v5-project-preview:focus-visible { outline: 2px solid #ad96df; outline-offset: 6px; }
.v5-project-preview:focus-visible .v5-project-preview__arrow { border-color: #a9d2c4; background: #a9d2c415; }
.v5-accompaniment .v5-section-heading--visual { align-items: center; }
.v5-accompaniment-intro { margin-top: 1.5rem; max-width: 37rem; color: #bdbac7; font-size: 1.05rem; line-height: 1.75; }
.v5-film-preview__play { position: absolute; right: 1rem; bottom: 1rem; display: grid; place-items: center; width: 3rem; height: 3rem; padding-left: .15rem; border-radius: 50%; background: #08080de6; border: 1px solid #ffffff80; color: white; font-size: 1rem; }
.v5-project-preview--static { cursor: default; }
.v5-project-preview--static a { color: inherit; cursor: pointer; text-decoration: none; }
.v5-project-preview--static a:hover, .v5-project-preview--static a:focus-visible { text-decoration: underline; text-underline-offset: .25em; }
/* Spectrum treatment stays inside the image, below unfiltered project labels. */
#projets .project-card > div:first-child { position: relative; isolation: isolate; }
#projets .project-card img { filter: grayscale(1) contrast(1.06) brightness(.92); }
#projets .project-card::before { opacity: 0; }
#projets .project-card > div:first-child::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(120deg, #57e0a0 0%, #61c9d4 34%, #849ee8 66%, #bc78ed 100%);
  mix-blend-mode: color;
  opacity: .88;
  transition: opacity .65s var(--v3-ease);
}
#projets .project-card:hover > div:first-child::after,
#projets .project-card:focus-visible > div:first-child::after { opacity: 0; }
#projets .project-card:hover img,
#projets .project-card:focus-visible img { filter: none; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .v5-project-preview:hover img { transform: scale(1.025); }
  .v5-project-preview:hover .v5-project-preview__arrow { border-color: #a9d2c4; background: #a9d2c415; }
}

/* Keep the expertise introduction beside its title instead of at the far edge. */
@media (min-width: 1024px) {
  .v4-spectrum__header {
    grid-template-columns: minmax(0, 1.85fr) minmax(20rem, 1fr);
    column-gap: clamp(1.5rem, 3vw, 3rem);
    justify-content: start;
  }
  #v4-spectrum-title { font-size: clamp(2.7rem, 4.7vw, 5.8rem); }
  #v4-spectrum-title > span { white-space: nowrap; }
  .v4-spectrum__header > p:last-child { margin-left: clamp(.25rem, 1vw, .75rem); }
  .v5-accompaniment .v5-section-heading { grid-template-columns: minmax(0, 1.7fr) minmax(17rem, .8fr); column-gap: clamp(1.5rem, 3vw, 3rem); }
  .v5-accompaniment .v5-title { font-size: clamp(2.25rem, 4.5vw, 3.75rem); }
  .v5-accompaniment .v5-title > span { white-space: nowrap; }
}

.v4-spectrum__expertise { display: grid; grid-template-rows: 9.5rem 1fr; gap: 1.25rem; min-height: 0; padding: 1.4rem; }
.v4-spectrum__expertise img { position: relative; inset: auto; width: 60%; height: 9.5rem; max-height: none; margin: auto; transform: none; }
.v4-spectrum__expertise:hover img { transform: scale(1.04); }
.v4-spectrum__expertise > div { position: relative; inset: auto; align-self: start; }
.v4-spectrum__expertise h3 { font-family: Urbanist, sans-serif; font-weight: 600; font-size: clamp(1.35rem, 1.7vw, 1.65rem); line-height: 1.15; min-height: 2.3em; }
.v4-spectrum__expertise p { font-size: .94rem; line-height: 1.65; color: #bebbc9; }

.v5-accompaniment { padding: clamp(4rem, 8vw, 7rem) 2rem; background: radial-gradient(ellipse at 80% 35%, #ad80de0d, transparent 65%), #08080d; border-bottom: 1px solid #24232c; }
/* Tighten only the boundary between accompaniment and projects. */
#accompagnement { padding-bottom: clamp(3rem, 6vw, 5rem); }
#accompagnement + #projets { padding-top: clamp(4rem, 6vw, 6rem) !important; }
.v5-section-heading { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 6vw, 6rem); align-items: end; }
.v5-section-heading > p { color: #bdbac7; font-size: 1.1rem; line-height: 1.75; padding-bottom: .25rem; }
.v5-engagements { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-top: 3rem; }
.v5-engagements article { padding: clamp(1.5rem, 3vw, 2.5rem); border: 1px solid #34313d; border-radius: 1.2rem; display: flex; flex-direction: column; background: #111019; }
.v5-engagements article.v5-engagements__ongoing { border-color: #779e945e; background: linear-gradient(125deg, #11211c88, #1e142833); }
.v5-eyebrow { color: #a6d8c8; font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; }
.v5-engagements h3 { font-size: clamp(1.6rem, 2.4vw, 2rem); color: #f3f1f8; font-weight: 600; margin-top: 1.5rem; line-height: 1.15; }
.v5-engagements h3 + p { color: #bbb7c5; line-height: 1.75; margin: 1rem 0 1.5rem; }
.v5-text-link { display: inline-flex; align-items: center; gap: 1rem; min-height: 44px; color: #f0ecf7; line-height: 1.4; font-size: .95rem; margin-top: auto; text-underline-offset: .3em; }
.v5-text-link:hover { text-decoration: underline; }

.v5-studio { padding: clamp(4rem, 7vw, 6rem) 2rem; }
.v5-studio .v4-spectrum__approach { margin-top: 0; }
#v5-studio-title { font-size: clamp(2rem, 3.5vw, 3.2rem); }
.v4-spectrum__studio > p:not(.section-kicker) { margin-top: 1.25rem; }
.v4-spectrum__promises { gap: .5rem; margin-top: 1.5rem; }
.v4-spectrum__promises li { padding: 1rem .7rem; }
.v4-spectrum__promises span { color: #aea9bb; }
#ia > .relative.mx-auto { padding-top: 3.5rem !important; padding-bottom: 3.5rem !important; }
#ia h2 { font-size: clamp(2.1rem, 3.6vw, 3rem); }
#ia p.text-lg { font-size: 1rem; }

#contact textarea { resize: vertical; }
.v5-header a:focus-visible, .v5-header button:focus-visible, .v5-text-link:focus-visible, .v5-section-nav a:focus-visible { outline: 2px solid #ad96df; outline-offset: 5px; }
section[tabindex="-1"]:focus { outline: none; }

@media (max-width: 1099px) {
  .v5-desktop-nav { display: none; }
  .v5-menu-toggle { display: flex; }
  .v4-spectrum__expertises { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .v5-section-nav { display: none; }
}
@media (min-width: 640px) and (max-width: 1023px) {
  .v4-spectrum__header { grid-template-columns: 1fr; }
  #v4-spectrum-title { max-width: none; font-size: clamp(2.25rem, 5.1vw, 3.1rem); }
  #v4-spectrum-title > span { white-space: nowrap; }
}
@media (max-width: 767px) {
  .v5-header__inner { height: 72px; padding: 0 1.25rem; gap: 1rem; }
  .v5-header__inner img { width: 191px; height: 46px; }
  .v5-header__cta { display: none; }
  .v5-accompaniment, .v5-studio { padding-inline: 1.25rem; }
  .v5-accompaniment-intro { font-size: 1rem; }
  .v5-section-heading, .v5-engagements { grid-template-columns: 1fr; }
  .v5-section-heading > p { font-size: 1rem; }
  .v5-engagements { margin-top: 2rem; }
  #v5-studio-title { font-size: clamp(2rem, 7vw, 2.7rem); }
  .v5-studio .v4-spectrum__portrait { aspect-ratio: 4 / 3.8; }
}
@media (max-width: 639px) {
  .v5-location { white-space: normal; max-width: 100%; line-height: 1.5; }
  .v4-spectrum__expertises { grid-template-columns: 1fr; }
  .v4-spectrum__expertise { grid-template-columns: 5.5rem 1fr; grid-template-rows: auto; gap: 1rem; padding: 1.25rem; }
  .v4-spectrum__expertise img { width: 100%; height: 6rem; align-self: start; margin-top: 1rem; }
  .v4-spectrum__expertise h3 { min-height: 0; font-size: 1.35rem; }
  .v4-spectrum__expertise p { font-size: .9rem; }
  .v4-spectrum__expertise span { margin-bottom: .4rem; }
}
@media (prefers-reduced-motion: reduce) {
  #projets .project-card img,
  #projets .project-card > div:first-child::after { transition: none !important; }
  .v5-project-preview img, .v5-project-preview__arrow { transition: none; }
  .v5-menu-toggle span, .v4-spectrum__expertise, .v4-spectrum__expertise img { transition: none !important; }
  .v4-spectrum__expertise:hover { transform: none; }
  #accueil video[hidden] { display: none; }
}
