/* Mise en page : chaque page reprend la fenêtre des logiciels — barre de titre colorée, ruban à onglets, barre d'état en pied de page.
   La couleur de la barre change selon le logiciel présenté (bleu Texte, vert Tableur, aubergine Mail, rouge Distant, orange Image). */
:root {
  color-scheme: light;
  --bg: #f3f4f6;
  --surface: #ffffff;
  --ribbon: #fafaf8;
  --ink: #1a1e25;
  --muted: #586170;
  --line: #dcdfe5;
  --shadow: 0 1px 2px rgba(20, 26, 36, .06), 0 12px 32px -12px rgba(20, 26, 36, .22);

  --home: #262b33;      --home-bar: #1a1e25;    --home-soft: #e6e8ec;
  --texte: #2f5d8a;     --texte-bar: #1d2a3a;   --texte-soft: #e3ecf5;
  --tableur: #1f5a3a;   --tableur-bar: #143323; --tableur-soft: #e1eee5;
  --mail: #5a3f8c;      --mail-bar: #2a1f3d;    --mail-soft: #ece6f5;
  --distant: #8f2424;   --distant-bar: #3b1414; --distant-soft: #f6e5e3;
  --image: #b4520c;     --image-bar: #3d2209;   --image-soft: #fbeadb;
  --base: #7a4a26;      --base-bar: #2e2118;    --base-soft: #f3e8de;
  --explore: #4d5965;   --explore-bar: #2b3036; --explore-soft: #e6e9ed;
  --web: #0f7480;       --web-bar: #0e3a40;     --web-soft: #dff2f3;
  --code: #b42d68;      --code-bar: #2a1424;    --code-soft: #f8e3ec;
  --media: #8f6200;     --media-bar: #3a2a05;   --media-soft: #fbf0d6;
  --montage: #4a46c2;   --montage-bar: #1e1c4a; --montage-soft: #e7e6fb;
  --virtuel: #17786f;   --virtuel-bar: #0e3534; --virtuel-soft: #ddf1ee;
  --on-brand: #ffffff;
  --warn-bg: #fff6dc; --warn-ink: #6b4d00; --warn-line: #ecd48f;

  --f-display: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --radius: 10px;
  --wrap: 1120px;
}
[hidden] { display: none !important; }

/* Couleur de marque selon la page affichée */
body { --brand: var(--home); --brand-bar: var(--home-bar); --brand-soft: var(--home-soft); }
body[data-app="texte"]   { --brand: var(--texte);   --brand-bar: var(--texte-bar);   --brand-soft: var(--texte-soft); }
body[data-app="tableur"] { --brand: var(--tableur); --brand-bar: var(--tableur-bar); --brand-soft: var(--tableur-soft); }
body[data-app="mail"]    { --brand: var(--mail);    --brand-bar: var(--mail-bar);    --brand-soft: var(--mail-soft); }
body[data-app="distant"] { --brand: var(--distant); --brand-bar: var(--distant-bar); --brand-soft: var(--distant-soft); }
body[data-app="image"]   { --brand: var(--image);   --brand-bar: var(--image-bar);   --brand-soft: var(--image-soft); }
body[data-app="base"]    { --brand: var(--base);    --brand-bar: var(--base-bar);    --brand-soft: var(--base-soft); }
body[data-app="explore"] { --brand: var(--explore); --brand-bar: var(--explore-bar); --brand-soft: var(--explore-soft); }
body[data-app="web"]     { --brand: var(--web);     --brand-bar: var(--web-bar);     --brand-soft: var(--web-soft); }
body[data-app="code"]    { --brand: var(--code);    --brand-bar: var(--code-bar);    --brand-soft: var(--code-soft); }
body[data-app="media"]   { --brand: var(--media);   --brand-bar: var(--media-bar);   --brand-soft: var(--media-soft); }
body[data-app="montage"] { --brand: var(--montage); --brand-bar: var(--montage-bar); --brand-soft: var(--montage-soft); }
body[data-app="virtuel"] { --brand: var(--virtuel); --brand-bar: var(--virtuel-bar); --brand-soft: var(--virtuel-soft); }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0;
  background: var(--bg); color: var(--ink);
  font: 400 1.0625rem/1.6 var(--f-body);
  min-height: 100vh; display: flex; flex-direction: column;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--f-display); text-wrap: balance; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }

/* ---------- Barre de titre + ruban ---------- */
.chrome { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; }
.titlebar { background: var(--brand-bar); color: #fff; transition: background .35s; }
.titlebar .wrap { display: flex; align-items: center; gap: 12px; height: 40px; }
.brandmark { display: flex; align-items: center; gap: 9px; text-decoration: none; font: 700 .95rem var(--f-display); }
.brandmark .dots { display: flex; gap: 3px; }
.brandmark .dots i { width: 9px; height: 9px; border-radius: 3px; display: block; }
.dots i:nth-child(1) { background: #6d9cc9; } .dots i:nth-child(2) { background: #5fae80; } .dots i:nth-child(3) { background: #9a7fd0; } .dots i:nth-child(4) { background: #d0625a; } .dots i:nth-child(5) { background: #e8862a; } .dots i:nth-child(6) { background: #b07a4c; }
.wintitle { flex: 1; text-align: center; font-size: .85rem; color: rgba(255,255,255,.72); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.titlebar .ver { font: 500 .75rem var(--f-mono); color: rgba(255,255,255,.6); }

.ribbon { background: var(--ribbon); border-bottom: 1px solid var(--line); }
.ribbon .wrap { display: flex; align-items: center; gap: 4px; height: 48px; overflow-x: auto; scrollbar-width: none; }
.ribbon .wrap::-webkit-scrollbar { display: none; }
.filepill {
  flex: none; display: inline-flex; align-items: center; gap: 6px; text-decoration: none;
  background: var(--brand); color: var(--on-brand); font-weight: 700; font-size: .92rem;
  padding: 5px 14px; border-radius: 7px; margin-right: 10px; transition: background .35s, filter .15s;
}
.filepill:hover { filter: brightness(1.1); }
.tab {
  flex: none; position: relative; text-decoration: none; padding: 10px 12px; font-size: .95rem; color: var(--muted); white-space: nowrap;
}
.tab:hover { color: var(--ink); }
.tab[aria-current="page"] { color: var(--brand); font-weight: 700; }
.tab[aria-current="page"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 3px; border-radius: 3px; background: var(--brand); }

/* ---------- Boutons, puces ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none; cursor: pointer;
  font: 700 1rem var(--f-body); padding: 11px 20px; border-radius: 9px; border: 1px solid transparent;
  background: var(--brand); color: var(--on-brand); transition: filter .15s, transform .15s;
}
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { background: var(--surface); filter: none; }
.btn svg { width: 18px; height: 18px; flex: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: 500 .8rem var(--f-mono); padding: 4px 10px; border-radius: 6px; background: var(--brand-soft); color: var(--brand); }
.chip.plain { background: transparent; border: 1px solid var(--line); color: var(--muted); }
.eyebrow { font: 600 .78rem var(--f-body); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

/* ---------- Fenêtre (captures) ---------- */
.window { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.window img { width: 100%; height: auto; }

/* ---------- Pages ---------- */
main { flex: 1; }
.page { padding-block: 56px 80px; }
.page[hidden] { display: none; }
#logiciels { scroll-margin-top: 110px; }
.page > * + * { margin-top: 72px; }

/* Accueil */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2rem, 3.9vw, 2.9rem); line-height: 1.1; font-weight: 800; margin-top: 14px; }
.hero h1 span { display: inline; white-space: nowrap; }   /* les neuf verbes à la suite, chacun dans sa couleur */
.hero h1 .t { color: var(--texte); } .hero h1 .c { color: var(--tableur); } .hero h1 .m { color: var(--mail); } .hero h1 .d { color: var(--distant); } .hero h1 .i { color: var(--image); } .hero h1 .b { color: var(--base); } .hero h1 .e { color: var(--explore); } .hero h1 .w { color: var(--web); } .hero h1 .k { color: var(--code); } .hero h1 .md { color: var(--media); } .hero h1 .mo { color: var(--montage); }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 34em; margin-top: 20px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.free-note { margin-top: 16px; font-size: .92rem; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.free-note b { color: var(--ink); }
/* Héros centré : grand titre, neuf icônes */
.hero-center { display: block; text-align: center; padding-top: 32px; }
.hero-center h1 { font-size: clamp(2.6rem, 6.4vw, 5.2rem); line-height: 1; letter-spacing: -.035em; max-width: 12.5em; margin: 22px auto 0; }
.hero-center h1 .q { color: var(--mail); }
.hero-center .lead { margin: 24px auto 0; max-width: 36em; font-size: 1.25rem; }
.hero-center .actions { justify-content: center; margin-top: 34px; }
.hero-center .btn { padding: 14px 24px; }
.hero-icons { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 60px; }
.hero-icons img { width: 64px; height: 64px; filter: drop-shadow(0 10px 14px rgba(20, 26, 36, .22)); }

/* Liste des logiciels : trois groupes compacts */
.groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 32px; }
.group { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 20px 22px; display: flex; flex-direction: column; gap: 2px; }
.group .grp { font: 600 .78rem var(--f-body); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.app-row { display: flex; align-items: flex-start; gap: 14px; padding: 12px; margin-inline: -12px; border-radius: 10px; text-decoration: none; color: var(--ink); transition: background .15s; }
.app-row:hover { background: var(--ps); }
.app-row img { width: 44px; height: 44px; flex: none; }
.app-row .txt { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1; }
.app-row b { font: 700 1.12rem var(--f-display); }
.app-row .kind { font-size: .95rem; color: var(--muted); }
.app-row .fmt { font: 400 .78rem var(--f-mono); color: var(--p); margin-top: 3px; }
.app-row .go { width: 18px; height: 18px; flex: none; align-self: center; color: var(--p); opacity: 0; transform: translateX(-4px); transition: opacity .15s, transform .15s; }
.app-row:hover .go, .app-row:focus-visible .go { opacity: 1; transform: none; }
.app-row.texte { --p: var(--texte); --ps: var(--texte-soft); } .app-row.tableur { --p: var(--tableur); --ps: var(--tableur-soft); }
.app-row.image { --p: var(--image); --ps: var(--image-soft); } .app-row.explore { --p: var(--explore); --ps: var(--explore-soft); }
.app-row.web { --p: var(--web); --ps: var(--web-soft); } .app-row.mail { --p: var(--mail); --ps: var(--mail-soft); }
.app-row.base { --p: var(--base); --ps: var(--base-soft); } .app-row.code { --p: var(--code); --ps: var(--code-soft); }
.app-row.media { --p: var(--media); --ps: var(--media-soft); } .app-row.montage { --p: var(--montage); --ps: var(--montage-soft); } .app-row.virtuel { --p: var(--virtuel); --ps: var(--virtuel-soft); }
.app-row.distant { --p: var(--distant); --ps: var(--distant-soft); }
@media (max-width: 900px) { .groups { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) { .hero-center { padding-top: 8px; } .hero-icons { gap: 10px; margin-top: 40px; } .hero-icons img { width: 44px; height: 44px; } }

.fan { position: relative; aspect-ratio: 16 / 12.5; max-width: 100%; }
.fan .window { position: absolute; width: 70%; transition: transform .3s; }
.fan .w1 { left: 0.0%; top: 0.00%; transform: rotate(-2.5deg); }
.fan .w2 { left: 3.6%; top: 5.30%; transform: rotate(1deg); z-index: 1; }
.fan .w3 { left: 7.2%; top: 10.60%; transform: rotate(-1deg); z-index: 2; }
.fan .w4 { left: 10.8%; top: 15.90%; transform: rotate(1.2deg); z-index: 3; }
.fan .w5 { left: 14.4%; top: 21.20%; transform: rotate(-0.5deg); z-index: 4; }
.fan .w6 { left: 18.0%; top: 26.50%; transform: rotate(0.8deg); z-index: 5; }
.fan .w7 { left: 21.6%; top: 31.80%; transform: rotate(-0.6deg); z-index: 6; }
.fan .w8 { left: 25.2%; top: 37.10%; transform: rotate(0.9deg); z-index: 7; }
.fan .w9 { left: 28.8%; top: 42.40%; transform: rotate(-0.4deg); z-index: 8; }
.fan .window:hover { transform: rotate(0) translateY(-6px); z-index: 10; }

.section-head { display: grid; gap: 10px; max-width: 46em; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 700; line-height: 1.12; }
.section-head p { color: var(--muted); font-size: 1.1rem; }

.trio { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; margin-top: 32px; }
.trio .product { grid-column: span 4; }
.trio .grp { grid-column: span 12; margin: 10px 0 -8px; font: 600 .78rem var(--f-body); letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
  display: flex; align-items: center; gap: 12px; }
.trio .grp::after { content: ""; flex: 1; height: 1px; background: var(--line, rgba(0, 0, 0, .1)); }
.trio .grp:first-child { margin-top: 0; }
.product {
  display: flex; flex-direction: column; gap: 14px; text-decoration: none; padding: 24px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; transition: border-color .2s, transform .2s;
}
.product:hover { transform: translateY(-3px); border-color: var(--p); }
.product.texte { --p: var(--texte); --ps: var(--texte-soft); }
.product.tableur { --p: var(--tableur); --ps: var(--tableur-soft); }
.product.mail { --p: var(--mail); --ps: var(--mail-soft); }
.product.distant { --p: var(--distant); --ps: var(--distant-soft); }
.product.image { --p: var(--image); --ps: var(--image-soft); }
.product.base { --p: var(--base); --ps: var(--base-soft); }
.product.explore { --p: var(--explore); --ps: var(--explore-soft); }
.product.web { --p: var(--web); --ps: var(--web-soft); }
.product.code { --p: var(--code); --ps: var(--code-soft); }
.product.media { --p: var(--media); --ps: var(--media-soft); }
.product.montage { --p: var(--montage); --ps: var(--montage-soft); }
.product.virtuel { --p: var(--virtuel); --ps: var(--virtuel-soft); }
/* Vidéo de présentation */
.shot-wide { margin: 0; }
.product .top { display: flex; align-items: center; gap: 14px; }
.product .top img { width: 52px; height: 52px; }
.product h3 { font-size: 1.3rem; }
.product .kind { font-size: .92rem; color: var(--muted); }
.product p { color: var(--muted); }
.product .chips .chip { background: var(--ps); color: var(--p); }
.product .more { margin-top: auto; font-weight: 700; color: var(--p); display: inline-flex; align-items: center; gap: 6px; }
.product .more svg { width: 16px; height: 16px; transition: transform .2s; }
.product:hover .more svg { transform: translateX(3px); }

.common { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 32px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--surface); }
.common div { padding: 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; gap: 6px; align-content: start; }
.common div:nth-child(3n) { border-right: 0; }
.common div:nth-last-child(-n+3) { border-bottom: 0; }
.common h3 { font-size: 1.05rem; display: flex; align-items: center; gap: 10px; }
.common h3 svg { width: 20px; height: 20px; color: var(--muted); flex: none; }
.common p { color: var(--muted); font-size: .98rem; }

.cta-band {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
  padding: 32px; border-radius: 16px; background: var(--brand-bar); color: #fff;
}
.cta-band h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.cta-band p { color: rgba(255,255,255,.75); margin-top: 6px; }
.cta-band .btn { background: #fff; color: var(--brand-bar); }
.cta-band .btn.band-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.cta-band .actions { display: flex; flex-wrap: wrap; gap: 10px; }

.video-box { margin-top: 28px; border-radius: 14px; overflow: hidden; background: #0f1218; box-shadow: var(--shadow); aspect-ratio: 16 / 9; }
.video-box video { display: block; width: 100%; height: 100%; }

/* Pages produit */
.p-hero { display: grid; gap: 22px; max-width: 48em; }
.p-id { display: flex; align-items: center; gap: 18px; }
.p-id img { width: 76px; height: 76px; }
.p-id h1 { font-size: clamp(2.2rem, 4.6vw, 3.3rem); font-weight: 800; line-height: 1; }
.p-id .kind { font-size: 1.05rem; color: var(--muted); margin-top: 6px; }
.p-hero .lead { margin-top: 0; }
.formats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.formats > div { display: grid; gap: 6px; align-content: start; }
.formats .lbl { font-size: .85rem; color: var(--muted); }
.shot-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.caption { font-size: .9rem; color: var(--muted); margin-top: 10px; }

/* Groupes de fonctions façon ruban : libellé du groupe sous le contenu */
.groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 16px; margin-top: 28px; }
.group {
  display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
}
.group .body { padding: 20px 22px; display: grid; gap: 8px; flex: 1; align-content: start; }
.group h3 { font-size: 1.08rem; }
.group p { color: var(--muted); font-size: .98rem; }
.group .label {
  font-size: .78rem; color: var(--muted); text-align: center; padding: 7px 10px; border-top: 1px solid var(--line); background: var(--ribbon);
}

.formula {
  display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; align-items: center;
  border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font: 500 .95rem var(--f-mono); overflow: hidden;
}
.formula > * { padding: 12px 16px; }
.formula .ref { border-right: 1px solid var(--line); color: var(--muted); }
.formula .fx { font-style: italic; color: var(--muted); font-family: Georgia, serif; padding-inline: 10px; }
.formula .expr { color: var(--brand); white-space: nowrap; overflow-x: auto; }
.formula .res { background: var(--brand-soft); color: var(--ink); font-weight: 500; font-variant-numeric: tabular-nums; }
.fn-list { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; }

.keys { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 10px 24px; margin-top: 24px; }
.keys div { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.keys span { color: var(--muted); }
kbd { font: 500 .8rem var(--f-mono); padding: 3px 8px; border-radius: 6px; border: 1px solid var(--line); border-bottom-width: 2px; background: var(--surface); white-space: nowrap; }

.providers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.provider { padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; display: grid; gap: 4px; }
.provider b { font-family: var(--f-display); font-size: 1.05rem; }
.provider span { font-size: .9rem; color: var(--muted); }

/* Téléchargement */
.dl-head { display: grid; gap: 14px; max-width: 46em; }
.dl-head h1 { font-size: clamp(2.2rem, 4.6vw, 3.3rem); font-weight: 800; line-height: 1.05; }
.free-badges { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 4px; }
.free-badges span { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.free-badges svg { width: 18px; height: 18px; color: var(--tableur); }
.os-switch { display: inline-flex; padding: 4px; gap: 4px; border-radius: 11px; background: var(--surface); border: 1px solid var(--line); flex-wrap: wrap; }
.os-switch button {
  font: 600 .98rem var(--f-body); color: var(--muted); background: transparent; border: 0; padding: 9px 18px; border-radius: 8px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
}
.os-switch button svg { width: 18px; height: 18px; }
.os-switch button[aria-pressed="true"] { background: var(--brand); color: var(--on-brand); }
.os-panel { margin-top: 24px; display: grid; gap: 14px; }
.notice { padding: 12px 16px; border-radius: 10px; background: var(--warn-bg); color: var(--warn-ink); border: 1px solid var(--warn-line); font-size: .95rem; }
.dl-row {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 18px;
  padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
}
.dl-row > img { width: 52px; height: 52px; }
.dl-row h3 { font-size: 1.15rem; }
.dl-row h3 a { color: inherit; text-decoration: none; }
.dl-row h3 a:hover { text-decoration: underline; }
.dl-row .meta { font-size: .9rem; color: var(--muted); }
.dl-row .files { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.dl-file { display: grid; gap: 4px; justify-items: end; }
.dl-file .btn { padding: 9px 16px; font-size: .95rem; }
.dl-file .btn.off { background: var(--line); color: var(--muted); cursor: not-allowed; filter: none; }
.dl-file code { font: 400 .74rem var(--f-mono); color: var(--muted); max-width: 260px; overflow-wrap: anywhere; text-align: right; }
.dl-row.texte .btn:not(.off) { background: var(--texte); }
.dl-row.tableur .btn:not(.off) { background: var(--tableur); }
.dl-row.mail .btn:not(.off) { background: var(--mail); }
.dl-row.distant .btn:not(.off) { background: var(--distant); }
.dl-row.image .btn:not(.off) { background: var(--image); }
.dl-row.base .btn:not(.off) { background: var(--base); }
.dl-row.explore .btn:not(.off) { background: var(--explore); }
.dl-row.web .btn:not(.off) { background: var(--web); }
.dl-row.code .btn:not(.off) { background: var(--code); }
.dl-row.media .btn:not(.off) { background: var(--media); }
.dl-row.montage .btn:not(.off) { background: var(--montage); }
.dl-row.virtuel .btn:not(.off) { background: var(--virtuel); }
.dl-row.studio .btn:not(.off) { background: var(--home); }
.dl-row.studio .files { max-width: 640px; }
.dl-row .btn:not(.off) { color: var(--on-brand); }

.install { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; margin-top: 28px; }
.install > div { padding: 22px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; display: grid; gap: 12px; align-content: start; }
.install h3 { font-size: 1.1rem; }
.install ol { margin: 0; padding-left: 1.25em; display: grid; gap: 8px; color: var(--muted); }
.install ol b { color: var(--ink); font-weight: 600; }
.install dl { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 16px; }
.install dt { font-weight: 600; }
.install dd { margin: 0; color: var(--muted); }

.faq { margin-top: 28px; display: grid; gap: 10px; max-width: 52em; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 0 20px; }
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 1.4rem/1 var(--f-display); color: var(--muted); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding-bottom: 18px; color: var(--muted); }

/* ---------- Barre d'état ---------- */
.statusbar { border-top: 1px solid var(--line); background: var(--ribbon); font-size: .85rem; color: var(--muted); }
.statusbar .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 22px; padding-block: 10px; }
.statusbar .spacer { flex: 1; }
.statusbar .ok { display: inline-flex; align-items: center; gap: 7px; }
.statusbar .ok i { width: 8px; height: 8px; border-radius: 50%; background: #2f9e5e; display: block; }
.statusbar a { text-decoration: none; }
.statusbar a:hover { color: var(--ink); }

/* Sélecteur de langue (barre de titre et barre d'état, comme dans les logiciels) */
.lang { display: inline-flex; align-items: center; gap: 6px; position: relative; }
.lang svg { width: 15px; height: 15px; flex: none; }
.lang select {
  appearance: none; -webkit-appearance: none; border: 0; background: transparent; color: inherit; cursor: pointer;
  font: inherit; padding: 4px 18px 4px 2px; border-radius: 6px;
}
.lang::after { content: ""; position: absolute; right: 5px; top: 50%; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-70%) rotate(45deg); pointer-events: none; opacity: .7; }
.titlebar .lang { color: rgba(255,255,255,.85); font-size: .82rem; }
.titlebar .lang select option { color: #1a1e25; background: #fff; }
.titlebar .lang select:hover { background: rgba(255,255,255,.1); }
.statusbar .lang select:hover { background: var(--line); }

/* ---------- Petits écrans ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .trio { grid-template-columns: minmax(0, 1fr); }
  .trio .product, .trio .grp { grid-column: auto; }
  .common { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .common div:nth-child(3n) { border-right: 1px solid var(--line); }
  .common div:nth-child(2n) { border-right: 0; }
  .common div:nth-last-child(-n+3) { border-bottom: 1px solid var(--line); }
  .common div:nth-last-child(-n+2) { border-bottom: 0; }
  .providers { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .install { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .page { padding-block: 36px 56px; }
  .page > * + * { margin-top: 52px; }
  .titlebar .ver, .wintitle { display: none; }
  .titlebar .lang { margin-left: auto; }
  .titlebar .wrap { justify-content: space-between; }
  .common { grid-template-columns: minmax(0, 1fr); }
  .common div { border-right: 0 !important; border-bottom: 1px solid var(--line) !important; }
  .common div:last-child { border-bottom: 0 !important; }
  .shot-pair { grid-template-columns: minmax(0, 1fr); }
  .dl-row { grid-template-columns: auto minmax(0, 1fr); }
  .dl-row .files { grid-column: 1 / -1; justify-content: stretch; }
  .dl-file { justify-items: stretch; flex: 1 1 100%; }
  .dl-file .btn { justify-content: center; }
  .dl-file code { text-align: left; max-width: none; }
  .formula { grid-template-columns: auto minmax(0, 1fr) auto; }
  .formula .fx { display: none; }
  .p-id img { width: 60px; height: 60px; }
  .cta-band { padding: 24px; }
}
@media (max-width: 420px) {
  .providers { grid-template-columns: minmax(0, 1fr); }
}

/* Pied de page : liens vers les autres langues (lisibles par les moteurs de recherche) */
.lang-links { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.lang-links svg { width: 14px; height: 14px; }
.lang-links a[aria-current] { font-weight: 700; color: var(--ink); }
.os-files { display: grid; gap: 14px; }

/* Pages légales */
.doc { max-width: 46em; display: grid; gap: 18px; }
.doc h1 { font-size: clamp(2rem, 4.4vw, 2.9rem); font-weight: 800; line-height: 1.08; }
.doc .lead { margin: 0; }
.doc h2 { font-size: 1.3rem; margin-top: 14px; }
.doc p { color: var(--ink); }
.doc a { color: var(--texte); }
.doc .updated { color: var(--muted); font-size: .92rem; margin-top: 12px; }
.doc mark.todo { background: var(--warn-bg); color: var(--warn-ink); border: 1px dashed var(--warn-line); border-radius: 4px; padding: 0 4px; }
.legal-links { display: inline-flex; flex-wrap: wrap; gap: 4px 14px; }
.legal-links a[aria-current] { color: var(--ink); font-weight: 700; }

/* Logo Quoti (carré à trois bandes aubergine + nom) */
.brandmark { font: 600 1.12rem var(--f-body); letter-spacing: -.01em; gap: 8px; }
.brandmark .mark { width: 22px; height: 22px; flex: none; display: block; }

/* ---------- Quoti OS ---------- */
:root { --os: #4b3280; --os-bar: #21173a; --os-soft: #ece8f6; --os-deep: #2a1b47; }
body[data-app="os"] { --brand: var(--os); --brand-bar: var(--os-bar); --brand-soft: var(--os-soft); }
.tab-os { color: var(--os); font-weight: 600; }
.btn.light { background: #fff; color: var(--os-bar); }
.btn.light-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn.light-ghost:hover { background: rgba(255,255,255,.1); }

/* écran (capture du bureau dans un cadre d'écran sombre) */
.screen { border-radius: 14px; overflow: hidden; background: #110b1f; padding: 8px; box-shadow: 0 30px 70px -20px rgba(20, 10, 40, .55), 0 0 0 1px rgba(255,255,255,.08); }
.screen img { width: 100%; height: auto; border-radius: 8px; }

/* bandeau de l'accueil */
.os-band {
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 40px; align-items: center; text-decoration: none; color: #fff;
  padding: 44px; border-radius: 20px; overflow: hidden; position: relative;
  background: radial-gradient(120% 140% at 0% 0%, #6a4fb0 0%, #3a2760 45%, #1c1330 100%);
}
.os-band::after { content: ""; position: absolute; inset: auto -10% -40% 30%; height: 70%; background: radial-gradient(closest-side, rgba(138, 108, 198, .45), transparent); pointer-events: none; }
.os-band-copy { display: grid; gap: 16px; align-content: start; position: relative; z-index: 1; }
.os-band .eyebrow { color: #d9cdf3; display: inline-flex; align-items: center; gap: 10px; }
.os-band h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); line-height: 1.1; font-weight: 800; }
.os-band p { color: rgba(255,255,255,.82); font-size: 1.08rem; }
.os-band .btn { justify-self: start; margin-top: 6px; }
.os-band .btn svg { transition: transform .2s; }
.os-band:hover .btn svg { transform: translateX(3px); }
.os-band-shot { position: relative; z-index: 1; transform: perspective(1400px) rotateY(-7deg) rotateX(2deg); transition: transform .4s; }
.os-band:hover .os-band-shot { transform: perspective(1400px) rotateY(-3deg) rotateX(1deg); }

/* page Quoti OS */
#page-os { padding-top: 0; }
.os-hero { color: #fff; padding-block: 56px 64px; background: radial-gradient(90% 120% at 10% 0%, #6a4fb0 0%, #3a2760 42%, #1a1129 100%); }
.os-hero .wrap { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 44px; align-items: center; }
.os-hero-copy { display: grid; gap: 18px; align-content: start; }
.os-logo { width: min(300px, 80%); height: auto; }
.os-hero .kind { font-size: 1.05rem; color: #d9cdf3; margin-top: -6px; }
.os-hero .lead { color: rgba(255,255,255,.86); font-size: 1.12rem; margin: 0; }
.os-hero .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.os-apps { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin-bottom: 28px; }
.os-apps img { width: 56px; height: 56px; filter: drop-shadow(0 6px 12px rgba(20, 26, 36, .18)); }
.os-hero-shot { margin: 0; }
.os-hero-shot figcaption { margin-top: 14px; font-size: .92rem; color: rgba(255,255,255,.7); text-align: center; }

/* images ISO */
.isos { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 16px; margin-top: 26px; }
.isos + * { margin-top: 0; }
.notice + .isos { margin-top: 14px; }
#os-telecharger .notice { margin-top: 22px; }
.iso { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 20px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.iso-ic { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--os-soft); color: var(--os); }
.iso-ic svg { width: 26px; height: 26px; }
.iso-copy { display: grid; gap: 3px; min-width: 0; }
.iso-copy b { font-family: var(--f-display); font-size: 1.05rem; }
.iso-copy code { font: 400 .78rem var(--f-mono); color: var(--muted); overflow-wrap: anywhere; }
.iso .btn { background: var(--os); padding: 10px 16px; font-size: .95rem; white-space: nowrap; }
.iso .btn.off { background: var(--line); color: var(--muted); cursor: not-allowed; filter: none; }
#os-installer { margin-top: 36px; }

/* page Télécharger : encart Quoti OS */
.dl-os { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 22px; align-items: center; padding: 26px 28px; border-radius: 16px; color: #fff;
  background: radial-gradient(120% 160% at 0% 0%, #5d44a0 0%, #33225a 55%, #1c1330 100%); }
.dl-os > img { width: 64px; height: 64px; }
.dl-os-copy { display: grid; gap: 6px; }
.dl-os h2 { font-size: 1.45rem; }
.dl-os p { color: rgba(255,255,255,.8); }
.dl-os .more { color: #fff; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.dl-os .more svg { width: 16px; height: 16px; }
.dl-os .files { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.dl-os .dl-file .btn:not(.off) { background: #fff; color: var(--os-bar); }
.dl-os .dl-file .btn.off { background: rgba(255,255,255,.18); color: rgba(255,255,255,.7); }
.dl-os .dl-file code { color: rgba(255,255,255,.65); }

@media (max-width: 900px) {
  .os-band, .os-hero .wrap { grid-template-columns: minmax(0, 1fr); }
  .os-band { padding: 30px; }
  .os-band-shot { transform: none; }
  .dl-os { grid-template-columns: auto minmax(0, 1fr); }
  .dl-os .files { grid-column: 1 / -1; justify-content: stretch; }
}
@media (max-width: 640px) {
  .iso { grid-template-columns: auto minmax(0, 1fr); }
  .iso .btn { grid-column: 1 / -1; justify-content: center; }
  .os-hero { padding-block: 36px 44px; }
  .dl-os .dl-file { flex: 1 1 100%; }
}

/* Accueil : quatre groupes de logiciels (Bureautique, Essentiels, Développement, Médias) */
#logiciels .groups.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 640px) { #logiciels .groups.four { grid-template-columns: minmax(0, 1fr); } }
/* Quoti OS : capture du sélecteur de fenêtres en 3D, en pleine largeur */
.shot-wide { margin: 28px 0 0; }

/* Nouveautés : macros (Texte, Tableur) et mode enfant (Web) — groupes sur deux colonnes */
.groups.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 640px) { .groups.two { grid-template-columns: minmax(0, 1fr); } }
