/* Page d'accueil /logiciels/ : même style que les autres pages du site.
   Bande bleue (héros), puis fond blanc et bandes d'un gris-bleu très léger, cartes aux contours très fins, léger mouvement au survol.
   Ordre « entonnoir » : écosystème (ERP puis modules), studios gratuits, petits outils, article centré, mentions, pied de page du site.
   Feuille propre au hub : les 8 pages de studios gardent site/page.css, qu'on ne touche pas ici. Le pied de page vient de /site/art-pied.css (celui du site).
   Largeur = menu du site : contenu 1100 px, marges 20 / 16 / 12 px (variable --amu-marge posée par le menu, repli ci-dessous). */
:root {
  color-scheme: light;
  --h-primary: #085292; --h-text: #12202d; --h-muted: #526170; --h-bg: #fff;
  --h-bande: #f1f5f9; --h-clair: #f7f9fc; --h-border: #e3eaf1; --h-border-fort: #bcd0e4; --h-card: #fff; --h-focus: #085292;
  --h-ic-bg: #f0f5fb; --h-ic-bg-fort: #e2edf9; --h-ic-line: #dbe6f1; --h-ic: #085292;
  --h-free-bg: #f0f9f3; --h-free-line: #cfe8d8; --h-free: #1c6a3a;
  --h-full-bg: #eef4fb; --h-full-line: #d4e2f1; --h-full: #0b4a80;
  --h-shadow: 0 6px 20px rgba(8, 82, 146, .08);
  --h-hero: linear-gradient(135deg, #0b3a66 0%, #085292 100%);
  --h-m: 20px;
}
@media (max-width: 1023px) { :root { --h-m: 16px; } }
@media (max-width: 420px) { :root { --h-m: 12px; } }
/* Pas de thème sombre : le site n'en a pas, le fond reste blanc partout (décision de l'utilisateur, 2026-11-17). */
/* Règles limitées à NOTRE contenu : la barre du menu du site (header#amu) est injectée dans la même page et ne doit jamais être touchée. */
.hub-hero, .hub-hero *, main, main * { box-sizing: border-box; }
html { scroll-behavior: auto; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body.hub { margin: 0; background: var(--h-bg); color: var(--h-text); line-height: 1.6;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', 'Noto Sans', Arial, sans-serif; }
.seo a, .faq a, .see a, .hub-mentions a { color: var(--h-primary); }
.hub-hero :focus-visible, main :focus-visible, .skip:focus-visible { outline: 3px solid var(--h-focus); outline-offset: 3px; border-radius: 6px; }
.hub .hub-card:focus-visible, .hub .hub-etire:focus-visible { border-radius: 14px; }
.hub .hub-btn:focus-visible { border-radius: 10px; }
.sp-pied :focus-visible { outline: 3px solid #fff; outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--h-primary); color: #fff; padding: .5rem 1rem; z-index: 99; }
.skip:focus { left: 8px; top: 8px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Largeur : même colonne que le logo et le pied de page du site */
.hub-wrap { width: calc(100% - 2 * var(--amu-marge, var(--h-m))); max-width: 1100px; margin-inline: auto; }

/* ---------- Bande bleue (héros) ---------- */
.hub-hero { position: relative; overflow: hidden; background: var(--h-hero); color: #fff; padding: 20px 0 60px; }
.hub-hero::before { content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px);
  background-size: 44px 44px; -webkit-mask-image: linear-gradient(90deg, transparent 5%, #000 70%); mask-image: linear-gradient(90deg, transparent 5%, #000 70%); }
.hub-hero-in { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 48px; align-items: center; }
.hub-hero-top { grid-column: 1 / -1; margin-bottom: 36px; }
.hub-hero a { color: #fff; }
.hub-eyebrow { margin: 0 0 8px; font-size: 11.5px; line-height: 1.5; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #b9d9f6; }
.hub-hero h1 { margin: 0 0 16px; font-size: clamp(1.9rem, 1.1rem + 2.7vw, 2.85rem); line-height: 1.14; font-weight: 700; letter-spacing: -.01em; color: #fff; }
.hub-lede { margin: 0 0 28px; max-width: 58ch; font-size: 1.125rem; line-height: 1.55; color: #dcebf8; }
.hub-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hub-btn { display: inline-flex; align-items: center; min-height: 46px; padding: 0 22px; border-radius: 10px; font-weight: 700; font-size: 1rem; text-decoration: none; transition: background-color .2s, transform .2s, box-shadow .2s; }
.hub-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0, 0, 0, .18); }
.hub-hero .hub-btn--vert { background: #15803d; color: #fff; }
.hub-hero .hub-btn--vert:hover { background: #166534; }
.hub-hero .hub-btn--clair { background: #fff; color: #085292; }
.hub-hero .hub-btn--clair:hover { background: #eef5fc; }
.hub-hero :focus-visible { outline-color: #fff; }
.hub-atouts { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 28px 0 0; padding: 0; list-style: none; font-size: .875rem; color: #dcebf8; }
.hub-atouts li::before { content: '✓'; margin-right: 7px; font-weight: 700; color: #6ee7a0; }

/* fil d'Ariane et notice de traduction, sur fond bleu */
.crumbs ol { display: flex; flex-wrap: wrap; gap: .3rem; list-style: none; margin: 0; padding: 0; font-size: .85rem; color: #cfe5f8; }
.crumbs li + li::before { content: '›'; margin-right: .3rem; }
.hub-hero .crumbs a { color: #fff; text-decoration: none; }
.hub-hero .crumbs a:hover { text-decoration: underline; }
.hub-hero .notice { margin: 0 0 18px; padding: .55rem .9rem; border: 1px solid rgba(255, 255, 255, .35); border-radius: 8px; background: rgba(255, 255, 255, .1); font-size: .85rem; color: #eaf4fd; }
.hub-hero .notice p { margin: .2rem 0; }

/* dessin décoratif à droite : fenêtres d'un studio (aucun texte) */
.hub-art { display: none; }
.hub-art svg { display: block; width: 100%; height: auto; }
@media (min-width: 920px) {
  .hub-hero-in { grid-template-columns: minmax(0, 1fr) minmax(0, 440px); }
  .hub-art { display: block; }
}
@media (prefers-reduced-motion: no-preference) {
  .hub-w1 { animation: hub-flotte 8s ease-in-out infinite; }
  .hub-w2 { animation: hub-flotte 8s ease-in-out -4s infinite; }
  .hub-badge { animation: hub-flotte 6s ease-in-out -2s infinite; }
  @keyframes hub-flotte { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
}

/* ---------- Filtre par flux métier (boutons radio + :has, sans JavaScript ; caché si le navigateur ne sait pas filtrer) ---------- */
.hub-filtres { display: none; padding: 14px 0 8px; background: var(--h-bg); border-bottom: 1px solid var(--h-border); }
@supports selector(:has(*)) { .hub-filtres { display: block; } }
.hub-filtres fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.hub-filtres legend { float: left; padding: 6px 12px 0 0; font-size: 13px; font-weight: 600; color: var(--h-muted); }
.hub-fx { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; }
.hub-filtres label { display: inline-block; margin: 0 6px 6px 0; padding: 5px 14px; border: 1px solid var(--h-border); border-radius: 999px; background: #fff; font-size: 13px; line-height: 1.5; color: #334155; cursor: pointer; transition: background-color .2s, border-color .2s, color .2s; }
.hub-filtres label:hover { border-color: var(--h-border-fort); background: var(--h-clair); }
.hub-fx:checked + label { border-color: #9dbfe3; background: #e8f1fb; color: #0b4a80; font-weight: 600; }
.hub-fx:focus-visible + label { outline: 3px solid var(--h-focus); outline-offset: 2px; }
/* « Premium » (présélectionné) montre l'écosystème, « Gratuit » les studios et petits outils, « Tous » tout, puis un flux métier à la fois. */
main:has(#flux-premium:checked) .hub-card:not([data-flux~='premium']), main:has(#flux-gratuit:checked) .hub-card:not([data-flux~='gratuit']),
main:has(#flux-offres:checked) .hub-card:not([data-flux~='offres']), main:has(#flux-plans:checked) .hub-card:not([data-flux~='plans']),
main:has(#flux-chantier:checked) .hub-card:not([data-flux~='chantier']), main:has(#flux-gestion:checked) .hub-card:not([data-flux~='gestion']) { display: none; }
main:has(#flux-premium:checked) :is(.hub-grp, .hub-liste):not(:has(.hub-card[data-flux~='premium'])),
main:has(#flux-gratuit:checked) :is(.hub-grp, .hub-liste):not(:has(.hub-card[data-flux~='gratuit'])),
main:has(#flux-offres:checked) :is(.hub-grp, .hub-liste):not(:has(.hub-card[data-flux~='offres'])),
main:has(#flux-plans:checked) :is(.hub-grp, .hub-liste):not(:has(.hub-card[data-flux~='plans'])),
main:has(#flux-chantier:checked) :is(.hub-grp, .hub-liste):not(:has(.hub-card[data-flux~='chantier'])),
main:has(#flux-gestion:checked) :is(.hub-grp, .hub-liste):not(:has(.hub-card[data-flux~='gestion'])) { display: none; }

/* ---------- Sections : titres fins ---------- */
.hub-sec { padding: 52px 0; scroll-margin-top: 80px; }
.hub-sec .hub-eyebrow { color: var(--h-primary); }
.hub-sec h2 { margin: 0 0 8px; font-size: clamp(1.25rem, 1.05rem + .8vw, 1.5rem); line-height: 1.3; font-weight: 700; letter-spacing: -.005em; color: var(--h-text); }
.hub-intro { margin: 0 0 24px; max-width: 70ch; font-size: .9375rem; line-height: 1.6; color: var(--h-muted); }
.hub-sous { margin: 26px 0 12px; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--h-muted); }
.hub-eco { background: var(--h-bande); border-block: 1px solid var(--h-border); }
.hub-sec--bande { background: var(--h-bande); border-top: 1px solid var(--h-border); }

.hub-cards { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 860px) {
  .hub-cards--deux { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hub-cards--trois { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- Cartes : contour très fin et très clair, léger mouvement au survol ---------- */
.hub-card { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; border: 1px solid var(--h-border); border-radius: 14px; background: var(--h-card); color: var(--h-text); text-decoration: none; transition: border-color .25s, box-shadow .25s, transform .25s; }
.hub-card:hover { border-color: var(--h-border-fort); box-shadow: var(--h-shadow); transform: translateY(-3px); }
.hub-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.hub-card-corps { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.hub-card h3 { margin: 0; font-size: 1rem; line-height: 1.35; font-weight: 600; color: var(--h-primary); }
.hub-card p { margin: 0; font-size: .875rem; line-height: 1.5; color: var(--h-muted); }
.hub-card h3 a { color: inherit; text-decoration: none; }
.hub-ic { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid var(--h-ic-line); border-radius: 12px; background: var(--h-ic-bg); color: var(--h-ic); transition: background-color .25s, transform .25s; }
.hub-ic svg { width: 21px; height: 21px; }
.hub-ic--grand { width: 52px; height: 52px; border-radius: 15px; }
.hub-ic--grand svg { width: 26px; height: 26px; }
.hub-card:hover .hub-ic { background: var(--h-ic-bg-fort); transform: scale(1.06); }
.hub-tag { display: inline-block; align-self: flex-start; padding: 1px 10px; border: 1px solid var(--h-free-line); border-radius: 999px; font-size: 11.5px; font-weight: 600; line-height: 1.6; white-space: nowrap; background: var(--h-free-bg); color: var(--h-free); }
.hub-card--eco .hub-tag { border-color: var(--h-full-line); background: var(--h-full-bg); color: var(--h-full); }
.hub-go { margin-top: 4px; font-size: .8125rem; font-weight: 600; color: var(--h-primary); }
.hub-go span, .hub-cta span { display: inline-block; transition: transform .25s; }
.hub-card:hover .hub-go span, .hub-card:hover .hub-cta span { transform: translateX(4px); }

/* boutons : abonnement (plein) bien distinct de l'ouverture immédiate (contour vert très léger) */
.hub-cta { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; min-height: 34px; padding: 0 14px; border-radius: 9px; font-size: .8125rem; font-weight: 600; line-height: 1; transition: background-color .25s, border-color .25s; }
.hub-cta--abo { margin-top: auto; background: var(--h-primary); border: 1px solid var(--h-primary); color: #fff; }
.hub-card:hover .hub-cta--abo { background: #06467e; border-color: #06467e; }
.hub-cta--libre { border: 1px solid var(--h-free-line); background: var(--h-free-bg); color: var(--h-free); }
.hub-card:hover .hub-cta--libre { background: #e3f4e9; border-color: #b6dcc3; }

/* écosystème : la suite complète (ERP) en tête, puis les trois modules */
.hub-grp + .hub-grp { margin-top: 4px; }
.hub-card--eco { border-color: var(--h-full-line); }
.hub-card--eco .hub-ic { background: var(--h-ic-bg-fort); border-color: var(--h-full-line); }
.hub-card--eco:hover { border-color: var(--h-border-fort); }
.hub-card--suite { flex-direction: row; align-items: center; gap: 18px; padding: 22px 24px; box-shadow: 0 1px 2px rgba(15, 23, 42, .04); }
.hub-card--suite .hub-card-corps { flex: 1; }
.hub-card--suite h3 { font-size: 1.375rem; }
.hub-card--suite p { font-size: .9375rem; }
.hub-card--suite .hub-cta { flex: none; align-self: center; margin-top: 0; min-height: 40px; padding: 0 20px; font-size: .875rem; }
@media (max-width: 719px) {
  .hub-card--suite { flex-direction: column; align-items: flex-start; }
  .hub-card--suite .hub-cta { align-self: stretch; justify-content: center; }
}

/* studios gratuits : cartes fines et compactes, titre = lien étendu à la carte, équivalent complet en lien à part */
.hub-card--studio { display: grid; grid-template-columns: 40px minmax(0, 1fr); align-items: start; gap: 0 14px; padding: 16px 18px; }
.hub-etire::after { content: ''; position: absolute; inset: 0; border-radius: 14px; }
.hub-card-pied { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 10px; }
.hub-card--studio .hub-cta { min-height: 30px; padding: 0 12px; }
.hub-pro { position: relative; z-index: 2; font-size: .78rem; color: var(--h-muted); }
.hub-pro a { color: var(--h-primary); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.hub-pro a:hover { text-decoration-thickness: 2px; }

/* petits outils gratuits : lignes très compactes */
.hub-card--mini { display: grid; grid-template-columns: 34px minmax(0, 1fr); align-items: start; gap: 0 12px; padding: 14px 16px; }
.hub-card--mini .hub-ic { width: 34px; height: 34px; border-radius: 10px; }
.hub-card--mini .hub-ic svg { width: 18px; height: 18px; }
.hub-card--mini h3 { font-size: .9375rem; }
.hub-card--mini p { font-size: .8125rem; line-height: 1.45; }

@media (prefers-reduced-motion: reduce) {
  .hub-card, .hub-btn, .hub-ic, .hub-go span, .hub-cta, .hub-cta span, .hub-filtres label { transition: none; }
  .hub-card:hover, .hub-btn:hover, .hub-card:hover .hub-ic, .hub-card:hover .hub-go span, .hub-card:hover .hub-cta span { transform: none; }
}

/* ---------- Article, FAQ, voir aussi : colonne centrée, sections en cartes (comme les articles des autres pages du site) ---------- */
.hub-sec--texte { padding: 52px 0 28px; background: var(--h-bg); }
.hub-wrap.hub-text { max-width: 780px; }
.seo > section { margin: 0 0 16px; padding: 26px 28px; border: 1px solid #e2e8f0; border-radius: 16px; background: #fff; box-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px -12px rgba(15, 23, 42, .1); }
.seo h2 { margin: 0 0 14px; font-size: 1.25rem; line-height: 1.3; font-weight: 700; color: #1e293b; }
.seo > h2.visually-hidden { margin: 0; }
.seo h3 { margin: 22px 0 8px; font-size: 1.0625rem; font-weight: 700; color: #1e293b; }
.seo p, .seo li { font-size: .96875rem; line-height: 1.7; color: #475569; }
.seo p { margin: 0 0 14px; }
.seo > section > :last-child { margin-bottom: 0; }
.seo ul, .seo ol { margin: 0 0 14px; padding-left: 1.3rem; }
.seo table { border-collapse: collapse; width: 100%; margin: 1rem 0; font-size: .92rem; }
.seo th, .seo td { border: 1px solid var(--h-border); padding: .4rem .6rem; text-align: left; }
.seo th { background: var(--h-bande); }
.faq { margin: 28px 0 0; }
.faq h2 { margin: 0 0 12px; font-size: 1.25rem; line-height: 1.3; color: #1e293b; }
.faq details { margin: 0 0 8px; padding: .1rem 1.1rem; border: 1px solid #e2e8f0; border-radius: 12px; background: #fff; transition: border-color .25s; }
.faq details:hover { border-color: var(--h-border-fort); }
.faq summary { padding: .7rem 0; font-size: .96875rem; font-weight: 600; color: #1e293b; cursor: pointer; }
.faq details > div { color: #475569; font-size: .96875rem; line-height: 1.7; }
.see { margin: 28px 0 0; padding: 1.1rem 1.3rem; border: 1px solid #e2e8f0; border-radius: 16px; background: var(--h-clair); }
.see h2 { margin: 0 0 .4rem; font-size: 1.05rem; color: #1e293b; }
.see h3 { margin: .8rem 0 .2rem; font-size: .95rem; color: #1e293b; }
.see ul { margin: 0; padding-left: 1.2rem; }

/* texte d'indépendance et de confidentialité : en bas de la page blanche, au-dessus du pied de page */
.hub-mentions { padding: 20px 0 44px; background: var(--h-bg); }
.hub-mentions .hub-wrap { max-width: 780px; padding-top: 22px; border-top: 1px solid var(--h-border); }
.hub-mentions p { margin: 0 0 8px; font-size: .8125rem; line-height: 1.6; color: var(--h-muted); text-align: center; }

/* ---------- Pied de page : celui du site (/site/art-pied.css) ; seule retouche : la ligne du bas, plus lisible (contraste AA) ---------- */
.sp-pied .sp-pied-bas { color: #8a97a3; }
.sp-pied a.art-courriel { text-decoration: none; }
.sp-pied a.art-courriel:hover { text-decoration: underline; }
/* infolettre (formulaire construit par /support/art-newsletter.js, code du site inchangé) : champ puis bouton empilés, comme le modèle ;
   le long texte de présentation est masqué, la mention de confirmation par e-mail reste affichée */
.sp-pied .art-pied-4 > div > a { color: #d5dde6; }
.sp-pied .art-pied-4 > div > a:hover { color: #fff; }
.sp-pied .art-nl-form { flex-direction: column; gap: 12px; }
.sp-pied .art-nl-form input[type=email] { padding: 12px 16px; border-radius: 10px; font-size: 14px; }
.sp-pied .art-nl-form button { width: 100%; padding: 12px 16px; border-radius: 10px; font-size: 14px; }
.sp-pied p.art-nl-texte { display: none !important; }

@media (max-width: 640px) {
  .hub-hero { padding-bottom: 44px; }
  .hub-hero-top { margin-bottom: 26px; }
  .hub-lede { font-size: 1.0625rem; }
  .hub-sec { padding: 40px 0; }
  .hub-btn { width: 100%; justify-content: center; }
  .seo > section { padding: 20px 18px; }
}
