/* Bandeau d'information cookies : discret, fixé en bas, jamais plus large que l'écran (360 px). */
.cookie-notice { position: fixed; z-index: 90; inset-inline: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  max-width: 640px; margin-inline: auto; box-sizing: border-box; display: flex; align-items: center; gap: 12px 16px;
  padding: 12px 14px; background: var(--card, #fff); color: var(--ink, #16141f); border: 1px solid var(--line-strong, #d3d0de);
  border-radius: 14px; box-shadow: var(--shadow-lg, 0 12px 32px rgba(0, 0, 0, .14)); font-size: 13px; line-height: 1.45; }
.cookie-notice[hidden] { display: none; }
.cookie-notice-text { margin: 0; flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.cookie-notice-text a { white-space: nowrap; text-decoration: underline; }
.cookie-notice .cookie-notice-ok { flex: none; min-width: 64px; height: auto; min-height: 36px; }
@media (max-width: 520px) {
  .cookie-notice { flex-direction: column; align-items: stretch; inset-inline: 8px; padding: 12px; }
  .cookie-notice .cookie-notice-ok { width: 100%; min-height: 44px; }
}
/* Petit écran : le bandeau suit le document, sous le pied de page, au lieu de le recouvrir. */
@media (max-width: 720px) {
  .cookie-notice { position: static; inset: auto; bottom: auto; margin: 12px 8px calc(16px + env(safe-area-inset-bottom, 0px));
    max-width: none; width: auto; }
}
/* Grand écran : le bandeau reste fixe, le pied de page garde de la place en dessous. */
@media (min-width: 721px) {
  html.has-cookie-notice .footer { padding-bottom: 132px; }
}
/* Application connectée, téléphone et tablette : la barre d'onglets fixe (shell-nav.css, 900 px et moins, ~64 px de haut)
   porte le bouton « Menu ». Le bandeau (z-index 90, élément flex du <body>) la recouvrait tant que « OK » n'était pas
   touché : le bouton « Menu » ne répondait pas. Le bandeau reste donc AU-DESSUS de la barre, jamais dessus. */
@media (max-width: 900px) {
  .is-app .cookie-notice { z-index: 40; bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 720px) {
  .is-app .cookie-notice { bottom: auto; margin-bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
}
@media print { .cookie-notice { display: none; } }
