@font-face { font-family: Inter; src: url(assets/polices/inter-latin.woff2) format('woff2'); font-weight: 100 900; }
  @font-face { font-family: Inter; src: url(assets/polices/inter-latin-ext.woff2) format('woff2'); font-weight: 100 900; unicode-range: U+0100-024F; }
  :root { --vert: #48B732; --or: #EFC514; --rouge: #E42313; --fond: #121212; --carte: #1E1E1E; --ligne: #2A2A2A; --texte: #FFFFFF; --doux: #A8A8A8; }
  * { box-sizing: border-box; margin: 0; padding: 0; }
  html, body { height: 100%; background: #000; color: var(--texte); font-family: Inter, system-ui, sans-serif; }
  button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
  a { color: inherit; text-decoration: none; }

  /* Mise en page : une colonne d'application, et sur grand écran un panneau à gauche */
  .page { display: grid; grid-template-columns: 1fr; grid-template-rows: 100%; height: 100%; }
  .page > .vide-droite { display: none; }
  .panneau { display: none; }
  .appli { position: relative; height: 100%; max-width: 480px; width: 100%; margin: 0 auto; background: var(--fond); overflow: hidden; }
  @media (min-width: 960px) {
    .page { grid-template-columns: 300px 480px 1fr; }
    .page > .vide-droite { display: block; }
    .panneau { display: flex; flex-direction: column; gap: 22px; padding: 28px 26px; border-right: 1px solid var(--ligne); background: var(--fond); }
    .panneau img.logo { width: 130px; }
    .panneau nav a { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 12px; font-weight: 700; color: var(--doux); }
    .panneau nav a.actif { color: #fff; background: var(--carte); }
    .panneau nav a svg { width: 22px; height: 22px; }
    .panneau .installer { margin-top: auto; background: var(--carte); border-radius: 18px; padding: 18px; font-size: 14px; color: var(--doux); line-height: 1.45; }
    .panneau .installer b { color: #fff; display: block; font-size: 15px; margin-bottom: 6px; }
    .panneau .qr { width: 112px; height: 112px; margin-top: 12px; border-radius: 10px; background: #fff; padding: 6px; display: block; }
    .appli { margin: 0; border-right: 1px solid var(--ligne); }
    .barre-bas { display: none !important; }
    .ecran { bottom: 0 !important; }
  }

  .ecran { position: absolute; inset: 0 0 64px 0; display: none; overflow-y: auto; }
  .ecran.actif { display: block; }

  /* Barre du bas */
  .barre-bas { position: absolute; left: 0; right: 0; bottom: 0; height: 64px; display: flex; align-items: center; justify-content: space-around; background: #0B0B0B; border-top: 1px solid var(--ligne); z-index: 20; }
  .barre-bas a { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11px; color: var(--doux); min-width: 64px; }
  .barre-bas a.actif { color: #fff; }
  .barre-bas svg { width: 24px; height: 24px; }
  .barre-bas .plus { width: 52px; height: 36px; border-radius: 12px; background: var(--vert); display: grid; place-items: center; color: #fff; }

  /* Le fil */
  #fil { scroll-snap-type: y mandatory; }
  .carte-plat { position: relative; height: 100%; scroll-snap-align: start; background-size: cover; background-position: center; display: flex; flex-direction: column; justify-content: flex-end; cursor: pointer; }
  .carte-plat::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,0) 22%, rgba(0,0,0,0) 55%, rgba(0,0,0,.88) 100%); pointer-events: none; }
  .onglets { position: absolute; top: 0; left: 0; right: 0; z-index: 5; display: flex; align-items: center; gap: 18px; padding: 16px 16px 0; }
  .onglets a { font-weight: 800; color: rgba(255,255,255,.65); font-size: 16px; padding-bottom: 6px; }
  .onglets a.actif { color: #fff; border-bottom: 3px solid var(--vert); }
  .onglets .espace { flex: 1; }
  .onglets .rond { width: 36px; height: 36px; border-radius: 50%; background: rgba(0,0,0,.55); display: grid; place-items: center; }
  .onglets .rond svg { width: 20px; height: 20px; }
  .bandeau-web { position: absolute; top: 60px; left: 12px; right: 12px; z-index: 6; background: rgba(0,0,0,.75); border-radius: 14px; padding: 10px 12px; display: flex; gap: 10px; align-items: center; font-size: 13px; line-height: 1.35; }
  .bandeau-web b { color: var(--vert); }
  .bandeau-web button { margin-left: auto; font-weight: 800; color: var(--vert); white-space: nowrap; }
  .colonne { position: absolute; right: 8px; bottom: 120px; z-index: 5; display: flex; flex-direction: column; gap: 18px; align-items: center; }
  .colonne button { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 12px; font-weight: 600; text-shadow: 0 1px 4px #000; }
  .colonne svg { width: 30px; height: 30px; filter: drop-shadow(0 1px 3px rgba(0,0,0,.6)); }
  .colonne .aime svg { color: var(--rouge); }
  .infos { position: relative; z-index: 4; padding: 0 76px 22px 16px; }
  .infos h2 { font-size: 26px; font-weight: 900; line-height: 1.15; text-shadow: 0 2px 8px #000; }
  .note { display: flex; align-items: center; gap: 4px; margin-top: 8px; font-weight: 800; font-size: 16px; }
  .note img { width: 20px; height: 17px; }
  .note img.vide { filter: grayscale(1) brightness(1.8); opacity: .35; }
  .note span { margin-left: 6px; color: #fff; }
  .infos .com { margin-top: 8px; font-size: 15px; line-height: 1.4; }
  .auteur { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
  .avatar { width: 34px; height: 34px; border-radius: 50%; background: #333; display: grid; place-items: center; font-weight: 800; color: var(--or); border: 2px solid var(--or); flex: none; }
  .auteur .nom { font-weight: 800; color: var(--or); font-size: 15px; }
  .auteur .sous { color: rgba(255,255,255,.75); font-size: 12px; }

  /* Fiche d'un plat */
  .fiche-plat img.grande { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; }
  .fiche-plat .corps { padding: 18px 16px 30px; }
  .fiche-plat h1 { font-size: 26px; font-weight: 900; }
  .fiche-plat .actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
  .btn { display: flex; align-items: center; justify-content: center; gap: 8px; height: 48px; border-radius: 14px; font-weight: 800; background: var(--carte); }
  .btn.vert { background: var(--vert); }
  .btn svg { width: 20px; height: 20px; }
  .resto { margin-top: 20px; background: #fff; color: #202124; border-radius: 14px; padding: 14px; font-family: Roboto, Arial, sans-serif; }
  .resto .ligne { height: 10px; background: #e8eaed; border-radius: 5px; margin-top: 8px; }
  .resto .titre-g { font-weight: 700; font-size: 15px; }
  .resto .mention { font-size: 11px; color: #5f6368; margin-top: 10px; }
  .bloc { margin-top: 22px; }
  .bloc h3 { font-size: 16px; font-weight: 800; margin-bottom: 10px; }
  .avis { background: var(--carte); border-radius: 14px; padding: 14px; }
  .avis p { margin-top: 8px; font-size: 15px; line-height: 1.45; }
  .retour { position: absolute; top: 14px; left: 14px; z-index: 5; width: 40px; height: 40px; border-radius: 50%; background: rgba(0,0,0,.6); display: grid; place-items: center; }
  .retour svg { width: 22px; height: 22px; }

  /* Carte */
  #map { position: absolute; inset: 0; background: #1b1b1b; }
  .feuille { position: absolute; left: 0; right: 0; bottom: 0; z-index: 500; background: var(--fond); border-radius: 20px 20px 0 0; padding: 12px 0 14px; }
  .feuille .poignee { width: 40px; height: 4px; background: #444; border-radius: 2px; margin: 0 auto 10px; }
  .feuille h3 { padding: 0 16px 10px; font-size: 16px; font-weight: 800; }
  .defile { display: flex; gap: 10px; overflow-x: auto; padding: 0 16px; scrollbar-width: none; }
  .mini { flex: none; width: 128px; }
  .mini img { width: 128px; height: 128px; object-fit: cover; border-radius: 14px; display: block; }
  .mini .n { font-size: 13px; font-weight: 700; margin-top: 6px; line-height: 1.25; }
  .mini .s { font-size: 12px; color: var(--doux); margin-top: 2px; }
  .pin { width: 44px; height: 44px; border-radius: 50%; border: 3px solid var(--vert); background-size: cover; background-position: center; box-shadow: 0 2px 8px rgba(0,0,0,.6); }
  .recherche-carte { position: absolute; top: 14px; left: 14px; right: 14px; z-index: 500; height: 46px; border-radius: 23px; background: var(--carte); display: flex; align-items: center; gap: 10px; padding: 0 16px; color: var(--doux); font-size: 15px; }
  .recherche-carte svg { width: 20px; height: 20px; }

  /* Noter un plat */
  .noter { padding: 18px 16px 10px; }
  .noter h1 { font-size: 24px; font-weight: 900; }
  .progression { display: flex; gap: 6px; margin: 14px 0 20px; }
  .progression i { flex: 1; height: 4px; border-radius: 2px; background: #333; }
  .progression i.ok { background: var(--vert); }
  .etape { margin-bottom: 26px; }
  .etape h2 { font-size: 17px; font-weight: 800; margin-bottom: 12px; display: flex; gap: 8px; align-items: center; }
  .etape h2 small { color: var(--doux); font-weight: 600; font-size: 13px; }
  .depot { display: grid; place-items: center; height: 220px; border: 2px dashed #3a3a3a; border-radius: 18px; color: var(--doux); text-align: center; background-size: cover; background-position: center; cursor: pointer; }
  .depot svg { width: 40px; height: 40px; color: var(--vert); }
  .puces { display: flex; flex-wrap: wrap; gap: 8px; }
  .puce { padding: 10px 14px; border-radius: 22px; background: var(--carte); border: 1.5px solid var(--ligne); font-size: 14px; font-weight: 600; }
  .puce small { color: var(--doux); font-weight: 500; margin-left: 4px; }
  .puce.choisie { border-color: var(--vert); background: rgba(72,183,50,.15); }
  .puce.deja { border-color: rgba(239,197,20,.5); }
  .champ { width: 100%; height: 48px; border-radius: 14px; background: var(--carte); border: 1.5px solid var(--ligne); padding: 0 14px; color: #fff; font: inherit; font-size: 15px; }
  .champ:focus { outline: none; border-color: var(--vert); }
  textarea.champ { height: 80px; padding: 12px 14px; resize: none; }
  .google { font-size: 11px; color: var(--doux); margin-top: 6px; }
  .vs { display: flex; gap: 10px; }
  .vs button img { width: 44px; height: 37px; }
  .vs button img.vide { filter: grayscale(1) brightness(1.8); opacity: .3; }
  .libelle-note { color: var(--doux); font-size: 13px; margin-top: 8px; }
  .publier { position: sticky; bottom: 0; z-index: 10; padding: 14px 16px 16px; background: linear-gradient(180deg, rgba(18,18,18,0), var(--fond) 35%); }
  .publier .btn { width: 100%; height: 54px; font-size: 16px; }
  .publier .btn[disabled] { opacity: .4; cursor: default; }

  /* Félicitation */
  .bravo { position: absolute; inset: 0; z-index: 30; background: rgba(0,0,0,.82); display: none; align-items: flex-end; }
  .bravo.actif { display: flex; }
  .bravo .boite { width: 100%; background: var(--carte); border-radius: 22px 22px 0 0; padding: 26px 22px 28px; text-align: center; }
  .bravo .points { display: inline-block; margin-top: 12px; padding: 8px 16px; border-radius: 20px; border: 1px solid var(--or); color: var(--or); font-weight: 800; }
  .bravo h2 { font-size: 21px; font-weight: 900; margin-top: 8px; }
  .bravo p { color: var(--doux); margin-top: 10px; line-height: 1.45; font-size: 14px; }
  .bravo .btn { margin-top: 12px; }

  /* Profil */
  .profil { padding: 22px 16px 30px; }
  .profil .haut { display: flex; gap: 14px; align-items: center; }
  .profil .gros { width: 72px; height: 72px; font-size: 28px; }
  .profil h1 { font-size: 22px; font-weight: 900; }
  .profil .sous { color: var(--doux); font-size: 14px; margin-top: 2px; }
  .chiffres { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 18px; }
  .chiffres div { background: var(--carte); border-radius: 14px; padding: 14px 10px; text-align: center; }
  .chiffres b { display: block; font-size: 20px; }
  .chiffres span { font-size: 12px; color: var(--doux); }
  .chiffres .or b { color: var(--or); }
  .badges { display: flex; gap: 10px; overflow-x: auto; }
  .badge { flex: none; width: 92px; background: var(--carte); border-radius: 14px; padding: 12px 8px; text-align: center; font-size: 12px; color: var(--doux); }
  .badge .ico { font-size: 26px; display: block; margin-bottom: 6px; }
  .grille { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
  .grille img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; border-radius: 6px; }
  .encart { margin-top: 22px; background: linear-gradient(135deg, #1d3a17, #1E1E1E); border-radius: 18px; padding: 18px; line-height: 1.45; font-size: 14px; color: #ddd; }
  .encart b { color: #fff; display: block; font-size: 16px; margin-bottom: 4px; }

  /* Ajouts de la version réelle */
  .installer-lien { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; color: var(--vert); font-weight: 800; }
  .onglets .appli-lien { width: 36px; height: 36px; border-radius: 50%; background: rgba(0,0,0,.55); display: grid; place-items: center; }
  .onglets .appli-lien svg { width: 20px; height: 20px; color: var(--vert); }
  @media (min-width: 960px) { .onglets .appli-lien { display: none; } }
  .chargement { height: 100%; display: grid; place-items: center; color: var(--doux); }
  .vide-msg { padding: 40px 24px; text-align: center; color: var(--doux); line-height: 1.5; }
  .resto-appli { margin-top: 20px; background: var(--carte); border-radius: 14px; padding: 14px; color: var(--doux); font-size: 14px; line-height: 1.45; }
  .resto-appli b { color: #fff; display: block; margin-bottom: 4px; }
  .resto-appli a { color: var(--vert); font-weight: 800; }
  .leaflet-container { background: #1b1b1b; font-family: Inter, sans-serif; }
  .mention-web { padding: 4px 16px 0; font-size: 11px; color: var(--doux); }
  .colonne a { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 12px; font-weight: 600; text-shadow: 0 1px 4px #000; }
  .colonne a:first-child svg { color: var(--rouge); }
  .compte { margin-top: 18px; background: var(--carte); border-radius: 18px; padding: 18px; }
  .compte b.titre { display: block; font-size: 16px; margin-bottom: 4px; }
  .compte p { color: var(--doux); font-size: 14px; line-height: 1.45; }
  .compte .champ { margin-top: 12px; }
  .compte .btn { width: 100%; margin-top: 10px; }
  .compte .btn.google { background: #fff; color: #1f1f1f; }
  .compte .msg { margin-top: 10px; font-size: 14px; line-height: 1.4; color: var(--vert); }
  .compte .msg.erreur { color: #ff8a80; }
  .ou { text-align: center; color: var(--doux); font-size: 12px; margin: 12px 0 2px; }
  .lien-discret { display: block; text-align: center; margin-top: 18px; color: var(--doux); font-size: 14px; text-decoration: underline; }
