/* Une transition entre deux expériences café, au cœur du simulateur. */
.calculator-section .calc-tabs{gap:9px;border:0}
.calculator-section .calc-tab{position:relative;display:flex;align-items:center;justify-content:flex-start;gap:11px;min-width:0;min-height:63px;padding:11px 12px;border:1px solid #d7c8b6;background:#fffaf3;color:#172943;text-align:left;transition:background .35s,color .35s,border-color .35s,box-shadow .35s,transform .35s}
.calculator-section .calc-tab:not(:last-child){border-right:1px solid #d7c8b6}
.calculator-section .calc-tab .calc-tab-number{display:block;flex:0 0 auto;align-self:center;font-family:var(--serif);font-size:25px;line-height:1;letter-spacing:-.04em;opacity:.46;margin:0}
.calculator-section .calc-tab .calc-tab-copy{display:flex;flex-direction:column;min-width:0;gap:3px;flex:1}
.calculator-section .calc-tab .calc-tab-copy strong{font-size:13px;line-height:1.2}
.calculator-section .calc-tab .calc-tab-copy small{font-size:10px;line-height:1.2;font-weight:500;color:#7c8187}
.calculator-section .calc-tab .calc-tab-check{font-style:normal;font-size:12px;display:grid;place-items:center;width:21px;height:21px;border:1px solid #d9cbbd;border-radius:50%;color:transparent;flex:0 0 auto;transition:background .3s,color .3s,border-color .3s}
.calculator-section .calc-tab:hover{transform:translateY(-2px);border-color:#b86f44}
.calculator-section .calc-tab.is-active{background:#172943;color:white;border-color:#b5714d;box-shadow:0 8px 17px rgba(23,41,67,.18);transform:translateY(-2px)}
.calculator-section .calc-tab.is-active .calc-tab-copy small{color:#f2ccaf}
.calculator-section .calc-tab.is-active .calc-tab-number{opacity:.73;color:#f1b68d}
.calculator-section .calc-tab.is-active .calc-tab-check{background:#d4671e;border-color:#d4671e;color:white}
.calculator-section .calc-tab[data-calc-offer="gourmande"].is-active{background:#79412f;border-color:#b77448}
.calculator-section .calc-tab:focus-visible{outline:3px solid #d4671e;outline-offset:3px}

.calc-stage{position:relative;min-height:175px;margin-top:11px;overflow:hidden;background:#142841;color:#fff;isolation:isolate;box-shadow:0 8px 25px rgba(17,35,53,.12)}
.calc-stage::before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(115deg,#532b22,#7e452e);opacity:0;transition:opacity .55s}
.calc-stage[data-offer="gourmande"]::before{opacity:1}
.calc-stage-photo{position:absolute;inset:0 0 0 auto;width:55%;overflow:hidden;z-index:0}
.calc-stage-photo img{position:absolute;width:100%;height:100%;inset:0;object-fit:cover;object-position:center;opacity:0;transform:scale(1.13) translateX(5%);filter:saturate(.83);transition:opacity .62s cubic-bezier(.2,.75,.2,1),transform .85s cubic-bezier(.15,.75,.2,1)}
.calc-stage-photo img.is-visible{opacity:1;transform:scale(1.02) translateX(0)}
.calc-stage-photo::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#142841 0%,rgba(20,40,65,.9) 7%,rgba(20,40,65,.12) 70%),linear-gradient(0deg,rgba(6,18,29,.36),transparent 45%);transition:background .4s}
.calc-stage[data-offer="gourmande"] .calc-stage-photo::after{background:linear-gradient(90deg,#532b22 0%,rgba(83,43,34,.9) 7%,rgba(83,43,34,.12) 70%),linear-gradient(0deg,rgba(6,18,29,.36),transparent 45%)}
.calc-stage-story{position:relative;z-index:2;width:66%;min-height:175px;padding:14px 19px 13px;display:flex;flex-direction:column;align-items:flex-start}
.calc-stage-kicker{font-size:9px;letter-spacing:.13em;font-weight:700;color:#f1c7a5;display:flex;gap:8px;align-items:center;line-height:1.25}
.calc-stage-kicker>i{display:inline-block;width:13px;height:2px;background:#d4671e;flex:0 0 auto}
.calc-stage h3{font-family:var(--serif);font-size:33px;line-height:1.03;letter-spacing:-.04em;margin:7px 0 4px;font-weight:500;color:#fff}
.calc-stage h3 span{color:#eea977}
.calc-stage p{font-size:11px;line-height:1.4;color:#e5e3df;max-width:300px;margin:0 0 8px}
.calc-stage-drinks{display:flex;align-items:start;gap:7px;margin-top:auto}
.calc-stage-drinks>div{min-width:0;width:48px;text-align:center}
.calc-stage-drinks img{display:block;width:48px;height:36px;object-fit:cover;border-radius:2px;border:1px solid rgba(255,255,255,.34)}
.calc-stage-drinks span{display:block;font-size:8px;line-height:1.25;margin-top:3px;color:#f6e8dc;white-space:nowrap}
.calc-stage-machine{position:absolute;z-index:3;bottom:13px;right:14px;padding:7px 9px;background:rgba(17,35,53,.81);color:#fff;font-size:9px;letter-spacing:.11em;font-weight:700;border-left:2px solid #e99862}
.calc-stage[data-offer="gourmande"] .calc-stage-machine{background:rgba(99,47,33,.88)}
.calc-shell .result-price{position:relative;isolation:isolate;overflow:hidden}
.calc-shell .result-price::before{content:"";position:absolute;inset:0;z-index:0;background:linear-gradient(115deg,#a54e27 0%,#79412f 70%,#5e3343 100%);opacity:0;transition:opacity .55s}
.calc-shell[data-offer="gourmande"] .result-price::before{opacity:1}
.calc-shell .result-price>*{position:relative;z-index:1}
.calc-shell[data-offer="gourmande"] .result-offer>span:first-child{color:#ad5b2c;font-weight:700}
.calc-shell.is-switching .calc-stage-story{animation:calc-story-arrive .65s cubic-bezier(.18,.75,.2,1) both}
.calc-shell.is-switching #result-total{animation:calc-total-arrive .65s cubic-bezier(.15,.75,.24,1) both}
.calc-shell.is-switching .calc-stage-drinks>div{animation:calc-drink-arrive .55s ease both}
.calc-shell.is-switching .calc-stage-drinks>div:nth-child(2){animation-delay:.06s}
.calc-shell.is-switching .calc-stage-drinks>div:nth-child(3){animation-delay:.12s}
.calc-shell.is-switching .calc-stage-drinks>div:nth-child(4){animation-delay:.18s}
@keyframes calc-story-arrive{from{opacity:.58;transform:translateY(9px)}to{opacity:1;transform:translateY(0)}}
@keyframes calc-total-arrive{0%{opacity:.45;transform:translateY(11px) scale(.97)}65%{opacity:1;transform:translateY(-3px) scale(1.02)}100%{opacity:1;transform:translateY(0) scale(1)}}
@keyframes calc-drink-arrive{from{opacity:0;transform:translateY(9px)}to{opacity:1;transform:translateY(0)}}

/* Les profils gustatifs sont explicites et l'intensité se lit instantanément. */
.coffee-types>.coffee-entry{display:grid;grid-template-columns:26px minmax(0,1fr) 90px;gap:8px;align-items:center;padding:11px 0}
.coffee-types>.coffee-entry>.coffee-number{grid-row:auto;align-self:start;padding-top:3px;color:#d4671e;font-size:11px;font-weight:700}
.coffee-profile{min-width:0}
.coffee-profile b{display:block;font-size:13px;line-height:1.3;color:#172943}
.coffee-profile small{display:block;margin-top:2px;font-size:10px;line-height:1.3;color:#657484}
.coffee-profile p{font-size:11px;line-height:1.4;margin:5px 0 0;color:#526272}
.coffee-profile p em{font-style:normal;color:#a05b34;font-weight:700}
.coffee-intensity{display:grid;grid-template-columns:1fr auto;gap:4px 7px;align-items:center;justify-content:end}
.coffee-intensity>span{grid-row:auto!important;grid-column:1/-1;text-align:right;font-size:8px;font-weight:700;letter-spacing:.12em;color:#806e5a}
.coffee-intensity>div{display:flex;gap:3px;align-items:center}
.coffee-intensity i{display:block;width:7px;height:18px;background:#d9cdbf;border-radius:1px}
.coffee-intensity i.on{background:#d4671e}
.coffee-intensity strong{font-size:12px;line-height:1;color:#172943}

@media(max-width:980px){
  .coffee-types>.coffee-entry{grid-template-columns:22px minmax(0,1fr) 86px}
}
@media(max-width:600px){
  .calculator-section .calc-tab{gap:6px;min-height:62px;padding:9px 8px}
  .calculator-section .calc-tab .calc-tab-number{font-size:20px}
  .calculator-section .calc-tab .calc-tab-copy strong{font-size:11px}
  .calculator-section .calc-tab .calc-tab-copy small{font-size:9px}
  .calculator-section .calc-tab .calc-tab-check{width:17px;height:17px;font-size:10px}
  .calc-stage{min-height:186px}
  .calc-stage-story{width:75%;min-height:186px;padding:15px 11px 12px}
  .calc-stage-photo{width:51%}
  .calc-stage h3{font-size:29px;margin-top:9px}
  .calc-stage p{font-size:10px;max-width:220px}
  .calc-stage-kicker{font-size:7.5px;letter-spacing:.06em;gap:5px}
  .calc-stage-drinks{gap:5px}
  .calc-stage-drinks>div{width:40px}
  .calc-stage-drinks img{width:40px;height:32px}
  .calc-stage-drinks span{font-size:7px}
  .calc-stage-machine{bottom:10px;right:8px;font-size:8px;padding:5px 6px}
  .coffee-types>.coffee-entry{grid-template-columns:20px minmax(0,1fr) 69px;gap:6px;padding:10px 0}
  .coffee-profile b{font-size:12px}
  .coffee-profile small{font-size:9px}
  .coffee-profile p{font-size:10px}
  .coffee-intensity>span{font-size:7px}
  .coffee-intensity i{width:5px;height:15px;gap:2px}
  .coffee-intensity>div{gap:2px}
  .coffee-intensity strong{font-size:10px}
}
@media(prefers-reduced-motion:reduce){
  .calculator-section .calc-tab,.calc-stage::before,.calc-stage-photo img,.calc-shell .result-price::before{transition:none!important}
  .calc-shell.is-switching .calc-stage-story,.calc-shell.is-switching #result-total,.calc-shell.is-switching .calc-stage-drinks>div{animation:none!important}
}
@media print{
  .calc-stage{display:none!important}
}
