/* ============================================
   Léo Fontanel — Maquette démo
   Esthétique reprise du site actuel :
   typo géométrique fine, blanc, gris doux.
   ============================================ */

:root {
  --txt: #4a4a4a;
  --txt-light: #7a7a7a;
  --txt-dark: #2e2e2e;
  --bg: #ffffff;
  --bg-soft: #efefef;
  --bg-footer: #3a3a3a;
  --accent: #1f1f1f;
  --maxw: 1180px;
  --header-h: 96px;          /* hauteur réelle du header (desktop) */
}

.spacer { height: calc(var(--header-h) + 4px); }
.spacer-lg { height: calc(var(--header-h) + 26px); }

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Jost', 'Avenir Next', 'Futura', sans-serif;
  font-weight: 300;
  color: var(--txt);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(6px);
  z-index: 100;
  border-bottom: 1px solid #eee;
  transition: transform .4s cubic-bezier(.4, 0, .2, 1), box-shadow .3s;
}

/* header qui s'efface quand on descend, revient quand on remonte */
.site-header.hid { transform: translateY(-101%); }
.site-header.scrolled { box-shadow: 0 3px 18px rgba(0, 0, 0, .05); }

.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 18px 24px 10px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
}

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

.logo .name {
  font-size: 28px;
  letter-spacing: 4px;
  font-weight: 400;
  color: var(--txt-dark);
}

.logo .sub {
  font-size: 13px;
  letter-spacing: 3px;
  color: var(--txt-light);
}

.main-nav {
  display: flex;
  gap: 28px;
  margin-top: 6px;
}

.main-nav > div { position: relative; }

.main-nav a, .main-nav span {
  font-size: 12px;
  letter-spacing: 2px;
  color: #6b6b6b;
  cursor: pointer;
  padding-bottom: 6px;
  display: inline-block;
}

.main-nav .active > a,
.main-nav > div > a:hover,
.main-nav > div > span:hover { color: var(--accent); }

.main-nav .active > a { border-top: 2px solid #8a8a8a; padding-top: 4px; }

.dropdown .menu {
  display: none;
  position: absolute;
  top: 100%; left: -10px;
  background: #fff;
  border: 1px solid #eee;
  padding: 8px 0;
  min-width: 160px;
  box-shadow: 0 6px 18px rgba(0,0,0,.06);
}

.dropdown:hover .menu,
.dropdown.open .menu { display: block; }   /* .open = toggle tactile */

.dropdown .menu a {
  display: block;
  padding: 7px 18px;
  letter-spacing: 2px;
  font-size: 11.5px;
}

.dropdown .menu a:hover { background: #f5f5f5; }

/* ---------- Burger (caché sur desktop) ---------- */

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
  z-index: 130;
}

.nav-toggle span {
  display: block;
  height: 1.5px;
  width: 100%;
  background: #3a3a3a;
  transition: transform .3s ease, opacity .3s ease;
}

body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---------- Hero (accueil) ---------- */

.hero {
  height: 100vh;
  min-height: 560px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  position: relative;
}

.hero::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.45), rgba(0,0,0,0) 45%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--maxw);
  margin: 0 auto;
  width: 100%;
  padding: 0 24px 90px;
  color: #fff;
}

.hero h1 {
  font-weight: 300;
  font-size: clamp(26px, 4vw, 44px);
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.hero p {
  font-size: 15px;
  letter-spacing: 1px;
  opacity: .92;
  margin-bottom: 28px;
}

.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 12px 28px;
  font-size: 12px;
  letter-spacing: 2.5px;
  border: 1px solid rgba(255,255,255,.85);
  color: #fff;
  transition: background .25s, color .25s;
}

.btn:hover { background: #fff; color: #222; }

.btn.dark {
  border-color: #3a3a3a;
  color: #3a3a3a;
}

.btn.dark:hover { background: #3a3a3a; color: #fff; }

/* ---------- Sections génériques ---------- */

.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 76px 24px;
}

.section.soft { max-width: none; background: var(--bg-soft); }

.section.soft > .inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.section-title {
  text-align: center;
  font-size: 30px;
  font-weight: 300;
  letter-spacing: 3px;
  color: #595959;
  margin-bottom: 8px;
}

.section-sub {
  text-align: center;
  font-size: 15px;
  color: var(--txt-light);
  letter-spacing: 1px;
  max-width: 640px;
  margin: 0 auto 42px;
}

/* ---------- Bandeau clients ---------- */

.clients {
  text-align: center;
  padding: 44px 24px;
  border-top: 1px solid #f0f0f0;
  border-bottom: 1px solid #f0f0f0;
}

.clients .label {
  font-size: 11px;
  letter-spacing: 3px;
  color: #9a9a9a;
  margin-bottom: 18px;
}

.clients .names {
  font-size: 14px;
  letter-spacing: 2.5px;
  color: #777;
  font-weight: 400;
}

.clients .car {
  display: flex;
  align-items: center;
  gap: 4px;
  max-width: 980px;
  margin: 0 auto;
}

.clients .car-track {
  overflow: hidden;
  flex: 1;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 48px, #000 calc(100% - 48px), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 48px, #000 calc(100% - 48px), transparent);
}

.clients .car-inner {
  display: flex;
  flex-wrap: nowrap;
  gap: 0 56px;
  width: max-content;
  padding: 4px 0;
  will-change: transform;
}

.clients .car-inner span { white-space: nowrap; }

.car-btn {
  flex: 0 0 auto;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 30px;
  font-weight: 300;
  line-height: 1;
  color: #c2c2c2;
  padding: 2px 10px 6px;
  transition: color .25s;
}

.car-btn:hover { color: #1f1f1f; }

/* ---------- Cartes projets ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 26px;
}

.card {
  position: relative;
  overflow: hidden;
  background: #fff;
}

.card .thumb {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.card .thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}

.card:hover .thumb img { transform: scale(1.04); }

.card .meta { padding: 16px 4px 0; }

.card .cat {
  font-size: 10.5px;
  letter-spacing: 2.5px;
  color: #9a9a9a;
}

.card h3 {
  font-weight: 400;
  font-size: 17px;
  letter-spacing: 1px;
  color: var(--txt-dark);
  margin: 4px 0 2px;
}

.card .link {
  font-size: 12px;
  letter-spacing: 1.5px;
  color: #8a8a8a;
}

.card:hover .link { color: var(--accent); }

/* ---------- Tuiles services ---------- */

.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.tile {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

.tile img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}

.tile:hover img { transform: scale(1.05); }

.tile .veil {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.55), rgba(0,0,0,.05) 55%);
  display: flex;
  align-items: flex-end;
  padding: 18px;
  color: #fff;
  font-size: 14px;
  letter-spacing: 3px;
}

/* ---------- Galeries ---------- */

.gallery-section { padding-top: 64px; }

.gallery-head { text-align: center; max-width: 680px; margin: 0 auto 36px; }

.gallery-head h1,
.gallery-head h2 {
  font-size: 28px;
  font-weight: 300;
  letter-spacing: 2px;
  color: #595959;
  margin-bottom: 6px;
}

.gallery-head .tagline {
  font-size: 15px;
  font-weight: 400;
  color: #6e6e6e;
  margin-bottom: 14px;
}

.gallery-head p { font-size: 14px; color: var(--txt-light); }

.grid {
  display: grid;
  gap: 14px;
}

.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }

.grid a { overflow: hidden; display: block; }

.grid img {
  width: 100%; height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 5;
  transition: transform .5s ease, opacity .5s;
  cursor: zoom-in;
}

.grid.landscape img { aspect-ratio: 4 / 3; }

.grid img:hover { transform: scale(1.03); }

/* ---------- Bande CTA ---------- */

.cta-band {
  background: var(--bg-soft);
  text-align: center;
  padding: 64px 24px;
}

.cta-band h2 {
  font-weight: 300;
  font-size: 26px;
  letter-spacing: 2px;
  color: #555;
  margin-bottom: 8px;
}

.cta-band p {
  color: var(--txt-light);
  font-size: 14px;
  margin-bottom: 26px;
}

/* ---------- Page projet ---------- */

.project-hero {
  height: 62vh;
  min-height: 420px;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: flex-end;
}

.project-hero::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.55), rgba(0,0,0,0) 50%);
}

.project-hero .inner {
  position: relative; z-index: 2;
  max-width: var(--maxw);
  margin: 0 auto;
  width: 100%;
  padding: 0 24px 48px;
  color: #fff;
}

.project-hero .cat { font-size: 11px; letter-spacing: 3px; opacity: .85; }

.project-hero h1 {
  font-weight: 300;
  font-size: clamp(26px, 3.6vw, 40px);
  letter-spacing: 1.5px;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 34px;
  justify-content: center;
  padding: 26px 24px;
  border-bottom: 1px solid #f0f0f0;
  font-size: 12.5px;
  letter-spacing: 1.5px;
  color: #8a8a8a;
}

.project-meta strong { font-weight: 400; color: #555; }

.project-intro {
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 24px 20px;
  font-size: 15.5px;
  color: #666;
}

.project-intro p + p { margin-top: 14px; }

.duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 14px;
}

.full { margin-top: 14px; }

.back-link {
  font-size: 12px;
  letter-spacing: 2px;
  color: #8a8a8a;
  display: inline-block;
  margin-bottom: 18px;
}

.back-link:hover { color: var(--accent); }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--bg-footer);
  color: #cfcfcf;
  padding: 30px 24px;
}

.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-size: 12.5px;
  letter-spacing: 1px;
}

.footer-inner a:hover { color: #fff; }

.socials { display: flex; gap: 18px; }

.socials svg { width: 18px; height: 18px; fill: #cfcfcf; }

.socials a:hover svg { fill: #fff; }

/* ---------- Effets "quali" : révélation au scroll, fondus, transitions ---------- */

/* transition douce entre les pages (navigateurs récents) */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation-duration: .22s; }
::view-transition-new(root) { animation-duration: .22s; }

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .8s cubic-bezier(.25, .4, .25, 1), transform .8s cubic-bezier(.25, .4, .25, 1);
  }

  .reveal.in {
    opacity: 1;
    transform: none;
  }

  /* fondu des images à leur chargement */
  .grid img, .fluid img, .fa-air img, .card img, .tiles img, .diptych a {
    opacity: 0;
  }

  .grid img.ld, .fluid img.ld, .fa-air img.ld, .card img.ld, .tiles img.ld {
    opacity: 1;
  }

  .grid img, .fluid img, .fa-air img, .card img, .tiles img {
    transition: opacity .6s ease, transform .55s cubic-bezier(.25, .4, .25, 1);
  }

  .diptych a { transition: opacity .8s ease; }
  .diptych a.ld { opacity: 1; }
}

/* micro-interactions */
.card .link { transition: color .25s; }

.card .link::after { content: ''; }

.card:hover h3 { color: #000; }

.veil-center .big { transition: letter-spacing .45s ease; }

.diptych a:hover .veil-center .big { letter-spacing: 9px; }

.btn, .btn.dark { transition: background .3s, color .3s, letter-spacing .3s; }

.btn:hover, .btn.dark:hover { letter-spacing: 3.5px; }

/* ---------- Lightbox ---------- */

.lightbox {
  position: fixed; inset: 0;
  background: rgba(12, 12, 12, .9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  opacity: 0;
  transition: opacity .3s ease;
}

.lightbox.open { display: flex; }

.lightbox.visible { opacity: 1; }

.lightbox img {
  max-width: 86vw;
  max-height: 84vh;
  object-fit: contain;
  opacity: 0;
  transform: scale(.985);
  transition: opacity .32s ease, transform .45s cubic-bezier(.25, .4, .25, 1);
  cursor: pointer;            /* clic = photo suivante */
}

.lightbox img[style*="opacity: 1"] { transform: scale(1); }

.lightbox .close {
  position: absolute;
  top: 16px; right: 26px;
  color: #fff;
  font-size: 32px;
  font-weight: 200;
  cursor: pointer;
  line-height: 1;
  opacity: .75;
  transition: opacity .2s;
  z-index: 3;
}

.lightbox .close:hover { opacity: 1; }

.lb-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  font-size: 54px;
  font-weight: 200;
  line-height: 1;
  padding: 36px 26px;
  cursor: pointer;
  user-select: none;
  opacity: .65;
  transition: opacity .2s;
  z-index: 2;
}

.lb-btn:hover { opacity: 1; }

.lb-prev { left: 4px; }
.lb-next { right: 4px; }

.lb-counter {
  position: absolute;
  top: 22px; left: 28px;
  color: #aaa;
  font-size: 12px;
  letter-spacing: 2.5px;
}

.lb-caption {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  color: #bbb;
  font-size: 12.5px;
  letter-spacing: 1px;
  max-width: 80vw;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 640px) {
  .lb-btn { font-size: 38px; padding: 26px 14px; }
  .lightbox img { max-width: 96vw; max-height: 80vh; }
}

/* ---------- Pastille démo ---------- */

.demo-pill {
  position: fixed;
  bottom: 14px; left: 14px;
  background: #1f1f1f;
  color: #fff;
  font-size: 10.5px;
  letter-spacing: 2px;
  padding: 7px 14px;
  border-radius: 30px;
  z-index: 150;
  opacity: .85;
}

.demo-disabled { cursor: default; }

.demo-disabled:hover .link::after,
.demo-disabled:hover .veil::after {
  content: ' · non inclus dans la démo';
  font-size: 10px;
  letter-spacing: 1px;
  opacity: .8;
}

/* ---------- Indicateur de scroll (hero) ---------- */

.scroll-cue {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: #fff;
  font-size: 30px;
  line-height: 1;
  opacity: .8;
  animation: cue 2.2s ease-in-out infinite;
  pointer-events: none;
}

@keyframes cue {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 9px); }
}

/* ---------- Bloc portrait (accueil) ---------- */

.about-teaser {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 52px;
  align-items: center;
  max-width: 980px;
  margin: 0 auto;
}

.about-teaser img { width: 100%; height: auto; }

.about-teaser p { font-size: 15px; color: #666; margin-bottom: 12px; }

@media (max-width: 760px) {
  .about-teaser { grid-template-columns: 1fr; }
  .about-teaser img { max-width: 280px; margin: 0 auto; }
}

/* ---------- Respiration entre le hero et les portes ---------- */

.gap-air { height: clamp(70px, 13vh, 140px); }

/* ---------- Diptyque accueil (équilibre commercial / fine-art) ---------- */

.diptych {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  max-width: 1560px;
  margin: 0 auto;
  padding: 0 28px;
}

.diptych a {
  position: relative;
  height: 64vh;
  min-height: 400px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* variante hub : 4 tuiles en 2×2, moins hautes */
.diptych.quad a { height: 42vh; min-height: 300px; }

.diptych a::after {
  content: '';
  position: absolute; inset: 0;
  background: rgba(0,0,0,.28);
  transition: background .35s;
}

.diptych a:hover::after { background: rgba(0,0,0,.12); }

.veil-center {
  position: relative;
  z-index: 2;
  color: #fff;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 20px;
}

.veil-center .big {
  font-size: clamp(22px, 3vw, 34px);
  letter-spacing: 6px;
  font-weight: 300;
}

.veil-center .small {
  font-size: 13px;
  letter-spacing: 1.5px;
  opacity: .9;
}

/* ---------- Galerie fluide (rangées justifiées, mix V/H) ---------- */

.fluid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.fluid a {
  flex-grow: calc(var(--r) * 100);
  flex-basis: calc(var(--r) * 330px);
  overflow: hidden;
}

.fluid a img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: var(--r);
  cursor: zoom-in;
  transition: transform .5s ease;
}

.fluid a:hover img { transform: scale(1.025); }

/* la dernière rangée ne s'étire pas exagérément */
.fluid::after {
  content: '';
  flex-grow: 1000000;
  flex-basis: 0;
}

/* ---------- Fine-art : images non recadrées, avec de l'air ---------- */

.fa-air {
  columns: 3;
  column-gap: 56px;
  max-width: 1060px;
  margin: 0 auto;
}

.fa-air a {
  display: block;
  margin-bottom: 56px;
  break-inside: avoid;
}

.fa-air img {
  width: 100%;
  height: auto;          /* jamais recadrée */
  cursor: zoom-in;
  transition: opacity .35s;
}

.fa-air a:hover img { opacity: .88; }

.fa-trio {
  display: flex;
  gap: 48px;
  align-items: center;
  justify-content: center;
  max-width: 1060px;
  margin: 0 auto;
}

.fa-trio a { flex: 1; }

.fa-trio img { width: 100%; height: auto; }

/* ---------- Mur de logos (À propos) ---------- */

.logo-wall {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 34px 46px;
  max-width: 960px;
  margin: 0 auto;
}

.logo-wall img {
  max-height: 56px;
  max-width: 170px;          /* contient les logos très larges (Nutanix...) */
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(1);
  opacity: .7;
  transition: filter .3s, opacity .3s;
}

.logo-wall img:hover { filter: none; opacity: 1; }

/* variante mono : gris nuancé, et le survol reste en noir & blanc (jamais de couleur) */
.logo-wall--mono img { filter: grayscale(1); opacity: .7; }
.logo-wall--mono img:hover { filter: grayscale(1); opacity: 1; }
.logo-wall--mono .logo-text { color: #8a8a8a; }

/* marques sans logo exploitable : nom typographié, aligné sur les images */
.logo-wall .logo-text {
  font-size: 15px;
  letter-spacing: 2.5px;
  font-weight: 400;
  color: #8a8a8a;
  line-height: 56px;
}

/* ---------- À propos ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 48px;
  align-items: start;
}

.about-photo { position: sticky; top: 110px; }  /* le portrait suit pendant la lecture */

.about-photo img { width: 100%; }

.about-text h3 {
  font-weight: 400;
  font-size: 16px;
  letter-spacing: 2px;
  color: #595959;
  margin: 26px 0 6px;
  text-transform: uppercase;
}

.about-text p {
  font-size: 15px;
  color: #666;
  margin-bottom: 16px;
  max-width: 70ch;          /* lignes plus courtes = plus lisibles */
}

.awards {
  list-style: none;
  font-size: 13.5px;
  color: #777;
  text-align: center;
}

.awards li {
  padding: 9px 0;
  border-bottom: 1px solid #f2f2f2;
}

.awards li:last-child { border-bottom: none; }

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

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 56px;
  align-items: start;
}

.contact-line { margin-bottom: 16px; font-size: 14.5px; }

.contact-line strong {
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 2.5px;
  color: #9a9a9a;
}

.dark-socials { margin-top: 22px; }

.dark-socials svg { fill: #8a8a8a; width: 20px; height: 20px; }

.dark-socials a:hover svg { fill: #1f1f1f; }

.contact-form { display: flex; flex-direction: column; gap: 14px; }

.contact-form label {
  font-size: 11px;
  letter-spacing: 2px;
  color: #9a9a9a;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-transform: uppercase;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 300;
  color: #444;
  border: 1px solid #ddd;
  background: #fff;
  padding: 11px 12px;
  outline: none;
  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus { border-color: #8a8a8a; }

.contact-form button {
  cursor: pointer;
  background: none;
  font-family: inherit;
  align-self: flex-start;
}

/* ---------- Tirages (boutique Saal intégrée) ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 960px;
  margin: 30px auto 0;
  text-align: center;
}

.steps .n { font-size: 30px; color: #c8c8c8; font-weight: 300; }

.steps h3 {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 2px;
  color: #555;
  margin: 8px 0 6px;
  text-transform: uppercase;
}

.steps p { font-size: 13.5px; color: #777; }

.portal-wrap {
  max-width: 1180px;
  margin: 0 auto;
  border: 1px solid #ececec;
}

.portal-frame {
  width: 100%;
  height: 82vh;
  min-height: 560px;
  border: 0;
  display: block;
}

/* encart d'attente de la boutique Saal */
.portal-placeholder {
  background: #fafafa;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 420px;
  padding: 60px 24px;
  text-align: center;
}

.pp-inner { max-width: 520px; }

.pp-kicker {
  font-size: 11px;
  letter-spacing: 3px;
  color: #b5b5b5;
}

.pp-inner h2 {
  font-weight: 300;
  font-size: 24px;
  letter-spacing: 1.5px;
  color: #555;
  margin: 10px 0 14px;
}

.pp-inner p {
  font-size: 14px;
  color: #777;
  margin-bottom: 24px;
}

@media (max-width: 640px) {
  .steps { grid-template-columns: 1fr; gap: 22px; }
  .portal-frame { height: 70vh; }
}

/* ---------- Divers ---------- */

.note {
  font-size: 13px;
  color: #9a9a9a;
  text-align: center;
  font-style: italic;
}

.note a { text-decoration: underline; }

.project-nav {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 8px 24px 40px;
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  letter-spacing: 1.5px;
  color: #8a8a8a;
}

.project-nav a:hover { color: var(--accent); }

/* ---------- Responsive ---------- */

/* ----- ≤ 900px : grilles et colonnes ----- */
@media (max-width: 900px) {
  .grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { position: static; max-width: 340px; margin: 0 auto; }  /* sticky désactivé */
  .contact-grid { grid-template-columns: 1fr; }
  .fa-air { columns: 2; column-gap: 32px; }
  .fa-air a { margin-bottom: 32px; }
  .fa-trio { flex-direction: column; gap: 40px; max-width: 480px; }
}

/* ----- ≤ 860px : header compact + menu burger plein écran ----- */
@media (max-width: 860px) {
  :root { --header-h: 60px; }

  /* pas de backdrop-filter ici : il piégerait le menu fixed dans le header */
  .site-header {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(255, 255, 255, .98);
  }

  body.nav-open .site-header { transform: none !important; }

  .header-inner {
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    padding: 0 18px;
    height: var(--header-h);
  }

  .logo .name { font-size: 19px; letter-spacing: 3px; }
  .logo .sub { display: none; }

  .nav-toggle { display: flex; }

  /* le menu devient un panneau plein écran */
  .main-nav {
    position: fixed;
    inset: 0;
    margin: 0;
    background: rgba(255, 255, 255, .98);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 22px;
    transform: translateY(-102%);
    transition: transform .45s cubic-bezier(.4, 0, .2, 1);
    z-index: 120;
    overflow-y: auto;
    padding: 70px 0 40px;
  }

  body.nav-open .main-nav { transform: none; }
  body.nav-open { overflow: hidden; }

  .main-nav > div { text-align: center; }

  .main-nav a, .main-nav span {
    font-size: 16px;
    letter-spacing: 3px;
    padding-bottom: 0;
  }

  .main-nav .active > a { border-top: none; padding-top: 0; color: #000; }

  /* sous-menus à plat : le label devient une rubrique (cliquable vers la page hub) */
  .dropdown > .drop-label {
    font-size: 11px;
    color: #a8a8a8;
  }

  .dropdown .menu,
  .dropdown:hover .menu {
    display: block;
    position: static;
    border: 0;
    box-shadow: none;
    background: none;
    padding: 8px 0 0;
    min-width: 0;
  }

  .dropdown .menu a {
    display: block;
    padding: 7px 0;
    font-size: 16px;
    letter-spacing: 3px;
  }

  .dropdown .menu a:hover { background: none; }
}

/* ----- ≤ 640px : téléphone ----- */
@media (max-width: 640px) {
  .section { padding: 52px 18px; }
  .section.soft > .inner { padding: 0 18px; }

  .hero { height: 72vh; min-height: 440px; }
  .hero-content { padding: 0 18px 64px; }

  .gap-air { height: clamp(48px, 8vh, 80px); }

  .diptych { grid-template-columns: 1fr; gap: 14px; padding: 0 16px; }
  .diptych a { height: 44vh; min-height: 280px; }

  .duo { grid-template-columns: 1fr; }
  .grid.cols-4, .grid.cols-3 { grid-template-columns: 1fr 1fr; gap: 10px; }

  /* mosaïque projets : chaque photo en pleine largeur */
  .fluid { gap: 12px; }
  .fluid a { flex-basis: 100%; flex-grow: 1; }

  .fa-air { columns: 1; }

  .lb-btn { font-size: 38px; padding: 26px 12px; }
  .lightbox img { max-width: 96vw; max-height: 78vh; }
  .lb-caption { font-size: 11px; bottom: 14px; }
  .lb-counter { top: 18px; left: 18px; }

  .cta-band { padding: 48px 18px; }

  .footer-inner { justify-content: center; text-align: center; }

  .demo-pill { font-size: 9px; padding: 5px 10px; bottom: 10px; left: 10px; }

  .project-meta { gap: 8px 20px; padding: 20px 16px; }
  .project-intro { padding: 40px 18px 14px; }
}
