:root {
  --background: #f8f7f3;
  --text: #171717;
  --muted: #777;
  --line: rgba(0, 0, 0, 0.12);

  /*
    On laisse volontairement le site respirer sur les bords,
    mais on n'enferme plus la galerie dans une largeur trop faible.
  */
  --side-padding: clamp(14px, 2.4vw, 42px);
  --header-padding-top: clamp(22px, 3vw, 36px);
  --gallery-gap: clamp(10px, 1.2vw, 18px);
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  /* font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif; */
  font-family: "Nova Cut", system-ui, sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

/* HEADER */

.site-header {
  width: 100%;
  padding:
    var(--header-padding-top)
    var(--side-padding)
    clamp(18px, 2vw, 28px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* .site-title {
  font-size: clamp(1.05rem, 1.5vw, 1.45rem);
  font-weight: 500;
  letter-spacing: -0.035em;
} */

.site-title,
.page-intro h1 {
  font-family: "Metal Mania", system-ui, sans-serif;
}

.site-title {
  font-family: "Metal Mania", system-ui, sans-serif;
  font-size: clamp(1.8rem, 3vw, 3.4rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 0.9;
  color: #d20000;
}

.page-intro h1 {
  margin: 0;
  max-width: 1100px;
  font-size: clamp(3.4rem, 9vw, 9.5rem);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 0.9;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: clamp(14px, 1.6vw, 26px);
  font-size: clamp(0.9rem, 0.95vw, 1rem);
  letter-spacing: 0.03em;
}

.site-nav a {
  color: var(--muted);
  transition: color 160ms ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--text);
}

/* MAIN */

main {
  width: 100%;
  padding: 0 var(--side-padding) 90px;
}

.page-intro {
  padding: clamp(28px, 5vw, 64px) 0 clamp(28px, 4vw, 48px);
  border-top: 1px solid var(--line);
}

.page-intro h1 {
  margin: 0;
  max-width: 1100px;
  font-size: clamp(2.8rem, 8vw, 8.6rem);
  font-weight: 400;
  letter-spacing: -0.08em;
  line-height: 0.88;
}

.page-intro p {
  margin: clamp(12px, 1.5vw, 20px) 0 0;
  color: var(--muted);
  font-size: clamp(0.95rem, 1.1vw, 1.18rem);
}

/* GALLERY JUSTIFIÉE PAR LIGNES */

.gallery {
  width: 100%;
}

.gallery-row {
  display: flex;
  width: 100%;
  gap: var(--gallery-gap);
  margin-bottom: var(--gallery-gap);
  align-items: flex-start;
}

.gallery-item {
  position: relative;
  display: block;
  flex: 0 0 auto;
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  cursor: pointer;
  overflow: hidden;
  text-align: left;
}

.gallery-item img {
  display: block;
  width: 100%;
  height: 100%;

  /*
    Pas de crop.
    L'image conserve son ratio.
    Comme le JS donne déjà une boîte au bon ratio,
    object-fit: contain évite toute mauvaise surprise.
  */
  object-fit: contain;

  background: rgba(0, 0, 0, 0.035);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

/* .gallery-item:hover img {
  opacity: 0.84;
} */

.gallery-caption {
  display: none;
}

/* Message vide / erreur */

.empty-gallery {
  color: var(--muted);
  padding: 48px 0;
  border-top: 1px solid var(--line);
}

/* LIGHTBOX */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  padding: clamp(54px, 6vw, 80px) var(--side-padding) 32px;
  background: rgba(248, 247, 243, 0.96);
  display: grid;
  place-items: center;
  overflow-y: auto;
}

.lightbox[hidden] {
  display: none;
}

.lightbox-content {
  width: min(100%, 1400px);
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(20px, 3vw, 34px);
  justify-items: center;
}

.lightbox-main-image {
  display: block;
  max-width: 100%;
  max-height: 72vh;
  width: auto;
  height: auto;
  object-fit: contain;
  justify-self: center;
}

.lightbox-meta {
  width: min(100%, 960px);
  text-align: center;
}

.lightbox-title {
  margin: 0 0 clamp(18px, 2vw, 28px);
  font-family: "Metal Mania", system-ui, sans-serif;
  font-size: clamp(3rem, 6vw, 7rem);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: 0.02em;
  color: #d20000;
}

.lightbox-project-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: clamp(16px, 2vw, 26px);
}

.lightbox-project-logo {
  width: clamp(42px, 5vw, 76px);
  height: clamp(42px, 5vw, 76px);
  object-fit: contain;
  flex: 0 0 auto;
}

.lightbox-project {
  margin: 0;
  font-family: "Metal Mania", system-ui, sans-serif;
  font-size: clamp(2rem, 3.5vw, 4rem);
  font-weight: 400;
  line-height: 0.95;
  color: var(--text);
}

.lightbox-description {
  margin: 0 auto;
  max-width: 760px;
  color: var(--text);
  font-size: clamp(0.95rem, 1.2vw, 1.15rem);
  line-height: 1.65;
  white-space: pre-line;
  text-align: left;
}

.lightbox-close {
  position: fixed;
  top: 20px;
  right: 24px;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 2.4rem;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 900px) {
  .lightbox {
    place-items: start center;
  }

  .lightbox-content {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .lightbox-main-image {
    max-height: 62vh;
  }

  .lightbox-title {
    font-size: clamp(3rem, 14vw, 5.8rem);
  }

  .lightbox-project {
    font-size: clamp(2rem, 9vw, 3.4rem);
  }
}

/* RESPONSIVE */

@media (max-width: 760px) {
  :root {
    --side-padding: 14px;
    --gallery-gap: 10px;
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .page-intro {
    padding-top: 26px;
  }
  .site-brand {
    gap: 12px;
  }

  .site-logo {
    width: 52px;
    height: 52px;
  }

  .site-title {
    font-size: clamp(2rem, 10vw, 3rem);
    color: #d20000;
  }

  .site-header {
    align-items: flex-start;
  }
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: clamp(12px, 1.4vw, 20px);
  min-width: 0;
}

.site-logo {
  width: clamp(46px, 5vw, 82px);
  height: clamp(46px, 5vw, 82px);
  object-fit: contain;
  flex: 0 0 auto;
}


.about-main {
  min-height: 70vh;
}

.contact-hero {
  max-width: 980px;
  margin: clamp(36px, 8vw, 110px) auto clamp(60px, 8vw, 120px);
  padding: clamp(34px, 5vw, 68px) 0;
  text-align: center;
  position: relative;
}

.contact-hero::before,
.contact-hero::after {
  content: "";
  display: block;
  width: min(100%, 920px);
  height: 4px;
  margin: 0 auto;
  background: #d20000;
  border-radius: 999px;
}

.contact-hero::before {
  margin-bottom: clamp(32px, 5vw, 62px);
}

.contact-hero::after {
  margin-top: clamp(32px, 5vw, 62px);
}

.contact-hero h1 {
  margin: 0 0 clamp(28px, 4vw, 52px);
  font-family: "Metal Mania", system-ui, sans-serif;
  font-size: clamp(4rem, 12vw, 11rem);
  font-weight: 400;
  line-height: 0.86;
  letter-spacing: 0.04em;
  color: #d20000;
}

.contact-methods {
  display: grid;
  gap: clamp(14px, 2vw, 24px);
  justify-items: center;
}

.contact-link {
  display: grid;
  grid-template-columns: clamp(28px, 3vw, 40px) minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  width: fit-content;
  min-width: min(100%, 420px);
  color: var(--text);
  font-size: clamp(1rem, 2vw, 1.45rem);
  line-height: 1.2;
  text-align: left;
  transition:
    color 160ms ease,
    transform 160ms ease;
}

.contact-link:hover {
  color: #d20000;
  transform: translateY(-1px);
}

.contact-icon {
  width: clamp(24px, 3vw, 36px);
  height: clamp(24px, 3vw, 36px);
  display: inline-grid;
  place-items: center;
  justify-self: center;
  color: #d20000;
}

.contact-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.portfolio-pdf-link {
  display: inline-flex;
  margin-top: clamp(30px, 5vw, 58px);
  padding: 12px 24px;
  border: 2px solid #d20000;
  border-radius: 999px;
  color: #d20000;
  font-size: clamp(1rem, 1.8vw, 1.3rem);
  transition:
    background 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.portfolio-pdf-link:hover {
  background: #d20000;
  color: var(--background);
  transform: translateY(-1px);
}

.about-section {
  max-width: 980px;
  margin: 0 auto clamp(70px, 10vw, 140px);
  padding: clamp(34px, 5vw, 68px) 0;
}

/* .about-section::before,
.about-section::after {
  content: "";
  display: block;
  width: min(100%, 920px);
  height: 4px;
  margin: 0 auto;
  background: #d20000;
  border-radius: 999px;
}

.about-section::before {
  margin-bottom: clamp(32px, 5vw, 62px);
}

.about-section::after {
  margin-top: clamp(32px, 5vw, 62px);
} */

.about-section h2 {
  margin: 0 0 clamp(24px, 4vw, 44px);
  font-family: "Metal Mania", system-ui, sans-serif;
  font-size: clamp(4rem, 10vw, 9rem);
  font-weight: 400;
  line-height: 0.88;
  letter-spacing: 0.04em;
  color: #d20000;
  text-align: center;
}

.about-text {
  max-width: 760px;
  margin: 0 auto;
}

.about-text p {
  margin: 0 0 18px;
  color: var(--text);
  font-size: clamp(1rem, 1.35vw, 1.18rem);
  line-height: 1.75;
}

.about-text p:last-child {
  margin-bottom: 0;
}

@media (max-width: 760px) {
  .contact-hero {
    margin-top: 30px;
    padding: 32px 0;
  }

.contact-hero::before,
.contact-hero::after {
  width: 100%;
  height: 3px;
}

  @media (max-width: 760px) {
    .contact-methods {
      justify-items: stretch;
    }

    .contact-link {
      width: 100%;
      min-width: 0;
      grid-template-columns: 32px minmax(0, 1fr);
      justify-content: start;
      text-align: left;
      font-size: 0.98rem;
      word-break: break-word;
    }
  }

  .portfolio-pdf-link {
    width: 100%;
    justify-content: center;
  }

  .about-section {
    padding: 32px 0;
  }

  .about-section h2 {
    text-align: left;
  }

  .about-text p {
    font-size: 0.98rem;
    line-height: 1.65;
  }
}

.site-footer {
  margin-top: clamp(60px, 9vw, 130px);
  padding: clamp(28px, 4vw, 46px) var(--side-padding);
  border-top: 1px solid var(--line);
}

.site-footer-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(24px, 5vw, 80px);
  align-items: start;
}

.footer-contact-link {
  font-family: "Metal Mania", system-ui, sans-serif;
  color: #d20000;
  font-size: clamp(2rem, 4vw, 4.2rem);
  line-height: 0.9;
  letter-spacing: 0.03em;
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

.footer-contact-link:hover {
  opacity: 0.8;
  transform: translateY(-1px);
}

.footer-legal {
  max-width: 820px;
  color: var(--muted);
  font-size: clamp(0.78rem, 0.9vw, 0.92rem);
  line-height: 1.55;
}

.footer-legal p {
  margin: 0 0 8px;
}

.footer-legal p:last-child {
  margin-bottom: 0;
}

@media (max-width: 760px) {
  .site-footer {
    margin-top: 70px;
  }

  .site-footer-inner {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .footer-contact-link {
    font-size: clamp(2.8rem, 14vw, 4.6rem);
  }

  .footer-legal {
    font-size: 0.78rem;
  }
}
.experiences-section {
  max-width: 1080px;
  margin: 0 auto clamp(70px, 10vw, 140px);
  padding: clamp(26px, 5vw, 60px) 0;
}

.experiences-section h2 {
  margin: 0 0 clamp(34px, 5vw, 70px);
  font-family: "Metal Mania", system-ui, sans-serif;
  font-size: clamp(4rem, 10vw, 9rem);
  font-weight: 400;
  line-height: 0.88;
  letter-spacing: 0.04em;
  color: #d20000;
  text-align: center;
}

.experiences-list {
  position: relative;
  display: grid;
  gap: clamp(42px, 6vw, 78px);
}

/*
  Chaque expérience :
  colonne gauche = logo de l'expérience
  colonne droite = contenu
*/
.experience-item {
  display: grid;
  grid-template-columns: clamp(64px, 7vw, 96px) minmax(0, 1fr);
  gap: clamp(22px, 4vw, 54px);
  position: relative;
}

/*
  Ligne rouge verticale entre les logos.
  Elle part sous le logo et descend jusqu'à l'expérience suivante.
*/
.experience-item:not(:last-child)::after {
  content: "";
  position: absolute;
  left: calc(clamp(64px, 7vw, 96px) / 2 - 2px);
  top: clamp(96px, 9vw, 128px);
  bottom: calc(clamp(-78px, -6vw, -42px));
  width: 4px;
  background: #d20000;
  border-radius: 999px;
}

.experience-marker {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.experience-logo,
.experience-logo-placeholder {
  width: clamp(68px, 7.5vw, 104px);
  height: clamp(68px, 7.5vw, 104px);
  border-radius: 999px;
  object-fit: contain;
  background: var(--background);
}

.experience-logo-placeholder {
  display: grid;
  place-items: center;
  color: #d20000;
  border: 3px solid #d20000;
  font-size: 2rem;
}

.experience-content {
  min-width: 0;
  padding-top: 2px;
}

.experience-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(16px, 3vw, 34px);
  align-items: start;
  margin-bottom: 14px;
}

.experience-title {
  margin: 0;
  font-family: "Metal Mania", system-ui, sans-serif;
  font-size: clamp(2.4rem, 4.5vw, 5rem);
  font-weight: 400;
  line-height: 0.92;
  color: #d20000;
}

.experience-period {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.experience-studio {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  text-align: right;
  min-width: max-content;
}

.experience-studio-name {
  color: var(--text);
  font-size: clamp(1rem, 1.3vw, 1.18rem);
}

.experience-studio-logo {
  width: clamp(54px, 5vw, 82px);
  height: clamp(54px, 5vw, 82px);
  object-fit: contain;
  flex: 0 0 auto;
}

.experience-description {
  margin: 0;
  max-width: 760px;
  color: var(--text);
  font-size: clamp(0.98rem, 1.2vw, 1.12rem);
  line-height: 1.7;
  white-space: pre-line;
}

.software-list {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.software-item {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.045);
}

.software-logo {
  max-width: 30px;
  max-height: 30px;
  width: auto;
  height: auto;
  object-fit: contain;
}

@media (max-width: 760px) {
  .experiences-section {
    padding: 32px 0;
  }

  .experiences-section h2 {
    text-align: left;
    font-size: clamp(3.4rem, 16vw, 5.5rem);
  }

  .experiences-list {
    gap: 46px;
  }

  .experience-item {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 16px;
  }

  .experience-item:not(:last-child)::after {
    left: 31px;
    top: 76px;
    bottom: -46px;
    width: 3px;
  }

  .experience-logo,
  .experience-logo-placeholder {
    width: 64px;
    height: 64px;
  }

  .experience-head {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .experience-title {
    font-size: clamp(2.5rem, 13vw, 4.2rem);
  }

  .experience-studio {
    justify-content: flex-start;
    text-align: left;
  }

  .experience-studio-logo {
    width: 58px;
    height: 58px;
  }

  .software-item {
    width: 38px;
    height: 38px;
  }

  .software-logo {
    max-width: 28px;
    max-height: 28px;
  }
}
.site-nav a {
  position: relative;
  color: var(--text);
  text-decoration: none;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.28em;
  height: 2px;
  background: #d20000;
  border-radius: 999px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 160ms ease;
}

.site-nav a:hover::after,
.site-nav a.active::after {
  transform: scaleX(1);
}

.about-text p,
.experience-description,
.contact-hero p,
.footer-legal,
.lightbox-description {
  text-align: justify;
}