:root {
    --tes-black: #080810;
    --tes-black-light: #10101a;
    --tes-card: #141321;
    --tes-white: #f8f7fb;
    --tes-grey: #aaa6b4;
    --tes-purple: #8055d9;
    --tes-purple-light: #b790ff;
    --tes-purple-dark: #4b287f;
    --tes-border: rgba(183, 144, 255, 0.3);
    --tes-border-light: rgba(255, 255, 255, 0.1);
    --tes-radius: 10px;
}

/* ==========================================================
   BASE DE LA PAGE
   ========================================================== */

html body.single-personne {
    background: var(--tes-black);
    color: var(--tes-white);
}

html body.single-personne #main,
html body.single-personne #main .fusion-row:first-child {
    padding: 0;
    background:
        radial-gradient(
            circle at 78% 18%,
            rgba(128, 85, 217, 0.13),
            transparent 32rem
        ),
        var(--tes-black);
}

.tesseract-personne {
    min-width: 0;
    max-width: 100%;
    padding: 60px 0 35px;
    color: var(--tes-white);
    overflow-wrap: anywhere;
}

.tesseract-personne *,
.tesseract-personne *::before,
.tesseract-personne *::after {
    box-sizing: border-box;
}

.personne-container {
    width: min(1600px, calc(100% - 40px));
    min-width: 0;
    max-width: 100%;
    margin: 0 auto;
}

/* ==========================================================
   ACCORDÉONS
   ========================================================== */

section.accordion-section {
    margin-top: 75px;
}

section.accordion-section h3.accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin: 0 0 30px;
    padding: 0 0 20px;
    border-bottom: 3px solid var(--tes-purple);
    color: var(--tes-white);
    font-family: "ITC", Arial, Helvetica, sans-serif;
    font-size: clamp(30px, 3vw, 40px);
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    user-select: none;
}

section.accordion-section h3.accordion-header .head-wrap {
    min-width: 0;
}

section.accordion-section h3.accordion-header .accordion-icon {
    flex: 0 0 auto;
    margin-left: 1rem;
    color: var(--tes-white);
    font-family: "ITC", Arial, Helvetica, sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
}

section.accordion-section h3.accordion-header:focus-visible {
    outline: 3px solid var(--tes-purple-light);
    outline-offset: 5px;
}

.personne-accordion__content {
    overflow: hidden;
    padding-bottom: 35px;
}

.personne-accordion__content[hidden] {
    display: none !important;
}

.personne-accordion__content:not([hidden]) {
    display: block;
}

.personne-accordion__content.is-open {
    animation: personneBiographyAccordionOpen 240ms ease both;
}

.personne-biographie-longue {
    color: #d5d0dc;
    font-size: 14px;
    line-height: 24px;
}

.personne-biographie-longue > :first-child {
    margin-top: 0;
}

.personne-biographie-longue > :last-child {
    margin-bottom: 0;
}

.personne-biographie-longue p.wp-block-paragraph strong,
.personne-biographie-longue p.wp-block-paragraph em {
    color: #8055d9;
}

.personne-biographie-longue h2.wp-block-heading {
    font-family: 'ITC', Arial, Helvetica, sans-serif;
    font-size: 36px;
    line-height: 46px;
    color: #8055d9;
    margin-top: 50px;
    margin-bottom: 25px;
}

@keyframes personneBiographyAccordionOpen {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================
   EN-TÊTE
   ========================================================== */

.personne-header {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 40px;
}

.personne-header__left {
    min-width: 0;
    flex: 1;
}

.personne-header__right {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    justify-content: flex-end;
}

.personne-title {
    margin: 0;
    color: var(--tes-white);
    font-family: "ITC", Arial, Helvetica, sans-serif;
    font-size: clamp(40px, 4vw, 64px);
    font-weight: 700;
    line-height: 1.1;
}

.personne-title__flags {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
    margin-right: .16em;
    vertical-align: .08em;
}

.personne-title__flag {
    display: inline-block;
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
    font-size: .72em;
    font-weight: 400;
    line-height: 1;
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .35));
}

.personne-jobs {
    margin: 0 0 3px;
    color: var(--tes-purple-light);
    font-size: 27px;
    font-style: italic;
    line-height: 35px;
}

.personne-nationalities {
    margin: 3px 0;
    color: var(--tes-white);
    font-size: 18px;
    line-height: 22px;
}

.personne-header__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border-radius: 8px;
    color: var(--tes-white);
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    box-shadow: 0 10px 35px rgba(109, 40, 217, 0.35);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease;
}

.personne-header__button:hover,
.personne-header__button:focus-visible {
    color: var(--tes-white);
    background: linear-gradient(135deg, #a855f7, #7c3aed);
    box-shadow: 0 18px 45px rgba(124, 58, 237, 0.45);
    transform: translateY(-2px);
}

.personne-header__button:active {
    transform: translateY(0);
}

.personne-header__line {
    width: 100%;
    height: 2px;
    margin: 10px 0 35px;
    background: linear-gradient(
        90deg,
        var(--tes-purple-light),
        var(--tes-purple),
        rgba(128, 85, 217, 0.1)
    );
}

/* ==========================================================
   GRILLE PRINCIPALE
   ========================================================== */

.personne-intro {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr) 320px;
    gap: 35px;
    align-items: start;
}

.personne-intro > * {
    min-width: 0;
}

/* ==========================================================
   PORTRAIT ET PLATEFORMES
   ========================================================== */

.personne-intro__portrait {
    width: min(100%, 260px);
}

.personne-portrait__frame {
    position: relative;
}

.personne-portrait__stats {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    display: block;
    padding: 16px 12px 12px;
    border-radius: 0 0 var(--tes-radius) var(--tes-radius);
    background: linear-gradient(180deg, rgba(8, 8, 16, 0) 0%, rgba(8, 8, 16, 0.78) 30%, rgba(8, 8, 16, 0.92) 100%);
}

.personne-portrait__stat {
    display: block;
    text-align: center;
    gap: 2px;
    color: var(--tes-white);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.personne-portrait__stat strong {
    color: var(--tes-purple-light);
    font-size: 19px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: none;
}

.tesseract-personne .personne-portrait__image {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 26 / 37;
    object-fit: cover;
    object-position: center top;
    border-radius: var(--tes-radius);
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.4);
}

.personne-portrait__placeholder {
    display: grid;
    place-items: center;
    width: 100%;
    aspect-ratio: 26 / 37;
    border-radius: var(--tes-radius);
    color: var(--tes-purple-light);
    background: var(--tes-card);
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.4);
    font-size: 7rem;
    font-weight: 800;
}

.personne-platforms {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 18px;
}

.personne-platform {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition:
        transform 180ms ease,
        opacity 180ms ease;
}

.personne-platform:hover,
.personne-platform:focus-visible {
    opacity: 0.82;
    transform: translateY(-2px);
}

.personne-platforms img {
    display: block;
    width: 30px;
    height: 30px;
    object-fit: contain;
}

/* ==========================================================
   TITRES DE BLOCS
   ========================================================== */

.personne-block-title {
    margin: 0;
    color: var(--tes-white);
    font-family: "ITC", Arial, Helvetica, sans-serif;
    font-size: 30px;
    line-height: 38px;
}

.personne-block-line {
    width: 100%;
    height: 2px;
    margin: 10px 0 25px;
    background: linear-gradient(
        90deg,
        var(--tes-purple),
        rgba(128, 85, 217, 0.15)
    );
}

/* ==========================================================
   DÉTAILS
   ========================================================== */

.personne-details-list {
    display: grid;
    gap: 4px;
    margin: 0;
}

.personne-detail {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    gap: 20px;
    align-items: center;
}

.personne-detail dt {
    margin: 0;
    color: var(--tes-purple-light);
    font-size: 13px;
    font-weight: 750;
}

.personne-detail dt span {
    display: inline-block;
    margin-right: 12px;
    color: var(--tes-purple-light);
    font-size: 1.3em;
}

.personne-detail dd {
    margin: 0;
    color: var(--tes-white);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.55;
}

.personne-short-biography {
    margin-top: 12px;
    color: #ece9f1;
    font-size: 12px;
    line-height: 20px;
}

.personne-short-biography p:first-child {
    margin-top: 0;
}

.personne-short-biography p:last-child {
    margin-bottom: 0;
}

/* ==========================================================
   LIENS
   ========================================================== */

.personne-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.personne-links a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 15px;
    border: 1px solid var(--tes-border-light);
    border-radius: 999px;
    color: var(--tes-white);
    font-size: 0.85rem;
    text-decoration: none;
}

.personne-links a:hover,
.personne-links a:focus-visible {
    border-color: var(--tes-purple-light);
    background: rgba(128, 85, 217, 0.14);
}

/* ==========================================================
   APERÇU DE LA GALERIE
   ========================================================== */

.personne-gallery-preview {
    margin-top: 11px;
}

.personne-gallery-preview__hero {
    display: block;
    overflow: hidden;
    width: 100%;
    height: auto;
    border-radius: var(--tes-radius);
    background: var(--tes-card);
}

.personne-gallery-preview__hero img,
.personne-gallery-preview__thumb img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    transition:
        transform 300ms ease,
        opacity 300ms ease;
}

.personne-gallery-preview__hero:hover img,
.personne-gallery-preview__hero:focus-visible img,
.personne-gallery-preview__thumb:hover img,
.personne-gallery-preview__thumb:focus-visible img {
    opacity: 0.85;
    transform: scale(1.035);
}

.personne-gallery-preview__row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 11px;
    margin-top: 11px;
}

.personne-gallery-preview__thumb,
.personne-gallery-preview__more {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 1;
    border-radius: var(--tes-radius);
    background: var(--tes-card);
}

.personne-gallery-preview__more {
    display: grid;
    place-items: center;
    color: var(--tes-white);
    background:
        radial-gradient(
            circle at 30% 20%,
            rgba(183, 144, 255, 0.3),
            transparent 70%
        ),
        var(--tes-purple-dark);
    text-decoration: none;
}

.personne-gallery-preview__plus {
    font-size: 2.3rem;
    font-weight: 800;
    line-height: 1;
}

.personne-gallery-preview__count {
    position: absolute;
    right: 9px;
    bottom: 8px;
    display: grid;
    place-items: center;
    min-width: 27px;
    height: 27px;
    padding: 0 7px;
    border-radius: 999px;
    color: var(--tes-white);
    background: rgba(0, 0, 0, 0.42);
    font-size: 0.75rem;
    font-weight: 700;
}

/* ==========================================================
   FILMOGRAPHIES — PAGE PERSONNE
   Champs :
   famous_films, films_realises, film_produits,
   film_ecrits et film_joues
========================================================== */

.tesseract-personne .personne-filmography {
    margin-top: 58px;
}

.tesseract-personne .personne-filmography__accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin: 0 0 30px;
    padding: 0 0 20px;
    border-bottom: 3px solid var(--tes-purple);
    color: var(--tes-white);
    font-family: "ITC", Arial, Helvetica, sans-serif;
    font-size: clamp(30px, 3vw, 40px);
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    user-select: none;
}

.tesseract-personne .personne-filmography__accordion-header .head-wrap {
    min-width: 0;
}

.tesseract-personne .personne-filmography__accordion-header .count,
.tesseract-personne .personne-accordion .accordion-header .count {
    color: #b790ff;
    font-size: .68em;
    font-weight: 600;
}

.tesseract-personne .personne-filmography__accordion-header .accordion-icon {
    flex: 0 0 auto;
    margin-left: 1rem;
    color: var(--tes-white);
    font-family: "ITC", Arial, Helvetica, sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
}

.tesseract-personne .personne-filmography__accordion-content {
    padding-top: 28px;
}

.tesseract-personne .personne-filmography__accordion-content.collapsed,
.tesseract-personne .personne-filmography__accordion-content[hidden] {
    display: none;
}

/* ==========================================================
   CÉLÈBRE POUR
========================================================== */

.tesseract-personne .personne-famous-films__viewport {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0 0 14px;
}

/* Même barre pour les trois rangées défilantes, y compris sur Safari. */
.tesseract-personne :is(.personne-famous-films__viewport, .personne-people-grid--discover, .personne-people-grid--ranking, .personne-timeline) {
    scrollbar-width: thin;
    scrollbar-color: #b790ff rgba(255, 255, 255, .12);
}

.tesseract-personne :is(.personne-famous-films__viewport, .personne-people-grid--discover, .personne-people-grid--ranking, .personne-timeline)::-webkit-scrollbar {
    height: 6px;
}

.tesseract-personne :is(.personne-famous-films__viewport, .personne-people-grid--discover, .personne-people-grid--ranking, .personne-timeline)::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, .12);
    border-radius: 999px;
}

.tesseract-personne :is(.personne-famous-films__viewport, .personne-people-grid--discover, .personne-people-grid--ranking, .personne-timeline)::-webkit-scrollbar-thumb {
    background: #b790ff;
    border-radius: 999px;
}

.tesseract-personne .personne-famous-films__grid {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(150px, 175px);
    gap: 18px;
    width: max-content;
    min-width: 100%;
}

.tesseract-personne .personne-famous-card {
    min-width: 0;
}

.tesseract-personne .personne-famous-card__poster {
    aspect-ratio: 2 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #141321;
    border-radius: 12px;
    overflow: hidden;
}

.tesseract-personne .personne-famous-card__poster img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform .3s ease;
}

.tesseract-personne .personne-famous-card:hover .personne-famous-card__poster img {
    transform: scale(1.04);
}

.tesseract-personne .personne-famous-card__title {
    margin: 11px 0 0;
    font-size: 15px;
    line-height: 1.4;
    text-align: center;
}

.tesseract-personne .personne-famous-card__title a {
    color: #f8f7fb;
    text-decoration: none;
}

.tesseract-personne .personne-famous-card__title a:hover {
    color: #b790ff;
}

/* ==========================================================
   LISTES DÉTAILLÉES
========================================================== */

.tesseract-personne .personne-film-list {
    display: grid;
    gap: 0;
    background: #202020;
    border-top: 1px solid rgba(255, 255, 255, .08);
}

.tesseract-personne .personne-film-card {
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 26px;
    padding: 26px 14px 26px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.tesseract-personne .personne-film-card__poster-wrap {
    position: relative;
    align-self: start;
}

.tesseract-personne .personne-film-card__poster {
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: #141321;
}

.tesseract-personne .personne-film-card__poster img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tesseract-personne .personne-film-poster__fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 220px;
    font-size: 42px;
}

.tesseract-personne .personne-film-card__release-badge {
    position: absolute;
    z-index: 2;
    top: 10px;
    left: -14px;
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 8px 13px;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: .01em;
    white-space: nowrap;
    background: #080810;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .42);
    transform: rotate(-8deg);
}

.tesseract-personne .personne-film-card__content {
    min-width: 0;
    padding-top: 2px;
}

.tesseract-personne .personne-film-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 22px;
}

.tesseract-personne .personne-film-card__header > * {
    min-width: 0;
    max-width: 100%;
}

.tesseract-personne .personne-film-card__title {
    margin: 0;
    font-size: clamp(21px, 2.2vw, 29px);
    line-height: 1.2;
}

.tesseract-personne .personne-film-card__title a {
    color: #fff;
    text-decoration: none;
}

.tesseract-personne .personne-film-card__title a:hover {
    color: #b790ff;
}

.tesseract-personne .personne-film-card__year {
    color: #aaa6b4;
    font-size: .76em;
    font-weight: 500;
}

.tesseract-personne .personne-film-card__genres {
    margin: 4px 0 0;
    color: #aaa6b4;
    font-size: 16px;
    line-height: 1.45;
}

.tesseract-personne .personne-film-card__rating {
    flex: 0 0 auto;
    padding-top: 1px;
}

.tesseract-personne .personne-film-card__stars {
    display: flex;
    gap: 1px;
}

.tesseract-personne .personne-film-card__star {
    position: relative;
    display: inline-block;
    width: 19px;
    height: 21px;
    font-size: 21px;
    line-height: 1;
}

.tesseract-personne .personne-film-card__star-empty,
.tesseract-personne .personne-film-card__star-fill {
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    overflow: hidden;
    white-space: nowrap;
}

.tesseract-personne .personne-film-card__star-empty {
    width: 100%;
    color: rgba(255, 255, 255, .2);
}

.tesseract-personne .personne-film-card__star-fill {
    color: #ffc400;
}

.tesseract-personne .personne-film-card__meta {
    margin: 5px 0 0;
    color: #e6edf3;
    font-size: 15px;
    line-height: 1.45;
}

.tesseract-personne .personne-film-card__meta strong {
    color: #fff;
}

.tesseract-personne .personne-film-card__meta a {
    color: #00a9f4;
    text-decoration: none;
}

.tesseract-personne .personne-film-card__meta a:hover {
    text-decoration: underline;
}

.tesseract-personne .personne-film-card__synopsis {
    margin: 18px 0 0;
    color: #b4b4b4;
    font-size: 16px;
    line-height: 1.55;
    text-align: left;
}

/* ==========================================================
   RESPONSIVE
========================================================== */

@media (max-width: 900px) {
    .tesseract-personne .personne-film-card {
        grid-template-columns: 150px minmax(0, 1fr);
        gap: 20px;
    }

    .tesseract-personne .personne-film-card__header {
        flex-direction: column;
        gap: 9px;
    }
}

@media (max-width: 620px) {
    .tesseract-personne .personne-filmography {
        margin-top: 80px;
    }

    .tesseract-personne .personne-filmography__accordion-header {
        font-size: 28px;
    }

    .tesseract-personne .personne-film-card {
        grid-template-columns: 105px minmax(0, 1fr);
        gap: 14px;
        padding: 18px 0;
        background: transparent;
    }

    .tesseract-personne .personne-film-list {
        background: transparent;
    }

    .tesseract-personne .personne-film-card__release-badge {
        top: 7px;
        left: -6px;
        min-height: 29px;
        padding: 6px 8px;
        font-size: 9px;
    }

    .tesseract-personne .personne-film-card__title {
        font-size: 18px;
    }

    .tesseract-personne .personne-film-card__genres,
    .tesseract-personne .personne-film-card__meta,
    .tesseract-personne .personne-film-card__synopsis {
        font-size: 13px;
    }

    .tesseract-personne .personne-film-card__synopsis {
        display: none;
    }

    .tesseract-personne .personne-film-card__star {
        width: 15px;
        height: 17px;
        font-size: 17px;
    }

    .tesseract-personne .personne-famous-films__grid {
        grid-auto-columns: 135px;
        gap: 13px;
    }
}

/* ==========================================================
   CORRECTION PRIORITAIRE — AFFICHES ENTIÈRES
========================================================== */

.tesseract-personne .personne-famous-card__poster img,
.tesseract-personne .personne-film-card__poster img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    object-position: center center !important;
}

/* ==========================================================
   LIGHTBOX
   ========================================================== */

.personne-lightbox {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: grid;
    place-items: center;
    padding: 24px;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition:
        opacity 180ms ease,
        visibility 180ms ease;
}

.personne-lightbox[aria-hidden="false"] {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.personne-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(9px);
    cursor: zoom-out;
}

.personne-lightbox__dialog {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    width: min(1250px, 100%);
    height: min(880px, calc(100dvh - 48px));
    padding: 24px 72px 26px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 18px;
    background: #08080d;
    box-shadow: 0 35px 100px rgba(0, 0, 0, 0.65);
}

.personne-lightbox__title {
    position: relative;
    z-index: 3;
    width: 100%;
    margin: 0;
    padding: 4px 70px 18px;
    color: var(--tes-white);
    font-family: "ITC", Arial, Helvetica, sans-serif;
    font-size: clamp(26px, 3vw, 42px);
    font-weight: 700;
    line-height: 1.1;
    text-align: center;
}

.personne-lightbox__figure {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto auto auto;
    align-items: center;
    justify-items: center;
    min-height: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    touch-action: pan-y;
}

.personne-lightbox__image {
    display: block;
    min-width: 0;
    min-height: 0;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.personne-lightbox__caption {
    max-width: 900px;
    margin: 12px 0 0;
    color: var(--tes-grey);
    font-size: 13px;
    line-height: 1.45;
    text-align: center;
}

.personne-lightbox__counter {
    margin: 10px 0 0;
    color: var(--tes-purple-light);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1;
}

.personne-lightbox__dots {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 18px;
    margin-top: 11px;
}

.personne-lightbox__dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(183, 144, 255, 0.32);
    cursor: pointer;
    transition:
        width 180ms ease,
        background 180ms ease,
        transform 180ms ease,
        box-shadow 180ms ease;
}

.personne-lightbox__dot:hover,
.personne-lightbox__dot:focus-visible {
    background: var(--tes-purple-light);
    transform: scale(1.2);
}

.personne-lightbox__dot.is-active {
    width: 22px;
    border-radius: 999px;
    background: var(--tes-purple);
    box-shadow:
        0 0 0 3px rgba(128, 85, 217, 0.16),
        0 0 18px rgba(183, 144, 255, 0.42);
}

.personne-lightbox__close,
.personne-lightbox__nav {
    position: absolute;
    z-index: 5;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    color: var(--tes-white);
    background: rgba(15, 14, 23, 0.88);
    cursor: pointer;
    transition:
        background 180ms ease,
        border-color 180ms ease,
        transform 180ms ease;
}

.personne-lightbox__close {
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    font-size: 1.65rem;
}

.personne-lightbox__nav {
    top: 50%;
    width: 48px;
    height: 48px;
    font-size: 2.15rem;
    transform: translateY(-50%);
}

.personne-lightbox__nav--previous {
    left: 18px;
}

.personne-lightbox__nav--next {
    right: 18px;
}

.personne-lightbox__close:hover,
.personne-lightbox__close:focus-visible,
.personne-lightbox__nav:hover,
.personne-lightbox__nav:focus-visible {
    border-color: var(--tes-purple-light);
    color: var(--tes-white);
    background: var(--tes-purple);
}

.personne-lightbox__nav:hover,
.personne-lightbox__nav:focus-visible {
    transform: translateY(-50%) scale(1.06);
}

html.personne-lightbox-open,
html.personne-lightbox-open body {
    overflow: hidden;
}

/* ==========================================================
   ACCESSIBILITÉ
   ========================================================== */

.tesseract-personne a:focus-visible,
.tesseract-personne button:focus-visible,
.tesseract-personne [role="button"]:focus-visible {
    outline: 3px solid var(--tes-purple-light);
    outline-offset: 4px;
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */

@media (max-width: 1100px) {
    .personne-intro {
        grid-template-columns: 240px minmax(0, 1fr);
    }

    .personne-intro__gallery {
        grid-column: 1 / -1;
    }

    .personne-gallery-preview {
        display: grid;
        grid-template-columns: minmax(0, 1.7fr) minmax(260px, 1fr);
        gap: 11px;
    }

    .personne-gallery-preview__row {
        margin-top: 0;
    }
}

@media (max-width: 760px) {
    .tesseract-personne {
        padding-top: 30px;
    }

    .personne-container {
        width: min(calc(100% - 28px), 1600px);
    }

    .personne-header {
        flex-direction: column;
        align-items: stretch;
        gap: 22px;
    }

    .personne-header__right,
    .personne-header__button {
        width: 100%;
    }

    .personne-title {
        font-size: clamp(38px, 12vw, 56px);
    }

    .personne-jobs {
        font-size: 22px;
        line-height: 29px;
    }

    .personne-nationalities {
        font-size: 16px;
    }

    .personne-intro {
        grid-template-columns: minmax(0, 1fr);
        gap: 36px;
    }

    .personne-intro__portrait {
        width: min(100%, 260px);
        margin: 0 auto;
    }

    .personne-detail {
        grid-template-columns: minmax(0, 1fr);
        gap: 2px;
        margin-bottom: 10px;
    }

    .personne-gallery-preview {
        display: block;
    }

    .personne-gallery-preview__row {
        margin-top: 11px;
    }

    section.accordion-section {
        margin-top: 70px;
    }

    section.accordion-section h3.accordion-header {
        margin-bottom: 30px;
        font-size: 24px;
    }

    .personne-lightbox {
        padding: 10px;
    }

    .personne-lightbox__dialog {
        width: 100%;
        height: calc(100dvh - 20px);
        padding: 16px 14px 74px;
        border-radius: 12px;
    }

    .personne-lightbox__title {
        padding: 4px 48px 12px;
        font-size: 25px;
    }

    .personne-lightbox__figure {
        grid-template-rows: minmax(0, 1fr) auto auto auto;
    }

    .personne-lightbox__image {
        max-width: 100%;
        max-height: 100%;
    }

    .personne-lightbox__close {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
    }

    .personne-lightbox__nav {
        top: auto;
        bottom: 14px;
        width: 44px;
        height: 44px;
        transform: none;
    }

    .personne-lightbox__nav:hover,
    .personne-lightbox__nav:focus-visible {
        transform: scale(1.06);
    }

    .personne-lightbox__nav--previous {
        left: calc(50% - 58px);
    }

    .personne-lightbox__nav--next {
        right: calc(50% - 58px);
    }

    .personne-lightbox__caption {
        font-size: 12px;
    }

    .personne-lightbox__dots {
        gap: 7px;
        margin-top: 9px;
    }
}

@media (max-width: 350px) {
    .personne-gallery-preview__row {
        grid-template-columns: repeat(2, 1fr);
    }

    .personne-gallery-preview__more {
        grid-column: span 2;
        aspect-ratio: 2 / 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tesseract-personne *,
    .tesseract-personne *::before,
    .tesseract-personne *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* ==========================================================
   CORRECTION DÉFINITIVE — CÉLÈBRE POUR
   Toutes les affiches ont exactement la même hauteur.
========================================================== */

.tesseract-personne .personne-famous-films__grid {
    align-items: start;
}

.tesseract-personne .personne-famous-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.tesseract-personne .personne-famous-card__poster {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    height: 262px !important;
    min-height: 262px !important;
    max-height: 262px !important;
    aspect-ratio: auto !important;
    overflow: hidden !important;
    background: #141321 !important;
    border-radius: 12px !important;
}

.tesseract-personne .personne-famous-card__poster img {
    position: absolute !important;
    inset: 0 !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 100% !important;
    max-height: 100% !important;
    margin: 0 !important;
    object-fit: cover !important;
    object-position: center center !important;
    border-radius: 0 !important;
    clip-path: none !important;
    transform: none !important;
}

.tesseract-personne .personne-famous-card:hover .personne-famous-card__poster img {
    transform: scale(1.035) !important;
}

/*
 * Les cartes détaillées des autres filmographies
 * conservent leur propre comportement.
 */
.tesseract-personne .personne-film-card__poster {
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: #141321;
}

.tesseract-personne .personne-film-card__poster img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

@media (max-width: 620px) {
    .tesseract-personne .personne-famous-card__poster {
        height: 203px !important;
        min-height: 203px !important;
        max-height: 203px !important;
    }
}

/* ==========================================================
   CORRECTION — AFFICHES DES FILMOGRAPHIES DÉTAILLÉES
   Réalisations, Productions, Écritures et Interprétations.
   Cette règle n'affecte pas la section « Célèbre pour ».
========================================================== */

.tesseract-personne .personne-film-card__poster {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    aspect-ratio: auto !important;
    overflow: visible !important;
    background: transparent !important;
}

.tesseract-personne .personne-film-card__poster img {
    position: static !important;
    inset: auto !important;
    display: block !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 !important;
    object-fit: unset !important;
    object-position: initial !important;
    border-radius: 0 !important;
    transform: none !important;
}

/*
 * Le badge reste positionné par rapport au conteneur externe
 * .personne-film-card__poster-wrap.
 */
.tesseract-personne .personne-film-card__poster-wrap {
    align-self: start;
}

/* ==========================================================
   NOUVELLES SECTIONS — carte, statistiques, genres, salaires,
   classements de personnes, anecdotes, citations, découverte.
   ========================================================== */

.personne-detail__maps-link {
    color: var(--tes-purple-light);
    text-decoration: none;
    font-size: 10px;
}

.personne-detail__maps-link:hover {
    text-decoration: underline;
}

.personne-map {
    position: relative;
    width: 100%;
    padding-top: 45%;
    overflow: hidden;
    border: 1px solid var(--tes-border);
    border-radius: var(--tes-radius);
}

.personne-map iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.personne-place-photos {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 8px;
}

.personne-place-photos__item {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border: 1px solid var(--tes-border);
    border-radius: 8px;
    background: var(--tes-black-light);
}

.personne-place-photos__item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.25s ease;
}

.personne-place-photos__item:hover img {
    transform: scale(1.05);
}

.personne-place-photos__credit {
    margin: 0 0 20px;
    color: var(--tes-grey);
    font-size: 11px;
}

.personne-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr));
    gap: 18px;
}

.personne-stat {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 22px 20px;
    border: 1px solid var(--tes-border);
    border-radius: var(--tes-radius);
    background: var(--tes-card);
    text-align: center;
}

.personne-stat__value {
    color: var(--tes-purple-light);
    font-family: "ITC", Arial, Helvetica, sans-serif;
    font-size: clamp(24px, 2.4vw, 34px);
    font-weight: 700;
    line-height: 1.1;
}

.personne-stat__label {
    color: var(--tes-grey);
    font-size: 13px;
    line-height: 1.4;
}

.personne-genre-bars {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.personne-genre-bar {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr) 48px;
    align-items: center;
    gap: 14px;
}

.personne-genre-bar__name {
    color: var(--tes-white);
    font-size: 14px;
    font-weight: 600;
}

.personne-genre-bar__track {
    position: relative;
    height: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.personne-genre-bar__fill {
    position: absolute;
    inset: 0 auto 0 0;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--tes-purple-dark), var(--tes-purple-light));
}

.personne-genre-bar__value {
    color: var(--tes-purple-light);
    font-size: 13px;
    font-weight: 700;
    text-align: right;
}

.personne-accordion__content--overflow-visible {
    overflow: visible;
}

/* Frise chronologique — « Ses premiers pas à l’écran » */
.personne-timeline-container {
    padding: 24px 20px 12px;
    border: 1px solid rgba(183, 144, 255, 0.12);
    border-radius: 18px;
    background: radial-gradient(ellipse at top left, rgba(128, 85, 217, 0.1), transparent 65%), var(--tes-black-light);
}

.personne-timeline {
    --timeline-gap: 26px;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: var(--timeline-gap);
    padding: 4px 4px 22px;
}

.personne-timeline-card {
    min-width: 0;
}

.personne-timeline-card__milestone {
    position: relative;
    height: 46px;
    color: var(--tes-grey);
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    font-variant-numeric: tabular-nums;
    margin-bottom: 15px;
}

.personne-timeline-card__milestone span {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 6px;
    line-height: 20px;
}

.personne-timeline-card__milestone::before {
    content: "";
    position: absolute;
    top: 34px;
    left: 0;
    width: calc(100% + var(--timeline-gap));
    height: 2px;
    background: linear-gradient(90deg, rgba(128, 85, 217, 0.24), rgba(183, 144, 255, 0.5), rgba(128, 85, 217, 0.24));
}

.personne-timeline-card:last-child .personne-timeline-card__milestone::before {
    width: 50%;
}

.personne-timeline-card__milestone::after {
    content: "";
    position: absolute;
    top: 30px;
    left: calc(50% - 5px);
    width: 10px;
    height: 10px;
    border: 2px solid var(--tes-purple-light);
    border-radius: 50%;
    background: var(--tes-black-light);
    box-shadow: 0 0 0 5px var(--tes-black);
}

.personne-timeline-card__poster {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border: 1px solid var(--tes-border);
    border-radius: 12px;
    background: var(--tes-card);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.24);
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.personne-timeline-card__poster img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.personne-timeline-card:hover .personne-timeline-card__poster {
    border-color: var(--tes-purple-light);
    transform: translateY(-4px);
}

.personne-timeline-card:hover .personne-timeline-card__poster img {
    transform: scale(1.035);
}

.personne-timeline-card__poster-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 38px;
}

.personne-timeline-card__rating {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 8px;
    border: 1px solid rgba(183, 144, 255, 0.28);
    border-radius: 5px;
    color: #fff;
    background: rgba(7, 7, 13, 0.84);
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1;
    backdrop-filter: blur(10px);
}

.personne-timeline-card__rating > span:first-child {
    color: #c5a5ff;
}

.personne-timeline-card__content {
    padding: 12px 2px 0;
}

.personne-timeline-card__title {
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 600;
}

.personne-timeline-card__title a {
    color: var(--tes-white);
    text-decoration: none;
}

.personne-timeline-card__title a:hover {
    color: var(--tes-purple-light);
}

/* Salaires — sélection des affiches et total de la sélection. */
.personne-salary-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 12px;
}

.personne-salary-summary {
    display: flex;
    flex: 1 1 260px;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.personne-salary-summary__label,
.personne-salary-hint {
    color: var(--tes-grey);
    font-size: 13px;
    line-height: 1.5;
}

.personne-salary-summary__total {
    color: var(--tes-purple-light);
    font-size: clamp(18px, 2vw, 28px);
    font-weight: 800;
    line-height: 1.35;
    font-variant-numeric: tabular-nums;
}

.personne-salary-hint {
    margin: 0 0 22px;
}

.personne-salary-sort {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.personne-salary-sort button {
    padding: 10px 14px;
    border: 1px solid var(--tes-border);
    border-radius: 999px;
    background: var(--tes-card);
    color: var(--tes-white);
    font: inherit;
    font-size: 12px;
    cursor: pointer;
}

.personne-salary-sort button[aria-pressed="true"] {
    border-color: var(--tes-purple-light);
    background: var(--tes-purple-dark);
}

.personne-salary-sort button:focus-visible {
    outline: 2px solid var(--tes-purple-light);
    outline-offset: 3px;
}

.personne-salary-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.personne-salary-card__selection {
    cursor: pointer;
}

.tesseract-personne .personne-salary-card__checkbox {
    position: absolute;
    z-index: 2;
    top: 10px;
    left: 10px;
    width: 22px;
    height: 22px;
    margin: 0;
    appearance: auto;
    accent-color: var(--tes-purple);
    cursor: pointer;
}

.personne-salary-card__checkbox:focus-visible {
    outline: 3px solid var(--tes-purple-light);
    outline-offset: 3px;
}

.personne-salary-card__checkbox:not(:checked) ~ img,
.personne-salary-card__checkbox:not(:checked) ~ .personne-people-card__fallback {
    filter: grayscale(1) brightness(.55);
}

.personne-salary-card.is-selected .personne-discover-card__portrait {
    outline: 2px solid var(--tes-purple-light);
    outline-offset: -2px;
}

.personne-salary-card__content {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 66%;
    margin-left: auto;
}

.personne-salary-card__film {
    margin: 0;
    color: var(--tes-white);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
}

.personne-salary-card__year {
    color: var(--tes-grey);
    font-size: 12px;
    font-weight: 500;
}

.personne-salary-card__source {
    color: var(--tes-purple-light);
    font-size: 12px;
    font-weight: 700;
    text-decoration: underline;
}

/* Classements de personnes — co-interprètes, réalisateurs, découverte */
.personne-ranking-intro {
    margin: 0 0 22px;
    color: var(--tes-grey);
    font-size: 13px;
    line-height: 1.5;
}

.personne-people-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 18px;
}

.personne-people-grid--discover {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: clamp(18px, 2.3vw, 38px);
}

.personne-people-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 10px;
    border: 1px solid var(--tes-border);
    border-radius: var(--tes-radius);
    background: var(--tes-card);
    color: var(--tes-white);
    text-align: center;
    text-decoration: none;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.personne-people-card:hover {
    border-color: var(--tes-purple-light);
    transform: translateY(-3px);
}

.personne-people-card__rank {
    position: absolute;
    top: 8px;
    left: 8px;
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--tes-purple);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
}

.personne-people-card__portrait {
    display: block;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--tes-black-light);
    border: 2px solid var(--tes-border);
}

.personne-people-card__portrait img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.personne-people-card__fallback {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    color: var(--tes-purple-light);
    font-size: 20px;
}

.personne-people-card__name {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
}

.personne-people-card__count {
    color: var(--tes-grey);
    font-size: 11px;
}

.personne-people-card__tooltip {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    z-index: 4;
    width: max-content;
    max-width: 240px;
    padding: 8px 10px;
    border: 1px solid var(--tes-border);
    border-radius: 8px;
    background: var(--tes-black-light);
    color: var(--tes-white);
    font-size: 12px;
    line-height: 1.4;
    text-align: left;
    opacity: 0;
    visibility: hidden;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
    transform: translate(-50%, -4px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
}

.personne-people-card:hover .personne-people-card__tooltip,
.personne-people-card:focus-visible .personne-people-card__tooltip {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

.personne-trivia-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.personne-trivia-list li {
    padding: 14px 18px;
    border: 1px solid var(--tes-border);
    border-radius: var(--tes-radius);
    background: var(--tes-card);
    color: var(--tes-white);
    font-size: 14px;
    line-height: 1.55;
}

.personne-trivia-list li a {
    margin-left: 8px;
    color: var(--tes-purple-light);
    font-size: 12px;
    text-decoration: underline;
}

/* Citations — blocs centrés, empilés, encadrés de guillemets violets. */
.personne-quote-grid {
    display: block;
}

.personne-quote-card {
    display: block;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
    background : radial-gradient(ellipse at top left, rgba(128, 85, 217, 0.1), transparent 65%), var(--tes-black-light);
    padding: 24px 20px 12px;
    border: 1px solid rgba(183, 144, 255, 0.12);
    border-radius: 18px;
}

.personne-quote-card + .personne-quote-card {
    margin-top: clamp(32px, 4vw, 56px);
}

.personne-quote-card__body {
    position: relative;
    padding-inline: clamp(32px, 5vw, 60px);
}

.personne-quote-card__mark {
    position: absolute;
    top: -0.06em;
    left: 0;
    color: var(--tes-purple-light);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(60px, 8vw, 90px);
    font-style: normal;
    line-height: 1;
    pointer-events: none;
    user-select: none;
}

.personne-quote-card__mark--closing {
    top: auto;
    right: 0;
    bottom: -0.25em;
    left: auto;
}

.tesseract-personne .personne-quote-card__text {
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    box-shadow: none;
    color: var(--tes-white);
    font-family: Bodoni, Georgia, "Times New Roman", serif;
    font-size: 30px;
    font-style: italic;
    font-weight: 400;
    line-height: 1.4;
    text-align: center;
    overflow-wrap: anywhere;
}

@media (max-width: 1000px) {
    .tesseract-personne .personne-quote-card__text {
        font-size: 10px;
    }
}

.tesseract-personne .personne-quote-card__text::before,
.tesseract-personne .personne-quote-card__text::after {
    content: none;
}

.personne-quote-card__source {
    margin: 10px 0 0;
    padding-inline: clamp(32px, 5vw, 60px);
    color: var(--tes-purple-light);
    font-family: Bodoni, Georgia, "Times New Roman", serif;
    font-size: clamp(16px, 1.5vw, 20px);
    line-height: 1.35;
}

.tesseract-personne .personne-quote-card__source a {
    color: inherit;
    text-decoration: none;
}

.tesseract-personne .personne-quote-card__source a:hover,
.tesseract-personne .personne-quote-card__source a:focus-visible {
    color: var(--tes-purple-light);
    text-decoration: underline;
}

.personne-discover {
    margin-top: 75px;
    --personne-discover-accent: #c79935;
}

.personne-discover .personne-block-title {
    font-size: clamp(28px, 3.1vw, 50px);
    font-weight: 700;
    line-height: 1.2;
}

.personne-discover .personne-block-line {
    height: 3px;
    margin: 26px 0 56px;
    background: var(--personne-discover-accent);
}

.personne-discover-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    color: var(--tes-white);
    text-align: left;
    text-decoration: none;
    overflow-wrap: anywhere;
    transition: transform 1s ease;
}

body.single-personne a.personne-discover-card:hover {
    text-decoration-line: none;
}

.personne-discover-card__portrait {
    display: block;
    width: 100%;
    aspect-ratio: 2 / 3;
    margin-bottom: 18px;
    overflow: hidden;
    border-radius: 12px;
    background: var(--tes-card);
}

.personne-discover-card__portrait img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.personne-discover-card__name {
    margin-bottom: 7px;
    color: var(--tes-white);
    font-size: clamp(12px, 1vw, 20px);
    font-weight: 800;
    line-height: 1.3;
}

.personne-discover-card__jobs {
    color: var(--tes-purple);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.personne-discover-card__nationalities {
    color: var(--tes-white);
    font-size: 12px;
    line-height: 1.4;
}

.personne-discover-card__count {
    color: var(--tes-grey);
    font-size: 13px;
    line-height: 1.4;
}

/* Top 10 : grands rangs en contour, portraits et badges violets. */
.tesseract-personne .personne-people-grid--ranking {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: clamp(220px, calc((100% - 96px) / 5), 320px);
    align-items: start;
    gap: 24px;
    padding: 8px 6px 18px;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    scroll-padding-inline: 6px;
}

.personne-ranked-card {
    scroll-snap-align: start;
}

.personne-ranked-card__visual {
    position: relative;
    display: block;
    width: 100%;
    container-type: inline-size;
}

.personne-ranked-card__rank {
    position: absolute;
    inset: 0 auto 0 0;
    display: flex;
    align-items: center;
    color: var(--tes-black);
    -webkit-text-stroke: 2px rgba(183, 144, 255, .55);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 110cqw;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -.08em;
    white-space: nowrap;
    pointer-events: none;
}

.personne-ranked-card__rank--double {
    font-size: 75cqw;
    letter-spacing: -.12em;
    transform: scaleX(var(--personne-rank-scale, .4));
    transform-origin: left center;
}

.personne-ranked-card .personne-discover-card__portrait {
    position: relative;
    z-index: 1;
    width: 66%;
    margin: 0 0 14px auto;
}

.personne-ranked-card .personne-discover-card__name {
    width: 66%;
    margin-left: auto;
    font-size: 14px;
}

.personne-ranked-card__count {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: max-content;
    max-width: calc(100% - 16px);
    padding: 7px 12px;
    border: 1px solid var(--tes-purple-light);
    border-bottom: 0;
    border-radius: 5px 5px 0 0;
    background: var(--tes-purple-dark);
    color: var(--tes-white);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.25;
    text-align: center;
    transform: translateX(-50%);
}

.personne-people-grid--ranking:focus-visible {
    outline: 2px solid var(--tes-purple-light);
    outline-offset: 3px;
}

/* Le soulignement du lien parent se propagerait à tous ses textes. */
.tesseract-personne .personne-people-card:hover,
.tesseract-personne .personne-people-card:focus,
.tesseract-personne .personne-discover-card:hover,
.tesseract-personne .personne-discover-card:focus {
    text-decoration: none;
}

.personne-people-card:hover .personne-people-card__name,
.personne-people-card:focus-visible .personne-people-card__name,
.personne-discover-card:hover .personne-discover-card__name,
.personne-discover-card:focus-visible .personne-discover-card__name {
    text-decoration: underline;
}

@media (hover: hover) and (pointer: fine) {
    .personne-discover-card:hover {
        transform: scale(1.05);
    }
}

.personne-discover-card:focus-visible {
    outline: 2px solid var(--personne-discover-accent, var(--tes-purple-light));
    outline-offset: 4px;
    border-radius: 12px;
}

@media (max-width: 900px) {
    .personne-timeline {
        --timeline-gap: 20px;
        grid-template-columns: none;
        grid-auto-flow: column;
        grid-auto-columns: clamp(150px, 42vw, 210px);
        align-items: start;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scroll-snap-type: x proximity;
        scroll-padding-inline: 4px;
    }

    .personne-timeline-card {
        scroll-snap-align: start;
    }

    .tesseract-personne .personne-people-grid--discover {
        grid-template-columns: none;
        grid-auto-flow: column;
        grid-auto-columns: clamp(160px, 42vw, 240px);
        gap: 20px;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scroll-snap-type: x proximity;
        scroll-padding-inline: 6px;
        margin-inline: -6px;
        padding: 6px 6px 16px;
    }

    .personne-discover-card {
        scroll-snap-align: start;
    }

    .personne-discover .personne-block-line {
        margin: 22px 0 28px;
    }
}

/* Hors du carrousel pour garder la liste des films visible au survol. */
.personne-films-tooltip {
    box-sizing: border-box;
    position: fixed;
    z-index: 100;
    width: max-content;
    max-width: min(320px, calc(100vw - 24px));
    max-height: min(360px, calc(100dvh - 24px));
    padding: 12px 14px;
    overflow-y: auto;
    overflow-wrap: anywhere;
    border: 1px solid var(--tes-border);
    border-radius: 8px;
    background: var(--tes-black-light);
    color: var(--tes-white);
    font-size: 12px;
    line-height: 1.5;
    text-align: left;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .4);
}

.personne-films-tooltip[hidden] {
    display: none;
}

/* Pop-up « façon Wikipédia » au survol des liens vers une personne */
.personne-hovercard {
    box-sizing: border-box;
    position: absolute;
    z-index: 60;
    display: flex;
    align-items: stretch;
    gap: 12px;
    width: max-content;
    max-width: calc(100vw - 24px);
    overflow-wrap: anywhere;
    padding: 14px;
    border: 1px solid var(--tes-border);
    border-radius: 10px;
    background: var(--tes-black-light);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
    pointer-events: none;
}

.personne-hovercard[hidden] {
    display: none;
}

.personne-hovercard__portrait {
    display: block;
    flex: 0 0 auto;
    align-self: stretch;
    width: auto;
    max-width: min(240px, calc((100vw - 66px) * .4));
    height: 120px;
    border-radius: 8px;
    object-fit: contain;
    background: var(--tes-black);
}

.personne-hovercard__portrait--fallback {
    display: grid;
    place-items: center;
    width: 88px;
    height: auto;
    color: var(--tes-purple-light);
    font-size: 24px;
}

.personne-hovercard__body {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    gap: 4px;
    width: 180px;
    max-width: calc((100vw - 66px) * .6);
    min-width: 0;
}

.personne-hovercard__name {
    color: var(--tes-white);
    font-size: 14px;
    line-height: 1.3;
}

.personne-hovercard__jobs {
    color: var(--tes-purple-light);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.personne-hovercard__bio {
    margin: 2px 0 0;
    color: var(--tes-grey);
    font-size: 12px;
    line-height: 1.45;
}

@media (max-width: 620px) {
    .personne-genre-bar {
        grid-template-columns: minmax(0, 110px) minmax(0, 1fr) 40px;
    }

    .personne-people-grid:not(.personne-people-grid--discover, .personne-people-grid--ranking) {
        grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
    }

    .personne-place-photos {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

