/*
 * celina-biographie.css
 * Chargé sur page-biographie.php et page-medias.php (sections Photos/Vidéos)
 * Design system dark purple — adapté du demo biographie
 * Last update: 16.6.26
 */

/* ============================================================
   UTILITAIRE
============================================================ */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Hero — structure et styles identiques à .disco-container/.disco-hero
   (Discographie), sans le sur-titre ("Musique") qui n'a pas de sens ici. */
.bio-container {
  width: min(calc(100% - var(--bio-gutter) * 2), var(--bio-max-width));
  margin: 0 auto;
}

.bio-hero {
  padding-block: clamp(8rem, 17vw, 15rem) clamp(3rem, 7.5vw, 6.625rem);
  text-align: center;
}
.bio-hero--after-cover {
  padding-block-start: clamp(2rem, 5vw, 3.5rem);
}

.bio-hero__title {
  margin-top: -50px;
  margin-bottom: 1.5rem;
}

/* .bio-hero__text cible aussi les <p> directement : le sélecteur générique
   `p { font-size: var(--fs-md); ... }` (style.css) cible l'élément <p> lui-même,
   donc une règle posée seulement sur le conteneur parent serait ignorée
   (l'héritage perd toujours face à une règle qui cible l'élément en propre). */
.bio-hero__text,
.bio-hero__text p {
  max-width:   62ch; /* 52ch + 20% (marges G/D réduites de 20%) */
  margin-inline: auto;
  color:       rgba(255,255,255,0.7);
  font-size:   clamp(1rem, 1.5vw, 1.125rem);
  line-height: 1.7;
}

.bio-hero__text p { margin: 0; }
.bio-hero__text p + p { margin-top: 1rem; }


/* ============================================================
   VARIABLES — scoped aux pages bio/médias (pas de fuite globale)
============================================================ */

body.page-template-page-biographie,
body.page-template-page-medias {
  /* Fonds */
  --bio-bg:            #1C0038;
  --bio-bg-deep:       #130025;
  --bio-bg-overlay:    rgba(28,0,56,0.5);
  --bio-lightbox-bg:   rgba(10,0,22,0.96);
  /* Surfaces */
  --bio-surface:       rgba(255,255,255,0.06);
  --bio-surface-hover: rgba(255,255,255,0.11);
  --bio-surface-card:  rgba(255,255,255,0.05);
  /* Bordures */
  --bio-border:        rgba(255,255,255,0.13);
  --bio-border-light:  rgba(255,255,255,0.07);
  /* Texte */
  --bio-text:          #FFFFFF;
  --bio-text-em:       rgba(255,255,255,0.8);
  --bio-muted:         rgba(255,255,255,0.55);
  /* Accents */
  --bio-accent:        #7B2D8B;
  --bio-accent-light:  #9B5AB5;
  --bio-accent-soft:   rgba(155,90,181,0.35);
  /* Typo */
  --bio-font-display:  var(--font-display);
  --bio-font-body:     var(--font-body);
  /* Layout */
  --bio-max-width:     1180px;
  --bio-gutter:        clamp(1.25rem, 4vw, 2.5rem);
  --bio-radius:        6px;
  --bio-radius-lg:     12px;
  --bio-radius-xl:     20px;
  /* Effets */
  --bio-placeholder-gradient: linear-gradient(135deg, rgba(123,45,139,0.15), rgba(28,0,56,0.6));
  --bio-shadow:        0 24px 80px rgba(0,0,0,0.45);
  --bio-ease:          cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ============================================================
   FOND DE PAGE + TYPO DE BASE
============================================================ */

body.page-template-page-biographie,
body.page-template-page-medias {
  -webkit-font-smoothing: antialiased;
}

/* Header sombre sur la page bio (hors couverture plein écran) */
body.page-template-page-biographie .header:not(.fullheight) {
  background-color: var(--bio-bg);
}

body.page-template-page-biographie .header:not(.fullheight) ul.menu li a {
  color: var(--bio-text);
}

body.page-template-page-biographie .header:not(.fullheight) ul.menu li a:hover {
  color: var(--bio-accent-light);
}

body.page-template-page-biographie .header:not(.fullheight) ul.menu li.current-menu-item > a,
body.page-template-page-biographie .header:not(.fullheight) ul.menu li.current-menu-parent > a {
  color: #B040C8;
}

/* Icônes menu secondaire (réseaux sociaux) — blanches sur fond sombre hors scroll */
body.page-template-page-biographie .header:not(.fullheight):not(.smallscroll) .secondary_menu img {
  filter: brightness(0) invert(1);
}

/* Scroll — header semi-transparent */
body.page-template-page-biographie .header.smallscroll {
  background-color: rgba(255, 255, 255, 0.80);
}
body.page-template-page-biographie .header.smallscroll ul.menu li a {
  color: var(--color-main);
}
body.page-template-page-biographie .header.smallscroll ul.menu li a:hover {
  color: var(--color-primary);
}
body.page-template-page-biographie .header.smallscroll ul.menu li.current-menu-item > a,
body.page-template-page-biographie .header.smallscroll ul.menu li.current-menu-parent > a {
  color: #B040C8;
}

/* ── Header sombre — page Médias (même pattern que Biographie) ─── */

body.page-template-page-medias .header {
  background-color: var(--bio-bg);
}

body.page-template-page-medias .header ul.menu li a {
  color: var(--bio-text);
}

body.page-template-page-medias .header ul.menu li a:hover {
  color: var(--bio-accent-light);
}

body.page-template-page-medias .header ul.menu li.current-menu-item > a,
body.page-template-page-medias .header ul.menu li.current-menu-parent > a {
  color: #B040C8;
}

body.page-template-page-medias .header:not(.smallscroll) .secondary_menu img {
  filter: brightness(0) invert(1);
}

body.page-template-page-medias .header.smallscroll {
  background-color: rgba(255, 255, 255, 0.80);
}
body.page-template-page-medias .header.smallscroll ul.menu li a {
  color: var(--color-main);
}
body.page-template-page-medias .header.smallscroll ul.menu li a:hover {
  color: var(--color-primary);
}
body.page-template-page-medias .header.smallscroll ul.menu li.current-menu-item > a,
body.page-template-page-medias .header.smallscroll ul.menu li.current-menu-parent > a {
  color: #B040C8;
}

.bio-scope {
  background-color: var(--bio-bg);
  color: var(--bio-text);
  font-family: var(--bio-font-body);
  overflow-x: hidden;
}

/* Couverture "Violet" (choix bg_color générique = #1C0038 — standard global) —
   teinte exacte du fond de page bio-scope (#1C0038) pour éviter jonction visible. */
body.page-template-page-biographie .cover.dark-bg,
body.page-template-page-medias .cover.dark-bg {
  background-color: var(--bio-bg);
}

.bio-scope *,
.bio-scope *::before,
.bio-scope *::after {
  box-sizing: border-box;
}

.bio-scope img {
  display: block;
  max-width: 100%;
  height: auto;
}

.bio-scope a {
  color: inherit;
  text-decoration: none;
}

.bio-scope button {
  cursor: pointer;
  font-family: var(--bio-font-body);
  border: none;
  background: none;
}

/* ============================================================
   ONGLETS
============================================================ */

.bio-tabs-wrap {
  width: min(calc(100% - var(--bio-gutter) * 2), var(--bio-max-width));
  margin: 0 auto;
  padding: 2rem 0;
  display: flex;
  justify-content: center;
}

.bio-tabs {
  display: flex;
  gap: 0.4rem;
  padding: 0.25rem;
  background: var(--bio-surface);
  border-radius: 100px;
  border: 1px solid var(--bio-border-light);
  flex-wrap: wrap;
  justify-content: center;
}

.bio-tab {
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.5rem 1.1rem;
  border-radius: 100px;
  color: var(--bio-muted);
  transition: all 0.25s var(--bio-ease);
  background: none;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

.bio-tab:hover { color: var(--bio-text); }

.bio-tab.is-active {
  background: var(--bio-text);
  color: var(--bio-bg);
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.bio-panel          { display: none; }
.bio-panel.is-active { display: block; }

/* ============================================================
   TEMPS FORTS — TIMELINE ALTERNÉE
============================================================ */

.bio-tf-section {
  width: min(calc(100% - var(--bio-gutter) * 2), var(--bio-max-width));
  margin: 0 auto 4rem;
}

/* Intro texte en début de page — même style que .disco-hero__text (Discographie) */
.bio-hero-intro {
  text-align: center;
  padding-inline: var(--bio-gutter);
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

.bio-hero-intro__text {
  max-width: 52ch;
  margin-inline: auto;
  color: rgba(255,255,255,0.7);
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  line-height: 1.7;
}

.bio-hero-intro__text p + p { margin-top: 1rem; }

/* Feed avec ligne verticale centrale */
.bio-tf-feed {
  position: relative;
  margin-top: 3rem;
  display: grid;
  gap: 3rem;
}

.bio-tf-feed::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  background: linear-gradient(
    to bottom,
    transparent,
    var(--bio-accent) 8%,
    var(--bio-accent-light) 50%,
    var(--bio-accent) 92%,
    transparent
  );
  pointer-events: none;
}

/* Carte — grille 3 colonnes : corps | badge | corps */
.bio-tf-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: start;
  gap: 0 2rem;
}

/* Badge période — centré sur la ligne */
.bio-tf-card__period {
  grid-column: 2;
  grid-row: 1;
  font-family: var(--bio-font-display);
  font-size: clamp(0.75rem, 1.1vw, 0.9rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
  background: var(--bio-accent);
  color: var(--bio-text);
  border-radius: 2rem;
  padding: 0.4em 1.1em;
  position: relative;
  z-index: 1;
  text-align: center;
  box-shadow: 0 0 0 4px var(--bio-bg);
}

/* Corps de la carte */
.bio-tf-card__body {
  grid-row: 1;
  background: var(--bio-surface-card);
  border: 1px solid var(--bio-border-light);
  border-radius: var(--bio-radius-xl);
  padding: clamp(1.1rem, 2.5vw, 1.75rem);
  transition: border-color 0.25s var(--bio-ease);
}

.bio-tf-card:hover .bio-tf-card__body {
  border-color: var(--bio-accent-soft);
}

/* Côté gauche : corps col 1, badge col 2 */
.bio-tf-card--left .bio-tf-card__body  { grid-column: 1; }
.bio-tf-card--left .bio-tf-card__period { grid-column: 2; }

/* Côté droit : badge col 2, corps col 3 */
.bio-tf-card--right .bio-tf-card__body  { grid-column: 3; }
.bio-tf-card--right .bio-tf-card__period { grid-column: 2; }

/* Titre */
.bio-tf-card__title {
  font-family: var(--bio-font-display);
  font-size: clamp(0.8rem, 1.3vw, 0.95rem);
  font-weight: 600;
  line-height: 1.25;
  color: var(--bio-text);
  margin: 0 0 0.6rem;
  text-align: center;
}

/* Visuel */
.bio-tf-card__visual {
  margin: 0 0 1rem;
  border-radius: var(--bio-radius-lg);
  overflow: hidden;
  border: 1px solid var(--bio-border-light);
}

.bio-tf-card__visual img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform 0.4s var(--bio-ease);
}

.bio-tf-card:hover .bio-tf-card__visual img { transform: scale(1.03); }

/* Résumé */
.bio-tf-card__summary p {
  font-size: 0.9rem;
  line-height: 1.85;
  color: var(--bio-muted);
  margin: 0;
}

/* Résumé masqué quand la carte est déployée */
.bio-tf-card.is-revealed .bio-tf-card__summary { display: none; }

/* Zone expandable */
.bio-tf-card__more {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s var(--bio-ease);
}

.bio-tf-card.is-revealed .bio-tf-card__more {
  grid-template-rows: 1fr;
}

.bio-tf-card__more-inner {
  overflow: hidden;
}

.bio-tf-card__more-inner p {
  font-size: 0.9rem;
  line-height: 1.85;
  color: var(--bio-muted);
  margin: 0;
}
.bio-tf-card__more-inner p + p  { margin-top: 0.85rem; }
.bio-tf-card__more-inner em     { font-size: inherit; color: var(--bio-text-em); }
.bio-tf-card__more-inner strong { font-size: inherit; font-weight: 600; color: var(--bio-text); }

/* Bouton toggle */
.bio-tf-card__toggle {
  margin-top: 0.6rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--bio-accent-light);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem 0;
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  transition: color 0.2s;
}

.bio-tf-card__toggle:hover { color: var(--bio-text); }

/* État vide */
.bio-empty-state {
  font-size: 0.85rem;
  color: var(--bio-muted);
  border: 1px dashed var(--bio-border);
  border-radius: var(--bio-radius-xl);
  padding: 2rem;
  text-align: center;
}

/* ============================================================
   CONTENT SECTION (Photos, Vidéos)
============================================================ */

.bio-scope .content-section {
  width: min(calc(100% - var(--bio-gutter) * 2), var(--bio-max-width));
  margin: 0 auto 4rem;
  padding-top: clamp(2rem, 4vw, 3rem);
}

.bio-scope .content-section__header {
  padding-bottom: 1.25rem;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--bio-border-light);
  display: flex;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
}

.bio-scope .content-section__eyebrow {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--bio-accent-light);
  width: 100%;
  margin: 0;
}

.bio-scope .content-section__title {
  font-family: var(--bio-font-display);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 600;
  line-height: 1.1;
  margin: 0;
}

/* ============================================================
   PHOTOS
============================================================ */

.photos-section {
  width: min(calc(100% - var(--bio-gutter) * 2), var(--bio-max-width));
  margin: 0 auto 4rem;
}

.photos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 260px;
  gap: 0.75rem;
}

.photos-grid__item {
  position: relative;
  overflow: hidden;
  border-radius: var(--bio-radius-lg);
  background: var(--bio-surface);
  border: 1px solid var(--bio-border-light);
  padding: 0;
  cursor: pointer;
  display: block;
  width: 100%;
}

.photos-grid__item:nth-child(1) { grid-row: span 2; }
.photos-grid__item:nth-child(4) { grid-column: span 2; }

.photos-grid__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s var(--bio-ease);
  display: block;
}

.photos-grid__item:hover img { transform: scale(1.06); }

.photos-grid__item-overlay {
  position: absolute;
  inset: 0;
  background: var(--bio-bg-overlay);
  opacity: 0;
  transition: opacity 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.photos-grid__item:hover .photos-grid__item-overlay { opacity: 1; }

.photos-grid__item-overlay svg {
  width: 32px;
  height: 32px;
  color: var(--bio-text);
}

.photos-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--bio-placeholder-gradient);
  color: var(--bio-muted);
}

.photos-placeholder svg   { width: 28px; height: 28px; opacity: 0.4; }
.photos-placeholder span  { font-size: 0.7rem; letter-spacing: 0.04em; text-transform: uppercase; opacity: 0.5; }

/* ============================================================
   LIGHTBOX
============================================================ */

.bio-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: var(--bio-lightbox-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s var(--bio-ease);
}

.bio-lightbox.is-visible { opacity: 1; }

.bio-lightbox[hidden] { display: none; }

.bio-lightbox__stage {
  max-width: min(90vw, 1200px);
  max-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bio-lightbox__img {
  max-width: 100%;
  max-height: 88vh;
  object-fit: contain;
  border-radius: var(--bio-radius-lg);
  display: block;
  box-shadow: 0 32px 100px rgba(0,0,0,0.7);
}

.bio-lightbox__close,
.bio-lightbox__prev,
.bio-lightbox__next {
  position: fixed;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  color: var(--bio-text);
  width: 2.75rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
  backdrop-filter: blur(8px);
}

.bio-lightbox__close:hover,
.bio-lightbox__prev:hover,
.bio-lightbox__next:hover { background: rgba(255,255,255,0.22); }

.bio-lightbox__close { top: 1.25rem; right: 1.25rem; }
.bio-lightbox__prev  { left: 1.25rem; top: 50%; transform: translateY(-50%); }
.bio-lightbox__next  { right: 1.25rem; top: 50%; transform: translateY(-50%); }

.bio-lightbox__close svg,
.bio-lightbox__prev svg,
.bio-lightbox__next svg { width: 20px; height: 20px; }

/* ============================================================
   VIDÉOS
============================================================ */

.videos-channel-bar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 1.25rem;
}

.content-section__channel-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--bio-muted);
  border: 1px solid var(--bio-border);
  border-radius: 100px;
  padding: 0.35em 0.9em;
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s;
}

.content-section__channel-link:hover {
  color: var(--bio-text);
  border-color: rgba(255,255,255,0.35);
}

.content-section__channel-link svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.bio-scope .videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr));
  gap: 1rem;
}

.bio-scope .video-item {
  border-radius: var(--bio-radius-xl);
  overflow: hidden;
  aspect-ratio: 16/9;
  border: 1px solid var(--bio-border-light);
}

.bio-scope .video-item iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: none;
}

.bio-scope .video-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: var(--bio-placeholder-gradient);
  color: var(--bio-muted);
}

.bio-scope .video-placeholder svg  { width: 36px; height: 36px; opacity: 0.45; }
.bio-scope .video-placeholder span { font-size: 0.72rem; letter-spacing: 0.04em; text-transform: uppercase; opacity: 0.55; }

/* ============================================================
   ON PARLE DE CÉLINA — mur de coupures de presse, masonry
   Cartes "polaroid" légèrement inclinées (--press-rot, en inline),
   petit morceau de scotch coloré en haut, ordre randomisé en PHP.
============================================================ */

.presse-masonry {
  column-count: 2;
  column-gap: 1.5rem;
  padding-top: 0.5rem;
}

@media (min-width: 560px)  { .presse-masonry { column-count: 3; } }
@media (min-width: 900px)  { .presse-masonry { column-count: 4; } }
@media (min-width: 1300px) { .presse-masonry { column-count: 5; } }

.presse-masonry__item {
  position: relative;
  display: block;
  width: 100%;
  margin: 0 0 1.75rem;
  padding: 0.6rem 0.6rem 0.85rem;
  background: #fdfbf6;
  border-radius: 2px;
  box-shadow: 0 14px 30px rgba(0,0,0,0.4);
  break-inside: avoid;
  cursor: pointer;
  transform: rotate(var(--press-rot, 0deg));
  transition: transform 0.35s var(--bio-ease), box-shadow 0.35s var(--bio-ease);
}

.presse-masonry__item img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 2px;
}

.presse-masonry__item:hover,
.presse-masonry__item:focus-visible {
  transform: rotate(0deg) translateY(-8px) scale(1.035);
  box-shadow: 0 24px 48px rgba(0,0,0,0.55);
  z-index: 2;
}

/* Petit ruban adhésif planté en haut de chaque coupure */
.presse-masonry__item::before {
  content: '';
  position: absolute;
  top: -9px;
  left: 50%;
  width: 48px;
  height: 18px;
  transform: translateX(-50%) rotate(-4deg);
  background: rgba(232, 193, 112, 0.85);
  box-shadow: 0 2px 5px rgba(0,0,0,0.25);
  border-radius: 2px;
}

.presse-masonry__item--tape-2::before {
  background: rgba(155, 90, 181, 0.82);
  transform: translateX(-50%) rotate(3deg);
}

.presse-masonry__item--tape-3::before {
  background: rgba(255, 255, 255, 0.65);
  transform: translateX(-50%) rotate(-2deg);
}

/* ============================================================
   ACCORDÉON PORTRAIT
============================================================ */

.bio-accordion { margin-top: 0; }

.accordion-item { border-top: 1px solid var(--bio-border-light); }
.accordion-item:last-child { border-bottom: 1px solid var(--bio-border-light); }

.accordion-trigger {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.4rem 0;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--bio-font-body);
  color: var(--bio-text);
  -webkit-tap-highlight-color: transparent;
}

.accordion-title {
  font-family: var(--bio-font-display);
  font-size: clamp(1.15rem, 2.2vw, 1.7rem);
  font-weight: 600;
  line-height: 1.2;
  flex: 1;
  color: var(--bio-text);
  transition: color 0.2s var(--bio-ease);
}

.accordion-trigger:hover .accordion-title,
.accordion-trigger[aria-expanded="true"] .accordion-title {
  color: var(--bio-accent-light);
}

.accordion-chevron {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: var(--bio-muted);
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), color 0.2s;
}

.accordion-trigger[aria-expanded="true"] .accordion-chevron {
  transform: rotate(180deg);
  color: var(--bio-accent-light);
}

.accordion-body { overflow: hidden; }

.accordion-body__inner { padding-bottom: 2rem; max-width: 760px; }

.accordion-body__text {
  font-size: 0.915rem;
  line-height: 1.85;
  color: var(--bio-muted);
}

.accordion-body__text p { margin: 0; }
.accordion-body__text p + p { margin-top: 0.9rem; }
.accordion-body__text em { color: var(--bio-text-em); }

/* ============================================================
   FOCUS VISIBLE — navigation clavier
============================================================ */

.bio-tab:focus-visible {
  outline: 2px solid var(--bio-accent-light);
  outline-offset: 2px;
}

.bio-tf-card__toggle:focus-visible {
  outline: 2px solid var(--bio-accent-light);
  outline-offset: 4px;
  border-radius: 2px;
}

.accordion-trigger:focus-visible {
  outline: 2px solid var(--bio-accent-light);
  outline-offset: 2px;
  border-radius: 2px;
}

.photos-grid__item:focus-visible {
  outline: 2px solid var(--bio-accent-light);
  outline-offset: 3px;
}

.bio-lightbox__close:focus-visible,
.bio-lightbox__prev:focus-visible,
.bio-lightbox__next:focus-visible {
  outline: 2px solid var(--bio-text-em);
  outline-offset: 3px;
}

/* ============================================================
   RESPONSIVE
============================================================ */

@media (max-width: 768px) {
  /* Timeline : abandon de l'alternance, badge à gauche */
  .bio-tf-feed::before { left: 1.25rem; }

  .bio-tf-card {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0 1rem;
  }

  .bio-tf-card--left .bio-tf-card__body,
  .bio-tf-card--right .bio-tf-card__body  { grid-column: 2; grid-row: 1; }

  .bio-tf-card--left .bio-tf-card__period,
  .bio-tf-card--right .bio-tf-card__period {
    grid-column: 1;
    grid-row: 1;
    font-size: 0.85rem;
    white-space: normal;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    padding: 0.6em 0.4em;
    letter-spacing: 0.03em;
  }

  .photos-grid { grid-template-columns: repeat(2,1fr); }
  .photos-grid__item:nth-child(4) { grid-column: span 1; }
}

@media (max-width: 480px) {
  .photos-grid { grid-template-columns: 1fr; grid-auto-rows: 220px; }
  .photos-grid__item:nth-child(1) { grid-row: span 1; }
}

/* ============================================================
   REDUCED MOTION
============================================================ */

@media (prefers-reduced-motion: reduce) {
  .bio-tf-card__body,
  .bio-tf-card__visual img,
  .bio-tf-card__more,
  .accordion-body,
  .accordion-chevron {
    transition: none;
  }
}
