/* v27 — site-wide “step back / dézoom” (~85% feel).
   Midway between the first v27 pass (80%) and the 90% pass,
   after Marine asked to « essayer 85% ».
   Reversible: remove this file’s <link> (loaded last) to restore v26.
   Keep typography (Italiana / Raleway Light), green accents, centered footer.
   Gallery photos: native proportions, no crop, no stretch, and each image
   fits entirely in the viewport height (max-height: 100vh − menu − 100px).
*/

:root{
  --max: 1200px;
  --gutter: clamp(1.42rem, 4.75vw, 4.05rem);
  --nav-h: 58px;
  --v27-col: 1200px;
  --v27-photo-max: calc(100vh - var(--nav-h) - 100px);
  --v27-photo-max: calc(100svh - var(--nav-h) - 100px);
}

/* --- Type scale: rem shrinks ~85%; body 15px → 12.75px. --- */
html{ font-size: 85%; } /* 13.6px if the browser default is 16px */
body{ font-size: 0.9375rem; } /* 12.75px */

.nav a,
.brand-text,
.btn,
.kicker,
.footer-label,
.footer-legal,
.legal-bar,
.field label,
.contact-list strong,
.page-home .cta-final .btn,
.page-home .band--corps .kicker,
.footer-nav a,
.projet-meta{
  font-size: 0.69rem; /* ~9.4px */
}

.btn,
.cta-final .btn,
.page-home .cta-final .btn{
  padding: 0.74rem 1.2rem;
  letter-spacing: 0.2em;
}
.site-header,
.nav-wrap{
  height: var(--nav-h);
}
.brand img.logo-on-light,
.brand img.logo-on-dark,
.brand img{
  /* 35% larger than the previous 2rem / 27.2px cap; still fits --nav-h: 58px. */
  height: 2.7rem;
  max-height: 2.7rem;
  width: auto;
  max-width: 17.6rem;
  object-fit: contain;
  object-position: left center;
}

.container{
  width: min(100% - (var(--gutter) * 2), var(--max));
  margin-inline: auto;
}

/* ---------- Home hero: full first screen (cover). Title centered.
   Cinema bands + project heroes: entire photo, native proportions, no cover crop. ---------- */
.page-home .hero-full{
  height: 100vh !important;
  height: 100svh !important;
  max-height: none !important;
  min-height: 100vh;
  min-height: 100svh;
}
.page-home .hero-slides,
.page-home .hero-slide{
  position: absolute;
  inset: 0;
}
.page-home .hero-slide-img{
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center center;
  display: block;
}

/* Perfectly center “Les Chantiers Cottin” in the home hero */
.page-home .hero-copy{
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  transform: translate(-50%, -50%) !important;
  width: min(88vw, 920px) !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}
.page-home .hero-script-wrap{
  width: min(73.5vw, 784px);
  margin: 0 auto;
  padding: 0;
  position: relative !important;
  left: auto !important;
  top: auto !important;
  transform: none !important;
}
.page-home .hero-script{
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

/* Home cinema bands: full viewport width, height auto, native ratio.
   Whole photo, no crop, no max-height cap, no side bars. */
.page-home .gallery .g-vista{
  height: auto !important;
  max-height: none !important;
  min-height: 0 !important;
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  margin-top: 5rem;
  margin-bottom: 1.05rem;
  display: block;
  position: relative;
  overflow: hidden;
  background: #1a1c1b;
  box-sizing: border-box;
}
.page-home .gallery .g-vista-media{
  position: relative !important;
  inset: auto !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  width: 100% !important;
  max-width: none !important;
  height: auto !important;
  display: block !important;
  clip-path: none !important;
  transform: none !important;
}
.page-home .gallery .g-vista img,
.page-home .gallery .g-vista-img,
.page-home main .gallery .g-vista img{
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  height: auto !important;
  max-height: none !important;
  object-fit: unset !important;
  object-position: center center;
  transform: none !important;
  clip-path: none !important;
}

/* Offre cinema bands: full viewport width, height auto, native ratio.
   Whole photo, no crop, no max-height cap, no side bars. Same as home .g-vista. */
.page-offre .offre-vista,
.page-offre .offre-vista.g-vista{
  height: auto !important;
  max-height: none !important;
  min-height: 0 !important;
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  margin-top: 0;
  margin-bottom: 0;
  display: block;
  position: relative;
  overflow: hidden;
  background: #1F3A32;
  box-sizing: border-box;
}
.page-offre .offre-vista .g-vista-media{
  position: relative !important;
  inset: auto !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  width: 100% !important;
  max-width: none !important;
  height: auto !important;
  display: block !important;
  clip-path: none !important;
  transform: none !important;
}
.page-offre .offre-vista .g-vista-media img,
.page-offre .offre-vista img.g-vista-img,
.page-offre .offre-vista img{
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  height: auto !important;
  max-height: none !important;
  object-fit: unset !important;
  object-position: center center;
  transform: none !important;
  clip-path: none !important;
}

.page-home .gallery .g-pair,
.page-home .gallery .g-solo,
.page-home .gallery .g-solo--wide{
  max-width: var(--v27-col);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
  box-sizing: border-box;
}

/* Project page heroes: full width, height auto, native ratio.
   Whole photo, no crop, no max-height cap, no side bars.
   Title stays readable with a subtle text-shadow only — no dark band,
   no gradient overlay, no hard edge. Pinned to the first-screen bottom
   when the photo is taller than the viewport; otherwise at the photo bottom. */
.projet-hero{
  height: auto !important;
  max-height: none !important;
  min-height: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  overflow: hidden;
  position: relative;
  display: block;
  background: #111;
  box-sizing: border-box;
}
.projet-hero img{
  position: relative !important;
  inset: auto !important;
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  height: auto !important;
  max-height: none !important;
  object-fit: unset !important;
  object-position: center center;
  transform: none !important;
  clip-path: none !important;
}
/* Compact dark-green transparent rectangle behind the title + subtitle,
   sized to the text (not a full-width band, no hard edge across the photo). */
.projet-hero .projet-hero-meta{
  position: absolute;
  left: clamp(1rem, 4vw, 2.4rem);
  right: auto;
  width: fit-content;
  max-width: calc(100% - 2 * clamp(1rem, 4vw, 2.4rem));
  bottom: max(1.15rem, calc(100% - (100svh - var(--nav-h)) + 1.15rem));
  box-sizing: border-box;
  padding: 0.85rem 1.3rem 0.95rem !important;
  background: rgba(31, 58, 50, 0.66) !important;
  background-image: none !important;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-radius: 12px;
  border: 0 !important;
  outline: none !important;
  box-shadow: none !important;
  color: #f7f3ea;
}
.projet-hero .projet-hero-meta .container{
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
.projet-hero .projet-hero-meta h1,
.projet-hero .projet-hero-meta .projet-meta,
.projet-hero .projet-hero-meta p{
  color: #f7f3ea !important;
  text-shadow: 0 1px 2px rgba(0,0,0,.28);
}
.projet-hero .projet-hero-meta h1{
  margin: 0 0 0.2rem;
}
.projet-hero .projet-hero-meta .projet-meta,
.projet-hero .projet-hero-meta p{
  margin: 0;
  opacity: 0.92;
  font-family: var(--font), "Raleway", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 300;
  font-size: 1.25rem; /* ~2× the previous 0.69rem, clearly readable */
  letter-spacing: 0.04em;
  line-height: 1.3;
}
@media (max-width: 699px){
  .projet-hero .projet-hero-meta{
    left: 0.85rem;
    max-width: calc(100% - 1.7rem);
    padding: 0.7rem 1rem 0.75rem !important;
    border-radius: 10px;
    bottom: max(0.85rem, calc(100% - (100svh - var(--nav-h)) + 0.85rem));
  }
  .projet-hero .projet-hero-meta .projet-meta,
  .projet-hero .projet-hero-meta p{
    font-size: 1.05rem;
  }
}

/* Location · surface under Réalisations / home cards, moderately larger */
.page-home .home-reals .real-card .real-meta p,
.page-home .real-card .real-meta p,
.reals-page .real-card .real-meta p{
  font-family: var(--font), "Raleway", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 300;
  font-size: 1rem;
  letter-spacing: 0.04em;
  line-height: 1.35;
}

/* Réalisations / home cards: no dark veil or hard-edged band over the photo.
   Titles already sit under the image on these pages; keep any leftover veil hidden. */
.real-card .real-veil,
.page-home .real-card .real-veil,
.reals-page .real-card .real-veil{
  display: none !important;
  background: none !important;
}

/* ---------- Project galleries: fit in one viewport, native proportions ---------- */
.projet-gallery,
.gallery-mosaic.projet-gallery{
  max-width: var(--v27-col);
  width: calc(100% - (var(--gutter) * 2));
  margin-left: auto !important;
  margin-right: auto !important;
  margin-top: 1.9rem;
  margin-bottom: 2.6rem;
  box-sizing: border-box;
  align-items: center;
}

.projet-gallery figure,
.gallery-mosaic.projet-gallery figure{
  display: flex;
  justify-content: center;
  align-items: center;
  background: transparent !important;
}

/* Every gallery image: cap height so the whole photo is visible without
   scrolling; width follows the native ratio; never crop or stretch. */
.projet-gallery img,
.gallery-mosaic.projet-gallery img,
.projet-gallery .pg-full img,
.projet-gallery figure.pg-full img,
.projet-gallery .pg-full.pg-full--portrait img,
.projet-gallery .pg-row img,
.projet-gallery .pg-row--portrait img,
.projet-gallery .pg-row--landscape img{
  display: block !important;
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: var(--v27-photo-max) !important;
  object-fit: contain !important;
  object-position: center center;
  border-radius: 0 !important;
  transform: none !important;
  aspect-ratio: auto !important;
}

/* Singles: centered in the column; size is driven by max-height / max-width */
.projet-gallery .pg-full,
.projet-gallery figure.pg-full,
.projet-gallery .pg-full.pg-full--portrait{
  display: flex !important;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 100%;
  max-height: var(--v27-photo-max);
  margin-left: auto;
  margin-right: auto;
}

/* Pairs: same max height, widths follow each photo’s ratio, row centered */
.projet-gallery .pg-row{
  display: flex !important;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  max-height: var(--v27-photo-max);
}
.projet-gallery .pg-row figure{
  flex: 0 1 auto !important;
  width: auto;
  max-width: calc((100% - 10px) / 2);
  max-height: var(--v27-photo-max);
  min-width: 0;
  height: auto !important;
}
@media (max-width: 699px){
  .projet-gallery,
  .gallery-mosaic.projet-gallery{
    width: calc(100% - 2rem);
  }
  .projet-gallery .pg-row{
    flex-direction: column;
    align-items: center;
    max-height: none;
  }
  .projet-gallery .pg-row figure{
    flex: 0 0 auto !important;
    width: 100% !important;
    max-width: 100%;
  }
}

/* Home gallery pairs / solos: viewport cap, no crop, no cream frames.
   Figure/card shrink-wraps the image; shadow moves onto the photo. */
.page-home .gallery .g-pair,
.page-home .gallery .g-solo,
.page-home .gallery .g-solo--wide{
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: flex-start;
  gap: 10px;
  max-height: none;
}
.page-home .gallery .g-pair .g-frame{
  max-width: calc((100% - 10px) / 2);
  width: fit-content !important;
  flex: 0 0 auto !important;
}
.page-home .gallery .g-frame,
.page-home .gallery .g-shot,
.page-home .gallery .g-solo .g-frame,
.page-home .gallery .g-solo--wide .g-frame{
  width: fit-content !important;
  max-width: 100%;
  flex: 0 0 auto;
  max-height: var(--v27-photo-max);
  height: auto !important;
  display: flex;
  justify-content: center;
  align-items: center;
  background: transparent !important;
  padding: 0 !important;
  box-shadow: none !important;
  overflow: visible;
  transform: none !important;
}
.page-home .gallery .g-pair img,
.page-home .gallery .g-solo img,
.page-home .gallery .g-solo--wide img,
.page-home .gallery .g-frame img,
.page-home .gallery .g-shot img{
  max-height: var(--v27-photo-max) !important;
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  object-fit: contain !important;
  display: block;
  background: transparent !important;
  padding: 0 !important;
  box-shadow: 0 4px 16px rgba(20,24,22,.10);
}
@media (max-width: 699px){
  .page-home .gallery .g-pair{
    flex-direction: column;
    align-items: center;
  }
}

/* Lightbox: no cream polaroid mat */
.g-lb img{
  background: transparent !important;
  padding: 0 !important;
}

/* Safety: no cream/white mats beside photos on project galleries / offre figures */
.projet-gallery figure,
.gallery-mosaic.projet-gallery figure,
.page-offre .offre-vista,
.page-offre .offre-vista .g-vista-media{
  background-color: transparent;
  padding: 0;
}
.page-offre .offre-vista.g-vista{
  background: #1F3A32; /* band behind the uncropped photo, not a mat on the sides of a cropped frame */
}

/* Offre composed photos: cap so they fit in the viewport */
.page-offre .offre-compose-main img,
.page-offre .offre-compose-inset img,
.page-offre .offre-offset img{
  max-height: var(--v27-photo-max) !important;
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  object-fit: contain !important;
}

/* Réalisations grid + home cards: same column */
.reals-page,
.home-reals{
  max-width: none;
}
.reals-page .real-grid,
.home-reals .real-grid,
.page-head .container,
.reals-page .page-head,
.page-contact .container,
.page-offre .offre-hero-grid{
  max-width: var(--v27-col);
  margin-left: auto;
  margin-right: auto;
}
.reals-page .real-grid,
.home-reals .real-grid{
  width: calc(100% - (var(--gutter) * 2));
  padding-left: 0;
  padding-right: 0;
}

/* ---------- Titles: vw mid-stop at ~85% of the original ---------- */
.page-home .band--corps .band-title,
.page-home .band--corps h2{
  font-size: clamp(3.2rem, 7.23vw, 7.2rem) !important;
}
.page-home .band--corps .band-lead,
.page-home .band--corps p{
  font-size: clamp(1.45rem, 2vw, 1.95rem) !important;
}

.page-home .art-band-inner{
  max-width: var(--v27-col);
  margin-inline: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.page-home .art-band-script,
.page-home .art-band .art-band-script{
  font-size: clamp(2.9rem, 6.97vw, 10rem);
}
.page-home .art-band-lead{
  font-size: clamp(1.85rem, 2.93vw, 3.15rem) !important;
}
@media (max-width: 720px){
  .page-home .band--corps .band-title,
  .page-home .band--corps h2{
    font-size: clamp(2.55rem, 10.2vw, 3.5rem) !important;
  }
  .page-home .art-band-script,
  .page-home .art-band .art-band-script{
    font-size: clamp(1.85rem, 7.31vw, 3.1rem);
  }
  .page-home .art-band-lead{
    font-size: clamp(1.35rem, 6.29vw, 1.95rem) !important;
  }
}

.page-home .vista-title{
  font-size: clamp(2.4rem, 5.44vw, 6.25rem);
}
@media (max-width: 720px){
  .page-home .vista-title{
    font-size: clamp(2rem, 9.35vw, 3.25rem);
  }
}

.page-offre .offre-hero h1,
.page-offre .offre-hero-grid .offre-copy h1{
  font-size: clamp(2.6rem, 4.93vw, 4.5rem) !important;
}
.page-offre .offre-vista .vista-title{
  font-size: clamp(2.4rem, 4.76vw, 5.5rem);
}
.page-offre .band--corps .band-title,
.page-offre .band--corps h2{
  font-size: clamp(3.5rem, 4.68vw, 4.5rem) !important;
}
.page-offre .offre-hero-grid .prose p{
  font-size: 1.625rem !important;
}
@media (max-width: 879px){
  .page-offre .offre-hero-grid .prose p{
    font-size: 1.25rem !important;
  }
}
@media (max-width: 720px){
  .page-offre .band--corps .band-title,
  .page-offre .band--corps h2{
    font-size: clamp(2.5rem, 9.35vw, 3.25rem) !important;
  }
}

.page-head h1,
.page-intro h1,
.contact-copy h1{
  font-size: clamp(2.4rem, 5.1vw, 4.4rem);
}
.projet-hero h1,
.projet-intro h1{
  font-size: clamp(2rem, 4.25vw, 3.6rem);
}
.real-card h2,
.real-card h3,
.page-home .real-card h2,
.reals-page .real-card h2{
  font-size: clamp(1.15rem, 1.7vw, 1.55rem);
}

.cta-final h2,
.page-home .cta-final h2,
.cta-final .band-title{
  font-size: clamp(2.85rem, 5.44vw, 5.25rem) !important;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Vertical rhythm: ~85% of the original ---------- */
.page-home .band--corps,
.band--corps,
.page-head,
.home-reals,
.reals-page .page-head{
  padding-top: clamp(3.2rem, 6.8vh, 4.9rem);
  padding-bottom: clamp(3.2rem, 6.8vh, 4.9rem);
}
.page-home .art-band{
  padding-top: clamp(5.75rem, 13.6vh, 9.8rem);
  padding-bottom: clamp(2.55rem, 5.1vh, 3.8rem);
}
.offre-hero,
.page-offre .offre-hero{
  padding-bottom: clamp(3.8rem, 8.5vh, 6.4rem);
}
.cta-final,
.page-home .cta-final{
  padding-top: clamp(3.4rem, 7.5vh, 5.5rem);
  padding-bottom: clamp(3.4rem, 7.5vh, 5.5rem);
}
.cta-final .btn,
.page-home .cta-final .btn{
  margin-top: clamp(2.35rem, 4.7vw, 3.8rem);
}

.site-footer .footer-grid{
  justify-content: center;
  text-align: center;
  gap: clamp(1.7rem, 4.25vw, 3.8rem) clamp(2.35rem, 5.1vw, 4.7rem);
}
.site-footer .footer-brand,
.site-footer .footer-contact,
.site-footer .footer-address,
.site-footer .footer-nav{
  align-items: center;
  text-align: center;
}
.footer-tagline{
  font-size: clamp(1.35rem, 1.87vw, 1.7rem);
}

.contact-stage{
  min-height: 0;
}
.contact-stage .portrait-cutout img{
  max-height: min(66vh, 34rem);
}


/* v27o: bfcache / Back restore — keep page visible after fade-out navigation.
   Reveals stay visible if JS never runs (no .js-fade / no .reveal). */
html.js-fade.is-arrived body,
html.js-fade.is-restored body{
  opacity: 1;
}
html.js-fade.is-restored body{
  transition: none;
}
html:not(.js-fade) body{
  opacity: 1;
}
html:not(.js-fade) .reveal,
html.js-fade.is-restored .reveal,
html.js-fade.is-restored .real-card,
html.js-fade.is-restored .vista{
  opacity: 1 !important;
  transform: none !important;
}
