/* Parti pris : le site d'un logiciel Windows parle Windows. Police du système, tuiles de l'icône TaskbarNest comme palette,
   et une vraie petite barre des tâches qu'on peut survoler. Le reste est calme, aligné à gauche. */
:root {
  --fond: #eef1f6; --surface: #fff; --texte: #1b2130; --doux: #556078; --trait: #d3dae6; --accent: #2459c7; --sur-accent: #fff;
  --bleu: #4f8cff; --vert: #22c55e; --ambre: #f59e0b; --rouge: #ef4444; --clair: block; --sombre: none;
  --ecran: #8fb0de; --barre: #e8edf5; --menu: #f6f8fb; --dossier: #c4cfdf; --vide: #bcc6d5; --trait-ouvert: #0067c0;
  --titre: "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  --corps: "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
}
/* Sombre : thème de Windows, ou choix fait avec l'interrupteur (data-theme, qui passe avant). */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --fond: #14181f; --surface: #1e242e; --texte: #e8ecf4; --doux: #a3aec2; --trait: #333c4a; --accent: #8db4ff; --sur-accent: #0f1726; --clair: none; --sombre: block; --ecran: #3b5b92; --barre: #1f2430; --menu: #2b303c; --dossier: #4b5364; --vide: #39404f; --trait-ouvert: #60cdff; color-scheme: dark; }
}
:root[data-theme="dark"] { --fond: #14181f; --surface: #1e242e; --texte: #e8ecf4; --doux: #a3aec2; --trait: #333c4a; --accent: #8db4ff; --sur-accent: #0f1726; --clair: none; --sombre: block; --ecran: #3b5b92; --barre: #1f2430; --menu: #2b303c; --dossier: #4b5364; --vide: #39404f; --trait-ouvert: #60cdff; color-scheme: dark; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--fond); color: var(--texte); font: 1rem/1.6 var(--corps); }
img { max-width: 100%; }
a { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.cadre { width: min(1080px, 100%); margin-inline: auto; padding-inline: max(20px, env(safe-area-inset-left, 0px)); }
h1, h2, h3 { font-family: var(--titre); line-height: 1.2; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 700; letter-spacing: -.02em; }
h2 { font-size: 1.6rem; font-weight: 650; }
h3 { font-size: 1.1rem; font-weight: 650; }
p { margin: 0; max-width: 65ch; }
.doux { color: var(--doux); }
.entete { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; padding-block: 20px; }
.entete .marque { font: 700 1.15rem var(--titre); color: var(--texte); text-decoration: none; margin-right: auto; }
.entete nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.entete nav a { color: var(--doux); text-decoration: none; padding-block: 6px; }
.entete nav a:hover, .entete nav a[aria-current] { color: var(--texte); text-decoration: underline; text-underline-offset: 5px; }
main { display: grid; gap: 56px; padding-block: 32px 72px; }
.intro { display: grid; gap: 14px; }

/* Accueil : liste des logiciels */
.logiciels { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 280px)); gap: 20px; margin-top: 20px; }
.logiciel { display: grid; gap: 4px; padding: 24px; background: var(--surface); border: 1px solid var(--trait); border-radius: 14px; color: inherit; text-decoration: none; }
.logiciel:hover { border-color: var(--accent); }
.logiciel img { width: 88px; height: 88px; margin-bottom: 12px; }
.logiciel strong { font: 650 1.25rem var(--titre); }
.fiche { display: grid; grid-template-columns: auto 1fr; gap: 2px 14px; margin: 10px 0 0; font-size: .92rem; }
.fiche dt { color: var(--doux); } .fiche dd { margin: 0; }

/* Page d'un logiciel */
.haut { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.haut .infos { display: grid; gap: 16px; justify-items: start; }
.bouton { display: inline-block; padding: 13px 26px; border: 0; border-radius: 8px; background: var(--accent); color: var(--sur-accent); font: 650 1.05rem var(--corps); text-decoration: none; cursor: pointer; }
.bouton:hover { filter: brightness(1.08); }
.bouton[aria-disabled="true"], .bouton:disabled { background: var(--trait); color: var(--doux); cursor: not-allowed; filter: none; }
.etapes { display: grid; gap: 36px; margin-top: 28px; }
.etape { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: center; padding-top: 32px; border-top: 1px solid var(--trait); }
.etape.seule { grid-template-columns: minmax(0, 1fr); }
.etape > div:first-child { display: grid; gap: 10px; }
.etape ul, .liste { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; max-width: 65ch; }
kbd { font: 600 .88em var(--corps); padding: 1px 7px; border: 1px solid var(--trait); border-bottom-width: 2px; border-radius: 5px; background: var(--surface); white-space: nowrap; }
.encart { background: var(--surface); border: 1px solid var(--trait); border-radius: 14px; padding: 28px; display: grid; gap: 14px; }

/* Petite barre des tâches : décor figé, qui suit le thème */
.scene { position: relative; border-radius: 14px; overflow: hidden; background: var(--ecran); min-height: 260px; display: flex; flex-direction: column; justify-content: flex-end; color: var(--texte); font-size: .85rem; }
.scene .barre { display: flex; justify-content: center; gap: 10px; padding: 8px; background: var(--barre); }
.scene .tuile { width: 36px; height: 36px; border-radius: 8px; flex: none; }
.scene .dossier { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 3px; padding: 6px; background: var(--dossier); border: 0; cursor: pointer; }
.scene .dossier i, .scene .menu i { border-radius: 3px; }
.scene .menu { align-self: center; width: 168px; margin-bottom: 8px; padding: 12px; background: var(--menu); border-radius: 10px; transition: opacity .15s, transform .15s; }
.scene .menu b { display: block; margin-bottom: 10px; font-weight: 600; }
.scene .menu div { display: grid; grid-template-columns: repeat(3, 36px); gap: 10px 15px; }
.scene .menu i { width: 36px; height: 36px; border-radius: 8px; position: relative; }
.scene .menu i.ouverte::after { content: ""; position: absolute; left: 11px; bottom: -6px; width: 14px; height: 3px; border-radius: 2px; background: var(--trait-ouvert); }
.scene.fermee .menu { opacity: 0; transform: translateY(8px); }
.scene .bulle { align-self: center; margin-bottom: 10px; padding: 14px 18px; border: 2px dashed var(--accent); border-radius: 10px; background: var(--menu); }
.scene .prise { position: absolute; left: 50%; bottom: 96px; transform: translate(34px, 0) rotate(8deg); box-shadow: 0 8px 18px #0006; }
.c1 { background: #4f8cff } .c2 { background: #22c55e } .c3 { background: #f59e0b } .c4 { background: #ef4444 } .c5 { background: #a78bfa } .c6 { background: #14b8a6 } .c0 { background: var(--vide) }

/* Formulaire */
form { display: grid; gap: 20px; max-width: 640px; }
fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; }
label.champ { display: grid; gap: 6px; font-weight: 600; }
select, textarea, input[type=file] { font: inherit; color: inherit; background: var(--surface); border: 1px solid var(--trait); border-radius: 8px; padding: 10px 12px; width: 100%; }
textarea { min-height: 160px; resize: vertical; }
.apercus { display: flex; flex-wrap: wrap; gap: 10px; }
.apercus img { width: 110px; height: 80px; object-fit: cover; border-radius: 8px; border: 1px solid var(--trait); }
footer { border-top: 1px solid var(--trait); padding-block: 28px 40px; }
footer .cadre { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; }
@media (max-width: 760px) { .haut, .etape { grid-template-columns: minmax(0, 1fr); gap: 24px; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

.texte { gap: 32px; }
.texte section { display: grid; gap: 10px; }
mark { background: #ffe08a; color: #3a2c00; padding: 0 4px; border-radius: 4px; }
.don { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 8px; background: #72a4f2; color: #fff; font-weight: 650; text-decoration: none; }
.don:hover { filter: brightness(.93); }
.vue { height: auto; justify-self: center; border-radius: 10px; box-shadow: 0 10px 30px #0004; }
.si-clair { display: var(--clair); } .si-sombre { display: var(--sombre); }
/* Interrupteur : soleil à gauche, lune à droite, la pastille est sur le thème affiché */
.theme { position: relative; display: flex; justify-content: space-between; align-items: center; width: 64px; height: 34px; padding: 0 9px; border: 1px solid var(--trait); border-radius: 17px; background: var(--surface); color: var(--doux); cursor: pointer; }
.theme svg { position: relative; width: 16px; height: 16px; }
.theme::before { content: ""; position: absolute; left: 3px; top: 3px; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); transition: transform .2s; }
.theme[aria-checked="true"]::before { transform: translateX(30px); }
.theme[aria-checked="false"] svg:first-child, .theme[aria-checked="true"] svg:last-child { color: var(--sur-accent); }
@media (max-width: 760px) { .entete nav { order: 1; width: 100%; } .entete .outils { width: 100%; } }
[hidden] { display: none !important; }
.connexion { display: flex; flex-wrap: wrap; gap: 12px; }
.outils { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.outils .langue, .outils .compte { width: auto; height: 34px; padding: 0 12px; font: inherit; font-size: .92rem; color: var(--texte); background: var(--surface); border: 1px solid var(--trait); border-radius: 17px; cursor: pointer; }
.outils .compte { font-weight: 650; background: var(--accent); border-color: var(--accent); color: var(--sur-accent); }
dialog { width: min(420px, calc(100% - 40px)); padding: 28px; border: 1px solid var(--trait); border-radius: 14px; background: var(--surface); color: var(--texte); }
dialog[open] { display: grid; gap: 16px; }
dialog::backdrop { background: #0008; }
dialog .connexion { display: grid; }
.fermer { justify-self: start; padding: 8px 0; border: 0; background: none; font: inherit; color: var(--doux); text-decoration: underline; cursor: pointer; }
/* Annonce d'envoi : descend un peu depuis le haut, attend, remonte. Seul son petit contour est flou. */
.annonce { position: fixed; left: 50%; top: 24px; z-index: 10; padding: 14px; border-radius: 28px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); pointer-events: none; animation: annonce 3.2s ease both; }
.annonce div { display: grid; justify-items: center; gap: 14px; padding: 28px 40px; border: 1px solid var(--trait); border-radius: 18px; background: var(--surface); font: 650 1.2rem var(--titre); text-align: center; }
.annonce svg { width: 72px; height: 72px; fill: none; stroke: #fff; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.annonce circle { fill: var(--vert); stroke: none; }
.annonce path { stroke-dasharray: 36; animation: coche .4s .55s ease both; }
@keyframes annonce { 0%, 100% { transform: translate(-50%, calc(-100% - 40px)); } 16%, 84% { transform: translate(-50%, 0); } }
@keyframes coche { from { stroke-dashoffset: 36; } to { stroke-dashoffset: 0; } }
@keyframes fondu { 0%, 100% { opacity: 0; transform: translate(-50%, 0); } 16%, 84% { opacity: 1; transform: translate(-50%, 0); } }
@media (prefers-reduced-motion: reduce) { .annonce { animation-name: fondu; } .annonce path { animation: none; } }
