/* Home Table · chez Léa */
:root {
  --creme:#F4ECDD; --papier:#FFF9F0; --blanc:#FFFDF8;
  --encre:#2B1E16; --encre-2:#5B4A3C; --encre-3:#8A7A6A;
  --tomate:#C2452D; --tomate-fonce:#8A2E1C; --olive:#3F4A2A; --olive-2:#4F5B37; --olive-clair:#DCE0C6;
  --moutarde:#D9A441; --ligne:#E3D5BF; --ligne-2:#CDBB9F;
  --ombre:0 1px 0 #e9dcc6, 0 14px 30px -18px #6b4a2a55;
  --titre:'Bricolage Grotesque',system-ui,'Segoe UI',sans-serif; --texte:'Figtree',system-ui,'Segoe UI',sans-serif; --logo:'Fraunces',Georgia,serif; --main:'Caveat',cursive;
  /* compatibilité avec les anciens noms */
  --ink:var(--encre); --muted:var(--encre-3); --line:var(--ligne); --green:var(--olive); --clay:var(--tomate);
  --white:var(--papier); --soft:var(--creme); --sand:#F6E3D3; --paper:var(--creme); --serif:var(--titre); --sans:var(--texte);
}
* { box-sizing:border-box; }
html { -webkit-text-size-adjust:100%; }
body { margin:0; background:var(--creme); color:var(--encre); font:16px/1.6 var(--texte); -webkit-font-smoothing:antialiased; }
img { display:block; max-width:100%; }
button,input,select,textarea { font:inherit; color:inherit; }
button,a { touch-action:manipulation; }
button { cursor:pointer; border:0; background:none; }
button:disabled { opacity:.6; cursor:wait; }
a { color:inherit; }
a:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,summary:focus-visible { outline:3px solid var(--moutarde); outline-offset:3px; }
h1,h2,h3,h4,p { margin:0; }
h1,h2,h3 { font-family:var(--titre); font-weight:600; letter-spacing:-.022em; line-height:1.1; text-wrap:balance; }
/* Bricolage Grotesque n'a pas d'italique : les mots mis en avant dans les titres passent en couleur. */
h1 em, h2 em, h3 em { font-style:normal; }
h1 { font-size:clamp(34px,4.4vw,58px); }
h2 { font-size:26px; }
h3 { font-size:19px; }
p { max-width:72ch; }
main:focus { outline:none; }
.muted { color:var(--encre-3); }
.eyebrow { font-size:11.5px; letter-spacing:.14em; text-transform:uppercase; color:var(--encre-3); font-weight:500; margin-bottom:10px; }
.note { font-family:var(--main); font-weight:500; color:var(--tomate-fonce); line-height:1.08; }
.visually-hidden { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }

/* En-tête */
.masthead { padding:20px 0 8px; }
.header-inner { max-width:1240px; margin:auto; padding:0 28px; display:flex; justify-content:space-between; align-items:center; gap:22px; }
.brand { font:25px/1 var(--logo); text-decoration:none; white-space:nowrap; letter-spacing:-.01em; }
.brand em { color:var(--tomate); font-weight:350; }
.main-nav { display:flex; align-items:center; gap:4px; flex-wrap:wrap; }
.main-nav a { text-decoration:none; min-height:42px; display:inline-flex; align-items:center; padding:9px 15px; font-size:14px; border-radius:999px; color:var(--encre-2); transition:background .15s; }
.main-nav a:hover { background:#fff6; }
.main-nav a[aria-current=page] { background:var(--papier); color:var(--encre); box-shadow:var(--ombre); }
.account-link { display:flex; align-items:center; gap:10px; font-size:14px; text-decoration:none; color:var(--encre-2); white-space:nowrap; }
.avatar { width:34px; height:34px; border-radius:50%; background:var(--olive); color:var(--creme); display:grid; place-items:center; font-weight:600; font-size:13px; }
.notice-bar { max-width:1240px; margin:10px auto 0; padding:0 28px; display:flex; justify-content:flex-start; gap:12px; align-items:center; font-size:12.5px; color:var(--encre-2); }
.notice-bar span { background:var(--sand); color:var(--tomate-fonce); padding:6px 12px; border-radius:999px; }
.notice-bar button { font-size:12.5px; text-decoration:underline; text-underline-offset:3px; min-height:32px; color:var(--olive); }

/* Boutons, liens, étiquettes */
.btn { display:inline-flex; align-items:center; justify-content:center; gap:10px; min-height:46px; padding:12px 22px; background:var(--tomate); color:#FFF6EC; border:0; border-radius:999px; text-decoration:none; font-size:15px; font-weight:500; line-height:1.3; transition:transform .2s, background .2s; }
.btn:hover { background:var(--tomate-fonce); transform:translateY(-1px); }
.btn.secondary { background:transparent; color:var(--encre); box-shadow:inset 0 0 0 1px var(--ligne-2); }
.btn.secondary:hover { background:var(--papier); }
.btn.olive { background:var(--olive); color:var(--creme); }
.btn.olive:hover { background:#2f3820; }
.btn.danger { color:var(--tomate-fonce); background:transparent; box-shadow:inset 0 0 0 1px #d9a08f; }
.text-link { display:inline-flex; align-items:center; min-height:44px; padding:6px 0; text-decoration:underline; text-underline-offset:4px; text-decoration-color:var(--ligne-2); font-size:14px; color:var(--encre); }
.text-link:hover { text-decoration-color:var(--tomate); }
.tag { display:inline-block; font-size:11.5px; padding:4px 10px; border-radius:999px; background:var(--olive-clair); color:var(--olive); }
.tag.warm { color:var(--tomate-fonce); background:var(--sand); }
.actions { display:flex; flex-wrap:wrap; gap:12px; align-items:center; }

/* Mise en page */
.page { max-width:1240px; margin:auto; padding:30px 28px 80px; }
.heading { margin-bottom:30px; }
.heading p { margin-top:14px; color:var(--encre-2); font-size:17px; }
.heading h1 em { color:var(--tomate); font-style:normal; }
.heading-line { display:flex; justify-content:space-between; align-items:flex-end; gap:24px; }
.panel, .carte { background:var(--papier); border-radius:22px; box-shadow:var(--ombre); }
.panel { padding:24px 26px; margin-bottom:20px; }
.panel p { color:var(--encre-2); font-size:15px; margin:10px 0; }
.empty { padding:28px; border:1.5px dashed var(--ligne-2); border-radius:22px; color:var(--encre-2); }
.empty h2 { color:var(--encre); margin-bottom:12px; font-size:24px; }
.footer-note { font-size:12.5px; color:var(--encre-3); margin-top:40px; padding-top:18px; border-top:1px solid var(--ligne); }
.loading { max-width:900px; padding:60px 30px; margin:auto; font-family:var(--titre); font-size:22px; }

/* Accueil */
.accueil-hero { display:grid; grid-template-columns:1.05fr .95fr; gap:56px; align-items:center; padding:24px 0 56px; }
.accueil-hero h1 { font-size:clamp(40px,5.2vw,66px); line-height:1.02; margin:14px 0 20px; }
.accueil-hero h1 em { font-style:normal; color:var(--tomate); }
.chapo { font-size:18px; color:var(--encre-2); max-width:46ch; }
.reprendre { display:flex; gap:16px; align-items:center; margin-top:30px; flex-wrap:wrap; }
.reprendre small { color:var(--encre-3); font-size:13.5px; }
.photo-arche { position:relative; justify-self:end; width:min(100%,460px); margin:0; }
.photo-arche img { width:100%; aspect-ratio:4/5; object-fit:cover; border-radius:220px 220px 26px 26px; }
.photo-arche .note { position:absolute; left:-54px; bottom:52px; background:var(--papier); padding:12px 20px 10px; border-radius:6px; font-size:27px; transform:rotate(-5deg); box-shadow:var(--ombre); }
.pastille { position:absolute; right:16px; top:16px; background:#2B1E16cc; color:#F4ECDD; font-size:12px; padding:6px 12px; border-radius:999px; }
.fil { padding:0 0 54px; }
.fil-titre { display:flex; justify-content:space-between; align-items:baseline; margin-bottom:18px; gap:12px; }
.semaines { display:grid; grid-template-columns:repeat(9,minmax(0,1fr)); gap:10px; position:relative; }
.semaines::before { content:""; position:absolute; left:5%; right:5%; top:27px; height:2px; background:repeating-linear-gradient(90deg,var(--ligne-2) 0 8px,transparent 8px 14px); }
.sem { position:relative; text-align:center; text-decoration:none; }
.assiette { width:56px; height:56px; margin:0 auto 10px; border-radius:50%; background:var(--papier); box-shadow:inset 0 0 0 6px #fff, 0 0 0 1px var(--ligne); display:grid; place-items:center; font-family:var(--titre); font-size:18px; color:var(--encre-3); transition:transform .2s; }
.sem:hover .assiette { transform:translateY(-2px); }
.sem.fait .assiette { background:var(--olive); color:var(--creme); box-shadow:inset 0 0 0 6px var(--olive-2); }
.sem.ici .assiette { background:var(--tomate); color:#fff; box-shadow:inset 0 0 0 6px #d4644c, 0 0 0 6px #c2452d22; }
.sem p { font-size:12.5px; line-height:1.35; color:var(--encre-2); max-width:13ch; margin:0 auto; }
.sem.ici p { color:var(--encre); font-weight:500; }
.accueil-grille { display:grid; grid-template-columns:1.25fr 1fr; gap:26px; }
.menu-mini { padding:30px 34px; }
.menu-mini h2 { font-size:25px; text-align:center; }
.sous-titre { text-align:center; font-family:var(--titre); font-weight:480; color:var(--encre-3); margin:6px auto 20px; }
.plat { display:flex; align-items:baseline; gap:10px; padding:12px 0; text-decoration:none; }
.plat .type { font-size:11px; letter-spacing:.14em; text-transform:uppercase; color:var(--encre-3); width:96px; flex:none; }
.plat .nom { font-family:var(--titre); font-size:18.5px; line-height:1.3; }
.plat .points { flex:1; border-bottom:1.5px dotted var(--ligne-2); transform:translateY(-5px); min-width:12px; }
.plat .duree { font-size:13.5px; color:var(--encre-3); white-space:nowrap; }
.plat:hover .nom { color:var(--tomate); }
.plat.fait .nom { color:var(--encre-3); text-decoration:line-through; text-decoration-color:#c2452d88; }
.plat.brouillon .duree::after { content:" · brouillon"; color:var(--tomate); }
.cote { display:grid; gap:26px; align-content:start; }
.carte-photo { position:relative; overflow:hidden; border-radius:22px; min-height:220px; display:flex; align-items:flex-end; text-decoration:none; }
.carte-photo img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; transition:transform .6s; }
.carte-photo:hover img { transform:scale(1.04); }
.carte-photo div { position:relative; margin:14px; background:var(--papier); border-radius:16px; padding:14px 18px; }
.carte-photo h3 { font-size:21px; }
.carte-photo p { font-size:13.5px; color:var(--encre-3); }
.rdv { display:flex; gap:18px; align-items:center; padding:20px 22px; }
.rdv .date { background:var(--creme); border-radius:14px; padding:8px 14px; text-align:center; font-family:var(--titre); line-height:1.1; min-width:62px; }
.rdv .date b { display:block; font-size:24px; font-weight:560; }
.rdv h3 { font-size:18px; }
.rdv p { font-size:13.5px; color:var(--encre-3); }

/* Semaine en menu */
.sem-tete { display:grid; grid-template-columns:.95fr 1.05fr; gap:50px; align-items:end; padding:20px 0 40px; }
.sem-tete h1 em { color:var(--tomate); font-style:normal; }
.phrase { font-family:var(--titre); font-weight:480; font-size:21px; line-height:1.45; color:var(--encre-2); border-left:3px solid var(--moutarde); padding-left:20px; max-width:none; }
.phrase small { display:block; font-family:var(--texte); font-style:normal; font-size:11.5px; letter-spacing:.14em; text-transform:uppercase; color:var(--encre-3); margin-bottom:8px; }
.carte-menu { display:grid; grid-template-columns:380px minmax(0,1fr); overflow:hidden; }
.carte-menu > img { width:100%; height:100%; object-fit:cover; min-height:520px; }
.menu { padding:44px 54px 40px; }
.cartouche { text-align:center; margin-bottom:22px; }
.cartouche h2 { font-size:32px; }
.cartouche p { font-family:var(--titre); font-weight:480; color:var(--encre-3); margin:6px auto 0; }
.service { margin:22px 0 4px; text-align:center; font-size:11.5px; letter-spacing:.2em; text-transform:uppercase; color:var(--tomate); font-weight:600; }
.service::before, .service::after { content:"·"; margin:0 10px; color:var(--ligne-2); }
.menu .plat .type { display:none; }
.desc { font-size:13.5px; color:var(--encre-3); margin:-4px 0 6px; }
.semaine-nav { display:flex; justify-content:space-between; gap:16px; margin-top:30px; }
.semaine-nav a { text-decoration:none; font-size:14px; }
.semaine-nav b { display:block; font-family:var(--titre); font-weight:560; font-size:19px; }

/* Leçon */
.classroom { display:grid; grid-template-columns:300px minmax(0,1fr); max-width:1240px; margin:auto; padding:10px 28px 0; gap:48px; align-items:start; }
.course-tree { position:sticky; top:16px; max-height:calc(100dvh - 32px); overflow:auto; scrollbar-width:thin; background:var(--papier); border-radius:22px; box-shadow:var(--ombre); padding:20px 16px 18px; }
.course-tree > .eyebrow { margin:0 8px 10px; }
.course-tree > .text-link { margin:0 8px; }
.week { border-bottom:1px solid var(--ligne); }
.week:last-child { border-bottom:0; }
.week summary { min-height:52px; cursor:pointer; list-style:none; padding:11px 8px; display:grid; grid-template-columns:30px 1fr 14px; gap:8px; align-items:start; font-size:14px; }
.week summary::-webkit-details-marker { display:none; }
.week summary::after { content:'+'; font-size:18px; line-height:1.2; color:var(--encre-3); }
.week[open] summary::after { content:'−'; }
.week summary > span:first-child { width:28px; height:28px; border-radius:50%; background:var(--creme); display:grid; place-items:center; font-family:var(--titre); font-size:14px; color:var(--encre-2); }
.week summary small { display:block; font-size:11.5px; color:var(--encre-3); margin-top:2px; }
.tree-lesson { display:grid; grid-template-columns:18px 1fr; gap:10px; padding:9px 10px 9px 12px; text-decoration:none; font-size:13.5px; border-radius:12px; margin:0 0 2px 26px; color:var(--encre-2); align-items:start; }
.tree-lesson small { display:block; font-size:11px; margin-top:2px; color:var(--encre-3); }
.tree-lesson[aria-current=page] { background:var(--creme); color:var(--encre); font-weight:500; }
.tree-lesson:hover { background:#f4ecdd99; }
.tree-dot { width:16px; height:16px; margin-top:3px; border-radius:50%; border:1.5px solid var(--ligne-2); font-size:0; }
.tree-dot.fait { background:var(--olive); border-color:var(--olive); }
.tree-lesson[aria-current=page] .tree-dot { border:5px solid var(--tomate); }
.tree-placeholder { font-size:12px; color:var(--encre-3); padding:2px 12px 14px 46px; }
.tree-week-link { display:block; margin:0 0 8px 38px; font-size:12.5px; color:var(--tomate); text-decoration:none; }
.lesson-content { padding:14px 0 80px; min-width:0; }
.fil-ariane { font-size:13.5px; color:var(--encre-3); margin-bottom:12px; }
.fil-ariane a { text-decoration:none; color:var(--encre-2); }
.fil-ariane a:hover { color:var(--tomate); }
.lesson-content h1 { font-size:clamp(34px,4vw,52px); line-height:1.05; margin:0 0 24px; max-width:22ch; }
.tree-toggle { display:none; }
video, .media-empty { width:100%; aspect-ratio:16/9; border-radius:24px; display:block; background:#2B1E16; }
video { max-height:70dvh; }
.media-empty { position:relative; overflow:hidden; }
.media-empty img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; opacity:.75; }
.media-empty .bientot { position:absolute; left:20px; bottom:18px; color:#FFF6EC; font-size:13.5px; background:#2B1E16bb; padding:7px 14px; border-radius:999px; }
.media-empty .note { position:absolute; right:22px; top:20px; background:var(--papier); padding:10px 16px 8px; border-radius:6px; font-size:23px; transform:rotate(3deg); max-width:240px; }
.lesson-actions { display:flex; justify-content:space-between; flex-wrap:wrap; gap:14px; align-items:center; margin:22px 0 8px; }
.lesson-section { margin-top:34px; padding-top:28px; border-top:1px solid var(--ligne); }
.lesson-section h2 { font-size:26px; margin-bottom:14px; }
.lesson-section p { color:var(--encre-2); font-size:15.5px; white-space:pre-line; }
.intention { font-family:var(--titre); font-weight:480; font-size:20px; line-height:1.5; color:var(--encre-2); margin:30px 0 0; max-width:60ch; }
#written-course { border-top:0; margin-top:26px; padding-top:0; }
#written-course > h2 { display:none; }
#written-course > p, #written-course > ul, #written-course > ol { max-width:66ch; font-size:18px; line-height:1.8; color:var(--encre); margin:0 0 1.15em; }
#written-course > p:first-of-type::first-letter { font-family:var(--titre); float:left; font-size:4.1em; line-height:.85; padding:8px 10px 0 0; color:var(--tomate); }
#written-course > h3 { max-width:40ch; font-family:var(--titre); font-weight:560; font-size:28px; line-height:1.25; margin:1.6em 0 .6em; }
#written-course > h4, #written-course > h5 { font-family:var(--titre); font-weight:560; font-size:21px; line-height:1.35; margin:1.4em 0 .5em; }
#written-course strong { font-weight:600; }
#written-course li { margin-bottom:.4em; }
#written-course blockquote { max-width:66ch; margin:0 0 1.3em; padding:4px 0 4px 22px; border-left:3px solid var(--ligne-2); color:var(--encre-2); }
#written-course blockquote > :is(p,ul,ol) { font-size:17px; line-height:1.75; margin:0 0 .8em; }
#written-course blockquote > :last-child { margin-bottom:0; }
#written-course .written-table { max-width:100%; overflow-x:auto; margin:0 0 1.4em; }
#written-course table { border-collapse:collapse; font-size:15px; line-height:1.5; min-width:100%; }
#written-course th, #written-course td { text-align:left; vertical-align:top; padding:9px 14px 9px 0; border-bottom:1px solid var(--ligne); min-width:7em; }
#written-course th { font-weight:600; border-bottom-color:var(--ligne-2); }
.resource { display:flex; justify-content:space-between; align-items:center; gap:20px; padding:14px 0; border-bottom:1px solid var(--ligne); }
.resource span { font-size:15px; }
.resource small { display:block; color:var(--encre-3); font-size:12px; }
.suite { display:flex; justify-content:space-between; gap:16px; margin-top:44px; padding-top:24px; border-top:1px solid var(--ligne); font-size:14px; }
.suite a { text-decoration:none; color:var(--encre-2); }
.suite b { display:block; font-family:var(--titre); font-weight:560; font-size:19px; color:var(--encre); }
.suite a:hover b { color:var(--tomate); }

/* Bibliothèque */
.catalog { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px; }
.carte-lib { background:var(--papier); border-radius:22px; box-shadow:var(--ombre); overflow:hidden; display:flex; flex-direction:column; text-decoration:none; transition:transform .2s; }
.carte-lib:hover { transform:translateY(-3px); }
.carte-lib img { width:100%; aspect-ratio:16/10; object-fit:cover; }
.carte-lib div { padding:16px 20px 20px; display:flex; flex-direction:column; gap:8px; flex:1; }
.carte-lib h2 { font-size:21px; }
.carte-lib p { font-size:13.5px; color:var(--encre-3); margin-top:auto; }
.filters { display:grid; grid-template-columns:1fr 240px; gap:16px; margin:0 0 28px; }

/* Formulaires */
.field { display:flex; flex-direction:column; gap:7px; font-size:13.5px; color:var(--encre-2); }
.field input,.field textarea,.field select { width:100%; min-width:0; min-height:46px; padding:11px 14px; background:var(--blanc); border:1px solid var(--ligne-2); border-radius:14px; color:var(--encre); }
.field input:focus,.field textarea:focus,.field select:focus { border-color:var(--tomate); outline:none; box-shadow:0 0 0 4px #c2452d1f; }
.field textarea { min-height:125px; resize:vertical; line-height:1.55; }
.field small { font-size:12px; color:var(--encre-3); }
.form-grid { display:grid; grid-template-columns:1fr 1fr; gap:18px; }
.full { grid-column:1/-1; }
fieldset { border:0; padding:0; margin:0 0 30px; }
legend { font:560 24px var(--titre); margin-bottom:18px; }
.upload-zone { border:1.5px dashed var(--ligne-2); padding:20px; border-radius:18px; background:var(--blanc); }
.upload-zone input { padding:8px 0; border:0; min-height:44px; background:none; }
.upload-zone p { font-size:13px; color:var(--encre-3); margin-top:10px; }
.form-feedback { font-size:13.5px; color:var(--tomate-fonce); white-space:pre-line; margin:15px 0; }
.switch { display:flex; align-items:center; gap:10px; font-size:14px; min-height:44px; }
.switch input { width:18px; height:18px; accent-color:var(--olive); }

/* Connexion */
.login-page { min-height:100dvh; display:grid; grid-template-columns:1fr 1fr; }
.login-photo { position:relative; overflow:hidden; }
.login-photo img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.login-photo .note { position:absolute; left:32px; bottom:36px; background:var(--papier); padding:12px 20px 10px; border-radius:6px; font-size:28px; transform:rotate(-4deg); box-shadow:var(--ombre); }
.login { width:min(440px,100%); margin:auto; padding:40px 28px; }
.login .brand { display:inline-block; margin-bottom:46px; }
.login h1 { margin:8px 0 12px; font-size:46px; }
.login .muted { font-size:16px; }
.login .field { margin:18px 0; }
.login .btn { width:100%; margin-top:10px; }

/* Avec Léa, compte */
.event { display:grid; grid-template-columns:62px 1fr auto; gap:18px; align-items:center; padding:18px 22px; background:var(--papier); border-radius:18px; box-shadow:var(--ombre); margin-bottom:12px; }
.event > span:first-child { width:52px; height:52px; border-radius:50%; background:var(--creme); display:grid; place-items:center; font:20px var(--titre); color:var(--encre-2); }
.event h3 { font-size:19px; }
.event p { font-size:13px; color:var(--encre-3); margin-top:4px; }
.lea-bloc { display:grid; grid-template-columns:200px 1fr; gap:30px; align-items:center; padding:24px; margin:0 0 30px; }
.lea-bloc img { width:200px; height:240px; object-fit:cover; object-position:top; border-radius:110px 110px 18px 18px; }
.lea-bloc .note { font-size:30px; color:var(--encre); }

/* Studio */
.studio-layout { display:grid; grid-template-columns:300px minmax(0,1fr); gap:30px; }
.studio-layout > aside { background:var(--papier); border-radius:22px; box-shadow:var(--ombre); padding:18px; align-self:start; position:sticky; top:16px; }
.studio-list { max-height:72dvh; overflow:auto; padding-right:6px; scrollbar-width:thin; }
.studio-item { display:block; padding:11px 10px; border-bottom:1px solid var(--ligne); text-decoration:none; font-size:14px; border-radius:10px; }
.studio-item small { display:block; font-size:11px; color:var(--encre-3); margin-top:3px; }
.studio-item[aria-current=page] { background:var(--creme); }
.studio-item:hover { background:#f4ecdd88; }
.studio-form { min-width:0; background:var(--papier); border-radius:22px; box-shadow:var(--ombre); padding:30px 32px; }
.board-head { display:flex; justify-content:space-between; align-items:flex-start; gap:20px; flex-wrap:wrap; }
.board-intro { font-size:14px; margin:12px 0 20px; }
.status-board { display:grid; grid-template-columns:repeat(auto-fill,minmax(130px,1fr)); gap:10px; margin-bottom:20px; }
.status-chip { display:flex; flex-direction:column; align-items:flex-start; gap:4px; padding:14px 16px; min-height:44px; background:var(--blanc); border:1px solid var(--ligne); border-radius:16px; text-align:left; transition:border-color .15s; }
.status-chip:hover { border-color:var(--ligne-2); }
.status-chip strong { font:560 28px/1 var(--titre); }
.status-chip span { font-size:12.5px; color:var(--encre-3); }
.status-chip.active { border-color:var(--tomate); background:#fbeee6; }
.board-filters { display:flex; align-items:flex-end; gap:18px; flex-wrap:wrap; margin-bottom:16px; }
.board-filters .field { min-width:220px; }
.table-wrap { position:relative; overflow-x:auto; border:1px solid var(--ligne); border-radius:16px; background:var(--blanc); }
.prod-table { width:100%; border-collapse:collapse; font-size:14px; }
.prod-table th { text-align:left; font-size:10.5px; letter-spacing:.14em; text-transform:uppercase; color:var(--encre-3); padding:12px 14px; border-bottom:1px solid var(--ligne); white-space:nowrap; font-weight:500; }
.prod-table td { padding:9px 14px; border-bottom:1px solid var(--ligne); vertical-align:middle; }
.prod-table tr:last-child td { border-bottom:0; }
.prod-table td:first-child { white-space:nowrap; color:var(--encre-3); }
.prod-table td a { text-decoration:none; }
.prod-table td a:hover { color:var(--tomate); }
.prod-table td small { display:block; font-size:11px; color:var(--encre-3); }
.prod-table .text-link { min-height:32px; }
.prod-table .tag { white-space:nowrap; }
.tag.status-a_relire { background:var(--sand); color:var(--tomate-fonce); }
.tag.status-a_corriger { background:#F3D6CB; color:#7a2f1a; }
.tag.status-texte_valide, .tag.status-tourne, .tag.status-monte { background:var(--olive-clair); color:var(--olive); }
.tag.status-pret { background:var(--olive); color:var(--creme); }
.tag.status-a_ecrire { background:#ECE4D6; color:var(--encre-3); }
.production-fields { background:var(--creme); border-radius:18px; padding:18px 20px 20px; }
.production-fields legend { font-size:19px; padding:0 4px; margin-bottom:8px; }

/* Relecture */
.review { background:var(--papier); border-radius:22px; box-shadow:var(--ombre); padding:26px 28px; border-top:0; }
.review-status { color:var(--encre)!important; }
.quote-preview { margin:12px 0; }
blockquote { margin:0 0 10px; padding:10px 16px; border-left:3px solid var(--moutarde); background:var(--creme); border-radius:0 12px 12px 0; font-family:var(--titre); font-weight:480; font-size:15.5px; color:var(--encre-2); white-space:pre-line; }
.comments { margin-top:22px; }
.comment { border-top:1px solid var(--ligne); padding:16px 0; }
.comment > p { color:var(--encre)!important; font-size:15px; }
.comment.resolved { opacity:.55; }
.comment-foot { display:flex; justify-content:space-between; align-items:center; gap:12px; flex-wrap:wrap; }
.comment-foot small { color:var(--encre-3); font-size:12px; }

/* Fiches recettes */
.recipe-card { background:var(--papier); border-radius:24px; box-shadow:var(--ombre); padding:30px 32px; }
.recipe-meta { display:flex; flex-wrap:wrap; gap:12px 30px; margin:0 0 24px; padding-bottom:20px; border-bottom:1px dotted var(--ligne-2); }
.recipe-meta dt { font-size:11px; letter-spacing:.14em; text-transform:uppercase; color:var(--encre-3); }
.recipe-meta dd { margin:3px 0 0; font-family:var(--titre); font-size:18px; }
.recipe-cols { display:grid; grid-template-columns:1fr 1.6fr; gap:36px; }
.recipe-cols h2, .recipe-tips h2 { font-size:24px; margin-bottom:12px; }
.recipe-cols ul, .recipe-cols ol { margin:0; padding-left:20px; font-size:16px; line-height:1.7; }
.recipe-cols li { margin-bottom:7px; }
.recipe-cols ol li::marker { font-family:var(--titre); color:var(--tomate); }
.recipe-tips { margin-top:24px; padding:18px 22px; background:var(--creme); border-radius:16px; }
.recipe-tips h2 { font-family:var(--main); font-weight:600; font-size:28px; color:var(--tomate-fonce); margin-bottom:4px; }
.recipe-tips p { font-size:16px; }

/* Dialogue et notifications */
dialog { width:min(540px,calc(100% - 30px)); max-height:90dvh; border:0; border-radius:22px; padding:26px; background:var(--papier); color:var(--encre); box-shadow:0 30px 80px -20px #2b1e1688; }
dialog::backdrop { background:#2b1e1666; }
.dialog-head { display:flex; gap:20px; justify-content:space-between; align-items:flex-start; margin-bottom:18px; }
.dialog-head h2 { font-size:26px; }
.close { width:44px; min-width:44px; height:44px; font-size:25px; margin-top:-8px; border-radius:50%; }
.close:hover { background:var(--creme); }
.dialog-actions { display:flex; justify-content:flex-end; flex-wrap:wrap; gap:12px; margin-top:24px; }
.toast { position:fixed; right:24px; bottom:22px; max-width:min(430px,calc(100% - 32px)); background:var(--olive); color:var(--creme); border-radius:16px; padding:14px 20px; font-size:14px; z-index:10; box-shadow:0 18px 40px -16px #2b1e1688; }
.toast:empty { display:none; }
[hidden] { display:none!important; }
.vue-entree { animation:entree .45s ease both; }
@keyframes entree { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:none; } }

/* Responsive */
.backup-offer { margin:0 0 22px; padding:16px 18px; border:1px solid var(--tomate); border-radius:14px; background:var(--sand); }
.backup-offer p { margin:0 0 12px; }
.backup-offer .actions { flex-wrap:wrap; }
#studio-form[aria-busy="true"] { opacity:.7; cursor:progress; }
@media (max-width:1080px) {
  .header-inner { flex-wrap:wrap; gap:12px; }
  .main-nav { order:3; width:100%; }
  .catalog { grid-template-columns:1fr 1fr; }
  .classroom { grid-template-columns:260px minmax(0,1fr); gap:32px; }
  .studio-layout { grid-template-columns:250px minmax(0,1fr); gap:22px; }
  .carte-menu { grid-template-columns:300px minmax(0,1fr); }
  .menu { padding:34px 30px; }
}
@media (max-width:860px) {
  .accueil-hero, .sem-tete, .accueil-grille, .carte-menu, .login-page { grid-template-columns:1fr; }
  .accueil-hero { gap:40px; padding-top:10px; }
  .photo-arche { justify-self:center; }
  .photo-arche .note { left:-6px; bottom:-20px; font-size:24px; }
  .semaines { grid-template-columns:repeat(9,74px); overflow-x:auto; padding-bottom:8px; scrollbar-width:none; }
  .carte-menu > img { min-height:0; aspect-ratio:4/3; }
  .login-photo { min-height:240px; }
  .lea-bloc { grid-template-columns:1fr; }
}
@media (max-width:760px) {
  .masthead { padding-top:14px; }
  .header-inner, .notice-bar { padding:0 18px; }
  .main-nav { flex-wrap:nowrap; overflow-x:auto; gap:2px; scrollbar-width:none; }
  .main-nav a { font-size:13.5px; padding:8px 12px; white-space:nowrap; }
  .account-link span:first-child { display:none; }
  .page { padding:22px 18px 60px; }
  .heading-line { display:block; }
  .heading-line > .btn { margin-top:18px; }
  .catalog, .studio-layout, .form-grid, .filters, .recipe-cols { grid-template-columns:1fr; }
  .studio-layout > aside { position:static; }
  .studio-form { padding:22px 18px; }
  .classroom { display:flex; flex-direction:column; padding:6px 18px 0; gap:0; }
  .tree-toggle { display:flex; min-height:46px; justify-content:space-between; align-items:center; gap:20px; width:100%; background:var(--papier); border-radius:999px; padding:10px 18px; box-shadow:var(--ombre); font-size:14px; }
  .course-tree { display:none; width:100%; position:static; max-height:60dvh; margin-top:12px; }
  .classroom.menu-open .course-tree { display:block; }
  .lesson-content { width:100%; padding:20px 0 60px; }
  #written-course > p, #written-course > ul, #written-course > ol { font-size:17px; }
  .media-empty .note { display:none; }
  .menu { padding:28px 20px; }
  .plat { flex-wrap:wrap; gap:2px 10px; }
  .plat .points { display:none; }
  .plat .type { width:100%; }
  .menu-mini { padding:24px 20px; }
  .lesson-actions { flex-direction:column; align-items:flex-start; }
  .resource { align-items:flex-start; gap:12px; }
  .event { grid-template-columns:52px 1fr; }
  .event .tag { grid-column:2; justify-self:start; }
  .recipe-card { padding:22px 20px; }
  .review { padding:20px; }
  .toast { right:16px; bottom:16px; }
}
@media (prefers-reduced-motion:reduce) { *, *::before, *::after { animation:none!important; transition:none!important; } }
@media print {
  body { background:white; }
  .masthead, .notice-bar, .course-tree, .tree-toggle, .lesson-actions, .lesson-section, .footer-note, .toast, .fil-ariane, .suite, .lesson-content > .tag { display:none!important; }
  .classroom { display:block; padding:0; }
  .lesson-content { padding:0; }
  .lesson-content h1 { font-size:28px; margin:0 0 14px; }
  .recipe-card { box-shadow:none; padding:0; }
}

/* Mot de passe oublié, pages légales (21 novembre 2026) */
.forgot { margin-top:18px; font-size:14px; }
.forgot summary { cursor:pointer; color:var(--olive); text-decoration:underline; text-underline-offset:3px; }
.forgot p { margin-top:8px; }
.legal-links { display:flex; flex-wrap:wrap; gap:6px 18px; margin-top:28px; font-size:13px; }
.legal-links a { color:var(--encre-3); }
.account-password { max-width:460px; margin:28px 0; }
.account-password form { display:grid; gap:14px; }
.legal-page { max-width:760px; }
.legal-page h1 { margin:28px 0 20px; }
.legal-text h2, .legal-text h3 { margin:28px 0 10px; }
.legal-text p, .legal-text ul { margin:0 0 14px; }
@media (max-width:760px) {
  /* La barre de navigation défile : un fondu à droite montre qu'il y a la suite. */
  .main-nav { -webkit-mask-image:linear-gradient(90deg,#000 85%,transparent); mask-image:linear-gradient(90deg,#000 85%,transparent); padding-right:28px; }
}
@media (max-width:420px) {
  .main-nav a { padding:8px 9px; font-size:13px; }
}

/* Règle des 14 jours */
.lock-notice { margin:0 0 26px; padding:14px 18px; border-radius:16px; background:var(--sand); color:var(--encre-2); font-size:15px; }
.lock-notice strong { color:var(--tomate-fonce); font-weight:600; }

/* Assistant IA */
.assistant-page { max-width:820px; }
.ia-accueil { background:var(--papier); border-radius:22px; box-shadow:var(--ombre); padding:20px 24px; margin-bottom:26px; color:var(--encre-2); font-size:15px; }
.ia-badge { display:inline-block; margin-bottom:8px; font-size:11.5px; letter-spacing:.12em; text-transform:uppercase; font-weight:600; color:var(--olive); background:var(--olive-clair); padding:3px 10px; border-radius:999px; }
.assistant-thread { display:grid; gap:22px; margin-bottom:28px; }
.echange { display:grid; gap:10px; }
.bulle { border-radius:20px; padding:14px 18px; font-size:15.5px; max-width:92%; }
.bulle p + p, .bulle ul { margin-top:8px; }
.bulle ul { padding-left:20px; }
.bulle.moi { justify-self:end; background:var(--olive); color:var(--creme); border-bottom-right-radius:6px; white-space:pre-wrap; }
.bulle.ia { justify-self:start; background:var(--papier); box-shadow:var(--ombre); border-bottom-left-radius:6px; }
.ia-tete { display:flex; gap:10px; align-items:center; margin-bottom:6px; }
.ia-tete .eyebrow { margin:0; }
.sources { margin-top:12px; font-size:13.5px; color:var(--encre-3); }
.sources a { color:var(--encre); text-underline-offset:3px; }
.assistant-help { display:flex; flex-wrap:wrap; gap:6px 18px; align-items:center; margin-top:6px; font-size:14px; }
.assistant-form textarea { width:100%; }
.assistant-form .actions { align-items:center; gap:14px; flex-wrap:wrap; }
@media (max-width:600px) { .bulle { max-width:100%; } }
.transcription { margin-top:22px; border-top:1px solid var(--ligne); padding-top:14px; }
.transcription summary { cursor:pointer; font-weight:500; color:var(--encre-2); min-height:44px; display:flex; align-items:center; }
.ia-sujet { font-size:14px; color:var(--encre-2); margin-bottom:6px; display:flex; flex-wrap:wrap; gap:4px 10px; align-items:center; }
.ia-sujet a { color:var(--encre); }
.bulle.attente p { color:var(--encre-3); }
.points-attente { display:inline-flex; gap:3px; margin-left:6px; }
.points-attente i { width:5px; height:5px; border-radius:50%; background:var(--encre-3); animation:ia-point 1.2s infinite ease-in-out; }
.points-attente i:nth-child(2) { animation-delay:.2s; } .points-attente i:nth-child(3) { animation-delay:.4s; }
@keyframes ia-point { 0%,80%,100% { opacity:.25; } 40% { opacity:1; } }
@media (prefers-reduced-motion: reduce) { .points-attente i { animation:none; opacity:.6; } }
