:root {
  --bg: #111110;
  --panel: #1d1d1c;
  --ink: #f3f1ee;
  --muted: #aaa9a6;
  --accent: #f05a28;
  --border: #383837;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "DM Sans", sans-serif;
}
button,
a {
  font: inherit;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  cursor: pointer;
}
::selection {
  background: var(--accent);
  color: #111;
}
.site-header {
  height: 78px;
  padding: 0 4.2%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f7f7f6;
  color: #171717;
  position: relative;
  z-index: 20;
}
.wordmark {
  font:
    700 25px "Space Grotesk",
    sans-serif;
  letter-spacing: -1.8px;
  white-space: nowrap;
}
.wordmark span {
  font-weight: 400;
}
.wordmark i {
  color: var(--accent);
  font-style: normal;
}
.site-header nav {
  display: flex;
  align-items: center;
  gap: 35px;
  font-size: 13px;
  font-weight: 700;
}
.site-header nav > a:hover {
  color: var(--accent);
}
.nav-contact {
  border: 1px solid #222;
  padding: 13px 18px;
  border-radius: 3px;
}
.nav-contact span,
.text-link span,
.button span {
  margin-left: 15px;
}
.menu-toggle {
  display: none;
  border: 0;
  background: none;
  font-size: 28px;
}
.intro {
  min-height: 335px;
  position: relative;
  padding: 96px 4.2% 62px;
  text-align: center;
}
.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.19em;
  color: var(--accent);
}
.intro h1,
.section-head h2,
.about h2,
.services h2,
.contact h2 {
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: -0.055em;
  line-height: 1.05;
}
.intro h1 {
  font-size: clamp(58px, 7.5vw, 115px);
  margin: 22px 0 25px;
}
.intro h1 em,
.services em,
.contact em {
  font-style: normal;
  color: var(--accent);
}
.intro-copy {
  max-width: 540px;
  margin: auto;
  color: #bbb;
  font-size: 18px;
  line-height: 1.6;
}
.text-link {
  display: inline-block;
  margin-top: 30px;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 9px;
  font-size: 14px;
  font-weight: 700;
}
.intro-index {
  position: absolute;
  bottom: 46px;
  right: 4.2%;
  font-size: 12px;
  color: #777;
}
.intro-index span {
  padding: 0 9px;
}
.about {
  padding: 15px 4.2% 72px;
  display: grid;
  grid-template-columns: 42% 1fr;
  gap: 6%;
  align-items: center;
}
.about-photo {
  height: min(54vw, 540px);
  background: linear-gradient(140deg, #25292b, #171918 60%, #463024);
  position: relative;
  overflow: hidden;
  border-radius: 3px;
}
.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
}
.photo-fallback {
  position: absolute;
  left: 8%;
  bottom: 9%;
  font: 700 clamp(40px, 7vw, 100px)/0.9 "Space Grotesk";
  letter-spacing: -0.07em;
  color: #ffffff1c;
}
.about-content {
  max-width: 610px;
}
.about h2 {
  font-size: clamp(42px, 4.4vw, 70px);
  margin: 20px 0;
}
.about h2 span {
  color: #a7a6a3;
}
.about-role {
  font-weight: 700;
  color: #e4e4e3 !important;
}
.about-content > p:not(.eyebrow) {
  font-size: 17px;
  line-height: 1.75;
  color: #aaa;
}
.about-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 32px;
}
.button {
  padding: 17px 20px;
  border-radius: 3px;
  font-weight: 700;
  font-size: 13px;
  transition:
    transform 0.2s,
    background 0.2s;
}
.button:hover {
  transform: translateY(-3px);
}
.button-primary {
  background: var(--accent);
  color: #17100d;
}
.button-outline {
  border: 1px solid #555;
  color: #f0f0ef;
}
.portfolio {
  background: #20201f;
  padding-top: 85px;
}
.section-head {
  text-align: center;
  padding: 0 20px 55px;
}
.section-head h2 {
  font-size: clamp(65px, 8vw, 120px);
  margin: 14px 0;
}
.section-head h2 span {
  color: var(--accent);
}
.section-head > p:last-child {
  color: var(--muted);
  font-size: 17px;
}
.filters {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #20201ff2;
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 18px 20px;
  overflow-x: auto;
}
.filter {
  border: 1px solid #494949;
  background: transparent;
  color: #aaa;
  border-radius: 30px;
  padding: 8px 19px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  transition: all 0.2s;
}
.filter:hover {
  border-color: #fff;
  color: #fff;
}
.filter.active {
  background: #f5f5f4;
  color: #121212;
  border-color: #f5f5f4;
}
.gallery {
  padding: 20px 3.2% 85px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.gallery-item {
  border: 0;
  padding: 0;
  background: linear-gradient(135deg, #454a4b, #242526 60%, #653d30);
  height: clamp(260px, 35vw, 570px);
  overflow: hidden;
  position: relative;
  text-align: left;
}
.gallery-item:nth-child(5n + 2) {
  background: linear-gradient(145deg, #3a3030, #191d25, #594a34);
}
.gallery-item:nth-child(5n + 3) {
  background: linear-gradient(145deg, #35332e, #27282c, #5e3433);
}
.gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    transform 0.65s cubic-bezier(0.2, 0.7, 0.2, 1),
    filter 0.5s;
}
.gallery-item:hover img {
  transform: scale(1.065);
  filter: brightness(0.7);
}
.gallery-item.missing:before {
  content: "AJOUTEZ VOTRE PHOTO";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  letter-spacing: 0.18em;
  color: #ffffff70;
  font-size: 12px;
}
.gallery-item.missing img {
  display: none;
}
.gallery-meta {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 20px;
  display: flex;
  justify-content: space-between;
  opacity: 0;
  transform: translateY(10px);
  transition: 0.25s;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-shadow: 0 1px 12px #000;
}
.gallery-item:hover .gallery-meta {
  opacity: 1;
  transform: none;
}
.gallery-item[hidden] {
  display: none;
}
.services {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 8%;
  padding: 120px 5%;
}
.services h2 {
  font-size: clamp(48px, 5vw, 80px);
  margin: 22px 0;
}
.service-list article {
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: 45px 1fr 30px;
  gap: 15px;
  padding: 27px 0;
}
.service-list article:last-child {
  border-bottom: 1px solid var(--border);
}
.service-list article > span,
.service-list article > b {
  color: var(--accent);
  font-size: 14px;
}
.service-list h3 {
  margin: 0;
  font: 600 25px "Space Grotesk";
}
.service-list p {
  max-width: 440px;
  color: #aaa;
  line-height: 1.6;
}
.contact {
  text-align: center;
  padding: 110px 20px 130px;
  background: #eeeae4;
  color: #161615;
}
.contact h2 {
  font-size: clamp(62px, 8vw, 120px);
  margin: 20px 0;
}
.contact p:not(.eyebrow) {
  font-size: 18px;
  color: #555;
  max-width: 530px;
  margin: 0 auto 35px;
  line-height: 1.6;
}
.contact-link {
  display: inline-flex;
  gap: 50px;
  background: var(--accent);
  color: #18110e;
  font-weight: 700;
  padding: 20px 25px;
  border-radius: 3px;
}
.contact small {
  display: block;
  margin-top: 15px;
  color: #777;
}
footer {
  min-height: 110px;
  padding: 30px 4.2%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 12px;
  color: #999;
}
footer .wordmark {
  color: #fff;
}
footer > a:last-child {
  color: #fff;
}
.lightbox {
  border: 0;
  background: #080808eb;
  color: white;
  max-width: none;
  max-height: none;
  width: 100vw;
  height: 100vh;
  margin: 0;
  padding: 35px 7%;
  text-align: center;
}
.lightbox::backdrop {
  background: #000e;
}
.lightbox img {
  height: calc(100vh - 125px);
  max-width: 100%;
  object-fit: contain;
}
.lightbox p {
  font-size: 13px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.lightbox button {
  position: absolute;
  background: #ffffff22;
  border: 1px solid #ffffff50;
  color: white;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-size: 22px;
}
.lightbox-close {
  right: 30px;
  top: 25px;
}
.lightbox-prev {
  left: 2%;
  top: 50%;
}
.lightbox-next {
  right: 2%;
  top: 50%;
}
@media (max-width: 800px) {
  .site-header {
    height: 68px;
  }
  .menu-toggle {
    display: block;
  }
  .site-header nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: #f7f7f6;
    flex-direction: column;
    align-items: stretch;
    padding: 20px 5%;
    gap: 0;
  }
  .site-header.open nav {
    display: flex;
  }
  .site-header nav a {
    padding: 14px;
  }
  .intro {
    padding-top: 80px;
  }
  .intro-index {
    display: none;
  }
  .about {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .about-photo {
    height: 70vw;
    max-height: 560px;
  }
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
  .gallery-item {
    height: 50vw;
  }
  .services {
    grid-template-columns: 1fr;
    padding: 75px 5%;
  }
  .filters {
    justify-content: flex-start;
  }
  footer {
    flex-wrap: wrap;
  }
}
@media (max-width: 520px) {
  .site-header {
    padding: 0 5%;
  }
  .wordmark {
    font-size: 22px;
  }
  .intro h1 {
    font-size: 55px;
  }
  .intro-copy {
    font-size: 15px;
  }
  .about {
    padding: 15px 5% 70px;
  }
  .about-photo {
    height: 95vw;
  }
  .about-content > p:not(.eyebrow) {
    font-size: 15px;
  }
  .portfolio {
    padding-top: 70px;
  }
  .gallery {
    grid-template-columns: 1fr;
    padding: 12px 3% 60px;
  }
  .gallery-item {
    height: 105vw;
  }
  .gallery-meta {
    opacity: 1;
    transform: none;
  }
  .filter {
    padding: 8px 13px;
  }
  .contact {
    padding: 85px 18px 100px;
  }
  .contact h2 {
    font-size: 58px;
  }
  footer {
    justify-content: center;
    text-align: center;
  }
  .lightbox {
    padding: 40px 15%;
  }
  .lightbox img {
    height: calc(100vh - 120px);
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *:before,
  *:after {
    transition: none !important;
  }
}

/* Mobile : aucune surbrillance bleue, une photo par ligne sans recadrage. */
@media (max-width: 700px) {
  html,
  body,
  a,
  button,
  img,
  .gallery-item,
  .filter {
    -webkit-tap-highlight-color: transparent;
  }
  .gallery {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }
  .gallery-item,
  .gallery-item:nth-child(5n + 2),
  .gallery-item:nth-child(5n + 3) {
    display: block;
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: auto;
    background: #242424;
  }
  .gallery-item[hidden] {
    display: none !important;
  }
  .gallery-item img {
    display: block;
    width: 100%;
    height: auto;
    max-height: none;
    aspect-ratio: auto;
    object-fit: contain;
  }
  .about-photo {
    background: #242424;
    height: auto;
    max-height: none;
  }
  .about-photo img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
  }
  .gallery-item:focus:not(:focus-visible),
  .filter:focus:not(:focus-visible) {
    outline: none;
  }
}

/* AKERVISION : accents orange sur mobile (Safari iOS inclus). */
@media (max-width: 700px) {
  .site-header .menu-toggle,
  .site-header .menu-toggle:hover,
  .site-header .menu-toggle:focus,
  .site-header .menu-toggle:active {
    color: #f05a28 !important;
    -webkit-text-fill-color: #f05a28;
    appearance: none;
    -webkit-appearance: none;
  }
  .gallery .gallery-meta,
  .gallery .gallery-meta b,
  .gallery .gallery-meta span {
    color: #f05a28 !important;
    -webkit-text-fill-color: #f05a28;
  }
}
