@charset "utf-8";
/* REALISATION.CSS — page d'une réalisation (modèle commun, repris de l'ancien site) */
.ys-rz {
  --ys-vert: #1f2a22;
  --ys-olive: #6b7d4f;
  --ys-sauge: #cfdbcd;
  --ys-creme: #f1ebe6;
  --ys-texte: #3c4a3e;
  --ys-ligne: rgba(31, 42, 34, .14);
  --ys-menu: 84px;                       /* hauteur du menu fixe ; recalculée par le script */
  --ys-espace: clamp(30px, 3.6vw, 52px);
  --ys-marge: clamp(20px, 5vw, 72px);
  --ys-courbe: cubic-bezier(.18, 1, .21, 1);
  padding-top: calc(var(--ys-menu) + var(--ys-espace));
  overflow-x: hidden;                    /* pas de défilement de côté pendant les apparitions */
  overflow-x: clip;
  background-color: #fff;
  color: var(--ys-texte);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.ys-rz *, .ys-rz *::before, .ys-rz *::after { box-sizing: border-box; }
.ys-rz img { border-radius: 0; box-shadow: none; }

/* ---------- 1. le logo, la grande photo ---------- */
.ys-rz .ys-rz-logo { display: block; width: max-content; max-width: calc(100% - 40px); margin: 0 auto var(--ys-espace); line-height: 0; }
.ys-rz .ys-rz-logo img { display: block; width: 300px; max-width: 100%; height: auto; }
.ys-rz .ys-rz-une { position: relative; display: block; overflow: hidden; aspect-ratio: 12 / 5; background: #e4ddd3; cursor: zoom-in; }
.ys-rz .ys-rz-une img {
  position: absolute; inset: 0; display: block;
  width: 100% !important; height: 100% !important; max-width: none !important;
  object-fit: cover; object-position: var(--ys-cadrage, 50% 55%);
  opacity: 0; transform: scale(1.06);
  animation: ys-rz-fondu 1.4s ease .2s forwards, ys-rz-approche 14s cubic-bezier(.2, .4, .4, 1) .2s forwards;
}
@keyframes ys-rz-fondu { to { opacity: 1; } }
@keyframes ys-rz-approche { to { transform: scale(1); } }

/* ---------- 2. la présentation ---------- */
.ys-rz-intro {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(56px, 7vw, 100px) var(--ys-marge) clamp(40px, 5vw, 70px);
}
.ys-rz .ys-rz-surtitre { display: flex; align-items: center; gap: 14px; margin: 0 0 16px; font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--ys-olive); }
.ys-rz .ys-rz-surtitre::before { content: ""; flex: none; width: 40px; height: 1px; background: currentColor; opacity: .7; }
.ys-rz .ys-rz-titre { margin: 0; padding: 0; font-family: "Cormorant Garamond", Georgia, serif; font-size: clamp(38px, 4vw, 58px); font-weight: 500; line-height: 1.05; letter-spacing: .01em; text-transform: none; color: var(--ys-vert); }
.ys-rz .ys-rz-titre::after { content: ""; display: block; width: 56px; height: 2px; margin: 24px 0 26px; background: var(--ys-olive); }
.ys-rz .ys-rz-chapo { max-width: 620px; margin: 0 0 18px; font-family: "Cormorant Garamond", Georgia, serif; font-size: clamp(22px, 1.9vw, 27px); font-weight: 500; line-height: 1.4; text-align: left; color: var(--ys-vert); }
.ys-rz .ys-rz-para { max-width: 620px; margin: 0 0 1em; font-size: 17px; line-height: 1.8; letter-spacing: .01em; text-align: left; color: var(--ys-texte); }
.ys-rz .ys-rz-para:last-child { margin-bottom: 0; }

/* la fiche crème */
.ys-rz .ys-rz-fiche { position: relative; margin: clamp(0px, 5vw, 76px) 0 0; padding: clamp(10px, 1.4vw, 18px) clamp(24px, 3vw, 40px); background: var(--ys-creme); }
.ys-rz .ys-rz-fiche::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--ys-olive); transform: scaleY(0); transform-origin: top; transition: transform 1.2s var(--ys-courbe) .4s; }
.ys-rz .ys-rz-fiche.ys-vu::before { transform: scaleY(1); }
.ys-rz .ys-rz-fiche dt { margin: 0; padding: 18px 0 4px; border-top: 1px solid var(--ys-ligne); font-size: 11.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--ys-olive); }
.ys-rz .ys-rz-fiche dt:first-child { border-top: 0; }
.ys-rz .ys-rz-fiche dd { margin: 0; padding: 0 0 16px; font-family: "Cormorant Garamond", Georgia, serif; font-size: 21px; font-weight: 500; line-height: 1.3; color: var(--ys-vert); }

/* ---------- 3. la galerie ---------- */
.ys-rz-galerie { max-width: 1320px; margin: 0 auto; padding: 0 var(--ys-marge) clamp(70px, 8vw, 110px); }
.ys-rz-galerie-tete { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 20px; margin: 0 0 22px; padding-top: clamp(30px, 4vw, 50px); border-top: 1px solid var(--ys-ligne); }
.ys-rz-galerie-tete .ys-rz-surtitre { margin: 0; }
.ys-rz .ys-rz-aide { margin: 0; font-size: 14px; color: rgba(60, 74, 62, .8); }
.ys-rz .ys-rz-nb { font-family: "Cormorant Garamond", Georgia, serif; font-size: 20px; font-weight: 500; font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1; color: var(--ys-vert); }

/* sans script : une grille simple ; avec script : des rangées justifiées */
.ys-rz-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.ys-rz-photos.ys-rz-justifie { display: flex; flex-wrap: wrap; gap: 10px; }
.ys-rz .ys-rz-photos a {
  position: relative;
  display: block;
  overflow: hidden;
  background: #e4ddd3;
  cursor: zoom-in;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .9s ease, transform 1.1s var(--ys-courbe);
}
.ys-rz .ys-rz-photos a.ys-vu { opacity: 1; transform: none; }
.ys-rz .ys-rz-photos img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover;
  transition: transform 1.1s var(--ys-courbe), filter .6s ease;
}
.ys-rz-photos:not(.ys-rz-justifie) img { aspect-ratio: 16 / 10; height: auto !important; }
/* au survol : la photo grossit doucement, son numéro apparaît */
.ys-rz .ys-rz-photos a::after {
  content: attr(data-num);
  position: absolute;
  left: 14px;
  bottom: 12px;
  padding: 3px 10px 2px;
  background: rgba(255, 255, 255, .92);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 17px;
  font-weight: 500;
  font-variant-numeric: lining-nums;
  font-feature-settings: "lnum" 1;
  color: var(--ys-vert);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .4s ease, transform .5s var(--ys-courbe);
}
.ys-rz .ys-rz-photos a:hover img, .ys-rz .ys-rz-photos a:focus-visible img { transform: scale(1.045); }
.ys-rz .ys-rz-photos a:hover::after, .ys-rz .ys-rz-photos a:focus-visible::after { opacity: 1; transform: none; }
.ys-rz a:focus { outline: none; }
.ys-rz a:focus-visible, .ys-rz button:focus-visible { outline: 2px solid var(--ys-olive); outline-offset: 3px; }

/* ---------- 5. précédente / suivante ---------- */
.ys-rz-suite {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 20px;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 var(--ys-marge) clamp(60px, 7vw, 90px);
}
.ys-rz .ys-rz-voisine { display: flex; align-items: center; gap: 18px; text-decoration: none; color: var(--ys-vert); }
.ys-rz .ys-rz-suiv { justify-content: flex-end; text-align: right; }
.ys-rz .ys-rz-voisine img { flex: none; width: 120px !important; height: 84px !important; object-fit: cover; transition: transform .6s var(--ys-courbe); }
.ys-rz .ys-rz-voisine span { display: flex; flex-direction: column; gap: 4px; font-family: "Cormorant Garamond", Georgia, serif; font-size: clamp(22px, 2vw, 28px); font-weight: 500; line-height: 1.1; }
.ys-rz .ys-rz-voisine small { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; font-size: 11.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--ys-olive); }
.ys-rz .ys-rz-prec:hover img { transform: translateX(-6px); }
.ys-rz .ys-rz-suiv:hover img { transform: translateX(6px); }
.ys-rz .ys-rz-voisine:hover span { color: var(--ys-olive); }
.ys-rz .ys-rz-toutes { display: inline-flex; flex-direction: column; align-items: center; gap: 10px; padding: 0 10px; font-size: 11.5px; letter-spacing: .22em; text-transform: uppercase; text-align: center; text-decoration: none; color: var(--ys-vert); }
.ys-rz-toutes svg { width: 26px; height: 26px; fill: none; stroke: var(--ys-olive); stroke-width: 1.3; transition: transform .6s var(--ys-courbe); }
.ys-rz .ys-rz-toutes:hover svg { transform: rotate(90deg); }

/* le devis : bande verte */
.ys-rz-devis { padding: clamp(56px, 7vw, 90px) var(--ys-marge); background: var(--ys-vert); text-align: center; }
.ys-rz .ys-rz-devis-titre { margin: 0 0 12px; font-family: "Cormorant Garamond", Georgia, serif; font-size: clamp(30px, 3vw, 44px); font-weight: 500; line-height: 1.1; text-align: center; color: var(--ys-creme); }
.ys-rz .ys-rz-devis-texte { max-width: 560px; margin: 0 auto 28px; font-size: 17px; line-height: 1.7; text-align: center; color: rgba(241, 235, 230, .8); }
.ys-rz .ys-rz-bouton { display: inline-flex; align-items: center; gap: 14px; padding: 16px 30px; border: 1px solid var(--ys-sauge); font-size: 12.5px; letter-spacing: .2em; text-transform: uppercase; text-decoration: none; color: var(--ys-creme); transition: background-color .35s ease, color .35s ease; }
.ys-rz-bouton span { display: block; width: 30px; height: 1px; background: currentColor; transition: width .35s ease; }
.ys-rz .ys-rz-bouton:hover, .ys-rz .ys-rz-bouton:focus-visible { background: var(--ys-sauge); color: var(--ys-vert); }
.ys-rz-bouton:hover span { width: 48px; }

/* apparition en douceur */
.ys-rz .ys-rz-apparait { opacity: 0; transform: translateY(26px); transition: opacity 1s ease, transform 1.2s var(--ys-courbe); }
.ys-rz .ys-rz-fiche.ys-rz-apparait { transform: translateX(40px); transition-delay: .15s; }
.ys-rz .ys-rz-apparait.ys-vu { opacity: 1; transform: none; }

/* ---------- 4. la visionneuse, sur fond clair ---------- */
.ys-rz-lb {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  padding: 0;
  background: var(--ys-creme);
  color: var(--ys-vert);
  opacity: 0;
  transition: opacity .35s ease;
  -webkit-user-select: none;
  user-select: none;
}
.ys-rz-lb[hidden] { display: none; }
.ys-rz-lb.ys-rz-ouvert { opacity: 1; }
.ys-rz-lb-haut { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 12px; padding: 14px clamp(14px, 3vw, 34px); }
.ys-rz .ys-rz-lb-nom { margin: 0; font-family: "Cormorant Garamond", Georgia, serif; font-size: 22px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ys-vert); }
.ys-rz .ys-rz-lb-compteur { margin: 0; font-family: "Cormorant Garamond", Georgia, serif; font-size: 22px; font-weight: 500; font-variant-numeric: lining-nums tabular-nums; font-feature-settings: "lnum" 1, "tnum" 1; letter-spacing: .06em; color: var(--ys-vert); }
.ys-rz-lb-compteur i { font-style: normal; color: var(--ys-olive); }
.ys-rz-lb-outils { display: flex; justify-content: flex-end; gap: 6px; }
.ys-rz-lb.ys-rz button {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin: 0;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 50%;
  background: transparent;
  color: var(--ys-vert);
  cursor: pointer;
  transition: background-color .3s ease, border-color .3s ease, transform .4s var(--ys-courbe);
}
.ys-rz-lb.ys-rz button:hover { background: rgba(31, 42, 34, .07); border-color: rgba(31, 42, 34, .2); }
.ys-rz-lb button svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }

.ys-rz-lb-scene { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 0; padding: 0 clamp(8px, 2vw, 26px); touch-action: pan-y pinch-zoom; }
.ys-rz-lb.ys-rz .ys-rz-lb-fleche { width: 56px; height: 56px; border-color: rgba(31, 42, 34, .22); background: rgba(255, 255, 255, .5); }
.ys-rz-lb.ys-rz .ys-rz-lb-fleche:hover { background: var(--ys-vert); border-color: var(--ys-vert); color: var(--ys-creme); }
.ys-rz-lb.ys-rz .ys-rz-lb-avant:hover { transform: translateX(-3px); }
.ys-rz-lb.ys-rz .ys-rz-lb-apres:hover { transform: translateX(3px); }
.ys-rz-lb-cadre { display: grid; grid-template-rows: auto auto; align-content: center; justify-items: center; height: 100%; min-height: 0; margin: 0; padding-bottom: 28px; }
/* deux photos superposées : la nouvelle apparaît en fondu enchaîné sur l'ancienne */
.ys-rz-lb-vue { position: relative; width: 100%; height: 60vh; min-height: 0; }   /* taille exacte posée par le script */
.ys-rz .ys-rz-lb-img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0;
  object-fit: contain;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  filter: drop-shadow(0 22px 34px rgba(31, 42, 34, .22));
  opacity: 0;
  transition: opacity .6s ease;
}
.ys-rz .ys-rz-lb-img.ys-rz-devant { opacity: 1; }
.ys-rz .ys-rz-lb-legende { margin: 12px 0 0; max-width: 90%; font-size: 14px; line-height: 1.4; text-align: center; color: var(--ys-texte); }


/* ---------- tablettes ---------- */
@media (max-width: 1024px) {
  .ys-rz .ys-rz-une { aspect-ratio: 16 / 9; }
}
@media (max-width: 960px) {
  .ys-rz-intro { grid-template-columns: minmax(0, 1fr); }
  .ys-rz .ys-rz-fiche { margin-top: 0; }
}
/* ---------- téléphones ---------- */
@media (max-width: 767px) {
  .ys-rz { --ys-espace: 26px; }
  .ys-rz .ys-rz-logo img { width: 230px; }
  .ys-rz .ys-rz-une { aspect-ratio: 4 / 3; }
  .ys-rz .ys-rz-surtitre { gap: 10px; font-size: 11px; letter-spacing: .18em; }
  .ys-rz .ys-rz-surtitre::before { width: 24px; }
  .ys-rz .ys-rz-titre { font-size: 38px; }
  .ys-rz .ys-rz-para { font-size: 16px; }
  .ys-rz-photos.ys-rz-justifie, .ys-rz-photos { gap: 6px; }
  .ys-rz-suite { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 26px 14px; }
  .ys-rz .ys-rz-toutes { grid-column: 1 / -1; grid-row: 2; flex-direction: row; justify-content: center; padding: 18px 0 0; border-top: 1px solid var(--ys-ligne); }
  .ys-rz .ys-rz-voisine { flex-direction: column; align-items: flex-start; gap: 10px; }
  .ys-rz .ys-rz-suiv { flex-direction: column-reverse; align-items: flex-end; }
  .ys-rz .ys-rz-voisine img { width: 100% !important; height: auto !important; aspect-ratio: 4 / 3; }
  .ys-rz .ys-rz-voisine span { font-size: 21px; }
  .ys-rz .ys-rz-voisine small { font-size: 10px; letter-spacing: .14em; }
  .ys-rz .ys-rz-bouton { padding: 15px 22px; letter-spacing: .14em; }
  /* visionneuse : on glisse du doigt ; les flèches passent sous la photo */
  .ys-rz-lb-scene { grid-template-columns: minmax(0, 1fr); padding: 0 8px; }
  .ys-rz-lb.ys-rz .ys-rz-lb-fleche { position: absolute; bottom: 22px; z-index: 2; width: 50px; height: 50px; }
  .ys-rz-lb.ys-rz .ys-rz-lb-avant { left: calc(50% - 64px); }
  .ys-rz-lb.ys-rz .ys-rz-lb-apres { right: calc(50% - 64px); }
  .ys-rz-lb-cadre { padding-bottom: 96px; }
  .ys-rz .ys-rz-lb-nom { font-size: 18px; }
  .ys-rz .ys-rz-lb-compteur { font-size: 19px; }
}
@media (prefers-reduced-motion: reduce) {
  .ys-rz *, .ys-rz *::before, .ys-rz *::after { animation: none !important; transition: none !important; }
  .ys-rz .ys-rz-une img, .ys-rz .ys-rz-photos a, .ys-rz .ys-rz-apparait { opacity: 1 !important; transform: none !important; }
}
