
/*
  joachim.image — portfolio 3D & photographie.
  Mise en page minimaliste.
  Images centrées verticalement dans une zone constante.
  Légende alignée sur le bord gauche de l'image.
*/

@font-face {
  font-family: "Geo Sans Light";
  src: url("fonts/GeosansLight.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f4f2ed;
  --ink: #252522;
  --muted: #85847d;
  --line: #d9d7cf;
  --gutter: clamp(20px, 5vw, 76px);
  --gallery-height: 77vh;
  --gallery-height-mobile: 65vh;
}


* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

button {
  font: inherit;
  color: inherit;
}

/* --------------------------------------------------
   EN-TÊTE ET NAVIGATION
-------------------------------------------------- */

.site-header {
  position: relative;
  z-index: 20;
  min-height: 94px;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.wordmark {
  position: relative;
  z-index: 21;
  font-family: "Geo Sans Light", Arial, Helvetica, sans-serif;
  font-size: 28px;
  letter-spacing: -0.035em;
  font-weight: 300;
}

.wordmark-bold {
  font-weight: 700;
}

.main-nav {
  position: relative;
  z-index: 21;
  display: flex;
  align-items: center;
  gap: clamp(18px, 3.5vw, 52px);
}

.main-nav a {
  position: relative;
  z-index: 22;
  display: inline-block;
  font-size: 11px;
  letter-spacing: .03em;
  color: #77766f;
  transition: color .2s ease;
  cursor: pointer;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--ink);
}

/* --------------------------------------------------
   CONTENU PRINCIPAL
-------------------------------------------------- */

main {
  position: relative;
  min-height: calc(100vh - 160px);
}

.portfolio {
  position: relative;
}

/* --------------------------------------------------
   GALERIE
-------------------------------------------------- */

.gallery-wrap {
  position: relative;
  width: min(100%, 1500px);
  margin: 0 auto;
  padding: 0 20px;
}

.gallery-navigation {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  width: 100%;
  height: var(--gallery-height);
}

/* Flèches de navigation */

.image-arrow {
  flex: 0 0 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 30px;
  font-weight: 200;
  line-height: 1;
  cursor: pointer;
  transition: color .2s ease;
}

.image-arrow:hover {
  color: var(--ink);
}

/* Conteneur de l'image */

#image-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 1 auto;
  min-width: 0;
  width: auto;
  height: 100%;
  min-height: 0;
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  outline: none;
  overflow: visible;
  cursor: pointer;
}

/* Image du projet */

#portfolio-image {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: var(--gallery-height);
  object-fit: contain;
  margin: 0;
  border: none;
  box-shadow: none;
  outline: none;
  user-select: none;
  -webkit-user-drag: none;
  transition: opacity .2s ease;
}

/* Légende */

.project-caption {
  position: relative;
  z-index: 2;
  width: fit-content;
  max-width: 100%;
  margin: 10px auto 0;
  padding: 0;
  font-size: 9px;
  line-height: 1.55;
  letter-spacing: .015em;
  color: var(--muted);
}

.project-caption p {
  margin: 0;
  text-align: left;
  overflow-wrap: break-word;
}

.project-caption p:first-child {
  color: #55544e;
}

/* Focus clavier */

.image-arrow:focus-visible,
#image-stage:focus-visible {
  outline: 1px solid var(--muted);
  outline-offset: 4px;
}

/* --------------------------------------------------
   PAGE CONTACT
-------------------------------------------------- */

.contact-page {
  position: relative;
  z-index: 2;
  width: min(100% - 2 * var(--gutter), 1250px);
  margin: 0 auto;
  padding: clamp(65px, 10vh, 120px) 0 100px;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(42px, 6vh, 68px);
  align-items: start;
  min-height: 62vh;
}

.contact-page[hidden] {
  display: none;
}

/* Titre en haut de page */

.contact-intro {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 9px;
  color: var(--muted);
}

h1 {
  margin: 0;
  font-size: clamp(44px, 7.2vw, 88px);
  font-weight: 400;
  letter-spacing: -.045em;
  line-height: .98;
}

/* Deux colonnes sous le titre */

.contact-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: clamp(45px, 40vw, 300px);
  row-gap: 44px;
  align-items: start;
}

.contact-left,
.contact-right {
  min-width: 0;
}

.contact-right {
  color: var(--muted);
}

/* Prestations */

.contact-services {
  font-size: 9px;
  line-height: 1.7;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--muted);
}

.contact-services p {
  margin: 0 0 24px;
}

.contact-services strong {
  display: inline;
  font-size: inherit;
  font-weight: 400;
}

/* Coordonnées */

.contact-details {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-top: clamp(35px, 6vh, 58px);
}

.contact-link {
  position: relative;
  z-index: 3;
  display: inline-block;
  max-width: 100%;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--line);
  font-size: clamp(15px, 1.5vw, 19px);
  overflow-wrap: anywhere;
  transition: border-color .2s ease;
}

.contact-link:hover {
  border-color: var(--ink);
}

.contact-details .contact-location {
  margin: 15px 0 0;
  font-size: 11px;
  line-height: 1.7;
  color: var(--muted);
}

/* Mission et parcours */

.contact-mission,
.contact-career {
  font-size: 13px;
  line-height: 1.7;
}

.contact-heading {
  margin: 0 0 12px;
  font-size: inherit;
  font-weight: 500;
}

.contact-mission > p:not(.contact-heading) {
  margin: 0;
  max-width: 54ch;
}

/* Parcours professionnel */

.contact-career {
  margin-top: clamp(35px, 5vh, 50px);
}

.career-item {
  margin: 0 0 7px;
}

.career-item p {
  margin: 0;
}

.career-title {
  font-weight: 500;
}

.career-item p:not(.career-title) {
  color: var(--muted);
}

/* --------------------------------------------------
   PIED DE PAGE
-------------------------------------------------- */

.site-footer {
  position: relative;
  z-index: 2;
  padding: 22px var(--gutter) 28px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 9px;
  letter-spacing: .07em;
  text-transform: none;
}

/* --------------------------------------------------
   TABLETTES ET MOBILES
-------------------------------------------------- */

@media (max-width: 640px) {
  .site-header {
    min-height: 78px;
    align-items: center;
    flex-wrap: wrap;
    padding-top: 18px;
    padding-bottom: 17px;
    gap: 18px;
  }

  .wordmark {
    font-size: 16px;
  }

  .main-nav {
    gap: 17px;
  }

  .main-nav a {
    font-size: 10px;
  }

  .portfolio {
    min-height: calc(100vh - 150px);
    padding-top: 12px;
    padding-bottom: 35px;
  }

  .gallery-wrap {
    width: 100%;
    padding: 0 10px;
  }

  .gallery-navigation {
    height: var(--gallery-height-mobile);
    gap: 6px;
  }

  .image-arrow {
    flex-basis: 24px;
    width: 24px;
    font-size: 21px;
  }

  #image-stage {
    min-width: 0;
    flex: 1 1 auto;
  }

  #portfolio-image {
    max-width: 100%;
    max-height: var(--gallery-height-mobile);
  }

  .project-caption {
    max-width: 100%;
    margin-top: 10px;
    font-size: 9px;
  }

  /* Contact : disposition verticale */

  .contact-page {
    width: auto;
    margin: 0;
    padding: 58px var(--gutter) 70px;
    grid-template-columns: minmax(0, 1fr);
    gap: 38px;
    min-height: 0;
  }

  .contact-intro {
    grid-column: 1;
  }

  h1 {
    font-size: clamp(42px, 11vw, 64px);
  }

  .contact-content {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }

  .contact-services,
  .contact-mission,
  .contact-career {
    font-size: 13px;
  }

  .contact-details {
    margin-top: 30px;
  }

  .contact-career {
    margin-top: 32px;
  }

  .contact-link {
    font-size: 17px;
  }

  .site-footer {
    flex-direction: column;
    gap: 9px;
  }
}

/* Petits écrans */

@media (max-width: 380px) {
  .site-header {
    gap: 14px;
  }

  .main-nav {
    gap: 12px;
  }

  .main-nav a {
    font-size: 9px;
  }

  .contact-page {
    padding-top: 42px;
  }

  h1 {
    font-size: 40px;
  }
}

/* --------------------------------------------------
   ACCESSIBILITÉ : RÉDUCTION DES ANIMATIONS
-------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
