/* Ideal Body : pages de suivi client et de gestion des demandes. Charte : rouge #E11414, noir #0b0b0c, gris acier. */
*, *::before, *::after { box-sizing: border-box; }
body.ibs { margin: 0; background: var(--ib-paper, #f5f6f7); color: var(--ib-ink-900, #141416); font: 400 16px/1.55 'Barlow', system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
.ibs a { color: var(--ib-red-500, #e11414); }
.ibs-tete { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px clamp(16px, 4vw, 40px); background: #fff; border-top: 5px solid var(--ib-red-500, #e11414); border-bottom: 1px solid var(--ib-line, #d8dadd); }
.ibs-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.ibs-logo img { display: block; width: 44px; height: 44px; }
.ibs-logo span { display: flex; flex-direction: column; line-height: 1; }
.ibs-logo strong { font: 400 26px/1 'Anton', 'Barlow Condensed', sans-serif; text-transform: uppercase; color: var(--ib-black, #0b0b0c); }
.ibs-logo small { margin-top: 3px; font: 600 10px/1 'Barlow Condensed', sans-serif; letter-spacing: .18em; text-transform: uppercase; color: var(--ib-ink-700, #4a4d52); }
.ibs-tel { font: 700 15px/1 'Barlow Condensed', sans-serif; letter-spacing: .06em; color: var(--ib-black, #0b0b0c) !important; text-decoration: none; padding: 10px 14px; border: 1px solid var(--ib-line, #d8dadd); border-radius: 999px; }
.ibs-tel:hover { border-color: var(--ib-red-500, #e11414); }

.ibs-page { max-width: 760px; margin: 0 auto; padding: clamp(28px, 6vw, 56px) clamp(16px, 4vw, 24px) 48px; }
.ibs-kicker { margin: 0 0 6px; font: 700 13px/1 'Barlow Condensed', sans-serif; letter-spacing: .18em; text-transform: uppercase; color: var(--ib-red-500, #e11414); }
.ibs-ref, .ibs-titre { margin: 0; font: 400 clamp(34px, 7vw, 52px)/1.1 'Anton', 'Barlow Condensed', sans-serif; letter-spacing: .01em; color: var(--ib-black, #0b0b0c); }
.ibs-sous { margin: 8px 0 28px; color: var(--ib-ink-500, #5b5b63); font-size: 17px; }

.ibs-etat { position: relative; overflow: hidden; padding: 24px 26px; border-radius: 18px; background: var(--ib-black, #0b0b0c); color: #fff; }
.ibs-etat::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--ib-red-500, #e11414); }
.ibs-etat.is-ferme::before { background: var(--ib-chrome-400, #9a9aa0); }
.ibs-etat p { margin: 0; }
.ibs-etat-lib { color: var(--ib-chrome-300, #b6b6b9); font-size: 15px; }
.ibs-etat-nom { margin: 4px 0 6px !important; font: 400 clamp(28px, 5vw, 36px)/1.15 'Anton', sans-serif; letter-spacing: .02em; }
.ibs-etat-txt { color: var(--ib-chrome-100, #e6e6e7); }

.ibs-ligne { list-style: none; margin: 26px 0 0; padding: 22px 24px; background: #fff; border: 1px solid var(--ib-line-soft, #e8eaec); border-radius: 18px; }
.ibs-ligne li { position: relative; display: flex; gap: 14px; padding: 0 0 18px; }
.ibs-ligne li:last-child { padding-bottom: 0; }
.ibs-ligne li:not(:last-child)::after { content: ''; position: absolute; left: 15px; top: 32px; bottom: 2px; width: 2px; background: var(--ib-line, #d8dadd); }
.ibs-ligne li.is-fait:not(:last-child)::after { background: var(--ib-red-500, #e11414); }
.ibs-point { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; font: 700 14px/1 'Barlow Condensed', sans-serif; background: var(--ib-mist, #eceef0); color: var(--ib-ink-400, #8a8a93); }
.is-fait .ibs-point { background: var(--ib-red-500, #e11414); color: #fff; }
.is-actuel .ibs-point { background: var(--ib-black, #0b0b0c); color: #fff; box-shadow: 0 0 0 5px rgba(225, 20, 20, .18); }
.ibs-etape { display: flex; flex-direction: column; padding-top: 4px; }
.ibs-etape strong { font: 600 17px/1.2 'Barlow', sans-serif; }
.is-avenir .ibs-etape strong { color: var(--ib-ink-400, #8a8a93); font-weight: 500; }
.ibs-etape small { color: var(--ib-ink-500, #5b5b63); font-size: 14px; }

.ibs-bloc { margin-top: 22px; padding: 22px 24px; background: #fff; border: 1px solid var(--ib-line-soft, #e8eaec); border-radius: 18px; }
.ibs-bloc h2, .ibs-config summary { margin: 0 0 12px; font: 700 15px/1.2 'Barlow Condensed', sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--ib-black, #0b0b0c); }
.ibs-msg { padding: 12px 0; border-top: 1px solid var(--ib-line-soft, #e8eaec); }
.ibs-msg:first-of-type { border-top: 0; padding-top: 0; }
.ibs-msg p { margin: 0; }
.ibs-msg-tete { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-bottom: 4px !important; font-size: 14px; color: var(--ib-ink-500, #5b5b63); }
.ibs-msg-tete span { font-weight: 600; color: var(--ib-red-500, #e11414); }
.ibs-config summary { margin: 0; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.ibs-config summary::-webkit-details-marker { display: none; }
.ibs-config summary::after { content: '+'; font: 400 24px/1 'Barlow', sans-serif; color: var(--ib-red-500, #e11414); }
.ibs-config[open] summary::after { content: '–'; }
.ibs-config dl { margin: 14px 0 0; }
.ibs-config dl div { display: grid; grid-template-columns: minmax(120px, 34%) 1fr; gap: 12px; padding: 9px 0; border-top: 1px solid var(--ib-line-soft, #e8eaec); }
.ibs-config dt { color: var(--ib-ink-500, #5b5b63); }
.ibs-config dd { margin: 0; font-weight: 600; }

.ibs-aide { margin-top: 28px; text-align: center; }
.ibs-aide > p:first-child { margin: 0 0 14px; font-weight: 500; }
.ibs-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.ibs-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border: 2px solid var(--ib-red-500, #e11414); border-radius: 999px; background: var(--ib-red-500, #e11414); color: #fff !important; font: 700 15px/1 'Barlow Condensed', sans-serif; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: background .2s, border-color .2s, transform .2s; }
.ibs-btn:hover { background: var(--ib-red-600, #c20f0f); border-color: var(--ib-red-600, #c20f0f); transform: translateY(-1px); }
.ibs-btn-ligne { background: transparent; color: var(--ib-black, #0b0b0c) !important; border-color: var(--ib-black, #0b0b0c); }
.ibs-btn-ligne:hover { background: var(--ib-black, #0b0b0c); border-color: var(--ib-black, #0b0b0c); color: #fff !important; }
.ibs-btn-sombre { background: var(--ib-black, #0b0b0c); border-color: var(--ib-black, #0b0b0c); }
.ibs-note { margin: 18px auto 0; max-width: 520px; font-size: 14px; color: var(--ib-ink-500, #5b5b63); }

.ibs-form { display: grid; gap: 16px; max-width: 460px; padding: 24px; background: #fff; border: 1px solid var(--ib-line-soft, #e8eaec); border-radius: 18px; }
.ibs-form label, .ibg-champ { display: grid; gap: 6px; font: 600 14px/1.2 'Barlow', sans-serif; color: var(--ib-ink-700, #34343a); }
.ibs input, .ibs select, .ibs textarea { width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid var(--ib-line, #d8dadd); border-radius: 12px; background: #fff; font: 400 16px/1.4 'Barlow', sans-serif; color: var(--ib-ink-900, #141416); }
.ibs textarea { min-height: 96px; resize: vertical; }
.ibs input:focus, .ibs select:focus, .ibs textarea:focus { outline: none; border-color: var(--ib-red-500, #e11414); box-shadow: 0 0 0 3px rgba(225, 20, 20, .15); }
.ibs-erreur { max-width: 460px; margin: 0 0 16px; padding: 12px 16px; border-radius: 12px; background: var(--ib-red-50, #fdeceb); color: var(--ib-red-700, #9a0000); font-weight: 500; }
.ibs-ok { margin: 0 0 16px; padding: 12px 16px; border-radius: 12px; background: #e9f6ee; color: #135c33; font-weight: 500; }

.ibs-pied { margin-top: 24px; padding: 26px 16px 30px; background: var(--ib-black, #0b0b0c); border-top: 3px solid var(--ib-red-500, #e11414); color: var(--ib-chrome-300, #b6b6b9); text-align: center; font-size: 14px; }
.ibs-pied p { margin: 2px 0; }
.ibs-pied strong { color: #fff; font-weight: 600; }
.ibs-pied a { color: var(--ib-chrome-100, #e6e6e7); }

/* Gestion (équipe) */
.ibg .ibs-page { max-width: 1080px; }
.ibg-barre { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.ibg-filtres { display: flex; flex-wrap: wrap; gap: 8px; }
.ibg-filtres a { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--ib-line, #d8dadd); background: #fff; color: var(--ib-ink-700, #34343a); text-decoration: none; font-size: 14px; font-weight: 500; }
.ibg-filtres a.is-on { background: var(--ib-black, #0b0b0c); border-color: var(--ib-black, #0b0b0c); color: #fff; }
.ibg-filtres a span { margin-left: 6px; color: var(--ib-red-500, #e11414); font-weight: 700; }
.ibg-filtres a.is-on span { color: var(--ib-red-300, #f25f5a); }
.ibg-cherche { display: flex; gap: 8px; }
.ibg-cherche input { min-height: 40px; max-width: 240px; }
.ibg-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 18px; overflow: hidden; border: 1px solid var(--ib-line-soft, #e8eaec); }
.ibg-table th { padding: 12px 14px; text-align: left; font: 700 13px/1 'Barlow Condensed', sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--ib-ink-500, #5b5b63); background: var(--ib-paper, #f5f6f7); }
.ibg-table td { padding: 12px 14px; border-top: 1px solid var(--ib-line-soft, #e8eaec); vertical-align: top; }
.ibg-table tr:hover td { background: #fafafa; }
.ibg-table a { font-weight: 700; text-decoration: none; }
.ibg-table small { display: block; color: var(--ib-ink-500, #5b5b63); }
.ibg-pastille { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; white-space: nowrap; background: var(--ib-mist, #eceef0); color: var(--ib-ink-700, #34343a); }
.ibg-pastille.s-recue { background: var(--ib-red-500, #e11414); color: #fff; }
.ibg-pastille.s-analyse, .ibg-pastille.s-soumission { background: #fff4e0; color: #8a5300; }
.ibg-pastille.s-acceptee, .ibg-pastille.s-fabrication, .ibg-pastille.s-prete { background: #e6effa; color: #1d4f8f; }
.ibg-pastille.s-livree { background: #e9f6ee; color: #135c33; }
.ibg-vide { padding: 40px; text-align: center; color: var(--ib-ink-500, #5b5b63); background: #fff; border-radius: 18px; }
.ibg-grille { display: grid; grid-template-columns: 1.2fr 1fr; gap: 22px; align-items: start; }
.ibg-grille > div { display: grid; gap: 22px; }
.ibg-grille .ibs-bloc { margin-top: 0; }
.ibg-grille dl div { display: grid; grid-template-columns: 130px 1fr; gap: 10px; padding: 8px 0; border-top: 1px solid var(--ib-line-soft, #e8eaec); }
.ibg-grille dl { margin: 0; }
.ibg-grille dt { color: var(--ib-ink-500, #5b5b63); }
.ibg-grille dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.ibg-form { display: grid; gap: 14px; }
.ibg-case { display: flex; gap: 10px; align-items: center; font-weight: 500; }
.ibg-case input { width: 20px; min-height: 20px; accent-color: var(--ib-red-500, #e11414); }
.ibg-histo { list-style: none; margin: 0; padding: 0; }
.ibg-histo li { padding: 10px 0; border-top: 1px solid var(--ib-line-soft, #e8eaec); font-size: 15px; }
.ibg-histo li small { display: block; color: var(--ib-ink-500, #5b5b63); }
.ibg-sortie { font-size: 14px; }
.ibg-ibops { margin: 0; padding: 12px 14px; border-radius: 12px; background: var(--ib-paper, #f5f6f7); font-size: 15px; }
.ibg-ouvrir { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: -8px 0 22px; font-size: 15px; color: var(--ib-ink-500, #5b5b63); }
.ibg-ouvrir .ibs-btn { min-height: 42px; padding: 0 20px; font-size: 14px; }
.ibg-date { white-space: nowrap; font-variant-numeric: tabular-nums; }
.ibg-jours { font-variant-numeric: tabular-nums; white-space: nowrap; }
.ibg-jours.is-retard { display: inline-block; padding: 3px 9px; border-radius: 999px; background: #f59e0b; color: #1a1a1a; font-weight: 700; font-size: 13px; }
.ibg-lien { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: -14px 0 20px; font-size: 15px; color: var(--ib-ink-500, #5b5b63); }
.ibg-lien .ibs-btn { min-height: 38px; padding: 0 16px; font-size: 13px; }
@media (max-width: 820px) {
  .ibg-grille { grid-template-columns: 1fr; }
  .ibg-table thead { display: none; }
  .ibg-table tr { display: grid; grid-template-columns: 1fr auto; padding: 10px 6px; border-top: 1px solid var(--ib-line-soft, #e8eaec); }
  .ibg-table td { border: 0; padding: 4px 8px; }
}
@media (max-width: 560px) {
  .ibs-logo img { width: 38px; height: 38px; } .ibs-logo strong { font-size: 22px; }
  .ibs-config dl div, .ibg-grille dl div { grid-template-columns: 1fr; gap: 2px; }
}
