/* ===== SIGNATURE MYDMC : « With ♡ by DMC » TOUT EN LONGUEUR, accès discret au panel =====
   27.11.2026 (David) : retour au modèle EN LIGNE de Pizzeria Au Grotto (pied relevé en lecture publique le 27.11 à 02:41) :
   une seule ligne, texte + cœur + logo côte à côte, AUCUN cadre ni pilule (la pilule du 13.11 devenait un petit rond
   où le texte dépassait, vu sur Liv-in et MHL Agency : les règles « .pied a { display:block; padding } » des sites
   écrasaient sa mise en page). Les propriétés de mise en page sont donc posées en !important : aucune règle de lien
   d'un site ne peut plus casser la ligne. Couleur : --mydmc-sig-couleur (réglée par chaque site, clair ou sombre),
   sinon blanc à 55 % (pieds sombres). Logo : masque CSS teint à la couleur du texte, donc juste en clair comme en sombre.
   Source unique : _MIGRATIONS-DUDA/site-unique/commun/racine/assets/ (posé par l'assemblage, ne pas retoucher dans un site). */
.mydmc-sig, .mydmc-cookies { --mydmc-sig-couleur: rgba(255,255,255,0.55); --mydmc-sig-taille: 0.8rem; font-size: 0.8rem; }
.mydmc-cookies:hover { color: rgba(255,255,255,0.9); }
.mydmc-sig {
  --c: var(--mydmc-sig-choix, var(--mydmc-sig-couleur, currentColor));
  display: inline-flex !important; flex-direction: row !important; flex-wrap: nowrap !important; align-items: center; gap: 10px;
  width: auto !important; max-width: none !important; vertical-align: middle;
  font-size: var(--mydmc-sig-taille, inherit); line-height: 1.5; white-space: nowrap !important; color: var(--c);
}
/* Le lien vers mydmc.ch : « With ♡ by » puis le logo, sur la même ligne (Grotto : gap de 8 px, aucun cadre). */
.mydmc-sig a.mydmc-sig-lien {
  position: relative; display: inline-flex !important; flex-direction: row !important; flex-wrap: nowrap !important;
  align-items: center !important; gap: .5em; width: auto !important; height: auto !important; min-width: 0; max-width: none !important;
  margin: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important; background: none !important; box-shadow: none !important;
  white-space: nowrap !important; color: var(--c); font-weight: 400; text-decoration: none; letter-spacing: normal; text-transform: none;
  transition: opacity .2s cubic-bezier(.22,1,.36,1);
}
.mydmc-sig-lien::before { content: none !important; }
.mydmc-sig-lien::after { content: ""; position: absolute; inset: -10px -2px; }      /* zone de toucher de 44 px, sans agrandir la ligne */
.mydmc-sig-texte { display: inline !important; white-space: nowrap !important; line-height: 1.5; }
.mydmc-sig-coeur { font-family: system-ui, -apple-system, "Segoe UI Symbol", sans-serif; font-variant-emoji: text; }
/* Le logo : les lettres « DMC », un peu plus hautes que le texte (Grotto : logo de 24 px pour un texte de 13 px), couleur du texte. */
.mydmc-sig-logo {
  --h: var(--mydmc-sig-h, 1.1em);
  display: block !important; flex: none; width: calc(var(--h) * 3.66) !important; height: var(--h) !important; margin: 0 !important;
  background-color: currentColor;
  -webkit-mask: var(--mydmc-sig-fichier, url("/panel/assets/logos/mydmc-blanc.svg")) no-repeat calc(var(--h) * -.104) calc(var(--h) * -.1273) / calc(var(--h) * 3.857) calc(var(--h) * 1.653);
          mask: var(--mydmc-sig-fichier, url("/panel/assets/logos/mydmc-blanc.svg")) no-repeat calc(var(--h) * -.104) calc(var(--h) * -.1273) / calc(var(--h) * 3.857) calc(var(--h) * 1.653);
}
.mydmc-sig a.mydmc-sig-lien:hover, .mydmc-sig a.mydmc-sig-lien:focus-visible { opacity: .75; }

/* Point discret → /panel/ ; œil au survol et au clavier. Cible de 44 × 44 sans agrandir la ligne. */
.mydmc-sig a.mydmc-point {
  position: relative; display: inline-flex !important; align-items: center; justify-content: center; flex: none;
  width: 44px !important; height: 44px !important; margin: -12px -10px -12px -8px !important; padding: 0 !important; border: 0 !important;
  border-radius: 50%; background: none !important; color: var(--c); text-decoration: none;
}
.mydmc-point::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .55;
  transition: opacity .2s cubic-bezier(.22,1,.36,1), transform .2s cubic-bezier(.22,1,.36,1);
}
.mydmc-oeil {
  position: absolute; width: 16px; height: 16px; opacity: 0; transform: scale(.6);
  transition: opacity .2s cubic-bezier(.22,1,.36,1), transform .2s cubic-bezier(.22,1,.36,1);
}
.mydmc-point:hover::before, .mydmc-point:focus-visible::before { opacity: 0; transform: scale(0); }
.mydmc-point:hover .mydmc-oeil, .mydmc-point:focus-visible .mydmc-oeil { opacity: 1; transform: none; }
.mydmc-sig-lien:focus-visible, .mydmc-point:focus-visible, .mydmc-cookies:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }

/* Bouton « Cookies » (quand le site a un bandeau) : même ligne, même couleur. */
.mydmc-cookies {
  background: none; border: 0; padding: 0; font: inherit; cursor: pointer; color: var(--mydmc-sig-couleur, currentColor);
  min-height: 44px; margin-block: -10px; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px;
  transition: text-decoration-color .2s cubic-bezier(.22,1,.36,1);
}
.mydmc-cookies:hover { text-decoration-color: currentColor; }

/* Repli : sans masque CSS (très vieux navigateur), le texte « MYDMC » remplace le logo. */
@supports not ((mask-size: 1px) or (-webkit-mask-size: 1px)) {
  .mydmc-sig-logo { width: auto !important; height: auto !important; background: none; }
  .mydmc-sig-logo::before { content: "MYDMC"; font-weight: 700; letter-spacing: .04em; }
}
@media (prefers-reduced-motion: reduce) {
  .mydmc-sig-lien, .mydmc-point::before, .mydmc-oeil, .mydmc-cookies { transition: opacity .12s linear; }
  .mydmc-oeil, .mydmc-point:hover::before, .mydmc-point:focus-visible::before { transform: none; }
}
@media (forced-colors: active) { .mydmc-sig-logo { background-color: LinkText; } }
.footer-legal { flex-wrap: wrap; align-items: center; justify-content: flex-end; }
@media (max-width: 768px) { .footer-legal { justify-content: center; } }
