/* A-914 : bandeau « Vu sur TF1 » et fenêtre du spot. */
.tf1-band { position: relative; z-index: 60; display: flex; align-items: center; justify-content: center; gap: .75rem; padding: .45rem 2.6rem .45rem 1rem; font: 600 .92rem/1.2 'Figtree', 'DM Sans', system-ui, sans-serif; background: #26301A; color: #fff; }
.tf1-band[hidden] { display: none; }
.tf1-band--cave, .tf1-band--macave { background: #4A1420; }
.tf1-band-txt { display: inline-flex; align-items: center; gap: .4rem; letter-spacing: .01em; }
.tf1-logo { display: block; height: 18px; width: auto; }
.tf1-word { font-weight: 800; letter-spacing: .04em; }
.tf1-band-btn { display: inline-flex; align-items: center; gap: .35rem; min-height: 32px; padding: .3rem .85rem; border: 1px solid rgba(255, 255, 255, .7); border-radius: 999px; background: transparent; color: #fff; font: inherit; cursor: pointer; }
.tf1-band-btn:hover, .tf1-band-btn:focus-visible { background: #fff; color: #26301A; }
.tf1-band--cave .tf1-band-btn:hover, .tf1-band--macave .tf1-band-btn:hover { color: #4A1420; }
.tf1-band-close { position: absolute; right: .4rem; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border: none; border-radius: 50%; background: transparent; color: rgba(255, 255, 255, .8); font-size: 1.3rem; line-height: 1; cursor: pointer; }
.tf1-band-close:hover { background: rgba(255, 255, 255, .15); color: #fff; }
.tf1-modal { width: min(92vw, 1100px); max-height: 92vh; padding: 0; border: none; border-radius: 14px; background: #000; overflow: visible; }
.tf1-modal.is-tall { width: auto; height: min(88vh, 900px); aspect-ratio: 9 / 16; max-width: 94vw; }
.tf1-modal::backdrop { background: rgba(0, 0, 0, .78); }
.tf1-video { display: block; width: 100%; height: 100%; max-height: 92vh; border-radius: 14px; background: #000; }
.tf1-modal-close { position: absolute; top: -14px; right: -14px; z-index: 2; width: 36px; height: 36px; border: none; border-radius: 50%; background: #fff; color: #111; font-size: 1.4rem; line-height: 1; cursor: pointer; box-shadow: 0 2px 10px rgba(0, 0, 0, .35); }
@media (max-width: 600px) {
  .tf1-band { font-size: .85rem; gap: .5rem; padding-right: 2.4rem; }
  .tf1-modal-close { top: 8px; right: 8px; }
}

/* Espace sous le bandeau : le médaillon de l en-tête (carte de France) déborde vers le haut. */
.tf1-spacer { height: 38px; } /* vrai espace : une marge se confondrait avec celle de l'en-tête */
.tf1-band[hidden] + .tf1-spacer { display: none; }

/* La Cave sur ordinateur : l'en-tête posé sur la photo est en position absolue (36 px du haut) ; on le décale de la hauteur du bandeau et de l'espace. */
@media (min-width: 1024px) {
  .tf1-band { box-sizing: border-box; height: 46px; }
  .tf1-band:not([hidden]) ~ .cv-hd--hero { top: calc(36px + 46px + 38px); }
}

/* A-932 : sur mobile et tablette, pas de médaillon dans l'en-tête : pas d'espace sous le bandeau */
@media (max-width: 1023px) {
  .tf1-spacer { display: none; }
}

/* A-933 : la croix de la vidéo reste toujours dans l'écran (iPhone Duo, petits écrans) : dans l'angle de la vidéo, au-dessus d'elle */
.tf1-modal-close { top: 10px; right: 10px; width: 40px; height: 40px; z-index: 3; background: rgba(255, 255, 255, .95); }
.tf1-modal { max-width: calc(100vw - 16px); max-height: calc(100dvh - 16px); }
.tf1-modal.is-tall { height: min(88dvh, 900px); max-width: calc(100vw - 16px); }

/* A-934 : remettre le son quand la vidéo a démarré en muet */
.tf1-unmute { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 3; padding: 12px 20px; border: none; border-radius: 999px; background: rgba(255, 255, 255, .95); color: #111; font: 600 1rem/1.2 'Figtree', system-ui, sans-serif; cursor: pointer; box-shadow: 0 4px 18px rgba(0, 0, 0, .35); }
.tf1-unmute[hidden] { display: none; }
/* A-934 : sur écran tactile, pas d'effet de survol (Safari réservait parfois le premier toucher au survol) */
@media (hover: none) {
  .tf1-band-btn:hover { background: transparent; color: #fff; }
}
