﻿/* ═══════════════════════════════════════════════════════════════════════════
   DEVINE LE PARTI — GLUE D'INTÉGRATION V3 (carte de jeu)
   ───────────────────────────────────────────────────────────────────────────
   Chargé APRÈS style.css pour pouvoir neutraliser le visuel de la carte
   « dossier » legacy, remplacée par la carte trading DLPCard.
   Le DOM dossier reste présent (helpers app.js + borders.js le référencent
   encore) mais devient invisible et hors-flux ; nettoyage prévu en Task 12.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─── Hôte de la carte trading : pilote la taille de la carte ──────────── */
.dlp-card-host { position: relative; width: 100%; z-index: 1; }
.dlp-card-host .card { width: 100%; height: auto; margin: 0; }
.dlp-card-host .card .card-svg { width: 100%; height: auto; display: block; }

/* ─── Neutralisation TOTALE de la carte dossier legacy (V3 R2 bug#1) ───────
   La carte trading DLPCard remplace entièrement la carte « dossier ». On
   masque la photo-wrap COMPLÈTEMENT (display:none) : plus aucun overlay legacy
   (contour role-outline injecté par borders.js, scan-lines, vignette, café,
   sceau RF, glare shiny) ne peut fuir par-dessus la DLPCard.
   Le tampon verdict #card-stamp a été SORTI de .photo-wrap dans index.html :
   c'est désormais un enfant direct de #deputy-card, traité plus bas. */
.deputy-card .photo-wrap,
.deputy-card-shadow .shadow-photo-wrap,
.deputy-card .fx-stamp,
.deputy-card-shadow .fx-stamp,
.deputy-card .coffee-stain-clip,
.deputy-card-shadow .coffee-stain-clip { display: none !important; }

/* Tampon verdict ✓/✗ : overlay centré sur la carte trading, AU-DESSUS du
   cadre DLPCard (z-card = 20). Reste piloté par .stamp/.stamp.show (style.css). */
.deputy-card > #card-stamp {
  display: block !important;
  z-index: 25;
  pointer-events: none;
}

/* ─── Hemicycle V3 : DLPHemi visible, SVG legacy masque ─────────────────── */
#hemicycle-svg { display: none !important; }
#hemi-slot { width: 100%; position: relative; z-index: 1; }
#hemi-slot .hemicycle { width: 100%; }
#hemi-slot .hemi-svg, #hemi-slot svg { width: 100%; height: auto; display: block; }


/* La carte legacy ne doit plus imposer de forme ni de hauteur : DLPCard pilote. */
.deputy-card, .deputy-card-shadow { height: auto !important; min-height: 0 !important; aspect-ratio: auto !important; display: block !important; }
.deputy-card .photo-wrap, .deputy-card-shadow .shadow-photo-wrap { clip-path: none !important; -webkit-clip-path: none !important; }


/* SVG DLPHemi : forcer le ratio (un svg inline + height:auto peut s'ecraser). */
#hemi-slot .hemi-svg, #hemi-slot > .hemicycle > svg {
  width: 100% !important; height: auto !important; aspect-ratio: 400 / 240 !important; display: block !important;
}
#hemi-slot, #hemi-slot .hemicycle { width: 100% !important; }
