/* CENSENSE homepage: the "Modèles de code" / "Code templates" section, placed under "Dossiers documentaires".
   Loaded by the two homepages only, after home-layout.css; nothing here reaches another page.

   The section is built with the classes of the dossier section (.home-dossier, .home-dossier-grid, -head, -art, -body, -subtitle, -description, -edition; dossier.css, "Homepage section"),
   so it has the same background, the same layout (a computer: the artwork on the left of the title, the text and the price; a phone: title, artwork, text) and the same entrance.
   Only what is specific to it is defined here: its artwork is a column (round portrait of Audrey, her button, a short note) instead of the folder. */

.home-templates .home-dossier-art { flex-direction: column; gap: 22px; }

/* Audrey's portrait: her cut-out illustration on a pale-blue disc, inside a thin ring. The whole disc is a link to her Telegram demo.
   The button under it leads to the same place and is the one that keyboards and screen readers use, so the disc itself is out of the tab order (tabindex="-1", aria-hidden in the markup). */
.home-templates .audrey-portrait { position: relative; display: block; flex: 0 0 auto; width: min(100%, 330px); aspect-ratio: 1 / 1; margin: 12px 0 0; border-radius: 50%;
  background: radial-gradient(circle at 50% 28%, #eef4ff 0%, #d5e3fb 55%, #b7cdf0 100%);
  box-shadow: 0 26px 48px -8px rgba(0, 7, 28, .5);
  transition: transform var(--m-base, 320ms) var(--m-out, ease), box-shadow var(--m-base, 320ms) var(--m-out, ease); }
.home-templates .audrey-portrait::after { content: ""; position: absolute; inset: -10px; border: 1px solid var(--blue-line); border-radius: 50%; pointer-events: none;
  transition: border-color var(--m-base, 320ms) var(--m-out, ease); }
/* the site gives every lazy image a loading shimmer; this one is a transparent cut-out on a disc, so it must never carry one */
.home-templates .audrey-portrait img { display: block; width: 100%; height: 100%; max-width: none; border-radius: 50%; object-fit: cover; background: none; animation: none; }
/* The Telegram mark on "Découvrir Audrey": the logo supplied by the owner, small and round, before the label and centred on it.
   The button is a flex row whose items the site separates by 20px; for this button that gap is 10px. The mark is decorative (empty alt text):
   the label and the note under the button already say that the link opens Telegram. Its 20px height would make the button 2px taller than before,
   so its vertical margins are -3px: the button keeps its height. */
.home-templates .home-dossier-art > a.button { gap: 10px; }
.home-templates .button-telegram { flex: 0 0 auto; display: block; width: 20px; height: 20px; margin-block: -3px; pointer-events: none; -webkit-user-select: none; user-select: none; }
@media (hover: hover) {
  .home-templates .audrey-portrait:hover { transform: translateY(-3px); box-shadow: 0 32px 54px -8px rgba(0, 7, 28, .55); }
  .home-templates .audrey-portrait:hover::after { border-color: rgba(222, 234, 255, .62); }
}

@media (max-width: 760px) {
  .home-templates .home-dossier-art { gap: 18px; padding-bottom: 14px; }
  .home-templates .audrey-portrait { width: min(64vw, 270px); }
}
@media (prefers-reduced-motion: reduce) {
  .home-templates .audrey-portrait, .home-templates .audrey-portrait::after { transition: none; }
  .home-templates .audrey-portrait:hover { transform: none; }
}
