/* Webapp épurée (17 novembre 2026, planches v2 validées par Loïc) :
   même esprit que la page exercice (exercice-epure.css), une couleur par page,
   reprise par la pastille de la barre du bas C2 (capsule translucide).
   Contrôle : tests/webapp-epure-20261117.test.mjs */
:root{--ep-peche:#f8cdb8;--ep-beurre:#f3e0a0;--ep-menthe:#c4e4d4;--ep-ciel:#c4ddf2;--ep-lavande:#dccdf0;--ep-rose:#f6c9d6}
body{--ep-page:var(--ep-menthe)}
body[data-page=today]{--ep-page:var(--ep-peche)}
body[data-page=learn]{--ep-page:var(--ep-beurre)}
body[data-page=review]{--ep-page:var(--ep-menthe)}
body[data-page=bag]{--ep-page:var(--ep-ciel)}
body[data-page=tomo],body[data-page=recap]{--ep-page:var(--ep-lavande)}
body[data-page=parent]{--ep-page:var(--ep-beurre)}

/* ---------- Tête de page : surtitre à pastille, titre, Tomo à droite ---------- */
.ep{display:flex;flex-direction:column;gap:22px;max-width:980px;margin:0 auto;padding:4px 0 24px}
.ep .eyebrow{display:inline-flex;align-items:center;gap:8px;white-space:nowrap}
.ep .eyebrow::before{content:'';width:10px;height:10px;border-radius:50%;background:var(--ep-page);box-shadow:0 0 0 3px #ffffffb0;flex:none}
.ep-head{display:flex;align-items:center;gap:14px}
.ep-head>div:first-child{flex:1;min-width:0}
.ep-head h1{margin:6px 0 0}
.ep-head .subtle{margin:6px 0 0}

/* ---------- Le Tomo unique de la page, avec ses trois halos pastel ---------- */
#tomo-garden-view.ep-tomo{position:relative;flex:none;width:var(--ep-tomo,128px);height:var(--ep-tomo,128px);aspect-ratio:1;margin:0;pointer-events:auto;view-transition-name:tomo-compagnon}
#tomo-garden-view.ep-tomo.ep-big{--ep-tomo:200px;margin:0 auto}
#tomo-garden-view.ep-tomo::before,body[data-page=tomo] #tomo-garden-view::before{content:'';position:absolute;inset:-6% -8% -2%;border-radius:50%;filter:blur(14px);pointer-events:none;
 background:radial-gradient(circle at 30% 42%,#bfe6d4 0 22%,transparent 46%),radial-gradient(circle at 70% 38%,#dccdf2 0 22%,transparent 46%),radial-gradient(circle at 50% 74%,#f9cfbd 0 22%,transparent 46%);
 animation:ep-halos 7s ease-in-out infinite alternate}
#tomo-garden-view.ep-tomo>.tomo{position:absolute;inset:0;width:100%;height:100%;margin:0}
/* 18/11/2026 (piste C) : photo du Tomo 3D habillé, même cadre que le Tomo dessiné. */
#tomo-garden-view.ep-tomo>.tomo-photo{position:absolute;inset:0;width:100%;height:100%;margin:0;object-fit:contain;display:block}
#tomo-garden-view.ep-tomo canvas{position:absolute;inset:0;width:100%;height:100%}
@keyframes ep-halos{to{transform:scale(1.06) rotate(8deg)}}
/* Tomo arrive par la gauche (et part par la droite grâce aux transitions de vue, voir app.js) */
body.ep-arrive #tomo-garden-view.ep-tomo{animation:ep-tomo-in .6s cubic-bezier(.3,.7,.3,1) both}
@keyframes ep-tomo-in{from{transform:translateX(-90px) rotate(-6deg);opacity:0}}
::view-transition-old(tomo-compagnon){animation:ep-tomo-out .32s ease-in both}
::view-transition-new(tomo-compagnon){animation:ep-tomo-in .5s .2s cubic-bezier(.3,.7,.3,1) both}
@keyframes ep-tomo-out{to{transform:translateX(120px) rotate(8deg);opacity:0}}
@media(min-width:761px){#tomo-garden-view.ep-tomo{--ep-tomo:170px}#tomo-garden-view.ep-tomo.ep-big{--ep-tomo:280px}}
@media(prefers-reduced-motion:reduce){#tomo-garden-view.ep-tomo,#tomo-garden-view.ep-tomo::before{animation:none}::view-transition-old(tomo-compagnon),::view-transition-new(tomo-compagnon){animation:none}}

/* ---------- Prochaine leçon + un seul bouton arc-en-ciel ---------- */
.ep-next{display:flex;flex-direction:column;gap:12px}
.ep-next small{display:block;color:#5f6b60;font-size:13px}
.ep-next strong{display:block;font-size:19px;color:#1f2f3d;margin-top:2px}
.ep-next .button.primary{justify-content:center;min-height:54px;width:100%}
@media(min-width:761px){.ep-next{flex-direction:row;align-items:center;justify-content:space-between}.ep-next .button.primary{width:auto;min-width:280px}}

/* ---------- Boutons ronds colorés (actions secondaires) ---------- */
.ep-rounds{display:grid;grid-auto-flow:column;grid-auto-columns:78px;justify-content:start;gap:clamp(6px,3vw,16px)}
.ep-round{display:flex;flex-direction:column;align-items:center;gap:7px;width:78px;padding:0;border:0;background:none;font:inherit;font-size:12px;font-weight:700;line-height:1.2;color:#24384a;text-align:center;cursor:pointer}
.ep-round>i{position:relative;width:56px;height:56px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(145deg,#ffffffcc,var(--ep-c,var(--ep-page)));border:1px solid #ffffffee;box-shadow:inset 0 1px 1px #fff,0 4px 14px #51676a14;transition:transform .18s ease}
.ep-round svg{width:24px;height:24px}
.ep-round b{position:absolute;top:-4px;right:-8px;font-size:10px;font-style:normal;background:#438775;color:#fff;border-radius:999px;padding:2px 6px}
@media(hover:hover){.ep-round:hover{color:#438775}.ep-round:hover>i{transform:translateY(-2px)}}
.ep-round:focus-visible{outline:none}.ep-round:focus-visible>i{box-shadow:0 0 0 3px #fff,0 0 0 6px #b9a6e6}
.ep-c1{--ep-c:var(--ep-ciel)}.ep-c2{--ep-c:var(--ep-beurre)}.ep-c3{--ep-c:var(--ep-lavande)}.ep-c4{--ep-c:var(--ep-rose)}.ep-c5{--ep-c:var(--ep-menthe)}.ep-c6{--ep-c:var(--ep-peche)}

/* Matière en cours : pastille de la page */

/* ---------- Chapitres repliés (une ligne chacun, s'ouvrent au toucher) ---------- */
.ep-sec{display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin-top:4px}
.ep-sec h2{margin:0}
.ep-sec span{font-size:13px;color:#5f6b60;font-weight:700}
.ep-chapters{display:grid;gap:0}
@media(min-width:900px){.ep-chapters{grid-template-columns:1fr 1fr;column-gap:36px;align-items:start}}
.ep-chapter{border-bottom:1px solid #24384a14}
.ep-chapter>summary{display:flex;align-items:center;gap:14px;padding:15px 4px;cursor:pointer;list-style:none;font-weight:700;color:#24384a}
.ep-chapter>summary::-webkit-details-marker{display:none}
.ep-chapter>summary .ep-n{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;font-size:13px;font-weight:800;flex:none;background:var(--ep-c)}
.ep-chapter>summary .ep-t{flex:1;min-width:0}
.ep-chapter>summary .ep-count{font-size:12.5px;color:#5f6b60}
.ep-chapter>summary::after{content:'›';color:#8a958b;font-size:18px;transition:transform .2s}
.ep-chapter[open]>summary::after{transform:rotate(90deg)}
.ep-chapter .toc-list{margin:0 0 12px}
.ep-chapter:nth-child(5n+1){--ep-c:var(--ep-peche)}.ep-chapter:nth-child(5n+2){--ep-c:var(--ep-beurre)}.ep-chapter:nth-child(5n+3){--ep-c:var(--ep-menthe)}.ep-chapter:nth-child(5n+4){--ep-c:var(--ep-ciel)}.ep-chapter:nth-child(5n+5){--ep-c:var(--ep-lavande)}
.ep-more{border-top:1px solid #24384a14;padding-top:6px}
.ep-more>summary{cursor:pointer;font-weight:700;color:#24384a;padding:10px 4px}

/* ---------- Pages sans grand cadre (révisions, cartable) ---------- */
.ep-center{display:flex;flex-direction:column;align-items:center;text-align:center;gap:10px;padding-top:8px}
.ep-center h2{margin:6px 0 0}
.ep-center p{margin:0}
.ep-list{display:flex;flex-direction:column}
.ep-list .check-row{display:flex;align-items:center;gap:14px;padding:15px 4px;border-bottom:1px solid #24384a14;font-size:16px;font-weight:700;color:#24384a}
.ep-list .check-row:last-child{border-bottom:0}
.ep-list .check-row input{width:26px;height:26px;border-radius:50%;accent-color:#438775}
.ep-split{display:grid;gap:26px}
@media(min-width:900px){.ep-split{grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:start}}

/* ---------- Espace parent : chiffres en pastilles, rubriques qui s'ouvrent ---------- */
.ep-stats{display:flex;gap:10px}
.ep-stats>div{flex:1;min-width:0;padding:10px 12px;border-radius:20px;background:linear-gradient(145deg,#ffffffb8,var(--ep-c))}
.ep-stats strong{display:block;font-family:var(--mt-display);font-size:26px;color:#1f2f3d}
.ep-stats span{font-size:12.5px;color:#5f6b60}
.ep-stats>div:nth-child(1){--ep-c:var(--ep-menthe)}.ep-stats>div:nth-child(2){--ep-c:var(--ep-ciel)}.ep-stats>div:nth-child(3){--ep-c:var(--ep-peche)}
.ep-folds{display:grid}
@media(min-width:900px){.ep-folds{grid-template-columns:1fr 1fr;column-gap:36px;align-items:start}}
.ep-fold{border-bottom:1px solid #24384a14}
.ep-fold>summary{display:flex;align-items:center;gap:14px;padding:14px 4px;cursor:pointer;list-style:none;font-weight:700;color:#24384a;font-size:16px}
.ep-fold>summary::-webkit-details-marker{display:none}
.ep-fold>summary::after{content:'›';margin-left:auto;color:#8a958b;font-size:18px;transition:transform .2s}
.ep-fold[open]>summary::after{transform:rotate(90deg)}
.ep-fold>summary>i{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;flex:none;background:var(--ep-c)}
.ep-fold>summary>i svg{width:20px;height:20px}
.ep-fold:nth-child(5n+1){--ep-c:var(--ep-peche)}.ep-fold:nth-child(5n+2){--ep-c:var(--ep-beurre)}.ep-fold:nth-child(5n+3){--ep-c:var(--ep-menthe)}.ep-fold:nth-child(5n+4){--ep-c:var(--ep-ciel)}.ep-fold:nth-child(5n+5){--ep-c:var(--ep-lavande)}
.ep-fold>.ep-fold-body{padding:0 0 14px}
.ep-fold>.ep-fold-body>.card{margin:0;box-shadow:none}
.ep-note{font-size:12px;color:#5f6b60;text-align:center;margin:0}

/* ---------- Mon Tomo : scène sans cadre, cadeaux en icônes rondes ---------- */
@layer meettomo-theme{
html body[data-page=tomo] .collection-stage{background:none!important;border:0!important;box-shadow:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
html body[data-page=tomo] .collection-stage::before,html body[data-page=tomo] .collection-stage::after,html body[data-page=tomo] .collection-stage>.da-wash{display:none!important}
}
body[data-page=tomo] .collection-panel .reward-card p,body[data-page=tomo] .collection-panel .reward-card small{display:none}

/* ---------- Barre du bas C2 (téléphone) : capsule translucide, pastille de couleur par page ---------- */
/* Dans la couche du thème : un !important hors couche ne bat pas celui d'une couche (cascade layers). */
@layer meettomo-theme{
@media(max-width:760px){
 html body .sidebar{left:12px!important;right:12px!important;width:auto!important;bottom:calc(6px + env(safe-area-inset-bottom))!important;height:62px!important;padding:4px 6px!important;border-radius:30px!important;
  background:#ffffff4d!important;border:1px solid #ffffffb3!important;backdrop-filter:blur(10px) saturate(170%)!important;-webkit-backdrop-filter:blur(10px) saturate(170%)!important;box-shadow:0 8px 28px #43597a1f,inset 0 1px 1px #ffffffd0!important}
 html body .sidebar nav{gap:0!important}
 html body .sidebar nav button[data-view],html body .sidebar nav button[data-view].active{background:none!important;background-image:none!important;border:0!important;box-shadow:none!important;font-size:9.5px!important;white-space:nowrap;padding-left:0!important;padding-right:0!important;min-height:56px!important;font-weight:600;color:#3d4c58!important}
 html body .sidebar nav button[data-view]::before,html body .sidebar nav button[data-view]::after{content:none!important;display:none!important}
 html body .sidebar nav button[data-view].active{font-weight:800;color:#1f2f3d!important}
 html body .sidebar .nav-water{display:none!important}
 html body .sidebar nav button[data-view] .nav-icon{border-radius:999px;padding:4px 14px!important;border:0!important;background:transparent!important;box-shadow:none!important;transition:background-color .25s ease}
 html body .sidebar nav button[data-view].active .nav-icon{box-shadow:none!important}
 html body .sidebar nav button[data-view=today].active .nav-icon{background:var(--ep-peche)!important}
 html body .sidebar nav button[data-view=learn].active .nav-icon{background:var(--ep-beurre)!important}
 html body .sidebar nav button[data-view=review].active .nav-icon{background:var(--ep-menthe)!important}
 html body .sidebar nav button[data-view=bag].active .nav-icon{background:var(--ep-ciel)!important}
 html body .sidebar nav button[data-view=tomo].active .nav-icon{background:var(--ep-lavande)!important}
}
}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){@media(max-width:760px){.sidebar{background:#ffffffe6!important}}}
/* Chapitre en cours seulement (planche des chapitres, option B) */
.ep-now{display:flex;gap:16px;align-items:center}
.ep-now small{display:block;font-size:12px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#5f6b60}
.ep-now strong{display:block;font-family:var(--mt-display,inherit);font-size:22px;line-height:1.15;color:#1f2f3d;margin-top:2px}
.ep-ring{position:relative;flex:none;width:68px;height:68px;border-radius:50%;display:grid;place-items:center;background:#ffffff9e;box-shadow:inset 0 1px 2px #51676a1f}
/* Arc-en-ciel du bouton principal (B4·h), dévoilé jusqu'au pourcentage (17/11, Loïc) */
.ep-ring::after{content:'';position:absolute;inset:0;border-radius:50%;background:conic-gradient(#9fd6b9,#bba8ea 35%,#f0ad8c 68%,#f0cf6a 92%,#9fd6b9);-webkit-mask:conic-gradient(#000 var(--p),#0000 0);mask:conic-gradient(#000 var(--p),#0000 0)}
.ep-ring::before{content:'';position:absolute;inset:8px;border-radius:50%;background:#fbf7f1;box-shadow:0 1px 4px #51676a1a;z-index:1}
.ep-ring b{position:relative;z-index:2;font-size:14px;color:#1f2f3d}
.ep-now-list{margin:0}
.ep-all{display:flex;flex-direction:column;align-items:center}
.ep-all>summary{align-self:center;display:inline-flex;gap:10px;align-items:center;min-height:48px;padding:0 22px;border-radius:999px;background:#ffffffb8;border:1px solid #fff;box-shadow:0 4px 14px #51676a14;font-weight:800;color:#24384a;cursor:pointer;list-style:none}
.ep-all>summary::-webkit-details-marker{display:none}
.ep-all>summary b{font-size:12px;background:#24384a12;border-radius:999px;padding:2px 8px}
@media(hover:hover){.ep-all>summary:hover{color:#438775}}
.ep-all>summary:focus-visible{outline:3px solid #b9a6e6;outline-offset:3px}
.ep-all[open]>summary{margin-bottom:16px}
.ep-all>*:not(summary){width:100%}
/* Toucher Tomo ouvre sa bulle (remplace le rond « Dire bonjour à Tomo ») */
.ep-tomo-btn{flex:none;padding:0;margin:0;border:0;background:none;border-radius:50%;cursor:pointer;-webkit-tap-highlight-color:transparent}
.ep-tomo-btn:focus-visible{outline:3px solid #b9a6e6;outline-offset:4px}
/* Mon Tomo : mêmes halos et même nom de transition que sur les autres pages */
body[data-page=tomo] #tomo-garden-view{position:relative;isolation:isolate;view-transition-name:tomo-compagnon}
body[data-page=tomo] #tomo-garden-view::before{z-index:-1}
@media(prefers-reduced-motion:reduce){body[data-page=tomo] #tomo-garden-view::before{animation:none}}
/* Cartable : la liste garde son entrée animée (motion-bag-paper) mais plus son décor de papier */
.ep .motion-bag-paper{margin-top:0!important}
.ep .motion-bag-paper::before,.ep .motion-bag-paper::after{content:none!important;display:none!important}
/* Les halos débordent un peu de Tomo : jamais de défilement horizontal sur téléphone */
body:has(.ep){overflow-x:hidden;overflow-x:clip}
/* Matières en onglets soulignés d'arc-en-ciel (planche des raccourcis, piste B, 17/11) */
@layer meettomo-theme{
html body .ep .subject-switch{display:flex!important;flex-wrap:nowrap!important;gap:20px!important;overflow-x:auto!important;overflow-y:hidden!important;scrollbar-width:none;border-bottom:1px solid #24384a14;padding:0!important;margin:0!important;width:auto!important;max-width:100%;background:none!important;border-radius:0!important;box-shadow:none!important}
html body .ep .subject-switch::-webkit-scrollbar{display:none}
html body .ep .subject-switch button{flex:none;display:inline-flex;align-items:center;min-height:44px;padding:0!important;border:0!important;border-radius:0!important;background:none!important;background-image:none!important;box-shadow:none!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important;font-weight:700;font-size:15px;color:#6a756b!important;white-space:nowrap;border-bottom:3px solid transparent!important}
html body .ep .subject-switch button::before,html body .ep .subject-switch button::after{content:none!important;display:none!important}
html body .ep .subject-switch button svg{display:none!important}
html body .ep .subject-switch button[aria-pressed=true]{color:#1f2f3d!important;border-bottom:3px solid!important;border-image:linear-gradient(90deg,#9fd6b9,#bba8ea,#f0ad8c,#f0cf6a) 1!important}
@media(hover:hover){html body .ep .subject-switch button:hover{color:#438775!important}}
html body .ep .subject-switch button:focus-visible{outline:3px solid #b9a6e6!important;outline-offset:2px}
html body .ep .subject-switch .subject-switch-level{font-weight:600;font-size:13.5px}
}
/* Étiquettes autour de Tomo (piste B2 validée par Loïc le 17/11) : pastel semi-transparent sans flou, nom toujours visible */
.ep-stage{position:relative;flex:none;width:176px;min-height:150px}
.ep-head:has(.ep-stage){align-items:flex-start}
.ep-stage:has(.ep-tag:nth-child(5)){min-height:192px}
/* La zone à toucher de Tomo suit son corps : les étiquettes ne la recouvrent jamais */
.ep-stage>.ep-tomo-btn{position:absolute;right:24px;top:14px;width:64px;height:96px}
.ep-stage>.ep-tomo-btn>#tomo-garden-view.ep-tomo{position:absolute;left:calc(50% - var(--ep-tomo,128px) / 2);top:calc(50% - var(--ep-tomo,128px) / 2)}
@media(max-width:760px){.ep-head:has(.ep-stage) h1{font-size:clamp(30px,9.2vw,38px)}}
.ep-tag{position:absolute;z-index:2;display:inline-flex;align-items:center;gap:6px;max-width:170px;padding:3px 10px 3px 3px;border-radius:999px;border:1px solid #ffffffb3;background:#ffffff8c;box-shadow:0 4px 14px #51676a12;font:inherit;font-size:12px;font-weight:800;color:#24384a;white-space:nowrap;cursor:pointer;transition:transform .18s ease}
.ep-tag>i{width:28px;height:28px;flex:none;border-radius:50%;display:grid;place-items:center;background:var(--ep-c)}
.ep-tag svg{width:15px;height:15px}
.ep-tag>span{overflow:hidden;text-overflow:ellipsis}
.ep-tag>b{font-size:10px;background:#438775;color:#fff;border-radius:999px;padding:1px 6px}
.ep-tag:nth-child(2){right:100px;top:4px}.ep-tag:nth-child(3){right:106px;top:52px}.ep-tag:nth-child(4){right:100px;top:100px}.ep-tag:nth-child(5){right:56px;top:148px}
@media(hover:hover){.ep-tag:hover{color:#438775;transform:translateY(-1px)}}
.ep-tag:focus-visible{outline:3px solid #b9a6e6;outline-offset:2px}
@media(min-width:761px){.ep-stage{width:320px;min-height:210px}.ep-stage>.ep-tomo-btn{right:44px;top:20px;width:84px;height:130px}.ep-tag{font-size:13px}.ep-tag:nth-child(2){right:150px;top:16px}.ep-tag:nth-child(3){right:162px;top:68px}.ep-tag:nth-child(4){right:150px;top:120px}.ep-tag:nth-child(5){right:60px;top:170px}}
@media(max-width:400px){#tomo-garden-view.ep-tomo::before{inset:-6% -2% -2%}}
/* Surnom du menu sur une seule ligne, décalé vers la gauche (Loïc, 17/11) : les carrés rétrécissent au besoin */
@layer meettomo-theme{
html body .sidebar .profile{gap:6px!important;margin-inline-start:-8px}
html body .sidebar .profile>div{flex:1 1 auto;min-inline-size:0}
html body .sidebar .mt-name-tiles{display:flex!important;flex-wrap:nowrap!important;column-gap:2px!important;row-gap:3px!important;max-inline-size:100%;min-inline-size:0}
html body .sidebar .mt-name-tiles .mt-onb-tile{flex:0 1 22px;inline-size:auto!important;min-inline-size:13px!important;padding-inline:0!important;block-size:26px!important;font-size:15px!important;overflow:hidden}
html body .sidebar .mt-name-tiles .mt-onb-gap{flex:0 1 5px;inline-size:auto!important;min-inline-size:0}
html body .sidebar .mt-name-tiles:has(.mt-onb-tile:nth-child(12)){flex-wrap:wrap!important}
}
/* La classe seule au-dessus du Bonjour, sur téléphone ; sur ordinateur elle est déjà sous le surnom (Loïc, 17/11) */
@media(min-width:761px){.ep-level{display:none!important}}
@media(max-width:370px){.ep-head:has(.ep-stage) h1{font-size:30px}.ep-tag{font-size:11.5px}}
.ep-discovery{margin:26px 0 8px;font-size:13px;line-height:1.5;color:#6a756b;max-inline-size:60ch}
:root[data-veilleuse=on] .ep-discovery{color:#c9d2e3}
/* 17/11/2026 (Loïc) : étiquettes à égale distance autour de Tomo, avec un léger flottement décalé ; rien avec le mouvement réduit. */
@keyframes ep-float{0%,100%{translate:0 0}50%{translate:0 -4px}}
.ep-stage>.ep-tag{animation:ep-float 4.2s ease-in-out infinite}
.ep-stage>.ep-tag:nth-child(3){animation-delay:-1.4s}.ep-stage>.ep-tag:nth-child(4){animation-delay:-2.8s}.ep-stage>.ep-tag:nth-child(5){animation-delay:-.7s}
@media(prefers-reduced-motion:reduce){.ep-stage>.ep-tag{animation:none}}
/* 17/11/2026 (Loïc, option 1) : la boîte Tomo Flash prend la matière de la barre du bas : verre givré, même blanc, même flou. */
@layer meettomo-theme{
:root body .photo-card.photo-card{background:#ffffff4d!important;background-image:none!important;-webkit-backdrop-filter:blur(10px) saturate(170%)!important;backdrop-filter:blur(10px) saturate(170%)!important;border:1px solid #ffffffb3!important;box-shadow:0 8px 28px #43597a1f,inset 0 1px 1px #ffffffd0!important}
:root body .photo-card.photo-card::before,:root body .photo-card.photo-card>.da-wash{display:none!important}
}
/* Veilleuse de la webapp épurée (17/11/2026) : dans la couche veilleuse, nommée avant le thème ;
   sinon le verre de nuit des boutons et l'encre de jour rendent les étiquettes, les onglets et la barre illisibles. */
@layer meettomo-veilleuse{
:root[data-veilleuse=on] body .ep-next strong,:root[data-veilleuse=on] body .ep-now strong,:root[data-veilleuse=on] body .ep-chapter>summary,:root[data-veilleuse=on] body .ep-more>summary,:root[data-veilleuse=on] body .ep-fold>summary,:root[data-veilleuse=on] body .ep-list .check-row,:root[data-veilleuse=on] body .ep-round{color:#f3f6fb!important}
:root[data-veilleuse=on] body .ep-next small,:root[data-veilleuse=on] body .ep-sec span,:root[data-veilleuse=on] body .ep-chapter>summary .ep-count,:root[data-veilleuse=on] body .ep-now small,:root[data-veilleuse=on] body .ep-note{color:#c9d2e3!important}
:root[data-veilleuse=on] body :is(.ep-chapter,.ep-more,.ep-fold,.ep-list .check-row){border-color:#ffffff26!important}
:root[data-veilleuse=on] body :is(.ep-tag>i,.ep-round>i,.ep-fold>summary>i,.ep-chapter>summary .ep-n,.photo-card-badge){color:#24384a!important}
:root[data-veilleuse=on] body .ep-tag{background:#ffffff1f!important;border-color:#ffffff40!important;color:#e9eef7!important;box-shadow:0 4px 14px #04060c33!important}
:root[data-veilleuse=on] body .ep-all>summary{background:#ffffff1f!important;border-color:#ffffff40!important;color:#e9eef7!important}
:root[data-veilleuse=on] body .ep-all>summary b{background:#ffffff26!important}
:root[data-veilleuse=on] body .ep .subject-switch{border-bottom-color:#ffffff26!important}
:root[data-veilleuse=on] body .ep .subject-switch button{background:none!important;background-image:none!important;box-shadow:none!important;color:#c9d2e3!important}
:root[data-veilleuse=on] body .ep .subject-switch button[aria-pressed=true]{color:#f3f6fb!important}
@media(max-width:760px){
:root[data-veilleuse=on] body .sidebar{--mt-nav-ink:#3d4c58;--mt-nav-icon:#3d4c58}
:root[data-veilleuse=on] body .sidebar nav button[data-view]{background:none!important;background-image:none!important;box-shadow:none!important;color:#3d4c58!important}
:root[data-veilleuse=on] body .sidebar nav button[data-view] svg{color:#3d4c58!important}
:root[data-veilleuse=on] body .sidebar nav button[data-view].active{color:#1f2f3d!important}
:root[data-veilleuse=on] body .sidebar nav button[data-view].active .nav-icon{color:#24384a!important}
:root[data-veilleuse=on] body .sidebar nav .nav-icon .nav-paper{fill:none!important}
:root[data-veilleuse=on] body .sidebar nav button[data-view]:not(.active) .nav-icon{background:transparent!important;box-shadow:none!important;border:0!important}
}
}
/* 18/11/2026 (choix de Loïc, version 4) : la nuit, la barre du bas garde le verre blanc givré du jour, qui prend
   la teinte lavande du fond ; icônes et noms en encre, intérieur des icônes lavande (plus de fond blanc). */
@layer meettomo-veilleuse{@media(max-width:760px){:root[data-veilleuse=on] body .sidebar{background:#ffffff4d!important;border:1px solid #ffffffb3!important;backdrop-filter:blur(10px) saturate(170%)!important;-webkit-backdrop-filter:blur(10px) saturate(170%)!important;box-shadow:0 8px 28px #43597a1f,inset 0 1px 1px #ffffffd0!important}}}
/* Lien vers les offres dans la note Découverte (17/11) : toujours visible, discret, souligné. */
.ep-discovery .ep-offers{display:inline-block;margin-block-start:4px;color:#24384a;font-weight:800;text-decoration:underline;text-underline-offset:3px}
@media(hover:hover){.ep-discovery .ep-offers:hover{color:#438775}}
.ep-discovery .ep-offers:focus-visible{outline:3px solid #b9a6e6;outline-offset:2px;border-radius:4px}
@layer meettomo-veilleuse{:root[data-veilleuse=on] body .ep-discovery .ep-offers{color:#f3f6fb!important;background:none!important;-webkit-text-fill-color:#f3f6fb!important}}
/* 18/11/2026 (Loïc) : sur ordinateur, la nuit, la barre latérale garde aussi le verre blanc givré du jour, comme la barre du bas (version 4). */
@layer meettomo-veilleuse{@media(min-width:761px){
:root[data-veilleuse=on] body .sidebar{background:linear-gradient(135deg,#ffffff6b,#fff9f133)!important;border-color:#ffffff9e!important;color:#24384a!important;--mt-nav-ink:#24384a;--mt-nav-icon:#24384a}
:root[data-veilleuse=on] body .sidebar :is(.profile,.profile small,.profile-change,.sidebar-bottom,.sidebar-bottom *,.parent-link){color:#24384a!important}
:root[data-veilleuse=on] body .sidebar .profile small{color:#5b6b66!important}
:root[data-veilleuse=on] body .sidebar nav button[data-view]{background:linear-gradient(135deg,#ffffff80,#ffffff30)!important;color:#24384a!important;box-shadow:inset 0 2px 2px #ffffffdc,0 11px 28px #5965790b!important}
:root[data-veilleuse=on] body .sidebar nav button[data-view] svg{color:#24384a!important}
:root[data-veilleuse=on] body .sidebar :is(nav .nav-icon,.profile .avatar){background:linear-gradient(135deg,#ffffff80,#ffffff30)!important;border-color:#ffffffcf!important;color:#24384a!important;box-shadow:inset 0 1px 1px #fff!important}
:root[data-veilleuse=on] body .sidebar nav button.active .nav-icon{background:#ffffffac!important}
:root[data-veilleuse=on] body .sidebar nav .nav-icon .nav-paper{fill:none!important}
/* Sur ce verre clair, le logo de jour (approuvé) reste lisible ; le logo de nuit est masqué, son texte alternatif reste. */
:root[data-veilleuse=on] body .sidebar .brand{background:url(assets/wordmark.svg) left center/170px 45px no-repeat}
:root[data-veilleuse=on] body .sidebar .brand img{opacity:0;filter:none!important}
:root[data-veilleuse=on] body .sidebar :is(.profile-change,.profile-change span){color:#24384a!important;-webkit-text-fill-color:#24384a!important}
}}
/* 18/11/2026 : sous-titres des leçons (« 6 questions · réussie dès 5 bonnes réponses ») assez contrastés
   sur les cartes claires (4,5:1 au moins ; #738075 donnait 3,9:1 et bloquait la publication). */
.ep .toc-copy small{color:#5d6a60}
