/* Réglages sur téléphone, design 8 « Raccourcis en tuiles » (owner, 2026-12-01) : voir acct8.js.
   Téléphone seulement (moins de 1000 px) ; sur ordinateur le bandeau est caché et la page ne change pas. */
.ac8-hero { display: none; }
/* Onglet de la barre du bas montré sur téléphone seulement (Kilomètres du chauffeur, owner 2026-12-02, retour 10). */
@media (min-width: 1000px) { .tabs.mode-tabs button.tab-mob { display: none; } }
@media (max-width: 999px) {
  .settings.ac8 > h1 { display: none; }
  .ac8-hero {
    display: block; margin: 0 -16px; padding: 22px 16px 46px; text-align: center;
    background: #0f1f3d; color: #fff;
  }
  .ac8-ring {
    display: inline-block; padding: 4px; border: 0; border-radius: 50%; cursor: pointer;
    background: conic-gradient(var(--gold), #f6efe1, var(--gold));
  }
  .ac8-ring .drv-ava.xl { width: 116px; height: 116px; font-size: 38px; box-shadow: 0 0 0 4px #0f1f3d; background: linear-gradient(140deg, #d8b874, #b08a3e); color: #fff; }
  .ac8-name { margin: 12px 0 0; font-size: 26px; font-weight: 700; letter-spacing: -.01em; color: #fff; line-height: 1.2; overflow-wrap: anywhere; }
  .ac8-sub { margin: 3px 0 0; font-size: 15px; color: #a9b3c7; }
  /* Type d'abonnement (retour 5, 2026-12-02) : pastille or claire sur le bleu nuit, sous « Société · rôle » */
  .ac8-plan { display: inline-block; margin: 10px 0 0; padding: 4px 12px; border-radius: 99px; border: 1px solid rgba(201, 164, 92, .55); background: rgba(201, 164, 92, .16); color: #e6cb93; font-size: 13px; font-weight: 800; line-height: 1.3; }
  .ac8-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 20px; }
  .ac8-tile {
    display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 0;
    padding: 14px 4px 12px; border: 0; border-radius: 18px; cursor: pointer;
    background: rgba(255, 255, 255, .07); color: #dfe4ee; font: inherit; font-size: 12px; font-weight: 600;
    transition: background .3s, color .3s;
  }
  .ac8-tile span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .ac8-tile svg { width: 24px; height: 24px; fill: none; stroke: var(--gold); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; transition: stroke .3s; }
  .ac8-tile:active { background: rgba(255, 255, 255, .14); }
  /* Feuille claire aux coins arrondis qui remonte sur le bandeau : lien Aide + rubriques + Se déconnecter. */
  .settings.ac8 > .ac8-hero { position: relative; }
  .settings.ac8 > .ac8-hero::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 28px;
    background: var(--bg); border-radius: 28px 28px 0 0;
  }
  .ac8-qr { text-align: center; }
  .overlay .dialog.ac8-qr h2 { margin: 0 0 6px; text-align: center; justify-content: center; }   /* titre en flex (fenêtres de l'app) */
  .ac8-qr-img { width: 220px; height: 220px; margin: 16px auto 10px; }
  .ac8-qr-img svg { width: 100%; height: 100%; display: block; border-radius: 12px; }
  .ac8-qr-url { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; margin-bottom: 14px; }
  .ac8-qr .btns { justify-content: center; }
  /* Pas encore de page de réservation : grand QR en pointillés, explication, bouton (owner, 2026-12-02, retours 3 et 7). */
  .ac8-qr-empty { width: 96px; height: 96px; margin: 14px auto 12px; display: grid; place-items: center; border: 1.5px dashed var(--line, #d8dbe3); border-radius: 20px; }
  .ac8-qr-empty svg { width: 46px; height: 46px; fill: none; stroke: var(--gold); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
  .ac8-qr-lock, .ac8-qr-note { margin: 10px 0 16px; font-size: 13px; font-weight: 600; color: var(--gold); }
  .ac8-qr-note { color: var(--muted); font-weight: 500; }
  /* Tuile Charte du chauffeur : bouclier vert dans un rond vert, nombre rouge des documents à signer (owner, 2026-12-02, retour 8). */
  .ac8-tile { position: relative; }
  .ac8-t-chr svg { box-sizing: content-box; padding: 5px; margin: -5px; border-radius: 50%; background: rgba(37, 211, 102, .16); stroke: #3ddc84; }
  .ac8-t-chr span { color: #9ff0c0; }
  .ac8-tile .ac8-badge { position: absolute; top: 6px; right: calc(50% - 26px); margin: 0; }
}
@media (max-width: 999px) and (hover: hover) {
  .ac8-tile:hover { background: #fff; color: #0f1f3d; }
  .ac8-tile:hover svg { stroke: #0f1f3d; }
  .ac8-t-chr:hover svg { stroke: #16a34a; background: rgba(22, 163, 74, .12); }
  .ac8-t-chr:hover span { color: #0f1f3d; }
}

/* Tuiles Documents / Véhicule : la rubrique ouverte apparaît en fondu pendant que la page glisse (owner, 2026-12-02). */
@keyframes ac8In { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
details.sec.ac8-in[open] > :not(summary) { animation: ac8In .42s cubic-bezier(.22, 1, .36, 1) both; }
@media (prefers-reduced-motion: reduce) { details.sec.ac8-in[open] > :not(summary) { animation: none; } }
