/* La page des tableaux de routine (bloc écrit par .claude/tools/routines.mjs) : les étapes et les quatre sections.
   Tout le reste vient de site.css (cartes-mots, boutons, guide). Fichier à part : site.css dépasse le plafond de
   taille (taille-fichiers.test.mjs), on ne lui ajoute rien. Version dans l'adresse : l'empreinte de ce fichier. */
.guide .etapes-tableau{list-style:none;counter-reset:etape;display:grid;gap:12px;margin:8px 0 8px;padding:0}
.guide .etapes-tableau li{margin:0;counter-increment:etape;display:grid;grid-template-columns:32px minmax(0,1fr);gap:14px;align-items:start;color:var(--doux);line-height:1.5}
.guide .etapes-tableau li::before{content:counter(etape);display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:var(--encre);color:var(--papier);font:800 15px var(--display)}
.guide .etapes-tableau li span{padding-top:4px}
.guide .etapes-tableau b{color:var(--encre)}

.routine{margin:48px 0 0;padding-top:24px;border-top:1px solid var(--bord)}
.routine h2{margin:0 0 4px}
.routine-sous{color:var(--doux);margin:0 0 20px}
.routine-corps{display:grid;grid-template-columns:240px minmax(0,1fr);gap:32px;align-items:start}
.routine-feuille{display:grid;gap:12px;justify-items:start}
/* L'aperçu du tableau, comme une feuille posée : coins arrondis et ombre douce, fond blanc. */
.routine-feuille img{display:block;width:240px;height:auto;border-radius:12px;background:#fff;box-shadow:0 0 0 1px var(--bord),0 16px 32px -24px rgba(51,40,25,.5)}
/* Le bouton du PDF prend la largeur de l'aperçu : son libellé, sur deux lignes, reste centré. */
.routine-feuille .btn{justify-self:stretch;justify-content:center;text-align:center}
.routine-langues{font-size:14px;line-height:1.45;color:var(--doux);margin:0}
.routine-tout{margin:0}
.routine-tout-ic{display:inline-grid;place-items:center;width:24px;height:24px;border-radius:50%;background:var(--ciel);color:#fff;flex:none}
.routine-tout-ic svg{width:13px;height:13px}
.routine-tout[aria-pressed="true"]{background:var(--ciel-clair);border-color:var(--ciel)}
.routine-tout:active{transform:scale(.97)}
.mots-grid--routine{margin-top:16px}
/* L'encart « sans écran » met son texte dans un paragraphe pour que son lien ait le style des liens du guide. */
.guide .encart > p{margin:0}

@media (max-width:760px){
  .routine{margin-top:40px}
  .routine-corps{grid-template-columns:minmax(0,1fr);gap:20px}
  .routine-feuille{grid-template-columns:112px minmax(0,1fr);align-items:center;column-gap:16px;row-gap:10px}
  .routine-feuille img{width:112px;grid-row:span 2}
}
/* Le compositeur, sous les étapes : un vrai bouton (Steven, 24/11/2026), le lien dans la phrase passait inaperçu.
   Une div, pas un p : .guide p a repeindrait le bouton en orange sur orange. */
.guide .routine-composer{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px 20px;margin:24px 0 0;padding:18px 20px;background:var(--carte);border:1px solid var(--bord);border-radius:var(--r-tuile)}
.guide .routine-composer p{margin:0;font-weight:700;flex:1 1 260px}
.guide .routine-composer .btn{text-decoration:none}
