/* RODYAM V77 — cohérence premium, lisibilité et densité maîtrisée.
   Chargée en dernier : cette feuille normalise sans réécrire le socle stable. */

:root {
  --rdy-v77-section-y: clamp(76px, 7vw, 94px);
  --rdy-v77-section-y-tablet: clamp(56px, 7vw, 72px);
  --rdy-v77-section-y-mobile: clamp(42px, 11vw, 56px);
  --rdy-v77-reading: 68ch;
  --rdy-v77-card-reading: 56ch;
  --rdy-v77-line: rgba(225, 221, 235, .14);
  --rdy-v77-line-soft: rgba(225, 221, 235, .09);
  --rdy-v77-panel: linear-gradient(150deg, rgba(19, 16, 27, .92), rgba(7, 7, 12, .975));
}

html {
  scroll-behavior: auto !important;
}

/* Lecture : la justification forcée créait des rivières dans les colonnes. */
html body p,
html body li,
html body blockquote {
  text-align: left !important;
  text-justify: auto !important;
  hyphens: none !important;
  -webkit-hyphens: none !important;
  overflow-wrap: anywhere;
}

html body .rdy-sec-head,
html body .rdy-sec-head .rdy-sec-desc,
html body .rdy-trust-phrase,
html body .rdy-method-promise,
html body .rdy-review-note {
  text-align: center !important;
}

html body .rdy-page {
  opacity: 1 !important;
  animation: rdy-page-in .34s cubic-bezier(.2, .8, .2, 1) both !important;
  will-change: auto !important;
}

html body .rdy-reveal {
  transition-duration: .42s !important;
}

/* Échelle typographique commune. */
html body .rdy-h1,
html body .rdy-hero-copy .rdy-h1 {
  font-size: clamp(46px, 5.1vw, 72px) !important;
  line-height: 1.03 !important;
  letter-spacing: -.035em !important;
}

html body .rdy-h2,
html body .rdy-sec-title,
html body .rdy-sec-head h2,
html body .rdy-reviews-head h2 {
  font-size: clamp(35px, 4.1vw, 54px) !important;
  line-height: 1.08 !important;
  letter-spacing: -.028em !important;
  text-wrap: balance;
}

html body .rdy-method-wide-copy h3,
html body .rdy-expertise-panel h3,
html body .rdy-talents-section-head h2,
html body .rdy-talents-standards-head h2,
html body .rdy-talents-cta h2,
html body .rdy-method-mini-title {
  font-size: clamp(25px, 2.65vw, 36px) !important;
  line-height: 1.16 !important;
  text-wrap: balance;
}

html body .rdy-card-title,
html body .rdy-offers-v48-card h4,
html body .rdy-offers-v77-detail h4,
html body .rdy-talents-role h3,
html body .rdy-method-card h4 {
  font-size: clamp(18px, 1.45vw, 22px) !important;
  line-height: 1.28 !important;
  text-wrap: balance;
}

html body .rdy-lead,
html body .rdy-sec-desc,
html body .rdy-expertise-lead,
html body .rdy-method-lead,
html body .rdy-rep-lead {
  font-size: clamp(16.5px, 1.25vw, 18.5px) !important;
  line-height: 1.7 !important;
}

html body .rdy-card-desc,
html body .rdy-expertise-copy p,
html body .rdy-method-wide-copy p,
html body .rdy-method-card p,
html body .rdy-about-text > p,
html body .rdy-faq-a p,
html body .rdy-post-excerpt,
html body .rdy-rep-editorial p,
html body .rdy-rep-feat p,
html body .rdy-contact-audit-lead {
  font-size: clamp(14.75px, 1vw, 16px) !important;
  line-height: 1.72 !important;
}

html body .rdy-review-note,
html body .rdy-form-rgpd-note,
html body .rdy-form-required-note,
html body .rdy-post-meta,
html body .rdy-pf-year {
  font-size: 12px !important;
  line-height: 1.55 !important;
}

html body .rdy-sec-desc,
html body .rdy-lead,
html body .rdy-method-lead,
html body .rdy-rep-lead,
html body .rdy-rep-editorial p {
  max-width: var(--rdy-v77-reading) !important;
}

/* Cadence et respiration. */
html body .rdy-section,
html body .rdy-tech-marquee-section {
  padding-top: var(--rdy-v77-section-y) !important;
  padding-bottom: var(--rdy-v77-section-y) !important;
}

html body .rdy-method-page > .rdy-section[style] {
  padding-top: 0 !important;
}

html body .rdy-sec-head {
  margin-bottom: clamp(40px, 4.6vw, 58px) !important;
}

html body .rdy-page > .rdy-section,
html body .rdy-page > .rdy-tech-marquee-section {
  border-color: var(--rdy-v77-line-soft) !important;
  box-shadow: inset 0 1px rgba(255, 255, 255, .025), 0 12px 34px rgba(0, 0, 0, .18) !important;
}

/* Un seul contour dominant par composition. */
html body .rdy-service .rdy-service-img-wrap,
html body .rdy-expertise-card .rdy-service-img-wrap {
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}

html body .rdy-service::after,
html body .rdy-post::after,
html body .rdy-method-card::after,
html body .rdy-method-diff-card::after,
html body .rdy-talents-role::after,
html body .rdy-value::after {
  display: none !important;
}

html body .rdy-card,
html body .rdy-post,
html body .rdy-method-card,
html body .rdy-method-diff-card,
html body .rdy-value,
html body .rdy-talents-role {
  border-color: var(--rdy-v77-line) !important;
  box-shadow: 0 14px 36px rgba(0, 0, 0, .22), inset 0 1px rgba(255, 255, 255, .03) !important;
}

html body .rdy-service-img-wrap,
html body .rdy-service-img {
  aspect-ratio: 16 / 10 !important;
}

html body .rdy-service-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
}

/* Accueil : avis sans commandes doublées et écosystème plus discret. */
html body .rdy-review-float-arrow {
  display: none !important;
}

html body .rdy-review-track {
  scrollbar-width: none !important;
  padding-bottom: 8px !important;
}

html body .rdy-review-track::-webkit-scrollbar {
  display: none !important;
}

html body .rdy-review-note {
  max-width: 780px !important;
  margin-inline: auto !important;
}

html body .rdy-tech-marquee-section {
  padding-top: clamp(44px, 5vw, 64px) !important;
  padding-bottom: clamp(44px, 5vw, 64px) !important;
}

html body .rdy-tech-marquee-head {
  margin-bottom: 22px !important;
}

html body .rdy-tech-marquee-head p {
  max-width: 72ch !important;
  font-size: 14.5px !important;
  line-height: 1.65 !important;
}

html body .rdy-tech-marquee-item {
  min-width: 158px !important;
  height: 48px !important;
  padding-inline: 14px !important;
}

/* À propos : colonnes équilibrées et lecture plus calme. */
html body .rdy-about {
  grid-template-columns: minmax(0, 1.08fr) minmax(350px, .92fr) !important;
  gap: clamp(34px, 5vw, 72px) !important;
  align-items: start !important;
}

html body .rdy-about-text {
  min-width: 0;
}

html body .rdy-about-visual {
  align-self: start !important;
  position: sticky !important;
  top: calc(var(--header-h, 88px) + 18px) !important;
  min-height: calc(100vh - var(--header-h, 88px) - 36px) !important;
  display: grid !important;
  place-items: center !important;
  padding-block: clamp(24px, 4vh, 46px) !important;
  isolation: isolate;
  overflow: hidden !important;
}

html body .rdy-about-visual::before {
  content: "";
  position: absolute;
  z-index: 0;
  left: 7%;
  right: 7%;
  top: 2%;
  bottom: 2%;
  pointer-events: none;
  opacity: .38;
  background:
    linear-gradient(90deg, transparent, rgba(214, 206, 228, .07) 49.6%, rgba(176, 111, 255, .24) 50%, rgba(214, 206, 228, .07) 50.4%, transparent),
    radial-gradient(ellipse at 50% 30%, rgba(168, 85, 247, .15), transparent 38%),
    radial-gradient(ellipse at 50% 72%, rgba(201, 190, 216, .075), transparent 36%);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 88%, transparent);
}

html body .rdy-about-visual::after {
  content: "";
  position: absolute;
  z-index: 0;
  left: 50%;
  top: 5%;
  width: 4px;
  height: 54px;
  border-radius: 999px;
  pointer-events: none;
  opacity: .62;
  transform: translate3d(-50%, 0, 0);
  background: linear-gradient(180deg, transparent, rgba(226, 211, 255, .95), rgba(139, 44, 255, .18), transparent);
  box-shadow: 0 0 14px rgba(168, 85, 247, .48), 0 0 34px rgba(168, 85, 247, .22);
  animation: rdy-about-rhodium-scan-v79 8.5s cubic-bezier(.42, 0, .58, 1) infinite;
  will-change: transform, opacity;
}

@keyframes rdy-about-rhodium-scan-v79 {
  0%, 10% { transform: translate3d(-50%, 0, 0); opacity: 0; }
  20% { opacity: .62; }
  72% { opacity: .46; }
  88%, 100% { transform: translate3d(-50%, calc(100vh - var(--header-h, 88px) - 150px), 0); opacity: 0; }
}

html body .rdy-about-diamond-card {
  position: relative !important;
  z-index: 1;
  width: min(100%, 650px) !important;
  margin: auto !important;
  box-shadow: 0 24px 64px rgba(0, 0, 0, .32), inset 0 1px rgba(255, 255, 255, .045) !important;
}

html body .rdy-about-modes,
html body .rdy-values {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 14px !important;
}

html body .rdy-about-mode,
html body .rdy-value {
  padding: 20px !important;
}

html body .rdy-founder-voice {
  max-width: 70ch !important;
  font-size: 15.5px !important;
  line-height: 1.75 !important;
}

html[lang="fr"] body .rdy-founder-identity,
html[lang="en"] body .rdy-founder-identity {
  margin-top: 14px !important;
  padding-top: 12px !important;
}

html[lang="fr"] body .rdy-founder-calligraphy,
html[lang="en"] body .rdy-founder-calligraphy {
  font-size: clamp(23px, 1.7vw, 29px) !important;
  line-height: 1 !important;
  transform: rotate(-1deg) !important;
}

@media (max-width: 720px) {
  html[lang="fr"] body .rdy-founder-calligraphy,
  html[lang="en"] body .rdy-founder-calligraphy {
    font-size: 25px !important;
  }
}

/* Méthode : le contenu important gagne en largeur, pas en volume. */
html body .rdy-method-highlight-bar {
  grid-column: 1 / -1 !important;
  min-height: 0 !important;
  margin-top: 6px !important;
  padding: 18px 24px !important;
  font-size: clamp(15.5px, 1.15vw, 17.5px) !important;
  line-height: 1.62 !important;
  border-color: rgba(215, 197, 229, .15) !important;
  background: linear-gradient(90deg, rgba(168, 85, 247, .075), rgba(255, 255, 255, .025), rgba(168, 85, 247, .035)) !important;
  box-shadow: inset 0 1px rgba(255, 255, 255, .035) !important;
}

html body .rdy-method-diff {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 14px !important;
}

html body .rdy-method-diff-card,
html body .rdy-method-card {
  padding: 24px !important;
}

html body .rdy-method-promise {
  margin-top: clamp(34px, 4vw, 52px) !important;
  padding: clamp(30px, 4vw, 48px) !important;
  box-shadow: 0 22px 60px rgba(0, 0, 0, .28), inset 0 1px rgba(255, 255, 255, .045) !important;
}

html body .rdy-method-promise p {
  max-width: 68ch !important;
  margin: 0 auto 18px !important;
  font-size: clamp(15.5px, 1.05vw, 17px) !important;
  line-height: 1.75 !important;
}

/* Concepts : la note de droits reste présente mais cesse de concurrencer les projets. */
html body .rdy-portfolio-source-note {
  max-width: 1180px !important;
  margin: 0 auto clamp(32px, 4vw, 48px) !important;
  padding: 16px 20px !important;
  display: grid !important;
  grid-template-columns: minmax(180px, auto) minmax(0, 1fr) !important;
  gap: 18px !important;
  align-items: start !important;
  border-color: var(--rdy-v77-line-soft) !important;
  background: rgba(255, 255, 255, .018) !important;
  box-shadow: inset 0 1px rgba(255, 255, 255, .025) !important;
}

html body .rdy-portfolio-source-note strong {
  margin: 2px 0 0 !important;
  font-size: 11px !important;
}

html body .rdy-portfolio-source-note span {
  font-size: 13px !important;
  line-height: 1.65 !important;
}

html body .rdy-pf-copy > p,
html body .rdy-pf-roles,
html body .rdy-pf-result {
  max-width: var(--rdy-v77-card-reading) !important;
}

/* Offres : un détail transversal sous les trois solutions. */
html body .rdy-offers-v48-card-toggle {
  min-height: 220px !important;
  padding: 22px !important;
}

html body .rdy-offers-v48-card-detail {
  display: none !important;
}

html body .rdy-offers-v77-detail {
  margin-top: 18px !important;
  padding: clamp(22px, 3vw, 34px) !important;
  border: 1px solid rgba(211, 178, 242, .24) !important;
  background: radial-gradient(circle at 8% 0, rgba(168, 85, 247, .10), transparent 38%), var(--rdy-v77-panel) !important;
  box-shadow: 0 20px 52px rgba(0, 0, 0, .28), inset 0 1px rgba(255, 255, 255, .04) !important;
  animation: rdy-v77-detail-in .28s ease both;
}

@keyframes rdy-v77-detail-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

html body .rdy-offers-v77-detail-head {
  display: flex !important;
  justify-content: space-between !important;
  align-items: end !important;
  gap: 22px !important;
  padding-bottom: 18px !important;
  margin-bottom: 18px !important;
  border-bottom: 1px solid rgba(255, 255, 255, .09) !important;
}

html body .rdy-offers-v77-detail-head h4 {
  margin-top: 8px !important;
}

html body .rdy-offers-v77-detail-head > strong {
  color: #fff !important;
  font-size: 16px !important;
  white-space: nowrap;
}

html body .rdy-offers-v77-detail ul {
  list-style: none !important;
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px 26px !important;
  margin: 0 0 24px !important;
  padding: 0 !important;
}

html body .rdy-offers-v77-detail li {
  display: flex !important;
  gap: 10px !important;
  color: rgba(232, 226, 241, .80) !important;
  font-size: 14px !important;
  line-height: 1.58 !important;
}

html body .rdy-offers-v77-detail li span {
  color: #d7b8ff !important;
}

/* Réputation : conserver le radar comme héros et calmer le second visuel. */
html body .rdy-rep-editorial {
  max-width: 980px !important;
  margin-inline: auto !important;
}

html body .rdy-rep-image {
  width: min(100%, 1040px) !important;
  margin-inline: auto !important;
}

html body .rdy-rep-grid {
  gap: 16px !important;
}

html body .rdy-rep-feat {
  padding: 24px !important;
}

/* Talents : formulaire immédiatement identifiable, grilles moins étroites. */
html body .rdy-talents-page {
  padding-top: var(--rdy-v77-section-y) !important;
  padding-bottom: var(--rdy-v77-section-y) !important;
}

html body .rdy-talents-hero {
  min-height: 0 !important;
  margin-bottom: 42px !important;
  align-items: center !important;
}

html body .rdy-talents-visual {
  aspect-ratio: 16 / 10 !important;
  min-height: 0 !important;
}

html body .rdy-talents-visual img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
}

html body .rdy-talents-roles {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 16px !important;
  margin-bottom: 52px !important;
}

html body .rdy-talents-role {
  min-height: 180px !important;
  padding: 22px !important;
}

html body .rdy-talents-role-index {
  margin-bottom: 22px !important;
}

html body .rdy-talent-dedicated-section .rdy-contact-audit-intro-grid {
  display: none !important;
}

html body .rdy-talent-dedicated-section {
  padding-top: clamp(48px, 5vw, 68px) !important;
}

/* Contact et formulaires : moins de vide, aucun panneau étiré. */
html body .rdy-contact-audit-section .rdy-contact-audit-intro-grid {
  margin-bottom: 28px !important;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 280px) !important;
  gap: 32px !important;
  align-items: center !important;
}

html body .rdy-contact-audit-section .rdy-contact-audit-diamond-card {
  min-height: 240px !important;
  width: min(100%, 280px) !important;
  justify-self: end !important;
}

html body .rdy-contact-audit-section .rdy-contact-audit-diamond-video {
  object-fit: contain !important;
  object-position: center !important;
  transform: scale(.86) !important;
}

html body .rdy-contact-audit-wrap {
  align-items: start !important;
}

html body .rdy-contact-audit-card,
html body .rdy-contact-audit-form {
  align-self: start !important;
  min-height: 0 !important;
  height: auto !important;
}

html body .rdy-contact-audit-image {
  aspect-ratio: 16 / 10 !important;
  min-height: 0 !important;
  height: auto !important;
}

html body .rdy-contact-audit-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
}

html body .rdy-contact-audit-form .rdy-form-row {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 14px !important;
}

html body .rdy-contact-audit-form input,
html body .rdy-contact-audit-form select,
html body .rdy-contact-audit-form textarea {
  min-width: 0 !important;
  font-size: 14px !important;
}

html body .rdy-contact-audit-form input::placeholder,
html body .rdy-contact-audit-form textarea::placeholder {
  color: rgba(201, 195, 214, .58) !important;
  opacity: 1 !important;
}

html body .rdy-form-rgpd-note {
  font-size: 12px !important;
}

/* Blog : même richesse, densité visuelle mieux maîtrisée. */
html body .rdy-blog-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 18px !important;
}

html body .rdy-post-premium,
html body .rdy-post {
  min-height: 250px !important;
  padding: 26px !important;
}

html body .rdy-post-premium .rdy-post-title {
  font-size: clamp(19px, 1.45vw, 23px) !important;
  line-height: 1.22 !important;
}

@media (max-width: 1100px) {
  :root { --rdy-v77-section-y: var(--rdy-v77-section-y-tablet); }

  html body .rdy-about {
    grid-template-columns: 1fr !important;
  }

  html body .rdy-about-visual {
    position: relative !important;
    top: auto !important;
    min-height: auto !important;
    display: block !important;
    padding-block: 0 !important;
    overflow: visible !important;
    width: min(100%, 720px) !important;
    margin-inline: auto !important;
  }

  html body .rdy-about-visual::before,
  html body .rdy-about-visual::after {
    display: none !important;
  }

  html body .rdy-talents-roles,
  html body .rdy-blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 820px) {
  html body .rdy-contact-audit-section .rdy-contact-audit-intro-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  html body .rdy-contact-audit-section .rdy-contact-audit-diamond-card {
    justify-self: start !important;
    width: min(100%, 220px) !important;
    min-height: 220px !important;
  }

  html body .rdy-contact-audit-form .rdy-form-row,
  html body .rdy-offers-v77-detail ul {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 720px) {
  :root { --rdy-v77-section-y: var(--rdy-v77-section-y-mobile); }

  html body .rdy-h1,
  html body .rdy-hero-copy .rdy-h1 {
    font-size: clamp(38px, 11vw, 52px) !important;
  }

  html body .rdy-h2,
  html body .rdy-sec-title,
  html body .rdy-sec-head h2,
  html body .rdy-reviews-head h2 {
    font-size: clamp(31px, 9vw, 43px) !important;
  }

  html body .rdy-sec-head,
  html body .rdy-sec-head .rdy-sec-desc,
  html body .rdy-review-note {
    text-align: left !important;
  }

  html body .rdy-about-modes,
  html body .rdy-values,
  html body .rdy-method-diff,
  html body .rdy-talents-roles,
  html body .rdy-blog-grid {
    grid-template-columns: 1fr !important;
  }

  html body .rdy-portfolio-source-note {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    padding: 15px 16px !important;
  }

  html body .rdy-offers-v77-detail-head {
    align-items: flex-start !important;
    flex-direction: column !important;
    gap: 10px !important;
  }

  html body .rdy-post-premium.is-featured {
    grid-column: auto !important;
  }

}

@media (prefers-reduced-motion: reduce) {
  html body .rdy-page,
  html body .rdy-offers-v77-detail {
    opacity: 1 !important;
    animation: none !important;
    transform: none !important;
  }

  html body .rdy-about-visual::after {
    animation: none !important;
    opacity: .24;
    top: 18%;
    transform: translate3d(-50%, 0, 0);
  }
}
