:root {
  --bg: #f1f0eb;
  --bg-soft: #f8f7f3;
  --surface: rgba(255, 255, 255, 0.58);
  --surface-strong: rgba(255, 255, 255, 0.82);
  --text: #171715;
  --muted: #6f706b;
  --line: rgba(24, 24, 20, 0.1);
  --orange: #e76632;
  --orange-2: #f07d4c;
  --max: 1120px;
  --radius: 22px;
  --shadow: 0 18px 55px rgba(39, 35, 26, 0.08);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  color: var(--text);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  line-height: 1.55;
  overflow-x: hidden;
  background: radial-gradient(
      circle at 92% 4%,
      rgba(231, 102, 50, 0.13),
      transparent 25rem
    ),
    radial-gradient(
      circle at 0 35%,
      rgba(255, 255, 255, 0.92),
      transparent 32rem
    ),
    linear-gradient(180deg, var(--bg-soft), var(--bg));
}
body.menu-open {
  overflow: hidden;
}
button,
input,
textarea,
select {
  font: inherit;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  display: block;
  max-width: 100%;
}
button {
  color: inherit;
}
.skip {
  position: fixed;
  left: 16px;
  top: -80px;
  background: #171715;
  color: #fff;
  padding: 12px 16px;
  border-radius: 12px;
  z-index: 1000;
}
.skip:focus {
  top: 16px;
}
.shell {
  width: min(calc(100% - 40px), var(--max));
  margin-inline: auto;
}
.section {
  padding: 82px 0;
}
.section-sm {
  padding: 48px 0;
}
.eyebrow {
  font-size: 0.69rem;
  text-transform: uppercase;
  letter-spacing: 0.19em;
  font-weight: 850;
  color: var(--orange);
}
.display {
  font-size: clamp(3.8rem, 9vw, 7.7rem);
  line-height: 0.88;
  letter-spacing: -0.068em;
  margin: 0;
  font-weight: 900;
  max-width: 950px;
}
.h1 {
  font-size: clamp(3rem, 6.2vw, 5.5rem);
  line-height: 0.92;
  letter-spacing: -0.052em;
  margin: 0;
  font-weight: 900;
}
.h2 {
  font-size: clamp(2.05rem, 4.2vw, 3.75rem);
  line-height: 1;
  letter-spacing: -0.043em;
  margin: 0;
  font-weight: 880;
}
.h3 {
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  line-height: 1.08;
  letter-spacing: -0.026em;
  margin: 0;
}
.lead {
  font-size: clamp(1.03rem, 1.65vw, 1.3rem);
  color: #555650;
  max-width: 650px;
}
.muted {
  color: var(--muted);
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  padding: 12px 17px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 850;
  cursor: pointer;
  transition: 0.24s ease;
  min-height: 44px;
}
.button-primary {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 10px 24px rgba(231, 102, 50, 0.18);
}
.button-primary:hover {
  transform: translateY(-2px);
  background: var(--orange-2);
  box-shadow: 0 14px 32px rgba(231, 102, 50, 0.25);
}
.button-secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(14px);
}
.button-secondary:hover {
  background: #fff;
  border-color: rgba(24, 24, 20, 0.18);
}
.button-dark {
  background: #171715;
  color: #fff;
}
.button-dark:hover {
  background: #343430;
  transform: translateY(-2px);
}
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: 76px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: 0.25s ease;
}
.header.scrolled {
  height: 66px;
  background: rgba(246, 245, 240, 0.72);
  border-color: var(--line);
  backdrop-filter: blur(22px) saturate(145%);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
}
.brand {
  font-weight: 900;
  letter-spacing: -0.035em;
  font-size: 1.06rem;
}
.brand i {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
  margin-left: 4px;
}
.nav {
  display: flex;
  align-items: center;
  gap: 3px;
}
.nav a {
  font-size: 0.79rem;
  font-weight: 800;
  color: #696a65;
  padding: 9px 12px;
  border-radius: 999px;
  transition: 0.2s;
}
.nav a:hover,
.nav a.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.66);
  box-shadow: inset 0 0 0 1px rgba(24, 24, 20, 0.06);
}
.menu-btn {
  display: none;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.62);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(12px);
}
.menu-btn span,
.menu-btn span:before,
.menu-btn span:after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  background: #171715;
  position: relative;
  transition: 0.2s;
}
.menu-btn span:before {
  position: absolute;
  top: -6px;
}
.menu-btn span:after {
  position: absolute;
  top: 6px;
}
.menu-btn.open span {
  background: transparent;
}
.menu-btn.open span:before {
  transform: translateY(6px) rotate(45deg);
}
.menu-btn.open span:after {
  transform: translateY(-6px) rotate(-45deg);
}
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(244, 243, 238, 0.9);
  backdrop-filter: blur(24px);
  padding: 104px 20px 28px;
}
.mobile-nav.open {
  display: flex;
  flex-direction: column;
}
.mobile-nav a {
  font-size: clamp(2rem, 9vw, 3.5rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  padding: 5px 0;
  border-bottom: 1px solid var(--line);
}
.mobile-nav .button {
  font-size: 1rem;
  margin-top: auto;
  border: 0;
}
.hero {
  min-height: 78svh;
  display: flex;
  align-items: center;
  padding: 132px 0 72px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero:before {
  content: "";
  position: absolute;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(231, 102, 50, 0.17),
    rgba(231, 102, 50, 0) 68%
  );
  top: -10%;
  right: -14%;
  filter: blur(4px);
}
.hero:after {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.58);
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(20px);
  left: -11%;
  bottom: -25%;
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 1;
}
.orange {
  color: var(--orange);
}
.hero-bottom {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 34px;
  align-items: end;
  margin-top: 34px;
}
.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.hero-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  margin-top: 40px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #85857f;
  font-weight: 800;
  font-size: 0.64rem;
}
.section-head {
  display: grid;
  grid-template-columns: 1fr 0.72fr;
  gap: 40px;
  align-items: end;
  margin-bottom: 38px;
}
.section-head p {
  margin: 0;
}
.panel {
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.67),
    rgba(255, 255, 255, 0.35)
  );
  backdrop-filter: blur(20px) saturate(125%);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.showreel {
  min-height: 430px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 26px;
  cursor: pointer;
  color: #fff;
  background: radial-gradient(
      circle at 80% 28%,
      rgba(231, 102, 50, 0.72),
      transparent 24%
    ),
    radial-gradient(
      circle at 19% 82%,
      rgba(124, 72, 194, 0.25),
      transparent 31%
    ),
    linear-gradient(130deg, #31312f 0%, #171715 58%, #272722 100%);
}
.showreel:before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    transparent,
    rgba(255, 255, 255, 0.05),
    transparent
  );
}
.showreel-copy {
  position: relative;
  z-index: 1;
}
.play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 78px;
  height: 78px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.58);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(18px);
  display: grid;
  place-items: center;
  transition: 0.25s;
}
.play:before {
  content: "";
  margin-left: 5px;
  border-left: 17px solid #fff;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
}
.showreel:hover .play {
  transform: translate(-50%, -50%) scale(1.08);
  background: var(--orange);
  border-color: var(--orange);
}
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.project-card {
  cursor: pointer;
}
.project-art {
  aspect-ratio: 4/3;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(24, 24, 20, 0.08);
  background: #171715;
  box-shadow: 0 14px 36px rgba(28, 26, 20, 0.08);
}

/*
  FORMAT DES MINIATURES ET DES PHOTOS
  horizontal = paysage
  vertical = portrait
  square = carré
*/
.project-art.media-horizontal {
  aspect-ratio: 4 / 3;
}
.project-art.media-vertical {
  aspect-ratio: 4 / 5;
}
.project-art.media-square {
  aspect-ratio: 1 / 1;
}
.project-art:after {
  content: "Voir ↗";
  position: absolute;
  right: 14px;
  bottom: 14px;
  background: rgba(255, 255, 255, 0.9);
  color: #171715;
  border-radius: 999px;
  padding: 8px 11px;
  font-size: 0.69rem;
  font-weight: 900;
  transform: translateY(14px);
  opacity: 0;
  transition: 0.25s;
  backdrop-filter: blur(8px);
}
.project-card:hover .project-art:after {
  transform: none;
  opacity: 1;
}
.project-card:hover .art-layer {
  transform: scale(1.04);
}
.art-layer {
  position: absolute;
  inset: 0;
  transition: 0.5s ease;
}
.art-1 {
  background: radial-gradient(circle at 72% 38%, #ff7139 0 5%, transparent 26%),
    linear-gradient(135deg, #20100d, #1a1a1a 48%, #050505);
}
.art-1:after {
  content: "";
  position: absolute;
  left: 13%;
  top: 16%;
  width: 26%;
  height: 66%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  transform: rotate(14deg);
  box-shadow: 0 0 60px rgba(255, 90, 31, 0.3);
}
.art-2 {
  background: radial-gradient(
      circle at 34% 44%,
      #ff5a1f 0 8%,
      #6e2010 26%,
      transparent 45%
    ),
    linear-gradient(110deg, #111, #242424);
}
.art-2:after {
  content: "PORTRAIT";
  position: absolute;
  right: -2%;
  bottom: 4%;
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 900;
  color: rgba(255, 255, 255, 0.08);
  transform: rotate(-90deg);
}
.art-3 {
  background: linear-gradient(145deg, #101010, #232323);
}
.art-3:before {
  content: "";
  position: absolute;
  width: 34%;
  height: 54%;
  left: 16%;
  top: 22%;
  border-radius: 50% 50% 44% 44%;
  background: linear-gradient(#f2ae7c, #582e1e);
  filter: saturate(0.55);
  box-shadow: 90px 15px 0 -10px #101010;
}
.art-3:after {
  content: "";
  position: absolute;
  right: 12%;
  top: 15%;
  height: 70%;
  width: 2px;
  background: var(--orange);
  box-shadow:
    20px 0 0 rgba(255, 255, 255, 0.15),
    40px 0 0 rgba(255, 255, 255, 0.07);
}
.art-4 {
  background: linear-gradient(135deg, #2b142f, #101010 60%);
}
.art-4:before {
  content: "9:16";
  position: absolute;
  left: 12%;
  top: 16%;
  font-size: clamp(4rem, 10vw, 8rem);
  font-weight: 900;
  color: rgba(255, 255, 255, 0.1);
}
.art-4:after {
  content: "";
  position: absolute;
  right: 18%;
  top: 12%;
  width: 24%;
  height: 76%;
  border: 5px solid #ff5a1f;
  border-radius: 26px;
  box-shadow: -70px 38px 0 -7px rgba(255, 255, 255, 0.1);
}
.art-5 {
  background: radial-gradient(
      circle at 65% 50%,
      rgba(255, 90, 31, 0.85),
      rgba(255, 90, 31, 0.15) 13%,
      transparent 28%
    ),
    linear-gradient(130deg, #0e0e0e, #252525);
}
.art-5:after {
  content: "";
  position: absolute;
  width: 38%;
  height: 38%;
  left: 16%;
  top: 30%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  transform: rotate(45deg);
}
.art-6 {
  background: linear-gradient(135deg, #d7d7d0, #515151 48%, #0c0c0c 49%);
}
.art-6:after {
  content: "EDITORIAL";
  position: absolute;
  left: 7%;
  bottom: 4%;
  font-size: clamp(3rem, 8vw, 7.5rem);
  font-weight: 900;
  letter-spacing: -0.08em;
  color: rgba(255, 255, 255, 0.36);
}
.project-info {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
  padding: 14px 3px 5px;
}
.project-info p {
  margin: 5px 0 0;
  font-size: 0.78rem;
  color: var(--muted);
}
.demo-chip {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  padding: 5px 7px;
  border: 1px solid rgba(231, 102, 50, 0.28);
  color: var(--orange);
  border-radius: 999px;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.18);
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.service-card {
  padding: 23px;
  min-height: 230px;
  display: flex;
  flex-direction: column;
  transition: 0.25s;
}
.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(231, 102, 50, 0.25);
}
.number {
  color: var(--orange);
  font-weight: 900;
  font-size: 0.74rem;
}
.service-card h3 {
  margin: 32px 0 11px;
}
.service-card .link {
  margin-top: auto;
  color: var(--orange);
  font-size: 0.75rem;
  font-weight: 900;
}
.white {
  background: rgba(255, 255, 255, 0.34);
  border-block: 1px solid rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(18px);
}
.why {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 55px;
}
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.why-grid div {
  padding: 22px;
  border-bottom: 1px solid var(--line);
  font-weight: 760;
}
.why-grid div:nth-child(odd) {
  border-right: 1px solid var(--line);
}
.process {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 13px;
}
.process article {
  padding: 23px;
  min-height: 210px;
}
.process h3 {
  margin: 32px 0 10px;
}
.cta {
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 26px;
  padding: 42px;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0.68),
    rgba(255, 239, 230, 0.58)
  );
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}
.page-hero {
  padding: 145px 0 54px;
  border-bottom: 1px solid var(--line);
}
.page-hero .lead {
  margin: 22px 0 0;
}
.filters {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}
.filter {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.36);
  border-radius: 999px;
  padding: 9px 13px;
  cursor: pointer;
  font-size: 0.73rem;
  font-weight: 800;
  backdrop-filter: blur(12px);
}
.filter.active,
.filter:hover {
  background: #171715;
  color: #fff;
}
.all-projects {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px 18px;
}
.services-list {
  display: grid;
  gap: 10px;
}
.service-row {
  display: grid;
  grid-template-columns: 48px 0.72fr 1.15fr auto;
  gap: 22px;
  align-items: center;
  padding: 23px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(17px);
  box-shadow: 0 10px 32px rgba(39, 35, 26, 0.04);
  transition: 0.25s;
}
.service-row:hover {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(231, 102, 50, 0.22);
  transform: translateY(-2px);
}
.about-grid {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: 48px;
  align-items: center;
}
.portrait {
  aspect-ratio: 4/5;
  position: relative;
  overflow: hidden;
  background: radial-gradient(
      circle at 45% 26%,
      #f6b989 0 9%,
      #6b3828 21%,
      transparent 30%
    ),
    linear-gradient(140deg, #343431, #171715);
  border-radius: 26px;
  box-shadow: var(--shadow);
}
.portrait:before {
  content: "";
  position: absolute;
  width: 45%;
  height: 60%;
  left: 27%;
  bottom: -8%;
  background: linear-gradient(#222, #080808);
  border-radius: 48% 48% 0 0;
}
.portrait:after {
  content: "PHOTO À REMPLACER";
  position: absolute;
  left: 16px;
  bottom: 16px;
  background: rgba(255, 255, 255, 0.88);
  color: #171715;
  padding: 7px 9px;
  font-size: 0.59rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  border-radius: 999px;
  backdrop-filter: blur(10px);
}
.skills {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 11px;
}
.skill {
  padding: 22px;
  min-height: 125px;
}
.skill span {
  display: block;
  color: var(--orange);
  font-size: 0.68rem;
  font-weight: 900;
  margin-bottom: 29px;
}
.contact-grid {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 42px;
}
.contact-card {
  padding: 25px;
}
.contact-card a {
  display: block;
  font-size: clamp(1.08rem, 1.8vw, 1.55rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-top: 8px;
}
.form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 25px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.44);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.field.full {
  grid-column: 1/-1;
}
.field label {
  font-size: 0.69rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.64);
  color: var(--text);
  border-radius: 13px;
  padding: 13px;
  outline: none;
}
.field textarea {
  min-height: 145px;
  resize: vertical;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(231, 102, 50, 0.12);
}
.checkbox {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  font-size: 0.79rem;
  color: var(--muted);
}
.checkbox input {
  margin-top: 4px;
}
.notice {
  display: none;
  border: 1px solid rgba(49, 151, 91, 0.28);
  background: rgba(73, 190, 120, 0.09);
  padding: 13px 15px;
  border-radius: 13px;
  color: #246b41;
  font-weight: 700;
}
.notice.show {
  display: block;
}
.project-page .cover {
  border-radius: 25px;
  margin-top: 34px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #171715;
}
.project-page .cover.media-horizontal {
  aspect-ratio: 16 / 7;
}
.project-page .cover.media-vertical {
  width: min(100%, 660px);
  aspect-ratio: 4 / 5;
  margin-inline: auto;
}
.project-page .cover.media-square {
  width: min(100%, 760px);
  aspect-ratio: 1 / 1;
  margin-inline: auto;
}
.project-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-top: 34px;
}
.project-meta div {
  padding: 18px 12px;
  border-right: 1px solid var(--line);
}
.project-meta div:last-child {
  border: 0;
}
.project-meta span {
  display: block;
  color: var(--muted);
  font-size: 0.61rem;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  font-weight: 800;
  margin-bottom: 6px;
}
.editorial {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 60px;
}
.editorial aside {
  position: sticky;
  top: 94px;
  height: max-content;
}
.text-block {
  padding-bottom: 38px;
  margin-bottom: 38px;
  border-bottom: 1px solid var(--line);
}
.text-block h2 {
  font-size: clamp(1.8rem, 3.4vw, 3.15rem);
  line-height: 1;
  margin-bottom: 18px;
}
.text-block p,
.text-block li {
  color: #5f605a;
  font-size: 1rem;
  line-height: 1.75;
}
.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
  align-items: start;
}
.gallery .project-art {
  margin: 0;
}
.gallery .media-horizontal {
  grid-column: 1 / -1;
  aspect-ratio: 16 / 9;
}
.gallery .media-vertical {
  grid-column: span 1;
  aspect-ratio: 4 / 5;
}
.gallery .media-square {
  grid-column: span 1;
  aspect-ratio: 1 / 1;
}
.similar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(25, 24, 21, 0.76);
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(16px);
}
.modal.open {
  display: flex;
}
body.video-open {
  overflow: hidden;
}

/*
  La fenêtre utilise une seule formule robuste pour tous les formats.
  --video-aspect et --video-ratio-number sont écrits par JavaScript.
*/
.modal-box {
  --video-aspect: 16 / 9;
  --video-ratio-number: 1.777778;
  width: min(94vw, calc(88dvh * var(--video-ratio-number)));
  aspect-ratio: var(--video-aspect);
  max-height: 88dvh;
  background: #050505;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 22px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
}
.modal-box.media-horizontal,
.modal-box.media-vertical,
.modal-box.media-square {
  height: auto;
}
.modal-close {
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 20;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(8, 8, 8, 0.76);
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(10px);
}
.modal-close:hover {
  background: #000;
}
.fake-video {
  width: 100%;
  height: 100%;
  display: grid;
  place-content: center;
  text-align: center;
  padding: 25px;
}
.fake-video .play {
  position: static;
  transform: none;
  margin: 0 auto 22px;
}
.fake-video p {
  color: #aaa;
  max-width: 500px;
  margin: 10px auto;
}
.video-progress {
  width: min(500px, 70vw);
  height: 4px;
  background: #32322f;
  border-radius: 99px;
  margin: 24px auto 0;
  overflow: hidden;
}
.video-progress:after {
  content: "";
  display: block;
  height: 100%;
  width: 34%;
  background: var(--orange);
}
.video-container,
.native-player,
.native-player-video,
.provider-video {
  width: 100%;
  height: 100%;
}
.video-container,
.native-player {
  background: #050505;
}
.native-player {
  position: relative;
  overflow: hidden;
}
.native-player-video {
  display: block;
  object-fit: contain;
  background: #050505;
}
.provider-video {
  display: block;
  border: 0;
  background: #050505;
}
.native-player:fullscreen,
.native-player-video:fullscreen {
  width: 100vw;
  height: 100vh;
  object-fit: contain;
  background: #000;
}
.footer {
  border-top: 1px solid var(--line);
  padding: 38px 0 22px;
  background: rgba(255, 255, 255, 0.24);
}
.footer-top {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 38px;
  align-items: start;
}
.footer-top h2 {
  font-size: clamp(1.65rem, 3vw, 2.5rem);
  max-width: 620px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  color: var(--muted);
  font-size: 0.8rem;
  justify-content: flex-end;
}
.footer-links strong {
  width: 100%;
  color: var(--text);
  margin-bottom: 2px;
  text-align: right;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 22px;
  margin-top: 30px;
  border-top: 1px solid var(--line);
  font-size: 0.69rem;
  color: #85857f;
}
.empty {
  display: none;
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: 20px;
  padding: 45px;
  color: var(--muted);
}
.notfound {
  text-align: center;
  min-height: 72vh;
  display: grid;
  place-items: center;
  padding-top: 90px;
}
.notfound strong {
  display: block;
  font-size: clamp(7rem, 20vw, 16rem);
  line-height: 0.8;
  color: var(--orange);
  letter-spacing: -0.08em;
}
[hidden] {
  display: none !important;
}
:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 4px;
}
@media (max-width: 980px) {
  .nav,
  .header .desktop-cta {
    display: none;
  }
  .menu-btn {
    display: flex;
  }
  .section-head,
  .why,
  .about-grid,
  .contact-grid,
  .editorial {
    grid-template-columns: 1fr;
  }
  .project-grid,
  .all-projects {
    grid-template-columns: 1fr 1fr;
  }
  .service-grid {
    grid-template-columns: 1fr 1fr;
  }
  .process {
    grid-template-columns: 1fr 1fr;
  }
  .skills {
    grid-template-columns: 1fr 1fr;
  }
  .service-row {
    grid-template-columns: 42px 1fr;
  }
  .service-row p,
  .service-row .button {
    grid-column: 2;
  }
  .project-meta {
    grid-template-columns: 1fr 1fr;
  }
  .project-meta div:nth-child(2) {
    border-right: 0;
  }
  .project-meta div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
  .editorial aside {
    position: static;
  }
  .footer-top {
    grid-template-columns: 1fr;
  }
  .footer-links,
  .footer-links strong {
    justify-content: flex-start;
    text-align: left;
  }
}
@media (max-width: 680px) {
  .shell {
    width: min(calc(100% - 28px), var(--max));
  }
  .section {
    padding: 62px 0;
  }
  .section-sm {
    padding: 38px 0;
  }
  .hero {
    min-height: auto;
    padding: 122px 0 48px;
  }
  .hero-bottom {
    grid-template-columns: 1fr;
    align-items: start;
  }
  .hero-meta {
    font-size: 0.55rem;
    margin-top: 32px;
  }
  .section-head {
    gap: 15px;
    margin-bottom: 28px;
  }
  .showreel {
    min-height: 340px;
    padding: 20px;
  }
  .play {
    width: 68px;
    height: 68px;
  }
  .project-grid,
  .all-projects,
  .similar,
  .service-grid,
  .process,
  .skills {
    grid-template-columns: 1fr;
  }
  .service-card {
    min-height: 205px;
  }
  .cta {
    padding: 30px 22px;
  }
  .service-row {
    display: block;
    padding: 20px;
  }
  .service-row > * {
    margin-bottom: 13px;
  }
  .service-row > *:last-child {
    margin-bottom: 0;
  }
  .about-grid {
    gap: 28px;
  }
  .form {
    grid-template-columns: 1fr;
    padding: 20px;
  }
  .field.full {
    grid-column: auto;
  }
  .project-meta {
    grid-template-columns: 1fr;
  }
  .project-meta div {
    border-right: 0;
    border-bottom: 1px solid var(--line) !important;
  }
  .project-meta div:last-child {
    border-bottom: 0 !important;
  }
  .gallery {
    grid-template-columns: 1fr;
  }
  .gallery .project-art,
  .gallery .media-horizontal,
  .gallery .media-vertical,
  .gallery .media-square {
    grid-column: auto;
  }
  .footer-bottom {
    flex-direction: column;
  }
  .project-art:after {
    opacity: 1;
    transform: none;
  }
  .display {
    font-size: clamp(3.45rem, 17vw, 5.4rem);
  }
  .h1 {
    font-size: clamp(2.8rem, 13vw, 4.6rem);
  }
  .footer-links {
    justify-content: flex-start;
  }
  .page-hero {
    padding-top: 125px;
  }
}
@media (max-width: 520px) {
  .modal {
    padding: 10px;
  }
  .modal-box {
    width: min(calc(100vw - 20px), calc(90dvh * var(--video-ratio-number)));
    max-height: 90dvh;
    border-radius: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}

/* ==================================================================
   AJOUTS POUR LES VRAIES IMAGES ET VIDÉOS
   Ne modifie cette partie que si tu veux changer leur cadrage.
   ================================================================== */

.project-real-image,
.gallery-real-image img {
  width: 100%;
  height: 100%;
}

.media-fit-cover {
  object-fit: cover;
}

.media-fit-contain {
  object-fit: contain;
  background: #171715;
}

.project-real-image {
  position: absolute;
  inset: 0;
  transition: transform 0.5s ease;
}

.project-card:hover .project-real-image {
  transform: scale(1.04);
}

.portrait-with-image::before,
.portrait-with-image::after {
  display: none;
}

/* La photo À propos garde désormais ses proportions naturelles.
   Le cadre s'adapte automatiquement au format de l'image importée. */
.portrait-with-image {
  aspect-ratio: auto;
  overflow: hidden;
  background: transparent;
}

.portrait-with-image img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
}



/* ==================================================================
   PHOTO DE LA PAGE À PROPOS — FORMAT NATUREL
   Cette classe est volontairement séparée de .portrait afin qu'aucune
   ancienne hauteur ou aucun ancien ratio ne puisse étirer la photo.
   ================================================================== */

.about-grid {
  align-items: start;
}

.about-photo {
  width: 100%;
  max-width: 100%;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  aspect-ratio: var(--about-photo-ratio, auto) !important;
  margin: 0;
  padding: 0;
  justify-self: start;
  align-self: start;
  overflow: hidden;
  border-radius: 26px;
  background: transparent;
  box-shadow: var(--shadow);
}

.about-photo img,
.about-photo [data-about-photo] {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  aspect-ratio: auto !important;
  object-fit: initial !important;
  object-position: initial !important;
  transform: none !important;
}
