/* ==========================================================================
   Page PUBLIQUE « Suivez le canon en direct » (/direct) — lot 7.
   Ouverte sans connexion, sur le téléphone de quelqu'un du public (code QR).
   Fond CLAIR (ce n'est pas un écran d'affichage), gros textes lisibles dehors.
   Aucune animation en boucle, aucun clignotement.
   ========================================================================== */
.dp { max-width: 560px; margin: 0 auto; padding: 16px max(16px, env(safe-area-inset-right)) calc(28px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); }
.dp-tete { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.dp-logo { width: 158px; height: auto; padding: 6px 10px; border: 1px solid var(--bordure); border-radius: var(--rayon); background: #ffffff; }
.dp-langues { display: flex; gap: 6px; }
.dp-langue {
  min-width: 48px; min-height: 48px; padding: 0 10px; border: 2px solid var(--bordure); border-radius: 999px;
  background: var(--surface); color: var(--texte); cursor: pointer;
  font-family: var(--police-titre); font-weight: 700; font-size: 1.1rem; letter-spacing: .06em;
  transition: transform var(--rapide) var(--sortie);
}
.dp-langue:active { transform: scale(.95); }
.dp-langue:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.dp-langue[aria-pressed="true"] { background: var(--noir); border-color: var(--noir); color: var(--jaune); }

.dp-surtitre {
  margin: 22px 0 2px; color: var(--texte-doux);
  font-family: var(--police-titre); font-weight: 700; font-size: 1.05rem; letter-spacing: .12em; text-transform: uppercase;
}
.dp-evenement { margin: 0 0 16px; font-size: clamp(1.9rem, 8vw, 2.6rem); text-transform: uppercase; text-wrap: balance; overflow-wrap: anywhere; }

.dp .carte { text-align: center; margin-bottom: 14px; padding: 22px 16px; }
.dp p { margin: 0; }
.dp-titre { font-family: var(--police-titre); font-weight: 700; font-size: clamp(1.45rem, 6.2vw, 1.9rem); line-height: 1.1; text-transform: uppercase; text-wrap: balance; }
.dp-heure {
  margin-top: 2px !important; font-family: var(--police-titre); font-weight: 800; line-height: .95;
  font-size: clamp(5.4rem, 31vw, 9.5rem); font-variant-numeric: tabular-nums; letter-spacing: -.01em;
}
.dp-heure[hidden], .dp-depart[hidden], .dp-compte[hidden], .dp-alerte[hidden], .dp-compteur[hidden], .dp-compteur-chiffre[hidden] { display: none; }
.dp-depart { margin-top: 4px !important; color: var(--texte-doux); font-weight: 600; font-size: clamp(1.15rem, 5vw, 1.45rem); line-height: 1.2; text-wrap: balance; overflow-wrap: anywhere; }
.dp-compte { margin-top: 18px; padding: 12px 14px 14px; border-radius: var(--rayon); background: var(--noir); color: var(--jaune); }
.dp-compte-titre { color: #f4f2ea; font-family: var(--police-titre); font-weight: 700; font-size: 1.05rem; letter-spacing: .12em; text-transform: uppercase; }
.dp-compte-valeur { font-family: var(--police-titre); font-weight: 800; font-size: clamp(3.4rem, 19vw, 5.4rem); line-height: 1; font-variant-numeric: tabular-nums; }
.dp-compte[data-genre="chiffre"] .dp-compte-valeur { font-size: clamp(4.6rem, 26vw, 7rem); }
.dp-compte[data-genre="imminent"] .dp-compte-valeur { font-size: clamp(2.4rem, 12.5vw, 3.6rem); line-height: 1.15; }

/* Rien de prévu, départ en retard, suivi fermé : la phrase seule, sans heure. */
body[data-genre="aucun"] .dp-titre, body[data-genre="retard"] .dp-titre, body[data-genre="ferme"] .dp-titre, body[data-genre="chargement"] .dp-titre { text-transform: none; font-size: clamp(1.6rem, 7vw, 2.1rem); }
body[data-genre="chargement"] .dp-titre { color: var(--texte-doux); }
body[data-genre="ferme"] .dp-surtitre { visibility: hidden; }

/* L'alerte : aplat jaune fixe, lettres noires (aucun clignotement). */
.dp-alerte {
  margin-bottom: 14px; padding: 16px 14px 18px; border: 4px solid var(--noir); border-radius: var(--rayon-grand); text-align: center;
  background: var(--jaune); color: var(--noir);
}
.dp-alerte-titre { font-family: var(--police-titre); font-weight: 800; font-size: clamp(1.7rem, 7.6vw, 2.4rem); line-height: 1.05; text-transform: uppercase; text-wrap: balance; }
.dp-alerte-oreilles { margin-top: 6px !important; font-weight: 700; font-size: clamp(1.15rem, 5vw, 1.4rem); }

.dp-compteur-chiffre { font-family: var(--police-titre); font-weight: 800; font-size: clamp(4rem, 22vw, 6rem); line-height: .95; font-variant-numeric: tabular-nums; color: var(--vert-fonce); }
.dp-compteur-texte { font-family: var(--police-titre); font-weight: 700; font-size: clamp(1.25rem, 5.4vw, 1.6rem); line-height: 1.1; text-transform: uppercase; text-wrap: balance; }

.dp-etat { min-height: 1.5em; text-align: center; color: var(--texte-doux); font-size: .98rem; }
.dp-etat.est-perime { color: #8a1c12; font-weight: 700; }
.dp-pied { margin-top: 18px !important; text-align: center; color: var(--texte-doux); font-size: .95rem; }

/* (lot 9a) Rien ne bouge : la page garde toujours sa largeur (elle ne se resserre plus autour de son
   texte), et l'alerte des 10 dernières secondes s'affiche PAR-DESSUS la page, juste SOUS l'en-tête : elle ne
   pousse ni l'heure ni le compte à rebours vers le bas, et ne cache jamais les boutons de langue (FR / EN / DE).
   L'ancre a une hauteur nulle : elle ne prend aucune place. */
.dp { width: 100%; }
.dp-ancre-alerte { position: relative; z-index: 30; height: 0; }
.dp-alerte {
  position: absolute; top: 8px; left: 0; right: 0;
  margin: 0; box-shadow: var(--ombre-forte);
}

/* (lot 9) Écran très étroit (320 px, ancien iPhone SE) : le logo se fait un peu plus petit pour que les trois
   boutons de langue tiennent en entier (« DE » dépassait de 22 px). Taille fixe pour cette largeur : rien ne bouge. */
@media (max-width: 359px) {
  .dp-logo { width: 116px; }
  .dp-langues { gap: 4px; }
}
