/* AMTEMIN V13.5 — correction mobile sans modifier les modules métier.
   Accueil compact, boutons réellement tactiles et marge de défilement sous l'onglet fixe. */
html{scroll-padding-bottom:calc(125px + env(safe-area-inset-bottom,0px))}
.app{padding-bottom:calc(152px + env(safe-area-inset-bottom,0px))}
.app>header{margin-bottom:11px;gap:7px}
.app>header .round{width:43px;height:43px;flex:0 0 43px}
.app>header .brand{gap:8px;min-width:0}
.app>header .brandicon{font-size:36px;line-height:1}
.app>header h1{font-size:clamp(26px,5.9vw,36px);line-height:1.1;white-space:nowrap}
.app>header small{font-size:clamp(11px,2.65vw,13px);line-height:1.25}
#home .pf-home-welcome.pf-home-welcome-action{margin-bottom:5px}
#home .pf-home-section-heading{align-items:center;gap:6px;margin:7px 0 5px}
#home .pf-home-section-heading>strong{font-size:clamp(18px,4.6vw,22px);white-space:nowrap}
#home .pf-home-customize{font-size:11px;line-height:1.25;max-width:58%;min-height:34px;padding:5px 7px;border-color:#bd9f5b78;border-radius:9px}
#home .pf-home-customize span{color:#ffe39a;text-decoration:underline}
#home .pf-home-pulse-card[data-page="assistant"]{border-color:#edd083;background:linear-gradient(145deg,#0b5a42,#023426)}
#home .pf-home-pulse-card[data-page="assistant"] .pf-home-quick-icon{border-color:#f4d58a}
#home .pf-home-universes{margin-bottom:13px}
#home .pf-home-universes .tile{touch-action:manipulation}
#home .pf-home-universes .tile:focus-visible,.app>header .round:focus-visible,.nav button:focus-visible{outline:3px solid #ffe7a1;outline-offset:2px}
.nav{padding-top:10px;padding-bottom:calc(10px + env(safe-area-inset-bottom,0px))}
.nav button{min-height:51px;touch-action:manipulation}
@media(max-width:650px){
 .app{padding-top:10px;padding-bottom:calc(154px + env(safe-area-inset-bottom,0px))}
 .app>header{margin-bottom:9px}
 .app>header .round{width:40px;height:40px;flex-basis:40px;font-size:21px}
 .app>header .brandicon{font-size:32px}
 .app>header h1{font-size:clamp(24px,6.2vw,31px)}
 .app>header small{font-size:clamp(10px,2.5vw,12px)}
 #home .pf-home-welcome.pf-home-welcome-action{min-height:32px;padding:3px 8px;margin-bottom:5px}
 #home .pf-home-pulse{grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;margin-bottom:6px}
 #home .pf-home-pulse>.pf-home-pulse-card{min-height:54px;padding:5px 3px;gap:3px}
 #home .pf-home-news{margin-bottom:6px;min-height:41px}
 #home .pf-home-section-heading{margin:6px 0 5px}
 #home .pf-home-universes{gap:8px}
 #home .pf-home-universes .tile{min-height:117px;padding:10px 6px;gap:4px}
 #home .pf-home-universes .tile .symbol{font-size:clamp(26px,6.4vw,34px)}
 #home .pf-home-universes .tile strong{font-size:clamp(12px,3.4vw,15px);line-height:1.14}
 #home .pf-home-universes .tile small{font-size:clamp(10px,2.65vw,12px)}
 #home .pf-home-universes .tile .tag{font-size:10px}
 .nav{padding:7px 5px calc(8px + env(safe-area-inset-bottom,0px));border-radius:22px 22px 0 0}
 .nav button{font-size:10px;min-height:50px}
 .nav button b{font-size:22px}
}
@media(max-width:360px){
 .app>header .brand{gap:5px}
 .app>header .brandicon{font-size:27px}
 .app>header h1{font-size:22px}
 .app>header small{font-size:10px}
 #home .pf-home-universes .tile{min-height:113px}
 #home .pf-home-customize{max-width:54%;font-size:10px}
}
@media(prefers-reduced-motion:reduce){
 #home .pf-home-pulse-card[data-page="assistant"]{transition:none}
}

/* V13.5 — consolidation de la capture Android : informer sans masquer les services. */
@media(max-width:650px){
 .app>header{margin-bottom:7px}
 #home .pf-home-welcome.pf-home-welcome-action{
  min-height:30px;margin-bottom:4px;padding:2px 7px
 }
 #home .pf-home-pulse{margin-bottom:5px}
 #home .pf-home-pulse>.pf-home-pulse-card{min-height:49px;padding:4px 3px}
 #home .pf-home-news{min-height:37px;margin-bottom:5px}
 #home .pf-home-section-heading{margin:5px 0 4px}
 #home .pf-home-universes{gap:7px;margin-bottom:8px}
 #home .pf-home-universes .tile{
  min-height:104px;padding:7px 5px;gap:2px
 }
 #home .pf-home-universes .tile .symbol{
  font-size:clamp(24px,6vw,30px);line-height:1
 }
 #home .pf-home-universes .tile strong{
  font-size:clamp(12px,3.3vw,15px);line-height:1.13
 }
 #home .pf-home-universes .tile small{
  font-size:clamp(10px,2.55vw,12px);line-height:1.18
 }
 #home .pf-home-universes .tile .tag{margin-top:0}
 #home .pf-home-tools{margin-top:7px}
 #home .pf-home-tools>summary{min-height:40px}
 .nav button{min-height:47px}
}
@media(max-width:500px){
 #home .pf-home-news{gap:3px;padding:4px}
 #home .pf-home-news-flag{
  max-width:88px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:10px
 }
 #home .pf-home-news-headline{min-width:60px;font-size:11px}
 #home .pf-home-news-source{max-width:39px;font-size:10px}
 #home .pf-home-news-pause{min-width:49px;min-height:29px;padding:3px 4px;font-size:10px}
 #home .pf-home-news-nav{min-width:23px;min-height:29px}
}
@media(max-width:360px){
 #home .pf-home-universes .tile{min-height:102px}
 #home .pf-home-news-flag{max-width:75px}
}
/* Quand le lecteur met l'actualité en pause, son début redevient visible.
   Le reste se lit en faisant glisser le titre, sans perte d'information. */
#home .pf-home-news[data-paused="true"] .pf-home-news-marquee{
 animation:none!important;transform:translateX(0)!important
}
#home .pf-home-news[data-paused="true"] .pf-home-news-headline{
 overflow-x:auto;touch-action:pan-x;overscroll-behavior-inline:contain;
 scrollbar-width:thin
}

/* Lecture intégrale du bandeau à la demande, sans fenêtre modale :
   en lecture normale le bandeau reste compact et défile sur une ligne ;
   en pause, les commandes restent sur la première ligne et le texte entier
   se déploie naturellement sous elles. */
#home .pf-home-news[data-paused="true"]{
 flex-wrap:wrap;align-content:start;row-gap:4px
}
#home .pf-home-news[data-paused="true"] .pf-home-news-headline{
 order:10;flex:0 0 100%;width:100%;max-width:100%;min-width:0;
 padding:6px 7px 4px;margin:0;border-top:1px solid #dcc16b6b;
 text-align:left;white-space:normal;overflow:visible;line-height:1.4;
 font-size:clamp(12px,3.1vw,14px);touch-action:manipulation;
 scrollbar-width:none
}
#home .pf-home-news[data-paused="true"] .pf-home-news-marquee{
 display:block!important;width:100%;max-width:100%;white-space:normal!important;
 overflow-wrap:anywhere;word-break:normal;animation:none!important;
 transform:none!important
}
@media(max-width:500px){
 #home .pf-home-news-source{
  max-width:58px;font-size:10px;text-overflow:clip
 }
}
@media(prefers-reduced-motion:reduce){
 #home .pf-home-news[data-paused="true"] .pf-home-news-marquee{
  white-space:normal!important;overflow:visible!important;text-overflow:clip!important
 }
}

/* Contrôle RappelConso volontaire, dans le scanner repliable et non sur l'accueil. */
#home .pf-home-recall-check{
 margin-top:9px;padding:9px;border:1px solid #bda45f;
 border-radius:10px;background:#073b2d
}
#home .pf-home-recall-check>button{
 min-height:40px;padding:8px 10px;width:100%;
 background:#0d5b42;border:1px solid #dfc87b;
 border-radius:9px;color:#ffefa9;font-size:12px;font-weight:800
}
#home .pf-home-recall-check>button:disabled{opacity:.65;cursor:progress}
#home .pf-home-recall-check>button:focus-visible{
 outline:3px solid #ffe39a;outline-offset:2px
}
#home .pf-home-recall-check p{
 margin:7px 0 0;font-size:11px;line-height:1.4;overflow-wrap:anywhere
}
#home .pf-home-recall-results[hidden]{display:none}
#home .pf-home-recall-results{
 border-top:1px solid #ab945e;margin-top:8px;padding-top:4px
}
#home .pf-home-recall-results ul{padding-left:20px;margin:7px 0}
#home .pf-home-recall-results li{margin:7px 0;font-size:12px}
#home .pf-home-recall-results a{
 color:#ffe39a;text-decoration:underline;overflow-wrap:anywhere
}

/* Provenance visible en mode lecture : sur mobile la source et la date ne
   doivent pas disparaître sous prétexte que le bandeau est compact. */
#home .pf-home-news[data-paused="true"] .pf-home-news-meta{
 display:block!important;order:11;flex:0 0 100%;
 max-width:100%;min-width:0;margin:0;padding:0 7px 5px;
 color:#dbe8d6;font-size:11px;line-height:1.4;
 white-space:normal;overflow-wrap:anywhere
}
#home .pf-home-news[data-paused="true"] .pf-home-news-source{
 max-width:none;overflow:visible;flex:0 0 auto;text-overflow:clip
}

/* Météo visible à l'accueil sur la même ligne que le message de bienvenue.
   Deux boutons distincts, même fiche météo que dans Services, sans 5e raccourci. */
#home .pf-home-topline{
 display:grid;grid-template-columns:minmax(0,1fr) minmax(100px,auto);
 align-items:stretch;gap:5px;margin:0 0 5px
}
#home .pf-home-topline>.pf-home-welcome-heading{min-width:0;margin:0}
#home .pf-home-topline .pf-home-welcome.pf-home-welcome-action{
 width:100%;min-width:0;height:100%;min-height:34px;margin:0
}
#home .pf-home-intro-short{display:none}
#home .pf-home-weather-shortcut{
 display:flex;align-items:center;justify-content:center;
 width:auto;min-width:100px;max-width:155px;min-height:34px;
 padding:4px 7px;appearance:none;border:1px solid #d7b86f;border-radius:11px;
 background:linear-gradient(130deg,#0c5b43,#02412f);
 box-shadow:inset 0 1px 5px #fff3;cursor:pointer;
 color:#ffe8b4;font:inherit;font-size:clamp(11px,2.3vw,13px);font-weight:800
}
#home .pf-home-weather-shortcut>span{
 display:block;min-width:0;max-width:100%;white-space:nowrap;overflow:hidden;
 text-overflow:ellipsis
}
#home .pf-home-weather-shortcut:hover{background:#126b51}
#home .pf-home-weather-shortcut:focus-visible{
 outline:3px solid #ffe6a1;outline-offset:2px
}
#home .pf-home-weather-shortcut[data-available="false"]{color:#e1e4d1}
@media(max-width:650px){
 #home .pf-home-topline{grid-template-columns:minmax(0,1fr) minmax(103px,36%);gap:5px;margin-bottom:4px}
 #home .pf-home-topline .pf-home-welcome.pf-home-welcome-action{
  margin-bottom:0;padding:2px 7px;min-height:32px
 }
 #home .pf-home-intro-full{display:none}
 #home .pf-home-intro-short{display:inline}
 #home .pf-home-weather-shortcut{
  width:100%;max-width:none;min-width:0;min-height:32px;padding:3px 5px;
  font-size:clamp(10px,2.7vw,12px)
 }
}
@media(max-width:360px){
 #home .pf-home-topline{grid-template-columns:minmax(0,1fr) minmax(94px,36%)}
 #home .pf-home-weather-shortcut{font-size:10px}
}
