/*
 * Espace restaurateur.
 *
 * Sans rapport avec l'habillage de la page publique : ici la seule
 * exigence est qu'on puisse saisir soixante plats sur un téléphone, en
 * cuisine, sans se tromper de champ.
 */

:root {
  --app-encre: #1f2933;
  --app-muet: #6b7280;
  --app-bord: #e2e5ea;
  --app-fond: #f7f8fa;
  --app-carte: #ffffff;
  /* Terracotta de la marque pour les actions ; le vert ne dit plus que « c'est bon ». */
  --app-primaire: #a13c17;
  --app-succes: #2f784d;
  --app-danger: #a4303f;
}

* , *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--app-fond);
  color: var(--app-encre);
  font: 16px/1.5 "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.app-wrap { width: min(52rem, 100% - 2rem); margin-inline: auto; }

.app-entete { background: var(--app-carte); border-bottom: 1px solid var(--app-bord); margin-bottom: 1.5rem; }
.app-entete__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; padding-block: 0.75rem; }
.app-marque { display: inline-flex; font-size: 15px; text-decoration: none; }
.app-nav { display: flex; gap: 1rem; flex: 1 1 auto; }
.app-nav a { color: var(--app-muet); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.app-nav a[aria-current="page"], .app-nav a:hover { color: var(--app-primaire); }
.app-deconnexion { color: var(--app-muet); font-size: 0.9rem; }

h1 { font-size: 1.5rem; margin: 0 0 0.25rem; }
h2 { font-size: 1.15rem; margin: 0; }
.app-muet { color: var(--app-muet); font-size: 0.9rem; }

.app-alerte { background: #fff4e5; border: 1px solid #ffd8a8; border-radius: 0.5rem; padding: 0.75rem; }

.app-carte, .app-categorie {
  background: var(--app-carte);
  border: 1px solid var(--app-bord);
  border-radius: 0.75rem;
  padding: 1rem;
  margin-block: 1rem;
}

.app-categorie__tete { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem; align-items: center; margin-bottom: 0.75rem; }

.app-ligne { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.app-ligne form { margin: 0; }
.app-inline { display: inline-block; }

input[type="text"], input[type="email"], input[type="password"], textarea, select {
  font: inherit;
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--app-bord);
  border-radius: 0.5rem;
  background: #fff;
  color: inherit;
  width: 100%;
}

input:focus, textarea:focus, select:focus { outline: 2px solid var(--app-primaire); outline-offset: 1px; }

.app-formulaire { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 0.75rem; }
.app-formulaire > label { display: flex; flex-direction: column; gap: 0.25rem; font-size: 0.85rem; font-weight: 600; color: var(--app-muet); }
.app-formulaire fieldset { border: 1px solid var(--app-bord); border-radius: 0.5rem; padding: 0.75rem; }
.app-formulaire legend { font-size: 0.85rem; font-weight: 600; color: var(--app-muet); padding-inline: 0.35rem; }

/* Quatorze cases à cocher : en colonnes, elles tiennent sur un écran. */
.app-cases { display: grid; grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr)); gap: 0.35rem; }
.app-case { display: flex; align-items: center; gap: 0.4rem; font-weight: 400; font-size: 0.9rem; color: var(--app-encre); }
.app-case input { width: auto; }

.app-btn {
  font: inherit;
  font-weight: 600;
  padding: 0.5rem 0.85rem;
  border: 1px solid var(--app-bord);
  border-radius: 0.5rem;
  background: #fff;
  color: var(--app-encre);
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}

.app-btn:hover { border-color: var(--app-primaire); color: var(--app-primaire); }
.app-btn[disabled] { opacity: 0.35; cursor: default; }
.app-btn[disabled]:hover { border-color: var(--app-bord); color: var(--app-encre); }
.app-btn--primaire { background: var(--app-primaire); border-color: var(--app-primaire); color: #fff; }
.app-btn--primaire:hover { color: #fff; filter: brightness(1.1); }
.app-btn--discret { padding: 0.35rem 0.6rem; font-size: 0.85rem; }
.app-btn--danger { color: var(--app-danger); border-color: #f0d4d8; }
.app-btn--danger:hover { background: var(--app-danger); border-color: var(--app-danger); color: #fff; }

.app-plat { border-top: 1px solid var(--app-bord); padding-block: 0.5rem; }
.app-plat summary { display: flex; align-items: baseline; gap: 0.5rem; cursor: pointer; padding: 0.35rem 0; }
.app-plat__nom { font-weight: 600; flex: 1 1 auto; }
.app-plat__prix { color: var(--app-muet); font-variant-numeric: tabular-nums; }
.app-plat[data-epuise="1"] .app-plat__nom { text-decoration: line-through; color: var(--app-muet); }
.app-plat__outils { margin-top: 0.5rem; }
.app-etiquette { font-size: 0.75rem; background: #fdecef; color: var(--app-danger); border-radius: 999px; padding: 0.1rem 0.5rem; }

.app-ajout { margin-top: 0.75rem; padding-top: 0.75rem; border-top: 1px dashed var(--app-bord); }
.app-ajout input[type="text"] { width: auto; flex: 1 1 10rem; }

.app-connexion { max-width: 22rem; margin: 4rem auto; background: var(--app-carte); border: 1px solid var(--app-bord); border-radius: 0.75rem; padding: 1.5rem; }
.app-connexion form { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 1rem; }
.app-connexion label { display: flex; flex-direction: column; gap: 0.25rem; font-size: 0.85rem; font-weight: 600; color: var(--app-muet); }

/* ======================================================== Tunnel d'inscription */

.app-connexion--large { max-width: 34rem; }
.app-etapes { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--app-primaire); margin: 0 0 0.25rem; }

/* La liste d'adresses se pose sous le champ sans décaler le formulaire. */
.app-propositions {
  list-style: none;
  margin: -0.5rem 0 0;
  padding: 0;
  border: 1px solid var(--app-bord);
  border-radius: 0.5rem;
  background: #fff;
  max-height: 14rem;
  overflow-y: auto;
}

.app-propositions li { padding: 0.55rem 0.7rem; cursor: pointer; font-size: 0.95rem; border-bottom: 1px solid var(--app-bord); }
.app-propositions li:last-child { border-bottom: 0; }
.app-propositions li:hover, .app-propositions li:focus { background: var(--app-fond); outline: none; }

/*
 * Le dépôt est une grande cible : sur un téléphone, il ouvre directement
 * l'appareil photo. Un <input type=file> nu serait illisible et minuscule.
 */
.app-depot {
  display: block;
  border: 2px dashed var(--app-bord);
  border-radius: 0.75rem;
  padding: 1.75rem 1rem;
  text-align: center;
  cursor: pointer;
  background: #fff;
  font-weight: 600;
  color: var(--app-primaire);
}

.app-depot:hover { border-color: var(--app-primaire); }
.app-depot input { position: absolute; width: 1px; height: 1px; opacity: 0; }

.app-repli { margin-top: 1.5rem; text-align: center; }
.app-lien { background: none; border: 0; padding: 0; font: inherit; color: var(--app-muet); text-decoration: underline; cursor: pointer; }
.app-lien:hover { color: var(--app-primaire); }

.app-progression { display: flex; align-items: center; gap: 0.6rem; font-weight: 600; }

.app-tourne {
  width: 1.1rem; height: 1.1rem; flex: none;
  border: 2px solid var(--app-bord);
  border-top-color: var(--app-primaire);
  border-radius: 50%;
  animation: app-tourner 0.8s linear infinite;
}

@keyframes app-tourner { to { transform: rotate(360deg); } }

/* Le mouvement n'apporte rien à qui le supporte mal : il s'arrête. */
@media (prefers-reduced-motion: reduce) {
  .app-tourne { animation: none; border-top-color: var(--app-bord); }
}

.app-lien-final { font-size: 1.05rem; }
.app-lien-final a, .app-url { word-break: break-all; }
.app-lien-final a { color: var(--app-primaire); font-weight: 600; }

.app-outils-carte { margin-block: 1rem; }
.app-outils-carte form { margin: 0; }

/* =================================================== Imprimer et partager */

.app-supports { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); }
.app-support { margin: 0; display: flex; flex-direction: column; }
.app-support p:last-child { margin-top: auto; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.app-support__apercu { display: flex; justify-content: center; margin-bottom: 0.5rem; }
.app-support__apercu svg { width: 150px; height: 150px; }

.app-chiffres { display: grid; grid-template-columns: repeat(auto-fill, minmax(8rem, 1fr)); gap: 0.75rem; margin-block: 0.75rem; }
.app-chiffre { background: var(--app-carte); border: 1px solid var(--app-bord); border-radius: 0.75rem; padding: 0.75rem; display: flex; flex-direction: column; }
.app-chiffre strong { font-size: 1.6rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.app-chiffre span { font-size: 0.85rem; color: var(--app-muet); }

.app-tableau { width: 100%; border-collapse: collapse; background: var(--app-carte); border: 1px solid var(--app-bord); border-radius: 0.75rem; overflow: hidden; font-size: 0.9rem; }
.app-tableau th, .app-tableau td { text-align: left; padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--app-bord); }
.app-tableau th { color: var(--app-muet); font-weight: 600; }
.app-tableau tr:last-child td { border-bottom: 0; }

.app-etape-suivante { background: #fff4e5; border: 1px solid #ffd8a8; border-radius: 0.75rem; padding: 1rem; margin-block: 1rem; }
.app-etape-suivante p { margin: 0 0 0.75rem; }
.app-etape-suivante p:last-child { margin: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }

.app-etiquette--verifier { background: #fff4e5; color: #8a5300; }

.app-cle h3 { font-size: 0.95rem; margin: 1rem 0 0.35rem; }
.app-cle input[readonly] { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.8rem; background: var(--app-fond); }

/* L'espace restaurateur charge Epilogue pour le seul nom du logo. */
@font-face { font-family: 'Epilogue'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('../fonts/epilogue.woff2') format('woff2'); }

/* ------------------------------------------------------------------ Logo */
.logo { display: inline-flex; align-items: center; gap: 0.55em; line-height: 1; text-decoration: none; }
.logo__embleme { flex: none; filter: drop-shadow(0 2px 4px rgba(181, 70, 34, 0.22)); }
.logo__texte { display: inline-flex; flex-direction: column; gap: 0.3em; }
.logo__nom { font-family: "Epilogue", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-weight: 900; letter-spacing: -0.02em; color: #1c1917; font-size: 1.35em; display: inline-flex; align-items: baseline; }
.logo__point { color: #c2542d; }
.logo__fr { margin-left: 0.5em; align-self: center; font-size: 0.42em; font-weight: 800; color: #c2542d; background: #fbeee8; border-radius: 0.35em; padding: 0.3em 0.55em; letter-spacing: 0.02em; }
.logo__signature { font-family: "Epilogue", -apple-system, sans-serif; font-weight: 700; font-size: 0.55em; letter-spacing: 0.18em; text-transform: uppercase; color: #78716c; }

.app-logo-connexion { margin: 0 0 1rem; font-size: 18px; }

/* ======================================================== App installable */

/*
 * Barre d'onglets du bas : sur téléphone seulement. Elle remplace la
 * navigation du haut, trop longue pour tenir sur une ligne, et reste à
 * portée de pouce. env(safe-area-inset-bottom) laisse la place à la barre
 * d'accueil de l'iPhone quand l'app est ouverte en plein écran.
 */
.app-onglets { display: none; }

@media (max-width: 760px) {
  .avec-onglets .app-nav, .avec-onglets .app-deconnexion { display: none; }
  .avec-onglets .app-entete { margin-bottom: 1rem; padding-top: env(safe-area-inset-top); }
  .avec-onglets main { padding-bottom: calc(5.5rem + env(safe-area-inset-bottom)); }

  .app-onglets {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 20;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    background: var(--app-carte);
    border-top: 1px solid var(--app-bord);
    padding-bottom: env(safe-area-inset-bottom);
  }

  .app-onglets a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    padding: 0.5rem 0.25rem 0.45rem;
    color: var(--app-muet);
    font-size: 0.7rem;
    font-weight: 600;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
  }

  .app-onglets svg { width: 1.5rem; height: 1.5rem; }
  .app-onglets a[aria-current="page"] { color: var(--app-primaire); }
}

/* ---- En service ---- */

.rapide-barre { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-block: 1rem; position: sticky; top: 0; z-index: 5; background: var(--app-fond); padding-block: 0.5rem; }
.rapide-recherche { flex: 1 1 12rem; font: inherit; padding: 0.6rem 0.8rem; border: 1px solid var(--app-bord); border-radius: 0.6rem; background: #fff; }
.rapide-tout { margin: 0; }
/* Rien à montrer (carte courte, rien d'épuisé) : pas de bande vide. */
.rapide-barre:not(:has(> :not([hidden]))) { display: none; }
.rapide-compte { display: inline-block; min-width: 1.4em; padding: 0 0.35em; margin-left: 0.25rem; border-radius: 999px; background: #fdecef; color: var(--app-danger); font-size: 0.85em; text-align: center; }

.rapide-categorie { margin-block: 1.25rem; }
.rapide-categorie h2 { font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--app-muet); margin: 0 0 0.4rem; }
.rapide-categorie ul { list-style: none; margin: 0; padding: 0; background: var(--app-carte); border: 1px solid var(--app-bord); border-radius: 0.75rem; position: relative; }

.rapide-plat { display: flex; align-items: stretch; border-top: 1px solid var(--app-bord); }
.rapide-plat:first-child { border-radius: 0.75rem 0.75rem 0 0; }
.rapide-plat:last-child { border-radius: 0 0 0.75rem 0.75rem; }
.rapide-plat:first-child { border-top: 0; }
.rapide-bascule { flex: 1 1 auto; margin: 0; min-width: 0; }

/* Toute la ligne est la cible : 3,25 rem de haut, au-dessus des 44 px recommandés. */
.rapide-bascule button {
  width: 100%;
  min-height: 3.25rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.75rem;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.rapide-plat__nom { flex: 1 1 auto; font-weight: 600; overflow-wrap: anywhere; }
.rapide-plat__etat { font-size: 0.75rem; color: var(--app-muet); white-space: nowrap; }

.rapide-interrupteur { flex: none; position: relative; width: 2.75rem; height: 1.6rem; border-radius: 999px; background: var(--app-succes); transition: background 0.15s; }
.rapide-interrupteur::after { content: ""; position: absolute; top: 0.2rem; left: 1.35rem; width: 1.2rem; height: 1.2rem; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgb(0 0 0 / 0.25); transition: left 0.15s; }

.rapide-plat[data-epuise="1"] { background: #fbf6f6; }
.rapide-plat[data-epuise="1"] .rapide-plat__nom { color: var(--app-muet); text-decoration: line-through; }
.rapide-plat[data-epuise="1"] .rapide-plat__etat { color: var(--app-danger); font-weight: 700; }
.rapide-plat[data-epuise="1"] .rapide-interrupteur { background: #c9ced6; }
.rapide-plat[data-epuise="1"] .rapide-interrupteur::after { left: 0.2rem; }
.rapide-plat[data-envoi] .rapide-bascule button { opacity: 0.6; }

.rapide-prix { flex: none; width: 6.5rem; border-left: 1px solid var(--app-bord); }
.rapide-prix summary { list-style: none; display: flex; align-items: center; height: 100%; min-height: 3.25rem; justify-content: flex-end; padding: 0.4rem 0.75rem; cursor: pointer; font-variant-numeric: tabular-nums; color: var(--app-primaire); font-weight: 600; text-align: right; line-height: 1.25; }
.rapide-prix summary::-webkit-details-marker { display: none; }
.rapide-prix[open] summary { background: var(--app-fond); }
.rapide-prix form { position: absolute; right: 0.5rem; left: 0.5rem; z-index: 6; display: flex; gap: 0.5rem; margin-top: 0.25rem; padding: 0.6rem; background: var(--app-carte); border: 1px solid var(--app-bord); border-radius: 0.6rem; box-shadow: 0 8px 24px rgb(0 0 0 / 0.12); }
.rapide-prix input { flex: 1 1 auto; min-width: 0; font-size: 1.1rem; }

.rapide-suite { margin-top: 1.5rem; font-size: 0.9rem; }

.rapide-annonce {
  position: fixed;
  left: 50%;
  bottom: calc(5.5rem + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 30;
  max-width: calc(100% - 2rem);
  padding: 0.6rem 1rem;
  border-radius: 0.6rem;
  background: var(--app-encre);
  color: #fff;
  font-size: 0.9rem;
  box-shadow: 0 6px 20px rgb(0 0 0 / 0.2);
}
.rapide-annonce--erreur { background: var(--app-danger); }

/* ---- Plus ---- */

.plus-titre { margin-top: 1.5rem; }
.plus-liste { display: flex; flex-direction: column; margin-block: 1rem; background: var(--app-carte); border: 1px solid var(--app-bord); border-radius: 0.75rem; overflow: hidden; }
.plus-liste a { padding: 0.9rem 1rem; border-top: 1px solid var(--app-bord); color: var(--app-encre); text-decoration: none; font-weight: 600; }
.plus-liste a:first-child { border-top: 0; }
.plus-liste a::after { content: "›"; float: right; color: var(--app-muet); }
.plus-liste a[aria-current="page"] { color: var(--app-primaire); }

.installer h2 { margin-bottom: 0.4rem; }
.installer-ios { padding-left: 1.25rem; }
.installer-ios__icone { width: 1.15em; height: 1.15em; vertical-align: -0.2em; color: #007aff; }

/* Hors ligne : l'écran le dit plutôt que de laisser croire qu'un geste a abouti. */
.hors-ligne-bandeau { position: sticky; top: 0; z-index: 25; margin: 0; padding: 0.5rem 1rem; background: #fff4e5; border-bottom: 1px solid #ffd8a8; font-size: 0.9rem; text-align: center; }

/* ======================================================== Administration */

.app-wrap--large { width: min(72rem, 100% - 2rem); }
.admin-pastille { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #c2542d; background: #fbeee8; border-radius: 999px; padding: 0.15rem 0.6rem; }
.admin-sortie { margin: 0 0 0 auto; }

/* Les sections du tableau de bord : elles passent à la ligne sur un téléphone. */
.admin-nav { display: flex; flex-wrap: wrap; gap: 0.75rem; font-size: 0.9rem; font-weight: 600; }
.admin-nav a { color: var(--app-muet); text-decoration: none; padding: 0.15rem 0; border-bottom: 2px solid transparent; }
.admin-nav a:hover { color: var(--app-encre); border-bottom-color: var(--app-primaire); }

.admin-chiffres { display: grid; grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr)); gap: 0.75rem; margin-block: 1.25rem; }
.admin-chiffre { display: flex; flex-direction: column; gap: 0.15rem; padding: 1rem; background: var(--app-carte); border: 1px solid var(--app-bord); border-radius: 0.75rem; }
.admin-chiffre__valeur { font-size: 1.6rem; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.2; }
.admin-chiffre__libelle { font-size: 0.85rem; font-weight: 600; color: var(--app-muet); }
.admin-chiffre__detail { margin-top: 0.35rem; font-size: 0.8rem; color: var(--app-muet); }
.admin-chiffre--alerte { border-color: #f0b8c0; background: #fdf3f4; }
.admin-chiffre--alerte .admin-chiffre__valeur { color: var(--app-danger); }

.admin-histo { display: flex; align-items: flex-end; gap: 3px; height: 5rem; margin-top: 0.75rem; }
.admin-histo__barre { flex: 1 1 0; height: max(var(--h), 2px); background: var(--app-primaire); border-radius: 2px 2px 0 0; opacity: 0.85; }
.admin-histo__axe { display: flex; justify-content: space-between; font-size: 0.75rem; margin-top: 0.25rem; }

.admin-filtres { margin-block: 0.75rem; }
.admin-filtres input[type="search"] { flex: 1 1 14rem; font: inherit; padding: 0.5rem 0.65rem; border: 1px solid var(--app-bord); border-radius: 0.5rem; }
.admin-filtres select { width: auto; }

.admin-defile { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.admin-table th { text-align: left; font-size: 0.75rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--app-muet); padding: 0.4rem 0.5rem; border-bottom: 1px solid var(--app-bord); white-space: nowrap; }
.admin-table td { padding: 0.5rem; border-bottom: 1px solid var(--app-bord); vertical-align: top; }
.admin-table tr:last-child td { border-bottom: 0; }
.admin-table a { color: var(--app-primaire); font-weight: 600; text-decoration: none; }

.admin-statut { display: inline-block; font-size: 0.75rem; font-weight: 700; border-radius: 999px; padding: 0.1rem 0.55rem; background: #eef0f3; color: var(--app-muet); vertical-align: middle; }
.admin-statut--essai { background: #e6f4f1; color: var(--app-succes); }
.admin-statut--actif { background: var(--app-succes); color: #fff; }
.admin-statut--veille { background: #fff4e5; color: #9a5b00; }
.admin-statut--suspendu { background: #fdecef; color: var(--app-danger); }

.admin-grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 0 1rem; }
.admin-dl { display: grid; grid-template-columns: auto 1fr; gap: 0.3rem 1rem; margin: 0.75rem 0 0; font-size: 0.9rem; }
.admin-dl dt { color: var(--app-muet); }
.admin-dl dd { margin: 0; overflow-wrap: anywhere; }
.admin-categorie { font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--app-muet); margin: 1rem 0 0.25rem; }
.admin-plats { list-style: none; margin: 0; padding: 0; }
.admin-plats li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.35rem 0; border-bottom: 1px solid var(--app-bord); font-size: 0.9rem; }
.admin-a-verifier { font-size: 0.75rem; background: #fff4e5; color: #9a5b00; border-radius: 999px; padding: 0.05rem 0.45rem; }

/* Lien « Installer l'app » : partout, sauf dans l'app déjà installée. */
.lien-installer { display: inline-flex; align-items: center; gap: 0.35rem; white-space: nowrap; text-decoration: none; font-weight: 600; }
.lien-installer svg { width: 1.15em; height: 1.15em; flex: none; }
@media (max-width: 639px) { .lien-installer--compact .lien-installer__texte { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } .lien-installer--compact svg { width: 1.5rem; height: 1.5rem; } }
@media (display-mode: standalone) { .lien-installer { display: none !important; } }
.app-entete .lien-installer { color: var(--app-primaire); font-size: 0.9rem; }
@media (max-width: 760px) { .app-entete .lien-installer { margin-left: auto; } }
.installer-page h2 { font-size: 1.05rem; margin-top: 1.25rem; }
.installer-etapes { padding-left: 1.25rem; }
.installer-etapes li { margin-bottom: 0.5rem; }
.installer-grand { width: 100%; padding-block: 0.8rem; font-size: 1.05rem; }
.installer-qr { display: flex; justify-content: center; margin: 1rem 0 0.5rem; }
.installer-qr svg { border: 1px solid var(--app-bord); border-radius: 0.5rem; }
.installer-adresse { font-weight: 600; overflow-wrap: anywhere; background: var(--app-fond); border-radius: 0.5rem; padding: 0.5rem 0.75rem; }
.installer-pied { margin-top: 1.5rem; }
.app-connexion .lien-installer { color: var(--app-primaire); }
.plus-liste a.lien-installer { display: block; white-space: normal; }

.admin-objectif { font-weight: 800; font-variant-numeric: tabular-nums; }
.admin-objectif--oui { color: var(--app-succes); }
.admin-objectif--non { color: var(--app-danger); }
.admin-objectif--vide { color: var(--app-muet); }
.admin-parcours th { white-space: normal; font-size: 0.7rem; min-width: 5.5rem; }
.admin-etape { font-size: 0.8rem; }
.admin-etape--faite { color: var(--app-succes); }
.admin-etape--a-faire { color: #b8bec8; }
.admin-etape__detail { display: block; color: var(--app-muet); font-size: 0.75rem; }
.admin-frise { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr)); gap: 0.75rem; margin: 0.75rem 0; padding: 0; }
.admin-frise li { display: flex; flex-direction: column; gap: 0.15rem; font-size: 0.85rem; }
.admin-frise__point { width: 0.8rem; height: 0.8rem; border-radius: 50%; border: 2px solid currentColor; }
.admin-frise .admin-etape--faite .admin-frise__point { background: currentColor; }
.admin-frise .admin-etape--a-faire strong { color: var(--app-muet); font-weight: 600; }

.app-formulaire-signaler { display: flex; flex-direction: column; gap: 0.9rem; }
.app-formulaire-signaler label { display: flex; flex-direction: column; gap: 0.3rem; font-weight: 600; font-size: 0.9rem; }
.app-formulaire-signaler textarea { font: inherit; padding: 0.6rem; border: 1px solid var(--app-bord); border-radius: 0.5rem; resize: vertical; }
.app-formulaire-signaler button { align-self: flex-start; }
.admin-a-traiter { border-color: #ffd8a8; background: #fffaf2; }
.admin-message { max-width: 28rem; overflow-wrap: anywhere; }

/* ---- Photo de l'établissement ---- */
.app-photo__corps { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 0.75rem; }
.app-photo__cadre { flex: 0 0 auto; width: min(100%, 16rem); aspect-ratio: 4 / 3; display: grid; place-items: center; overflow: hidden; border-radius: 0.6rem; background: var(--app-fond); border: 1px dashed var(--app-bord); }
.app-photo__cadre img { width: 100%; height: 100%; object-fit: cover; display: block; }
.app-photo__actions { flex: 1 1 14rem; display: flex; flex-direction: column; gap: 0.6rem; align-items: flex-start; }
.app-photo__actions form { margin: 0; }
.app-photo__choisir { position: relative; overflow: hidden; }
.app-photo__choisir input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; font-size: 0; }
.app-photo__conseils { margin: 0.25rem 0 0; padding-left: 1.1rem; font-size: 0.85rem; }
.admin-photo { width: 16rem; height: auto; border-radius: 0.6rem; border: 1px solid var(--app-bord); }

/* ---- Continuer avec Google (charte Google : fond blanc, bordure #747775, texte #1f1f1f) ---- */
.bouton-google { display: flex; align-items: center; justify-content: center; gap: 0.75rem; width: 100%; min-height: 2.75rem; margin-top: 1rem; padding: 0.55rem 1rem; background: #fff; border: 1px solid #747775; border-radius: 0.5rem; color: #1f1f1f; font-weight: 600; text-decoration: none; }
.bouton-google:hover { background: #f8f9fa; }
.bouton-google:focus-visible { outline: 2px solid var(--app-primaire); outline-offset: 2px; }
.bouton-google__ou { display: flex; align-items: center; gap: 0.75rem; margin: 1rem 0 0; color: var(--app-muet); font-size: 0.85rem; }
.bouton-google__ou::before, .bouton-google__ou::after { content: ""; flex: 1; border-top: 1px solid var(--app-bord); }
.app-google-connecte { background: #eef6f1; border: 1px solid #cfe5d8; border-radius: 0.5rem; padding: 0.75rem; font-size: 0.9rem; }
.app-google-connecte a { display: block; margin-top: 0.25rem; }

/* ---- Histogrammes (trafic, statistiques) ---- */
.courbe { display: flex; align-items: flex-end; gap: 3px; height: 8rem; margin-top: 0.75rem; }
.courbe__col { flex: 1 1 0; display: flex; align-items: flex-end; justify-content: center; gap: 1px; height: 100%; }
.courbe__barre { flex: 1 1 0; max-width: 1.4rem; height: max(var(--h), 2px); border-radius: 3px 3px 0 0; background: var(--app-primaire); opacity: 0.9; }
.courbe__barre--seconde { background: var(--app-succes); }
.courbe__axe { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.75rem; margin-top: 0.3rem; }
.courbe__legende { color: var(--app-muet); }
.courbe__legende::before { content: "■ "; color: var(--app-primaire); }
.courbe__legende::after { content: " ■"; color: var(--app-succes); }

.stats-chiffres { display: grid; grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr)); gap: 0.75rem; margin-block: 1rem; }
.stats-chiffre { background: var(--app-carte); border: 1px solid var(--app-bord); border-radius: 0.75rem; padding: 0.9rem; }
.stats-chiffre b { display: block; font-size: 1.5rem; font-variant-numeric: tabular-nums; }
.stats-chiffre span { font-size: 0.8rem; color: var(--app-muet); font-weight: 600; }
.stats-periode { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.5rem; }
.stats-periode a { padding: 0.35rem 0.7rem; border: 1px solid var(--app-bord); border-radius: 999px; background: #fff; color: var(--app-encre); text-decoration: none; font-size: 0.85rem; font-weight: 600; }
.stats-periode a[aria-current="page"] { background: var(--app-primaire); border-color: var(--app-primaire); color: #fff; }
.stats-vide { color: var(--app-muet); }
.app-impasse { text-align: center; }
.app-impasse h1 { font-size: 1.3rem; margin-bottom: 0.5rem; }
.app-impasse__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; margin-block: 1.25rem; }
.admin-gestes__grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1rem; margin-top: 0.75rem; }
.admin-gestes form { display: flex; flex-direction: column; gap: 0.5rem; align-items: flex-start; padding: 0.9rem; border: 1px solid var(--app-bord); border-radius: 0.6rem; background: var(--app-fond); }
.admin-gestes form p { margin: 0; font-size: 0.9rem; }
.admin-gestes label { display: flex; flex-direction: column; gap: 0.25rem; width: 100%; font-size: 0.85rem; font-weight: 600; }
.admin-gestes input[type="text"], .admin-gestes select { width: 100%; }
.admin-fait { background: #e8f4ee; border-color: #bfe0cd; }
.admin-rate { background: #fdecef; border-color: #f0c4cc; }
.admin-depense { align-items: flex-end; gap: 0.6rem; margin-top: 1rem; }
.admin-depense label { display: flex; flex-direction: column; gap: 0.2rem; font-size: 0.8rem; font-weight: 600; }
.admin-depense input { width: 9rem; }

.parrain-regles { padding-left: 1.1rem; margin: 0.5rem 0 1rem; }
.parrain-regles li { margin-bottom: 0.3rem; }
.parrain-code { font-size: 1.1rem; }
.parrain-code strong { letter-spacing: 0.15em; background: #fbeee8; border-radius: 0.4rem; padding: 0.15rem 0.5rem; }
.parrain-lien { font-size: 0.9rem; color: var(--app-muet); overflow-wrap: anywhere; }
.app-montees { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 0.75rem; margin-top: 1rem; }
.app-montees form { margin: 0; padding: 0.9rem; border: 1px solid var(--app-bord); border-radius: 0.6rem; background: var(--app-fond); }
.app-montees p { margin: 0 0 0.6rem; font-size: 0.9rem; }
