:root {
  --texte: #111;
  --gris: #555;
  --fond-pied: #fafafa;
  --largeur: 1180px;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--texte);
  -webkit-text-size-adjust: 100%;
}
* { box-sizing: border-box; }
body { margin: 0; background: #fff; line-height: 1.5; }
img, video, iframe { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }

/* En-tête */
.entete { text-align: center; padding: 72px 20px 48px; }
.logo img { width: 210px; height: auto; margin: 0 auto; }
.entete nav { margin-top: 26px; display: flex; justify-content: center; gap: 30px; font-size: 15px; letter-spacing: .05em; }
.entete nav a[aria-current] { text-decoration: underline; text-underline-offset: 5px; }

.conteneur { max-width: var(--largeur); margin: 0 auto; padding: 0 24px; }

/* Galerie d'accueil */
.section-titre { font-size: 16px; font-weight: 400; margin: 0 0 12px; }
.galerie { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.tuile { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #000; }
.tuile img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease, opacity .4s; }
.tuile-titre {
  position: absolute; inset: auto 0 0 0; padding: 30px 14px 12px; color: #fff; font-size: 14px; letter-spacing: .03em;
  background: linear-gradient(transparent, rgba(0,0,0,.65)); opacity: 0; transition: opacity .3s;
}
.tuile:hover { text-decoration: none; }
.tuile:hover img, .tuile:focus-visible img { transform: scale(1.04); opacity: .85; }
.tuile:hover .tuile-titre, .tuile:focus-visible .tuile-titre { opacity: 1; }

/* Clients */
.clients { text-align: center; padding: 70px 24px 60px; }
.clients h2 { font-size: 15px; letter-spacing: .06em; margin: 0 0 34px; }
.clients ul { list-style: none; margin: 0 auto; padding: 0; max-width: 1000px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 30px 48px; }
.clients img { max-height: 70px; max-width: 150px; width: auto; filter: grayscale(1); mix-blend-mode: multiply; }

/* Pages projet et contact */
.deux-col { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; margin-top: 20px; }
.deux-col.etroit { grid-template-columns: minmax(0, 360px) 1fr; justify-content: center; padding-left: 4%; }
.texte h1 { font-size: 26px; font-weight: 400; margin: 0 0 6px; line-height: 1.25; }
.sous-titre { margin: 0 0 18px; font-size: 18px; }
.texte p { font-size: 16px; margin: 18px 0 0; }
.texte p.en { color: var(--gris); }
.videos { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 30px; }
.photos { columns: 2; column-gap: 20px; margin-top: 50px; }
.photos a { display: block; margin-bottom: 20px; break-inside: avoid; cursor: zoom-in; }
.navprojets { display: flex; justify-content: space-between; gap: 20px; margin: 70px 0 10px; padding-top: 20px; border-top: 1px solid #eee; font-size: 14px; }
.navprojets a:first-child, .navprojets a:last-child { flex: 1; }
.navprojets a:last-child { text-align: right; }

/* Vidéos */
.video { position: relative; aspect-ratio: 16 / 9; background: #000; }
.video.vertical { aspect-ratio: 9 / 16; }
.video iframe, .video video, .video button { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video video { object-fit: cover; }
.video button { padding: 0; cursor: pointer; background: #000; }
.video button img { width: 100%; height: 100%; object-fit: cover; }
.play { position: absolute; top: 50%; left: 50%; width: 68px; height: 68px; margin: -34px 0 0 -34px; border: 2px solid #fff; border-radius: 50%; background: rgba(0,0,0,.25); transition: background .2s; }
.play::after { content: ""; position: absolute; left: 26px; top: 21px; border-style: solid; border-width: 13px 0 13px 21px; border-color: transparent transparent transparent #fff; }
.video button:hover .play { background: rgba(0,0,0,.55); }

/* Contact */
.apropos .portrait { width: 230px; }
.apropos .coord { font-size: 19px; line-height: 1.6; margin-top: 36px; }
.apropos .coord strong { font-weight: 400; }
.apropos .texte p:first-child { margin-top: 0; }

/* Pied de page */
.pied { background: var(--fond-pied); margin-top: 90px; padding: 56px 24px 90px; }
.pied-int { max-width: var(--largeur); margin: 0 auto; padding: 0 24px; }
.pied h2 { font-size: 22px; letter-spacing: .14em; margin: 0 0 24px; }
.pied p { margin: 4px 0; font-size: 14px; letter-spacing: .06em; }

/* Visionneuse photo */
.visionneuse { position: fixed; inset: 0; background: rgba(0,0,0,.92); display: flex; align-items: center; justify-content: center; z-index: 10; cursor: zoom-out; }
.visionneuse img { max-width: 94vw; max-height: 92vh; width: auto; height: auto; }
.visionneuse button { position: absolute; background: none; border: 0; color: #fff; font-size: 40px; padding: 20px; cursor: pointer; }
.visionneuse .prec { left: 0; } .visionneuse .suiv { right: 0; } .visionneuse .fermer { top: 0; right: 0; font-size: 30px; }

.vide { text-align: center; padding: 60px 0; }

@media (max-width: 900px) {
  .galerie { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .deux-col, .deux-col.etroit { grid-template-columns: 1fr; gap: 28px; padding-left: 0; }
  .deux-col.etroit .media { max-width: 360px; margin: 0 auto; width: 100%; }
  .videos { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .entete { padding: 44px 16px 32px; }
  .conteneur { padding: 0 14px; }
  .galerie { grid-template-columns: 1fr; }
  .tuile-titre { opacity: 1; }
  .photos { columns: 1; }
  .navprojets { flex-direction: column; text-align: center; }
  .navprojets a:last-child { text-align: center; }
  .clients img { max-height: 50px; max-width: 110px; }
}
