/* Atelier Parhélie : agence d'architecture fictive (site de démonstration DRK Studio).
   Registre : épuré, clair, photographique. Angles vifs partout (radius 0), un seul accent : l'encre. */

@font-face {
  font-family: "Geist";
  src: url("../../shared/fonts/geist-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Geist";
  src: url("../../shared/fonts/geist-latin-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #f3f3f1;
  --bg-2: #e9e9e6;
  --ink: #141414;
  --ink-2: #55554f;
  --ink-3: #8a8a84;
  --line: rgba(20, 20, 20, 0.14);
  --white: #fafaf8;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --gutter: clamp(20px, 4vw, 56px);
  --max: 1440px;
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  font-feature-settings: "ss01";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
[hidden] { display: none !important; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--ink); color: var(--white); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--ink); color: var(--white); padding: 10px 14px; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Typographie ---------- */
.display {
  font-size: clamp(2.6rem, 6.2vw, 5.8rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-weight: 500;
  margin: 0;
  text-wrap: balance;
}
.h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-weight: 500;
  margin: 0;
  text-wrap: balance;
}
.h3 { font-size: 1.25rem; letter-spacing: -0.015em; font-weight: 550; margin: 0; line-height: 1.3; }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.25rem); color: var(--ink-2); max-width: 44ch; margin: 0; }
.muted { color: var(--ink-2); }
.meta { font-size: 0.9rem; color: var(--ink-3); letter-spacing: 0.005em; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  border: 1px solid var(--ink); background: var(--ink); color: var(--white);
  text-decoration: none; font-weight: 500; font-size: 0.98rem; letter-spacing: -0.005em;
  white-space: nowrap; cursor: pointer;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease), transform 0.2s var(--ease);
}
.btn:hover { background: #2a2a2a; }
.btn:active { transform: translateY(1px); }
.btn svg { width: 16px; height: 16px; transition: transform 0.35s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--white); }
.btn--light { background: var(--white); color: var(--ink); border-color: var(--white); }
.btn--light:hover { background: #fff; }
.btn--outline-light { background: transparent; color: var(--white); border-color: rgba(250, 250, 248, 0.7); }
.btn--outline-light:hover { background: var(--white); color: var(--ink); border-color: var(--white); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 500;
  border-bottom: 1px solid currentColor; padding-bottom: 2px;
}
.link-arrow svg { width: 15px; height: 15px; transition: transform 0.35s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- En-tête ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  color: var(--ink); background: rgba(243, 243, 241, 0.86);
  -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
  transition: background-color 0.45s var(--ease), color 0.45s var(--ease), border-color 0.45s var(--ease);
}
.site-header.is-over-hero {
  background: transparent; color: var(--white); border-color: transparent;
  -webkit-backdrop-filter: none; backdrop-filter: none;
}
.site-header .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 600; letter-spacing: -0.02em; font-size: 1.08rem; }
.brand svg { width: 26px; height: 26px; flex: none; }
.nav { display: flex; align-items: center; gap: 34px; }
.nav a { text-decoration: none; font-size: 0.95rem; position: relative; }
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform 0.45s var(--ease);
}
.nav a:not(.btn):hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav .btn { min-height: 40px; padding: 0 16px; font-size: 0.9rem; }
.site-header.is-over-hero .nav .btn { background: var(--white); color: var(--ink); border-color: var(--white); }

.menu-toggle {
  display: none; width: 44px; height: 44px; border: 0; background: none; padding: 0; cursor: pointer;
  position: relative; margin-right: -10px;
}
.menu-toggle span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: currentColor; transition: transform 0.4s var(--ease), top 0.4s var(--ease); }
.menu-toggle span:nth-child(1) { top: 18px; }
.menu-toggle span:nth-child(2) { top: 25px; }
.menu-open .menu-toggle span:nth-child(1) { top: 21.5px; transform: rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { top: 21.5px; transform: rotate(-45deg); }

@media (max-width: 860px) {
  .menu-toggle { display: block; }
  .nav {
    position: fixed; inset: var(--header-h) 0 0 0; flex-direction: column; align-items: flex-start;
    gap: 6px; padding: 28px var(--gutter); background: var(--bg); color: var(--ink);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0s linear 0.35s;
  }
  .nav a:not(.btn) { font-size: 2rem; letter-spacing: -0.03em; font-weight: 500; padding: 6px 0; }
  .nav a:not(.btn)::after { display: none; }
  .nav .btn { margin-top: 18px; min-height: 52px; font-size: 1rem; background: var(--ink) !important; color: var(--white) !important; border-color: var(--ink) !important; }
  .menu-open .nav { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .menu-open .site-header { background: var(--bg); color: var(--ink); border-color: var(--line); }
}

/* ---------- Hero (accueil) ---------- */
.hero {
  position: relative; min-height: max(620px, 100svh); color: var(--white);
  display: flex; align-items: flex-end; overflow: hidden; background: #2b2d2c;
}
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; transform-origin: 50% 60%; }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(12, 13, 12, 0.62) 0%, rgba(12, 13, 12, 0.38) 34%, rgba(12, 13, 12, 0) 62%),
    linear-gradient(to top, rgba(12, 13, 12, 0.7) 0%, rgba(12, 13, 12, 0.3) 42%, rgba(12, 13, 12, 0) 70%),
    linear-gradient(to bottom, rgba(12, 13, 12, 0.35) 0%, rgba(12, 13, 12, 0) 18%);
}
.hero .display, .hero .lead { text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25); }
@media (max-width: 860px) {
  .hero::after {
    background:
      linear-gradient(to top, rgba(12, 13, 12, 0.82) 0%, rgba(12, 13, 12, 0.45) 45%, rgba(12, 13, 12, 0) 75%),
      linear-gradient(to bottom, rgba(12, 13, 12, 0.35) 0%, rgba(12, 13, 12, 0) 18%);
  }
}
.hero__content { position: relative; z-index: 2; width: 100%; padding-bottom: clamp(40px, 8vh, 88px); }
.hero__content .display { max-width: 14ch; }
.hero__content .lead { color: rgba(250, 250, 248, 0.86); margin-top: 22px; max-width: 42ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.line-mask { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.line-mask > span { display: block; }

/* ---------- Sections ---------- */
.section { padding: clamp(88px, 12vw, 176px) 0; }
.section--tight { padding: clamp(64px, 8vw, 112px) 0; }

.manifesto { font-size: clamp(1.7rem, 3.6vw, 3.1rem); line-height: 1.14; letter-spacing: -0.03em; font-weight: 500; max-width: 24ch; margin: 0; }
.manifesto .w { opacity: 1; }
.js .manifesto .w { opacity: 0.16; }
.manifesto-after { display: flex; flex-wrap: wrap; gap: 28px 64px; align-items: flex-end; margin-top: 56px; }
.manifesto-after p { max-width: 46ch; margin: 0; color: var(--ink-2); }

.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: clamp(36px, 5vw, 64px); flex-wrap: wrap; }

/* Projets sélectionnés (accueil) */
.featured { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(20px, 3vw, 40px); }
.featured .proj--a { grid-column: 1 / span 7; }
.featured .proj--b { grid-column: 9 / span 4; margin-top: clamp(80px, 12vw, 200px); }
.featured .proj--c { grid-column: 1 / -1; margin-top: clamp(24px, 4vw, 48px); }
.proj { text-decoration: none; display: block; }
.proj__media { display: block; overflow: hidden; background: var(--bg-2); position: relative; }
.proj__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.proj:hover .proj__media img { transform: scale(1.035); }
.proj--a .proj__media { aspect-ratio: 4 / 3; }
.proj--b .proj__media { aspect-ratio: 3 / 4; }
.proj--c .proj__media { aspect-ratio: 21 / 9; }
.proj__caption { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; padding-top: 16px; }
.proj__caption .h3 { font-weight: 500; }

/* Méthode : image collante + étapes */
.method { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.method__visual { position: sticky; top: calc(var(--header-h) + 32px); aspect-ratio: 4 / 5; overflow: hidden; background: var(--bg-2); }
.method__visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.04); transition: opacity 0.9s var(--ease), transform 1.4s var(--ease); }
.method__visual img.is-active { opacity: 1; transform: scale(1); }
.method__intro { margin-bottom: clamp(40px, 8vh, 96px); }
.method__intro .lead { margin-top: 20px; }
.step { min-height: 62vh; display: flex; flex-direction: column; justify-content: center; border-top: 1px solid var(--line); padding: 40px 0; }
.step:last-child { min-height: 38vh; }
.step h3 { font-size: clamp(1.8rem, 3vw, 2.6rem); letter-spacing: -0.035em; font-weight: 500; margin: 0 0 14px; line-height: 1.05; transition: color 0.6s var(--ease); }
.step p { margin: 0; max-width: 40ch; color: var(--ink-2); }
.step__img { display: none; }
.js .step h3 { color: var(--ink-3); }
.js .step.is-active h3 { color: var(--ink); }

/* Chiffres */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.fact { padding: 36px 24px 0 0; }
.fact + .fact { padding-left: clamp(16px, 3vw, 40px); border-left: 1px solid var(--line); }
.fact strong { display: block; font-size: clamp(2.6rem, 5vw, 4.4rem); font-weight: 500; letter-spacing: -0.045em; line-height: 1; font-variant-numeric: tabular-nums; }
.fact span { display: block; margin-top: 12px; color: var(--ink-2); max-width: 24ch; }

/* Bannière pleine largeur */
.banner { position: relative; min-height: min(92vh, 860px); display: flex; align-items: center; overflow: hidden; color: var(--white); background: #2b2d2c; }
.banner__media { position: absolute; inset: -8% 0; }
.banner__media img { width: 100%; height: 100%; object-fit: cover; }
.banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12, 13, 12, 0.66) 0%, rgba(12, 13, 12, 0.2) 60%, rgba(12, 13, 12, 0.05) 100%); pointer-events: none; }
.banner .wrap { position: relative; z-index: 2; }
.banner .h2 { font-size: clamp(2.4rem, 5.6vw, 5rem); max-width: 13ch; }
.banner p { color: rgba(250, 250, 248, 0.86); max-width: 38ch; margin: 22px 0 32px; font-size: 1.1rem; }

/* ---------- Pied de page ---------- */
.site-footer { padding: clamp(64px, 8vw, 104px) 0 calc(40px + 64px); border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer-grid h2 { font-size: 0.85rem; font-weight: 500; color: var(--ink-3); margin: 0 0 14px; letter-spacing: 0.01em; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-grid a { text-decoration: none; }
.footer-grid a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer-brand p { color: var(--ink-2); max-width: 30ch; margin: 16px 0 0; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 0.9rem; }
.footer-bottom button { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: inherit; }

/* ---------- Pages intérieures ---------- */
.page-head { padding: calc(var(--header-h) + clamp(56px, 10vw, 136px)) 0 clamp(40px, 6vw, 72px); }
.page-head .lead { margin-top: 24px; }

/* Projets : filtres + grille */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.filter {
  min-height: 42px; padding: 0 18px; border: 1px solid var(--line); background: transparent; cursor: pointer;
  font-size: 0.95rem; transition: background-color 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.filter:hover { border-color: var(--ink); }
.filter[aria-pressed="true"] { background: var(--ink); color: var(--white); border-color: var(--ink); }
.grid-projects { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(28px, 4vw, 56px) clamp(20px, 3vw, 40px); }
.grid-projects .card { grid-column: span 6; }
.grid-projects .card--wide { grid-column: span 8; }
.grid-projects .card--narrow { grid-column: span 4; }
.card { display: block; text-align: left; border: 0; padding: 0; background: none; cursor: pointer; width: 100%; }
.card[hidden] { display: none; }
.card .proj__media { aspect-ratio: 4 / 3; }
.card--narrow .proj__media { aspect-ratio: 3 / 4; }
.card:hover .proj__media img { transform: scale(1.035); }
.card .proj__caption { flex-wrap: wrap; }

/* Fiche projet (dialog) */
.project-dialog {
  width: min(1180px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 0;
  background: var(--bg); color: var(--ink); overflow: auto;
}
.project-dialog::backdrop { background: rgba(14, 14, 14, 0.72); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.project-dialog[open] { animation: dlg-in 0.5s var(--ease); }
@keyframes dlg-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.pd-grid { display: grid; grid-template-columns: 1.5fr 1fr; }
.pd-media { position: relative; background: #2b2d2c; min-height: 360px; }
.pd-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.pd-media img.is-portrait { object-fit: contain; }
.pd-nav { position: absolute; right: 16px; bottom: 16px; display: flex; gap: 8px; align-items: center; }
.pd-count { color: var(--white); font-size: 0.88rem; margin-right: 8px; font-variant-numeric: tabular-nums; text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5); }
.pd-nav button { width: 44px; height: 44px; border: 0; background: var(--white); cursor: pointer; display: grid; place-items: center; }
.pd-nav button:disabled { opacity: 0.4; cursor: default; }
.pd-nav svg { width: 18px; height: 18px; }
.pd-body { padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; }
.pd-body .h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
.pd-body p { color: var(--ink-2); }
.pd-specs { margin: 24px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 10px 24px; border-top: 1px solid var(--line); padding-top: 20px; }
.pd-specs dt { color: var(--ink-3); }
.pd-specs dd { margin: 0; }
.pd-close { position: absolute; top: 12px; right: 12px; z-index: 3; width: 44px; height: 44px; border: 0; background: var(--white); cursor: pointer; display: grid; place-items: center; }
.pd-close svg { width: 18px; height: 18px; }
.project-dialog .pd-wrap { position: relative; }

/* Agence */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: end; }
.split__media { overflow: hidden; background: var(--bg-2); aspect-ratio: 4 / 5; }
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.principles { display: grid; gap: 0; border-top: 1px solid var(--line); }
.principle { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px; padding: 36px 0; border-bottom: 1px solid var(--line); }
.principle h3 { font-size: clamp(1.5rem, 2.4vw, 2.1rem); letter-spacing: -0.03em; font-weight: 500; margin: 0; line-height: 1.1; }
.principle p { margin: 0; color: var(--ink-2); max-width: 52ch; }
.team { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(24px, 4vw, 64px); margin-top: 48px; }
.team h3 { font-size: 1.5rem; letter-spacing: -0.025em; font-weight: 500; margin: 0 0 6px; }
.team p { margin: 12px 0 0; color: var(--ink-2); max-width: 44ch; }
.communes { columns: 3; column-gap: 40px; list-style: none; padding: 0; margin: 40px 0 0; color: var(--ink-2); }
.communes li { padding: 6px 0; break-inside: avoid; }
.wide-media { overflow: hidden; background: var(--bg-2); aspect-ratio: 21 / 9; }
.wide-media img { width: 100%; height: 100%; object-fit: cover; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 7vw, 120px); }
.coords { display: grid; gap: 28px; align-content: start; }
.coords h2 { font-size: 0.9rem; font-weight: 500; color: var(--ink-3); margin: 0 0 6px; }
.coords p { margin: 0; font-size: 1.15rem; letter-spacing: -0.01em; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 20px; }
.field { display: grid; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 0.92rem; font-weight: 500; }
.field .req { color: var(--ink-3); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; background: var(--white);
  border: 1px solid rgba(20, 20, 20, 0.28); border-radius: 0; font-size: 1rem;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.field textarea { min-height: 150px; resize: vertical; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23141414' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.field .hint { font-size: 0.85rem; color: var(--ink-3); }
.field .error { font-size: 0.88rem; color: #a3261b; min-height: 0; }
.field.has-error input, .field.has-error textarea, .field.has-error select { border-color: #a3261b; }
.consent { grid-column: 1 / -1; display: flex; gap: 12px; align-items: flex-start; font-size: 0.92rem; color: var(--ink-2); }
.consent input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--ink); flex: none; }
.form-actions { grid-column: 1 / -1; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.form-success { border-top: 1px solid var(--ink); padding-top: 32px; }
.form-success:focus { outline: none; }
.form-success .h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
.form-success p { color: var(--ink-2); max-width: 46ch; }

/* Mentions (dialog) */
.legal-dialog { width: min(560px, calc(100vw - 32px)); border: 0; padding: 32px; background: var(--bg); color: var(--ink); }
.legal-dialog::backdrop { background: rgba(14, 14, 14, 0.6); }
.legal-dialog h2 { font-size: 1.4rem; letter-spacing: -0.02em; font-weight: 500; margin: 0 0 12px; }
.legal-dialog p { color: var(--ink-2); margin: 0 0 12px; }

/* ---------- Animations d'apparition ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); }
.js .reveal-media .proj__media, .js .reveal-media.split__media, .js .reveal-media.wide-media { clip-path: inset(0 0 100% 0); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .pd-grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .featured .proj--a, .featured .proj--b, .featured .proj--c { grid-column: 1 / -1; margin-top: 0; }
  .featured .proj--b .proj__media { aspect-ratio: 4 / 5; }
  .featured .proj--c .proj__media { aspect-ratio: 4 / 3; }
  .method { grid-template-columns: 1fr; }
  .method__visual { display: none; }
  .step { min-height: 0; padding: 32px 0 40px; }
  .step:last-child { min-height: 0; }
  .step__img { display: block; margin-top: 24px; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-2); }
  .step__img img { width: 100%; height: 100%; object-fit: cover; }
  .js .step h3 { color: var(--ink); }
  .facts { grid-template-columns: 1fr; }
  .fact, .fact + .fact { padding: 28px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .grid-projects .card, .grid-projects .card--wide, .grid-projects .card--narrow { grid-column: 1 / -1; }
  .card--narrow .proj__media { aspect-ratio: 4 / 5; }
  .split, .contact-grid { grid-template-columns: 1fr; }
  .split__media { aspect-ratio: 4 / 3; }
  .principle { grid-template-columns: 1fr; gap: 10px; }
  .team { grid-template-columns: 1fr; }
  .communes { columns: 2; }
  .form { grid-template-columns: 1fr; }
  .wide-media { aspect-ratio: 4 / 3; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero__actions .btn { flex: 1 1 100%; justify-content: center; }
  .banner { min-height: 78svh; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .js .reveal-media .proj__media, .js .reveal-media.split__media, .js .reveal-media.wide-media { clip-path: none; }
  .js .manifesto .w { opacity: 1; }
  .js .step h3 { color: var(--ink); }
}
