/* HomeCoffre Configurateur v2 — Design from claude.ai/design */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html,body{font-family:'Outfit',system-ui,-apple-system,sans-serif;background:#fff;color:#0a0a0a;-webkit-font-smoothing:antialiased;min-height:100vh}
img{display:block;max-width:100%}
button,a{font-family:'Outfit',sans-serif}
button:focus-visible,a:focus-visible,input:focus-visible{outline:2px solid #2563eb;outline-offset:2px;border-radius:6px}

/* Noise texture */
.cfg-noise{position:fixed;inset:0;z-index:0;pointer-events:none;opacity:.025;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E")}

/* App wrapper */
#app{position:relative;z-index:1;max-width:960px;margin:0 auto;padding:24px 24px 80px;min-height:100vh}

/* Screens */
.screen{display:none}
.screen.active{display:block;animation:screenEnter 350ms cubic-bezier(.34,1.56,.64,1) both}
.screen.exiting{display:block;animation:screenExit 250ms ease-in both}

/* Card grids */
.cfg-g6,.cfg-g4{display:grid;gap:16px;grid-template-columns:repeat(2,1fr)}
.cfg-g3{display:grid;gap:16px;grid-template-columns:1fr}
.cfg-alts{display:grid;gap:20px;grid-template-columns:1fr}
@media(min-width:720px){
  .cfg-g6{grid-template-columns:repeat(3,1fr)}
  .cfg-g3{grid-template-columns:repeat(3,1fr)}
  .cfg-alts{grid-template-columns:repeat(2,1fr)}
}

/* Card stagger animations */
.cfg-grid>*{animation:cardIn 350ms cubic-bezier(.34,1.56,.64,1) both}
.cfg-grid>*:nth-child(1){animation-delay:40ms}
.cfg-grid>*:nth-child(2){animation-delay:90ms}
.cfg-grid>*:nth-child(3){animation-delay:140ms}
.cfg-grid>*:nth-child(4){animation-delay:190ms}
.cfg-grid>*:nth-child(5){animation-delay:240ms}
.cfg-grid>*:nth-child(6){animation-delay:290ms}

/* Choice cards */
.choice-card{position:relative;display:block;width:100%;text-align:left;cursor:pointer;background:#fff;border:1.5px solid #e2e8f0;border-radius:16px;padding:24px 20px;box-shadow:0 1px 3px rgba(0,0,0,.06);transition:all 220ms cubic-bezier(.34,1.56,.64,1)}
.choice-card:hover{transform:translateY(-4px);box-shadow:0 12px 32px rgba(37,99,235,.12);border-color:#93c5fd}
.choice-card.selected{border:2px solid #2563eb;background:#eff6ff;box-shadow:0 0 0 4px rgba(37,99,235,.1)}
.choice-check{display:none;position:absolute;top:12px;right:12px;width:24px;height:24px;border-radius:50%;background:#2563eb;align-items:center;justify-content:center;animation:checkPop 280ms cubic-bezier(.34,1.56,.64,1) both}
.choice-card.selected .choice-check{display:flex}
.choice-check svg{width:13px;height:13px}

/* Reco product grid */
.cfg-reco-grid{display:grid;grid-template-columns:1fr}
.cfg-reco-img{min-height:200px;border-bottom:1px solid #e2e8f0;background:#f8fafc;display:flex;flex-direction:column;align-items:center;justify-content:center;overflow:hidden}
.cfg-reco-img img{width:100%;height:100%;object-fit:cover}
@media(min-width:720px){
  .cfg-reco-grid{grid-template-columns:300px 1fr}
  .cfg-reco-img{min-height:100%;border-bottom:none;border-right:1px solid #e2e8f0}
}

/* Progress */
.progress-track{position:relative;height:2px;background:#e2e8f0;border-radius:2px;overflow:hidden}
.progress-fill{position:absolute;left:0;top:0;height:100%;background:#2563eb;border-radius:2px;transition:width 350ms cubic-bezier(.34,1.56,.64,1)}
.progress-label{font-size:11px;text-transform:uppercase;letter-spacing:.08em;background:transparent;border:none;padding:0;cursor:pointer;transition:color 250ms ease;font-family:'Outfit'}

/* Trust bar */
.trust-bar{display:flex;align-items:center;justify-content:center;gap:10px 22px;flex-wrap:wrap;margin:24px 0 8px;padding:16px 0;border-top:1px solid #f1f5f9;border-bottom:1px solid #f1f5f9}
.trust-item{display:inline-flex;align-items:center;gap:7px;font-size:12.5px;font-weight:500;color:#64748b}

/* Buttons */
.btn-primary{display:inline-flex;align-items:center;gap:8px;background:linear-gradient(135deg,#2563eb 0%,#4f46e5 100%);color:#fff;text-decoration:none;font-weight:600;font-size:15px;padding:14px 32px;border-radius:10px;box-shadow:0 4px 14px rgba(37,99,235,.3);border:none;cursor:pointer;transition:all 220ms cubic-bezier(.34,1.56,.64,1)}
.btn-primary:hover{transform:translateY(-2px);box-shadow:0 8px 24px rgba(37,99,235,.4)}
.btn-secondary{background:transparent;border:1.5px solid #e2e8f0;color:#64748b;font-weight:600;font-size:15px;padding:13px 24px;border-radius:10px;cursor:pointer;transition:all 180ms ease}
.btn-secondary:hover{border-color:#94a3b8;color:#0a0a0a}
.btn-ghost{background:transparent;border:none;color:#94a3b8;font-weight:500;font-size:13px;cursor:pointer;text-decoration:underline;text-underline-offset:3px}
.btn-ghost:hover{color:#2563eb}
.btn-cart{display:inline-block;background:#2563eb;color:#fff;text-decoration:none;font-family:'Outfit';font-weight:700;font-size:14px;padding:12px 22px;border-radius:8px;transition:background 180ms ease;border:none;cursor:pointer}
.btn-cart:hover{background:#1d4ed8}

/* Nav row */
.nav-row{display:flex;align-items:center;gap:12px;margin-top:28px}

/* Badge */
.badge{display:inline-flex;align-items:center;gap:5px;background:#f1f5f9;color:#64748b;border-radius:100px;font-size:12px;font-weight:500;padding:5px 14px}
.badge-pro{display:none;background:#eff6ff;color:#2563eb;font-size:11px;font-weight:600;letter-spacing:.04em;padding:5px 11px;border-radius:100px;align-items:center;gap:5px}
.badge-pro.visible{display:inline-flex}

/* Product cards */
.product-featured{margin:24px 0;border:2px solid #2563eb;border-radius:20px;overflow:hidden;box-shadow:0 8px 40px rgba(37,99,235,.14);transition:all 240ms cubic-bezier(.34,1.56,.64,1)}
.product-featured:hover{transform:translateY(-6px);box-shadow:0 20px 56px rgba(37,99,235,.2)}
.product-alt{background:#fff;border:1.5px solid #e2e8f0;border-radius:20px;overflow:hidden;box-shadow:0 4px 24px rgba(0,0,0,.06);transition:all 240ms cubic-bezier(.34,1.56,.64,1)}
.product-alt:hover{transform:translateY(-6px);box-shadow:0 16px 48px rgba(0,0,0,.12)}

/* Input */
.cfg-input{padding:12px 14px;border:1.5px solid #e2e8f0;border-radius:10px;font-size:14px;color:#0a0a0a;outline:none;min-width:200px;font-family:'Outfit'}
.cfg-input:focus{border-color:#2563eb;box-shadow:0 0 0 3px rgba(37,99,235,.12)}

/* Loading dots */
.dot{width:9px;height:9px;border-radius:50%;background:#2563eb;display:inline-block;animation:dotPulse 1s ease-in-out infinite}
.dot:nth-child(2){animation-delay:200ms}
.dot:nth-child(3){animation-delay:400ms}

/* Animations */
@keyframes cardIn{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}
@keyframes screenEnter{from{opacity:0;transform:translateX(20px)}to{opacity:1;transform:translateX(0)}}
@keyframes screenExit{from{opacity:1;transform:translateX(0)}to{opacity:0;transform:translateX(-20px)}}
@keyframes checkPop{0%{opacity:0;transform:scale(.4)}60%{transform:scale(1.15)}100%{opacity:1;transform:scale(1)}}
@keyframes dotPulse{0%,80%,100%{opacity:.25;transform:scale(.8)}40%{opacity:1;transform:scale(1)}}
