/* Dorry App — atelier de formulation et assistant sur le site (charte Dorry Bio) */
.dorry{--d-green:#4A6B01;--d-green-dark:#3A5401;--d-green-tint:#E9EFDC;--d-gold:#A36F01;--d-gold-text:#8A5D00;--d-gold-tint:#F6ECD6;--d-cream:#FAF6EE;--d-ink:#1E1A14;--d-muted:#6F6757;--d-line:#E9E2D3;--d-line-soft:#EFE9DC;--d-danger:#B3261E;
  color:var(--d-ink);font-size:15px;line-height:1.45;box-sizing:border-box}
.dorry *,.dorry *::before,.dorry *::after{box-sizing:inherit}
.dorry button{font:inherit;cursor:pointer;text-transform:none;letter-spacing:0;line-height:1.3;margin:0;box-shadow:none;min-height:0}
.dorry a{text-transform:none;letter-spacing:0}
.dorry input,.dorry textarea{text-transform:none;letter-spacing:0;box-shadow:none}
.dorry a{color:var(--d-gold-text);text-decoration:none}
.dorry a:hover{color:var(--d-green)}
.dorry-loading{padding:24px;text-align:center;color:var(--d-muted)}
.dorry-card{background:#fff;border:1px solid var(--d-line);border-radius:18px;padding:16px}
.dorry-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:46px;padding:0 18px;border-radius:14px;border:0;background:var(--d-green);color:#fff;font-weight:600;font-size:15px;transition:background .15s}
.dorry-btn:hover{background:var(--d-green-dark);color:#fff}
.dorry-btn:disabled{background:var(--d-line);color:var(--d-muted);cursor:default}
.dorry-btn--light{background:#fff;color:var(--d-ink);border:1px solid var(--d-line)}
.dorry-btn--light:hover{background:var(--d-cream);color:var(--d-ink)}
.dorry-btn--gold{background:var(--d-gold-tint);color:var(--d-gold-text)}
.dorry-btn--gold:hover{background:#EFE0C0;color:var(--d-gold-text)}
.dorry-chip{display:inline-flex;align-items:center;min-height:38px;padding:0 14px;border-radius:12px;border:1px solid var(--d-line);background:#fff;color:var(--d-ink);font-size:14px}
.dorry-chip[aria-pressed="true"]{border:2px solid var(--d-green);background:var(--d-green-tint);color:var(--d-green);font-weight:600}
.dorry-muted{color:var(--d-muted);font-size:13px}
.dorry-title{font-size:22px;font-weight:700;margin:0 0 4px;line-height:1.2}
.dorry-sub{margin:0 0 14px;color:var(--d-muted);font-size:14px}
.dorry-row{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.dorry-notice{padding:12px 14px;border-radius:14px;background:var(--d-gold-tint);color:var(--d-ink);font-size:14px}
.dorry-notice--ok{background:var(--d-green-tint)}
.dorry-notice--err{background:#FBE4E2}

/* ---------- Atelier ---------- */
.dorry-atelier{max-width:980px;margin:0 auto}
.dorry-atelier__layout{display:grid;grid-template-columns:300px minmax(0,1fr);gap:20px}
@media (max-width:820px){.dorry-atelier__layout{grid-template-columns:minmax(0,1fr)}}
.dorry-flist{display:flex;flex-direction:column;gap:10px}
.dorry-fitem{display:flex;gap:12px;align-items:center;padding:12px;border-radius:16px;border:1px solid var(--d-line);background:#fff;text-align:left;width:100%}
.dorry-fitem[aria-pressed="true"]{border-color:var(--d-green);box-shadow:0 0 0 2px var(--d-green-tint)}
.dorry-fitem__icon{width:44px;height:44px;border-radius:12px;background:var(--d-green-tint);display:flex;align-items:center;justify-content:center;flex-shrink:0;color:var(--d-green)}
.dorry-fitem__name{display:block;font-weight:600;font-size:14px;line-height:1.25}
.dorry-fitem__meta{display:block;font-size:12px;color:var(--d-muted);margin-top:2px}
.dorry-ffamily{font-size:12px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--d-muted);margin:8px 0 2px}
.dorry-batch{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.dorry-batch input{width:110px;min-height:38px;padding:0 12px;border:1px solid var(--d-line);border-radius:12px;font:inherit;font-size:14px;background:#fff}
.dorry-table{width:100%;border-collapse:collapse;margin:0;background:#fff;border:1px solid var(--d-line);border-radius:16px;overflow:hidden}
.dorry-table th,.dorry-table td{padding:10px 12px;text-align:left;border-bottom:1px solid var(--d-line-soft);font-size:14px;vertical-align:top}
.dorry-table th{font-size:11px;letter-spacing:.05em;text-transform:uppercase;color:var(--d-muted);background:var(--d-cream);font-weight:600}
.dorry-table tr:last-child td{border-bottom:0}
.dorry-table .dorry-phase td{background:var(--d-cream);font-size:11px;letter-spacing:.05em;text-transform:uppercase;color:var(--d-muted);font-weight:600;padding:7px 12px}
.dorry-table .num{text-align:right;white-space:nowrap}
.dorry-table .grams{font-weight:700;font-size:15px}
.dorry-table .ing-note{display:block;font-size:12px;color:var(--d-muted)}
.dorry-table .ing-prod{display:block;font-size:12px}
.dorry-table .ing-prod a{font-weight:600}
.dorry-table .ing-missing{display:block;font-size:12px;color:var(--d-danger)}
.dorry-steps{margin:0;padding:0;list-style:none;counter-reset:d}
.dorry-steps li{position:relative;padding:0 0 10px 38px;counter-increment:d;font-size:14px}
.dorry-steps li::before{content:counter(d);position:absolute;left:0;top:0;width:26px;height:26px;border-radius:50%;background:var(--d-green-tint);color:var(--d-green);font-weight:700;font-size:12px;display:flex;align-items:center;justify-content:center}
.dorry-safety{display:flex;gap:12px;padding:14px;border-radius:16px;background:var(--d-gold-tint);font-size:14px}
.dorry-total{display:flex;justify-content:space-between;align-items:center;padding:12px 14px;border-radius:14px;background:var(--d-gold-tint);margin-top:12px}
.dorry-total strong{font-size:18px;color:var(--d-gold-text)}
.dorry-section{margin-top:18px}
.dorry-section h3{font-size:17px;font-weight:700;margin:0 0 10px}
.dorry-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:14px}
@media print{.dorry-atelier__side,.dorry-actions,.dorry-batch{display:none!important}.dorry-atelier__layout{display:block}}

/* ---------- Assistant ---------- */
.dorry-assistant{display:flex;flex-direction:column;background:var(--d-cream);border:1px solid var(--d-line);border-radius:20px;overflow:hidden;max-width:720px;margin:0 auto;min-height:420px}
.dorry-chat__head{display:flex;align-items:center;gap:12px;padding:12px 16px;background:#fff;border-bottom:1px solid var(--d-line)}
.dorry-chat__head img{width:38px;height:38px;border-radius:50%}
.dorry-chat__head b{display:block;font-size:16px}
.dorry-chat__head span{font-size:12px;color:var(--d-muted)}
.dorry-lang{margin-left:auto;display:flex;border:1px solid var(--d-line);border-radius:10px;overflow:hidden}
.dorry-lang button{border:0;border-radius:0;background:#fff;padding:0 12px;height:32px;min-width:46px;white-space:nowrap;font-size:13px;font-weight:600;color:var(--d-ink);font-family:system-ui,'Segoe UI',Tahoma,Arial,sans-serif}
.dorry-lang button[aria-pressed="true"]{background:var(--d-green);color:#fff}
.dorry-chat__body{flex:1;overflow-y:auto;padding:14px 14px 6px;display:flex;flex-direction:column;gap:10px}
.dorry-msg{max-width:85%;padding:11px 14px;border-radius:18px;font-size:14px;line-height:1.45;white-space:pre-wrap;word-wrap:break-word}
.dorry-msg--user{align-self:flex-end;background:var(--d-green);color:#fff;border-bottom-right-radius:4px}
.dorry-msg--bot{align-self:flex-start;background:#fff;border:1px solid var(--d-line);border-bottom-left-radius:4px}
.dorry-msg--err{border-color:var(--d-gold-tint);background:var(--d-gold-tint)}
.dorry-msg[dir="rtl"]{text-align:right}
.dorry-prod{align-self:flex-start;display:flex;gap:10px;align-items:center;padding:8px 10px;border-radius:14px;background:#fff;border:1px solid var(--d-line);max-width:85%;color:var(--d-ink)}
.dorry-prod img{width:44px;height:44px;border-radius:10px;object-fit:cover;background:var(--d-gold-tint)}
.dorry-prod b{display:block;font-size:13px}
.dorry-prod span{font-size:12px;color:var(--d-gold-text);font-weight:700}
.dorry-sugg{display:flex;gap:8px;flex-wrap:wrap}
.dorry-sugg button{border:1px solid var(--d-line);background:#fff;border-radius:10px;padding:8px 12px;font-size:12px;color:var(--d-ink)}
.dorry-sugg button:hover{background:var(--d-green-tint)}
.dorry-typing{align-self:flex-start;color:var(--d-muted);font-size:13px;padding:4px 8px}
.dorry-chat__foot{display:flex;gap:8px;padding:10px 12px;background:#fff;border-top:1px solid var(--d-line)}
.dorry-chat__foot textarea{flex:1;resize:none;min-height:46px;max-height:120px;padding:12px 14px;border:1px solid var(--d-line);border-radius:14px;background:var(--d-cream);font:inherit;font-size:14px}
.dorry-chat__foot textarea:focus{outline:2px solid var(--d-green);outline-offset:-1px}
.dorry-send{width:46px;height:46px;border-radius:14px;border:0;background:var(--d-green);color:#fff;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.dorry-send:disabled{background:var(--d-line)}
.dorry-wa{display:inline-flex;align-items:center;gap:6px;margin-top:6px;font-size:13px;font-weight:600}
.dorry-legal{padding:6px 14px 10px;background:#fff;font-size:11px;color:var(--d-muted);text-align:center}

/* ---------- Bulle flottante ---------- */
.dorry-bubble{position:fixed;right:20px;bottom:20px;z-index:99990;font-family:inherit;display:flex;flex-direction:column;align-items:flex-end;gap:10px;opacity:0;transform:translateY(24px);transition:opacity .4s ease,transform .5s cubic-bezier(.2,.9,.3,1.3)}
.dorry-bubble.is-ready{opacity:1;transform:none}
.dorry-bubble__btn{position:relative;display:flex;align-items:center;gap:12px;padding:8px 20px 8px 8px;border:0;border-radius:999px;background:linear-gradient(135deg,#55790A,#4A6B01);color:#fff;box-shadow:0 10px 30px rgba(74,107,1,.35),0 0 0 0 rgba(163,111,1,.45);transition:transform .2s ease,box-shadow .2s ease;animation:dorry-pulse 2.6s ease-out infinite}
.dorry-bubble__btn:hover{transform:translateY(-2px) scale(1.03);box-shadow:0 14px 34px rgba(74,107,1,.4);background:linear-gradient(135deg,#5E8410,#4A6B01);color:#fff}
.dorry-bubble.is-open .dorry-bubble__btn{animation:none}
@keyframes dorry-pulse{0%{box-shadow:0 10px 30px rgba(74,107,1,.35),0 0 0 0 rgba(163,111,1,.55)}70%{box-shadow:0 10px 30px rgba(74,107,1,.35),0 0 0 16px rgba(163,111,1,0)}100%{box-shadow:0 10px 30px rgba(74,107,1,.35),0 0 0 0 rgba(163,111,1,0)}}
.dorry-bubble__avatar{position:relative;width:44px;height:44px;flex-shrink:0}
.dorry-bubble__avatar img{width:44px;height:44px;border-radius:50%;background:#fff;border:2px solid #F6ECD6;display:block}
.dorry-bubble__online{position:absolute;right:0;bottom:1px;width:12px;height:12px;border-radius:50%;background:#7BD36B;border:2px solid #4A6B01}
.dorry-bubble__label{display:flex;flex-direction:column;align-items:flex-start;line-height:1.15;text-align:left}
.dorry-bubble__label b{font-size:15px;font-weight:700}
.dorry-bubble__label small{font-size:11.5px;opacity:.85;font-weight:500}
.dorry-bubble__dot{position:absolute;top:-3px;right:-3px;width:14px;height:14px;border-radius:50%;background:var(--d-gold);border:2px solid #fff;display:none}
.dorry-bubble.has-dot:not(.is-open) .dorry-bubble__dot{display:block}
.dorry-bubble__teaser{position:relative;max-width:280px;padding:12px 36px 12px 14px;border-radius:16px 16px 4px 16px;background:#fff;color:var(--d-ink);font-size:14px;line-height:1.4;box-shadow:0 10px 30px rgba(30,26,20,.18);border:1px solid var(--d-line);cursor:pointer;display:none;transform:translateY(8px);opacity:0;transition:opacity .35s ease,transform .35s ease}
.dorry-bubble.has-teaser:not(.is-open) .dorry-bubble__teaser{display:block;opacity:1;transform:none}
.dorry-bubble__teaser::after{content:"";position:absolute;right:22px;bottom:-7px;width:12px;height:12px;background:#fff;border-right:1px solid var(--d-line);border-bottom:1px solid var(--d-line);transform:rotate(45deg)}
.dorry-bubble__teaser-close{position:absolute;top:6px;right:8px;width:24px;height:24px;border:0;background:transparent;color:var(--d-muted);font-size:18px;line-height:1;border-radius:50%}
.dorry-bubble__teaser-close:hover{background:var(--d-cream);color:var(--d-ink)}
.dorry-bubble__panel{width:390px;max-width:calc(100vw - 40px);height:600px;max-height:calc(100vh - 110px);display:none;box-shadow:0 20px 60px rgba(30,26,20,.26);border-radius:20px;transform-origin:bottom right;animation:dorry-open .25s ease-out}
@keyframes dorry-open{from{opacity:0;transform:scale(.92) translateY(10px)}to{opacity:1;transform:none}}
.dorry-bubble.is-open .dorry-bubble__panel{display:flex}
.dorry-bubble.is-open .dorry-bubble__teaser{display:none}
.dorry-bubble__panel .dorry-assistant{width:100%;height:100%;max-width:none;min-height:0}
.dorry-chat__close{width:34px;height:34px;border:0;border-radius:50%;background:transparent;color:var(--d-muted);font-size:24px;line-height:1;margin-left:4px}
.dorry-chat__close:hover{background:var(--d-cream);color:var(--d-ink)}
@media (max-width:520px){
  .dorry-bubble{right:12px;bottom:12px;left:12px;align-items:flex-end}
  .dorry-bubble__panel{width:100%;max-width:none;height:calc(100vh - 90px);max-height:none}
  .dorry-bubble__teaser{max-width:min(280px,80vw)}
  .dorry-bubble__label small{display:none}
}
@media (prefers-reduced-motion:reduce){.dorry-bubble,.dorry-bubble__btn,.dorry-bubble__panel,.dorry-bubble__teaser{animation:none!important;transition:none!important}}

/* ---------- Protection contre les styles du thème (Flatsome…) ---------- */
.dorry button,.dorry .dorry-bubble__btn,.dorry .dorry-sugg button,.dorry .dorry-lang button{text-transform:none!important;letter-spacing:normal!important;margin:0!important;min-height:0!important;line-height:1.3!important;box-shadow:none;font-family:inherit}
.dorry .dorry-bubble__btn{padding:8px 20px 8px 8px!important;min-height:0!important;border-radius:999px!important;box-shadow:0 10px 30px rgba(74,107,1,.35)!important;height:auto!important}
.dorry .dorry-lang{display:flex!important;flex-shrink:0;height:34px;border-radius:10px;overflow:hidden;width:auto!important}
.dorry .dorry-lang button{height:34px!important;padding:0 12px!important;min-width:48px!important;width:auto!important;border-radius:0!important;font-size:13px!important;font-family:system-ui,'Segoe UI',Tahoma,Arial,sans-serif!important;display:inline-flex!important;align-items:center;justify-content:center;white-space:nowrap}
.dorry .dorry-sugg button{padding:8px 12px!important;height:auto!important;font-size:12.5px!important;font-weight:500!important;border-radius:10px!important;text-align:start}
.dorry .dorry-send{padding:0!important;height:46px!important;width:46px!important;border-radius:14px!important}
.dorry .dorry-chat__close{padding:0!important;height:34px!important;width:34px!important}
.dorry .dorry-chat__head{gap:10px}
.dorry .dorry-chat__head > div:nth-child(2){min-width:0;flex:1}
.dorry .dorry-chat__head span{display:block}
