/* ==========================================================================
   tools-guide.css — Page « Guide des outils » /decouvrir/outils/ (2026-11-05).
   Gabarit : public_site/tools_guide.html ; contenu : accounts/public_tools_guide.py.
   Charte : marine #022559 + vert d'eau #01CDA8 (palette du 2026-11-08) (nouvelle famille de logos). Préfixe .tg-*.
   ========================================================================== */

/* Héros avec orbite des logos */
.tg-hero { padding: 72px 0 28px; background: radial-gradient(700px 360px at 85% 10%, rgba(1, 205, 168, .16), transparent 70%), linear-gradient(180deg, #f6f8fb, #fff); }
.tg-hero__in { display: grid; grid-template-columns: 1.25fr 1fr; gap: 40px; align-items: center; }
.tg-hero h1 { font-size: clamp(30px, 4vw, 46px); line-height: 1.08; color: #022559; margin: 0 0 14px; }
.tg-hero__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.tg-orbit { position: relative; aspect-ratio: 1; max-width: 380px; margin: 0 auto; width: 100%; }
.tg-orbit::before { content: ""; position: absolute; inset: 12%; border: 2px dashed rgba(15, 48, 84, .14); border-radius: 50%; }
.tg-orbit img { position: absolute; left: 50%; top: 50%; width: 15%; aspect-ratio: 1; padding: 2.5%; border-radius: 22%; background: #fff;
  box-shadow: 0 8px 20px rgba(15, 48, 84, .14); transform: translate(-50%, -50%) rotate(calc(var(--i) * 45deg)) translate(0, -38cqw) rotate(calc(var(--i) * -45deg)); }
.tg-orbit { container-type: inline-size; }
/* Respiration douce des logos (décalée par logo) : un mouvement vertical, pas de rotation. */
.tg-orbit img:not(.tg-orbit__core) { animation: tg-float 4.5s ease-in-out infinite; animation-delay: calc(var(--i) * -.55s); }
.tg-orbit img.tg-orbit__core { width: 30%; padding: 4%; transform: translate(-50%, -50%); box-shadow: 0 14px 34px rgba(15, 48, 84, .18); }
@keyframes tg-float { 50% { margin-top: -6px; } }
@media (prefers-reduced-motion: reduce) { .tg-orbit img { animation: none !important; } }
.tg-toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.tg-toc a { padding: 7px 14px; border: 1px solid #dfe5ee; border-radius: 999px; background: #fff; color: #022559; font-weight: 700; font-size: 14px; text-decoration: none; }
.tg-toc a:hover { border-color: #01cda8; color: #00806a; }

/* Cartes des outils */
.tg-tools { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; margin-top: 26px; }
.tg-tool { display: flex; flex-direction: column; gap: 10px; padding: 18px; border: 1px solid #e3e8ef; border-radius: 16px; background: #fff; transition: transform .18s, box-shadow .18s; }
.tg-tool:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(15, 48, 84, .1); }
.tg-tool header { display: flex; align-items: center; gap: 12px; }
.tg-tool header img { flex: none; padding: 4px; border-radius: 12px; background: #f6f8fb; }
.tg-tool h3 { margin: 0; font-size: 17px; color: #022559; }
.tg-tool small { color: #00806a; font-weight: 700; }
.tg-tool ul { margin: 0; padding-left: 18px; color: #2c3a52; font-size: 14.5px; line-height: 1.5; }
.tg-try { margin-top: auto; font-weight: 800; color: #022559; text-decoration: none; }
.tg-try:hover { color: #00806a; }

/* Étapes */
.tg-steps { counter-reset: tg; list-style: none; padding: 0; margin: 26px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.tg-steps li { counter-increment: tg; position: relative; padding: 18px 18px 18px 64px; border-radius: 14px; background: #fff; border: 1px solid #e3e8ef; }
.tg-steps li::before { content: counter(tg); position: absolute; left: 18px; top: 18px; width: 32px; height: 32px; display: grid; place-items: center;
  border-radius: 10px; background: #022559; color: #fff; font-weight: 900; }
.tg-steps li:nth-child(even)::before { background: #01cda8; }
.tg-steps b { display: block; color: #022559; margin-bottom: 4px; }
.tg-steps span { color: #2c3a52; font-size: 14.5px; }
.tg-steps--compact { grid-template-columns: 1fr 1fr; }

/* Mise en page à deux colonnes */
.tg-split { display: grid; grid-template-columns: 1.4fr 1fr; gap: 36px; align-items: center; }
.tg-h-mark { width: 40px; height: 40px; vertical-align: -9px; margin-right: 10px; }
.tg-limits { padding: 22px; border-radius: 16px; background: #ebfbf7; border: 1px solid #bfeee3; }
.tg-limits h3 { margin-top: 0; color: #00806a; }
.tg-limits ul { margin: 0; padding-left: 18px; color: #1f3b36; line-height: 1.55; }

/* Cloud */
.tg-cloud-head { display: flex; align-items: center; gap: 26px; }
.tg-cloud-head img { flex: none; }
.tg-pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 24px; }
.tg-pros, .tg-cons { padding: 22px; border-radius: 16px; background: #fff; border: 1px solid #e3e8ef; }
.tg-pros { border-top: 4px solid #022559; } .tg-cons { border-top: 4px solid #01cda8; }
.tg-pros h3 { color: #022559; margin-top: 0; } .tg-cons h3 { color: #00806a; margin-top: 0; }
.tg-pros-cons ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.tg-pros-cons li { padding-left: 28px; position: relative; color: #2c3a52; font-size: 14.5px; }
.tg-pros-cons li b { display: block; color: #022559; }
.tg-pros li::before { content: "✓"; position: absolute; left: 0; top: 0; color: #022559; font-weight: 900; }
.tg-cons li::before { content: "!"; position: absolute; left: 4px; top: 0; color: #01cda8; font-weight: 900; }

/* Mayele */
.tg-mayele-mark { justify-self: center; padding: 26px; border-radius: 36px; background: #fff; box-shadow: 0 18px 44px rgba(0, 0, 0, .25); }
.tg-btn-orange { background: #01cda8; border-color: #01cda8; color: #10233b; }
.tg-btn-orange:hover { background: #4fdcc2; }

/* Démonstrations */
.tg-demos { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin-top: 24px; }
.tg-demo { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 20px 44px 20px 20px; border-radius: 16px; border: 1px solid #e3e8ef;
  background: linear-gradient(180deg, #fff, #f8fafc); color: #2c3a52; text-decoration: none; transition: border-color .15s, transform .15s; }
.tg-demo:hover { border-color: #01cda8; transform: translateY(-2px); }
.tg-demo b { color: #022559; font-size: 16px; }
.tg-demo i { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-style: normal; font-size: 20px; color: #01cda8; }

@media (max-width: 860px) {
  .tg-hero__in, .tg-split, .tg-pros-cons, .tg-steps--compact { grid-template-columns: 1fr; }
  .tg-orbit { max-width: 280px; }
  .tg-cloud-head { flex-direction: column; align-items: flex-start; }
}
