/* Menu par catégories avec sous-menus (généré par scripts/menu_ch.py) */
.menu2 { align-items: center; gap: 4px; }
.menu2 .m2-groupe { position: relative; }
.menu2 .m2-titre, .menu2 .m2-lien { background: none; border: 0; cursor: pointer; font: 600 .93rem Inter, system-ui, sans-serif;
  color: var(--texte); padding: 10px 10px; border-radius: 8px; white-space: nowrap; text-decoration: none; }
.menu2 .m2-titre::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 7px; vertical-align: 2px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); opacity: .55; }
.menu2 .m2-titre:hover, .menu2 .m2-lien:hover, .menu2 .m2-groupe:focus-within .m2-titre { color: var(--rouge); background: var(--rouge-pale); }
.menu2 .m2-panneau { display: none; position: absolute; top: calc(100% + 6px); left: 50%; transform: translateX(-50%);
  min-width: 300px; background: var(--fond, #fff); border: 1px solid var(--bord); border-radius: 14px; padding: 8px;
  box-shadow: 0 18px 40px rgba(17, 17, 22, .14); z-index: 60; }
.menu2 .m2-panneau::before { content: ""; position: absolute; top: -10px; left: 0; right: 0; height: 10px; }
.menu2 .m2-groupe:hover .m2-panneau, .menu2 .m2-groupe:focus-within .m2-panneau { display: grid; }
.menu2 .m2-panneau a { display: block; padding: 10px 12px; border-radius: 10px; text-decoration: none; color: var(--encre); white-space: normal; }
.menu2 .m2-panneau a:hover { background: var(--fond-2); }
.menu2 .m2-panneau strong { display: block; font-size: .93rem; }
.menu2 .m2-panneau span { display: block; font-size: .8rem; color: var(--gris); margin-top: 2px; font-weight: 500; }
@media (max-width: 1800px) and (min-width: 1101px) { .menu2 .m2-titre, .menu2 .m2-lien { font-size: .86rem; padding: 8px 6px; }
  .menu2 { gap: 0; } .entete .conteneur { gap: 14px; } .menu2 .m2-titre::after { margin-left: 5px; } }
@media (max-width: 1340px) and (min-width: 1101px) { .menu2 .m2-titre, .menu2 .m2-lien { font-size: .8rem; padding: 8px 4px; }
  .menu2 .m2-titre::after { display: none; } .langues a { padding: 4px 3px; } }
/* Bouton téléphone : complet dès 2000 px ; en dessous, rond avec l'icône seule (le numéro reste dans le lien) */
@media (max-width: 1999px) and (min-width: 1101px) {
  .entete .btn { font-size: 0 !important; width: 42px; height: 42px; padding: 0 !important; display: inline-flex;
    align-items: center; justify-content: center; flex-shrink: 0; border-radius: 12px; }
  .entete .btn::before { content: ""; width: 19px; height: 19px; background: #fff;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3.1 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.1 4.2 2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7c.1.9.4 1.8.7 2.7a2 2 0 0 1-.5 2.1L8 9.8a16 16 0 0 0 6 6l1.3-1.3a2 2 0 0 1 2.1-.4c.9.3 1.8.6 2.7.7a2 2 0 0 1 1.7 2z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3.1 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.1 4.2 2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7c.1.9.4 1.8.7 2.7a2 2 0 0 1-.5 2.1L8 9.8a16 16 0 0 0 6 6l1.3-1.3a2 2 0 0 1 2.1-.4c.9.3 1.8.6 2.7.7a2 2 0 0 1 1.7 2z'/%3E%3C/svg%3E") center / contain no-repeat; }
}
/* Jusqu'à 1100 px : menu repliable (bouton ☰), comme sur téléphone */
@media (max-width: 1100px) {
  .entete .nav, .entete .btn, .entete .langues { display: none; }
  .entete .burger { display: block; }
  .entete .theme { margin-left: auto; }
  .entete .burger { margin-left: 0; }
  .entete.ouvert .nav { display: flex; flex-direction: column; position: absolute; top: 74px; left: 0; right: 0; gap: 0;
    background: var(--fond, #fff); border-bottom: 1px solid var(--bord); padding: 8px 20px 20px; }
  .entete.ouvert .langues { display: flex; margin-left: auto; }
  .entete.ouvert .theme { margin-left: 0; }
  .entete.ouvert .menu2 { align-items: stretch; max-height: calc(100vh - 74px); overflow-y: auto; }
  .entete.ouvert .menu2 .m2-titre, .entete.ouvert .menu2 .m2-lien { width: 100%; text-align: left; padding: 14px 0;
    border-bottom: 1px solid var(--fond-2); border-radius: 0; }
  .menu2 .m2-groupe:hover .m2-panneau, .menu2 .m2-groupe:focus-within .m2-panneau { display: none; }
  .menu2 .m2-groupe.ouvert .m2-panneau { display: grid; position: static; transform: none; box-shadow: none; border: 0;
    padding: 0 0 8px 8px; min-width: 0; }
  .entete.ouvert .menu2 .m2-panneau a { border-bottom: 0; padding: 8px 4px; }
}
@media (max-width: 480px) {
  .entete .conteneur { gap: 6px; }
  .entete.ouvert .theme { display: none; }
  .langues a { padding: 4px 4px; }
}
/* rscom.pt */
.entete .logo { flex-shrink: 0; }
.entete .btn { white-space: nowrap; }
