/* ============================================================================
 * MYCELL — accueil illustré, vignettes d'ambiance, profil  build mycell-2026-10-04-3
 * Des illustrations maison (noyau/illustrations.js), des mouvements très lents,
 * aucun clignotement. Tout s'arrête avec « réduire les animations ».
 * ========================================================================== */

/* ─── Bandeau d'accueil : La Réunion au petit matin ─── */
.accroche-scene { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; gap: 14px;
  min-height: 300px; margin: 14px 0 16px; padding: 0; border-radius: var(--r-l); box-shadow: var(--ombre);
  animation: scene-entree .9s var(--ease) both; }
.scene { position: absolute; inset: 0; z-index: -2; }
.scene svg { display: block; width: 100%; height: 100%; }
.accroche-scene::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(244,249,255,.9) 0%, rgba(244,249,255,.7) 34%, rgba(244,249,255,0) 58%); }
.accroche-texte { padding: 18px 18px 0; max-width: 680px; }
.accroche-scene h1 { margin-top: 2px; }
.accroche-scene .chiffres { margin-top: 6px; }
.sur-titre-scene { display: inline-flex; align-items: center; max-width: 100%; padding: 4px 11px; border-radius: 99px;
  font-size: 12.5px; font-weight: 750; letter-spacing: .1px; color: var(--accent-t);
  background: rgba(255,255,255,.72); border: 1px solid rgba(255,255,255,.9); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
@media (min-width: 760px) {
  .accroche-scene { min-height: 310px; }
  .accroche-texte { padding: 28px 30px 0; }
  .accroche-scene::before { background: linear-gradient(100deg, rgba(244,249,255,.9) 0%, rgba(244,249,255,.6) 40%, rgba(244,249,255,0) 68%); }
}
@keyframes scene-entree { from { opacity: 0; transform: translateY(8px) scale(.99); } to { opacity: 1; transform: none; } }

/* Mouvements de la scène : lents, presque imperceptibles */
.illus .i-nuage { animation: i-derive 38s ease-in-out infinite alternate; }
.illus .i-nuage.lent { animation-duration: 54s; animation-direction: alternate-reverse; }
.illus .i-halo { transform-box: fill-box; transform-origin: center; animation: i-respire 7s ease-in-out infinite alternate; }
.illus .i-fils path { stroke-dasharray: 5 9; animation: i-seve 10s linear infinite; animation-delay: calc(var(--i, 0) * -.8s); }
.illus .i-lumieres circle:nth-child(odd) { animation: i-scintille 3.8s ease-in-out infinite alternate; animation-delay: calc(var(--i, 0) * .45s); }
.illus .i-reflets rect { animation: i-reflet 5s ease-in-out infinite alternate; }
.illus .i-reflets rect:nth-child(2n) { animation-delay: -2.5s; }
.illus .i-vapeur path { animation: i-vapeur 3.4s ease-in-out infinite; }
.illus .i-vapeur path:nth-child(2) { animation-delay: -1.1s; }
.illus .i-vapeur path:nth-child(3) { animation-delay: -2.2s; }
@keyframes i-derive { from { transform: translateX(-14px); } to { transform: translateX(16px); } }
@keyframes i-respire { from { opacity: .7; transform: scale(.94); } to { opacity: 1; transform: scale(1.05); } }
@keyframes i-seve { to { stroke-dashoffset: -168; } }
@keyframes i-scintille { from { opacity: .45; } to { opacity: 1; } }
@keyframes i-reflet { from { opacity: .25; } to { opacity: .9; } }
@keyframes i-vapeur { 0% { opacity: 0; transform: translateY(4px); } 40% { opacity: .9; } 100% { opacity: 0; transform: translateY(-6px); } }

/* ─── Vignettes d'ambiance ─── */
.ambiances { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(152px, 44%); gap: 10px; margin: 12px 0 14px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
.ambiances::-webkit-scrollbar { display: none; }
.ambiances[hidden] { display: none; }
@media (min-width: 760px) { .ambiances { grid-auto-flow: row; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: visible; } }
.ambiance-tuile { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; min-height: 124px;
  padding: 12px 14px; border: 0; border-radius: var(--r); text-align: left; color: #fff; cursor: pointer; scroll-snap-align: start;
  background: linear-gradient(145deg, var(--c1), var(--c2));
  box-shadow: 0 12px 26px -14px color-mix(in srgb, var(--c2) 80%, transparent);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
  animation: amb-entree .65s var(--ease) both; animation-delay: calc(var(--i, 0) * 70ms); }
.ambiance-tuile::before { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 90% at 85% 0%, rgba(255,255,255,.28), transparent 60%), linear-gradient(180deg, transparent 45%, rgba(0,0,0,.18)); pointer-events: none; }
.ambiance-tuile .illus { position: absolute; top: 6px; right: 4px; width: 92px; height: 74px; transition: transform .5s var(--ease); }
.ambiance-tuile span { position: relative; display: flex; flex-direction: column; gap: 1px; text-shadow: 0 1px 8px rgba(0,0,0,.18); }
.ambiance-tuile b { font-family: var(--font-titre); font-size: 15.5px; font-weight: 800; letter-spacing: -.2px; }
.ambiance-tuile small { font-size: 12px; font-weight: 650; opacity: .9; }
.ambiance-tuile:hover { transform: translateY(-3px); box-shadow: 0 18px 30px -12px color-mix(in srgb, var(--c2) 85%, transparent); }
.ambiance-tuile:hover .illus { transform: translateY(-2px) rotate(-3deg) scale(1.04); }
.ambiance-tuile:focus-visible { outline: 3px solid var(--bleu2); outline-offset: 2px; }
@keyframes amb-entree { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ─── Espace client : bandeau de profil, raccourcis illustrés ─── */
.profil-carte { overflow: hidden; padding-top: 0; }
.profil-couverture { height: 92px; margin: 0 -16px; }
.profil-couverture .illus { display: block; width: 100%; height: 100%; }
.profil-carte .profil-tete { position: relative; margin-top: -28px; align-items: flex-start; }
.profil-carte .profil-tete > div { padding-top: 34px; }
.profil-carte .profil-tete .pastille { box-shadow: 0 0 0 4px var(--carte), 0 8px 18px -6px rgba(15,45,90,.35); }
.compte-salut { color: var(--ink2); font-size: var(--t-m); margin-top: 4px; }
.raccourcis { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 168px), 1fr)); gap: 8px; }
.raccourcis .bt { height: auto; min-height: 58px; justify-content: flex-start; gap: 10px; padding: 10px 12px; text-align: left; white-space: normal; line-height: 1.2;
  border-radius: 14px; transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s; }
.raccourcis .bt .ic { flex-shrink: 0; width: 34px; height: 34px; padding: 7px; border-radius: 11px; color: var(--accent-t);
  background: linear-gradient(145deg, rgba(59,140,255,.16), rgba(20,184,166,.16)); }
.raccourcis .bt:hover { transform: translateY(-2px); box-shadow: var(--ombre); }

/* ─── Mode sombre : la même scène, à la tombée de la nuit ─── */
:root[data-theme="dark"] .scene svg, :root[data-theme="dark"] .profil-couverture .illus { filter: brightness(.58) saturate(1.15) hue-rotate(-6deg); }
:root[data-theme="dark"] .accroche-scene::before { background: linear-gradient(180deg, rgba(8,18,34,.86) 0%, rgba(8,18,34,.5) 40%, rgba(8,18,34,0) 70%); }
:root[data-theme="dark"] .sur-titre-scene { background: rgba(8,18,34,.6); border-color: rgba(255,255,255,.12); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .scene svg, :root:not([data-theme="light"]) .profil-couverture .illus { filter: brightness(.58) saturate(1.15) hue-rotate(-6deg); }
  :root:not([data-theme="light"]) .accroche-scene::before { background: linear-gradient(180deg, rgba(8,18,34,.86) 0%, rgba(8,18,34,.5) 40%, rgba(8,18,34,0) 70%); }
  :root:not([data-theme="light"]) .sur-titre-scene { background: rgba(8,18,34,.6); border-color: rgba(255,255,255,.12); }
}
/* thème sombre choisi, ou nuit en automatique (indépendant du téléphone) */
:root[data-theme="dark"] .scene svg, :root[data-theme="dark"] .profil-couverture .illus { filter: brightness(.58) saturate(1.15) hue-rotate(-6deg); }
  :root[data-theme="dark"] .accroche-scene::before { background: linear-gradient(180deg, rgba(8,18,34,.86) 0%, rgba(8,18,34,.5) 40%, rgba(8,18,34,0) 70%); }
  :root[data-theme="dark"] .sur-titre-scene { background: rgba(8,18,34,.6); border-color: rgba(255,255,255,.12); }
@media (min-width: 760px) {
  :root[data-theme="dark"] .accroche-scene::before { background: linear-gradient(100deg, rgba(8,18,34,.88) 0%, rgba(8,18,34,.55) 40%, rgba(8,18,34,0) 70%); }
}

/* ─── Réduire les animations : tout s'arrête ─── */
@media (prefers-reduced-motion: reduce) {
  .illus *, .accroche-scene, .ambiance-tuile { animation: none !important; }
}
:root[data-mouvement="reduit"] .illus * { animation: none !important; }

/* ─── Commandes posées sur l'image : catégories et filtres, en verre dépoli ─── */
.accroche-scene { padding-bottom: 16px; margin-bottom: 4px; }
.scene-commandes { position: relative; padding: 0 18px; display: flex; flex-direction: column; gap: 6px; }
.scene-commandes .puces { margin: 0 -18px; padding: 2px 18px 2px; scroll-padding-inline: 18px; }
.scene-commandes .puce, .scene-commandes .bascule, .scene-commandes select, .scene-commandes .segment {
  min-height: 44px; background: rgba(255,255,255,.82); border: 1px solid rgba(255,255,255,.95);
  -webkit-backdrop-filter: blur(10px) saturate(1.2); backdrop-filter: blur(10px) saturate(1.2); box-shadow: 0 6px 18px -10px rgba(15,45,90,.45); }
.scene-commandes .puce[aria-pressed="true"] { background: var(--marine); color: #fff; border-color: var(--marine); }
.scene-commandes .bascule[aria-pressed="true"] { background: #fff; border-color: var(--bleu2); }
.scene-commandes .voir-cats { align-self: flex-start; display: inline-flex; margin: 0; padding: 6px 12px; border-radius: 99px; background: rgba(255,255,255,.7); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); font-size: 13px; }
.scene-commandes .filtres { flex-wrap: nowrap; overflow-x: auto; margin: 0 -18px; padding: 4px 18px 2px; scrollbar-width: none; }
.scene-commandes .filtres::-webkit-scrollbar { display: none; }
.scene-commandes .filtres > * { flex-shrink: 0; }
.scene-commandes .segment button { height: 36px; }
/* Bas de l'image légèrement éclairci : les boutons restent lisibles sur le lagon */
.accroche-scene::after { content: ""; position: absolute; inset: auto 0 0 0; height: 58%; z-index: -1; pointer-events: none;
  background: linear-gradient(0deg, rgba(244,249,255,.5) 0%, rgba(244,249,255,.18) 55%, rgba(244,249,255,0) 100%); }
/* Juste sous l'image : la recherche (qui reste accrochée en haut au défilement), puis « Découvrir les vitrines » */
#vue-explorer .rail-recherche .recherche { box-shadow: 0 14px 34px -16px rgba(15,45,90,.4); }
@media (min-width: 760px) {
  .accroche-scene { padding-bottom: 22px; }
  .scene-commandes { padding: 0 30px; }
  .scene-commandes .puces { margin: 0 -30px; padding: 2px 30px; }
  .scene-commandes .filtres { margin: 0 -30px; padding: 4px 30px 2px; flex-wrap: wrap; overflow: visible; }
}
:root[data-theme="dark"] .scene-commandes .puce, :root[data-theme="dark"] .scene-commandes .bascule, :root[data-theme="dark"] .scene-commandes select,
:root[data-theme="dark"] .scene-commandes .segment, :root[data-theme="dark"] .scene-commandes .voir-cats { background: rgba(10,22,40,.72); border-color: rgba(255,255,255,.14); }
:root[data-theme="dark"] .accroche-scene::after { background: linear-gradient(0deg, rgba(8,18,34,.6) 0%, rgba(8,18,34,0) 100%); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .scene-commandes .puce, :root:not([data-theme="light"]) .scene-commandes .bascule, :root:not([data-theme="light"]) .scene-commandes select,
  :root:not([data-theme="light"]) .scene-commandes .segment, :root:not([data-theme="light"]) .scene-commandes .voir-cats { background: rgba(10,22,40,.72); border-color: rgba(255,255,255,.14); }
  :root:not([data-theme="light"]) .accroche-scene::after { background: linear-gradient(0deg, rgba(8,18,34,.6) 0%, rgba(8,18,34,0) 100%); }
}
/* thème sombre choisi, ou nuit en automatique (indépendant du téléphone) */
:root[data-theme="dark"] .scene-commandes .puce, :root[data-theme="dark"] .scene-commandes .bascule, :root[data-theme="dark"] .scene-commandes select,
  :root[data-theme="dark"] .scene-commandes .segment, :root[data-theme="dark"] .scene-commandes .voir-cats { background: rgba(10,22,40,.72); border-color: rgba(255,255,255,.14); }
  :root[data-theme="dark"] .accroche-scene::after { background: linear-gradient(0deg, rgba(8,18,34,.6) 0%, rgba(8,18,34,0) 100%); }

/* Titres-restaurant acceptés (fiche) */
.titres-resto { display: flex; gap: 8px; align-items: flex-start; margin-top: 10px; font-size: var(--t-s); color: var(--ink2); }
.titres-resto .ic { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; color: var(--or-t); }

/* Sous-titre de l'accueil et bandeau « professionnel » sous les fiches à la une */
.scene-sous { margin-top: 4px; font-size: var(--t-m); font-weight: 650; color: var(--ink2); }
.bandeau-pro { display: flex; align-items: center; gap: 12px; margin: 14px 0 6px; padding: 14px 16px; border-radius: var(--r); text-decoration: none; color: var(--ink);
  background: linear-gradient(120deg, var(--or-fond), rgba(255,255,255,.85)); border: 1px solid rgba(217,165,43,.35); box-shadow: var(--ombre); transition: transform .3s var(--ease); }
.bandeau-pro:hover { transform: translateY(-2px); }
.bandeau-pro b { display: block; font-size: var(--t-m); }
.bandeau-pro small { display: block; color: var(--ink2); font-size: var(--t-s); line-height: 1.4; }
.bandeau-pro-ic { flex-shrink: 0; width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; color: var(--or-t); background: rgba(255,255,255,.8); }
.bandeau-pro-ic .ic { width: 22px; height: 22px; }
.bandeau-pro-fleche { margin-left: auto; font-size: 26px; color: var(--or-t); }
:root[data-theme="dark"] .bandeau-pro { background: linear-gradient(120deg, rgba(217,165,43,.18), rgba(16,28,50,.8)); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .bandeau-pro { background: linear-gradient(120deg, rgba(217,165,43,.18), rgba(16,28,50,.8)); } }
/* thème sombre choisi, ou nuit en automatique (indépendant du téléphone) */
:root[data-theme="dark"] .bandeau-pro { background: linear-gradient(120deg, rgba(217,165,43,.18), rgba(16,28,50,.8)); }

/* Connexion : deux portes (se connecter / créer un compte) et compte retenu sur l'appareil */
.acc-choix { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin: 4px 0 6px; border-radius: 14px; background: var(--neutre-fond); border: 1px solid var(--ligne); }
.acc-choix button { min-height: 44px; border: 0; border-radius: 11px; background: transparent; font-weight: 800; font-size: var(--t-m); color: var(--ink2); }
.acc-choix button[aria-selected="true"] { background: var(--carte); color: var(--ink); box-shadow: 0 2px 8px rgba(15,45,90,.12); }
.compte-retenu { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px; border-radius: 18px; text-align: left; cursor: pointer;
  border: 1px solid rgba(59,140,255,.35); background: linear-gradient(135deg, rgba(59,140,255,.10), rgba(20,184,166,.08)); color: var(--ink); transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.compte-retenu:hover { transform: translateY(-1px); box-shadow: var(--ombre); }
.compte-retenu b { display: block; font-size: var(--t-l); }
.compte-retenu small { display: block; color: var(--ink2); font-size: var(--t-s); overflow-wrap: anywhere; }
.compte-retenu-fleche { margin-left: auto; font-size: 28px; color: var(--bleu); }
