/* ============================================================
   OPTERIA : cartes « à tiroir » du labo (19/10/2026, vidéo de référence d'Axel). Posées par outils/generer_blog.py (tiroirs).
   Fermée : la couverture et une flèche. Ouverte : le tiroir glisse sous l'image (titre, durée et métiers,
   Bobby qui résume, ce qu'on trouve dans l'article) et « Lire l'article » apparaît sur l'image. Sans ombre.
   ============================================================ */
.lx-grille:has(.lt-carte) { align-items: start; }
.lt-carte { padding: 6px; border-radius: 28px; }
.lt-carte .lx-carte__lien::after { content: none; }          /* la carte n'est plus un seul grand lien : la flèche ouvre le tiroir */
.lt-carte:has(.lx-carte__lien:focus-visible) { box-shadow: none; }
@media (hover: hover) { .lt-carte:hover, html[data-theme="nuit"] .lt-carte:hover { transform: none; box-shadow: none; } }

.lt-visuel { position: relative; overflow: hidden; border-radius: 22px; aspect-ratio: 4 / 3; background: #fefdf9; }
.lt-couv, .lt-couv img { display: block; width: 100%; height: 100%; }
.lt-couv img { object-fit: cover; transition: transform 1.1s var(--lt-ouvre, cubic-bezier(.22,1,.36,1)); will-change: transform; }
.lt-carte.is-ouvert .lt-couv img { transform: scale(1.03); }

.lt-bande { position: absolute; left: 12px; right: 12px; bottom: 12px; min-height: 32px; display: flex; align-items: center; justify-content: space-between; gap: 8px; pointer-events: none; }
.lt-bande .lx-pastille { background: rgba(255,255,255,.82); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.lt-lire { pointer-events: auto; display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 14px 0 15px; border-radius: 999px;
  background: #191919; color: #fff; font-size: 13.5px; font-weight: 500; letter-spacing: -.005em; white-space: nowrap;
  opacity: 0; transform: translateY(8px) scale(.96); visibility: hidden; transition: opacity .35s ease, transform .5s var(--lx-ressort), visibility 0s .35s, background .2s ease; }
.lt-lire svg { width: 14px; height: 14px; transition: transform .25s ease; }
.lt-lire:hover { background: #000; }
.lt-lire:focus-visible { outline: 2px solid #191919; outline-offset: 2px; } .lt-lire:hover svg { transform: translateX(2px); }
.lt-carte.is-ouvert .lt-lire, .lt-lire:focus-visible { opacity: 1; transform: none; visibility: visible; transition-delay: .08s, .08s, 0s, 0s; }

/* v2 (19/10, demande Axel « plus beau, plus smooth », en ligne le 19/10 avec « Lire l'article » plein et le tiroir aligné à gauche) : ouverture lente et souple, fermeture plus vive,
   contenu qui monte en cascade avec un léger flou, une seule carte ouverte à la fois (labo-tiroir.js). */
.lt-carte { --lt-ouvre: cubic-bezier(.22,1,.36,1); --lt-ferme: cubic-bezier(.4,0,.2,1); }
.lt-tiroir { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--lt-ferme); }
.lt-tiroir__in { min-height: 0; overflow: hidden; }
.lt-carte.is-ouvert .lt-tiroir { grid-template-rows: 1fr; transition: grid-template-rows .75s var(--lt-ouvre); }
.lt-panneau { margin-top: 6px; padding: 22px 20px 20px; border-radius: 22px; background: rgba(41,41,41,.045);
  opacity: 0; transform: translateY(-10px) scale(.985); transform-origin: 50% 0; transition: opacity .25s ease, transform .45s var(--lt-ferme); }
.lt-carte.is-ouvert .lt-panneau { opacity: 1; transform: none; transition: opacity .5s ease .05s, transform .75s var(--lt-ouvre); }
html[data-theme="nuit"] .lt-panneau { background: rgba(255,255,255,.05); }
.lt-panneau > * { opacity: 0; transform: translateY(10px); filter: blur(3px); transition: opacity .2s ease, transform .3s var(--lt-ferme), filter .2s ease; }
.lt-carte.is-ouvert .lt-panneau > * { opacity: 1; transform: none; filter: none; transition: opacity .55s ease, transform .7s var(--lt-ouvre), filter .55s ease; }
.lt-carte.is-ouvert .lt-panneau > :nth-child(1) { transition-delay: .12s; }
.lt-carte.is-ouvert .lt-panneau > :nth-child(2) { transition-delay: .18s; }
.lt-carte.is-ouvert .lt-panneau > :nth-child(3) { transition-delay: .24s; }
.lt-carte.is-ouvert .lt-panneau > :nth-child(4) { transition-delay: .32s; }
.lt-carte.is-ouvert .lt-panneau > :nth-child(5) { transition-delay: .38s; }

.lt-titre { margin: 0; font-size: 18px; font-weight: 400; line-height: 1.3; letter-spacing: -.02em; text-align: left; color: var(--ink); text-wrap: balance; }
.lt-titre a:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.lt-puces { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 6px; margin-top: 12px; padding-bottom: 16px; border-bottom: 1px solid rgba(41,41,41,.08); }
html[data-theme="nuit"] .lt-puces { border-color: rgba(255,255,255,.08); }
.lt-puce { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px; background: rgba(41,41,41,.06); font-size: 12.5px; color: var(--ink-2); }
html[data-theme="nuit"] .lt-puce { background: rgba(255,255,255,.08); }

.lt-carte .lt-dit { max-width: none; margin-top: 16px; padding: 12px 14px 14px; border-radius: 14px; box-shadow: none; }
.lt-carte .lt-dit::after { display: none; }
.lt-carte .lt-dit .lx-dit__txt { font-size: 14.5px; }
html[data-theme="nuit"] .lt-carte .lt-dit { background: rgba(255,255,255,.07); color: var(--ink); }
html[data-theme="nuit"] .lt-carte .lt-dit .lx-dit__tete small { color: var(--ink-3); }
.lt-sur { margin: 16px 0 8px; font-size: 12.5px; font-weight: 500; color: var(--ink-3); }
.lt-idees { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.lt-idees li { position: relative; padding-left: 16px; font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.lt-idees li::before { content: ""; position: absolute; left: 2px; top: .58em; width: 6px; height: 6px; border-radius: 50%; background: #FB4D17; }

.lt-ouvrir { display: grid; place-items: center; width: 100%; height: 48px; margin: 0; padding: 0; border: 0; background: none; color: var(--ink-2); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.lt-ouvrir__rond { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: rgba(41,41,41,.06);
  transition: background .3s ease, color .3s ease, transform .6s var(--lx-ressort); }
html[data-theme="nuit"] .lt-ouvrir__rond { background: rgba(255,255,255,.07); }
.lt-ouvrir svg { width: 16px; height: 16px; transition: transform .6s var(--lt-ouvre); }
.lt-ouvrir:active .lt-ouvrir__rond { transform: scale(.9); }
.lt-ouvrir:focus-visible { outline: none; }
.lt-ouvrir:focus-visible .lt-ouvrir__rond { outline: 2px solid var(--ink); outline-offset: 2px; }
.lt-carte.is-ouvert .lt-ouvrir svg { transform: rotate(180deg); }
.lt-carte.is-ouvert .lt-ouvrir__rond, html[data-theme="nuit"] .lt-carte.is-ouvert .lt-ouvrir__rond { background: var(--ink); color: var(--lt-sur-encre, #fff); }
html[data-theme="nuit"] .lt-carte { --lt-sur-encre: #191919; }
@media (hover: hover) {
  .lt-ouvrir:hover .lt-ouvrir__rond { background: rgba(41,41,41,.11); color: var(--ink); }
  html[data-theme="nuit"] .lt-ouvrir:hover .lt-ouvrir__rond { background: rgba(255,255,255,.13); }
  .lt-carte:not(.is-ouvert) .lt-ouvrir:hover svg { transform: translateY(2px); }
  .lt-carte.is-ouvert .lt-ouvrir:hover .lt-ouvrir__rond, html[data-theme="nuit"] .lt-carte.is-ouvert .lt-ouvrir:hover .lt-ouvrir__rond { background: var(--ink); color: var(--lt-sur-encre, #fff); }
  /* survol de la carte : l'image respire et « Lire l'article » se montre déjà */
  .lt-carte:hover .lt-couv img { transform: scale(1.03); }
  .lt-carte:hover .lt-lire { opacity: 1; transform: none; visibility: visible; transition-delay: 0s; }
}

@media (prefers-reduced-motion: reduce) { .lt-tiroir, .lt-panneau, .lt-panneau > *, .lt-lire, .lt-couv img, .lt-ouvrir svg, .lt-ouvrir__rond { transition: none !important; } }
