/*
 * « La famille ECOON » (3 nov. 2026, forme validée par Adib) : le même pied de page sur les quatre sites
 * (app/views/partials/famille-ecoon.php). Quatre cartes sur une rangée, 2 x 2 sur téléphone. Chaque carte : le nom
 * du site, une ligne, une flèche. La carte du site où l'on est porte « Vous êtes ici » et n'est pas un lien.
 *
 * La règle des 5 couleurs d'ECOON : l'encre pour lire, le gris pour le secondaire, UN seul vert (#047857) pour
 * l'action (la flèche). Cartes blanches sur le fond du pied, JAMAIS de bordure colorée : sur un fond clair, le
 * même filet neutre que partout ; sur le fond sombre d'ecoon.ca, rien. Au survol, la carte monte et la flèche
 * avance : aucun soulignement.
 *
 * Chaque site garde ses polices et ses couleurs d'encre : .fam--ecoon, .fam--outils, .fam--entrainement et
 * .fam--toutcompte reprennent les variables de sa feuille (circulaire.css, ecoon.css, toutcompte.css).
 */
.fam {
  --fam-encre: #111827;
  --fam-gris: #4B5563;
  --fam-vert: #047857;
  --fam-titre: #4B5563;
  --fam-pastille: #F3F4F6;
  --fam-filet: rgba(17, 24, 39, .08);
  --fam-ombre: 0 1px 2px rgba(17, 24, 39, .06);
  --fam-police: inherit;
  --fam-mono: inherit;
  --fam-ressort: cubic-bezier(.34, 1.56, .64, 1);
  font-family: var(--fam-police);
}
.fam *, .fam *::before, .fam *::after { box-sizing: border-box; }
.fam__dedans { max-width: 1120px; margin: 0 auto; }
.fam__titre { margin: 0 0 14px; font-family: var(--fam-mono); font-size: 11.5px; font-weight: 700; line-height: 1.2; letter-spacing: .12em; text-transform: uppercase; color: var(--fam-titre); }
.fam__cartes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.fam__cartes > li { display: flex; margin: 0; padding: 0; }
.fam__cartes > li::before { content: none; }
.fam__carte { position: relative; flex: 1; display: flex; flex-direction: column; gap: 4px; min-height: 112px; padding: 16px 16px 50px; border-radius: 16px; background: #fff; box-shadow: var(--fam-ombre), inset 0 0 0 1px var(--fam-filet); color: var(--fam-encre); text-align: left; transition: transform .3s var(--fam-ressort), box-shadow .3s; }
.fam a.fam__carte, .fam a.fam__carte:hover, .fam a.fam__carte:focus { text-decoration: none; border-bottom: 0; color: var(--fam-encre); }
@media (hover: hover) {
  .fam a.fam__carte:hover { transform: translateY(-3px); box-shadow: 0 16px 30px -16px rgba(17, 24, 39, .4), inset 0 0 0 1px var(--fam-filet); }
  .fam a.fam__carte:hover .fam__fleche { transform: translateX(4px); }
}
.fam a.fam__carte:focus-visible { outline: 2px solid var(--fam-vert); outline-offset: 3px; }
.fam__nom { display: block; font-size: 17px; font-weight: 900; line-height: 1.2; letter-spacing: -.01em; color: var(--fam-encre); }
.fam__ligne { display: block; font-size: 13.5px; font-weight: 600; line-height: 1.4; color: var(--fam-gris); }
.fam__fleche { position: absolute; left: 16px; bottom: 14px; display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: var(--fam-vert); color: #fff; font-size: 14px; font-weight: 900; line-height: 1; transition: transform .3s var(--fam-ressort); }
.fam__ici { position: absolute; left: 16px; bottom: 14px; padding: 5px 10px; border-radius: 999px; background: var(--fam-pastille); font-family: var(--fam-mono); font-size: 11px; font-weight: 700; line-height: 1; letter-spacing: .08em; text-transform: uppercase; color: var(--fam-encre); }

@media (max-width: 720px) {
  .fam__cartes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .fam__carte { min-height: 0; padding: 14px 14px 48px; border-radius: 14px; }
  .fam__nom { font-size: 15.5px; }
  .fam__ligne { font-size: 12.5px; }
  .fam__fleche, .fam__ici { left: 14px; bottom: 13px; }
}
@media (prefers-reduced-motion: reduce) { .fam__carte, .fam__fleche { transition: none; } }

/* ecoon.ca : dans le pied sombre (.ec-pied), sous les allées. Cartes blanches posées sur le fond, sans filet. */
.fam--ecoon { --fam-police: var(--ec-titre, 'Montserrat', system-ui, sans-serif); --fam-mono: var(--ec-mono, 'Space Mono', ui-monospace, monospace); --fam-titre: #D1D5DB; --fam-filet: transparent; --fam-ombre: none; margin-top: clamp(56px, 7vw, 90px); }
.fam--ecoon .fam__dedans { max-width: none; }

/* outils.ecoon.ca et entrainement.ecoon.ca : la bande grise de la coquille, au-dessus de la ligne du pied. */
.fam--outils, .fam--entrainement { padding: 22px 16px 24px; background: #F9FAFB; box-shadow: inset 0 -1px 0 rgba(14, 20, 16, .08); }
.fam--outils .fam__dedans, .fam--entrainement .fam__dedans { max-width: 72rem; }
.fam--outils .fam__titre, .fam--entrainement .fam__titre { letter-spacing: .06em; color: #6B7280; }
@media (min-width: 640px) { .fam--outils, .fam--entrainement { padding: 26px 24px 28px; } }
@media (min-width: 1024px) { .fam--outils, .fam--entrainement { padding: 30px 32px; } }

/* toutcompte.ecoon.ca : sur le papier de l'accueil, comme ses feuilles (toutcompte.css). */
.fam--toutcompte { --fam-police: var(--police); --fam-mono: var(--mono); --fam-encre: var(--encre); --fam-gris: var(--gris); --fam-titre: var(--gris-clair); --fam-pastille: var(--pale); --fam-filet: transparent; --fam-ombre: var(--feuille); padding: 34px 20px 0; }
