/* Panier de devis — Studio Goodies */
.sgd-btn{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;padding:.75rem 1.4rem;border:1px solid currentColor;background:transparent;font-weight:700;cursor:pointer;border-radius:4px;text-decoration:none;line-height:1.2;transition:.15s}
.sgd-btn--primaire{background:#e50052;border-color:#e50052;color:#fff}
.sgd-btn--primaire:hover{background:#b90042;border-color:#b90042;color:#fff}
.sgd-btn--liste{padding:.5rem .9rem;font-size:.85rem;margin-top:.5rem;width:100%}
.sgd-btn[disabled]{opacity:.55;cursor:default}

/* mise en forme dans sgd-design.css */
.sgd-ajout{margin:1.5rem 0}
.sgd-ajout__label{display:block}
.sgd-ajout__ligne{display:flex;gap:.75rem;flex-wrap:wrap}



.sgd-page{max-width:1140px;margin:2rem auto}
.sgd-vide{text-align:center;padding:3rem 1rem}
.sgd-table{width:100%;border-collapse:collapse;margin-bottom:1.5rem}
.sgd-table th{text-align:left;font-size:.78rem;text-transform:uppercase;letter-spacing:.05em;color:#666;border-bottom:2px solid #e3e3e6;padding:.75rem .6rem}
.sgd-table td{border-bottom:1px solid #eee;padding:.9rem .6rem;vertical-align:middle}
.sgd-td-produit{display:flex;gap:.9rem;align-items:center}
.sgd-td-produit img{border-radius:6px;flex:0 0 auto}
.sgd-td-produit a{font-weight:700;text-decoration:none}
.sgd-td-produit small{display:block;color:#888;font-size:.78rem}
.sgd-td-conf{font-size:.88rem;color:#444;max-width:22rem}
.sgd-td-prix{font-weight:700;white-space:nowrap}
.sgd-qte{width:5.5rem;padding:.5rem;border:1px solid #ccc;border-radius:4px}
.sgd-retirer{border:0;background:none;font-size:1.5rem;line-height:1;color:#999;cursor:pointer;padding:.2rem .5rem}
.sgd-retirer:hover{color:#e50052}
.sgd-muted{color:#999}

.sgd-recap{display:flex;justify-content:space-between;align-items:center;gap:1rem;padding:1rem 1.2rem;background:#f4f4f5;border-radius:8px;margin-bottom:2rem;flex-wrap:wrap}
.sgd-recap strong{font-size:1.15rem}

.sgd-form{border:1px solid #e3e3e6;border-radius:8px;padding:1.6rem;background:#fff}
.sgd-form h2{margin-top:0}
.sgd-champs{display:grid;grid-template-columns:1fr 1fr;gap:1rem;margin-bottom:1.2rem}
.sgd-champs label{display:flex;flex-direction:column;gap:.35rem;font-size:.85rem;font-weight:700}
.sgd-champs input,.sgd-champs textarea{padding:.7rem;border:1px solid #ccc;border-radius:4px;font-weight:400;font-size:1rem}
.sgd-full{grid-column:1/-1}
.sgd-pot{position:absolute!important;left:-9999px}
.sgd-note{font-size:.8rem;color:#777;margin:.8rem 0 0}
.sgd-retour{margin-top:1rem;font-weight:700}
.sgd-retour.ok{color:#1b7f3b}
.sgd-retour.ko{color:#c62828}

.sgd-compteur{display:inline-block;min-width:1.4rem;padding:0 .35rem;border-radius:999px;background:#e50052;color:#fff;font-size:.75rem;text-align:center;line-height:1.4rem;margin-left:.3rem}
.sgd-toast{position:fixed;right:1.2rem;bottom:1.2rem;z-index:9999;background:#171719;color:#fff;padding:.9rem 1.2rem;border-radius:6px;box-shadow:0 6px 24px rgba(0,0,0,.25);opacity:0;transform:translateY(10px);transition:.25s}
.sgd-toast.visible{opacity:1;transform:none}

@media(max-width:780px){
 .sgd-champs{grid-template-columns:1fr}
 .sgd-table thead{display:none}
 .sgd-table tr{display:block;border-bottom:1px solid #eee;padding:.6rem 0}
 .sgd-table td{display:flex;justify-content:space-between;border:0;padding:.35rem .2rem}
 .sgd-td-produit{justify-content:flex-start}
}

/* Modification d'une ligne */
.sgd-modifier{font-size:.85rem;text-decoration:underline;white-space:nowrap;color:#e50052}
.sgd-modifier:hover{color:#b90042}
.sgd-en-cours{opacity:.55;transition:opacity .15s}
.sgd-avis{margin:1rem 0;padding:1rem 1.2rem;border-left:4px solid #e50052;background:#fdf2f6;font-size:.92rem;border-radius:0 6px 6px 0}
.sgd-avis strong{display:block;margin-bottom:.2rem}

/* Notification avec lien */
.sgd-toast{display:flex;align-items:center;gap:1rem;max-width:min(92vw,26rem)}
.sgd-toast__lien{color:#d9ff4f;font-weight:700;text-decoration:underline;white-space:nowrap}
.sgd-toast__lien:hover{color:#fff}
