:root {
  --blue: #3155ff;
  --pale-blue: #e8ecff;
  --ink: #111111;
  --muted: #666662;
  --paper: #f7f6f2;
  --white: #ffffff;
  --line: rgba(17, 17, 17, .2);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 12px 16px;
  color: var(--white);
  background: var(--ink);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: none;
}

.portfolio-header {
  position: sticky;
  z-index: 20;
  top: 0;
  min-height: 88px;
  padding: 0 48px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--ink);
  backdrop-filter: blur(10px);
}

.portfolio-logo img,
footer img {
  display: block;
  width: 145px;
  height: auto;
}

.portfolio-header p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-align: center;
  text-transform: uppercase;
}

.back-home {
  justify-self: end;
  font-size: 13px;
  font-weight: 700;
}

.back-home span {
  margin-left: 12px;
  color: var(--blue);
}

.portfolio-hero {
  padding: 105px max(48px, calc((100vw - 1320px) / 2)) 92px;
  background: var(--white);
}

.portfolio-kicker {
  margin: 0 0 34px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.portfolio-hero h1 {
  max-width: 1040px;
  margin: 0;
  font-size: clamp(64px, 7.2vw, 116px);
  letter-spacing: -.075em;
  line-height: .88;
}

.portfolio-intro {
  max-width: 620px;
  margin: 48px 0 0 auto;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.portfolio-tools {
  padding: 48px max(48px, calc((100vw - 1320px) / 2));
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  gap: 40px;
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.search-field label,
.filters legend {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.search-field input {
  width: 100%;
  padding: 14px 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 2px solid var(--ink);
  border-radius: 0;
  font: inherit;
}

.search-field input:focus {
  outline: 3px solid var(--blue);
  outline-offset: 4px;
}

.filters {
  margin: 0;
  padding: 0;
  border: 0;
}

.filters button {
  margin: 0 5px 7px 0;
  padding: 8px 11px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--ink);
  border-radius: 0;
  font: 600 12px/1.2 Arial, Helvetica, sans-serif;
  cursor: pointer;
}

.filters button[aria-pressed="true"] {
  color: var(--white);
  background: var(--blue);
  border-color: var(--blue);
}

.filters button:focus-visible,
.project-card a:focus-visible,
.back-home:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 4px;
}

.results-heading {
  padding: 30px max(48px, calc((100vw - 1320px) / 2));
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--ink);
}

.results-heading p {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
}

.results-heading p:last-child {
  color: var(--muted);
  font-weight: 400;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.project-card {
  position: relative;
  min-height: 590px;
  padding: 46px max(48px, calc((100vw - 1320px) / 2));
  overflow: hidden;
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.project-card[hidden] {
  display: none;
}

.card-index {
  position: absolute;
  top: -24px;
  right: 20px;
  color: var(--pale-blue);
  font-size: 150px;
  font-weight: 900;
  letter-spacing: -.1em;
  line-height: 1;
}

.card-sector {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--blue);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.project-card h2 {
  position: relative;
  z-index: 1;
  max-width: 570px;
  margin: 80px 0 25px;
  font-size: clamp(38px, 4vw, 64px);
  letter-spacing: -.055em;
  line-height: .96;
}

.card-summary {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.project-card ul {
  margin: 34px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  list-style: none;
}

.project-card li {
  padding: 7px 9px;
  background: var(--paper);
  border: 1px solid var(--line);
  font-size: 11px;
}

.card-meta {
  margin-top: 36px;
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}

.project-card > a {
  position: absolute;
  right: max(48px, calc((100vw - 1320px) / 2));
  bottom: 42px;
  left: max(48px, calc((100vw - 1320px) / 2));
  padding-bottom: 10px;
  display: flex;
  justify-content: space-between;
  border-bottom: 3px solid var(--blue);
  font-size: 13px;
  font-weight: 700;
}

.project-card > a span {
  color: var(--blue);
}

.portfolio-note {
  padding: 105px max(48px, calc((100vw - 1320px) / 2));
  color: var(--white);
  background: var(--blue);
}

.portfolio-note > p {
  margin: 0 0 32px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.portfolio-note h2 {
  max-width: 1000px;
  margin: 0;
  font-size: clamp(48px, 6vw, 92px);
  letter-spacing: -.065em;
  line-height: .93;
}

.portfolio-note a {
  width: fit-content;
  margin-top: 50px;
  padding-bottom: 9px;
  display: block;
  border-bottom: 2px solid var(--white);
  font-size: 14px;
  font-weight: 700;
}

footer {
  min-height: 190px;
  padding: 48px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: end;
  background: var(--white);
  border-top: 1px solid var(--ink);
}

footer > p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

footer nav {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  font-size: 11px;
}

@media (max-width: 900px) {
  .portfolio-header {
    padding: 0 20px;
    grid-template-columns: 1fr auto;
  }

  .portfolio-header p {
    display: none;
  }

  .portfolio-hero,
  .portfolio-tools,
  .results-heading,
  .portfolio-note {
    padding-right: 24px;
    padding-left: 24px;
  }

  .portfolio-tools {
    grid-template-columns: 1fr;
  }

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

  .project-card {
    min-height: 560px;
    padding-right: 24px;
    padding-left: 24px;
    border-right: 0;
  }

  .project-card > a {
    right: 24px;
    left: 24px;
  }

  footer {
    padding: 40px 24px;
    grid-template-columns: 1fr;
    gap: 28px;
  }

  footer > p {
    text-align: left;
  }

  footer nav {
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* Ajustements V11 - page Références */
body {
  height: auto;
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: visible;
  padding-bottom: 0;
}

.portfolio-hero {
  padding-top: 72px;
  padding-bottom: 62px;
}

.portfolio-kicker {
  margin-bottom: 22px;
}

.portfolio-hero h1 {
  max-width: 900px;
  font-size: clamp(46px, 5vw, 76px);
  letter-spacing: -.06em;
  line-height: .94;
}

.portfolio-intro {
  max-width: none;
  margin: 28px 0 0;
  font-size: 15px;
  line-height: 1.5;
  text-align: left;
}

.portfolio-tools {
  padding-top: 34px;
  padding-bottom: 34px;
}

.project-card {
  min-height: 430px;
  padding: 30px 40px 34px;
}

.card-index {
  top: -18px;
  right: 22px;
  font-size: 104px;
}

.card-sector {
  margin-top: 0;
}

.project-card h2 {
  margin: 52px 0 15px;
  font-size: clamp(29px, 3vw, 45px);
  line-height: .98;
}

.card-summary {
  font-size: 14px;
  line-height: 1.5;
}

.project-card ul {
  margin-top: 20px;
}

.card-meta,
.project-card > a {
  display: none;
}

.card-actions {
  position: absolute;
  right: 40px;
  bottom: 28px;
  left: 40px;
  padding-top: 0;
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 18px;
  border-top: 0;
  color: var(--muted);
  font-size: 11px;
}

.card-actions a {
  flex: none;
  padding-bottom: 4px;
  color: var(--ink);
  border-bottom: 2px solid var(--blue);
  font-size: 12px;
  font-weight: 700;
}

.card-actions a span {
  color: var(--blue);
}

.portfolio-note {
  padding-top: 78px;
  padding-bottom: 78px;
}

.portfolio-note h2 {
  max-width: 820px;
  font-size: clamp(36px, 4.4vw, 62px);
  line-height: .98;
}

.portfolio-note a {
  margin-top: 36px;
}

footer {
  min-height: 0;
  padding: 66px 48px 28px;
  display: block;
  color: var(--white);
  background: var(--ink);
  border-top: 0;
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(300px, .8fr) 1.2fr;
  gap: clamp(70px, 10vw, 160px);
}

.footer-brand {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
}

.footer-brand > a:first-child {
  width: fit-content;
  padding: 11px 14px;
  background: var(--white);
}

.footer-brand img {
  width: 145px;
}

.footer-brand p {
  max-width: 440px;
  margin: 36px 0 26px;
  color: var(--white);
  font-size: clamp(28px, 2.6vw, 42px);
  font-weight: 700;
  letter-spacing: -.045em;
  line-height: 1.03;
}

.footer-contact {
  padding-bottom: 7px;
  color: var(--white);
  border-bottom: 2px solid var(--blue);
  font-size: 13px;
  font-weight: 700;
}

.footer-contact span {
  margin-left: 22px;
  color: var(--blue);
}

.footer-addresses {
  padding: 9px 0 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.footer-addresses address {
  padding: 18px 0 20px;
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, .18);
  font-style: normal;
}

.footer-addresses strong {
  color: var(--white);
  font-size: 16px;
}

.footer-addresses span {
  color: rgba(255, 255, 255, .62);
  font-size: 13px;
  line-height: 1.5;
}

.footer-bottom {
  margin-top: 60px;
  padding-top: 22px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border-top: 1px solid rgba(255, 255, 255, .2);
}

.footer-bottom p {
  margin: 0;
  color: rgba(255, 255, 255, .62);
  font-size: 11px;
}

.footer-bottom > a {
  color: rgba(255, 255, 255, .72);
  font-size: 11px;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-status {
  display: flex;
  justify-self: end;
  gap: 20px;
  color: rgba(255, 255, 255, .62);
  font-size: 11px;
}

@media (min-width: 1180px) {
  .portfolio-intro {
    white-space: nowrap;
  }
}

@media (max-width: 900px) {
  .portfolio-hero {
    padding-top: 52px;
    padding-bottom: 46px;
  }

  .portfolio-intro {
    white-space: normal;
  }

  .project-card {
    min-height: 420px;
    padding: 28px 24px 32px;
  }

  .card-actions {
    right: 24px;
    left: 24px;
  }

  footer {
    padding: 46px 24px 24px;
  }

  .footer-brand,
  .footer-addresses {
    grid-template-columns: 1fr;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 46px;
  }

  .footer-brand p {
    justify-self: start;
  }

  .footer-bottom {
    align-items: flex-start;
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .footer-status {
    justify-self: start;
    flex-wrap: wrap;
  }
}
