/* Accueil mobile : style application, clair et compact */
body.home-mobile-app{background:#f5f6fb!important}
html body.home-mobile-app section.hm{display:block!important;padding:10px 14px 96px!important;background:#f5f6fb!important;margin:0!important}
body.home-mobile-app .hm *{box-sizing:border-box}
body.home-mobile-app .hm a{text-decoration:none}
.hm-top{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}
.hm-hello{min-width:0}
.hm-hello small{display:block;color:#64748b;font-weight:700;font-size:.8rem}
.hm-hello h2{margin:0;font-size:1.35rem;font-weight:900;letter-spacing:-.03em;color:#0f172a;line-height:1.15}
.hm-loc{flex:none;display:inline-flex;align-items:center;gap:5px;max-width:42%;padding:7px 12px;border-radius:999px;background:#fff;color:#4c1d95;font-weight:800;font-size:.82rem;box-shadow:0 2px 10px rgba(76,29,149,.1);border:1px solid #ece8fb}
.hm-loc i{color:#ec4899}.hm-loc span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hm-search{background:#fff;border-radius:22px;padding:10px;box-shadow:0 8px 26px rgba(76,29,149,.09);border:1px solid #ece8fb;display:grid;gap:8px}
.hm-find{display:flex;align-items:center;gap:10px;height:48px;padding:0 14px;border-radius:14px;background:linear-gradient(135deg,#7c3aed,#ec4899);color:#fff!important;font-weight:700;font-size:.95rem}
.hm-find span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hm-find i{font-size:1.05rem;opacity:.95}
.hm-ai{display:flex;align-items:center;gap:8px;height:44px;border-radius:14px;background:#f4f2fd;padding:0 5px 0 12px;margin:0}
.hm-ai>i{color:#7c3aed}
.hm-ai input{flex:1;min-width:0;border:0;background:transparent;outline:0;font-size:.9rem;font-weight:600;color:#1e1b4b;height:100%}
.hm-ai input::placeholder{color:#8b87a8;font-weight:500}
.hm-ai button{flex:none;width:34px;height:34px;border-radius:11px;border:0;background:#7c3aed;color:#fff;display:grid;place-items:center}
.hm-chips{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none;margin:0 -10px;padding:0 10px}
.hm-chips::-webkit-scrollbar{display:none}
.hm-chips button{flex:none;border:1px solid #e4defa;background:#fff;color:#5b21b6;border-radius:999px;padding:5px 12px;font-size:.78rem;font-weight:700;white-space:nowrap}
.hm-quick{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:12px 0}
.hm-quick a{display:flex;flex-direction:column;align-items:center;gap:5px;padding:10px 2px 8px;border-radius:18px;background:#fff;border:1px solid #ece8fb;color:#1e1b4b;font-size:.72rem;font-weight:800;box-shadow:0 4px 14px rgba(76,29,149,.06)}
.hm-quick i{width:38px;height:38px;border-radius:13px;display:grid;place-items:center;color:#fff;font-size:1.1rem;background:linear-gradient(135deg,#f59e0b,#f97316)}
.hm-quick a:nth-child(2) i{background:linear-gradient(135deg,#7c3aed,#6366f1)}
.hm-quick a:nth-child(3) i{background:linear-gradient(135deg,#06b6d4,#3b82f6)}
.hm-quick a:nth-child(4) i{background:linear-gradient(135deg,#ec4899,#f43f5e)}
.hm-sec{margin-top:14px}
.hm-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px;padding:0 2px}
.hm-head h3{margin:0;font-size:1.08rem;font-weight:900;color:#0f172a;letter-spacing:-.02em}
.hm-head>a,.hm-head span a{color:#7c3aed;font-weight:800;font-size:.84rem}
.hm-head span{display:flex;align-items:center;gap:6px}
.hm-head .mobile-slide-btn{width:28px;height:28px;font-size:.75rem}
.hm-rail{display:flex;gap:10px;overflow-x:auto;scroll-snap-type:x mandatory;margin:0 -14px;padding:2px 14px 6px;scrollbar-width:none}
.hm-rail::-webkit-scrollbar{display:none}
body.home-mobile-app .hm .hm-card{flex:0 0 62%!important;scroll-snap-align:start;display:block!important;background:#fff!important;border:1px solid #ece8fb!important;border-radius:18px!important;overflow:hidden;box-shadow:0 6px 18px rgba(76,29,149,.09)!important;color:#0f172a}
.hm-img{display:block;position:relative;height:104px;background-size:cover;background-position:center;background-color:#ddd6fe}
.hm-noimg{display:grid;place-items:center;font-size:2.2rem}
.hm-date{position:absolute;left:8px;top:8px;background:#fff;border-radius:11px;padding:3px 8px;text-align:center;line-height:1;box-shadow:0 4px 10px rgba(0,0,0,.15)}
.hm-date b{display:block;font-size:1rem;color:#4c1d95}.hm-date em{font-style:normal;font-size:.62rem;font-weight:800;color:#ec4899;text-transform:uppercase}
.hm-dist{position:absolute;right:8px;bottom:8px;background:rgba(15,23,42,.72);color:#fff;border-radius:999px;font-size:.68rem;font-weight:800;padding:2px 8px}
.hm-info{display:block;padding:8px 10px 10px}
.hm-info b{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:.86rem;line-height:1.25;font-weight:800;min-height:2.5em}
.hm-info small{display:block;margin-top:3px;color:#64748b;font-size:.74rem;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body.home-mobile-app .hm .hm-fbox{display:block;position:relative;overflow:hidden;background:linear-gradient(130deg,#4c1d95,#7c3aed 55%,#ec4899);border-radius:20px;padding:14px;margin-bottom:8px;box-shadow:0 10px 26px rgba(124,58,237,.32)}
body.home-mobile-app .hm .hm-fbox:after{content:"";position:absolute;right:-30px;top:-30px;width:110px;height:110px;border-radius:50%;background:rgba(255,255,255,.12)}
body.home-mobile-app .hm .hm-fbox p{position:relative;z-index:1;margin:0 0 10px!important;color:#fff!important;font-size:.95rem!important;font-weight:800!important;line-height:1.25;text-shadow:0 1px 2px rgba(0,0,0,.2)}
body.home-mobile-app .hm .hm-fbox p b{color:#fff!important}
body.home-mobile-app .hm .hm-fbox .hm-btn{position:relative;z-index:1;display:flex;align-items:center;justify-content:center;gap:8px;width:100%;background:#fff!important;color:#6d28d9!important;border-radius:14px;padding:13px 14px;font-weight:900;font-size:1rem;box-shadow:0 6px 16px rgba(0,0,0,.2)}
body.home-mobile-app .hm .hm-fbox .hm-btn i{display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:linear-gradient(135deg,#7c3aed,#ec4899);color:#fff;font-size:.85rem}
.hm-out{display:flex;align-items:center;gap:10px;background:#fff;border:1px solid #ece8fb;border-radius:16px;padding:8px 10px;margin-bottom:6px;color:#0f172a}
.hm-out-d{flex:none;width:42px;height:42px;border-radius:12px;background:#f1f0fb;color:#4c1d95;display:grid;place-items:center;text-align:center;line-height:1}
.hm-out-d b{font-size:1rem}.hm-out-d small{font-size:.58rem;font-weight:800;text-transform:uppercase;color:#ec4899;display:block}
.hm-out-t{flex:1;min-width:0}.hm-out-t b{display:block;font-size:.86rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.hm-out-t small{color:#64748b;font-size:.74rem}
.hm-out>i{color:#c4b5fd}
.hm-auth{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:12px;background:#fff;border:1px solid #ece8fb;border-radius:16px;padding:10px 12px}
.hm-auth b{display:block;font-size:.88rem}.hm-auth small{color:#64748b;font-size:.74rem}
.hm-auth a{background:#7c3aed;color:#fff!important;font-weight:800;font-size:.84rem;padding:8px 14px;border-radius:12px}

/* ---- Passe 2 : look appli ---- */
body.home-mobile-app{background:#f4f4fb!important}
html body.home-mobile-app section.hm{background:radial-gradient(120% 60% at 50% -10%,#ede9fe 0%,#f4f4fb 55%)!important;padding-top:8px!important}
.hm-top{gap:10px;margin-bottom:12px}
.hm-av{flex:none;width:44px;height:44px;border-radius:50%;background:linear-gradient(135deg,#7c3aed,#ec4899);padding:2px;display:grid;place-items:center;color:#fff;font-size:1.3rem;box-shadow:0 6px 16px rgba(124,58,237,.35)}
.hm-av img{width:100%;height:100%;border-radius:50%;object-fit:cover;border:2px solid #fff;display:block}
.hm-hello{flex:1}
.hm-hello h2{font-size:1.2rem;background:linear-gradient(135deg,#1e1b4b,#7c3aed);-webkit-background-clip:text;background-clip:text;color:transparent}
.hm-loc{max-width:36%;box-shadow:0 4px 14px rgba(124,58,237,.14)}
.hm-search{display:flex;gap:8px;background:transparent!important;border:0!important;box-shadow:none!important;padding:0!important}
.hm-find{flex:1;min-width:0;height:50px;border-radius:18px;background:#fff!important;color:#64748b!important;font-weight:600;box-shadow:0 8px 24px rgba(76,29,149,.12);border:1px solid #ece8fb}
.hm-find i{color:#7c3aed;font-size:1.1rem}.hm-find b{color:#4c1d95}
.hm-ai{flex:0 0 auto;width:50px;height:50px;padding:0;border-radius:18px;background:linear-gradient(135deg,#7c3aed,#ec4899);box-shadow:0 8px 20px rgba(124,58,237,.4);position:relative;overflow:hidden;transition:width .25s}
.hm-ai>i{position:absolute;left:0;top:0;width:50px;height:50px;display:grid;place-items:center;color:#fff;font-size:1.25rem;pointer-events:none}
.hm-ai input{opacity:0;width:100%;padding-left:50px;color:#fff}
.hm-ai input::placeholder{color:rgba(255,255,255,.8)}
.hm-ai button{display:none;background:#fff;color:#7c3aed;margin-right:8px}
.hm-ai:focus-within{position:fixed;left:14px;right:14px;top:70px;width:auto;z-index:50;height:54px}
.hm-ai:focus-within input{opacity:1}
.hm-ai:focus-within button{display:grid}
.hm-chips{margin:10px -14px 0;padding:0 14px}
.hm-chips button{background:rgba(255,255,255,.85);backdrop-filter:blur(6px)}
.hm-cats{display:flex;gap:12px;overflow-x:auto;scrollbar-width:none;margin:14px -14px 4px;padding:2px 14px 6px}
.hm-cats::-webkit-scrollbar{display:none}
.hm-cats a{flex:none;width:64px;display:flex;flex-direction:column;align-items:center;gap:6px;color:#1e1b4b;font-size:.7rem;font-weight:800;text-align:center}
.hm-cats i{width:58px;height:58px;border-radius:20px;display:grid;place-items:center;color:#fff;font-size:1.5rem;background:linear-gradient(135deg,var(--c));box-shadow:0 8px 18px rgba(15,23,42,.18)}
.hm-cats a:active i{transform:scale(.94)}
.hm-quick{display:none!important}
.hm-head h3{font-size:1.15rem}
body.home-mobile-app .hm .hm-card{flex:0 0 46%!important;height:210px;position:relative;background-size:cover!important;background-position:center!important;background-color:#6d28d9!important;border:0!important;border-radius:22px!important;box-shadow:0 12px 26px rgba(76,29,149,.28)!important;color:#fff!important;overflow:hidden}
body.home-mobile-app .hm .hm-card:before{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(15,23,42,0) 35%,rgba(15,23,42,.85) 100%)}
.hm-card .hm-date{left:10px;top:10px;z-index:1;background:rgba(255,255,255,.92);backdrop-filter:blur(6px)}
.hm-card .hm-dist{right:10px;top:10px;bottom:auto;z-index:1;background:rgba(15,23,42,.55);backdrop-filter:blur(6px)}
.hm-card .hm-info{position:absolute;left:0;right:0;bottom:0;padding:10px 12px;z-index:1}
.hm-card .hm-info b{color:#fff;min-height:0;font-size:.9rem;-webkit-line-clamp:3}
.hm-card .hm-info small{color:rgba(255,255,255,.85)}
.hm-rail{gap:12px}
.hm-fbox{border-radius:24px;padding:16px}
.hm-out{border-radius:18px;box-shadow:0 4px 14px rgba(76,29,149,.06)}
.hm-ai input{position:absolute;inset:0;width:100%;height:100%;padding:0 54px 0 50px;cursor:pointer}
.hm-ai:focus-within input{cursor:text}
.hm-ai button{position:absolute;right:8px;top:8px;margin:0}

/* ---- Passe 3 : recherche réelle + cartes claires avec images ---- */
form.hm-find{display:flex;align-items:center;gap:10px;margin:0;cursor:text}
.hm-find input{flex:1;min-width:0;border:0;outline:0;background:transparent;font-size:16px;font-weight:600;color:#1e1b4b;height:100%;-webkit-appearance:none}
.hm-find input::placeholder{color:#8b87a8;font-weight:500}
.hm-find input::-webkit-search-cancel-button{display:none}
body.home-mobile-app .hm .hm-card{flex:0 0 58%!important;height:auto!important;background:#fff!important;background-image:none!important;border:1px solid #ece8fb!important;border-radius:20px!important;box-shadow:0 8px 22px rgba(15,23,42,.08)!important;color:#0f172a!important;display:block!important}
body.home-mobile-app .hm .hm-card:before{display:none!important}
.hm-card .hm-img{display:block;position:relative;height:118px;overflow:hidden;background-size:auto}
.hm-card .hm-img img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.hm-img.tone0{background:linear-gradient(135deg,#fde68a,#fdba74)}
.hm-img.tone1{background:linear-gradient(135deg,#bbf7d0,#86efac)}
.hm-img.tone2{background:linear-gradient(135deg,#bae6fd,#a5b4fc)}
.hm-img.tone3{background:linear-gradient(135deg,#fecdd3,#fbcfe8)}
.hm-img.tone4{background:linear-gradient(135deg,#e9d5ff,#c7d2fe)}
.hm-emo{position:absolute;inset:0;display:grid;place-items:center;font-size:2.6rem;font-style:normal;z-index:0}
.hm-img img+.hm-emo{display:none}
.hm-card .hm-date{position:absolute;left:8px;top:8px;z-index:2;display:inline-flex;align-items:baseline;gap:4px;background:#fff;color:#0f172a;border-radius:10px;padding:4px 9px;box-shadow:0 3px 10px rgba(0,0,0,.18);line-height:1}
.hm-card .hm-date b{font-size:.98rem;font-weight:900;color:#0f172a;display:inline}
.hm-card .hm-date em{font-style:normal;font-size:.66rem;font-weight:900;color:#e11d48;letter-spacing:.03em}
.hm-card .hm-info{position:static;display:block;padding:9px 11px 11px}
.hm-card .hm-info b{color:#0f172a;font-size:.88rem;line-height:1.28;-webkit-line-clamp:2;min-height:2.56em}
.hm-card .hm-info small{color:#64748b;margin-top:4px;font-size:.74rem}
.hm-card .hm-info small i{color:#e11d48}
.hm-rail{gap:11px}
.hm-when{display:block;font-size:.74rem;font-weight:900;color:#e11d48;margin-bottom:3px;text-transform:capitalize}
.hm-when i{margin-right:2px}
.hm-card .hm-info b{min-height:0}
.hm-card .hm-date{gap:5px;padding:5px 10px;border-radius:12px;align-items:center}
.hm-card .hm-date small{font-size:.66rem;font-weight:800;color:#64748b;text-transform:uppercase}
.hm-card .hm-date b{font-size:1.05rem}.hm-card .hm-date em{font-size:.72rem}
body.home-mobile-app .hm .hm-card .hm-date{display:inline-flex!important;flex-direction:row!important;align-items:baseline!important;gap:4px!important;padding:5px 10px!important;border-radius:12px!important;background:#fff!important;line-height:1!important}
body.home-mobile-app .hm .hm-card .hm-date .hm-dn{display:inline!important;font-size:1.05rem!important;font-weight:900!important;color:#0f172a!important}
body.home-mobile-app .hm .hm-card .hm-date .hm-dm{display:inline!important;font-size:.85rem!important;font-weight:900!important;color:#e11d48!important;text-transform:lowercase!important}
