/*
 * Pages qui listent plusieurs logiciels (/logiciels-all, /logiciels-famille, /logiciels-professionnels,
 * /logiciels-audioprothesistes, /logiciels-orl-et-phoniatres, /logiciels-orthophonistes, produits) :
 * meme habillage que la fiche produit et le menu (3 novembre 2026). Fond blanc sans carreaux, cartes arrondies,
 * texte bleu marine, boutons en pilule, une couleur par categorie pour le trait d'accent.
 * Les anciennes regles (style.css, styleY.css) restent en place : ce fichier passe apres elles. Pour revenir en
 * arriere, retirer la ligne page-liste-logiciels.css en haut de chaque gabarit de templates/Logiciels/categories/.
 */
.professionnel, .famille {
  --navy: #2d4770;
  --soft: #5d7396;
  --line: #e3e9f1;
  --accent: #4478b4;
  background: #fff !important;
  background-image: none !important;
}
.bibliothequeLogiciel .logiciel.audio, .bibliothequeLogiciel.audio, .audio { --accent: #04b6d0; }
.bibliothequeLogiciel .logiciel.orl,   .bibliothequeLogiciel.orl,   .orl   { --accent: #7fb300; }
.bibliothequeLogiciel .logiciel.ortho, .bibliothequeLogiciel.ortho, .ortho { --accent: #ff8400; }
.famille, .bibliothequeLogiciel.famille, .produit { --accent: #70217c; }

/* bandeau Hint5-min / VideoShow : images arrondies */
.main_box_slide_img_1, .main_box_slide_img_2 {
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(45, 71, 112, .16);
  border: 1px solid var(--line) !important;
  transition: transform .25s ease, box-shadow .25s ease;
}
a:hover > .main_box_slide_img_1, a:hover > .main_box_slide_img_2 {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(45, 71, 112, .22);
}
.main_box_slide2 { color: var(--navy); }

/* titre d'introduction */
.bibliothequeLogiciel .row .titre h2,
.bibliothequeLogiciel .titreH2,
.bibliothequeLogiciel h1 {
  color: var(--navy) !important;
  border-bottom: 0 !important;
  font-weight: 700;
  letter-spacing: -.01em;
}
.bibliothequeLogiciel .row .titre h2::after,
.bibliothequeLogiciel .titreH2::after,
.bibliothequeLogiciel h1::after {
  content: "";
  display: block;
  width: 46px;
  height: 4px;
  margin-top: 8px;
  border-radius: 4px;
  background: linear-gradient(90deg, #e9002d 0 25%, #7da4cf 25% 50%, #f2a912 50% 75%, #70217c 75% 100%);
}
.bibliothequeLogiciel .row .titre h3 { color: var(--soft) !important; font-weight: 500; }
.bibliothequeLogiciel p, .bibliothequeLogiciel .presentation p { color: var(--soft) !important; }

/* un bloc par categorie : titre au-dessus, carte arrondie dessous */
.bibliothequeLogiciel .logiciel { min-height: 0; margin: 0 0 34px; }
.bibliothequeLogiciel .logiciel h2 {
  position: static;
  width: auto !important;
  padding: 0 0 12px !important;
  margin: 0 !important;
  background: none !important;
  color: var(--navy) !important;
  text-align: left !important;
  font-size: 22px;
  font-weight: 700;
}
.bibliothequeLogiciel .logiciel h2::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 22px;
  margin-right: 10px;
  vertical-align: -3px;
  border-radius: 3px;
  background: var(--accent);
}
.bibliothequeLogiciel .logiciel .liste_logiciel {
  position: static;
  bottom: auto;
  min-height: 0;
  padding: 22px 26px;
  background: #fff;
  border: 1px solid var(--line) !important;
  border-top: 4px solid var(--accent) !important;
  border-radius: 16px;
  box-shadow: 0 8px 26px rgba(45, 71, 112, .09);
}
.bibliothequeLogiciel .logiciel .liste_logiciel > p { margin: 0 0 18px; font-size: 14px; }

/* cartes de logiciels (pages "plusieurs categories" : tous, professionnels) */
.principal .logiciel .liste_logiciel {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 18px;
}
.principal .logiciel .liste_logiciel > p { grid-column: 1 / -1; }
.principal .logiciel .liste_logiciel > a { display: block; text-decoration: none; }
.principal .infoLogiciel {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 16px 12px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(45, 71, 112, .06);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.principal .infoLogiciel:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
  box-shadow: 0 14px 28px rgba(45, 71, 112, .16);
}
.principal .infoLogiciel img { width: 72%; max-width: 150px; margin-bottom: 8px; }
.principal .infoLogiciel h3 { margin: 6px 0 4px; font-size: 15px; font-weight: 700; color: var(--navy) !important; }
.principal .infoLogiciel p { font-size: 12.5px; line-height: 1.4; margin: 0 !important; color: var(--soft) !important; }

/* lignes de logiciels (famille, audio, orl, ortho, produits) */
.bibliothequeLogiciel:not(.principal) .logiciel .liste_logiciel,
.famille .logiciel .liste_logiciel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 26px;
}
.bibliothequeLogiciel:not(.principal) .logiciel .liste_logiciel > a:first-child img,
.famille .logiciel .liste_logiciel > a:first-child img {
  margin: 0;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(45, 71, 112, .14);
  max-width: 100%;
}
.bibliothequeLogiciel .logiciel .description {
  flex: 1 1 280px;
  display: block;
  height: auto;
  width: auto;
  margin: 0;
  font-size: 14px;
  color: var(--navy);
}
.bibliothequeLogiciel .logiciel .description h3 {
  background: none !important;
  padding: 0 !important;
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 700;
  color: var(--navy) !important;
}
.bibliothequeLogiciel .logiciel .description p { margin: 0 0 12px !important; color: var(--soft) !important; line-height: 1.5; }
.bibliothequeLogiciel .logiciel .description a,
.famille .description a {
  position: static;
  display: inline-block;
  padding: 7px 18px !important;
  background: none !important;
  border: 1px solid var(--navy);
  border-radius: 999px;
  color: var(--navy) !important;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color .25s ease, color .25s ease;
}
.bibliothequeLogiciel .logiciel .description a:hover,
.famille .description a:hover { background: var(--navy) !important; color: #fff !important; }

/* prix et age : plus de bulles */
.bibliothequeLogiciel .logiciel .informations_complementaires {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}
.bibliothequeLogiciel .logiciel .informations_complementaires .zoneAge {
  position: static;
  left: auto;
  top: auto;
  display: flex;
  align-items: baseline;
  gap: 10px;
  width: auto;
  height: auto;
}
.bibliothequeLogiciel .logiciel .informations_complementaires .zoneAge .prix,
.bibliothequeLogiciel .logiciel .informations_complementaires .zoneAge .age {
  display: block;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0;
  border: 0 !important;
  border-radius: 0;
  background: none;
  text-align: right;
  line-height: 1.15;
  color: var(--navy) !important;
}
.bibliothequeLogiciel .logiciel .informations_complementaires .zoneAge .prix { font-size: 26px; font-weight: 700; white-space: nowrap; }
.bibliothequeLogiciel .logiciel .informations_complementaires .zoneAge .prix br { display: none; }
.bibliothequeLogiciel .logiciel .informations_complementaires .zoneAge .age {
  padding: 3px 10px;
  border: 1px solid var(--line) !important;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--soft) !important;
  white-space: nowrap;
}
.bibliothequeLogiciel .logiciel .informations_complementaires .zoneAge .age br { display: none; }

/* boutons Acheter / Essayer : pilules */
.bibliothequeLogiciel .logiciel .liste_logiciel #achat,
.bibliothequeLogiciel .logiciel .liste_logiciel .list_button {
  position: static !important;
  width: auto;
  padding: 10px 26px;
  border: 1px solid var(--navy) !important;
  border-radius: 999px;
  background: var(--navy);
  color: #fff !important;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color .25s ease, color .25s ease, box-shadow .25s ease;
}
.bibliothequeLogiciel .logiciel .liste_logiciel #achat:hover,
.bibliothequeLogiciel .logiciel .liste_logiciel .list_button:hover {
  background: #fff;
  color: var(--navy) !important;
  box-shadow: 0 4px 12px rgba(45, 71, 112, .2);
}
.bibliothequeLogiciel .logiciel .liste_logiciel .zoneEssai {
  position: static !important;
  display: flex;
  align-items: center;
  gap: 10px;
  width: auto;
  height: auto;
  margin: 0;
}
.bibliothequeLogiciel .logiciel .liste_logiciel .zoneEssai img { position: static; max-height: 44px; margin: 0; }
.bibliothequeLogiciel .logiciel .liste_logiciel .zoneEssai .try-button,
.bibliothequeLogiciel .logiciel .informations_complementaires .zoneEssai .try-button {
  width: auto;
  height: auto;
  padding: 9px 22px;
  border: 1px solid var(--navy) !important;
  border-radius: 999px;
  background: #fff !important;
  color: var(--navy) !important;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: background-color .25s ease, color .25s ease;
}
.bibliothequeLogiciel .logiciel .liste_logiciel .zoneEssai .try-button:hover { background: var(--navy) !important; color: #fff !important; }

/* page "Nos logiciels" : la partie famille (banniere puis une ligne par logiciel) suit le meme style */
.famille > .content > .content > img { border-radius: 16px; box-shadow: 0 8px 26px rgba(45, 71, 112, .12); margin-top: 0; }
.famille .content.bibliothequeLogiciel { padding-top: 10px; }

@media (max-width: 800px) {
  .bibliothequeLogiciel .logiciel .liste_logiciel { padding: 16px; }
  .principal .logiciel .liste_logiciel { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
  .bibliothequeLogiciel .logiciel .informations_complementaires { align-items: flex-start; }
}

/* ordre des elements d'une ligne : image, description, prix, bouton Acheter, essai */
.bibliothequeLogiciel .logiciel .liste_logiciel > a:first-child { order: 1; }
.bibliothequeLogiciel .logiciel .description { order: 2; }
.bibliothequeLogiciel .logiciel .informations_complementaires { order: 3; }
.bibliothequeLogiciel .logiciel .liste_logiciel #achat { order: 4; }
.bibliothequeLogiciel .logiciel .liste_logiciel > .zoneEssai { order: 5; }

/* espace entre le menu et le debut de la page */
.professionnel, .famille { padding-top: 34px; }
.professionnel ~ .famille { padding-top: 0; }

/* ===== lignes de logiciels (ORL, audio, ortho, famille, produits) : grille stable =====
   Avant, des éléments flottants/absolus de l'ancien style (position:absolute sous 792 px) faisaient glisser le prix par-dessus le texte
   et déplaçaient le bouton Acheter selon la largeur. Ordinateur : image | description | prix + boutons. Mobile : image, description,
   puis une ligne prix à gauche / Acheter à droite. */
.bibliothequeLogiciel:not(.principal) .logiciel .liste_logiciel,
.famille .logiciel .liste_logiciel {
  display: grid !important;
  grid-template-columns: 200px minmax(0, 1fr) 210px;
  grid-template-areas: "img desc prix" "img desc achat" "img desc essai";
  grid-template-rows: auto auto 1fr;
  gap: 14px 28px;
  align-items: start;
}
.bibliothequeLogiciel .logiciel .liste_logiciel > a:first-child { grid-area: img; order: 0; }
.bibliothequeLogiciel .logiciel .liste_logiciel > a:first-child img { width: 100%; max-width: 200px; height: auto; }
.bibliothequeLogiciel .logiciel .description { grid-area: desc; order: 0; flex: none; width: auto; height: auto; position: static; min-width: 0; }
.bibliothequeLogiciel .logiciel .informations_complementaires {
  grid-area: prix;
  order: 0;
  position: static !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;
  top: auto !important;
  height: auto !important;
  width: auto !important;
  align-items: flex-end;
}
.bibliothequeLogiciel .logiciel .liste_logiciel #achat { grid-area: achat; order: 0; justify-self: end; text-align: center; white-space: nowrap; }
.bibliothequeLogiciel .logiciel .liste_logiciel > .zoneEssai { grid-area: essai; order: 0; justify-self: end; position: static !important; }
.bibliothequeLogiciel .logiciel .informations_complementaires .zoneAge { margin: 0 !important; justify-content: flex-end; }

@media (max-width: 800px) {
  .bibliothequeLogiciel:not(.principal) .logiciel .liste_logiciel,
  .famille .logiciel .liste_logiciel {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "img img" "desc desc" "prix achat" "essai essai";
    grid-template-rows: auto;
    gap: 14px 16px;
    align-items: center;
  }
  .bibliothequeLogiciel .logiciel .liste_logiciel > a:first-child { justify-self: start; }
  .bibliothequeLogiciel .logiciel .informations_complementaires { align-items: flex-start; }
  .bibliothequeLogiciel .logiciel .informations_complementaires .zoneAge { justify-content: flex-start; flex-wrap: wrap; }
  .bibliothequeLogiciel .logiciel .liste_logiciel #achat { justify-self: end; }
  .bibliothequeLogiciel .logiciel .liste_logiciel > .zoneEssai { justify-self: start; }
}
