/* Corrections mobile et petits écrans (v1.0.2, 23/11/2026) — retours de test sur téléphone */

/* Fenêtres par-dessus la page (photo agrandie, galerie, aperçu d'un membre) : toujours au-dessus
   de l'en-tête et de la barre du bas, bouton × visible */
.glb,.lbx,.qv{z-index:1000!important}
.glb .qv-x,.lbx .qv-x{z-index:5}
.lbx img{width:min(90vw,560px)!important;height:auto!important;max-height:80svh;object-fit:contain}

/* Formulaire envoyé : il disparaît, seul le message de remerciement reste */
form[hidden],.form[hidden]{display:none!important}

/* Compteurs des filtres : contraste AA */
.tabsf .n,.filters .n{color:#5f646c}

/* Textes des sections : ils occupent toute la largeur de leur bloc, sans s'arrêter au milieu (retour Maxime, 23/11).
   Le texte posé sur les photos (bandeaux du haut) garde sa largeur pour ne pas couvrir la photo. */
main section:not(.hero2):not(.phero):not(.mh4):not(.mhead):not(.ahero) :is(p,.lead){max-width:none!important}

/* « À la une » sur une seule ligne */
.phero .aune span{white-space:nowrap}

/* Carte : fond clair pendant le chargement (au lieu du fond sombre) */
.lmap.leaflet-container{background:#ECE6D9}
.lmap.leaflet-container>svg{display:none}

@media (max-width:760px){
	/* La barre du bas suffit : pas de bouton « retour en haut » sur téléphone */
	.totop{display:none!important}

	/* Barre du bas : se cache quand on descend, revient quand on remonte,
	   disparaît quand une fenêtre est ouverte ou en bas de page (pied de page, membre suivant) */
	.mbar{transition:transform .3s,opacity .3s}
	.bni-mb-down .mbar,.bni-ov .mbar,.bni-end .mbar,body.menu-open .mbar{transform:translateY(150%)!important;opacity:0;pointer-events:none}

	/* « Appeler » bien visible sur la barre sombre */
	.mbar .btn-ink{background:#fff!important;color:#14171c!important}
	.mbar .btn-ink svg,.mbar .btn-ink .i{stroke:#14171c!important;color:#14171c}

	/* Galerie agrandie : × en haut, flèches larges en bas, rien ne les recouvre */
	.glb{padding:68px 10px 92px!important}
	.glb .qv-x,.lbx .qv-x{position:fixed!important;top:12px!important;right:12px!important;width:48px!important;height:48px!important}
	.glb .glb-n{position:fixed!important;bottom:20px!important;width:56px!important;height:56px!important;z-index:5}
	.glb .glb-n.p{left:20px!important;right:auto!important}
	.glb .glb-n.n{right:20px!important;left:auto!important}
	.glb img{max-height:62svh!important}
	.lbx{padding:68px 12px 24px!important}

	/* Accueil : moins de vide sous « Votre métier » */
	#finder-result:empty{display:none}
	#siege{padding-bottom:40px!important}

	/* Carte (contact) : les onglets restent sur une ligne et défilent */
	.rtabs{flex-wrap:nowrap!important;overflow-x:auto;scrollbar-width:none}
	/* Cartes des membres : entreprise lisible */
	.mc .cm,.mcard .co{font-size:13.5px!important}
	/* Pied de page : « Gérer mes cookies » assez grand pour le doigt */
	.fbot [data-cookie-open]{min-height:44px;padding:10px 4px}

	/* Actualités : bandeau moins haut, les articles arrivent plus vite */
	.phero:has(.aune){min-height:0!important}
	.phero:has(.aune) .mh4-in{padding-bottom:40px!important}
}

/* ---- 1.0.6 : titres H3 sans changement visuel ---- */
.hx{display:contents}
p.fh{font-weight:800;line-height:1.15}

/* ---- 1.0.6 : « Votre métier est-il déjà représenté ? » sur toute la largeur ---- */
@media (min-width:861px){
  #siege .seat{grid-template-columns:1fr;gap:28px}
  #siege .seat h2.t{max-width:none}
  #siege .finder{display:flex;flex-wrap:wrap;align-items:center;column-gap:8px}
  #siege .finder>label,#siege .finder>.field,#siege .finder>.result{flex:0 0 100%}
  #siege .finder .wanted{margin:16px 8px 0 0;display:flex;flex-wrap:wrap;align-items:center;gap:8px}
  #siege .finder .sugg{margin-top:16px}
}

/* ---- 1.0.7 : places à prendre / exemples ---- */
.finder .wl{color:var(--ink);font-size:14px;font-weight:700;margin-right:4px}
.finder .chip.hot{gap:8px}
.finder .chip.hot:before{content:"";width:8px;height:8px;border-radius:50%;background:#fff;flex:none}
.finder .chip.hot small{font-size:12px;font-weight:600;opacity:.85}
.finder .sugg{align-items:center}
.finder .chip.ex{background:none;min-height:40px;padding:0 6px;text-decoration:underline;text-underline-offset:4px;text-decoration-thickness:1px;color:var(--ink-2)}
.finder .chip.ex:hover{background:none;color:var(--red)}
@media (min-width:861px){#siege .finder .wanted,#siege .finder .sugg{flex:0 0 100%;margin:14px 0 0}}
@media (max-width:860px){.finder .wanted .wl,.finder .sugg .wl{flex:0 0 100%;margin:0}.finder .sugg{gap:4px 10px}}
