/* =============================================================
   Page "Recherche préclinique" — refonte
   -------------------------------------------------------------
   Même langage visuel que les pages "À propos" / "Radiochimie"
   (base claire, grandes respirations, titres en graisse légère,
   rayons généreux), mais grammaire propre à cette page : bande
   image plein cadre pour PRIPA (in vivo), chapitre sombre HERO
   (ex vivo) avec sigle en dégradé de marque animé, trio d'approches
   en cartes, 3R en médaillons dégradés, cartes contacts.
   Tout est préfixé .rp- et scopé à .rp-page.
   Retour arrière : restaurer recherche-preclinique.backup.php.
   ============================================================= */

.rp-page {
    --rp-ink: #16171F;
    --rp-ink-soft: #6B6F76;
    --rp-line: rgba(2, 3, 22, 0.09);
    --rp-tint-blue: #F1F6FD;
    --rp-tint-teal: #EEF8F7;
    --rp-tint-neutral: #F6F6F7;
    --rp-radius: 26px;
    --rp-shadow: 0 1px 2px rgba(2, 3, 22, 0.05);
    background-color: var(--color-white);
}

/* Le thème colore et espace toutes les <section> (sélecteur `section`, 0-0-1).
   On neutralise à spécificité égale — la feuille étant chargée après, elle
   l'emporte — tout en restant surclassable par chaque bloc .rp-* (0-1-0). */
:where(.rp-page) section {
    background-color: transparent;
    padding: 0;
    overflow: visible;
}

.rp-shell {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Typographie commune ---------- */

.rp-title {
    margin: 0;
    font-weight: 300;
    letter-spacing: -0.015em;
    line-height: 1.08;
    color: var(--rp-ink);
    font-size: clamp(1.9rem, 4vw, 3rem);
}

.rp-title-light {
    color: var(--color-white);
}

.rp-subtitle {
    margin: 22px 0 0;
    font-weight: 400;
    letter-spacing: -0.01em;
    line-height: 1.3;
    color: var(--rp-ink);
    font-size: clamp(1.1rem, 1.7vw, 1.35rem);
}

.rp-subtitle-light {
    color: rgba(255, 255, 255, 0.86);
}

.rp-lead {
    margin: 24px 0 0;
    max-width: 54ch;
    font-size: clamp(16px, 1.1vw, 18px);
    line-height: 1.6;
    font-weight: 300;
    color: var(--rp-ink);
}

.rp-text {
    margin: 20px 0 0;
    max-width: 62ch;
    font-size: 16px;
    line-height: 1.75;
    font-weight: 300;
    color: var(--rp-ink-soft);
}

.rp-text-light {
    color: rgba(255, 255, 255, 0.78);
}

.rp-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--color-teal);
}

.rp-eyebrow-light {
    color: rgba(255, 255, 255, 0.85);
}

.rp-eyebrow-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    height: 22px;
    padding: 0 7px;
    border-radius: 999px;
    background-color: var(--rp-tint-teal);
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    color: var(--color-teal);
}

.rp-eyebrow-light .rp-eyebrow-num {
    background-color: rgba(255, 255, 255, 0.12);
    color: var(--color-white);
}

.rp-section-head {
    max-width: 760px;
    margin-bottom: clamp(40px, 5vw, 64px);
}

/* ---------- Dégradé de marque animé ---------- */

@keyframes rp-gradient-slide {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

@keyframes rp-gradient-glow {

    0%,
    100% {
        background-position: 0% 0%;
    }

    50% {
        background-position: 100% 100%;
    }
}

.rp-gradient-text {
    background-image: linear-gradient(100deg,
            var(--color-teal) 0%,
            var(--color-blue) 40%,
            var(--color-blue-darker) 60%,
            var(--color-teal) 100%);
    background-size: 260% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: rp-gradient-slide 11s ease-in-out infinite;
}

/* ---------- Boutons pilule ---------- */

.rp-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 38px;
}

.rp-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 16px;
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
    transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.rp-btn i {
    font-size: 0.78rem;
    transition: transform 0.3s ease;
}

.rp-btn:hover i {
    transform: translateX(4px);
}

.rp-btn-primary {
    background-color: var(--rp-ink);
    color: var(--color-white);
}

.rp-btn-primary:hover {
    background-color: var(--color-blue-dark);
    color: var(--color-white);
    transform: translateY(-2px);
}

.rp-btn-ghost {
    border-color: var(--rp-line);
    background-color: transparent;
    color: var(--rp-ink);
}

.rp-btn-ghost:hover {
    border-color: var(--rp-ink);
    color: var(--rp-ink);
    transform: translateY(-2px);
}

/* ---------- Puces (chips) ---------- */

.rp-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 22px 0 0;
    padding: 0;
    list-style: none;
}

.rp-chips li {
    padding: 11px 20px;
    border: 1px solid var(--rp-line);
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--rp-ink);
    background-color: var(--color-white);
}

/* ---------- 01 · Des approches complémentaires ---------- */

.rp-intro {
    padding: clamp(80px, 9vw, 130px) 0 clamp(70px, 8vw, 110px);
}

.rp-intro-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: clamp(36px, 6vw, 80px);
    align-items: center;
}

.rp-intro-media {
    position: relative;
    border-radius: var(--rp-radius);
    overflow: hidden;
    aspect-ratio: 4 / 3;
}

.rp-intro-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rp-intro-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(150deg, rgba(29, 156, 149, 0.26) 0%, rgba(0, 108, 166, 0.16) 45%, rgba(2, 3, 22, 0) 75%);
    background-size: 220% 220%;
    animation: rp-gradient-glow 16s ease-in-out infinite;
    pointer-events: none;
}

.rp-approaches-lead {
    margin: clamp(56px, 6vw, 86px) 0 0;
    padding-top: clamp(28px, 3vw, 38px);
    border-top: 1px solid var(--rp-line);
    font-size: 17px;
    font-weight: 400;
    color: var(--rp-ink);
}

.rp-approaches-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(18px, 2.4vw, 28px);
    margin-top: 26px;
}

.rp-approach {
    padding: clamp(26px, 2.8vw, 34px);
    border-radius: var(--rp-radius);
    background-color: var(--rp-tint-neutral);
}

.rp-approach-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background-image: var(--gradient-brand);
    color: var(--color-white);
    font-size: 1.15rem;
}

.rp-approach-label {
    margin: 20px 0 0;
    font-size: 1.15rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    color: var(--rp-ink);
}

.rp-approach .rp-text {
    max-width: none;
    font-size: 16px;
}

.rp-approaches-close {
    max-width: 68ch;
    margin: clamp(36px, 4vw, 54px) 0 0;
    font-size: clamp(16px, 1vw, 17px);
    line-height: 1.7;
    font-weight: 300;
    color: var(--rp-ink-soft);
}

/* ---------- 02 · PRIPA (in vivo) ---------- */

.rp-pripa {
    padding: clamp(70px, 8vw, 110px) 0;
    background-color: var(--rp-tint-neutral);
}

.rp-pripa-media {
    position: relative;
    max-width: 1180px;
    margin: 0 auto clamp(48px, 6vw, 72px);
    padding: 0 24px;
}

.rp-pripa-media img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 21 / 9;
    object-fit: cover;
    border-radius: var(--rp-radius);
}

.rp-pripa-media::after {
    content: "";
    position: absolute;
    inset: 0 24px;
    border-radius: var(--rp-radius);
    background-image: linear-gradient(120deg, rgba(0, 80, 143, 0.3) 0%, rgba(29, 156, 149, 0.15) 55%, rgba(2, 3, 22, 0) 100%);
    background-size: 200% 200%;
    animation: rp-gradient-glow 18s ease-in-out infinite;
    pointer-events: none;
}

.rp-pripa-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: clamp(36px, 6vw, 90px);
    align-items: start;
}

.rp-pripa-head .rp-subtitle {
    max-width: 34ch;
}

.rp-pripa-body {
    max-width: 62ch;
}

@media (min-width: 992px) {
    .rp-pripa-head {
        position: sticky;
        top: 140px;
    }
}

/* ---------- 03 · Approches in vitro ---------- */

.rp-vitro {
    padding: clamp(80px, 9vw, 125px) 0;
}

.rp-vitro-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: clamp(36px, 6vw, 80px);
    align-items: center;
}

.rp-vitro-media {
    border-radius: var(--rp-radius);
    overflow: hidden;
    aspect-ratio: 1 / 1;
}

.rp-vitro-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ---------- 04 · HERO (ex vivo), chapitre sombre ---------- */

.rp-hero-lab {
    position: relative;
    overflow: hidden;
    padding: clamp(90px, 10vw, 140px) 0;
    background-color: var(--color-navy-deep);
}

.rp-hero-lab::before {
    content: "";
    position: absolute;
    inset: -20%;
    background-image:
        radial-gradient(circle at 18% 30%, rgba(29, 156, 149, 0.4), transparent 55%),
        radial-gradient(circle at 82% 75%, rgba(0, 108, 166, 0.46), transparent 55%);
    background-size: 180% 180%;
    animation: rp-gradient-glow 18s ease-in-out infinite;
    pointer-events: none;
}

.rp-hero-lab-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: clamp(40px, 6vw, 100px);
    align-items: center;
}

.rp-hero-lab-badge {
    text-align: center;
}

.rp-hero-lab-badge .rp-eyebrow {
    justify-content: center;
}

.rp-hero-lab-badge .rp-subtitle {
    max-width: none;
    margin-left: auto;
    margin-right: auto;
}

.rp-hero-lab-body {
    padding-left: clamp(0px, 4vw, 48px);
    border-left: 1px solid rgba(255, 255, 255, 0.14);
}

.rp-hero-lab-body .rp-text {
    max-width: 46ch;
}

.rp-hero-lab-body .rp-text:first-child {
    margin-top: 0;
}

.rp-hero-acronym {
    margin: 30px 0 0;
    font-size: clamp(3.2rem, 9vw, 6rem);
    font-weight: 200;
    letter-spacing: 0.06em;
    line-height: 1;
}

/* ---------- 05 · Environnements techniques ---------- */

.rp-environments {
    padding: clamp(80px, 9vw, 125px) 0;
}

.rp-environment-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(18px, 2.4vw, 28px);
}

.rp-environment {
    padding: clamp(26px, 2.8vw, 34px);
    border: 1px solid var(--rp-line);
    border-radius: var(--rp-radius);
    background-color: var(--color-white);
}

.rp-environment-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background-color: var(--rp-tint-blue);
    color: var(--color-blue-dark);
    font-size: 1.15rem;
}

.rp-environment-label {
    margin: 20px 0 0;
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    color: var(--rp-ink);
}

.rp-environment .rp-text {
    max-width: none;
    font-size: 16px;
}

/* ---------- 06 · Bien-être animal et démarche 3R ---------- */

.rp-welfare {
    position: relative;
    overflow: hidden;
    padding: clamp(80px, 9vw, 125px) 0;
    background-color: var(--color-white);
}

.rp-welfare::before {
    content: "";
    position: absolute;
    top: -25%;
    right: -12%;
    width: 55%;
    height: 150%;
    background-image: radial-gradient(circle, rgba(29, 156, 149, 0.09), transparent 68%);
    pointer-events: none;
}

.rp-welfare-grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: clamp(36px, 6vw, 90px);
    align-items: center;
}

.rp-3r {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.rp-3r-item {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 22px 4px;
}

.rp-3r-item:not(:last-child) {
    border-bottom: 1px dashed var(--rp-line);
}

.rp-3r-circle {
    display: flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 66px;
    height: 66px;
    border: 1.5px solid var(--rp-line);
    border-radius: 50%;
    font-size: 1.55rem;
    font-weight: 300;
    line-height: 1;
}

.rp-3r-word {
    font-size: 17px;
    font-weight: 400;
    color: var(--rp-ink);
}

/* ---------- Vos interlocutrices ---------- */

.rp-contacts {
    padding: clamp(80px, 9vw, 125px) 0;
}

.rp-contact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(24px, 3vw, 40px);
    max-width: 620px;
    margin: 0 auto;
}

.rp-contact {
    text-align: center;
}

.rp-contact-media {
    width: 132px;
    height: 132px;
    margin: 0 auto;
    border-radius: 50%;
    overflow: hidden;
    background-color: var(--rp-tint-neutral);
}

.rp-contact-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(1);
}

.rp-contact-media-initials {
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: var(--gradient-brand);
    color: var(--color-white);
    font-size: 1.6rem;
    font-weight: 300;
    letter-spacing: 0.04em;
}

.rp-contact-name {
    margin: 20px 0 0;
    font-size: 18px;
    font-weight: 500;
    letter-spacing: -0.005em;
    color: var(--rp-ink);
}

.rp-contact-role {
    margin: 8px 0 0;
    font-size: 16px;
    font-weight: 300;
    line-height: 1.5;
    color: var(--rp-ink-soft);
}

/* ---------- CTA final ---------- */

.rp-cta {
    position: relative;
    overflow: hidden;
    padding: clamp(90px, 11vw, 150px) 0;
    text-align: center;
    background-image:
        radial-gradient(circle at 18% 20%, rgba(29, 156, 149, 0.55), transparent 55%),
        radial-gradient(circle at 85% 85%, rgba(0, 80, 143, 0.5), transparent 50%),
        linear-gradient(135deg, var(--color-teal) 0%, var(--color-blue) 50%, var(--color-blue-darker) 100%);
    background-size: 200% 200%;
    animation: rp-gradient-glow 14s ease-in-out infinite;
}

.rp-cta-inner {
    max-width: 720px;
    margin: 0 auto;
}

.rp-cta .rp-title,
.rp-cta .rp-lead {
    color: var(--color-white);
}

.rp-cta .rp-lead {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.rp-cta .rp-actions {
    justify-content: center;
}

.rp-cta .rp-btn-primary {
    background-color: var(--color-white);
    color: var(--rp-ink);
}

.rp-cta .rp-btn-primary:hover {
    background-color: var(--rp-tint-blue);
    color: var(--rp-ink);
}

.rp-cta .rp-btn-ghost {
    border-color: rgba(255, 255, 255, 0.55);
    color: var(--color-white);
}

.rp-cta .rp-btn-ghost:hover {
    border-color: var(--color-white);
    background-color: rgba(255, 255, 255, 0.12);
}

/* ---------- Révélation au scroll (page-scopée) ---------- */

html.js-reveal .rp-page [data-rp-reveal] {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1), transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}

html.js-reveal .rp-page [data-rp-reveal].is-in {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {

    .rp-cta,
    .rp-hero-lab::before,
    .rp-intro-media::after,
    .rp-pripa-media::after,
    .rp-gradient-text {
        animation: none;
    }

    html.js-reveal .rp-page [data-rp-reveal],
    .rp-approach,
    .rp-environment,
    .rp-3r-circle,
    .rp-btn {
        transition: none;
    }

    html.js-reveal .rp-page [data-rp-reveal] {
        opacity: 1;
        transform: none;
    }
}

/* ---------- Responsive ---------- */

@media (max-width: 991px) {

    .rp-intro-grid,
    .rp-vitro-grid,
    .rp-welfare-grid,
    .rp-pripa-grid,
    .rp-hero-lab-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .rp-intro-media {
        aspect-ratio: 16 / 10;
        order: -1;
    }

    .rp-vitro-media {
        aspect-ratio: 16 / 9;
    }

    .rp-approaches-grid,
    .rp-environment-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .rp-pripa-media img {
        aspect-ratio: 16 / 9;
    }

    .rp-pripa-head .rp-subtitle {
        max-width: none;
    }

    .rp-hero-lab-body {
        padding-left: 0;
        border-left: none;
        padding-top: 32px;
        border-top: 1px solid rgba(255, 255, 255, 0.14);
    }

    .rp-hero-lab-body .rp-text {
        max-width: 58ch;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 767px) {
    .rp-contact-grid {
        grid-template-columns: minmax(0, 1fr);
        max-width: 320px;
        margin-left: auto;
        margin-right: auto;
    }

    .rp-btn {
        width: 100%;
        justify-content: center;
    }
}
