/* Polices des fiches astuces, hébergées sur le site (RGPD), licence OFL */
@font-face { font-family: 'Bangers'; src: url('../../assets/webfonts/bangers.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Comic Neue'; src: url('../../assets/webfonts/comic-neue.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Comic Neue'; src: url('../../assets/webfonts/comic-neue-bold.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Dela Gothic One'; src: url('../../assets/webfonts/dela-gothic-one.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Playfair Display'; src: url('../../assets/webfonts/playfair-display.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Press Start 2P'; src: url('../../assets/webfonts/press-start-2p.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Patrick Hand'; src: url('../../assets/webfonts/patrick-hand.woff2') format('woff2'); font-weight: 400; font-display: swap; }

/* Automatismes 3e : couleurs par domaine (nombres bleu, géométrie vert, données rose, proportionnalité orange, algorithmique violet) */
#features.au-section { padding-top: 1em; }
.au-outil { max-width: 72em; margin: 0 auto; text-align: left; }
.au-outil *:focus-visible { outline: 3px solid #f2b01e; outline-offset: 2px; }

/* Onglets */
.au-onglets { display: flex; flex-wrap: wrap; gap: .5em; justify-content: center; margin-bottom: 1.2em; }
.au-onglet { display: flex; align-items: center; gap: .5em; padding: .5em 1.1em; border: 2px solid #e5e5e5; border-radius: 2em; background: #fff; color: #666; cursor: pointer; font-weight: 600; -webkit-user-select: none; user-select: none; transition: border-color .2s; }
.au-onglet:hover { border-color: #5cc79a; }
.au-onglet.actif { background: #16855a; border-color: #16855a; color: #fff; }

/* Boutons */
.au-act { display: inline-flex; align-items: center; gap: .55em; padding: .45em .95em; border: 2px solid #e5e5e5; border-radius: .8em; background: #fff; color: #555; cursor: pointer; font-size: .92em; line-height: 1.3; -webkit-user-select: none; user-select: none; transition: border-color .2s; }
.au-act:hover { border-color: #5cc79a; }
.au-act .icon { flex: none; width: 1.9em; height: 1.9em; border-radius: 50%; background: #eaf7f1; color: #16855a; display: flex; align-items: center; justify-content: center; }
.au-act .icon:before { margin: 0; }
.au-act.au-p { border-color: #16855a; }
.au-act.au-p .icon { background: #16855a; color: #fff; }
.au-act.au-grand { font-size: 1.05em; padding: .55em 1.3em; }
.au-act.off { opacity: .4; pointer-events: none; }
.au-d-cmd, .au-r-go { display: flex; flex-wrap: wrap; gap: .5em; justify-content: center; margin-top: 1em; }
.au-lien { color: #16855a; text-decoration: underline; cursor: pointer; font-weight: 600; font-size: .85em; }

/* Écran principal */
.au-ecran { background: #fff; border: 2px solid #e5e5e5; border-radius: 1.2em; padding: 1.2em 1.4em; min-height: 18em; }
.au-ecran:fullscreen { padding: 2em 3em; overflow: auto; display: flex; flex-direction: column; justify-content: center; font-size: 1.25em; }
.au-ecran:-webkit-full-screen { padding: 2em 3em; overflow: auto; font-size: 1.25em; }
.au-accueil { text-align: center; }
.au-accueil h3 { margin: 0 0 .3em; color: #16855a; }
.au-accueil p { margin: 0 0 1em; color: #555; }
.au-tuiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(14em, 1fr)); gap: 1em; }
.au-tuile { display: flex; flex-direction: column; align-items: center; gap: .35em; padding: 1.2em 1em; border-radius: 1.1em; border: 3px solid var(--c); background: var(--f); color: #333; cursor: pointer; transition: transform .15s; -webkit-user-select: none; user-select: none; }
.au-tuile:hover { transform: translateY(-3px); }
.au-tuile .icon { font-size: 2em; color: var(--c); }
.au-tuile b { font-size: 1.2em; }
.au-tuile small { color: #666; line-height: 1.4; }
.au-tuile.t1 { --c: #16855a; --f: #f2faf6; } .au-tuile.t2 { --c: #d0661c; --f: #fdf4ec; } .au-tuile.t3 { --c: #2f63b3; --f: #eff4fb; }

/* Diaporama */
.au-d-haut { display: flex; flex-wrap: wrap; align-items: center; gap: .6em 1em; }
.au-d-num { font-weight: 700; color: #16855a; }
.au-d-th { padding: .15em .8em; border-radius: 1em; background: var(--c); color: #fff; font-size: .8em; font-weight: 600; }
.au-d-chrono { margin-left: auto; font: 700 1.5em/1 'Fredoka', 'Nunito', sans-serif; color: #16855a; }
.au-d-chrono.urgent { color: #c0392b; }
.au-d-barre { height: .45em; border-radius: .3em; background: #eef2ef; margin: .6em 0 1em; overflow: hidden; }
.au-d-barre span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #5cc79a, #f2b01e); transition: width .25s linear; }
.au-d-q { font-size: 1.6em; line-height: 1.6; color: #333; min-height: 5em; text-align: center; padding: .5em 0; }
.au-d-q .au-fig { max-width: 30em; }
.au-d-q .au-fig.au-carre { max-width: 15em; }

/* Écritures mathématiques et figures */
.au-f { display: inline-flex; flex-direction: column; align-items: center; vertical-align: middle; margin: 0 .15em; line-height: 1.1; font-weight: 700; }
.au-f > span { padding: 0 .2em; }
.au-f > span:first-child { border-bottom: 2px solid currentColor; }
.au-f > span:last-child:has(sup) { padding-top: .55em; } /* un exposant au dénominateur ne touche pas la barre */
.au-fig { display: block; width: 100%; height: auto; margin: .6em auto; }
.au-fig.au-carre { max-width: 13em; }
.au-fig.au-petite { max-width: 14em; }
.au-tab { margin: .6em auto; border-collapse: collapse; width: auto; }
.au-tab td { border: 2px solid #ccc; padding: .3em 1em; text-align: center; font-weight: 600; }
.au-prog { display: inline-block; text-align: left; margin: .3em auto .5em; font-size: .9em; }

/* Feuille et correction */
.au-f-haut { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5em 1em; }
.au-f-haut h3 { margin: 0; color: #16855a; }
.au-f-haut .au-d-cmd { margin: 0; }
.au-score { font-size: 1.1em; color: #555; }
.au-score b { font: 700 1.4em/1 'Fredoka', 'Nunito', sans-serif; color: #16855a; }
.au-liste { margin: 1em 0 0; padding-left: 1.6em; }
.au-liste > li { padding: .8em .6em; border-bottom: 1px solid #f0f0f0; position: relative; }
.au-liste > li.ok { background: #f2faf6; } .au-liste > li.ko { background: #fdf0ee; }
.au-l-q { color: #333; line-height: 1.6; }
.au-l-q .au-fig { max-width: 24em; margin-left: 0; }
.au-l-q .au-fig.au-carre { max-width: 11em; }
.au-l-q .au-fig.au-petite { max-width: 11em; }
.au-d-q .au-fig.au-petite { max-width: 15em; }
.au-l-r { margin-top: .4em; color: #16855a; }
.au-l-x { color: #777; font-size: .9em; margin-top: .2em; }
.au-l-x .icon { color: #f2b01e; }
.au-juge { display: flex; gap: .4em; margin-top: .5em; }
.au-j { display: inline-flex; align-items: center; justify-content: center; width: 2.4em; height: 2em; border-radius: .6em; border: 2px solid #e5e5e5; cursor: pointer; font-weight: 700; color: #999; background: #fff; }
.au-j.ok.on { background: #2e8b57; border-color: #2e8b57; color: #fff; } .au-j.ko.on { background: #c0392b; border-color: #c0392b; color: #fff; }
.au-j.ok:hover { border-color: #2e8b57; } .au-j.ko:hover { border-color: #c0392b; }
.au-temps { text-align: center; color: #999; font-size: .85em; margin: .8em 0 0; }

/* Réglages */
.au-reglages { margin-top: 1em; background: #fff; border: 2px solid #e5e5e5; border-radius: 1.2em; padding: 1em 1.2em; }
.au-r-ligne { display: flex; flex-wrap: wrap; align-items: center; gap: .4em .5em; margin-bottom: .7em; }
.au-r-t { font-weight: 700; color: #555; margin-right: .5em; font-size: .9em; }
.au-r-t small { color: #999; font-weight: 400; }
.au-puce { display: inline-flex; align-items: center; gap: .4em; padding: .3em .9em; border: 2px solid #e5e5e5; border-radius: 2em; background: #fff; color: #666; cursor: pointer; font-size: .88em; -webkit-user-select: none; user-select: none; }
.au-puce:hover { border-color: #5cc79a; }
.au-puce.actif { background: #16855a; border-color: #16855a; color: #fff; }
.au-r-themes { margin-top: .4em; }
.au-dom { margin-top: .7em; padding-left: .8em; border-left: 4px solid var(--c); }
.au-dom-t { font-weight: 700; color: var(--c); font-size: .9em; margin-bottom: .35em; }
.au-dom .au-puce.actif { background: var(--c); border-color: var(--c); }
.au-chips { display: flex; flex-wrap: wrap; gap: .35em; }
.au-chips .au-puce { font-size: .8em; }
.au-code-zone { margin-top: 1em; display: grid; gap: .8em; background: #fff; border: 2px solid #e5e5e5; border-radius: 1.2em; padding: 1em 1.2em; }
.au-code-zone .cc-bloc > span:first-child { display: block; font-weight: 600; color: #555; margin-bottom: .4em; }
.au-code-zone:empty { display: none; }

/* Tutoriels */
.au-tu-liste { display: flex; flex-wrap: wrap; gap: .45em; justify-content: center; margin-bottom: 1em; }
.au-tu-choix { display: inline-flex; align-items: center; gap: .45em; padding: .4em .9em; border: 2px solid #e5e5e5; border-radius: .8em; background: #fff; color: #555; cursor: pointer; font-size: .88em; -webkit-user-select: none; user-select: none; }
.au-tu-choix:hover { border-color: #5cc79a; }
.au-tu-choix .icon { color: #16855a; }
.au-tu-choix.actif { background: #16855a; border-color: #16855a; color: #fff; } .au-tu-choix.actif .icon { color: #fff; }
.au-tu-carte { background: #fff; border: 2px solid #e5e5e5; border-radius: 1.2em; padding: 1.2em 1.4em; }
.au-tu-carte:fullscreen { padding: 2em 3em; overflow: auto; font-size: 1.3em; }
.au-tu-carte h3 { margin: 0 0 .5em; color: #16855a; text-align: center; }
.au-tu-enonce { font-size: 1.25em; text-align: center; padding: .6em; border-radius: .9em; background: #f6fcf9; color: #333; line-height: 1.6; }
.au-tu-ex { display: inline-block; padding: 0 .6em; border-radius: 1em; background: #16855a; color: #fff; font-size: .65em; font-weight: 700; vertical-align: middle; margin-right: .3em; }
.au-tu-etapes { margin: 1em 0 0; padding-left: 1.8em; }
.au-tu-etapes li { padding: .55em .4em; font-size: 1.1em; line-height: 1.7; color: #bbb; border-bottom: 1px dashed #eee; }
.au-tu-etapes li.vu { color: #333; }
.au-tu-etapes li[data-dernier] { animation: au-entre .5s ease; background: #fffbea; }
@keyframes au-entre { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.au-tu-retenir { margin-top: 1em; padding: .8em 1em; border-radius: .9em; background: #fff4c7; color: #6b5300; line-height: 1.6; }
.au-tu-retenir .icon { color: #f2b01e; }

/* Astuces, jour J, bilan */
.au-h { margin: 1.2em 0 .6em; font-size: 1.05em; color: var(--c, #16855a); }
.au-h:first-child { margin-top: 0; }
.au-cartes { display: grid; grid-template-columns: repeat(auto-fill, minmax(17em, 1fr)); gap: .9em; }
.au-astuce { background: #fff; border: 2px solid #e5e5e5; border-top: 5px solid var(--c); border-radius: 1em; padding: .8em 1em; }
.au-astuce h4 { margin: 0 0 .4em; color: var(--c); font-size: 1em; }
.au-astuce p { margin: .3em 0; line-height: 1.6; color: #444; font-size: .95em; }
.au-astuce .au-ex { color: #16855a; }
.au-astuce .au-piege { color: #a33; }
.au-astuce .au-tab { width: 100%; margin: .3em 0 .5em; border-collapse: collapse; font-size: .95em; text-align: center; }
.au-astuce .au-tab thead, .au-astuce .au-tab tbody, .au-astuce .au-tab tr { background: none; border: 0; } /* le style des tableaux du site ne s'applique pas ici */
.au-astuce .au-tab th { text-align: center; padding: .3em .5em; background: var(--c); color: #fff; font-weight: 700; }
.au-astuce .au-tab td { padding: .25em .5em; border: 1px solid #d9dde3; background: #fff; color: #333; }
.au-astuce .au-l2 { display: grid; grid-template-columns: 1fr 1fr; column-gap: .8em; } /* formules courtes sur deux colonnes */
.au-astuce .au-lt { margin: .5em 0 .1em; font-weight: 700; text-align: left !important; } /* sous-titre dans une liste (Aires, Volumes…) */
.au-astuce .au-lt:first-of-type { margin-top: 0; }
.au-nw { white-space: nowrap; } /* une formule ne se coupe pas en deux */
.au-astuce .au-li { position: relative; margin: .2em 0; padding-left: 1.1em; text-align: left !important; } /* une idée par ligne, avec une puce */
.au-astuce .au-li:before { content: ''; position: absolute; left: .25em; top: .65em; width: .4em; height: .4em; border-radius: 50%; background: var(--c); }
.au-imp-barre { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5em 1em; margin-bottom: 1em; }
.au-imp-info { color: #888; font-size: .9em; }
.au-imp-info .icon { color: #f2b01e; margin-right: .2em; }
.au-imp-ancre { position: relative; display: inline-flex; align-items: center; gap: .8em; }
.au-imp-ancre > .au-act.actif { background: #16855a; color: #fff; }
/* Menu d'impression : s'ouvre par-dessus les astuces */
.au-imp-pan { position: absolute; right: 0; top: calc(100% + .6em); z-index: 50; width: 36em; max-width: calc(100vw - 2em); padding: .9em 1em .8em; border-radius: 1em; background: #fff; border: 2px solid #cfe9dc; box-shadow: 0 10px 30px rgba(0,0,0,.18); text-align: left; animation: au-pop .25s ease-out both; }
.au-pan-t { display: block; margin: 0 2em .6em 0; color: #16855a; font: 600 1.1em/1.3 'Fredoka', 'Nunito', sans-serif; }
.au-imp-pan .au-r-ligne { margin: 0 0 .6em; }
.au-imp-pan .au-r-t { width: 100%; font-weight: 700; color: #555; font-size: .85em; }
.au-pan-note { margin: 0 0 .5em; padding: .4em .7em; border-radius: .6em; background: #f6fbf8; color: #16855a; font-size: .85em; line-height: 1.4; }
.au-imp-go { width: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: .6em; padding-top: .7em; border-top: 2px dashed #cfe9dc; }
.au-imp-go .pdf-rappel { flex: 1 1 18em; margin: 0; font-size: .85em; font-weight: 700; color: #16855a; line-height: 1.4; }
/* Affiches : choisir les astuces à imprimer */
.au-choix { float: right; margin: -.2em -.3em .3em .5em; padding: .15em .6em; border-radius: 2em; background: #16855a; color: #fff; font: 700 .72em/1.5 'Nunito', sans-serif; cursor: pointer; -webkit-user-select: none; user-select: none; }
.au-choix:not(.on) { background: #eee; color: #888; }
.au-astuce.au-exclu { opacity: .45; }
/* Pages du PDF, fabriquées hors de l'écran le temps de l'export */
.au-pdf-zone { position: fixed; left: -30000px; top: 0; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; } /* hors écran : n'élargit pas la page, même sur téléphone */
.au-pdf-page { overflow: hidden; background: #fff; }
.au-pdf-cols { display: flex; align-items: flex-start; gap: .6em; }
.au-pdf-col { flex: 1 1 0; min-width: 0; }
.au-pdf-col > .au-astuce { margin: 0 0 .6em !important; }
.au-imp-titre { display: none; }
.au-format { display: grid; grid-template-columns: repeat(auto-fit, minmax(9em, 1fr)); gap: .8em; margin-bottom: 1em; }
.au-chiffre { display: flex; flex-direction: column; align-items: center; padding: .8em; border-radius: 1em; background: #fff; border: 2px solid #e5e5e5; }
.au-chiffre .icon { color: #16855a; font-size: 1.3em; }
.au-chiffre b { font: 700 2.2em/1.1 'Fredoka', 'Nunito', sans-serif; color: #333; }
.au-chiffre small { color: #888; }
.au-chiffre.n0 .icon { color: #c0392b; } .au-chiffre.n1 .icon { color: #f2a01e; } .au-chiffre.n2 .icon { color: #2e8b57; }
.au-intro { color: #555; line-height: 1.6; text-align: center; }
.au-pt { background: #fff; border: 2px solid #e5e5e5; border-radius: 1em; padding: .2em 1em; }
.au-pt-l { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .4em 1em; padding: .5em 0; border-bottom: 1px solid #f2f2f2; }
.au-pt-l:last-child { border-bottom: 0; }
.au-pt-n { color: #444; }
.au-pt-n small { margin-left: .4em; }
.au-fi { padding-right: .14em; }
.au-v { color: #2e8b57; } .au-r { color: #c0392b; }
.au-pt-b { display: flex; gap: .3em; }
.au-niv { display: inline-flex; align-items: center; gap: .35em; padding: .2em .7em; border: 2px solid #e5e5e5; border-radius: 2em; cursor: pointer; font-size: .8em; color: #888; background: #fff; -webkit-user-select: none; user-select: none; }
.au-niv.n0.on { background: #c0392b; border-color: #c0392b; color: #fff; } .au-niv.n1.on { background: #f2a01e; border-color: #f2a01e; color: #fff; } .au-niv.n2.on { background: #2e8b57; border-color: #2e8b57; color: #fff; }

/* Ressources */
.au-res { background: #fff; border: 2px solid #e5e5e5; border-radius: 1.2em; padding: .9em 1.2em; margin-bottom: 1em; }
.au-res .au-h { margin-top: 0; }
.au-note { margin: 0 0 .6em; padding: .6em .9em; border-radius: .7em; background: #fff8e1; color: #6b5300; font-size: .92em; line-height: 1.5; }
.au-liens { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(20em, 1fr)); gap: .3em 1.2em; }
.au-liens li { padding: .35em 0; line-height: 1.4; }
.au-liens a { font-weight: 600; }
.au-liens a .icon { font-size: .75em; margin-right: .2em; }
.au-liens small { display: block; color: #888; }
.au-rgpd { margin: 1.2em 0 0; text-align: center; font-size: .82em; color: #999; }
.au-rgpd .icon { color: #5cc79a; margin-right: .3em; }

@media screen and (max-width: 736px) {
	.au-d-q { font-size: 1.2em; }
	.au-pt-b .au-niv span:last-child { display: none; }
}
@media (prefers-reduced-motion: reduce) { .au-tuile, .au-act, .au-onglet { transition: none; } .au-tu-etapes li[data-dernier] { animation: none; } .au-d-barre span { transition: none; } }

/* Fiches astuces : plusieurs styles au choix, visibles à l'écran et à l'impression (Crayonné = le style du site, par défaut) */
.au-sty-pop { position: absolute; right: calc(100% + 14px); top: 50%; width: 17em; display: flex; align-items: center; gap: .6em; margin-top: -1.6em; padding: .45em 2em .45em .7em; border-radius: .8em; background: #fff4c7; color: #5a4500; font-size: .85em; line-height: 1.35; box-shadow: 0 3px 0 #f2b01e; z-index: 5; animation: au-pop .6s cubic-bezier(.3, 1.6, .5, 1) both; }
.au-sty-pop:after { content: ''; position: absolute; right: -11px; top: 50%; margin-top: -8px; border: 8px solid transparent; border-left: 11px solid #f2b01e; border-right: 0; }
@media screen and (max-width: 736px) { .au-imp-ancre { flex-wrap: wrap; } .au-sty-pop { position: relative; right: auto; top: auto; width: auto; flex: 1 1 14em; margin: 0; } .au-sty-pop:after { right: auto; left: -11px; border-left: 0; border-right: 11px solid #f2b01e; } }
.au-sty-pop > .icon { flex: none; font-size: 1.6em; color: #e0861b; animation: au-pinceau 1.6s ease-in-out .6s 3; }
.au-sty-pop b { color: #3d2f00; }
.au-sty-x { position: absolute; top: .2em; right: .3em; width: 1.6em; height: 1.6em; display: flex; align-items: center; justify-content: center; border-radius: 50%; font-size: 1.2em; cursor: pointer; color: #8a6d00; }
.au-sty-x:hover { background: #ffe58a; }
@keyframes au-pop { from { opacity: 0; transform: scale(.6) translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes au-pinceau { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-18deg); } 75% { transform: rotate(14deg); } }
@media (prefers-reduced-motion: reduce) { .au-sty-pop, .au-sty-pop > .icon { animation: none; } }
#vue-astuces:not(.st-crayon) .au-h { display: flex; align-items: center; gap: .5em; font: 600 1.15em/1.2 'Fredoka', 'Nunito', sans-serif; text-transform: none; letter-spacing: 0; }
#vue-astuces:not(.st-crayon) .au-astuce { border-image: none; text-align: left; }
#vue-astuces:not(.st-crayon) .au-astuce h4 { font: 600 1em/1.25 'Fredoka', 'Nunito', sans-serif; text-transform: none; letter-spacing: 0; }
#vue-astuces:not(.st-crayon) .au-astuce p { text-align: left !important; }
#vue-astuces:not(.st-crayon) .au-astuce b { color: inherit; }
/* Moderne */
#vue-astuces.st-moderne .au-h { padding-bottom: .25em; border-bottom: 3px solid var(--c); }
#vue-astuces.st-moderne .au-astuce { border: 0; border-left: 5px solid var(--c); border-radius: .6em; padding: .55em .8em; background: #f7f8fa; }
#vue-astuces.st-moderne .au-astuce p { color: #333; }
#vue-astuces.st-moderne .au-astuce .au-ex, #vue-astuces.st-moderne .au-astuce .au-piege { padding: .25em .55em; border-radius: .4em; }
#vue-astuces.st-moderne .au-astuce .au-ex { background: #e3f4ec; color: #10603f; }
#vue-astuces.st-moderne .au-astuce .au-piege { background: #fbe7e7; color: #9b2c2c; }
/* Noir et blanc */
#vue-astuces.st-sobre .au-h { padding-bottom: .2em; border-bottom: 2px solid #111; color: #111; }
#vue-astuces.st-sobre .au-astuce { border: 1px solid #999; border-radius: .4em; padding: .5em .8em; background: #fff; }
#vue-astuces.st-sobre .au-astuce h4 { color: #111; }
#vue-astuces.st-sobre .au-astuce p { color: #222; }
#vue-astuces.st-sobre .au-astuce .au-ex { font-style: italic; }
#vue-astuces.st-sobre .au-astuce .au-piege { padding-left: .5em; border-left: 3px solid #111; color: #111; }

/* Comics */
#vue-astuces.st-comics .au-h { display: inline-flex; padding: .15em .7em; border: 3px solid #111; background: var(--c); color: #fff; box-shadow: 4px 4px 0 #111; transform: skew(-8deg); font: 400 1.6em/1.1 'Bangers', 'Fredoka', sans-serif; letter-spacing: .05em; text-transform: uppercase; }
#vue-astuces.st-comics .au-astuce { border: 3px solid #111; border-radius: 0; padding: .6em .8em; background: #fff radial-gradient(circle, rgba(0,0,0,.09) 1px, transparent 1.6px) 0 0 / 7px 7px; box-shadow: 5px 5px 0 #111; }
#vue-astuces.st-comics .au-astuce h4 { color: var(--c); font: 400 1.4em/1.05 'Bangers', 'Fredoka', sans-serif; letter-spacing: .05em; text-transform: uppercase; text-shadow: 1.5px 1.5px 0 #111; }
#vue-astuces.st-comics .au-astuce p { font-family: 'Comic Neue', 'Nunito', sans-serif; font-weight: 700; color: #111; }
#vue-astuces.st-comics .au-astuce .au-ex { padding: .2em .5em; border: 2px solid #111; background: #fff200; color: #111; transform: rotate(-1deg); }
#vue-astuces.st-comics .au-astuce .au-piege { padding: .2em .5em; border: 2px solid #111; background: #ff3b3b; color: #fff; transform: rotate(.8deg); }
#vue-astuces.st-comics .au-imp-titre { border: 3px solid #111; border-radius: 0; background: #ffd400 radial-gradient(circle, rgba(0,0,0,.15) 1.2px, transparent 1.8px) 0 0 / 8px 8px; color: #111; box-shadow: 5px 5px 0 #111; }
#vue-astuces.st-comics .au-imp-titre b { font: 400 2.4em/1 'Bangers', sans-serif; letter-spacing: .05em; }
#vue-astuces.st-comics .au-imp-nom span { border: 2px solid #111; border-radius: 0; color: #111; }
/* BD */
#vue-astuces.st-bd .au-h { display: inline-flex; padding: .25em .8em; border: 2px solid #111; background: #fff6b0; color: #111; font: 700 1.15em/1.2 'Comic Neue', sans-serif; text-transform: uppercase; }
#vue-astuces.st-bd .au-astuce { border: 2.5px solid #111; border-radius: .2em; padding: .6em .8em; background: #fff; }
#vue-astuces.st-bd .au-astuce h4 { display: inline-block; margin: 0 0 .5em; padding: .1em .5em; border: 2px solid #111; background: #fff6b0; color: #111; font: 700 .95em/1.3 'Comic Neue', sans-serif; text-transform: uppercase; }
#vue-astuces.st-bd .au-astuce p { font-family: 'Comic Neue', 'Nunito', sans-serif; color: #111; }
#vue-astuces.st-bd .au-astuce .au-ex, #vue-astuces.st-bd .au-astuce .au-piege { position: relative; margin-top: .8em; padding: .3em .7em; border: 2px solid #111; border-radius: 1.2em; background: #fff; }
#vue-astuces.st-bd .au-astuce .au-ex:before, #vue-astuces.st-bd .au-astuce .au-piege:before { content: ''; position: absolute; left: 1.4em; top: -11px; border: 6px solid transparent; border-bottom: 10px solid #111; border-top: 0; }
#vue-astuces.st-bd .au-astuce .au-ex:after, #vue-astuces.st-bd .au-astuce .au-piege:after { content: ''; position: absolute; left: calc(1.4em + 2px); top: -7px; border: 4px solid transparent; border-bottom: 7px solid #fff; border-top: 0; }
#vue-astuces.st-bd .au-astuce .au-ex { color: #0d5c3a; }
#vue-astuces.st-bd .au-astuce .au-piege { border-color: #c00; color: #c00; font-weight: 700; }
#vue-astuces.st-bd .au-astuce .au-piege:before { border-bottom-color: #c00; }
#vue-astuces.st-bd .au-imp-titre { border: 3px solid #111; border-radius: .2em; background: #fff; color: #111; }
#vue-astuces.st-bd .au-imp-titre b { font: 700 2em/1.1 'Comic Neue', sans-serif; text-transform: uppercase; }
#vue-astuces.st-bd .au-imp-titre small { display: inline-block; margin-top: .3em; padding: .1em .5em; border: 1.5px solid #111; background: #fff6b0; }
#vue-astuces.st-bd .au-imp-nom span { border: 2px solid #111; color: #111; }
/* Manga */
#vue-astuces.st-manga .au-h { display: inline-flex; padding: .25em .9em; background: #111; color: #fff; transform: skew(-12deg); font: 400 1.25em/1.2 'Dela Gothic One', sans-serif; }
#vue-astuces.st-manga .au-astuce { border: 3px solid #111; border-radius: 0; padding: 0 .8em .6em; background: #fff; }
#vue-astuces.st-manga .au-astuce h4 { margin: 0 -.8em .4em; padding: .4em .8em; border-bottom: 3px solid #111; background: repeating-linear-gradient(105deg, #fff 0 7px, #e2e2e2 7px 8px); color: #111; font: 400 1em/1.3 'Dela Gothic One', sans-serif; }
#vue-astuces.st-manga .au-astuce p { color: #111; }
#vue-astuces.st-manga .au-astuce .au-ex { padding: .25em .55em; border-left: 5px solid #111; background: #fff radial-gradient(circle, #dcdcdc 1px, transparent 1.3px) 0 0 / 5px 5px; color: #111; }
#vue-astuces.st-manga .au-astuce .au-piege { padding: .25em .55em; background: #111; color: #fff; }
#vue-astuces.st-manga .au-imp-titre { border-radius: 0; background: #111; color: #fff; }
#vue-astuces.st-manga .au-imp-titre b { font: 400 2em/1.1 'Dela Gothic One', sans-serif; }
#vue-astuces.st-manga .au-imp-nom span { border-radius: 0; color: #111; }
/* Classique */
#vue-astuces.st-classique .au-h { display: block; padding-bottom: .2em; border-bottom: 1px solid #6b1d2a; color: #6b1d2a; text-align: center; font: 700 1.45em/1.2 'Playfair Display', Georgia, serif; }
#vue-astuces.st-classique .au-astuce { border: 1px solid #c9b98f; border-radius: 0; outline: 1px solid #c9b98f; outline-offset: -5px; padding: .9em 1.1em; background: #fffdf6; }
#vue-astuces.st-classique .au-astuce h4 { color: #6b1d2a; text-align: center; font: 700 1.05em/1.3 'Playfair Display', Georgia, serif; }
#vue-astuces.st-classique .au-astuce p { font-family: Georgia, 'Times New Roman', serif; color: #2b2b2b; }
#vue-astuces.st-classique .au-astuce .au-ex { font-style: italic; color: #3d4f2f; }
#vue-astuces.st-classique .au-astuce .au-piege { padding-top: .3em; border-top: 1px solid #e0d4b0; color: #8b1a1a; }
#vue-astuces.st-classique .au-imp-titre { border: 4px double #6b1d2a; border-radius: 0; background: #fffdf6; color: #6b1d2a; }
#vue-astuces.st-classique .au-imp-titre b { font: 700 2.1em/1.1 'Playfair Display', Georgia, serif; }
#vue-astuces.st-classique .au-imp-titre small { font-family: Georgia, serif; font-style: italic; }
#vue-astuces.st-classique .au-imp-nom span { border: 1px solid #6b1d2a; border-radius: 0; color: #6b1d2a; font-family: Georgia, serif; }
/* Rétro jeu vidéo (couleurs d'une vieille console portable) */
#vue-astuces.st-retro .au-h { padding-bottom: .4em; border-bottom: 4px dotted #306230; color: #0f380f; font: 400 .95em/1.5 'Press Start 2P', monospace; text-transform: uppercase; }
#vue-astuces.st-retro .au-astuce { border: 4px solid #0f380f; border-radius: 0; padding: .7em .8em; background: #cadc9f; box-shadow: 4px 4px 0 #306230; }
#vue-astuces.st-retro .au-astuce h4 { color: #0f380f; font: 400 .72em/1.6 'Press Start 2P', monospace; }
#vue-astuces.st-retro .au-astuce p { color: #0f380f; font-weight: 600; }
#vue-astuces.st-retro .au-astuce .au-ex { padding: .2em .5em; background: #9bbc0f; color: #0f380f; }
#vue-astuces.st-retro .au-astuce .au-piege { padding: .2em .5em; background: #0f380f; color: #cadc9f; }
#vue-astuces.st-retro .au-imp-titre { border-radius: 0; background: #0f380f; color: #cadc9f; box-shadow: 4px 4px 0 #306230; }
#vue-astuces.st-retro .au-imp-titre b { margin-bottom: .4em; font: 400 1.3em/1.4 'Press Start 2P', monospace; }
#vue-astuces.st-retro .au-imp-nom span { border-radius: 0; background: #cadc9f; color: #0f380f; }
/* Cahier (lignes Seyès, écriture à la main) */
#vue-astuces.st-cahier .au-h { color: var(--c); font: 400 1.7em/1.2 'Patrick Hand', 'Comic Neue', sans-serif; text-decoration: underline; text-underline-offset: .15em; }
#vue-astuces.st-cahier .au-astuce { border: 0; border-radius: .2em; padding: .5em .8em .6em 2.4em; background: linear-gradient(90deg, transparent 1.8em, #f19a9a 1.8em, #f19a9a calc(1.8em + 2px), transparent calc(1.8em + 2px)), repeating-linear-gradient(#fff 0 calc(1.55em - 1px), #c5d5ee calc(1.55em - 1px) 1.55em); box-shadow: 1px 2px 5px rgba(0,0,0,.18); transform: rotate(-.4deg); }
#vue-astuces.st-cahier .au-astuce:nth-child(even) { transform: rotate(.5deg); }
#vue-astuces.st-cahier .au-astuce h4 { color: #c0392b; font: 400 1.3em/1.2 'Patrick Hand', sans-serif; text-decoration: underline; }
#vue-astuces.st-cahier .au-astuce p { font: 400 1.08em/1.45 'Patrick Hand', 'Comic Neue', sans-serif; color: #1b3a8a; }
#vue-astuces.st-cahier .au-astuce .au-ex { color: #16855a; }
#vue-astuces.st-cahier .au-astuce .au-piege { color: #1b3a8a; }
/* surligneur : un trait sur chaque ligne du piège, de la première à la dernière */
#vue-astuces.st-cahier .au-astuce .au-pg { padding: 0 .15em; background: linear-gradient(transparent 38%, #fff27a 38%, #fff27a 92%, transparent 92%); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
#vue-astuces.st-cahier .au-imp-titre { border-radius: 0; border-bottom: 2px solid #c0392b; background: #fff; color: #1b3a8a; }
#vue-astuces.st-cahier .au-imp-titre b { color: #c0392b; font: 400 2.4em/1 'Patrick Hand', sans-serif; }
#vue-astuces.st-cahier .au-imp-titre small { font: 400 1.15em 'Patrick Hand', sans-serif; }
#vue-astuces.st-cahier .au-imp-nom span { border: 1.5px dashed #1b3a8a; color: #1b3a8a; font: 400 1.2em 'Patrick Hand', sans-serif; }


/* Fiche astuces à l'impression : body.au-imp-astuces n'existe que le temps d'imprimer (posé par automatismes.js) */
@page fiche { size: A4 portrait; margin: 10mm; }
body.au-imp-astuces { background: #fff !important; }
.au-imp-astuces #vue-astuces { page: fiche; }
.au-imp-astuces .au-section, .au-imp-astuces .au-section > .container, .au-imp-astuces .au-outil { width: auto !important; max-width: none !important; margin: 0 !important; padding: 0 !important; background: none !important; }
.au-imp-astuces .au-imp-titre { display: flex; justify-content: space-between; align-items: center; gap: 1.5em; margin-bottom: 1em; padding: .7em 1em; border-radius: .8em; background: #16855a; color: #fff; }
.au-imp-titre b { display: block; color: inherit; font: 600 1.6em/1.1 'Fredoka', 'Nunito', sans-serif; }
.au-imp-titre small { font-size: .85em; opacity: .9; }
.au-imp-nom { display: flex; gap: .6em; }
.au-imp-nom span { min-width: 9em; padding: .3em .6em 1.1em; border-radius: .5em; background: #fff; color: #16855a; font-size: .75em; font-weight: 700; }
.au-imp-nom span + span { min-width: 5em; }
.st-crayon .au-imp-titre { background: #fff !important; color: #16855a !important; border: 3px dashed #16855a; }
.st-sobre .au-imp-titre { background: #fff !important; color: #111 !important; border-bottom: 2px solid #111; border-radius: 0 !important; padding: .3em 0 !important; }
.st-crayon .au-imp-nom span, .st-sobre .au-imp-nom span { border: 1.5px solid currentColor; color: inherit; }
.au-imp-astuces .au-h { break-after: avoid; margin: 1em 0 .5em; }
.au-imp-astuces .au-astuce { break-inside: avoid; }
.au-imp-astuces .au-astuce p { font-size: .82em; line-height: 1.5; }
.au-imp-astuces .au-astuce .au-tab { font-size: .82em; }
/* Affiches : une astuce par page, texte agrandi (calculé par automatismes.js), carte étirée jusqu'en bas */
.au-imp-astuces .au-choix { display: none; }
.au-aff { display: flex; flex-direction: column; height: 100%; }
.au-aff .au-h { margin: 0 0 .5em !important; font-size: 1.1em; }
.au-aff .au-astuce { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 1em 1.3em; }
.au-aff.au-mesure { height: auto; }
.au-aff.au-mesure .au-astuce { flex: none; }
.au-imp-astuces .au-aff .au-astuce h4 { font-size: 1.5em; line-height: 1.2 !important; margin-bottom: .5em; }
.au-imp-astuces .au-aff .au-astuce p, .au-imp-astuces .au-aff .au-astuce .au-tab { font-size: 1em; }
/* Pages à imprimer : fabriquées hors de l'écran, seules visibles à l'impression */
.au-pages-imp { position: fixed; left: -30000px; top: 0; }

/* Tableaux des astuces dans chaque style */
#vue-astuces.st-comics .au-tab, #vue-astuces.st-bd .au-tab { font-family: 'Comic Neue', 'Nunito', sans-serif; font-weight: 700; }
#vue-astuces.st-comics .au-tab td, #vue-astuces.st-bd .au-tab td, #vue-astuces.st-manga .au-tab td { border: 2px solid #111; color: #111; }
#vue-astuces.st-bd .au-tab th { background: #fff6b0; color: #111; border: 2px solid #111; }
#vue-astuces.st-manga .au-tab th, #vue-astuces.st-sobre .au-tab th { background: #111; }
#vue-astuces.st-sobre .au-tab td { border-color: #999; color: #111; }
#vue-astuces.st-classique .au-tab { font-family: Georgia, 'Times New Roman', serif; }
#vue-astuces.st-classique .au-tab th { background: #6b1d2a; }
#vue-astuces.st-classique .au-tab td { border-color: #c9b98f; background: #fffdf6; }
#vue-astuces.st-retro .au-tab th { background: #0f380f; color: #cadc9f; }
#vue-astuces.st-retro .au-tab td { border: 2px solid #0f380f; background: #cadc9f; color: #0f380f; font-weight: 600; }
#vue-astuces.st-cahier .au-tab { font-family: 'Patrick Hand', 'Comic Neue', sans-serif; font-size: 1.1em; }
#vue-astuces.st-cahier .au-tab th { background: transparent; color: #c0392b; border-bottom: 2px solid #c0392b; }
#vue-astuces.st-cahier .au-tab td { border: 1px solid #c5d5ee; background: transparent; color: #1b3a8a; }

/* Puces des listes : noires dans les styles en noir et blanc, vert foncé en rétro */
#vue-astuces.st-sobre .au-li:before, #vue-astuces.st-manga .au-li:before { background: #111; }
#vue-astuces.st-retro .au-li:before { background: #0f380f; border-radius: 0; }
#vue-astuces.st-comics .au-li:before { border: 1.5px solid #111; }

/* Impression de la feuille : on ne garde que les questions */
@media print {
	#header, #nav, #banner, #footer, .au-onglets, .au-reglages, .au-code-zone, .au-rgpd, .au-d-cmd, .retours-bouton, [class*="retour"] { display: none !important; }
	.au-ecran { border: 0; padding: 0; }
	.au-liste > li { break-inside: avoid; }
	/* Fiche astuces : on ne garde que la fiche */
	.au-imp-astuces #vue-astuces > :not(.au-pages-imp) { display: none !important; }
	.au-pages-imp { position: static !important; }
	.au-pages-imp .au-pdf-page { break-after: page; }
	.au-pages-imp .au-pdf-page:last-child { break-after: auto; }
	.au-imp-astuces * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
}
