/* ===== v11 — breathing room, native-ratio photos, premium art band ===== */

:root{
  --photo-inset: 28px;
  --photo-gap: 20px;
}
@media (max-width:720px){
  :root{
    --photo-inset: 18px;
    --photo-gap: 16px;
  }
}

/* Airy type, no huge voids */
body{
  line-height:1.75;
}
.prose p,
.offre-hero .prose p,
.offre-copy .prose p,
.projet-intro p,
.page-intro p{
  line-height:1.8;
}
@media (max-width:720px){
  body, .prose p, .offre-hero .prose p, .offre-copy .prose p{
    font-size:17px;
  }
}

/* ---------- Uncrop every photo except the B&W home hero slideshow ---------- */
main img:not(.hero-slide-img):not(.site-header img),
.edito-cell img,
.edito-cell .wahou-img,
.wahou img, .wahou .wahou-img,
.real-card img,
.projet-hero img,
.gallery-mosaic img,
.corps-vista img, .corps-vista .wahou-img,
.home-cle-photo img,
.bleed-photo img,
.planche img,
.focus-card img,
.ba-img img,
.proj-card img,
.project-gallery img,
.project-cover-media img,
.contact-stage img:not(.portrait-cutout img){
  position:static !important;
  inset:auto !important;
  width:100%;
  height:auto !important;
  max-width:100%;
  object-fit:unset !important;
  object-position:center center;
  aspect-ratio:auto !important;
  min-height:0 !important;
  transform:none !important;
  animation:none !important;
}
.wahou, .wahou--full, .wahou--tall,
.corps-vista,
.projet-hero,
.real-card,
.reals-page .real-card,
.gallery-mosaic figure,
.home-cle-photo,
.bleed-photo,
.planche,
.focus-card,
.ba-img{
  height:auto !important;
  min-height:0 !important;
  background:transparent;
}
.wahou, .wahou--full, .wahou--tall{
  overflow:visible;
  position:relative;
}
/* Cards / project heroes: image in flow, caption overlaid at the bottom */
.real-card,
.projet-hero{
  display:block;
  position:relative;
  overflow:hidden;
}
.real-card .real-veil,
.projet-hero .projet-hero-meta,
.real-card .real-meta{
  pointer-events:none;
}

/* Ken Burns / hover zooms crop edges — disable site-wide (hero slideshow excluded) */
.page-home .edito-cell img,
.page-home .edito-cell .wahou-img,
.page-home .edito-cell.is-in img,
.page-home .edito-cell.is-in .wahou-img,
.gallery-mosaic figure:hover img,
.real-card:hover img,
.real-card:focus-visible img,
.wahou img, .wahou .wahou-img,
.wahou.is-in .wahou-img{
  transform:none !important;
  animation:none !important;
}

/* ---------- White lisieres + gutters around photos, all pages ---------- */
.page-home .edito,
.edito,
.offre-edito,
.gallery-mosaic{
  padding:var(--photo-inset) !important;
  gap:var(--photo-gap) !important;
  background:#fff !important;
}
.edito-row{
  gap:var(--photo-gap) !important;
}
.wahou, .wahou--full, .wahou--tall{
  margin:var(--photo-inset);
  width:auto;
}
.real-grid{
  gap:var(--photo-gap) !important;
  padding:0 var(--photo-inset);
}
.home-reals,
.reals-page{
  padding-left:var(--photo-inset);
  padding-right:var(--photo-inset);
}
.gallery-mosaic{
  padding:var(--photo-inset) !important;
  gap:var(--photo-gap) !important;
}
.gallery-mosaic figure{
  overflow:visible;
  background:transparent;
}

/* Larger section padding — generous, not cavernous */
.page-home .band--corps,
.band--corps,
.offre-copy,
.cta-final,
.page-head,
.home-reals{
  padding-top:clamp(3.75rem, 8vh, 5.75rem);
  padding-bottom:clamp(3.75rem, 8vh, 5.75rem);
}
.offre-hero{
  padding:clamp(6.5rem, 14vh, 8.5rem) var(--photo-inset) 2.75rem;
}
.offre-copy{
  padding-left:var(--photo-inset);
  padding-right:var(--photo-inset);
}

/* ---------- Art band under the hero (no heavy frame) ---------- */
.art-band{
  position:relative;
  z-index:5;
  background:#fff;
  margin-top:-2.6rem;
  padding:0 var(--photo-inset) .35rem;
}
.art-band-inner{
  text-align:center;
  max-width:46rem;
  margin:0 auto;
  padding:3.15rem 1rem 3.35rem;
  opacity:0;
  transform:translate3d(0,.7rem,0);
  transition:opacity 1.05s cubic-bezier(.22,1,.36,1), transform 1.05s cubic-bezier(.22,1,.36,1);
}
.art-band.is-in .art-band-inner,
.art-band-inner.is-in{
  opacity:1;
  transform:none;
}
.art-band-script{
  font-family:var(--script);
  font-weight:400;
  font-style:normal;
  font-size:clamp(3.35rem, 9.2vw, 6.35rem);
  line-height:.92;
  color:#1F3A32;
  margin:0;
  letter-spacing:0;
  text-transform:none;
  clip-path:inset(0 100% 0 0);
}
.art-band.is-in .art-band-script,
.art-band-inner.is-in .art-band-script{
  animation:art-write 1.55s cubic-bezier(.45,.05,.2,1) .12s forwards;
}
@keyframes art-write{to{clip-path:inset(0 0 0 0)}}
.art-band-rule{
  display:block;
  width:2.6rem;
  height:1px;
  background:#1F3A32;
  margin:1.15rem auto 1.25rem;
  opacity:.8;
  transform:scaleX(0);
  transform-origin:center;
  transition:transform .8s cubic-bezier(.22,1,.36,1) .7s;
}
.art-band.is-in .art-band-rule,
.art-band-inner.is-in .art-band-rule{
  transform:scaleX(1);
}
.art-band-lead{
  font-family:var(--font);
  font-weight:300;
  font-style:normal;
  font-size:clamp(.7rem, 1.15vw, .86rem);
  letter-spacing:.16em;
  line-height:1.75;
  color:#1F3A32;
  margin:0 auto;
  max-width:34em;
  opacity:0;
  transition:opacity .9s ease .95s;
}
.art-band.is-in .art-band-lead,
.art-band-inner.is-in .art-band-lead{
  opacity:1;
}

/* Hero: single script line, no lead, no white gap after band */
.page-home .hero-lead{display:none !important}
.page-home .hero-copy{top:52%}
.page-home .hero-full{margin:0; padding:0}
.page-home .edito:first-of-type{padding-top:var(--photo-inset) !important; margin-top:0}

/* ---------- Corps d’état: Italiana title + list, no rules, larger type ---------- */
.page-home .corps-grid li,
.corps-grid li,
.corps-rows li{
  font-family:var(--display) !important;
  font-weight:400 !important;
  font-style:normal !important;
  letter-spacing:.06em !important;
  text-transform:none !important;
  font-size:clamp(1.15rem, 1.8vw, 1.4rem) !important;
  line-height:1.45 !important;
  border:0 !important;
  border-right:none !important;
  border-bottom:none !important;
  padding:.7rem .6rem !important;
}
.page-home .corps-grid,
.corps-grid,
.corps-rows{
  column-gap:1.25rem !important;
  row-gap:.35rem !important;
}
.page-home .band--corps .corps-title,
.corps-title,
.band--corps .band-title,
.corps-vista .band-title{
  font-family:var(--display) !important;
  font-style:normal !important;
  font-weight:400 !important;
  letter-spacing:.08em;
}
@media (max-width:720px){
  .page-home .corps-grid,
  .corps-grid,
  .corps-rows{
    grid-template-columns:1fr !important;
    max-width:22rem;
  }
  .page-home .corps-grid li,
  .corps-grid li,
  .corps-rows li{
    font-size:1.2rem !important; /* ~19px */
    padding:.65rem .2rem !important;
    border:0 !important;
  }
  .edito-row{
    flex-direction:column;
    gap:var(--photo-gap) !important;
  }
  .edito-cell,
  .edito-row .edito-panel,
  .page-home .edito-panel{
    flex:none;
    width:100%;
  }
}

/* ---------- Clé en main (Offre): same display face, readable size ---------- */
.offre-copy h2,
.offre-copy .prose,
.offre-copy .prose p{
  font-family:var(--display) !important;
  font-style:normal !important;
  font-weight:400 !important;
}
.offre-copy h2{
  font-size:clamp(2.5rem, 6.5vw, 3.7rem);
  letter-spacing:.08em;
  line-height:1.1;
  margin:0 0 1.6rem;
  color:#1F3A32;
  text-align:center;
}
.offre-copy .prose{
  text-align:center;
  max-width:38rem;
  margin:0 auto;
}
.offre-copy .prose p{
  font-size:clamp(1.15rem, 2.1vw, 1.35rem);
  line-height:1.7;
  letter-spacing:.03em;
  margin:0 0 1.15rem;
  color:#1F3A32;
}
@media (max-width:720px){
  .offre-copy .prose p{font-size:1.15rem} /* 18px */
  .offre-copy h2{font-size:clamp(2.2rem, 11vw, 2.8rem)}
}

/* Offre présentation: no photo under the green corps block */
.corps-vista{
  position:relative;
  min-height:0 !important;
  height:auto !important;
  overflow:visible;
  background:#1F3A32;
  display:block;
  margin:0;
  padding:clamp(3.75rem, 8vh, 5.75rem) var(--photo-inset);
}
.corps-vista > .wahou-img,
.corps-vista > img{
  display:none !important;
}
.corps-vista .corps-panel{
  position:relative;
  padding:0;
}

/* Offre hero grid alignment */
.offre-hero-grid{
  align-items:center;
  gap:clamp(2rem, 5vw, 4rem);
}
.portrait-cutout img{
  height:auto !important;
  width:100%;
  object-fit:unset !important;
}

@media (prefers-reduced-motion: reduce){
  .art-band-inner,
  .art-band-script,
  .art-band-rule,
  .art-band-lead{
    opacity:1 !important;
    transform:none !important;
    clip-path:none !important;
    animation:none !important;
    transition:none !important;
  }
}

/* Corps grid layout (Offre has no v7.css; keep home in sync) */
.band--green.band--corps,
.band--corps{
  background:#1F3A32;
  color:#f3efe6;
  text-align:center;
}
.band--corps .kicker,
.band--corps .corps-title,
.band--corps .band-title{
  color:#f3efe6;
}
.corps-grid{
  list-style:none;
  margin:0 auto;
  padding:0;
  max-width:56rem;
  display:grid;
  grid-template-columns:repeat(3, 1fr);
}

/* Justified rows on every page (Offre does not load v7.css) */
.edito,
.offre-edito{
  display:flex;
  flex-direction:column;
}
.edito-row{
  display:flex;
  flex-direction:row;
  align-items:stretch;
  width:100%;
  margin:0;
  box-sizing:border-box;
}
.edito-cell{
  flex:var(--ar, 1) 1 0%;
  min-width:0;
  margin:0;
  position:relative;
}
.edito-panel{
  flex:var(--ar, 1) 1 0%;
  min-width:0;
}

/* Scroll cue sat in the white art band — hide it */
.page-home .hero-scroll{display:none !important}

/* Mobile: never keep desktop rows — full-width photos, no side-by-side squeeze */
@media (max-width:720px){
  .edito-row{
    flex-direction:column !important;
    gap:var(--photo-gap) !important;
  }
  .edito-cell,
  .edito-row .edito-panel,
  .page-home .edito-panel,
  .edito-panel{
    flex:none !important;
    width:100% !important;
  }
}
