/* 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: 1201px) { .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: 1201px) { .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 : numéro toujours en entier, plus compact sur les écrans moyens */
.entete .btn { white-space: nowrap; flex-shrink: 0; }
@media (max-width: 1999px) and (min-width: 1201px) { .entete .btn { padding: 9px 13px; font-size: .84rem; } }
/* Jusqu’à 1200 px : menu repliable (bouton ☰), comme sur téléphone */
@media (max-width: 1200px) {
  .entete .nav, .entete .btn, .entete .langues { display: none !important; }
  .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 !important; 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; }
}
/* Très petits écrans (iPhone SE, petits Android) : rien ne dépasse de l'écran */
@media (max-width: 400px) {
  .conteneur { padding-left: 16px; padding-right: 16px; }
  .contact > *, .grille > *, .duo > *, .heros .conteneur > *, .veto-grille > *, .apropos > * { min-width: 0; }
  .coordonnee, .coordonnee span, .coordonnee strong, .coordonnee small { min-width: 0; overflow-wrap: anywhere; }
  .chiffres { grid-template-columns: 1fr 1fr; gap: 10px; }
  .chiffre { padding: 16px 14px; min-width: 0; }
  .chiffre strong { font-size: 1.45rem; }
  .chiffre span { font-size: .84rem; overflow-wrap: anywhere; hyphens: auto; }
  .btn { white-space: normal; max-width: 100%; text-align: center; }
  .heros .actions .btn, .cta .btn, .cta-regiao .btn { width: 100%; justify-content: center; }
  h1, h2, .titre-heros, .titre-page { overflow-wrap: anywhere; hyphens: auto; }
  .champs { grid-template-columns: 1fr !important; }
  .champ, .champ input, .champ select, .champ textarea { min-width: 0; max-width: 100%; }
  .cta, .cta > *, .telechargements, .heros .actions { min-width: 0; flex-wrap: wrap; }
  .telechargements { grid-template-columns: 1fr !important; min-width: 0 !important; }
  .telechargements .btn { width: 100%; justify-content: center; white-space: normal !important; }
}
