/* Pages d'applications emmgr.dev : une feuille commune, une couleur d'accent par app (--accent) */
:root {
  color-scheme: dark;
  --bg: #07090f;
  --bg-2: #0c0f18;
  --card: #10141f;
  --line: rgba(190, 205, 255, 0.10);
  --line-2: rgba(190, 205, 255, 0.18);
  --ink: #eef1f8;
  --ink-2: rgba(226, 232, 248, 0.68);
  --ink-3: rgba(226, 232, 248, 0.44);
  --accent: #7aa2ff;
  --ok: #4fd18b;
  --warn: #f0b54a;
  --radius: 16px;
  --max: 1120px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;
    --bg: #fbfbfd; --bg-2: #f3f4f8; --card: #ffffff;
    --line: rgba(20, 30, 60, 0.09); --line-2: rgba(20, 30, 60, 0.16);
    --ink: #0d1120; --ink-2: rgba(13, 17, 32, 0.68); --ink-3: rgba(13, 17, 32, 0.46);
  }
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { background: var(--bg); color: var(--ink); font: 400 16px/1.6 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* Barre du haut : 56 px, verre */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: blur(18px) saturate(150%); -webkit-backdrop-filter: blur(18px) saturate(150%); border-bottom: 1px solid var(--line); }
.top .wrap { height: 56px; display: flex; align-items: center; gap: 16px; }
.back { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-size: 14px; color: var(--ink-2); padding: 6px 10px 6px 6px; margin-left: -6px; border-radius: 8px; transition: background 0.16s, color 0.16s; }
.back:hover { background: var(--bg-2); color: var(--ink); }
.back b { font-weight: 600; letter-spacing: 0.02em; color: var(--ink); }
.top .name { margin-left: auto; display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14px; }
.top .name img { width: 24px; height: 24px; border-radius: 6px; }

/* En tête de l'app */
.hero { padding-block: 72px 40px; }
.hero .id { display: flex; align-items: center; gap: 20px; }
.hero .icon { width: 88px; height: 88px; border-radius: 20px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), 0 0 0 1px var(--line); flex: none; }
.hero h1 { font-size: clamp(36px, 5vw, 54px); line-height: 1.05; letter-spacing: -0.03em; font-weight: 650; }
.hero .plat { margin-top: 6px; color: var(--ink-3); font-size: 15px; }
.hero .lede { margin-top: 28px; max-width: 760px; font-size: clamp(18px, 2vw, 21px); line-height: 1.55; color: var(--ink-2); }
.hero .lede strong { color: var(--ink); font-weight: 550; }
.row { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.btn { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 12px; font-weight: 550; font-size: 15px; text-decoration: none; transition: transform 0.16s var(--ease), background 0.16s, border-color 0.16s; }
.btn:active { transform: scale(0.98); }
.btn.primary { background: var(--ink); color: var(--bg); }
.btn.primary:hover { opacity: 0.9; }
.btn.ghost { border: 1px solid var(--line-2); color: var(--ink); }
.btn.ghost:hover { background: var(--bg-2); }
.status { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 13px; color: var(--ink-2); }
.status i { width: 7px; height: 7px; border-radius: 50%; background: var(--warn); }
.status.ok i { background: var(--ok); }
.status.dev i { background: var(--ink-3); }
.facts { margin-top: 36px; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.facts div { padding: 16px 18px; border-right: 1px solid var(--line); }
.facts div:last-child { border-right: 0; }
.facts dt { font-size: 12px; color: var(--ink-3); letter-spacing: 0.02em; }
.facts dd { margin-top: 4px; font-size: 15px; font-weight: 550; }

/* Visuels */
.shot { position: relative; border-radius: 14px; overflow: hidden; background: var(--bg-2); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35), 0 0 0 1px var(--line); cursor: zoom-in; }
.shot img { width: 100%; }
.hero-shot { margin-top: 48px; }
.phones { display: flex; gap: 20px; justify-content: center; align-items: flex-start; }
.phones .shot { flex: 0 1 300px; border-radius: 34px; }
.phones.lift .shot:nth-child(2) { margin-top: -24px; }
figcaption, .cap { margin-top: 12px; font-size: 13px; color: var(--ink-3); }
.tag { display: inline-block; margin-right: 6px; padding: 2px 7px; border-radius: 6px; font-size: 11px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; background: var(--bg-2); border: 1px solid var(--line-2); color: var(--ink-2); }

/* Sections de fonctionnalités, texte et image en alternance */
.feature { padding-block: 72px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center; }
.feature.flip > .text { order: 2; }
.feature.wide { grid-template-columns: 1fr; gap: 32px; }
.feature.wide .text { max-width: 760px; }
.kicker { font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }
.feature h2 { margin-top: 10px; font-size: clamp(26px, 3vw, 34px); line-height: 1.15; letter-spacing: -0.02em; font-weight: 650; }
.feature p { margin-top: 14px; color: var(--ink-2); }
.feature ul { margin-top: 18px; list-style: none; display: grid; gap: 10px; }
.feature li { position: relative; padding-left: 22px; color: var(--ink-2); }
.feature li::before { content: ""; position: absolute; left: 2px; top: 0.68em; width: 7px; height: 7px; border-radius: 2px; background: var(--accent); opacity: 0.85; }
.feature li b { color: var(--ink); font-weight: 600; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }

/* Grilles d'informations : panneaux de données réelles quand il n'y a pas de capture */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.cell { padding: 18px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); }
.cell h3 { font-size: 15px; font-weight: 600; display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.cell h3 span { font-size: 12px; font-weight: 500; color: var(--ink-3); }
.cell p { margin-top: 6px; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.cell .chips { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.cell .chips span { font-size: 12px; padding: 3px 8px; border-radius: 6px; background: var(--bg-2); border: 1px solid var(--line); color: var(--ink-2); }
.cell .state { margin-top: 10px; font-size: 12px; color: var(--ink-3); display: flex; align-items: center; gap: 6px; }
.cell .state i { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }
.cell .state.wip i { background: var(--warn); }
.pending { padding: 22px; border-radius: 14px; border: 1px dashed var(--line-2); color: var(--ink-3); font-size: 14px; text-align: center; }

/* Bas de page : confidentialité, configuration, prix */
.infos { padding-block: 72px; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.infos h3 { font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.infos p, .infos li { margin-top: 10px; font-size: 15px; color: var(--ink-2); }
.infos ul { list-style: none; }
.infos b { color: var(--ink); font-weight: 600; }

.others { padding-block: 64px 40px; border-top: 1px solid var(--line); }
.others h3 { font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.others nav { margin-top: 18px; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.others a { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 12px; text-decoration: none; transition: background 0.16s; }
.others a:hover { background: var(--bg-2); }
.others img { width: 40px; height: 40px; border-radius: 10px; box-shadow: 0 0 0 1px var(--line); }
.others b { display: block; font-size: 14px; font-weight: 600; }
.others small { display: block; font-size: 12px; color: var(--ink-3); }
footer { padding-block: 28px 48px; color: var(--ink-3); font-size: 13px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
footer a { text-decoration: none; color: var(--ink-2); }
footer a:hover { color: var(--ink); }

/* Dans le cockpit : la barre du cadre remplace la barre du haut */
.framed .top { display: none; }

/* Agrandissement d'une capture */
dialog.zoom { margin: auto; padding: 0; border: 0; background: transparent; max-width: 94vw; max-height: 92vh; }
dialog.zoom::backdrop { background: rgba(2, 4, 10, 0.86); backdrop-filter: blur(6px); }
dialog.zoom img { max-width: 94vw; max-height: 92vh; width: auto; border-radius: 12px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* Téléphone : une colonne, 16 px de marge */
@media (max-width: 820px) {
  .wrap { padding: 0 16px; }
  .hero { padding-block: 44px 24px; }
  .hero .icon { width: 68px; height: 68px; border-radius: 16px; }
  .feature, .feature.flip { grid-template-columns: 1fr; gap: 28px; padding-block: 52px; }
  .feature.flip > .text { order: 0; }
  .infos { grid-template-columns: 1fr; gap: 28px; padding-block: 52px; }
  .facts div { border-right: 0; border-bottom: 1px solid var(--line); }
  .phones { gap: 10px; }
  .phones .shot { border-radius: 22px; }
  .phones.lift .shot:nth-child(2) { margin-top: 0; }
  .duo { grid-template-columns: 1fr; }
  .top .name span { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
