/* ==========================================================================
   DEPIREUX STUDIO — Pages intérieures (projets, services, studio, contact)
   Même identité que l'accueil, mais en lecture longue et indexable.
   ========================================================================== */

:root {
  --bg: #050505;
  --ink: #f2f1ee;
  --ink-dim: rgba(242, 241, 238, 0.58);
  --ink-faint: rgba(242, 241, 238, 0.3);
  --line: rgba(242, 241, 238, 0.12);
  --line-soft: rgba(242, 241, 238, 0.07);

  --font-display: "Syne", system-ui, sans-serif;
  --font-body: "Instrument Sans", system-ui, sans-serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --pad-x: clamp(1.75rem, 6vw, 5rem);
  --maxw: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

.wrap { width: min(var(--maxw), 100%); margin-inline: auto; padding-inline: var(--pad-x); }

main { display: grid; gap: clamp(0.8rem, 2vw, 1.2rem); }
.page > * + * { margin-top: 0; }
.page > .wrap + * { margin-top: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: inherit; }

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

.sr-only {
  position: absolute; width: 1px; height: 1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

/* ==========================================================================
   Fond : étoiles + grain
   ========================================================================== */

#stars {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
}

.grain {
  position: fixed; inset: -60px;
  pointer-events: none;
  z-index: 40;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 300 300' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain-jitter 0.9s steps(4) infinite;
}
@keyframes grain-jitter {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-18px, 12px); }
  50% { transform: translate(14px, -20px); }
  75% { transform: translate(-10px, -14px); }
  100% { transform: translate(0, 0); }
}

/* filet de sécurité : un élément trop large ne doit jamais décaler la page
   (overflow-x: clip n'ouvre pas de contexte de défilement, contrairement à hidden) */
.page { position: relative; z-index: 10; overflow-x: clip; }

/* ==========================================================================
   En-tête + navigation
   ========================================================================== */

.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(5, 5, 5, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.nav__inner {
  width: min(var(--maxw), 100%);
  margin-inline: auto;
  padding: 1rem var(--pad-x);
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  position: relative;
}
.nav__logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.03em;
  text-decoration: none;
  flex-shrink: 0;
}
.nav__logo span { color: var(--ink-dim); font-size: 0.6em; vertical-align: super; margin-left: 2px; }

.nav__panel {
  display: flex; align-items: center; justify-content: flex-end;
  gap: 1.25rem;
  flex: 1;
  min-width: 0;
}
.nav__toggle {
  display: none;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.22rem;
  cursor: pointer;
  padding: 0;
}
.nav__toggle span {
  width: 1.05rem;
  height: 1px;
  background: currentColor;
  display: block;
  transition: transform 0.3s, opacity 0.3s;
}
.nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(0.33rem) rotate(45deg); }
.nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-0.33rem) rotate(-45deg); }
.nav__links { display: flex; align-items: center; gap: clamp(1rem, 2.6vw, 2.2rem); list-style: none; }
.nav__links a {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-dim);
  text-decoration: none;
  padding: 0.4em 0;
  position: relative;
  transition: color 0.35s;
  white-space: nowrap;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease-out);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__links a[aria-current="page"] { color: var(--ink); }
.nav__links a[aria-current="page"]::after { transform: scaleX(1); }

.nav__cta {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.7em 1.5em;
  border: 1px solid var(--line);
  border-radius: 99px;
  transition: background 0.4s, color 0.4s, border-color 0.4s;
  white-space: nowrap;
}
.nav__cta:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }

@media (max-width: 900px) {
  .nav__inner { flex-wrap: wrap; gap: 0.7rem 1.2rem; }
  .nav__links { order: 3; width: 100%; overflow-x: auto; padding-bottom: 0.3rem; scrollbar-width: none; }
  .nav__links::-webkit-scrollbar { display: none; }
  .nav__cta { padding: 0.6em 1.1em; font-size: 0.7rem; }
}

@media (max-width: 860px) {
  .nav__inner {
    padding-inline: clamp(1rem, 5vw, 1.8rem);
    padding-block: 0.9rem;
    min-height: auto;
  }
  .nav__toggle {
    display: inline-flex;
    margin-left: auto;
    width: 2.6rem;
    height: 2.6rem;
  }
  .nav__panel {
    display: none;
    position: fixed;
    top: 5rem;
    left: 0.85rem;
    right: 0.85rem;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1rem 1.1rem;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(5, 5, 5, 0.98);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    z-index: 70;
  }
  .nav.is-open .nav__panel { display: flex; }
  .nav__links {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    width: 100%;
    order: initial;
    overflow-x: visible;
  }
  .nav__links a {
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    padding: 0.25em 0;
  }
  .nav__cta {
    width: 100%;
    justify-content: center;
    text-align: center;
    margin-top: 0.5rem;
  }
  body.nav-open { overflow: hidden; }
}

@media (max-width: 620px) {
  .nav__inner { padding-block: 0.8rem; }
  .nav__logo { font-size: 0.92rem; }
  .nav__cta { font-size: 0.58rem; padding: 0.6em 1em; letter-spacing: 0.09em; }
  .nav__links { gap: 0.7rem; justify-content: space-between; }
  .nav__links a { font-size: 0.62rem; letter-spacing: 0.05em; }
  .nav__panel { left: 1rem; right: 1rem; padding: 1rem 1rem 1.05rem; }
}

/* ==========================================================================
   Fil d'Ariane
   ========================================================================== */

.crumbs {
  padding-top: clamp(1.6rem, 4vh, 2.6rem);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.crumbs a { text-decoration: none; transition: color 0.3s; }
.crumbs a:hover { color: var(--ink); }
.crumbs span { margin: 0 0.6em; }

/* ==========================================================================
   Héro de page
   ========================================================================== */

.phero { padding: clamp(2.5rem, 7vh, 5rem) 0 clamp(2.5rem, 7vh, 4.5rem); }

.kicker {
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-dim);
  display: flex; align-items: center; gap: 1em;
  margin-bottom: clamp(1rem, 2.5vh, 1.6rem);
}
.kicker::before {
  content: "";
  width: 34px; height: 1px;
  background: linear-gradient(90deg, var(--ink), transparent);
  flex-shrink: 0;
}

.phero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  /* le minimum doit laisser passer les mots longs (« TRAVAILLONS ») sur 390px */
  font-size: clamp(1.95rem, 7.4vw, 5.6rem);
  line-height: 0.96;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  overflow-wrap: break-word;
}
.phero h1 em {
  font-style: normal;
  color: transparent;
  -webkit-text-stroke: 1.6px var(--ink);
}
.phero__lede {
  margin-top: clamp(1.4rem, 3.5vh, 2.2rem);
  font-size: clamp(1.02rem, 1.9vw, 1.3rem);
  line-height: 1.65;
  color: var(--ink-dim);
  max-width: 46ch;
}

/* ==========================================================================
   Sections & titres
   ========================================================================== */

.section { padding: clamp(2.6rem, 8vh, 5.5rem) 0; border-top: 1px solid var(--line-soft); }
.section--flush { border-top: none; }

.section h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.45rem, 4.4vw, 3.1rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin-bottom: clamp(1.2rem, 3vh, 2rem);
  overflow-wrap: break-word;
}
.section h2 em {
  font-style: normal;
  color: transparent;
  -webkit-text-stroke: 1.4px var(--ink);
}

.section h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.1rem, 2.4vw, 1.5rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.prose p { color: var(--ink-dim); max-width: 68ch; }
.prose p + p { margin-top: 1.15em; }
.prose strong { color: var(--ink); font-weight: 500; }
.prose a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

.lead {
  font-size: clamp(1.05rem, 1.9vw, 1.22rem);
  color: var(--ink);
  line-height: 1.6;
  max-width: 56ch;
}

/* deux colonnes texte */
.cols2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(1.6rem, 4vw, 3.5rem);
}

/* ==========================================================================
   Grille de projets
   ========================================================================== */

.pgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: clamp(1.2rem, 3vw, 2.2rem);
}

.pcard {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.015);
  transition: border-color 0.45s, transform 0.55s var(--ease-out), background 0.45s;
}
.pcard:hover {
  border-color: var(--ink-faint);
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.035);
}

.pcard__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #0b0b0b;
  border-bottom: 1px solid var(--line-soft);
  position: relative;
}
.pcard__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.06);
  transition: filter 0.6s, transform 0.7s var(--ease-out);
}
.pcard:hover .pcard__media img { filter: none; transform: scale(1.05); }

/* étoile de secours quand l'image manque */
.pcard__media--empty::after {
  content: "✦";
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
  color: var(--ink-faint);
}
.pcard__media--empty img { display: none; }

.pcard__body { padding: clamp(1.1rem, 2.4vw, 1.5rem); display: flex; flex-direction: column; flex: 1; }
.pcard__top {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1rem; margin-bottom: 0.5rem;
}
/* titre de carte : ne pas hériter des grands titres de section
   (double classe pour passer devant `.section h2`) */
.pcard .pcard__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.05rem, 2.1vw, 1.35rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-transform: none;
  margin: 0;
  min-width: 0;
  overflow-wrap: break-word;
}
.pcard__year {
  font-family: var(--font-display);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  color: var(--ink-faint);
  flex-shrink: 0;
}
.pcard__desc { color: var(--ink-dim); font-size: 0.92rem; line-height: 1.6; flex: 1; }
.pcard__link {
  margin-top: 1.1rem;
  display: inline-flex; align-items: center; gap: 0.5em;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px solid var(--ink-faint);
  padding-bottom: 0.3em;
  align-self: flex-start;
  transition: border-color 0.35s;
}
.pcard__link:hover { border-color: var(--ink); }
.pcard__link i { font-style: normal; transition: transform 0.35s var(--ease-out); }
.pcard__link:hover i { transform: translate(3px, -3px); }

/* ==========================================================================
   Liste de services
   ========================================================================== */

.srv { list-style: none; display: grid; gap: clamp(1rem, 2.5vw, 1.6rem); }
.srv > li {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: clamp(1.3rem, 3vw, 2.1rem);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(1rem, 3vw, 2.4rem);
  align-items: start;
  transition: border-color 0.45s, background 0.45s;
}
.srv > li:hover { border-color: var(--ink-faint); background: rgba(255, 255, 255, 0.02); }
.srv__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  color: var(--ink-faint);
  padding-top: 0.35em;
}
.srv h2, .srv h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.1rem, 2.4vw, 1.5rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-transform: none;
  margin-bottom: 0.5rem;
}
.srv p { color: var(--ink-dim); font-size: 0.95rem; max-width: 62ch; }
.srv__tags {
  list-style: none;
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  margin-top: 0.9rem;
}
.srv__tags li {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-dim);
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 0.4em 0.9em;
}

@media (max-width: 720px) {
  .wrap { padding-inline: clamp(1.4rem, 6vw, 2rem); }
  main { display: grid; gap: clamp(0.85rem, 2vw, 1.2rem); }
  .phero { padding-top: 2rem; padding-bottom: 2.2rem; }
  .section { padding: 2.4rem 0; }
  .section + .section,
  .section + .cta-band,
  .cta-band + .section { margin-top: 0.5rem; }
  .cta-band__row { flex-direction: column; align-items: stretch; }
  .btn { justify-content: center; }
  .pgrid { grid-template-columns: 1fr; }
  .pcard__top { flex-direction: column; align-items: flex-start; gap: 0.35rem; }
  .steps li { grid-template-columns: 1fr; gap: 0.45rem; }
  .steps li::before { padding-top: 0; }
  .form-foot { flex-direction: column; align-items: stretch; }
  .form-status { min-width: 0; }
  .foot__bottom { flex-direction: column; }
  .foot { margin-top: 1.4rem; }
}

@media (max-width: 620px) {
  .srv > li { grid-template-columns: 1fr; gap: 0.6rem; }
  .srv__num { padding-top: 0; }
  .phero__lede { font-size: 0.98rem; }
  .section h2 { font-size: clamp(1.25rem, 6vw, 2rem); }
}

/* ==========================================================================
   Étapes (process)
   ========================================================================== */

.steps { list-style: none; counter-reset: s; display: grid; gap: 0; }
.steps li {
  counter-increment: s;
  display: grid;
  grid-template-columns: 3.4rem 1fr;
  gap: clamp(1rem, 2.5vw, 2rem);
  padding: clamp(1.1rem, 2.6vh, 1.7rem) 0;
  border-bottom: 1px solid var(--line-soft);
}
.steps li:first-child { border-top: 1px solid var(--line-soft); }
.steps li::before {
  content: "0" counter(s);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  color: var(--ink-faint);
  padding-top: 0.25em;
}
.steps h3 { margin-bottom: 0.35rem; }
.steps p { color: var(--ink-dim); font-size: 0.93rem; max-width: 62ch; }

/* ==========================================================================
   Points / listes à puces étoilées
   ========================================================================== */

.starlist { list-style: none; display: grid; gap: 0.85rem; }
.starlist li {
  display: grid;
  grid-template-columns: 1.4em 1fr;
  gap: 0.6em;
  color: var(--ink-dim);
  font-size: 0.96rem;
}
.starlist li::before { content: "✦"; color: var(--ink-faint); }

/* ==========================================================================
   Portrait / bloc média
   ========================================================================== */

.media-split {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(1.6rem, 5vw, 4rem);
  align-items: center;
}
.media-split img {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--line);
  filter: grayscale(1) contrast(1.05);
}

/* — portrait en étoiles (page studio) — */
.portrait {
  position: relative;
  aspect-ratio: 4 / 5;
  width: 100%;
}
/* la photo est masquée d'emblée : on ne doit jamais la voir avant les étoiles.
   Elle reste dans le DOM pour le référencement, et réapparaît uniquement
   si les étoiles ne peuvent pas se charger (ou sans JavaScript, cf. noscript) */
.portrait img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.7s var(--ease-out);
}
.portrait.is-fallback img { opacity: 1; }
.portrait canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}
@media (max-width: 780px) {
  .media-split { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Chiffres clés
   ========================================================================== */

.stats {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: clamp(1rem, 3vw, 2rem);
}
.stats li { border-top: 1px solid var(--line); padding-top: 1rem; }
.stats b {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.9rem, 5vw, 3rem);
  line-height: 1;
  letter-spacing: -0.02em;
}
.stats span {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* ==========================================================================
   Boutons & CTA
   ========================================================================== */

.btn {
  display: inline-flex; align-items: center; gap: 0.6em;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.05em;
  text-decoration: none;
  padding: 1em 2.1em;
  border-radius: 99px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--bg);
  cursor: pointer;
  transition: background 0.4s, color 0.4s, transform 0.4s var(--ease-out);
}
.btn:hover { background: transparent; color: var(--ink); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.cta-band { text-align: center; padding: clamp(3rem, 9vh, 6rem) 0; border-top: 1px solid var(--line-soft); }
.cta-band h2 { margin-bottom: 1rem; }
.cta-band p { color: var(--ink-dim); max-width: 48ch; margin: 0 auto clamp(1.6rem, 4vh, 2.4rem); }
.cta-band__row { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ==========================================================================
   FAQ (accordéon natif)
   ========================================================================== */

.faq { display: grid; }
.faq details {
  border-bottom: 1px solid var(--line-soft);
  padding: clamp(0.9rem, 2.2vh, 1.3rem) 0;
}
.faq details:first-of-type { border-top: 1px solid var(--line-soft); }
.faq summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(0.98rem, 2vw, 1.15rem);
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1rem;
  transition: color 0.3s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--ink-faint); font-weight: 400; flex-shrink: 0; }
.faq details[open] summary::after { content: "−"; }
.faq summary:hover { color: #fff; }
.faq p { color: var(--ink-dim); font-size: 0.94rem; margin-top: 0.8rem; max-width: 66ch; }

/* ==========================================================================
   Formulaire (page contact)
   ========================================================================== */

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(0.9rem, 2.4vw, 1.4rem); }
.field--full { grid-column: 1 / -1; }
@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } }

.field label {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 0.55em;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.98rem;
  padding: 0.9em 1.1em;
  transition: border-color 0.35s, background 0.35s;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-faint); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--ink-dim);
  background: rgba(255, 255, 255, 0.055);
}
.field select option { background: #111; color: var(--ink); }

.hp { position: absolute; left: -4000px; width: 1px; height: 1px; opacity: 0; }

.form-foot {
  display: flex; align-items: center; gap: 1.4rem;
  flex-wrap: wrap;
  margin-top: clamp(1.2rem, 3vh, 1.8rem);
}
.form-status { font-size: 0.85rem; color: var(--ink-dim); flex: 1; min-width: 200px; }
.form-status a { color: var(--ink); }
#sendBtn:disabled { opacity: 0.45; pointer-events: none; }

.form-done { text-align: center; padding: clamp(2rem, 6vh, 4rem) 0; }
.form-done__star { font-size: clamp(3rem, 9vw, 4.4rem); line-height: 1; }
.form-done h3 { margin: 0.6em 0 0.4em; font-size: clamp(1.4rem, 3.4vw, 2rem); }
.form-done p { color: var(--ink-dim); max-width: 40ch; margin-inline: auto; }

/* infos de contact à droite */
.contact-side { display: grid; gap: clamp(1.2rem, 3vh, 2rem); align-content: start; }
.contact-side__block { border-top: 1px solid var(--line); padding-top: 1rem; }
.contact-side__block h3 { font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-faint); font-weight: 600; margin-bottom: 0.5rem; }
.contact-side__block p, .contact-side__block a { color: var(--ink-dim); font-size: 0.95rem; text-decoration: none; }
.contact-side__block a:hover { color: var(--ink); }

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 0.8fr);
  gap: clamp(2rem, 6vw, 4.5rem);
  align-items: start;
}
@media (max-width: 860px) { .contact-layout { grid-template-columns: 1fr; } }

/* ==========================================================================
   Pied de page
   ========================================================================== */

.foot {
  border-top: 1px solid var(--line);
  padding: clamp(2.4rem, 6vh, 4rem) 0 clamp(1.6rem, 4vh, 2.4rem);
  margin-top: clamp(1rem, 4vh, 2rem);
}
.foot__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: clamp(1.6rem, 4vw, 3rem);
}
.foot__brand p { color: var(--ink-faint); font-size: 0.85rem; margin-top: 0.7rem; max-width: 32ch; }
.foot h4 {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 600;
  margin-bottom: 0.9rem;
}
.foot ul { list-style: none; display: grid; gap: 0.55rem; }
.foot a { color: var(--ink-dim); text-decoration: none; font-size: 0.9rem; transition: color 0.3s; }
.foot a:hover { color: var(--ink); }
.foot__bottom {
  margin-top: clamp(2rem, 5vh, 3rem);
  padding-top: 1.4rem;
  border-top: 1px solid var(--line-soft);
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-size: 0.75rem;
  color: var(--ink-faint);
}

/* ==========================================================================
   Arrivée depuis l'accueil — sortie d'hyperespace (décélération)
   Appliqué seulement si la classe est posée par le script d'en-tête.
   ========================================================================== */

html.is-arriving body { animation: arrive-fade 0.5s ease-out both; }
html.is-arriving #stars { animation: arrive-fade 1.1s ease-out both; }

html.is-arriving .page {
  animation: arrive-zoom 0.95s cubic-bezier(0.16, 1, 0.3, 1) both;
  transform-origin: 50% 35%;
}
html.is-arriving .nav { animation: arrive-nav 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.12s both; }

@keyframes arrive-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes arrive-zoom {
  from { transform: scale(1.055); }
  to { transform: none; }
}
@keyframes arrive-nav {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: none; }
}

/* le flou de décélération : desktop seulement (coûteux sur mobile) */
@media (min-width: 861px) {
  html.is-arriving .page { animation-name: arrive-zoom-blur; }
  @keyframes arrive-zoom-blur {
    from { transform: scale(1.055); filter: blur(7px); }
    60%  { filter: blur(0); }
    to   { transform: none; filter: blur(0); }
  }
}

@media (prefers-reduced-motion: reduce) {
  html.is-arriving body,
  html.is-arriving #stars,
  html.is-arriving .page,
  html.is-arriving .nav { animation: none; }
}

/* ==========================================================================
   Révélation au scroll
   ========================================================================== */

.rv {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.rv.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .grain { animation: none; }
  .rv { opacity: 1; transform: none; transition: none; }
  .pcard:hover, .btn:hover { transform: none; }
}
