/* Galerie des tutoriels des familles (option A choisie par le propriétaire le 21 novembre 2026 : moins de texte, des
   cartes illustrées avec l'écran réel, du mouvement, une grille pleine). Héros de nuit avec la carte « Commencer ici »,
   puces de sujet (collantes), grille de 3 × 6 (2 colonnes sur téléphone), et la fiche de chaque tutoriel (.tg-sheet :
   vidéo et étapes) par-dessus la page. Couleur de chaque sujet : data-g. */
[data-g="start"] { --acc: #E0A526; }
[data-g="kids"] { --acc: #E8789A; }
[data-g="family"] { --acc: #3FA98F; }
[data-g="organize"] { --acc: #7E86F0; }
.tg-head { display: grid; gap: 32px; align-items: center; }
.tg-head .lead { max-width: 30rem; }
@media (min-width: 900px) { .tg-head { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 64px; } }
.tg-feat { --acc: #F4BE45; display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 20px; align-items: center; padding: 16px; border-radius: 28px; background: linear-gradient(150deg, rgba(244, 190, 69, .2), rgba(255, 255, 255, .05)); border: 1px solid rgba(244, 190, 69, .38); color: #fff; text-decoration: none; transition: translate .4s cubic-bezier(.2, .7, .2, 1), box-shadow .4s; }
.tg-feat:hover { translate: 0 -6px; box-shadow: 0 40px 70px -30px rgba(244, 190, 69, .55); }
.tg-feat .tg-vis { height: auto; aspect-ratio: 9 / 15; border-radius: 22px; background: linear-gradient(160deg, rgba(244, 190, 69, .45), rgba(244, 190, 69, .08)); }
.tg-feat .tg-crop { width: 78%; height: 90%; }
.tg-feat .tg-go { opacity: 1; scale: 1; translate: -50% -50%; }
.tg-feat .tg-txt { padding: 0; }
.tg-feat .tg-k { color: #F4BE45; }
.tg-feat .tg-h { font-size: clamp(1.3rem, 1rem + 1.2vw, 2rem); line-height: 1.12; color: #fff; margin: 0; letter-spacing: -.01em; }
.tg-feat .tg-dur { position: static; margin-top: 16px; }
.tg-feat .tg-txt { display: flex; flex-direction: column; align-items: flex-start; }
@media (min-width: 900px) { .tg-feat { grid-template-columns: 210px minmax(0, 1fr); gap: 28px; padding: 22px; border-radius: 32px; } }
.tg-bar { position: sticky; top: var(--tg-top, 64px); z-index: 20; background: color-mix(in srgb, var(--paper) 88%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); scroll-margin-top: 0; }
.tg-chips { display: flex; gap: 10px; overflow-x: auto; padding: 12px 0; scrollbar-width: none; }
.tg-chips::-webkit-scrollbar { display: none; }
.tg-chips button { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font: 600 16px/1 var(--text); cursor: pointer; transition: background .25s, color .25s, translate .25s; }
.tg-chips button i { width: 10px; height: 10px; border-radius: 50%; background: var(--acc); }
.tg-chips button b { font-weight: 600; color: var(--ink2); }
.tg-chips button[aria-pressed="true"] { background: var(--indigo); color: var(--on-indigo); border-color: transparent; }
.tg-chips button[aria-pressed="true"] b { color: inherit; opacity: .75; }
.tg-chips button:hover { translate: 0 -2px; }
.tg-chips button:focus-visible { outline: 3px solid var(--indigo); outline-offset: 2px; }
.tg-grid-sec { padding: 28px 0 var(--sect); }
.tg-grid { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.tg-card { flex: 0 0 calc((100% - 14px) / 2); display: flex; }
.tg-card[hidden] { display: none; }
@media (min-width: 900px) { .tg-grid { gap: 26px; } .tg-card { flex-basis: calc((100% - 52px) / 3); } }
.tg-a { flex: 1; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; color: var(--ink); text-decoration: none; transition: translate .45s cubic-bezier(.2, .7, .2, 1), box-shadow .45s, rotate .45s; }
@media (min-width: 900px) { .tg-a { border-radius: 28px; } }
.tg-a:hover { translate: 0 -10px; rotate: -.6deg; box-shadow: 0 34px 60px -28px color-mix(in srgb, var(--acc) 75%, transparent); }
.tg-a:focus-visible, .tg-feat:focus-visible { outline: 3px solid var(--indigo); outline-offset: 3px; }
.tg-vis { position: relative; height: 190px; display: grid; place-items: end center; overflow: hidden; background: linear-gradient(160deg, color-mix(in srgb, var(--acc) 34%, var(--card)), color-mix(in srgb, var(--acc) 6%, var(--card))); }
@media (min-width: 600px) { .tg-vis { height: 240px; } }
@media (min-width: 1100px) { .tg-vis { height: 290px; } }
.tg-crop { width: 64%; height: 88%; border: 6px solid var(--bezel); border-bottom: 0; border-radius: 22px 22px 0 0; overflow: hidden; background: #fff; box-shadow: 0 20px 40px -18px rgba(0, 0, 0, .45); transition: translate .5s cubic-bezier(.2, .7, .2, 1); }
.tg-feat .tg-crop { border-bottom: 6px solid var(--bezel); border-radius: 22px; place-self: center; }
.tg-shot { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.tg-a:hover .tg-crop { translate: 0 -8px; }
.tg-ic { position: absolute; left: 10px; top: 10px; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; background: var(--card); color: color-mix(in srgb, var(--acc) 80%, var(--ink)); box-shadow: 0 8px 18px -8px rgba(0, 0, 0, .3); }
.tg-ic .v-svg { width: 19px; height: 19px; }
@media (min-width: 900px) { .tg-ic { left: 14px; top: 14px; width: 42px; height: 42px; border-radius: 14px; } .tg-ic .v-svg { width: 22px; height: 22px; } }
.tg-feat .tg-ic { display: none; }
.tg-go { position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: #F4BE45; color: #1C1A2C; box-shadow: 0 12px 30px -8px rgba(244, 190, 69, .7); translate: -50% -40%; opacity: 0; scale: .6; transition: opacity .3s, scale .35s cubic-bezier(.2, .9, .3, 1.4), translate .35s; }
.tg-go svg { width: 26px; height: 26px; margin-left: 3px; }
.tg-a:hover .tg-go, .tg-a:focus-visible .tg-go { opacity: 1; scale: 1; translate: -50% -50%; }
.tg-dur { position: absolute; right: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 5px; padding: 6px 10px 6px 8px; border-radius: 999px; background: rgba(20, 18, 36, .8); color: #fff; font: 600 13px/1 var(--text); font-variant-numeric: tabular-nums; }
.tg-dur svg { width: 13px; height: 13px; color: #F4BE45; }
.tg-txt { display: flex; flex-direction: column; padding: 12px 14px 16px; }
@media (min-width: 900px) { .tg-txt { padding: 20px 22px 24px; } }
.tg-k { display: block; margin-bottom: 6px; font: 700 12px/1.2 var(--text); letter-spacing: .08em; text-transform: uppercase; color: color-mix(in srgb, var(--acc) 62%, var(--ink)); }
.tg-a .tg-h { font: 650 15px/1.28 var(--display); margin: 0; letter-spacing: 0; }
@media (min-width: 600px) { .tg-a .tg-h { font-size: 17px; } }
@media (min-width: 1100px) { .tg-a .tg-h { font-size: 19px; } }
/* La fiche d'un tutoriel, par-dessus la page. */
.tg-sheet { display: none; position: fixed; inset: 0; z-index: 200; overflow-y: auto; overscroll-behavior: contain; padding: 0; border: 0; background: rgba(8, 9, 26, .74); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.tg-sheet.open, .tg-sheet:target { display: block; }
html.tg-lock { overflow: hidden; }
.tg-sheet > .wrap { position: relative; display: grid; gap: 18px; max-width: 1000px; margin: 8vh auto 0; padding: 16px 16px 28px; background: var(--card); border-radius: 28px 28px 0 0; min-height: 92vh; align-items: start; }
.tg-sheet .media { order: -1; }
.tg-sheet .reel, .tg-sheet .phone { --pw: 230px; }
.tg-sheet .reel { width: min(100%, 300px); }
.tg-sheet h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.2rem); margin: 6px 52px 0 0; }
.tg-sheet .kicker { margin: 0; }
.tg-sheet .lead { font-size: 16px; margin-top: 10px; color: var(--ink2); }
.tg-sheet .steps { max-width: none; margin-top: 18px; }
.tg-x { position: absolute; right: 14px; top: 14px; z-index: 2; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--ink); }
.tg-x svg { width: 20px; height: 20px; }
.tg-x:hover { background: var(--sunk); }
@media (min-width: 760px) {
  .tg-sheet > .wrap { grid-template-columns: 320px minmax(0, 1fr); gap: 40px; margin: 6vh auto; min-height: 0; padding: 28px; border-radius: 32px; box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .6); }
  .tg-sheet .reel { width: 100%; }
  .tg-sheet .phone { --pw: 280px; }
  .tg-sheet .copy { padding-top: 6px; }
  .tg-x { right: 22px; top: 22px; }
}
/* L'animation des titres au défilement (CHROME_JS) ne joue pas dans une fiche fermée. */
.tg-sheet .v-rv, .tg-sheet .v-rv.in { opacity: 1; translate: none; scale: 1; }
@media (prefers-reduced-motion: no-preference) {
  .tg-shot { animation: tg-scroll 10s ease-in-out infinite; animation-delay: calc(var(--i, 0) * -2.4s); }
  .tg-feat .tg-vis { animation: tg-float 3s ease-in-out infinite alternate; }
  .tg-feat .tg-go { animation: tg-pulse 2s infinite; }
  .tg-card.tg-in { animation: tg-rise .6s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--i, 0) * 90ms); }
  .tg-sheet.open > .wrap { animation: tg-rise .45s cubic-bezier(.2, .7, .2, 1); }
  .tg-sheet.open { animation: tg-fade .3s ease; }
}
@keyframes tg-scroll { 0%, 12% { object-position: 50% 0; } 50%, 62% { object-position: 50% 100%; } 100% { object-position: 50% 0; } }
@keyframes tg-float { from { translate: 0 0; } to { translate: 0 -10px; } }
@keyframes tg-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(244, 190, 69, .55); } 60% { box-shadow: 0 0 0 18px rgba(244, 190, 69, 0); } }
@keyframes tg-rise { from { opacity: 0; translate: 0 30px; } to { opacity: 1; translate: 0 0; } }
@keyframes tg-fade { from { opacity: 0; } }