/* =======================================================================
   RU Support (Le Portail) : standard mobile RU (2026-10-04).
   Téléphone et tablette seulement (999 px et moins) : rien ne change sur
   ordinateur. Couleurs : jetons --ru-* de la charte (fond clair, bleu).
   - aucun défilement de côté (longs mots, liens, tableaux, médias) ;
   - cibles tactiles de 44 px, champs à 16 px (pas de zoom au focus) ;
   - formulaire de billet en une colonne, pièces jointes depuis le téléphone ;
   - fil d'un billet lu comme une messagerie, zone de réponse collée en bas ;
   - FAQ en accordéon avec recherche pleine largeur ; annonces lisibles.
   ======================================================================= */
/* Livraison 6 (règle RU Design : aucune priorité forcée) : les règles qui devaient
   battre le thème ou un autre logiciel portent :not(#mhhs-sans-id) sur leur
   premier sélecteur. Cet identifiant n'existe nulle part : la règle s'applique
   partout, avec la force d'un identifiant, sans priorité forcée. */

/* Pièces jointes dans le fil (aussi sur ordinateur : ce sont de nouveaux éléments). */
.mhhs-files{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.mhhs-file{display:inline-flex;align-items:center;gap:10px;max-width:100%;min-height:44px;padding:6px 12px 6px 6px;border:1px solid var(--ru-bord,rgba(0,0,0,.10));border-radius:12px;background:var(--ru-fond,#fff);color:var(--ru-texte,#0e2438);text-decoration:none;box-sizing:border-box}
.mhhs-file:hover{border-color:var(--ru-accent,#1d5c8f)}
.mhhs-file-ic{flex:0 0 32px;height:32px;border-radius:8px;background:var(--ru-accent-doux,rgba(44,111,181,.12));color:var(--ru-accent,#1d5c8f);font-size:9.5px;font-weight:800;letter-spacing:.03em;display:flex;align-items:center;justify-content:center}
.mhhs-file-t{display:flex;flex-direction:column;min-width:0;line-height:1.25}
.mhhs-file-n{font-size:13px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:220px}
.mhhs-file-s{font-size:11.5px;color:var(--ru-discret,#6b7280)}
.mhhs-file--img{flex-direction:column;align-items:stretch;gap:0;padding:0;overflow:hidden;width:180px}
.mhhs-file--img img{display:block;width:100%;height:120px;object-fit:cover;background:var(--ru-surface,#F6F6F4)}
.mhhs-file--img .mhhs-file-n{padding:6px 10px;max-width:none}
.mhhs-b-when{display:block;margin-top:6px;font-size:11px;color:var(--ru-discret,#6b7280)}
.mhhs-mod .mhhs-tk-titre{margin:6px 0 4px}
.mhhs-mod .mhhs-tk-meta{margin-bottom:14px;display:flex;align-items:center;gap:10px;flex-wrap:wrap}

/* Zone de réponse (ordinateur : même place qu'avant, sous le fil). */
.mhhs-mod .mhhs-composer{margin-top:20px}
.mhhs-mod .mhhs-composer .mhhs-reply-host{margin-top:0}
.mhhs-composer-bar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:10px}
.mhhs-composer-bar .mhhs-reply-m{flex:1 1 140px;margin:0;min-width:0}
.mhhs-composer-bar .mhhs-reply-b{margin-left:auto}
.mhhs-composer-bar .mhhs-reply-b[disabled]{opacity:.6;cursor:progress}
.mhhs-att-btn{position:relative;display:inline-flex;align-items:center;gap:8px;min-height:40px;padding:0 14px;border:1px solid var(--ru-bord,rgba(0,0,0,.10));border-radius:10px;background:var(--ru-fond,#fff);color:var(--ru-texte,#0e2438);font-size:13px;font-weight:600;cursor:pointer;overflow:hidden}
.mhhs-att-btn:hover,.mhhs-att-btn:focus-within{border-color:var(--ru-accent,#1d5c8f)}
.mhhs-att-btn input{position:absolute;inset:0;opacity:0;cursor:pointer;width:100%;height:100%}
.mhhs-att-btn svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;flex:0 0 auto}
.mhhs-att-list{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.mhhs-att-chip{display:inline-flex;align-items:center;gap:4px;max-width:100%;padding:2px 2px 2px 10px;border-radius:100px;background:var(--ru-accent-doux,rgba(44,111,181,.12));color:var(--ru-texte,#0e2438);font-size:12.5px}
.mhhs-att-n{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:200px}
.mhhs-att-x{border:0;background:none;width:32px;height:32px;border-radius:50%;font-size:18px;line-height:1;color:inherit;cursor:pointer}

/* Liste des fichiers choisis dans le formulaire. */
.mhhs-filebox-liste{list-style:none;margin:8px 0 0;padding:0;display:flex;flex-direction:column;gap:4px}
.mhhs-filebox-liste li{display:flex;justify-content:space-between;gap:10px;font-size:13px;color:var(--ru-texte,#0e2438);min-width:0}
.mhhs-fb-n{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.mhhs-fb-s{flex:0 0 auto;color:var(--ru-discret,#6b7280)}

@media (max-width:999px){
	/* ---- Général : jamais de défilement de côté. */
	.mhhs-portal,.mhhs-mod,.mhhs-faq{max-width:100%;overflow-wrap:anywhere}
	.mhhs-portal :is(img,video,iframe,canvas),.mhhs-mod :is(img,video,iframe,canvas){max-width:100%}
	body.mhhs-standalone{overflow-x:clip}
	/* Hub : un « overflow-x:hidden » sur html et body ferait du corps un cadre
	   de défilement qui ne défile jamais, et la zone de réponse ne resterait
	   pas collée en bas. « clip » coupe pareil sans créer de cadre. */
	html:has(#ru-hub-section-support):not(#mhhs-sans-id),html:has(#ru-hub-section-support):not(#mhhs-sans-id) body{overflow-x:clip;overflow-y:visible}

	/* ---- Champs à 16 px (pas de zoom au focus), cibles de 44 px. */
	.mhhs-portal:not(#mhhs-sans-id) :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]),select,textarea),
	.mhhs-mod:not(#mhhs-sans-id) :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]),select,textarea),
	.mhhs-faq:not(#mhhs-sans-id) .mhhs-faq-search,
	.mhhs-rte-ed:not(#mhhs-sans-id),.mhhs-rte-link:not(#mhhs-sans-id) input{font-size:16px}
	.mhhs-portal--open:not(#mhhs-sans-id) .mhhs-field :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]),select),
	.mhhs-mod:not(#mhhs-sans-id) .mhhs-field :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]),select){min-height:44px;padding:10px 12px}
	.mhhs-portal :is(.mhhs-btn,.mhhs-btn-ol,.mhhs-btn-pri,.mhhs-p-cta,.mhhs-tab,.mhhs-dd-btn,.mhhs-link-add,.mhhs-link-del),
	.mhhs-mod :is(.mhhs-btn,.mhhs-btn-ol,.mhhs-btn-pri,.mhhs-mod-tab,.mhhs-dd-btn,.mhhs-link-add,.mhhs-link-del,.mhhs-att-btn,.mhhs-sat-star){min-height:44px;box-sizing:border-box}
	.mhhs-portal :is(.mhhs-btn,.mhhs-btn-ol,.mhhs-btn-pri),.mhhs-mod :is(.mhhs-btn,.mhhs-btn-ol,.mhhs-btn-pri){display:inline-flex;align-items:center;justify-content:center;text-align:center}
	.mhhs-portal:not(#mhhs-sans-id) .mhhs-radios label,.mhhs-mod:not(#mhhs-sans-id) .mhhs-radios label{min-height:44px;font-size:15px}
	.mhhs-portal:not(#mhhs-sans-id) .mhhs-field input[type=radio],.mhhs-portal:not(#mhhs-sans-id) .mhhs-field input[type=checkbox],
	.mhhs-mod:not(#mhhs-sans-id) .mhhs-field input[type=radio],.mhhs-mod:not(#mhhs-sans-id) .mhhs-field input[type=checkbox],
	.mhhs-accept:not(#mhhs-sans-id) input[type=checkbox]{width:20px;height:20px;flex:0 0 20px}
	.mhhs-accept{font-size:14px;align-items:flex-start}
	.mhhs-dd-opt{min-height:48px}
	.mhhs-my-back{display:inline-flex;align-items:center;min-height:44px;font-size:14px}

	/* ---- Formulaire de billet : une colonne pleine largeur. */
	.mhhs-mod .mhhs-card,.mhhs-portal--open .mhhs-p-body .mhhs-panel{max-width:none}
	.mhhs-field label.q{font-size:15px}
	.mhhs-field .mhhs-help{font-size:13.5px}
	.mhhs-link-row{gap:6px}
	.mhhs-link-row input{min-width:0}
	.mhhs-link-del{width:44px;height:44px;flex:0 0 44px}
	.mhhs-nav{flex-wrap:wrap}
	.mhhs-nav .mhhs-btn{flex:1 1 140px}
	.mhhs-stepcount{margin:8px 0 14px}
	.mhhs-msg.err{font-size:14px;font-weight:600;padding:10px 12px;border-radius:10px;background:var(--ru-erreur-doux,rgba(180,35,24,.08))}
	.mhhs-field-msg{font-size:13.5px;font-weight:600}
	/* Pièce jointe depuis le téléphone : grand bouton lisible. */
	.mhhs-filebox{padding:12px;border-style:dashed;border-radius:12px;background:var(--ru-surface,#F6F6F4)}
	.mhhs-filebox[data-mhhs-lbl]::before{content:attr(data-mhhs-lbl);display:block;font-size:13px;font-weight:600;color:var(--ru-texte,#0e2438);margin-bottom:8px}
	.mhhs-filebox input[type=file]{display:block;width:100%;font-size:14px;color:var(--ru-discret,#6b7280)}
	.mhhs-filebox input[type=file]::file-selector-button{min-height:44px;margin-right:10px;padding:0 16px;border:1px solid var(--ru-accent,#1d5c8f);border-radius:10px;background:var(--ru-fond,#fff);color:var(--ru-accent,#1d5c8f);font:inherit;font-weight:700;cursor:pointer}
	.mhhs-sign{max-width:100%}
	.mhhs-nps label{min-width:44px;height:44px}
	.mhhs-stars label{font-size:34px;padding:0 4px}

	/* ---- Page publique (coque) : en-tête compact, onglets du dépôt. */
	.mhhs-portal .mhhs-p-top{flex-wrap:nowrap;align-items:center;justify-content:space-between;gap:10px;padding:10px 16px}
	.mhhs-coque .mhhs-portal .mhhs-p-hub{display:none} /* « Moi » et « Mes billets » mènent au Hub */
	.mhhs-portal .mhhs-p-logo img{height:36px;width:auto}
	.mhhs-portal .mhhs-p-topright{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px;min-width:0}
	.mhhs-portal .mhhs-p-topright a{min-height:44px;display:inline-flex;align-items:center}
	.mhhs-coque .mhhs-portal .mhhs-p-faq{display:none} /* onglet FAQ dans la barre du bas */
	.mhhs-portal:not(#mhhs-sans-id) .mhhs-p-tabs{display:flex;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch;padding:0 8px;gap:0}
	.mhhs-portal .mhhs-p-tabs::-webkit-scrollbar{display:none}
	.mhhs-portal:not(#mhhs-sans-id) .mhhs-tab{flex:0 0 auto;white-space:nowrap;padding:12px 14px}
	.mhhs-portal .mhhs-p-trust{padding-left:16px;padding-right:16px}
	.mhhs-portal .mhhs-p-trust h2{font-size:26px;line-height:1.15}
	.mhhs-portal .mhhs-p-cta-lg{width:100%;justify-content:center}
	.mhhs-portal .mhhs-p-chips{gap:8px}
	.mhhs-coque .mhhs-totop{display:none} /* la barre du bas suffit */
	#mhhs-annonces,#ru-faq,#mhhs-depose,#mes-billets{scroll-margin-top:56px}

	/* ---- Annonces : lisibles, croix de 44 px. */
	.mhhs-annonces{margin:0 0 12px}
	.mhhs-annonce{font-size:15px;line-height:1.5;padding:12px 6px 12px 14px;border-radius:12px}
	.mhhs-annonce-x{width:44px;height:44px;margin:-10px -2px -10px 0;font-size:22px;opacity:.7}
	.mhhs-annonce-lien{white-space:normal}
	.mhhs-annonces--portal{padding:0 12px}

	/* ---- Section du hub : en-tête et onglets. */
	.mhhs-mod{border-radius:14px}
	.mhhs-mod-head{padding:16px 16px 12px;gap:12px}
	.mhhs-mod-brand{flex-wrap:wrap}
	.mhhs-mod-logo:not(#mhhs-sans-id){min-width:0;height:34px}
	.mhhs-mod-ti{min-width:0}
	.mhhs-mod-actions{width:100%;display:grid;grid-template-columns:1fr 1fr;gap:8px}
	.mhhs-mod-actions button{width:100%;font-size:14px}
	.mhhs-mod .mhhs-annonces{padding:0 16px}
	.mhhs-mod-tabs{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch;gap:4px;padding:0 10px}
	.mhhs-mod-tabs::-webkit-scrollbar{display:none}
	.mhhs-mod-tab{flex:0 0 auto;white-space:nowrap;padding:12px 10px;font-size:14px}
	.mhhs-mod-body{padding:16px}
	.mhhs-mstats{gap:10px;margin-bottom:16px}
	.mhhs-mstat{padding:14px}
	.mhhs-mstat-v{font-size:26px}
	.mhhs-legend{font-size:13px;line-height:1.7}

	/* ---- Mes billets : cartes (tableau du serveur et rafraîchi). */
	.mhhs-mtbl thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
	.mhhs-mtbl,.mhhs-mtbl tbody,.mhhs-mtbl tr,.mhhs-mtbl td{display:block;width:100%}
	.mhhs-mtbl tr.mhhs-clic{border:1px solid var(--ru-bord,rgba(0,0,0,.10));border-radius:14px;background:var(--ru-fond,#fff);padding:12px 14px;margin-bottom:10px;box-shadow:0 1px 2px rgba(0,0,0,.03)}
	.mhhs-mtbl tr.mhhs-clic:active{background:var(--ru-surface,#F6F6F4)}
	.mhhs-mtbl tr.mhhs-clic:focus-visible{outline:2px solid var(--ru-accent,#1d5c8f);outline-offset:2px}
	.mhhs-mtbl td{border:0;padding:4px 0;font-size:14px;display:flex;justify-content:space-between;align-items:center;gap:12px;text-align:right}
	.mhhs-mtbl td::before{content:attr(data-label);font-weight:600;color:var(--ru-discret,#6b7280);font-size:12.5px;flex:0 0 auto;text-align:left}
	.mhhs-mtbl td.doc-t{display:block;text-align:left;font-size:16px;font-weight:700;line-height:1.35;margin-bottom:6px}
	.mhhs-mtbl td.doc-t::before{display:none}
	.mhhs-mtbl td:empty{display:none}

	/* ---- Billet ouvert : messagerie. */
	.mhhs-mod.mhhs-billet-ouvert .mhhs-mod-head,.mhhs-mod.mhhs-billet-ouvert .mhhs-mod-tabs,.mhhs-mod.mhhs-billet-ouvert .mhhs-annonces{display:none}
	#ru-hub-section-support.mhhs-billet-ouvert .mhhs-mod-head,#ru-hub-section-support.mhhs-billet-ouvert .mhhs-mod-tabs,#ru-hub-section-support.mhhs-billet-ouvert .mhhs-annonces{display:none}
	.mhhs-mod .mhhs-tk-titre{font-family:inherit;font-weight:700;font-size:19px;line-height:1.3;margin:2px 0 6px}
	.mhhs-fleche-rud .mhhs-my-back{display:none} /* la flèche de la barre du hub suffit */
	.mhhs-mod .mhhs-composer:not(:focus-within) .mhhs-rte-bar{display:none}
	.mhhs-mod .mhhs-thread{gap:12px}
	.mhhs-mod .mhhs-bubble{max-width:90%;padding:10px 12px;gap:10px;font-size:15px;line-height:1.5;border-radius:18px}
	.mhhs-mod .mhhs-bubble.is-client{background:var(--ru-accent-doux,rgba(44,111,181,.12));border-color:transparent;border-bottom-right-radius:6px}
	.mhhs-mod .mhhs-bubble.is-agent{border-bottom-left-radius:6px}
	.mhhs-mod .mhhs-bubble-b{font-size:15px}
	.mhhs-mod:not(#mhhs-sans-id) .mhhs-b-av{flex-basis:30px;width:30px;height:30px;min-width:30px;max-width:30px;min-height:30px;max-height:30px;font-size:11px}
	.mhhs-mod .mhhs-bubble-acts{gap:6px}
	.mhhs-mod .mhhs-bubble-act{min-height:36px;padding:0 10px;font-size:13px}
	.mhhs-file--img{width:100%;max-width:240px}
	.mhhs-file-n{max-width:170px}
	.mhhs-mod .mhhs-secure,.mhhs-mod .mhhs-sat,.mhhs-mod .mhhs-vid-box{font-size:14px}
	.mhhs-mod .mhhs-sat-star{min-width:44px;font-size:28px}
	/* Zone de réponse collée en bas (au-dessus de la barre du bas du téléphone). */
	.mhhs-mod .mhhs-composer{position:sticky;bottom:0;z-index:4;margin:16px -16px -16px;padding:10px 12px calc(10px + env(safe-area-inset-bottom,0px));background:var(--ru-fond,#fff);border-top:1px solid var(--ru-bord,rgba(0,0,0,.10));box-shadow:0 -6px 18px rgba(0,0,0,.05)}
	.mhhs-mod .mhhs-composer .mhhs-reply-host{padding-top:0;border-top:0}
	.mhhs-mod .mhhs-composer .mhhs-rte-ed{min-height:44px;max-height:30vh;padding:10px 12px}
	.mhhs-mod .mhhs-composer .mhhs-rte-bar{padding:2px 6px}
	.mhhs-mod .mhhs-composer .mhhs-rte-b{width:40px;height:40px}
	.mhhs-composer-bar{margin-top:8px;gap:8px}
	.mhhs-composer-bar .mhhs-reply-m{order:3;flex-basis:100%}
	.mhhs-composer-bar .mhhs-reply-m:empty{display:none}
	.mhhs-att-btn{min-height:44px;padding:0 12px}
	.mhhs-att-btn span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
	.mhhs-composer-bar .mhhs-reply-b{min-height:44px;padding:0 22px}

	/* ---- FAQ : recherche pleine largeur, catégories qui défilent, accordéon. */
	.mhhs-faq{margin:20px auto;padding:0 16px}
	.mhhs-faq-head{flex-direction:column;align-items:stretch;gap:10px}
	.mhhs-faq-search:not(#mhhs-sans-id){max-width:none;min-width:0;width:100%;min-height:44px;box-sizing:border-box}
	.mhhs-faq-tabs:not(#mhhs-sans-id){flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch;padding-bottom:8px}
	.mhhs-faq-tabs::-webkit-scrollbar{display:none}
	.mhhs-faq-tab{flex:0 0 auto;white-space:nowrap;min-height:44px}
	.mhhs-faq-q:not(#mhhs-sans-id){min-height:52px;padding:12px 14px;font-size:16px}
	.mhhs-faq-a:not(#mhhs-sans-id){padding:0 14px 14px;font-size:15px}
	.mhhs-faq-chev{font-size:22px}
}

@media (max-width:999px) and (prefers-reduced-motion:reduce){
	.mhhs-faq-chev:not(#mhhs-sans-id),.mhhs-annonce:not(#mhhs-sans-id),.mhhs-mod:not(#mhhs-sans-id) *{transition:none;scroll-behavior:auto}
}
