/* Mon Food Truck — compléments chargés sur toutes les pages (fichier versionné, donc
   pris en compte tout de suite, contrairement à style.css gardé 7 jours en cache). */

/* ---------- Menu mobile ---------- */
.nav-burger {
  display: none; place-items: center; width: 40px; height: 40px; flex: none;
  border: var(--border-card); border-radius: 12px; background: var(--color-surface);
  color: var(--color-text); cursor: pointer; padding: 0;
}
.nav-burger:hover { border-color: var(--color-primary); color: var(--color-primary); }
.nav-mobile { border-top: var(--border-card); background: var(--color-surface); box-shadow: 0 18px 30px rgba(0, 0, 0, .12); }
.nav-mobile[hidden] { display: none; }
.nav-mobile .container { padding-top: 8px; padding-bottom: 12px; }
.nav-mobile a {
  display: flex; align-items: center; gap: 12px; padding: 14px 4px;
  color: var(--color-text); font-weight: var(--fw-bold); font-size: 16px;
  border-bottom: var(--border-card);
}
.nav-mobile a:last-child { border-bottom: 0; }
.nav-mobile a:hover { text-decoration: none; color: var(--color-primary); }
.nav-mobile a.is-active { color: var(--color-primary); }
.nav-mobile a .material-symbols-outlined { font-size: 22px; color: var(--color-primary); }
@media (min-width: 1181px) { .nav-mobile { display: none !important; } }
@media (max-width: 640px) {
  .nav-burger { display: grid; }
  .nav { gap: var(--space-s); }
  .nav-links.nav-cta { gap: var(--space-s); }
  .nav-long { display: none; }
  .brand { font-size: 16px; white-space: nowrap; }
}
.nav-cta-ico { display: none; font-size: 20px; }
@media (max-width: 480px) {
  .nav-cta-txt { display: none; }
  .nav-cta-ico { display: inline-block; }
  .nav-links.nav-cta .btn-sm { padding-left: 12px; padding-right: 12px; }
}
@media (max-width: 345px) { .brand { font-size: 0; gap: 0; } }

/* ---------- Téléphone de l'accueil : de vrais food trucks ---------- */
.phone-top .title, .phone-top .badge-open { white-space: nowrap; }
a.mini-card { color: inherit; }
a.mini-card:hover { text-decoration: none; border-color: var(--color-primary); }
.mini-card .thumb img { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; display: block; background: #fff; }
.mini-card .meta .name { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-card .meta .sub { white-space: nowrap; overflow: hidden; }
.phone-plus { display: block; text-align: center; font-size: 13px; font-weight: var(--fw-bold); padding-top: 4px; }

/* ---------- Annuaire : recherche d'une ville ---------- */
.an-recherche { position: relative; max-width: 560px; margin-top: 20px; }
.an-recherche[hidden] { display: none; }
.an-recherche label { display: block; font-weight: var(--fw-bold); font-size: 14px; margin-bottom: 6px; }
.an-recherche-champ { position: relative; }
.an-recherche-champ > .material-symbols-outlined { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--color-primary); pointer-events: none; }
.an-recherche input {
  width: 100%; height: 54px; padding: 0 16px 0 46px; font: inherit; font-size: 16px;
  color: var(--color-text); background: var(--color-surface);
  border: 2px solid color-mix(in srgb, var(--color-primary) 35%, var(--color-surface)); border-radius: 14px;
}
.an-recherche input:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--color-primary) 18%, transparent); }
.an-recherche ul {
  position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 6px); margin: 0; padding: 6px; list-style: none;
  background: var(--color-surface); border: var(--border-card); border-radius: 14px; box-shadow: 0 18px 40px rgba(0, 0, 0, .16);
}
.an-recherche ul[hidden] { display: none; }
.an-recherche li a { display: block; padding: 11px 12px; border-radius: 10px; color: var(--color-text); font-weight: var(--fw-bold); }
.an-recherche li a small { color: var(--color-text-secondary); font-weight: var(--fw-regular); }
.an-recherche li a:hover, .an-recherche li.is-actif a { background: color-mix(in srgb, var(--color-primary) 12%, var(--color-surface)); text-decoration: none; }
.an-q-vide { padding: 12px; font-size: 14px; color: var(--color-text-secondary); }

/* ---------- Cartes sans présentation ---------- */
.an-desc--repli { font-style: italic; }

/* Un bouton masqué par le script (boutique de l autre système) doit vraiment disparaître. */
.btn[hidden] { display: none !important; }

/* ---------- Accueil : recherche de ville dans le haut de page ---------- */
.hero .an-recherche { margin-top: 24px; max-width: 460px; }
#pro .feature .icon { flex: none; }
@media (max-width: 960px) { #pro .hero-grid > div:first-child { order: 2; } }

/* ---------- Accueil : fonctionnalités en lignes compactes sur téléphone ---------- */
@media (max-width: 640px) {
  .features-compact { gap: 10px; }
  .features-compact .feature { display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; align-items: center; padding: 12px 14px; }
  .features-compact .feature .icon { grid-row: span 2; margin: 0; width: 44px; height: 44px; }
  .features-compact .feature h3 { margin: 0; font-size: 16px; align-self: end; }
  .features-compact .feature p { font-size: 13px; line-height: 1.35; align-self: start; }
}

/* Menu à 5 entrées : sur tablette et petit écran d'ordinateur, on passe au menu déroulant. */
.nav-links a, .brand { white-space: nowrap; }
@media (max-width: 1180px) {
  .nav-links { display: none; }
  .nav-links.nav-cta { display: flex; }
  .nav-burger { display: grid; }
}

/* Pages d'erreur */
.mft-erreur-ico { font-size: 64px; color: var(--color-primary); }
.mft-erreur-code { margin: 6px 0 4px; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--color-primary); }
.mft-erreur h1 { font-size: clamp(28px, 5vw, 42px); font-weight: 900; letter-spacing: -0.8px; line-height: 1.1; margin-bottom: 12px; }
.mft-erreur-rech { max-width: 460px; margin: 28px auto 0; text-align: left; }
.mft-erreur-liens { margin-top: 28px; font-size: 14px; color: var(--color-text-secondary); }

/* Page gérants : suivi d'activité et échéances */
.pilotage-grille { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-l); }
.pilotage-carte { height: auto; display: flex; flex-direction: column; gap: 10px; }
.pilotage-carte .icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: color-mix(in srgb, var(--color-primary) 12%, transparent); color: var(--color-primary); }
.pilotage-carte h3 { font-size: 20px; font-weight: var(--fw-black); margin: 0; }
.pilotage-carte p { margin: 0; color: var(--color-text-secondary); }
.pilotage-carte ul { display: grid; gap: 8px; margin: 4px 0; font-size: 15px; }
.pilotage-carte li { display: flex; gap: 8px; align-items: flex-start; }
.pilotage-carte li .material-symbols-outlined { font-size: 19px; color: var(--color-primary); flex: none; margin-top: 2px; }
.pilotage-carte .pilotage-forfait { margin-top: auto; padding-top: 10px; border-top: var(--border-card); display: flex; gap: 6px; align-items: center; font-size: 14px; font-weight: var(--fw-bold); color: var(--color-primary); }
.pilotage-carte .pilotage-forfait .material-symbols-outlined { font-size: 19px; }
@media (max-width: 800px) { .pilotage-grille { grid-template-columns: 1fr; } }
.pilotage-ecran { margin: var(--space-xl) auto 0; max-width: 940px; }
.pilotage-ecran img { width: 100%; height: auto; border-radius: 18px; border: var(--border-card); box-shadow: 0 18px 40px rgba(0, 0, 0, .10); }
.pilotage-ecran .sombre { display: none; }
[data-theme$="-dark"] .pilotage-ecran .clair { display: none; }
[data-theme$="-dark"] .pilotage-ecran .sombre { display: block; }
.pilotage-ecran figcaption { margin-top: 10px; text-align: center; font-size: 13px; color: var(--color-text-secondary); }
