/* ============================================================
   CSS COMMUN À TOUTES LES PAGES DE CAST (fichier _includes/cast-style.html)
   Une modification faite ICI s'applique à TOUTES les pages.
   Les valeurs ci-dessous sont les valeurs PAR DÉFAUT. Pour changer un réglage
   sur UNE seule page (police du titre, taille des chansons, couleur d'un
   bandeau...), ne touche pas à ce fichier : ajoute la variable dans le petit
   bloc <style> :root { ... } de la page, juste sous l'include.
   ============================================================ */
:root {

  /* ---------- GÉNÉRAL ---------- */
  --cast-font: 'Open Sans', 'Noto Sans', sans-serif; /* 'Noto Sans' = secours pour le latin, cyrillique, grec, hindi... (les autres écritures ont leur propre police, voir plus bas) */
  --cast-max-width: 960px;        /* largeur max du contenu (les marges sur grand écran = ce qui reste de chaque côté) */
  --cast-side-padding: 10px;      /* marge gauche/droite de la page */
  --cast-accent: #2a5da0;         /* bleu du site (titre, liens) */
  --cast-text-color: #333;        /* couleur du texte courant */
  --cast-text-size: 13px;         /* taille du texte courant (tableaux, chansons, trivia...) */
  --cast-heading-color: #222;     /* couleur des titres de boîtes et en-têtes de tableaux */
  --cast-text-letter-spacing: 0px; /* espace entre les lettres du texte courant (tableaux, chansons, trivia...) */

  /* ---------- TITRE DU FILM (titre localisé + année) ---------- */
  --title-native-font: var(--cast-font);   /* police du titre localisé (voir la liste en haut du fichier pour les écritures non latines) */
  --title-native-size: 24px;
  --title-native-color: var(--cast-accent);
  --title-native-weight: 700;
  --title-year-gap: 7px;          /* espace entre le titre et l'année */
  --title-year-font: var(--cast-font);   /* police de l'année : reste celle du site même si le titre a une autre police (mets var(--title-native-font) pour la même que le titre) */
  --title-year-size: 24px;        /* taille de l'année (indépendante du titre : utile quand le titre est en hindi, arabe, etc. dont les lettres paraissent plus petites) */
  --title-year-weight: 700;
  --title-year-color: var(--title-native-color);
  --title-native-letter-spacing: 0px;   /* espace entre les lettres du titre localisé (à laisser à 0 pour hindi, arabe... : l'écriture est reliée) */
  --title-year-letter-spacing: 0px;
  --title-aka-color: var(--cast-text-color);   /* « then known as », « also known as »... dans le titre (classe .title-aka) : couleur du texte courant */
  --title-aka-weight: 500;                    /* 400 = normal, 700 = gras */
  --title-aka-style: italic;                  /* normal ou italic */
  --title-aka-size: 0.8em;                  /* smaller = un cran sous le titre, comme <small> (en suivant la taille du titre) ; inherit = même taille ; ou une valeur : 18px, 0.8em */

  /* ---------- TITRE ANGLAIS (sous le titre localisé) ---------- */
  --title-english-size: 15px;
  --title-english-color: var(--cast-text-color);
  --title-english-style: italic;  /* italic ou normal */
  --title-english-weight: 600;    /* 400 = normal, 700 = gras */
  --title-english-space-above: 6px;
  --title-english-space-below: 30px;
  --title-english-letter-spacing: 1px;

  /* ---------- TRAITS HORIZONTAUX ---------- */
  --hr-width: 70%;                /* largeur du trait (par rapport à la page) */
  --hr-color: #ddd;
  --hr-thickness: 1px;
  --hr-space-above: 0px;          /* espace au-dessus du trait */
  --hr-space-below: 40px;         /* espace en dessous du trait */

  /* ---------- ONGLETS (versions / doublages multiples) ---------- */
  --tab-align: flex-start;        /* position des onglets : flex-start (gauche), center, flex-end (droite) */
  --tab-gap: 0px;                 /* espace entre les onglets */
  --tab-pad-y: 16px;
  --tab-pad-x: 36px;
  --tab-size: 14px;
  --tab-weight: 700;
  --tab-letter-spacing: 0px;
  --tab-text-color: #000;
  --tab-bg: #f5f5f5;              /* fond des onglets inactifs */
  --tab-bg-hover: #ececec;        /* fond au survol */
  --tab-active-bg: transparent;   /* fond de l'onglet actif */
  --tab-underline-color: #000;    /* trait sous l'onglet actif */
  --tab-underline-thickness: 1px;
  --tab-space-below: 30px;        /* espace entre les onglets et le contenu */
  --tab-fade-duration: 0.25s;     /* fondu quand on change d'onglet (0s = instantané) */

  /* ---------- PHOTOS DES COMÉDIENS ---------- */
  --voice-gap: 20px;              /* espace entre les photos */
  --voice-card-min: 200px;        /* largeur mini d'une carte avant de passer à la ligne */
  --voice-card-max: 300px;        /* largeur maxi d'une carte (mets 100% pour tout remplir) */
  --voice-photo-ratio: 3 / 2;     /* forme de la photo (ici celle de ton image test) : 1 / 1 carré, 4 / 3, 3 / 4 portrait... */
  --voice-photo-radius: 6px;
  --voice-photo-border: 1px solid var(--cast-text-color);   /* fine bordure autour des photos (mets none pour l'enlever) */
  --voice-space-below: 50px;      /* espace entre les photos et la 1re boîte */
  /* effet au survol des photos */
  --voice-hover-shadow: 0 4px 10px rgba(0,0,0,0.10);  /* ombre au survol */
  --voice-hover-duration: 0.2s;  /* vitesse de l'ombre */
  --actor-name-gap: 14px;         /* espace entre la photo et le nom */
  --actor-name-size: 21px;
  --actor-name-color: var(--actor-dates-color);
  --actor-dates-gap: 5px;         /* espace entre le nom de l'acteur et ses dates */
  --actor-dates-size: 13px;
  --actor-dates-color: #555;
  --actor-name-letter-spacing: 1px;     /* espace entre les lettres des noms sous les photos */
  --actor-dates-letter-spacing: 0px;

  /* ---------- BOÎTES GRISES (Cast, Songs, Technical Staff...) ---------- */
  --box-rgb: 0, 0, 0;             /* couleur du fond en R, G, B (0,0,0 = noir) */
  --box-opacity: 0.016;           /* OPACITÉ du fond : 0 = invisible, 0.05 = gris léger, 0.1 = plus marqué */
  --box-radius: 10px;
  --box-pad-y: 22px;              /* espace intérieur haut/bas */
  --box-pad-x: 20px;              /* espace intérieur gauche/droite */
  --box-space-below: 40px;        /* espace entre deux boîtes */
  --box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  /* effet "verre poli" (mets --glass-gloss: 0 et --glass-edge: none pour le désactiver) */
  --glass-gloss: 1;               /* intensité du reflet blanc en diagonale (0 = aucun, 1 = blanc pur dans le coin) */
  --glass-gloss-size: 55%;        /* jusqu'où le reflet s'étend (haut-gauche vers bas-droite) */
  --glass-tint-top: 1;            /* teinte du gris en haut à gauche (multiplie --box-opacity) */
  --glass-tint-bottom: 1;         /* teinte du gris en bas à droite (multiplie --box-opacity) : 1 = même gris partout, plus grand = plus de contraste avec le reflet */
  --glass-border: 1px solid rgba(0,0,0,0.07);   /* fin liseré extérieur */
  /* Double trait sur les bords HAUT et DROIT (la lumière vient du haut-gauche), qui suit l'arrondi des coins :
     un liseré clair, puis un filet gris plus fin juste en dessous. Il disparaît en fondu en descendant le long du bord droit.
     Pour le désactiver : --glass-edge-light: transparent et --glass-edge-dark: transparent. */
  --glass-edge-light: rgba(255,255,255,0.95);   /* liseré clair */
  --glass-edge-dark: rgba(0,0,0,0.035);         /* filet gris sous le liseré */
  --glass-edge-hold: 20px;        /* hauteur sur laquelle le trait reste net en haut du bord droit */
  --glass-edge-fade: 110px;       /* hauteur à laquelle il a complètement disparu (plus petit = disparaît plus vite) */
  --glass-edge-top-start: 40%;    /* le trait du haut est invisible jusqu'ici (en % de la largeur, depuis la gauche) */
  --glass-edge-top-full: 95%;     /* ...puis apparaît progressivement et est net à partir d'ici (vers le coin haut-droit) */

  /* ---------- TITRES DES BOÎTES (Cast, Songs... + Gallery) ---------- */
  --box-title-size: 17px;
  --box-title-color: var(--cast-heading-color);
  --box-title-weight: 700;
  --box-title-space-below: 16px;
  --box-title-letter-spacing: 0px;      /* aussi appliqué au titre "Gallery" */

  /* ---------- TABLEAUX (Cast, Technical Staff) ---------- */
  --table-head-size: 12px;
  --table-head-letter-spacing: 0px;
  --table-row-border: #e3e3e3;    /* trait entre les lignes du tableau Cast */
  --table-cell-pad-x: 10px;       /* espace intérieur gauche/droite de chaque cellule : l'écart entre deux colonnes = 2 x cette valeur */
  --cast-names-wrap: nowrap;      /* colonnes 1 et 2 : nowrap = aussi larges que leur plus long nom (la colonne Voices prend le reste) ; normal = elles peuvent passer à la ligne */
  --cast-native-name-font: var(--title-native-font);   /* police de la colonne des noms natifs du tableau Cast (par défaut : celle du titre du film) */
  --cast-native-name-scale: 1;    /* taille des noms natifs : multiple du texte courant (1 = normal ; 1.2 = +20%) */

  /* ---------- BANDEAUX DE CATÉGORIE (dans le tableau Cast : "Disney Princesses", "Movie characters"...) ---------- */
  --banner-bg: #e8f1fb;           /* couleur de fond par défaut des bandeaux (modifiable bandeau par bandeau, voir l'exemple en bas du tableau) */
  --banner-height: 70px;          /* hauteur de TOUS les bandeaux (l'image prend toute la largeur ; si elle est trop haute, elle est rognée en haut et en bas, jamais déformée) */
  --banner-img-position: left center;  /* partie de l'image gardée quand elle est rognée : left center, center, right center, top, bottom... */
  --banner-text-offset: 50px;    /* décale le texte vers la droite (pour dégager le logo à gauche de l'image) ; 0px = collé à gauche */
  --banner-justify: flex-start;   /* position du texte sur l'image : flex-start = à gauche, center = centré, flex-end = à droite */
  --banner-text-font: 'Cinzel', var(--cast-font), serif;   /* police du texte des bandeaux (mets var(--cast-font) pour revenir à celle du site) */
  --banner-text-size: 20px;       /* ajuste selon la police (les polices décoratives paraissent plus grandes ou plus petites que celle du site) */
  --banner-text-letter-spacing: 2px;   /* espace entre les lettres du texte des bandeaux */
  --banner-text-weight: 600;      /* Cinzel est variable : de 400 (normal) à 900 (très gras) */
  --banner-text-color: #fff;      /* couleur du texte */
  --banner-text-shadow: 0 1px 6px rgba(0,0,0,0.85);   /* ombre noire douce (pour l'enlever : 0 0 0 transparent) */
  /* Effets animés (classes "sparkle" et "glow" à ajouter sur le <td class="cast-banner">) */
  --banner-sparkle-color: 255,255,255;   /* couleur de la poussière de fée, en R,G,B */
  --banner-spark-size-min: 2px;          /* taille des plus petits grains */
  --banner-spark-size-max: 6px;          /* taille des plus gros grains */
  --banner-spark-density: 7px;           /* 1 grain tous les ~7px de trajet (plus petit = traînée plus fournie) */
  --banner-spark-life: 1.8s;             /* durée de vie d'un grain = longueur de la traînée derrière la tête (plus grand = traînée plus longue) */
  --banner-wave-duration: 7s;            /* durée d'un cycle complet (traversée + pause) */
  --banner-wave-crossing: 3.4s;          /* temps que met la poussière pour traverser le bandeau (le reste du cycle = pause) */
  --banner-glow-color: 190,215,248;      /* couleur de la lueur derrière le texte, en R,G,B (un bleu doux : du blanc ne se verrait pas sur un fond aussi clair) */
  --banner-dust-halo: 120,170,240;       /* couleur du petit halo autour des grains de poussière, en R,G,B */
  --banner-glow-size: 18px;              /* de combien la lueur dépasse autour du texte */
  --banner-glow-strength: 0.9;           /* intensité de la lueur au plus fort (0 à 1) */

  --staff-table-max-width: 100%;   /* largeur max du tableau Technical Staff (100% = toute la boîte, évite que les noms longs passent à la ligne ; mets 420px pour le resserrer au centre) */

  /* ---------- LISTES À 2 COLONNES (Additional voices / Choir) ---------- */
  --voices-column-gap: 24px;      /* espace central entre colonne gauche et droite */
  --voices-row-gap: 8px;
  --voices-subtitle-size: 14px;          /* taille d'un sous-titre placé entre deux listes (class="voices-subtitle") */
  --voices-subtitle-space-above: 28px;  /* espace entre la liste du dessus et le sous-titre */
  --voices-subtitle-space-below: 16px;  /* espace entre le sous-titre et la liste du dessous */

  /* ---------- CHANSONS ---------- */
  --song-space-between: 18px;     /* espace entre deux chansons */
  --song-line-height: 1.5;
  --song-native-size: 1em;   /* taille des titres natifs des chansons (1em = taille normale du texte ; 1.15em = +15%) */
  --song-native-font: var(--title-native-font);       /* police des titres natifs des chansons (par défaut : la même que le titre du film) */
  --song-native-weight: var(--title-native-weight);   /* graisse des titres natifs des chansons (par défaut : la même que le titre du film) */

  /* ---------- LIENS (quand tu en ajoutes) ---------- */
  --link-color: var(--cast-accent);

  /* ---------- TRIVIA ---------- */
  --trivia-space-above: 40px;
  --trivia-line-height: 1.6;

  /* ---------- GALERIE ---------- */
  --gallery-gap: 12px;            /* espace entre les miniatures */
  --gallery-fade-width: 60px;     /* largeur du fondu blanc sur les bords quand il reste des images à faire défiler (0px = pas de fondu) */
  --gallery-thumb-size: 200px;    /* côté des miniatures carrées */
  --gallery-placeholder: rgba(0, 0, 0, 0.06);   /* fond gris des miniatures pendant leur chargement (transparent pour l'enlever) */
  --gallery-photo-radius: 6px;
  --gallery-space-above: 50px;    /* espace au-dessus du titre "Gallery" */
  --gallery-veil: rgba(42,93,160,0.6);         /* voile sur la miniature au survol (bleu du site, 42,93,160 ; change le dernier chiffre pour l'opacité) */
  --gallery-caption-size: 13px;                /* taille de la légende sur la miniature */
  --lightbox-caption-size: 15px;               /* taille de la légende sous l'image ouverte */
  --gallery-arrow-bg: rgba(255,255,255,0.95);  /* flèches de défilement des miniatures */
  --gallery-arrow-color: var(--cast-accent);
  --gallery-arrow-size: 38px;
  --lightbox-bg: rgba(0,0,0,0.88);             /* fond de la galerie plein écran */

  /* ---------- LIENS VERS LES PAGES SIMILAIRES (bas de page) ----------
     À gauche : films précédents (flèche à gauche). À droite : films suivants (flèche à droite). */
  --related-size: 13px;
  --related-color: #9a3b3b;
  --related-style: italic;
  --related-space-above: 40px;
  --related-line-space: 6px;      /* espace entre deux liens empilés */
  --related-letter-spacing: 0px;
  --related-arrow-gap: 6px;       /* espace entre la flèche et le texte */

  /* ---------- SOURCES + CONTACT (bas de page) ---------- */
  --sources-size: 12px;           /* un cran en dessous du texte courant (--cast-text-size) */
  --sources-color: var(--cast-text-color);
  --sources-style: italic;
  --sources-line-height: 1.7;
  --sources-letter-spacing: 0px;
  --sources-space-above: 40px;
}

/* LIENS : pas de soulignage par défaut, seulement au survol. Limité au contenu de la
   page (.cast-wrap) pour ne pas toucher au menu du header, qui a son propre soulignement. */
.cast-wrap a {
  text-decoration: none;
}
.cast-wrap a[href]:hover {    /* seulement les VRAIS liens (avec href) : un <a> sans href ne réagit pas au survol */
  text-decoration: underline;
}

body {
  font-family: var(--cast-font) !important;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.cast-wrap {
  max-width: var(--cast-max-width);
  margin: 0 auto 100px;
  padding: 60px var(--cast-side-padding) 0;
  box-sizing: border-box;
  color: var(--cast-text-color);
  letter-spacing: var(--cast-text-letter-spacing);   /* hérité par tout le texte, sauf éléments qui ont leur propre réglage */
}

/* ============================================================
   TITRE DU FILM
   ============================================================ */
.cast-title-native {
  text-align: center;
  font-family: var(--title-native-font);
  font-size: var(--title-native-size);
  font-weight: var(--title-native-weight);
  color: var(--title-native-color);
  letter-spacing: var(--title-native-letter-spacing);
}
.cast-title-native .native-year {
  font-family: var(--title-year-font);
  margin-left: var(--title-year-gap);
  font-size: var(--title-year-size);
  font-weight: var(--title-year-weight);
  color: var(--title-year-color);
  letter-spacing: var(--title-year-letter-spacing);
}
/* Mots intercalés dans le titre localisé : <span class="title-aka">then known as</span> */
.cast-title-native .title-aka {
  color: var(--title-aka-color);
  font-weight: var(--title-aka-weight);
  font-style: var(--title-aka-style);
  font-size: var(--title-aka-size);
}
.cast-title-english {
  text-align: center;
  font-size: var(--title-english-size);
  font-style: var(--title-english-style);
  font-weight: var(--title-english-weight);
  color: var(--title-english-color);
  letter-spacing: var(--title-english-letter-spacing);
  margin-top: var(--title-english-space-above);
  margin-bottom: var(--title-english-space-below);
}

/* Trait horizontal (utilisé 2 fois : sous le titre, et avant la trivia) */
.cast-hr {
  border: none;
  border-top: var(--hr-thickness) solid var(--hr-color);
  width: var(--hr-width);
  margin: var(--hr-space-above) auto var(--hr-space-below);
}

/* ============================================================
   PHOTOS DES COMÉDIENS — elles se partagent toute la largeur
   disponible (jusqu'à --voice-card-max chacune) et passent à la
   ligne toutes seules s'il y en a beaucoup.
   ============================================================ */
.voice-cast {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--voice-gap);
  margin-bottom: var(--voice-space-below);
}
.voice-card {
  flex: 1 1 var(--voice-card-min);
  max-width: var(--voice-card-max);
  text-align: center;
}
.voice-card img {
  width: 100%;
  aspect-ratio: var(--voice-photo-ratio);
  object-fit: cover;
  display: block;
  border-radius: var(--voice-photo-radius);
  border: var(--voice-photo-border);
  box-sizing: border-box;
  transition: box-shadow var(--voice-hover-duration) ease-in-out;
}
.voice-card img:hover {
  box-shadow: var(--voice-hover-shadow);
}
.voice-card .actor-name {
  margin-top: var(--actor-name-gap);
  font-size: var(--actor-name-size);
  color: var(--actor-name-color);
  letter-spacing: var(--actor-name-letter-spacing);
}
.voice-card .actor-dates {
  margin-top: var(--actor-dates-gap);
  font-size: var(--actor-dates-size);
  font-style: normal;
  color: var(--actor-dates-color);
  letter-spacing: var(--actor-dates-letter-spacing);
}

/* ============================================================
   BOÎTES GRISES (Cast / Additional voices / Choir / Songs /
   Technical Staff) — même style pour toutes.
   ============================================================ */
.info-box {
  position: relative;
  background: linear-gradient(135deg,
    rgba(var(--box-rgb), calc(var(--box-opacity) * var(--glass-tint-top))) 0%,
    rgba(var(--box-rgb), calc(var(--box-opacity) * var(--glass-tint-bottom))) 100%);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);   /* flou de ce qui est derrière (visible seulement si la page a un fond image) */
  border: var(--glass-border);
  border-radius: var(--box-radius);
  padding: var(--box-pad-y) var(--box-pad-x);
  margin-bottom: var(--box-space-below);
  box-shadow: var(--box-shadow);
  scroll-margin-top: 20px; /* marge d'arrivée quand on remonte via une flèche ↑ des sources */
}

/* Reflet de verre : bande blanche douce en diagonale depuis le coin haut-gauche */
.info-box::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(115deg, rgba(255,255,255,var(--glass-gloss)) 0%, rgba(255,255,255,0) var(--glass-gloss-size));
  pointer-events: none;
}
/* Double trait haut + droite, en fondu vers le bas */
.info-box::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border-style: solid;
  border-color: var(--glass-edge-light);
  border-width: 1px 1px 0 0;
  box-shadow: inset -1px 1px 0 var(--glass-edge-dark);
  /* deux fondus combinés : le trait du haut apparaît de gauche à droite, et le bord droit disparaît vers le bas */
  -webkit-mask-image:
    linear-gradient(to right, transparent var(--glass-edge-top-start), #000 var(--glass-edge-top-full)),
    linear-gradient(to bottom, #000 0, #000 var(--glass-edge-hold), transparent var(--glass-edge-fade));
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, transparent var(--glass-edge-top-start), #000 var(--glass-edge-top-full)),
    linear-gradient(to bottom, #000 0, #000 var(--glass-edge-hold), transparent var(--glass-edge-fade));
  mask-composite: intersect;
  pointer-events: none;
}
.info-box > * {
  position: relative;   /* garde le contenu au-dessus du reflet */
}

/* Titre des boîtes ET titre "Gallery" : même style, même alignement
   (le titre Gallery reprend le même retrait que le texte des boîtes). */
.info-box-title,
.gallery-title,
.sources-title {
  font-size: var(--box-title-size);
  font-weight: var(--box-title-weight);
  color: var(--box-title-color);
  letter-spacing: var(--box-title-letter-spacing);
  text-align: left;
}
.info-box-title {
  margin-bottom: var(--box-title-space-below);
}
.gallery-title {
  padding-left: var(--box-pad-x);
  margin: var(--gallery-space-above) 0 var(--box-title-space-below);
}

.sources-title {
  padding-left: var(--box-pad-x);
  margin: var(--sources-space-above) 0 var(--box-title-space-below);
}

/* --- Tableau "Cast" --- */
.cast-table {
  width: 100%;
  border-collapse: collapse;
}
.cast-table th {
  text-align: center;
  font-size: var(--table-head-size);
  font-weight: 700;
  color: var(--cast-heading-color);
  letter-spacing: var(--table-head-letter-spacing);
  padding: 6px var(--table-cell-pad-x) 10px;
}
.cast-table td {
  font-size: var(--cast-text-size);
  color: var(--cast-text-color);
  padding: 10px var(--table-cell-pad-x);
  border-top: 1px solid var(--table-row-border);
  text-align: center;
  line-height: 1.36;   /* hauteur de ligne FIXE (= celle d'Open Sans) : les polices natives très hautes (Amiri, etc.) n'agrandissent plus les lignes */
}
/* Colonne 1 (noms natifs) : police réglable par page (--cast-native-name-font) et taille réglable
   (--cast-native-name-scale, un multiple du texte courant). Les cellules seules sur leur ligne
   (voix d'un rowspan) sont ignorées. */
.cast-table td:first-child:not(:only-child) {
  font-family: var(--cast-native-name-font);
  font-size: calc(var(--cast-text-size) * var(--cast-native-name-scale));
}
/* Colonnes 1 et 2 (noms du personnage) : aussi larges que leur plus long contenu,
   la colonne "Voices" prend tout le reste. (Les cellules seules sur leur ligne,
   ex : voix supplémentaires d'un rowspan, sont ignorées.) */
.cast-table th:nth-child(-n+2),
.cast-table td:nth-child(-n+2):not(:only-child) {
  width: 1%;
  white-space: var(--cast-names-wrap);
}
@media (max-width: 600px) {
  .cast-table th:nth-child(-n+2),
  .cast-table td:nth-child(-n+2):not(:only-child) { white-space: normal; }  /* sur mobile : retour à la ligne autorisé */
}
.cast-table a {
  color: var(--link-color);
  text-decoration: none;
  font-weight: 600;
}
.cast-table a:hover {
  text-decoration: underline;
}

.cast-table tr[id] {
  scroll-margin-top: 20px;   /* espace au-dessus du bandeau quand on arrive via un lien */
}
/* --- Bandeau de catégorie : ligne pleine largeur, hauteur fixe (--banner-height) ;
       l'image remplit tout le bandeau, le texte (optionnel) se pose PAR-DESSUS --- */
.cast-table td.cast-banner {
  padding: 0;
  background: var(--banner-bg);
  border-top: 1px solid var(--table-row-border);
  border-bottom: 1px solid var(--table-row-border);
}
.cast-banner .banner-inner {
  position: relative;
  height: var(--banner-height);
  display: flex;
  align-items: center;
  overflow: hidden;
}
/* ----- Effet "étincelles" (class="cast-banner sparkle") : une traînée de poussière de fée qui
         traverse le bandeau en ondulant. Une petite étoile brillante ouvre la voie et laisse
         derrière elle des grains qui scintillent, dérivent doucement et s'éteignent.
         Les éléments sont créés et animés par le petit script en bas de page. ----- */
.banner-sparkles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.banner-dust {
  position: absolute;
  left: 0;
  top: 0;
  border-radius: 50%;
  opacity: 0;
  background: radial-gradient(circle, rgba(var(--banner-sparkle-color), 1) 0, rgba(var(--banner-sparkle-color), 0.95) 40%, rgba(var(--banner-sparkle-color), 0) 72%);
  box-shadow: 0 0 5px 1px rgba(var(--banner-dust-halo), 0.6);   /* léger halo bleu pour qu'ils ressortent sur le fond pastel */
  will-change: transform, opacity;
}
.banner-dust.head {
  box-shadow: 0 0 8px 2px rgba(var(--banner-sparkle-color), 0.95), 0 0 18px 6px rgba(var(--banner-dust-halo), 0.7);
}

/* ----- Effet "halo" (class="cast-banner glow") : une lueur douce derrière le texte qui apparaît
         et disparaît en fondu. Avec "sparkle" en plus, elle s'allume quand la poussière passe dessus.
         (Le calque de lueur est créé et placé derrière le texte par le script en bas de page.) ----- */
.banner-glow {
  position: absolute;
  pointer-events: none;
  opacity: 0;
  border-radius: 50%;
  background: radial-gradient(closest-side,
    rgba(var(--banner-glow-color), 0.95) 0%,
    rgba(var(--banner-glow-color), 0.75) 25%,
    rgba(var(--banner-glow-color), 0.4) 50%,
    rgba(var(--banner-glow-color), 0.15) 75%,
    rgba(var(--banner-glow-color), 0) 100%);
  animation: bannerGlowFade var(--banner-wave-duration) ease-in-out infinite;
}
@keyframes bannerGlowFade {
  0%, 20%, 80%, 100% { opacity: 0; }
  50%                { opacity: var(--banner-glow-strength); }
}
@media (prefers-reduced-motion: reduce) {
  .banner-sparkles { display: none; }
  .banner-glow { display: none; }
}

.cast-banner img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--banner-img-position);
}
.cast-banner .banner-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: var(--banner-justify);
  padding: 0 calc(var(--table-cell-pad-x) + 14px) 0 calc(var(--table-cell-pad-x) + 14px + var(--banner-text-offset));
  font-family: var(--banner-text-font);
  font-size: var(--banner-text-size);
  font-weight: var(--banner-text-weight);
  color: var(--banner-text-color);
  letter-spacing: var(--banner-text-letter-spacing);
  text-shadow: var(--banner-text-shadow);
}

/* --- Listes "Additional voices" / "Choir" ---
   2 colonnes : la colonne de gauche est alignée à droite, celle de
   droite à gauche (elles se rejoignent au centre). L'ordre d'ajout
   se lit ligne par ligne : Nom 1, Nom 2 / Nom 3, Nom 4 / Nom 5...
   Un nombre impair : la dernière voix est centrée sous les deux colonnes. */
.voices-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: var(--voices-column-gap);
  row-gap: var(--voices-row-gap);
  font-size: var(--cast-text-size);
  color: var(--cast-text-color);
}
.voices-grid > div:nth-child(odd)  { text-align: right; }
.voices-grid > div:nth-child(even) { text-align: left; }
/* Nombre impair : la dernière voix (seule sur sa ligne) est centrée sous les deux colonnes. */
.voices-grid > div:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  text-align: center;
}
.voices-grid a {
  color: var(--link-color);
  text-decoration: none;
  font-weight: 600;
}
.voices-grid a:hover {
  text-decoration: underline;
}

/* Sous-titre centré entre deux listes (ex : "International Additional Voices") :
   <div class="voices-subtitle">Texte</div> entre deux <div class="voices-grid">. */
.voices-subtitle {
  text-align: center;
  font-size: var(--voices-subtitle-size);
  font-weight: 700;
  color: var(--cast-text-color);
  margin: var(--voices-subtitle-space-above) 0 var(--voices-subtitle-space-below);
}

/* --- Liste "Songs" --- */
.song-list {
  list-style: disc;
  padding-left: 20px;
  margin: 0;
  font-size: var(--cast-text-size);   /* taille unique pour tout le texte des chansons */
  line-height: var(--song-line-height);
  color: var(--cast-text-color);
}
.song-item {
  margin-bottom: var(--song-space-between);
}
.song-item .song-title-native {
  font-family: var(--song-native-font);
  font-weight: var(--song-native-weight);
  font-size: var(--song-native-size);
}
/* Guillemets générés ici : ils restent dans la police du site */
.song-item .song-title-native::before,
.song-item .song-title-native::after {
  font-family: var(--cast-font);
  font-weight: 700;
}
.song-item .song-title-native::before { content: "«\00a0"; }
.song-item .song-title-native::after  { content: "\00a0»"; }

.song-item .song-title-native a,
.song-item .performed-by a {
  color: var(--link-color);
  text-decoration: none;
}
.song-item .song-title-native a:hover,
.song-item .performed-by a:hover {
  text-decoration: underline;
}
/* Italique uniquement là où tu mets des balises <i> : "performed by :"
   et les noms de personnages entre parenthèses. */
.song-item .performed-by {
  display: block;
  margin-top: 4px;
  font-style: normal;
}

/* --- "Technical Staff" --- */
.staff-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 auto;
  max-width: var(--staff-table-max-width);
}
.staff-table td {
  padding: 4px 10px;
  font-size: var(--cast-text-size);
}
.staff-table td.staff-name {
  text-align: right;
  color: var(--cast-text-color);
  width: 50%;
}
.staff-table td.staff-role {
  text-align: left;
  font-weight: 700;
  color: var(--cast-heading-color);
}
.staff-table td.staff-multi {
  line-height: 2;   /* interligne des noms empilés avec <br> dans une même cellule */
}
.studio-line {
  text-align: center;
  font-style: italic;
  color: var(--cast-text-color);
  margin-top: 16px;
  font-size: var(--cast-text-size);
}

/* ============================================================
   TRIVIA
   ============================================================ */
.cast-trivia {
  margin: var(--trivia-space-above) 0 0;
  padding-left: 20px;
  font-size: var(--cast-text-size);
  color: var(--cast-text-color);
  line-height: var(--trivia-line-height);
}
.cast-trivia li {
  margin-bottom: 8px;
}
.cast-trivia li ul {
  margin: 8px 0 0;            /* espace entre le texte d'intro et la 1re sous-puce (augmente pour plus d'air) */
  padding-left: 15px;
  list-style-type: "– ";     /* forme des puces de la sous-liste */
}
.cast-trivia li ul li::marker {
  color: var(--cast-text-color);   /* couleur de la puce */
}
.cast-trivia li ul li:last-child {
  margin-bottom: 0;            /* évite de doubler l'espace sous la dernière sous-puce */
}
/* ============================================================
   GALERIE (diaporama) — miniatures carrées qui défilent avec des
   flèches quand il y en a plus que la place disponible ; un clic
   ouvre la galerie plein écran (flèches clavier/écran, Échap ou
   clic à l'extérieur pour fermer).
   ============================================================ */
.gallery-carousel {
  position: relative;
}
.gallery-track {
  display: flex;
  gap: var(--gallery-gap);
  width: max-content;      /* centré quand tout rentre... */
  max-width: 100%;         /* ...et défilable quand ça déborde */
  /* Marge intérieure : laisse la place à l'agrandissement au survol et à l'ombre,
     sinon le défilement les coupe (coins qui paraissent carrés). Les marges
     négatives compensent pour que la mise en page ne bouge pas. */
  padding: 10px 8px;
  box-sizing: content-box;
  margin: -10px auto;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;   /* pas de barre de défilement visible */
  /* Fondu sur les bords : les images disparaissent doucement là où il y en a d'autres
     à faire défiler (le script ajoute fade-left / fade-right sur .gallery-carousel). */
  --fade-l: 0px;
  --fade-r: 0px;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 var(--fade-l), #000 calc(100% - var(--fade-r)), transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 var(--fade-l), #000 calc(100% - var(--fade-r)), transparent 100%);
  transition: --fade-l 0.2s ease, --fade-r 0.2s ease;
}
@property --fade-l { syntax: '<length>'; inherits: false; initial-value: 0px; }
@property --fade-r { syntax: '<length>'; inherits: false; initial-value: 0px; }
.gallery-carousel.fade-left  .gallery-track { --fade-l: var(--gallery-fade-width); }
.gallery-carousel.fade-right .gallery-track { --fade-r: var(--gallery-fade-width); }
.gallery-track::-webkit-scrollbar {
  display: none;
}
/* Chaque miniature est entourée automatiquement d'un .gallery-item (par le script du bas) */
.gallery-item {
  position: relative;
  flex: 0 0 auto;
  width: var(--gallery-thumb-size);
  height: var(--gallery-thumb-size);
  border-radius: var(--gallery-photo-radius);
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  cursor: pointer;
  transition: transform 0.2s ease;
}
.gallery-item:hover {
  transform: scale(1.04);
}
.gallery-item {
  background: var(--gallery-placeholder);   /* carré gris en attendant que l'image charge */
}
.gallery-item img {
  border-radius: inherit;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  color: transparent;   /* cache le texte alt pendant le chargement */
}
/* Avant que le script entoure chaque miniature d'un .gallery-item, l'image a déjà sa taille et son fond gris :
   plus de grandes images qui s'affichent puis rétrécissent. */
.gallery-track > img {
  flex: 0 0 auto;
  width: var(--gallery-thumb-size);
  height: var(--gallery-thumb-size);
  object-fit: cover;
  border-radius: var(--gallery-photo-radius);
  background: var(--gallery-placeholder);
  color: transparent;
}
/* Légende : voile bleu transparent + texte, visible au survol (seulement si data-caption est rempli) */
.gallery-caption {
  position: absolute;
  inset: 0;
  border-radius: inherit;   /* suit les coins arrondis de la miniature */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  box-sizing: border-box;
  background: var(--gallery-veil);
  color: #fff;
  font-size: var(--gallery-caption-size);
  line-height: 1.35;
  text-align: center;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.gallery-item:hover .gallery-caption {
  opacity: 1;
}
/* Flèches de défilement des miniatures (cachées tant qu'il n'y a rien à faire défiler) */
.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: var(--gallery-arrow-size);
  height: var(--gallery-arrow-size);
  border: none;
  border-radius: 50%;
  background: var(--gallery-arrow-bg);
  color: var(--gallery-arrow-color);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
  display: none;
  z-index: 2;
}
.gallery-arrow.visible { display: block; }
.gallery-arrow.prev { left: 6px; }
.gallery-arrow.next { right: 6px; }

/* Galerie plein écran */
.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--lightbox-bg);
  z-index: 100;
  align-items: center;
  justify-content: center;
}
.lightbox-overlay.open {
  display: flex;
}
.lightbox-figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.lightbox-caption {
  margin-top: 12px;
  max-width: 80vw;
  color: #fff;
  font-size: var(--lightbox-caption-size);
  line-height: 1.4;
  text-align: center;
}
.lightbox-caption:empty {
  display: none;
}
.lightbox-overlay img {
  max-width: 90vw;
  max-height: 78vh;
  border-radius: 4px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.5);
}
.lightbox-btn {
  position: absolute;
  border: none;
  background: rgba(255,255,255,0.15);
  color: #fff;
  cursor: pointer;
  border-radius: 50%;
  width: 46px;
  height: 46px;
  font-size: 26px;
  line-height: 1;
  transition: background 0.2s ease;
}
.lightbox-btn:hover {
  background: rgba(255,255,255,0.3);
}
.lightbox-btn.prev  { left: 20px;  top: 50%; transform: translateY(-50%); }
.lightbox-btn.next  { right: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-btn.close { right: 20px; top: 20px; font-size: 22px; }
.lightbox-counter {
  position: absolute;
  bottom: 18px;
  left: 0;
  right: 0;
  text-align: center;
  color: #fff;
  font-size: 14px;
  opacity: 0.8;
}

/* ============================================================
   LIENS VERS LES PAGES SIMILAIRES (bas de page)
   .related-prev = films qui viennent AVANT (à gauche, flèche ◄, texte
   aligné à gauche). .related-next = films qui viennent APRÈS (à droite,
   flèche ►, texte aligné à droite). Chacun peut contenir plusieurs
   liens (un par ligne), ou être supprimé s'il n'y en a pas.
   ============================================================ */
.cast-related {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-top: var(--related-space-above);
}
.related-prev {
  text-align: left;
}
.related-next {
  text-align: right;
  margin-left: auto;   /* reste à droite même s'il n'y a pas de bloc "prev" */
}
.cast-related a {
  display: block;
  margin-bottom: var(--related-line-space);
  font-style: var(--related-style);
  font-size: var(--related-size);
  letter-spacing: var(--related-letter-spacing);
  color: var(--related-color);
  text-decoration: none;
}
/* Avec lien (href) : bleu du site, souligné au survol.
   Sans href (page pas encore créée) : reste dans le rouge ci-dessus, sans réaction. */
.cast-related a[href] {
  color: var(--link-color);
}
.cast-related a[href]:hover {
  text-decoration: underline;
}
.related-arrow {
  display: inline-block;      /* évite que la flèche soit soulignée au survol */
  font-style: normal;
}
.related-prev .related-arrow {
  transform: scaleX(-1);      /* même flèche, retournée vers la gauche */
  margin-right: var(--related-arrow-gap);
}
.related-next .related-arrow {
  margin-left: var(--related-arrow-gap);
}

/* ============================================================
   ONGLETS — plusieurs doublages sur la même page
   (le titre, les trivia, la galerie et les films liés restent communs ;
   chaque onglet a ses photos, ses encadrés et ses sources)
   ============================================================ */
.version-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: var(--tab-align);
  gap: var(--tab-gap);
  margin-bottom: var(--tab-space-below);
}
.version-tab {
  font-family: inherit;
  font-size: var(--tab-size);
  font-weight: var(--tab-weight);
  letter-spacing: var(--tab-letter-spacing);
  color: var(--tab-text-color);
  background: var(--tab-bg);
  padding: var(--tab-pad-y) var(--tab-pad-x);
  border: none;
  border-bottom: var(--tab-underline-thickness) solid transparent;
  cursor: pointer;
  transition: background 0.2s ease;
}
.version-tab:hover {
  background: var(--tab-bg-hover);
}
.version-tab.active {
  background: var(--tab-active-bg);
  border-bottom-color: var(--tab-underline-color);
  cursor: default;
}
.version-panel,
.version-sources {
  display: none;
}
.version-panel.active,
.version-sources.active {
  display: block;
  animation: version-fade var(--tab-fade-duration) ease;
}
@keyframes version-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ============================================================
   SOURCES + CONTACT (tout en bas)
   ============================================================ */
.sources-list {
  margin: 0;
  padding-left: calc(var(--box-pad-x) + 22px);   /* alignée sur le titre "Sources" */
  font-size: var(--sources-size);
  font-style: var(--sources-style);
  color: var(--sources-color);
  letter-spacing: var(--sources-letter-spacing);
  line-height: var(--sources-line-height);
}
.sources-list li {
  margin-bottom: 2px;
}
/* Liens des sources : couleur du site, sans changement une fois visités */
.sources-list a:not(.back-ref),
.sources-list a:not(.back-ref):visited {
  color: var(--link-color);
  text-decoration: none;
}
.sources-list a:not(.back-ref):hover {
  text-decoration: underline;
}
/* Petite flèche ↑ optionnelle : remonte vers une boîte de la page */
.sources-list .back-ref {
  font-style: normal;
  font-weight: 700;
  color: var(--link-color);
  text-decoration: none;
  margin-left: 4px;
}
.sources-list .back-ref:hover {
  text-decoration: underline;
}
.cast-note {
  text-align: right;
  font-size: var(--sources-size);
  font-style: var(--sources-style);
  color: var(--sources-color);
  letter-spacing: var(--sources-letter-spacing);
  margin: 16px 0 0;
}
.cast-note a {
  color: var(--link-color);
  font-weight: 600;
  text-decoration: none;
}
.cast-note a:hover {
  text-decoration: underline;
}

/* ============================================================
   LIENS VERS LES FICHES DES COMÉDIENS (générés par cast-table / cast-names / cast-songs / cast-staff)
   Même couleur que le texte ; au survol : le texte devient bleu pâle (pas de soulignage).
   ============================================================ */
:root {
  --actor-link-hover-color: #7aa9de;   /* couleur au survol d'un nom qui a une fiche */
}
.cast-wrap a.actor-link {
  color: inherit;
  font-weight: inherit;
  text-decoration: none;
  transition: color 0.2s ease-in-out;
}
.cast-wrap a.actor-link:hover {
  color: var(--actor-link-hover-color);
  text-decoration: none;
}
