/* Support : page unique /support (catalogue des logiciels, formulaire) et rubriques « Guide d'utilisation » / « Demonstration » des logiciels.
   Version 2, 2026-11-19. S'appuie sur support.css (variables --bleu, --bordure, --texte...). Retrait : deposer_support.py cadre --retirer */

/* ---------- hero : texte « logiciels trouves » sous la barre de recherche unique ---------- */
body .sp-bandeau .sp-trouves { margin: 10px 0 0; max-width: min(58%, 680px); font-size: 14px; color: #DCE8F3; animation: sp-entree .7s cubic-bezier(.2, .7, .2, 1) .35s both; }
body .sp-bandeau .sp-trouves a { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 900px) { body .sp-bandeau .sp-trouves { max-width: none; } }

/* ---------- catalogue ---------- */
.sl-catalogue { padding: 56px 0 64px; }
.sl-vide-filtre { margin: 0 0 24px; padding: 14px 18px; border-radius: 12px; background: #fff; border: 1px dashed #CDD5E2; color: var(--texte-2); }
.sl-etage { margin: 0 0 52px; }
.sl-etage-tete { margin: 0 0 24px; padding: 18px 22px; border-radius: 16px; border-left: 6px solid var(--bleu); background: #fff; box-shadow: 0 6px 20px rgba(20,30,40,.06); }
.sl-etage-tete h2 { margin: 0 0 4px; font-size: 30px; line-height: 1.15; }
.sl-etage-tete p { margin: 0; color: var(--texte-2); max-width: 820px; }
.sl-etage-tete.sl-etage-studios { border-left-color: #0F766E; }
.sl-etage-tete.sl-etage-metiers { border-left-color: var(--bleu); }
.sl-groupe { margin: 0 0 36px; }
.sl-groupe:last-child { margin-bottom: 0; }
.sl-groupe + .sl-groupe { margin-top: 8px; }
.sl-groupe h3 { margin: 0 0 4px; font-size: 22px; }
.sl-groupe > p { margin: 0 0 16px; color: var(--texte-2); max-width: 760px; }

/* cartes : meme hauteur par ligne, boutons alignes en bas */
.sl-grille { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); align-items: stretch; }
.sl-c { position: relative; display: flex; flex-direction: column; min-width: 0; padding: 20px; background: #fff; border: 1px solid var(--bordure); border-radius: 16px;
  transition: box-shadow .15s, transform .15s, border-color .15s; }
.sl-c:hover { box-shadow: 0 12px 32px rgba(20,30,40,.10); transform: translateY(-2px); border-color: var(--sl, var(--bleu)); }
.sl-c-tete { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 8px; margin: 0 0 12px; }
.sl-c-icone { flex: none; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; background: #EEF1F3; transition: background .15s; }
.sl-c-icone svg { width: 24px; height: 24px; fill: none; stroke: #28425C; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: stroke .15s; }
.sl-c:hover .sl-c-icone, .sl-compte:hover .sl-c-icone { background: var(--sl, var(--bleu)); }
.sl-c:hover .sl-c-icone svg, .sl-compte:hover .sl-c-icone svg { stroke: #fff; }
.sl-c-titre { margin: 0 0 6px; font-size: 17px; line-height: 1.3; font-weight: 700; overflow-wrap: break-word; hyphens: auto; }
.sl-c-titre a { color: var(--texte); text-decoration: none; }
.sl-c-titre a::after { content: ""; position: absolute; inset: 0; border-radius: 16px; }   /* toute la carte ouvre la page du logiciel ; les boutons passent devant */
.sl-c-titre a:focus-visible { outline: none; }
.sl-c-titre a:focus-visible::after { outline: 2px solid var(--bleu); outline-offset: 2px; }
.sl-c-texte { margin: 0 0 16px; color: var(--texte-2); font-size: 14.5px; line-height: 1.5; overflow-wrap: break-word; hyphens: auto;
  display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.sl-c-boutons { position: relative; z-index: 2; margin-top: auto; display: flex; flex-wrap: wrap; gap: 8px; }
.sl-bouton { flex: 1 1 130px; display: flex; align-items: center; justify-content: center; min-height: 38px; padding: 6px 10px; border: 1px solid var(--bleu); border-radius: 8px; background: #fff;
  color: var(--bleu); font-size: 13.5px; font-weight: 600; line-height: 1.2; text-align: center; text-decoration: none; overflow-wrap: break-word; hyphens: auto; max-width: 100%; transition: background .15s, color .15s; }
a.sl-bouton:hover { background: #EEF4FA; color: var(--bleu-survol); }
a.sl-bouton-guide { background: var(--bleu); color: #fff; }
a.sl-bouton-guide:hover { background: var(--bleu-survol); color: #fff; }
.sl-bouton-off { border-style: dashed; border-color: #C9D2DC; background: #FAFBFC; color: #8A97A3; cursor: default; }
.sl-bientot { opacity: .72; }
.sl-bientot:hover { transform: none; box-shadow: none; }

/* pastilles d'etat (carte et page d'un logiciel) */
.sl-etats { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; max-width: 100%; }
.sl-etat { padding: 2px 9px; border-radius: 999px; background: #FFF6D6; color: #7A5A00; font-size: 12px; font-weight: 700; line-height: 1.4; white-space: nowrap; }
.sl-etat.sl-etat-payant { background: #E7F1FA; color: var(--bleu); }
.sl-pastilles { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; }
.sl-pastilles .sl-etat { font-size: 13px; padding: 3px 11px; }

/* « Compte et facturation » : petite rangee avant le formulaire */
.sl-compte { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 18px; margin: 8px 0 0; padding: 16px 20px; background: #fff; border: 1px solid var(--bordure); border-radius: 16px; --sl: #2563EB; }
.sl-compte-texte { flex: 1 1 260px; min-width: 0; }
.sl-compte-texte strong { display: block; font-size: 17px; }
.sl-compte-texte span { display: block; color: var(--texte-2); font-size: 14.5px; }
.sl-compte-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* formulaire : plus d'air, bien au-dessus du pied de page */
#formulaire.sp-section { padding: 64px 0 88px; }
#formulaire h2 { margin: 0 0 6px; font-size: 28px; }
#formulaire .sp-formulaire { margin-top: 20px; gap: 18px; padding: 32px; border-radius: 16px; box-shadow: 0 6px 20px rgba(20,30,40,.05); }
#formulaire .sp-horaires { margin-top: 4px; line-height: 1.6; }

/* rubriques en tete de la page d'un logiciel */
.sl-rubriques { padding: 28px 0 0; }
.sl-tuiles { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sl-tuile { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border: 1px solid var(--bordure); border-radius: 16px; background: #fff; color: var(--texte); text-decoration: none; transition: box-shadow .15s, transform .15s, border-color .15s; }
a.sl-tuile:hover { box-shadow: 0 12px 32px rgba(20,30,40,.10); transform: translateY(-2px); border-color: var(--bleu); color: var(--texte); }
.sl-tuile .sl-pic { flex: none; display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 12px; background: #E7F1FA; }
.sl-tuile .sl-pic svg { width: 24px; height: 24px; fill: none; stroke: var(--bleu); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sl-tuile strong { display: block; font-size: 17px; }
.sl-tuile small { display: block; margin-top: 2px; font-size: 14px; color: var(--texte-2); }
.sl-tuile .sl-fleche { margin-left: auto; color: var(--bleu); font-size: 20px; }
.sl-tuile.sl-vide { border-style: dashed; background: #FAFBFC; }
.sl-tuile.sl-vide .sl-pic { background: #EEF1F3; }
.sl-tuile.sl-vide .sl-pic svg { stroke: #7A8794; }
.sl-tuile.sl-vide strong, .sl-tuile.sl-vide small { color: #7A8794; }
.sl-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 0; }
.sl-actions .sp-bouton { background: #fff; color: var(--bleu) !important; }
.sl-actions .sp-bouton:hover { background: #EEF4FA; }
.sp-surtitre a:hover { text-decoration: underline; }

@media (max-width: 720px) {
  .sl-catalogue { padding: 40px 0 48px; }
  .sl-etage-tete h2 { font-size: 24px; }
  .sl-tuiles { grid-template-columns: 1fr; }
  #formulaire.sp-section { padding: 48px 0 64px; }
  #formulaire .sp-formulaire { padding: 20px; }
  .sl-compte-actions { width: 100%; }
}
@media (max-width: 680px) {
  .sl-grille { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .sl-c, .sl-c-icone, .sl-bouton { transition: none; }
  .sl-c:hover { transform: none; }
}
