/* GUIZCUT — lecteur vidéo premium et mises en page de démonstration (Issue #18) */
.gzv { margin: 0; position: relative; display: grid; gap: 12px; }
.gzv-media { position: relative; overflow: hidden; border-radius: 10px; background: #050b0d;
  box-shadow: 0 30px 90px rgba(0,0,0,.6), 0 0 0 1px rgba(242,237,228,.12); }
.gzv[data-format="9:16"] .gzv-media { aspect-ratio: 9 / 16; }
.gzv[data-format="16:9"] .gzv-media { aspect-ratio: 16 / 9; }
.gzv video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Vignettage discret pour la lisibilité des commandes */
.gzv-media::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,.35), transparent 18%, transparent 78%, rgba(0,0,0,.55)); }

/* Étiquette de nature : source tierce autorisée ≠ montage GUIZCUT */
.gzv-type { position: absolute; z-index: 3; top: 12px; left: 12px; font: 600 10.5px/1 var(--mono); letter-spacing: .1em;
  text-transform: uppercase; padding: 6px 8px; border-radius: 3px; }
.gzv[data-type="montage"] .gzv-type { background: var(--gold); color: #0a0a0a; }
.gzv[data-type="source"] .gzv-type { background: rgba(7,22,26,.85); color: var(--bone); border: 1px solid rgba(242,237,228,.35); }

/* Commandes : visibles à l'arrêt, discrètes pendant la lecture (réapparaissent au survol, au toucher et au clavier) */
.gzv-commandes { position: absolute; z-index: 3; left: 8px; right: 8px; bottom: 8px; display: flex; align-items: center; gap: 6px;
  padding: 4px; border-radius: 30px; background: rgba(5,11,13,.55); backdrop-filter: blur(8px); transition: opacity .25s, transform .25s; }
.gzv-commandes button { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 50%;
  border: 0; cursor: pointer; background: transparent; color: var(--bone); }
.gzv-commandes button:hover, .gzv-commandes button:focus-visible { background: var(--gold); color: #0a0a0a; }
.gzv button:focus-visible, .gzv-progres:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.gzv-commandes svg { width: 18px; height: 18px; }
.gzv.gzv-joue:not(:hover):not(:focus-within) .gzv-commandes { opacity: 0; transform: translateY(6px); }
@media (hover: none) { .gzv.gzv-joue .gzv-commandes { opacity: 1; transform: none; } }
.gzv-temps { font: 500 .7rem/1 var(--mono); color: var(--bone); white-space: nowrap; letter-spacing: .02em; }
/* Curseur de progression natif, habillé aux couleurs GUIZCUT */
.gzv-progres { --p: 0%; flex: 1; min-width: 40px; height: 44px; margin: 0; background: transparent; cursor: pointer; -webkit-appearance: none; appearance: none; }
.gzv-progres::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--gold) var(--p), rgba(242,237,228,.28) var(--p)); }
.gzv-progres::-moz-range-track { height: 4px; border-radius: 2px; background: rgba(242,237,228,.28); }
.gzv-progres::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--gold); }
.gzv-progres::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; margin-top: -5px; border-radius: 50%; background: var(--gold); border: 0; }
.gzv-progres::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--gold); border: 0; }
/* Grand bouton de lecture sur l'affiche */
.gzv-grand { position: absolute; z-index: 3; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%; border: 0;
  display: grid; place-items: center; cursor: pointer; background: var(--gold); color: #0a0a0a; box-shadow: 0 12px 40px rgba(0,0,0,.5);
  transition: transform .2s, opacity .2s; }
.gzv-grand svg { width: 28px; height: 28px; margin-left: 4px; }
.gzv-grand:hover { transform: scale(1.06); }
.gzv.gzv-demarre .gzv-grand { opacity: 0; pointer-events: none; transform: scale(.85); }
/* Chargement en cours */
.gzv.gzv-charge .gzv-media::before { content: ""; position: absolute; z-index: 4; left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px;
  border-radius: 50%; border: 3px solid rgba(242,237,228,.25); border-top-color: var(--gold); animation: gzv-tourne .8s linear infinite; }
@keyframes gzv-tourne { to { transform: rotate(360deg); } }
.gzv video { cursor: pointer; }
.gzv.gzv-erreur .gzv-commandes, .gzv.gzv-erreur .gzv-grand { display: none; }
.gzv.gzv-erreur .gzv-media::before { content: "Vidéo indisponible pour le moment"; position: absolute; z-index: 4; left: 12px; right: 12px; bottom: 12px;
  width: auto; height: auto; margin: 0; border: 0; animation: none;
  font-size: .85rem; background: rgba(7,7,8,.85); padding: 8px 10px; border-radius: 4px; color: var(--bone); }
@media (prefers-reduced-motion: reduce) { .gzv-commandes, .gzv-grand { transition: none; } .gzv.gzv-charge .gzv-media::before { animation-duration: 2.4s; } }

.gzv figcaption { font-size: .9rem; color: var(--muted); display: grid; gap: 4px; }
.gzv figcaption strong { color: var(--bone); font-weight: 600; }
.gzv .attribution { font: 500 .72rem/1.4 var(--mono); letter-spacing: .04em; color: rgba(242,237,228,.6); }

/* Emplacement en attente d'autorisation (aperçus internes uniquement) */
.gzv-attente { position: absolute; inset: 0; display: grid; place-content: center; gap: 10px; text-align: center; padding: 20px;
  background: radial-gradient(90% 55% at 50% 38%, rgba(255,176,0,.13), transparent 70%), linear-gradient(180deg, #0b1d22, #050b0d); }
.gzv-attente b { font: 400 clamp(1.3rem, 2.4vw, 2rem)/1.1 var(--display); text-transform: uppercase; color: var(--bone); }
.gzv-attente span { font: 500 .72rem/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }

/* Mise en page « transformation » : source 16:9 → clip 9:16 */
.transfo { display: grid; grid-template-columns: 1.75fr auto .62fr; gap: 22px; align-items: center; }
.transfo .fleche { font: 400 2.4rem/1 var(--display); color: var(--gold); }
@media (max-width: 760px) {
  .transfo { grid-template-columns: 1fr; }
  .transfo .fleche { transform: rotate(90deg); justify-self: center; }
  .transfo .gzv[data-format="9:16"] { width: min(72vw, 340px); justify-self: center; }
}

/* ——— Portfolio P3 : trois démonstrations verticales (validé le 17/10/2026) ——— */
.p3 { position: relative; }
.p3-piste { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2.6vw, 36px); list-style: none; margin: 0; padding: 0; }
.p3-carte { display: grid; gap: 16px; align-content: start; min-width: 0; }
.p3-carte .gzv-media { box-shadow: 0 24px 60px rgba(0,0,0,.55), 0 0 0 1px rgba(242,237,228,.1); }
.p3-fiche { display: grid; gap: 8px; }
.p3-cat { font: 500 .72rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin: 0; }
.p3-fiche h3 { margin: 0; font-size: clamp(1.15rem, 1.6vw, 1.4rem); line-height: 1.2; }
.p3-infos { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 4px 0 0; font-size: .88rem; }
.p3-infos dt { font: 500 .7rem/1.6 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: rgba(242,237,228,.55); }
.p3-infos dd { margin: 0; color: var(--muted); min-width: 0; overflow-wrap: anywhere; }
.p3-infos a { color: var(--bone); }
.p3-mention { margin: 4px 0 0; font: 500 .7rem/1.45 var(--mono); letter-spacing: .04em; color: rgba(242,237,228,.6);
  border-left: 2px solid var(--gold); padding-left: 10px; }
.p3-attente-texte { font-size: .9rem; }
.p3-drapeau { position: absolute; z-index: 3; top: 44px; left: 12px; font: 600 10px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase;
  background: var(--ember, #e2572c); color: #0a0a0a; padding: 6px 8px; border-radius: 3px; }
.p3-carte .gzv-attente b { font-size: clamp(1.5rem, 2.2vw, 2rem); }
.p3-nav { display: none; }
@media (max-width: 760px) {
  /* Carrousel tactile : une carte et l'amorce de la suivante ; jamais de défilement horizontal de la page */
  .p3-piste { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; overscroll-behavior-x: contain;
    margin: 0 calc(var(--pad) * -1); padding: 4px var(--pad) 8px; scroll-padding: 0 var(--pad); scrollbar-width: none; }
  .p3-piste::-webkit-scrollbar { display: none; }
  .p3-carte { flex: 0 0 min(78vw, 340px); scroll-snap-align: start; }
  .p3-nav { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 14px; }
  .p3-nav button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(242,237,228,.4); background: transparent;
    color: var(--bone); font: 400 1.2rem/1 var(--display); cursor: pointer; }
  .p3-nav button:disabled { opacity: .35; cursor: default; }
  .p3-etat { font: 500 .78rem/1 var(--mono); letter-spacing: .1em; color: var(--muted); min-width: 4ch; text-align: center; }
}

/* ——— Shorts de référence (YouTube, façade légère) ——— */
.gzv[data-type="reference"] .gzv-type { background: rgba(7,22,26,.85); color: var(--bone); border: 1px solid rgba(242,237,228,.35); }
.gzv-facade { position: absolute; inset: 0; display: block; color: inherit; cursor: pointer;
  background: radial-gradient(90% 55% at 50% 38%, rgba(255,176,0,.13), transparent 70%), linear-gradient(180deg, #0b1d22, #050b0d); }
.gzv-facade img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease, ease), filter .3s; }
.gzv-facade:hover img, .gzv-facade:focus-visible img { transform: scale(1.03); filter: brightness(1.06); }
.gzv-facade:focus-visible { outline: 3px solid var(--gold); outline-offset: -3px; }
.gzv-facade .gzv-grand { pointer-events: none; }
.gzv-facade:hover .gzv-grand, .gzv-facade:focus-visible .gzv-grand { transform: scale(1.08); }
.gzv-sans-image .gzv-facade img { display: none; }
.gzv-yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 2; background: #000; }
.gzv-yt.gzv-joue .gzv-media::after, .gzv-yt.gzv-joue .gzv-type { display: none; }
.p3-note { margin: 18px 0 0; text-align: center; }
@media (prefers-reduced-motion: reduce) { .gzv-facade img { transition: none; } }
