/* Page « Les 144 Dahoman » : chaque carte tombe le masque comme les 5 Phares de l'accueil */
.g-haut { padding-top: clamp(32px, 6vw, 64px); }
.g-filtres { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 8px; }
.g-filtres input[type=search], .g-filtres select { font: inherit; color: var(--texte); background: var(--fond-3); border: 1px solid var(--bord); border-radius: 12px; padding: 10px 14px; min-height: 44px; min-width: 0; }
.g-filtres input[type=search] { flex: 1 1 220px; }
.g-filtres select { flex: 1 1 150px; }
.g-bascule { display: inline-flex; border: 1px solid var(--bord-fort); border-radius: 12px; overflow: hidden; flex: 1 1 auto; }
.g-bascule button { flex: 1; font: 700 .95rem var(--police-texte); color: var(--texte); background: transparent; border: 0; padding: 10px 14px; min-height: 44px; cursor: pointer; white-space: nowrap; }
.g-bascule button[aria-pressed="true"] { background: var(--or); color: var(--encre); }
.g-compteur { color: var(--texte-doux); font-size: .95rem; margin: 6px 0 18px; }
.g-grille { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 600px) { .g-grille { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 28px 18px; } }
.g-item { display: flex; flex-direction: column; min-width: 0; }
.g-visuel {
  position: relative; width: 100%; aspect-ratio: 360 / 504; border-radius: 5.1% / 3.65%; overflow: hidden; isolation: isolate;
  box-shadow: var(--ombre), 0 0 0 1px var(--bord); background: var(--fond-3);
}
.g-face { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.g-face--m { z-index: 2; transform-origin: 50% 0; transition: transform .8s cubic-bezier(.55, -0.3, .7, 1), opacity .45s ease .32s; }
.g-face--e { z-index: 1; transform: scale(1.07); filter: brightness(.45) saturate(.6); transition: transform 1s cubic-bezier(.2, .8, .2, 1) .2s, filter .7s ease .2s; }
.g-visuel::after { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; border-radius: inherit; background: radial-gradient(circle at 50% 30%, rgba(255, 236, 170, .55), transparent 60%); opacity: 0; }
.g-item.est-eveille .g-face--m { transform: translateY(32%) rotate(-7deg) scale(.92); opacity: 0; }
.g-item.est-eveille .g-face--e { transform: none; filter: none; }
.g-item.est-eveille .g-visuel::after { animation: eclat .9s ease-out .25s; }
.g-bouton {
  position: absolute; inset: 0; z-index: 4; width: 100%; padding: 0 0 5%;
  display: flex; align-items: flex-end; justify-content: center;
  background: transparent; border: 0; border-radius: inherit; cursor: pointer; color: inherit; font: inherit; -webkit-tap-highlight-color: transparent;
}
.g-bouton:focus-visible { outline: 3px solid var(--creme); outline-offset: -5px; }
.g-indice {
  display: inline-flex; align-items: center; gap: 5px;
  font: 800 .74rem/1 var(--police-texte); letter-spacing: .03em;
  background: rgba(18, 13, 10, .86); color: var(--or); border: 1px solid var(--bord-fort);
  padding: 7px 11px; border-radius: 999px; box-shadow: 0 4px 14px rgba(0, 0, 0, .5); transition: background-color .2s, color .2s;
}
.g-indice svg { width: 12px; height: 12px; }
.g-bouton:hover .g-indice, .g-bouton:focus-visible .g-indice { background: var(--or); color: var(--encre); }
.g-item--scelle.refuse .g-face--m { animation: secousse .6s ease; }
.g-bulle {
  position: absolute; left: 6%; right: 6%; top: 30%; z-index: 5; margin: 0;
  background: var(--creme); color: var(--encre); border-radius: 14px; padding: 10px 12px;
  font: 800 .84rem/1.35 var(--police-texte); text-align: center; box-shadow: 0 10px 30px rgba(0, 0, 0, .6);
  opacity: 0; transform: translateY(10px) scale(.96); pointer-events: none; transition: opacity .25s ease, transform .25s ease;
}
.g-bulle:empty { padding: 0; }
.g-item--scelle.montre-bulle .g-bulle { opacity: 1; transform: none; }
.g-num { font: 700 .78rem var(--police-texte); color: var(--texte-doux); margin: 10px 0 0; }
.g-nom { font: 800 1.08rem/1.15 var(--police-titre); color: var(--creme); margin: 2px 0 2px; overflow-wrap: anywhere; }
.g-fiche { font-size: .82rem; color: var(--texte-doux); line-height: 1.35; margin: 0; }
.g-type { color: var(--c); font-weight: 800; filter: brightness(1.3); }
.g-aucun { color: var(--texte-doux); }
.g-liens { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
/* Le lien discret vers le Coin des parents (page des adultes) */
.g-parents { margin: 22px 0 0; font-size: .9rem; }
.g-parents a { display: inline-flex; align-items: center; min-height: 44px; color: var(--texte-doux); font-weight: 700; }
.g-parents a:hover { color: var(--or); }
.btn--contour { border: 1px solid var(--bord-fort); color: var(--or); background: transparent; }
@media (prefers-reduced-motion: reduce) {
  .g-face--m, .g-face--e { transition: opacity .25s ease !important; transform: none !important; }
  .g-item.est-eveille .g-face--m { transform: none !important; }
  .g-item.est-eveille .g-visuel::after { animation: none; }
}
