/* Habillage photographique — lot visuel 1.1.0. */

.home-hero {
  background: var(--cocon-forest);
}

.home-hero-media,
.home-hero-media img {
  height: 100%;
  inset: 0;
  position: absolute;
  width: 100%;
}

.home-hero-media img {
  object-fit: cover;
  object-position: center 46%;
}

.home-hero-shade {
  background:
    linear-gradient(90deg, rgba(45,57,35,.88) 0%, rgba(45,57,35,.66) 44%, rgba(45,57,35,.18) 100%),
    linear-gradient(0deg, rgba(45,57,35,.24), transparent 35%);
}

.home-hero-content { max-width: 1180px; }
.home-hero-content h1 { text-wrap: balance; }

.category-card {
  box-shadow: 0 18px 48px rgba(45,57,35,.08);
  min-height: 420px;
}

.category-picture,
.category-picture img {
  height: 100%;
  inset: 0;
  position: absolute;
  width: 100%;
}

.category-picture {
  display: block;
  z-index: -2;
}

.category-picture img {
  object-fit: cover;
  transition: transform 700ms cubic-bezier(.2,.7,.2,1);
}

.category-card:hover .category-picture img { transform: scale(1.045); }

.editorial-picture,
.editorial-picture img {
  display: block;
  height: 100%;
  width: 100%;
}

.editorial-picture img { object-fit: cover; }

.institute-visual .editorial-picture {
  inset: 0;
  position: absolute;
}

.institute-visual::after {
  background: linear-gradient(180deg, transparent 58%, rgba(45,57,35,.22));
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.visual-stamp { z-index: 2; }

.service-image { aspect-ratio: 3/2; }
.service-image picture { display: block; height: 100%; }
.service-image img { aspect-ratio: 3/2; }
.service-card { background: rgba(252,251,247,.98); }
.service-card .card-content { padding: 27px; }

.commitments {
  align-items: stretch;
  gap: clamp(24px,3vw,42px);
  grid-template-columns: .58fr 1.12fr .78fr;
}

.commitments-intro {
  align-self: center;
}

.commitments-intro p {
  color: var(--cocon-muted);
  margin: 20px 0 0;
}

.commitments-visual {
  border: 1px solid rgba(45,57,35,.12);
  border-radius: 28px;
  min-height: 100%;
  overflow: hidden;
  position: relative;
}

.commitments-visual picture {
  inset: 0;
  position: absolute;
}

.commitments-visual::after {
  background: linear-gradient(transparent 45%, rgba(45,57,35,.64));
  content: "";
  inset: 0;
  position: absolute;
}

.commitments-visual > span {
  bottom: 22px;
  color: #fff;
  font-family: var(--cocon-serif);
  font-size: 1.35rem;
  left: 22px;
  position: absolute;
  right: 22px;
  z-index: 2;
}

.testimonials-preview {
  background:
    radial-gradient(circle at 82% 20%, rgba(252,251,247,.88), transparent 35%),
    var(--cocon-white);
}

.testimonials-layout {
  align-items: center;
  display: grid;
  gap: clamp(38px,8vw,110px);
  grid-template-columns: 1fr .9fr;
}

.testimonials-intro h2 {
  max-width: 720px;
  text-wrap: balance;
}

.testimonials-intro .lead { max-width: 620px; }

.testimonial-placeholder-card {
  background: linear-gradient(145deg, var(--cocon-forest), var(--cocon-forest));
  border: 1px solid rgba(252,251,247,.12);
  border-radius: 36px 36px 10px 36px;
  box-shadow: 0 26px 70px rgba(45,57,35,.18);
  color: rgba(252,251,247,.92);
  min-height: 300px;
  padding: clamp(34px,5vw,58px);
  position: relative;
}

.testimonial-placeholder-card::after {
  border: 1px solid rgba(252,251,247,.16);
  border-radius: 28px 28px 8px 28px;
  content: "";
  inset: 10px;
  pointer-events: none;
  position: absolute;
}

.testimonial-mark {
  color: var(--cocon-gold);
  display: block;
  font-family: var(--cocon-serif);
  font-size: 5.5rem;
  height: 54px;
  line-height: 1;
}

.testimonial-placeholder-card p {
  font-family: var(--cocon-serif);
  font-size: clamp(1.45rem,2.4vw,2rem);
  line-height: 1.25;
  margin: 20px 0 28px;
  position: relative;
  z-index: 1;
}

.testimonial-placeholder-card small {
  color: rgba(252,251,247,.7);
  display: block;
  font-size: .76rem;
  letter-spacing: .08em;
  position: relative;
  text-transform: uppercase;
  z-index: 1;
}

.booking-invite {
  background:
    radial-gradient(circle at 88% 10%, rgba(45,57,35,.18), transparent 30%),
    var(--cocon-forest);
}

.booking-invite-side { min-width: 0; }
.booking-invite-visual {
  border: 1px solid rgba(252,251,247,.16);
  border-radius: 30px;
  box-shadow: 0 24px 55px rgba(45,57,35,.28);
  height: 255px;
  overflow: hidden;
}

.booking-invite-visual img { object-position: center 58%; }
.booking-invite-side .hours-card {
  margin: -42px 22px 0;
  position: relative;
  z-index: 2;
}

.gift-callout {
  background: var(--cocon-forest);
  isolation: isolate;
  overflow: hidden;
}

.callout-picture,
.callout-picture img,
.callout-shade {
  height: 100%;
  inset: 0;
  position: absolute;
  width: 100%;
}

.callout-picture { z-index: -2; }
.callout-picture img { object-fit: cover; }
.callout-shade {
  background: linear-gradient(90deg, rgba(45,57,35,.94), rgba(45,57,35,.58) 72%, rgba(45,57,35,.24));
  z-index: -1;
}

.callout-copy { max-width: 580px; position: relative; }

.brands-preview-layout {
  align-items: center;
  display: grid;
  gap: clamp(42px,7vw,88px);
  grid-template-columns: 1.14fr .86fr;
}

.brands-preview-layout .section-heading { margin-bottom: 0; }
.brands-preview-layout .brand-strip {
  grid-template-columns: repeat(3,1fr);
  margin-top: 30px;
}

.brands-preview-layout .brand-strip span {
  font-size: 1rem;
  min-height: 82px;
}

.brands-preview-layout .brand-strip span:nth-child(4),
.brands-preview-layout .brand-strip span:nth-child(5) {
  border-top: 1px solid var(--cocon-border);
}

.brands-preview-media {
  aspect-ratio: 4/5;
  border-radius: 36px;
  box-shadow: var(--cocon-shadow);
  overflow: hidden;
}

.page-hero {
  background:
    radial-gradient(circle at 8% 22%, rgba(252,251,247,.92), transparent 34%),
    linear-gradient(135deg, var(--cocon-ivory), var(--cocon-white));
}

.page-hero--media { padding-block: clamp(54px,6vw,82px); }
.page-hero--media .page-hero-inner {
  align-items: center;
  display: grid;
  gap: clamp(38px,6vw,82px);
  grid-template-columns: 1.02fr .98fr;
}

.page-hero-copy { min-width: 0; }
.page-hero-copy h1 {
  font-size: clamp(2.7rem,5vw,4.75rem);
  max-width: 760px;
  text-wrap: balance;
}

.page-hero-copy .lead { max-width: 650px; }
.page-hero-copy .text-link { margin-top: 12px; }

.page-hero-visual {
  aspect-ratio: 3/2;
  border-radius: 38px 38px 38px 10px;
  box-shadow: var(--cocon-shadow);
  overflow: hidden;
  position: relative;
}

.page-hero-visual::after {
  border: 1px solid rgba(252,251,247,.52);
  border-radius: 30px 30px 30px 8px;
  content: "";
  inset: 12px;
  pointer-events: none;
  position: absolute;
}

.page-hero-picture,
.page-hero-picture img { display: block; height: 100%; width: 100%; }
.page-hero-picture img { object-fit: cover; }
.page-hero--compact { padding-block: clamp(38px,4vw,58px); }
.page-hero--compact .page-hero-inner {
  gap: clamp(30px,5vw,62px);
  grid-template-columns: 1.25fr .55fr;
}
.page-hero--compact .page-hero-copy h1 { font-size: clamp(2.4rem,4vw,3.65rem); }
.page-hero--compact .page-hero-visual {
  aspect-ratio: 4/3;
  border-radius: 28px 28px 28px 8px;
}

.catalogue-filters {
  border-color: rgba(45,57,35,.13);
  box-shadow: 0 20px 55px rgba(45,57,35,.09);
}

.service-detail-image {
  box-shadow: 0 24px 70px rgba(45,57,35,.14);
  margin: 0;
}

.service-detail-image picture { display: block; }
.service-detail-image img { aspect-ratio: 3/2; }
.service-detail-image figcaption {
  background: rgba(252,251,247,.94);
  border: 1px solid rgba(45,57,35,.12);
  border-radius: 6px;
  bottom: 18px;
  color: var(--cocon-forest);
  font-size: .76rem;
  left: 18px;
  padding: 9px 14px;
  position: absolute;
  right: 18px;
  text-align: center;
}

.service-detail-copy { padding-top: 10px; }
.detail-reassurance {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -9px 0 27px;
}

.detail-reassurance span {
  background: var(--cocon-ivory);
  border: 1px solid var(--cocon-border);
  border-radius: 6px;
  color: var(--cocon-muted);
  font-size: .73rem;
  font-weight: 750;
  padding: 7px 11px;
}

.booking-aside {
  background: linear-gradient(160deg, var(--cocon-ivory), var(--cocon-ivory));
  box-shadow: 0 20px 52px rgba(45,57,35,.08);
  overflow: hidden;
  padding: 22px;
}

.booking-aside-media {
  border-radius: 20px;
  height: 180px;
  margin-bottom: 25px;
  overflow: hidden;
}

.booking-aside-media img { object-position: center 58%; }

.booking-page .cocon-booking {
  background: rgba(252,251,247,.98);
  border: 1px solid var(--cocon-border);
  border-radius: 30px;
  box-shadow: 0 22px 65px rgba(45,57,35,.08);
  margin: 0;
  max-width: none;
  padding: clamp(24px,4vw,44px);
}

.booking-page .cocon-booking__progress { gap: 8px; }
.booking-page .cocon-booking__progress li {
  border-color: rgba(45,57,35,.16);
  border-radius: 4px;
  color: var(--cocon-muted);
  padding-top: 10px;
}

.booking-page .cocon-booking__progress li.is-active,
.booking-page .cocon-booking__progress li.is-done { border-color: var(--cocon-forest); }
.booking-page .cocon-step { animation: cocon-soft-in 280ms ease both; }
.booking-page .cocon-step h2 { font-size: clamp(2rem,3vw,2.75rem); }

@keyframes cocon-soft-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.contact-card {
  background: rgba(252,251,247,.88);
  box-shadow: 0 15px 42px rgba(45,57,35,.06);
}

.contact-card:nth-child(2) { background: linear-gradient(150deg, var(--cocon-mist), var(--cocon-white)); }
.gift-visual picture { inset: 0; position: absolute; }

.brand-card {
  background: rgba(252,251,247,.9);
  box-shadow: 0 16px 45px rgba(45,57,35,.05);
}

.account-shell { max-width: 980px; }
.account-page .cocon-account,
.account-page .cocon-manage-booking {
  background: linear-gradient(145deg, rgba(252,251,247,.98), rgba(252,251,247,.98));
  border: 1px solid var(--cocon-border);
  border-radius: 34px;
  box-shadow: 0 24px 70px rgba(45,57,35,.1);
  margin: 0 auto;
  max-width: 920px;
  padding: clamp(28px,5vw,56px);
}

.account-page .cocon-account__next {
  background: var(--cocon-white);
  border-radius: 22px;
  box-shadow: 0 12px 32px rgba(45,57,35,.06);
  padding: 22px;
}

.account-page .cocon-account__section { padding-top: 18px; }
.account-page .cocon-account__booking {
  background: var(--cocon-white);
  border: 1px solid var(--cocon-border);
  border-radius: 16px;
  margin-top: 10px;
  padding: 16px;
}

.not-found-inner {
  align-items: center;
  display: grid;
  gap: clamp(38px,7vw,88px);
  grid-template-columns: 1fr .9fr;
  text-align: left;
}

.not-found-inner .lead,
.not-found-inner .actions { justify-content: flex-start; margin-inline: 0; }
.not-found-copy { min-width: 0; position: relative; }
.not-found-number {
  font-size: clamp(8rem,18vw,15rem);
  inset: -48px auto auto -12px;
  transform: none;
}

.not-found-copy > *:not(.not-found-number) { position: relative; z-index: 1; }
.not-found-visual {
  aspect-ratio: 4/5;
  border-radius: 42px 42px 12px 42px;
  box-shadow: var(--cocon-shadow);
  overflow: hidden;
}

@media (max-width: 1120px) {
  .commitments { grid-template-columns: .65fr 1.35fr; }
  .commitments-visual { grid-column: 1/-1; min-height: 320px; }
  .brands-preview-layout { gap: 45px; }
}

@media (max-width: 780px) {
  .home-hero-media img { object-position: center center; }
  .home-hero-shade {
    background: linear-gradient(0deg, rgba(45,57,35,.88), rgba(45,57,35,.56) 72%, rgba(45,57,35,.34));
  }
  .home-hero-content { align-self: end; padding-bottom: 98px; }
  .category-card { min-height: 365px; }
  .commitments,
  .testimonials-layout,
  .brands-preview-layout,
  .page-hero--media .page-hero-inner,
  .not-found-inner { grid-template-columns: 1fr; }
  .commitments-visual { grid-column: auto; min-height: 330px; }
  .booking-invite-side .hours-card { margin: -30px 12px 0; }
  .brands-preview-media { aspect-ratio: 3/2; }
  .page-hero--media { padding-block: 48px 58px; }
  .page-hero-visual { border-radius: 30px 30px 30px 9px; order: -1; }
  .page-hero-copy h1 { font-size: clamp(2.55rem,11vw,3.7rem); }
  .service-detail-image figcaption { bottom: 12px; left: 12px; right: 12px; }
  .not-found { padding-block: 70px; }
  .not-found-inner { text-align: center; }
  .not-found-inner .lead,
  .not-found-inner .actions { justify-content: center; margin-inline: auto; }
  .not-found-number { inset: -35px 0 auto; }
  .not-found-visual { aspect-ratio: 3/2; order: -1; }
}

@media (max-width: 520px) {
  .home-hero-content { padding-bottom: 82px; }
  .category-card { min-height: 335px; }
  .service-card .card-content { padding: 23px; }
  .commitments-visual { min-height: 285px; }
  .booking-invite-visual { height: 220px; }
  .booking-invite-side .hours-card { margin-inline: 0; }
  .brands-preview-layout .brand-strip { grid-template-columns: repeat(2,1fr); }
  .brands-preview-layout .brand-strip span:nth-child(3) { border-top: 1px solid var(--cocon-border); }
  .brands-preview-layout .brand-strip span:nth-child(4) { border-left: 1px solid var(--cocon-border); }
  .brands-preview-layout .brand-strip span:last-child { grid-column: 1/-1; }
  .page-hero-visual { aspect-ratio: 4/3; }
  .page-hero-visual::after { inset: 8px; }
  .service-detail-image figcaption { border-radius: 15px; font-size: .7rem; }
  .detail-reassurance { display: grid; grid-template-columns: 1fr; }
  .booking-page .cocon-booking { border-radius: 22px; padding: 20px; }
  .account-page .cocon-account,
  .account-page .cocon-manage-booking { border-radius: 24px; padding: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .booking-page .cocon-step { animation: none; }
}
