:root{font-family:'Avenir Next','Segoe UI',Arial,sans-serif;color:#243341;background:#f8f7f4;font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button{cursor:pointer}.site-shell{min-height:100vh}.topbar{height:84px;background:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 max(36px,calc((100vw - 1240px)/2));border-bottom:1px solid #e9ecea}.brand{display:flex;gap:12px;align-items:center;text-decoration:none;color:#233d49;font-size:23px;font-weight:700;letter-spacing:-1.2px}.brand-light{font-weight:400;color:#56988c}.brand-mark{position:relative;display:grid;place-items:center;width:38px;height:38px;background:#dcefeb;border-radius:11px;color:#397d73;font-family:Georgia,serif;font-size:31px;font-weight:bold;line-height:1}.brand-mark span{position:absolute;font:16px Arial;right:-5px;top:-7px;color:#e4a379}.top-note{font-size:13px;color:#73828a}.hero{max-width:1240px;margin:0 auto;padding:65px 36px 48px}.eyebrow{display:flex;align-items:center;gap:9px;color:#638d84;font-size:11px;font-weight:700;letter-spacing:1.9px}.eyebrow-dot{width:7px;height:7px;background:#7eb4a4;border-radius:50%}.hero h1{font-family:'DM Serif Display',Georgia,serif;font-size:clamp(42px,5vw,66px);font-weight:400;line-height:1.06;letter-spacing:-1.9px;margin:22px 0 18px;color:#263e49}.hero h1 em{color:#5a9a8f;font-weight:400}.hero p{max-width:640px;font-size:16px;line-height:1.65;color:#718088;margin:0}.workspace{max-width:1240px;margin:0 auto;padding:0 36px 70px;display:grid;grid-template-columns:1.05fr .95fr;gap:24px;align-items:stretch}.panel{background:#fff;border:1px solid #eaeeeb;border-radius:17px;box-shadow:0 10px 30px rgba(41,61,57,.035);overflow:hidden}.form-panel{padding:31px 34px 34px}.preview-panel{padding:31px 34px 0;display:flex;flex-direction:column}.panel-heading{display:flex;align-items:center;gap:14px;margin-bottom:30px}.step{width:38px;height:38px;border-radius:11px;background:#e0f1eb;display:grid;place-items:center;color:#438579;font-size:12px;font-weight:700}.step.peach{background:#faece2;color:#c58660}.panel-heading h2{margin:0;font-family:'DM Serif Display',Georgia,serif;font-size:25px;font-weight:400;letter-spacing:-.4px}.panel-heading p{margin:2px 0 0;color:#8a969a;font-size:12px}.field{margin:0 0 25px;padding:0;border:0;min-width:0}.field label,.field legend{display:block;margin:0 0 11px;font-size:13px;font-weight:700;color:#304551}.hint{margin:-4px 0 12px;color:#89959b;font-size:12px}.required{color:#ce8c6d}.optional{font-weight:400;color:#a3acaf;font-size:11px;margin-left:5px}.choice-grid{display:grid;gap:8px}.levels{grid-template-columns:repeat(5,minmax(0,1fr))}.kinds{grid-template-columns:repeat(3,minmax(0,1fr))}.choice-grid label{margin:0;cursor:pointer}.choice-grid input{position:absolute;opacity:0;width:1px;height:1px}.choice-grid span{height:39px;display:grid;place-items:center;background:#f8faf9;border:1px solid #e8eeec;border-radius:8px;color:#66777e;font-weight:600;transition:.15s}.choice-grid input:checked+span{background:#e8f4ef;border-color:#75b2a1;color:#367b6d;box-shadow:inset 0 0 0 1px #75b2a1}.choice-grid input:focus-visible+span{outline:3px solid #d8a178;outline-offset:2px}.kinds span{height:65px;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;padding:0 13px}.kinds strong{font-size:13px}.kinds small{font-size:10px;font-weight:400;color:#8e9b9f;margin-top:3px}textarea,input[type=text],select{width:100%;background:#fff;border:1px solid #dfe6e4;border-radius:9px;color:#334b55;outline:none}textarea{resize:vertical;padding:14px 15px;line-height:1.55}textarea::placeholder,input::placeholder{color:#b0babd}textarea:focus,input:focus,select:focus{border-color:#75b2a1;box-shadow:0 0 0 3px #e4f2ed}.field-foot{display:flex;justify-content:space-between;color:#a4aeb1;font-size:11px;margin-top:7px}.field-row{display:grid;grid-template-columns:1fr 1fr;gap:13px}.field-row .field{margin-bottom:24px}select,input[type=text]{height:42px;padding:0 12px;font-size:13px}.simulation-note{display:flex;gap:8px;margin:0 0 21px;color:#849297;font-size:11px;line-height:1.5}.simulation-note span{color:#cb9675}.primary-button,.secondary-button{border-radius:9px;min-height:47px;padding:0 19px;border:0;font-size:13px;font-weight:700}.primary-button{color:#fff;background:#3f8578;box-shadow:0 5px 12px rgba(45,119,101,.14)}.primary-button:hover{background:#316d62}.primary-button:disabled{opacity:.55;cursor:wait}#generate-button{width:100%;display:flex;align-items:center;justify-content:center;gap:9px}.secondary-button{background:#f0f6f3;color:#3f8174}.secondary-button:hover{background:#e1f0e9}.empty-state{flex:1;min-height:440px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:35px 20px 65px}.paper-illustration{position:relative;width:105px;height:124px;background:#f7fbf8;border:2px solid #cfdfd7;border-radius:8px;transform:rotate(-7deg);box-shadow:7px 8px 0 #eaf0ec;margin-bottom:29px;padding-top:34px}.paper-line{display:block;width:58px;height:4px;background:#c9dcd3;border-radius:9px;margin:0 auto 13px}.paper-line.short{width:36px;margin-left:22px}.paper-spark{position:absolute;right:-25px;top:-23px;color:#d9a275;font-size:28px}.empty-state h3{font-family:'DM Serif Display',Georgia,serif;font-weight:400;font-size:24px;margin:0 0 9px}.empty-state p{max-width:285px;color:#9ba7aa;font-size:13px;line-height:1.6;margin:0}.preview-footer{margin:auto -34px 0;padding:19px 34px;display:flex;gap:9px;align-items:center;background:#fafbf9;border-top:1px solid #f0f2ee;color:#9aa6a6;font-size:11px}.footer-icon{display:grid;place-items:center;background:#e7f2ec;color:#6d9e89;width:18px;height:18px;border-radius:50%;font-size:12px}.result-state{flex:1}.result-state[hidden],.empty-state[hidden]{display:none}.result-topline{display:flex;justify-content:space-between;align-items:center;gap:8px;color:#9aa7aa;font-size:11px;margin-bottom:15px}.section-summary{display:grid;gap:8px;margin:0 0 16px}.section-summary article{background:#f7faf8;border:1px solid #e6eeea;border-radius:8px;padding:10px 12px}.section-summary article.omitted-card{background:#fff8f4;border-color:#f1ded3}.section-summary h3{font:700 10px 'DM Sans',Arial,sans-serif;text-transform:uppercase;letter-spacing:.7px;color:#638d84;margin:0 0 4px}.section-summary .omitted-card h3{color:#b26d55}.section-summary p{font-size:12px;line-height:1.45;margin:0;color:#5f7077}.editor-label{display:flex;justify-content:space-between;gap:8px;align-items:baseline;font-size:12px;font-weight:700;margin-bottom:7px;color:#304551}.editor-label small{font-weight:400;color:#89959b}.word-statuses{display:flex;flex-wrap:wrap;gap:6px;margin-top:12px}.word-status{font-size:11px;padding:5px 8px;border-radius:99px;background:#e8f4ef;color:#367b6d}.word-status.missing{background:#fff0e8;color:#aa624b}.draft-badge{color:#b17e5d;background:#fbf0e8;padding:6px 9px;border-radius:5px;font-size:10px;font-weight:700;letter-spacing:.6px}#content{width:100%;min-height:280px;background:#fffefa;border-color:#eee8dc;color:#33434b;font-family:Georgia,serif;font-size:17px;line-height:1.8;padding:22px}.check-status{font-size:12px;line-height:1.5;min-height:39px;margin-top:14px;color:#468471}.check-status.warning{color:#b26d55}.result-actions{display:flex;justify-content:flex-end;gap:9px;margin:9px 0 27px}.message{font-size:12px;color:#aa694d;margin:0 0 15px;min-height:18px}.message.success{color:#397e6c}.saved-section{border-top:1px solid #edf0ed;padding:19px 0 23px}.saved-heading{display:flex;align-items:center;justify-content:space-between}.saved-heading h2{font-family:'DM Serif Display',Georgia,serif;font-size:19px;font-weight:400;margin:0}.text-button{border:0;background:transparent;color:#3f8174;font-size:11px;font-weight:700}.saved-section>p{color:#9aa6a6;font-size:12px}.saved-list{list-style:none;padding:0;margin:12px 0 0;display:grid;gap:7px;max-height:190px;overflow:auto}.saved-list li{display:grid;gap:3px;background:#f7faf8;border-radius:7px;padding:9px 11px}.saved-list strong{font-size:11px;color:#477a70}.saved-list span{font-size:11px;color:#738187;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.page-footer{text-align:center;padding:0 20px 28px;color:#a3adaa;font-size:11px}.page-footer span{padding:0 6px}.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}@media(max-width:900px){.workspace{grid-template-columns:1fr}.hero{padding-top:48px}.preview-panel{min-height:460px}}@media(max-width:600px){.topbar{padding:0 20px;height:72px}.top-note{display:none}.hero{padding:43px 20px 34px}.hero h1{font-size:43px}.workspace{padding:0 15px 45px;gap:15px}.form-panel,.preview-panel{padding:24px 20px 0}.form-panel{padding-bottom:24px}.panel-heading{margin-bottom:23px}.kinds{gap:5px}.kinds span{padding:0 7px}.field-row{grid-template-columns:1fr}.field-row .field{margin-bottom:16px}.preview-footer{margin-left:-20px;margin-right:-20px;padding:17px 20px}}

/* V1: parcours de lecture, bibliothèque et impression. */
.top-nav{display:flex;gap:25px;align-items:center}.top-nav a{color:#62787a;text-decoration:none;font-size:13px;font-weight:700}.top-nav a:hover{color:#357d72}.result-title{font:400 30px Georgia,serif;color:#2b4752;margin:4px 0 5px}.result-guide{color:#859397;font-size:12px;line-height:1.5;margin:0 0 18px}.coverage-header{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:25px 0 11px}.coverage-header h3{font:400 20px Georgia,serif;margin:0}.coverage-indicator{background:#e4f2ec;color:#367767;border-radius:99px;padding:8px 12px;font-size:11px;font-weight:700;white-space:nowrap}.coverage-indicator.incomplete{background:#fff0e7;color:#ac664b}.section-summary{grid-template-columns:1fr}.section-summary article{padding:12px 14px}.section-summary h3{font-size:11px}.section-summary p{font-size:12px}.word-status.complement{background:#eaf0f7;color:#4f7291}.result-actions{flex-wrap:wrap;justify-content:flex-start}.result-actions .save-button{margin-left:auto}.print-actions{display:flex;gap:10px;align-items:center;border-top:1px solid #edf0ed;padding:17px 0 26px}.print-actions label{font-size:12px;font-weight:700;color:#40585e}.print-actions select{margin-left:auto;width:auto;min-width:165px}.saved-heading p{font-size:11px;color:#93a1a1;margin:5px 0 0}.saved-list{max-height:290px}.saved-list li{padding:12px;background:#f8faf9;border:1px solid #e8efec}.saved-list li>div{display:flex;justify-content:space-between;gap:8px;align-items:center}.saved-list li>div>div{display:flex;gap:8px}.saved-list strong{font-size:12px;color:#345c5e}.saved-list .text-button{padding:5px;font-size:11px}.text-button.danger{color:#aa644e}.saved-list span{font-size:12px}.library-note{color:#98a3a5;font-size:11px;line-height:1.5;margin:15px 0 0}.print-sheet{display:none}
@media(max-width:600px){.top-nav{gap:13px}.top-nav a{font-size:11px}.hero h1{font-size:40px}.result-actions .save-button{margin-left:0}.result-actions button{flex:1 1 42%;padding:0 8px}.print-actions{flex-wrap:wrap}.print-actions label{width:100%}.print-actions select{margin-left:0;flex:1;min-width:0}.saved-list li>div{align-items:flex-start}.saved-list li>div>div{flex-direction:column;gap:0}}
@page{size:A4;margin:18mm 19mm}
@media print{
  html,body{width:210mm;height:auto;background:#fff;color:#111;font:12pt Georgia,serif}
  .site-shell{display:none!important}
  .print-sheet{display:block!important;margin:0 auto;max-width:172mm;color:#111}
  .print-sheet header{border-bottom:1px solid #777;padding-bottom:10mm;margin-bottom:12mm}
  .print-sheet header p{font:700 9pt Arial,sans-serif;letter-spacing:2px;color:#397c75;margin:0 0 6mm}
  .print-sheet h1{font:400 25pt Georgia,serif;margin:0 0 3mm}
  .print-sheet header span{font:10pt Arial,sans-serif;color:#555}
  .print-sheet h2{font:700 11pt Arial,sans-serif;color:#333;margin:9mm 0 3mm}
  .print-sheet p{line-height:1.8;white-space:pre-wrap;margin:0}
  .print-sheet #print-story{font-size:13pt;line-height:1.9}
  .print-sheet [hidden]{display:none!important}
  .print-sheet #print-student{display:none}
  .print-sheet.student-version #print-teacher{display:none}
  .print-sheet.student-version #print-student{display:block}
  .print-sheet.student-version #print-student>p{font:11pt Arial,sans-serif;margin-bottom:14mm}
  .writing-lines{height:190mm;background:repeating-linear-gradient(to bottom,transparent 0,transparent 11mm,#b7b7b7 11mm,#b7b7b7 11.2mm)}
}
.print-option{display:flex;gap:7px;align-items:center;color:#697d80;font-size:11px;margin:-12px 0 23px}.print-option input{accent-color:#3f8578}

/* 2026 refresh — ivory workspace, navy hierarchy and honest workflow. */
:root{--navy:#132f40;--ink:#29434d;--ivory:#f7f3e9;--paper:#fffdf8;--mint:#dff1e9;--green:#277d70;--aqua:#47aa9d;--coral:#c76f52;background:var(--ivory);color:var(--ink)}
body{background:radial-gradient(circle at 88% 3%,#dff2eb 0,transparent 26rem),var(--ivory)}
.topbar{background:rgba(255,253,248,.92);border-color:#e2ddcf;backdrop-filter:blur(12px);position:sticky;top:0;z-index:5}.brand{color:var(--navy)}.brand-mark{background:var(--navy);color:#fff}.brand-light{color:var(--aqua)}
.hero{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(360px,.85fr);align-items:end;gap:64px;padding-top:72px}.hero h1{color:var(--navy);font-size:clamp(45px,5vw,70px)}.hero p{font-size:17px;color:#63777d}.journey{list-style:none;margin:0;padding:23px;background:rgba(255,253,248,.74);border:1px solid #e5e0d4;border-radius:20px;display:grid;grid-template-columns:1fr 1fr;gap:20px}.journey li{display:grid;grid-template-columns:32px 1fr;column-gap:9px;align-items:center;color:#758587}.journey li>span{grid-row:1/3;width:32px;height:32px;border-radius:50%;display:grid;place-items:center;background:#edf1ed;color:#63777d;font-size:12px;font-weight:800}.journey strong{font-size:12px;color:var(--navy)}.journey small{font-size:10px}.journey li.active>span{background:var(--green);color:#fff}
.workspace{grid-template-columns:minmax(430px,.88fr) minmax(500px,1.12fr);gap:28px}.panel{background:var(--paper);border-color:#e4dfd3;border-radius:22px;box-shadow:0 22px 70px rgba(19,47,64,.07)}.form-panel,.preview-panel{padding:36px}.step{background:var(--navy);color:#fff;border-radius:50%}.step.peach{background:var(--aqua);color:#fff}.panel-heading h2,.saved-heading h2,.result-title,.coverage-header h3{color:var(--navy)}
.word-field textarea{border:2px solid #d5e5df;min-height:125px;background:#fff}.input-chips{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px;min-height:5px}.input-chips span{padding:5px 9px;background:var(--mint);border:1px solid #c6e4d8;border-radius:99px;color:#286f65;font-size:11px;font-weight:700}.input-chips .more{background:#e9eef2;color:#536c79;border-color:#dce3e7}.choice-grid span{background:#f7f7f1}.choice-grid input:checked+span{background:var(--mint);border-color:var(--aqua);color:#216b61}.simulation-note{background:#edf5f1;border-left:3px solid var(--aqua);border-radius:8px;padding:12px 13px;color:#5d7478}.simulation-note strong{color:var(--navy)}.primary-button{background:var(--navy);box-shadow:0 8px 20px rgba(19,47,64,.18)}.primary-button:hover{background:#1e5264}.secondary-button{background:#eaf4f0;color:#226f65}
#content{background:#fff;border:1px solid #ddd6c6;border-left:5px solid var(--aqua);box-shadow:inset 0 1px 7px rgba(19,47,64,.04);font-size:18px}.section-summary{grid-template-columns:repeat(3,1fr)}.section-summary article{display:flex;gap:9px;align-items:flex-start;min-width:0}.summary-icon{flex:0 0 25px;height:25px;display:grid;place-items:center;background:#d8eee6;color:#267468;border-radius:50%;font-size:10px;font-weight:900}.complement-card .summary-icon{background:#e2ecf5;color:#486f91}.omitted-card .summary-icon{background:#f6dfd6;color:#a85841}.section-summary p{overflow-wrap:anywhere}.coverage-indicator{font-size:12px}.draft-badge{background:#e5f2ed;color:#286f65}.saved-section{margin-top:8px}.saved-list li{background:#f5f4ed;border-color:#e4e0d5;border-radius:12px}.preview-footer{background:#f5f4ed}.message:not(:empty){padding:11px 13px;border-radius:8px;background:#fff0e9}.message.success:not(:empty){background:#e6f3ed}
@media(max-width:1000px){.hero{grid-template-columns:1fr;gap:30px}.journey{grid-template-columns:repeat(4,1fr)}.journey li{grid-template-columns:1fr;text-align:center;justify-items:center}.journey li>span{grid-row:auto}.workspace{grid-template-columns:1fr}}
@media(max-width:650px){.hero{padding-top:40px}.hero h1{font-size:40px}.journey{grid-template-columns:1fr 1fr;padding:16px;gap:14px}.workspace{padding-left:12px;padding-right:12px}.form-panel,.preview-panel{padding:24px 19px 0}.form-panel{padding-bottom:24px}.section-summary{grid-template-columns:1fr}.top-nav a:first-child{display:none}.result-topline{align-items:flex-start}.draft-badge{max-width:190px}.editor-label{display:block}.editor-label small{display:block;margin-top:4px}}
@media print{.print-option{display:none}}

/* The on-screen sheet uses the same A4 measurements as the browser print sheet. */
.print-preview-toolbar{display:none}
body.print-preview{background:#ecece8}
body.print-preview .site-shell{display:none}
body.print-preview .print-preview-toolbar{position:sticky;top:0;z-index:10;display:flex;align-items:center;gap:12px;padding:13px max(18px,calc((100vw - 794px)/2));background:#132f40;color:#fff;font:13px Arial,sans-serif}
.print-preview-toolbar strong{margin-right:auto}
.print-preview-toolbar button{border:1px solid #aac6bf;border-radius:7px;background:transparent;color:#fff;padding:8px 12px;cursor:pointer}
.print-preview-toolbar button:last-child{background:#e1f1ea;color:#17483f;border-color:#e1f1ea;font-weight:700}
body.print-preview .print-sheet{display:block;box-sizing:border-box;width:210mm;min-height:297mm;margin:24px auto;padding:18mm 19mm;background:#fff;color:#111;box-shadow:0 12px 35px #0002;font:12pt Georgia,serif}
body.print-preview .print-sheet header{border-bottom:1px solid #777;padding-bottom:10mm;margin-bottom:12mm}
body.print-preview .print-sheet header p{font:700 9pt Arial,sans-serif;letter-spacing:2px;color:#397c75;margin:0 0 6mm}
body.print-preview .print-sheet h1{font:400 25pt Georgia,serif;margin:0 0 3mm}
body.print-preview .print-sheet header span{font:10pt Arial,sans-serif;color:#555}
body.print-preview .print-sheet h2{font:700 11pt Arial,sans-serif;color:#333;margin:9mm 0 3mm}
body.print-preview .print-sheet p{line-height:1.8;white-space:pre-wrap;margin:0}
body.print-preview .print-sheet #print-story{font-size:13pt;line-height:1.9}
body.print-preview .print-sheet [hidden]{display:none!important}
body.print-preview .print-sheet #print-student{display:none}
body.print-preview .print-sheet.student-version #print-teacher{display:none}
body.print-preview .print-sheet.student-version #print-student{display:block}
body.print-preview .print-sheet.student-version #print-student>p{font:11pt Arial,sans-serif;margin-bottom:14mm}
body.print-preview .writing-lines{height:190mm;background:repeating-linear-gradient(to bottom,transparent 0,transparent 11mm,#b7b7b7 11mm,#b7b7b7 11.2mm)}
@media(max-width:820px){body.print-preview .print-sheet{margin:12px auto;max-width:calc(100vw - 24px);min-height:0;padding:28px 24px}.print-preview-toolbar strong{display:none}}
@media print{.print-preview-toolbar{display:none!important}html,body{width:auto}.print-sheet{max-width:none}}

/* Aperçu pédagogique local, distinct du brouillon réellement généré. */
.lengths{grid-template-columns:repeat(3,minmax(0,1fr))}
.length-preview{margin:-8px 0 25px;padding:16px 17px 14px;background:#f3f0e7;border:1px solid #ded8c9;border-left:4px solid var(--aqua);border-radius:11px}
.length-preview-heading{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:10px}
.length-preview-heading strong{color:var(--navy);font:700 13px 'Avenir Next','Segoe UI',Arial,sans-serif}
.length-preview-heading span{flex:0 0 auto;padding:4px 8px;border-radius:99px;background:#dfeee8;color:#277468;font-size:11px;font-weight:800}
.length-preview-text{margin:0;color:#42565d;font:15px/1.65 Georgia,serif}
.length-preview-disclaimer{margin:11px 0 0;padding-top:10px;border-top:1px solid #ddd7c8;color:#6f7d7f;font-size:10px;font-weight:700;line-height:1.45}
@media(max-width:650px){.length-preview-heading{align-items:flex-start;flex-direction:column;gap:6px}.length-preview{padding:14px}.length-preview-text{font-size:14px}}
@media print{.length-preview{display:none!important}}

/* Gestionnaire interactif des mots. */
.word-entry-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:9px;align-items:stretch}
.word-entry-row textarea{min-height:74px;resize:vertical}
.word-entry-row .secondary-button{align-self:stretch}
.word-toolbar{display:flex;justify-content:space-between;align-items:center;min-height:30px;color:#6f7d7f;font-size:11px;font-weight:700}
.word-manager-feedback{min-height:18px;margin:2px 0 7px;color:#397e6c;font-size:11px;line-height:1.45}
.word-manager-feedback.warning{color:#a85c45}
.input-chips{list-style:none;padding:0;margin:0;min-height:0}
.input-chip{display:flex;align-items:center;gap:5px;padding:4px 5px 4px 10px;background:var(--mint);border:1px solid #c6e4d8;border-radius:99px;color:#286f65;font-size:11px;font-weight:700;max-width:100%}
.input-chip>span{overflow-wrap:anywhere}
.input-chip .chip-action,.input-chip .chip-remove{border:0;background:transparent;color:#286f65;font-size:10px;font-weight:800;padding:3px 4px;border-radius:99px}
.input-chip .chip-remove{font-size:17px;line-height:1;padding:1px 5px}
.input-chip button:hover{background:#c7e6da}
.input-chip button:focus-visible,.word-toolbar button:focus-visible{outline:3px solid #d8a178;outline-offset:1px}
.draft-words-warning{margin:12px 0 0;padding:10px 12px;border-left:3px solid var(--coral);border-radius:7px;background:#fff0e9;color:#9a523e;font-size:11px;line-height:1.5}
.draft-words-warning[hidden]{display:none}
@media(max-width:500px){.word-entry-row{grid-template-columns:1fr}.word-entry-row .secondary-button{min-height:42px}}
@media print{.word-entry-row,.word-toolbar,.word-manager-feedback,.input-chips,.draft-words-warning{display:none!important}}

/* V2 : parcours de préparation et cartes thématiques illustrées localement. */
.hero{padding-top:45px;padding-bottom:38px}.hero h1{font-size:clamp(40px,4.5vw,60px)}
.form-section-title{display:flex;align-items:center;gap:10px;margin:28px 0 17px;color:var(--navy);font-size:15px;font-weight:800}
.form-section-title:first-of-type{margin-top:0}.form-section-title::after{content:"";flex:1;height:1px;background:#dfe8e4}
.word-entry-row .secondary-button{background:#d7f0e8;color:#155e58;border:1px solid #9bd4c2;white-space:nowrap}
.word-entry-row .secondary-button:hover{background:#c3e9dc}.word-toolbar{margin-top:8px;font-size:12px}
.theme-field{margin-top:10px}.theme-field legend{font-size:14px}
.theme-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
.theme-card{position:relative;display:flex!important;flex-direction:column;gap:6px;min-width:0;margin:0!important;padding:6px;background:#fff;border:1px solid #dce7e6;border-radius:13px;cursor:pointer;box-shadow:0 2px 5px #17384708;transition:transform .15s,box-shadow .15s,border-color .15s}
.theme-card:hover{transform:translateY(-2px);box-shadow:0 7px 18px #17384716}
.theme-card input{position:absolute;opacity:0;width:1px;height:1px}
.theme-card:has(input:checked){border:2px solid #289eae;padding:5px;background:#f4fcfa;box-shadow:0 0 0 2px #c8ecec}
.theme-card input:focus-visible~.theme-art{outline:3px solid #d8a178;outline-offset:3px}
.theme-card:has(input:checked)::after{content:"";position:absolute;right:8px;top:8px;width:13px;height:13px;border:3px solid #fff;border-radius:50%;background:#137d87;box-shadow:0 0 0 2px #137d87}
.theme-art{height:74px;width:100%;display:grid;place-items:center;border-radius:8px;overflow:hidden;background:linear-gradient(145deg,#e2f3f0,#cfe7e4)}
.theme-art svg{display:block;width:100%;height:100%}
.theme-art-surprise{background:linear-gradient(145deg,#e7f5fa,#e5e9f6)}
.theme-art-nature{background:linear-gradient(145deg,#def1df,#cde9d8)}
.theme-art-school{background:linear-gradient(145deg,#fff3da,#f8dfc0)}
.theme-art-family{background:linear-gradient(145deg,#f8e6df,#f8dcd1)}
.theme-art-friends{background:linear-gradient(145deg,#e2f0f6,#d2e7ef)}
.theme-art-adventure{background:linear-gradient(145deg,#e2eeda,#d2e2d7)}
.theme-art-travel{background:linear-gradient(145deg,#e1f0f5,#d0e5ed)}
.theme-art-seasons{background:linear-gradient(145deg,#f8efd8,#f4e4c8)}
.theme-art-daily{background:linear-gradient(145deg,#f4e9dc,#e9ddca)}
.theme-art-sports{background:linear-gradient(145deg,#e4f4eb,#d3e9df)}
.theme-art-jobs{background:linear-gradient(145deg,#f3e4db,#e8d6d2)}
.theme-art-fantasy{background:linear-gradient(145deg,#e8e5f7,#dcdcf1)}
.theme-art-science{background:linear-gradient(145deg,#e1f0f2,#d1e6ee)}
.theme-name{display:block;min-height:27px;padding:2px 3px 1px;color:#294b56;font-size:11px;font-weight:800;line-height:1.2}
.difficulty-options{grid-template-columns:repeat(3,minmax(0,1fr))}
.difficulty-hint{margin:9px 0 0;color:#698188}
.result-facts{display:flex;flex-wrap:wrap;gap:7px;margin:10px 0 16px}.result-facts span{padding:6px 10px;border:1px solid #dce9e6;background:#f2f8f6;border-radius:99px;color:#286f69;font-size:11px;font-weight:800}
.ai-caution{margin:14px 0 0;padding:12px 14px;background:#fff5e9;border-left:3px solid #dfa66e;border-radius:8px;color:#70594b;font-size:11px;line-height:1.55}.ai-caution strong{display:block;margin-bottom:3px;color:#684737}
.ai-caution[hidden]{display:none}.result-guide{line-height:1.6}
.complement-display{margin:17px 0 0;padding:12px 14px;background:#edf4fa;border:1px solid #dbe9f4;border-radius:10px;color:#416173}
.complement-display[hidden],#length-warning[hidden]{display:none}
.complement-display h4{margin:0 0 5px;font-size:11px;text-transform:uppercase;letter-spacing:.5px}
.complement-display p{margin:0;font:14px/1.55 Georgia,serif}
.word-dialog{width:min(440px,calc(100vw - 32px));max-width:none;padding:26px;background:var(--paper);color:var(--ink);border:1px solid #d8e6e2;border-radius:18px;box-shadow:0 24px 70px #102f4050}
.word-dialog::backdrop{background:#102f4070;backdrop-filter:blur(2px)}
.word-dialog h2{margin:0 0 8px;color:var(--navy);font:400 27px Georgia,serif}
.word-dialog p{margin:0 0 17px;color:#667d82;font-size:13px;line-height:1.55}
.word-dialog label{display:block;margin-bottom:7px;font-size:12px;font-weight:800}
.word-dialog input{width:100%;height:45px;padding:0 12px;border:1px solid #bfd7d1;border-radius:9px;background:#fff;color:var(--ink)}
.word-dialog .word-manager-feedback{min-height:18px;margin:7px 0 12px}
.word-dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:21px}
.word-dialog-actions button{min-width:105px}
.workspace{align-items:start}.form-panel{align-self:start}.preview-panel{min-height:660px;align-self:start}
.preview-panel:has(.empty-state:not([hidden])){position:sticky;top:104px}
@media(max-width:1000px){.preview-panel{min-height:450px}.preview-panel:has(.empty-state:not([hidden])){position:static}.theme-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:650px){.hero{padding-top:35px}.theme-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.theme-art{height:67px}.theme-name{font-size:11px}.form-section-title{margin-top:25px}.preview-panel{min-height:0}}
@media(max-width:370px){.theme-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media print{.theme-field,.ai-caution,.result-facts{display:none!important}}

/* V3 A+D — tableau de bord Hatier Game. */
:root{
  --dashboard-navy:#102d47;
  --dashboard-navy-2:#173f60;
  --dashboard-blue:#1769e0;
  --dashboard-blue-dark:#0d55c6;
  --dashboard-turquoise:#20b8b0;
  --dashboard-turquoise-soft:#dff6f1;
  --dashboard-ivory:#f8f5ec;
  --dashboard-paper:#fffdfa;
  --dashboard-line:#dfe7e8;
  --dashboard-muted:#657985;
  --dashboard-coral:#ef765f;
  --sidebar-width:244px;
  background:var(--dashboard-ivory);
  color:var(--dashboard-navy);
}
html{scroll-behavior:smooth;scroll-padding-top:24px}
body{min-width:320px;background:var(--dashboard-ivory);color:var(--dashboard-navy)}
.site-shell{min-height:100vh}
.topbar{
  position:fixed;inset:0 auto 0 0;z-index:20;width:var(--sidebar-width);height:100vh;
  padding:30px 22px 24px;display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;
  background:var(--dashboard-navy);border:0;box-shadow:8px 0 34px rgba(16,45,71,.1);backdrop-filter:none
}
.brand{gap:11px;padding:0 5px;color:#fff;font-size:19px;letter-spacing:-.5px}
.brand-mark{width:43px;height:43px;flex:0 0 43px;border-radius:13px;background:var(--dashboard-turquoise);color:#fff;font:900 23px/1 'Avenir Next','Segoe UI',Arial,sans-serif;box-shadow:0 7px 17px rgba(0,0,0,.18)}
.brand-name{line-height:1.05}.brand-light{display:block;color:#a7e8df;font-weight:500;font-size:15px;letter-spacing:.1px}
.nav-caption{margin:44px 10px 10px;color:#7894aa;font-size:10px;font-weight:800;letter-spacing:1.5px;text-transform:uppercase}
.top-nav{display:grid;gap:6px;align-items:stretch}
.top-nav a{position:relative;display:flex;align-items:center;gap:12px;min-height:48px;padding:0 13px;border-radius:11px;color:#bfd0dc;font-size:13px;font-weight:700;transition:background .16s,color .16s,transform .16s}
.top-nav a:hover{background:#ffffff10;color:#fff;transform:translateX(2px)}
.top-nav a.active{background:var(--dashboard-blue);color:#fff;box-shadow:0 8px 22px rgba(4,26,49,.32)}
.top-nav a.active::after{content:"";position:absolute;right:-22px;width:4px;height:24px;border-radius:4px 0 0 4px;background:var(--dashboard-turquoise)}
.nav-icon{display:grid;place-items:center;width:25px;height:25px;flex:0 0 25px;border:1px solid #ffffff30;border-radius:8px;font-size:16px;line-height:1}
.top-nav a.active .nav-icon{background:#fff;color:var(--dashboard-blue);border-color:#fff}
.sidebar-help{margin-top:auto;padding:17px 16px 15px;border:1px solid #ffffff1c;border-radius:15px;background:#ffffff0b;color:#d8e5ed}
.sidebar-help>span{display:grid;place-items:center;width:30px;height:30px;margin-bottom:11px;border-radius:9px;background:#204e6d;color:#6de0d1}
.sidebar-help strong{font-size:12px}.sidebar-help p{margin:5px 0 11px;color:#91aabd;font-size:10px;line-height:1.5}.sidebar-help a{color:#70ddd0;font-size:10px;font-weight:800;text-decoration:none}
main{margin-left:var(--sidebar-width)}
.hero{max-width:1400px;margin:0 auto;padding:49px 44px 33px;display:grid;grid-template-columns:minmax(0,1fr) minmax(490px,.82fr);gap:50px;align-items:center}
.eyebrow{gap:8px;color:var(--dashboard-blue);font-size:10px;letter-spacing:1.4px}.eyebrow-dot{background:var(--dashboard-turquoise);box-shadow:0 0 0 4px #20b8b01c}
.hero h1{margin:14px 0 11px;color:var(--dashboard-navy);font-family:'Avenir Next','Segoe UI',Arial,sans-serif;font-size:clamp(34px,3.3vw,50px);font-weight:800;line-height:1.08;letter-spacing:-1.8px}
.hero h1 em{color:var(--dashboard-blue);font-style:normal;font-weight:800}
.hero p{max-width:660px;color:var(--dashboard-muted);font-size:14px;line-height:1.65}
.journey{position:relative;margin:0;padding:19px 18px;display:grid;grid-template-columns:repeat(4,1fr);gap:0;background:var(--dashboard-paper);border:1px solid var(--dashboard-line);border-radius:17px;box-shadow:0 9px 30px rgba(16,45,71,.055)}
.journey::before{content:"";position:absolute;left:12%;right:12%;top:35px;height:2px;background:#dfe7e8}
.journey li{position:relative;z-index:1;display:flex;flex-direction:column;align-items:center;gap:4px;text-align:center;color:#778993}
.journey li>span{grid-row:auto;width:33px;height:33px;margin-bottom:4px;background:#edf1f2;border:4px solid var(--dashboard-paper);color:#6f818b;font-size:11px;box-sizing:content-box}
.journey li.active>span{background:var(--dashboard-blue);color:#fff;box-shadow:0 0 0 2px #b9d2f7}
.journey strong{color:var(--dashboard-navy);font-size:10px}.journey small{font-size:9px;line-height:1.25}
.workspace{max-width:1400px;margin:0 auto;padding:0 44px 65px;grid-template-columns:minmax(410px,.86fr) minmax(500px,1.14fr);gap:24px;align-items:start}
.panel{background:var(--dashboard-paper);border:1px solid var(--dashboard-line);border-radius:18px;box-shadow:0 14px 40px rgba(16,45,71,.065);overflow:hidden}
.form-panel,.preview-panel{padding:29px 30px 0}.form-panel{padding-bottom:30px}.preview-panel{min-height:670px}
.panel-heading{gap:13px;margin-bottom:27px;padding-bottom:21px;border-bottom:1px solid #e8edeb}
.step,.step.peach{width:39px;height:39px;flex:0 0 39px;border-radius:11px;background:var(--dashboard-blue);color:#fff;font-size:11px;box-shadow:0 6px 15px #1769e02b}
.step.peach{background:var(--dashboard-turquoise);box-shadow:0 6px 15px #20b8b02b}
.panel-kicker{display:block;margin-bottom:2px;color:var(--dashboard-blue);font-size:9px;font-weight:900;letter-spacing:1.3px}.preview-panel .panel-kicker{color:#168d88}
.panel-heading h2{font-family:'Avenir Next','Segoe UI',Arial,sans-serif;color:var(--dashboard-navy);font-size:21px;font-weight:800;letter-spacing:-.5px}.panel-heading p{margin-top:3px;color:#82929a;font-size:11px}
.form-section-title{margin:27px 0 16px;color:var(--dashboard-navy);font-size:13px}.form-section-title::after{background:#e4eae8}
.field{margin-bottom:23px}.field label,.field legend{color:#304b5c;font-size:12px}.hint{color:#7d8e96;line-height:1.5}
textarea,input[type=text],select{border-color:#d9e2e2;border-radius:9px;color:#263f50}textarea:focus,input:focus,select:focus{border-color:var(--dashboard-blue);box-shadow:0 0 0 3px #1769e019}
.word-field textarea{border:1px solid #d4e0e1;background:#fff;min-height:74px}.word-entry-row .secondary-button{min-width:96px;background:var(--dashboard-turquoise-soft);border:1px solid #a9dfd7;color:#13746f}.word-entry-row .secondary-button:hover{background:#caeee8}
.input-chip{background:#e7f5f3;border-color:#c3e6df;color:#176d69}.input-chip .chip-action,.input-chip .chip-remove{color:#176d69}
.choice-grid{gap:7px}.choice-grid span{background:#f7f8f5;border-color:#dfe6e5;border-radius:8px;color:#627780}.choice-grid input:checked+span{background:#e8f1ff;border-color:#77a8ef;color:#145cc9;box-shadow:inset 0 0 0 1px #77a8ef}.choice-grid input:focus-visible+span,.theme-card input:focus-visible~.theme-art{outline-color:#ffb25f}
.length-preview{background:#f4f8fa;border-color:#d9e4e8;border-left-color:var(--dashboard-blue)}.length-preview-heading span{background:#dff2ef;color:#14736e}
.theme-card{border-color:#dce5e5;border-radius:11px;box-shadow:none}.theme-card:hover{border-color:#9bcfc9;box-shadow:0 7px 18px #17384712}.theme-card:has(input:checked){border-color:var(--dashboard-blue);background:#f4f8ff;box-shadow:0 0 0 2px #d7e6fb}.theme-card:has(input:checked)::after{background:var(--dashboard-blue);box-shadow:0 0 0 2px var(--dashboard-blue)}
.simulation-note{background:#eef6f7;border-left-color:var(--dashboard-turquoise);color:#587078}.simulation-note span{color:inherit}
.primary-button{background:var(--dashboard-blue);box-shadow:0 8px 18px #1769e02b}.primary-button:hover{background:var(--dashboard-blue-dark)}.secondary-button{background:#edf3fb;color:#175dab}.secondary-button:hover{background:#dce9fa}
#generate-button{min-height:51px;border-radius:10px;font-size:13px;letter-spacing:.1px}
.empty-state{min-height:405px;padding:38px 20px 62px}.paper-illustration{background:#f7fbff;border-color:#a9c9ee;box-shadow:8px 9px 0 #e8f0f6}.paper-line{background:#a9c5df}.paper-spark{color:var(--dashboard-turquoise)}.empty-state h3{color:var(--dashboard-navy);font-family:'Avenir Next','Segoe UI',Arial,sans-serif;font-size:20px;font-weight:800}.empty-state p{color:#7a8d97}
.result-title,.coverage-header h3,.saved-heading h2{font-family:'Avenir Next','Segoe UI',Arial,sans-serif;font-weight:800;color:var(--dashboard-navy)}.draft-badge{background:#e5f0ff;color:#155fc8}.result-facts span{background:#eff7f6;border-color:#d3e8e4;color:#176f6b}#content{border-left-color:var(--dashboard-blue)}
.coverage-indicator{background:#dff4ef;color:#14736c}.section-summary article{background:#f5f8f8}.summary-icon{background:#dff3ef;color:#167670}
.saved-section{padding-top:24px}.saved-list li{background:#f5f7f6;border-color:#e0e7e6}.text-button{color:#1769c9}
.help-card{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:12px;margin:6px 0 24px;padding:16px;border:1px solid #cfe5e1;border-radius:12px;background:#edf8f5}.help-icon{display:grid;place-items:center;width:31px;height:31px;border-radius:50%;background:var(--dashboard-turquoise);color:#fff;font-weight:900}.help-card h2{margin:0 0 3px;color:var(--dashboard-navy);font-size:12px}.help-card p{margin:0;color:#60777c;font-size:10px;line-height:1.45}.help-card a{color:#0b716b;font-size:10px;font-weight:800;text-decoration:none;white-space:nowrap}
.preview-footer{background:#f6f8f5;border-color:#e7ebe7}.footer-icon{background:#dff3ef;color:#16766e}
.page-footer{margin-left:var(--sidebar-width);padding:0 44px 25px;color:#788b93}
.word-dialog{border-color:#d7e4e4}.word-dialog h2{font-family:'Avenir Next','Segoe UI',Arial,sans-serif;font-weight:800}

@media(max-width:1180px){
  :root{--sidebar-width:218px}.topbar{padding-left:17px;padding-right:17px}.top-nav a.active::after{right:-17px}
  .hero{grid-template-columns:1fr;gap:24px;padding:40px 30px 28px}.hero-copy{max-width:780px}.journey{max-width:none}
  .workspace{padding-left:30px;padding-right:30px;grid-template-columns:1fr}.preview-panel:has(.empty-state:not([hidden])){position:static}.preview-panel{min-height:450px}
  .theme-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
}
@media(max-width:900px){
  :root{--sidebar-width:0px}html{scroll-padding-top:88px}
  .topbar{position:sticky;inset:auto;top:0;width:100%;height:76px;padding:0 22px;display:flex;flex-direction:row;align-items:center;background:var(--dashboard-navy)}
  .brand{padding:0}.brand-mark{width:38px;height:38px;flex-basis:38px}.brand-name{font-size:16px}.brand-light{font-size:12px}
  .nav-caption,.sidebar-help{display:none}.top-nav{margin-left:auto;display:flex;gap:5px}.top-nav a,.top-nav a:first-child{display:flex;min-height:40px;padding:0 10px;gap:7px;font-size:11px}.top-nav a.active::after{display:none}.nav-icon{width:22px;height:22px;flex-basis:22px;font-size:13px}
  main,.page-footer{margin-left:0}.hero{padding:35px 22px 26px}.workspace{padding:0 18px 45px}.page-footer{padding-left:20px;padding-right:20px}
}
@media(max-width:600px){
  html{scroll-padding-top:68px}.topbar{height:66px;padding:0 14px}.brand{gap:7px}.brand-mark{width:34px;height:34px;flex-basis:34px;border-radius:10px;font-size:19px}.brand-name{display:none}
  .top-nav{gap:2px}.top-nav a,.top-nav a:first-child{display:flex;padding:0 8px;min-height:38px}.top-nav a span:last-child{font-size:10px}.nav-icon{display:none}
  .hero{padding:28px 18px 22px}.hero h1{font-size:34px;letter-spacing:-1.2px}.hero p{font-size:13px}.journey{padding:14px 8px;grid-template-columns:repeat(4,1fr);gap:0}.journey::before{left:11%;right:11%;top:29px}.journey li>span{width:27px;height:27px;font-size:10px}.journey strong{font-size:9px}.journey small{display:none}
  .workspace{padding:0 10px 38px;gap:14px}.form-panel,.preview-panel{padding:22px 17px 0}.form-panel{padding-bottom:22px}.panel{border-radius:15px}.panel-heading{margin-bottom:22px;padding-bottom:17px}.theme-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.section-summary{grid-template-columns:1fr}
  .help-card{grid-template-columns:auto 1fr}.help-card a{grid-column:2}.preview-footer{margin-left:-17px;margin-right:-17px;padding-left:17px;padding-right:17px}
}
@media(max-width:390px){.top-nav a{padding:0 6px}.top-nav a span:last-child{font-size:9px}.theme-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.hero h1{font-size:30px}}
@media print{.topbar,.hero,.help-card{display:none!important}.page-footer{margin-left:0}}

/* V4 : composition inspirée des zones A et D de la maquette locale. */
:root{
  --navy:#14284b;--ink:#14284b;--ivory:#f5f9fc;--paper:#fff;
  --mint:#e5f5ec;--green:#247e58;--aqua:#13b8be;
  --dashboard-navy:#14284b;--dashboard-blue:#2468e8;
  --dashboard-blue-dark:#1454d1;--dashboard-turquoise:#13b8be;
  --sidebar-width:178px;
}
body{background:linear-gradient(135deg,#f7fbfe 0%,#eff6fb 65%,#f8f9f6 100%);color:var(--navy)}
.topbar{
  width:var(--sidebar-width);padding:23px 13px 18px;background:#fff;
  border-right:1px solid #dbe8f2;box-shadow:none
}
.brand{padding:0 2px;gap:7px;color:#132e64;font-size:17px;letter-spacing:-.6px}
.brand-mark{width:34px;height:34px;flex:0 0 34px;border-radius:9px;background:#e3f9f9;color:#08a9b7;font:800 28px/1 Georgia,serif;box-shadow:none;transform:rotate(-12deg)}
.brand-name{line-height:1.05}.brand-light{display:inline;color:#0aaeba;font-size:17px;font-weight:750}.brand-name small{display:block;margin-top:4px;color:#637998;font-size:8px;font-weight:700;letter-spacing:.1px}
.nav-caption{margin:34px 9px 8px;color:#8b9bad;font-size:9px;letter-spacing:1px}
.top-nav{gap:5px}.top-nav a{min-height:41px;padding:0 9px;color:#28436c;font-size:11px;border-radius:8px}
.top-nav a:hover{background:#edf7ff;color:#1764d5;transform:none}
.top-nav a.active{background:#e5f1ff;color:#0d5fcf;box-shadow:none}
.top-nav a.active::after{display:none}.nav-icon{width:20px;height:20px;flex-basis:20px;border:none;font-size:15px}
.top-nav a.active .nav-icon{background:transparent;color:#0d5fcf;border:0}
.sidebar-help{margin-top:auto;padding:0 4px 8px;border:0;border-radius:0;background:none;color:#17365e;text-align:center}
.sidebar-help img{display:block;width:100%;height:auto;max-height:154px;object-fit:contain;margin-bottom:8px}
.sidebar-help>span{display:none}.sidebar-help strong{font-size:11px}.sidebar-help p{margin:5px 0 8px;color:#4b6680;font-size:10px;line-height:1.4}.sidebar-help a{color:#0d64cf;font-size:10px}
main{margin-left:var(--sidebar-width)}
.hero{max-width:1600px;min-height:94px;padding:18px 26px 10px;grid-template-columns:minmax(280px,.7fr) minmax(500px,1.3fr);gap:24px;align-items:center}
.eyebrow{font-size:9px;color:#2875bd;letter-spacing:1px}.hero h1{margin:7px 0 3px;font-size:clamp(20px,1.7vw,27px);font-weight:800;line-height:1.17;letter-spacing:-.7px}
.hero h1 em{color:#087caa}.hero p{margin:0;font-size:10px;line-height:1.4;color:#637992}
.journey{min-height:66px;padding:8px 4px 0;border:0;border-bottom:1px solid #d6e6f1;border-radius:0;background:transparent;box-shadow:none;gap:0}
.journey::before{display:none}.journey li{display:flex;flex-direction:row;justify-content:center;align-items:center;gap:7px;padding:4px 3px 11px;border-bottom:2px solid transparent;text-align:left}
.journey li.active{border-color:#2468e8}.journey li>span{width:22px;height:22px;flex:0 0 22px;margin:0;border:0;box-sizing:border-box;background:#e3eaf0;color:#586b7f;font-size:10px}
.journey li.active>span{background:#2468e8;color:#fff;box-shadow:none}.journey strong{font-size:10px;color:#3a5779}.journey li.active strong{color:#145aca}.journey small{display:none}
.workspace{max-width:1600px;padding:0 26px 34px;grid-template-columns:minmax(0,1fr) minmax(0,.96fr);gap:18px;align-items:start}
.panel{border-radius:13px;border-color:#dce9f2;box-shadow:0 5px 20px #163e6d0a}
.form-panel{padding:0;border:0;box-shadow:none;background:transparent;overflow:visible}
.form-card{margin-bottom:12px;padding:15px 17px 14px;border:1px solid #dce9f2;border-radius:13px;background:#fff;box-shadow:0 5px 20px #163e6d0a}
.form-section-title,.form-section-title:first-of-type{margin:0 0 12px;gap:9px;color:#123461;font-size:13px;line-height:1.2}
.form-section-title::after{display:none}.section-number{display:grid;place-items:center;width:24px;height:24px;flex:0 0 24px;border-radius:50%;background:#1675ec;color:#fff;font-size:11px;box-shadow:0 2px 6px #2468e834}
.words-card .field{margin:0}.word-field>label{margin:0 0 6px;color:#173d69;font-size:11px}.word-field .hint{margin:0 0 8px;color:#70839a;font-size:10px;line-height:1.35}
.word-entry-row{gap:7px;grid-template-columns:minmax(0,1fr) 104px}.word-field textarea{min-height:43px;max-height:76px;padding:10px 12px;font-size:12px;line-height:1.4;resize:vertical}
.word-entry-row .secondary-button{min-height:43px;min-width:0;padding:0 10px;background:linear-gradient(180deg,#2686f5,#0561d5);border:0;border-radius:7px;color:#fff;box-shadow:0 3px 9px #1769e02b;font-size:11px}
.word-entry-row .secondary-button:hover{background:#125bd1}.word-toolbar{margin-top:5px;min-height:19px;color:#2e5d8b;font-size:10px}.word-toolbar .danger{color:#c45150}
.word-manager-feedback{min-height:0;margin:0 0 3px;font-size:10px}.input-chips{gap:5px}.input-chip{padding:3px 4px 3px 8px;border-radius:6px;background:#f1f6fc;border-color:#dae6f3;color:#1f4775;font-size:10px}
.input-chip .chip-action,.input-chip .chip-remove{color:#1f4775;font-size:9px}.input-chip .chip-remove{font-size:16px}.input-chip button:focus-visible{outline-color:#ffaf52}
.settings-card .field{margin:0 0 9px}.settings-card .field legend,.settings-card .field>label{margin:0 0 6px;color:#173d69;font-size:10px;font-weight:800}
.settings-card .choice-grid{gap:5px}.settings-card .choice-grid span{height:31px;border-radius:6px;background:#f6f9fd;border-color:#dbe6f1;color:#335779;font-size:10px}
.settings-card .choice-grid input:checked+span{background:#1874ec;border-color:#1874ec;color:#fff;box-shadow:0 3px 8px #2468e82b}
.settings-card .kinds span{height:37px;padding:0 9px}.settings-card .kinds strong{font-size:10px}.settings-card .kinds small{display:none}
.settings-card .difficulty-hint{margin:5px 0 0;font-size:9px;color:#7a8da1}
.settings-card .length-preview{margin:2px 0 0;padding:9px 11px;background:#eff7fc;border:1px solid #dce9f2;border-left:3px solid #34aed0;border-radius:8px}
.settings-card .length-preview-heading{margin:0 0 4px}.settings-card .length-preview-heading strong{font-size:10px}.settings-card .length-preview-heading span{padding:3px 7px;font-size:9px}
.settings-card .length-preview-text{font:11px/1.4 Georgia,serif;color:#375473}.settings-card .length-preview-disclaimer{margin:5px 0 0;padding-top:5px;font-size:9px;font-weight:600}
.themes-card{padding-bottom:11px}.themes-card .field{margin:0}.themes-card .hint{margin:0 0 8px;font-size:10px}
.theme-grid,.theme-more-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:6px}
.theme-card{gap:3px;padding:3px!important;border-radius:8px;box-shadow:none!important}.theme-card:has(input:checked){padding:2px!important;border:2px solid #1874ec;background:#f1f8ff;box-shadow:0 0 0 2px #cde4ff!important}
.theme-card:has(input:checked)::after{width:10px;height:10px;right:6px;top:6px;border-width:2px}.theme-art{height:58px;border-radius:5px;filter:saturate(1.26)}
.theme-name{min-height:23px;padding:1px 2px;font-size:9px;line-height:1.13;text-align:center;color:#193c65}
.theme-more{grid-column:1/-1}.theme-more summary{width:max-content;max-width:100%;margin:6px auto 0;padding:5px 13px;border:1px solid #d8e8f5;border-radius:99px;color:#1766d1;background:#f8fbff;cursor:pointer;text-align:center;font-size:10px;font-weight:800;list-style:none}
.theme-more summary::-webkit-details-marker{display:none}.theme-more summary:hover{background:#e9f4ff}.theme-more summary:focus-visible{outline:3px solid #ffc369;outline-offset:2px}
.theme-more-grid{margin-top:9px}
.preview-panel{padding:17px 18px 0;min-height:0;overflow:hidden}.preview-panel:has(.empty-state:not([hidden])){position:static}
.preview-panel .panel-heading{margin:0 0 9px;padding:0 0 7px;border-bottom:1px solid #e3edf3}.preview-panel .panel-heading h2{font-size:15px;letter-spacing:-.2px}.preview-panel .panel-kicker{font-size:8px;letter-spacing:1px}
.generate-box{margin:0 0 11px}.generate-box #generate-button{display:block;width:100%;min-height:45px;border-radius:7px;background:linear-gradient(90deg,#16b8c0,#09aeb2);box-shadow:0 5px 14px #09aeb233;font-size:13px}
.generate-box #generate-button:hover{background:linear-gradient(90deg,#0da7af,#078f9b)}
.generate-box .simulation-note{display:block;margin:6px 0 0;padding:0;border:0;background:none;color:#76899c;text-align:center;font-size:9px;line-height:1.3}.generate-box .simulation-note strong{color:#466e8b}
.empty-state{min-height:0;padding:0 0 10px;border:0;background:transparent;text-align:left}
.example-topline{display:flex;justify-content:space-between;gap:8px;margin:0 0 8px;color:#7189a4;font-size:9px;font-weight:800;letter-spacing:.4px}.example-topline span:last-child{color:#007f91}
.example-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px}.empty-state .example-heading h3{margin:0;color:#153869;font-size:17px;font-weight:800}.example-heading span{flex:0 0 auto;padding:4px 8px;border-radius:99px;background:#edf5ff;color:#1d62be;font-size:9px;font-weight:700}
.example-story{display:grid;grid-template-columns:minmax(0,1fr) 140px;gap:10px;align-items:center;padding:10px 12px;border:1px solid #dcecf4;border-radius:8px;background:#f6fbff}.example-story p{margin:0;color:#284873;font:13px/1.55 Georgia,serif}.example-story img{width:100%;height:auto;border-radius:8px}
.example-words{display:flex;flex-wrap:wrap;align-items:center;gap:4px;margin-top:10px;padding-top:9px;border-top:1px solid #e5eef3}.example-words strong{width:100%;margin-bottom:2px;color:#153869;font-size:10px}.example-words span{padding:4px 8px;border-radius:99px;background:#e3f6e9;color:#257749;font-size:9px;font-weight:700}
.empty-state .example-disclaimer{margin:10px 0 0;color:#73889a;font-size:9px;line-height:1.4}
.result-state{padding:0}.result-topline{margin-bottom:3px}.result-title{margin:4px 0;font-size:20px}.result-facts{margin:6px 0 9px}.result-facts span{padding:4px 7px;font-size:9px}.result-guide{margin:4px 0 10px;font-size:10px}.editor-label{margin-bottom:5px;font-size:10px}#content{min-height:158px;padding:12px 14px;border-left-width:3px;border-radius:6px;font-size:15px;line-height:1.6}
.coverage-header{margin:14px 0 7px}.coverage-header h3{font-size:13px}.coverage-indicator{padding:5px 8px;font-size:9px}.section-summary{gap:5px}.section-summary article{padding:8px}.section-summary h3{font-size:9px}.section-summary p{font-size:10px}.word-statuses{margin-top:7px}.word-status{font-size:9px;padding:3px 6px}.check-status{margin-top:6px;min-height:24px;font-size:10px}
.result-actions{gap:6px;margin:5px 0 13px}.result-actions button{min-height:34px;padding:0 10px;font-size:10px}.print-actions{gap:6px;padding:9px 0 15px}.print-actions label{font-size:10px}.print-actions select{min-width:110px;font-size:10px}.print-actions button{min-height:34px;padding:0 10px;font-size:10px}
.saved-section{padding:12px 0}.saved-heading h2{font-size:14px}.saved-list{max-height:145px}.saved-list li{padding:8px}.saved-list strong,.saved-list span{font-size:10px}.library-note{font-size:9px}.help-card{margin:4px 0 12px;padding:10px}.preview-footer{margin:0 -18px;padding:10px 18px}.page-footer{padding-bottom:14px;font-size:9px}
@media(max-width:1250px){
  .hero{grid-template-columns:1fr;gap:4px}.journey{min-height:48px}.workspace{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
  .theme-grid,.theme-more-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .theme-art{height:72px}
}
@media(max-width:1050px){
  :root{--sidebar-width:0px}html{scroll-padding-top:78px}.topbar{position:sticky;inset:auto;top:0;width:100%;height:64px;flex-direction:row;align-items:center;padding:0 20px;border-right:0;border-bottom:1px solid #dbe8f2;z-index:20}
  .brand{white-space:nowrap}.nav-caption,.sidebar-help{display:none}.top-nav{display:flex;margin-left:auto;gap:3px}.top-nav a,.top-nav a:first-child{display:flex;min-height:38px;padding:0 9px;font-size:11px}.top-nav a.active::after{display:none}
  main,.page-footer{margin-left:0}.hero{padding:16px 20px 10px}.workspace{padding:0 20px 26px;grid-template-columns:1fr}.theme-grid,.theme-more-grid{grid-template-columns:repeat(6,minmax(0,1fr))}
}
@media(max-width:640px){
  html{scroll-padding-top:65px}.topbar{height:61px;padding:0 12px}.brand-mark{width:29px;height:29px;flex-basis:29px;font-size:23px}.brand-name{display:none}.top-nav a,.top-nav a:first-child{padding:0 7px;min-height:34px}.top-nav a span:last-child{font-size:10px}
  .hero{padding:15px 13px 9px}.hero h1{font-size:21px;letter-spacing:-.3px}.hero p{font-size:10px}.journey{padding:5px 0 0;min-height:41px}.journey li{gap:3px;padding:3px 1px 8px}.journey li>span{width:19px;height:19px;flex-basis:19px;font-size:9px}.journey strong{font-size:8px}
  .workspace{padding:0 9px 25px;gap:10px}.form-card{padding:13px 12px 11px;margin-bottom:10px}.form-section-title{font-size:12px}.word-entry-row{grid-template-columns:minmax(0,1fr) auto}.word-entry-row .secondary-button{min-height:43px}.settings-card .choice-grid span{font-size:9px}
  .theme-grid,.theme-more-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.theme-art{height:64px}.theme-name{font-size:9px}
  .preview-panel{padding:14px 13px 0}.example-story{grid-template-columns:minmax(0,1fr) 90px}.example-story p{font-size:11px}.empty-state .example-heading h3{font-size:15px}.preview-footer{margin:0 -13px;padding:10px 13px}.section-summary{grid-template-columns:1fr}
}
@media(max-width:360px){.theme-grid,.theme-more-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.example-story{grid-template-columns:1fr}.example-story img{display:none}}
@media print{.sidebar-help,.generate-box,.empty-state,.form-card{display:none!important}}

/* Deuxième passage : garder les thèmes visibles même avec une liste de mots. */
.words-card{padding-top:12px;padding-bottom:11px}.words-card .form-section-title{margin-bottom:8px}
.word-field .hint{margin-bottom:5px}.word-entry-row textarea{height:42px;min-height:42px;max-height:90px;padding:9px 11px}.word-entry-row .secondary-button{min-height:42px}
.word-toolbar{margin-top:3px}.input-chips{gap:4px}.input-chip{height:27px;min-height:27px;padding:1px 4px 1px 7px;gap:3px}
.input-chip .chip-action{width:21px;height:21px;padding:0;font-size:0;line-height:1}.input-chip .chip-action::before{content:"✎";font-size:12px}.input-chip .chip-remove{padding:0 3px;font-size:15px}
.settings-card{padding-top:12px;padding-bottom:10px}.settings-card .form-section-title{margin-bottom:8px}.settings-card .field{margin-bottom:6px}
.settings-card .field legend,.settings-card .field>label{margin-bottom:4px}.settings-card .choice-grid span{height:28px}.settings-card .kinds span{height:30px}.settings-card .difficulty-hint{margin:3px 0 0}
.themes-card{padding-top:12px;padding-bottom:8px}.themes-card .form-section-title{margin-bottom:6px}.themes-card .hint{margin-bottom:5px}
.form-panel #length-preview{margin:0 0 10px;padding:9px 11px;border:1px solid #d6e8f3;border-left:3px solid #19a8c5;border-radius:9px;background:#eaf6fd}
.form-panel #length-preview .length-preview-heading{margin:0 0 4px}.form-panel #length-preview .length-preview-heading strong{font-size:10px}.form-panel #length-preview .length-preview-heading span{padding:3px 7px;font-size:9px}
.form-panel #length-preview .length-preview-text{font:11px/1.38 Georgia,serif;color:#385677}.form-panel #length-preview .length-preview-disclaimer{margin:5px 0 0;padding-top:4px;font-size:9px;font-weight:600}
#content{height:170px;min-height:170px}
@media(max-width:640px){.word-entry-row textarea{height:46px;min-height:46px}.input-chip{height:30px;min-height:30px}.settings-card .choice-grid span{height:32px}}

/* V5 — maquette desktop cible : atelier illustré et espace de lecture. */
:root{--sidebar-width:211px;--v5-navy:#102d50;--v5-blue:#155bea;--v5-turquoise:#14b8c6}
body{background:#f0f7fd;color:#12345e}
.app-view[hidden]{display:none!important}
.topbar{width:var(--sidebar-width);padding:15px 11px 24px;background:linear-gradient(160deg,#102c4e 0%,#15395f 58%,#0d2846 100%);border:0;color:#fff}
.brand{padding:0 9px;gap:10px;color:#fff;font-size:25px;line-height:1.02;letter-spacing:-.9px}
.brand-mark{width:48px;height:48px;flex:0 0 48px;background:none;color:#29cbd4;box-shadow:none;font:800 48px/1 Georgia,serif;transform:rotate(-22deg)}
.brand-light{display:block;color:#6ce1e2;font-size:25px;font-weight:800}.brand-name small{margin-top:5px;color:#e2f1fd;font-size:10px;letter-spacing:0}
.nav-caption{display:none}.top-nav{margin-top:32px;gap:10px}.top-nav a{min-height:55px;padding:0 18px;border-radius:10px;color:#f7fbff;font-size:14px;font-weight:750}
.top-nav a:hover{background:#245276;color:#fff}.top-nav a.active{background:linear-gradient(95deg,#16c3ce,#159fbc);color:#fff;box-shadow:0 8px 20px #001e3d30}
.top-nav a.active .nav-icon,.nav-icon{width:25px;height:25px;flex-basis:25px;background:none!important;color:inherit!important;font-size:22px}
.sidebar-help{margin-top:auto;padding:0 17px 15px;text-align:left;color:#fff}.sidebar-help img{width:127px;max-height:none;height:109px;margin:0 0 11px;object-fit:contain}
.sidebar-help p{margin:0;color:#f2f7fe;font-size:13px;line-height:1.5}.sidebar-help a{display:none}
main,.page-footer{margin-left:var(--sidebar-width)}
.utility-bar{height:63px;padding:0 29px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #e1ebf3;background:#fff}
.utility-bar nav{display:flex;align-items:center;gap:14px}.utility-bar nav a{display:flex;align-items:center;gap:8px;padding:9px 14px;border-radius:8px;color:#123462;font-size:13px;font-weight:800;text-decoration:none}
.utility-bar nav a.active{background:linear-gradient(95deg,#14c2c9,#119eba);color:#fff}.utility-bar nav a:hover:not(.active){background:#eff7ff}.utility-bar nav a:focus-visible,.top-nav a:focus-visible{outline:3px solid #ffc860;outline-offset:2px}
.local-workspace{color:#1d4c78;font-size:13px;font-weight:750}.local-workspace:first-letter{color:#1cb3c6}
.hero{position:relative;max-width:none;min-height:111px;padding:22px 38px 15px;display:block;overflow:hidden;background:linear-gradient(105deg,#f5fbff 0%,#e9f5fd 85%)}
.hero::after{content:"";position:absolute;right:0;bottom:0;width:min(48%,560px);height:105px;background:url('/static/assets/decor/bandeau-ecole.png') right bottom/auto 105px no-repeat;pointer-events:none}
.hero-copy{position:relative;z-index:1;max-width:790px}.hero h1{margin:0 0 5px;font-size:clamp(25px,2.5vw,37px);line-height:1.1;letter-spacing:-1.3px}.hero h1 em{color:#13b7c2}
.hero p{max-width:730px;color:#3a608b;font-size:13px;line-height:1.4}.journey{display:none}
.workspace{max-width:none;margin:0;padding:0 15px 20px 28px;grid-template-columns:minmax(0,.86fr) minmax(0,1fr);gap:14px;align-items:start}
.form-card,.preview-panel{border:1px solid #d8e9f8;border-radius:16px;background:#fff;box-shadow:0 6px 24px #174b8709}
.form-card{margin-bottom:13px;padding:15px 15px 13px}.form-section-title,.form-section-title:first-of-type{margin:0 0 12px;color:#092f63;font-size:16px;letter-spacing:-.2px}
.section-number{width:29px;height:29px;flex-basis:29px;background:linear-gradient(150deg,#21c7cc,#118eaf);font-size:14px}
.settings-card .section-number{background:linear-gradient(150deg,#19b0db,#1364cb)}
.themes-card .section-number{background:linear-gradient(150deg,#1ba9ec,#1160cb)}
.word-field>label{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}.word-field .hint{margin-bottom:8px;color:#6b82a0;font-size:11px}
.word-entry-row{grid-template-columns:minmax(0,1fr) 108px;gap:9px}.word-entry-row textarea{height:45px;min-height:45px;max-height:110px;background:#fff;font-size:13px}
.word-entry-row .secondary-button{min-height:45px;background:linear-gradient(180deg,#3068f6,#154be0);font-size:12px}
.word-toolbar{display:flex;justify-content:space-between;margin:8px 0 0;font-size:11px}.input-chips{gap:6px}.input-chip{height:34px;min-height:34px;padding:3px 4px 3px 9px;border:1px solid #b8e5df;border-radius:11px;background:#dcf8ef;color:#06584d;font-size:12px;font-weight:750}
.input-chip .chip-action,.input-chip .chip-remove{color:#0c4d74}.input-chip .chip-action{width:22px;height:22px}.input-chip .chip-remove{font-size:17px}
.settings-primary{display:grid;grid-template-columns:1.08fr .9fr .9fr;gap:13px;align-items:start}
.settings-card .field{min-width:0;margin:0 0 7px}.settings-card .field legend,.settings-card .field>label{margin:0 0 7px;color:#103661;font-size:11px}
.settings-card .choice-grid{gap:2px}.settings-card .choice-grid span{height:35px;border-radius:5px;font-size:10px}
.settings-card .levels{gap:0}.settings-card .levels span{border-radius:0}.settings-card .levels label:first-child span{border-radius:6px 0 0 6px}.settings-card .levels label:last-child span{border-radius:0 6px 6px 0}
.settings-card .difficulty-options,.settings-card .lengths{grid-template-columns:repeat(3,minmax(0,1fr))}
.settings-card .difficulty-hint{font-size:9px;line-height:1.2}.settings-card .kinds{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}.settings-card .kinds span{height:28px}
.themes-card .hint{margin:0 0 7px}.theme-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}.theme-card{padding:4px!important;border:1px solid #d6e5f4;border-radius:10px}
.theme-card:has(input:checked){padding:3px!important;border:2px solid #1761e8;background:#f2f8ff;box-shadow:0 0 0 2px #d5e6ff!important}
.theme-art{display:block;height:auto;aspect-ratio:126/68;overflow:hidden;border-radius:6px;background:#e8f4fb;filter:none}
.theme-art img{display:block;width:100%;height:100%;object-fit:cover}.theme-name{display:grid;place-items:center;min-height:24px;padding:2px;color:#092f60;font-size:10px;font-weight:800}
.theme-more-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.theme-more summary{margin-top:7px;padding:6px 16px;font-size:11px}
.form-panel #length-preview{margin-top:3px;padding:10px 13px;border:1px solid #bde8f3;border-radius:10px;background:#edfaff}
.form-panel #length-preview .length-preview-heading strong{font-size:11px}.form-panel #length-preview .length-preview-text{font-size:11px}
.preview-panel{padding:20px 25px 0;min-height:615px}.preview-panel .panel-heading{margin:0 0 15px;padding:0;border:0}.preview-panel .panel-kicker{display:none}.preview-panel .panel-heading h2{font-size:21px;letter-spacing:-.4px}
.preview-panel .panel-heading h2::before{content:"✦";display:inline-block;margin-right:11px;color:#215ded;font-size:26px;vertical-align:-1px}
.generate-box{margin-bottom:17px}.generate-box #generate-button{height:56px;background:linear-gradient(100deg,#14c2cc,#1194b6);border-radius:9px;font-size:16px;box-shadow:0 7px 14px #11a9bb25}
.generate-box .simulation-note{margin-top:8px;font-size:10px}
.empty-state{display:block;width:100%;padding:0 0 20px}.example-topline{margin-bottom:8px}.example-heading h3{font-size:20px!important}.example-landscape{display:block;width:100%;height:118px;margin:0;border-radius:10px 10px 0 0;background:url('/static/assets/decor/paysage-aventure.png') left center/auto 118px no-repeat #a8e3f2;overflow:hidden}
.example-story{grid-template-columns:minmax(0,1fr) 119px;gap:13px;padding:17px 18px;border-radius:0 0 10px 10px;background:#fff}.example-story p{font-size:16px;line-height:1.7}.example-story img{width:119px;height:68px;object-fit:cover;border-radius:7px}
.example-words{margin-top:13px}.example-words strong{font-size:12px}.example-words span{font-size:11px}.empty-state .example-disclaimer{font-size:10px}
.result-state{padding:0}.result-title{font-size:23px}.result-topline{margin-bottom:8px}.result-facts{margin:9px 0}.result-facts span{font-size:11px;padding:5px 9px}
.result-visual{display:flex;align-items:center;justify-content:flex-end;gap:9px;margin:-56px 0 8px;min-height:72px;color:#4f6d8e;font-size:10px}.result-visual img{width:126px;height:68px;object-fit:cover;border-radius:7px;border:1px solid #d7e7f2}
.result-guide{font-size:11px}.editor-label{font-size:11px}#content{height:auto;min-height:250px;overflow:hidden;resize:vertical;padding:19px 20px;border:1px solid #d7e5f4;border-radius:9px;background:#fff;color:#142a46;font:17px/1.65 Georgia,serif}
.coverage-header h3{font-size:15px}.coverage-indicator{font-size:11px}.section-summary{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.section-summary article{padding:9px}.section-summary h3{font-size:9px}.section-summary p{font-size:10px}
.word-status{font-size:10px;padding:5px 8px}.check-status{font-size:11px}.ai-caution{margin:14px 0;padding:12px 14px;font-size:11px}
.result-actions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:13px 0 9px}.result-actions button{min-height:43px;padding:5px;font-size:11px}.result-actions .save-button{background:#195ceb;color:#fff}
.print-actions{padding:8px 0 12px}.print-actions button{min-height:38px}.preview-footer{margin:10px -25px 0;padding:12px 25px}
.secondary-view{max-width:1100px;margin:0 auto;padding:36px 30px 60px}.view-intro{margin-bottom:20px}.view-intro span{color:#11aebc;font-size:11px;font-weight:900;letter-spacing:1px}.view-intro h1{margin:6px 0;color:#092f60;font-size:34px}.view-intro p{color:#55718e;font-size:14px}
.secondary-view .saved-section,.secondary-view .help-card{padding:24px;border:1px solid #d8e9f8;border-radius:15px;background:#fff;box-shadow:0 6px 24px #174b8709}.secondary-view .saved-heading h2{font-size:20px}.secondary-view .saved-list{max-height:none}.secondary-view .saved-list li{padding:15px}.secondary-view .saved-list strong,.secondary-view .saved-list span{font-size:13px}.secondary-view .help-card{display:grid;grid-template-columns:auto 1fr auto;gap:18px}.secondary-view .help-card h2{font-size:21px}.secondary-view .help-card p{font-size:14px}
.page-footer{padding:12px;color:#8195ac}
@media(max-width:1250px){.settings-primary{grid-template-columns:1fr 1fr}.settings-primary>.field:last-child{grid-column:1/-1}.hero::after{opacity:.65}.result-visual{margin:0;justify-content:flex-start}}
@media(max-width:1080px){
  :root{--sidebar-width:0px}.topbar{position:sticky;top:0;width:100%;height:65px;padding:0 18px;display:flex;flex-direction:row;align-items:center;z-index:20}
  .brand{padding:0;font-size:16px}.brand-mark{width:34px;height:34px;flex-basis:34px;font-size:34px}.brand-light{display:inline;font-size:16px}.brand-name small{font-size:8px}
  .top-nav{display:flex;flex-direction:row;gap:4px;margin:0 0 0 auto}.top-nav a{min-height:39px;padding:0 10px;font-size:11px}.top-nav .nav-icon{font-size:17px;width:19px;flex-basis:19px}
  .sidebar-help,.utility-bar{display:none}main,.page-footer{margin-left:0}.hero{padding:22px 25px 20px}.workspace{grid-template-columns:1fr 1fr;padding:0 20px 25px}.settings-primary{grid-template-columns:1fr 1fr}.theme-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
}
@media(max-width:870px){.workspace{grid-template-columns:1fr;max-width:800px;margin:auto}.settings-primary{grid-template-columns:repeat(3,minmax(0,1fr))}.settings-primary>.field:last-child{grid-column:auto}.hero::after{width:45%;opacity:.5}.preview-panel{min-height:0}}
@media(max-width:640px){
  .topbar{height:60px;padding:0 10px}.brand-name{display:none}.top-nav{gap:2px}.top-nav a{padding:0 7px;font-size:10px}.top-nav .nav-icon{font-size:14px;width:15px;flex-basis:15px}
  .hero{min-height:104px;padding:20px 16px 17px}.hero::after{width:56%;height:84px;background-size:auto 84px;opacity:.22}.hero h1{font-size:24px}.hero p{font-size:11px}
  .workspace{padding:0 10px 24px;gap:9px}.form-card{padding:13px 12px}.form-section-title{font-size:14px}.word-entry-row{grid-template-columns:minmax(0,1fr) 89px}.word-entry-row .secondary-button{font-size:10px}
  .settings-primary{grid-template-columns:1fr}.settings-primary>.field:last-child{grid-column:auto}.settings-card .choice-grid span{height:37px;font-size:11px}.settings-card .kinds span{height:33px}
  .theme-grid,.theme-more-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.theme-art{aspect-ratio:126/68}.theme-name{font-size:11px}
  .preview-panel{padding:16px 13px 0}.preview-panel .panel-heading h2{font-size:18px}.generate-box #generate-button{height:49px;font-size:14px}
  .example-landscape{height:84px;background-size:auto 84px}.example-story{grid-template-columns:1fr 95px;padding:11px}.example-story p{font-size:13px}.example-story img{width:95px;height:58px}
  .result-visual{min-height:60px}.result-visual img{width:95px;height:54px}.result-title{font-size:19px}#content{min-height:220px;padding:14px;font-size:16px}
  .section-summary{grid-template-columns:1fr}.result-actions{grid-template-columns:repeat(2,minmax(0,1fr))}.result-actions button{min-height:44px}.preview-footer{margin:10px -13px 0;padding:10px 13px}
  .secondary-view{padding:24px 12px 40px}.secondary-view .saved-section,.secondary-view .help-card{padding:16px}.secondary-view .help-card{grid-template-columns:auto 1fr}.secondary-view .help-card a{grid-column:2}
}
@media(max-width:360px){.top-nav a{padding:0 4px}.top-nav a span:last-child{font-size:9px}.example-story{grid-template-columns:1fr}.example-story img{display:none}}
@media print{.utility-bar,.secondary-view,.result-visual{display:none!important}}

/* Crops remove UI fragments embedded in the supplied mockup extracts. */
.hero::after{background-size:auto 114px}
.example-landscape{background-size:auto 148px}
.theme-card:has(input[value="aventure"]) .theme-art img{width:calc(100% + 38px);max-width:none;object-position:left;transform:translateX(19px)}
.theme-card:has(input[value="aventure"]) .theme-art{display:block}

/* Keep the selected illustration alongside the heading, never over the text. */
.result-state{position:relative}
.result-topline,.result-title,.result-facts{max-width:calc(100% - 147px)}
.result-visual{position:absolute;top:36px;right:0;display:block;width:126px;min-height:0;margin:0}
.result-visual svg{display:block;width:126px;height:68px;border:1px solid #d7e7f2;border-radius:7px;background:#edf5f6}
.result-visual [hidden]{display:none!important}
.result-visual span{display:none}
.result-facts{margin-bottom:23px}
#content{min-height:180px}
@media(max-width:640px){
  .result-topline,.result-title,.result-facts{max-width:none}
  .result-visual{position:static;display:flex;align-items:center;width:auto;margin:7px 0;gap:8px}
  .result-visual svg{width:95px;height:54px}
  .result-visual span{display:inline}
  .result-facts{margin-bottom:9px}
  #content{min-height:180px}
}

/* Fit the complete preparation and local length preview in the desktop frame. */
@media(min-width:1081px){
  .settings-card{padding-top:11px;padding-bottom:8px}
  .settings-card .form-section-title{margin-bottom:7px}
  .settings-card .field{margin-bottom:4px}
  .settings-card .difficulty-hint{margin-top:2px;white-space:nowrap}
  .settings-card .kinds span{height:25px}
  .themes-card{padding-top:11px;padding-bottom:7px}
  .themes-card .form-section-title{margin-bottom:5px}
  .themes-card .hint{margin-bottom:5px}
  .theme-art{aspect-ratio:auto;height:62px}
  .theme-name{min-height:20px}
  .theme-more summary{margin-top:5px;padding-top:4px;padding-bottom:4px}
}
