/* Touchy Idea – Vidéos. D'après la maquette « Page Vidéos » / « Vidéos mobile ».
 * Chaque couleur suit la charte du site si elle définit les variables --ti-*,
 * sinon la valeur de la maquette.
 */
.tiv, .tiv-lecteur {
	--tiv-plum-900: var(--ti-plum-900, #1F1230);
	--tiv-plum-800: var(--ti-plum-800, #2D1B47);
	--tiv-plum-700: var(--ti-plum-700, #4A2F70);
	--tiv-plum-600: var(--ti-plum-600, #66448F);
	--tiv-plum-300: var(--ti-plum-300, #C897EA);
	--tiv-plum-200: var(--ti-plum-200, #DDB8F0);
	--tiv-plum-100: var(--ti-plum-100, #EEDDF8);
	--tiv-cherry-500: var(--ti-cherry-500, #FF6FA5);
	--tiv-cherry-400: var(--ti-cherry-400, #FF8FBB);
	--tiv-mint-500: var(--ti-mint-500, #98DCC1);
	--tiv-banana-500: var(--ti-banana-500, #FFDD81);
	--tiv-cream: var(--ti-cream, #F8F7F1);
	--tiv-white: var(--ti-white, #FFFFFF);
	--tiv-mist-100: var(--ti-mist-100, #EFECE3);
	--tiv-mist-200: var(--ti-mist-200, #DDD7C8);
	--tiv-mist-300: var(--ti-mist-300, #C2BBA8);
	--tiv-mauve-500: var(--ti-mauve-500, #6B5B82);
	--tiv-mauve-600: var(--ti-mauve-600, #4A3F5C);
	--tiv-ink: var(--ti-ink, #2D1B47);
	--tiv-titre: "Caveat Brush", "Comic Sans MS", cursive;
	/* Texte : la police du site (comme les filtres de la boutique), jamais une
	   police imposée ici. Seuls les titres prennent Caveat Brush. */
	--tiv-bord: var(--border, var(--ti-mist-200, #DDD7C8));
	--tiv-plum-50: var(--ti-plum-50, #F7EEFC);
	--tiv-mauve-400: var(--ti-mauve-400, #8D849B);
	--tiv-cherry-700: var(--ti-cherry-700, #C84372);
	--tiv-filtre-ease: cubic-bezier(0.22, 1, 0.36, 1);
	--tiv-ressort: cubic-bezier(0.34, 1.56, 0.64, 1);
	--tiv-doux: cubic-bezier(0.16, 1, 0.3, 1);
	--tiv-ombre-2: 0 2px 8px rgba(45, 27, 71, 0.06), 0 1px 2px rgba(45, 27, 71, 0.04);
	--tiv-ombre-4: 0 16px 40px rgba(45, 27, 71, 0.12), 0 4px 8px rgba(45, 27, 71, 0.06);
	font-family: inherit;
	color: var(--tiv-ink);
	box-sizing: border-box;
}
.tiv *, .tiv *::before, .tiv *::after,
.tiv-lecteur *, .tiv-lecteur *::before, .tiv-lecteur *::after { box-sizing: border-box; }
.tiv [hidden], .tiv-lecteur[hidden], .tiv-lecteur [hidden] { display: none !important; }
.tiv-icone { display: inline-block; flex: 0 0 auto; vertical-align: -0.125em; }
html.tiv-bloque, html.tiv-bloque body { overflow: hidden !important; }

/* ------------------------------------------------------------------ */
/* Éléments communs                                                    */
/* ------------------------------------------------------------------ */

.tiv button, .tiv-lecteur button { font: inherit; margin: 0; }

.tiv-puce {
	/* Mêmes mesures que .tif-pill (touchy-idea-filtres-divi). */
	display: inline-flex; align-items: center; gap: 8px;
	min-height: 46px; padding: 0 17px;
	border-radius: 999px; border: 1px solid var(--tiv-bord);
	background: var(--tiv-white); color: var(--tiv-ink);
	font-family: inherit; font-weight: 700; font-size: 14.5px; line-height: 1.2;
	text-decoration: none; cursor: pointer; white-space: nowrap;
	transition: border-color 140ms var(--tiv-filtre-ease), background 140ms var(--tiv-filtre-ease), color 140ms var(--tiv-filtre-ease), transform 140ms var(--tiv-filtre-ease);
}
.tiv-puce:hover, .tiv-puce:focus-visible { border-color: var(--tiv-plum-300); background: var(--tiv-plum-50); color: var(--tiv-ink); }
.tiv-puce:active { transform: scale(0.97); }
.tiv-puce[aria-pressed="true"] { border-color: transparent; background: var(--tiv-plum-600); color: var(--tiv-cream); }
.tiv-puce[aria-pressed="true"]:hover, .tiv-puce[aria-pressed="true"]:focus-visible { border-color: transparent; background: var(--tiv-plum-700); color: var(--tiv-cream); }
.tiv-puce:disabled { opacity: 0.35; cursor: not-allowed; transform: none; text-decoration: line-through; }
/* Valeurs d'attribut = .tif-opts--pills .tif-opt */
.tiv-puce--petite { min-height: 38px; padding: 0 14px; font-size: 13.5px; }
.tiv-puce__n { display: grid; place-items: center; min-width: 24px; height: 24px; padding: 0 7px; border-radius: 999px; background: var(--tiv-cream); color: var(--tiv-mauve-500); font-size: 12.5px; font-weight: 800; }
.tiv-puce[aria-pressed="true"] .tiv-puce__n { background: rgba(248, 247, 241, 0.22); color: var(--tiv-cream); }
/* « Tout effacer » = .tif-reset */
.tiv-puce--effacer, .tiv-puce--effacer:hover, .tiv-puce--effacer:focus-visible { min-height: 38px; padding: 0 8px; border: none; background: none; color: var(--tiv-cherry-700); font-size: 13.5px; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.tiv-puce--effacer .tiv-icone { display: none; }

.tiv-puce:focus-visible, .tiv-bouton:focus-visible, .tiv-rond:focus-visible, .tiv-select:focus-visible,
.tiv-carte__bouton:focus-visible, .tiv-diapo__toucher:focus-visible, .tiv-lien:focus-visible, .tiv-carte__nom:focus-visible, .tiv-fiche__nom:focus-visible {
	outline: 2px solid var(--tiv-cherry-400); outline-offset: 3px;
}

.tiv-bouton {
	display: inline-flex; align-items: center; justify-content: center; gap: 9px;
	min-height: 52px; padding: 0 22px; width: 100%;
	border: none; border-radius: 999px;
	background: var(--tiv-cherry-500); color: var(--tiv-white) !important;
	font-family: inherit; font-weight: 800; font-size: 16px; line-height: 1.1;
	text-decoration: none !important; cursor: pointer;
	transition: transform 140ms var(--tiv-ressort), box-shadow 240ms var(--tiv-doux), background-color 200ms var(--tiv-doux);
}
.tiv-bouton .tiv-icone { font-size: 20px; }
.tiv-bouton:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(255, 111, 165, 0.35); }
.tiv-bouton:active { transform: scale(0.97); }
.tiv-bouton:disabled { cursor: default; transform: none; box-shadow: none; background: var(--tiv-mist-200); color: var(--tiv-mauve-500) !important; }
.tiv-bouton--clair { background: var(--tiv-white); color: var(--tiv-plum-700) !important; border: 1.5px solid var(--tiv-plum-200); min-height: 48px; font-weight: 700; font-size: 15px; }
.tiv-bouton--clair:hover { box-shadow: var(--tiv-ombre-2); }
.tiv-bouton.tiv-ajoute { background: var(--tiv-mint-500); color: var(--tiv-plum-900) !important; }
.tiv-bouton.tiv-charge { opacity: 0.6; pointer-events: none; }

.tiv-rond {
	display: grid; place-items: center;
	width: 46px; height: 46px; padding: 0;
	border: none; border-radius: 999px;
	background: rgba(31, 18, 48, 0.5); color: var(--tiv-cream);
	font-size: 21px; cursor: pointer;
	-webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
	transition: background-color 160ms var(--tiv-doux), transform 140ms var(--tiv-ressort), opacity 160ms;
}
.tiv-rond:hover { background: rgba(31, 18, 48, 0.72); }
.tiv-rond:active { transform: scale(0.94); }
.tiv-rond:disabled { opacity: 0.3; cursor: default; }

.tiv-lien { color: var(--tiv-plum-600); font-weight: 700; text-decoration: underline; text-decoration-color: var(--tiv-plum-300); text-underline-offset: 3px; display: inline-flex; align-items: center; gap: 6px; }
.tiv-lien:hover { color: var(--tiv-plum-700); text-decoration-color: var(--tiv-cherry-500); }

.tiv-select {
	/* = .tif-select */
	min-height: 46px; padding: 0 40px 0 17px;
	border-radius: 999px; border: 1px solid var(--tiv-bord);
	background: var(--tiv-white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236f6580' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 9l7 7 7-7'/%3E%3C/svg%3E") no-repeat right 15px center / 16px 16px;
	color: var(--tiv-ink); font: inherit; font-weight: 700; font-size: 14.5px;
	-webkit-appearance: none; appearance: none; cursor: pointer;
	transition: border-color 180ms var(--tiv-filtre-ease), box-shadow 180ms var(--tiv-filtre-ease);
}
.tiv-select:hover { border-color: var(--tiv-plum-600); }
.tiv-select:focus { border-color: var(--ti-plum-500, #8662B0); box-shadow: 0 0 0 4px rgba(255, 111, 165, 0.2); outline: none; }

.tiv-prix__actuel { font-weight: 800; color: var(--tiv-plum-700); }
.tiv-prix__ancien { color: var(--tiv-mauve-500); font-weight: 600; font-size: 0.85em; }
.tiv-prix__des { font-weight: 600; font-size: 0.85em; color: var(--tiv-mauve-500); }

/* Barre de progression et état « en pause » d'un cadre vidéo */
.tiv-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: var(--tiv-plum-900); display: block; }
.tiv-progres { position: absolute; left: 14px; right: 14px; top: 14px; height: 3px; border-radius: 999px; background: rgba(248, 247, 241, 0.35); overflow: hidden; z-index: 2; pointer-events: none; }
.tiv-progres__trait { display: block; height: 100%; background: var(--tiv-cream); transform-origin: left center; transform: scaleX(0); }
.tiv-diapo__toucher { position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; width: 100%; height: 100%; padding: 0; border: none; background: transparent; cursor: pointer; border-radius: inherit; }
.tiv-diapo__etat {
	display: grid; place-items: center; width: 72px; height: 72px; border-radius: 999px;
	background: rgba(31, 18, 48, 0.55); color: var(--tiv-cream); font-size: 30px;
	opacity: 0; transform: scale(0.8); transition: opacity 200ms var(--tiv-doux), transform 280ms var(--tiv-ressort);
	-webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.tiv-en-pause .tiv-diapo__etat, .tiv-fini .tiv-diapo__etat { opacity: 1; transform: none; }
.tiv-son { position: absolute; z-index: 3; }

/* ------------------------------------------------------------------ */
/* Page des vidéos                                                     */
/* ------------------------------------------------------------------ */

.tiv--page { max-width: 1280px; margin: 0 auto; padding: 0 32px 64px; }

.tiv-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; padding: 40px 0 24px; }
.tiv-intro__titres { display: flex; flex-direction: column; gap: 12px; max-width: 640px; }
.tiv-surtitre { display: inline-flex; align-items: center; gap: 7px; align-self: flex-start; padding: 7px 14px; border-radius: 999px; background: var(--tiv-plum-100); color: var(--tiv-plum-700); font-size: 13px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }
.tiv-surtitre .tiv-icone { color: var(--tiv-cherry-500); font-size: 15px; }
.tiv .tiv-intro__titre { margin: 0; padding: 0; font-family: var(--tiv-titre); font-weight: 400; font-size: clamp(40px, 5.2vw, 64px); line-height: 0.95; letter-spacing: 0; color: var(--tiv-plum-600); }
.tiv .tiv-intro__texte { margin: 0; padding: 0; max-width: 420px; font-size: 16.5px; line-height: 1.6; color: var(--tiv-mauve-600); }

.tiv-barre { display: none; }
.tiv-filtres { position: sticky; top: var(--tiv-haut, 0px); z-index: 5; margin: 0 -32px; padding: 14px 32px; background: color-mix(in srgb, var(--tiv-cream) 92%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--tiv-mist-100); }
.tiv-filtres__feuille { display: flex; flex-direction: column; gap: 12px; }
.tiv-filtres__poignee, .tiv-filtres__titre-feuille, .tiv-filtres__voir { display: none !important; }
.tiv-filtres__ligne { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; }
.tiv-filtres__puces { display: flex; flex-wrap: wrap; gap: 8px; }
.tiv-filtres__groupe .tiv-filtres__puces { gap: 7px; }
.tiv-filtres__groupe { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.tiv-filtres__titre { font-size: 14.5px; font-weight: 400; color: var(--tiv-mauve-500); white-space: nowrap; }
.tiv-filtres__tri { display: inline-flex; align-items: center; gap: 10px; margin-left: auto; }
.tiv-filtres__ligne--rayons .tiv-filtres__titre { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.tiv-filtres__ligne--rayons .tiv-filtres__tri .tiv-filtres__titre { position: static; width: auto; height: auto; clip-path: none; }

.tiv-compte { margin: 22px 0 16px; font-size: 15px; font-weight: 400; color: var(--tiv-mauve-500); }

.tiv-grille { display: grid; grid-template-columns: repeat(var(--tiv-colonnes, auto-fill), minmax(var(--tiv-min, 170px), 1fr)); gap: 28px 20px; }
.tiv-grille--page { --tiv-colonnes: 5; --tiv-min: 0px; }

.tiv-vide { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 64px 16px; text-align: center; border-radius: 28px; background: var(--tiv-white); }
.tiv-vide__titre { font-family: var(--tiv-titre); font-size: 34px; line-height: 1; color: var(--tiv-plum-600); }
.tiv-vide__texte { max-width: 420px; color: var(--tiv-mauve-600); line-height: 1.55; }
.tiv-vide__actions { display: flex; align-items: center; gap: 18px; margin-top: 8px; }

/* ------------------------------------------------------------------ */
/* Carte                                                               */
/* ------------------------------------------------------------------ */

.tiv-carte { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.tiv-carte__media { position: relative; display: block; border-radius: 24px; }
.tiv-carte__bouton { display: block; width: 100%; padding: 0; border: none; background: none; cursor: pointer; border-radius: 24px; text-align: left; }
.tiv-carte__affiche {
	position: relative; display: block; aspect-ratio: 9 / 16; border-radius: 24px; overflow: hidden;
	background: linear-gradient(160deg, var(--tiv-plum-100), var(--ti-cherry-200, #FFD3E2));
	box-shadow: var(--tiv-ombre-2);
	transition: transform 280ms var(--tiv-ressort), box-shadow 280ms var(--tiv-doux);
}
.tiv-carte__affiche img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.tiv-carte__bouton:hover .tiv-carte__affiche, .tiv-carte__bouton:focus-visible .tiv-carte__affiche { transform: translateY(-4px) scale(1.015); box-shadow: var(--tiv-ombre-4); }
.tiv-carte__duree { position: absolute; left: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 5px; padding: 5px 9px; border-radius: 999px; background: rgba(31, 18, 48, 0.62); color: var(--tiv-cream); font-size: 12px; font-weight: 800; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.tiv-carte__duree .tiv-icone { font-size: 11px; }
.tiv-carte__nouvelle { position: absolute; left: 10px; top: 10px; padding: 5px 10px; border-radius: 999px; background: var(--tiv-banana-500); color: var(--tiv-plum-800); font-size: 12px; font-weight: 800; }
.tiv-carte__play { position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 60px; height: 60px; margin: -30px 0 0 -30px; border-radius: 999px; background: rgba(248, 247, 241, 0.9); color: var(--tiv-plum-600); font-size: 24px; opacity: 0; transform: scale(0.8); transition: opacity 200ms var(--tiv-doux), transform 280ms var(--tiv-ressort); }
.tiv-carte__bouton:hover .tiv-carte__play, .tiv-carte__bouton:focus-visible .tiv-carte__play { opacity: 1; transform: none; }
@media (hover: none) { .tiv-carte__play { opacity: 0.92; transform: scale(0.85); } }

.tiv-carte__texte { display: flex; flex-direction: column; gap: 3px; padding: 0 4px; }
/* Police du texte (1.1.5) : Caveat Brush est réservée aux titres de mise en avant. */
.tiv .tiv-carte__nom { font-family: inherit; font-size: 16px; font-weight: 800; line-height: 1.25; letter-spacing: -0.01em; color: var(--tiv-plum-700); text-decoration: none; }
.tiv .tiv-carte__nom:hover { color: var(--tiv-plum-600); }
.tiv-carte__accroche { font-size: 13px; line-height: 1.4; color: var(--tiv-mauve-500); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tiv-carte__prix { margin-top: 2px; font-size: 16px; }

/* Lecture dans la carte */
.tiv-place { position: absolute; inset: 0; z-index: 2; border-radius: 24px; overflow: hidden; background: var(--tiv-plum-900); box-shadow: var(--tiv-ombre-4); }
.tiv-place .tiv-son { right: 12px; bottom: 12px; width: 42px; height: 42px; font-size: 19px; }

/* Variantes de liste */
.tiv--liste { width: 100%; }
.tiv-entete { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.tiv-entete__titre { font-family: var(--tiv-titre); font-size: 32px; line-height: 1; color: var(--tiv-plum-600); }
.tiv-entete__tout { font-size: 14px; }
.tiv--compact .tiv-grille { gap: 16px 12px; --tiv-min: 120px; }
.tiv--compact .tiv-carte__accroche { display: none; }
.tiv--compact .tiv-carte__nom { font-size: 15px; }
.tiv--compact .tiv-carte__prix { font-size: 14px; }
.tiv--compact .tiv-carte__affiche, .tiv--compact .tiv-carte__bouton, .tiv--compact .tiv-carte__media, .tiv--compact .tiv-place { border-radius: 18px; }
.tiv--seule .tiv-grille { grid-template-columns: minmax(0, 1fr); }
.tiv--produit .tiv-grille { max-width: 380px; }

/* ------------------------------------------------------------------ */
/* Lecteur plein écran                                                 */
/* ------------------------------------------------------------------ */

.tiv-lecteur { position: fixed; inset: 0; z-index: 999990; background: rgba(31, 18, 48, 0.94); color: var(--tiv-cream); animation: tiv-entree 260ms var(--tiv-doux) both; outline: none; }
@keyframes tiv-entree { from { opacity: 0; } to { opacity: 1; } }
.tiv-lecteur__flux { position: absolute; inset: 0; overflow-y: auto; overscroll-behavior: contain; scroll-snap-type: y mandatory; scrollbar-width: none; }
.tiv-lecteur__flux::-webkit-scrollbar { display: none; }
/*
 * Hauteur utile = la plus petite des deux : 100svh (écran avec les barres
 * du navigateur déployées) et --tiv-vh (zone visible mesurée par le script).
 * Sur iPhone, Safari 26 pose sa barre flottante par-dessus le bas de la
 * page : calé sur 100dvh, le bas de la vidéo et la fiche passaient dessous.
 * Le fond (.tiv-lecteur) couvre toujours tout l'écran ; seule la zone utile
 * remonte.
 */
.tiv-lecteur__flux { bottom: auto; height: 100vh; height: min(var(--tiv-vh, 100svh), 100svh); }
.tiv-diapo { position: relative; height: 100vh; height: min(var(--tiv-vh, 100svh), 100svh); display: grid; place-items: center; scroll-snap-align: start; scroll-snap-stop: always; }
.tiv-diapo__scene { display: flex; align-items: center; justify-content: center; gap: 36px; }
.tiv-diapo__cadre { position: relative; height: min(84vh, 760px); aspect-ratio: 9 / 16; border-radius: 28px; overflow: hidden; background: var(--tiv-plum-800); box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4); }
.tiv-diapo__cadre .tiv-son { right: 14px; bottom: 14px; }

.tiv-lecteur__fermer { position: fixed; top: 20px; right: 20px; z-index: 4; background: rgba(248, 247, 241, 0.14); }
.tiv-lecteur__compteur { position: fixed; top: 32px; left: 28px; z-index: 4; font-size: 14px; font-weight: 800; letter-spacing: 0.04em; color: rgba(248, 247, 241, 0.75); }
.tiv-lecteur__nav { position: fixed; right: 28px; top: 50%; transform: translateY(-50%); z-index: 4; display: flex; flex-direction: column; gap: 10px; }
.tiv-lecteur__nav .tiv-rond { width: 48px; height: 48px; background: rgba(248, 247, 241, 0.14); }
.tiv-lecteur__aide { position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 4; font-size: 12.5px; color: rgba(248, 247, 241, 0.55); white-space: nowrap; pointer-events: none; }
.tiv-lecteur--une .tiv-lecteur__nav, .tiv-lecteur--une .tiv-lecteur__compteur, .tiv-lecteur--une .tiv-lecteur__aide { display: none; }

/* Fiche produit du lecteur */
.tiv-fiche { width: 340px; max-height: min(84vh, 760px); overflow-y: auto; display: flex; flex-direction: column; gap: 14px; padding: 28px; border-radius: 28px; background: var(--tiv-cream); color: var(--tiv-ink); box-shadow: var(--tiv-ombre-4); }
.tiv-fiche__rayon { align-self: flex-start; padding: 5px 11px; border-radius: 999px; background: var(--tiv-plum-100); color: var(--tiv-plum-700); font-size: 12px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }
.tiv-fiche__tete { display: flex; flex-direction: column; gap: 10px; }
.tiv-fiche__noms { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.tiv-lecteur .tiv-fiche__nom { font-family: var(--tiv-titre); font-size: 40px; line-height: 0.92; color: var(--tiv-plum-600); text-decoration: none; }
.tiv-lecteur .tiv-fiche__nom:hover { color: var(--tiv-plum-700); }
.tiv-fiche__accroche { font-size: 14.5px; line-height: 1.5; color: var(--tiv-mauve-600); }
.tiv-fiche__prix { font-size: 24px; }
.tiv-fiche__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tiv-tag { padding: 5px 11px; border-radius: 999px; background: var(--tiv-white); border: 1px solid var(--tiv-mist-200); font-size: 12.5px; font-weight: 700; color: var(--tiv-mauve-600); }
.tiv-fiche__actions { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.tiv-fiche__voir .tiv-icone { font-size: 16px; }

.tiv-options { display: flex; flex-direction: column; gap: 12px; padding: 14px; border-radius: 20px; background: var(--tiv-white); }
.tiv-options__groupe { display: flex; flex-direction: column; gap: 8px; }
.tiv-options__titre { font-size: 13px; font-weight: 800; color: var(--tiv-ink); }
.tiv-options__puces { display: flex; flex-wrap: wrap; gap: 6px; }
.tiv-options__attente { font-size: 14px; color: var(--tiv-mauve-500); }

/* ------------------------------------------------------------------ */
/* Tablette et téléphone                                               */
/* ------------------------------------------------------------------ */

@media (max-width: 1180px) {
	.tiv-grille--page { --tiv-colonnes: 4; }
	.tiv-diapo__scene { gap: 24px; }
	.tiv-fiche { width: 300px; padding: 22px; }
}

@media (max-width: 960px) {
	.tiv-grille--page { --tiv-colonnes: 3; }
	.tiv-intro { flex-direction: column; align-items: flex-start; gap: 16px; }
}

@media (max-width: 767px) {
	.tiv--page { padding: 0 16px 40px; }
	.tiv-intro { padding: 24px 0 16px; }
	.tiv .tiv-intro__texte { font-size: 15px; }
	.tiv-grille { gap: 22px 12px; --tiv-min: 140px; }
	.tiv-grille--page { --tiv-colonnes: 2; }
	.tiv .tiv-carte__nom { font-size: 15px; }
	.tiv-carte__affiche, .tiv-carte__bouton, .tiv-carte__media, .tiv-place { border-radius: 20px; }

	/* Filtres : un bouton, puis une feuille qui monte du bas */
	.tiv-barre { display: flex; position: sticky; top: var(--tiv-haut, 0px); z-index: 5; margin: 0 -16px; padding: 10px 16px; background: color-mix(in srgb, var(--tiv-cream) 92%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
	.tiv-barre__ouvrir .tiv-icone { font-size: 18px; }
	.tiv-filtres { display: none; position: fixed; inset: 0; z-index: 999980; margin: 0; padding: 0; border: 0; background: rgba(31, 18, 48, 0.5); -webkit-backdrop-filter: none; backdrop-filter: none; align-items: flex-end; }
	.tiv-filtres--ouvert { display: flex; animation: tiv-entree 200ms var(--tiv-doux) both; }
	.tiv-filtres__feuille { width: 100%; max-height: 86dvh; overflow-y: auto; gap: 16px; padding: 10px 18px calc(20px + env(safe-area-inset-bottom)); border-radius: 28px 28px 0 0; background: var(--tiv-cream); animation: tiv-monte 320ms var(--tiv-doux) both; }
	@keyframes tiv-monte { from { transform: translateY(40px); } to { transform: none; } }
	.tiv-filtres__poignee { display: block !important; align-self: center; width: 44px; height: 5px; border-radius: 999px; background: var(--tiv-mist-300); }
	.tiv-filtres__titre-feuille { display: block !important; font-family: var(--tiv-titre); font-size: 32px; line-height: 1; color: var(--tiv-plum-600); }
	.tiv-filtres__voir { display: inline-flex !important; background: var(--tiv-plum-600); position: sticky; bottom: 0; }
	.tiv-filtres__ligne, .tiv-filtres__groupe { flex-direction: column; align-items: stretch; gap: 8px; }
	.tiv-filtres__ligne--groupes { gap: 16px; }
	.tiv-filtres__ligne--rayons .tiv-filtres__titre { position: static; width: auto; height: auto; clip-path: none; }
	.tiv-filtres__tri { margin: 8px 0 0; flex-direction: column; align-items: stretch; gap: 8px; }
	.tiv-puce--effacer { align-self: flex-start; }

	/* Lecteur : vidéo bord à bord, fiche posée en bas */
	.tiv-lecteur { background: var(--tiv-plum-900); }
	.tiv-diapo__scene { position: absolute; inset: 0; display: block; }
	.tiv-diapo__cadre { position: absolute; inset: 0; height: auto; aspect-ratio: auto; border-radius: 0; box-shadow: none; }
	.tiv-progres { top: calc(68px + env(safe-area-inset-top)); left: 12px; right: 12px; }
	.tiv-diapo__cadre .tiv-son { right: 12px; bottom: 236px; }
	.tiv-diapo--seule .tiv-diapo__cadre .tiv-son { bottom: calc(24px + env(safe-area-inset-bottom)); }
	.tiv-fiche { position: absolute; left: 12px; right: 12px; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 3; width: auto; max-height: 72dvh; gap: 10px; padding: 16px; border-radius: 24px; }
	.tiv-fiche__rayon, .tiv-fiche__tags { display: none; }
	.tiv-fiche__tete { flex-direction: row; align-items: flex-start; justify-content: space-between; gap: 10px; }
	.tiv-lecteur .tiv-fiche__nom { font-size: 28px; line-height: 0.95; }
	.tiv-fiche__accroche { font-size: 13px; line-height: 1.4; color: var(--tiv-mauve-600); }
	.tiv-fiche__prix { flex: 0 0 auto; font-size: 19px; text-align: right; }
	.tiv-fiche__actions { flex-direction: row-reverse; gap: 8px; margin: 0; }
	.tiv-fiche__actions .tiv-bouton { flex: 1 1 0; min-width: 0; min-height: 48px; font-size: 14.5px; padding: 0 14px; }
	.tiv-lecteur__fermer { top: calc(12px + env(safe-area-inset-top)); right: auto; left: 12px; width: 44px; height: 44px; background: rgba(31, 18, 48, 0.5); }
	.tiv-lecteur__compteur { top: calc(26px + env(safe-area-inset-top)); left: auto; right: 16px; text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35); }
	.tiv-lecteur__nav, .tiv-lecteur__aide { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	.tiv-puce, .tiv-bouton, .tiv-rond, .tiv-carte__affiche, .tiv-carte__play, .tiv-diapo__etat { transition: none; }
	.tiv-lecteur, .tiv-filtres--ouvert, .tiv-filtres__feuille { animation: none; }
	.tiv-lecteur__flux { scroll-behavior: auto; }
}

/* ------------------------------------------------------------------ */
/* 1.1.0 — Aperçu au survol                                            */
/* ------------------------------------------------------------------ */

/*
 * La vidéo n'est jamais en transparence : c'est l'affiche, posée dessus, qui
 * s'efface. Une vidéo en opacité partielle passe par un autre rendu des
 * couleurs que la même vidéo opaque (flagrant en HDR : plus claire pendant
 * le fondu, puis plus sombre).
 */
.tiv-apercu { z-index: 0; background: transparent; pointer-events: none; }
.tiv-carte__affiche img { z-index: 1; transition: opacity 120ms var(--tiv-doux); }
.tiv-en-apercu .tiv-carte__affiche img { opacity: 0; }
.tiv-carte__duree, .tiv-carte__nouvelle, .tiv-carte__play { z-index: 2; }
.tiv-en-apercu .tiv-carte__play { opacity: 0 !important; }

/* ------------------------------------------------------------------ */
/* 1.1.0 — Fiche produit : bouton « Regarde-le en vidéo » et vignette  */
/* ------------------------------------------------------------------ */

.tiv--bouton, .tiv--vignette { display: inline-block; width: auto; }
.tiv-vbouton {
	display: inline-flex; align-items: center; gap: 12px; padding: 6px 18px 6px 6px;
	border-radius: 999px; border: none; background: var(--tiv-white); box-shadow: var(--tiv-ombre-2);
	cursor: pointer; font-family: inherit; color: var(--tiv-ink); text-align: left;
	transition: transform 140ms var(--tiv-ressort), box-shadow 240ms var(--tiv-doux);
}
.tiv-vbouton:hover { transform: translateY(-1px); box-shadow: var(--tiv-ombre-4); }
.tiv-vbouton:focus-visible, .tiv-vignette:focus-visible { outline: 2px solid var(--tiv-cherry-400); outline-offset: 3px; }
.tiv-vbouton__rond { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 999px; background: var(--tiv-plum-800); color: var(--tiv-cream); display: grid; place-items: center; font-size: 16px; }
.tiv-vbouton__rond .tiv-icone { margin-left: 2px; }
.tiv-vbouton__textes { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.2; }
.tiv-vbouton__titre { font-weight: 800; font-size: 15px; }
.tiv-vbouton__sous { font-size: 12.5px; font-weight: 600; color: var(--tiv-mauve-500); }

.tiv-vignette {
	position: relative; flex: 0 0 auto; width: var(--tiv-vignette, 52px); height: var(--tiv-vignette, 52px); padding: 0;
	border-radius: 16px; overflow: hidden; border: none; cursor: pointer;
	background: var(--tiv-plum-800); color: var(--tiv-cream); display: grid; place-items: center;
	box-shadow: inset 0 0 0 1px var(--tiv-plum-700); font-size: 18px;
}
.tiv-vignette > .tiv-icone { margin-left: 2px; }
.tiv-vignette__duree { position: absolute; left: 0; right: 0; bottom: 3px; text-align: center; font-size: 9.5px; font-weight: 800; letter-spacing: 0.02em; line-height: 1; }
.tiv-vignette:has(.tiv-vignette__duree) > .tiv-icone { margin-top: -6px; }

/* Lien « D'autres vidéos » dans la fiche du lecteur */
.tiv-fiche__autres .tiv-icone { font-size: 15px; color: var(--tiv-cherry-500); }

/* ------------------------------------------------------------------ */
/* 1.1.0 — Méga menu                                                   */
/* ------------------------------------------------------------------ */

.tiv--menu { container-type: inline-size; }
.tiv--menu .tiv-entete { margin-bottom: 10px; }
.tiv--menu .tiv-entete__titre { font-size: 26px; }
.tiv--menu .tiv-grille { grid-template-columns: repeat(var(--tiv-colonnes, 4), minmax(0, 1fr)); gap: 14px 12px; }
.tiv--menu .tiv-carte { gap: 7px; }
.tiv--menu .tiv-carte__affiche { box-shadow: none; }
.tiv--menu .tiv-carte__nom { font-size: 14px; }
.tiv--menu .tiv-carte__prix { font-size: 13.5px; margin-top: 0; }
.tiv--menu .tiv-carte__play { width: 44px; height: 44px; margin: -22px 0 0 -22px; font-size: 18px; }
.tiv--menu .tiv-carte__nouvelle { left: 8px; top: 8px; padding: 4px 8px; font-size: 11px; }
.tiv--menu .tiv-carte__duree { left: 8px; bottom: 8px; padding: 4px 7px; font-size: 11px; }
.tiv--sans-prix .tiv-carte__prix { display: none; }

/* Menu étroit (menu mobile, colonne) : une rangée qu'on fait glisser. */
@container (max-width: 520px) {
	.tiv--menu .tiv-grille {
		display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
		gap: 10px; margin: 0 -4px; padding: 0 4px 4px; overscroll-behavior-x: contain;
	}
	.tiv--menu .tiv-grille::-webkit-scrollbar { display: none; }
	.tiv--menu .tiv-carte { flex: 0 0 116px; scroll-snap-align: start; }
	.tiv--menu .tiv-carte__nom { font-size: 13.5px; }
}

@media (max-width: 767px) {
	.tiv-fiche__actions { flex-wrap: wrap; }
	.tiv-fiche__actions .tiv-fiche__autres { flex: 1 1 100%; min-height: 42px; }
}

@media (prefers-reduced-motion: reduce) {
	.tiv-vbouton, .tiv-carte__affiche img { transition: none; }
}

/* ------------------------------------------------------------------ */
/* 1.1.4 — Fiche du lecteur plus sobre et plus compacte                */
/* ------------------------------------------------------------------ */

/* Nom en police du texte : Caveat Brush reste pour les grands titres de
   mise en avant (intro de la page, titres de section). */
.tiv-lecteur .tiv-fiche__nom { font-family: inherit; font-size: 24px; font-weight: 800; line-height: 1.15; letter-spacing: -0.01em; color: var(--tiv-plum-700); }
.tiv-lecteur .tiv-fiche__nom:hover { color: var(--tiv-plum-600); }

/* Replier / rappeler : téléphone seulement. */
.tiv-fiche__replier, .tiv-rappel { display: none; }

@media (max-width: 767px) {
	/* Fiche : collée plus bas, marges et boutons resserrés, pas d'accroche. */
	.tiv-fiche {
		position: absolute; left: 10px; right: 10px; bottom: calc(8px + env(safe-area-inset-bottom));
		gap: 8px; padding: 12px 12px 10px; border-radius: 20px; overflow: visible; max-height: none;
	}
	/* L'onglet dépasse de la fiche : c'est la liste des options (produit à
	   déclinaisons) qui défile si elle est longue, pas la fiche. */
	.tiv-options { max-height: 38dvh; overflow-y: auto; }
	.tiv-fiche__accroche { display: none; }
	.tiv-fiche__tete { align-items: center; }
	.tiv-fiche__noms { flex: 1 1 auto; }
	.tiv-lecteur .tiv-fiche__nom { font-size: 17px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
	.tiv-fiche__prix { font-size: 16px; }
	.tiv-fiche__actions { gap: 6px; }
	.tiv-fiche__actions .tiv-bouton { min-height: 40px; padding: 0 12px; font-size: 14px; }
	.tiv-fiche__actions .tiv-bouton .tiv-icone { font-size: 16px; }
	/* « D'autres vidéos » : simple lien, sans cadre, sous les boutons. */
	.tiv-fiche__actions .tiv-fiche__autres, .tiv-fiche__actions .tiv-fiche__autres:hover {
		flex: 1 1 100%; min-height: 30px; padding: 0; border: none; background: none; box-shadow: none;
		font-size: 13px; font-weight: 700; color: var(--tiv-plum-600) !important; text-decoration: underline; text-underline-offset: 3px;
	}

	/* Son : en haut à droite, sous le compteur, pour ne jamais buter sur la fiche. */
	.tiv-diapo__cadre .tiv-son, .tiv-diapo--seule .tiv-diapo__cadre .tiv-son { top: calc(84px + env(safe-area-inset-top)); bottom: auto; right: 12px; width: 42px; height: 42px; }

	/* Onglet ⌄ posé sur le bord haut de la fiche. */
	.tiv-fiche__replier {
		display: grid; place-items: center; position: absolute; left: 50%; top: -14px; transform: translateX(-50%);
		width: 48px; height: 28px; padding: 0; border: none; border-radius: 999px;
		background: var(--tiv-cream); color: var(--tiv-plum-600); font-size: 18px; cursor: pointer;
		box-shadow: 0 -2px 8px rgba(31, 18, 48, 0.12);
	}
	/* Zone de toucher plus large que l'onglet dessiné. */
	.tiv-fiche__replier::before { content: ""; position: absolute; inset: -8px -10px; }

	/* Pastille de rappel : sac, nom, prix, ⌃. */
	.tiv-rappel {
		position: absolute; z-index: 3; left: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); max-width: calc(100% - 20px);
		align-items: center; gap: 8px; min-height: 40px; padding: 0 12px 0 14px; border: none; border-radius: 999px;
		background: var(--tiv-cream); color: var(--tiv-ink); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer;
		box-shadow: 0 6px 20px rgba(31, 18, 48, 0.25);
	}
	.tiv-rappel .tiv-icone { flex: 0 0 auto; font-size: 16px; color: var(--tiv-plum-600); }
	.tiv-rappel__nom { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
	.tiv-rappel__prix { flex: 0 0 auto; font-weight: 800; }
	.tiv-rappel__prix .tiv-prix__des { font-weight: 600; }

	.tiv-lecteur--replie .tiv-fiche { display: none; }
	.tiv-lecteur--replie .tiv-rappel { display: inline-flex; }
}
