@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&display=swap');*{box-sizing:border-box}:root{--bg:#eaf0e7;--ink:#26392f;--green:#317453;--muted:#6b7c70}body{margin:0;background:var(--bg);color:var(--ink);font-family:Outfit,system-ui,sans-serif}button,a{font:inherit}a{color:inherit;text-decoration:none}.shell{max-width:1680px;margin:auto;padding:23px 32px}.top{display:grid;grid-template-columns:135px 1fr 135px;align-items:center;gap:18px;margin-bottom:22px}.back{border-radius:16px;background:#fff;padding:15px;color:#317453;font-weight:700;text-align:center}.brand{text-align:center;min-width:0}.brand .tiny,.eyebrow{font-size:12px;letter-spacing:.15em;color:var(--green);font-weight:800}.brand h1{font-size:clamp(20px,2.4vw,31px);margin:5px 0;line-height:1.15}.test{text-align:center;font-size:12px;color:var(--muted)}.workspace{height:clamp(535px,calc(100dvh - 164px),850px);display:grid;grid-template-columns:minmax(0,1.08fr) minmax(0,1fr);gap:20px}.image-pane,.content-pane{border-radius:28px;min-height:0;position:relative;overflow:hidden}.image-pane{background:#d5e3d3}.photo-slot{width:100%;height:100%;position:relative}.step-image{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.photo-fallback{position:absolute;inset:0;background:radial-gradient(circle at 60% 35%,#edf4e8,#cbdcc9);display:flex;flex-direction:column;gap:16px;align-items:center;justify-content:center}.photo-fallback[hidden]{display:none}.big-index{font-size:clamp(100px,17vw,240px);font-weight:800;line-height:1;color:#6b9e7c}.fallback-label{font-size:13px;letter-spacing:.2em;color:#47765a;font-weight:700}.photo-mark{position:absolute;bottom:25px;right:25px;background:#fffdf3db;border-radius:18px;backdrop-filter:blur(12px);font-size:49px;color:#317453;font-weight:800;line-height:1;padding:12px 18px}.content-pane{background:#fff;display:flex;flex-direction:column;padding:clamp(22px,3vw,45px)}.content-header{flex:none;display:flex;justify-content:space-between;align-items:flex-start;gap:15px;border-bottom:1px solid #e8eee8;padding-bottom:20px}.count{display:flex;gap:9px;align-items:baseline;color:#86a38e;font-weight:800;font-size:23px}.count #current-count{color:var(--green);font-size:42px}.count .divider{font-weight:400}.text-scroll{min-height:0;flex:1;overflow-y:auto;overscroll-behavior:contain;padding:28px 12px 20px 0;scrollbar-color:#bed3c1 transparent;scrollbar-width:thin}.text-scroll h2{font-size:clamp(29px,3vw,45px);line-height:1.12;letter-spacing:-.03em;margin:0 0 24px}.instruction-text{font-size:clamp(18px,1.6vw,23px);line-height:1.65;color:#425749;overflow-wrap:anywhere}.instruction-text p{margin:0 0 18px}.instruction-text ul,.instruction-text ol{padding-left:1.4em}.instruction-text img{max-width:100%;border-radius:14px}.bottom{flex:none;border-top:1px solid #e8eee8;padding-top:19px}.progress{display:flex;gap:9px;margin-bottom:22px;overflow-x:auto;padding:4px 3px 9px;scrollbar-width:thin}.dot{flex:0 0 auto;width:41px;height:41px;border-radius:13px;border:1px solid #d5e5d5;background:#eef4ed;color:#4f8667;font-weight:800;font-size:14px;cursor:pointer}.dot.active{background:#317453;color:white;border-color:#317453}.controls{display:flex;align-items:center;justify-content:space-between;gap:9px}.controls button{border:0;background:#317453;color:white;border-radius:15px;padding:14px 19px;min-height:56px;cursor:pointer;font-weight:750;font-size:17px}.controls button:first-child{background:#edf4eb;color:#357153}.controls button:disabled{opacity:.35;cursor:default}.page-count{color:#67806f;font-size:14px;font-weight:650}footer{text-align:center;color:#74877a;font-size:12px;margin-top:20px}.empty{background:#fff;border-radius:20px;padding:40px;text-align:center}:focus-visible{outline:4px solid #d88d46;outline-offset:3px}@media(max-width:900px){.shell{padding:16px}.top{grid-template-columns:110px 1fr 80px}.workspace{gap:12px;grid-template-columns:1fr 1fr}.content-pane{padding:22px}.text-scroll h2{font-size:28px}.instruction-text{font-size:18px}.controls button{padding:12px}}@media(max-width:700px){.shell{padding:12px}.top{grid-template-columns:auto 1fr;gap:9px}.back{padding:12px}.back span{display:none}.brand h1{font-size:19px}.test{display:none}.workspace{height:auto;display:flex;flex-direction:column;gap:12px}.image-pane{height:clamp(230px,40dvh,380px);flex:none}.photo-mark{font-size:35px;right:15px;bottom:15px}.content-pane{height:clamp(445px,55dvh,620px);padding:19px;flex:none}.content-header{padding-bottom:10px}.count #current-count{font-size:31px}.text-scroll{padding-top:18px}.text-scroll h2{font-size:26px;margin-bottom:14px}.instruction-text{font-size:17px}.bottom{padding-top:12px}.progress{margin-bottom:12px}.controls button{min-height:49px;font-size:15px;padding:10px 13px}}
/* V2: profondeur douce, gabarit stable */
body{background:radial-gradient(ellipse at 51% 24%,#f5f8f1 0%,#eaf0e7 54%,#dee9dd 100%)}
.image-pane,.content-pane{box-shadow:0 22px 55px rgba(43,71,49,.13),0 5px 15px rgba(38,66,47,.075),inset 0 1px 0 rgba(255,255,255,.75);border:1px solid rgba(255,255,255,.72)}
.image-pane{box-shadow:0 24px 60px rgba(33,63,43,.19),0 5px 12px rgba(30,58,39,.08);}
.image-pane::after{content:'';position:absolute;inset:0;pointer-events:none;box-shadow:inset 0 0 0 1px rgba(255,255,255,.2);border-radius:inherit}
.content-pane{background:rgba(255,255,252,.94);backdrop-filter:blur(14px)}
.back{background:rgba(255,255,255,.82);border:1px solid #ffffffd9;box-shadow:0 7px 22px rgba(42,74,49,.1)}
.content-header{align-items:center;min-height:94px;padding-bottom:18px;}
.stage-heading{font-weight:750;letter-spacing:-.035em;font-size:clamp(23px,2.5vw,35px);line-height:1.15;margin:0;max-width:75%}
.count{flex:none}
.scroll-area{position:relative;min-height:0;flex:1;display:flex;flex-direction:column}
.text-scroll{padding-top:21px;flex:1;min-height:0}
.scroll-cue{pointer-events:none;position:absolute;bottom:0;left:0;right:0;text-align:center;font-size:12px;font-weight:700;color:#397658;padding:22px 5px 5px;background:linear-gradient(transparent,rgba(255,255,252,.98) 60%)}
.scroll-cue[hidden]{display:none}
.ingredients-per-step{min-height:59px;flex:0 0 auto;display:flex;align-items:center;gap:11px;padding:10px 0 7px;border-bottom:1px solid #e6eee4;overflow-x:auto}
.ingredients-per-step[hidden]{display:none}
.ingredient-chip{flex:0 0 auto;width:45px;height:43px;display:grid;place-items:center}.ingredient-chip img{width:42px;height:42px;object-fit:contain}
.bottom{padding-top:18px}
.nav-bottom{display:grid;grid-template-columns:155px minmax(0,1fr) 155px;align-items:center;gap:8px}
.progress{margin:0;justify-content:center;gap:8px;padding:6px 2px 9px;min-width:0}
.dot{width:43px;height:43px;border-radius:14px;background:rgba(229,241,229,.87);border:1px solid #d4e5d4;box-shadow:0 3px 8px rgba(34,75,48,.08),inset 0 1px 0 #fff}
.dot.active{background:linear-gradient(145deg,#448c67,#276a49);box-shadow:0 6px 16px rgba(39,106,73,.29),inset 0 1px 1px rgba(255,255,255,.25)}
.nav-arrow{border:0;background:#eff5ee;border-radius:13px;color:#286e4c;min-height:54px;padding:8px 12px;font-weight:700;cursor:pointer;box-shadow:0 3px 10px rgba(45,79,50,.09)}
.nav-arrow:last-child{background:#317453;color:#fff}
.nav-arrow:disabled{opacity:.35;cursor:default}
.tv-mode .nav-arrow{display:none}
.tv-mode .nav-bottom{display:flex;justify-content:center}
.tv-mode .progress{flex:0 1 auto}
@media(max-width:1100px){.nav-bottom{grid-template-columns:112px minmax(0,1fr) 112px}.nav-arrow{font-size:14px}.dot{width:38px;height:38px}}
@media(max-width:700px){.content-header{min-height:70px}.stage-heading{font-size:23px}.nav-bottom{grid-template-columns:50px minmax(0,1fr) 50px}.nav-arrow span{display:none}.nav-arrow{font-size:21px;min-height:45px}.progress{justify-content:flex-start}.dot{width:37px;height:38px}.ingredients-per-step{min-height:49px}.ingredient-chip,.ingredient-chip img{width:35px;height:35px}}


/* PREPARATION V3 — trois cadres, proportions fixes, fond de plat très discret */
.shell{max-width:1700px}
.workspace{height:clamp(530px,calc(100dvh - 170px),790px);display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:22px;}
.left-column{display:grid;grid-template-rows:minmax(0,1fr) 102px;gap:18px;min-height:0;min-width:0}
.left-column .image-pane{height:100%;min-height:0}
.steps-pane{background:rgba(255,255,252,.93);border:1px solid rgba(255,255,255,.75);border-radius:26px;min-height:0;display:flex;align-items:center;justify-content:center;box-shadow:0 16px 40px rgba(43,71,49,.115),0 4px 12px rgba(38,66,47,.055);padding:10px 22px}
.steps-pane .progress{margin:0;display:flex;justify-content:center;align-items:center;gap:clamp(7px,1.2vw,17px);padding:0;max-width:100%;width:100%}
.steps-pane .dot{width:clamp(38px,3.2vw,56px);height:clamp(38px,3.2vw,56px);font-size:clamp(14px,1.3vw,20px)}
.steps-pane .nav-arrow[hidden]{display:none!important}
.content-pane{isolation:isolate;position:relative;background:rgba(255,255,252,.98);padding:clamp(24px,2.6vw,42px)}
.content-pane::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background-image:linear-gradient(90deg,rgba(255,255,252,.985) 0%,rgba(255,255,252,.965) 46%,rgba(255,255,252,.89) 100%),var(--recipe-backdrop);background-size:cover;background-position:center;opacity:1}
.content-header{display:flex;justify-content:center;min-height:88px}
.stage-heading{max-width:100%;width:100%;text-align:center;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
.content-pane .bottom{display:none}
.text-scroll{padding-bottom:22px}
@media (min-width:701px){
 body.tv-mode{height:100vh;height:100dvh;overflow:hidden}
 .tv-mode .shell{width:100%;height:100vh;height:100dvh;display:flex;flex-direction:column;min-height:0;padding:12px 30px 18px}
 .tv-mode .top{flex:0 0 auto;margin-bottom:10px}
 .tv-mode .workspace{flex:0 0 auto;width:84%;height:73vh;height:73dvh;max-height:calc(100dvh - 125px);align-self:center;margin:auto;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:18px}
 .tv-mode .left-column{grid-template-rows:minmax(0,1fr) 78px;gap:14px}
 .tv-mode .steps-pane{padding:8px 10px;border-radius:21px}
 .tv-mode .content-pane{padding:clamp(16px,2.3vh,27px)}
 .tv-mode .content-header{min-height:67px;padding-bottom:10px}
 .tv-mode .ingredients-per-step{min-height:45px;padding:5px 0}
 .tv-mode .ingredient-chip,.tv-mode .ingredient-chip img{height:36px;width:36px}
 .tv-mode .text-scroll{padding-top:14px;padding-bottom:8px}
 .tv-mode .instruction-text{font-size:clamp(17px,1.42vw,21px);line-height:1.5}
 .tv-mode .steps-pane .dot{width:clamp(35px,3vw,47px);height:clamp(35px,3vw,47px)}
 .tv-mode footer{display:none}
}
@media(max-width:700px){
 .workspace{height:auto;display:flex;flex-direction:column;gap:12px}
 .left-column{display:grid;grid-template-rows:clamp(245px,42dvh,380px) 75px;gap:12px}
 .left-column .image-pane{height:100%}
 .content-pane{height:clamp(420px,58dvh,640px);flex:none}
 .steps-pane{padding:7px;min-height:0}
 .steps-pane .progress{gap:5px;overflow-x:auto;justify-content:flex-start}
 .steps-pane .dot{width:40px;height:40px}
 .content-header{min-height:64px}
}
