/* Mon Employé IA : tutoriel « Comment ça marche ? » (écrans du tableau de bord reconstitués) + bandeau « Votre future équipe ». */

/* ---------- Bandeau de portraits (accueil et page tutoriel) ---------- */
.equipe-bande { background: var(--fond); overflow: hidden; }
.equipe-tete { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 34px; }
.equipe-tete .intro { margin-bottom: 0; }
.equipe-defile { display: flex; gap: 20px; width: max-content; animation: equipe-defile 70s linear infinite; padding: 6px 0 18px; }
.equipe-bande:hover .equipe-defile { animation-play-state: paused; }
@keyframes equipe-defile { to { transform: translateX(-50%); } }
.equipe-carte { width: 210px; flex: none; background: #fff; border-radius: 20px; overflow: hidden; box-shadow: var(--ombre); border: 1px solid var(--bordure); transition: transform .25s ease; }
.equipe-carte:hover { transform: translateY(-6px); }
.equipe-carte img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.equipe-carte div { padding: 12px 14px 14px; }
.equipe-carte b { display: block; font-family: 'Bricolage Grotesque', 'Poppins', sans-serif; color: var(--marine); font-size: 17px; }
.equipe-carte span { display: block; color: var(--texte-doux); font-size: 13.5px; line-height: 1.35; }
.equipe-carte i { display: inline-flex; align-items: center; gap: 6px; font-style: normal; font-size: 12px; font-weight: 600; color: #0E9F6E; margin-top: 8px; }
.equipe-carte i::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #10B981; box-shadow: 0 0 0 3px rgba(16,185,129,.18); }
.etapes-suite { margin-top: 42px; text-align: center; }

/* ---------- Page tutoriel ---------- */
.tuto-heros { background: radial-gradient(1200px 500px at 85% -10%, rgba(0,198,188,.22), transparent 60%), var(--marine); color: #fff; padding: 150px 0 70px; }
.tuto-heros h1 { color: #fff; font-size: clamp(34px, 5vw, 60px); max-width: 860px; }
.tuto-heros h1 em { font-style: normal; color: var(--turquoise); }
.tuto-heros p { color: rgba(255,255,255,.82); font-size: 18.5px; max-width: 720px; margin: 20px 0 0; }
.tuto-heros .tuto-visages { display: flex; align-items: center; gap: 14px; margin-top: 30px; color: rgba(255,255,255,.8); font-size: 14.5px; }
.tuto-visages span { display: flex; }
.tuto-visages img { width: 44px; height: 44px; border-radius: 50%; border: 3px solid var(--marine); margin-left: -10px; object-fit: cover; }
.tuto-visages img:first-child { margin-left: 0; }

.tuto { padding: 80px 0 96px; background: var(--fond); }
.tuto-grille { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 44px; align-items: start; }
.tuto-etapes { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; position: sticky; top: 100px; }
.tuto-etape { position: relative; overflow: hidden; display: grid; grid-template-columns: 40px 1fr; gap: 14px; width: 100%; text-align: left; background: #fff; border: 1px solid var(--bordure); border-radius: 18px; padding: 16px 18px; cursor: pointer; font-family: inherit; color: var(--texte); transition: box-shadow .2s, border-color .2s, transform .2s; }
.tuto-etape:hover { transform: translateX(3px); }
.tuto-etape .n { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--fond); color: var(--marine); font-family: 'Bricolage Grotesque', 'Poppins', sans-serif; font-weight: 800; transition: background .2s, color .2s; }
.tuto-etape b { display: block; font-family: 'Bricolage Grotesque', 'Poppins', sans-serif; color: var(--marine); font-size: 16.5px; line-height: 1.25; margin-top: 2px; }
.tuto-etape small { display: none; color: var(--texte-doux); font-size: 14px; line-height: 1.5; margin-top: 6px; }
.tuto-etape.actif { border-color: var(--turquoise); box-shadow: 0 14px 34px rgba(0,198,188,.18); }
.tuto-etape.actif .n { background: var(--turquoise); }
.tuto-etape.actif small { display: block; }
.tuto-etape .barre { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--turquoise); }
.tuto-etape.actif .barre { animation: tuto-barre var(--duree, 8s) linear forwards; }
.tuto.pause .tuto-etape.actif .barre { animation: none; width: 100%; }
@keyframes tuto-barre { to { width: 100%; } }
.tuto-commandes { display: flex; gap: 10px; margin-top: 18px; }
.tuto-commandes button { flex: 1; border: 1px solid var(--bordure); background: #fff; border-radius: 999px; padding: 11px 14px; font: 600 14px 'Figtree', sans-serif; color: var(--marine); cursor: pointer; }
.tuto-commandes button:hover { border-color: var(--marine); }

/* Fenêtre d'application */
.fenetre { background: #0F1520; border-radius: 18px; box-shadow: 0 30px 80px rgba(1,27,63,.28), 0 0 0 1px rgba(1,27,63,.08); overflow: hidden; }
.fenetre-barre { display: flex; align-items: center; gap: 8px; padding: 11px 16px; background: #1A2130; }
.fenetre-barre i { width: 11px; height: 11px; border-radius: 50%; background: #FF5F57; }
.fenetre-barre i:nth-child(2) { background: #FEBC2E; } .fenetre-barre i:nth-child(3) { background: #28C840; }
.fenetre-barre span { margin-left: 14px; flex: 1; max-width: 360px; background: #0F1520; color: #8C97A8; font-size: 12.5px; border-radius: 8px; padding: 5px 12px; }
.appli { display: grid; grid-template-columns: 190px 1fr; height: 540px; color: #E6EAF0; font-size: 13.5px; }
.appli-menu { background: #121926; border-right: 1px solid #222B3A; padding: 16px 12px; display: flex; flex-direction: column; gap: 3px; }
.appli-marque { display: flex; align-items: center; gap: 8px; font-family: 'Bricolage Grotesque', 'Poppins', sans-serif; font-weight: 700; font-size: 15px; color: #fff; padding: 0 6px 14px; }
.appli-marque img { width: 26px; height: 26px; }
.appli-menu a { display: flex; align-items: center; gap: 9px; color: #A9B3C2; padding: 8px 10px; border-radius: 9px; text-decoration: none; font-size: 13px; transition: background .3s, color .3s; }
.appli-menu a svg { width: 16px; height: 16px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.appli-menu a.on { background: rgba(0,198,188,.14); color: #fff; }
.appli-menu .sep { font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: #5D6878; padding: 14px 10px 4px; }
.appli-menu .moi { margin-top: auto; display: flex; align-items: center; gap: 9px; padding: 10px; border-radius: 10px; background: #182131; font-size: 12px; color: #A9B3C2; }
.appli-menu .moi b { width: 28px; height: 28px; border-radius: 50%; background: var(--turquoise); color: var(--marine); display: flex; align-items: center; justify-content: center; font-size: 11px; }
.appli-corps { position: relative; overflow: hidden; }
.scene { position: absolute; inset: 0; padding: 22px 24px; opacity: 0; visibility: hidden; transition: opacity .45s ease, visibility .45s; }
.scene.actif { opacity: 1; visibility: visible; }
.scene h4 { color: #fff; font-size: 19px; margin-bottom: 4px; letter-spacing: -.01em; }
.scene .sous { color: #8C97A8; font-size: 13px; margin-bottom: 16px; }
.scene-tete { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.scene-tete h4 { margin: 0; }
.puce { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; padding: 4px 9px; border-radius: 999px; background: rgba(16,185,129,.14); color: #34D399; }
.puce::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.puce.occupe { background: rgba(239,68,68,.14); color: #F87171; }
.champ-faux { background: #182131; border: 1px solid #263044; border-radius: 10px; padding: 9px 12px; color: #C9D1DC; }

/* Animations communes : un élément .a apparaît quand sa scène devient active, avec un délai --d */
.scene .a { opacity: 0; transform: translateY(10px); }
.scene.actif .a { animation: tuto-entree .5s ease forwards; animation-delay: var(--d, 0s); }
@keyframes tuto-entree { to { opacity: 1; transform: none; } }

/* Scène 1 : catalogue */
.catalogue { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.cat-carte { position: relative; background: #182131; border-radius: 14px; overflow: hidden; border: 2px solid transparent; }
.cat-carte img { display: block; width: 100%; height: 118px; object-fit: cover; object-position: top; }
.cat-carte div { padding: 8px 10px 10px; }
.cat-carte b { display: block; color: #fff; font-size: 13.5px; }
.cat-carte span { color: var(--turquoise); font-size: 11.5px; }
.scene.actif .cat-carte.choisi { animation: tuto-entree .5s ease forwards, tuto-choix .6s ease 3.2s forwards; animation-delay: var(--d), 3.2s; }
@keyframes tuto-choix { to { border-color: var(--turquoise); box-shadow: 0 0 0 4px rgba(0,198,188,.25); transform: scale(1.03); } }
.cat-carte .recruter { position: absolute; left: 10px; right: 10px; top: 78px; background: var(--turquoise); color: var(--marine); font-weight: 700; font-size: 12.5px; text-align: center; border-radius: 999px; padding: 6px; opacity: 0; transform: scale(.8); }
.scene.actif .choisi .recruter { animation: tuto-pop .4s ease 3.6s forwards; }
@keyframes tuto-pop { to { opacity: 1; transform: none; } }
.curseur { position: absolute; width: 22px; height: 22px; z-index: 5; left: 70%; top: 85%; opacity: 0; pointer-events: none; filter: drop-shadow(0 2px 4px rgba(0,0,0,.5)); }
.scene.actif .curseur { animation: var(--trajet) 3.2s ease .6s forwards; }
@keyframes trajet-1 { 0% { opacity: 0; left: 75%; top: 90%; } 15% { opacity: 1; } 85% { left: 22%; top: 34%; } 92% { transform: scale(.85); } 100% { opacity: 1; left: 22%; top: 34%; transform: none; } }

/* Scène 2 : fiche de poste */
.fiche { display: grid; grid-template-columns: 120px 1fr; gap: 22px; }
.fiche-photo img { width: 120px; height: 120px; border-radius: 22px; object-fit: cover; display: block; }
.fiche-photo b { display: block; color: #fff; margin-top: 10px; font-size: 15px; }
.fiche-photo span { color: #8C97A8; font-size: 12px; }
.fiche-champs { display: grid; gap: 11px; }
.fiche-champs label { display: block; font-size: 11.5px; color: #8C97A8; margin-bottom: 4px; text-transform: uppercase; letter-spacing: .08em; }
.tape { display: inline-block; overflow: hidden; white-space: nowrap; vertical-align: bottom; max-width: 0; }
.scene.actif .tape { animation: tuto-tape var(--t, 1.4s) steps(var(--s, 30)) var(--d, 0s) forwards; }
@keyframes tuto-tape { to { max-width: 100%; } }
.tape-bloc { display: block; overflow: hidden; max-height: 0; }
.scene.actif .tape-bloc { animation: tuto-bloc 2.2s ease var(--d, 0s) forwards; }
@keyframes tuto-bloc { to { max-height: 120px; } }
.bouton-faux { display: inline-flex; align-items: center; gap: 8px; background: var(--turquoise); color: var(--marine); font-weight: 700; border-radius: 999px; padding: 9px 18px; font-size: 13.5px; }
.toast { position: absolute; right: 22px; bottom: 22px; display: flex; align-items: center; gap: 12px; background: #fff; color: var(--marine); border-radius: 14px; padding: 12px 16px; box-shadow: 0 16px 40px rgba(0,0,0,.4); font-size: 13.5px; opacity: 0; transform: translateY(16px); max-width: 330px; }
.toast img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
.toast b { display: block; }
.toast span { color: var(--texte-doux); font-size: 12.5px; line-height: 1.35; display: block; }
.scene.actif .toast { animation: tuto-pop .5s ease var(--d, 5s) forwards; }

/* Scène 3 : tableau de bord */
.equipe-mini { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.emp { background: #182131; border-radius: 14px; overflow: hidden; }
.emp-photo { position: relative; }
.emp-photo img { display: block; width: 100%; height: 150px; object-fit: cover; object-position: top; }
.emp-photo .puce { position: absolute; left: 8px; top: 8px; background: rgba(15,21,32,.75); }
.emp-photo .puce.occupe { background: rgba(15,21,32,.75); }
.emp-infos { padding: 9px 11px 11px; }
.emp-infos b { color: #fff; display: block; font-size: 13.5px; }
.emp-infos span { color: #8C97A8; font-size: 11.5px; display: block; }
.emp-infos p { margin: 8px 0 0; font-size: 11.5px; color: #C9D1DC; background: #0F1520; border-radius: 8px; padding: 7px 8px; line-height: 1.4; min-height: 46px; }
.emp-actions { display: flex; gap: 6px; margin-top: 8px; }
.emp-actions span { flex: 1; text-align: center; background: #222B3A; border-radius: 7px; padding: 5px 0; color: #C9D1DC; font-size: 11px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 14px; }
.stats div { background: #182131; border-radius: 12px; padding: 10px 12px; }
.stats b { display: block; color: #fff; font-family: 'Bricolage Grotesque', 'Poppins', sans-serif; font-size: 22px; }
.stats span { color: #8C97A8; font-size: 11.5px; }

/* Scène 4 : conversation */
.conv { display: flex; flex-direction: column; gap: 10px; height: 410px; justify-content: flex-end; }
.msg { max-width: 76%; padding: 10px 14px; border-radius: 16px; line-height: 1.45; font-size: 13.5px; }
.msg.moi { align-self: flex-end; background: var(--turquoise); color: var(--marine); border-bottom-right-radius: 5px; }
.msg.ia { align-self: flex-start; background: #1E2738; color: #E6EAF0; border-bottom-left-radius: 5px; }
.msg-ia { display: flex; gap: 9px; align-items: flex-end; }
.msg-ia img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.points { display: inline-flex; gap: 4px; padding: 13px 14px; background: #1E2738; border-radius: 16px; }
.points i { width: 6px; height: 6px; border-radius: 50%; background: #8C97A8; animation: tuto-point 1s infinite; }
.points i:nth-child(2) { animation-delay: .15s; } .points i:nth-child(3) { animation-delay: .3s; }
@keyframes tuto-point { 50% { transform: translateY(-4px); opacity: .5; } }
.scene.actif .ephemere { animation: tuto-entree .3s ease var(--d) forwards, tuto-sortie .2s ease var(--f) forwards; }
@keyframes tuto-sortie { to { opacity: 0; height: 0; padding: 0; margin: 0; } }
.saisie { display: flex; gap: 10px; margin-top: 14px; }
.saisie .champ-faux { flex: 1; color: #5D6878; }

/* Scène 5 : canaux */
.canaux { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.canal { display: flex; align-items: center; gap: 12px; background: #182131; border-radius: 14px; padding: 13px 14px; }
.canal .ic { width: 38px; height: 38px; border-radius: 11px; display: flex; align-items: center; justify-content: center; background: #222B3A; flex: none; }
.canal .ic svg { width: 20px; height: 20px; stroke: var(--turquoise); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.canal div { flex: 1; min-width: 0; }
.canal b { display: block; color: #fff; font-size: 13.5px; }
.canal span { display: block; color: #8C97A8; font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inter { width: 38px; height: 22px; border-radius: 999px; background: #2A3446; position: relative; flex: none; }
.inter::after { content: ""; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: #8C97A8; }
.scene.actif .inter { animation: tuto-inter-fond .3s ease var(--d) forwards; }
.scene.actif .inter::after { animation: tuto-inter .3s ease var(--d) forwards; }
@keyframes tuto-inter-fond { to { background: var(--turquoise); } }
@keyframes tuto-inter { to { left: 19px; background: #fff; } }

/* Scène 6 : suivi */
.kanban { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.col { background: #141B28; border-radius: 14px; padding: 10px; min-height: 250px; }
.col h5 { margin: 2px 4px 10px; color: #A9B3C2; font: 600 12px 'Figtree', sans-serif; text-transform: uppercase; letter-spacing: .1em; display: flex; justify-content: space-between; }
.tache { background: #1E2738; border-radius: 10px; padding: 9px 10px; margin-bottom: 8px; font-size: 12.5px; color: #E6EAF0; display: flex; gap: 8px; align-items: center; }
.tache img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; flex: none; }
.tache.fait { color: #8C97A8; text-decoration: line-through; text-decoration-color: rgba(140,151,168,.6); }
.scene.actif .glisse { animation: tuto-glisse 1s ease var(--d) forwards; }
@keyframes tuto-glisse { 0% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateX(60px); } }

/* Sous le tutoriel */
.premiers-pas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.premiers-pas article { background: #fff; border: 1px solid var(--bordure); border-radius: var(--rayon); padding: 28px; box-shadow: var(--ombre); }
.premiers-pas .quand { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--corail); margin-bottom: 10px; }
.premiers-pas h3 { font-size: 21px; margin-bottom: 10px; }
.premiers-pas p { color: var(--texte-doux); margin: 0; }
.tuto-fin { text-align: center; padding: 30px 0 0; }
.tuto-fin .btn { margin: 6px; }

@media (max-width: 1080px) {
    .tuto-grille { grid-template-columns: 1fr; }
    .tuto-etapes { position: static; grid-template-columns: repeat(3, 1fr); }
    .tuto-etape { grid-template-columns: 1fr; padding: 12px; }
    .tuto-etape.actif small { display: none; }
    .tuto-legende { display: block !important; }
}
@media (max-width: 760px) {
    .appli { grid-template-columns: 1fr; height: 520px; }
    .appli-menu { display: none; }
    .tuto-etapes { grid-template-columns: repeat(2, 1fr); }
    .catalogue, .equipe-mini { grid-template-columns: repeat(2, 1fr); }
    .catalogue .cat-carte:nth-child(n+5), .equipe-mini .emp:nth-child(n+3), .stats div:nth-child(n+3) { display: none; }
    .stats { grid-template-columns: 1fr 1fr; }
    .canaux { grid-template-columns: 1fr; }
    .canal:nth-child(n+5) { display: none; }
    .fiche { grid-template-columns: 1fr; }
    .fiche-photo { display: flex; gap: 12px; align-items: center; }
    .fiche-photo img { width: 64px; height: 64px; border-radius: 16px; }
    .kanban { grid-template-columns: 1fr 1fr; } .kanban .col:first-child { display: none; }
    .msg { max-width: 88%; }
    .premiers-pas { grid-template-columns: 1fr; }
    .equipe-carte { width: 170px; }
}
.tuto-legende { display: none; margin-top: 16px; background: #fff; border: 1px solid var(--bordure); border-radius: 16px; padding: 14px 18px; color: var(--texte-doux); }
.tuto-legende b { color: var(--marine); display: block; font-family: 'Bricolage Grotesque', 'Poppins', sans-serif; font-size: 17px; margin-bottom: 4px; }

/* Aperçu figé (?apercu) et mouvement réduit : tout s'affiche sans animation */
.apercu .scene .a, .apercu .tape, .apercu .tape-bloc, .apercu .toast { animation: none !important; opacity: 1; transform: none; max-width: none; max-height: none; }
.apercu .inter { background: var(--turquoise); } .apercu .inter::after { left: 19px; background: #fff; }
.apercu .ephemere, .apercu .glisse, .apercu .curseur { display: none; }
.apercu .scene, .apercu .tuto-etape .barre { transition: none !important; animation: none !important; }
.apercu .cat-carte.choisi { border-color: var(--turquoise); } .apercu .choisi .recruter { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .scene .a, .tape, .tape-bloc, .toast { animation: none !important; opacity: 1 !important; transform: none !important; max-width: none !important; max-height: none !important; }
    .inter { background: var(--turquoise) !important; } .inter::after { left: 19px !important; background: #fff !important; }
    .ephemere, .glisse, .curseur { display: none !important; }
    .equipe-defile { animation: none; flex-wrap: wrap; width: auto; }
}
