:root{--blue:#174596;--blue2:#2f65ad;--sky:#c9daf8;--sky2:#e8f0ff;--cream:#fff2cc;--gold:#ff9900;--ink:#14366b;--muted:#61708b;--line:#d8e2f2;--white:#fff;--green:#328453;--red:#b74848;--shadow:0 10px 30px rgba(23,69,150,.09);font-family:Inter,Segoe UI,Arial,sans-serif;color:var(--ink)}*{box-sizing:border-box}html,body{margin:0;min-height:100%;background:#eef3fb}body{font-size:15px}.app-shell{min-height:100vh;display:flex;flex-direction:column}.app-header{height:68px;background:#fff;display:flex;align-items:center;gap:28px;padding:0 clamp(16px,4vw,60px);border-bottom:1px solid #e4eaf4;box-shadow:0 2px 12px rgba(22,56,106,.04);position:relative;z-index:4}.brand{display:flex;align-items:center;gap:10px;text-decoration:none;color:var(--blue);min-width:205px}.brand-mark{width:37px;height:37px;display:grid;place-items:center;background:linear-gradient(140deg,#168fe5,#174596);color:#fff;font-weight:900;border-radius:12px;font-size:20px;box-shadow:0 4px 9px rgba(23,69,150,.18)}.brand strong{display:block;font-size:16px;line-height:1.05}.brand small{display:block;font-size:11px;color:#71809b;margin-top:4px}.main-nav{display:flex;align-items:center;gap:8px;flex:1}.main-nav a{color:#53698c;text-decoration:none;padding:10px 14px;border-radius:9px;font-weight:650;font-size:13px}.main-nav a:hover,.main-nav a.active{background:#eaf1ff;color:var(--blue)}.user-pill{display:flex;align-items:center;gap:8px;color:#435c83;font-size:13px;font-weight:650;padding:8px 12px;background:#f4f7fc;border-radius:999px}.user-dot{width:8px;height:8px;border-radius:50%;background:#37a36a}.app-main{width:min(1240px,100%);margin:0 auto;padding:30px clamp(14px,3vw,30px) 42px;flex:1}.app-footer{padding:17px clamp(16px,4vw,60px);display:flex;justify-content:space-between;gap:10px;font-size:11px;color:#7888a2;background:#fff;border-top:1px solid #e4eaf4}.page-heading,.editor-heading,.viewer-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:22px;margin:4px 0 26px}.eyebrow{font-size:10px;font-weight:850;letter-spacing:.15em;color:#d27e00;margin:0 0 8px}.page-heading h1,.editor-heading h1,.viewer-heading h1{font-size:clamp(27px,3vw,36px);line-height:1.12;margin:0;color:#153d7b;letter-spacing:-.035em}.lead{color:#667a9a;margin:10px 0 0;line-height:1.55;max-width:720px}.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:0;border-radius:9px;padding:12px 17px;text-decoration:none;font-family:inherit;font-size:13px;font-weight:750;cursor:pointer;transition:.18s ease}.button:hover{transform:translateY(-1px);box-shadow:0 5px 14px rgba(23,69,150,.15)}.button-primary{background:var(--blue);color:#fff}.button-primary:hover{background:#0f397d}.button-light{background:var(--cream);color:var(--blue);border:1px solid #eadba8}.button-small{padding:8px 12px;font-size:12px}.button:disabled{opacity:.45;cursor:not-allowed;transform:none}.notice{padding:13px 16px;border-radius:10px;margin:0 0 20px;font-size:13px}.notice.success{background:#e7f5ed;border:1px solid #b9dfc8;color:#256c43}.notice.warning{background:#fff6df;border:1px solid #ead28b;color:#765800}.stats-row{display:grid;grid-template-columns:repeat(4,1fr);gap:13px;margin:22px 0 34px}.stat-card{display:flex;align-items:center;gap:13px;padding:17px 18px;background:#fff;border:1px solid #e5ebf5;border-radius:14px;box-shadow:0 3px 12px rgba(26,64,120,.035)}.stat-icon{width:39px;height:39px;display:grid;place-items:center;background:#eaf1ff;color:var(--blue);font-size:21px;border-radius:12px}.stat-card strong{display:block;font-size:23px;color:#153d7b;line-height:1}.stat-card small{display:block;color:#7b8aa4;font-size:11px;margin-top:5px}.content-section{margin-top:5px}.section-title{display:flex;justify-content:space-between;align-items:center;margin-bottom:17px}.section-title h2,.face-title h2{margin:0;color:#183f7d;font-size:20px}.section-title p,.face-title p{margin:5px 0 0;color:#73829d;font-size:12px}.document-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.document-card{background:#fff;border:1px solid #e1e8f2;border-radius:15px;overflow:visible;box-shadow:0 5px 18px rgba(29,68,126,.045);min-width:0}.document-card.is-archived{opacity:.78}.document-thumb{height:135px;background:linear-gradient(135deg,#c9daf8,#f1f5fd);position:relative;display:flex;align-items:center;justify-content:center;border-radius:15px 15px 0 0;overflow:hidden}.thumb-spread{width:77%;height:76px;display:grid;grid-template-columns:repeat(3,1fr);transform:perspective(500px) rotateX(7deg) rotateZ(-2deg);box-shadow:0 12px 24px rgba(25,53,93,.14)}.thumb-spread span{display:grid;place-items:center;background:#fff2cc;border:1px solid rgba(23,69,150,.16);color:#174596;font-size:10px;font-weight:800;letter-spacing:.08em}.thumb-spread span:nth-child(2){background:#fff}.format-chip{display:inline-flex;align-items:center;padding:6px 9px;border-radius:7px;background:#fff2cc;color:#815c12;font-size:10px;font-weight:800;white-space:nowrap}.document-thumb .format-chip{position:absolute;right:12px;bottom:12px}.document-info{padding:15px}.document-title-row{display:flex;align-items:center;justify-content:space-between;gap:8px}.document-title-row h3{margin:0;color:#1b3e75;font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.status{font-size:10px;font-weight:800;border-radius:999px;padding:5px 8px;white-space:nowrap}.status-draft{background:#f0f2f6;color:#68768d}.status-published{background:#e4f4eb;color:#2e8050}.status-archived{background:#fff2d8;color:#8b6415}.updated{font-size:11px;color:#8390a7;margin:8px 0 13px}.card-actions{display:flex;align-items:center;gap:7px;position:relative}.more-actions{margin-left:auto;position:relative}.more-actions summary{cursor:pointer;list-style:none;padding:7px 10px;background:#f2f5fa;border-radius:8px;color:#5d7291;font-weight:800;letter-spacing:1px}.more-actions summary::-webkit-details-marker{display:none}.more-menu{position:absolute;right:0;top:35px;background:#fff;border:1px solid #dfe7f2;box-shadow:var(--shadow);border-radius:10px;min-width:165px;padding:6px;z-index:9}.more-menu a,.more-menu button{display:block;width:100%;text-align:left;border:0;background:none;text-decoration:none;color:#3b5276;padding:9px 10px;border-radius:7px;font-size:12px;font-family:inherit;cursor:pointer}.more-menu a:hover,.more-menu button:hover{background:#f1f5fb}.danger-text{color:#b23c3c!important}.empty-state{background:#fff;border:1px dashed #bdcce1;padding:48px 20px;text-align:center;border-radius:16px}.empty-illustration{margin:0 auto 13px;width:56px;height:56px;display:grid;place-items:center;border-radius:17px;background:#eaf1ff;color:var(--blue);font-size:29px}.empty-state h3{margin:0;color:#1d447e}.empty-state p{max-width:560px;margin:8px auto 18px;color:#7888a1;line-height:1.6;font-size:13px}.tip-banner{display:flex;align-items:center;gap:14px;margin-top:27px;padding:17px 19px;background:#e5eefc;border:1px solid #cadbf3;border-radius:13px}.tip-icon{width:35px;height:35px;background:#fff2cc;border-radius:10px;display:grid;place-items:center;color:#ab791b;font-size:19px}.tip-banner strong{font-size:13px;color:#18437f}.tip-banner p{margin:4px 0 0;color:#687c9a;font-size:12px;line-height:1.45}.tip-banner>a{margin-left:auto;white-space:nowrap;color:var(--blue);font-size:12px;font-weight:750;text-decoration:none}.back-link{display:inline-block;color:#54709a;text-decoration:none;font-size:12px;font-weight:700;margin-bottom:17px}.editor-top-actions{display:flex;gap:9px;flex-shrink:0}.editor-form{display:flex;flex-direction:column;gap:27px}.panel-card{background:#fff;border:1px solid #e1e8f2;border-radius:15px;padding:21px;box-shadow:0 5px 15px rgba(29,68,126,.035)}.editor-settings .section-title{margin-bottom:16px}.settings-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.field{display:flex;flex-direction:column;gap:6px;font-size:11px;font-weight:750;color:#445c81;min-width:0}.field input,.field select,.field textarea,.speed-control select{width:100%;border:1px solid #cfd9e8;border-radius:8px;background:#fff;padding:10px 11px;color:#234574;font:13px inherit;font-family:inherit;outline:none;min-width:0}.field input:focus,.field select:focus{border-color:#6b8fc8;box-shadow:0 0 0 3px rgba(55,105,177,.1)}.field small{font-size:10px;font-weight:500;color:#8491a5}.field-wide{grid-column:span 3}.check-field{display:flex;align-items:center;gap:9px;color:#536987;font-size:12px;font-weight:650}.check-field input,.link-toggles input{accent-color:#174596;width:16px;height:16px}.face-section{margin:0}.face-title{display:flex;align-items:flex-end;justify-content:space-between;margin-bottom:14px}.face-kicker{font-size:10px;letter-spacing:.14em;font-weight:850;color:#d1840b}.face-count{background:#eaf1ff;color:#315c9e;border-radius:999px;padding:6px 10px;font-size:10px;font-weight:800}.panels-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;align-items:start}.panel-editor{background:#fff;border:1px solid #dce5f2;border-radius:14px;overflow:hidden;box-shadow:0 5px 18px rgba(29,68,126,.04);min-width:0}.panel-editor-head{height:57px;display:flex;align-items:center;gap:10px;padding:0 14px;background:#f7f9fd;border-bottom:1px solid #e6ecf5}.panel-number{width:28px;height:28px;display:grid;place-items:center;background:#174596;color:#fff;border-radius:9px;font-size:12px;font-weight:850}.panel-editor-head strong{display:block;font-size:13px;color:#244a7d}.panel-editor-head small{display:block;color:#8290a7;font-size:10px;margin-top:2px}.crop-stage{width:min(100%,160px);aspect-ratio:99/210;height:auto;margin:12px auto;position:relative;overflow:hidden;background:#e8eef8;display:grid;place-items:center}.crop-image{width:100%;height:100%;object-fit:cover;transition:transform .08s;max-width:none}.crop-placeholder{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:6px;color:#8192ad}.crop-placeholder span{width:42px;height:42px;border-radius:14px;display:grid;place-items:center;background:#fff;color:#174596;font-size:24px}.crop-placeholder strong{font-size:12px}.crop-placeholder small{font-size:10px}.panel-fields{padding:14px}.upload-field input{font-size:11px;padding:8px}.crop-controls{display:grid;gap:8px;margin:12px 0 14px;padding:11px;background:#f5f8fd;border-radius:9px}.crop-controls label{display:grid;grid-template-columns:76px 1fr;align-items:center;gap:8px;font-size:10px;color:#607596;font-weight:750}.crop-controls input{width:100%;accent-color:#174596}.remove-image{margin-top:9px;color:#aa5555;font-size:10px}.link-settings{border-top:1px solid #e8edf5;padding-top:13px;margin-top:13px;display:grid;gap:10px}.link-settings-title{display:flex;justify-content:space-between;align-items:center}.link-settings-title strong{font-size:12px;color:#35567f}.link-settings-title span{font-size:9px;color:#8997ab;background:#f1f4f8;padding:4px 6px;border-radius:5px}.link-settings .field{font-size:10px}.link-settings .field input{font-size:11px;padding:8px}.link-toggles{display:flex;align-items:center;gap:14px;flex-wrap:wrap}.link-toggles label{display:flex;align-items:center;gap:5px;color:#697d9a;font-size:10px;font-weight:650}.save-bar{position:sticky;bottom:10px;z-index:3;padding:14px 16px;background:rgba(255,255,255,.96);backdrop-filter:blur(9px);border:1px solid #dce5f2;border-radius:13px;box-shadow:0 8px 26px rgba(20,50,95,.14);display:flex;align-items:center;justify-content:space-between;gap:16px}.save-bar strong{display:block;font-size:12px;color:#254779}.save-bar small{display:block;font-size:10px;color:#8491a6;margin-top:4px}.save-bar>div:last-child{display:flex;gap:8px}.viewer-heading{align-items:center}.viewer-actions{display:flex;gap:9px}.viewer-toolbar{background:#fff;border:1px solid #dfe7f2;border-radius:13px;padding:10px 13px;display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:15px}.face-switch{display:flex;gap:4px;padding:4px;border-radius:10px;background:#edf2fa}.face-switch button{border:0;background:transparent;border-radius:7px;padding:8px 15px;color:#667b9b;font-family:inherit;font-size:12px;font-weight:750;cursor:pointer}.face-switch button.active{background:#174596;color:#fff;box-shadow:0 3px 8px rgba(23,69,150,.18)}.viewer-controls{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.control-button{border:1px solid #d7e1ef;background:#fff;border-radius:8px;padding:8px 10px;color:#345781;font-family:inherit;font-size:11px;font-weight:750;cursor:pointer}.control-button:disabled{opacity:.4;cursor:not-allowed}.speed-control{display:flex;align-items:center;gap:6px;font-size:10px;color:#7184a1;font-weight:700}.speed-control select{border:1px solid #d7e1ef;background:#fff;color:#345781;padding:7px 8px;border-radius:7px;font-size:11px}.fold-workspace{background:#e2ebfa;border:1px solid #c9d9f0;border-radius:16px;padding:20px;overflow:hidden}.fold-caption{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}.fold-caption strong{display:block;color:#21487f;font-size:13px}.fold-caption span{display:block;color:#7185a4;font-size:11px;margin-top:4px}.fold-caption .fold-mode-label{margin:0;background:#fff2cc;color:#805c16;padding:7px 10px;border-radius:8px;font-weight:800}.sheet-turn-stage{width:100%;perspective:1800px;position:relative;border-radius:5px}
.sheet-turn-card{position:relative;width:100%;aspect-ratio:297/210;transform-style:preserve-3d;transition:transform .95s cubic-bezier(.2,.75,.22,1);will-change:transform;box-shadow:0 18px 30px rgba(28,57,99,.13);border-radius:5px;background:#fff}
.sheet-turn-card.is-verso{transform:rotateY(180deg)}
/* Une seule feuille physique : sa face arrière est celle des mêmes trois panneaux, pas une seconde maquette superposée. */
.spread-view{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;position:absolute;inset:0;width:100%;height:100%;aspect-ratio:auto;overflow:visible;background:#fff;border-radius:5px;transform-style:preserve-3d}
.spread-panel{position:relative;min-width:0;background:#fff;min-height:0;height:100%;border-right:1px dashed rgba(23,69,150,.35);transform-style:preserve-3d;transition:transform .9s cubic-bezier(.2,.75,.22,1),filter .6s;overflow:visible;backface-visibility:visible;will-change:transform;z-index:1}
.spread-panel:last-child{border-right:0}
.spread-panel[data-panel-position="1"]{transform-origin:100% 50%}
.spread-panel[data-panel-position="2"]{transform-origin:50% 50%;z-index:2}
.spread-panel[data-panel-position="3"]{transform-origin:0% 50%}
.spread-panel-inner{position:absolute;inset:0;transform-style:preserve-3d}
.spread-panel-face{position:absolute;inset:0;overflow:hidden;background:#fff;backface-visibility:hidden;-webkit-backface-visibility:hidden}
.spread-panel-front{transform:rotateY(0deg) translateZ(.6px)}
.spread-panel-back{transform:rotateY(180deg) translateZ(.6px)}
.spread-panel-image{position:absolute;inset:0;overflow:hidden;background:#f5f7fb;display:grid;place-items:center}
.spread-panel-image img{width:100%;height:100%;object-fit:cover;max-width:none;transition:transform .1s;backface-visibility:hidden}
.spread-empty{color:#8796ab;display:flex;flex-direction:column;align-items:center;gap:9px}
.spread-empty span{font-size:29px}
.spread-empty strong{font-size:11px}
.spread-panel-label{position:absolute;left:10px;bottom:10px;background:rgba(255,255,255,.87);backdrop-filter:blur(5px);border-radius:6px;padding:6px 8px;display:flex;gap:7px;align-items:center;color:#34577f;font-size:9px}
.spread-panel-label span{color:#8c6c22;font-weight:850;letter-spacing:.08em}
.spread-panel-label strong{font-size:10px}
.spread-panel-link{position:absolute;left:50%;bottom:48px;transform:translateX(-50%);z-index:2}
.spread-panel-link a{display:block;text-decoration:none;background:#174596;color:#fff;border-radius:20px;padding:8px 13px;font-size:10px;font-weight:800;white-space:nowrap;box-shadow:0 4px 12px rgba(17,45,93,.2)}
/* Pli roulé : chaque aile se rabat derrière la face que regarde l'utilisateur.
   Les signes diffèrent selon le côté de la feuille observé. */
.spread-panel.is-folded[data-fold-motion="away"][data-panel-position="3"]{transform:rotateY(180deg)}
.spread-panel.is-folded[data-fold-motion="away"][data-panel-position="1"]{transform:rotateY(-180deg)}
/* Pli accordéon : la seconde aile revient en sens inverse (pli en Z). */
.spread-panel.is-folded[data-fold-motion="toward"][data-panel-position="3"]{transform:rotateY(-180deg)}
.spread-panel.is-folded[data-fold-motion="toward"][data-panel-position="1"]{transform:rotateY(180deg)}
.guide-note{color:#6c7f9d;text-align:center;font-size:10px;margin:13px 0 0}.fold-simulator{display:grid;grid-template-columns:1fr auto;align-items:center;gap:10px;margin-top:18px;padding:15px;background:rgba(255,255,255,.76);border:1px solid rgba(173,194,225,.8);border-radius:11px}.fold-simulator strong{display:block;color:#23497d;font-size:12px}.fold-simulator small{display:block;color:#798aa5;margin-top:4px;font-size:10px;line-height:1.5}.fold-buttons{display:flex;gap:7px}.fold-buttons .button{padding:9px 12px;font-size:11px}.fold-progress{grid-column:1/-1;color:#6a7e9c;font-size:10px;padding-top:4px}.publish-panel{margin-top:18px;padding:18px;background:#fff;border:1px solid #e0e8f3;border-radius:13px;display:flex;align-items:center;justify-content:space-between;gap:16px}.publish-panel strong{color:#244979;font-size:13px}.publish-panel p{margin:4px 0 0;color:#7a8aa4;font-size:11px}.share-card{max-width:720px;margin:20px auto;background:#fff;border:1px solid #e1e8f2;border-radius:17px;padding:30px;box-shadow:var(--shadow);text-align:center}.share-icon{width:55px;height:55px;margin:0 auto 12px;border-radius:16px;background:#eaf1ff;color:#174596;display:grid;place-items:center;font-size:27px}.share-card h2{margin:0;color:#1c427d;font-size:21px}.share-card>p{color:#7888a2;font-size:12px;line-height:1.55;max-width:470px;margin:8px auto 23px}.share-card .field{text-align:left}.copy-row{display:flex;gap:8px}.copy-row input{flex:1;min-width:0}.share-actions{display:flex;justify-content:center;gap:8px;margin:15px 0 23px;flex-wrap:wrap}.text-button{background:none;border:0;font-family:inherit;font-size:11px;font-weight:700;cursor:pointer}.print-spec-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:20px 0}.print-spec{background:#fff;border:1px solid #e0e8f3;border-radius:12px;padding:17px}.print-spec span{display:block;font-size:22px;font-weight:900;color:#174596}.print-spec strong{display:block;font-size:12px;color:#34557f;margin:5px 0}.print-spec small{display:block;font-size:10px;color:#8391a7;line-height:1.45}.print-warning{background:#fff6df;border:1px solid #ead38e;color:#725a22;border-radius:12px;padding:15px 17px}.print-warning strong{font-size:12px}.print-warning p{font-size:11px;line-height:1.6;margin:5px 0 0}.pdf-actions{display:flex;align-items:center;gap:14px;margin:20px 0}.pdf-actions span{color:#7486a2;font-size:11px}.quality-list{display:grid;gap:7px}.quality-item{padding:10px 12px;background:#fff;border:1px solid #e3eaf4;border-radius:9px;font-size:11px;color:#4e678d}.quality-item.warning{border-color:#efd49a;background:#fff9e9;color:#7b5c14}.quality-item.ok{border-color:#b9dfc8;background:#f0faf4;color:#2e704b}.help-intro{background:#e3edfc;border:1px solid #c9daf3;padding:20px;border-radius:14px;margin-bottom:20px}.help-intro h2{margin:0;color:#174596}.help-intro p{color:#657b9d;line-height:1.6;font-size:13px;margin:8px 0 0}.help-accordion{display:grid;gap:9px}.help-accordion details{background:#fff;border:1px solid #e0e8f3;border-radius:11px;padding:0 16px}.help-accordion summary{cursor:pointer;list-style:none;padding:15px 27px 15px 0;color:#244a7e;font-size:13px;font-weight:800;position:relative}.help-accordion summary::-webkit-details-marker{display:none}.help-accordion summary:after{content:'＋';position:absolute;right:0;color:#d58b0a;font-size:18px;top:11px}.help-accordion details[open] summary:after{content:'−'}.help-accordion details p,.help-accordion details li{color:#71829e;font-size:12px;line-height:1.65}.help-accordion ul{padding-left:19px}.is-embedded .app-main{padding-top:20px}.is-embedded .app-footer,.is-embedded .app-header{display:none}
@media(max-width:950px){.document-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.panels-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.stats-row{grid-template-columns:repeat(2,1fr)}.settings-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.field-wide{grid-column:span 2}.print-spec-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.app-header{gap:12px}.brand{min-width:160px}}
@media(max-width:640px){.app-main{padding:21px 13px 32px}.app-header{height:auto;min-height:60px;padding:10px 13px;gap:8px;flex-wrap:wrap}.brand{min-width:0;flex:1}.main-nav{order:3;flex-basis:100%;overflow:auto}.main-nav a{padding:7px 10px;font-size:11px}.user-pill{font-size:10px;padding:6px 9px}.app-footer{flex-direction:column}.page-heading,.editor-heading,.viewer-heading{align-items:flex-start;flex-direction:column;gap:15px}.page-heading form,.page-heading>.button{width:100%}.page-heading form .button{width:100%}.editor-top-actions,.viewer-actions{width:100%}.editor-top-actions .button,.viewer-actions .button{flex:1;font-size:11px;padding:10px 8px}.stats-row{gap:8px}.stat-card{padding:12px;gap:8px}.stat-icon{width:32px;height:32px}.stat-card strong{font-size:19px}.stat-card small{font-size:10px}.document-grid{grid-template-columns:1fr}.document-thumb{height:116px}.settings-grid{grid-template-columns:1fr}.field-wide{grid-column:auto}.panels-grid{grid-template-columns:1fr}.crop-stage{width:min(100%,160px);height:auto;aspect-ratio:99/210}.save-bar{position:static;flex-direction:column;align-items:stretch}.save-bar>div:last-child{display:grid;grid-template-columns:1fr 1fr}.save-bar .button{font-size:10px;padding:10px 7px}.viewer-toolbar{flex-direction:column;align-items:stretch}.face-switch{justify-content:center}.viewer-controls{justify-content:center}.fold-workspace{padding:11px}.spread-view{grid-template-columns:repeat(3,minmax(0,1fr))}.spread-panel{min-height:0;height:100%}.spread-panel-label{left:3px;bottom:4px;padding:4px 5px;gap:3px}.spread-panel-label span{font-size:7px}.spread-panel-label strong{font-size:8px}.spread-panel-link{bottom:32px}.spread-panel-link a{font-size:8px;padding:6px 8px}.fold-simulator{grid-template-columns:1fr}.fold-buttons{display:grid;grid-template-columns:1fr 1fr}.fold-progress{grid-column:auto}.publish-panel{align-items:flex-start;flex-direction:column}.publish-panel .button{width:100%}.tip-banner{align-items:flex-start;flex-wrap:wrap}.tip-banner>a{margin-left:49px}.share-card{padding:21px 15px}.copy-row{flex-direction:column}.print-spec-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.pdf-actions{align-items:stretch;flex-direction:column}.pdf-actions .button{width:100%}.pdf-actions span{line-height:1.5}}
.crop-stage{cursor:grab;touch-action:none}.crop-stage:active{cursor:grabbing}

/* Écran d'accès direct à la création depuis Website X5 */
.create-welcome{max-width:980px;margin:clamp(1rem,4vw,3rem) auto;padding:clamp(1.25rem,4vw,3rem)}
.create-welcome h1{margin:.35rem 0 1rem;color:#174596;font-size:clamp(1.65rem,3vw,2.4rem)}
.create-welcome .lead{max-width:720px;line-height:1.65}
.create-welcome form{display:flex;flex-wrap:wrap;gap:.75rem;margin-top:1.5rem}
.create-steps{display:flex;flex-wrap:wrap;gap:.65rem;margin-top:2rem}
.create-steps span{padding:.55rem .8rem;border-radius:999px;background:#fff2cc;color:#174596;font-weight:600;font-size:.9rem}

/* Correctifs v1.0.2 : identité Solilink et retour visuel des téléversements */
.brand{min-width:220px;gap:10px;align-items:center}
.brand-logo{display:block;width:76px;height:58px;object-fit:contain;flex:0 0 auto}
.brand-subtitle{display:block;color:#71809b;font-size:11px;line-height:1.25;font-weight:650;max-width:112px}
.upload-info{margin:0 0 18px;background:#f8fbff;border:1px solid #d8e2f2;color:#405a80;line-height:1.55}
.upload-info strong{color:#174596}
.upload-status{min-height:18px;margin:-4px 0 8px;font-size:11px;color:#61708b;line-height:1.4}
.upload-status.is-pending{color:#9a6500;font-weight:700}
.upload-status.is-success{color:#28784a;font-weight:700}
.upload-status.is-error{padding:8px 9px;border-radius:7px;background:#fff0f0;border:1px solid #f1caca;color:#a52d2d;font-weight:700}
.editor-heading{margin-top:4px}
.editor-form>.editor-heading{margin-bottom:26px}
.editor-form button[type=submit]{white-space:nowrap}
@media(max-width:700px){.brand{min-width:0}.brand-logo{width:62px;height:50px}.brand-subtitle{max-width:92px;font-size:10px}.app-header{gap:12px}}
[hidden]{display:none!important}

@media(max-width:640px){.sheet-turn-stage{overflow:visible}.sheet-turn-card{width:100%}.viewer-controls [data-turn-face]{width:100%}}
@media(prefers-reduced-motion:reduce){.sheet-turn-card,.spread-panel{transition-duration:.01ms!important}}


/* v1.0.8 — restauration du véritable feuilletage recto-verso de la v1.0.6 */
/* v1.0.6 — Une seule feuille physique à trois volets, avec un vrai recto et un vrai verso par volet. */
.sheet-turn-stage{width:100%;perspective:2200px;perspective-origin:50% 50%;position:relative;overflow:visible}
.sheet-turn-card.physical-sheet{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;position:relative;width:100%;height:auto;aspect-ratio:297/210;transform:rotateY(0deg);transform-style:preserve-3d;transform-origin:50% 50%;transition:transform 1.15s cubic-bezier(.2,.72,.22,1);overflow:visible;background:transparent;border-radius:4px;box-shadow:0 18px 34px rgba(28,57,99,.16);will-change:transform}
.sheet-turn-card.physical-sheet.is-verso{transform:rotateY(180deg)}
.physical-leaf{position:relative;display:block;min-width:0;width:100%;height:100%;aspect-ratio:99/210;background:#fff;transform-style:preserve-3d;backface-visibility:visible;-webkit-backface-visibility:visible;overflow:visible;transition:transform 1.05s cubic-bezier(.2,.75,.22,1);will-change:transform;border-right:1px dashed rgba(23,69,150,.35);z-index:1}
.physical-leaf:last-child{border-right:0}
.physical-leaf[data-physical-position="1"]{transform-origin:100% 50%;z-index:1}
.physical-leaf[data-physical-position="2"]{transform-origin:50% 50%;z-index:0}
.physical-leaf[data-physical-position="3"]{transform-origin:0% 50%;z-index:1}
.physical-leaf.is-folded{transform:rotateY(var(--leaf-fold-angle,0deg));}
.physical-leaf.folded-first{z-index:6!important}
.physical-leaf.folded-second{z-index:8!important}
.physical-leaf-inner{position:absolute;inset:0;transform-style:preserve-3d;}
.physical-leaf-side{position:absolute;inset:0;display:block;overflow:hidden;background:#fff;backface-visibility:hidden;-webkit-backface-visibility:hidden;transform-style:preserve-3d;}
.physical-leaf-front{transform:rotateY(0deg) translateZ(.7px)}
.physical-leaf-back{transform:rotateY(180deg) translateZ(.7px)}
.physical-leaf-artwork{position:absolute;inset:0;display:grid;place-items:center;overflow:hidden;background:#fff}
.physical-leaf-artwork>img{display:block;width:100%;height:100%;max-width:none;object-fit:cover;backface-visibility:hidden;-webkit-backface-visibility:hidden}
.physical-leaf-link{position:absolute;z-index:3;left:50%;bottom:48px;transform:translateX(-50%);max-width:90%}
.physical-leaf-link a{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;text-decoration:none;white-space:nowrap;padding:8px 13px;border-radius:20px;background:#174596;color:#fff;font-size:10px;font-weight:800;box-shadow:0 4px 12px rgba(17,45,93,.2)}
.physical-leaf-label{position:absolute;left:10px;bottom:10px;z-index:4;display:flex;align-items:center;gap:7px;padding:6px 8px;border-radius:6px;background:rgba(255,255,255,.88);backdrop-filter:blur(5px);color:#34577f;font-size:9px}
.physical-leaf-label span{color:#8c6c22;font-weight:850;letter-spacing:.08em}
.physical-leaf-label strong{font-size:10px}
.paper-edge{position:absolute;inset:0;pointer-events:none;border:1px solid rgba(23,69,150,.08);backface-visibility:hidden;-webkit-backface-visibility:hidden;}
.physical-leaf[data-physical-position="1"] .paper-edge{border-left:1px solid rgba(23,69,150,.1)}
.physical-leaf[data-physical-position="3"] .paper-edge{border-right:1px solid rgba(23,69,150,.1)}
.physical-sheet.is-verso .physical-leaf{border-right:0;border-left:1px dashed rgba(23,69,150,.35)}
.physical-sheet.is-verso .physical-leaf:first-child{border-left:0}
@media(max-width:640px){.physical-leaf-label{left:3px;bottom:4px;padding:4px 5px;gap:3px}.physical-leaf-label span{font-size:7px}.physical-leaf-label strong{font-size:8px}.physical-leaf-link{bottom:30px}.physical-leaf-link a{font-size:8px;padding:6px 8px}}
@media(prefers-reduced-motion:reduce){.sheet-turn-card.physical-sheet,.physical-leaf{transition-duration:.01ms!important}}

/* v1.0.9 — correctif ciblé : sur le verso, les volets rabattus passent derrière le panneau central.
   Le volet central physique (R2/V2) reste au premier plan et conserve toujours son image propre.
   Aucun changement des séquences, des animations ou des commandes du lecteur. */
.sheet-turn-card.physical-sheet.is-verso > .physical-leaf[data-physical-position="2"]{z-index:20!important}
.sheet-turn-card.physical-sheet.is-verso > .physical-leaf.folded-first{z-index:1!important}
.sheet-turn-card.physical-sheet.is-verso > .physical-leaf.folded-second{z-index:2!important}


/* v1.0.10 — affichage plein écran ajusté au viewport sans recadrer la feuille A4. */
#fold-workspace:fullscreen,
#fold-workspace:-webkit-full-screen {
  width:100vw;
  height:100vh;
  height:100dvh;
  max-width:none;
  max-height:100vh;
  max-height:100dvh;
  margin:0;
  padding:clamp(10px, 2vh, 24px);
  border-radius:0;
  display:grid;
  grid-template-rows:auto minmax(0, 1fr) auto auto;
  gap:clamp(6px, 1.2vh, 14px);
  overflow:hidden;
  background:#e2ebfa;
}
#fold-workspace:fullscreen .fold-caption,
#fold-workspace:-webkit-full-screen .fold-caption {margin:0; min-height:0;}
#fold-workspace:fullscreen .sheet-turn-stage,
#fold-workspace:-webkit-full-screen .sheet-turn-stage {
  width:100%;
  height:100%;
  min-height:0;
  display:grid;
  place-items:center;
  overflow:visible;
}
#fold-workspace:fullscreen .sheet-turn-card.physical-sheet,
#fold-workspace:-webkit-full-screen .sheet-turn-card.physical-sheet {
  width:min(100%, calc((100dvh - 230px) * 297 / 210));
  max-width:100%;
  max-height:calc(100dvh - 230px);
  height:auto;
  aspect-ratio:297 / 210;
  margin:auto;
}
#fold-workspace:fullscreen .guide-note,
#fold-workspace:-webkit-full-screen .guide-note {margin:0; min-height:0;}
#fold-workspace:fullscreen .fold-simulator,
#fold-workspace:-webkit-full-screen .fold-simulator {margin:0; min-height:0;}
.share-feedback {font-size:10px;color:#28784a;font-weight:700;align-self:center;min-width:0;}
@media(max-width:640px) {
  #fold-workspace:fullscreen,
  #fold-workspace:-webkit-full-screen {padding:8px;gap:6px;grid-template-rows:auto minmax(0,1fr) auto auto;}
  #fold-workspace:fullscreen .sheet-turn-card.physical-sheet,
  #fold-workspace:-webkit-full-screen .sheet-turn-card.physical-sheet {
    width:min(100%, calc((100dvh - 195px) * 297 / 210));
    max-height:calc(100dvh - 195px);
  }
}

/* v1.0.11 — lecteur grand public épuré : uniquement le dépliant et Lecture/Pause/Plein écran. */
.simple-public-body{margin:0;min-height:100vh;background:#eef3fb;overflow-x:hidden}
.simple-public-main{width:100%;min-height:100vh;margin:0;padding:0}
.simple-public-workspace{width:min(1500px,100%);min-height:100vh;margin:0 auto;padding:clamp(8px,1.6vw,22px);display:flex;flex-direction:column;gap:clamp(8px,1.3vw,14px);border:0;border-radius:0;overflow:hidden;background:#e2ebfa}
.simple-public-toolbar{flex:0 0 auto;justify-content:center;margin:0;padding:9px 12px}
.simple-public-controls{justify-content:center;gap:10px}
.simple-public-controls .control-button{min-width:105px;padding:10px 16px;font-size:12px}
.simple-public-workspace .sheet-turn-stage{flex:1 1 auto;min-height:0;width:100%;display:flex;align-items:center;justify-content:center;overflow:visible}
.simple-public-workspace .sheet-turn-card.physical-sheet{width:min(100%,calc((100dvh - 105px)*297/210));max-width:100%;max-height:calc(100dvh - 105px);height:auto;aspect-ratio:297/210;margin:auto}
#fold-workspace.simple-public-workspace:fullscreen,#fold-workspace.simple-public-workspace:-webkit-full-screen{width:100vw;height:100vh;height:100dvh;min-height:0;padding:clamp(8px,1.5vw,20px);display:grid;grid-template-rows:auto minmax(0,1fr);gap:10px;overflow:hidden;border:0;border-radius:0}
#fold-workspace.simple-public-workspace:fullscreen .sheet-turn-stage,#fold-workspace.simple-public-workspace:-webkit-full-screen .sheet-turn-stage{height:100%;min-height:0;display:grid;place-items:center}
#fold-workspace.simple-public-workspace:fullscreen .sheet-turn-card.physical-sheet,#fold-workspace.simple-public-workspace:-webkit-full-screen .sheet-turn-card.physical-sheet{width:min(100%,calc((100dvh - 100px)*297/210));max-width:100%;max-height:calc(100dvh - 100px);height:auto;aspect-ratio:297/210}
@media(max-width:640px){.simple-public-workspace{min-height:100svh;padding:7px;gap:7px}.simple-public-controls{gap:6px}.simple-public-controls .control-button{min-width:0;flex:1;padding:10px 8px;font-size:11px}.simple-public-workspace .sheet-turn-card.physical-sheet{width:min(100%,calc((100svh - 100px)*297/210));max-height:calc(100svh - 100px)}#fold-workspace.simple-public-workspace:fullscreen .sheet-turn-card.physical-sheet,#fold-workspace.simple-public-workspace:-webkit-full-screen .sheet-turn-card.physical-sheet{width:min(100%,calc((100svh - 78px)*297/210));max-height:calc(100svh - 78px)}}

/* v1.0.11 — présentation des deux circuits de partage et aperçu de couverture sociale JPEG. */
.share-card-professional{margin-top:18px}
.share-card-social{margin-top:18px;text-align:left}
.share-card-social h2,.share-card-social>p{text-align:left;margin-left:0;margin-right:0}
.social-share-preview{display:flex;align-items:center;gap:16px;padding:12px;margin:18px 0;background:#f3f7ff;border:1px solid #dce6f5;border-radius:12px}
.social-share-preview img{display:block;width:190px;max-width:38%;aspect-ratio:1200/630;object-fit:cover;border-radius:8px;border:1px solid #d8e2f2;background:#eaf1ff}
.social-share-preview strong,.social-share-preview span{display:block}
.social-share-preview strong{color:#1e447e;font-size:13px}
.social-share-preview span{margin:5px 0;color:#7586a1;font-size:10px}
.social-share-preview a{font-size:11px;color:#174596;font-weight:750}
.social-share-actions{justify-content:flex-start}
.share-note{font-size:10px!important;color:#7888a2;line-height:1.55}
.share-card-management{margin-top:18px;padding:20px 26px;text-align:left}
.share-card-management h2{text-align:left;margin:0;color:#1c427d;font-size:17px}
.share-card-management>p{margin:7px 0 12px;color:#7888a2;font-size:11px}
@media(max-width:640px){.social-share-preview{align-items:flex-start}.social-share-preview img{width:120px}.social-share-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.social-share-actions .button{font-size:10px;padding:9px 6px}.share-card-management{padding:18px 15px}}

.simple-public-workspace .physical-leaf-label{display:none!important}


/* v1.0.12 — plein écran robuste : dimensionnement par hauteur + ratio natif, sans multiplication dans calc(). */
.simple-public-workspace:fullscreen,
.simple-public-workspace:-webkit-full-screen {
  width:100vw;
  height:100vh;
  height:100dvh;
  min-height:0;
  max-height:100dvh;
  display:flex !important;
  flex-direction:column;
  align-items:stretch;
  justify-content:flex-start;
  gap:10px;
  padding:clamp(8px,1.5vw,20px);
  overflow:hidden;
  border:0;
  border-radius:0;
}
.simple-public-workspace:fullscreen .sheet-turn-stage,
.simple-public-workspace:-webkit-full-screen .sheet-turn-stage {
  flex:1 1 0;
  min-height:0;
  width:100%;
  height:auto !important;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}
.simple-public-workspace:fullscreen .sheet-turn-card.physical-sheet,
.simple-public-workspace:-webkit-full-screen .sheet-turn-card.physical-sheet {
  flex:0 1 auto;
  width:auto !important;
  height:min(100%, calc(100dvh - 118px));
  max-width:100%;
  max-height:calc(100dvh - 118px);
  aspect-ratio:297 / 210;
  margin:auto;
}

/* Le lecteur professionnel passe en plein écran avec sa barre de commandes. */
.viewer-frame{display:flex;flex-direction:column;min-width:0}
#viewer-frame:fullscreen,
#viewer-frame:-webkit-full-screen {
  width:100vw;
  height:100vh;
  height:100dvh;
  min-height:0;
  max-height:100dvh;
  margin:0;
  padding:clamp(8px,1.2vw,18px);
  display:grid;
  grid-template-rows:auto minmax(0,1fr);
  gap:10px;
  overflow:hidden;
  background:#e2ebfa;
}
#viewer-frame:fullscreen .viewer-toolbar,
#viewer-frame:-webkit-full-screen .viewer-toolbar {
  margin:0;
  flex:0 0 auto;
}
#viewer-frame:fullscreen #fold-workspace,
#viewer-frame:-webkit-full-screen #fold-workspace {
  min-height:0;
  height:100%;
  margin:0;
  padding:clamp(8px,1vw,16px);
  display:grid;
  grid-template-rows:auto minmax(0,1fr) auto auto;
  gap:8px;
  overflow:hidden;
}
#viewer-frame:fullscreen #fold-workspace .sheet-turn-stage,
#viewer-frame:-webkit-full-screen #fold-workspace .sheet-turn-stage {
  width:100%;
  height:auto;
  min-height:0;
  display:grid;
  place-items:center;
  overflow:hidden;
}
#viewer-frame:fullscreen #fold-workspace .sheet-turn-card.physical-sheet,
#viewer-frame:-webkit-full-screen #fold-workspace .sheet-turn-card.physical-sheet {
  width:auto !important;
  height:min(100%, calc(100dvh - 205px));
  max-width:100%;
  max-height:calc(100dvh - 205px);
  aspect-ratio:297 / 210;
  margin:auto;
}
@media(max-width:640px){
  .simple-public-workspace:fullscreen,
  .simple-public-workspace:-webkit-full-screen{padding:7px;gap:7px}
  .simple-public-workspace:fullscreen .sheet-turn-card.physical-sheet,
  .simple-public-workspace:-webkit-full-screen .sheet-turn-card.physical-sheet{height:min(100%,calc(100dvh - 90px));max-height:calc(100dvh - 90px)}
  #viewer-frame:fullscreen,
  #viewer-frame:-webkit-full-screen{padding:6px;gap:6px}
  #viewer-frame:fullscreen #fold-workspace,
  #viewer-frame:-webkit-full-screen #fold-workspace{padding:6px;gap:6px}
  #viewer-frame:fullscreen #fold-workspace .sheet-turn-card.physical-sheet,
  #viewer-frame:-webkit-full-screen #fold-workspace .sheet-turn-card.physical-sheet{height:min(100%,calc(100dvh - 190px));max-height:calc(100dvh - 190px)}
}

/* v1.0.12 — correction de la grille intrinsèque : la feuille utilise une hauteur définie dans un conteneur flex. */
.simple-public-workspace:fullscreen .sheet-turn-stage,
.simple-public-workspace:-webkit-full-screen .sheet-turn-stage,
#viewer-frame:fullscreen #fold-workspace .sheet-turn-stage,
#viewer-frame:-webkit-full-screen #fold-workspace .sheet-turn-stage {
  display:flex !important;
  align-items:center;
  justify-content:center;
}
.simple-public-workspace:fullscreen .sheet-turn-card.physical-sheet,
.simple-public-workspace:-webkit-full-screen .sheet-turn-card.physical-sheet {
  flex:0 0 auto;
  height:min(calc(100dvh - 118px), 70.7vw) !important;
  width:auto !important;
  max-height:calc(100dvh - 118px);
  max-width:100%;
}
#viewer-frame:fullscreen #fold-workspace .sheet-turn-card.physical-sheet,
#viewer-frame:-webkit-full-screen #fold-workspace .sheet-turn-card.physical-sheet {
  flex:0 0 auto;
  height:min(calc(100dvh - 205px), 70.7vw) !important;
  width:auto !important;
  max-height:calc(100dvh - 205px);
  max-width:100%;
}
@media(max-width:640px){
  .simple-public-workspace:fullscreen .sheet-turn-card.physical-sheet,
  .simple-public-workspace:-webkit-full-screen .sheet-turn-card.physical-sheet {
    height:min(calc(100dvh - 90px),70.7vw) !important;
    max-height:calc(100dvh - 90px);
  }
  #viewer-frame:fullscreen #fold-workspace .sheet-turn-card.physical-sheet,
  #viewer-frame:-webkit-full-screen #fold-workspace .sheet-turn-card.physical-sheet {
    height:min(calc(100dvh - 190px),70.7vw) !important;
    max-height:calc(100dvh - 190px);
  }
}


/* v1.0.12 — ratio A4 strict sur écrans étroits : largeur calculée, hauteur dérivée du ratio. */
.simple-public-workspace:fullscreen .sheet-turn-card.physical-sheet,
.simple-public-workspace:-webkit-full-screen .sheet-turn-card.physical-sheet {
  width:min(calc(100vw - 16px), calc(141.43dvh - 167px)) !important;
  height:auto !important;
  max-width:100%;
  max-height:calc(100dvh - 118px);
  aspect-ratio:297 / 210;
}
#viewer-frame:fullscreen #fold-workspace .sheet-turn-card.physical-sheet,
#viewer-frame:-webkit-full-screen #fold-workspace .sheet-turn-card.physical-sheet {
  width:min(calc(100vw - 36px), calc(141.43dvh - 290px)) !important;
  height:auto !important;
  max-width:100%;
  max-height:calc(100dvh - 205px);
  aspect-ratio:297 / 210;
}
@media(max-width:640px){
  .simple-public-workspace:fullscreen .sheet-turn-card.physical-sheet,
  .simple-public-workspace:-webkit-full-screen .sheet-turn-card.physical-sheet {
    width:min(calc(100vw - 14px), calc(141.43dvh - 127px)) !important;
    height:auto !important;
    max-height:calc(100dvh - 90px);
  }
  #viewer-frame:fullscreen #fold-workspace .sheet-turn-card.physical-sheet,
  #viewer-frame:-webkit-full-screen #fold-workspace .sheet-turn-card.physical-sheet {
    width:min(calc(100vw - 12px), calc(141.43dvh - 269px)) !important;
    height:auto !important;
    max-height:calc(100dvh - 190px);
  }
}
