/* Tabs Alliées Yolo */

.beekom-tabs-allies { display: flex; flex-direction: column; gap: 32px; }

/* Barre d'onglets */
.ta__tabs-scroll {
	position: relative;
	width: fit-content;       /* centré (gauche/droite) par "Alignement onglets" via align-items */
	max-width: 100%;
}

.ta__tabs {
	display: flex;
	flex-wrap: nowrap;          /* jamais de 2e ligne : si ça dépasse, ça scrolle */
	gap: 8px;
	padding: 8px 10px;
	background: #F5EDE0;
	border-radius: 999px;
	width: 100%;                /* remplit le wrapper (lui porte l'alignement) */
	margin-inline: 0;
	overflow-x: auto;
	scroll-snap-type: x proximity;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;      /* Firefox */
	cursor: grab;
}
.ta__tabs::-webkit-scrollbar { display: none; }   /* Chrome/Safari */
.ta__tabs.is-dragging { cursor: grabbing; scroll-snap-type: none; }

/* Indices de défilement (dégradé + chevron directionnel) : affichés seulement
   du côté où il reste du contenu à faire défiler — posés par le JS, à toute largeur. */
.ta__tabs-scroll::before,
.ta__tabs-scroll::after {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	width: 120px;
	pointer-events: none;
	z-index: 2;
	opacity: 0;
	transition: opacity 0.2s ease;
	display: flex;
	align-items: center;
}
.ta__tabs-scroll::before {
	left: 0;
	justify-content: flex-start;
	padding-left: 16px;
	content: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='22'%20height='19'%20viewBox='0%200%2035%2030'%20fill='none'%3E%3Cg%20transform='translate(35,0)%20scale(-1,1)'%3E%3Cpath%20d='M0.0664062%2014.8608L33.2051%2014.2146'%20stroke='%231A0B4D'%20stroke-width='1.2'/%3E%3Cpath%20d='M19.9%2028.4986L33.4086%2014.1285L18.4727%200.599121'%20stroke='%231A0B4D'%20stroke-width='1.2'%20stroke-linecap='round'/%3E%3C/g%3E%3C/svg%3E");   /* flèche Yolo (miroir gauche), bleu foncé */
	background: linear-gradient(90deg, #F5EDE0 35%, rgba(245,237,224,0));
	border-radius: 999px 0 0 999px;
}
.ta__tabs-scroll::after {
	right: 0;
	justify-content: flex-end;
	padding-right: 16px;
	content: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='22'%20height='19'%20viewBox='0%200%2035%2030'%20fill='none'%3E%3Cpath%20d='M0.0664062%2014.8608L33.2051%2014.2146'%20stroke='%231A0B4D'%20stroke-width='1.2'/%3E%3Cpath%20d='M19.9%2028.4986L33.4086%2014.1285L18.4727%200.599121'%20stroke='%231A0B4D'%20stroke-width='1.2'%20stroke-linecap='round'/%3E%3C/svg%3E");   /* flèche Yolo (droite), bleu foncé */
	background: linear-gradient(270deg, #F5EDE0 35%, rgba(245,237,224,0));
	border-radius: 0 999px 999px 0;
}
.ta__tabs-scroll.has-scroll-start::before { opacity: 1; }
.ta__tabs-scroll.has-scroll-end::after    { opacity: 1; }

.ta__tab {
	flex: 0 0 auto;
	scroll-snap-align: center;
	padding: 10px 22px;
	border-radius: 999px;
	border: none;
	background: transparent;
	color: var(--ta-tab-color, var(--c-navy, #1A0B4D));
	font-size: 0.875rem;
	font-weight: 500;
	cursor: pointer;
	white-space: nowrap;
	transition: background 0.25s ease, color 0.25s ease;
}
.ta__tab:hover:not(.is-active) { background: rgba(255,255,255,.55); }
.ta__tab.is-active { background: var(--c-navy, #1A0B4D); color: #fff; }

/* Panneaux */
.ta__panels { position: relative; }

.ta__panel.is-hidden { display: none; }
.ta__panel.is-entering { animation: taFadeIn 0.45s cubic-bezier(0.22,1,0.36,1) forwards; }

@keyframes taFadeIn {
	from { opacity: 0; }
	to   { opacity: 1; }
}

/* Entrée en cascade des cards — fluide, cohérent avec le thème */
.ta__panel.is-entering .ta__card {
	animation: taCardIn 0.55s cubic-bezier(0.22,1,0.36,1) backwards;
}
.ta__panel.is-entering .ta__card:nth-child(1) { animation-delay: 0.02s; }
.ta__panel.is-entering .ta__card:nth-child(2) { animation-delay: 0.07s; }
.ta__panel.is-entering .ta__card:nth-child(3) { animation-delay: 0.12s; }
.ta__panel.is-entering .ta__card:nth-child(4) { animation-delay: 0.17s; }
.ta__panel.is-entering .ta__card:nth-child(5) { animation-delay: 0.22s; }
.ta__panel.is-entering .ta__card:nth-child(6) { animation-delay: 0.27s; }
.ta__panel.is-entering .ta__card:nth-child(n+7) { animation-delay: 0.30s; }

@keyframes taCardIn {
	from { opacity: 0; transform: translateY(18px) scale(0.97); }
	to   { opacity: 1; transform: translateY(0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
	.ta__panel.is-entering,
	.ta__panel.is-entering .ta__card { animation: none; }
}

/* Grille profils */
.ta__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
}

/* Card profil */
.ta__card {
	background: #fff;
	border-radius: 16px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	align-items: center;
	box-shadow: 0 2px 14px rgba(0,0,0,.07);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.ta__card:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 28px rgba(0,0,0,.1);
}

.ta__card-media {
	position: relative;
	width: 100%;
}

.ta__card-img {
	position: relative;
	width: 100%;
	aspect-ratio: var(--ta-img-ratio, 5 / 4);
	overflow: hidden;
}
.ta__card-img img {
	width: 100%; height: 100%;
	object-fit: var(--ta-img-fit, cover);
	object-position: center var(--ta-img-pos, 20%);  /* garde le haut (têtes) en mode "Remplir" */
	display: block;
}

.ta__card-name {
	padding: 14px 16px;
	font-size: 1rem;
	font-weight: 600;
	color: var(--c-navy, #1A0B4D);
	text-align: center;
}

/* Responsive */
@media (max-width: 900px) {
	.ta__grid { grid-template-columns: repeat(2, 1fr); }

	/* Bouton vidéo : seulement le rond player, texte masqué */
	.ta__play-text { display: none; }
	.ta__play { padding: 5px; }   /* force le rond même si le span texte reste dans le DOM */
}

@media (max-width: 540px) {
	.ta__grid { grid-template-columns: 1fr; }
	.ta__tabs { border-radius: 16px; }
	.ta__tabs-scroll::before { border-radius: 16px 0 0 16px; }
	.ta__tabs-scroll::after  { border-radius: 0 16px 16px 0; }
}

/* =========================================================
   Bouton play vidéo (interview) + lightbox
   Affiché uniquement sur les cards ayant une vidéo.
   ========================================================= */
.ta__play {
	position: absolute;
	bottom: 12px;
	right: 12px;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 5px 6px 5px 16px;
	border: none;
	border-radius: 999px;
	background: var(--ta-play-bg, #FF5A2D);
	color: #fff;
	cursor: pointer;
	transition: transform 0.25s cubic-bezier(0.22,1,0.36,1);
}
.ta__play:hover { transform: translateY(-2px); }
/* Sans texte : le pill se réduit à un rond */
.ta__play:not(:has(.ta__play-text)) { padding: 6px; }

.ta__play-text {
	font-size: var(--ta-play-fs, 14px);
	font-weight: 500;
	line-height: 1;
	white-space: nowrap;
}

.ta__play-circle {
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
}
.ta__play-circle svg {
	width: 12px;
	height: 12px;
	fill: #1A0B4D;              /* triangle foncé sur cercle blanc, comme l'icône des boutons Yolo */
	margin-left: 1px;           /* recentre optiquement le triangle */
}

/* Lightbox (format paysage 16/9 pour les interviews) */
.ta__lightbox {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 100000;          /* au-dessus de la barre d'admin WP (99999) et des headers sticky */
	background: rgba(0,0,0,.9);
	align-items: center;
	justify-content: center;
	padding: 20px;
}
.ta__lightbox.is-open { display: flex; }
.ta__lightbox-inner {
	position: relative;
}
/* Formats — pilotés par le contrôle "Format de la vidéo" (classe sur .ta__lightbox) */
.ta__lightbox--portrait  .ta__lightbox-inner { height: min(86vh, 760px); aspect-ratio: 9 / 16;  max-width: 92vw; }
.ta__lightbox--landscape .ta__lightbox-inner { width:  min(92vw, 900px); aspect-ratio: 16 / 9; }
.ta__lightbox--square    .ta__lightbox-inner { width:  min(88vw, 560px); aspect-ratio: 1 / 1;  max-height: 86vh; }
.ta__lightbox-inner iframe {
	width: 100%;
	height: 100%;
	border: none;
	border-radius: 14px;
}
.ta__lightbox-close {
	position: absolute;
	top: 20px;
	right: 20px;
	z-index: 2;                /* au-dessus de l'iframe, dans l'overlay */
	width: 52px;
	height: 52px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #fff;
	color: #1A0B4D;
	border: none;
	border-radius: 50%;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 4px 18px rgba(0,0,0,.45);
	transition: transform 0.2s ease, background 0.2s ease;
}
.ta__lightbox-close:hover  { transform: scale(1.08); background: #f1ecff; }
.ta__lightbox-close:focus-visible { outline: 3px solid var(--ta-play-bg, #FF5A2D); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
	.ta__play, .ta__play-circle { transition: none; }
}
