/* ============================================================================
   BOÎTE À OUTILS — menu + bandeau « Autres outils » des outils.
   Chargé par WAV Inspector, DDP Player et Sample Rate Converter ; affichage
   par js/boite-a-outils.js. Couleurs écrites en dur (pas de variables) : le
   même fichier sert aux trois outils, dont les feuilles de style diffèrent.
   ============================================================================ */

/* Barre du haut : bouton « Boîte à outils » à droite, juste avant FR / EN
   (décision JC 27/11/2026 ; l'ordre vient de la page, le bouton est placé
   avant le sélecteur de langue dans le HTML). */
.topbar { justify-content: flex-end; gap: 24px; }

.bao { position: relative; }

/* --- Bouton : rectangle noir, VU de WAV Inspector -------------------------- */
.bao-btn {
  display: inline-flex; align-items: center; gap: 9px; cursor: pointer;
  background: rgba(12, 10, 8, 0.82); border: 0; border-radius: 6px;
  padding: 6px 14px 6px 8px; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  font: inherit; font-family: 'Montserrat', sans-serif; font-size: 11px;
  letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255, 255, 255, 0.85);
  transition: background 0.2s, color 0.2s;
}
.bao-btn:hover, .bao.is-open .bao-btn { color: #fff; background: #000; }
.bao-vu { width: 24px; height: 24px; display: block; }
.bao-chev { width: 10px; height: 10px; fill: none; stroke: currentColor; stroke-width: 1.5; transition: transform 0.2s; }
.bao.is-open .bao-chev { transform: rotate(180deg); }

/* --- Menu déroulant -------------------------------------------------------- */
.bao-menu {
  position: absolute; top: calc(100% + 12px); right: -8px; z-index: 50;   /* s'ouvre vers la gauche */
  width: 372px; padding: 8px; border-radius: 14px;   /* 372 : « Sample Rate Converter GRATUIT BETA » sur une ligne */
  background: rgba(250, 248, 245, 0.96);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35); color: rgb(20, 16, 12);
  font-family: 'Montserrat', sans-serif; text-align: left;
  opacity: 0; transform: translateY(-6px); pointer-events: none;
  transition: opacity 0.18s, transform 0.18s;
}
.bao.is-open .bao-menu { opacity: 1; transform: none; pointer-events: auto; }

/* --- Ligne d'outil (menu et bandeau) --------------------------------------- */
.bao-item {
  display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: center;
  padding: 10px 12px; border-radius: 10px; text-decoration: none; color: inherit;
  transition: background 0.15s;
}
.bao-item:hover { background: rgba(200, 138, 76, 0.18); }
.bao-ic { width: 34px; height: 34px; border-radius: 9px; background: rgba(20, 16, 12, 0.07); display: grid; place-items: center; }
.bao-ic img { width: 24px; height: 24px; display: block; }
.bao-txt b { display: block; font-size: 13.5px; font-weight: 600; letter-spacing: 0; text-transform: none; }
.bao-txt > span { display: block; font-size: 12px; color: rgba(20, 16, 12, 0.55); line-height: 1.35; margin-top: 1px; }
.bao-tag {
  display: inline-block; margin-left: 6px; padding: 0 5px; vertical-align: 1px;
  font-size: 10px; font-style: normal; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: rgb(200, 138, 76); border: 1px solid rgba(200, 138, 76, 0.6); border-radius: 4px;
}
.bao-tag--beta { margin-left: 4px; color: rgba(20, 16, 12, 0.55); border-color: rgba(20, 16, 12, 0.12); }
.bao-open { font-style: normal; font-weight: 400; font-size: 11.5px; color: rgb(200, 138, 76); margin-left: 6px; }
.bao-item.is-current { pointer-events: none; }

.bao-sep { height: 1px; background: rgba(20, 16, 12, 0.10); margin: 6px 12px; }
.bao-foot { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px 6px; font-size: 12px; }
.bao-foot a { color: rgba(20, 16, 12, 0.82); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.bao-foot a:hover { color: rgb(200, 138, 76); }
.bao-by img { height: 28px; width: auto; display: block; }
.bao-by:hover img { opacity: 0.75; }

/* --- Bandeau « Autres outils » en bas de l'accueil ------------------------- */
.bao-band { margin: 44px 0 10px; padding-top: 26px; border-top: 1px solid rgba(20, 16, 12, 0.10); font-family: 'Montserrat', sans-serif; }
.bao-band h2 {
  margin: 0 0 14px; text-align: center; font-size: 11px; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase; color: rgba(20, 16, 12, 0.55);
}
.bao-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.bao-grid .bao-item { flex: 0 1 250px; background: rgba(20, 16, 12, 0.07); }
.bao-grid .bao-item:hover { background: rgba(200, 138, 76, 0.18); }

/* --- Mobile : le bouton se réduit au VU + flèche --------------------------- */
@media (max-width: 600px) {
  .bao-lbl { display: none; }
  /* Menu calé sur les bords de l'écran (et non sur le bouton, qui est à droite) */
  .bao-menu { position: fixed; top: 62px; left: 18px; right: 18px; width: auto; }
}

/* --- Lien-carte vers un autre outil ou service (27/11/2026, demande JC) -----
   Même allure qu'une ligne du bandeau « Autres outils » : icône dans un carré
   arrondi, nom en gras, une ligne d'explication. Utilisé dans les réponses
   des FAQ (textes dans content/content.*.js de chaque outil) :
     <a class='lc' href='…' target='_blank' rel='noopener'>
       <span class='lc-ic'><img src='icône' alt=''></span>
       <span class='lc-txt'><b>Nom</b> <span>Ligne d'explication</span></span></a>
   ⚠ Même bloc dans css/styles.css (site Climax) : reporter une retouche. */
a.lc, .faq-a a.lc {
  display: inline-flex; align-items: center; gap: 12px; max-width: 100%;
  padding: 9px 16px 9px 9px; border-radius: 10px;
  background: rgba(20, 16, 12, 0.07); color: inherit; text-decoration: none;
  transition: background 0.15s;
}
a.lc:hover, .faq-a a.lc:hover { background: rgba(200, 138, 76, 0.18); }
.lc-ic { flex: 0 0 34px; width: 34px; height: 34px; border-radius: 9px; background: rgba(255, 255, 255, 0.7); display: grid; place-items: center; }
.lc-ic img { width: 24px; height: 24px; display: block; }
.lc-txt { line-height: 1.3; text-align: left; }
.lc-txt b { display: block; font-size: 13.5px; font-weight: 600; letter-spacing: 0; text-transform: none; }
.lc-txt > span { display: block; font-size: 12px; color: rgba(20, 16, 12, 0.55); }
