html, body {
  margin: 0;
  padding: 0;
  background: #0C0C0D;
}

body {
  font-family: "din-2014", "Space Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  color: #EDEDEC;
}

a {
  color: #EDEDEC;
  text-decoration: none;
}
a:hover {
  color: #8B8D91;
}

::selection {
  background: #EDEDEC;
  color: #0C0C0D;
}

input:focus, textarea:focus {
  outline: none;
  border-color: #EDEDEC !important;
}
input::placeholder, textarea::placeholder {
  color: #55575C;
}

.page {
  min-height: 100vh;
  background: #0C0C0D;
  color: #EDEDEC;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Héro */

.hero {
  position: relative;
  width: 100%;
  aspect-ratio: 2.39 / 1;
  min-height: 420px;
  max-height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.hero-bg {
  position: absolute;
  left: 0;
  right: 0;
  top: -12%;
  height: 124%;
  will-change: transform;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-yt {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.hero-yt iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 0;
  pointer-events: none;
}

.hero-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: repeating-linear-gradient(-45deg, #131315, #131315 22px, #17181B 22px, #17181B 44px);
}
.hero-placeholder span {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  color: #55575C;
  letter-spacing: 0.04em;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(12,12,13,0.92) 0%, rgba(12,12,13,0.35) 40%, rgba(12,12,13,0.15) 100%);
}

.hero-text {
  position: relative;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px 96px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 24px;
  will-change: transform;
}

.hero-text h1 {
  margin: 0;
  font-size: clamp(44px, 9vw, 118px);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.02;
  color: #EDEDEC;
  font-family: 'Sporting Grotesque', 'Space Grotesk', sans-serif;
}

.hero-text p {
  margin: 0;
  font-size: clamp(15px, 1.8vw, 19px);
  font-weight: 400;
  color: #B9BABD;
  letter-spacing: 0.01em;
}

/* Sections */

.section-label {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: #8B8D91;
  font-family: 'Sporting Grotesque', 'Space Grotesk', sans-serif;
}

/* Travaux */

.travaux {
  width: 100%;
  max-width: 1280px;
  padding: 160px 24px 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

/* Grille masonry : les colonnes empilent naturellement paysages et portraits,
   et le nombre de colonnes s'adapte à la largeur. */
.grid {
  column-count: 3;
  column-gap: 32px;
}

@media (max-width: 900px) {
  .grid { column-count: 2; }
}
@media (max-width: 600px) {
  .grid { column-count: 1; }
}

.video-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  break-inside: avoid;
  margin-bottom: 56px;
  animation: floaty 6s ease-in-out infinite alternate;
}

@keyframes floaty {
  from { transform: translateY(0); }
  to { transform: translateY(-9px); }
}

@media (prefers-reduced-motion: reduce) {
  .video-card { animation: none; }
}

.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #161618;
  overflow: hidden;
}

.video-frame.portrait {
  aspect-ratio: 9 / 16;
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: repeating-linear-gradient(-45deg, #161618, #161618 14px, #1A1A1D 14px, #1A1A1D 28px);
}
.video-placeholder span {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  color: #55575C;
  letter-spacing: 0.04em;
}

.video-meta {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.video-meta .num {
  font-size: 12px;
  color: #55575C;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
}

.video-meta h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 500;
  color: #EDEDEC;
}

/* Contact */

.contact {
  width: 100%;
  max-width: 1280px;
  padding: 220px 24px 160px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 32px;
  max-width: 640px;
  width: 100%;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.field label {
  font-size: 13px;
  color: #8B8D91;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.field input, .field textarea {
  background: transparent;
  border: 0;
  border-bottom: 1px solid #2A2C30;
  color: #EDEDEC;
  font-size: 17px;
  padding: 12px 0;
  font-family: inherit;
  border-radius: 0;
}

.field textarea {
  resize: vertical;
}

.submit-row {
  display: flex;
}

#contact-submit {
  background: #EDEDEC;
  color: #0C0C0D;
  border: 0;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 16px 40px;
  cursor: pointer;
  min-height: 48px;
}
#contact-submit:hover:not(:disabled) {
  background: #C9CACB;
}
#contact-submit:disabled {
  cursor: default;
  opacity: 0.85;
}

/* Pied de page */

.footer {
  width: 100%;
  max-width: 1280px;
  padding: 0 24px 56px;
  box-sizing: border-box;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  align-items: center;
}

.footer-link {
  font-size: 13px;
  color: #55575C;
  letter-spacing: 0.02em;
}
.footer-link:hover {
  color: #EDEDEC;
}
