:root {
  --green: #204e46;
  --pink: #ca8b9d;
  --gray: #b4b4b4;
  --text: #737373;
  --bilan-bg: #fff0f5;
  --bilan-title: #d9b3be;
  --bilan-text: #ca8b9d;
  --border: #ebebeb;
  --content: 880px;
}

/* Instance exacte Figma : Fraunces SuperSoft Wonky 72pt */
@font-face {
  font-family: Fraunces;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/Fraunces-SuperSoftWonky72pt-Regular-latinext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: Fraunces;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/Fraunces-SuperSoftWonky72pt-Regular.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: Fraunces;
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/Fraunces-SuperSoftWonky72pt-Italic-latinext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: Fraunces;
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/Fraunces-SuperSoftWonky72pt-Italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  color: #000;
  background: #fff;
  overflow-x: clip;
  max-width: 100%;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #fff;
  padding: 40px 40px 24px;
}

.site-header__name {
  margin: 0;
  font-family: "Schibsted Grotesk", sans-serif;
  font-weight: 600;
  font-size: 24px;
  letter-spacing: -0.48px;
  line-height: 1.3;
  color: #000;
  text-decoration: none;
  transition: color 0.2s ease;
}

a.site-header__name:hover,
a.site-header__name:focus-visible {
  color: var(--pink);
}

/* Accueil */

body.home {
  min-height: 100vh;
  background: #fff;
}

body.home .site-header {
  padding-left: 72px;
  padding-right: 72px;
}

.intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  padding: 40px 72px 88px;
  box-sizing: border-box;
}

.expertise {
  padding: 8px 72px 72px;
  box-sizing: border-box;
}

.expertise__label {
  margin: 0 0 14px;
  font-family: Inter, sans-serif;
  font-weight: 400;
  font-size: 15px;
  line-height: 1.3;
  color: var(--text);
}

.expertise__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.pill {
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 8px 16px;
  border: 1.5px solid #e4e4e4;
  border-radius: 999px;
  background: #fff;
  font-family: Inter, sans-serif;
  font-weight: 500;
  font-size: 15px;
  line-height: 1.2;
  color: #8a8a8a;
  cursor: pointer;
}

.pill__count {
  margin-left: 8px;
  font-size: 12px;
  line-height: 1;
}

.pill:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

.pill--design.is-on {
  background: #e7e7ff;
  border-color: #ababff;
  color: #000;
}

.pill--research.is-on {
  background: #ffd7f8;
  border-color: #ff7fe8;
  color: #000;
}

.pill--concept.is-on {
  background: #656a94;
  border-color: #373a5d;
  color: #fff;
}

.work-card.is-hidden {
  display: none;
}

.intro__role {
  margin: 0;
  font-family: Fraunces, "Times New Roman", serif;
  font-style: italic;
  font-weight: 400;
  font-size: 22px;
  letter-spacing: -0.44px;
  line-height: 1.2;
  color: #000;
  text-align: center;
}

.intro__text {
  margin: 0;
  font-family: Inter, sans-serif;
  font-weight: 400;
  font-size: 15px;
  line-height: 1.45;
  color: #5e5e5e;
}

.intro__text strong {
  font-weight: 700;
  color: inherit;
}

.works {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px 56px;
  padding: 0 72px 80px;
  box-sizing: border-box;
}

.work-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

a.work-card:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 6px;
}

.work-card__visual {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 7404 / 4120;
  margin: 0 0 12px;
  overflow: hidden;
  background: #f3f3f3;
}

.work-card__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 0.2s ease;
}

a.work-card .work-card__visual img {
  transition: opacity 0.4s ease;
}

a.work-card:hover .work-card__visual img,
a.work-card:focus-visible .work-card__visual img {
  opacity: 0.85;
}

.work-card__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-family: Inter, sans-serif;
  font-weight: 400;
  font-size: 14px;
  letter-spacing: normal;
  line-height: 1.3;
  color: var(--text);
}

.work-card__year {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.work-card__year::before {
  content: "";
  width: 1px;
  height: 14px;
  background: var(--border);
}

.work-card__phrase {
  margin: 4px 0 0;
  font-family: Inter, sans-serif;
  font-weight: 500;
  font-size: 16px;
  letter-spacing: -0.2px;
  line-height: 1.4;
  color: #000;
}

.work-card--soon .work-card__visual {
  background: #e6e6e6;
  transition: background 0.2s ease;
}

.work-card__soon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 16px;
  background: rgba(227, 227, 227, 0.72);
  font-family: Fraunces, "Times New Roman", serif;
  font-style: italic;
  font-weight: 400;
  font-size: 28px;
  line-height: 1.1;
  text-align: center;
  color: var(--green);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.work-card--soon:hover .work-card__visual,
.work-card--soon:focus-within .work-card__visual {
  background: #cfcfcf;
}

.work-card--soon:hover .work-card__visual img,
.work-card--soon:focus-within .work-card__visual img {
  filter: grayscale(1);
}

.work-card--soon:hover .work-card__soon,
.work-card--soon:focus-within .work-card__soon {
  opacity: 1;
}

.js-home-reveal .work-card__visual {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-in-out, transform 1s ease-in-out, background 0.2s ease;
}

.js-home-reveal .work-card:nth-child(even) .work-card__visual {
  transition-delay: 0.15s;
}

.js-home-reveal .work-card__visual.is-in {
  opacity: 1;
  transform: none;
}

/* Pages projet */

.project-page {
  background: #fff;
}

.project {
  width: min(100%, 100vw);
  max-width: var(--content);
  margin: 0 auto;
  padding: 56px 24px 32px;
  box-sizing: border-box;
}

.hero-title,
.section-title {
  max-width: 100%;
  overflow-wrap: break-word;
}

.columns > * {
  min-width: 0;
}

.hero-title {
  margin: 0 0 32px;
  font-family: Fraunces, "Times New Roman", serif;
  font-weight: 400;
  font-size: 48px;
  letter-spacing: -1.92px;
  line-height: 1.1;
  color: var(--green);
  overflow-wrap: break-word;
  text-align: center;
}

.passport {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
}

.passport__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  min-width: 0;
  padding: 8px 12px;
  text-align: center;
  border-left: 1px solid var(--border);
}

.passport__item:first-child {
  border-left: none;
}

.passport dt,
.passport dd {
  margin: 0;
  overflow-wrap: break-word;
}

.passport dt {
  font-family: Inter, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.3;
  color: var(--text);
}

.passport dd {
  font-family: Inter, sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.3;
  color: #000;
}

.columns {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-bottom: 32px;
  padding-top: 32px;
}

.label {
  margin: 0 0 16px;
  font-family: Inter, sans-serif;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: -0.56px;
  line-height: 1.1;
  text-transform: uppercase;
  color: var(--gray);
}

.body-text {
  font-family: Inter, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
}

.body-text p {
  margin: 0;
}

.body-text p + p {
  margin-top: 1.5em;
}

/* Paragraphes collés (pas de ligne vide dans la maquette) */
.body-text p.is-flush {
  margin-top: 0;
}

.body-text ul {
  margin: 0.5em 0 1.5em;
  padding-left: 1.2em;
}

.body-text li {
  margin-bottom: 0.4em;
}

.body-text strong {
  font-family: Inter, sans-serif;
  font-weight: 700;
  color: var(--text);
}

.body-text em {
  font-style: italic;
}

.chapter {
  display: flex;
  align-items: center;
  gap: 0.28em;
  margin: 40px 0 8px;
  font-family: "Schibsted Grotesk", sans-serif;
  font-weight: 600;
  font-size: 24px;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: var(--pink);
}

.chapter__arrow {
  display: inline-block;
  flex-shrink: 0;
  width: 0.72em;
  height: 0.72em;
  margin-top: 0.06em;
}

.section {
  padding: 32px 0 8px;
}

.section-title {
  margin: 0 0 24px;
  font-family: Fraunces, "Times New Roman", serif;
  font-weight: 400;
  font-size: 32px;
  letter-spacing: -1.28px;
  line-height: 1.1;
  color: var(--green);
}

.section-intro,
.bilan-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.section-intro .section-title,
.bilan-head .section-title {
  margin: 0;
}

.highlight {
  width: fit-content;
  max-width: 100%;
  margin: 0;
  padding: 21px 19px;
  border-radius: 8px;
  background: #ecf2f1;
  color: var(--green);
  font-family: Inter, sans-serif;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
}

.highlight strong {
  font-weight: 700;
  color: inherit;
}

.highlight--solid {
  background: var(--green);
  color: #fff;
}

.section .body-text {
  margin-bottom: 24px;
}

.figure {
  margin: 0 0 24px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 0;
  max-width: 100%;
}

.figure--bare {
  border: 0;
}

.project-di .figure--crop {
  position: relative;
  overflow: hidden;
}

.project-di .figure--crop-temporalite {
  aspect-ratio: 822 / 463;
}

.project-di .figure--crop-evolutions {
  aspect-ratio: 870 / 489;
}

.project-di .figure--crop-temporalite .figure__video,
.project-di .figure--crop-evolutions .figure__video {
  position: absolute;
  inset: auto;
  max-width: none;
  object-fit: cover;
}

.project-di .figure--crop-temporalite .figure__video {
  left: -3.53%;
  top: -9.89%;
  width: 107.06%;
  height: 133.07%;
}

.project-di .figure--crop-evolutions .figure__video {
  left: -0.46%;
  top: -5.37%;
  width: 101.15%;
  height: 110.98%;
}

.figure--enseigne {
  position: relative;
  aspect-ratio: 880 / 389;
  overflow: hidden;
}

.figure--enseigne img {
  position: absolute;
  inset: auto;
  left: 0;
  top: -63.82%;
  width: 100%;
  height: 169.67%;
  max-width: none;
  object-fit: cover;
}

.figure--map-journee,
.figure--map-controle {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.figure--map-journee img,
.figure--map-controle img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
}

.figure--prototype {
  display: flex;
  justify-content: center;
  background: transparent;
}

.figure--prototype img,
.figure--prototype .figure__video {
  width: min(100%, 240px);
  height: auto;
}

.figure img,
.figure-grid img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.figure img[src*=".svg"] {
  object-fit: contain;
  background: transparent;
}

.figure__video {
  display: block;
  width: 100%;
  height: auto;
  background: #f5f5f5;
}


.figure-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 0 0 24px;
}

.figure-grid img {
  width: 100%;
  aspect-ratio: 3 / 4;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

.caption {
  margin: -8px 0 24px;
  font-family: Inter, sans-serif;
  font-size: 12px;
  font-style: italic;
  line-height: 1.5;
  color: var(--text);
  text-align: center;
}

.bilan {
  background: var(--bilan-bg);
  padding: 56px 24px;
}

.bilan-inner {
  max-width: var(--content);
  margin: 0 auto;
}

.bilan .label {
  color: var(--bilan-title);
}

.bilan .body-text,
.bilan .body-text strong {
  color: var(--bilan-text);
}

.project-lba .bilan .body-text,
.project-lba .bilan .body-text strong,
.project-autovision .bilan .section-title,
.project-autovision .bilan .body-text,
.project-autovision .bilan .body-text strong,
.project-di .bilan .section-title,
.project-di .bilan .body-text,
.project-di .bilan .body-text strong {
  color: var(--green);
}

.project-autovision .figure,
.project-autovision .figure-grid img {
  border-radius: 13px;
}

.project-autovision .figure-grid img {
  aspect-ratio: 288 / 489;
}

@media (max-width: 900px) {
  .works {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 0 28px 64px;
  }

  .intro {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 28px 28px 56px;
  }

  .expertise {
    padding: 0 28px 40px;
  }

  .pill {
    font-size: 14px;
  }

  .pill__count {
    font-size: 11px;
  }

  .intro__role {
    font-size: 20px;
  }

  .intro__text {
    font-size: 14px;
  }

  .work-card__phrase {
    font-size: 15px;
  }

  .work-card--soon .work-card__visual img {
    filter: grayscale(1);
  }

  .work-card__soon {
    opacity: 1;
    font-size: 24px;
  }

  .site-header {
    padding: 24px 20px;
  }

  body.home .site-header {
    padding-left: 28px;
    padding-right: 28px;
  }

  .site-header__name {
    font-size: 20px;
  }

  .hero-title {
    font-size: 32px;
    letter-spacing: -1.2px;
  }

  .section-title {
    font-size: 26px;
  }

  .chapter {
    font-size: 20px;
  }

  .passport {
    grid-template-columns: 1fr 1fr;
  }

  .passport__item {
    border-left: none;
    padding: 16px 12px;
  }

  .passport__item:nth-child(even) {
    border-left: 1px solid var(--border);
  }

  .passport__item:nth-child(n + 3) {
    border-top: 1px solid var(--border);
  }

  .figure-grid {
    grid-template-columns: 1fr;
  }

  .project-autovision .figure-grid img {
    aspect-ratio: 287 / 158;
  }
}

/* Apparition au scroll : fondu une seule fois (sans glissement, pour garder la netteté) */
.js-reveal-io .reveal-media:not(.is-revealed) {
  opacity: 0.22;
}

.js-reveal-io .reveal-media {
  transition: opacity 1.35s cubic-bezier(0.33, 0, 0.2, 1);
  transition-delay: var(--reveal-delay, 0s);
}

.js-reveal-io .reveal-media.is-revealed {
  opacity: 1;
}

.js-reveal-io .reveal-media.is-reveal-settled {
  opacity: 1;
  transition: none;
}

@media (hover: none) {
  .work-card--soon .work-card__visual img {
    filter: grayscale(1);
  }

  .work-card--soon .work-card__soon {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .js-reveal-io .reveal-media,
  .js-reveal-io .reveal-media:not(.is-revealed) {
    opacity: 1;
    transition: none;
  }

  .work-card--soon .work-card__visual,
  .work-card--soon .work-card__visual img,
  .work-card__soon,
  a.work-card .work-card__visual img {
    transition: none;
  }

  .js-home-reveal .work-card__visual {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
