:root {
  --inmy-frame: min(1480px, calc(100vw - clamp(40px, 9vw, 152px)));
  --inmy-gutter: clamp(24px, 5.5vw, 92px);
  --inmy-gold: #c9ad70;
  --inmy-gold-bright: #ead09a;
  --inmy-night: #060912;
  --inmy-ivory: #f7f3eb;
  --inmy-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Pleine largeur visuelle, contenu cadré et respirant. */
.section {
  width: 100%;
  max-width: none;
  margin: 0;
  padding-inline: var(--inmy-gutter);
}
.section > :not(.inmy-section-media),
.rotation-inner > *,
.inmy-dynamic-collection > *,
.private-preview > * {
  width: 100%;
  max-width: 1480px;
  margin-inline: auto;
}
.section > .inmy-section-media,
.inmy-section-media {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
}
.services,
.offers,
.intro,
.inmy-dynamic-collection,
.private-preview,
.inmy-headquarters {
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.08),
    inset 0 -1px rgba(7, 10, 17, 0.14),
    0 28px 90px rgba(7, 10, 17, 0.12);
}

/* Hero centré verticalement. */
.hero {
  min-height: max(760px, 100svh);
  display: flex;
  align-items: center;
}
.hero-content {
  position: absolute !important;
  left: var(--inmy-gutter);
  top: 50%;
  width: min(820px, calc(100vw - var(--inmy-gutter) * 2)) !important;
  margin: 0;
  padding-top: clamp(70px, 8vh, 110px);
  transform: translateY(-50%);
}
.hero h1,
.section h2,
.inmy-headquarters-copy h2,
.private-preview h2 {
  text-wrap: balance;
  line-height: 0.96;
}
.section-heading h2,
.inmy-dynamic-heading h2,
.private-preview h2 {
  line-height: 0.98;
}

/* Numéros de chapitre : repères autonomes, sans décaler les titres. */
.intro,
.rotation-inner,
.section-heading,
.inmy-dynamic-heading {
  grid-template-columns: 1fr;
}
.intro,
.rotation-inner {
  gap: clamp(38px, 5vw, 70px);
}
.section-heading,
.inmy-dynamic-heading {
  align-items: start;
  gap: clamp(28px, 3vw, 48px);
}
.section-heading > p,
.inmy-dynamic-heading > p {
  grid-column: 1;
  max-width: 680px;
  margin-left: auto;
}
.intro-main,
.rotation-copy {
  width: min(100%, 1180px);
  max-width: 1180px;
}
.section-label {
  width: max-content;
  min-height: 30px;
  gap: 12px;
  padding: 0 0 12px;
  border-bottom: 1px solid color-mix(in srgb, currentColor 35%, transparent);
  font-size: 0.68rem;
}
.section-label span {
  min-width: 32px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
}
.section-label p {
  font-size: 0.68rem;
}
.section-label .word {
  display: inline-block;
  opacity: 0;
  filter: blur(6px);
  transform: translateY(8px);
}
.section-label.is-generated .word {
  animation: inmy-word-in 0.7s var(--inmy-ease) forwards;
  animation-delay: calc(var(--word-index) * 80ms);
}
@keyframes inmy-word-in {
  to {
    opacity: 1;
    filter: none;
    transform: none;
  }
}

/* Boutons signature inspirés de la pièce jointe. */
.button,
.private-link,
.module-card {
  border-radius: 0;
}
.button.button-gold {
  min-height: 64px;
  padding: 0 70px 0 28px;
  color: #fff8e9;
  background: linear-gradient(
    105deg,
    rgba(17, 25, 43, 0.98),
    rgba(5, 8, 14, 0.98)
  );
  border: 1px solid var(--inmy-gold);
  clip-path: polygon(
    5% 0,
    94% 0,
    100% 22%,
    97% 78%,
    92% 100%,
    4% 100%,
    0 78%,
    0 22%
  );
  position: relative;
  box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.26),
    inset 0 0 34px rgba(201, 173, 112, 0.06);
}
.button.button-gold::after {
  content: "";
  position: absolute;
  right: 17px;
  width: 48px;
  height: 40px;
  background: url("/images/inmy-logo-marbre-sans-etoile.png") 80% 47% / 310px
    no-repeat;
  filter: brightness(1.25) saturate(0.78);
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent,
    #000 20% 82%,
    transparent
  );
  mask-image: linear-gradient(90deg, transparent, #000 20% 82%, transparent);
  opacity: 0.9;
}
.button.button-gold > span[aria-hidden] {
  display: none;
}
.button.button-gold > .button-label {
  position: relative;
  z-index: 2;
  display: inline;
}
.button.button-gold:hover,
.button.button-gold:focus-visible {
  transform: translateY(-3px);
  filter: brightness(1.13);
}

/* Grilles premium avec halo directionnel. */
.service-grid,
.rotation-steps,
.offer-grid,
.private-modules {
  width: 100%;
  max-width: 1480px;
  margin-inline: auto;
  background: transparent;
  border: 0;
  gap: clamp(16px, 2vw, 28px);
}
.service-card,
.rotation-steps article,
.offer-card,
.inmy-dynamic-card,
.module-card {
  --glow-x: 50%;
  --glow-y: 50%;
  position: relative;
  border: 1px solid rgba(201, 173, 112, 0.24);
  box-shadow: 0 24px 72px rgba(4, 7, 13, 0.16);
}
.service-card::after,
.rotation-steps article::after,
.offer-card::after,
.inmy-dynamic-card::after,
.module-card::after {
  content: "";
  position: absolute;
  z-index: 3;
  inset: -1px;
  pointer-events: none;
  border-radius: inherit;
  padding: 1px;
  background: radial-gradient(
    220px circle at var(--glow-x) var(--glow-y),
    rgba(236, 207, 144, 0.95),
    rgba(201, 173, 112, 0.24) 36%,
    transparent 72%
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s;
}
.service-card:hover::after,
.rotation-steps article:hover::after,
.offer-card:hover::after,
.inmy-dynamic-card:hover::after,
.module-card:hover::after {
  opacity: 1;
}

/* Cartes services : photo en voile au survol + entrée par la serrure au clic. */
.service-card {
  cursor: pointer;
  min-height: 410px;
  border-radius: 26px;
  outline: none;
  transform-style: preserve-3d;
}
.service-card::before {
  inset: 0;
  width: auto;
  height: auto;
  border: 0;
  border-radius: inherit;
  background:
    linear-gradient(to top, rgba(5, 8, 14, 0.98), rgba(5, 8, 14, 0.32)),
    var(--card-image) center / cover;
  opacity: 0;
  transform: scale(1.08);
  transition:
    opacity 0.65s var(--inmy-ease),
    transform 0.9s var(--inmy-ease);
  box-shadow: none;
}
.service-card:hover::before,
.service-card:focus-visible::before {
  opacity: 0.76;
  transform: scale(1);
}
.service-card:hover {
  transform: translateY(-9px) scale(1.018);
}
.service-card:focus-visible {
  outline: 2px solid var(--inmy-gold-bright);
  outline-offset: 5px;
}
.card-topline i {
  transition:
    transform 0.5s var(--inmy-ease),
    background 0.3s;
}
.service-card:hover .card-topline i {
  transform: rotate(45deg) scale(1.08);
  background: rgba(201, 173, 112, 0.14);
}
.card-detail-hint {
  display: block;
  margin-top: 20px;
  color: var(--inmy-gold-bright);
  font-size: 0.66rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.detail-portal {
  position: fixed;
  z-index: 10000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: clamp(18px, 5vw, 70px);
  background:
    radial-gradient(
      circle at 50% 44%,
      rgba(201, 173, 112, 0.17),
      transparent 22%
    ),
    rgba(3, 5, 9, 0.9);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  opacity: 0;
  transition: opacity 0.45s;
}
.detail-portal.is-open {
  opacity: 1;
}
.detail-portal__door {
  width: min(980px, 100%);
  min-height: min(650px, 82vh);
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  overflow: hidden;
  color: #fff;
  background: #080c15;
  border: 1px solid rgba(225, 197, 136, 0.62);
  clip-path: polygon(
    3% 0,
    97% 0,
    100% 5%,
    100% 95%,
    97% 100%,
    3% 100%,
    0 95%,
    0 5%
  );
  box-shadow: 0 60px 160px rgba(0, 0, 0, 0.58);
  transform: perspective(1400px) rotateY(-16deg) scale(0.88);
  transition: transform 0.8s var(--inmy-ease);
}
.detail-portal.is-open .detail-portal__door {
  transform: perspective(1400px) rotateY(0) scale(1);
}
.detail-portal__media {
  position: relative;
  min-height: 340px;
  overflow: hidden;
}
.detail-portal__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.detail-portal__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 60%, #080c15),
    linear-gradient(to top, rgba(5, 8, 14, 0.58), transparent);
}
.detail-portal__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(34px, 6vw, 76px);
}
.detail-portal__copy small {
  color: var(--inmy-gold-bright);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.detail-portal__copy h3 {
  margin: 20px 0;
  font-family: Georgia, serif;
  font-size: clamp(2.3rem, 5vw, 4.8rem);
  font-weight: 400;
  line-height: 0.95;
}
.detail-portal__copy p {
  color: rgba(255, 255, 255, 0.7);
  font-family: Georgia, serif;
  font-size: 1.05rem;
  line-height: 1.75;
}
.detail-portal__close {
  position: absolute;
  z-index: 4;
  top: 22px;
  right: 22px;
  width: 52px;
  height: 52px;
  color: #fff;
  background: rgba(5, 8, 14, 0.75);
  border: 1px solid var(--inmy-gold);
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.5rem;
}

/* Cartes linge et offres : tailles plus régulières et tactiles. */
.rotation-steps article {
  border-radius: 22px;
  transition:
    transform 0.45s var(--inmy-ease),
    box-shadow 0.45s;
}
.rotation-steps article:hover {
  transform: translateY(-7px);
  box-shadow: 0 34px 80px rgba(40, 30, 15, 0.16);
}
.offer-grid {
  align-items: stretch;
}
.offer-card {
  min-height: 670px;
  border-radius: 28px;
  transition: transform 0.5s var(--inmy-ease);
}
.offer-card:hover {
  transform: translateY(-8px);
}

/* Collection : rythme vertical et centrage de la troisième carte. */
.inmy-dynamic-collection {
  padding-block: clamp(120px, 12vw, 184px);
}
.inmy-dynamic-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.inmy-dynamic-card:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  width: calc(50% - 1rem);
  justify-self: center;
}
.inmy-dynamic-card {
  border-radius: 24px;
}
.inmy-dynamic-copy h3 {
  line-height: 1.04;
}

/* Aperçus propriétaires interactifs. */
.private-preview {
  padding-inline: var(--inmy-gutter);
}
.private-preview > .section-label {
  grid-column: 1 / -1;
  justify-self: start;
  margin-inline: 0;
}
.private-preview > div:first-child,
.private-preview > p {
  max-width: 700px;
}
.private-modules {
  margin-top: 36px;
}
.private-modules .module-card {
  min-height: 340px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: space-between;
  padding: 0;
  overflow: hidden;
  color: #fff;
  background: rgba(7, 10, 17, 0.7);
  border-radius: 24px;
  cursor: pointer;
  text-align: left;
  transition:
    transform 0.5s var(--inmy-ease),
    background 0.4s;
}
.private-modules .module-card::before {
  display: none;
}
.module-card:hover {
  transform: translateY(-8px) scale(1.012);
  background: rgba(14, 20, 31, 0.9);
}
.module-card__preview {
  min-height: 230px;
  padding: 22px;
  background: linear-gradient(
    150deg,
    rgba(26, 36, 55, 0.96),
    rgba(7, 10, 17, 0.96)
  );
}
.module-card__title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 88px;
  padding: 18px 24px;
  color: var(--inmy-gold-bright);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.module-card__title i {
  font-style: normal;
  font-size: 1.2rem;
}
.dashboard-mini {
  display: grid;
  grid-template-columns: 0.65fr 1.35fr;
  gap: 12px;
  height: 185px;
}
.dashboard-mini nav {
  border-right: 1px solid rgba(201, 173, 112, 0.18);
  padding: 8px;
}
.dashboard-mini nav b {
  display: block;
  margin-bottom: 25px;
  color: #fff;
  font-family: Georgia, serif;
  font-size: 1.2rem;
}
.dashboard-mini nav span {
  display: block;
  width: 70%;
  height: 5px;
  margin: 12px 0;
  background: rgba(255, 255, 255, 0.18);
}
.dashboard-mini main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.dashboard-mini article {
  padding: 13px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(201, 173, 112, 0.14);
  border-radius: 12px;
}
.dashboard-mini strong {
  display: block;
  color: #fff;
  font-family: Georgia, serif;
  font-size: 1.55rem;
  font-weight: 400;
}
.dashboard-mini small {
  color: rgba(255, 255, 255, 0.45);
}
.dashboard-mini .wide {
  grid-column: 1/-1;
  background: linear-gradient(
    90deg,
    rgba(201, 173, 112, 0.22) 62%,
    transparent 62%
  );
}
.calendar-mini {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
}
.calendar-mini b {
  grid-column: 1/-1;
  margin-bottom: 10px;
  color: #fff;
  font-family: Georgia, serif;
  font-size: 1.1rem;
  font-weight: 400;
}
.calendar-mini span {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.48);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 6px;
  font-size: 0.65rem;
}
.calendar-mini span:nth-of-type(9),
.calendar-mini span:nth-of-type(10),
.calendar-mini span:nth-of-type(11) {
  color: #090c13;
  background: var(--inmy-gold);
}
.booking-mini {
  position: relative;
  height: 185px;
  overflow: hidden;
  border-radius: 13px;
  background: url("/media/site/images/inmy-siege-la-balliere.webp") center/cover;
}
.booking-mini::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5, 8, 14, 0.92), transparent 68%);
}
.booking-mini div,
.booking-mini > span {
  position: absolute;
  z-index: 2;
  left: 18px;
  right: 18px;
  bottom: 15px;
}
.booking-mini small {
  color: var(--inmy-gold-bright);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.booking-mini strong {
  display: block;
  color: #fff;
  font-family: Georgia, serif;
  font-size: 1.65rem;
  font-weight: 400;
}

.module-modal .detail-portal__door {
  grid-template-columns: 1fr;
  width: min(1160px, 100%);
}
.module-modal .detail-portal__copy {
  padding: clamp(26px, 5vw, 58px);
}
.module-modal__canvas {
  margin-top: 26px;
  min-height: 330px;
  padding: clamp(18px, 3vw, 34px);
  background: linear-gradient(145deg, #121b2b, #070a11);
  border: 1px solid rgba(201, 173, 112, 0.22);
  border-radius: 20px;
}

/* Siège et footer cinématique. */
.inmy-headquarters {
  width: 100%;
  max-width: none;
  padding-inline: var(--inmy-gutter);
}
.inmy-headquarters > * {
  max-width: 720px;
}
.inmy-headquarters-media span {
  text-transform: none;
}
.inmy-headquarters-copy .section-label {
  margin-left: 0;
}
footer {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 520px;
  padding: clamp(80px, 9vw, 130px) var(--inmy-gutter) 36px;
  background: #04060a;
}
.footer-media {
  position: absolute;
  z-index: -2;
  inset: 0;
}
.footer-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.72) contrast(1.08);
}
.footer-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(4, 6, 10, 0.98),
      rgba(4, 6, 10, 0.74) 54%,
      rgba(4, 6, 10, 0.42)
    ),
    linear-gradient(to top, #04060a 4%, transparent 58%);
}
.footer-hq {
  display: flex;
  align-items: center;
  gap: 18px;
  max-width: 520px;
}
.footer-hq img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border: 1px solid rgba(201, 173, 112, 0.5);
  border-radius: 50%;
}
.footer-hq p {
  margin: 0;
  color: rgba(255, 255, 255, 0.63);
  font-family: Georgia, serif;
  line-height: 1.6;
}
.footer-hq strong {
  display: block;
  margin-bottom: 6px;
  color: #fff;
  font-family: Georgia, serif;
  font-size: 1.35rem;
  font-weight: 400;
}
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-legal button {
  min-height: 44px;
  color: rgba(255, 255, 255, 0.65);
  background: transparent;
  cursor: pointer;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.67rem;
}
.footer-legal button:hover {
  color: var(--inmy-gold-bright);
}
.legal-panel .detail-portal__door {
  display: block;
  width: min(900px, 100%);
  max-height: 86vh;
  overflow: auto;
}
.legal-panel .detail-portal__copy {
  display: block;
}
.legal-panel h4 {
  margin: 30px 0 10px;
  color: var(--inmy-gold-bright);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.legal-panel p,
.legal-panel li {
  color: rgba(255, 255, 255, 0.7);
  font-family: Georgia, serif;
  line-height: 1.75;
}
.legal-panel ul {
  padding-left: 1.1rem;
  list-style: disc;
}

@media (max-width: 900px) {
  .hero {
    align-items: flex-end;
  }
  .hero-content {
    left: 0;
    top: auto;
    bottom: 0;
    width: 100% !important;
    margin: 0;
    transform: none;
  }
  .service-grid,
  .offer-grid,
  .inmy-dynamic-grid {
    grid-template-columns: 1fr;
  }
  .inmy-dynamic-card:last-child:nth-child(odd) {
    grid-column: auto;
    width: 100%;
  }
  .detail-portal__door {
    grid-template-columns: 1fr;
    max-height: 90vh;
    overflow: auto;
  }
  .detail-portal__media {
    min-height: 270px;
  }
  .private-modules {
    grid-template-columns: 1fr;
  }
  .inmy-headquarters {
    grid-template-columns: 1fr;
  }
  footer {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  :root {
    --inmy-gutter: 20px;
  }
  .section h2,
  .inmy-headquarters-copy h2,
  .private-preview h2 {
    line-height: 1;
  }
  .service-card {
    min-height: 360px;
    padding: 30px 24px;
  }
  .offer-card {
    min-height: 0;
  }
  .button.button-gold {
    width: 100%;
    padding-left: 24px;
    padding-right: 64px;
  }
  .section-label p {
    white-space: normal;
  }
  .footer-hq {
    align-items: flex-start;
  }
  .footer-hq img {
    width: 74px;
    height: 74px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .section-label .word {
    opacity: 1;
    filter: none;
    transform: none;
    animation: none !important;
  }
  .detail-portal,
  .detail-portal__door {
    transition: none;
  }
  .service-card:hover,
  .module-card:hover,
  .offer-card:hover {
    transform: none;
  }
}

/* Raffinements v2 : bordures vivantes, contenu éditorial et fonds ivoire. */
@property --border-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}
@property --glow-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}
@keyframes inmy-border-orbit {
  to {
    --border-angle: 360deg;
  }
}
@keyframes inmy-glow-orbit {
  to {
    --glow-angle: 360deg;
  }
}

.button.button-gold {
  isolation: isolate;
  border: 0;
  background: conic-gradient(
    from var(--border-angle),
    #755a2c,
    #efd69f 12%,
    #9a783f 25%,
    #3f321e 52%,
    #d2b676 72%,
    #755a2c
  );
  animation: inmy-border-orbit 9s linear infinite;
}
.button.button-gold::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 1px;
  clip-path: polygon(
    5% 0,
    94% 0,
    100% 22%,
    97% 78%,
    92% 100%,
    4% 100%,
    0 78%,
    0 22%
  );
  background: linear-gradient(105deg, #11192b 0%, #070a11 82%);
}
.button.button-gold::after {
  z-index: 1;
}
.button.button-gold {
  text-shadow: 0 1px 12px #000;
}
.button.button-gold:not(:disabled) {
  color: #fff;
}

.signature-link {
  background: conic-gradient(
    from var(--border-angle),
    #71582e,
    #e5ca92 15%,
    #8d6d39 34%,
    #30281c 58%,
    #d5bb81 78%,
    #71582e
  );
  animation: inmy-border-orbit 11s linear infinite reverse;
}
.private-link {
  min-width: 210px;
  border: 1px solid transparent;
  background:
    linear-gradient(rgba(10, 14, 22, 0.76), rgba(10, 14, 22, 0.76)) padding-box,
    conic-gradient(
        from var(--border-angle),
        rgba(201, 173, 112, 0.22),
        #e5ca92,
        rgba(201, 173, 112, 0.18),
        #90713d,
        rgba(201, 173, 112, 0.22)
      )
      border-box;
  box-shadow:
    0 12px 36px rgba(0, 0, 0, 0.18),
    inset 0 0 26px rgba(201, 173, 112, 0.04);
  animation: inmy-border-orbit 10s linear infinite;
  transition:
    transform 0.6s var(--inmy-ease),
    box-shadow 0.6s,
    background-color 0.6s;
}
.private-link:hover,
.private-link:focus-visible {
  transform: translateY(-3px);
  box-shadow:
    0 18px 46px rgba(0, 0, 0, 0.28),
    0 0 28px rgba(201, 173, 112, 0.1);
}

.intro-copy strong,
.section-heading > p strong,
.private-preview > p strong {
  color: #9b793f;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08em;
  font-weight: 700;
}
.section-tone-dark .section-heading > p strong,
.private-preview.section-tone-dark > p strong {
  color: #d8bd82;
}
.intro-copy strong {
  letter-spacing: -0.012em;
}

.metrics strong[data-count] {
  min-width: 1.75em;
  font-variant-numeric: tabular-nums;
}
.metrics .count-value {
  display: inline-block;
  min-width: 1.12em;
}
.metrics strong[data-count]:not(.is-counted) {
  filter: blur(5px);
  opacity: 0.35;
}
.metrics strong[data-count].is-counted {
  filter: none;
  opacity: 1;
  transition:
    filter 1.2s var(--inmy-ease),
    opacity 1.2s;
}

.service-card::after,
.rotation-steps article::after,
.offer-card::after,
.inmy-dynamic-card::after,
.module-card-static::after {
  background:
    radial-gradient(
      300px circle at var(--glow-x) var(--glow-y),
      rgba(244, 215, 151, 0.98),
      rgba(201, 173, 112, 0.34) 35%,
      transparent 70%
    ),
    conic-gradient(
      from var(--glow-angle),
      transparent 0 34%,
      rgba(221, 194, 134, 0.76) 46%,
      transparent 58% 100%
    );
  opacity: 0.24;
  transition: opacity 1.1s var(--inmy-ease);
  animation: inmy-glow-orbit 12s linear infinite;
}
.service-card:hover::after,
.rotation-steps article:hover::after,
.offer-card:hover::after,
.inmy-dynamic-card:hover::after,
.module-card-static:hover::after {
  opacity: 0.96;
}

/* Triptyque des gîtes : trois cartes visibles, légèrement mises en scène. */
.inmy-dynamic-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  gap: clamp(18px, 2vw, 30px);
  perspective: 1600px;
}
.inmy-dynamic-card,
.inmy-dynamic-card:last-child:nth-child(odd) {
  grid-column: auto;
  width: 100%;
  justify-self: stretch;
  transform: translateY(22px) rotateY(2deg) rotateZ(-0.7deg);
  transition:
    transform 1s var(--inmy-ease),
    box-shadow 0.8s,
    border-color 0.6s;
}
.inmy-dynamic-card:nth-child(2) {
  z-index: 2;
  transform: translateY(-12px) scale(1.035);
}
.inmy-dynamic-card:nth-child(3) {
  transform: translateY(22px) rotateY(-2deg) rotateZ(0.7deg);
}
.inmy-dynamic-card:hover {
  z-index: 4;
  transform: translateY(-22px) scale(1.045) rotate(0);
}
.inmy-dynamic-visual {
  aspect-ratio: 1.08;
}
.inmy-dynamic-copy h3 {
  font-size: clamp(1.9rem, 2.4vw, 3rem);
}

/* Retour à des cartes propriétaires sobres avec une courte promesse. */
.private-modules {
  align-items: stretch;
}
.module-card-static {
  --glow-x: 50%;
  --glow-y: 50%;
  position: relative;
  min-height: 200px;
  padding: clamp(26px, 2.5vw, 34px);
  overflow: hidden;
  color: #fff;
  background: linear-gradient(
    145deg,
    rgba(17, 24, 37, 0.74),
    rgba(5, 8, 14, 0.72)
  );
  border: 1px solid rgba(201, 173, 112, 0.25);
  border-radius: 22px;
  box-shadow: 0 24px 68px rgba(0, 0, 0, 0.22);
  transition:
    transform 0.8s var(--inmy-ease),
    background 0.8s;
}
.module-card-static:hover {
  transform: translateY(-8px);
  background: linear-gradient(
    145deg,
    rgba(25, 34, 51, 0.86),
    rgba(7, 10, 17, 0.82)
  );
}
.module-card-static > span {
  display: block;
  min-height: 0;
  padding: 0;
  color: #c9ad70;
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
}
.module-card-static > span::before {
  display: none;
}
.module-card-static h3 {
  margin: 28px 0 12px;
  font-family: Georgia, serif;
  font-size: clamp(1.65rem, 2vw, 2.3rem);
  font-weight: 400;
  line-height: 1.05;
}
.module-card-static p {
  margin: 0;
  color: rgba(255, 255, 255, 0.64);
  font-family: Georgia, serif;
  font-size: 1rem;
  line-height: 1.65;
}

/* Ivoire vivant : un mouvement de matière, très discret, sans image artificielle. */
.intro.section-tone-light,
.inmy-dynamic-collection.section-tone-light,
.inmy-headquarters.section-tone-light,
.contact.section-tone-light {
  --lux-x: 0px;
  --lux-y: 0px;
  background-color: #f7f3eb;
  background-image:
    radial-gradient(
      ellipse at calc(16% + var(--lux-x)) calc(20% + var(--lux-y)),
      rgba(201, 173, 112, 0.11),
      transparent 28%
    ),
    radial-gradient(
      ellipse at calc(82% - var(--lux-x)) calc(74% - var(--lux-y)),
      rgba(92, 73, 43, 0.055),
      transparent 30%
    ),
    repeating-linear-gradient(
      118deg,
      rgba(112, 88, 50, 0.022) 0 1px,
      transparent 1px 112px
    ),
    linear-gradient(145deg, #fbf8f2, #eee7dc);
  background-attachment: scroll;
  transition: background-position 1.8s var(--inmy-ease);
}

/* Footer éditorial, structuré comme une vraie dernière page. */
footer {
  grid-template-columns: minmax(300px, 0.8fr) minmax(360px, 1.2fr);
  grid-template-areas:
    "brand slogan"
    "hq links"
    "legal legal"
    "bottom bottom";
  align-items: start;
  gap: clamp(34px, 5vw, 78px);
}
.footer-brand {
  grid-area: brand;
}
.footer-slogan {
  grid-area: slogan;
  max-width: 680px;
  justify-self: end;
  margin: 0;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.4rem, 4.2vw, 5.3rem);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.035em;
}
.footer-slogan em {
  color: #c9ad70;
  font-weight: 400;
}
.footer-hq {
  grid-area: hq;
}
.footer-links {
  grid-area: links;
  justify-content: flex-end;
  align-self: center;
}
.footer-legal {
  grid-area: legal;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.footer-bottom {
  grid-area: bottom;
  grid-column: auto;
  margin-top: 0;
}

@media (max-width: 900px) {
  .inmy-dynamic-grid {
    grid-template-columns: 1fr;
  }
  .inmy-dynamic-card,
  .inmy-dynamic-card:nth-child(2),
  .inmy-dynamic-card:nth-child(3),
  .inmy-dynamic-card:last-child:nth-child(odd) {
    width: 100%;
    transform: none;
  }
  footer {
    grid-template-columns: 1fr;
    grid-template-areas: "brand" "slogan" "hq" "links" "legal" "bottom";
  }
  .footer-slogan {
    justify-self: start;
  }
  .footer-links {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .button.button-gold,
  .signature-link,
  .private-link,
  .service-card::after,
  .rotation-steps article::after,
  .offer-card::after,
  .inmy-dynamic-card::after,
  .module-card-static::after {
    animation: none;
  }
}
