/* Interior pages. Original routes, content, and interactive components are retained. */
body[data-page]:not([data-page="home"]) main {
  --interior-line: rgba(241, 240, 235, .11);
}

body[data-page]:not([data-page="home"]) main > div > section:not(:first-of-type):not(.sticky) {
  padding-block: clamp(4.5rem, 7vw, 7.5rem);
}

body:is([data-page="prestations"], [data-page="rp-influence"], [data-page="realisations"], [data-page="clients"], [data-page="equipe"], [data-page="contact"]) main > div > section:first-of-type {
  min-height: 35rem;
  padding: 11.5rem 0 6rem;
  background: #090a0b;
}

body:is([data-page="prestations"], [data-page="rp-influence"], [data-page="realisations"], [data-page="clients"], [data-page="equipe"], [data-page="contact"]) main > div > section:first-of-type > img {
  opacity: .35;
  object-position: 65% 55%;
  filter: saturate(.5);
}

body:is([data-page="prestations"], [data-page="rp-influence"], [data-page="realisations"], [data-page="clients"], [data-page="equipe"], [data-page="contact"]) main > div > section:first-of-type > .container {
  text-align: left;
  padding-inline: clamp(1.5rem, 4.4vw, 5rem);
  max-width: 1440px;
}

body:is([data-page="prestations"], [data-page="rp-influence"], [data-page="realisations"], [data-page="clients"], [data-page="equipe"], [data-page="contact"]) main > div > section:first-of-type h1 {
  max-width: 1100px;
  margin-block: 1.5rem 1.75rem;
  color: #f1f0eb;
  -webkit-text-fill-color: #f1f0eb;
  background: none;
  font-size: clamp(3.5rem, 7vw, 6.3rem);
  line-height: 1.03;
  font-weight: 500;
  letter-spacing: -.065em;
  text-wrap: balance;
}

body:is([data-page="prestations"], [data-page="rp-influence"], [data-page="realisations"], [data-page="clients"], [data-page="equipe"], [data-page="contact"]) main > div > section:first-of-type h1 + p {
  margin-left: 0;
  max-width: 680px;
  color: #adaead;
  font-size: clamp(1.1rem, 1.7vw, 1.375rem);
  line-height: 1.6;
  letter-spacing: -.02em;
}

body[data-page]:not([data-page="home"]) main p.text-sm,
body[data-page]:not([data-page="home"]) main li.text-sm {
  font-size: 1rem;
  line-height: 1.75;
}

body[data-page]:not([data-page="home"]) main h2 {
  font-weight: 500;
  letter-spacing: -.045em;
  text-wrap: balance;
}

body[data-page]:not([data-page="home"]) main h3 {
  font-weight: 500;
  letter-spacing: -.025em;
}

body[data-page]:not([data-page="home"]) main p.uppercase,
body[data-page]:not([data-page="home"]) main label.uppercase {
  letter-spacing: .15em;
  font-size: .8125rem;
  line-height: 1.6;
}

body[data-page]:not([data-page="home"]) main [class*="text-[10px]"],
body[data-page]:not([data-page="home"]) main [class*="text-[11px]"] {
  font-size: .75rem;
  line-height: 1.6;
  letter-spacing: .11em;
}

body[data-page]:not([data-page="home"]) main section > div[style*="gradient-gold-horizontal"] {
  background: var(--interior-line) !important;
}

body[data-page]:not([data-page="home"]) main .divider-line {
  height: 1px;
  background: var(--interior-line);
}

/* Services: more breathing room and a quiet material treatment. */
body[data-page="prestations"] main .scroll-mt-28 {
  padding: clamp(1.75rem, 3.5vw, 3.25rem);
  background: linear-gradient(135deg, #121314, #0e0f10);
  border: 1px solid var(--interior-line);
  border-radius: 18px;
  box-shadow: none;
  scroll-margin-top: 110px;
}

body[data-page="prestations"] main .scroll-mt-28:hover {
  border-color: rgba(198, 178, 140, .28);
  background: #151617;
  box-shadow: 0 14px 40px rgba(0, 0, 0, .12);
}

body[data-page="prestations"] main .scroll-mt-28 > .absolute,
body[data-page="prestations"] main .scroll-mt-28 > .relative > .flex:first-child {
  display: none;
}

body[data-page="prestations"] main .scroll-mt-28 h3 {
  font-size: clamp(1.65rem, 2.6vw, 2.2rem);
  margin-bottom: 1.4rem;
  color: #f1f0eb;
}

body[data-page="prestations"] main .scroll-mt-28 p {
  max-width: 33rem;
  color: #adaead;
}

body[data-page="prestations"] main .scroll-mt-28 li {
  font-size: .9375rem;
}

body[data-page="prestations"] main .rounded-full.border {
  border-color: rgba(198, 178, 140, .28);
  background: #121314;
}

/* Production catalogue and RP case studies. */
body:is([data-page="realisations"], [data-page="rp-influence"]) main article {
  overflow: hidden;
  border-radius: 15px;
  background: #111214;
  border-color: var(--interior-line);
  box-shadow: none;
  transition: border-color .4s ease, transform .5s cubic-bezier(.2,.7,.2,1);
}

body:is([data-page="realisations"], [data-page="rp-influence"]) main article:hover {
  border-color: rgba(198, 178, 140, .32);
  transform: translateY(-4px);
}

body:is([data-page="realisations"], [data-page="rp-influence"]) main article > div:last-child {
  padding: 1.7rem;
}

body:is([data-page="realisations"], [data-page="rp-influence"]) main article h3 {
  font-size: 1.4rem;
  line-height: 1.35;
  color: #f1f0eb;
  -webkit-line-clamp: 2;
}

body[data-page="realisations"] main article > button > div > span {
  border-color: rgba(255,255,255,.2);
  border-radius: 20px;
  color: #f1f0eb;
  background-color: rgba(12,13,14,.65);
}

body[data-page="realisations"] main article > button > .absolute.inset-0 > span {
  border-radius: 50%;
  background: rgba(241,240,235,.9);
  color: #0b0c0d;
}

body[data-page="realisations"] main article [class*="min-h-[28px]"] > div {
  padding-inline: 0;
  background: transparent;
  border: 0;
  color: #c6b28c;
}

body[data-page="realisations"] main article [class*="min-h-[28px]"] .rounded-full {
  display: none;
}

body[data-page="realisations"] main article button:not([aria-label]) {
  min-height: 44px;
  font-size: .8125rem;
  text-transform: none;
  letter-spacing: 0;
  color: #ded3bd;
}

body[data-page="realisations"] main section.sticky {
  top: 80px;
  padding-block: 1rem;
  z-index: 30;
  background: rgba(9,10,11,.92);
  border-color: var(--interior-line);
  backdrop-filter: blur(24px);
}

body[data-page="realisations"] main button[aria-pressed] {
  min-height: 42px;
  border-radius: 100px;
  padding: .65rem 1.3rem;
  font-size: .875rem;
  letter-spacing: 0;
  text-transform: none;
  border-color: rgba(255,255,255,.14);
  color: #a8a9a8;
}

body[data-page="realisations"] main button[aria-pressed="true"] {
  background: #f1f0eb;
  border-color: #f1f0eb;
  color: #0a0b0c;
}

body[data-page="realisations"] main [role="dialog"] {
  background: rgba(6,7,8,.96);
  backdrop-filter: blur(30px);
}

body[data-page="realisations"] main [role="dialog"] video,
body[data-page="realisations"] main [role="dialog"] iframe {
  border-radius: 12px;
}

body[data-page="rp-influence"] main .grid.bg-border {
  gap: 1rem;
  background: transparent;
}

body[data-page="rp-influence"] main .grid.bg-border > div {
  padding: 2.5rem 2rem;
  border: 1px solid var(--interior-line);
  border-radius: 16px;
  background: #111214;
  text-align: left;
}

body[data-page="rp-influence"] main .grid.bg-border ul {
  max-width: none;
}

body[data-page="rp-influence"] main .grid.bg-border > div > span:first-child {
  filter: grayscale(1);
  opacity: .75;
}

body[data-page="rp-influence"] main .grid.max-w-4xl > div,
body[data-page="rp-influence"] main .grid.grid-cols-2 > div {
  border-radius: 12px;
  border-color: var(--interior-line);
  background: #111214;
}

body[data-page="rp-influence"] main .grid.max-w-4xl > div p {
  font-size: .9375rem;
  line-height: 1.65;
}

/* Client list stays a list, with stronger image and text rhythm. */
body[data-page="clients"] main ul.divide-y {
  border-color: var(--interior-line);
}

body[data-page="clients"] main ul.divide-y > li {
  padding-block: 2rem;
  border-color: var(--interior-line);
  column-gap: 2rem;
}

body[data-page="clients"] main ul.divide-y > li > div:first-of-type {
  border-radius: 12px;
  border-color: var(--interior-line);
}

body[data-page="clients"] main ul.divide-y h3 {
  font-size: 1.45rem;
  margin-bottom: .6rem;
}

body[data-page="clients"] main ul.divide-y p {
  max-width: 760px;
}

body[data-page="clients"] main section button {
  padding: .7rem 1.5rem;
  border: 1px solid var(--interior-line);
  border-radius: 100px;
  font-size: .875rem;
  text-transform: none;
  letter-spacing: 0;
}

/* Team portraits and the existing four values. */
body[data-page="equipe"] main section:nth-of-type(2) p {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.65rem, 2.8vw, 2.5rem);
  line-height: 1.4;
  color: #d4d1c9;
}

body[data-page="equipe"] main section:nth-of-type(3) .grid > div {
  text-align: left;
}

body[data-page="equipe"] main .gold-glow {
  border-radius: 16px;
  border: 1px solid var(--interior-line);
  box-shadow: none;
  background: #151617;
  margin-bottom: 1.75rem;
}

body[data-page="equipe"] main .gold-glow img {
  filter: saturate(.72);
}

body[data-page="equipe"] main .gold-glow:hover img {
  filter: saturate(1);
}

body[data-page="equipe"] main section:nth-of-type(3) h3 {
  font-size: 1.5rem;
  margin-bottom: .5rem;
}

body[data-page="equipe"] main section:nth-of-type(3) .grid > div > p:last-child {
  font-size: 1rem;
  line-height: 1.75;
  color: #999b9c;
}

body[data-page="equipe"] main section:nth-of-type(4) .grid > div {
  text-align: left;
  border-radius: 14px;
  border-color: var(--interior-line);
  padding: 2rem;
  background: #111214;
  box-shadow: none;
}

body[data-page="equipe"] main section:nth-of-type(4) .grid > div > .absolute {
  display: none;
}

body[data-page="equipe"] main section:nth-of-type(4) .grid > div > .flex {
  margin-left: 0;
  border: 0;
  width: auto;
  height: auto;
  justify-content: flex-start;
  box-shadow: none;
  background: none;
}

/* Contact: four steps, one comfortable surface. */
body[data-page="contact"] main section:nth-of-type(2) .max-w-xl {
  max-width: 700px;
  background: #111214;
  border: 1px solid var(--interior-line);
  border-radius: 24px;
  padding: clamp(1.5rem, 4vw, 3.5rem);
  box-shadow: 0 25px 90px rgba(0,0,0,.18);
}

body[data-page="contact"] main section:nth-of-type(2) .max-w-xl > .absolute {
  display: none;
}

body[data-page="contact"] main section:nth-of-type(2) .max-w-xl > .mb-16 {
  margin-bottom: 3rem;
}

body[data-page="contact"] main section:nth-of-type(2) .max-w-xl > .mb-16 .h-0\.5 {
  height: 3px;
  border-radius: 4px;
}

body[data-page="contact"] main form h2 {
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  line-height: 1.2;
}

body[data-page="contact"] main form label {
  font-size: 1rem;
  line-height: 1.5;
}

body[data-page="contact"] main form input,
body[data-page="contact"] main form textarea {
  min-height: 54px;
  padding: .75rem 1rem;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 10px;
  background: #0d0e0f;
  font-size: 1rem;
  color: #f1f0eb;
}

body[data-page="contact"] main form input:focus-visible,
body[data-page="contact"] main form textarea:focus-visible {
  border-color: #c6b28c;
  outline: 2px solid rgba(198,178,140,.15);
  outline-offset: 2px;
  box-shadow: none;
}

body[data-page="contact"] main [role="radiogroup"] > div > div {
  border-color: var(--interior-line);
}

body[data-page="contact"] main [role="radio"] {
  width: 22px;
  height: 22px;
  border-color: #737777;
}

body[data-page="contact"] main [role="radio"][data-state="checked"] {
  border-color: #c6b28c;
  color: #c6b28c;
}

body[data-page="contact"] main form > .flex:last-child {
  margin-top: 2.8rem;
  gap: 1rem;
}

body[data-page="contact"] main form > .flex:last-child button {
  min-height: 48px;
  padding: .7rem 1.4rem;
  font-size: .9375rem;
  border-radius: 100px;
  border: 1px solid var(--interior-line);
  text-transform: none;
  letter-spacing: 0;
}

body[data-page="contact"] main form > .flex:last-child button:last-child {
  color: #090a0b;
  background: #d8c8a9;
  border-color: #d8c8a9;
}

body[data-page="contact"] main section:nth-of-type(3) .grid > div {
  background: transparent;
  border-color: var(--interior-line);
  border-radius: 16px;
  padding: 2.5rem 1.5rem;
}

body[data-page="contact"] main section:nth-of-type(3) .grid > div > .absolute {
  display: none;
}

/* Legal content keeps a comfortable editorial measure. */
body:is([data-page="mentions-legales"], [data-page="politique-de-confidentialite"]) main > div > section {
  padding-top: 10rem;
}

body:is([data-page="mentions-legales"], [data-page="politique-de-confidentialite"]) main .max-w-3xl {
  max-width: 880px;
}

body:is([data-page="mentions-legales"], [data-page="politique-de-confidentialite"]) main h1 {
  color: #f1f0eb;
  -webkit-text-fill-color: #f1f0eb;
  background: none;
  font-size: clamp(2.7rem, 5vw, 4.5rem);
  font-weight: 500;
  letter-spacing: -.055em;
  line-height: 1.08;
}

body:is([data-page="mentions-legales"], [data-page="politique-de-confidentialite"]) main h2 {
  font-size: 1.4rem;
  color: #f1f0eb;
  margin-bottom: 1.2rem;
}

body:is([data-page="mentions-legales"], [data-page="politique-de-confidentialite"]) main p,
body:is([data-page="mentions-legales"], [data-page="politique-de-confidentialite"]) main li {
  font-size: 1rem;
  line-height: 1.8;
}

body:is([data-page="mentions-legales"], [data-page="politique-de-confidentialite"]) main .space-y-10 > section {
  padding-top: 2.5rem;
  border-top: 1px solid var(--interior-line);
}

@media (max-width: 767px) {
  body:is([data-page="prestations"], [data-page="rp-influence"], [data-page="realisations"], [data-page="clients"], [data-page="equipe"], [data-page="contact"]) main > div > section:first-of-type {
    min-height: 28rem;
    padding-block: 8.5rem 4rem;
  }
  body:is([data-page="prestations"], [data-page="rp-influence"], [data-page="realisations"], [data-page="clients"], [data-page="equipe"], [data-page="contact"]) main > div > section:first-of-type h1 {
    font-size: clamp(2.8rem, 10.6vw, 4.8rem);
    letter-spacing: -.055em;
    overflow-wrap: break-word;
  }
  body[data-page]:not([data-page="home"]) main > div > section:not(:first-of-type):not(.sticky) {
    padding-block: 3.5rem;
  }
  body[data-page="realisations"] main section.sticky {
    top: 72px;
    padding-block: .8rem;
  }
  body[data-page="realisations"] main section.sticky > .container {
    padding-inline: 1.25rem;
  }
  body[data-page="realisations"] main section.sticky .flex {
    gap: .5rem;
    justify-content: flex-start;
  }
  body[data-page="realisations"] main button[aria-pressed] {
    padding-inline: 1rem;
    font-size: .8125rem;
  }
  body[data-page="clients"] main ul.divide-y > li {
    column-gap: 1.2rem;
    align-items: start;
  }
  body[data-page="clients"] main ul.divide-y h3 {
    font-size: 1.2rem;
  }
  body[data-page="contact"] main section:nth-of-type(2) .max-w-xl {
    border-radius: 18px;
  }
  body[data-page="contact"] main section:nth-of-type(3) a {
    overflow-wrap: anywhere;
  }
}

@media (prefers-reduced-motion: reduce) {
  body[data-page]:not([data-page="home"]) main article:hover {
    transform: none;
  }
}
