/* En-tête Conduite, compteurs, onglets. */
.hdr{padding-top:54px}
.hblock{padding:16px;display:flex;flex-direction:column;gap:16px;border-bottom:1px solid #eae3d6}
.trow{display:flex;justify-content:space-between;align-items:center;height:40px}
h1{font-weight:600;font-size:38px;line-height:44px;letter-spacing:-.3px}
.trow .r{display:flex;gap:8px}
.sec{height:40px;padding:0 16px;border:1px solid #563b56;border-radius:4px;background:transparent;color:#563b56;font-weight:600;font-size:16px;line-height:20px;white-space:nowrap}
.pri{height:40px;padding:0 16px;border:0;border-radius:4px;background:#563b56;color:#fff;font-weight:600;font-size:16px;white-space:nowrap}
.bell{width:40px;height:40px;border:0;border-radius:4px;background:#563b56;display:flex;align-items:center;justify-content:center}
.datas{display:flex;height:40px}
.datas>div{flex:1;display:flex;align-items:center;gap:4px}
.datas .ill{width:32px;height:32px}
.big{font-weight:600;font-size:32px;line-height:40px;display:inline-block;transform:scaleX(.84);transform-origin:left;width:0;white-space:nowrap}
.n1{width:22px}
.n2{width:34px}
.lab{font-size:12px;line-height:16px;width:62px;flex:none;padding-left:2px}
.ib2{margin-left:auto}
.tabs{display:flex;gap:8px;padding:16px;height:72px}
.tabs span{height:40px;padding:0 8px;border-radius:4px;display:flex;align-items:center;font-weight:600;font-size:16px;color:#838383}
.tabs span.on{background:#563b56;color:#fff}

/* Sections, intitulés, stickers de mois. */
.cont{padding:16px;display:flex;flex-direction:column;gap:16px}
.cont+.cont{padding-top:0}
.cont.sp{margin-top:24px}
.li{display:flex;justify-content:space-between;align-items:center;padding:8px 0;border-bottom:1px solid #563b56;height:36px}
.li b{font-size:16px;line-height:24px;letter-spacing:.3px;text-transform:uppercase}
.mh{display:flex;align-items:center;justify-content:space-between;justify-content:flex-start;gap:8px}
.mh h2{font-weight:600;font-size:20px;line-height:20px}
.stk{font-weight:600;font-size:12px;line-height:14px;text-transform:uppercase;padding:4px 6px;border-radius:2px;display:inline-block;letter-spacing:.2px}
.pink{background:#e4a4f9;color:#951d12}
.orange{background:#db6e2e;color:#f1ece4}
.list{display:flex;flex-direction:column;gap:16px}

/* Cartes de leçon et leurs variantes (défaut, annulée, nouvel horaire). */
.card{border-radius:8px;padding:16px;display:flex;flex-direction:column;gap:8px;position:relative}
.card.white{background:#fff;border:1px solid #eae3d6}
.card.def{background:#f7f4ee}
.drow{display:flex;justify-content:space-between;align-items:center;height:40px;padding-bottom:16px}
.drow.bb{border-bottom:1px solid #eae3d6}
.dl{display:flex;align-items:center;gap:6px}
.t{font-size:16px;line-height:20px}
.time{font-size:14px;line-height:24px;letter-spacing:.3px}
.idrow{display:flex;justify-content:space-between;align-items:center}
.idrow.pt{padding-top:8px}
.id{display:flex;align-items:center;gap:16px}
.av{width:48px;height:48px;border-radius:4px;object-fit:cover;background:#563b56}
.nm{font-weight:600;font-size:16px;line-height:24px}
.ph{font-size:14px;line-height:24px;letter-spacing:.3px}
.acts{display:flex;gap:8px}
.ib{width:40px;height:40px;border:1px solid #563b56;border-radius:4px;background:transparent;display:flex;align-items:center;justify-content:center}
.dash{border:2px dashed #563b56;padding:14px}
.dash.red{background:#fde4e3}
.dash.cream{background:#fdf8e7}
.dash.cream.w{background:#fdf8e7}
.tag{display:inline-flex;align-items:center;gap:4px;height:24px;padding:0 8px;border-radius:12px;font-weight:600;font-size:14px;line-height:18px;align-self:flex-start}
.tag.red{background:#e2483d;color:#fff}
.tag.yel{margin-bottom:-6px}
.vib{display:inline-flex;transform-origin:50% 60%;animation:vib 1.6s ease-in-out infinite}
@keyframes vib{0%,60%,100%{transform:rotate(0)}64%{transform:rotate(-14deg)}68%{transform:rotate(14deg)}72%{transform:rotate(-12deg)}76%{transform:rotate(12deg)}80%{transform:rotate(-8deg)}84%{transform:rotate(8deg)}88%{transform:rotate(0)}}
.strike{text-decoration:line-through}
.mid{display:flex;justify-content:space-between;align-items:flex-end}
.mid .l{display:flex;flex-direction:column;gap:2px}
.times{text-align:right;display:flex;flex-direction:column}
.times .old{font-size:12px;line-height:16px;text-decoration:line-through;color:#505050;font-weight:600}

/* Carte mise en avant (balayage) et bouton Revoir (pulsation). */
.card.hl{border:1px solid #eae3d6;background:#fff;cursor:pointer;position:relative;overflow:hidden;box-shadow:0 6px 18px -6px rgba(86,59,86,.28)}
.card.hl::before{content:"";position:absolute;inset:0;background:linear-gradient(98deg,rgba(255,255,255,0) 0%,rgba(0,0,0,.13) 50%,rgba(255,255,255,0) 100%);background-size:220% 100%;background-position:100% 0;animation:sweep 3.2s ease-in-out infinite;pointer-events:none}
.card.hl>*{position:relative}
@keyframes sweep{0%{background-position:100% 0}100%{background-position:-100% 0}}
#revoir{position:relative;animation:pulse 2s ease-out infinite}
@keyframes pulse{0%{box-shadow:0 0 0 0 rgba(86,59,86,.45)}70%,100%{box-shadow:0 0 0 10px rgba(86,59,86,0)}}

/* Bloc bleu de progression, bouton désactivé, tab bar. */
.bloc{background:#e9f4fc;border:2px dashed #563b56;border-radius:8px;margin:0 1px;padding:24px 16px;display:flex;flex-direction:column;align-items:center;gap:24px;text-align:center}
.bloc img{width:144px;height:144px;display:block}
.gauge{width:160px;height:6px;background:#eae3d6;border-radius:1px;position:relative}
.gauge i{position:absolute;left:0;top:0;bottom:0;width:32px;background:#438d06;border-radius:1px}
.bloc h3{font-weight:600;font-size:28px;line-height:32px}
.bloc .s{font-size:16px;line-height:24px;color:#505050}
.bloc .e{font-size:14px;line-height:20px}
.dis{height:48px;padding:0 16px;border:0;border-radius:4px;background:#ececec;color:#a8a8a8;font-weight:600;font-size:16px;display:flex;align-items:center;gap:8px;cursor:not-allowed}
.tabbar{height:77px;border-top:1px solid #eae3d6;background:#fff;display:flex;justify-content:space-around;padding-top:8px;position:relative}
.tabbar div{width:98px;height:56px;display:flex;flex-direction:column;align-items:center;gap:4px;font-weight:600;font-size:12px;line-height:14px;color:#838383;padding-top:6px}
.tabbar .on{color:#563b56}

/* Bloc « Rien de prévu » : relance de réservation dans un trou du planning. */
.gapb{background:#f8e7ff;border:2px dashed #563b56;border-radius:8px;margin:0 1px;padding:11px 16px 22px;display:flex;flex-direction:column;align-items:center;gap:13px;text-align:center}
.gapb .gt{display:flex;flex-direction:column;gap:4px}
.gapb .gt b{font-weight:600;font-size:16px;line-height:21px;color:#101010}
.gapb .gt span{font-size:14px;line-height:20px;color:#000}
.gapb button{height:48px;padding:0 24px;border:0;border-radius:4px;background:#563b56;color:#fff;font-weight:600;font-size:16px;line-height:20px;display:flex;align-items:center;gap:8px;white-space:nowrap}

/* Feuille « Leçon passée » : compétences, vidéo, commentaires, note vocale. */
.snav{height:56px;flex:none;display:flex;align-items:center;justify-content:space-between;padding:12px 8px;border-bottom:1px solid #eae3d6}
.snav b{font-weight:600;font-size:16px;line-height:20px}
.snav span{width:32px}
#back{width:32px;height:32px;border:0;background:none;border-radius:4px;display:flex;align-items:center;justify-content:center}
#ssc{flex:1;overflow-y:auto;scrollbar-width:none;min-height:0;touch-action:pan-y}
#ssc::-webkit-scrollbar{display:none}
.sin{display:flex;flex-direction:column;gap:16px;padding:16px 0 0}
.sin>.card.sh{margin:0 16px}
.skills{display:flex;flex-direction:column;gap:24px;padding:16px 16px 8px}
.sk{display:flex;justify-content:space-between;align-items:center;font-size:16px;line-height:24px}
.sk b{font-weight:600}
.err{background:transparent;padding:0 16px 8px;display:flex;flex-direction:column;gap:16px}
.err>.sk{padding-top:0}
.vb{background:#f7f4ee;border-radius:16px;padding:16px;display:flex;flex-direction:column;gap:12px}
.vid{border-radius:8px;overflow:hidden;line-height:0;cursor:pointer}
.vid img{width:100%;display:block}
.vb p{font-size:14px;line-height:24px}
.cm{margin:0 16px;background:#e9f4fc;border-radius:8px;padding:16px;display:flex;flex-direction:column;gap:24px}
.cmh{display:flex;justify-content:space-between;align-items:center}
.cmh .l{display:flex;align-items:center;gap:8px}
.cmh b{font-weight:600;font-size:13px}
.cm p{font-size:16px;line-height:24px;color:rgba(0,0,0,.9)}
.voice{background:rgba(23,114,171,.1);border-radius:4px;padding:16px 32px 16px 16px;display:flex;align-items:center;gap:16px;height:72px}
.pl{width:40px;height:40px;border:0;border-radius:60px;background:#1772ab;display:flex;align-items:center;justify-content:center;flex:none;padding-left:3px}
.wave{display:flex;align-items:center;gap:2px;height:38px;flex:1;overflow:hidden}
.wave i{width:2px;background:#1772ab;border-radius:1px;flex:none;margin-right:2px}

/* Bloc vide « À venir (0) » : illustration, accroche et deux boutons.
   Le bloc fait 359 de large dans les 16px de padding du .cont, d'où le 1px
   de marge qui rend les 17px de marge latérale du Figma. */
.empty{background:#f8e7ff;border-radius:8px;margin:0 1px;padding:24px 31px;display:flex;flex-direction:column;align-items:center;gap:14px}
.empty .ill{position:relative;width:297px;height:108.74px}
.empty .taxi{position:absolute;left:44px;top:0;width:209px;height:108.74px}
/* Le calendrier est incliné : son export est la boîte englobante de 76px,
   centrée sur le carré de 63px posé à 31,4.87. */
.empty .cal{position:absolute;left:24.5px;top:-1.6px;width:76px;height:76px}
.empty .et{display:flex;flex-direction:column;align-items:center;width:297px;text-align:center}
.empty .et b{font-weight:600;font-size:16px;line-height:24px;color:#101010}
.empty .et span{font-size:14px;line-height:20px;color:#000}
.empty .eb{display:flex;flex-direction:column;gap:8px;width:239px;margin-top:4px}
.empty .eb .pri,.empty .eb .sec{height:48px;width:100%;padding:0;cursor:default}


/* Bloc « date estimée » : 359 × 528, sans bordure, tout espacé de 24. */
.edb{background:#e9f4fc;border-radius:8px;margin:0 1px;padding:24px 0 16px;display:flex;flex-direction:column;align-items:center;gap:24px;overflow:hidden;text-align:center}
.edb .ill{position:relative;width:210px;height:240px}
.edb .permis{display:block;width:210px;height:209px}
.edb .gauge{position:absolute;left:25px;top:234px}
.edb .txt{display:flex;flex-direction:column;align-items:center;gap:4px;width:329px}
.edb .txt b{font-weight:600;font-size:28px;line-height:32px;color:#101010;white-space:nowrap}
.edb .txt span{font-size:16px;line-height:22px;color:#125a87}
.edb .txt em{font-style:normal;font-weight:600}
.edb .dis{padding:0 24px}
.edb .dis img{display:block;width:20px;height:20px}
.edb .pr{align-self:stretch;display:flex;justify-content:center;padding-top:16px;border-top:1px solid #fff}
.edb .pr p{width:289px;font-size:12px;line-height:16px;letter-spacing:.3px;color:#505050}


/* Bouton pleine largeur. Les protos qui ont une icône dedans ajoutent leur gap. */
.full{width:100%;height:40px;display:flex;align-items:center;justify-content:center;font-size:16px}

@media (prefers-reduced-motion:reduce){.vib,.card.hl::before,#revoir{animation:none}}
