.comfort-tools{display:flex;gap:.5rem;align-items:center;justify-content:flex-end;flex-wrap:wrap;padding:.35rem 0}.comfort-tools button,.comfort-dialog button,.comfort-home-tools button,.comfort-star,.comfort-reading-controls button{font:inherit;color:inherit;background:var(--paper,#fffaf0);border:1px solid currentColor;border-radius:12px;padding:.55rem .8rem;cursor:pointer;min-height:44px}.comfort-tools button{font-size:.8rem;background:transparent;color:inherit}.comfort-search-toggle{font-size:1.5rem!important;min-width:44px}.comfort-dialog{color:var(--ink,#183e42);background:var(--paper,#fffaf0);border:1px solid #aab8b4;border-radius:20px;padding:1.5rem;width:min(680px,calc(100vw - 24px));max-height:calc(90dvh - env(safe-area-inset-top));overflow:auto;box-sizing:border-box}.comfort-dialog::backdrop{background:#142c36a8}.comfort-dialog h2{margin-top:.3rem}.comfort-close{float:right}.comfort-dialog input{font:inherit;width:100%;box-sizing:border-box;padding:1rem;border-radius:12px;border:1px solid #8b9d96;background:inherit;color:inherit}.comfort-link{display:block;padding:.7rem .85rem;margin:.35rem 0;text-decoration:none;color:inherit;border:1px solid #8b9d9655;border-radius:12px;min-height:44px;box-sizing:border-box}.comfort-link:hover{background:#8b9d961a}.comfort-results section{margin:1.2rem 0}.comfort-row{display:flex;gap:.5rem;align-items:center;justify-content:space-between}.comfort-row .comfort-link{flex:1}.comfort-row span{overflow-wrap:anywhere}.comfort-resume{border:1px solid #8b9d9666;border-radius:16px;padding:1rem;display:flex;gap:1rem;align-items:center;justify-content:space-between;margin:1rem 0}.comfort-resume[hidden]{display:none}.comfort-resume .comfort-link{flex-shrink:0}.comfort-home-tools{margin:1rem 0}.comfort-course-tools{display:flex;gap:.6rem;align-items:center;flex-wrap:wrap;margin:.6rem 0}.comfort-crumbs{font-size:.8rem;opacity:.8}.comfort-reading-controls{padding:.35rem 1rem;border-bottom:1px solid #8b9d9655}.comfort-reading-controls summary{cursor:pointer;min-height:34px}.comfort-reading-controls div{display:flex;gap:.35rem;flex-wrap:wrap;padding:.35rem 0}#reader-body>.reading-text{box-sizing:border-box;width:var(--comfort-column-width,calc(100% - 32px));max-width:var(--comfort-text-width,680px);font-size:var(--comfort-text-size,20px);line-height:var(--comfort-line-height,1.85);margin-inline:auto;overflow-wrap:break-word}
#reader-body>.reading-text p{font-size:inherit;line-height:var(--comfort-line-height,1.85)}
.comfort-reading-status{display:block;font-size:.8rem;color:var(--muted);padding:.2rem 0 .4rem}.comfort-reading-controls button[aria-pressed=true]{background:color-mix(in srgb,var(--accent,#426b64) 16%,var(--surface,#fffaf0))}.comfort-reading-controls button:disabled{opacity:.4;cursor:default}
.comfort-top{position:fixed;bottom:calc(16px + env(safe-area-inset-bottom));right:16px;z-index:25;width:44px;height:44px;border-radius:50%;border:1px solid #8b9d96;background:var(--paper,#fffaf0);color:var(--ink,#183e42);cursor:pointer}button:focus-visible,a:focus-visible,summary:focus-visible,input:focus-visible{outline:3px solid #c77a32;outline-offset:3px}[data-theme=dark] .comfort-dialog{color:#f2e9d8;background:#172b30}[data-theme=dark] .comfort-dialog button,[data-theme=dark] .comfort-home-tools button,[data-theme=dark] .comfort-star,[data-theme=dark] .comfort-reading-controls button,[data-theme=dark] .comfort-top{color:#f2e9d8;background:#21383b}@media(max-width:620px){.comfort-tools{gap:.25rem;padding:.25rem 0}.comfort-tools button{font-size:.72rem;min-height:36px;padding:.3rem .5rem}.comfort-tools .comfort-search-toggle{min-height:44px}.comfort-resume{flex-wrap:wrap;gap:.3rem}.comfort-dialog{padding:1rem}.comfort-dialog h2{font-size:1.3rem}.comfort-reading-controls{padding:.25rem .7rem}.comfort-tools{position:static}.comfort-row{flex-wrap:wrap}.comfort-row .comfort-link{min-width:140px}}@media(prefers-reduced-motion:reduce){.comfort-dialog *{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
@media(max-width:620px){.comfort-tools button{min-height:44px}.comfort-search-toggle{position:fixed;right:16px;bottom:calc(16px + env(safe-area-inset-bottom));z-index:26;background:#fffaf0!important;color:#183e42!important;border:1px solid #8b9d96!important;border-radius:50%!important;width:44px;height:44px;box-shadow:0 2px 10px #142c3633}.comfort-top{bottom:calc(68px + env(safe-area-inset-bottom))}}[data-theme=dark] .comfort-search-toggle{background:#21383b!important;color:#f2e9d8!important}
.comfort-result-level{display:block;font-size:.75rem;opacity:.75;margin-top:.15rem}.comfort-dialog section h3{font-size:1.05rem}.comfort-crumbs a{color:inherit}
.comfort-reader-tools{display:flex;align-items:flex-start;gap:.25rem;padding-right:.5rem}.comfort-reader-tools .comfort-reading-controls{flex:1}.comfort-reader-tools>button{min-width:44px;min-height:44px;border:1px solid #8b9d9666;border-radius:12px;font:inherit;font-size:1.5rem;color:inherit;background:transparent;cursor:pointer}
@media(max-width:620px){body{padding-bottom:calc(64px + env(safe-area-inset-bottom))}body:has(#class-destinations.is-open) .comfort-search-toggle,body:has(#class-destinations.is-open) .comfort-top{visibility:hidden}}
/* Compact access: search in the resource band, saved notions opposite the theme. */
.site-header .header-inner{padding-left:96px}.comfort-review-toggle{position:absolute;left:36px;top:22px;display:grid;place-items:center;width:44px;height:44px;font:inherit;font-size:1.5rem;border:1px solid currentColor;border-radius:50%;background:transparent;color:inherit;cursor:pointer}.comfort-review-toggle::after{content:attr(data-count);position:absolute;right:-4px;top:-4px;font:600 10px system-ui;background:#e9cf9a;color:#183e42;border-radius:20px;min-width:15px;line-height:15px}.comfort-review-toggle[data-count=""]::after{display:none}.legal-header{position:relative}.legal-header .comfort-review-toggle{position:static;flex:none}.header-navigation>.comfort-search-toggle{position:static!important;flex:none;width:44px;height:44px;min-height:44px;display:grid;place-items:center;padding:0;border:0;border-radius:8px;background:transparent!important;color:inherit!important;box-shadow:none;cursor:pointer}.header-navigation>.comfort-search-toggle:hover{background:#ffffff18!important}.comfort-review-dialog{width:min(820px,calc(100vw - 24px));padding:28px}.comfort-review-intro{max-width:58ch;line-height:1.6;opacity:.8}.comfort-review-filters{display:flex;gap:8px;flex-wrap:wrap;margin:22px 0 16px}.comfort-review-filters button{border-color:#8b9d9666;font-size:.85rem}.comfort-review-filters button[aria-pressed=true]{background:#235456;color:#fff7e9}.comfort-review-group{margin:26px 0}.comfort-review-group h3{border-bottom:1px solid #8b9d9666;padding-bottom:10px}.comfort-review-group h4{font-size:.8rem;font-weight:500;letter-spacing:.03em;opacity:.7;margin:18px 0 8px}.comfort-review-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.comfort-review-card{display:flex;border:1px solid #8b9d9655;border-radius:14px;align-items:center;overflow:hidden}.comfort-review-card .comfort-link{flex:1;border:0;margin:0;min-width:0;padding:16px;line-height:1.45}.comfort-review-card .comfort-link small{display:block;opacity:.7;font-size:.75rem;margin-top:8px}.comfort-review-card>button{border:0;background:transparent!important;color:#b48232!important;padding:0;width:44px;min-width:44px;margin-right:4px}.comfort-review-empty{padding:30px 20px;text-align:center;border:1px dashed #8b9d96;border-radius:16px;margin-top:20px}.comfort-review-empty .comfort-link{display:inline-block}.comfort-tools{padding:0}.comfort-crumbs{display:none}@media(max-width:620px){.site-header .header-inner{padding-left:72px;padding-right:64px}.site-header .comfort-review-toggle{left:18px;top:20px}.sticky-navigation .header-navigation{grid-template-columns:minmax(0,1fr) auto auto auto!important}.sticky-navigation .header-navigation #message-link{grid-column:3}.sticky-navigation .header-navigation>.comfort-search-toggle{grid-column:4;grid-row:2}.comfort-review-dialog{padding:18px}.comfort-review-grid{grid-template-columns:1fr}.comfort-search-toggle{position:static;width:44px;height:44px;box-shadow:none}.comfort-top{bottom:calc(16px + env(safe-area-inset-bottom))}body{padding-bottom:0}body:has(#class-destinations.is-open) .header-navigation>.comfort-search-toggle{visibility:visible}}
@media(max-width:620px){.sticky-navigation .header-navigation{grid-template-columns:repeat(6,minmax(0,1fr))!important}.sticky-navigation .header-navigation .main-tabs{grid-column:1/5}.sticky-navigation .header-navigation #message-link{grid-column:5;grid-row:1}.sticky-navigation .header-navigation>.comfort-search-toggle{grid-column:6;grid-row:1;width:100%}.site-header .comfort-review-toggle{top:14px}}
.legal-header .comfort-review-toggle{position:relative;left:auto;top:auto}.legal-header .comfort-tools .comfort-search-toggle{background:transparent!important;color:inherit!important}@media(max-width:620px){.legal-header{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;gap:12px;padding:14px 16px}.legal-header .comfort-review-toggle{grid-column:1;grid-row:1}.legal-header>.brand{grid-column:2;grid-row:1;font-size:.95rem;gap:8px;min-width:0}.legal-header>.brand img{width:28px;height:28px}.legal-header>.legal-theme-toggle{grid-column:3;grid-row:1;margin:0}.legal-header>.legal-nav{grid-column:1/3;grid-row:2;gap:8px}.legal-header>.comfort-tools{grid-column:3;grid-row:2}.legal-header .comfort-search-toggle{padding:0;border-radius:50%;min-width:44px;font-size:1.5rem}}
.comfort-home-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:stretch;gap:14px;margin:1rem 0}.comfort-home-row>.comfort-resume{margin:0;min-width:0}.comfort-home-row>.comfort-home-tools{display:flex;margin:0}.comfort-home-row .comfort-home-tools>button{height:100%;white-space:nowrap;padding-inline:20px}.comfort-home-row:has(.comfort-resume[hidden]){grid-template-columns:1fr}.comfort-home-row:has(.comfort-resume[hidden])>.comfort-home-tools{justify-self:start}.comfort-short-classes{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;padding:0;border:0;margin:22px 0}.comfort-short-classes legend{font-size:.9rem;margin-bottom:10px}.comfort-short-classes button[aria-pressed=true]{background:#235456;color:#fff7e9;border-color:#235456}.comfort-short-body{padding:18px;border:1px solid #8b9d9655;border-radius:14px;margin-bottom:18px;line-height:1.6}.comfort-short-body>p:first-child{font-size:.85rem;opacity:.75;margin-top:0}.comfort-short-body h3{margin-top:6px;line-height:1.4}[data-theme=dark] .comfort-short-classes button[aria-pressed=true]{background:#b9d1bf;color:#172b30;border-color:#b9d1bf}@media(max-width:620px){.comfort-home-row{gap:8px}.comfort-home-row .comfort-resume{flex-wrap:nowrap;padding:10px;gap:6px}.comfort-home-row .comfort-resume strong{min-width:0;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.8rem}.comfort-home-row .comfort-resume a{font-size:0;width:44px;min-width:44px;padding:10px;text-align:center;margin:0}.comfort-home-row .comfort-resume a::after{content:'→';font-size:1.1rem}.comfort-home-row .comfort-home-tools>button{padding:10px;font-size:.8rem}.comfort-short-body{padding:14px}}
/* Deux actions centrées dans la fiche ; l’étoile reste visible à droite. */
#repere-neighbors{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:12px}#repere-neighbors>.repere-navigation-actions{display:flex;flex-wrap:wrap;gap:8px;min-width:0}#repere-neighbors>.repere-study-actions{display:flex;gap:10px;justify-content:center;align-items:center}#repere-neighbors .repere-study-actions>a{display:inline-flex;align-items:center;justify-content:center;text-align:center;min-height:48px;margin:0;padding:10px 18px;box-sizing:border-box;line-height:1.4}#repere-neighbors>.comfort-course-tools{justify-content:flex-end;margin:0;min-width:0}.comfort-course-tools>.comfort-star{margin-left:auto;order:2;flex:none;display:inline-flex;gap:6px;align-items:center;justify-content:center;min-height:48px;border:1px solid #b99455;border-radius:14px;background:color-mix(in srgb,#d6b76f 18%,var(--surface,#fffaf0));color:var(--ink,#183e42);font-weight:700;padding:10px 16px;box-shadow:0 3px 8px #102e3710}.comfort-course-tools>.comfort-star[aria-pressed=true]{background:#e6cc90;border-color:#af823e;color:#253735;box-shadow:0 0 0 2px #d6b76f33}.comfort-course-tools>.comfort-star:hover{border-color:#8b6228;box-shadow:0 3px 12px #102e3725}.literature-paths{align-items:stretch;justify-content:center}.literature-paths>.literature-train{display:flex;align-items:center;justify-content:center;text-align:center;min-height:52px;margin:0}[data-theme=dark] .comfort-course-tools>.comfort-star{background:#4b4634;border-color:#c2a15f;color:#f4e5bf}[data-theme=dark] .comfort-course-tools>.comfort-star[aria-pressed=true]{background:#e6cc90;color:#253735}@media(max-width:900px){#repere-neighbors{grid-template-columns:minmax(0,1fr) auto}#repere-neighbors>.repere-study-actions{grid-column:1;grid-row:1}#repere-neighbors>.comfort-course-tools{grid-column:2;grid-row:1}#repere-neighbors>.repere-navigation-actions{grid-column:1/-1;grid-row:2}}@media(max-width:480px){#repere-neighbors{grid-template-columns:1fr}#repere-neighbors>.comfort-course-tools{grid-column:1;grid-row:1}#repere-neighbors>.repere-study-actions{grid-column:1;grid-row:2}#repere-neighbors>.repere-navigation-actions{grid-column:1;grid-row:3}#repere-neighbors .repere-study-actions>a{flex:1;min-width:0;padding-inline:12px}.comfort-course-tools>.comfort-star{min-height:44px;padding:9px 14px}}

/* Bandeau compact sur téléphone ; les mots du titre restent entiers. */
.brand .brand-title .brand-word{font:inherit;letter-spacing:inherit;display:inline-block;white-space:nowrap}
@media(max-width:620px){
 .site-header .brand-subtitle{display:none}
 .site-header .header-inner{padding-top:14px;padding-bottom:14px;min-height:72px}
 .site-header .brand{gap:8px;min-width:0;width:100%}
 .site-header .brand-icon{width:28px;height:28px;flex:none}
 .site-header .brand-title{min-width:0;overflow-wrap:normal;word-break:normal;hyphens:none;line-height:1.25}
}

/* Les mêmes couleurs de classe que l'accueil et l'atelier, y compris personnalisées. */
[data-review-level="6e"]{--review-color:var(--class-6e,#50c7df)}[data-review-level="5e"]{--review-color:var(--class-5e,#00b4cd)}[data-review-level="4e"]{--review-color:var(--class-4e,#5687c9)}[data-review-level="3e"]{--review-color:var(--class-3e,#fa8518)}
.comfort-review-filters button[data-review-level]:not([data-review-level=all]):not([data-review-level=Autres]){border-color:var(--review-color);border-width:2px;color:var(--ink);background:color-mix(in srgb,var(--review-color) 14%,var(--surface))}
.comfort-review-filters button[data-review-level]:not([data-review-level=all]):not([data-review-level=Autres])[aria-pressed=true]{background:color-mix(in srgb,var(--review-color) 35%,var(--surface));box-shadow:0 0 0 2px color-mix(in srgb,var(--review-color) 30%,transparent)}
.comfort-review-group[data-review-level]:not([data-review-level=Autres]) h3{border-bottom:3px solid var(--review-color);padding:10px 12px;background:color-mix(in srgb,var(--review-color) 13%,var(--surface));border-radius:10px 10px 0 0}
.comfort-review-group[data-review-level]:not([data-review-level=Autres]) .comfort-review-card{border-inline-start:4px solid var(--review-color)}

/* Desktop tabs wrap instead of hiding the last label behind the resource buttons. */
@media(min-width:621px){
 .sticky-navigation .header-navigation .main-tabs{flex-wrap:wrap;overflow:visible;gap:4px;align-items:center}
 .sticky-navigation .main-tabs #tab-bibliographie{margin-left:0;flex-shrink:0;white-space:nowrap}
}
@media(min-width:621px) and (max-width:1100px){
 .sticky-navigation .header-navigation{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:6px;align-items:center}
 .sticky-navigation .header-navigation .main-tabs{grid-column:1/-1;width:100%}
 .sticky-navigation .header-navigation>button,.sticky-navigation .header-navigation>.message-nav-link{margin-inline:0;justify-self:center;min-width:0;max-width:100%;box-sizing:border-box}
 .sticky-navigation .header-navigation>#tab-oeuvres,.sticky-navigation .header-navigation>#tab-grammaire,.sticky-navigation .header-navigation>#tab-atelier,.sticky-navigation .header-navigation>.message-nav-link{display:flex;flex-direction:column;justify-content:center;gap:3px;padding-inline:6px;white-space:normal;font-size:.82rem;text-align:center}
 .sticky-navigation .header-navigation>.message-nav-link span{white-space:normal}
 .sticky-navigation .header-navigation .ev-nav-icon{margin-right:0}
 .sticky-navigation .header-navigation>.comfort-search-toggle,.sticky-navigation .header-navigation>.navigation-theme-toggle{justify-self:end}
}
