/* Decorative additions only: keep the existing sections, copy and controls. */
.pp-character { margin: 0; }
.pp-character img { display: block; }
.pp-lina { width: min(100%, 36rem); aspect-ratio: 4 / 3; overflow: hidden; border-radius: 1.5rem; margin: 2.5rem auto 0; background: #ead9c5; }
.pp-lina img { width: 100%; height: auto; max-width: none; margin-top: -19%; }
.pp-paperasse { width: 100%; aspect-ratio: 1.1; overflow: hidden; border-radius: 1.5rem; margin-bottom: 1.5rem; background: #e4c9a7; }
.pp-paperasse img { width: 100%; height: auto; max-width: none; margin-top: -43%; }
.pp-brain { position: relative; width: 10rem; height: 10rem; margin: 0 auto 1.75rem; }
.pp-brain > img { width: 100%; height: 100%; object-fit: contain; border-radius: 50%; }
/* The source alpha punches through the blue/red P. Rebuild only its badge
   in HTML, using the official, undistorted colour monogram. */
.pp-brain-badge { position: absolute; left: 31.2%; top: 62%; width: 12%; height: 13%; border-radius: 50%; background: radial-gradient(ellipse at 30% 20%, #b0ada2, #8a8b81 75%); }
.pp-brain .pp-brain-logo { position: absolute; left: 33.6%; top: 62.8%; width: 8.1%; height: auto; }

@media (max-width: 767px) {
  .pp-lina { max-width: 26rem; margin-top: 2rem; border-radius: 1rem; }
  .pp-paperasse { border-radius: 1rem; }
  .pp-brain { width: 8rem; height: 8rem; }
}

/* Lina accompanies the answer and four statistics, not the hero. */
#pourquoi-physiopro > .pp-geo-layout { max-width: 80rem; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); column-gap: 3rem; align-items: start; }
.pp-geo-layout > :not(.pp-lina) { grid-column: 1; }
.pp-geo-layout > dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pp-geo-layout > .pp-lina { grid-column: 2; grid-row: 1 / span 5; align-self: center; width: 100%; margin: 0; }
@media (max-width: 767px) {
 #pourquoi-physiopro > .pp-geo-layout { display: block; }
 .pp-geo-layout > .pp-lina { margin: 2rem auto 0; }
}

/* Keep the original heading icon; place the assistant beside the AI card. */
.pp-prescription-header { position: relative; }
.pp-prescription-header > .pp-brain { position: absolute; right: 0; top: 8rem; width: 7rem; height: 7rem; margin: 0; }
@media (max-width: 1023px) {
 .pp-prescription-header > h3, .pp-prescription-header > p.uppercase { margin-right: 8rem; }
}
@media (max-width: 479px) {
 .pp-prescription-header > .pp-brain { width: 6rem; height: 6rem; }
 .pp-prescription-header > h3, .pp-prescription-header > p.uppercase { margin-right: 7rem; }
}
@media (min-width: 1024px) {
 .pp-prescription-accordion { position: relative; width: calc(100% - 11rem); margin-left: auto; margin-right: 11rem; }
 .pp-prescription-accordion > .pp-brain { position: absolute; top: 0; right: -11rem; width: 9rem; height: 9rem; margin: 0 !important; }
}

/* Paperasse beside the introduction; benefits and gains share a baseline. */
.pp-problem-grid { align-items: end; row-gap: 2rem; }
.pp-problem-copy { display: contents; }
.pp-problem-copy > * { margin-top: 0 !important; }
.pp-problem-copy > .pp-paperasse { grid-column: 1; grid-row: 1 / span 2; width: min(100%, 22rem); justify-self: center; align-self: center; margin-bottom: 0; }
.pp-problem-copy > h2 { grid-column: 2; grid-row: 1; align-self: end; }
.pp-problem-copy > p { grid-column: 2; grid-row: 2; align-self: start; }
.pp-problem-copy > div { grid-column: 1; grid-row: 3; }
.pp-problem-grid > .relative { grid-column: 2; grid-row: 3; align-self: end; }
@media (max-width: 767px) {
 .pp-problem-grid { grid-template-columns: 7rem minmax(0, 1fr); gap: 1.5rem 1rem; }
 .pp-problem-copy > .pp-paperasse { grid-column: 1; grid-row: 1; border-radius: 1rem; }
 .pp-problem-copy > h2 { grid-column: 2; grid-row: 1; align-self: center; }
 .pp-problem-copy > p { grid-column: 1 / -1; grid-row: 2; }
 .pp-problem-copy > div { grid-column: 1 / -1; grid-row: 3; }
 .pp-problem-grid > .relative { grid-column: 1 / -1; grid-row: 4; }
}

/* Fluid sizes and explicit reserved space at every breakpoint. */
.pp-character { min-width: 0; max-width: 100%; }
.pp-problem-copy > .pp-paperasse { width: min(100%, clamp(15rem, 28vw, 22rem)); }
@media (max-width: 1023px) {
 #pourquoi-physiopro > .pp-geo-layout { display: block; }
 .pp-geo-layout > .pp-lina { width: min(100%, 34rem); margin: 2rem auto 0; }
 .pp-prescription-header { display: grid; grid-template-columns: minmax(0, 1fr) clamp(5rem, 16vw, 8rem); column-gap: 1rem; align-items: center; }
 .pp-prescription-header > div { grid-column: 1 / -1; grid-row: 1; justify-self: center; }
 .pp-prescription-header > p.uppercase { grid-column: 1; grid-row: 2; margin-right: 0; }
 .pp-prescription-header > h3 { grid-column: 1; grid-row: 3; margin-right: 0; overflow-wrap: anywhere; }
 .pp-prescription-header > p:not(.uppercase) { grid-column: 1 / -1; grid-row: 4; }
 .pp-prescription-header > .pp-brain { position: relative; inset: auto; grid-column: 2; grid-row: 2 / span 2; width: 100%; height: auto; aspect-ratio: 1; margin: 0; align-self: center; }
}
@media (max-width: 767px) {
 .pp-problem-grid { grid-template-columns: clamp(5rem, 27vw, 8rem) minmax(0, 1fr); }
 .pp-problem-copy > .pp-paperasse { width: 100%; }
 .pp-problem-copy > h2 { font-size: clamp(1.5rem, 7vw, 1.875rem); overflow-wrap: anywhere; }
 .pp-geo-layout > dl > div { min-width: 0; padding: clamp(.75rem, 3vw, 1.25rem); }
}

/* On narrow screens the assistant gets its own row, without narrowing copy. */
@media(max-width:767px) {
 .pp-prescription-header { display: flex; flex-direction: column; align-items: stretch; }
 .pp-prescription-header > div { align-self: center; }
 .pp-prescription-header > h3, .pp-prescription-header > p.uppercase { margin-right: 0; width: 100%; }
 .pp-prescription-header > .pp-brain { align-self: flex-end; width: clamp(4.5rem, 18vw, 6rem); height: auto; margin-top: 1rem; }
}
