/* Les Nouvelles Visions — feuille de style
   Palette : noir, gris, anthracite, blanc. Aucun trait, aucune trame. */

:root {
  --ink: #0a0a0a;          /* fond */
  --anthracite: #151515;   /* surfaces discrètes (champs) */
  --anthracite-2: #1c1c1c; /* survol / focus des champs */
  --paper: #f4f3f1;        /* texte principal */
  --paper-dim: #9a9a96;    /* texte secondaire */
  --paper-faint: #5c5c58;  /* pied de page */

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --measure: 1180px;
  --pad-x: clamp(1.5rem, 6vw, 6rem);
  --gap-section: clamp(4.5rem, 10vw, 9.5rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--paper);
  text-decoration: none;
  transition: color 0.25s ease;
}

a:hover {
  color: var(--paper-dim);
}

::selection {
  background: var(--paper);
  color: var(--ink);
}

:focus-visible {
  outline: 1px solid rgba(244, 243, 241, 0.4);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 0.75rem 1rem;
  background: var(--paper);
  color: var(--ink);
  z-index: 10;
}

.skip:focus {
  left: 1rem;
  top: 1rem;
}

/* ---------- En-tête ---------- */

.site-head {
  max-width: var(--measure);
  margin: 0 auto;
  padding: clamp(1.75rem, 4vw, 2.75rem) var(--pad-x);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 2rem;
}

.wordmark {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  letter-spacing: 0.02em;
}

.site-nav {
  display: flex;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--paper-dim);
}

.site-nav a {
  color: var(--paper-dim);
}

.site-nav a:hover {
  color: var(--paper);
}

/* ---------- Trame générale ---------- */

main {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

section {
  padding-block: var(--gap-section);
}

.hero {
  padding-top: clamp(2.5rem, 8vw, 6rem);
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero-logo {
  position: relative;
  isolation: isolate;
  align-self: center;
  margin: 0;
  line-height: 0;
}

.hero-logo img {
  position: relative;
  z-index: 1;
  width: clamp(280px, 46vw, 560px);
  height: auto;
}

/* halo de lumière, respiration lente */
.hero-logo::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 108%;
  aspect-ratio: 1 / 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(228, 232, 238, 0.22),
    rgba(228, 232, 238, 0.07) 44%,
    rgba(228, 232, 238, 0) 70%
  );
  filter: blur(20px);
  z-index: 0;
  pointer-events: none;
  animation: lnv-halo 7s ease-in-out infinite alternate;
}

/* cercle de lumière qui tourne autour du monogramme */
.hero-logo::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 76%;
  aspect-ratio: 1 / 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    rgba(255, 255, 255, 0) 0deg,
    rgba(255, 255, 255, 0) 205deg,
    rgba(255, 255, 255, 0.45) 300deg,
    rgba(255, 255, 255, 0.85) 342deg,
    rgba(255, 255, 255, 0) 360deg
  );
  -webkit-mask: radial-gradient(closest-side, transparent calc(100% - 3px), #000 calc(100% - 3px));
  mask: radial-gradient(closest-side, transparent calc(100% - 3px), #000 calc(100% - 3px));
  opacity: 0.75;
  z-index: 2;
  pointer-events: none;
  animation: lnv-spin 15s linear infinite;
}

@keyframes lnv-halo {
  from {
    opacity: 0.45;
    transform: translate(-50%, -50%) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.08);
  }
}

@keyframes lnv-spin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-logo::before {
    animation: none;
    opacity: 0.8;
  }
  .hero-logo::after {
    animation: none;
    opacity: 0.3;
  }
}

/* accroche sous le monogramme, comble l'espace du hero */
.hero-tagline {
  margin: clamp(2.25rem, 6vw, 3.5rem) auto 0;
  max-width: 30ch;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.15rem, 2.1vw, 1.55rem);
  line-height: 1.45;
  color: var(--paper);
  text-align: center;
  text-wrap: balance;
}

/* invite discrète à défiler */
.scroll-cue {
  margin: clamp(3rem, 7vw, 5rem) 0 0;
  display: flex;
  justify-content: center;
}

.scroll-cue span {
  display: block;
  width: 1px;
  height: 42px;
  background: linear-gradient(to bottom, rgba(244, 243, 241, 0.55), rgba(244, 243, 241, 0));
  animation: lnv-cue 2.6s ease-in-out infinite;
}

@keyframes lnv-cue {
  0% { transform: scaleY(0.3); transform-origin: top; opacity: 0.3; }
  50% { transform: scaleY(1); transform-origin: top; opacity: 1; }
  100% { transform: scaleY(0.3); transform-origin: bottom; opacity: 0.3; }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-cue span {
    animation: none;
    opacity: 0.5;
  }
}

/* ---------- Présentation (occupe l'ancienne place de l'épigraphe) ---------- */

.presentation {
  padding-top: clamp(7rem, 16vw, 12rem);
  max-width: 46ch;
  margin: 0 auto;
  text-align: center;
}

.presentation p {
  margin: 0 0 1.1em;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  line-height: 1.42;
  color: var(--paper-dim);
  text-wrap: balance;
}

.presentation p:last-child {
  margin-bottom: 0;
}

.presentation-kicker {
  margin-top: 1.6em !important;
  font-size: clamp(1.5rem, 3vw, 2.1rem) !important;
  color: var(--paper) !important;
}

/* ---------- Vision (photo pleine largeur, effet lumineux) ---------- */

.photo-story {
  padding-top: 0;
  padding-bottom: clamp(2.5rem, 6vw, 4.5rem);
}

.photo-story-frame {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  min-height: clamp(420px, 82vh, 860px);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
}

.photo-story-img {
  position: absolute;
  inset: -8% 0;
  width: 100%;
  height: 116%;
  max-width: none;
  object-fit: cover;
  object-position: center 42%;
  transform: translateY(calc(var(--p, 0) * -5%));
  filter: brightness(0.86);
  will-change: transform;
}

.photo-story-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 60% 46% at 50% 50%,
    rgba(6, 6, 6, 0.55),
    rgba(6, 6, 6, 0.18) 60%,
    rgba(6, 6, 6, 0) 78%
  );
  pointer-events: none;
}

.photo-story-phrase {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: 18ch;
  padding: 0 1.25rem;
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  color: #fff;
  font-size: clamp(1.7rem, 4.6vw, 3.4rem);
  line-height: 1.28;
  text-wrap: balance;
  opacity: calc(0.25 + var(--p, 0) * 0.75);
  filter: blur(calc((1 - var(--p, 0)) * 6px));
  letter-spacing: calc((1 - var(--p, 0)) * 0.04em);
  text-shadow:
    0 0 calc(var(--p, 0) * 14px) rgba(255, 255, 255, calc(var(--p, 0) * 0.9)),
    0 0 calc(var(--p, 0) * 46px) rgba(255, 255, 255, calc(var(--p, 0) * 0.65)),
    0 0 calc(var(--p, 0) * 110px) rgba(255, 255, 255, calc(var(--p, 0) * 0.35));
  transition: opacity 0.2s linear, filter 0.2s linear, letter-spacing 0.2s linear;
  will-change: opacity, filter;
}

/* téléphones/tablettes : on retire le flou animé (coûteux à recalculer à
   chaque frame de défilement sur GPU mobile) ; l'apparition reste fluide
   via l'opacité et la lueur du texte seules */
@media (max-width: 780px) {
  .photo-story-phrase {
    filter: none;
    transition: opacity 0.2s linear, letter-spacing 0.2s linear;
  }
}

@media (prefers-reduced-motion: reduce) {
  .photo-story-img {
    transform: none;
  }
  .photo-story-phrase {
    opacity: 1;
    filter: none;
    letter-spacing: normal;
    text-shadow:
      0 0 14px rgba(255, 255, 255, 0.85),
      0 0 46px rgba(255, 255, 255, 0.55),
      0 0 110px rgba(255, 255, 255, 0.3);
  }
}

/* ---------- Travaux ---------- */

.section-label {
  margin: 0 0 clamp(3rem, 7vw, 4.5rem);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--paper-dim);
}

.work {
  display: flex;
  gap: clamp(1.75rem, 5vw, 4rem);
  align-items: flex-start;
  padding-block: clamp(2.75rem, 6vw, 4rem);
}

.work-mark {
  flex: 0 0 auto;
  align-self: flex-start;
  width: clamp(100px, 22vw, 120px);
  height: clamp(100px, 22vw, 120px);
  border-radius: 14px;
  background: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
}

.work-mark img {
  width: 100%;
  height: auto;
}

.pulsions-mark {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  color: var(--ink);
  letter-spacing: 0.005em;
}

.work-body {
  flex: 1 1 auto;
}

.work-name {
  margin: 0 0 0.6rem;
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--paper);
}

.work-desc {
  margin: 0;
  max-width: 54ch;
  color: var(--paper-dim);
  font-size: 1.02rem;
  line-height: 1.6;
}

.work-desc p {
  margin: 0 0 0.9em;
}

.work-desc p:first-child {
  color: var(--paper);
  font-size: 1.12rem;
}

.work-desc p:last-child {
  margin-bottom: 0;
}

.work-desc p.work-kicker {
  margin-top: 1.4em;
  color: var(--paper);
}

/* ---------- Contact ---------- */

.contact-intro {
  margin: 0 0 clamp(2.5rem, 6vw, 3.5rem);
  max-width: 46ch;
  font-size: clamp(0.98rem, 1.25vw, 1.1rem);
  line-height: 1.6;
  color: var(--paper-dim);
}

.contact-intro a {
  color: var(--paper);
}

.contact-intro a:hover {
  color: var(--paper-dim);
}

.contact-form {
  max-width: 34rem;
}

.field {
  margin-bottom: clamp(1.25rem, 3vw, 1.75rem);
}

.field label {
  display: block;
  margin-bottom: 0.65rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--paper-dim);
}

.field input,
.field textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--paper);
  background: var(--anthracite);
  border: 0;
  border-radius: 3px;
  padding: 0.95rem 1.1rem;
  transition: background 0.2s ease;
}

.field input:hover,
.field textarea:hover {
  background: #181818;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  background: var(--anthracite-2);
}

.field textarea {
  resize: vertical;
  min-height: 8rem;
}

.contact-form button {
  margin-top: 0.5rem;
  font-family: var(--sans);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--ink);
  background: var(--paper);
  border: 0;
  border-radius: 3px;
  padding: 1rem 2.25rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

.contact-form button:hover {
  background: #dcdbd6;
}

.form-note {
  margin: 1.25rem 0 0;
  min-height: 1.2em;
  font-size: 0.9rem;
  color: var(--paper-dim);
}

.form-note.is-error {
  color: var(--paper);
}

/* ---------- Pied de page ---------- */

.site-foot {
  max-width: var(--measure);
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 5rem) var(--pad-x) clamp(2.5rem, 6vw, 3.5rem);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--paper-faint);
}

/* ---------- Révélation au défilement ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- Petits écrans ---------- */

@media (max-width: 640px) {
  .site-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.1rem;
  }

  .work {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .presentation {
    max-width: none;
  }

  .site-foot {
    flex-direction: column;
    gap: 0.5rem;
  }
}
