/* Nakari en vraie app : on retire le cadre de démonstration de la maquette */
body.app-reelle .preview-bar { display: none; }
body.app-reelle .stage { height: 100%; padding: 0; }
body.app-reelle .window { max-width: none; border-radius: 0; border: 0; box-shadow: none; }
body.app-reelle .traffic, body.app-reelle .win-pc-ctl, body.app-reelle .win-os-label { display: none !important; }

/* iPhone : plein écran, zones sûres du téléphone (encoche, barre du bas) */
body.plateforme-iphone .iphone-stage { align-items: stretch; }
body.plateforme-iphone .iphone { width: 100%; height: 100%; border-radius: 0; border: 0; box-shadow: none; padding-top: env(safe-area-inset-top); }
body.plateforme-iphone .iphone-dock { bottom: calc(10px + env(safe-area-inset-bottom)); }
body.plateforme-iphone .iphone-body { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }

/* Pièce 3D de tournage par-dessus l'app */
.realisation-voile { position: fixed; inset: 0; z-index: 900; background: #07080C; display: none; }
.realisation-voile.ouvert { display: block; }
.realisation-voile iframe { width: 100%; height: 100%; border: 0; display: block; }
.realisation-fermer { position: absolute; z-index: 2; left: 10px; top: calc(8px + env(safe-area-inset-top)); height: 32px; padding: 0 16px; border-radius: 10px; background: #F1EFEA; color: #0D0E12; font: 600 13px/1 var(--font-sans); cursor: pointer; }

/* iPhone : un espace ouvert depuis l'accueil du téléphone, en plein écran, une colonne */
body.iphone-detail .shell { grid-template-columns: minmax(0, 1fr); }
body.iphone-detail .sidebar { display: none; }
body.iphone-detail .titlebar { grid-template-columns: auto 1fr auto; padding: env(safe-area-inset-top) 10px 0; height: calc(48px + env(safe-area-inset-top)); }
body.iphone-detail .cmdk-btn span:not(:first-child) { display: none; }
body.iphone-detail .cue072-copy { max-width: 46vw; overflow: hidden; }
body.iphone-detail .main { padding: 12px 14px calc(96px + env(safe-area-inset-bottom)); }
body.iphone-detail .grid-2, body.iphone-detail .grid-3 { grid-template-columns: minmax(0, 1fr); }
body.iphone-detail .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
body.iphone-detail .main [style*="grid-template-columns:1fr 1fr"],
body.iphone-detail .main [style*="grid-template-columns:320px"] { grid-template-columns: minmax(0, 1fr) !important; }
/* Semaines du calendrier : on garde les 7 jours mais on fait défiler de côté */
body.iphone-detail .main [style*="repeat(7"], body.iphone-detail .main [style*="repeat(6"] { min-width: 640px; }
body.iphone-detail .main section, body.iphone-detail .main .card { overflow-x: auto; }
.retour-iphone { display: none; height: 32px; padding: 0 12px; border-radius: 9px; background: var(--surface-2); color: var(--ink); font: 600 13px/1 var(--font-sans); }
body.iphone-detail .retour-iphone { display: inline-flex; align-items: center; }
/* Barre d'onglets trop large pour le téléphone : elle défile de côté au lieu de pousser la page */
body.iphone-detail .compact-left { min-width: 0; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
body.iphone-detail .cue350-bar { flex-wrap: nowrap; }

/* Bandeau « exemple » ou « pas encore branché » sur les écrans sans source réelle */
.nk-avis { padding: 10px 14px; border-radius: 11px; background: var(--accent-bg); border: 1px solid var(--accent-border); color: var(--ink); font-size: 12.5px; }
.nk-projet { height: 32px; padding: 0 10px; border-radius: 9px; max-width: 360px; font-size: 12.5px; }
