/* Alex · onglet Heures & cycle (extrait de l'app). */
/* Cycle */
.cy-synthese{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:0 0 18px}
.cy-tuile{background:var(--carte);border:1px solid rgba(255,255,255,.7);border-radius:var(--rayon);box-shadow:var(--ombre);padding:14px 16px;display:flex;flex-direction:column;gap:2px;min-width:0}
.cy-tuile span{font-size:12px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--doux)}
.cy-tuile b{font-size:clamp(20px,3.2vw,28px);font-weight:650;letter-spacing:-.03em}
.cy-tuile em{font-style:normal;font-size:13px;color:var(--doux)}
.cy-tuile.surplus b{color:var(--vert)} .cy-tuile.deficit b{color:var(--rouge)} .cy-tuile.info b{color:var(--ag)}
.cy-grille{display:grid;grid-template-columns:1fr;gap:14px}
.cy-carte{background:var(--carte);border:1px solid rgba(255,255,255,.7);border-radius:var(--rayon);box-shadow:var(--ombre);padding:18px 20px;border-left:5px solid var(--ligne);min-width:0}
.cy-carte.surplus{border-left-color:#10B981} .cy-carte.deficit{border-left-color:#EF4444} .cy-carte.equilibre{border-left-color:#F59E0B}
@media (prefers-color-scheme:dark){.cy-tuile,.cy-carte{border-color:rgba(255,255,255,.08)}}
.cy-tete{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}
.cy-tete h3{font-size:20px;font-weight:650}
.cy-sous{font-size:13px;color:var(--doux)}
.cy-solde{text-align:right;display:flex;flex-direction:column;gap:4px;align-items:flex-end}
.cy-solde b{font-size:24px;font-weight:650;letter-spacing:-.03em;white-space:nowrap}
.cy-surplus{background:var(--vert-fond);color:var(--vert)} .cy-deficit{background:var(--rouge-fond);color:var(--rouge)} .cy-equilibre{background:var(--orange-fond);color:var(--orange)}
.cy-carte.surplus .cy-solde b{color:var(--vert)} .cy-carte.deficit .cy-solde b{color:var(--rouge)}
.cy-barre{height:8px;border-radius:99px;background:var(--gris-fond);margin:14px 0 12px;overflow:hidden}
.cy-barre i{display:block;height:100%;border-radius:99px;background:linear-gradient(90deg,var(--ag2),var(--ag))}
.cy-carte.surplus .cy-barre i{background:linear-gradient(90deg,#34D399,#059669)} .cy-carte.deficit .cy-barre i{background:linear-gradient(90deg,#FCA5A5,#EF4444)}
.cy-nb{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:0}
.cy-nb dt{font-size:12px;color:var(--doux)} .cy-nb dd{margin:2px 0 0;font-weight:650;font-size:15px}
.cy-abs{margin:10px 0 0;font-size:13px;color:var(--doux)}
.cy-res{margin:10px 0 0;padding:10px 12px 10px 28px;border-radius:14px;background:var(--orange-fond);color:var(--orange);font-size:13px;font-weight:600}
.cy-prop{margin-top:14px;padding-top:14px;border-top:1px solid var(--ligne)}
.cy-lab{display:block;font-size:12px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--doux);margin-bottom:8px}
.cy-choix{display:flex;gap:6px;flex-wrap:wrap}
.cy-choix button{border:1px solid var(--ligne);background:var(--carte2);border-radius:99px;padding:8px 14px;font-weight:650;font-size:14px;color:var(--doux);transition:all .25s var(--ease)}
.cy-choix button.actif{background:var(--ag);border-color:var(--ag);color:#fff;box-shadow:0 8px 16px -10px rgba(var(--ag-rgb),.8)}
.cy-prop textarea{margin-top:10px}
.cy-pied{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:8px}
.cy-ok{font-size:13px;color:var(--vert);font-weight:600}
.cy-bas{margin:18px 4px 0}

/* Ordinateur : barre du haut, page large, grilles */
@media (max-width:560px){.cy-synthese{grid-template-columns:1fr}.cy-nb{grid-template-columns:1fr 1fr}.onglet-tete{flex-direction:column;align-items:flex-start}}
@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}

/* Cycle · pédagogie (30/10/2026) */
.cy-schema{background:var(--carte);border:1px solid rgba(255,255,255,.7);border-radius:var(--rayon);box-shadow:var(--ombre);padding:20px 22px;margin:0 0 18px}
.cy-schema>h3{font-size:12px;font-weight:700;letter-spacing:.09em;text-transform:uppercase;color:var(--ag);margin:0 0 14px}
.cy-etapes{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:1fr;gap:12px;counter-reset:e}
.cy-etapes li{display:flex;gap:12px;align-items:flex-start;background:var(--carte2);border-radius:18px;padding:12px 14px}
.cy-etapes li>b{flex:none;width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(135deg,var(--ag2),var(--ag));color:#fff;font-size:14px}
.cy-etapes strong{display:block;font-size:15px;letter-spacing:-.02em}
.cy-etapes p{margin:3px 0 0;font-size:14px;color:var(--doux);line-height:1.45}
.cy-formule{margin-top:14px;padding:12px 14px;border-radius:16px;background:var(--gris-fond);font-weight:650;font-size:14px;line-height:2;display:flex;flex-wrap:wrap;gap:4px 6px;align-items:center}
.cy-formule span{padding:2px 10px;border-radius:99px;background:var(--carte2)}
.cy-formule .c1{background:var(--ag-lt);color:var(--ag-dp)}.cy-formule .c2{background:#DBEAFE;color:#1D4ED8}.cy-formule .c3{background:var(--rouge-fond);color:var(--rouge)}.cy-formule .c4{background:var(--orange-fond);color:var(--orange)}.cy-formule .c5{background:var(--vert-fond);color:var(--vert)}
.cy-why{margin-top:14px;border-top:1px solid var(--ligne);padding-top:12px}
.cy-why summary{cursor:pointer;font-weight:700;color:var(--ag);list-style:none;display:flex;align-items:center;gap:8px;font-size:15px}
.cy-why summary::-webkit-details-marker{display:none}
.cy-why summary::before{content:"▸";transition:transform .25s var(--ease)}
.cy-why[open] summary::before{transform:rotate(90deg)}
.cy-casc{margin:12px 0 4px;display:flex;flex-direction:column;gap:8px}
.cy-cl{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr) auto;gap:10px;align-items:center;padding:8px 0;border-bottom:1px dashed var(--ligne)}
.cy-ctot{border-bottom:2px solid var(--ligne);font-size:15px}
.cy-cn b{display:block;font-size:14px}.cy-cn span{display:block;font-size:12.5px;color:var(--doux);line-height:1.35;margin-top:1px}
.cy-cb{position:relative;height:12px;background:var(--gris-fond);border-radius:99px;overflow:hidden}
.cy-cb em{position:absolute;left:50%;top:0;bottom:0;width:1px;background:var(--ligne)}
.cy-cb i{position:absolute;top:0;bottom:0;border-radius:99px}.cy-cb i.p{background:linear-gradient(90deg,#34D399,#059669)}.cy-cb i.n{background:linear-gradient(90deg,#EF4444,#FCA5A5)}
.cy-cv{font-weight:700;font-size:14px;white-space:nowrap;text-align:right;min-width:78px}.cy-cv.p{color:var(--vert)}.cy-cv.n{color:var(--rouge)}
.cy-sem{margin-top:14px}.cy-semt{font-size:12px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:var(--doux);margin-bottom:6px}
.cy-graph{position:relative;display:flex;gap:6px;align-items:flex-end;height:170px;padding:22px 0 34px}
.cy-ligne{position:absolute;left:0;right:0;bottom:calc(34px + (170px - 56px) * var(--ref) / 100);border-top:2px dashed var(--ag);opacity:.7;pointer-events:none}
.cy-col{position:relative;flex:1;min-width:0;height:100%;display:flex;flex-direction:column;justify-content:flex-end;align-items:center}
.cy-pile{width:78%;height:calc(100% - 0px);max-height:calc(170px - 56px);display:flex;flex-direction:column;justify-content:flex-end}
.cy-pile i{display:block;width:100%}.cy-pile i.tr{background:linear-gradient(180deg,var(--ag2),var(--ag));border-radius:6px 6px 0 0}.cy-pile i.cr{background:repeating-linear-gradient(45deg,#FCD34D,#FCD34D 4px,#FDE68A 4px,#FDE68A 8px)}
.cy-val{position:absolute;top:-2px;font-size:11px;font-weight:700;color:var(--doux)}
.cy-lun{position:absolute;bottom:-20px;font-size:11px;color:var(--doux)}
.cy-col u{position:absolute;bottom:-34px;font-size:10px;font-weight:700;text-decoration:none;color:var(--rouge);white-space:nowrap}
.cy-col.manque .cy-val{color:var(--rouge)}
.cy-leg{display:flex;gap:14px;flex-wrap:wrap;font-size:12px;color:var(--doux)}.cy-leg i{display:inline-block;width:10px;height:10px;border-radius:3px;margin-right:5px}
.cy-leg i.tr{background:var(--ag)}.cy-leg i.cr{background:#FCD34D}.cy-leg i.mq{background:var(--rouge)}
@media (min-width:900px){.cy-etapes{grid-template-columns:repeat(2,1fr)}}
