/* ==========================================================================
   UniDrine — boutique, espace client et intranet
   Complète css/style.css (mêmes couleurs, typographie Nunito, arrondis).
   ========================================================================== */

:root {
  --green: #12805C;
  --green-bg: #E5F6EE;
  --amber: #A15C00;
  --amber-bg: #FFF2DC;
  --red: #C0262D;
  --red-bg: #FDECEC;
  --soft: #F6F8FE;
}

/* ---------- Utilitaires ---------- */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.center { text-align: center; }
.lead { font-size: 1.15rem; }
.eyebrow { margin: 0 0 .6rem; color: var(--blue); font-weight: 700; font-size: .9rem; letter-spacing: .04em; text-transform: uppercase; }
.page-title { font-size: clamp(1.7rem, 3.2vw, 2.3rem); margin-bottom: .75rem; }
.h3 { font-size: 1.15rem; margin-bottom: .9rem; }
.h4 { font-size: 1rem; margin-bottom: .5rem; }
.section--tight { padding-block: clamp(2rem, 4vw, 3rem); }
.container.narrow { max-width: 720px; }
.ico { width: 1.15em; height: 1.15em; flex: none; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .88em; background: var(--tint); padding: .1em .45em; border-radius: 6px; color: var(--navy); word-break: break-all; }
.actions { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.app main { min-height: 55vh; }

/* ---------- Boutons complémentaires ---------- */
.btn { cursor: pointer; line-height: 1.2; justify-content: center; }
.btn .ico { width: 1.1em; height: 1.1em; }
.btn--ghost { border: 1.5px solid var(--line); }
.btn--soft { background: var(--tint); color: var(--blue); }
.btn--soft:hover { background: #dfe8ff; color: var(--blue-deep); }
.btn--danger { background: var(--red); color: #fff; }
.btn--danger:hover { background: #a01f25; color: #fff; }
.btn--sm { padding: .5rem .9rem; font-size: .85rem; }
.btn--block { width: 100%; }
.btn[disabled], .btn.is-busy { opacity: .6; pointer-events: none; }
.icon-btn {
  display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px;
  border: 0; background: var(--tint); color: var(--blue); cursor: pointer; transition: background .15s, color .15s, transform .15s;
}
.icon-btn:hover { background: var(--blue); color: #fff; }
.icon-btn .ico { width: 20px; height: 20px; }
.icon-btn--sm { width: 34px; height: 34px; border-radius: 10px; }
.icon-btn--sm .ico { width: 17px; height: 17px; }
.link-btn { background: none; border: 0; padding: 0; color: var(--blue); font: inherit; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: .3rem; }
.link-btn--danger { color: var(--red); }
.link-back { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; text-decoration: none; }

/* ---------- Badges & alertes ---------- */
.badge { display: inline-flex; align-items: center; padding: .2rem .65rem; border-radius: 999px; font-size: .78rem; font-weight: 700; white-space: nowrap; vertical-align: middle; }
.badge--blue { background: var(--tint); color: var(--blue); }
.badge--green { background: var(--green-bg); color: var(--green); }
.badge--amber { background: var(--amber-bg); color: var(--amber); }
.badge--red { background: var(--red-bg); color: var(--red); }
.badge--muted { background: #EEF1F6; color: var(--muted); }

.alert { padding: .85rem 1.1rem; border-radius: var(--radius-s); margin-bottom: 1rem; font-weight: 600; font-size: .95rem; border: 1px solid transparent; }
.alert--success { background: var(--green-bg); color: #0d5c42; border-color: #c4ead8; }
.alert--error { background: var(--red-bg); color: #9b1c1c; border-color: #f6caca; }
.alert--info { background: var(--tint); color: var(--navy); border-color: var(--line); }
.alert--warning { background: var(--amber-bg); color: #7a4600; border-color: #f6dfb4; }
.flash-zone { padding-top: 1.25rem; }
.inline-form { display: inline; margin-left: .5rem; }

/* ---------- Entête : boutique ---------- */
.header__quick { display: none; align-items: center; gap: .4rem; margin-left: auto; }
.quick-link { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--radius-s); color: var(--navy); }
.quick-link .ico { width: 24px; height: 24px; }
.quick-link__count, .shopbar .count {
  display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px;
  background: var(--blue); color: #fff; font-size: .72rem; font-weight: 800;
}
.quick-link__count { position: absolute; top: 3px; right: 1px; }

.shopbar { border-top: 1px solid var(--line); background: rgba(246, 248, 254, .92); }
.shopbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 50px; }
/* La barre de la boutique ne déborde jamais sur les boutons de droite : elle rétrécit puis défile. */
.shopbar__nav { display: flex; flex: 1 1 auto; min-width: 0; gap: .25rem; overflow-x: auto; scrollbar-width: none; }
.shopbar__nav a { flex-shrink: 0; }
.shopbar__tools { flex-shrink: 0; }
.shopbar__nav::-webkit-scrollbar { display: none; }
.shopbar__nav .short { display: none; }
.shopbar__nav a, .shopbar__link {
  display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .8rem; border-radius: 999px;
  color: var(--ink); font-weight: 600; font-size: .9rem; text-decoration: none; white-space: nowrap;
}
.shopbar__nav a:hover, .shopbar__link:hover { color: var(--blue); }
.shopbar__nav a[aria-current="page"], .shopbar__link[aria-current="page"] { background: #fff; color: var(--blue); box-shadow: 0 1px 0 var(--line), 0 4px 14px -8px rgba(26, 63, 224, .35); }
.shopbar__tools { display: flex; gap: .25rem; }
.shopbar__link .ico { width: 19px; height: 19px; }
@media (max-width: 1080px) {
  .shopbar__nav .long { display: none; }
  .shopbar__nav .short { display: inline; }
}

/* ---------- Boutique : en-tête ---------- */
.shop-hero {
  padding-block: clamp(2.5rem, 5vw, 4rem) clamp(1.5rem, 3vw, 2.25rem);
  background:
    radial-gradient(55% 90% at 100% 0%, rgba(61, 123, 255, .16), transparent 60%),
    radial-gradient(35% 70% at 0% 100%, rgba(26, 63, 224, .07), transparent 60%), var(--bg);
}
.shop-hero--alt { padding-bottom: clamp(2rem, 4vw, 3rem); }
.shop-hero__title { font-size: clamp(2rem, 4.4vw, 3.1rem); line-height: 1.08; max-width: 18em; margin-bottom: 1rem; }
.shop-hero__lead { font-size: 1.15rem; color: var(--muted); max-width: 40em; }
.reassure { list-style: none; display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.5rem; }
.reassure li { display: inline-flex; align-items: center; gap: .5rem; padding: .5rem .9rem; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 600; font-size: .9rem; color: var(--navy); }
.reassure .ico { color: var(--blue); }
.anchor-nav { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem; }
.anchor-nav a { padding: .55rem 1rem; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 700; text-decoration: none; font-size: .92rem; }
.anchor-nav a:hover { border-color: var(--blue); }

.cat-tabs { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .25rem; margin-bottom: 1.25rem; scrollbar-width: thin; }
.cat-tabs a {
  display: inline-flex; align-items: center; gap: .5rem; padding: .65rem 1.1rem; border-radius: 999px; white-space: nowrap;
  background: #fff; border: 1.5px solid var(--line); color: var(--navy); font-weight: 700; text-decoration: none; transition: border-color .15s, background .15s;
}
.cat-tabs a svg { width: 19px; height: 19px; color: var(--blue); }
.cat-tabs a:hover { border-color: var(--blue); }
.cat-tabs a[aria-current="page"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.cat-tabs a[aria-current="page"] svg { color: var(--sky); }

.filters { display: grid; grid-template-columns: 1fr auto auto auto; gap: .6rem; margin-bottom: 1rem; }
.filters__search { position: relative; }
.filters__search .ico { position: absolute; left: .9rem; top: 50%; transform: translateY(-50%); color: var(--muted); }
.filters__search input[type="search"] { padding-left: 2.6rem; }
.filters select, .filters input { height: 46px; }
.filters__submit { height: 46px; }
.results-count { color: var(--muted); font-size: .92rem; margin-bottom: 1.25rem; }

/* ---------- Cartes produit ---------- */
.product-grid { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1.25rem; }
.product-card {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: border-color .2s, box-shadow .2s, transform .2s;
}
.product-card:hover { border-color: rgba(36, 87, 255, .45); box-shadow: var(--shadow); transform: translateY(-3px); }
.product-card.is-out { opacity: .72; }
.product-card__media { position: relative; display: block; aspect-ratio: 1; background: var(--soft); overflow: hidden; }
.product-card__media img { width: 100%; height: 100%; object-fit: contain; padding: 8%; transition: transform .4s ease; }
.product-card:hover .product-card__media img { transform: scale(1.04); }
.product-card__placeholder { display: grid; place-items: center; width: 100%; height: 100%; background: linear-gradient(145deg, #F3F6FF, #E4ECFF); }
.product-card__placeholder svg { width: 34%; height: 34%; color: var(--blue); stroke-width: 1.4; opacity: .7; }
.product-card__badges { position: absolute; top: .75rem; left: .75rem; display: flex; flex-wrap: wrap; gap: .35rem; }
.product-card__body { display: flex; flex-direction: column; flex: 1; padding: 1rem 1.1rem 1.1rem; }
.product-card__brand { margin: 0 0 .15rem; font-size: .8rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.product-card__title { font-size: 1.02rem; line-height: 1.3; font-weight: 800; margin-bottom: .25rem; }
.product-card__title a { color: var(--navy); text-decoration: none; }
.product-card__title a::after { content: ""; position: absolute; inset: 0; }
.product-card { position: relative; }
.product-card form, .product-card .icon-btn { position: relative; z-index: 1; }
.product-card__grade { margin: 0; font-size: .85rem; color: var(--muted); }
.product-card__foot { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-top: auto; padding-top: .75rem; }
.price { margin: 0; display: flex; align-items: baseline; flex-wrap: wrap; gap: .1rem .5rem; }
.price__now { font-size: 1.25rem; font-weight: 800; color: var(--navy); letter-spacing: -.01em; }
.price__was { color: var(--muted); font-size: .9rem; }
.price--lg .price__now { font-size: 2rem; }
.price--lg { align-items: center; gap: .6rem; }
.price-mention { color: var(--muted); font-size: .85rem; margin: .25rem 0 1rem; }
.stock { margin: .4rem 0 0; font-size: .82rem; font-weight: 700; color: var(--green); }
.stock::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: currentColor; margin-right: .4rem; vertical-align: middle; }
.stock--low { color: var(--amber); }
.stock--out { color: var(--muted); }

.empty { text-align: center; padding: 3rem 1.5rem; background: var(--soft); border: 1.5px dashed var(--line); border-radius: var(--radius-l); }
.empty__title { font-size: 1.2rem; font-weight: 800; color: var(--navy); margin-bottom: .4rem; }
.empty .btn { margin-top: .75rem; }

.pager { display: flex; justify-content: center; align-items: center; gap: 1rem; margin-top: 2rem; font-weight: 600; }
.pager a { text-decoration: none; }

.cross { background: var(--tint); }
.cross__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.cross-card {
  display: flex; align-items: center; gap: 1rem; padding: 1.3rem 1.4rem; border-radius: var(--radius); background: #fff;
  border: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
.cross-card:hover { border-color: var(--blue); box-shadow: var(--shadow); color: var(--ink); }
.cross-card > span:nth-child(2) { display: grid; gap: .2rem; flex: 1; }
.cross-card strong { color: var(--navy); font-size: 1.05rem; }
.cross-card > span:nth-child(2) span { color: var(--muted); font-size: .93rem; }
.cross-card__icon { display: grid; place-items: center; width: 52px; height: 52px; flex: none; border-radius: 14px; background: var(--grad); color: #fff; }
.cross-card__icon .ico { width: 24px; height: 24px; }
.cross-card__arrow { color: var(--blue); width: 22px; height: 22px; }

/* ---------- Fiche produit ---------- */
.breadcrumb { display: flex; flex-wrap: wrap; gap: .45rem; font-size: .9rem; color: var(--muted); margin-bottom: 1.5rem; }
.breadcrumb a { text-decoration: none; font-weight: 600; }
.product { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.gallery__main { aspect-ratio: 1; border-radius: var(--radius-l); background: var(--soft); border: 1px solid var(--line); overflow: hidden; display: grid; place-items: center; }
.gallery__main img { width: 100%; height: 100%; object-fit: contain; padding: 6%; }
.gallery__placeholder svg { width: 120px; height: 120px; color: var(--blue); stroke-width: 1.2; opacity: .55; }
.gallery__thumbs { display: flex; gap: .6rem; margin-top: .75rem; overflow-x: auto; }
.gallery__thumbs button { flex: none; width: 76px; height: 76px; padding: 4px; border-radius: 12px; border: 2px solid var(--line); background: var(--soft); cursor: pointer; }
.gallery__thumbs button[aria-current="true"] { border-color: var(--blue); }
.gallery__thumbs img { width: 100%; height: 100%; object-fit: contain; }
.product__info { position: sticky; top: 140px; }
.product__badges { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .8rem; }
.product__brand { margin: 0; color: var(--muted); font-weight: 700; text-transform: uppercase; font-size: .85rem; letter-spacing: .05em; }
.product__title { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: .2rem 0 .6rem; }
.product__lead { color: var(--muted); font-size: 1.05rem; }
.buy { display: flex; gap: .6rem; margin: 1.25rem 0 1.5rem; }
.buy__qty { width: 88px; height: 56px; }
.buy .btn { flex: 1; }
.perks { list-style: none; display: grid; gap: .1rem; border: 1px solid var(--line); border-radius: var(--radius); padding: .4rem 1.1rem; }
.perks li { display: flex; gap: .8rem; align-items: flex-start; padding: .75rem 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.perks li:last-child { border-bottom: 0; }
.perks .ico { color: var(--blue); width: 22px; height: 22px; margin-top: .1rem; }
.perks small { color: var(--muted); }
.product__details { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); margin-top: clamp(2.5rem, 5vw, 4rem); }
.prose { color: var(--ink); line-height: 1.7; }
.specs { margin: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.specs div { display: grid; grid-template-columns: 40% 1fr; gap: 1rem; padding: .7rem 1.1rem; }
.specs div:nth-child(odd) { background: var(--soft); }
.specs dt { color: var(--muted); font-weight: 600; }
.specs dd { margin: 0; font-weight: 600; color: var(--navy); }

/* ---------- Panier ---------- */
.cart { display: grid; grid-template-columns: 1fr 380px; gap: clamp(1.5rem, 3vw, 2.5rem); align-items: start; }
.cart-list { list-style: none; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; margin-bottom: 1rem; }
.cart-line { display: grid; grid-template-columns: 80px 1fr auto auto; gap: 1rem; align-items: center; padding: 1rem 1.1rem; border-bottom: 1px solid var(--line); }
.cart-line:last-child { border-bottom: 0; }
.cart-line__media { display: grid; place-items: center; width: 80px; height: 80px; border-radius: 12px; background: var(--soft); color: var(--blue); overflow: hidden; }
.cart-line__media img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.cart-line__media .ico { width: 30px; height: 30px; }
.cart-line__name { font-weight: 800; color: var(--navy); text-decoration: none; }
.cart-line__info p { margin: .2rem 0 0; }
.cart-line__qty select { width: 96px; }
.cart-line__total { margin: 0; font-weight: 800; color: var(--navy); min-width: 90px; text-align: right; }
.summary { position: sticky; top: 140px; padding: 1.5rem; border-radius: var(--radius-l); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.ship-options { display: grid; gap: .55rem; margin-bottom: 1.25rem; }
.ship-option { display: flex; align-items: center; gap: .8rem; padding: .8rem .95rem; border: 1.5px solid var(--line); border-radius: 14px; cursor: pointer; transition: border-color .15s, background .15s; }
.ship-option:has(input:checked) { border-color: var(--blue); background: var(--soft); }
.ship-option input { accent-color: var(--blue); width: 18px; height: 18px; flex: none; }
.ship-option__body { display: grid; flex: 1; line-height: 1.3; }
.ship-option__name { font-weight: 700; color: var(--navy); }
.ship-option__delay { font-size: .8rem; color: var(--muted); }
.ship-option__price { font-weight: 800; color: var(--navy); white-space: nowrap; }
.totals { margin: 0 0 .25rem; display: grid; gap: .45rem; }
.totals div { display: flex; justify-content: space-between; }
.totals dt { color: var(--muted); }
.totals dd { margin: 0; font-weight: 700; }
.totals__grand { padding-top: .6rem; border-top: 1px solid var(--line); font-size: 1.2rem; }
.totals__grand dt, .totals__grand dd { color: var(--navy); font-weight: 800; }
.secure-note { margin: .75rem 0 0; font-size: .82rem; color: var(--muted); text-align: center; }
.summary__login { font-weight: 600; margin-bottom: .9rem; }
.summary .btn--ghost { margin-top: .6rem; }

/* ---------- Formulaires ---------- */
.form { display: grid; gap: .1rem; }
.field { display: grid; gap: .35rem; margin-bottom: 1rem; align-content: start; }
.field label, .field > span { font-weight: 700; font-size: .92rem; color: var(--navy); }
.req { color: var(--red); }
input[type="text"], input[type="email"], input[type="password"], input[type="tel"], input[type="url"], input[type="number"],
input[type="search"], input[type="date"], select, textarea {
  width: 100%; padding: .72rem .9rem; border: 1.5px solid var(--line); border-radius: 12px; background: #fff;
  font: inherit; font-size: 1rem; color: var(--ink); transition: border-color .15s, box-shadow .15s;
}
textarea { resize: vertical; min-height: 2.8em; }
select { appearance: none; padding-right: 2.2rem; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235A6787' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right .75rem center / 16px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(61, 123, 255, .16); }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--red); }
input[type="file"] { font: inherit; padding: .6rem; border: 1.5px dashed var(--line); border-radius: 12px; width: 100%; background: var(--soft); }
.field__help { color: var(--muted); font-size: .84rem; }
.field__error { color: var(--red); font-size: .86rem; font-weight: 700; }
.field--check { display: flex; align-items: flex-start; gap: .65rem; }
.field--check input { width: 20px; height: 20px; margin-top: .15rem; accent-color: var(--blue); flex: none; }
.field--check label { font-weight: 600; font-size: .93rem; color: var(--ink); display: block; }
.field--check label .field__help { display: block; margin-top: .1rem; font-weight: 400; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.form__row--3 { grid-template-columns: repeat(3, 1fr); }
.form__aside { margin: -.4rem 0 1rem; text-align: right; font-size: .9rem; }
.form--inline { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .5rem 1rem; margin-bottom: 1rem; }
.form--inline .field { flex: 1 1 220px; margin-bottom: 0; }
.form--inline .field--check { flex: 1 1 100%; }

/* ---------- Connexion / inscription ---------- */
.auth { display: grid; grid-template-columns: minmax(0, 480px) minmax(0, 340px); justify-content: center; gap: 2rem; align-items: start; }
.auth--wide { grid-template-columns: minmax(0, 640px); }
.auth__card { padding: clamp(1.5rem, 4vw, 2.5rem); border-radius: var(--radius-l); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.auth__side { padding: 1.75rem; border-radius: var(--radius-l); background: var(--tint); }

.thanks { text-align: center; padding: 2rem 0; }
.thanks__icon { display: inline-grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; background: var(--green-bg); color: var(--green); margin-bottom: 1.25rem; }
.thanks__icon .ico { width: 38px; height: 38px; stroke-width: 2.6; }
.thanks .actions { justify-content: center; margin-top: 1.5rem; }

/* ---------- Offres (abonnements) ---------- */
.offers-block + .offers-block { padding-top: 0; }
.offers-block__head { display: flex; gap: 1.1rem; align-items: flex-start; margin-bottom: 1.75rem; }
.offers-block__head .section__title { margin-bottom: .35rem; font-size: clamp(1.5rem, 2.6vw, 2rem); }
.offers-block__icon { display: grid; place-items: center; width: 54px; height: 54px; flex: none; border-radius: 16px; background: var(--grad); color: #fff; }
.offers-block__icon .ico { width: 26px; height: 26px; }
.offer-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(3, 1fr); align-items: stretch; margin-bottom: 1.5rem; }
.offer-grid--1 { grid-template-columns: minmax(0, 420px); }
.offer-grid--2 { grid-template-columns: repeat(2, minmax(0, 420px)); }
.offer {
  position: relative; display: flex; flex-direction: column; padding: 1.75rem 1.6rem 1.6rem; border-radius: var(--radius-l);
  background: #fff; border: 1.5px solid var(--line); transition: border-color .2s, box-shadow .2s;
}
.offer:hover { border-color: rgba(36, 87, 255, .4); box-shadow: var(--shadow); }
.offer--highlight { border-color: var(--blue); box-shadow: var(--shadow); }
.offer__flag { position: absolute; top: -13px; left: 1.4rem; padding: .25rem .8rem; border-radius: 999px; background: var(--grad); color: #fff; font-size: .78rem; font-weight: 800; }
.offer__name { font-size: 1.35rem; }
.offer__desc { color: var(--muted); font-size: .95rem; margin: .35rem 0 0; }
.offer__price { margin: 1rem 0 .35rem; display: flex; align-items: baseline; gap: .3rem; }
.offer__terms { display: inline-flex; align-items: center; gap: .35rem; margin: 0 0 1.1rem; font-size: .85rem; font-weight: 700; color: var(--blue); }
.offer__terms .ico { width: 16px; height: 16px; }
.offer__price strong { font-size: 2.1rem; color: var(--navy); letter-spacing: -.02em; }
.offer__price span { color: var(--muted); font-weight: 600; }
.offer__features { list-style: none; display: grid; gap: .5rem; margin-bottom: 1.25rem; }
.offer__features li { display: flex; gap: .55rem; align-items: flex-start; font-size: .95rem; }
.offer__features .ico { color: var(--green); width: 18px; height: 18px; margin-top: .2rem; stroke-width: 3; }
.offer__form { margin-top: auto; display: grid; gap: .1rem; }
.offer__form .field { margin-bottom: .75rem; }
.offer__form label { font-size: .85rem; }
.field--consent label { font-weight: 500; font-size: .8rem; color: var(--muted); }
.field--consent input { width: 17px; height: 17px; }

.how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.how__step { padding: 1.5rem; border-radius: var(--radius); background: var(--navy); color: rgba(255, 255, 255, .75); }
.how__step span { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--grad); color: #fff; font-weight: 800; margin-bottom: .9rem; }
.how__step h3 { color: #fff; font-size: 1.1rem; margin-bottom: .4rem; }
.how__step p { font-size: .95rem; }

/* ---------- Espace client ---------- */
.account { padding-block: clamp(1.75rem, 4vw, 3rem) clamp(3rem, 6vw, 5rem); background: linear-gradient(var(--soft), #fff 240px); }
.account__grid { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(1.25rem, 3vw, 2.5rem); align-items: start; }
.account__side { position: sticky; top: 140px; }
.account__hello { color: var(--muted); margin-bottom: .75rem; padding-left: .9rem; }
.account__hello strong { color: var(--navy); }
.side-nav { display: grid; gap: .15rem; padding: .5rem; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.side-nav a, .side-nav button {
  display: flex; align-items: center; gap: .7rem; padding: .7rem .9rem; border-radius: 12px; border: 0; background: none; width: 100%;
  color: var(--ink); font: inherit; font-weight: 600; font-size: .95rem; text-decoration: none; cursor: pointer; text-align: left;
}
.side-nav a:hover, .side-nav button:hover { background: var(--soft); color: var(--blue); }
.side-nav a[aria-current="page"] { background: var(--tint); color: var(--blue); }
.side-nav .ico { width: 20px; height: 20px; color: var(--blue); }
.side-nav form { border-top: 1px solid var(--line); margin-top: .3rem; padding-top: .3rem; }
.side-nav button .ico { color: var(--muted); }
.account__main, .account__side, .split-2 > *, .edit-grid > * { min-width: 0; }

.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 1.5rem; }
.tile {
  display: grid; gap: .2rem; align-content: start; padding: 1.2rem 1.25rem; border-radius: var(--radius); background: #fff;
  border: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
a.tile:hover { border-color: var(--blue); box-shadow: var(--shadow); color: var(--ink); }
.tile__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--tint); color: var(--blue); margin-bottom: .5rem; }
.tile__icon .ico { width: 21px; height: 21px; }
.tile__value { font-size: 1.85rem; font-weight: 800; color: var(--navy); line-height: 1.1; letter-spacing: -.01em; }
.tile__value--sm { font-size: 1.25rem; }
.tile__label { color: var(--muted); font-size: .88rem; font-weight: 600; }
.tile__hint { color: var(--amber); font-size: .8rem; font-weight: 700; }

.panel { padding: clamp(1.1rem, 2.5vw, 1.6rem); border-radius: var(--radius); background: #fff; border: 1px solid var(--line); margin-bottom: 1.25rem; }
.panel__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: .6rem; }
.panel__head a { font-weight: 700; font-size: .9rem; text-decoration: none; display: inline-flex; align-items: center; gap: .3rem; }
.panel__head .h3 { margin-bottom: 0; }
.panel--row { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.split-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 1.25rem; align-items: start; }
.split-2--wide { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }

.rows { list-style: none; }
.rows > li + li { border-top: 1px solid var(--line); }
.row-link { display: grid; grid-template-columns: 1fr auto 120px; gap: 1rem; align-items: center; padding: .8rem .2rem; text-decoration: none; color: var(--ink); }
.row-link:hover { color: var(--ink); background: var(--soft); border-radius: 10px; }
.row-link > span:first-child { display: grid; min-width: 0; }
.row-link strong { color: var(--navy); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-link small { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-link__amount { text-align: right; font-weight: 800; color: var(--navy); display: grid; }
.row-link__amount small { font-weight: 600; }
.rows--plain .line { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 0; }
.rows--plain .line > span:first-child { display: grid; }
.rows--plain .line small { color: var(--muted); }
.line--total { font-weight: 800; color: var(--navy); font-size: 1.1rem; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; margin-bottom: 1rem; }
.panel .table-wrap { border: 0; border-radius: 0; margin: 0 -.2rem 1rem; }
.table { width: 100%; border-collapse: collapse; font-size: .94rem; }
.table th { text-align: left; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; padding: .8rem 1rem; background: var(--soft); border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: .8rem 1rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tfoot td { padding: .6rem 1rem; border-top: 1px solid var(--line); color: var(--muted); }
.table tfoot .strong td { color: var(--navy); font-weight: 800; font-size: 1.05rem; }
.table a { font-weight: 600; }
.table .num { text-align: right; white-space: nowrap; }
.table .num small { color: var(--muted); }
.table--compact td { padding: .45rem .7rem; }
.table tr.is-muted td { opacity: .6; }

.progress { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); margin: 1.25rem 0 1.5rem; counter-reset: s; }
.progress li { position: relative; display: grid; justify-items: center; gap: .45rem; text-align: center; font-size: .88rem; font-weight: 700; color: var(--muted); }
.progress li::before { content: ""; position: absolute; top: 15px; left: -50%; width: 100%; height: 3px; background: var(--line); z-index: 0; }
.progress li:first-child::before { display: none; }
.progress li.is-done::before { background: var(--blue); }
.progress__dot { position: relative; z-index: 1; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #fff; border: 3px solid var(--line); color: transparent; }
.progress__dot .ico { width: 16px; height: 16px; stroke-width: 3.2; }
.progress li.is-done { color: var(--navy); }
.progress li.is-done .progress__dot { background: var(--blue); border-color: var(--blue); color: #fff; }
.progress li.is-current .progress__dot { box-shadow: 0 0 0 6px rgba(61, 123, 255, .2); }

.callout { display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.25rem; border-radius: var(--radius); background: var(--tint); margin-bottom: 1.25rem; flex-wrap: wrap; }
.callout > div { flex: 1 1 260px; }
.callout__icon { display: grid; place-items: center; width: 46px; height: 46px; flex: none; border-radius: 14px; background: #fff; color: var(--blue); }
.callout__icon .ico { width: 23px; height: 23px; }

.kv { margin: 0 0 1rem; display: grid; }
.kv div { display: grid; grid-template-columns: 42% 1fr; gap: .75rem; padding: .55rem 0; border-bottom: 1px solid var(--line); }
.kv div:last-child { border-bottom: 0; }
.kv dt { color: var(--muted); font-weight: 600; }
.kv dd { margin: 0; font-weight: 700; color: var(--navy); min-width: 0; }
.kv--compact div { grid-template-columns: 45% 1fr; font-size: .92rem; }
.kv--access dd { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.secret { letter-spacing: .06em; }

.timeline { list-style: none; border-left: 2px solid var(--line); margin-left: .35rem; padding-left: 1.1rem; display: grid; gap: .85rem; }
.timeline li { position: relative; display: grid; font-size: .93rem; }
.timeline li::before { content: ""; position: absolute; left: calc(-1.1rem - 6px); top: .35rem; width: 10px; height: 10px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 3px #fff; }
.timeline small { color: var(--muted); }

.danger-zone { margin-top: 1.25rem; border: 1px solid #f3cfd1; border-radius: var(--radius-s); padding: .8rem 1rem; background: #fffafa; }
.danger-zone summary { cursor: pointer; font-weight: 700; color: var(--red); }
.danger-zone[open] summary { margin-bottom: .6rem; }
.note { padding: 1rem 1.1rem; border-radius: var(--radius-s); background: var(--soft); margin-top: 1rem; }

.svc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; margin-bottom: 1.25rem; }
.svc-card { display: grid; gap: .35rem; padding: 1.2rem 1.25rem; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.svc-card:hover { border-color: var(--blue); box-shadow: var(--shadow); color: var(--ink); }
.svc-card.is-ended { opacity: .6; }
.svc-card__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: .4rem; }
.svc-card__icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--grad); color: #fff; }
.svc-card__icon .ico { width: 21px; height: 21px; }
.svc-card__name { color: var(--navy); font-size: 1.1rem; }
.svc-card__label { color: var(--muted); font-weight: 600; font-size: .92rem; word-break: break-word; }
.svc-card__meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .3rem 1rem; margin-top: .5rem; padding-top: .6rem; border-top: 1px solid var(--line); font-size: .85rem; font-weight: 700; color: var(--navy); }
.svc-card__meta span + span { color: var(--muted); font-weight: 600; }

/* ---------- WebFTP ---------- */
.ftp__bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .75rem; margin-bottom: .6rem; }
.ftp__crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; padding: .45rem .85rem; border-radius: 999px; background: var(--tint); font-weight: 700; font-size: .92rem; }
.ftp__crumbs a { text-decoration: none; display: inline-flex; align-items: center; }
.ftp__crumbs span { color: var(--muted); }
.ftp__tools { display: flex; gap: .5rem; align-items: flex-start; }
.ftp__upload label { cursor: pointer; }
.ftp__new { position: relative; }
.ftp__new summary { list-style: none; }
.ftp__new summary::-webkit-details-marker { display: none; }
.ftp__new[open] .ftp__inline { position: absolute; right: 0; top: calc(100% + .4rem); z-index: 5; width: 300px; padding: .75rem; border-radius: 14px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.ftp__inline { display: flex; gap: .4rem; }
.ftp__inline input { padding: .5rem .7rem; font-size: .9rem; }
.ftp__name a { display: inline-flex; align-items: center; gap: .55rem; color: var(--navy); text-decoration: none; overflow-wrap: anywhere; }
.ftp__name .ico { color: var(--muted); width: 20px; height: 20px; }
.ftp__name .ico--folder { color: var(--blue); fill: rgba(36, 87, 255, .12); }
.actions-col { width: 1%; white-space: nowrap; text-align: right; }
.actions-col > * { vertical-align: middle; }
.row-menu { display: inline-block; position: relative; }
.row-menu summary { list-style: none; }
.row-menu summary::-webkit-details-marker { display: none; }
.row-menu__panel { position: absolute; right: 0; top: calc(100% + .35rem); z-index: 5; display: grid; gap: .5rem; width: 290px; padding: .75rem; border-radius: 14px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); text-align: left; }

/* ---------- Intranet ---------- */
body.admin { background: var(--soft); }
.admin__layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); min-height: 100vh; }
.admin__side { position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; background: var(--navy); color: rgba(255, 255, 255, .75); padding: 1.25rem .9rem; }
.admin__brand { display: flex; align-items: center; gap: .6rem; padding: .25rem .6rem 1.25rem; text-decoration: none; }
.admin__brand img { width: 120px; height: auto; }
.admin__brand span { font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--sky); padding: .15rem .45rem; border: 1px solid rgba(169, 200, 255, .4); border-radius: 6px; }
.admin__nav { display: grid; gap: .15rem; }
.admin__nav a { display: flex; align-items: center; gap: .7rem; padding: .62rem .75rem; border-radius: 10px; color: rgba(255, 255, 255, .78); text-decoration: none; font-weight: 600; font-size: .93rem; }
.admin__nav a:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.admin__nav a[aria-current="page"] { background: rgba(61, 123, 255, .28); color: #fff; }
.admin__nav .ico { width: 19px; height: 19px; color: var(--sky); }
.admin__count { margin-left: auto; min-width: 22px; height: 22px; padding: 0 6px; display: grid; place-items: center; border-radius: 999px; background: var(--blue-light); color: #fff; font-size: .74rem; }
.admin__me { margin-top: auto; padding: 1rem .75rem 0; border-top: 1px solid rgba(255, 255, 255, .12); display: grid; gap: .5rem; font-size: .88rem; }
.admin__me a, .admin__me button { display: inline-flex; align-items: center; gap: .5rem; color: #fff; text-decoration: none; background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
.admin__me small { color: rgba(255, 255, 255, .5); word-break: break-all; }
.admin__main { min-width: 0; padding: 1.5rem clamp(1rem, 3vw, 2.25rem) 4rem; }
.admin__top { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.admin__top h1 { font-size: clamp(1.4rem, 2.6vw, 1.85rem); flex: 1; min-width: 0; }
.admin__actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.admin__menu-btn { display: none; flex-direction: column; justify-content: center; gap: 4px; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; padding: 0 10px; }
.admin__menu-btn span { display: block; height: 2px; background: var(--navy); border-radius: 2px; }
.tiles--admin .tile { gap: .35rem; }

.toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem; align-items: center; margin-bottom: 1rem; }
.toolbar--filters { justify-content: flex-start; }
.toolbar--filters select { width: auto; min-width: 150px; padding-block: .55rem; }
.tabs { display: flex; gap: .25rem; flex-wrap: wrap; padding: .3rem; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.tabs a { padding: .5rem .85rem; border-radius: 10px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: .88rem; white-space: nowrap; }
.tabs a span { color: var(--muted); font-weight: 600; margin-left: .2rem; }
.tabs a:hover { color: var(--blue); }
.tabs a[aria-current="page"] { background: var(--navy); color: #fff; }
.tabs a[aria-current="page"] span { color: var(--sky); }
.search { position: relative; display: flex; align-items: center; gap: .5rem; }
.search > .ico { position: absolute; left: .8rem; color: var(--muted); pointer-events: none; }
.search select + .ico { position: static; }
.search input[type="search"] { padding: .55rem .9rem .55rem 2.4rem; min-width: 260px; }
.search select + .ico + input[type="search"] { margin-left: -2.2rem; }
.toolbar--filters .search input { min-width: 240px; }

.edit-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 1.25rem; align-items: start; }
.edit-grid__side { position: sticky; top: 1rem; }
.img-admin { list-style: none; display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 1rem; }
.img-admin li { display: grid; gap: .35rem; justify-items: start; padding: .5rem; border: 1px solid var(--line); border-radius: 14px; font-size: .85rem; font-weight: 600; }
.img-admin img { width: 140px; height: 140px; object-fit: contain; background: var(--soft); border-radius: 10px; }
.img-admin label { display: flex; align-items: center; gap: .4rem; }
.img-admin__del { color: var(--red); }
.input-sm { padding: .45rem .6rem !important; font-size: .92rem !important; border-radius: 9px !important; min-width: 0; }
.input-xs { width: 80px !important; }
td .input-sm[inputmode="decimal"] { width: 110px; text-align: right; }
td .input-sm.input-xs { text-align: right; }
.input-sm.is-zero { border-color: #f3cfd1; background: #fffafa; }
.thumb { width: 64px; }
.thumb img, .thumb__ph { width: 48px; height: 48px; object-fit: contain; border-radius: 10px; background: var(--soft); display: grid; place-items: center; color: var(--blue); }
.sticky-save { position: sticky; bottom: 0; z-index: 4; padding: .9rem 0; background: linear-gradient(transparent, var(--soft) 35%); display: flex; justify-content: flex-end; }
.row-new td { background: var(--soft); }
.address { line-height: 1.5; }

body.admin-login { min-height: 100vh; display: grid; place-items: center; background: radial-gradient(60% 70% at 100% 0%, rgba(61, 123, 255, .2), transparent 60%), var(--navy); padding: 1rem; }
.admin-login__box { width: min(100%, 420px); padding: 2.25rem; border-radius: var(--radius-l); background: #fff; box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .5); }
.admin-login__box h1 { font-size: 1.4rem; margin: 1.25rem 0 1rem; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .cart { grid-template-columns: 1fr 340px; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .edit-grid { grid-template-columns: minmax(0, 1fr) 300px; }
}
@media (max-width: 960px) {
  .product, .product__details, .cart, .split-2, .split-2--wide, .edit-grid { grid-template-columns: minmax(0, 1fr); }
  .product__info, .summary, .edit-grid__side { position: static; }
  .account__grid { grid-template-columns: minmax(0, 1fr); }
  .account__side { position: static; }
  .account__hello { display: none; }
  .side-nav { display: flex; overflow-x: auto; scrollbar-width: none; }
  .side-nav::-webkit-scrollbar { display: none; }
  .side-nav a, .side-nav button { white-space: nowrap; width: auto; }
  .side-nav form { border: 0; margin: 0; padding: 0; }
  .offer-grid, .offer-grid--2 { grid-template-columns: 1fr 1fr; }
  .how { grid-template-columns: 1fr; }
  .auth { grid-template-columns: minmax(0, 520px); }
  .admin__layout { grid-template-columns: minmax(0, 1fr); }
  .admin__side { position: fixed; z-index: 60; inset: 0 auto 0 0; width: 270px; transform: translateX(-100%); transition: transform .25s; }
  .admin__side.is-open { transform: none; box-shadow: 0 0 0 100vmax rgba(12, 27, 77, .4); }
  .admin__menu-btn { display: flex; }
}
@media (max-width: 760px) {
  .header__quick { display: flex; }
  .shopbar__inner { min-height: 46px; }
  .shopbar__tools .shopbar__cart { display: none; }
  .shopbar__link span { display: none; }
  .filters { grid-template-columns: 1fr 1fr; }
  .filters__search { grid-column: 1 / -1; }
  .cross__grid, .offer-grid, .offer-grid--2, .form__row, .form__row--3 { grid-template-columns: 1fr; }
  .cart-line { grid-template-columns: 64px 1fr auto; }
  .cart-line__media { width: 64px; height: 64px; }
  .cart-line__total { grid-column: 2 / -1; text-align: left; }
  .cart-line__qty { grid-row: 1; grid-column: 3; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
  .product-card__body { padding: .8rem; }
  .price__now { font-size: 1.1rem; }
  .tiles { grid-template-columns: 1fr 1fr; gap: .75rem; }
  .tile__value { font-size: 1.5rem; }
  .row-link { grid-template-columns: 1fr auto; }
  .row-link__amount { grid-column: 1 / -1; text-align: left; grid-row: 2; display: flex; gap: .3rem; }
  .row-link > span:nth-child(2) { grid-row: 1; grid-column: 2; }
  .progress { font-size: .78rem; }
  .progress li { font-size: .74rem; }
  .kv div { grid-template-columns: 1fr; gap: .1rem; }
  .search input[type="search"] { min-width: 0; width: 100%; }
  .toolbar .search { width: 100%; }
  .footer__legal { flex-direction: column; }
  .shopbar__inner { gap: .25rem; }
  .shopbar__nav { gap: 0; }
  .shopbar__nav a { padding: .4rem .55rem; font-size: .86rem; }
  .table th, .table td { padding: .65rem .7rem; }
  .table td:first-child { min-width: 7.5rem; }
  .table td.thumb { min-width: 0; }
  .ftp__table th:nth-child(3), .ftp__table td:nth-child(3) { display: none; }
  .ftp__table td.ftp__name { min-width: 10rem; }
  .ftp__table td.ftp__name a { align-items: flex-start; }
  .ftp__inline { flex-wrap: wrap; }
  .row-menu__panel, .ftp__new[open] .ftp__inline { width: min(290px, 80vw); }
}
@media (max-width: 420px) {
  .shopbar__nav a { padding: .4rem .45rem; font-size: .82rem; }
  .shopbar__link { padding: .4rem .35rem; }
}
@media (max-width: 360px) {
  .shopbar__nav a { padding: .4rem .32rem; font-size: .78rem; }
  .shopbar .container { width: calc(100% - 24px); }
  .product-grid { grid-template-columns: 1fr 1fr; }
  .product-card__badges .badge { font-size: .68rem; padding: .15rem .5rem; }
  .icon-btn { width: 38px; height: 38px; }
}

/* ---------- Impression (bon de préparation) ---------- */
@media print {
  .admin__side, .admin__top .admin__actions, .no-print, .alert, .admin__menu-btn, .sticky-save { display: none !important; }
  .admin__layout { display: block; }
  body.admin { background: #fff; }
  .panel { border: 1px solid #ccc; break-inside: avoid; }
  .split-2, .split-2--wide { grid-template-columns: 1.4fr 1fr; }
}

/* ---------- Factures, résiliation anticipée, import ---------- */
.callout--warning { background: var(--amber-bg); }
.callout--warning .callout__icon { color: var(--amber); }
.cancel-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: .9rem; margin: .9rem 0; }
.cancel-choice { border: 1px solid var(--line); border-radius: var(--radius-s, 12px); padding: 1rem; background: #fff; display: flex; flex-direction: column; gap: .5rem; }
.cancel-choice h3 { margin: 0; }
.cancel-choice p { margin: 0; flex: 1; }
.cancel-choice .btn { align-self: flex-start; }
.table--invoices td { vertical-align: middle; }
.t-actions { white-space: nowrap; text-align: right; }
.t-actions > * + * { margin-left: .6rem; }
.t-actions a:not(.btn) { display: inline-flex; align-items: center; gap: .3rem; font-weight: 600; text-decoration: none; }
.invoice-view .kv { margin: 1rem 0 1.25rem; }
.invoice-view__amount { font-size: 1.35rem; color: var(--navy); }
.import-status { min-height: 1.5em; font-weight: 600; color: var(--muted); }
.import-status[data-tone="ok"] { color: var(--green); }
.import-status[data-tone="warn"] { color: var(--amber); }
.pdf-text { white-space: pre-wrap; font-size: .82rem; max-height: 22rem; overflow: auto; background: var(--soft); padding: .9rem; border-radius: 10px; margin-top: .8rem; }
.form--inline { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .6rem; margin-bottom: .8rem; }
.form--inline .field { margin: 0; min-width: 0; flex: 1 1 160px; }
@media (max-width: 640px) {
  .table--invoices thead { display: none; }
  .table--invoices tr { display: grid; grid-template-columns: 1fr auto; gap: .2rem .8rem; padding: .85rem 1rem; border-bottom: 1px solid var(--line); }
  .table--invoices td { border: 0; padding: 0; min-width: 0 !important; }
  .table--invoices td.num { text-align: right; font-weight: 700; }
  .t-actions { grid-column: 1 / -1; text-align: left; }
}

/* ---------- Bloc entreprise (société, SIRET, TVA) ---------- */
.company-box { border: 1px solid var(--line); border-radius: var(--radius-s); padding: .7rem 1rem; margin: .4rem 0 1rem; background: #fff; }
.company-box > summary { cursor: pointer; font-weight: 700; color: var(--navy); list-style-position: inside; }
.company-box[open] > summary { margin-bottom: .6rem; }
.company-box .field__help { display: block; margin-bottom: .7rem; }
.summary .company-box .form__row { grid-template-columns: minmax(0, 1fr); }
.db-changes { margin: .4rem 0 0; padding-left: 1.2rem; font-size: .9rem; }
